blob: d44ffe54ca0f1a730c650deac78ff5bcbd211e60 [file] [log] [blame]
/*-
* ========================LICENSE_START=================================
* O-RAN-SC
* %%
* Copyright (C) 2019 AT&T Intellectual Property
* Modifications Copyright (C) 2019 Nordix Foundation
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* ========================LICENSE_END===================================
*/
import { BrowserModule } from '@angular/platform-browser';
// tslint:disable-next-line:max-line-length
import {
MatButtonModule, MatButtonToggleModule, MatCardModule, MatCheckboxModule,
MatDialogModule, MatExpansionModule, MatFormFieldModule, MatGridListModule,
MatIconModule, MatInputModule, MatListModule, MatMenuModule, MatPaginatorModule,
MatProgressSpinnerModule, MatSelectModule, MatSidenavModule, MatSliderModule,
MatSlideToggleModule, MatSnackBarModule, MatSortModule, MatTableModule,
MatTabsModule, MatToolbarModule
} from '@angular/material';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { HttpClientModule } from '@angular/common/http';
import { NgModule } from '@angular/core';
import { MatRadioModule } from '@angular/material/radio';
import { MatTooltipModule } from '@angular/material/tooltip';
import { ChartsModule } from 'ng2-charts';
import { MDBBootstrapModule } from 'angular-bootstrap-md';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { ToastrModule } from 'ngx-toastr';
import { AppMgrService } from './services/app-mgr/app-mgr.service';
import { ConfirmDialogComponent } from './ui/confirm-dialog/confirm-dialog.component';
import { DashboardService } from './services/dashboard/dashboard.service';
import { E2ManagerService } from './services/e2-mgr/e2-mgr.service';
import { ErrorDialogComponent } from './ui/error-dialog/error-dialog.component';
import { ErrorDialogService } from './services/ui/error-dialog.service';
import { FlexLayoutModule } from '@angular/flex-layout';
import { FooterComponent } from './footer/footer.component';
import { LoadingDialogComponent } from './ui/loading-dialog/loading-dialog.component';
import { MainComponent } from './main/main.component';
import { MaterialDesignFrameworkModule } from 'angular6-json-schema-form';
import { ModalEventComponent } from './ui/modal-event/modal-event.component';
import { PolicyCardComponent } from './ui/policy-card/policy-card.component';
import { PolicyControlComponent } from './policy-control/policy-control.component';
import { PolicyInstanceComponent } from './policy-control/policy-instance.component';
import { PolicyInstanceDialogComponent } from './policy-control/policy-instance-dialog.component';
import { RdComponent } from './rd.component';
import { RdRoutingModule } from './rd-routing.module';
import { SidenavListComponent } from './navigation/sidenav-list/sidenav-list.component';
import { UiService } from './services/ui/ui.service';
import { CookieModule } from 'ngx-cookie';
@NgModule({
declarations: [
ConfirmDialogComponent,
ErrorDialogComponent,
FooterComponent,
LoadingDialogComponent,
MainComponent,
ModalEventComponent,
PolicyCardComponent,
PolicyControlComponent,
PolicyInstanceComponent,
PolicyInstanceDialogComponent,
RdComponent,
SidenavListComponent,
],
imports: [
BrowserModule,
BrowserAnimationsModule,
ChartsModule,
FlexLayoutModule,
FormsModule,
HttpClientModule,
MatButtonModule,
MatButtonToggleModule,
MatCardModule,
MatCheckboxModule,
MatDialogModule,
MaterialDesignFrameworkModule,
MatExpansionModule,
MatFormFieldModule,
MatGridListModule,
MatIconModule,
MatInputModule,
MatListModule,
MatMenuModule,
MatPaginatorModule,
MatProgressSpinnerModule,
MatRadioModule,
MatSelectModule,
MatSliderModule,
MatSidenavModule,
MatSlideToggleModule,
MatSnackBarModule,
MatSortModule,
MatTableModule,
MatTabsModule,
MatToolbarModule,
MatTooltipModule,
MDBBootstrapModule.forRoot(),
RdRoutingModule,
ReactiveFormsModule,
ToastrModule.forRoot(),
CookieModule.forRoot(),
],
exports: [
ErrorDialogComponent,
FormsModule,
MatButtonModule,
MatButtonToggleModule,
MatCardModule,
MatDialogModule,
MatExpansionModule,
MatFormFieldModule,
MatGridListModule,
MatIconModule,
MatInputModule,
MatListModule,
MatSidenavModule,
MatSliderModule,
MatSlideToggleModule,
MatTabsModule
],
entryComponents: [
ConfirmDialogComponent,
ErrorDialogComponent,
LoadingDialogComponent,
PolicyInstanceDialogComponent
],
providers: [
AppMgrService,
DashboardService,
E2ManagerService,
ErrorDialogService,
UiService
],
bootstrap: [RdComponent]
})
export class RdModule { }