blob: e4238e079283d33533c98125e8602e6e8811089b [file] [log] [blame]
Ittay Stern6f900cc2018-08-29 17:01:32 +03001import {ModuleWithProviders, NgModule} from '@angular/core';
Rachitha Ramappa226ef712020-09-23 12:42:19 +05302import {CommonModule, DatePipe} from '@angular/common';
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +03003import {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";
Yoav Schneiderman4c87eca2019-12-18 21:04:38 +020035import {ControlGeneratorUtil} from "./components/genericForm/formControlsServices/control.generator.util.service";
Ittay Stern6f900cc2018-08-29 17:01:32 +030036import {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";
Amir Skalka8d17bc32019-12-10 16:47:11 +020044import {VfModulePopupService} from "./components/genericFormPopup/genericFormServices/vfModule/vfModule.popup.service";
Sara Weisseed69432019-11-20 14:50:33 +020045import {VfModuleUpgradePopupService} from "./components/genericFormPopup/genericFormServices/vfModuleUpgrade/vfModule.upgrade.popuop.service";
Ittay Stern6f900cc2018-08-29 17:01:32 +030046import {VfModuleControlGenerator} from "./components/genericForm/formControlsServices/vfModuleGenerator/vfModule.control.generator";
47import {OrderByPipe} from "./pipes/order/orderBy.pipe";
48import {ServicePopupService} from "./components/genericFormPopup/genericFormServices/service/service.popup.service";
49import {GenericFormPopupService} from "./components/genericFormPopup/generic-form-popup.service";
50import {FormGeneralErrorsService} from "./components/formGeneralErrors/formGeneralErrors.service";
51import {VnfPopupService} from "./components/genericFormPopup/genericFormServices/vnf/vnf.popup.service";
Ittay Stern6f900cc2018-08-29 17:01:32 +030052import {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";
Yoav Schneiderman091343a2019-11-20 16:50:45 +020075import {MultiselectFormControlService} from "./components/formControls/component/multiselect/multiselect.formControl.service";
Yoav Schneiderman26034812019-12-03 12:55:39 +020076import {InstantiationTemplatesModalComponent} from "./components/genericFormPopup/instantiationTemplatesModal/instantiation.templates.modal.component";
77import {InstantiationTemplatesModalService} from "./components/genericFormPopup/instantiationTemplatesModal/instantiation.templates.modal.service";
Eylon Malind00cf802019-12-03 12:12:38 +020078import {SearchFilterPipe} from "./pipes/searchFilter/search-filter.pipe";
Alexey Sandler9e65dc02019-12-03 13:04:42 +020079import {RecreateResolver} from "./resolvers/recreate/recreate.resolver";
80import {InstantiationTemplatesService} from "./services/templateService/instantiationTemplates.service";
Yoav Schneiderman4c87eca2019-12-18 21:04:38 +020081import {SharedControllersService} from "./components/genericForm/formControlsServices/sharedControlles/shared.controllers.service";
Yoav Schneiderman4ef3ee72020-01-08 14:46:14 +020082import {DuplicateVnfComponent} from "../drawingBoard/service-planning/duplicate/duplicate-vnf.component";
83import {ModalService} from "./components/customModal/services/modal.service";
84import {CreateDynamicComponentService} from "./components/customModal/services/create-dynamic-component.service";
85import {ModalComponent} from "./components/customModal/modal.component";
86import {ModalCloseButtonComponent} from './components/customModal/components/modalCloseButton/modal-close-button.component';
87import {CustomButtonComponent} from "./components/customButton/custom-button.component";
88import {CustomModalButtonComponent} from "./components/customModal/components/modalButton/modal-button.component";
89import {CustomRippleClickAnimationDirective} from "./components/customModal/directives/ripple-click.animation.directive";
Yoav Schneiderman32797212020-01-15 15:32:10 +020090import {LoaderComponent} from "./components/customLoader/custom-loader.component";
91import {LoaderService} from "./components/customLoader/custom-loader.service";
92import {SvgIconComponent} from "./components/customIcon/custom-icon.component";
93import {TooltipTemplateComponent} from "./components/customTooltip/custom-tooltip.component";
94import {TooltipDirective} from "./components/customTooltip/tooltip.directive";
95import {SdcUiComponentsModule} from "onap-ui-angular";
Yoav Schneiderman3f216a52020-01-22 11:07:00 +020096import {UploadFilesLinkComponent} from "./components/genericForm/genericFormSharedComponent/uploadFiles/upload-files-link.component";
97import { FileUploadModule } from 'ng2-file-upload';
98import {MessageModal} from "./components/messageModal/message-modal.service";
Rachitha Ramappa226ef712020-09-23 12:42:19 +053099import {SpaceToUnderscorePipe} from "./pipes/spaceToUnderscore/space-to-underscore.pipe";
100import {ResizableModule} from 'angular-resizable-element';
Mateusz Gołuchowski1b93f302020-10-07 12:06:13 +0200101import {PnfPopupService} from "./components/genericFormPopup/genericFormServices/pnf/pnf.popup.service";
Mateusz Gołuchowskid74f6cc2020-11-05 10:11:08 +0100102import {PnfControlGenerator} from "./components/genericForm/formControlsServices/pnfGenerator/pnf.control.generator";
103
104
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +0300105
106@NgModule({
107 imports: [
108 BrowserModule,
109 HttpClientModule,
110 CommonModule,
111 RouterModule,
112 PopoverModule.forRoot(),
Ittay Stern6f900cc2018-08-29 17:01:32 +0300113 FeatureFlagModule.forRoot(),
114 FormsModule,
115 ReactiveFormsModule,
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +0300116 SdcUiComponentsModule,
Yoav Schneiderman32797212020-01-15 15:32:10 +0200117 TooltipModule,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300118 AngularMultiSelectModule,
119 BootstrapModalModule,
120 DataTableModule,
Yoav Schneiderman3f216a52020-01-22 11:07:00 +0200121 ModalModule.forRoot(),
Rachitha Ramappa226ef712020-09-23 12:42:19 +0530122 FileUploadModule,
123 ResizableModule
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +0300124 ],
125 declarations: [
126 PopoverComponent,
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +0300127 EllipsisComponent,
128 MessageBoxComponent,
129 FormControlErrorComponent,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300130 DropdownFormControlComponent,
131 MultiselectFormControlComponent,
132 FileFormControlComponent,
133 NumberFormControlComponent,
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +0300134 InputPreventionPatternDirective,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300135 ClickOutsideDirective,
Yoav Schneiderman32797212020-01-15 15:32:10 +0200136 TooltipDirective,
Yoav Schneiderman4ef3ee72020-01-08 14:46:14 +0200137 CustomRippleClickAnimationDirective,
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +0300138 FormGeneralErrorsComponent,
139 SpinnerComponent,
140 NoContentMessageAndIconComponent,
141 ModelInformationComponent,
142 CapitalizeAndFormatPipe,
Rachitha Ramappa226ef712020-09-23 12:42:19 +0530143 SpaceToUnderscorePipe,
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +0300144 ServiceInfoPipe,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300145 OrderByPipe,
146 SafePipe,
147 ObjectToArrayPipe,
148 DataFilterPipe,
Eylon Malind00cf802019-12-03 12:12:38 +0200149 SearchFilterPipe,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300150 InputFormControlComponent,
151 FormControlMessageErrorComponent,
152 GenericFormPopupComponent,
Ittay Sternf7926712019-07-07 19:23:03 +0300153 SearchElementsModalComponent,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300154 AuditInfoModalComponent,
155 GenericFormComponent,
156 CheckboxFormControlComponent,
Ittay Sternf7926712019-07-07 19:23:03 +0300157 ElementsTableComponent,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300158 SvgComponent,
159 ErrorMsgComponent,
160 DynamicInputsComponent,
Yoav Schneiderman26034812019-12-03 12:55:39 +0200161 DynamicInputLabelPipe,
Yoav Schneiderman4ef3ee72020-01-08 14:46:14 +0200162 InstantiationTemplatesModalComponent,
163 ModalComponent,
164 ModalCloseButtonComponent,
165 CustomButtonComponent,
Yoav Schneiderman32797212020-01-15 15:32:10 +0200166 CustomModalButtonComponent,
167 LoaderComponent,
168 SvgIconComponent,
Yoav Schneiderman3f216a52020-01-22 11:07:00 +0200169 TooltipTemplateComponent,
170 UploadFilesLinkComponent
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +0300171 ],
172 exports: [
173 PopoverComponent,
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +0300174 EllipsisComponent,
175 MessageBoxComponent,
176 FormControlErrorComponent,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300177 DropdownFormControlComponent,
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +0300178 InputPreventionPatternDirective,
Yoav Schneiderman4ef3ee72020-01-08 14:46:14 +0200179 CustomRippleClickAnimationDirective,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300180 ClickOutsideDirective,
Yoav Schneiderman32797212020-01-15 15:32:10 +0200181 TooltipDirective,
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +0300182 FormGeneralErrorsComponent,
183 SpinnerComponent,
184 NoContentMessageAndIconComponent,
185 ModelInformationComponent,
186 CapitalizeAndFormatPipe,
Rachitha Ramappa226ef712020-09-23 12:42:19 +0530187 SpaceToUnderscorePipe,
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +0300188 ServiceInfoPipe,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300189 OrderByPipe,
190 SafePipe,
191 ObjectToArrayPipe,
192 DataFilterPipe,
Eylon Malind00cf802019-12-03 12:12:38 +0200193 SearchFilterPipe,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300194 InputFormControlComponent,
195 FormControlMessageErrorComponent,
196 GenericFormPopupComponent,
Ittay Sternf7926712019-07-07 19:23:03 +0300197 SearchElementsModalComponent,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300198 AuditInfoModalComponent,
199 GenericFormComponent,
200 CheckboxFormControlComponent,
Ittay Sternf7926712019-07-07 19:23:03 +0300201 ElementsTableComponent,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300202 ErrorMsgComponent,
203 SvgComponent,
204 DynamicInputsComponent,
Yoav Schneiderman4ef3ee72020-01-08 14:46:14 +0200205 DynamicInputLabelPipe,
206 ModalComponent,
207 ModalCloseButtonComponent,
208 CustomButtonComponent,
Yoav Schneiderman32797212020-01-15 15:32:10 +0200209 CustomModalButtonComponent,
210 LoaderComponent,
211 SvgIconComponent,
Yoav Schneiderman3f216a52020-01-22 11:07:00 +0200212 TooltipTemplateComponent,
213 UploadFilesLinkComponent
Ittay Stern6f900cc2018-08-29 17:01:32 +0300214 ],
215 entryComponents : [
216 GenericFormPopupComponent,
Yoav Schneiderman26034812019-12-03 12:55:39 +0200217 SearchElementsModalComponent,
Yoav Schneiderman4ef3ee72020-01-08 14:46:14 +0200218 InstantiationTemplatesModalComponent,
219 DuplicateVnfComponent,
220 ModalComponent
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +0300221 ],
222 providers: [
223 ServiceInfoService,
224 MessageBoxService,
Yoav Schneiderman4ef3ee72020-01-08 14:46:14 +0200225 CreateDynamicComponentService,
226 ModalService,
Yoav Schneiderman32797212020-01-15 15:32:10 +0200227 LoaderService,
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +0300228 HttpInterceptorService,
229 IframeService,
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +0300230 DefaultDataGeneratorService,
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +0300231 ConfigurationService,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300232 GenericFormService,
233 FlagsResolve,
234 ViewEditResolver,
235 RetryResolver,
Alexey Sandler9e65dc02019-12-03 13:04:42 +0200236 RecreateResolver,
237 InstantiationTemplatesService,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300238 ServiceControlGenerator,
239 ServicePopupService,
240 VnfControlGenerator,
Mateusz Gołuchowskid74f6cc2020-11-05 10:11:08 +0100241 PnfControlGenerator,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300242 VfModuleControlGenerator,
Yoav Schneiderman4c87eca2019-12-18 21:04:38 +0200243 ControlGeneratorUtil,
244 SharedControllersService,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300245 CustomValidators,
246 NetworkPopupService,
Amir Skalka8d17bc32019-12-10 16:47:11 +0200247 VfModulePopupService,
Sara Weisseed69432019-11-20 14:50:33 +0200248 VfModuleUpgradePopupService,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300249 NetworkControlGenerator,
250 VnfGroupControlGenerator,
251 VnfGroupPopupService,
252 BasicPopupService,
253 GenericFormPopupService,
254 FormGeneralErrorsService,
255 VnfPopupService,
Mateusz Gołuchowski1b93f302020-10-07 12:06:13 +0200256 PnfPopupService,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300257 AuditInfoModalComponentService,
258 VnfPopupService,
Ittay Sternf7926712019-07-07 19:23:03 +0300259 ElementsTableService,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300260 ErrorMsgService,
261 DataFilterPipe,
Eylon Malind00cf802019-12-03 12:12:38 +0200262 SearchFilterPipe,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300263 ModelInformationService,
Yoav Schneiderman26034812019-12-03 12:55:39 +0200264 MultiselectFormControlService,
Yoav Schneiderman32797212020-01-15 15:32:10 +0200265 InstantiationTemplatesModalService,
Yoav Schneiderman3f216a52020-01-22 11:07:00 +0200266 LoaderService,
267 MessageModal
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +0300268 ]
269})
270export class SharedModule {
271 static forRoot(): ModuleWithProviders {
272 return {
273 ngModule: SharedModule,
Rachitha Ramappa226ef712020-09-23 12:42:19 +0530274 providers: [MessageBoxService, DatePipe, SpaceToUnderscorePipe]
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +0300275 };
276 }
277}