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 { PolicyTypeComponent } from './policy-type/policy-type.component';
28 import { PolicyInstanceDialogComponent } from './policy-instance-dialog/policy-instance-dialog.component';
29 import { PolicyInstanceComponent } from './policy-instance/policy-instance.component';
30 import { ReactiveFormsModule } from '@angular/forms';
31 import { MatIconModule } from '@angular/material/icon';
32 import { MatFormFieldModule } from '@angular/material/form-field';
33 import { MatDialogModule } from '@angular/material/dialog';
34 import { MatSelectModule } from '@angular/material/select';
35 import { MaterialDesignFrameworkModule } from 'angular6-json-schema-form';
36 import { Routes, RouterModule } from '@angular/router';
37 import { RicSelectorComponent } from './ric-selector/ric-selector.component';
38 import { TypedPolicyEditorComponent } from './typed-policy-editor/typed-policy-editor.component';
39 import { NoTypePolicyEditorComponent } from './no-type-policy-editor/no-type-policy-editor.component';
40 import { MatSortModule } from '@angular/material/sort';
41 import { MatInputModule } from '@angular/material/input';
42 import { MatButtonModule } from '@angular/material/button';
43 import { FlexLayoutModule } from '@angular/flex-layout';
44 import { MatCardModule } from '@angular/material/card';
45 import { MatTooltipModule } from '@angular/material/tooltip';
47 const routes:Routes = [
48 {path: 'policy', component: PolicyControlComponent}
54 PolicyControlComponent,
55 PolicyInstanceComponent,
56 PolicyInstanceDialogComponent,
59 NoTypePolicyEditorComponent,
60 TypedPolicyEditorComponent,
63 BrowserAnimationsModule,
74 MaterialDesignFrameworkModule,
78 RouterModule.forChild(routes)
82 PolicyControlComponent,
86 export class PolicyModule { }