UNPKG

4.58 kBPlain TextView Raw
1import {NgModule, ModuleWithProviders, Injector} from "@angular/core";
2import {BrowserModule} from "@angular/platform-browser";
3import {HttpClientModule} from "@angular/common/http";
4import {FormsModule} from "@angular/forms";
5import {CommonModule} from "@angular/common";
6import {FormComponent} from "./path-framework/form/form.component";
7import {ChartComponent} from "./path-framework/page/element/chart/chart.component";
8import {AutoCompleteComponent} from "./path-framework/form/field/auto-complete/auto-complete-field.component";
9import {TextFieldComponent} from "./path-framework/form/field/text/text-field.component";
10import {DateFieldComponent} from "./path-framework/form/field/date/date-field.component";
11import {RadioGroupComponent} from "./path-framework/form/field/radio/radio-group.component";
12import {CheckboxGroupComponent} from "./path-framework/form/field/checkbox/checkbox-group.component";
13import {FormFieldLabelComponent} from "./path-framework/form/field/form-field-label.component";
14import {ProgressBarComponent} from "./path-framework/form/field/progress-bar/progress-bar.component";
15import {LabelFieldComponent} from "./path-framework/form/field/label/label-field.component";
16import {FieldListFieldComponent} from "./path-framework/form/field/fieldList/field-list-field.component";
17import {NumberFieldComponent} from "./path-framework/form/field/number/number-field.component";
18import {TranslationFieldComponent} from "./path-framework/form/field/translation/translation-field.component";
19import {BsDatepickerModule} from "ngx-bootstrap/datepicker/bs-datepicker.module";
20import {TooltipModule} from "ngx-bootstrap/tooltip/tooltip.module";
21import {DraggableDirective} from "./path-framework/form/draggable.directive";
22import {BackButtonComponent} from "./path-framework/page/element/button/back-button.component";
23import {LinkButtonComponent} from "./path-framework/page/element/button/link-button.component";
24import {PageDeleteButtonComponent} from "./path-framework/page/element/button/page-delete-button.component";
25import {ButtonComponent} from "./path-framework/page/element/button/button.component";
26import {PageLabelComponent} from "./path-framework/page/element/label/page-label.component";
27import {ListComponent} from "./path-framework/page/element/list/list.component";
28import {CustomDirective} from "./path-framework/page/element/custom/custom.directive";
29import {CustomContainerComponent} from "./path-framework/page/element/custom/custom-container.component";
30import {ElementListComponent} from "./path-framework/page/element/element-list/element-list.component";
31
32@NgModule({
33 imports: [
34 BrowserModule,
35 HttpClientModule,
36 FormsModule,
37 CommonModule,
38 BsDatepickerModule.forRoot(),
39 TooltipModule.forRoot()
40 ],
41 declarations: [
42 DraggableDirective,
43 LabelFieldComponent,
44 FieldListFieldComponent,
45 FormComponent,
46 ChartComponent,
47 AutoCompleteComponent,
48 ProgressBarComponent,
49 TextFieldComponent,
50 TranslationFieldComponent,
51 NumberFieldComponent,
52 DateFieldComponent,
53 RadioGroupComponent,
54 CheckboxGroupComponent,
55 FormFieldLabelComponent,
56 BackButtonComponent,
57 LinkButtonComponent,
58 PageDeleteButtonComponent,
59 ButtonComponent,
60 PageLabelComponent,
61 ListComponent,
62 CustomDirective,
63 CustomContainerComponent,
64 ElementListComponent
65 ],
66 exports: [
67 DraggableDirective,
68 BrowserModule,
69 HttpClientModule,
70 FormsModule,
71 CommonModule,
72 BsDatepickerModule,
73 TooltipModule,
74 LabelFieldComponent,
75 FieldListFieldComponent,
76 FormComponent,
77 ChartComponent,
78 AutoCompleteComponent,
79 ProgressBarComponent,
80 TextFieldComponent,
81 TranslationFieldComponent,
82 NumberFieldComponent,
83 DateFieldComponent,
84 RadioGroupComponent,
85 CheckboxGroupComponent,
86 FormFieldLabelComponent,
87 BackButtonComponent,
88 LinkButtonComponent,
89 PageDeleteButtonComponent,
90 ButtonComponent,
91 PageLabelComponent,
92 ListComponent,
93 CustomDirective,
94 CustomContainerComponent,
95 ElementListComponent
96 ],
97})
98export class AppModule {
99 static forRoot(): ModuleWithProviders {
100 return {ngModule: AppModule, providers: []};
101 }
102}