Add table with automatic neighbor relation data
[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 {MatButtonModule, MatButtonToggleModule, MatCardModule, MatCheckboxModule,
23     MatDialogModule, MatExpansionModule, MatFormFieldModule, MatGridListModule,
24     MatIconModule, MatInputModule, MatListModule, MatPaginatorModule,
25     MatProgressSpinnerModule, MatSelectModule, MatSidenavModule, MatSliderModule,
26     MatSlideToggleModule, MatSnackBarModule, MatSortModule, MatTableModule,
27     MatTabsModule} from '@angular/material';
28 import { BrowserAnimationsModule} from '@angular/platform-browser/animations';
29 import { NgModule } from '@angular/core';
30 import { MatRadioModule } from '@angular/material/radio';
31 import { ChartsModule } from 'ng2-charts';
32 import { MDBBootstrapModule } from 'angular-bootstrap-md';
33 import { FormsModule, ReactiveFormsModule } from '@angular/forms';
34
35 // RETIRE THIS
36 import { Ng2SmartTableModule } from 'ng2-smart-table';
37
38 import { AppRoutingModule } from './app-routing.module';
39 import { AppComponent } from './app.component';
40 import { LoginComponent } from './login/login.component';
41 import { CatalogComponent } from './catalog/catalog.component';
42 import { UiService } from './services/ui/ui.service';
43 import { AdminService } from './services/admin/admin.service';
44 import { XappMgrService } from './services/xapp-mgr/xapp-mgr.service';
45 import { DashboardService } from './services/dashboard/dashboard.service';
46 import { E2ManagerService } from './services/e2-mgr/e2-mgr.service';
47 import { SidenavListComponent } from './navigation/sidenav-list/sidenav-list.component';
48 import { ControlComponent } from './control/control.component';
49 import { RANConnectionDialogComponent } from './ran-connection/ran-connection-dialog.component';
50 import { RANConnectionComponent } from './ran-connection/ran-connection.component';
51 import { ANREditNCRDialogComponent } from './anr-xapp/anr-edit-ncr-dialog.component';
52 import { StatsComponent } from './stats/stats.component';
53 import { AdminComponent } from './admin/admin.component';
54 import { CatalogCardComponent } from './ui/catalog-card/catalog-card.component';
55 import { ControlCardComponent } from './ui/control-card/control-card.component';
56 import { StatCardComponent } from './ui/stat-card/stat-card.component';
57 import { ModalEventComponent } from './ui/modal-event/modal-event.component';
58 import { ConfigEventComponent } from './ui/config-event/config-event.component';
59 import { ConfirmDialogComponent } from './ui/confirm-dialog/confirm-dialog.component';
60 import { FooterComponent } from './footer/footer.component';
61 import { AnrXappComponent } from './anr-xapp/anr-xapp.component';
62 import { ErrorDialogComponent } from './ui/error-dialog/error-dialog.component';
63 import { ErrorDialogService } from './services/ui/error-dialog.service';
64
65 @NgModule({
66   declarations: [
67     AppComponent,
68     LoginComponent,
69     CatalogComponent,
70     SidenavListComponent,
71     CatalogCardComponent,
72     ControlCardComponent,
73     StatCardComponent,
74     ControlComponent,
75     RANConnectionComponent,
76     StatsComponent,
77     AdminComponent,
78     ModalEventComponent,
79     ConfigEventComponent,
80     AnrXappComponent,
81     RANConnectionDialogComponent,
82     ANREditNCRDialogComponent,
83     ConfirmDialogComponent,
84     FooterComponent,
85     ErrorDialogComponent
86   ],
87     imports: [
88     AppRoutingModule,
89     BrowserModule,
90     BrowserAnimationsModule,
91     ChartsModule,
92     FormsModule,
93     MatButtonModule,
94     MatButtonToggleModule,
95     MatCardModule,
96     MatCheckboxModule,
97     MatDialogModule,
98     MatExpansionModule,
99     MatFormFieldModule,
100     MatGridListModule,
101     MatIconModule,
102     MatInputModule,
103     MatListModule,
104     MatPaginatorModule,
105     MatProgressSpinnerModule,
106     MatRadioModule,
107     MatSelectModule,
108     MatSliderModule,
109     MatSidenavModule,
110     MatSlideToggleModule,
111     MatSnackBarModule,
112     MatSortModule,
113     MatTableModule,
114     MatTabsModule,
115     Ng2SmartTableModule,
116     ReactiveFormsModule,
117     MDBBootstrapModule.forRoot(),
118   ],
119     exports: [
120     FormsModule,
121     MatDialogModule,
122     MatButtonToggleModule,
123     MatExpansionModule,
124     MatSliderModule,
125     MatCardModule,
126     MatIconModule,
127     MatGridListModule,
128     MatListModule,
129     MatSidenavModule,
130     MatSlideToggleModule,
131     MatTabsModule,
132     MatFormFieldModule,
133     MatButtonModule,
134     MatInputModule,
135     RANConnectionDialogComponent,
136     ErrorDialogComponent
137     ],
138     entryComponents: [
139     RANConnectionDialogComponent,
140     ANREditNCRDialogComponent,
141     ConfirmDialogComponent,
142     ErrorDialogComponent
143     ],
144   providers: [
145       UiService,
146       AdminService,
147       XappMgrService,
148       DashboardService,
149       E2ManagerService,
150       ErrorDialogService
151     ],
152   bootstrap: [AppComponent]
153 })
154 export class AppModule { }
155