summaryrefslogtreecommitdiffstats
path: root/vid-webpack-master/src/app/shared/shared.module.ts
blob: b12ac435d6cc23b3268747bd06312360c0c1b120 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
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";


@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,
    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]
    };
  }
}