@nebular/theme
Version:
@nebular/theme
62 lines • 2.13 kB
JavaScript
/**
* @license
* Copyright Akveo. All Rights Reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*/
import { NgModule } from '@angular/core';
import { NbSharedModule } from '../shared/shared.module';
import { NbButtonModule } from '../button/button.module';
import { NbInputModule } from '../input/input.module';
import { NbIconModule } from '../icon/icon.module';
import { NbChatComponent } from './chat.component';
import { NbChatMessageComponent } from './chat-message.component';
import { NbChatFormComponent } from './chat-form.component';
import { NbChatMessageTextComponent } from './chat-message-text.component';
import { NbChatMessageFileComponent } from './chat-message-file.component';
import { NbChatMessageQuoteComponent } from './chat-message-quote.component';
import { NbChatMessageMapComponent } from './chat-message-map.component';
import { NbChatOptions } from './chat.options';
const NB_CHAT_COMPONENTS = [
NbChatComponent,
NbChatMessageComponent,
NbChatFormComponent,
NbChatMessageTextComponent,
NbChatMessageFileComponent,
NbChatMessageQuoteComponent,
NbChatMessageMapComponent,
];
export class NbChatModule {
static forRoot(options) {
return {
ngModule: NbChatModule,
providers: [
{ provide: NbChatOptions, useValue: options || {} },
],
};
}
static forChild(options) {
return {
ngModule: NbChatModule,
providers: [
{ provide: NbChatOptions, useValue: options || {} },
],
};
}
}
NbChatModule.decorators = [
{ type: NgModule, args: [{
imports: [
NbSharedModule,
NbIconModule,
NbInputModule,
NbButtonModule,
],
declarations: [
...NB_CHAT_COMPONENTS,
],
exports: [
...NB_CHAT_COMPONENTS,
],
},] }
];
//# sourceMappingURL=chat.module.js.map