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"; |
| 44 | import {VfModulePopuopService} from "./components/genericFormPopup/genericFormServices/vfModule/vfModule.popuop.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"; |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 76 | |
| 77 | |
| 78 | @NgModule({ |
| 79 | imports: [ |
| 80 | BrowserModule, |
| 81 | HttpClientModule, |
| 82 | CommonModule, |
| 83 | RouterModule, |
| 84 | PopoverModule.forRoot(), |
Ittay Stern | 6f900cc | 2018-08-29 17:01:32 +0300 | [diff] [blame] | 85 | FeatureFlagModule.forRoot(), |
| 86 | FormsModule, |
| 87 | ReactiveFormsModule, |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 88 | TooltipModule, |
| 89 | SdcUiComponentsModule, |
Ittay Stern | 6f900cc | 2018-08-29 17:01:32 +0300 | [diff] [blame] | 90 | AngularMultiSelectModule, |
| 91 | BootstrapModalModule, |
| 92 | DataTableModule, |
| 93 | ModalModule.forRoot() |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 94 | ], |
| 95 | declarations: [ |
| 96 | PopoverComponent, |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 97 | EllipsisComponent, |
| 98 | MessageBoxComponent, |
| 99 | FormControlErrorComponent, |
Ittay Stern | 6f900cc | 2018-08-29 17:01:32 +0300 | [diff] [blame] | 100 | DropdownFormControlComponent, |
| 101 | MultiselectFormControlComponent, |
| 102 | FileFormControlComponent, |
| 103 | NumberFormControlComponent, |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 104 | InputPreventionPatternDirective, |
Ittay Stern | 6f900cc | 2018-08-29 17:01:32 +0300 | [diff] [blame] | 105 | ClickOutsideDirective, |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 106 | FormGeneralErrorsComponent, |
| 107 | SpinnerComponent, |
| 108 | NoContentMessageAndIconComponent, |
| 109 | ModelInformationComponent, |
| 110 | CapitalizeAndFormatPipe, |
| 111 | ServiceInfoPipe, |
Ittay Stern | 6f900cc | 2018-08-29 17:01:32 +0300 | [diff] [blame] | 112 | OrderByPipe, |
| 113 | SafePipe, |
| 114 | ObjectToArrayPipe, |
| 115 | DataFilterPipe, |
| 116 | InputFormControlComponent, |
| 117 | FormControlMessageErrorComponent, |
| 118 | GenericFormPopupComponent, |
Ittay Stern | f792671 | 2019-07-07 19:23:03 +0300 | [diff] [blame] | 119 | SearchElementsModalComponent, |
Ittay Stern | 6f900cc | 2018-08-29 17:01:32 +0300 | [diff] [blame] | 120 | AuditInfoModalComponent, |
| 121 | GenericFormComponent, |
| 122 | CheckboxFormControlComponent, |
Ittay Stern | f792671 | 2019-07-07 19:23:03 +0300 | [diff] [blame] | 123 | ElementsTableComponent, |
Ittay Stern | 6f900cc | 2018-08-29 17:01:32 +0300 | [diff] [blame] | 124 | SvgComponent, |
| 125 | ErrorMsgComponent, |
| 126 | DynamicInputsComponent, |
| 127 | DynamicInputLabelPipe |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 128 | ], |
| 129 | exports: [ |
| 130 | PopoverComponent, |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 131 | EllipsisComponent, |
| 132 | MessageBoxComponent, |
| 133 | FormControlErrorComponent, |
Ittay Stern | 6f900cc | 2018-08-29 17:01:32 +0300 | [diff] [blame] | 134 | DropdownFormControlComponent, |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 135 | InputPreventionPatternDirective, |
Ittay Stern | 6f900cc | 2018-08-29 17:01:32 +0300 | [diff] [blame] | 136 | ClickOutsideDirective, |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 137 | FormGeneralErrorsComponent, |
| 138 | SpinnerComponent, |
| 139 | NoContentMessageAndIconComponent, |
| 140 | ModelInformationComponent, |
| 141 | CapitalizeAndFormatPipe, |
| 142 | ServiceInfoPipe, |
Ittay Stern | 6f900cc | 2018-08-29 17:01:32 +0300 | [diff] [blame] | 143 | OrderByPipe, |
| 144 | SafePipe, |
| 145 | ObjectToArrayPipe, |
| 146 | DataFilterPipe, |
| 147 | InputFormControlComponent, |
| 148 | FormControlMessageErrorComponent, |
| 149 | GenericFormPopupComponent, |
Ittay Stern | f792671 | 2019-07-07 19:23:03 +0300 | [diff] [blame] | 150 | SearchElementsModalComponent, |
Ittay Stern | 6f900cc | 2018-08-29 17:01:32 +0300 | [diff] [blame] | 151 | AuditInfoModalComponent, |
| 152 | GenericFormComponent, |
| 153 | CheckboxFormControlComponent, |
Ittay Stern | f792671 | 2019-07-07 19:23:03 +0300 | [diff] [blame] | 154 | ElementsTableComponent, |
Ittay Stern | 6f900cc | 2018-08-29 17:01:32 +0300 | [diff] [blame] | 155 | ErrorMsgComponent, |
| 156 | SvgComponent, |
| 157 | DynamicInputsComponent, |
| 158 | DynamicInputLabelPipe |
| 159 | ], |
| 160 | entryComponents : [ |
| 161 | GenericFormPopupComponent, |
Ittay Stern | f792671 | 2019-07-07 19:23:03 +0300 | [diff] [blame] | 162 | SearchElementsModalComponent |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 163 | ], |
| 164 | providers: [ |
| 165 | ServiceInfoService, |
| 166 | MessageBoxService, |
Ittay Stern | 6f900cc | 2018-08-29 17:01:32 +0300 | [diff] [blame] | 167 | SdcUiServices.ModalService, |
| 168 | SdcUiServices.LoaderService, |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 169 | HttpInterceptorService, |
| 170 | IframeService, |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 171 | DefaultDataGeneratorService, |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 172 | ConfigurationService, |
Ittay Stern | 6f900cc | 2018-08-29 17:01:32 +0300 | [diff] [blame] | 173 | GenericFormService, |
| 174 | FlagsResolve, |
| 175 | ViewEditResolver, |
| 176 | RetryResolver, |
| 177 | ServiceControlGenerator, |
| 178 | ServicePopupService, |
| 179 | VnfControlGenerator, |
| 180 | VfModuleControlGenerator, |
| 181 | BasicControlGenerator, |
| 182 | CustomValidators, |
| 183 | NetworkPopupService, |
| 184 | VfModulePopuopService, |
Sara Weiss | eed6943 | 2019-11-20 14:50:33 +0200 | [diff] [blame^] | 185 | VfModuleUpgradePopupService, |
Ittay Stern | 6f900cc | 2018-08-29 17:01:32 +0300 | [diff] [blame] | 186 | NetworkControlGenerator, |
| 187 | VnfGroupControlGenerator, |
| 188 | VnfGroupPopupService, |
| 189 | BasicPopupService, |
| 190 | GenericFormPopupService, |
| 191 | FormGeneralErrorsService, |
| 192 | VnfPopupService, |
| 193 | AuditInfoModalComponentService, |
| 194 | VnfPopupService, |
Ittay Stern | f792671 | 2019-07-07 19:23:03 +0300 | [diff] [blame] | 195 | ElementsTableService, |
Ittay Stern | 6f900cc | 2018-08-29 17:01:32 +0300 | [diff] [blame] | 196 | ErrorMsgService, |
| 197 | DataFilterPipe, |
| 198 | ModelInformationService, |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 199 | ] |
| 200 | }) |
| 201 | export class SharedModule { |
| 202 | static forRoot(): ModuleWithProviders { |
| 203 | return { |
| 204 | ngModule: SharedModule, |
| 205 | providers: [MessageBoxService] |
| 206 | }; |
| 207 | } |
| 208 | } |