1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 | import { TemplateRef } from '@angular/core';
|
7 | import { DomSanitizer, SafeStyle } from '@angular/platform-browser';
|
8 | import { NbBooleanInput } from '../helpers';
|
9 | import { NbChatMessageFile } from './chat-message-file.component';
|
10 | import { NbChatCustomMessageService } from './chat-custom-message.service';
|
11 | import { NbChatCustomMessageDirective } from './chat-custom-message.directive';
|
12 | import * as i0 from "@angular/core";
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 |
|
30 |
|
31 |
|
32 |
|
33 |
|
34 |
|
35 |
|
36 |
|
37 |
|
38 |
|
39 |
|
40 |
|
41 |
|
42 |
|
43 |
|
44 |
|
45 |
|
46 |
|
47 |
|
48 |
|
49 |
|
50 |
|
51 |
|
52 |
|
53 |
|
54 |
|
55 |
|
56 |
|
57 | export declare class NbChatMessageComponent {
|
58 | protected domSanitizer: DomSanitizer;
|
59 | protected customMessageService: NbChatCustomMessageService;
|
60 | protected readonly builtInMessageTypes: string[];
|
61 | avatarStyle: SafeStyle;
|
62 | get _addReplyClass(): boolean;
|
63 | get _addNotReplyClass(): boolean;
|
64 | get _addNoSpaceClass(): boolean;
|
65 | get flyInOut(): boolean;
|
66 | get notReply(): boolean;
|
67 | |
68 |
|
69 |
|
70 | get reply(): boolean;
|
71 | set reply(value: boolean);
|
72 | protected _reply: boolean;
|
73 | static ngAcceptInputType_reply: NbBooleanInput;
|
74 | |
75 |
|
76 |
|
77 |
|
78 | message: string;
|
79 | |
80 |
|
81 |
|
82 |
|
83 | sender: string;
|
84 | |
85 |
|
86 |
|
87 |
|
88 | date: Date;
|
89 | |
90 |
|
91 |
|
92 |
|
93 | dateFormat: string;
|
94 | |
95 |
|
96 |
|
97 | files: NbChatMessageFile[];
|
98 | |
99 |
|
100 |
|
101 |
|
102 | quote: string;
|
103 | |
104 |
|
105 |
|
106 |
|
107 | latitude: number;
|
108 | |
109 |
|
110 |
|
111 |
|
112 | longitude: number;
|
113 | |
114 |
|
115 |
|
116 |
|
117 | set avatar(value: string);
|
118 | |
119 |
|
120 |
|
121 |
|
122 | type: string;
|
123 | |
124 |
|
125 |
|
126 |
|
127 | customMessageData: any;
|
128 | constructor(domSanitizer: DomSanitizer, customMessageService: NbChatCustomMessageService);
|
129 | getInitials(): string;
|
130 | _isBuiltInMessageType(): boolean;
|
131 | _getTemplate(): TemplateRef<any>;
|
132 | _getTemplateContext(): {
|
133 | $implicit: any;
|
134 | isReply: boolean;
|
135 | };
|
136 | _areDefaultStylesEnabled(): boolean;
|
137 | protected getCustomMessage(type: string): NbChatCustomMessageDirective;
|
138 | static ɵfac: i0.ɵɵFactoryDeclaration<NbChatMessageComponent, never>;
|
139 | static ɵcmp: i0.ɵɵComponentDeclaration<NbChatMessageComponent, "nb-chat-message", never, { "reply": { "alias": "reply"; "required": false; }; "message": { "alias": "message"; "required": false; }; "sender": { "alias": "sender"; "required": false; }; "date": { "alias": "date"; "required": false; }; "dateFormat": { "alias": "dateFormat"; "required": false; }; "files": { "alias": "files"; "required": false; }; "quote": { "alias": "quote"; "required": false; }; "latitude": { "alias": "latitude"; "required": false; }; "longitude": { "alias": "longitude"; "required": false; }; "avatar": { "alias": "avatar"; "required": false; }; "type": { "alias": "type"; "required": false; }; "customMessageData": { "alias": "customMessageData"; "required": false; }; }, {}, never, never, false, never>;
|
140 | }
|