blob: b12ac435d6cc23b3268747bd06312360c0c1b120 [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";
Yoav Schneiderman091343a2019-11-20 16:50:45 +020076import {MultiselectFormControlService} from "./components/formControls/component/multiselect/multiselect.formControl.service";
Eylon Malind00cf802019-12-03 12:12:38 +020077import {SearchFilterPipe} from "./pipes/searchFilter/search-filter.pipe";
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +030078
79
80@NgModule({
81 imports: [
82 BrowserModule,
83 HttpClientModule,
84 CommonModule,
85 RouterModule,
86 PopoverModule.forRoot(),
Ittay Stern6f900cc2018-08-29 17:01:32 +030087 FeatureFlagModule.forRoot(),
88 FormsModule,
89 ReactiveFormsModule,
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +030090 TooltipModule,
91 SdcUiComponentsModule,
Ittay Stern6f900cc2018-08-29 17:01:32 +030092 AngularMultiSelectModule,
93 BootstrapModalModule,
94 DataTableModule,
95 ModalModule.forRoot()
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +030096 ],
97 declarations: [
98 PopoverComponent,
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +030099 EllipsisComponent,
100 MessageBoxComponent,
101 FormControlErrorComponent,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300102 DropdownFormControlComponent,
103 MultiselectFormControlComponent,
104 FileFormControlComponent,
105 NumberFormControlComponent,
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +0300106 InputPreventionPatternDirective,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300107 ClickOutsideDirective,
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +0300108 FormGeneralErrorsComponent,
109 SpinnerComponent,
110 NoContentMessageAndIconComponent,
111 ModelInformationComponent,
112 CapitalizeAndFormatPipe,
113 ServiceInfoPipe,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300114 OrderByPipe,
115 SafePipe,
116 ObjectToArrayPipe,
117 DataFilterPipe,
Eylon Malind00cf802019-12-03 12:12:38 +0200118 SearchFilterPipe,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300119 InputFormControlComponent,
120 FormControlMessageErrorComponent,
121 GenericFormPopupComponent,
Ittay Sternf7926712019-07-07 19:23:03 +0300122 SearchElementsModalComponent,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300123 AuditInfoModalComponent,
124 GenericFormComponent,
125 CheckboxFormControlComponent,
Ittay Sternf7926712019-07-07 19:23:03 +0300126 ElementsTableComponent,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300127 SvgComponent,
128 ErrorMsgComponent,
129 DynamicInputsComponent,
130 DynamicInputLabelPipe
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +0300131 ],
132 exports: [
133 PopoverComponent,
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +0300134 EllipsisComponent,
135 MessageBoxComponent,
136 FormControlErrorComponent,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300137 DropdownFormControlComponent,
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +0300138 InputPreventionPatternDirective,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300139 ClickOutsideDirective,
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +0300140 FormGeneralErrorsComponent,
141 SpinnerComponent,
142 NoContentMessageAndIconComponent,
143 ModelInformationComponent,
144 CapitalizeAndFormatPipe,
145 ServiceInfoPipe,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300146 OrderByPipe,
147 SafePipe,
148 ObjectToArrayPipe,
149 DataFilterPipe,
Eylon Malind00cf802019-12-03 12:12:38 +0200150 SearchFilterPipe,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300151 InputFormControlComponent,
152 FormControlMessageErrorComponent,
153 GenericFormPopupComponent,
Ittay Sternf7926712019-07-07 19:23:03 +0300154 SearchElementsModalComponent,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300155 AuditInfoModalComponent,
156 GenericFormComponent,
157 CheckboxFormControlComponent,
Ittay Sternf7926712019-07-07 19:23:03 +0300158 ElementsTableComponent,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300159 ErrorMsgComponent,
160 SvgComponent,
161 DynamicInputsComponent,
162 DynamicInputLabelPipe
163 ],
164 entryComponents : [
165 GenericFormPopupComponent,
Ittay Sternf7926712019-07-07 19:23:03 +0300166 SearchElementsModalComponent
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +0300167 ],
168 providers: [
169 ServiceInfoService,
170 MessageBoxService,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300171 SdcUiServices.ModalService,
172 SdcUiServices.LoaderService,
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +0300173 HttpInterceptorService,
174 IframeService,
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +0300175 DefaultDataGeneratorService,
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +0300176 ConfigurationService,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300177 GenericFormService,
178 FlagsResolve,
179 ViewEditResolver,
180 RetryResolver,
181 ServiceControlGenerator,
182 ServicePopupService,
183 VnfControlGenerator,
184 VfModuleControlGenerator,
185 BasicControlGenerator,
186 CustomValidators,
187 NetworkPopupService,
188 VfModulePopuopService,
Sara Weisseed69432019-11-20 14:50:33 +0200189 VfModuleUpgradePopupService,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300190 NetworkControlGenerator,
191 VnfGroupControlGenerator,
192 VnfGroupPopupService,
193 BasicPopupService,
194 GenericFormPopupService,
195 FormGeneralErrorsService,
196 VnfPopupService,
197 AuditInfoModalComponentService,
198 VnfPopupService,
Ittay Sternf7926712019-07-07 19:23:03 +0300199 ElementsTableService,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300200 ErrorMsgService,
201 DataFilterPipe,
Eylon Malind00cf802019-12-03 12:12:38 +0200202 SearchFilterPipe,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300203 ModelInformationService,
Yoav Schneiderman091343a2019-11-20 16:50:45 +0200204 MultiselectFormControlService
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +0300205 ]
206})
207export class SharedModule {
208 static forRoot(): ModuleWithProviders {
209 return {
210 ngModule: SharedModule,
211 providers: [MessageBoxService]
212 };
213 }
214}