@syncfusion/ej2-treegrid 34.1.32 → 34.1.33
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 +11 -14
- package/dist/es6/ej2-treegrid.es2015.js.map +1 -1
- package/dist/es6/ej2-treegrid.es5.js +11 -14
- 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/infinite-scroll.js +3 -1
- package/src/treegrid/base/treegrid.js +8 -13
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 34.1.
|
|
3
|
+
* version : 34.1.33
|
|
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": "34.1.
|
|
3
|
+
"version": "34.1.33",
|
|
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": "~34.1.30",
|
|
12
12
|
"@syncfusion/ej2-data": "~34.1.32",
|
|
13
|
-
"@syncfusion/ej2-grids": "~34.1.
|
|
13
|
+
"@syncfusion/ej2-grids": "~34.1.33",
|
|
14
14
|
"@syncfusion/ej2-popups": "~34.1.29"
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {},
|
|
@@ -94,7 +94,8 @@ var InfiniteScroll = /** @class */ (function () {
|
|
|
94
94
|
var previousPage = this.parent.grid.pageSettings.currentPage;
|
|
95
95
|
var nextPage = Math.ceil(index / this.parent.grid.pageSettings.pageSize) + 1;
|
|
96
96
|
var totalVisibleCount = this.visualData ? this.visualData.length : 0;
|
|
97
|
-
if ((
|
|
97
|
+
if ((totalVisibleCount > 0 && (index + 1) >= totalVisibleCount) ||
|
|
98
|
+
(previousPage >= this.maxPage) || (nextPage > this.maxPage)) {
|
|
98
99
|
return;
|
|
99
100
|
}
|
|
100
101
|
this.parent.grid.pageSettings.currentPage = nextPage;
|
|
@@ -178,6 +179,7 @@ var InfiniteScroll = /** @class */ (function () {
|
|
|
178
179
|
var initial = actions.some(function (value) { return value === actionArgs.requestType; });
|
|
179
180
|
var initialRender = initial ? true : this.parent.initialRender ? true : false;
|
|
180
181
|
this.visualData = visualData;
|
|
182
|
+
this.maxPage = Math.ceil(visualData.length / this.parent.pageSettings.pageSize);
|
|
181
183
|
pageingDetails.count = visualData.length;
|
|
182
184
|
if (getValue('isPrinting', pageingDetails.actionArgs)) {
|
|
183
185
|
pageingDetails.result = visualData;
|
|
@@ -4144,15 +4144,9 @@ var TreeGrid = /** @class */ (function (_super) {
|
|
|
4144
4144
|
var _this = this;
|
|
4145
4145
|
var rows;
|
|
4146
4146
|
var detailRow = row.nextElementSibling ? row.nextElementSibling.classList.contains('e-detailrow') ? row.nextElementSibling : null : null;
|
|
4147
|
-
var childRecords
|
|
4148
|
-
|
|
4149
|
-
|
|
4150
|
-
}
|
|
4151
|
-
else {
|
|
4152
|
-
childRecords = this.grid.currentViewData.filter(function (e) {
|
|
4153
|
-
return e.parentUniqueID === record.uniqueID;
|
|
4154
|
-
});
|
|
4155
|
-
}
|
|
4147
|
+
var childRecords = this.grid.currentViewData.filter(function (e) {
|
|
4148
|
+
return e.parentUniqueID === record.uniqueID;
|
|
4149
|
+
});
|
|
4156
4150
|
if (this.isPixelHeight() && row.cells[0].classList.contains('e-lastrowcell')) {
|
|
4157
4151
|
this.lastRowBorder(row, false);
|
|
4158
4152
|
}
|
|
@@ -4234,11 +4228,12 @@ var TreeGrid = /** @class */ (function (_super) {
|
|
|
4234
4228
|
this.toggleRowVisibility(freezeRightRows[parseInt(i.toString(), 10)], displayAction);
|
|
4235
4229
|
}
|
|
4236
4230
|
this.notify('childRowExpand', { row: rows[parseInt(i.toString(), 10)] });
|
|
4237
|
-
|
|
4238
|
-
|
|
4239
|
-
|
|
4231
|
+
var childRecord = !isNullOrUndefined(childRecords) ? childRecords[parseInt(i.toString(), 10)] : undefined;
|
|
4232
|
+
if (childRecord && (childRecord.childRecords && childRecord.childRecords.length > 0) && (action !== 'expand' ||
|
|
4233
|
+
isNullOrUndefined(childRecord.expanded) || childRecord.expanded)) {
|
|
4234
|
+
this.expandCollapse(action, rows[parseInt(i.toString(), 10)], childRecord, true);
|
|
4240
4235
|
if (this.frozenColumns <= this.treeColumnIndex && !isNullOrUndefined(movableRows)) {
|
|
4241
|
-
this.expandCollapse(action, movableRows[parseInt(i.toString(), 10)],
|
|
4236
|
+
this.expandCollapse(action, movableRows[parseInt(i.toString(), 10)], childRecord, true);
|
|
4242
4237
|
}
|
|
4243
4238
|
}
|
|
4244
4239
|
}
|