X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fshared%2Fshared-forms%2Fshared-form.module.ts;h=22e8dd05ac8f1ee861c54f5ac94b418f5c8490bd;hb=f8b530e0a523a0d9ff469ef716838374c395a360;hp=ba33704cf23c9c27fa8fd4a59061481619448d12;hpb=d95d15598847c7f020aa056e7e6e0c02d2bbf732;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 ba33704cf..22e8dd05a 100644 --- a/client/src/app/shared/shared-forms/shared-form.module.ts +++ b/client/src/app/shared/shared-forms/shared-form.module.ts @@ -1,31 +1,19 @@ +import { InputMaskModule } from 'primeng/inputmask' 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 { InputReadonlyCopyComponent } from './input-readonly-copy.component' +import { DynamicFormFieldComponent } from './dynamic-form-field.component' +import { FormValidatorService } from './form-validator.service' +import { InputToggleHiddenComponent } from './input-toggle-hidden.component' +import { InputSwitchComponent } from './input-switch.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' @@ -34,51 +22,59 @@ import { TimestampInputComponent } from './timestamp-input.component' FormsModule, ReactiveFormsModule, + InputMaskModule, + NgSelectModule, + SharedMainModule, SharedGlobalIconModule ], declarations: [ - InputReadonlyCopyComponent, + InputToggleHiddenComponent, MarkdownTextareaComponent, PeertubeCheckboxComponent, PreviewUploadComponent, ReactiveFileComponent, TextareaAutoResizeDirective, - TimestampInputComponent + TimestampInputComponent, + + InputSwitchComponent, + + SelectChannelComponent, + SelectOptionsComponent, + SelectTagsComponent, + SelectCheckboxComponent, + + DynamicFormFieldComponent ], exports: [ FormsModule, ReactiveFormsModule, - InputReadonlyCopyComponent, + InputMaskModule, + NgSelectModule, + + InputToggleHiddenComponent, MarkdownTextareaComponent, PeertubeCheckboxComponent, PreviewUploadComponent, ReactiveFileComponent, TextareaAutoResizeDirective, - TimestampInputComponent + TimestampInputComponent, + + InputSwitchComponent, + + SelectChannelComponent, + SelectOptionsComponent, + 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 { }