@syncfusion/ej2-treegrid 28.1.36 → 28.1.37

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.
@@ -10241,8 +10241,7 @@ var TreeVirtualRowModelGenerator = /** @__PURE__ @class */ (function (_super) {
10241
10241
  if (!isNullOrUndefined(notifyArgs.virtualInfo)) {
10242
10242
  if (notifyArgs.virtualInfo.direction !== 'right' && notifyArgs.virtualInfo.direction !== 'left') {
10243
10243
  if (!((this.parent.dataSource instanceof DataManager && this.parent.dataSource.dataSource.url !== undefined
10244
- && !this.parent.dataSource.dataSource.offline && this.parent.dataSource.dataSource.url !== '') || isCountRequired(this.parent))
10245
- || notifyArgs.virtualInfo.blockIndexes.length === 1) {
10244
+ && !this.parent.dataSource.dataSource.offline && this.parent.dataSource.dataSource.url !== '') || isCountRequired(this.parent) || isRemoteData(this.parent))) {
10246
10245
  notifyArgs.virtualInfo.blockIndexes = info.blockIndexes;
10247
10246
  }
10248
10247
  }
@@ -10251,7 +10250,7 @@ var TreeVirtualRowModelGenerator = /** @__PURE__ @class */ (function (_super) {
10251
10250
  }
10252
10251
  }
10253
10252
  if ((this.parent.dataSource instanceof DataManager && this.parent.dataSource.dataSource.url !== undefined
10254
- && !this.parent.dataSource.dataSource.offline && this.parent.dataSource.dataSource.url !== '') || isCountRequired(this.parent)) {
10253
+ && !this.parent.dataSource.dataSource.offline && this.parent.dataSource.dataSource.url !== '') || isCountRequired(this.parent) || isRemoteData(this.parent)) {
10255
10254
  return _super.prototype.generateRows.call(this, data, notifyArgs);
10256
10255
  }
10257
10256
  else {
@@ -10272,7 +10271,7 @@ var TreeVirtualRowModelGenerator = /** @__PURE__ @class */ (function (_super) {
10272
10271
  var clear = ['paging', 'refresh', 'sorting', 'filtering', 'searching', 'reorder',
10273
10272
  'save', 'delete'].some(function (value) { return action === value; });
10274
10273
  if ((this.parent.dataSource instanceof DataManager && this.parent.dataSource.dataSource.url !== undefined
10275
- && !this.parent.dataSource.dataSource.offline && this.parent.dataSource.dataSource.url !== '') || isCountRequired(this.parent)) {
10274
+ && !this.parent.dataSource.dataSource.offline && this.parent.dataSource.dataSource.url !== '') || isCountRequired(this.parent) || isRemoteData(this.parent)) {
10276
10275
  var model = 'model';
10277
10276
  var currentPage = this["" + model].currentPage;
10278
10277
  if (clear) {
@@ -14169,12 +14168,27 @@ var VirtualTreeContentRenderer = /** @__PURE__ @class */ (function (_super) {
14169
14168
  }
14170
14169
  }
14171
14170
  }
14172
- if (((downScroll && (scrollArgs.offset.top < (rowHeight * this.totalRecords)))
14171
+ if (isRemoteData(this.parent) || ((downScroll && (scrollArgs.offset.top < (rowHeight * this.totalRecords)))
14173
14172
  || (upScroll)) || (scrollArgs.direction === 'right' || scrollArgs.direction === 'left') ||
14174
14173
  ((this.parent.dataSource instanceof DataManager && this.parent.dataSource.dataSource.url !== undefined
14175
14174
  && !this.parent.dataSource.dataSource.offline && this.parent.dataSource.dataSource.url !== '') && (downScroll || upScroll) || isCountRequired(this.parent))) {
14176
14175
  var viewInfo = this.currentInfo = getValue('getInfoFromView', this).apply(this, [scrollArgs.direction, info, scrollArgs.offset]);
14177
14176
  this.previousInfo = viewInfo;
14177
+ if (this.prevInfo && ((info.axis === 'Y' && this.prevInfo.blockIndexes.toString() === viewInfo.blockIndexes.toString())
14178
+ || ((info.axis === 'X' && this.prevInfo.columnIndexes.toString() === viewInfo.columnIndexes.toString())
14179
+ || (this.parent.isFrozenGrid() && this.parent.getVisibleFrozenLeftCount() >= viewInfo.columnIndexes[0]
14180
+ && this.prevInfo.columnIndexes.toString().includes(viewInfo.columnIndexes.toString()))))) {
14181
+ this.parent.removeMaskRow();
14182
+ this.parent.notify('removeGanttShimmer', { requestType: 'hideShimmer' });
14183
+ if (Browser.isIE) {
14184
+ this.parent.hideSpinner();
14185
+ }
14186
+ this.requestType = this.requestType === 'virtualscroll' ? this['empty'] : this.requestType;
14187
+ if (info.axis === 'Y') {
14188
+ this['restoreEdit']();
14189
+ }
14190
+ return;
14191
+ }
14178
14192
  this.parent.setColumnIndexesInView(this.parent.enableColumnVirtualization ? viewInfo.columnIndexes : []);
14179
14193
  var page = viewInfo.loadNext && !viewInfo.loadSelf ? viewInfo.nextInfo.page : viewInfo.page;
14180
14194
  this.parent.setProperties({ pageSettings: { currentPage: page } }, true);
@@ -14201,7 +14215,7 @@ var VirtualTreeContentRenderer = /** @__PURE__ @class */ (function (_super) {
14201
14215
  };
14202
14216
  VirtualTreeContentRenderer.prototype.appendContent = function (target, newChild, e) {
14203
14217
  if ((this.parent.dataSource instanceof DataManager && this.parent.dataSource.dataSource.url !== undefined
14204
- && !this.parent.dataSource.dataSource.offline && this.parent.dataSource.dataSource.url !== '') || isCountRequired(this.parent)) {
14218
+ && !this.parent.dataSource.dataSource.offline && this.parent.dataSource.dataSource.url !== '') || isCountRequired(this.parent) || isRemoteData(this.parent)) {
14205
14219
  if (getValue('isExpandCollapse', e)) {
14206
14220
  this.isRemoteExpand = true;
14207
14221
  }