@syncfusion/ej2-treegrid 24.2.8 → 24.2.9

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 : 24.2.8
3
+ * version : 24.2.9
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@24.2.7",
3
+ "_id": "@syncfusion/ej2-treegrid@24.2.8",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-OoM88SgilK7jJcbH2DdoMzGAOTDf7kPBtDxaVHjwD8vovfoVkUeTNwipnQKLRLDUbAfFcz2JOPnc34uph98UWw==",
5
+ "_integrity": "sha512-FszUjBBJdywxw3DyIgp+wHsJ93z8G+CKd9f0VUaqkeySW/yRRtKVBGB0RJ7snJaMyc/uxIApPaAtY5CquNdLfw==",
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-24.2.7.tgz",
28
- "_shasum": "4c8aeece891894c115b1bb14a24cf6907a12b4fa",
27
+ "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-treegrid/-/ej2-treegrid-24.2.8.tgz",
28
+ "_shasum": "bfa805b7271215c1d2d53c303953de8b7186e779",
29
29
  "_spec": "@syncfusion/ej2-treegrid@*",
30
30
  "_where": "/jenkins/workspace/elease-automation_release_24.1.1/packages/included",
31
31
  "author": {
@@ -38,8 +38,8 @@
38
38
  "dependencies": {
39
39
  "@syncfusion/ej2-base": "~24.2.7",
40
40
  "@syncfusion/ej2-data": "~24.2.3",
41
- "@syncfusion/ej2-grids": "~24.2.8",
42
- "@syncfusion/ej2-popups": "~24.2.8"
41
+ "@syncfusion/ej2-grids": "~24.2.9",
42
+ "@syncfusion/ej2-popups": "~24.2.9"
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": "24.2.8",
69
+ "version": "24.2.9",
70
70
  "sideEffects": false
71
71
  }
@@ -3104,11 +3104,16 @@ var TreeGrid = /** @class */ (function (_super) {
3104
3104
  this.expandCollapseAll('collapse');
3105
3105
  };
3106
3106
  TreeGrid.prototype.expandCollapseAll = function (action) {
3107
- var rows = this.getRows().filter(function (e) {
3108
- return e.querySelector('.e-treegrid' + (action === 'expand' ? 'collapse' : 'expand'));
3109
- });
3110
- if (!rows.length && this.getRows().length) {
3111
- rows.push(this.getRows()[0]);
3107
+ var rows;
3108
+ if (this.rowTemplate) {
3109
+ rows = [].slice.call(this.grid.getContentTable().querySelectorAll('tr')).filter(function (e) {
3110
+ return e.querySelector('.e-treegrid' + (action === 'expand' ? 'collapse' : 'expand'));
3111
+ });
3112
+ }
3113
+ else {
3114
+ rows = this.getRows().filter(function (e) {
3115
+ return e.querySelector('.e-treegrid' + (action === 'expand' ? 'collapse' : 'expand'));
3116
+ });
3112
3117
  }
3113
3118
  this.isExpandAll = true;
3114
3119
  this.isCollapseAll = true;
@@ -257,11 +257,21 @@ var Render = /** @class */ (function () {
257
257
  }
258
258
  }
259
259
  this.parent['args'] = args;
260
- if ((isNullOrUndefined(this.parent.rowTemplate) && !(this.parent.isReact))
261
- || ((this.parent.isReact) &&
262
- !args.column['template'])) {
260
+ var columnModel = getValue('columnModel', this.parent);
261
+ var treeColumn = columnModel[this.parent.treeColumnIndex];
262
+ if ((isNullOrUndefined(this.parent.rowTemplate) && !(this.parent.isReact))) {
263
263
  this.parent.trigger(events.queryCellInfo, args);
264
264
  }
265
+ else if (((this.parent.isReact) &&
266
+ treeColumn.field !== args.column.field)) {
267
+ var renderReactTemplates = 'renderReactTemplates';
268
+ // eslint-disable-next-line @typescript-eslint/no-this-alias
269
+ var thisRef_2 = this;
270
+ // tslint:disable-next-line:typedef
271
+ thisRef_2.parent["" + renderReactTemplates](function () {
272
+ thisRef_2.parent.trigger(events.queryCellInfo, args);
273
+ });
274
+ }
265
275
  };
266
276
  Render.prototype.updateTreeCell = function (args, cellElement) {
267
277
  var columnModel = getValue('columnModel', this.parent);
@@ -297,10 +307,10 @@ var Render = /** @class */ (function () {
297
307
  }
298
308
  this.parent.notify('renderReactTemplate', this.parent["" + portals]);
299
309
  // eslint-disable-next-line @typescript-eslint/no-this-alias
300
- var thisRef_2 = this;
310
+ var thisRef_3 = this;
301
311
  // tslint:disable-next-line:typedef
302
- thisRef_2.parent["" + renderReactTemplates](function () {
303
- thisRef_2.parent.trigger(events.queryCellInfo, args);
312
+ thisRef_3.parent["" + renderReactTemplates](function () {
313
+ thisRef_3.parent.trigger(events.queryCellInfo, args);
304
314
  });
305
315
  }
306
316
  else {