@syncfusion/ej2-treegrid 32.1.21 → 32.1.22
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/README.md +1 -1
- 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 -4
- package/dist/es6/ej2-treegrid.es2015.js.map +1 -1
- package/dist/es6/ej2-treegrid.es5.js +12 -4
- 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 +2 -2
- package/src/treegrid/actions/selection.js +9 -4
- package/src/treegrid/actions/virtual-scroll.js +1 -0
- package/src/treegrid/base/treegrid.d.ts +1 -0
- package/src/treegrid/base/treegrid.js +2 -0
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 32.1.
|
|
3
|
+
* version : 32.1.22
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2025. All rights reserved.
|
|
5
5
|
* Use of this code is subject to the terms of our license.
|
|
6
6
|
* A copy of the current license can be obtained at any time by e-mailing
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@syncfusion/ej2-treegrid",
|
|
3
|
-
"version": "32.1.
|
|
3
|
+
"version": "32.1.22",
|
|
4
4
|
"description": "Essential JS 2 TreeGrid Component",
|
|
5
5
|
"author": "Syncfusion Inc.",
|
|
6
6
|
"license": "SEE LICENSE IN license",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@syncfusion/ej2-base": "~32.1.19",
|
|
12
12
|
"@syncfusion/ej2-data": "~32.1.19",
|
|
13
|
-
"@syncfusion/ej2-grids": "~32.1.
|
|
13
|
+
"@syncfusion/ej2-grids": "~32.1.22",
|
|
14
14
|
"@syncfusion/ej2-popups": "~32.1.19"
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {},
|
|
@@ -625,7 +625,7 @@ var Selection = /** @class */ (function () {
|
|
|
625
625
|
var newSelectedIndexes = [];
|
|
626
626
|
for (var _i = 0, currentlySelectedItemsInOrder_1 = currentlySelectedItemsInOrder; _i < currentlySelectedItemsInOrder_1.length; _i++) {
|
|
627
627
|
var item = currentlySelectedItemsInOrder_1[_i];
|
|
628
|
-
if (item.hasChildRecords && isFilterOrSearch && item.level === 0) {
|
|
628
|
+
if (item.hasChildRecords && isFilterOrSearch && item.level === 0 && this.parent.autoCheckHierarchy) {
|
|
629
629
|
this.updateParentSelection(item);
|
|
630
630
|
}
|
|
631
631
|
if (item.uniqueID && item.checkboxState === 'check') {
|
|
@@ -957,9 +957,14 @@ var Selection = /** @class */ (function () {
|
|
|
957
957
|
if ((requestType === 'filtering' || requestType === 'searching' || requestType === 'refresh' ||
|
|
958
958
|
requestType === 'sorting' || requestType === 'paging' || requestType === 'expanding' ||
|
|
959
959
|
requestType === 'expand' || requestType === 'collapsing' || requestType === 'collapse') && !isRemoteData(this.parent)) {
|
|
960
|
-
this.
|
|
961
|
-
|
|
962
|
-
|
|
960
|
+
if (!(isCheckboxcolumn(this.parent) && (requestType === 'refresh' && this.parent['isVirtualExpandCollapse']))) {
|
|
961
|
+
this.selectedItems = [];
|
|
962
|
+
this.selectedUidMap = new Map();
|
|
963
|
+
this.selectedIndexes = [];
|
|
964
|
+
}
|
|
965
|
+
if (requestType === 'filtering' || requestType === 'searching' || requestType === 'sorting') {
|
|
966
|
+
this.headerSelection(false);
|
|
967
|
+
}
|
|
963
968
|
this.refreshVisibleCheckboxes();
|
|
964
969
|
if (this.parent.autoCheckHierarchy) {
|
|
965
970
|
this.updateHeaderCheckboxState();
|
|
@@ -97,6 +97,7 @@ var VirtualScroll = /** @class */ (function () {
|
|
|
97
97
|
count: this.parent.flatData.length
|
|
98
98
|
};
|
|
99
99
|
this.handleSelection();
|
|
100
|
+
this.parent['isVirtualExpandCollapse'] = true;
|
|
100
101
|
var requestType = getValue('isCollapseAll', this.parent) ? 'collapseAll' : 'refresh';
|
|
101
102
|
getValue('grid.renderModule', this.parent).dataManagerSuccess(actionDetails, { requestType: requestType });
|
|
102
103
|
};
|
|
@@ -125,6 +125,7 @@ export declare class TreeGrid extends Component<HTMLElement> implements INotifyP
|
|
|
125
125
|
private freezeColumnRefresh;
|
|
126
126
|
private componentRefresh;
|
|
127
127
|
private isComponentRefresh;
|
|
128
|
+
private isVirtualExpandCollapse;
|
|
128
129
|
private isExcel;
|
|
129
130
|
/** @hidden */
|
|
130
131
|
initialRender: boolean;
|
|
@@ -81,6 +81,7 @@ var TreeGrid = /** @class */ (function (_super) {
|
|
|
81
81
|
_this.freezeColumnRefresh = true;
|
|
82
82
|
_this.componentRefresh = Component.prototype.refresh;
|
|
83
83
|
_this.isComponentRefresh = false;
|
|
84
|
+
_this.isVirtualExpandCollapse = false;
|
|
84
85
|
_this.objectEqualityChecker = function (old, current) {
|
|
85
86
|
if (old) {
|
|
86
87
|
var keys = Object.keys(old);
|
|
@@ -1570,6 +1571,7 @@ var TreeGrid = /** @class */ (function (_super) {
|
|
|
1570
1571
|
_this.notify(events.batchSave, args);
|
|
1571
1572
|
}
|
|
1572
1573
|
_this.notify('updateGridActions', args);
|
|
1574
|
+
_this.isVirtualExpandCollapse = false;
|
|
1573
1575
|
if (args.requestType === 'save' && _this.aggregates.map(function (ag) { return ag.showChildSummary === true; }).length) {
|
|
1574
1576
|
_this.grid.refresh();
|
|
1575
1577
|
}
|