@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.
@@ -4870,12 +4870,12 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
4870
4870
  this.grid.refresh();
4871
4871
  }
4872
4872
  if (args.action === 'filter') {
4873
- if (this.filterModule['currentFilterObject'] !== '' && this.enableVirtualization && !this.initialRender && !(isRemoteData(this) && this.enableVirtualization)) {
4873
+ if (!args.isCollapseMaintain && this.filterModule['currentFilterObject'] !== '' && this.enableVirtualization && !this.initialRender && !(isRemoteData(this) && this.enableVirtualization)) {
4874
4874
  this.expandAll();
4875
4875
  }
4876
4876
  }
4877
4877
  if (args.requestType === 'searching') {
4878
- if (this.searchSettings.key !== '' && this.enableVirtualization && !this.initialRender && !(isRemoteData(this) && this.enableVirtualization)) {
4878
+ if (!args.isCollapseMaintain && this.searchSettings.key !== '' && this.enableVirtualization && !this.initialRender && !(isRemoteData(this) && this.enableVirtualization)) {
4879
4879
  this.expandAll();
4880
4880
  }
4881
4881
  }
@@ -10259,22 +10259,11 @@ class TreeVirtualRowModelGenerator extends VirtualRowModelGenerator {
10259
10259
  return super.getData();
10260
10260
  }
10261
10261
  generateRows(data, notifyArgs) {
10262
- if (!isNullOrUndefined(notifyArgs.virtualInfo) && notifyArgs.virtualInfo.loadNext &&
10263
- notifyArgs.virtualInfo.nextInfo.page !== this.parent.pageSettings.currentPage) {
10264
- this.parent.setProperties({ pageSettings: { currentPage: notifyArgs.virtualInfo.nextInfo.page } }, true);
10265
- }
10266
- else if (!isNullOrUndefined(notifyArgs.virtualInfo) && !notifyArgs.virtualInfo.loadNext &&
10267
- notifyArgs.virtualInfo.page !== this.parent.pageSettings.currentPage) {
10268
- this.parent.setProperties({ pageSettings: { currentPage: notifyArgs.virtualInfo.page } }, true);
10269
- }
10270
10262
  const info = this.getDataInfo();
10271
10263
  if (!isNullOrUndefined(notifyArgs.virtualInfo)) {
10272
- if (notifyArgs.virtualInfo.direction !== 'right' && notifyArgs.virtualInfo.direction !== 'left') {
10273
- if (!((this.parent.dataSource instanceof DataManager && this.parent.dataSource.dataSource.url !== undefined
10274
- && !this.parent.dataSource.dataSource.offline && this.parent.dataSource.dataSource.url !== '') || isCountRequired(this.parent))
10275
- || notifyArgs.virtualInfo.blockIndexes.length === 1) {
10276
- notifyArgs.virtualInfo.blockIndexes = info.blockIndexes;
10277
- }
10264
+ if ((!isRemoteData(this.parent.root) || isCountRequired(this.parent))
10265
+ || notifyArgs.virtualInfo.blockIndexes.length === 1) {
10266
+ notifyArgs.virtualInfo.blockIndexes = info.blockIndexes;
10278
10267
  }
10279
10268
  else {
10280
10269
  notifyArgs.virtualInfo.blockIndexes = this.getBlockIndexes(notifyArgs.virtualInfo.page);
@@ -11582,8 +11571,13 @@ class Sort {
11582
11571
  this.flatSortedData = [];
11583
11572
  }
11584
11573
  iterateSort(data, srtQry) {
11574
+ const gridQuery = this.parent.query;
11575
+ let filterQuery = [];
11576
+ if (!isNullOrUndefined(gridQuery)) {
11577
+ filterQuery = gridQuery.queries.filter((q) => q.fn === 'onWhere');
11578
+ }
11585
11579
  for (let d = 0; d < data.length; d++) {
11586
- if (this.parent.grid.filterSettings.columns.length > 0 || this.parent.grid.searchSettings.key !== '') {
11580
+ if (filterQuery.length > 0 || this.parent.grid.filterSettings.columns.length > 0 || this.parent.grid.searchSettings.key !== '') {
11587
11581
  if (!isNullOrUndefined(getParentData(this.parent, data[parseInt(d.toString(), 10)].uniqueID, true))) {
11588
11582
  this.storedIndex++;
11589
11583
  this.flatSortedData[this.storedIndex] = data[parseInt(d.toString(), 10)];
@@ -14411,6 +14405,7 @@ class VirtualTreeContentRenderer extends VirtualContentRenderer {
14411
14405
  || (this.parent.isFrozenGrid() && this.parent.getVisibleFrozenLeftCount() >= viewInfo.columnIndexes[0]
14412
14406
  && this.prevInfo.columnIndexes.toString().includes(viewInfo.columnIndexes.toString()))))) {
14413
14407
  this.parent.removeMaskRow();
14408
+ this.parent.notify('removeGanttShimmer', { requestType: 'hideShimmer' });
14414
14409
  if (Browser.isIE) {
14415
14410
  this.parent.hideSpinner();
14416
14411
  }