]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/shared/shared-forms/shared-form.module.ts
628affb56fd5af8ae225a148e3ce51cf2340fffb
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / shared-forms / shared-form.module.ts
1 import { InputMaskModule } from 'primeng/inputmask'
2 import { NgModule } from '@angular/core'
3 import { FormsModule, ReactiveFormsModule } from '@angular/forms'
4 import { NgSelectModule } from '@ng-select/ng-select'
5 import { SharedGlobalIconModule } from '../shared-icons'
6 import { SharedMainModule } from '../shared-main/shared-main.module'
7 import { AdvancedInputFilterComponent } from './advanced-input-filter.component'
8 import { DynamicFormFieldComponent } from './dynamic-form-field.component'
9 import { FormReactiveService } from './form-reactive.service'
10 import { FormValidatorService } from './form-validator.service'
11 import { InputSwitchComponent } from './input-switch.component'
12 import { InputTextComponent } from './input-text.component'
13 import { MarkdownTextareaComponent } from './markdown-textarea.component'
14 import { PeertubeCheckboxComponent } from './peertube-checkbox.component'
15 import { PreviewUploadComponent } from './preview-upload.component'
16 import { ReactiveFileComponent } from './reactive-file.component'
17 import {
18 SelectCategoriesComponent,
19 SelectChannelComponent,
20 SelectCheckboxAllComponent,
21 SelectCheckboxComponent,
22 SelectCustomValueComponent,
23 SelectLanguagesComponent,
24 SelectOptionsComponent,
25 SelectTagsComponent
26 } from './select'
27 import { TextareaAutoResizeDirective } from './textarea-autoresize.directive'
28 import { TimestampInputComponent } from './timestamp-input.component'
29
30 @NgModule({
31 imports: [
32 FormsModule,
33 ReactiveFormsModule,
34
35 InputMaskModule,
36 NgSelectModule,
37
38 SharedMainModule,
39 SharedGlobalIconModule
40 ],
41
42 declarations: [
43 InputTextComponent,
44 MarkdownTextareaComponent,
45 PeertubeCheckboxComponent,
46 PreviewUploadComponent,
47 ReactiveFileComponent,
48 TextareaAutoResizeDirective,
49 TimestampInputComponent,
50
51 InputSwitchComponent,
52
53 SelectChannelComponent,
54 SelectOptionsComponent,
55 SelectTagsComponent,
56 SelectCheckboxComponent,
57 SelectCustomValueComponent,
58 SelectLanguagesComponent,
59 SelectCategoriesComponent,
60 SelectCheckboxAllComponent,
61
62 DynamicFormFieldComponent,
63
64 AdvancedInputFilterComponent
65 ],
66
67 exports: [
68 FormsModule,
69 ReactiveFormsModule,
70
71 InputMaskModule,
72 NgSelectModule,
73
74 InputTextComponent,
75 MarkdownTextareaComponent,
76 PeertubeCheckboxComponent,
77 PreviewUploadComponent,
78 ReactiveFileComponent,
79 TextareaAutoResizeDirective,
80 TimestampInputComponent,
81
82 InputSwitchComponent,
83
84 SelectChannelComponent,
85 SelectOptionsComponent,
86 SelectTagsComponent,
87 SelectCheckboxComponent,
88 SelectCustomValueComponent,
89 SelectLanguagesComponent,
90 SelectCategoriesComponent,
91 SelectCheckboxAllComponent,
92
93 DynamicFormFieldComponent,
94
95 AdvancedInputFilterComponent
96 ],
97
98 providers: [
99 FormValidatorService,
100 FormReactiveService
101 ]
102 })
103 export class SharedFormModule { }