@syncfusion/ej2-treegrid 33.1.46 → 33.1.47

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 : 33.1.46
3
+ * version : 33.1.47
4
4
  * Copyright Syncfusion Inc. 2001 - 2025. 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,6 +1,6 @@
1
1
  {
2
2
  "name": "@syncfusion/ej2-treegrid",
3
- "version": "33.1.46",
3
+ "version": "33.1.47",
4
4
  "description": "Essential JS 2 TreeGrid Component",
5
5
  "author": "Syncfusion Inc.",
6
6
  "license": "SEE LICENSE IN license",
@@ -10,7 +10,7 @@
10
10
  "dependencies": {
11
11
  "@syncfusion/ej2-base": "~33.1.45",
12
12
  "@syncfusion/ej2-data": "~33.1.45",
13
- "@syncfusion/ej2-grids": "~33.1.46",
13
+ "@syncfusion/ej2-grids": "~33.1.47",
14
14
  "@syncfusion/ej2-popups": "~33.1.44"
15
15
  },
16
16
  "devDependencies": {},
@@ -98,24 +98,26 @@ var Filter = /** @class */ (function () {
98
98
  if (this.flatFilteredData.length > 0 && this.isHierarchyFilter) {
99
99
  this.updateFilterLevel();
100
100
  }
101
- var _loop_1 = function (i) {
102
- var record = this_1.filteredResult[parseInt(i.toString(), 10)];
103
- if (!isNullOrUndefined(record.parentItem)) {
104
- var parentUID_1 = record.parentItem.uniqueID;
105
- var parentPresent = this_1.filteredResult.some(function (r) {
106
- return !isNullOrUndefined(r.uniqueID) && r.uniqueID === parentUID_1;
107
- });
108
- if (parentPresent) {
109
- record.isCollapsedChild = !getExpandStatus(this_1.parent, record, this_1.parent.parentData);
110
- }
111
- else {
112
- record.isCollapsedChild = false;
101
+ if (hierarchyMode === 'None') {
102
+ var _loop_1 = function (i) {
103
+ var record = this_1.filteredResult[parseInt(i.toString(), 10)];
104
+ if (!isNullOrUndefined(record.parentItem)) {
105
+ var parentUID_1 = record.parentItem.uniqueID;
106
+ var parentPresent = this_1.filteredResult.some(function (r) {
107
+ return !isNullOrUndefined(r.uniqueID) && r.uniqueID === parentUID_1;
108
+ });
109
+ if (parentPresent) {
110
+ setValue('isCollapsedChild', !getExpandStatus(this_1.parent, record, this_1.parent.parentData), record);
111
+ }
112
+ else {
113
+ setValue('isCollapsedChild', false, record);
114
+ }
113
115
  }
116
+ };
117
+ var this_1 = this;
118
+ for (var i = 0; i < this.filteredResult.length; i++) {
119
+ _loop_1(i);
114
120
  }
115
- };
116
- var this_1 = this;
117
- for (var i = 0; i < this.filteredResult.length; i++) {
118
- _loop_1(i);
119
121
  }
120
122
  this.parent.notify('updateAction', { result: this.filteredResult });
121
123
  };
@@ -241,6 +243,9 @@ var Filter = /** @class */ (function () {
241
243
  currentRecord.hasFilteredChildRecords = null;
242
244
  currentRecord.filterLevel = null;
243
245
  }
246
+ if (!isNullOrUndefined(currentRecord.isCollapsedChild)) {
247
+ currentRecord.isCollapsedChild = null;
248
+ }
244
249
  }
245
250
  this.filteredResult = [];
246
251
  this.parent.notify('updateResults', { result: flatData, count: flatData.length });
@@ -66,6 +66,10 @@ export interface ITreeData {
66
66
  * Specifies the Primary data
67
67
  */
68
68
  primaryParent?: ITreeData;
69
+ /**
70
+ * Specifies the child record collapsed state
71
+ */
72
+ isCollapsedChild?: ITreeData;
69
73
  }
70
74
  /** Specifies the Tree Grid ExcelExport properties */
71
75
  export interface TreeGridExcelExportProperties extends ExcelExportProperties {