Ittay Stern | 6f900cc | 2018-08-29 17:01:32 +0300 | [diff] [blame] | 1 | import {ModuleWithProviders, NgModule} from '@angular/core'; |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 2 | import {CommonModule} from '@angular/common'; |
| 3 | import {RouterModule} from '@angular/router'; |
Ittay Stern | 6f900cc | 2018-08-29 17:01:32 +0300 | [diff] [blame] | 4 | import {BrowserModule} from '@angular/platform-browser'; |
| 5 | import {HttpClientModule} from '@angular/common/http'; |
| 6 | import {ServiceInfoService} from './server/serviceInfo/serviceInfo.service'; |
| 7 | import {ModalModule, PopoverModule} from 'ngx-bootstrap'; |
| 8 | import {PopoverComponent} from './components/popover/popover.component'; |
| 9 | import {EllipsisComponent} from './components/ellipsis/ellipsis.component'; |
| 10 | import {MessageBoxComponent} from './components/messageBox/messageBox.component'; |
| 11 | import {MessageBoxService} from './components/messageBox/messageBox.service'; |
| 12 | import {HttpInterceptorService} from './utils/httpInterceptor/httpInterceptor.service'; |
| 13 | import {FormControlErrorComponent} from './components/formControlError/formControlError.component'; |
| 14 | import {DropdownFormControlComponent} from "./components/formControls/component/dropdown/dropdown.formControl.component"; |
| 15 | import {InputPreventionPatternDirective} from './directives/inputPrevention/inputPreventionPattern.directive'; |
| 16 | import {FormGeneralErrorsComponent} from './components/formGeneralErrors/formGeneralErrors.component'; |
| 17 | import {SpinnerComponent} from './components/spinner/spinner.component'; |
| 18 | import {NoContentMessageAndIconComponent} from './components/no-content-message-and-icon/no-content-message-and-icon.component'; |
| 19 | import {ModelInformationComponent} from './components/model-information/model-information.component'; |
| 20 | import {TooltipModule} from 'ngx-tooltip'; |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 21 | import {IframeService} from "./utils/iframe.service"; |
| 22 | import {CapitalizeAndFormatPipe} from "./pipes/capitalize/capitalize-and-format.pipe"; |
Ittay Stern | 6f900cc | 2018-08-29 17:01:32 +0300 | [diff] [blame] | 23 | import {DefaultDataGeneratorService} from './services/defaultDataServiceGenerator/default.data.generator.service'; |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 24 | import {ServiceInfoPipe} from "./pipes/serviceInfo/serviceInfo.pipe"; |
Ittay Stern | 6f900cc | 2018-08-29 17:01:32 +0300 | [diff] [blame] | 25 | import {ConfigurationService} from "./services/configuration.service"; |
| 26 | import {InputFormControlComponent} from "./components/formControls/component/input/input.formControl.component"; |
| 27 | import {MultiselectFormControlComponent} from "./components/formControls/component/multiselect/multiselect.formControl.component"; |
| 28 | import {FormsModule, ReactiveFormsModule} from "@angular/forms"; |
| 29 | import {FormControlMessageErrorComponent} from "./components/formControls/errorMessage/formControlMessageError.component"; |
| 30 | import {GenericFormPopupComponent} from "./components/genericFormPopup/generic-form-popup.component"; |
| 31 | import {CheckboxFormControlComponent} from "./components/formControls/component/checkbox/checkbox.formControl.component"; |
| 32 | import {GenericFormService} from "./components/genericForm/generic-form.service"; |
| 33 | import {GenericFormComponent} from "./components/genericForm/generic-form.component"; |
| 34 | import {ServiceControlGenerator} from "./components/genericForm/formControlsServices/service.control.generator"; |
| 35 | import {BasicControlGenerator} from "./components/genericForm/formControlsServices/basic.control.generator"; |
| 36 | import {CustomValidators} from "./validators/uniqueName/uniqueName.validator"; |
| 37 | import {FileFormControlComponent} from "./components/formControls/component/file/file.formControl.component"; |
| 38 | import {NumberFormControlComponent} from "./components/formControls/component/number/number.formControl.component"; |
| 39 | import {AngularMultiSelectModule} from 'angular2-multiselect-dropdown'; |
| 40 | import {VnfControlGenerator} from "./components/genericForm/formControlsServices/vnfGenerator/vnf.control.generator"; |
| 41 | import {NetworkPopupService} from "./components/genericFormPopup/genericFormServices/network/network.popup.service"; |
| 42 | import {NetworkControlGenerator} from "./components/genericForm/formControlsServices/networkGenerator/network.control.generator"; |
| 43 | import {BasicPopupService} from "./components/genericFormPopup/genericFormServices/basic.popup.service"; |
Amir Skalka | 8d17bc3 | 2019-12-10 16:47:11 +0200 | [diff] [blame^] | 44 | import {VfModulePopupService} from "./components/genericFormPopup/genericFormServices/vfModule/vfModule.popup.service"; |
Sara Weiss | eed6943 | 2019-11-20 14:50:33 +0200 | [diff] [blame] | 45 | import {VfModuleUpgradePopupService} from "./components/genericFormPopup/genericFormServices/vfModuleUpgrade/vfModule.upgrade.popuop.service"; |
Ittay Stern | 6f900cc | 2018-08-29 17:01:32 +0300 | [diff] [blame] | 46 | import {VfModuleControlGenerator} from "./components/genericForm/formControlsServices/vfModuleGenerator/vfModule.control.generator"; |
| 47 | import {OrderByPipe} from "./pipes/order/orderBy.pipe"; |
| 48 | import {ServicePopupService} from "./components/genericFormPopup/genericFormServices/service/service.popup.service"; |
| 49 | import {GenericFormPopupService} from "./components/genericFormPopup/generic-form-popup.service"; |
| 50 | import {FormGeneralErrorsService} from "./components/formGeneralErrors/formGeneralErrors.service"; |
| 51 | import {VnfPopupService} from "./components/genericFormPopup/genericFormServices/vnf/vnf.popup.service"; |
| 52 | import {SdcUiComponentsModule, SdcUiServices} from "onap-ui-angular"; |
| 53 | import {SafePipe} from "./pipes/safe/safe.pipe"; |
| 54 | import {ViewEditResolver} from "./resolvers/viewEdit/viewEdit.resolver"; |
| 55 | import {FlagsResolve} from "./resolvers/flag/flag.resolver"; |
| 56 | import {FeatureFlagModule} from "../featureFlag/featureFlag.module"; |
| 57 | import {VnfGroupPopupService} from "./components/genericFormPopup/genericFormServices/vnfGroup/vnfGroup.popup.service"; |
| 58 | import {VnfGroupControlGenerator} from "./components/genericForm/formControlsServices/vnfGroupGenerator/vnfGroup.control.generator"; |
| 59 | import {AuditInfoModalComponent} from "./components/auditInfoModal/auditInfoModal.component"; |
| 60 | import {BootstrapModalModule} from 'ng2-bootstrap-modal'; |
| 61 | import {DataTableModule} from "angular2-datatable"; |
| 62 | import {AuditInfoModalComponentService} from "./components/auditInfoModal/auditInfoModal.component.service"; |
Ittay Stern | f792671 | 2019-07-07 19:23:03 +0300 | [diff] [blame] | 63 | import {SearchElementsModalComponent} from "./components/searchMembersModal/search-elements-modal.component"; |
| 64 | import {ElementsTableComponent} from "./components/searchMembersModal/members-table/elements-table.component"; |
| 65 | import {ElementsTableService} from "./components/searchMembersModal/members-table/elements-table.service"; |
Ittay Stern | 6f900cc | 2018-08-29 17:01:32 +0300 | [diff] [blame] | 66 | import {ObjectToArrayPipe} from "./pipes/objectToArray/objectToArray.pipe"; |
| 67 | import {DataFilterPipe} from "./pipes/dataFilter/data-filter.pipe"; |
| 68 | import {SvgComponent} from "./components/svg/svg-component"; |
| 69 | import {ErrorMsgComponent} from './components/error-msg/error-msg.component'; |
| 70 | import {ErrorMsgService} from "./components/error-msg/error-msg.service"; |
| 71 | import {RetryResolver} from "./resolvers/retry/retry.resolver"; |
| 72 | import {ClickOutsideDirective} from "./directives/clickOutside/clickOutside.directive"; |
| 73 | import {DynamicInputsComponent} from "./components/dynamic-inputs/dynamic-inputs.component"; |
| 74 | import {DynamicInputLabelPipe} from "./pipes/dynamicInputLabel/dynamic-input-label.pipe"; |
| 75 | import {ModelInformationService} from "./components/model-information/model-information.service"; |
Yoav Schneiderman | 091343a | 2019-11-20 16:50:45 +0200 | [diff] [blame] | 76 | import {MultiselectFormControlService} from "./components/formControls/component/multiselect/multiselect.formControl.service"; |
Yoav Schneiderman | 2603481 | 2019-12-03 12:55:39 +0200 | [diff] [blame] | 77 | import {InstantiationTemplatesModalComponent} from "./components/genericFormPopup/instantiationTemplatesModal/instantiation.templates.modal.component"; |
| 78 | import {InstantiationTemplatesModalService} from "./components/genericFormPopup/instantiationTemplatesModal/instantiation.templates.modal.service"; |
Eylon Malin | d00cf80 | 2019-12-03 12:12:38 +0200 | [diff] [blame] | 79 | import {SearchFilterPipe} from "./pipes/searchFilter/search-filter.pipe"; |
Alexey Sandler | 9e65dc0 | 2019-12-03 13:04:42 +0200 | [diff] [blame] | 80 | import {RecreateResolver} from "./resolvers/recreate/recreate.resolver"; |
| 81 | import {InstantiationTemplatesService} from "./services/templateService/instantiationTemplates.service"; |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 82 | |
| 83 | |
| 84 | @NgModule({ |
| 85 | imports: [ |
| 86 | BrowserModule, |
| 87 | HttpClientModule, |
| 88 | CommonModule, |
| 89 | RouterModule, |
| 90 | PopoverModule.forRoot(), |
Ittay Stern | 6f900cc | 2018-08-29 17:01:32 +0300 | [diff] [blame] | 91 | FeatureFlagModule.forRoot(), |
| 92 | FormsModule, |
| 93 | ReactiveFormsModule, |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 94 | TooltipModule, |
| 95 | SdcUiComponentsModule, |
Ittay Stern | 6f900cc | 2018-08-29 17:01:32 +0300 | [diff] [blame] | 96 | AngularMultiSelectModule, |
| 97 | BootstrapModalModule, |
| 98 | DataTableModule, |
| 99 | ModalModule.forRoot() |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 100 | ], |
| 101 | declarations: [ |
| 102 | PopoverComponent, |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 103 | EllipsisComponent, |
| 104 | MessageBoxComponent, |
| 105 | FormControlErrorComponent, |
Ittay Stern | 6f900cc | 2018-08-29 17:01:32 +0300 | [diff] [blame] | 106 | DropdownFormControlComponent, |
| 107 | MultiselectFormControlComponent, |
| 108 | FileFormControlComponent, |
| 109 | NumberFormControlComponent, |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 110 | InputPreventionPatternDirective, |
Ittay Stern | 6f900cc | 2018-08-29 17:01:32 +0300 | [diff] [blame] | 111 | ClickOutsideDirective, |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 112 | FormGeneralErrorsComponent, |
| 113 | SpinnerComponent, |
| 114 | NoContentMessageAndIconComponent, |
| 115 | ModelInformationComponent, |
| 116 | CapitalizeAndFormatPipe, |
| 117 | ServiceInfoPipe, |
Ittay Stern | 6f900cc | 2018-08-29 17:01:32 +0300 | [diff] [blame] | 118 | OrderByPipe, |
| 119 | SafePipe, |
| 120 | ObjectToArrayPipe, |
| 121 | DataFilterPipe, |
Eylon Malin | d00cf80 | 2019-12-03 12:12:38 +0200 | [diff] [blame] | 122 | SearchFilterPipe, |
Ittay Stern | 6f900cc | 2018-08-29 17:01:32 +0300 | [diff] [blame] | 123 | InputFormControlComponent, |
| 124 | FormControlMessageErrorComponent, |
| 125 | GenericFormPopupComponent, |
Ittay Stern | f792671 | 2019-07-07 19:23:03 +0300 | [diff] [blame] | 126 | SearchElementsModalComponent, |
Ittay Stern | 6f900cc | 2018-08-29 17:01:32 +0300 | [diff] [blame] | 127 | AuditInfoModalComponent, |
| 128 | GenericFormComponent, |
| 129 | CheckboxFormControlComponent, |
Ittay Stern | f792671 | 2019-07-07 19:23:03 +0300 | [diff] [blame] | 130 | ElementsTableComponent, |
Ittay Stern | 6f900cc | 2018-08-29 17:01:32 +0300 | [diff] [blame] | 131 | SvgComponent, |
| 132 | ErrorMsgComponent, |
| 133 | DynamicInputsComponent, |
Yoav Schneiderman | 2603481 | 2019-12-03 12:55:39 +0200 | [diff] [blame] | 134 | DynamicInputLabelPipe, |
| 135 | InstantiationTemplatesModalComponent |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 136 | ], |
| 137 | exports: [ |
| 138 | PopoverComponent, |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 139 | EllipsisComponent, |
| 140 | MessageBoxComponent, |
| 141 | FormControlErrorComponent, |
Ittay Stern | 6f900cc | 2018-08-29 17:01:32 +0300 | [diff] [blame] | 142 | DropdownFormControlComponent, |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 143 | InputPreventionPatternDirective, |
Ittay Stern | 6f900cc | 2018-08-29 17:01:32 +0300 | [diff] [blame] | 144 | ClickOutsideDirective, |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 145 | FormGeneralErrorsComponent, |
| 146 | SpinnerComponent, |
| 147 | NoContentMessageAndIconComponent, |
| 148 | ModelInformationComponent, |
| 149 | CapitalizeAndFormatPipe, |
| 150 | ServiceInfoPipe, |
Ittay Stern | 6f900cc | 2018-08-29 17:01:32 +0300 | [diff] [blame] | 151 | OrderByPipe, |
| 152 | SafePipe, |
| 153 | ObjectToArrayPipe, |
| 154 | DataFilterPipe, |
Eylon Malin | d00cf80 | 2019-12-03 12:12:38 +0200 | [diff] [blame] | 155 | SearchFilterPipe, |
Ittay Stern | 6f900cc | 2018-08-29 17:01:32 +0300 | [diff] [blame] | 156 | InputFormControlComponent, |
| 157 | FormControlMessageErrorComponent, |
| 158 | GenericFormPopupComponent, |
Ittay Stern | f792671 | 2019-07-07 19:23:03 +0300 | [diff] [blame] | 159 | SearchElementsModalComponent, |
Ittay Stern | 6f900cc | 2018-08-29 17:01:32 +0300 | [diff] [blame] | 160 | AuditInfoModalComponent, |
| 161 | GenericFormComponent, |
| 162 | CheckboxFormControlComponent, |
Ittay Stern | f792671 | 2019-07-07 19:23:03 +0300 | [diff] [blame] | 163 | ElementsTableComponent, |
Ittay Stern | 6f900cc | 2018-08-29 17:01:32 +0300 | [diff] [blame] | 164 | ErrorMsgComponent, |
| 165 | SvgComponent, |
| 166 | DynamicInputsComponent, |
| 167 | DynamicInputLabelPipe |
| 168 | ], |
| 169 | entryComponents : [ |
| 170 | GenericFormPopupComponent, |
Yoav Schneiderman | 2603481 | 2019-12-03 12:55:39 +0200 | [diff] [blame] | 171 | SearchElementsModalComponent, |
| 172 | InstantiationTemplatesModalComponent |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 173 | ], |
| 174 | providers: [ |
| 175 | ServiceInfoService, |
| 176 | MessageBoxService, |
Ittay Stern | 6f900cc | 2018-08-29 17:01:32 +0300 | [diff] [blame] | 177 | SdcUiServices.ModalService, |
| 178 | SdcUiServices.LoaderService, |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 179 | HttpInterceptorService, |
| 180 | IframeService, |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 181 | DefaultDataGeneratorService, |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 182 | ConfigurationService, |
Ittay Stern | 6f900cc | 2018-08-29 17:01:32 +0300 | [diff] [blame] | 183 | GenericFormService, |
| 184 | FlagsResolve, |
| 185 | ViewEditResolver, |
| 186 | RetryResolver, |
Alexey Sandler | 9e65dc0 | 2019-12-03 13:04:42 +0200 | [diff] [blame] | 187 | RecreateResolver, |
| 188 | InstantiationTemplatesService, |
Ittay Stern | 6f900cc | 2018-08-29 17:01:32 +0300 | [diff] [blame] | 189 | ServiceControlGenerator, |
| 190 | ServicePopupService, |
| 191 | VnfControlGenerator, |
| 192 | VfModuleControlGenerator, |
| 193 | BasicControlGenerator, |
| 194 | CustomValidators, |
| 195 | NetworkPopupService, |
Amir Skalka | 8d17bc3 | 2019-12-10 16:47:11 +0200 | [diff] [blame^] | 196 | VfModulePopupService, |
Sara Weiss | eed6943 | 2019-11-20 14:50:33 +0200 | [diff] [blame] | 197 | VfModuleUpgradePopupService, |
Ittay Stern | 6f900cc | 2018-08-29 17:01:32 +0300 | [diff] [blame] | 198 | NetworkControlGenerator, |
| 199 | VnfGroupControlGenerator, |
| 200 | VnfGroupPopupService, |
| 201 | BasicPopupService, |
| 202 | GenericFormPopupService, |
| 203 | FormGeneralErrorsService, |
| 204 | VnfPopupService, |
| 205 | AuditInfoModalComponentService, |
| 206 | VnfPopupService, |
Ittay Stern | f792671 | 2019-07-07 19:23:03 +0300 | [diff] [blame] | 207 | ElementsTableService, |
Ittay Stern | 6f900cc | 2018-08-29 17:01:32 +0300 | [diff] [blame] | 208 | ErrorMsgService, |
| 209 | DataFilterPipe, |
Eylon Malin | d00cf80 | 2019-12-03 12:12:38 +0200 | [diff] [blame] | 210 | SearchFilterPipe, |
Ittay Stern | 6f900cc | 2018-08-29 17:01:32 +0300 | [diff] [blame] | 211 | ModelInformationService, |
Yoav Schneiderman | 2603481 | 2019-12-03 12:55:39 +0200 | [diff] [blame] | 212 | MultiselectFormControlService, |
| 213 | InstantiationTemplatesModalService |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 214 | ] |
| 215 | }) |
| 216 | export class SharedModule { |
| 217 | static forRoot(): ModuleWithProviders { |
| 218 | return { |
| 219 | ngModule: SharedModule, |
| 220 | providers: [MessageBoxService] |
| 221 | }; |
| 222 | } |
| 223 | } |