2019-09-23 14:23:24 +09:00
|
|
|
import { NgModule, ModuleWithProviders } from '@angular/core';
|
2019-10-14 17:19:13 +09:00
|
|
|
import { CommonModule, DatePipe } from '@angular/common';
|
2019-09-23 14:23:24 +09:00
|
|
|
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
|
|
|
|
|
|
import { FlexLayoutModule } from '@angular/flex-layout';
|
|
|
|
|
2020-02-18 10:54:35 +09:00
|
|
|
import { MatTooltipModule } from '@angular/material/tooltip';
|
2019-09-23 14:23:24 +09:00
|
|
|
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
|
|
import { MatIconModule } from '@angular/material/icon';
|
|
|
|
import { MatInputModule } from '@angular/material/input';
|
2019-10-11 18:03:01 +09:00
|
|
|
import { MatButtonModule } from '@angular/material/button';
|
2019-10-15 15:02:00 +09:00
|
|
|
import { MatMenuModule } from '@angular/material/menu';
|
2019-09-23 14:23:24 +09:00
|
|
|
|
2020-01-17 10:41:22 +09:00
|
|
|
import { PerfectScrollbarModule } from 'ngx-perfect-scrollbar';
|
|
|
|
import { VirtualScrollerModule } from 'ngx-virtual-scroller';
|
|
|
|
|
2020-01-15 13:53:17 +09:00
|
|
|
import { TranslateModule } from '@ngx-translate/core';
|
|
|
|
|
2019-10-17 16:57:37 +09:00
|
|
|
import { UCapUiModule } from '@ucap-webmessenger/ui';
|
|
|
|
|
2019-09-23 14:23:24 +09:00
|
|
|
import { FormComponent } from './components/form.component';
|
2020-01-15 13:53:17 +09:00
|
|
|
import { MessageBoxComponent } from './components/message-box.component';
|
2019-09-23 14:23:24 +09:00
|
|
|
import { MessagesComponent } from './components/messages.component';
|
2020-01-15 13:53:17 +09:00
|
|
|
import { SearchComponent } from './components/search.component';
|
2019-09-23 14:23:24 +09:00
|
|
|
|
2019-10-07 13:49:12 +09:00
|
|
|
import { DateSplitterComponent as MBDateSplitterComponent } from './components/message-box/date-splitter.component';
|
|
|
|
import { FileComponent as MBFileComponent } from './components/message-box/file.component';
|
2019-10-14 13:53:22 +09:00
|
|
|
import { AttachFileComponent as MAttachFileComponent } from './components/message-box/attach-file.component';
|
2019-10-07 13:49:12 +09:00
|
|
|
import { ImageComponent as MBImageComponent } from './components/message-box/image.component';
|
|
|
|
import { InformationComponent as MBInformationComponent } from './components/message-box/information.component';
|
|
|
|
import { MassTranslationComponent as MBMassTranslationComponent } from './components/message-box/mass-translation.component';
|
|
|
|
import { MassComponent as MBMassComponent } from './components/message-box/mass.component';
|
|
|
|
import { NoticeComponent as MBNoticeComponent } from './components/message-box/notice.component';
|
2019-12-19 14:23:11 +09:00
|
|
|
import { ReadHereComponent as MBReadHereComponent } from './components/message-box/read-here.component';
|
2019-10-07 13:49:12 +09:00
|
|
|
import { RecallComponent as MBRecallComponent } from './components/message-box/recall.component';
|
|
|
|
import { ScheduleComponent as MBScheduleComponent } from './components/message-box/schedule.component';
|
|
|
|
import { StickerComponent as MBStickerComponent } from './components/message-box/sticker.component';
|
|
|
|
import { TextComponent as MBTextComponent } from './components/message-box/text.component';
|
|
|
|
import { TranslationComponent as MBTranslationComponent } from './components/message-box/translation.component';
|
|
|
|
import { VideoComponent as MBVideoComponent } from './components/message-box/video.component';
|
|
|
|
import { VideoConferenceComponent as MBVideoConferenceComponent } from './components/message-box/video-conference.component';
|
2019-12-26 10:20:36 +09:00
|
|
|
import { AllimComponent as MBAllimComponent } from './components/message-box/allim.component';
|
2019-10-07 13:49:12 +09:00
|
|
|
|
|
|
|
const COMPONENTS = [
|
|
|
|
FormComponent,
|
|
|
|
MessagesComponent,
|
2020-01-15 13:53:17 +09:00
|
|
|
MessageBoxComponent,
|
2019-12-23 15:23:27 +09:00
|
|
|
SearchComponent,
|
2019-10-07 13:49:12 +09:00
|
|
|
|
|
|
|
MBDateSplitterComponent,
|
|
|
|
MBFileComponent,
|
2019-10-14 13:53:22 +09:00
|
|
|
MAttachFileComponent,
|
2019-10-07 13:49:12 +09:00
|
|
|
MBImageComponent,
|
|
|
|
MBInformationComponent,
|
|
|
|
MBMassTranslationComponent,
|
|
|
|
MBMassComponent,
|
|
|
|
MBNoticeComponent,
|
2019-12-19 14:23:11 +09:00
|
|
|
MBReadHereComponent,
|
2019-10-07 13:49:12 +09:00
|
|
|
MBRecallComponent,
|
|
|
|
MBScheduleComponent,
|
|
|
|
MBStickerComponent,
|
|
|
|
MBTextComponent,
|
|
|
|
MBTranslationComponent,
|
|
|
|
MBVideoComponent,
|
2019-12-26 10:20:36 +09:00
|
|
|
MBVideoConferenceComponent,
|
|
|
|
MBAllimComponent
|
2019-10-07 13:49:12 +09:00
|
|
|
];
|
2019-09-23 14:23:24 +09:00
|
|
|
const SERVICES = [];
|
2019-10-14 17:19:13 +09:00
|
|
|
const PROVIDERS = [DatePipe];
|
2019-09-23 14:23:24 +09:00
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
imports: [
|
|
|
|
CommonModule,
|
|
|
|
FormsModule,
|
|
|
|
ReactiveFormsModule,
|
|
|
|
FlexLayoutModule,
|
2020-01-17 10:41:22 +09:00
|
|
|
|
2019-09-23 14:23:24 +09:00
|
|
|
MatFormFieldModule,
|
|
|
|
MatIconModule,
|
2019-10-11 18:03:01 +09:00
|
|
|
MatInputModule,
|
2019-10-15 15:02:00 +09:00
|
|
|
MatButtonModule,
|
2019-10-17 16:57:37 +09:00
|
|
|
MatMenuModule,
|
2020-01-15 14:05:36 +09:00
|
|
|
MatTooltipModule,
|
2019-10-17 16:57:37 +09:00
|
|
|
|
2020-01-17 10:41:22 +09:00
|
|
|
PerfectScrollbarModule,
|
|
|
|
VirtualScrollerModule,
|
|
|
|
|
2020-01-08 16:13:00 +09:00
|
|
|
TranslateModule,
|
|
|
|
|
2019-10-17 16:57:37 +09:00
|
|
|
UCapUiModule
|
2019-09-23 14:23:24 +09:00
|
|
|
],
|
|
|
|
exports: [...COMPONENTS],
|
2019-10-14 17:19:13 +09:00
|
|
|
declarations: [...COMPONENTS],
|
|
|
|
providers: [...PROVIDERS]
|
2019-09-23 14:23:24 +09:00
|
|
|
})
|
|
|
|
export class UCapUiChatModule {
|
|
|
|
public static forRoot(): ModuleWithProviders<UCapUiChatModule> {
|
|
|
|
return {
|
|
|
|
ngModule: UCapUiChatModule,
|
|
|
|
providers: [...SERVICES]
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|