@datarailsshared/datarailsshared 1.4.147 → 1.4.148
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 +7 -3
- package/bundles/datarailsshared-datarailsshared.umd.js.map +1 -1
- package/datarailsshared-datarailsshared-1.4.148.tgz +0 -0
- package/datarailsshared-datarailsshared.metadata.json +1 -1
- package/esm2015/lib/dr-chat/chat.component.js +8 -4
- package/fesm2015/datarailsshared-datarailsshared.js +7 -3
- package/fesm2015/datarailsshared-datarailsshared.js.map +1 -1
- package/lib/dr-chat/chat.component.d.ts +1 -0
- package/package.json +1 -1
- package/datarailsshared-datarailsshared-1.4.147.tgz +0 -0
|
@@ -6113,10 +6113,13 @@
|
|
|
6113
6113
|
var _this = this;
|
|
6114
6114
|
setTimeout(function () {
|
|
6115
6115
|
if (_this.messagesContainer) {
|
|
6116
|
-
|
|
6116
|
+
var scrollToOptions = {
|
|
6117
6117
|
top: _this.messagesContainer.nativeElement.scrollHeight,
|
|
6118
|
-
|
|
6119
|
-
|
|
6118
|
+
};
|
|
6119
|
+
if (!_this.reopen) {
|
|
6120
|
+
scrollToOptions.behavior = 'smooth';
|
|
6121
|
+
}
|
|
6122
|
+
_this.messagesContainer.nativeElement.scrollTo(scrollToOptions);
|
|
6120
6123
|
_this.cdr.markForCheck();
|
|
6121
6124
|
}
|
|
6122
6125
|
});
|
|
@@ -6153,6 +6156,7 @@
|
|
|
6153
6156
|
contentUpdateSubject: [{ type: i0.Input }],
|
|
6154
6157
|
scrollBottom: [{ type: i0.Input }],
|
|
6155
6158
|
suggestions: [{ type: i0.Input }],
|
|
6159
|
+
reopen: [{ type: i0.Input }],
|
|
6156
6160
|
messagesContainer: [{ type: i0.ViewChild, args: ['messagesContainer',] }],
|
|
6157
6161
|
messages: [{ type: i0.ContentChildren, args: [DrChatMessageComponent,] }],
|
|
6158
6162
|
chatForm: [{ type: i0.ContentChild, args: [DrChatFormComponent,] }],
|