184ad46735568ee0def596f5411ace8e4c721b9d
[portal/ric-dashboard.git] / webapp-frontend / src / app / app.module.ts
1 /*-
2  * ========================LICENSE_START=================================
3  * O-RAN-SC
4  * %%
5  * Copyright (C) 2019 AT&T Intellectual Property and Nokia
6  * %%
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ========================LICENSE_END===================================
19  */
20 import { BrowserModule } from '@angular/platform-browser';
21 // tslint:disable-next-line:max-line-length
22 import { MatIconModule, MatCardModule, MatListModule, MatSidenavModule,
23     MatButtonToggleModule, MatSliderModule, MatGridListModule, MatSlideToggleModule,
24   MatExpansionModule, MatTabsModule, MatDialogModule, MatFormFieldModule, MatButtonModule, MatInputModule, MatSnackBarModule} from '@angular/material';
25 import { BrowserAnimationsModule} from '@angular/platform-browser/animations';
26 import { NgModule } from '@angular/core';
27 import { Ng2SmartTableModule } from 'ng2-smart-table';
28 import { ChartsModule } from 'ng2-charts';
29 import { MDBBootstrapModule } from 'angular-bootstrap-md';
30 import {FormsModule, ReactiveFormsModule} from '@angular/forms';
31
32 import { AppRoutingModule } from './app-routing.module';
33 import { AppComponent } from './app.component';
34 import { LoginComponent } from './login/login.component';
35 import { CatalogComponent } from './catalog/catalog.component';
36 import { UiService } from './services/ui/ui.service';
37 import { AdminService } from './services/admin/admin.service';
38 import { CatalogService } from './services/catalog/catalog.service';
39 import { ControlService } from './services/control/control.service';
40 import { SignalService } from './services/signal/signal.service';
41 import { SidenavListComponent } from './navigation/sidenav-list/sidenav-list.component';
42 import { ControlComponent } from './control/control.component';
43 import { SignalComponent, AppRANConnectDialog } from './signal/signal.component';
44 import { StatsComponent } from './stats/stats.component';
45 import { AdminComponent } from './admin/admin.component';
46 import { CatalogCardComponent } from './ui/catalog-card/catalog-card.component';
47 import { ControlCardComponent } from './ui/control-card/control-card.component';
48 import { StatCardComponent } from './ui/stat-card/stat-card.component';
49 import { ModalEventComponent } from './ui/modal-event/modal-event.component';
50 import { XappComponent } from './xapp/xapp.component';
51 import { ConfigEventComponent } from './ui/config-event/config-event.component';
52 import { ConfirmDialogComponent } from './ui/confirm-dialog/confirm-dialog.component';
53
54
55 @NgModule({
56   declarations: [
57     AppComponent,
58     LoginComponent,
59     CatalogComponent,
60     SidenavListComponent,
61     CatalogCardComponent,
62     ControlCardComponent,
63     StatCardComponent,
64     ControlComponent,
65     SignalComponent,
66     StatsComponent,
67     AdminComponent,
68     ModalEventComponent,
69     XappComponent,
70     ConfigEventComponent,
71     AppRANConnectDialog,
72     ConfirmDialogComponent,
73   ],
74     imports: [
75     BrowserModule,
76     BrowserAnimationsModule,
77     ChartsModule,
78     AppRoutingModule,
79     FormsModule,
80     MatDialogModule,
81     ReactiveFormsModule,
82     MatButtonToggleModule,
83     MatExpansionModule,
84     MatSliderModule,
85     MatCardModule,
86     MatIconModule,
87     MatGridListModule,
88     MatListModule,
89     MatSidenavModule,
90     MatSlideToggleModule,
91     MatTabsModule,
92     MatFormFieldModule,
93     MatButtonModule,
94     MatInputModule,
95     Ng2SmartTableModule,
96     MatSnackBarModule,
97     MDBBootstrapModule.forRoot(),
98   ],
99     exports: [
100     FormsModule,
101     MatDialogModule,
102     MatButtonToggleModule,
103     MatExpansionModule,
104     MatSliderModule,
105     MatCardModule,
106     MatIconModule,
107     MatGridListModule,
108     MatListModule,
109     MatSidenavModule,
110     MatSlideToggleModule,
111     MatTabsModule,
112     MatFormFieldModule,
113     MatButtonModule,
114     MatInputModule
115     ],
116     entryComponents: [
117     AppRANConnectDialog,
118     ConfirmDialogComponent,
119     ],
120   providers: [
121       UiService,
122       AdminService,
123       CatalogService,
124       ControlService,
125       SignalService
126     ],
127   bootstrap: [AppComponent]
128 })
129 export class AppModule { };
130