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"; |
| 45 | import {VfModuleControlGenerator} from "./components/genericForm/formControlsServices/vfModuleGenerator/vfModule.control.generator"; |
| 46 | import {OrderByPipe} from "./pipes/order/orderBy.pipe"; |
| 47 | import {ServicePopupService} from "./components/genericFormPopup/genericFormServices/service/service.popup.service"; |
| 48 | import {GenericFormPopupService} from "./components/genericFormPopup/generic-form-popup.service"; |
| 49 | import {FormGeneralErrorsService} from "./components/formGeneralErrors/formGeneralErrors.service"; |
| 50 | import {VnfPopupService} from "./components/genericFormPopup/genericFormServices/vnf/vnf.popup.service"; |
| 51 | import {SdcUiComponentsModule, SdcUiServices} from "onap-ui-angular"; |
| 52 | import {SafePipe} from "./pipes/safe/safe.pipe"; |
| 53 | import {ViewEditResolver} from "./resolvers/viewEdit/viewEdit.resolver"; |
| 54 | import {FlagsResolve} from "./resolvers/flag/flag.resolver"; |
| 55 | import {FeatureFlagModule} from "../featureFlag/featureFlag.module"; |
| 56 | import {VnfGroupPopupService} from "./components/genericFormPopup/genericFormServices/vnfGroup/vnfGroup.popup.service"; |
| 57 | import {VnfGroupControlGenerator} from "./components/genericForm/formControlsServices/vnfGroupGenerator/vnfGroup.control.generator"; |
| 58 | import {AuditInfoModalComponent} from "./components/auditInfoModal/auditInfoModal.component"; |
| 59 | import {BootstrapModalModule} from 'ng2-bootstrap-modal'; |
| 60 | import {DataTableModule} from "angular2-datatable"; |
| 61 | import {AuditInfoModalComponentService} from "./components/auditInfoModal/auditInfoModal.component.service"; |
Ittay Stern | f792671 | 2019-07-07 19:23:03 +0300 | [diff] [blame] | 62 | import {SearchElementsModalComponent} from "./components/searchMembersModal/search-elements-modal.component"; |
| 63 | import {ElementsTableComponent} from "./components/searchMembersModal/members-table/elements-table.component"; |
| 64 | import {ElementsTableService} from "./components/searchMembersModal/members-table/elements-table.service"; |
Ittay Stern | 6f900cc | 2018-08-29 17:01:32 +0300 | [diff] [blame] | 65 | import {ObjectToArrayPipe} from "./pipes/objectToArray/objectToArray.pipe"; |
| 66 | import {DataFilterPipe} from "./pipes/dataFilter/data-filter.pipe"; |
| 67 | import {SvgComponent} from "./components/svg/svg-component"; |
| 68 | import {ErrorMsgComponent} from './components/error-msg/error-msg.component'; |
| 69 | import {ErrorMsgService} from "./components/error-msg/error-msg.service"; |
| 70 | import {RetryResolver} from "./resolvers/retry/retry.resolver"; |
| 71 | import {ClickOutsideDirective} from "./directives/clickOutside/clickOutside.directive"; |
| 72 | import {DynamicInputsComponent} from "./components/dynamic-inputs/dynamic-inputs.component"; |
| 73 | import {DynamicInputLabelPipe} from "./pipes/dynamicInputLabel/dynamic-input-label.pipe"; |
| 74 | import {ModelInformationService} from "./components/model-information/model-information.service"; |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 75 | |
| 76 | |
| 77 | @NgModule({ |
| 78 | imports: [ |
| 79 | BrowserModule, |
| 80 | HttpClientModule, |
| 81 | CommonModule, |
| 82 | RouterModule, |
| 83 | PopoverModule.forRoot(), |
Ittay Stern | 6f900cc | 2018-08-29 17:01:32 +0300 | [diff] [blame] | 84 | FeatureFlagModule.forRoot(), |
| 85 | FormsModule, |
| 86 | ReactiveFormsModule, |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 87 | TooltipModule, |
| 88 | SdcUiComponentsModule, |
Ittay Stern | 6f900cc | 2018-08-29 17:01:32 +0300 | [diff] [blame] | 89 | AngularMultiSelectModule, |
| 90 | BootstrapModalModule, |
| 91 | DataTableModule, |
| 92 | ModalModule.forRoot() |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 93 | ], |
| 94 | declarations: [ |
| 95 | PopoverComponent, |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 96 | EllipsisComponent, |
| 97 | MessageBoxComponent, |
| 98 | FormControlErrorComponent, |
Ittay Stern | 6f900cc | 2018-08-29 17:01:32 +0300 | [diff] [blame] | 99 | DropdownFormControlComponent, |
| 100 | MultiselectFormControlComponent, |
| 101 | FileFormControlComponent, |
| 102 | NumberFormControlComponent, |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 103 | InputPreventionPatternDirective, |
Ittay Stern | 6f900cc | 2018-08-29 17:01:32 +0300 | [diff] [blame] | 104 | ClickOutsideDirective, |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 105 | FormGeneralErrorsComponent, |
| 106 | SpinnerComponent, |
| 107 | NoContentMessageAndIconComponent, |
| 108 | ModelInformationComponent, |
| 109 | CapitalizeAndFormatPipe, |
| 110 | ServiceInfoPipe, |
Ittay Stern | 6f900cc | 2018-08-29 17:01:32 +0300 | [diff] [blame] | 111 | OrderByPipe, |
| 112 | SafePipe, |
| 113 | ObjectToArrayPipe, |
| 114 | DataFilterPipe, |
| 115 | InputFormControlComponent, |
| 116 | FormControlMessageErrorComponent, |
| 117 | GenericFormPopupComponent, |
Ittay Stern | f792671 | 2019-07-07 19:23:03 +0300 | [diff] [blame] | 118 | SearchElementsModalComponent, |
Ittay Stern | 6f900cc | 2018-08-29 17:01:32 +0300 | [diff] [blame] | 119 | AuditInfoModalComponent, |
| 120 | GenericFormComponent, |
| 121 | CheckboxFormControlComponent, |
Ittay Stern | f792671 | 2019-07-07 19:23:03 +0300 | [diff] [blame] | 122 | ElementsTableComponent, |
Ittay Stern | 6f900cc | 2018-08-29 17:01:32 +0300 | [diff] [blame] | 123 | SvgComponent, |
| 124 | ErrorMsgComponent, |
| 125 | DynamicInputsComponent, |
| 126 | DynamicInputLabelPipe |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 127 | ], |
| 128 | exports: [ |
| 129 | PopoverComponent, |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 130 | EllipsisComponent, |
| 131 | MessageBoxComponent, |
| 132 | FormControlErrorComponent, |
Ittay Stern | 6f900cc | 2018-08-29 17:01:32 +0300 | [diff] [blame] | 133 | DropdownFormControlComponent, |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 134 | InputPreventionPatternDirective, |
Ittay Stern | 6f900cc | 2018-08-29 17:01:32 +0300 | [diff] [blame] | 135 | ClickOutsideDirective, |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 136 | FormGeneralErrorsComponent, |
| 137 | SpinnerComponent, |
| 138 | NoContentMessageAndIconComponent, |
| 139 | ModelInformationComponent, |
| 140 | CapitalizeAndFormatPipe, |
| 141 | ServiceInfoPipe, |
Ittay Stern | 6f900cc | 2018-08-29 17:01:32 +0300 | [diff] [blame] | 142 | OrderByPipe, |
| 143 | SafePipe, |
| 144 | ObjectToArrayPipe, |
| 145 | DataFilterPipe, |
| 146 | InputFormControlComponent, |
| 147 | FormControlMessageErrorComponent, |
| 148 | GenericFormPopupComponent, |
Ittay Stern | f792671 | 2019-07-07 19:23:03 +0300 | [diff] [blame] | 149 | SearchElementsModalComponent, |
Ittay Stern | 6f900cc | 2018-08-29 17:01:32 +0300 | [diff] [blame] | 150 | AuditInfoModalComponent, |
| 151 | GenericFormComponent, |
| 152 | CheckboxFormControlComponent, |
Ittay Stern | f792671 | 2019-07-07 19:23:03 +0300 | [diff] [blame] | 153 | ElementsTableComponent, |
Ittay Stern | 6f900cc | 2018-08-29 17:01:32 +0300 | [diff] [blame] | 154 | ErrorMsgComponent, |
| 155 | SvgComponent, |
| 156 | DynamicInputsComponent, |
| 157 | DynamicInputLabelPipe |
| 158 | ], |
| 159 | entryComponents : [ |
| 160 | GenericFormPopupComponent, |
Ittay Stern | f792671 | 2019-07-07 19:23:03 +0300 | [diff] [blame] | 161 | SearchElementsModalComponent |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 162 | ], |
| 163 | providers: [ |
| 164 | ServiceInfoService, |
| 165 | MessageBoxService, |
Ittay Stern | 6f900cc | 2018-08-29 17:01:32 +0300 | [diff] [blame] | 166 | SdcUiServices.ModalService, |
| 167 | SdcUiServices.LoaderService, |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 168 | HttpInterceptorService, |
| 169 | IframeService, |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 170 | DefaultDataGeneratorService, |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 171 | ConfigurationService, |
Ittay Stern | 6f900cc | 2018-08-29 17:01:32 +0300 | [diff] [blame] | 172 | GenericFormService, |
| 173 | FlagsResolve, |
| 174 | ViewEditResolver, |
| 175 | RetryResolver, |
| 176 | ServiceControlGenerator, |
| 177 | ServicePopupService, |
| 178 | VnfControlGenerator, |
| 179 | VfModuleControlGenerator, |
| 180 | BasicControlGenerator, |
| 181 | CustomValidators, |
| 182 | NetworkPopupService, |
| 183 | VfModulePopuopService, |
| 184 | NetworkControlGenerator, |
| 185 | VnfGroupControlGenerator, |
| 186 | VnfGroupPopupService, |
| 187 | BasicPopupService, |
| 188 | GenericFormPopupService, |
| 189 | FormGeneralErrorsService, |
| 190 | VnfPopupService, |
| 191 | AuditInfoModalComponentService, |
| 192 | VnfPopupService, |
Ittay Stern | f792671 | 2019-07-07 19:23:03 +0300 | [diff] [blame] | 193 | ElementsTableService, |
Ittay Stern | 6f900cc | 2018-08-29 17:01:32 +0300 | [diff] [blame] | 194 | ErrorMsgService, |
| 195 | DataFilterPipe, |
| 196 | ModelInformationService, |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 197 | ] |
| 198 | }) |
| 199 | export class SharedModule { |
| 200 | static forRoot(): ModuleWithProviders { |
| 201 | return { |
| 202 | ngModule: SharedModule, |
| 203 | providers: [MessageBoxService] |
| 204 | }; |
| 205 | } |
| 206 | } |