@syncfusion/ej2-treegrid 27.1.56 → 27.1.57

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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 27.1.56
3
+ * version : 27.1.57
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.1.55",
3
+ "_id": "@syncfusion/ej2-treegrid@27.1.56",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-ewTpESs5V8bZWoYPzZ1j5MprBKlC99uAmT3OTs7EQSUNYMoMrx7ER15MnteAaWnmladqof7JX9/Bzm8nN/te2w==",
5
+ "_integrity": "sha512-cr7OJHZdUiBwbhfNA/ew1/JcqP0NKczdLFJOaR8i+GVcuI2O915Bllw3k5+4zT9RdwuOpkZMY82dWlCPlbx/lQ==",
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.1.55.tgz",
28
- "_shasum": "bcfb174e46b3d9dac3c72b4c1803cb69bc8ab636",
27
+ "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-treegrid/-/ej2-treegrid-27.1.56.tgz",
28
+ "_shasum": "f21b4975af9e3841db2a2b8b51de858950b3cc8d",
29
29
  "_spec": "@syncfusion/ej2-treegrid@*",
30
30
  "_where": "/jenkins/workspace/elease-automation_release_27.1.1/packages/included",
31
31
  "author": {
@@ -38,8 +38,8 @@
38
38
  "dependencies": {
39
39
  "@syncfusion/ej2-base": "~27.1.55",
40
40
  "@syncfusion/ej2-data": "~27.1.52",
41
- "@syncfusion/ej2-grids": "~27.1.55",
42
- "@syncfusion/ej2-popups": "~27.1.56"
41
+ "@syncfusion/ej2-grids": "~27.1.57",
42
+ "@syncfusion/ej2-popups": "~27.1.57"
43
43
  },
44
44
  "deprecated": false,
45
45
  "description": "Essential JS 2 TreeGrid Component",
@@ -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.1.56",
79
+ "version": "27.1.57",
80
80
  "sideEffects": false
81
81
  }
@@ -1059,9 +1059,6 @@ var TreeGrid = /** @class */ (function (_super) {
1059
1059
  if (_this.pageSettings.pageSizeMode === 'Root') {
1060
1060
  _this.grid.selectionModule['totalRecordsCount'] = _this.grid.currentViewData.length;
1061
1061
  }
1062
- if (_this.enableVirtualization && args.rowIndex === _this.selectedRowIndex && !_this.enablePersistence) {
1063
- args.cancel = true;
1064
- }
1065
1062
  if (!isNullOrUndefined(_this.selectionSettings) && !_this.selectionSettings.persistSelection &&
1066
1063
  _this.enableVirtualization && args.rowIndex === _this.selectedRowIndex && _this.isGantt) {
1067
1064
  args.cancel = false;
@@ -407,7 +407,7 @@ var VirtualTreeContentRenderer = /** @class */ (function (_super) {
407
407
  content = this.parent.getContent().querySelector('.e-content');
408
408
  }
409
409
  var scrollHeight = outBuffer * rowHeight;
410
- var upScroll = (scrollArgs.offset.top - this.translateY) <= 0;
410
+ var upScroll = (scrollArgs.offset.top - this.translateY) < 0;
411
411
  var downScroll = Math.ceil(scrollArgs.offset.top - this.translateY) + rowHeight >= scrollHeight;
412
412
  var selectedRowIndex = 'selectedRowIndex';
413
413
  var currentViewData = this.parent.currentViewData;
@@ -448,8 +448,9 @@ var VirtualTreeContentRenderer = /** @class */ (function (_super) {
448
448
  firsttdinx = +attr; // this.parent.getContent().querySelector('.e-content tr').getAttribute('data-rowindex');
449
449
  }
450
450
  if (firsttdinx === 0) {
451
- this.translateY = (scrollArgs.offset.top - (outBuffer * rowHeight) > 0) ?
452
- scrollArgs.offset.top - (outBuffer * this.parent.getRowHeight()) + rowHeight : 0;
451
+ this.translateY = !isNullOrUndefined(this.endIndex) ?
452
+ (this.endIndex - this.parent.pageSettings.pageSize) * (this.parent.rowHeight ?
453
+ this.parent.rowHeight : this.parent.getRowHeight()) : 0;
453
454
  }
454
455
  else if (this.parent.getFrozenColumns() > 0) {
455
456
  scrollArgs.offset.top = scrollArgs.offset.top + 80;