-
Notifications
You must be signed in to change notification settings - Fork 95
/
Copy pathgrid.module.ts
executable file
·68 lines (65 loc) · 2.19 KB
/
grid.module.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
import {NgModule, ANALYZE_FOR_ENTRY_COMPONENTS} from '@angular/core';
import {CommonModule} from '@angular/common';
import {FormsModule} from '@angular/forms';
import {GridComponent} from './grid.component';
import {CellComponent} from './cell.component';
import {GadgetInstanceService} from './grid.service';
import {ConfigurationService} from '../services/configuration.service';
import {AddGadgetService} from '../add-gadget/service';
import {DndModule} from 'ng2-dnd';
import {NewsService} from '../gadgets/news/service';
import {JobAnalysisService} from '../gadgets/job-analysis/service';
import {TrendService} from '../gadgets/trend/service';
import {TrendLineService} from '../gadgets/trend-line/service';
import {EdgeService} from '../gadgets/edge-service-list/service';
import {CPUService} from '../gadgets/cpu/service';
import {HttpClientModule} from '@angular/common/http';
import {DonutService} from '../gadgets/donut/service';
import {TodoService} from '../gadgets/todo/service';
import {ToastModule} from '../toast/toast.module';
import {ConnectionService} from '../gadgets/port-connection/service';
import {BubbleService} from "../gadgets/bubble/service";
import {BarChartService} from "../gadgets/barchart/service";
import {PieChartService} from "../gadgets/piechart/service";
@NgModule({
imports: [
CommonModule,
FormsModule,
ToastModule,
HttpClientModule, DndModule.forRoot()
],
declarations: [
GridComponent,
CellComponent
],
exports: [
GridComponent
],
providers: [
GadgetInstanceService,
ConfigurationService,
AddGadgetService,
NewsService,
JobAnalysisService,
TrendLineService,
TrendService,
EdgeService,
CPUService,
DonutService,
ConnectionService,
TodoService // todo gadget
,BubbleService,
BarChartService,
PieChartService
]
})
export class GridModule {
static withComponents(components: any[]) {
return {
ngModule: GridModule,
providers: [
{provide: ANALYZE_FOR_ENTRY_COMPONENTS, useValue: components, multi: true}
]
};
}
}