blob: f228389aafee050f4e605e15cc77c04700d2d162 [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";
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +0300102
103@NgModule({
104 imports: [
105 BrowserModule,
106 HttpClientModule,
107 CommonModule,
108 RouterModule,
109 PopoverModule.forRoot(),
Ittay Stern6f900cc2018-08-29 17:01:32 +0300110 FeatureFlagModule.forRoot(),
111 FormsModule,
112 ReactiveFormsModule,
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +0300113 SdcUiComponentsModule,
Yoav Schneiderman32797212020-01-15 15:32:10 +0200114 TooltipModule,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300115 AngularMultiSelectModule,
116 BootstrapModalModule,
117 DataTableModule,
Yoav Schneiderman3f216a52020-01-22 11:07:00 +0200118 ModalModule.forRoot(),
Rachitha Ramappa226ef712020-09-23 12:42:19 +0530119 FileUploadModule,
120 ResizableModule
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +0300121 ],
122 declarations: [
123 PopoverComponent,
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +0300124 EllipsisComponent,
125 MessageBoxComponent,
126 FormControlErrorComponent,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300127 DropdownFormControlComponent,
128 MultiselectFormControlComponent,
129 FileFormControlComponent,
130 NumberFormControlComponent,
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +0300131 InputPreventionPatternDirective,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300132 ClickOutsideDirective,
Yoav Schneiderman32797212020-01-15 15:32:10 +0200133 TooltipDirective,
Yoav Schneiderman4ef3ee72020-01-08 14:46:14 +0200134 CustomRippleClickAnimationDirective,
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +0300135 FormGeneralErrorsComponent,
136 SpinnerComponent,
137 NoContentMessageAndIconComponent,
138 ModelInformationComponent,
139 CapitalizeAndFormatPipe,
Rachitha Ramappa226ef712020-09-23 12:42:19 +0530140 SpaceToUnderscorePipe,
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +0300141 ServiceInfoPipe,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300142 OrderByPipe,
143 SafePipe,
144 ObjectToArrayPipe,
145 DataFilterPipe,
Eylon Malind00cf802019-12-03 12:12:38 +0200146 SearchFilterPipe,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300147 InputFormControlComponent,
148 FormControlMessageErrorComponent,
149 GenericFormPopupComponent,
Ittay Sternf7926712019-07-07 19:23:03 +0300150 SearchElementsModalComponent,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300151 AuditInfoModalComponent,
152 GenericFormComponent,
153 CheckboxFormControlComponent,
Ittay Sternf7926712019-07-07 19:23:03 +0300154 ElementsTableComponent,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300155 SvgComponent,
156 ErrorMsgComponent,
157 DynamicInputsComponent,
Yoav Schneiderman26034812019-12-03 12:55:39 +0200158 DynamicInputLabelPipe,
Yoav Schneiderman4ef3ee72020-01-08 14:46:14 +0200159 InstantiationTemplatesModalComponent,
160 ModalComponent,
161 ModalCloseButtonComponent,
162 CustomButtonComponent,
Yoav Schneiderman32797212020-01-15 15:32:10 +0200163 CustomModalButtonComponent,
164 LoaderComponent,
165 SvgIconComponent,
Yoav Schneiderman3f216a52020-01-22 11:07:00 +0200166 TooltipTemplateComponent,
167 UploadFilesLinkComponent
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +0300168 ],
169 exports: [
170 PopoverComponent,
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +0300171 EllipsisComponent,
172 MessageBoxComponent,
173 FormControlErrorComponent,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300174 DropdownFormControlComponent,
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +0300175 InputPreventionPatternDirective,
Yoav Schneiderman4ef3ee72020-01-08 14:46:14 +0200176 CustomRippleClickAnimationDirective,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300177 ClickOutsideDirective,
Yoav Schneiderman32797212020-01-15 15:32:10 +0200178 TooltipDirective,
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +0300179 FormGeneralErrorsComponent,
180 SpinnerComponent,
181 NoContentMessageAndIconComponent,
182 ModelInformationComponent,
183 CapitalizeAndFormatPipe,
Rachitha Ramappa226ef712020-09-23 12:42:19 +0530184 SpaceToUnderscorePipe,
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +0300185 ServiceInfoPipe,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300186 OrderByPipe,
187 SafePipe,
188 ObjectToArrayPipe,
189 DataFilterPipe,
Eylon Malind00cf802019-12-03 12:12:38 +0200190 SearchFilterPipe,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300191 InputFormControlComponent,
192 FormControlMessageErrorComponent,
193 GenericFormPopupComponent,
Ittay Sternf7926712019-07-07 19:23:03 +0300194 SearchElementsModalComponent,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300195 AuditInfoModalComponent,
196 GenericFormComponent,
197 CheckboxFormControlComponent,
Ittay Sternf7926712019-07-07 19:23:03 +0300198 ElementsTableComponent,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300199 ErrorMsgComponent,
200 SvgComponent,
201 DynamicInputsComponent,
Yoav Schneiderman4ef3ee72020-01-08 14:46:14 +0200202 DynamicInputLabelPipe,
203 ModalComponent,
204 ModalCloseButtonComponent,
205 CustomButtonComponent,
Yoav Schneiderman32797212020-01-15 15:32:10 +0200206 CustomModalButtonComponent,
207 LoaderComponent,
208 SvgIconComponent,
Yoav Schneiderman3f216a52020-01-22 11:07:00 +0200209 TooltipTemplateComponent,
210 UploadFilesLinkComponent
Ittay Stern6f900cc2018-08-29 17:01:32 +0300211 ],
212 entryComponents : [
213 GenericFormPopupComponent,
Yoav Schneiderman26034812019-12-03 12:55:39 +0200214 SearchElementsModalComponent,
Yoav Schneiderman4ef3ee72020-01-08 14:46:14 +0200215 InstantiationTemplatesModalComponent,
216 DuplicateVnfComponent,
217 ModalComponent
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +0300218 ],
219 providers: [
220 ServiceInfoService,
221 MessageBoxService,
Yoav Schneiderman4ef3ee72020-01-08 14:46:14 +0200222 CreateDynamicComponentService,
223 ModalService,
Yoav Schneiderman32797212020-01-15 15:32:10 +0200224 LoaderService,
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +0300225 HttpInterceptorService,
226 IframeService,
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +0300227 DefaultDataGeneratorService,
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +0300228 ConfigurationService,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300229 GenericFormService,
230 FlagsResolve,
231 ViewEditResolver,
232 RetryResolver,
Alexey Sandler9e65dc02019-12-03 13:04:42 +0200233 RecreateResolver,
234 InstantiationTemplatesService,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300235 ServiceControlGenerator,
236 ServicePopupService,
237 VnfControlGenerator,
238 VfModuleControlGenerator,
Yoav Schneiderman4c87eca2019-12-18 21:04:38 +0200239 ControlGeneratorUtil,
240 SharedControllersService,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300241 CustomValidators,
242 NetworkPopupService,
Amir Skalka8d17bc32019-12-10 16:47:11 +0200243 VfModulePopupService,
Sara Weisseed69432019-11-20 14:50:33 +0200244 VfModuleUpgradePopupService,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300245 NetworkControlGenerator,
246 VnfGroupControlGenerator,
247 VnfGroupPopupService,
248 BasicPopupService,
249 GenericFormPopupService,
250 FormGeneralErrorsService,
251 VnfPopupService,
Mateusz Gołuchowski1b93f302020-10-07 12:06:13 +0200252 PnfPopupService,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300253 AuditInfoModalComponentService,
254 VnfPopupService,
Ittay Sternf7926712019-07-07 19:23:03 +0300255 ElementsTableService,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300256 ErrorMsgService,
257 DataFilterPipe,
Eylon Malind00cf802019-12-03 12:12:38 +0200258 SearchFilterPipe,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300259 ModelInformationService,
Yoav Schneiderman26034812019-12-03 12:55:39 +0200260 MultiselectFormControlService,
Yoav Schneiderman32797212020-01-15 15:32:10 +0200261 InstantiationTemplatesModalService,
Yoav Schneiderman3f216a52020-01-22 11:07:00 +0200262 LoaderService,
263 MessageModal
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +0300264 ]
265})
266export class SharedModule {
267 static forRoot(): ModuleWithProviders {
268 return {
269 ngModule: SharedModule,
Rachitha Ramappa226ef712020-09-23 12:42:19 +0530270 providers: [MessageBoxService, DatePipe, SpaceToUnderscorePipe]
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +0300271 };
272 }
273}