Initial commit of RIC Dashboard webapp
[portal/ric-dashboard.git] / webapp-frontend / src / app / app.module.ts
1 /*-
2  * ========================LICENSE_START=================================
3  * ORAN-OSC
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 } 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 { SidenavListComponent } from './navigation/sidenav-list/sidenav-list.component';
41 import { ControlComponent } from './control/control.component';
42 import { StatsComponent } from './stats/stats.component';
43 import { AdminComponent } from './admin/admin.component';
44 import { CatalogCardComponent} from './ui/catalog-card/catalog-card.component';
45 import { ControlCardComponent} from './ui/control-card/control-card.component';
46 import { StatCardComponent} from './ui/stat-card/stat-card.component';
47 import { ModalEventComponent } from './ui/modal-event/modal-event.component';
48 import { XappComponent } from './xapp/xapp.component';
49 import { ConfigEventComponent } from './ui/config-event/config-event.component';
50
51 @NgModule({
52   declarations: [
53     AppComponent,
54     LoginComponent,
55     CatalogComponent,
56     SidenavListComponent,
57     CatalogCardComponent,
58     ControlCardComponent,
59     StatCardComponent,
60     ControlComponent,
61     StatsComponent,
62     AdminComponent,
63     ModalEventComponent,
64     XappComponent,
65     ConfigEventComponent,
66   ],
67   imports: [
68     BrowserModule,
69     BrowserAnimationsModule,
70     ChartsModule,
71     AppRoutingModule,
72     FormsModule,
73     ReactiveFormsModule,
74     MatButtonToggleModule,
75     MatExpansionModule,
76     MatSliderModule,
77     MatCardModule,
78     MatIconModule,
79     MatGridListModule,
80     MatListModule,
81     MatSidenavModule,
82     MatSlideToggleModule,
83     MatTabsModule,
84     Ng2SmartTableModule,
85     MDBBootstrapModule.forRoot(),
86   ],
87   exports: [
88     MatButtonToggleModule,
89     MatExpansionModule,
90     MatSliderModule,
91     MatCardModule,
92     MatIconModule,
93     MatGridListModule,
94     MatListModule,
95     MatSidenavModule,
96     MatSlideToggleModule,
97     MatTabsModule,
98   ],
99   providers: [
100       UiService,
101       AdminService,
102       CatalogService,
103       ControlService,
104     ],
105   bootstrap: [AppComponent]
106 })
107 export class AppModule { }