@syncfusion/ej2-treegrid 29.2.4 → 29.2.8

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.
@@ -5171,12 +5171,12 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
5171
5171
  _this.grid.refresh();
5172
5172
  }
5173
5173
  if (args.action === 'filter') {
5174
- if (_this.filterModule['currentFilterObject'] !== '' && _this.enableVirtualization && !_this.initialRender && !(isRemoteData(_this) && _this.enableVirtualization)) {
5174
+ if (!args.isCollapseMaintain && _this.filterModule['currentFilterObject'] !== '' && _this.enableVirtualization && !_this.initialRender && !(isRemoteData(_this) && _this.enableVirtualization)) {
5175
5175
  _this.expandAll();
5176
5176
  }
5177
5177
  }
5178
5178
  if (args.requestType === 'searching') {
5179
- if (_this.searchSettings.key !== '' && _this.enableVirtualization && !_this.initialRender && !(isRemoteData(_this) && _this.enableVirtualization)) {
5179
+ if (!args.isCollapseMaintain && _this.searchSettings.key !== '' && _this.enableVirtualization && !_this.initialRender && !(isRemoteData(_this) && _this.enableVirtualization)) {
5180
5180
  _this.expandAll();
5181
5181
  }
5182
5182
  }
@@ -10645,22 +10645,11 @@ var TreeVirtualRowModelGenerator = /** @__PURE__ @class */ (function (_super) {
10645
10645
  return _super.prototype.getData.call(this);
10646
10646
  };
10647
10647
  TreeVirtualRowModelGenerator.prototype.generateRows = function (data, notifyArgs) {
10648
- if (!isNullOrUndefined(notifyArgs.virtualInfo) && notifyArgs.virtualInfo.loadNext &&
10649
- notifyArgs.virtualInfo.nextInfo.page !== this.parent.pageSettings.currentPage) {
10650
- this.parent.setProperties({ pageSettings: { currentPage: notifyArgs.virtualInfo.nextInfo.page } }, true);
10651
- }
10652
- else if (!isNullOrUndefined(notifyArgs.virtualInfo) && !notifyArgs.virtualInfo.loadNext &&
10653
- notifyArgs.virtualInfo.page !== this.parent.pageSettings.currentPage) {
10654
- this.parent.setProperties({ pageSettings: { currentPage: notifyArgs.virtualInfo.page } }, true);
10655
- }
10656
10648
  var info = this.getDataInfo();
10657
10649
  if (!isNullOrUndefined(notifyArgs.virtualInfo)) {
10658
- if (notifyArgs.virtualInfo.direction !== 'right' && notifyArgs.virtualInfo.direction !== 'left') {
10659
- if (!((this.parent.dataSource instanceof DataManager && this.parent.dataSource.dataSource.url !== undefined
10660
- && !this.parent.dataSource.dataSource.offline && this.parent.dataSource.dataSource.url !== '') || isCountRequired(this.parent))
10661
- || notifyArgs.virtualInfo.blockIndexes.length === 1) {
10662
- notifyArgs.virtualInfo.blockIndexes = info.blockIndexes;
10663
- }
10650
+ if ((!isRemoteData(this.parent.root) || isCountRequired(this.parent))
10651
+ || notifyArgs.virtualInfo.blockIndexes.length === 1) {
10652
+ notifyArgs.virtualInfo.blockIndexes = info.blockIndexes;
10664
10653
  }
10665
10654
  else {
10666
10655
  notifyArgs.virtualInfo.blockIndexes = this.getBlockIndexes(notifyArgs.virtualInfo.page);
@@ -11987,8 +11976,13 @@ var Sort = /** @__PURE__ @class */ (function () {
11987
11976
  this.flatSortedData = [];
11988
11977
  };
11989
11978
  Sort.prototype.iterateSort = function (data, srtQry) {
11979
+ var gridQuery = this.parent.query;
11980
+ var filterQuery = [];
11981
+ if (!isNullOrUndefined(gridQuery)) {
11982
+ filterQuery = gridQuery.queries.filter(function (q) { return q.fn === 'onWhere'; });
11983
+ }
11990
11984
  for (var d = 0; d < data.length; d++) {
11991
- if (this.parent.grid.filterSettings.columns.length > 0 || this.parent.grid.searchSettings.key !== '') {
11985
+ if (filterQuery.length > 0 || this.parent.grid.filterSettings.columns.length > 0 || this.parent.grid.searchSettings.key !== '') {
11992
11986
  if (!isNullOrUndefined(getParentData(this.parent, data[parseInt(d.toString(), 10)].uniqueID, true))) {
11993
11987
  this.storedIndex++;
11994
11988
  this.flatSortedData[this.storedIndex] = data[parseInt(d.toString(), 10)];
@@ -14849,6 +14843,7 @@ var VirtualTreeContentRenderer = /** @__PURE__ @class */ (function (_super) {
14849
14843
  || (this.parent.isFrozenGrid() && this.parent.getVisibleFrozenLeftCount() >= viewInfo.columnIndexes[0]
14850
14844
  && this.prevInfo.columnIndexes.toString().includes(viewInfo.columnIndexes.toString()))))) {
14851
14845
  this.parent.removeMaskRow();
14846
+ this.parent.notify('removeGanttShimmer', { requestType: 'hideShimmer' });
14852
14847
  if (Browser.isIE) {
14853
14848
  this.parent.hideSpinner();
14854
14849
  }