blob: d486f29750834e486734dcd0ffac527538790478 [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";
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";
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +030076
77
78@NgModule({
79 imports: [
80 BrowserModule,
81 HttpClientModule,
82 CommonModule,
83 RouterModule,
84 PopoverModule.forRoot(),
Ittay Stern6f900cc2018-08-29 17:01:32 +030085 FeatureFlagModule.forRoot(),
86 FormsModule,
87 ReactiveFormsModule,
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +030088 TooltipModule,
89 SdcUiComponentsModule,
Ittay Stern6f900cc2018-08-29 17:01:32 +030090 AngularMultiSelectModule,
91 BootstrapModalModule,
92 DataTableModule,
93 ModalModule.forRoot()
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +030094 ],
95 declarations: [
96 PopoverComponent,
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +030097 EllipsisComponent,
98 MessageBoxComponent,
99 FormControlErrorComponent,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300100 DropdownFormControlComponent,
101 MultiselectFormControlComponent,
102 FileFormControlComponent,
103 NumberFormControlComponent,
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +0300104 InputPreventionPatternDirective,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300105 ClickOutsideDirective,
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +0300106 FormGeneralErrorsComponent,
107 SpinnerComponent,
108 NoContentMessageAndIconComponent,
109 ModelInformationComponent,
110 CapitalizeAndFormatPipe,
111 ServiceInfoPipe,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300112 OrderByPipe,
113 SafePipe,
114 ObjectToArrayPipe,
115 DataFilterPipe,
116 InputFormControlComponent,
117 FormControlMessageErrorComponent,
118 GenericFormPopupComponent,
Ittay Sternf7926712019-07-07 19:23:03 +0300119 SearchElementsModalComponent,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300120 AuditInfoModalComponent,
121 GenericFormComponent,
122 CheckboxFormControlComponent,
Ittay Sternf7926712019-07-07 19:23:03 +0300123 ElementsTableComponent,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300124 SvgComponent,
125 ErrorMsgComponent,
126 DynamicInputsComponent,
127 DynamicInputLabelPipe
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +0300128 ],
129 exports: [
130 PopoverComponent,
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +0300131 EllipsisComponent,
132 MessageBoxComponent,
133 FormControlErrorComponent,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300134 DropdownFormControlComponent,
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +0300135 InputPreventionPatternDirective,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300136 ClickOutsideDirective,
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +0300137 FormGeneralErrorsComponent,
138 SpinnerComponent,
139 NoContentMessageAndIconComponent,
140 ModelInformationComponent,
141 CapitalizeAndFormatPipe,
142 ServiceInfoPipe,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300143 OrderByPipe,
144 SafePipe,
145 ObjectToArrayPipe,
146 DataFilterPipe,
147 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 ErrorMsgComponent,
156 SvgComponent,
157 DynamicInputsComponent,
158 DynamicInputLabelPipe
159 ],
160 entryComponents : [
161 GenericFormPopupComponent,
Ittay Sternf7926712019-07-07 19:23:03 +0300162 SearchElementsModalComponent
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +0300163 ],
164 providers: [
165 ServiceInfoService,
166 MessageBoxService,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300167 SdcUiServices.ModalService,
168 SdcUiServices.LoaderService,
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +0300169 HttpInterceptorService,
170 IframeService,
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +0300171 DefaultDataGeneratorService,
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +0300172 ConfigurationService,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300173 GenericFormService,
174 FlagsResolve,
175 ViewEditResolver,
176 RetryResolver,
177 ServiceControlGenerator,
178 ServicePopupService,
179 VnfControlGenerator,
180 VfModuleControlGenerator,
181 BasicControlGenerator,
182 CustomValidators,
183 NetworkPopupService,
184 VfModulePopuopService,
Sara Weisseed69432019-11-20 14:50:33 +0200185 VfModuleUpgradePopupService,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300186 NetworkControlGenerator,
187 VnfGroupControlGenerator,
188 VnfGroupPopupService,
189 BasicPopupService,
190 GenericFormPopupService,
191 FormGeneralErrorsService,
192 VnfPopupService,
193 AuditInfoModalComponentService,
194 VnfPopupService,
Ittay Sternf7926712019-07-07 19:23:03 +0300195 ElementsTableService,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300196 ErrorMsgService,
197 DataFilterPipe,
198 ModelInformationService,
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +0300199 ]
200})
201export class SharedModule {
202 static forRoot(): ModuleWithProviders {
203 return {
204 ngModule: SharedModule,
205 providers: [MessageBoxService]
206 };
207 }
208}