@datarailsshared/datarailsshared 1.4.102 → 1.4.103
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/datarailsshared-datarailsshared.umd.js +38 -3
- package/bundles/datarailsshared-datarailsshared.umd.js.map +1 -1
- package/datarailsshared-datarailsshared-1.4.103.tgz +0 -0
- package/datarailsshared-datarailsshared.metadata.json +1 -1
- package/esm2015/lib/dr-chat/chat.component.js +17 -1
- package/esm2015/lib/dr-chat/dr-chat-message/chat-message.component.js +16 -3
- package/esm2015/lib/models/chat.js +1 -2
- package/fesm2015/datarailsshared-datarailsshared.js +29 -3
- package/fesm2015/datarailsshared-datarailsshared.js.map +1 -1
- package/lib/dr-chat/chat.component.d.ts +6 -2
- package/lib/dr-chat/dr-chat-message/chat-message.component.d.ts +8 -0
- package/lib/models/chat.d.ts +0 -1
- package/package.json +1 -1
- package/datarailsshared-datarailsshared-1.4.102.tgz +0 -0
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
import { ElementRef, QueryList, AfterViewInit, ChangeDetectorRef, EventEmitter } from '@angular/core';
|
|
1
|
+
import { ElementRef, QueryList, AfterViewInit, ChangeDetectorRef, EventEmitter, OnDestroy } from '@angular/core';
|
|
2
2
|
import { DrChatFormComponent } from './dr-chat-form/chat-form.component';
|
|
3
3
|
import { DrChatMessageComponent } from './dr-chat-message/chat-message.component';
|
|
4
|
-
|
|
4
|
+
import { Subject } from 'rxjs';
|
|
5
|
+
export declare class DrChatComponent implements AfterViewInit, OnDestroy {
|
|
5
6
|
private cdr;
|
|
7
|
+
private destroy$;
|
|
6
8
|
title: string;
|
|
7
9
|
showClearButton: boolean;
|
|
8
10
|
noMessagesPlaceholder: string;
|
|
11
|
+
set contentUpdateSubject(value: Subject<any>);
|
|
9
12
|
/**
|
|
10
13
|
* Scroll chat to the bottom of the list when a new message arrives
|
|
11
14
|
*/
|
|
@@ -20,4 +23,5 @@ export declare class DrChatComponent implements AfterViewInit {
|
|
|
20
23
|
ngAfterViewInit(): void;
|
|
21
24
|
updateView(): void;
|
|
22
25
|
scrollListBottom(): void;
|
|
26
|
+
ngOnDestroy(): void;
|
|
23
27
|
}
|
|
@@ -27,6 +27,14 @@ export declare class DrChatMessageComponent {
|
|
|
27
27
|
* @type {any}
|
|
28
28
|
*/
|
|
29
29
|
customMessageData: any;
|
|
30
|
+
/**
|
|
31
|
+
* The outer flag is whether the message is empty. Needed if it is impossible to calculate it inside.
|
|
32
|
+
*
|
|
33
|
+
* @type {boolean}
|
|
34
|
+
*/
|
|
35
|
+
get isEmpty(): boolean;
|
|
36
|
+
set isEmpty(value: boolean);
|
|
37
|
+
protected _isEmpty: boolean;
|
|
30
38
|
customMessage: boolean;
|
|
31
39
|
constructor(customMessageService: DrChatCustomMessageService);
|
|
32
40
|
getTemplate(): TemplateRef<any>;
|
package/lib/models/chat.d.ts
CHANGED
package/package.json
CHANGED
|
Binary file
|