src/app/modules/dashboard/dashboard.module.ts
// Angular modules
import { NgModule } from '@angular/core';
import { CommonConsumptionModule } from '@project-sunbird/common-consumption';
import { CommonModule } from '@angular/common';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
// Modules
import { ChartsModule } from 'ng2-charts';
import { SuiModule } from 'ng2-semantic-ui-v9';
import { DashboardRoutingModule } from './dashboard-routing.module';
import { TelemetryModule } from '@sunbird/telemetry';
// Custome component(s) and services
import {
CourseConsumptionService, DashboardUtilsService, OrganisationService,
RendererService, LineChartService, DownloadService, CourseProgressService,
UsageService, ReportService
} from './services';
import {
OrganisationComponent, CourseConsumptionComponent, CourseProgressComponent, UsageReportsComponent,
DataTableComponent, DataChartComponent, ReportComponent, ReportSummaryComponent, ListAllReportsComponent,
AddSummaryModalComponent, CourseDashboardComponent, ReIssueCertificateComponent, DashboardSidebarComponent,
DatasetComponent, MapComponent, FilterComponent
} from './components';
import { NgxDaterangepickerMd } from 'ngx-daterangepicker-material';
// SB core and shared services
import { SearchService } from '@sunbird/core';
import { SharedModule } from '@sunbird/shared';
import { AceEditorModule } from '@derekbaker/ngx-ace-editor-wrapper';
import { DiscussionModule } from '../discussion/discussion.module';
import { SbTableComponent } from './components/sb-table/sb-table.component';
import { DashletModule } from '@project-sunbird/sb-dashlet';
import { MatCheckboxModule } from '@angular/material/checkbox';
import { MatTabsModule } from '@angular/material/tabs';
import { MatSlideToggleModule } from '@angular/material/slide-toggle';
import { MatExpansionModule } from '@angular/material/expansion';
import { SharedFeatureModule } from '@sunbird/shared-feature';
import { MatAutocompleteModule } from '@angular/material/autocomplete';
import { MAT_DIALOG_DATA} from '@angular/material/dialog';
@NgModule({
imports: [
CommonModule,
DashboardRoutingModule,
FormsModule,
ReactiveFormsModule,
ChartsModule,
SuiModule,
SharedModule,
CommonConsumptionModule,
TelemetryModule,
NgxDaterangepickerMd.forRoot(),
AceEditorModule,
DiscussionModule,
DashletModule.forRoot(),
MatCheckboxModule,
MatTabsModule,
MatSlideToggleModule,
MatExpansionModule,
SharedFeatureModule,
MatAutocompleteModule
],
declarations: [CourseConsumptionComponent, OrganisationComponent, CourseProgressComponent, UsageReportsComponent,
DataTableComponent, DataChartComponent, ListAllReportsComponent, ReportSummaryComponent, ReportComponent, AddSummaryModalComponent,
CourseDashboardComponent, ReIssueCertificateComponent, DashboardSidebarComponent, DatasetComponent, MapComponent, FilterComponent, SbTableComponent],
exports: [CourseProgressComponent, DataTableComponent,FilterComponent],
providers: [
RendererService,
DashboardUtilsService,
SearchService,
LineChartService,
CourseConsumptionService,
OrganisationService, DownloadService, CourseProgressService, UsageService, ReportService,
{ provide: MAT_DIALOG_DATA, useValue: {}}
]
})
export class DashboardModule { }