@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.
@@ -6113,10 +6113,13 @@
6113
6113
  var _this = this;
6114
6114
  setTimeout(function () {
6115
6115
  if (_this.messagesContainer) {
6116
- _this.messagesContainer.nativeElement.scrollTo({
6116
+ var scrollToOptions = {
6117
6117
  top: _this.messagesContainer.nativeElement.scrollHeight,
6118
- behavior: 'smooth'
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,] }],