blob: 93452256ba4cf17796322897a2b19ac4b7e64192 [file] [log] [blame]
Ittay Stern6f900cc2018-08-29 17:01:32 +03001import {ModuleWithProviders, NgModule} from '@angular/core';
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +03002import {CommonModule} from '@angular/common';
3import {RouterModule} from '@angular/router';
Ittay Stern6f900cc2018-08-29 17:01:32 +03004import {BrowserModule} from '@angular/platform-browser';
5import {HttpClientModule} from '@angular/common/http';
6import {ServiceInfoService} from './server/serviceInfo/serviceInfo.service';
7import {ModalModule, PopoverModule} from 'ngx-bootstrap';
8import {PopoverComponent} from './components/popover/popover.component';
9import {EllipsisComponent} from './components/ellipsis/ellipsis.component';
10import {MessageBoxComponent} from './components/messageBox/messageBox.component';
11import {MessageBoxService} from './components/messageBox/messageBox.service';
12import {HttpInterceptorService} from './utils/httpInterceptor/httpInterceptor.service';
13import {FormControlErrorComponent} from './components/formControlError/formControlError.component';
14import {DropdownFormControlComponent} from "./components/formControls/component/dropdown/dropdown.formControl.component";
15import {InputPreventionPatternDirective} from './directives/inputPrevention/inputPreventionPattern.directive';
16import {FormGeneralErrorsComponent} from './components/formGeneralErrors/formGeneralErrors.component';
17import {SpinnerComponent} from './components/spinner/spinner.component';
18import {NoContentMessageAndIconComponent} from './components/no-content-message-and-icon/no-content-message-and-icon.component';
19import {ModelInformationComponent} from './components/model-information/model-information.component';
20import {TooltipModule} from 'ngx-tooltip';
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +030021import {IframeService} from "./utils/iframe.service";
22import {CapitalizeAndFormatPipe} from "./pipes/capitalize/capitalize-and-format.pipe";
Ittay Stern6f900cc2018-08-29 17:01:32 +030023import {DefaultDataGeneratorService} from './services/defaultDataServiceGenerator/default.data.generator.service';
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +030024import {ServiceInfoPipe} from "./pipes/serviceInfo/serviceInfo.pipe";
Ittay Stern6f900cc2018-08-29 17:01:32 +030025import {ConfigurationService} from "./services/configuration.service";
26import {InputFormControlComponent} from "./components/formControls/component/input/input.formControl.component";
27import {MultiselectFormControlComponent} from "./components/formControls/component/multiselect/multiselect.formControl.component";
28import {FormsModule, ReactiveFormsModule} from "@angular/forms";
29import {FormControlMessageErrorComponent} from "./components/formControls/errorMessage/formControlMessageError.component";
30import {GenericFormPopupComponent} from "./components/genericFormPopup/generic-form-popup.component";
31import {CheckboxFormControlComponent} from "./components/formControls/component/checkbox/checkbox.formControl.component";
32import {GenericFormService} from "./components/genericForm/generic-form.service";
33import {GenericFormComponent} from "./components/genericForm/generic-form.component";
34import {ServiceControlGenerator} from "./components/genericForm/formControlsServices/service.control.generator";
35import {BasicControlGenerator} from "./components/genericForm/formControlsServices/basic.control.generator";
36import {CustomValidators} from "./validators/uniqueName/uniqueName.validator";
37import {FileFormControlComponent} from "./components/formControls/component/file/file.formControl.component";
38import {NumberFormControlComponent} from "./components/formControls/component/number/number.formControl.component";
39import {AngularMultiSelectModule} from 'angular2-multiselect-dropdown';
40import {VnfControlGenerator} from "./components/genericForm/formControlsServices/vnfGenerator/vnf.control.generator";
41import {NetworkPopupService} from "./components/genericFormPopup/genericFormServices/network/network.popup.service";
42import {NetworkControlGenerator} from "./components/genericForm/formControlsServices/networkGenerator/network.control.generator";
43import {BasicPopupService} from "./components/genericFormPopup/genericFormServices/basic.popup.service";
44import {VfModulePopuopService} from "./components/genericFormPopup/genericFormServices/vfModule/vfModule.popuop.service";
45import {VfModuleControlGenerator} from "./components/genericForm/formControlsServices/vfModuleGenerator/vfModule.control.generator";
46import {OrderByPipe} from "./pipes/order/orderBy.pipe";
47import {ServicePopupService} from "./components/genericFormPopup/genericFormServices/service/service.popup.service";
48import {GenericFormPopupService} from "./components/genericFormPopup/generic-form-popup.service";
49import {FormGeneralErrorsService} from "./components/formGeneralErrors/formGeneralErrors.service";
50import {VnfPopupService} from "./components/genericFormPopup/genericFormServices/vnf/vnf.popup.service";
51import {SdcUiComponentsModule, SdcUiServices} from "onap-ui-angular";
52import {SafePipe} from "./pipes/safe/safe.pipe";
53import {ViewEditResolver} from "./resolvers/viewEdit/viewEdit.resolver";
54import {FlagsResolve} from "./resolvers/flag/flag.resolver";
55import {FeatureFlagModule} from "../featureFlag/featureFlag.module";
56import {VnfGroupPopupService} from "./components/genericFormPopup/genericFormServices/vnfGroup/vnfGroup.popup.service";
57import {VnfGroupControlGenerator} from "./components/genericForm/formControlsServices/vnfGroupGenerator/vnfGroup.control.generator";
58import {AuditInfoModalComponent} from "./components/auditInfoModal/auditInfoModal.component";
59import {BootstrapModalModule} from 'ng2-bootstrap-modal';
60import {DataTableModule} from "angular2-datatable";
61import {AuditInfoModalComponentService} from "./components/auditInfoModal/auditInfoModal.component.service";
Ittay Sternf7926712019-07-07 19:23:03 +030062import {SearchElementsModalComponent} from "./components/searchMembersModal/search-elements-modal.component";
63import {ElementsTableComponent} from "./components/searchMembersModal/members-table/elements-table.component";
64import {ElementsTableService} from "./components/searchMembersModal/members-table/elements-table.service";
Ittay Stern6f900cc2018-08-29 17:01:32 +030065import {ObjectToArrayPipe} from "./pipes/objectToArray/objectToArray.pipe";
66import {DataFilterPipe} from "./pipes/dataFilter/data-filter.pipe";
67import {SvgComponent} from "./components/svg/svg-component";
68import {ErrorMsgComponent} from './components/error-msg/error-msg.component';
69import {ErrorMsgService} from "./components/error-msg/error-msg.service";
70import {RetryResolver} from "./resolvers/retry/retry.resolver";
71import {ClickOutsideDirective} from "./directives/clickOutside/clickOutside.directive";
72import {DynamicInputsComponent} from "./components/dynamic-inputs/dynamic-inputs.component";
73import {DynamicInputLabelPipe} from "./pipes/dynamicInputLabel/dynamic-input-label.pipe";
74import {ModelInformationService} from "./components/model-information/model-information.service";
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +030075
76
77@NgModule({
78 imports: [
79 BrowserModule,
80 HttpClientModule,
81 CommonModule,
82 RouterModule,
83 PopoverModule.forRoot(),
Ittay Stern6f900cc2018-08-29 17:01:32 +030084 FeatureFlagModule.forRoot(),
85 FormsModule,
86 ReactiveFormsModule,
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +030087 TooltipModule,
88 SdcUiComponentsModule,
Ittay Stern6f900cc2018-08-29 17:01:32 +030089 AngularMultiSelectModule,
90 BootstrapModalModule,
91 DataTableModule,
92 ModalModule.forRoot()
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +030093 ],
94 declarations: [
95 PopoverComponent,
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +030096 EllipsisComponent,
97 MessageBoxComponent,
98 FormControlErrorComponent,
Ittay Stern6f900cc2018-08-29 17:01:32 +030099 DropdownFormControlComponent,
100 MultiselectFormControlComponent,
101 FileFormControlComponent,
102 NumberFormControlComponent,
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +0300103 InputPreventionPatternDirective,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300104 ClickOutsideDirective,
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +0300105 FormGeneralErrorsComponent,
106 SpinnerComponent,
107 NoContentMessageAndIconComponent,
108 ModelInformationComponent,
109 CapitalizeAndFormatPipe,
110 ServiceInfoPipe,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300111 OrderByPipe,
112 SafePipe,
113 ObjectToArrayPipe,
114 DataFilterPipe,
115 InputFormControlComponent,
116 FormControlMessageErrorComponent,
117 GenericFormPopupComponent,
Ittay Sternf7926712019-07-07 19:23:03 +0300118 SearchElementsModalComponent,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300119 AuditInfoModalComponent,
120 GenericFormComponent,
121 CheckboxFormControlComponent,
Ittay Sternf7926712019-07-07 19:23:03 +0300122 ElementsTableComponent,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300123 SvgComponent,
124 ErrorMsgComponent,
125 DynamicInputsComponent,
126 DynamicInputLabelPipe
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +0300127 ],
128 exports: [
129 PopoverComponent,
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +0300130 EllipsisComponent,
131 MessageBoxComponent,
132 FormControlErrorComponent,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300133 DropdownFormControlComponent,
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +0300134 InputPreventionPatternDirective,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300135 ClickOutsideDirective,
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +0300136 FormGeneralErrorsComponent,
137 SpinnerComponent,
138 NoContentMessageAndIconComponent,
139 ModelInformationComponent,
140 CapitalizeAndFormatPipe,
141 ServiceInfoPipe,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300142 OrderByPipe,
143 SafePipe,
144 ObjectToArrayPipe,
145 DataFilterPipe,
146 InputFormControlComponent,
147 FormControlMessageErrorComponent,
148 GenericFormPopupComponent,
Ittay Sternf7926712019-07-07 19:23:03 +0300149 SearchElementsModalComponent,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300150 AuditInfoModalComponent,
151 GenericFormComponent,
152 CheckboxFormControlComponent,
Ittay Sternf7926712019-07-07 19:23:03 +0300153 ElementsTableComponent,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300154 ErrorMsgComponent,
155 SvgComponent,
156 DynamicInputsComponent,
157 DynamicInputLabelPipe
158 ],
159 entryComponents : [
160 GenericFormPopupComponent,
Ittay Sternf7926712019-07-07 19:23:03 +0300161 SearchElementsModalComponent
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +0300162 ],
163 providers: [
164 ServiceInfoService,
165 MessageBoxService,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300166 SdcUiServices.ModalService,
167 SdcUiServices.LoaderService,
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +0300168 HttpInterceptorService,
169 IframeService,
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +0300170 DefaultDataGeneratorService,
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +0300171 ConfigurationService,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300172 GenericFormService,
173 FlagsResolve,
174 ViewEditResolver,
175 RetryResolver,
176 ServiceControlGenerator,
177 ServicePopupService,
178 VnfControlGenerator,
179 VfModuleControlGenerator,
180 BasicControlGenerator,
181 CustomValidators,
182 NetworkPopupService,
183 VfModulePopuopService,
184 NetworkControlGenerator,
185 VnfGroupControlGenerator,
186 VnfGroupPopupService,
187 BasicPopupService,
188 GenericFormPopupService,
189 FormGeneralErrorsService,
190 VnfPopupService,
191 AuditInfoModalComponentService,
192 VnfPopupService,
Ittay Sternf7926712019-07-07 19:23:03 +0300193 ElementsTableService,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300194 ErrorMsgService,
195 DataFilterPipe,
196 ModelInformationService,
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +0300197 ]
198})
199export class SharedModule {
200 static forRoot(): ModuleWithProviders {
201 return {
202 ngModule: SharedModule,
203 providers: [MessageBoxService]
204 };
205 }
206}