@syncfusion/ej2-treegrid 28.2.3 → 28.2.4

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 : 28.2.3
3
+ * version : 28.2.4
4
4
  * Copyright Syncfusion Inc. 2001 - 2024. 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@28.1.37",
3
+ "_id": "@syncfusion/ej2-treegrid@28.2.3",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-ySpUDpaabk8geF3hDV1U5qCI68d0hz8go/gqc6NuNYhzPI9Pjgr9CETwdZeo51DcMVgOq62u/37RaxvttrCRtw==",
5
+ "_integrity": "sha512-I5UfNKjr6VOlv1w+gssIs4UoeuzlrsrWclXaD2OIxwcldspC4lGZkckB8mfu+3GwUgAhVLmyzQVKzKf6gzIHQQ==",
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-28.1.37.tgz",
28
- "_shasum": "1feae0e79e8908e04e1083a44c98458c649c98ec",
27
+ "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-treegrid/-/ej2-treegrid-28.2.3.tgz",
28
+ "_shasum": "a61d82e54d7fbb7cde25c0a27caa09a55e3c695a",
29
29
  "_spec": "@syncfusion/ej2-treegrid@*",
30
30
  "_where": "/jenkins/workspace/elease-automation_release_28.1.1/packages/included",
31
31
  "author": {
@@ -38,7 +38,7 @@
38
38
  "dependencies": {
39
39
  "@syncfusion/ej2-base": "~28.2.3",
40
40
  "@syncfusion/ej2-data": "~28.2.3",
41
- "@syncfusion/ej2-grids": "~28.2.3",
41
+ "@syncfusion/ej2-grids": "~28.2.4",
42
42
  "@syncfusion/ej2-popups": "~28.2.3"
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": "28.2.3",
79
+ "version": "28.2.4",
80
80
  "sideEffects": false
81
81
  }
@@ -245,8 +245,16 @@ var VirtualTreeContentRenderer = /** @class */ (function (_super) {
245
245
  if (isNullOrUndefined(this.observer["" + containerRect])) {
246
246
  this.observer["" + containerRect] = this.observers["" + containerRect];
247
247
  }
248
- if (isNullOrUndefined(this.parent.clipboardModule['treeGridParent'].editModule) || args.selectedIndex !== 0 ||
249
- isNullOrUndefined(this.parent.clipboardModule['treeGridParent'].editModule['addRowIndex'])) {
248
+ var treeGridParent = this.parent.clipboardModule['treeGridParent'];
249
+ if (isNullOrUndefined(treeGridParent.editModule) ||
250
+ isNullOrUndefined(treeGridParent.editModule['addRowIndex']) || args.selectedIndex !== 0) {
251
+ if (!isNullOrUndefined(treeGridParent.grid.sortModule) && treeGridParent.grid.sortModule['sortedColumns'].length > 0) {
252
+ var sortedData = treeGridParent.dataModule['sortedData'];
253
+ if (!isNullOrUndefined(sortedData) && sortedData.length > 0) {
254
+ var targetIndex = sortedData.findIndex(function (record) { return record.index === args.selectedIndex; });
255
+ args.selectedIndex = targetIndex;
256
+ }
257
+ }
250
258
  _super.prototype["" + selectVirtualRow].call(this, args);
251
259
  }
252
260
  };