@syncfusion/ej2-treegrid 27.2.2 → 27.2.3
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 -7
- package/dist/es6/ej2-treegrid.es2015.js.map +1 -1
- package/dist/es6/ej2-treegrid.es5.js +12 -7
- 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 +6 -6
- package/src/treegrid/renderer/virtual-tree-content-render.js +12 -7
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 27.2.
|
|
3
|
+
* version : 27.2.3
|
|
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@27.
|
|
3
|
+
"_id": "@syncfusion/ej2-treegrid@27.2.2",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-m4YVQ/3IDS1fgyP2/WkJV4e9pQ59rIpbHkTRAVPcUkcxVycQIr/hQmSGITLP/NvEdBQMx6jZBHdtO0QAw+maWA==",
|
|
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-27.
|
|
28
|
-
"_shasum": "
|
|
27
|
+
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-treegrid/-/ej2-treegrid-27.2.2.tgz",
|
|
28
|
+
"_shasum": "91fc23a187349c166105f512deba88acba5dc3b0",
|
|
29
29
|
"_spec": "@syncfusion/ej2-treegrid@*",
|
|
30
30
|
"_where": "/jenkins/workspace/elease-automation_release_27.1.1/packages/included",
|
|
31
31
|
"author": {
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@syncfusion/ej2-base": "~27.2.2",
|
|
40
40
|
"@syncfusion/ej2-data": "~27.2.2",
|
|
41
|
-
"@syncfusion/ej2-grids": "~27.2.
|
|
41
|
+
"@syncfusion/ej2-grids": "~27.2.3",
|
|
42
42
|
"@syncfusion/ej2-popups": "~27.2.2"
|
|
43
43
|
},
|
|
44
44
|
"deprecated": false,
|
|
@@ -76,6 +76,6 @@
|
|
|
76
76
|
"url": "git+https://github.com/syncfusion/ej2-treegrid.git"
|
|
77
77
|
},
|
|
78
78
|
"typings": "index.d.ts",
|
|
79
|
-
"version": "27.2.
|
|
79
|
+
"version": "27.2.3",
|
|
80
80
|
"sideEffects": false
|
|
81
81
|
}
|
|
@@ -450,9 +450,15 @@ var VirtualTreeContentRenderer = /** @class */ (function (_super) {
|
|
|
450
450
|
firsttdinx = +attr; // this.parent.getContent().querySelector('.e-content tr').getAttribute('data-rowindex');
|
|
451
451
|
}
|
|
452
452
|
if (firsttdinx === 0) {
|
|
453
|
-
this.
|
|
454
|
-
|
|
455
|
-
this.parent.
|
|
453
|
+
if (this.endIndex - this.startIndex < this.parent.pageSettings.pageSize) {
|
|
454
|
+
this.translateY = !isNullOrUndefined(this.endIndex) ?
|
|
455
|
+
(this.endIndex - this.parent.pageSettings.pageSize) * (this.parent.rowHeight ?
|
|
456
|
+
this.parent.rowHeight : this.parent.getRowHeight()) : 0;
|
|
457
|
+
}
|
|
458
|
+
else {
|
|
459
|
+
this.translateY = (scrollArgs.offset.top - (outBuffer * rowHeight) > 0) ?
|
|
460
|
+
scrollArgs.offset.top - (outBuffer * rowHeight) + rowHeight : 0;
|
|
461
|
+
}
|
|
456
462
|
}
|
|
457
463
|
else if (this.parent.getFrozenColumns() > 0) {
|
|
458
464
|
scrollArgs.offset.top = scrollArgs.offset.top + 80;
|
|
@@ -486,6 +492,8 @@ var VirtualTreeContentRenderer = /** @class */ (function (_super) {
|
|
|
486
492
|
((this.startIndex - currentViewData[0]["" + indexValue]) < (this.parent.pageSettings.pageSize / 2)) && this.parent.selectionModule.isRowSelected) {
|
|
487
493
|
this.startIndex = currentViewData[0]["" + indexValue] + (this.parent.pageSettings.pageSize / 2);
|
|
488
494
|
}
|
|
495
|
+
var selectedIndex = this.parent.root.selectedRowIndex;
|
|
496
|
+
this.startIndex = selectedIndex !== -1 && selectedIndex !== this.startIndex ? this.startIndex - 1 : this.startIndex;
|
|
489
497
|
if (scrollArgs.offset.top > (rowHeight * this.totalRecords)) {
|
|
490
498
|
this.translateY = this.getTranslateY(scrollArgs.offset.top, content.getBoundingClientRect().height);
|
|
491
499
|
}
|
|
@@ -494,10 +502,7 @@ var VirtualTreeContentRenderer = /** @class */ (function (_super) {
|
|
|
494
502
|
this.translateY = (this.totalRecords * rowHeight) - ((this.endIndex - this.startIndex) * rowHeight);
|
|
495
503
|
}
|
|
496
504
|
else {
|
|
497
|
-
if (this.parent.
|
|
498
|
-
this.translateY = scrollArgs.offset.top - rowHeight * 2;
|
|
499
|
-
}
|
|
500
|
-
else if (this.parent.getFrozenColumns() > 0) {
|
|
505
|
+
if (this.parent.getFrozenColumns() > 0) {
|
|
501
506
|
this.translateY = scrollArgs.offset.top - ((rowHeight * 2) + this.parent.pageSettings.pageSize);
|
|
502
507
|
}
|
|
503
508
|
else {
|