2 // ========================LICENSE_START=================================
5 // Copyright (C) 2021: Nordix Foundation
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
11 // http://www.apache.org/licenses/LICENSE-2.0
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===================================
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';
40 const routes:Routes = [
41 {path: 'policy', component: PolicyControlComponent}
47 PolicyControlComponent,
48 PolicyInstanceComponent,
49 PolicyInstanceDialogComponent,
51 NoTypePolicyEditorComponent,
52 TypedPolicyEditorComponent,
55 BrowserAnimationsModule,
60 MaterialDesignFrameworkModule,
64 RouterModule.forChild(routes)
68 PolicyControlComponent
71 export class PolicyModule { }