]> git.proxmox.com Git - ceph.git/blob - ceph/src/pybind/mgr/dashboard/frontend/src/app/shared/shared.module.ts
update ceph source to reef 18.2.1
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / src / app / shared / shared.module.ts
1 import { CommonModule } from '@angular/common';
2 import { NgModule } from '@angular/core';
3 import { ReactiveFormsModule } from '@angular/forms';
4 import { FormlyModule } from '@ngx-formly/core';
5 import { FormlyBootstrapModule } from '@ngx-formly/bootstrap';
6
7 import { CssHelper } from '~/app/shared/classes/css-helper';
8 import { ComponentsModule } from './components/components.module';
9 import { DataTableModule } from './datatable/datatable.module';
10 import { DirectivesModule } from './directives/directives.module';
11 import { PipesModule } from './pipes/pipes.module';
12 import { AuthGuardService } from './services/auth-guard.service';
13 import { AuthStorageService } from './services/auth-storage.service';
14 import { FormatterService } from './services/formatter.service';
15 import { FormlyArrayTypeComponent } from './forms/crud-form/formly-array-type/formly-array-type.component';
16 import { FormlyObjectTypeComponent } from './forms/crud-form/formly-object-type/formly-object-type.component';
17 import { FormlyInputTypeComponent } from './forms/crud-form/formly-input-type/formly-input-type.component';
18 import { FormlyTextareaTypeComponent } from './forms/crud-form/formly-textarea-type/formly-textarea-type.component';
19
20 @NgModule({
21 imports: [
22 CommonModule,
23 PipesModule,
24 ComponentsModule,
25 DataTableModule,
26 DirectivesModule,
27
28 ReactiveFormsModule,
29 FormlyModule.forRoot({
30 types: [
31 { name: 'array', component: FormlyArrayTypeComponent },
32 { name: 'object', component: FormlyObjectTypeComponent },
33 { name: 'input', component: FormlyInputTypeComponent }
34 ],
35 validationMessages: [{ name: 'required', message: 'This field is required' }]
36 }),
37 FormlyBootstrapModule
38 ],
39 declarations: [FormlyTextareaTypeComponent],
40 exports: [ComponentsModule, PipesModule, DataTableModule, DirectivesModule],
41 providers: [AuthStorageService, AuthGuardService, FormatterService, CssHelper]
42 })
43 export class SharedModule {}