aboutsummaryrefslogtreecommitdiffstats
path: root/vid-webpack-master/src/app/shared/shared.module.ts
blob: ab6ecaa0826b2a484a9ac7532e5cb11191dafac8 (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
import {NgModule, ModuleWithProviders} 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 { PopoverModule } from 'ngx-bootstrap';
import { AngularSvgIconModule } from 'angular-svg-icon';
import { SvgDirective } from './directives/svg/svg.directive';
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 { SdcUiComponentsModule , SdcUiComponents} from 'sdc-ui/lib/angular';
import { HttpInterceptorService } from './utils/httpInterceptor/httpInterceptor.service';
import { FormControlErrorComponent } from './components/formControlError/formControlError.component';
import { InputPreventionPatternDirective } from './directives/inputPrevention/inputPreventionPattern.directive';
import { FormGeneralErrorsComponent } from './components/formGeneralErrors/formGeneralErrors.component';
import { NumbersLettersUnderscoreValidator } from './components/validators/numbersLettersUnderscore/numbersLettersUnderscore.validator';
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 {HealthStatusService} from "./server/healthStatusService/health-status.service";
import {ConfigurationService} from "../services/configuration.service";
import {FlagsResolve} from "../services/flags.resolve";


@NgModule({
  imports: [
    BrowserModule,
    HttpClientModule,
    CommonModule,
    RouterModule,
    PopoverModule.forRoot(),
    AngularSvgIconModule,
    TooltipModule,
    SdcUiComponentsModule,
  ],
  declarations: [
    PopoverComponent,
    SvgDirective,
    EllipsisComponent,
    MessageBoxComponent,
    FormControlErrorComponent,
    InputPreventionPatternDirective,
    FormGeneralErrorsComponent,
    SpinnerComponent,
    NoContentMessageAndIconComponent,
    ModelInformationComponent,
    CapitalizeAndFormatPipe,
    ServiceInfoPipe,
  ],
  exports: [
    PopoverComponent,
    SvgDirective,
    EllipsisComponent,
    MessageBoxComponent,
    FormControlErrorComponent,
    InputPreventionPatternDirective,
    FormGeneralErrorsComponent,
    SpinnerComponent,
    NoContentMessageAndIconComponent,
    ModelInformationComponent,
    CapitalizeAndFormatPipe,
    ServiceInfoPipe,
  ],
  providers: [
    ServiceInfoService,
    MessageBoxService,
    SdcUiComponents.ModalService,
    HttpInterceptorService,
    IframeService,
    NumbersLettersUnderscoreValidator,
    DefaultDataGeneratorService,
    HealthStatusService,
    ConfigurationService,
    FlagsResolve
  ]
})
export class SharedModule {
  static forRoot(): ModuleWithProviders {
    return {
      ngModule: SharedModule,
      providers: [MessageBoxService]
    };
  }
}