@syncfusion/ej2-treegrid 33.1.45 → 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.
- package/dist/ej2-treegrid.min.js +2 -2
- package/dist/ej2-treegrid.umd.min.js +2 -2
- package/dist/ej2-treegrid.umd.min.js.map +1 -1
- package/dist/es6/ej2-treegrid.es2015.js +23 -15
- package/dist/es6/ej2-treegrid.es2015.js.map +1 -1
- package/dist/es6/ej2-treegrid.es5.js +27 -19
- package/dist/es6/ej2-treegrid.es5.js.map +1 -1
- package/dist/global/ej2-treegrid.min.js +2 -2
- package/dist/global/ej2-treegrid.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +2 -2
- package/src/treegrid/actions/filter.js +21 -16
- package/src/treegrid/actions/virtual-scroll.js +1 -1
- package/src/treegrid/base/interface.d.ts +4 -0
- package/src/treegrid/base/treegrid.js +5 -2
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 33.1.
|
|
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.
|
|
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.
|
|
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
|
-
|
|
102
|
-
var
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
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 });
|
|
@@ -130,7 +130,7 @@ var VirtualScroll = /** @class */ (function () {
|
|
|
130
130
|
var dm = new DataManager(pageingDetails.result);
|
|
131
131
|
var expanded = new Predicate('expanded', 'notequal', null).or('expanded', 'notequal', undefined);
|
|
132
132
|
var parents = dm.executeLocal(new Query().where(expanded));
|
|
133
|
-
var isFiltering = (pageingDetails.actionArgs.requestType === 'filtering' && pageingDetails.actionArgs.action !== 'clear-filter') ||
|
|
133
|
+
var isFiltering = (pageingDetails.actionArgs.requestType === 'filtering' && (pageingDetails.actionArgs.action !== 'clear-filter' && pageingDetails.actionArgs.action !== 'clearFilter')) ||
|
|
134
134
|
(!isNullOrUndefined(this.parent['filterModule']) && (this.parent['filterModule'].filteredResult && this.parent['filterModule'].filteredResult.length > 0));
|
|
135
135
|
var isFlatHierarchy = this.parent.filterSettings.hierarchyMode === 'Child' ||
|
|
136
136
|
this.parent.filterSettings.hierarchyMode === 'None';
|
|
@@ -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 {
|
|
@@ -2938,7 +2938,7 @@ var TreeGrid = /** @class */ (function (_super) {
|
|
|
2938
2938
|
var temp;
|
|
2939
2939
|
var field;
|
|
2940
2940
|
var gridColumns = isNullOrUndefined(column) ? this.grid.getColumns() : column;
|
|
2941
|
-
if (this.treeColumnIndex !== -1 && this.columnModel[this.treeColumnIndex] &&
|
|
2941
|
+
if (this.treeColumnIndex !== -1 && !isNullOrUndefined(this.columnModel) && this.columnModel[this.treeColumnIndex] &&
|
|
2942
2942
|
!isNullOrUndefined(this.columnModel[this.treeColumnIndex].template)) {
|
|
2943
2943
|
temp = this.columnModel[this.treeColumnIndex].template;
|
|
2944
2944
|
field = this.columnModel[this.treeColumnIndex].field;
|
|
@@ -4377,7 +4377,10 @@ var TreeGrid = /** @class */ (function (_super) {
|
|
|
4377
4377
|
};
|
|
4378
4378
|
TreeGrid.prototype.partialFilterUpdate = function (args) {
|
|
4379
4379
|
var gridFiltered = args.gridFiltered;
|
|
4380
|
-
this.
|
|
4380
|
+
if ((this.allowFiltering && this.filterModule && this.grid.filterSettings.columns.length) ||
|
|
4381
|
+
(this.grid.searchSettings.key.length > 0)) {
|
|
4382
|
+
this.notify('updateFilterRecs', { data: gridFiltered });
|
|
4383
|
+
}
|
|
4381
4384
|
};
|
|
4382
4385
|
/**
|
|
4383
4386
|
* Filters the TreeGrid rows based on a specified column and filter criteria.
|