import { NgModule } from '@angular/core'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { CommonModule } from '@angular/common'; import { HttpModule } from '@angular/http'; import { FormsModule } from '@angular/forms'; import { MaterialModule } from '@angular/material'; import { NgxDatatableModule } from '@swimlane/ngx-datatable'; import { BrowserModule } from '@angular/platform-browser'; import { ReactiveFormsModule } from '@angular/forms'; import 'hammerjs'; import { NgxChartsModule } from '@swimlane/ngx-charts'; import { ToastrModule } from 'ngx-toastr'; import { TreeModule } from 'angular-tree-component'; //import { CalendarComponent } from "angular2-fullcalendar/src/calendar/calendar"; import { GaugeModule } from 'angular-gauge'; //import { NgxGalleryModule } from 'ngx-gallery'; import * as COMPONENTS from './components/index'; import * as SERVICES from './services/index'; import * as DIRECTIVES from './directives/index'; import * as PIPES from './pipes/index'; const COMPONENTS_LIST = Object.keys(COMPONENTS).map(component => COMPONENTS[component]); const SERVICES_LIST = Object.keys(SERVICES).map(service => SERVICES[service]); const PIPES_LIST = Object.keys(PIPES).map(pipe => PIPES[pipe]); //import { CfDialogComponent } from 'cedrus-project-fusion'; @NgModule({ imports: [ BrowserAnimationsModule, CommonModule, HttpModule, FormsModule, MaterialModule, NgxDatatableModule, NgxChartsModule, ToastrModule.forRoot(), TreeModule, GaugeModule.forRoot() //NgxGalleryModule, ], declarations: [ ...COMPONENTS_LIST, ...PIPES_LIST, DIRECTIVES.FabCoreComponent, DIRECTIVES.FabDirectionDirective, DIRECTIVES.FabActionItemDirective, //CalendarComponent ], providers: [ ...SERVICES_LIST ], exports: [ ...COMPONENTS_LIST, ...PIPES_LIST, DIRECTIVES.FabCoreComponent, DIRECTIVES.FabDirectionDirective, DIRECTIVES.FabActionItemDirective ], /*entryComponents: [ CfDialogComponent ]*/ }) export class CfModule { }