import { ChatServerManagerComponent } from './components/shared/chat-server-manager/chat-server-manager.component' ; import { InfoDialogComponent } from './components/shared/info-dialog/info-dialog.component' ; import { LoadingIndicatorComponent } from './components/shared/loading-indicator/loading-indicator.component' ; import { LoginComponent } from './components/shared/login/login.component' ; import { PublishDialogComponent } from './components/shared/publish-dialog/publish-dialog.component' ; import { EditBusinessAccountComponent } from './components/shared/edit-business-account/edit-business-account.component' ; import { AppHeaderBarComponent } from './components/shared/app-header-bar/app-header-bar.component' ; import { GetAnaChatServerComponent } from './components/shared/get-ana-chat-server/get-ana-chat-server.component' ; import { BrowserModule , Title } from '@angular/platform-browser' ; import { NgModule , NO_ERRORS_SCHEMA } from '@angular/core' ; import { CommonModule } from '@angular/common' ; import { FormsModule , ReactiveFormsModule } from '@angular/forms' ; import { HttpModule } from '@angular/http' ; import { RouterModule , Routes } from '@angular/router' ; import { HttpClientModule } from '@angular/common/http' ; import { BrowserAnimationsModule } from '@angular/platform-browser/animations' ; import { MatButtonModule , MatMenuModule , MatSidenavModule , MatInputModule , MatDialogModule , MatSelectModule , MatCheckboxModule , MatTabsModule , MatIconModule , MatTooltipModule , MatExpansionModule , MatProgressSpinnerModule , MatSnackBarModule , MatCardModule , MatListModule , MatGridListModule , MatProgressBarModule , MatToolbarModule , ErrorStateMatcher , ShowOnDirtyErrorStateMatcher , MatAutocompleteModule , MatChipsModule , MatSlideToggleModule , MatRadioModule } from '@angular/material' ; import { NgxElectronModule } from 'ngx-electron' ; import { EllipsisPipe } from './pipes/ellipsis.pipe' ; import { AppComponent } from './app.component' ; import { ChatFlowService } from './services/chatflow.service' ; import { GlobalsService } from './services/globals.service' ; import { SettingsService } from './services/settings.service' ; import { InfoDialogService } from './services/info-dialog.service' ; import { SimulatorService } from './services/simulator.service' ; import { DataService } from './services/data.service' ; import { CreateUserComponent } from './components/shared/create-user/create-user.component' ; import { UpdatePasswordComponent } from './components/shared/update-password/update-password.component' ; import { LoginService } from './services/login.service' ; import { ChangePasswordComponent } from './components/shared/change-password/change-password.component' ; import { LoadingMaskComponent } from './components/shared/loading-mask/loading-mask.component' ; import { CreateChatbotComponent } from './components/shared/create-chatbot/create-chatbot.component' ; import { PublishChatbotComponent } from './components/shared/publish-chatbot/publish-chatbot.component' ; import { AnalyticsWindowService } from './services/analytics-window.service' ; import { HotkeyModule } from 'angular2-hotkeys' ; import { BusinessPickerComponent } from './components/shared/business-picker/business-picker.component' ; import { AnaCloudSignupComponent } from './components/shared/ana-cloud-signup/ana-cloud-signup.component' ; import { AutofocusDirective } from './directives/autofocus.directive' ; import { HighlightJsModule } from 'angular2-highlight-js' ; import { ClipboardModule } from 'ngx-clipboard' ; const MAT_MODULES = [ MatButtonModule , MatMenuModule , MatSidenavModule , MatInputModule , MatDialogModule , MatSelectModule , MatCheckboxModule , MatTabsModule , MatIconModule , MatTooltipModule , MatExpansionModule , MatProgressSpinnerModule , MatProgressBarModule , MatSnackBarModule , MatCardModule , MatListModule , MatToolbarModule , MatGridListModule , MatAutocompleteModule , MatChipsModule , MatSlideToggleModule , MatRadioModule ] ; const IMPORT_EXPORT = [ CommonModule , HttpModule , HttpClientModule , FormsModule , ReactiveFormsModule , NgxElectronModule , HotkeyModule , HighlightJsModule , ClipboardModule , ] . concat ( MAT_MODULES ) ; const DECLARATIONS = [ ChatServerManagerComponent , InfoDialogComponent , LoadingIndicatorComponent , LoginComponent , PublishDialogComponent , EditBusinessAccountComponent , AppHeaderBarComponent , CreateUserComponent , UpdatePasswordComponent , ChangePasswordComponent , LoadingMaskComponent , GetAnaChatServerComponent , CreateChatbotComponent , PublishChatbotComponent , BusinessPickerComponent , AnaCloudSignupComponent , AutofocusDirective , EllipsisPipe ] ; @ NgModule ( { declarations : DECLARATIONS , imports : ( < any > [ BrowserModule , BrowserAnimationsModule ] . concat ( IMPORT_EXPORT ) ) , exports : IMPORT_EXPORT . concat ( DECLARATIONS ) , providers : [ ChatFlowService , GlobalsService , SettingsService , InfoDialogService , Title , SimulatorService , DataService , LoginService , AnalyticsWindowService ] , entryComponents : [ InfoDialogComponent , PublishDialogComponent , LoginComponent , ChatServerManagerComponent , EditBusinessAccountComponent , CreateUserComponent , UpdatePasswordComponent , ChangePasswordComponent , LoadingMaskComponent , GetAnaChatServerComponent , CreateChatbotComponent , PublishChatbotComponent , BusinessPickerComponent , AnaCloudSignupComponent ] } ) export class SharedModule { }