@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.
- package/dist/ej2-treegrid.min.js +2 -2
- package/dist/ej2-treegrid.umd.min.js +2 -2
- package/dist/ej2-treegrid.umd.min.js.map +1 -1
- package/dist/es6/ej2-treegrid.es2015.js +12 -17
- package/dist/es6/ej2-treegrid.es2015.js.map +1 -1
- package/dist/es6/ej2-treegrid.es5.js +12 -17
- package/dist/es6/ej2-treegrid.es5.js.map +1 -1
- package/dist/global/ej2-treegrid.min.js +2 -2
- package/dist/global/ej2-treegrid.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +13 -49
- package/src/treegrid/actions/sort.js +6 -1
- package/src/treegrid/base/interface.d.ts +5 -1
- package/src/treegrid/base/treegrid-model.d.ts +1 -1
- package/src/treegrid/base/treegrid.js +2 -2
- package/src/treegrid/renderer/virtual-row-model-generator.js +4 -15
- package/src/treegrid/renderer/virtual-tree-content-render.js +1 -0
|
@@ -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 (
|
|
10659
|
-
|
|
10660
|
-
|
|
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
|
}
|