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