]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/shared/shared-forms/shared-form.module.ts
add ng-select for templatable select options
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / shared-forms / shared-form.module.ts
CommitLineData
67ed6552
C
1
2import { NgModule } from '@angular/core'
3import { FormsModule, ReactiveFormsModule } from '@angular/forms'
4import { BatchDomainsValidatorsService } from '@app/shared/shared-forms/form-validators/batch-domains-validators.service'
5import { SharedGlobalIconModule } from '../shared-icons'
6import { SharedMainModule } from '../shared-main/shared-main.module'
7import {
8 CustomConfigValidatorsService,
9 FormValidatorService,
10 InstanceValidatorsService,
11 LoginValidatorsService,
12 ResetPasswordValidatorsService,
13 UserValidatorsService,
d95d1559 14 AbuseValidatorsService,
67ed6552
C
15 VideoAcceptOwnershipValidatorsService,
16 VideoBlockValidatorsService,
17 VideoCaptionsValidatorsService,
18 VideoChangeOwnershipValidatorsService,
19 VideoChannelValidatorsService,
20 VideoCommentValidatorsService,
21 VideoPlaylistValidatorsService,
22 VideoValidatorsService
23} from './form-validators'
24import { InputReadonlyCopyComponent } from './input-readonly-copy.component'
25import { MarkdownTextareaComponent } from './markdown-textarea.component'
26import { PeertubeCheckboxComponent } from './peertube-checkbox.component'
27import { PreviewUploadComponent } from './preview-upload.component'
28import { ReactiveFileComponent } from './reactive-file.component'
29import { TextareaAutoResizeDirective } from './textarea-autoresize.directive'
30import { TimestampInputComponent } from './timestamp-input.component'
02c01341
RK
31import { SelectChannelComponent } from './select-channel.component'
32import { SelectOptionsComponent } from './select-options.component'
33import { SelectTagsComponent } from './select-tags.component'
67ed6552
C
34
35@NgModule({
36 imports: [
37 FormsModule,
38 ReactiveFormsModule,
39
40 SharedMainModule,
41 SharedGlobalIconModule
42 ],
43
44 declarations: [
45 InputReadonlyCopyComponent,
46 MarkdownTextareaComponent,
47 PeertubeCheckboxComponent,
48 PreviewUploadComponent,
49 ReactiveFileComponent,
50 TextareaAutoResizeDirective,
02c01341
RK
51 TimestampInputComponent,
52 SelectChannelComponent,
53 SelectOptionsComponent,
54 SelectTagsComponent
67ed6552
C
55 ],
56
57 exports: [
58 FormsModule,
59 ReactiveFormsModule,
60
61 InputReadonlyCopyComponent,
62 MarkdownTextareaComponent,
63 PeertubeCheckboxComponent,
64 PreviewUploadComponent,
65 ReactiveFileComponent,
66 TextareaAutoResizeDirective,
02c01341
RK
67 TimestampInputComponent,
68 SelectChannelComponent,
69 SelectOptionsComponent,
70 SelectTagsComponent
67ed6552
C
71 ],
72
73 providers: [
74 CustomConfigValidatorsService,
75 FormValidatorService,
76 LoginValidatorsService,
77 InstanceValidatorsService,
78 LoginValidatorsService,
79 ResetPasswordValidatorsService,
80 UserValidatorsService,
d95d1559 81 AbuseValidatorsService,
67ed6552
C
82 VideoAcceptOwnershipValidatorsService,
83 VideoBlockValidatorsService,
84 VideoCaptionsValidatorsService,
85 VideoChangeOwnershipValidatorsService,
86 VideoChannelValidatorsService,
87 VideoCommentValidatorsService,
88 VideoPlaylistValidatorsService,
89 VideoValidatorsService,
90 BatchDomainsValidatorsService
91 ]
92})
93export class SharedFormModule { }