@syncfusion/ej2-treegrid 25.2.5 → 25.2.6

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.2.5
3
+ * version : 25.2.6
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.2.4",
3
+ "_id": "@syncfusion/ej2-treegrid@25.2.5",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-8QscTDpc0SKK12xtkX3zNH48foIkUAV+3jSuMFNCKn5fTnqeBDjWrnYKEr5Bw53z5xgFhqMijx+GuqhSh5eOmA==",
5
+ "_integrity": "sha512-6olifiUnA9rLIHDZo/KIcz2PE+HHsvKvaUInwPW8IYID4KDpFYCLNW208AcwAmkLSvejdrD48dxie95yPL9R7A==",
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.2.4.tgz",
28
- "_shasum": "0e5afb29737f441a377420231b89444e32ef78c6",
27
+ "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-treegrid/-/ej2-treegrid-25.2.5.tgz",
28
+ "_shasum": "2873e432ebd7866e8bd6e4408b7daa6d0576b0a6",
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.2.5",
40
40
  "@syncfusion/ej2-data": "~25.2.3",
41
- "@syncfusion/ej2-grids": "~25.2.5",
42
- "@syncfusion/ej2-popups": "~25.2.4"
41
+ "@syncfusion/ej2-grids": "~25.2.6",
42
+ "@syncfusion/ej2-popups": "~25.2.6"
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.2.5",
69
+ "version": "25.2.6",
70
70
  "sideEffects": false
71
71
  }
@@ -502,6 +502,10 @@ var RowDD = /** @class */ (function () {
502
502
  var touchEvent = getObject('originalEvent.event', args);
503
503
  var posy = (mouseEvent.type === 'mousemove') ? mouseEvent.pageY : ((!isNullOrUndefined(touchEvent) &&
504
504
  !isNullOrUndefined(touchEvent.changedTouches)) ? touchEvent.changedTouches[0].pageY : null);
505
+ if (this.parent.enableVirtualization) {
506
+ posy = (mouseEvent.type === 'mousemove') ? mouseEvent.clientY : ((!isNullOrUndefined(touchEvent) &&
507
+ !isNullOrUndefined(touchEvent.changedTouches)) ? touchEvent.changedTouches[0].clientY : null);
508
+ }
505
509
  var isTopSegment = posy <= topRowSegment;
506
510
  var isMiddleRowSegment = (posy > topRowSegment && posy <= middleRowSegment);
507
511
  var isBottomRowSegment = (posy > middleRowSegment && posy <= bottomRowSegment);
@@ -357,7 +357,9 @@ var Render = /** @class */ (function () {
357
357
  && !isNullOrUndefined(rowsObj[parseInt(j.toString(), 10)].index)) {
358
358
  var cell = rowsObj[parseInt(j.toString(), 10)]["" + cells][parseInt(cellIndex.toString(), 10)];
359
359
  var cellRenderer = new CellRenderer(_this.parent.grid, _this.parent.grid.serviceLocator);
360
- var td = _this.parent.getCellFromIndex(rowsObj[parseInt(j.toString(), 10)].index, cellIndex - indent);
360
+ var td = rows.length >= rowsObj.length
361
+ ? _this.parent.getCellFromIndex(rowsObj[parseInt(j.toString(), 10)].index, cellIndex - indent)
362
+ : _this.parent.getRows()[rowsObj[parseInt(j.toString(), 10)].index].querySelector('.e-templatecell');
361
363
  cellRenderer.refreshTD(td, cell, rowsObj[parseInt(j.toString(), 10)].data, { index: rowsObj[parseInt(j.toString(), 10)]["" + rowIdx] });
362
364
  var treecell = _this.parent.getRows()[parseInt(j.toString(), 10)]
363
365
  .cells[parseInt(cellIndex.toString(), 10)];