Remove unsed imports and file
[portal/nonrtric-controlpanel.git] / webapp-frontend / src / app / policy / policy.module.ts
1 // -
2 //   ========================LICENSE_START=================================
3 //   O-RAN-SC
4 //   %%
5 //   Copyright (C) 2021: Nordix Foundation
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
21 import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
22 import { CommonModule } from '@angular/common';
23 import { NgModule } from '@angular/core';
24 import { MatTableModule } from '@angular/material/table';
25 import { PolicyCardComponent } from './policy-card/policy-card.component';
26 import { PolicyControlComponent } from './policy-control.component';
27 import { PolicyInstanceDialogComponent } from './policy-instance-dialog/policy-instance-dialog.component';
28 import { PolicyInstanceComponent } from './policy-instance/policy-instance.component';
29 import { ReactiveFormsModule } from '@angular/forms';
30 import { MatIconModule } from '@angular/material/icon';
31 import { MatFormFieldModule } from '@angular/material/form-field';
32 import { MatDialogModule } from '@angular/material/dialog';
33 import { MatSelectModule } from '@angular/material/select';
34 import { MaterialDesignFrameworkModule } from 'angular6-json-schema-form';
35 import { Routes, RouterModule } from '@angular/router';
36 import { RicSelectorComponent } from './ric-selector/ric-selector.component';
37 import { TypedPolicyEditorComponent } from './typed-policy-editor/typed-policy-editor.component';
38 import { NoTypePolicyEditorComponent } from './no-type-policy-editor/no-type-policy-editor.component';
39
40 const routes:Routes = [
41   {path: 'policy', component: PolicyControlComponent}
42 ];
43
44 @NgModule({
45   declarations: [
46     PolicyCardComponent,
47     PolicyControlComponent,
48     PolicyInstanceComponent,
49     PolicyInstanceDialogComponent,
50     RicSelectorComponent,
51     NoTypePolicyEditorComponent,
52     TypedPolicyEditorComponent,
53   ],
54   imports: [
55     BrowserAnimationsModule,
56     CommonModule,
57     MatFormFieldModule,
58     MatIconModule,
59     MatSelectModule,
60     MaterialDesignFrameworkModule,
61     MatDialogModule,
62     MatTableModule,
63     ReactiveFormsModule,
64     RouterModule.forChild(routes)
65   ],
66   exports: [
67     PolicyCardComponent,
68     PolicyControlComponent
69   ]
70 })
71 export class PolicyModule { }