Sean Condon | 83fc39f | 2018-04-19 18:56:13 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2015-present Open Networking Foundation |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | import { NgModule } from '@angular/core'; |
| 17 | import { CommonModule } from '@angular/common'; |
| 18 | import { LayerModule } from '../layer/layer.module'; |
Sean Condon | 83fc39f | 2018-04-19 18:56:13 +0100 | [diff] [blame] | 19 | import { SvgModule } from '../svg/svg.module'; |
Sean Condon | 83fc39f | 2018-04-19 18:56:13 +0100 | [diff] [blame] | 20 | |
| 21 | import { ButtonService } from './button.service'; |
| 22 | import { ChartBuilderService } from './chartbuilder.service'; |
| 23 | import { ListService } from './list.service'; |
Sean Condon | 83fc39f | 2018-04-19 18:56:13 +0100 | [diff] [blame] | 24 | import { ToolbarService } from './toolbar.service'; |
Sean Condon | 83fc39f | 2018-04-19 18:56:13 +0100 | [diff] [blame] | 25 | import { SortableHeaderDirective } from './sortableheader.directive'; |
| 26 | import { TableResizeDirective } from './tableresize.directive'; |
| 27 | import { FlashChangesDirective } from './flashchanges.directive'; |
Sean Condon | 28ecc5f | 2018-06-25 12:50:16 +0100 | [diff] [blame] | 28 | import { TableFilterPipe } from './tablefilter.pipe'; |
Sean Condon | 83fc39f | 2018-04-19 18:56:13 +0100 | [diff] [blame] | 29 | |
| 30 | /** |
| 31 | * ONOS GUI -- Widgets Module |
| 32 | */ |
| 33 | @NgModule({ |
| 34 | imports: [ |
| 35 | CommonModule |
| 36 | // Services have global scope and their modules don't have to be imported again |
| 37 | // It's enough to import them in the OnosModule |
| 38 | ], |
| 39 | declarations: [ |
Sean Condon | 83fc39f | 2018-04-19 18:56:13 +0100 | [diff] [blame] | 40 | SortableHeaderDirective, |
| 41 | TableResizeDirective, |
Sean Condon | 28ecc5f | 2018-06-25 12:50:16 +0100 | [diff] [blame] | 42 | FlashChangesDirective, |
| 43 | TableFilterPipe |
| 44 | ], |
| 45 | exports: [ |
| 46 | TableFilterPipe |
Sean Condon | 83fc39f | 2018-04-19 18:56:13 +0100 | [diff] [blame] | 47 | ], |
| 48 | providers: [ |
Sean Condon | 83fc39f | 2018-04-19 18:56:13 +0100 | [diff] [blame] | 49 | ] |
| 50 | }) |
| 51 | export class WidgetModule { } |