2017-04-27 14:29:31 +00:00
|
|
|
import { NgModule } from '@angular/core';
|
2017-08-15 16:41:27 +00:00
|
|
|
import { CommonModule } from '@angular/common';
|
2017-08-16 14:48:42 +00:00
|
|
|
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
2017-04-27 14:29:31 +00:00
|
|
|
import { ChartsModule } from 'ng2-charts/ng2-charts';
|
|
|
|
import { BsDropdownModule } from 'ngx-bootstrap/dropdown';
|
2017-09-06 16:51:56 +00:00
|
|
|
import { NgxPaginationModule } from 'ngx-pagination';
|
2017-09-27 12:54:10 +00:00
|
|
|
import { AgmCoreModule, GoogleMapsAPIWrapper } from '@agm/core';
|
2017-04-27 14:29:31 +00:00
|
|
|
|
2017-09-07 12:32:59 +00:00
|
|
|
import { CurrencyPipe } from '@angular/common';
|
|
|
|
|
2017-04-27 14:29:31 +00:00
|
|
|
import { DashboardComponent } from './dashboard.component';
|
2017-08-31 17:44:17 +00:00
|
|
|
import { DashboardCustomerComponent } from './dashboard-customer.component';
|
2017-08-16 14:48:42 +00:00
|
|
|
import { AccountEditComponent } from './account-edit.component';
|
|
|
|
import { AddDataComponent } from './add-data.component';
|
2017-09-01 14:02:05 +00:00
|
|
|
import { FeedbackComponent } from './feedback.component';
|
2017-09-06 15:05:35 +00:00
|
|
|
import { TransactionLogComponent } from './transaction-log.component';
|
2017-09-19 16:22:19 +00:00
|
|
|
import { PayrollLogComponent } from './payroll-log.component';
|
2017-09-26 16:31:40 +00:00
|
|
|
import { MapComponent } from './map.component';
|
2017-08-15 16:41:27 +00:00
|
|
|
|
2017-08-30 11:35:43 +00:00
|
|
|
import { GraphWidget } from '../widgets/graph-widget.component';
|
2017-09-07 14:12:49 +00:00
|
|
|
import { OrgBarSnippetComponent } from '../snippets/org-snippet-bar.component';
|
2017-09-08 12:09:23 +00:00
|
|
|
import { GraphPanel } from '../panels/graph-panel.component';
|
2017-08-29 15:42:32 +00:00
|
|
|
|
2017-08-15 16:41:27 +00:00
|
|
|
import { DashboardRoutingModule } from './dashboard.routing';
|
2017-08-29 17:15:47 +00:00
|
|
|
import { OrgResultComponent } from '../shared/org-result.component';
|
2017-08-30 15:09:57 +00:00
|
|
|
import { OrgTableComponent } from '../shared/org-table.component';
|
2017-09-06 15:05:35 +00:00
|
|
|
import { TransactionResultComponent } from '../shared/transaction-result.component';
|
2017-09-19 16:22:19 +00:00
|
|
|
import { PayrollResultComponent } from '../shared/payroll-result.component';
|
2017-04-27 14:29:31 +00:00
|
|
|
|
2017-09-26 16:31:40 +00:00
|
|
|
// API key env variable import
|
|
|
|
import { environment } from '../../environments/environment';
|
|
|
|
|
2017-04-27 14:29:31 +00:00
|
|
|
@NgModule({
|
|
|
|
imports: [
|
2017-08-16 14:55:12 +00:00
|
|
|
// Angular imports
|
2017-08-16 14:48:42 +00:00
|
|
|
CommonModule,
|
|
|
|
FormsModule,
|
|
|
|
ReactiveFormsModule,
|
2017-08-16 14:55:12 +00:00
|
|
|
ChartsModule,
|
2017-09-26 16:31:40 +00:00
|
|
|
AgmCoreModule.forRoot({
|
|
|
|
apiKey: environment.mapApiKey
|
|
|
|
}),
|
2017-08-16 14:55:12 +00:00
|
|
|
BsDropdownModule,
|
2017-09-06 16:51:56 +00:00
|
|
|
NgxPaginationModule,
|
2017-08-16 14:55:12 +00:00
|
|
|
DashboardRoutingModule,
|
2017-04-27 14:29:31 +00:00
|
|
|
],
|
2017-08-15 16:41:27 +00:00
|
|
|
declarations: [
|
|
|
|
DashboardComponent,
|
2017-08-31 17:44:17 +00:00
|
|
|
DashboardCustomerComponent,
|
2017-08-16 14:48:42 +00:00
|
|
|
AccountEditComponent,
|
|
|
|
AddDataComponent,
|
2017-08-29 17:15:47 +00:00
|
|
|
OrgResultComponent,
|
2017-08-30 15:09:57 +00:00
|
|
|
OrgTableComponent,
|
2017-09-06 15:05:35 +00:00
|
|
|
TransactionLogComponent,
|
|
|
|
TransactionResultComponent,
|
2017-09-19 16:22:19 +00:00
|
|
|
PayrollLogComponent,
|
|
|
|
PayrollResultComponent,
|
2017-09-26 16:31:40 +00:00
|
|
|
MapComponent,
|
2017-09-01 14:02:05 +00:00
|
|
|
FeedbackComponent,
|
2017-08-30 11:35:43 +00:00
|
|
|
GraphWidget,
|
2017-09-07 14:12:49 +00:00
|
|
|
OrgBarSnippetComponent,
|
2017-09-08 12:09:23 +00:00
|
|
|
GraphPanel,
|
2017-09-07 12:32:59 +00:00
|
|
|
],
|
|
|
|
providers: [
|
2017-09-27 12:54:10 +00:00
|
|
|
CurrencyPipe,
|
|
|
|
GoogleMapsAPIWrapper,
|
2017-09-07 12:32:59 +00:00
|
|
|
],
|
2017-04-27 14:29:31 +00:00
|
|
|
})
|
|
|
|
export class DashboardModule { }
|