@syncfusion/ej2-treegrid 25.1.39 → 25.1.42

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 : 25.1.39
3
+ * version : 25.1.42
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@25.1.37",
3
+ "_id": "@syncfusion/ej2-treegrid@25.1.41",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-ePeCjuDmiMas23g+HjJ/K6k3Sv5j33AqOcHT+9tMeaX3Ef6d4+5LbdX+UaRmZORO2DVP1CsneN9jzffNDIAawA==",
5
+ "_integrity": "sha512-oDcAbey3zDcULE67WmjiYHVTjbV7eTXnVvrsPXmQEdM0a/+/kfcPCQzw/p53ryKRHRypi04/DtaiywrRq5x3nQ==",
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-25.1.37.tgz",
28
- "_shasum": "eb6276ece49cd424c95c59f3ef62a011033271c6",
27
+ "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-treegrid/-/ej2-treegrid-25.1.41.tgz",
28
+ "_shasum": "00dd3e401fc8059a49d07aca8a2121a3aa172419",
29
29
  "_spec": "@syncfusion/ej2-treegrid@*",
30
30
  "_where": "/jenkins/workspace/elease-automation_release_25.1.1/packages/included",
31
31
  "author": {
@@ -38,8 +38,8 @@
38
38
  "dependencies": {
39
39
  "@syncfusion/ej2-base": "~25.1.35",
40
40
  "@syncfusion/ej2-data": "~25.1.35",
41
- "@syncfusion/ej2-grids": "~25.1.39",
42
- "@syncfusion/ej2-popups": "~25.1.39"
41
+ "@syncfusion/ej2-grids": "~25.1.42",
42
+ "@syncfusion/ej2-popups": "~25.1.42"
43
43
  },
44
44
  "deprecated": false,
45
45
  "description": "Essential JS 2 TreeGrid Component",
@@ -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": "25.1.39",
69
+ "version": "25.1.42",
70
70
  "sideEffects": false
71
71
  }
@@ -136,7 +136,7 @@ var ExcelExport = /** @class */ (function () {
136
136
  if (!this.isLocal()) {
137
137
  this.parent.flatData = [];
138
138
  }
139
- if (property && property.dataSource && this.isLocal()) {
139
+ if (property && property.dataSource) {
140
140
  var flatsData = this.parent.flatData;
141
141
  var dataSrc = property.dataSource instanceof DataManager ? property.dataSource.dataSource.json : property.dataSource;
142
142
  this.parent.dataModule.convertToFlatData(dataSrc);
@@ -127,14 +127,14 @@ var VirtualScroll = /** @class */ (function () {
127
127
  }
128
128
  if ((requestType === 'save' && pageingDetails.actionArgs.index >= (counts.count - this.parent.grid.pageSettings.pageSize)) || (requestType === 'refresh' && this.parent['isGantt'] && this.parent['isAddedFromGantt'])) {
129
129
  var modifiedStartIndex = counts.startIndex + (counts.count - counts.endIndex);
130
- if (counts.startIndex <= modifiedStartIndex && counts.endIndex <= modifiedStartIndex) {
131
- startIndex = counts.startIndex;
132
- endIndex = counts.endIndex;
133
- }
134
- else {
130
+ if (counts.count - counts.startIndex <= this.parent.grid.pageSettings.pageSize) {
135
131
  startIndex = modifiedStartIndex;
136
132
  endIndex = counts.count;
137
133
  }
134
+ else {
135
+ startIndex = counts.startIndex;
136
+ endIndex = counts.endIndex;
137
+ }
138
138
  this.parent['isAddedFromGantt'] = false;
139
139
  }
140
140
  //if ((this.prevendIndex !== -1 && this.prevstartIndex !== -1) &&
@@ -202,7 +202,7 @@ var VirtualTreeContentRenderer = /** @class */ (function (_super) {
202
202
  VirtualTreeContentRenderer.prototype.dataBoundEvent = function () {
203
203
  var dataBoundEve = 'dataBound';
204
204
  var initialRowTop = 'initialRowTop';
205
- if (!isNullOrUndefined(this.parent.getRowByIndex(0)) && this.parent.getRows().length && !this["" + initialRowTop]) {
205
+ if (this.parent.getRows().length && !isNullOrUndefined(this.parent.getRowByIndex(0)) && !this["" + initialRowTop]) {
206
206
  var rowTop = this.parent.getRowByIndex(0).getBoundingClientRect().top;
207
207
  var gridTop = this.parent.element.getBoundingClientRect().top;
208
208
  if (rowTop > 0) {
@@ -481,6 +481,9 @@ var VirtualTreeContentRenderer = /** @class */ (function (_super) {
481
481
  this.previousInfo = viewInfo;
482
482
  this.parent.setColumnIndexesInView(this.parent.enableColumnVirtualization ? viewInfo.columnIndexes : []);
483
483
  var page = viewInfo.loadNext && !viewInfo.loadSelf ? viewInfo.nextInfo.page : viewInfo.page;
484
+ if (downScroll && this.endIndex === this.totalRecords && viewInfo.loadNext) {
485
+ viewInfo.loadNext = false;
486
+ }
484
487
  this.parent.setProperties({ pageSettings: { currentPage: page } }, true);
485
488
  this.requestType = 'virtualscroll';
486
489
  if (scrollArgs.direction !== 'right' && scrollArgs.direction !== 'left') {