rework admin table
[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 { AppMgrService } from './services/app-mgr/app-mgr.service';
44 import { DashboardService } from './services/dashboard/dashboard.service';
45 import { E2ManagerService } from './services/e2-mgr/e2-mgr.service';
46 import { SidenavListComponent } from './navigation/sidenav-list/sidenav-list.component';
47 import { ControlComponent } from './control/control.component';
48 import { RANConnectionDialogComponent } from './ran-connection/ran-connection-dialog.component';
49 import { RANConnectionComponent } from './ran-connection/ran-connection.component';
50 import { ANREditNCRDialogComponent } from './anr-xapp/anr-edit-ncr-dialog.component';
51 import { StatsComponent } from './stats/stats.component';
52 import { UserComponent } from './admin/user.component';
53 import { CatalogCardComponent } from './ui/catalog-card/catalog-card.component';
54 import { ControlCardComponent } from './ui/control-card/control-card.component';
55 import { StatCardComponent } from './ui/stat-card/stat-card.component';
56 import { ModalEventComponent } from './ui/modal-event/modal-event.component';
57 import { ConfigEventComponent } from './ui/config-event/config-event.component';
58 import { ConfirmDialogComponent } from './ui/confirm-dialog/confirm-dialog.component';
59 import { FooterComponent } from './footer/footer.component';
60 import { AnrXappComponent } from './anr-xapp/anr-xapp.component';
61 import { ErrorDialogComponent } from './ui/error-dialog/error-dialog.component';
62 import { ErrorDialogService } from './services/ui/error-dialog.service';
63 import { AcXappComponent } from './ac-xapp/ac-xapp.component';
64 import { AddDashboardUserDialogComponent } from './admin/add-dashboard-user-dialog/add-dashboard-user-dialog.component';
65 import { EditDashboardUserDialogComponent } from './admin/edit-dashboard-user-dialog/edit-dashboard-user-dialog.component';
66
67
68 @NgModule({
69   declarations: [
70     AcXappComponent,
71     UserComponent,
72     ANREditNCRDialogComponent,
73     AnrXappComponent,
74     AppComponent,
75     CatalogComponent,
76     CatalogCardComponent,
77     ConfigEventComponent,
78     ConfirmDialogComponent,
79     ControlCardComponent,
80     ControlComponent,
81     ErrorDialogComponent,
82     FooterComponent,
83     LoginComponent,
84     ModalEventComponent,
85     RANConnectionComponent,
86     RANConnectionDialogComponent,
87     SidenavListComponent,
88     StatCardComponent,
89     StatsComponent,
90     AddDashboardUserDialogComponent,
91     EditDashboardUserDialogComponent
92   ],
93     imports: [
94     AppRoutingModule,
95     BrowserModule,
96     BrowserAnimationsModule,
97     ChartsModule,
98     FormsModule,
99     MatButtonModule,
100     MatButtonToggleModule,
101     MatCardModule,
102     MatCheckboxModule,
103     MatDialogModule,
104     MatExpansionModule,
105     MatFormFieldModule,
106     MatGridListModule,
107     MatIconModule,
108     MatInputModule,
109     MatListModule,
110     MatPaginatorModule,
111     MatProgressSpinnerModule,
112     MatRadioModule,
113     MatSelectModule,
114     MatSliderModule,
115     MatSidenavModule,
116     MatSlideToggleModule,
117     MatSnackBarModule,
118     MatSortModule,
119     MatTableModule,
120     MatTabsModule,
121     Ng2SmartTableModule,
122     ReactiveFormsModule,
123     MDBBootstrapModule.forRoot(),
124   ],
125     exports: [
126     FormsModule,
127     MatDialogModule,
128     MatButtonToggleModule,
129     MatExpansionModule,
130     MatSliderModule,
131     MatCardModule,
132     MatIconModule,
133     MatGridListModule,
134     MatListModule,
135     MatSidenavModule,
136     MatSlideToggleModule,
137     MatTabsModule,
138     MatFormFieldModule,
139     MatButtonModule,
140     MatInputModule,
141     RANConnectionDialogComponent,
142     ErrorDialogComponent
143     ],
144     entryComponents: [
145     RANConnectionDialogComponent,
146     ANREditNCRDialogComponent,
147     ConfirmDialogComponent,
148     ErrorDialogComponent,
149     AddDashboardUserDialogComponent,
150     EditDashboardUserDialogComponent
151     ],
152   providers: [
153       UiService,
154       AppMgrService,
155       DashboardService,
156       E2ManagerService,
157       ErrorDialogService
158     ],
159   bootstrap: [AppComponent]
160 })
161 export class AppModule { }
162