blob: b05b76bd8a8fdfcd26f6a8862ae57e6d96d26f88 [file] [log] [blame]
Sean Condon83fc39f2018-04-19 18:56:13 +01001/*
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 */
16import { NgModule } from '@angular/core';
17import { CommonModule } from '@angular/common';
18import { LayerModule } from '../layer/layer.module';
Sean Condon83fc39f2018-04-19 18:56:13 +010019import { SvgModule } from '../svg/svg.module';
Sean Condon83fc39f2018-04-19 18:56:13 +010020
21import { ButtonService } from './button.service';
22import { ChartBuilderService } from './chartbuilder.service';
23import { ListService } from './list.service';
Sean Condon83fc39f2018-04-19 18:56:13 +010024import { ToolbarService } from './toolbar.service';
Sean Condon83fc39f2018-04-19 18:56:13 +010025import { SortableHeaderDirective } from './sortableheader.directive';
26import { TableResizeDirective } from './tableresize.directive';
27import { FlashChangesDirective } from './flashchanges.directive';
Sean Condon28ecc5f2018-06-25 12:50:16 +010028import { TableFilterPipe } from './tablefilter.pipe';
Sean Condon83fc39f2018-04-19 18:56:13 +010029
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 Condon83fc39f2018-04-19 18:56:13 +010040 SortableHeaderDirective,
41 TableResizeDirective,
Sean Condon28ecc5f2018-06-25 12:50:16 +010042 FlashChangesDirective,
43 TableFilterPipe
44 ],
45 exports: [
Sean Condon2aa86092018-07-16 09:04:05 +010046 TableFilterPipe,
47 TableResizeDirective
Sean Condon83fc39f2018-04-19 18:56:13 +010048 ],
49 providers: [
Sean Condon83fc39f2018-04-19 18:56:13 +010050 ]
51})
52export class WidgetModule { }