@syncfusion/ej2-treegrid 26.2.4 → 26.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 +30 -9
- package/dist/es6/ej2-treegrid.es2015.js.map +1 -1
- package/dist/es6/ej2-treegrid.es5.js +30 -9
- 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 +9 -9
- package/src/treegrid/actions/virtual-scroll.d.ts +1 -0
- package/src/treegrid/actions/virtual-scroll.js +4 -0
- package/src/treegrid/base/data.js +3 -3
- package/src/treegrid/base/treegrid.js +23 -6
- package/styles/bootstrap-dark.css +13 -3
- package/styles/bootstrap.css +13 -3
- package/styles/bootstrap4.css +13 -3
- package/styles/bootstrap5-dark.css +13 -3
- package/styles/bootstrap5.css +13 -3
- package/styles/fabric-dark.css +13 -3
- package/styles/fabric.css +13 -3
- package/styles/fluent-dark.css +13 -3
- package/styles/fluent.css +13 -3
- package/styles/fluent2.css +13 -3
- package/styles/highcontrast-light.css +13 -3
- package/styles/highcontrast.css +20 -3
- package/styles/material-dark.css +13 -3
- package/styles/material.css +13 -3
- package/styles/material3-dark.css +13 -3
- package/styles/material3.css +13 -3
- package/styles/tailwind-dark.css +13 -3
- package/styles/tailwind.css +13 -3
- package/styles/treegrid/_layout.scss +28 -3
- package/styles/treegrid/bootstrap-dark.css +13 -3
- package/styles/treegrid/bootstrap.css +13 -3
- package/styles/treegrid/bootstrap4.css +13 -3
- package/styles/treegrid/bootstrap5-dark.css +13 -3
- package/styles/treegrid/bootstrap5.css +13 -3
- package/styles/treegrid/fabric-dark.css +13 -3
- package/styles/treegrid/fabric.css +13 -3
- package/styles/treegrid/fluent-dark.css +13 -3
- package/styles/treegrid/fluent.css +13 -3
- package/styles/treegrid/fluent2.css +13 -3
- package/styles/treegrid/highcontrast-light.css +13 -3
- package/styles/treegrid/highcontrast.css +20 -3
- package/styles/treegrid/material-dark.css +13 -3
- package/styles/treegrid/material.css +13 -3
- package/styles/treegrid/material3-dark.css +13 -3
- package/styles/treegrid/material3.css +13 -3
- package/styles/treegrid/tailwind-dark.css +13 -3
- package/styles/treegrid/tailwind.css +13 -3
|
@@ -2590,13 +2590,13 @@ var DataManipulation = /** @__PURE__ @class */ (function () {
|
|
|
2590
2590
|
e["" + result_1] = _this.parent.summaryModule.calculateSummaryValue(summaryQuery, e["" + result_1], true);
|
|
2591
2591
|
}
|
|
2592
2592
|
}
|
|
2593
|
+
if (rowDetails.action === 'remoteExpand' && _this.parent.allowPaging && _this.parent.pageSettings.pageSizeMode === 'All') {
|
|
2594
|
+
_this.parent.grid.pageSettings.totalRecordsCount = _this.parent.grid.currentViewData.length + result.length;
|
|
2595
|
+
}
|
|
2593
2596
|
if (_this.parent.enableVirtualization) {
|
|
2594
2597
|
_this.parent.grid.pageSettings.totalRecordsCount = e.count;
|
|
2595
2598
|
}
|
|
2596
2599
|
e.count = _this.parent.grid.pageSettings.totalRecordsCount;
|
|
2597
|
-
if (rowDetails.action === 'remoteExpand' && _this.parent.allowPaging) {
|
|
2598
|
-
_this.parent.grid.pageSettings.totalRecordsCount = _this.parent.grid.currentViewData.length + result.length;
|
|
2599
|
-
}
|
|
2600
2600
|
var virtualArgs = {};
|
|
2601
2601
|
if (_this.parent.enableVirtualization) {
|
|
2602
2602
|
_this.remoteVirtualAction(virtualArgs);
|
|
@@ -4705,21 +4705,25 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
|
|
|
4705
4705
|
_this.IsExpandCollapseClicked(args);
|
|
4706
4706
|
if (!isNullOrUndefined(args.data) && _this.selectionSettings.persistSelection
|
|
4707
4707
|
&& _this.columnModel.filter(function (col) { return col.type === 'checkbox'; }).length > 0 && isRemoteData(_this)) {
|
|
4708
|
-
if (!isNullOrUndefined(args.data.parentItem)) {
|
|
4708
|
+
if (!isNullOrUndefined(args.data.parentItem) || args.isHeaderCheckboxClicked) {
|
|
4709
4709
|
_this.parentQuery = _this.query.queries.filter(function (q) { return q.e.field === _this.parentIdMapping; });
|
|
4710
4710
|
_this.query.queries = _this.query.queries.slice(0, 0);
|
|
4711
4711
|
}
|
|
4712
4712
|
}
|
|
4713
|
+
if (_this.pageSettings.pageSizeMode === 'Root') {
|
|
4714
|
+
_this.grid.selectionModule['totalRecordsCount'] = _this.grid.currentViewData.length;
|
|
4715
|
+
}
|
|
4716
|
+
if (_this.enableVirtualization && args.rowIndex === _this.selectedRowIndex) {
|
|
4717
|
+
args.cancel = true;
|
|
4718
|
+
}
|
|
4713
4719
|
_this.trigger(rowSelecting, args);
|
|
4714
4720
|
};
|
|
4715
4721
|
this.grid.rowDeselecting = function (args) {
|
|
4716
4722
|
_this.IsExpandCollapseClicked(args);
|
|
4717
|
-
if (isNullOrUndefined(args.data) && _this.selectionSettings.persistSelection
|
|
4723
|
+
if (!isNullOrUndefined(args.data) && _this.selectionSettings.persistSelection
|
|
4718
4724
|
&& _this.columnModel.filter(function (col) { return col.type === 'checkbox'; }).length > 0 && isRemoteData(_this)) {
|
|
4719
|
-
|
|
4720
|
-
|
|
4721
|
-
_this.query.queries = _this.query.queries.slice(0, 0);
|
|
4722
|
-
}
|
|
4725
|
+
_this.parentQuery = _this.query.queries.filter(function (q) { return q.e.field === _this.parentIdMapping; });
|
|
4726
|
+
_this.query.queries = _this.query.queries.slice(0, 0);
|
|
4723
4727
|
}
|
|
4724
4728
|
_this.trigger(rowDeselecting, args);
|
|
4725
4729
|
};
|
|
@@ -6664,6 +6668,19 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
|
|
|
6664
6668
|
else if (!this.isExpandAll) {
|
|
6665
6669
|
this.trigger(expanded, expandArgs);
|
|
6666
6670
|
}
|
|
6671
|
+
if (record.expanded && this.enableVirtualization && this.selectionSettings.persistSelection
|
|
6672
|
+
&& !isNullOrUndefined(this.virtualScrollModule.prevSelectedRecord)) {
|
|
6673
|
+
for (var i = 0; i < this.virtualScrollModule.prevSelectedRecord.length; i++) {
|
|
6674
|
+
if (record.uniqueID ===
|
|
6675
|
+
this.virtualScrollModule.prevSelectedRecord[parseInt(i.toString(), 10)].parentItem.uniqueID) {
|
|
6676
|
+
var updateRowSelection = 'updateRowSelection';
|
|
6677
|
+
var index =
|
|
6678
|
+
// eslint-disable-next-line max-len
|
|
6679
|
+
this.getCurrentViewRecords().indexOf(this.virtualScrollModule.prevSelectedRecord[parseInt(i.toString(), 10)]);
|
|
6680
|
+
this.grid.selectionModule["" + updateRowSelection](this.getRows()[parseInt(index.toString(), 10)], index);
|
|
6681
|
+
}
|
|
6682
|
+
}
|
|
6683
|
+
}
|
|
6667
6684
|
}
|
|
6668
6685
|
};
|
|
6669
6686
|
TreeGrid.prototype.expandCollapseAllChildren = function (record, action, key, level) {
|
|
@@ -14054,6 +14071,10 @@ var VirtualScroll = /** @__PURE__ @class */ (function () {
|
|
|
14054
14071
|
this.parent.selectionSettings.mode === 'Row' && !this.parent.selectionSettings.persistSelection) {
|
|
14055
14072
|
this.parent.grid.clearSelection();
|
|
14056
14073
|
}
|
|
14074
|
+
if (getValue('isCollapseAll', this.parent) && this.parent.selectionSettings.persistSelection && this.parent.getSelectedRecords().length > 0) {
|
|
14075
|
+
this.prevSelectedRecord = this.parent.getSelectedRecords();
|
|
14076
|
+
this.parent.grid.clearSelection();
|
|
14077
|
+
}
|
|
14057
14078
|
var requestType = getValue('isCollapseAll', this.parent) ? 'collapseAll' : 'refresh';
|
|
14058
14079
|
getValue('grid.renderModule', this.parent).dataManagerSuccess(ret, { requestType: requestType });
|
|
14059
14080
|
};
|