blob: 0f7c920604aec37549954ec1b1b68e75263bdbf9 [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";
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";
52import {SdcUiComponentsModule, SdcUiServices} from "onap-ui-angular";
53import {SafePipe} from "./pipes/safe/safe.pipe";
54import {ViewEditResolver} from "./resolvers/viewEdit/viewEdit.resolver";
55import {FlagsResolve} from "./resolvers/flag/flag.resolver";
56import {FeatureFlagModule} from "../featureFlag/featureFlag.module";
57import {VnfGroupPopupService} from "./components/genericFormPopup/genericFormServices/vnfGroup/vnfGroup.popup.service";
58import {VnfGroupControlGenerator} from "./components/genericForm/formControlsServices/vnfGroupGenerator/vnfGroup.control.generator";
59import {AuditInfoModalComponent} from "./components/auditInfoModal/auditInfoModal.component";
60import {BootstrapModalModule} from 'ng2-bootstrap-modal';
61import {DataTableModule} from "angular2-datatable";
62import {AuditInfoModalComponentService} from "./components/auditInfoModal/auditInfoModal.component.service";
Ittay Sternf7926712019-07-07 19:23:03 +030063import {SearchElementsModalComponent} from "./components/searchMembersModal/search-elements-modal.component";
64import {ElementsTableComponent} from "./components/searchMembersModal/members-table/elements-table.component";
65import {ElementsTableService} from "./components/searchMembersModal/members-table/elements-table.service";
Ittay Stern6f900cc2018-08-29 17:01:32 +030066import {ObjectToArrayPipe} from "./pipes/objectToArray/objectToArray.pipe";
67import {DataFilterPipe} from "./pipes/dataFilter/data-filter.pipe";
68import {SvgComponent} from "./components/svg/svg-component";
69import {ErrorMsgComponent} from './components/error-msg/error-msg.component';
70import {ErrorMsgService} from "./components/error-msg/error-msg.service";
71import {RetryResolver} from "./resolvers/retry/retry.resolver";
72import {ClickOutsideDirective} from "./directives/clickOutside/clickOutside.directive";
73import {DynamicInputsComponent} from "./components/dynamic-inputs/dynamic-inputs.component";
74import {DynamicInputLabelPipe} from "./pipes/dynamicInputLabel/dynamic-input-label.pipe";
75import {ModelInformationService} from "./components/model-information/model-information.service";
Yoav Schneiderman091343a2019-11-20 16:50:45 +020076import {MultiselectFormControlService} from "./components/formControls/component/multiselect/multiselect.formControl.service";
Yoav Schneiderman26034812019-12-03 12:55:39 +020077import {InstantiationTemplatesModalComponent} from "./components/genericFormPopup/instantiationTemplatesModal/instantiation.templates.modal.component";
78import {InstantiationTemplatesModalService} from "./components/genericFormPopup/instantiationTemplatesModal/instantiation.templates.modal.service";
Eylon Malind00cf802019-12-03 12:12:38 +020079import {SearchFilterPipe} from "./pipes/searchFilter/search-filter.pipe";
Alexey Sandler9e65dc02019-12-03 13:04:42 +020080import {RecreateResolver} from "./resolvers/recreate/recreate.resolver";
81import {InstantiationTemplatesService} from "./services/templateService/instantiationTemplates.service";
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +030082
83
84@NgModule({
85 imports: [
86 BrowserModule,
87 HttpClientModule,
88 CommonModule,
89 RouterModule,
90 PopoverModule.forRoot(),
Ittay Stern6f900cc2018-08-29 17:01:32 +030091 FeatureFlagModule.forRoot(),
92 FormsModule,
93 ReactiveFormsModule,
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +030094 TooltipModule,
95 SdcUiComponentsModule,
Ittay Stern6f900cc2018-08-29 17:01:32 +030096 AngularMultiSelectModule,
97 BootstrapModalModule,
98 DataTableModule,
99 ModalModule.forRoot()
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +0300100 ],
101 declarations: [
102 PopoverComponent,
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +0300103 EllipsisComponent,
104 MessageBoxComponent,
105 FormControlErrorComponent,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300106 DropdownFormControlComponent,
107 MultiselectFormControlComponent,
108 FileFormControlComponent,
109 NumberFormControlComponent,
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +0300110 InputPreventionPatternDirective,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300111 ClickOutsideDirective,
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +0300112 FormGeneralErrorsComponent,
113 SpinnerComponent,
114 NoContentMessageAndIconComponent,
115 ModelInformationComponent,
116 CapitalizeAndFormatPipe,
117 ServiceInfoPipe,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300118 OrderByPipe,
119 SafePipe,
120 ObjectToArrayPipe,
121 DataFilterPipe,
Eylon Malind00cf802019-12-03 12:12:38 +0200122 SearchFilterPipe,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300123 InputFormControlComponent,
124 FormControlMessageErrorComponent,
125 GenericFormPopupComponent,
Ittay Sternf7926712019-07-07 19:23:03 +0300126 SearchElementsModalComponent,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300127 AuditInfoModalComponent,
128 GenericFormComponent,
129 CheckboxFormControlComponent,
Ittay Sternf7926712019-07-07 19:23:03 +0300130 ElementsTableComponent,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300131 SvgComponent,
132 ErrorMsgComponent,
133 DynamicInputsComponent,
Yoav Schneiderman26034812019-12-03 12:55:39 +0200134 DynamicInputLabelPipe,
135 InstantiationTemplatesModalComponent
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +0300136 ],
137 exports: [
138 PopoverComponent,
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +0300139 EllipsisComponent,
140 MessageBoxComponent,
141 FormControlErrorComponent,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300142 DropdownFormControlComponent,
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +0300143 InputPreventionPatternDirective,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300144 ClickOutsideDirective,
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +0300145 FormGeneralErrorsComponent,
146 SpinnerComponent,
147 NoContentMessageAndIconComponent,
148 ModelInformationComponent,
149 CapitalizeAndFormatPipe,
150 ServiceInfoPipe,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300151 OrderByPipe,
152 SafePipe,
153 ObjectToArrayPipe,
154 DataFilterPipe,
Eylon Malind00cf802019-12-03 12:12:38 +0200155 SearchFilterPipe,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300156 InputFormControlComponent,
157 FormControlMessageErrorComponent,
158 GenericFormPopupComponent,
Ittay Sternf7926712019-07-07 19:23:03 +0300159 SearchElementsModalComponent,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300160 AuditInfoModalComponent,
161 GenericFormComponent,
162 CheckboxFormControlComponent,
Ittay Sternf7926712019-07-07 19:23:03 +0300163 ElementsTableComponent,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300164 ErrorMsgComponent,
165 SvgComponent,
166 DynamicInputsComponent,
167 DynamicInputLabelPipe
168 ],
169 entryComponents : [
170 GenericFormPopupComponent,
Yoav Schneiderman26034812019-12-03 12:55:39 +0200171 SearchElementsModalComponent,
172 InstantiationTemplatesModalComponent
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +0300173 ],
174 providers: [
175 ServiceInfoService,
176 MessageBoxService,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300177 SdcUiServices.ModalService,
178 SdcUiServices.LoaderService,
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +0300179 HttpInterceptorService,
180 IframeService,
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +0300181 DefaultDataGeneratorService,
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +0300182 ConfigurationService,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300183 GenericFormService,
184 FlagsResolve,
185 ViewEditResolver,
186 RetryResolver,
Alexey Sandler9e65dc02019-12-03 13:04:42 +0200187 RecreateResolver,
188 InstantiationTemplatesService,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300189 ServiceControlGenerator,
190 ServicePopupService,
191 VnfControlGenerator,
192 VfModuleControlGenerator,
193 BasicControlGenerator,
194 CustomValidators,
195 NetworkPopupService,
Amir Skalka8d17bc32019-12-10 16:47:11 +0200196 VfModulePopupService,
Sara Weisseed69432019-11-20 14:50:33 +0200197 VfModuleUpgradePopupService,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300198 NetworkControlGenerator,
199 VnfGroupControlGenerator,
200 VnfGroupPopupService,
201 BasicPopupService,
202 GenericFormPopupService,
203 FormGeneralErrorsService,
204 VnfPopupService,
205 AuditInfoModalComponentService,
206 VnfPopupService,
Ittay Sternf7926712019-07-07 19:23:03 +0300207 ElementsTableService,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300208 ErrorMsgService,
209 DataFilterPipe,
Eylon Malind00cf802019-12-03 12:12:38 +0200210 SearchFilterPipe,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300211 ModelInformationService,
Yoav Schneiderman26034812019-12-03 12:55:39 +0200212 MultiselectFormControlService,
213 InstantiationTemplatesModalService
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +0300214 ]
215})
216export class SharedModule {
217 static forRoot(): ModuleWithProviders {
218 return {
219 ngModule: SharedModule,
220 providers: [MessageBoxService]
221 };
222 }
223}