a9783508e4484b97148cc04208e612a8a7212d50
[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} 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, AppCatalogDeployDialog } 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
53
54 @NgModule({
55   declarations: [
56     AppComponent,
57     LoginComponent,
58     CatalogComponent,
59     SidenavListComponent,
60     CatalogCardComponent,
61     ControlCardComponent,
62     StatCardComponent,
63     ControlComponent,
64     SignalComponent,
65     StatsComponent,
66     AdminComponent,
67     ModalEventComponent,
68     XappComponent,
69     ConfigEventComponent,
70     AppCatalogDeployDialog,
71     AppRANConnectDialog
72   ],
73     imports: [
74     BrowserModule,
75     BrowserAnimationsModule,
76     ChartsModule,
77     AppRoutingModule,
78     FormsModule,
79     MatDialogModule,
80     ReactiveFormsModule,
81     MatButtonToggleModule,
82     MatExpansionModule,
83     MatSliderModule,
84     MatCardModule,
85     MatIconModule,
86     MatGridListModule,
87     MatListModule,
88     MatSidenavModule,
89     MatSlideToggleModule,
90     MatTabsModule,
91     MatFormFieldModule,
92     MatButtonModule,
93     MatInputModule,
94     Ng2SmartTableModule,
95     MDBBootstrapModule.forRoot(),
96   ],
97     exports: [
98     FormsModule,
99     MatDialogModule,
100     MatButtonToggleModule,
101     MatExpansionModule,
102     MatSliderModule,
103     MatCardModule,
104     MatIconModule,
105     MatGridListModule,
106     MatListModule,
107     MatSidenavModule,
108     MatSlideToggleModule,
109     MatTabsModule,
110     MatFormFieldModule,
111     MatButtonModule,
112     MatInputModule
113     ],
114     entryComponents: [
115     AppCatalogDeployDialog,
116     AppRANConnectDialog
117     ],
118   providers: [
119       UiService,
120       AdminService,
121       CatalogService,
122       ControlService,
123       SignalService
124     ],
125   bootstrap: [AppComponent]
126 })
127 export class AppModule { };
128