UNPKG

1.82 kBTypeScriptView Raw
1/**
2 * @license
3 * Copyright Akveo. All Rights Reserved.
4 * Licensed under the MIT License. See License.txt in the project root for license information.
5 */
6import { ChangeDetectorRef } from '@angular/core';
7import { DomSanitizer } from '@angular/platform-browser';
8import * as i0 from "@angular/core";
9export interface NbChatMessageFileIconPreview {
10 url: string;
11 icon: string;
12}
13export interface NbChatMessageFileImagePreview {
14 url: string;
15 type: string;
16}
17export type NbChatMessageFile = NbChatMessageFileIconPreview | NbChatMessageFileImagePreview;
18/**
19 * Chat message component.
20 */
21export declare class NbChatMessageFileComponent {
22 protected cd: ChangeDetectorRef;
23 protected domSanitizer: DomSanitizer;
24 readyFiles: any[];
25 /**
26 * Message sender
27 * @type {string}
28 */
29 message: string;
30 /**
31 * Message sender
32 * @type {string}
33 */
34 sender: string;
35 /**
36 * Message send date
37 * @type {Date}
38 */
39 date: Date;
40 /**
41 * Message send date format, default 'shortTime'
42 * @type {string}
43 */
44 dateFormat: string;
45 /**
46 * Message file path
47 * @type {Date}
48 */
49 set files(files: NbChatMessageFile[]);
50 constructor(cd: ChangeDetectorRef, domSanitizer: DomSanitizer);
51 isImage(file: NbChatMessageFile): boolean;
52 static ɵfac: i0.ɵɵFactoryDeclaration<NbChatMessageFileComponent, never>;
53 static ɵcmp: i0.ɵɵComponentDeclaration<NbChatMessageFileComponent, "nb-chat-message-file", never, { "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; }; }, {}, never, never, false, never>;
54}