@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.
- 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 +17 -12
- package/dist/es6/ej2-treegrid.es2015.js.map +1 -1
- package/dist/es6/ej2-treegrid.es5.js +21 -16
- 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/base/interface.d.ts +4 -0
|
@@ -11760,24 +11760,26 @@ var Filter = /** @__PURE__ @class */ (function () {
|
|
|
11760
11760
|
if (this.flatFilteredData.length > 0 && this.isHierarchyFilter) {
|
|
11761
11761
|
this.updateFilterLevel();
|
|
11762
11762
|
}
|
|
11763
|
-
|
|
11764
|
-
var
|
|
11765
|
-
|
|
11766
|
-
|
|
11767
|
-
|
|
11768
|
-
|
|
11769
|
-
|
|
11770
|
-
|
|
11771
|
-
|
|
11772
|
-
|
|
11773
|
-
|
|
11774
|
-
|
|
11763
|
+
if (hierarchyMode === 'None') {
|
|
11764
|
+
var _loop_1 = function (i) {
|
|
11765
|
+
var record = this_1.filteredResult[parseInt(i.toString(), 10)];
|
|
11766
|
+
if (!isNullOrUndefined(record.parentItem)) {
|
|
11767
|
+
var parentUID_1 = record.parentItem.uniqueID;
|
|
11768
|
+
var parentPresent = this_1.filteredResult.some(function (r) {
|
|
11769
|
+
return !isNullOrUndefined(r.uniqueID) && r.uniqueID === parentUID_1;
|
|
11770
|
+
});
|
|
11771
|
+
if (parentPresent) {
|
|
11772
|
+
setValue('isCollapsedChild', !getExpandStatus(this_1.parent, record, this_1.parent.parentData), record);
|
|
11773
|
+
}
|
|
11774
|
+
else {
|
|
11775
|
+
setValue('isCollapsedChild', false, record);
|
|
11776
|
+
}
|
|
11775
11777
|
}
|
|
11778
|
+
};
|
|
11779
|
+
var this_1 = this;
|
|
11780
|
+
for (var i = 0; i < this.filteredResult.length; i++) {
|
|
11781
|
+
_loop_1(i);
|
|
11776
11782
|
}
|
|
11777
|
-
};
|
|
11778
|
-
var this_1 = this;
|
|
11779
|
-
for (var i = 0; i < this.filteredResult.length; i++) {
|
|
11780
|
-
_loop_1(i);
|
|
11781
11783
|
}
|
|
11782
11784
|
this.parent.notify('updateAction', { result: this.filteredResult });
|
|
11783
11785
|
};
|
|
@@ -11903,6 +11905,9 @@ var Filter = /** @__PURE__ @class */ (function () {
|
|
|
11903
11905
|
currentRecord.hasFilteredChildRecords = null;
|
|
11904
11906
|
currentRecord.filterLevel = null;
|
|
11905
11907
|
}
|
|
11908
|
+
if (!isNullOrUndefined(currentRecord.isCollapsedChild)) {
|
|
11909
|
+
currentRecord.isCollapsedChild = null;
|
|
11910
|
+
}
|
|
11906
11911
|
}
|
|
11907
11912
|
this.filteredResult = [];
|
|
11908
11913
|
this.parent.notify('updateResults', { result: flatData, count: flatData.length });
|