blob: 2e7a0ead91af8ad96fe4b6b55a75eae1f899cd78 [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';
19import { RemoteModule } from '../remote/remote.module';
20import { SvgModule } from '../svg/svg.module';
21import { UtilModule } from '../util/util.module';
22
23import { ButtonService } from './button.service';
24import { ChartBuilderService } from './chartbuilder.service';
25import { ListService } from './list.service';
26import { TableBuilderService } from './tablebuilder.service';
27import { TableDetailService } from './tabledetail.service';
28import { ToolbarService } from './toolbar.service';
29import { TooltipService } from './tooltip.service';
30import { TooltipDirective } from './tooltip.directive';
31import { SortableHeaderDirective } from './sortableheader.directive';
32import { TableResizeDirective } from './tableresize.directive';
33import { FlashChangesDirective } from './flashchanges.directive';
34
35/**
36 * ONOS GUI -- Widgets Module
37 */
38@NgModule({
39 imports: [
40 CommonModule
41 // Services have global scope and their modules don't have to be imported again
42 // It's enough to import them in the OnosModule
43 ],
44 declarations: [
45 TooltipDirective,
46 SortableHeaderDirective,
47 TableResizeDirective,
48 FlashChangesDirective
49 ],
50 providers: [
51 ButtonService,
52 ChartBuilderService,
53 ListService,
54 TableBuilderService,
55 TableDetailService,
56 TooltipService,
57 ToolbarService
58 ]
59})
60export class WidgetModule { }