@syncfusion/ej2-treegrid 26.1.39 → 26.1.40
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 -1
- package/dist/es6/ej2-treegrid.es2015.js.map +1 -1
- package/dist/es6/ej2-treegrid.es5.js +12 -1
- 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 +7 -7
- package/src/treegrid/actions/virtual-scroll.d.ts +1 -0
- package/src/treegrid/actions/virtual-scroll.js +6 -0
- package/src/treegrid/base/treegrid.js +6 -1
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 26.1.
|
|
3
|
+
* version : 26.1.40
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2023. 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,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_from": "@syncfusion/ej2-treegrid@*",
|
|
3
|
-
"_id": "@syncfusion/ej2-treegrid@26.1.
|
|
3
|
+
"_id": "@syncfusion/ej2-treegrid@26.1.39",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-qrXXmFlFp24CGLgoAnEegsxxMxcIf5hIlyqKgWv7OesUA3FRaVEEsVl24vIamY5CJQe31xX3kTV9ymhGECravA==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-treegrid",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
"/@syncfusion/ej2-react-treegrid",
|
|
25
25
|
"/@syncfusion/ej2-vue-treegrid"
|
|
26
26
|
],
|
|
27
|
-
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-treegrid/-/ej2-treegrid-26.1.
|
|
28
|
-
"_shasum": "
|
|
27
|
+
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-treegrid/-/ej2-treegrid-26.1.39.tgz",
|
|
28
|
+
"_shasum": "8390133d51011d61d53746a0034e025b70adadb2",
|
|
29
29
|
"_spec": "@syncfusion/ej2-treegrid@*",
|
|
30
30
|
"_where": "/jenkins/workspace/elease-automation_release_26.1.1/packages/included",
|
|
31
31
|
"author": {
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"bundleDependencies": false,
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@syncfusion/ej2-base": "~26.1.37",
|
|
40
|
-
"@syncfusion/ej2-data": "~26.1.
|
|
41
|
-
"@syncfusion/ej2-grids": "~26.1.
|
|
40
|
+
"@syncfusion/ej2-data": "~26.1.40",
|
|
41
|
+
"@syncfusion/ej2-grids": "~26.1.40",
|
|
42
42
|
"@syncfusion/ej2-popups": "~26.1.38"
|
|
43
43
|
},
|
|
44
44
|
"deprecated": false,
|
|
@@ -66,6 +66,6 @@
|
|
|
66
66
|
"url": "git+https://github.com/syncfusion/ej2-treegrid.git"
|
|
67
67
|
},
|
|
68
68
|
"typings": "index.d.ts",
|
|
69
|
-
"version": "26.1.
|
|
69
|
+
"version": "26.1.40",
|
|
70
70
|
"sideEffects": false
|
|
71
71
|
}
|
|
@@ -159,6 +159,11 @@ var VirtualScroll = /** @class */ (function () {
|
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
161
|
//}
|
|
162
|
+
if (this.prevrequestType === 'collapseAll' && pageingDetails.actionArgs.requestType === 'virtualscroll') {
|
|
163
|
+
startIndex = 0;
|
|
164
|
+
endIndex = this.parent.grid.pageSettings.pageSize - 1;
|
|
165
|
+
this.parent.grid.notify(events.virtualActionArgs, { setTop: true });
|
|
166
|
+
}
|
|
162
167
|
if ((this.parent.enableCollapseAll || this.parent.expandStateMapping) && !isNullOrUndefined(this.expandCollapseRec)) {
|
|
163
168
|
if (pageingDetails.count < this.parent.getRows()[0].getBoundingClientRect().height) {
|
|
164
169
|
startIndex = 0;
|
|
@@ -177,6 +182,7 @@ var VirtualScroll = /** @class */ (function () {
|
|
|
177
182
|
}
|
|
178
183
|
this.prevstartIndex = startIndex;
|
|
179
184
|
this.prevendIndex = endIndex;
|
|
185
|
+
this.prevrequestType = pageingDetails.actionArgs.requestType;
|
|
180
186
|
}
|
|
181
187
|
this.parent.notify('updateAction', pageingDetails);
|
|
182
188
|
};
|
|
@@ -1804,7 +1804,7 @@ var TreeGrid = /** @class */ (function (_super) {
|
|
|
1804
1804
|
TreeGrid.prototype.onPropertyChanged = function (newProp) {
|
|
1805
1805
|
var properties = Object.keys(newProp);
|
|
1806
1806
|
var requireRefresh = false;
|
|
1807
|
-
if (properties.indexOf('columns') > -1) {
|
|
1807
|
+
if (properties.indexOf('columns') > -1 && !isNullOrUndefined(newProp.columns)) {
|
|
1808
1808
|
this.grid.columns = this.getGridColumns(newProp.columns);
|
|
1809
1809
|
this.grid['updateColumnObject']();
|
|
1810
1810
|
requireRefresh = true;
|
|
@@ -2927,6 +2927,7 @@ var TreeGrid = /** @class */ (function (_super) {
|
|
|
2927
2927
|
*/
|
|
2928
2928
|
TreeGrid.prototype.expandRow = function (row, record, key, level) {
|
|
2929
2929
|
var _this = this;
|
|
2930
|
+
this.isCollapseAll = false;
|
|
2930
2931
|
if (isNullOrUndefined(row) && isNullOrUndefined(record) && isNullOrUndefined(key) && isNullOrUndefined(level)) {
|
|
2931
2932
|
var error = 'The provided value for the row is undefined. Please ensure the row contains row element.';
|
|
2932
2933
|
this.trigger(events.actionFailure, { error: error });
|
|
@@ -3048,6 +3049,7 @@ var TreeGrid = /** @class */ (function (_super) {
|
|
|
3048
3049
|
*/
|
|
3049
3050
|
TreeGrid.prototype.collapseRow = function (row, record, key) {
|
|
3050
3051
|
var _this = this;
|
|
3052
|
+
this.isExpandAll = false;
|
|
3051
3053
|
if (isNullOrUndefined(row) && isNullOrUndefined(record) && isNullOrUndefined(key)) {
|
|
3052
3054
|
var error = 'The provided value for the row is undefined. Please ensure the row contains row element.';
|
|
3053
3055
|
this.trigger(events.actionFailure, { error: error });
|
|
@@ -3322,6 +3324,9 @@ var TreeGrid = /** @class */ (function (_super) {
|
|
|
3322
3324
|
return e.querySelector('.e-treegrid' + (action === 'expand' ? 'collapse' : 'expand'));
|
|
3323
3325
|
});
|
|
3324
3326
|
}
|
|
3327
|
+
if (!rows.length && this.getRows().length) {
|
|
3328
|
+
rows.push(this.getRows()[0]);
|
|
3329
|
+
}
|
|
3325
3330
|
this.isExpandAll = true;
|
|
3326
3331
|
this.isCollapseAll = true;
|
|
3327
3332
|
if (((this.allowPaging && this.pageSettings.pageSizeMode === 'All') || this.enableVirtualization || this.enableInfiniteScrolling) && !isRemoteData(this)) {
|