app.module.ts
7.25 KB
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
import {NgModule, Type} from '@angular/core';
import {BrowserModule, Title} from '@angular/platform-browser';
import {CovalentCoreModule, CovalentLoadingModule} from '@covalent/core';
import {CovalentHttpModule, IHttpInterceptor} from '@covalent/http';
import {CovalentHighlightModule} from '@covalent/highlight';
import {CovalentMarkdownModule} from '@covalent/markdown';
import {CovalentChartsModule} from '@covalent/charts';
import {AppComponent} from './app.component';
import {MainComponent} from './main/main.component';
import {LoginComponent} from './login/login.component';
import {DataComponent} from './data/data.component';
import {TemplatesComponent} from './templates/templates.component';
import {appRoutes, appRoutingProviders} from './app.routes';
import {AgGridModule} from 'ag-grid-ng2/main';
import {ChartComponent} from '../components/chart/chart.component';
import {RequestInterceptor} from '../config/interceptors/request.interceptor';
import {NgxChartsModule} from '@swimlane/ngx-charts';
import {BusStopComponent} from './data/bus-stop/bus-stop.component';
import {ServiceObjectComponent} from './data/service-object/service-object.component';
import {RoadSurfaceComponent} from './data/road-surface/road-surface.component';
import {RoadWidthComponent} from './data/road-width/road-width.component';
import {RoadToCategoryComponent} from './data/road-to-category/road-to-category.component';
import {CrossSectionComponent} from './data/cross-section/cross-section.component';
import {EditorComponent} from '../helpers/editor.component';
import {RendererComponent} from '../helpers/renderer.component';
import {MapEditorComponent} from '../helpers/map-editor.component';
import {MapRendererComponent} from '../helpers/map-renderer.component';
import {FlowIntensityComponent} from './data/flow-intensity/flow-intensity.component';
import {RoadComponent} from './data/road/road.component';
import {RoadServiceComponent} from './data/road-service/road-service.component';
import {SettlementAddressLinkComponent} from './data/settlement-address-link/settlement-address-link.component';
import {AuthorityComponent} from './data/authority/authority.component';
import {MapComponent} from './data/map/map.component';
import {MapItemsComponent} from './data/map-items/map-items.component';
import {RoadMapComponent} from '../components/road-map.component';
// Services
import {BusStopCreateService} from '../services/bus-stop-create.service';
import {BusStopService} from '../services/bus-stop.service';
import {ServiceObjectCreateService} from '../services/service-object-create.service';
import {ServiceObjectService} from '../services/service-object.service';
import {RoadSurfaceService} from '../services/road-surface.service';
import {RoadSurfaceCreateService} from '../services/road-surface-create.service';
import {RoadWidthService} from '../services/road-width.service';
import {RoadWidthCreateService} from '../services/road-width-create.service';
import {RoadToCategoryService} from '../services/road-to-category.service';
import {RoadToCategoryCreateService} from '../services/road-to-category-create.service';
import {CrossSectionService} from '../services/cross-section.service';
import {CrossSectionCreateService} from '../services/cross-section-create.service';
import {BooleanSelectListService} from '../services/boolean-select-list.service';
import {FlowIntensityCreateService} from '../services/flow-intensity-create.service';
import {FlowIntensityService} from '../services/flow-intensity.service';
import {RoadCreateService} from '../services/road-create.service';
import {RoadService} from '../services/road.service';
import {RoadServiceService} from '../services/road-service.service';
import {RoadServiceCreateService} from '../services/road-service-create.service';
import {SettlementAddressLinkService} from '../services/settlement-address-link.service';
import {SettlementAddressLinkCreateService} from '../services/settlement-address-link-create.service';
import {AuthorityService} from '../services/authority.service';
import {AuthorityCreateService} from '../services/authority-create.service';
import {ContractorService} from "../services/contractor.service";
import {ContractorCreateService} from "../services/contractor-create.service";
import {ContractorComponent} from "./data/contractor/contractor.component";
import {CovalentExpansionPanelModule} from "@covalent/core/expansion-panel/expansion-panel.module";
const httpInterceptorProviders: Type<any>[] = [
RequestInterceptor,
];
@NgModule({
declarations: [
AppComponent,
MainComponent,
DataComponent,
LoginComponent,
ChartComponent,
TemplatesComponent,
BusStopComponent,
ServiceObjectComponent,
RoadSurfaceComponent,
EditorComponent,
RendererComponent,
MapEditorComponent,
MapRendererComponent,
MapItemsComponent,
RoadWidthComponent,
RoadToCategoryComponent,
FlowIntensityComponent,
RoadComponent,
CrossSectionComponent,
RoadServiceComponent,
SettlementAddressLinkComponent,
AuthorityComponent,
ContractorComponent,
MapComponent,
RoadMapComponent
], // directives, components, and pipes owned by this NgModule
imports: [
BrowserModule,
AgGridModule.withComponents([
BusStopComponent,
ServiceObjectComponent,
EditorComponent,
RendererComponent,
MapEditorComponent,
MapRendererComponent,
RoadSurfaceComponent,
RoadWidthComponent,
RoadToCategoryComponent,
FlowIntensityComponent,
RoadComponent,
CrossSectionComponent,
RoadServiceComponent,
SettlementAddressLinkComponent,
AuthorityComponent,
ContractorComponent
]),
CovalentCoreModule.forRoot(),
CovalentChartsModule.forRoot(),
CovalentHttpModule.forRoot({
interceptors: [{
interceptor: RequestInterceptor, paths: ['**'],
}],
}),
CovalentHighlightModule.forRoot(),
CovalentMarkdownModule.forRoot(),
CovalentLoadingModule.forRoot(),
appRoutes,
NgxChartsModule,
], // modules needed to run this module
providers: [
appRoutingProviders,
httpInterceptorProviders,
Title,
BooleanSelectListService,
BusStopCreateService,
BusStopService,
ServiceObjectCreateService,
ServiceObjectService,
RoadSurfaceCreateService,
RoadSurfaceService,
RoadWidthCreateService,
RoadWidthService,
RoadToCategoryCreateService,
RoadToCategoryService,
FlowIntensityCreateService,
FlowIntensityService,
RoadCreateService,
RoadService,
CrossSectionCreateService,
CrossSectionService,
RoadServiceService,
RoadServiceCreateService,
SettlementAddressLinkService,
SettlementAddressLinkCreateService,
AuthorityService,
AuthorityCreateService,
ContractorService,
ContractorCreateService
], // additional providers needed for this module
entryComponents: [],
bootstrap: [AppComponent],
})
export class AppModule {
}