improve the dark theme
[portal/ric-dashboard.git] / webapp-frontend / src / app / rd.module.ts
1 /*-
2  * ========================LICENSE_START=================================
3  * O-RAN-SC
4  * %%
5  * Copyright (C) 2019 AT&T Intellectual Property
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 import { MatButtonModule } from '@angular/material/button';
22 import { MatButtonToggleModule } from '@angular/material/button-toggle';
23 import { MatCardModule } from '@angular/material/card';
24 import { MatCheckboxModule } from '@angular/material/checkbox';
25 import { MatDialogModule } from '@angular/material/dialog';
26 import { MatExpansionModule } from '@angular/material/expansion';
27 import { MatFormFieldModule } from '@angular/material/form-field';
28 import { MatGridListModule } from '@angular/material/grid-list';
29 import { MatIconModule } from '@angular/material/icon';
30 import { MatInputModule } from '@angular/material/input';
31 import { MatListModule } from '@angular/material/list';
32 import { MatPaginatorModule } from '@angular/material/paginator';
33 import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
34 import { MatSelectModule } from '@angular/material/select';
35 import { MatSidenavModule } from '@angular/material/sidenav';
36 import { MatSlideToggleModule } from '@angular/material/slide-toggle';
37 import { MatSliderModule } from '@angular/material/slider';
38 import { MatSnackBarModule } from '@angular/material/snack-bar';
39 import { MatSortModule } from '@angular/material/sort';
40 import { MatTableModule } from '@angular/material/table';
41 import { MatTabsModule } from '@angular/material/tabs';
42 import { BrowserAnimationsModule} from '@angular/platform-browser/animations';
43 import { HttpClientModule } from '@angular/common/http';
44 import { NgModule } from '@angular/core';
45 import { MatRadioModule } from '@angular/material/radio';
46 import { MatTooltipModule } from '@angular/material/tooltip';
47 import { ChartsModule } from 'ng2-charts';
48 import { MDBBootstrapModule } from 'angular-bootstrap-md';
49 import { FormsModule, ReactiveFormsModule } from '@angular/forms';
50 import { ToastrModule } from 'ngx-toastr';
51 import { AcXappComponent } from './ac-xapp/ac-xapp.component';
52 import { AddDashboardUserDialogComponent } from './user/add-dashboard-user-dialog/add-dashboard-user-dialog.component';
53 import { AnrEditNcrDialogComponent } from './anr-xapp/anr-edit-ncr-dialog.component';
54 import { AnrXappComponent } from './anr-xapp/anr-xapp.component';
55 import { AppConfigurationComponent } from './app-configuration/app-configuration.component';
56 import { AppControlComponent } from './app-control/app-control.component';
57 import { AppMgrService } from './services/app-mgr/app-mgr.service';
58 import { CaasIngressComponent } from './caas-ingress/caas-ingress.component';
59 import { CatalogCardComponent } from './ui/catalog-card/catalog-card.component';
60 import { CatalogComponent } from './catalog/catalog.component';
61 import { ConfigEventComponent } from './ui/config-event/config-event.component';
62 import { ConfirmDialogComponent } from './ui/confirm-dialog/confirm-dialog.component';
63 import { ControlCardComponent } from './ui/control-card/control-card.component';
64 import { ControlComponent } from './control/control.component';
65 import { DashboardService } from './services/dashboard/dashboard.service';
66 import { E2ManagerService } from './services/e2-mgr/e2-mgr.service';
67 import { EditDashboardUserDialogComponent } from './user/edit-dashboard-user-dialog/edit-dashboard-user-dialog.component';
68 import { ErrorDialogComponent } from './ui/error-dialog/error-dialog.component';
69 import { ErrorDialogService } from './services/ui/error-dialog.service';
70 import { FlexLayoutModule } from '@angular/flex-layout';
71 import { FooterComponent } from './footer/footer.component';
72 import { LoadingDialogComponent } from './ui/loading-dialog/loading-dialog.component';
73 import { MainComponent } from './main/main.component';
74 import { MaterialDesignFrameworkModule } from 'angular6-json-schema-form';
75 import { ModalEventComponent } from './ui/modal-event/modal-event.component';
76 import { PlatformComponent } from './platform/platform.component';
77 import { RanControlComponent } from './ran-control/ran-control.component';
78 import { RanControlConnectDialogComponent } from './ran-control/ran-connection-dialog.component';
79 import { RdComponent } from './rd.component';
80 import { RdRoutingModule } from './rd-routing.module';
81 import { SidenavListComponent } from './navigation/sidenav-list/sidenav-list.component';
82 import { StatCardComponent } from './ui/stat-card/stat-card.component';
83 import { StatsComponent } from './stats/stats.component';
84 import { UiService } from './services/ui/ui.service';
85 import { UserComponent } from './user/user.component';
86
87 @NgModule({
88   declarations: [
89     AcXappComponent,
90     AddDashboardUserDialogComponent,
91     AnrEditNcrDialogComponent,
92     AnrXappComponent,
93     AppConfigurationComponent,
94     AppControlComponent,
95     CaasIngressComponent,
96     CatalogCardComponent,
97     CatalogComponent,
98     ConfigEventComponent,
99     ConfirmDialogComponent,
100     ControlCardComponent,
101     ControlComponent,
102     EditDashboardUserDialogComponent,
103     ErrorDialogComponent,
104     FooterComponent,
105     LoadingDialogComponent,
106     MainComponent,
107     ModalEventComponent,
108     PlatformComponent,
109     RanControlComponent,
110     RanControlConnectDialogComponent,
111     RdComponent,
112     SidenavListComponent,
113     StatCardComponent,
114     StatsComponent,
115     UserComponent
116   ],
117   imports: [
118     BrowserModule,
119     BrowserAnimationsModule,
120     ChartsModule,
121     FlexLayoutModule,
122     FormsModule,
123     HttpClientModule,
124     MatButtonModule,
125     MatButtonToggleModule,
126     MatCardModule,
127     MatCheckboxModule,
128     MatDialogModule,
129     MaterialDesignFrameworkModule,
130     MatExpansionModule,
131     MatFormFieldModule,
132     MatGridListModule,
133     MatIconModule,
134     MatInputModule,
135     MatListModule,
136     MatPaginatorModule,
137     MatProgressSpinnerModule,
138     MatRadioModule,
139     MatSelectModule,
140     MatSliderModule,
141     MatSidenavModule,
142     MatSlideToggleModule,
143     MatSnackBarModule,
144     MatSortModule,
145     MatTableModule,
146     MatTabsModule,
147     MatTooltipModule,
148     MDBBootstrapModule.forRoot(),
149     RdRoutingModule,
150     ReactiveFormsModule,
151     ToastrModule.forRoot()
152   ],
153   exports: [
154     ErrorDialogComponent,
155     FormsModule,
156     MatButtonModule,
157     MatButtonToggleModule,
158     MatCardModule,
159     MatDialogModule,
160     MatExpansionModule,
161     MatFormFieldModule,
162     MatGridListModule,
163     MatIconModule,
164     MatInputModule,
165     MatListModule,
166     MatSidenavModule,
167     MatSliderModule,
168     MatSlideToggleModule,
169     MatTabsModule,
170     RanControlConnectDialogComponent
171   ],
172   entryComponents: [
173     AddDashboardUserDialogComponent,
174     AnrEditNcrDialogComponent,
175     AppConfigurationComponent,
176     ConfirmDialogComponent,
177     EditDashboardUserDialogComponent,
178     ErrorDialogComponent,
179     LoadingDialogComponent,
180     RanControlConnectDialogComponent
181   ],
182   providers: [
183     AppMgrService,
184     DashboardService,
185     E2ManagerService,
186     ErrorDialogService,
187     UiService
188   ],
189   bootstrap: [RdComponent]
190 })
191 export class RdModule { }