X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fshared%2Fshared-forms%2Fshared-form.module.ts;h=a28988f87b41f34753675994dac46c961fd21f6c;hb=fce7fe04eed39e23e76717085e92118e963def81;hp=19d812948661b609895084130bae4c1f1906f527;hpb=02c01341f4dae30ec6b81fcb644952393d73c4a8;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/shared/shared-forms/shared-form.module.ts b/client/src/app/shared/shared-forms/shared-form.module.ts index 19d812948..a28988f87 100644 --- a/client/src/app/shared/shared-forms/shared-form.module.ts +++ b/client/src/app/shared/shared-forms/shared-form.module.ts @@ -1,42 +1,31 @@ +import { InputMaskModule } from 'primeng/inputmask' +import { InputSwitchModule } from 'primeng/inputswitch' import { NgModule } from '@angular/core' import { FormsModule, ReactiveFormsModule } from '@angular/forms' -import { BatchDomainsValidatorsService } from '@app/shared/shared-forms/form-validators/batch-domains-validators.service' +import { NgSelectModule } from '@ng-select/ng-select' import { SharedGlobalIconModule } from '../shared-icons' import { SharedMainModule } from '../shared-main/shared-main.module' -import { - CustomConfigValidatorsService, - FormValidatorService, - InstanceValidatorsService, - LoginValidatorsService, - ResetPasswordValidatorsService, - UserValidatorsService, - AbuseValidatorsService, - VideoAcceptOwnershipValidatorsService, - VideoBlockValidatorsService, - VideoCaptionsValidatorsService, - VideoChangeOwnershipValidatorsService, - VideoChannelValidatorsService, - VideoCommentValidatorsService, - VideoPlaylistValidatorsService, - VideoValidatorsService -} from './form-validators' +import { FormValidatorService } from './form-validator.service' import { InputReadonlyCopyComponent } from './input-readonly-copy.component' import { MarkdownTextareaComponent } from './markdown-textarea.component' import { PeertubeCheckboxComponent } from './peertube-checkbox.component' import { PreviewUploadComponent } from './preview-upload.component' import { ReactiveFileComponent } from './reactive-file.component' +import { SelectChannelComponent, SelectCheckboxComponent, SelectOptionsComponent, SelectTagsComponent } from './select' import { TextareaAutoResizeDirective } from './textarea-autoresize.directive' import { TimestampInputComponent } from './timestamp-input.component' -import { SelectChannelComponent } from './select-channel.component' -import { SelectOptionsComponent } from './select-options.component' -import { SelectTagsComponent } from './select-tags.component' +import { DynamicFormFieldComponent } from './dynamic-form-field.component' @NgModule({ imports: [ FormsModule, ReactiveFormsModule, + InputMaskModule, + InputSwitchModule, + NgSelectModule, + SharedMainModule, SharedGlobalIconModule ], @@ -49,15 +38,23 @@ import { SelectTagsComponent } from './select-tags.component' ReactiveFileComponent, TextareaAutoResizeDirective, TimestampInputComponent, + SelectChannelComponent, SelectOptionsComponent, - SelectTagsComponent + SelectTagsComponent, + SelectCheckboxComponent, + + DynamicFormFieldComponent ], exports: [ FormsModule, ReactiveFormsModule, + InputMaskModule, + InputSwitchModule, + NgSelectModule, + InputReadonlyCopyComponent, MarkdownTextareaComponent, PeertubeCheckboxComponent, @@ -65,29 +62,17 @@ import { SelectTagsComponent } from './select-tags.component' ReactiveFileComponent, TextareaAutoResizeDirective, TimestampInputComponent, + SelectChannelComponent, SelectOptionsComponent, - SelectTagsComponent + SelectTagsComponent, + SelectCheckboxComponent, + + DynamicFormFieldComponent ], providers: [ - CustomConfigValidatorsService, - FormValidatorService, - LoginValidatorsService, - InstanceValidatorsService, - LoginValidatorsService, - ResetPasswordValidatorsService, - UserValidatorsService, - AbuseValidatorsService, - VideoAcceptOwnershipValidatorsService, - VideoBlockValidatorsService, - VideoCaptionsValidatorsService, - VideoChangeOwnershipValidatorsService, - VideoChannelValidatorsService, - VideoCommentValidatorsService, - VideoPlaylistValidatorsService, - VideoValidatorsService, - BatchDomainsValidatorsService + FormValidatorService ] }) export class SharedFormModule { }