UNPKG

1.97 kBTypeScriptView Raw
1import { OnDestroy, OnInit, TemplateRef } from '@angular/core';
2import { NbBooleanInput } from '../helpers';
3import { NbChatCustomMessageService } from './chat-custom-message.service';
4import * as i0 from "@angular/core";
5/**
6 * `[nbCustomMessage]` directive should be used as a structural directive or should be applied to the `ng-template`:
7 *
8 * ```html
9 * <div *nbCustomMessage="'my-custom-type'; let data">
10 * <!-- custom message -->
11 * </div>
12 * ```
13 * or
14 * ```html
15 * <ng-template nbCustomMessage='my-custom-type' let-data>
16 * <!-- custom message -->
17 * </ng-template>
18 * ```
19 */
20export declare class NbChatCustomMessageDirective implements OnInit, OnDestroy {
21 templateRef: TemplateRef<any>;
22 protected customMessageService: NbChatCustomMessageService;
23 /**
24 * Defines a message type which should rendered with the custom message template.
25 * @type {string}
26 */
27 get nbCustomMessage(): string;
28 set nbCustomMessage(value: string);
29 protected _type: string;
30 get type(): string;
31 /**
32 * Disables generic message styles, such as round corners, text color, background, etc.,
33 * so a custom message could be styled from the ground up.
34 *
35 * @type {boolean}
36 */
37 set nbCustomMessageNoStyles(value: boolean);
38 get nbCustomMessageNoStyles(): boolean;
39 protected _noStyles: boolean;
40 static ngAcceptInputType_noStyles: NbBooleanInput;
41 get noStyles(): boolean;
42 constructor(templateRef: TemplateRef<any>, customMessageService: NbChatCustomMessageService);
43 ngOnInit(): void;
44 ngOnDestroy(): void;
45 static ɵfac: i0.ɵɵFactoryDeclaration<NbChatCustomMessageDirective, never>;
46 static ɵdir: i0.ɵɵDirectiveDeclaration<NbChatCustomMessageDirective, "[nbCustomMessage]", never, { "nbCustomMessage": { "alias": "nbCustomMessage"; "required": false; }; "nbCustomMessageNoStyles": { "alias": "nbCustomMessageNoStyles"; "required": false; }; }, {}, never, never, false, never>;
47}