import {ModuleWithProviders, NgModule} from '@angular/core'; import {CommonModule} from '@angular/common'; import {RouterModule} from '@angular/router'; import {BrowserModule} from '@angular/platform-browser'; import {HttpClientModule} from '@angular/common/http'; import {ServiceInfoService} from './server/serviceInfo/serviceInfo.service'; import {ModalModule, PopoverModule} from 'ngx-bootstrap'; import {PopoverComponent} from './components/popover/popover.component'; import {EllipsisComponent} from './components/ellipsis/ellipsis.component'; import {MessageBoxComponent} from './components/messageBox/messageBox.component'; import {MessageBoxService} from './components/messageBox/messageBox.service'; import {HttpInterceptorService} from './utils/httpInterceptor/httpInterceptor.service'; import {FormControlErrorComponent} from './components/formControlError/formControlError.component'; import {DropdownFormControlComponent} from "./components/formControls/component/dropdown/dropdown.formControl.component"; import {InputPreventionPatternDirective} from './directives/inputPrevention/inputPreventionPattern.directive'; import {FormGeneralErrorsComponent} from './components/formGeneralErrors/formGeneralErrors.component'; import {SpinnerComponent} from './components/spinner/spinner.component'; import {NoContentMessageAndIconComponent} from './components/no-content-message-and-icon/no-content-message-and-icon.component'; import {ModelInformationComponent} from './components/model-information/model-information.component'; import {TooltipModule} from 'ngx-tooltip'; import {IframeService} from "./utils/iframe.service"; import {CapitalizeAndFormatPipe} from "./pipes/capitalize/capitalize-and-format.pipe"; import {DefaultDataGeneratorService} from './services/defaultDataServiceGenerator/default.data.generator.service'; import {ServiceInfoPipe} from "./pipes/serviceInfo/serviceInfo.pipe"; import {ConfigurationService} from "./services/configuration.service"; import {InputFormControlComponent} from "./components/formControls/component/input/input.formControl.component"; import {MultiselectFormControlComponent} from "./components/formControls/component/multiselect/multiselect.formControl.component"; import {FormsModule, ReactiveFormsModule} from "@angular/forms"; import {FormControlMessageErrorComponent} from "./components/formControls/errorMessage/formControlMessageError.component"; import {GenericFormPopupComponent} from "./components/genericFormPopup/generic-form-popup.component"; import {CheckboxFormControlComponent} from "./components/formControls/component/checkbox/checkbox.formControl.component"; import {GenericFormService} from "./components/genericForm/generic-form.service"; import {GenericFormComponent} from "./components/genericForm/generic-form.component"; import {ServiceControlGenerator} from "./components/genericForm/formControlsServices/service.control.generator"; import {BasicControlGenerator} from "./components/genericForm/formControlsServices/basic.control.generator"; import {CustomValidators} from "./validators/uniqueName/uniqueName.validator"; import {FileFormControlComponent} from "./components/formControls/component/file/file.formControl.component"; import {NumberFormControlComponent} from "./components/formControls/component/number/number.formControl.component"; import {AngularMultiSelectModule} from 'angular2-multiselect-dropdown'; import {VnfControlGenerator} from "./components/genericForm/formControlsServices/vnfGenerator/vnf.control.generator"; import {NetworkPopupService} from "./components/genericFormPopup/genericFormServices/network/network.popup.service"; import {NetworkControlGenerator} from "./components/genericForm/formControlsServices/networkGenerator/network.control.generator"; import {BasicPopupService} from "./components/genericFormPopup/genericFormServices/basic.popup.service"; import {VfModulePopuopService} from "./components/genericFormPopup/genericFormServices/vfModule/vfModule.popuop.service"; import {VfModuleUpgradePopupService} from "./components/genericFormPopup/genericFormServices/vfModuleUpgrade/vfModule.upgrade.popuop.service"; import {VfModuleControlGenerator} from "./components/genericForm/formControlsServices/vfModuleGenerator/vfModule.control.generator"; import {OrderByPipe} from "./pipes/order/orderBy.pipe"; import {ServicePopupService} from "./components/genericFormPopup/genericFormServices/service/service.popup.service"; import {GenericFormPopupService} from "./components/genericFormPopup/generic-form-popup.service"; import {FormGeneralErrorsService} from "./components/formGeneralErrors/formGeneralErrors.service"; import {VnfPopupService} from "./components/genericFormPopup/genericFormServices/vnf/vnf.popup.service"; import {SdcUiComponentsModule, SdcUiServices} from "onap-ui-angular"; import {SafePipe} from "./pipes/safe/safe.pipe"; import {ViewEditResolver} from "./resolvers/viewEdit/viewEdit.resolver"; import {FlagsResolve} from "./resolvers/flag/flag.resolver"; import {FeatureFlagModule} from "../featureFlag/featureFlag.module"; import {VnfGroupPopupService} from "./components/genericFormPopup/genericFormServices/vnfGroup/vnfGroup.popup.service"; import {VnfGroupControlGenerator} from "./components/genericForm/formControlsServices/vnfGroupGenerator/vnfGroup.control.generator"; import {AuditInfoModalComponent} from "./components/auditInfoModal/auditInfoModal.component"; import {BootstrapModalModule} from 'ng2-bootstrap-modal'; import {DataTableModule} from "angular2-datatable"; import {AuditInfoModalComponentService} from "./components/auditInfoModal/auditInfoModal.component.service"; import {SearchElementsModalComponent} from "./components/searchMembersModal/search-elements-modal.component"; import {ElementsTableComponent} from "./components/searchMembersModal/members-table/elements-table.component"; import {ElementsTableService} from "./components/searchMembersModal/members-table/elements-table.service"; import {ObjectToArrayPipe} from "./pipes/objectToArray/objectToArray.pipe"; import {DataFilterPipe} from "./pipes/dataFilter/data-filter.pipe"; import {SvgComponent} from "./components/svg/svg-component"; import {ErrorMsgComponent} from './components/error-msg/error-msg.component'; import {ErrorMsgService} from "./components/error-msg/error-msg.service"; import {RetryResolver} from "./resolvers/retry/retry.resolver"; import {ClickOutsideDirective} from "./directives/clickOutside/clickOutside.directive"; import {DynamicInputsComponent} from "./components/dynamic-inputs/dynamic-inputs.component"; import {DynamicInputLabelPipe} from "./pipes/dynamicInputLabel/dynamic-input-label.pipe"; import {ModelInformationService} from "./components/model-information/model-information.service"; import {MultiselectFormControlService} from "./components/formControls/component/multiselect/multiselect.formControl.service"; import {SearchFilterPipe} from "./pipes/searchFilter/search-filter.pipe"; import {RecreateResolver} from "./resolvers/recreate/recreate.resolver"; import {InstantiationTemplatesService} from "./services/templateService/instantiationTemplates.service"; @NgModule({ imports: [ BrowserModule, HttpClientModule, CommonModule, RouterModule, PopoverModule.forRoot(), FeatureFlagModule.forRoot(), FormsModule, ReactiveFormsModule, TooltipModule, SdcUiComponentsModule, AngularMultiSelectModule, BootstrapModalModule, DataTableModule, ModalModule.forRoot() ], declarations: [ PopoverComponent, EllipsisComponent, MessageBoxComponent, FormControlErrorComponent, DropdownFormControlComponent, MultiselectFormControlComponent, FileFormControlComponent, NumberFormControlComponent, InputPreventionPatternDirective, ClickOutsideDirective, FormGeneralErrorsComponent, SpinnerComponent, NoContentMessageAndIconComponent, ModelInformationComponent, CapitalizeAndFormatPipe, ServiceInfoPipe, OrderByPipe, SafePipe, ObjectToArrayPipe, DataFilterPipe, SearchFilterPipe, InputFormControlComponent, FormControlMessageErrorComponent, GenericFormPopupComponent, SearchElementsModalComponent, AuditInfoModalComponent, GenericFormComponent, CheckboxFormControlComponent, ElementsTableComponent, SvgComponent, ErrorMsgComponent, DynamicInputsComponent, DynamicInputLabelPipe ], exports: [ PopoverComponent, EllipsisComponent, MessageBoxComponent, FormControlErrorComponent, DropdownFormControlComponent, InputPreventionPatternDirective, ClickOutsideDirective, FormGeneralErrorsComponent, SpinnerComponent, NoContentMessageAndIconComponent, ModelInformationComponent, CapitalizeAndFormatPipe, ServiceInfoPipe, OrderByPipe, SafePipe, ObjectToArrayPipe, DataFilterPipe, SearchFilterPipe, InputFormControlComponent, FormControlMessageErrorComponent, GenericFormPopupComponent, SearchElementsModalComponent, AuditInfoModalComponent, GenericFormComponent, CheckboxFormControlComponent, ElementsTableComponent, ErrorMsgComponent, SvgComponent, DynamicInputsComponent, DynamicInputLabelPipe ], entryComponents : [ GenericFormPopupComponent, SearchElementsModalComponent ], providers: [ ServiceInfoService, MessageBoxService, SdcUiServices.ModalService, SdcUiServices.LoaderService, HttpInterceptorService, IframeService, DefaultDataGeneratorService, ConfigurationService, GenericFormService, FlagsResolve, ViewEditResolver, RetryResolver, RecreateResolver, InstantiationTemplatesService, ServiceControlGenerator, ServicePopupService, VnfControlGenerator, VfModuleControlGenerator, BasicControlGenerator, CustomValidators, NetworkPopupService, VfModulePopuopService, VfModuleUpgradePopupService, NetworkControlGenerator, VnfGroupControlGenerator, VnfGroupPopupService, BasicPopupService, GenericFormPopupService, FormGeneralErrorsService, VnfPopupService, AuditInfoModalComponentService, VnfPopupService, ElementsTableService, ErrorMsgService, DataFilterPipe, SearchFilterPipe, ModelInformationService, MultiselectFormControlService ] }) export class SharedModule { static forRoot(): ModuleWithProviders { return { ngModule: SharedModule, providers: [MessageBoxService] }; } }