@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
|
@@ -6852,7 +6852,7 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
6852
6852
|
let temp;
|
|
6853
6853
|
let field;
|
|
6854
6854
|
const gridColumns = isNullOrUndefined(column) ? this.grid.getColumns() : column;
|
|
6855
|
-
if (this.treeColumnIndex !== -1 && this.columnModel[this.treeColumnIndex] &&
|
|
6855
|
+
if (this.treeColumnIndex !== -1 && !isNullOrUndefined(this.columnModel) && this.columnModel[this.treeColumnIndex] &&
|
|
6856
6856
|
!isNullOrUndefined(this.columnModel[this.treeColumnIndex].template)) {
|
|
6857
6857
|
temp = this.columnModel[this.treeColumnIndex].template;
|
|
6858
6858
|
field = this.columnModel[this.treeColumnIndex].field;
|
|
@@ -8260,7 +8260,10 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
8260
8260
|
}
|
|
8261
8261
|
partialFilterUpdate(args) {
|
|
8262
8262
|
const gridFiltered = args.gridFiltered;
|
|
8263
|
-
this.
|
|
8263
|
+
if ((this.allowFiltering && this.filterModule && this.grid.filterSettings.columns.length) ||
|
|
8264
|
+
(this.grid.searchSettings.key.length > 0)) {
|
|
8265
|
+
this.notify('updateFilterRecs', { data: gridFiltered });
|
|
8266
|
+
}
|
|
8264
8267
|
}
|
|
8265
8268
|
/**
|
|
8266
8269
|
* Filters the TreeGrid rows based on a specified column and filter criteria.
|
|
@@ -11337,18 +11340,20 @@ class Filter {
|
|
|
11337
11340
|
if (this.flatFilteredData.length > 0 && this.isHierarchyFilter) {
|
|
11338
11341
|
this.updateFilterLevel();
|
|
11339
11342
|
}
|
|
11340
|
-
|
|
11341
|
-
|
|
11342
|
-
|
|
11343
|
-
|
|
11344
|
-
|
|
11345
|
-
|
|
11346
|
-
|
|
11347
|
-
|
|
11348
|
-
|
|
11349
|
-
|
|
11350
|
-
|
|
11351
|
-
|
|
11343
|
+
if (hierarchyMode === 'None') {
|
|
11344
|
+
for (let i = 0; i < this.filteredResult.length; i++) {
|
|
11345
|
+
const record = this.filteredResult[parseInt(i.toString(), 10)];
|
|
11346
|
+
if (!isNullOrUndefined(record.parentItem)) {
|
|
11347
|
+
const parentUID = record.parentItem.uniqueID;
|
|
11348
|
+
const parentPresent = this.filteredResult.some((r) => {
|
|
11349
|
+
return !isNullOrUndefined(r.uniqueID) && r.uniqueID === parentUID;
|
|
11350
|
+
});
|
|
11351
|
+
if (parentPresent) {
|
|
11352
|
+
setValue('isCollapsedChild', !getExpandStatus(this.parent, record, this.parent.parentData), record);
|
|
11353
|
+
}
|
|
11354
|
+
else {
|
|
11355
|
+
setValue('isCollapsedChild', false, record);
|
|
11356
|
+
}
|
|
11352
11357
|
}
|
|
11353
11358
|
}
|
|
11354
11359
|
}
|
|
@@ -11476,6 +11481,9 @@ class Filter {
|
|
|
11476
11481
|
currentRecord.hasFilteredChildRecords = null;
|
|
11477
11482
|
currentRecord.filterLevel = null;
|
|
11478
11483
|
}
|
|
11484
|
+
if (!isNullOrUndefined(currentRecord.isCollapsedChild)) {
|
|
11485
|
+
currentRecord.isCollapsedChild = null;
|
|
11486
|
+
}
|
|
11479
11487
|
}
|
|
11480
11488
|
this.filteredResult = [];
|
|
11481
11489
|
this.parent.notify('updateResults', { result: flatData, count: flatData.length });
|
|
@@ -16038,7 +16046,7 @@ class VirtualScroll {
|
|
|
16038
16046
|
const dm = new DataManager(pageingDetails.result);
|
|
16039
16047
|
const expanded = new Predicate$1('expanded', 'notequal', null).or('expanded', 'notequal', undefined);
|
|
16040
16048
|
const parents = dm.executeLocal(new Query().where(expanded));
|
|
16041
|
-
const isFiltering = (pageingDetails.actionArgs.requestType === 'filtering' && pageingDetails.actionArgs.action !== 'clear-filter') ||
|
|
16049
|
+
const isFiltering = (pageingDetails.actionArgs.requestType === 'filtering' && (pageingDetails.actionArgs.action !== 'clear-filter' && pageingDetails.actionArgs.action !== 'clearFilter')) ||
|
|
16042
16050
|
(!isNullOrUndefined(this.parent['filterModule']) && (this.parent['filterModule'].filteredResult && this.parent['filterModule'].filteredResult.length > 0));
|
|
16043
16051
|
const isFlatHierarchy = this.parent.filterSettings.hierarchyMode === 'Child' ||
|
|
16044
16052
|
this.parent.filterSettings.hierarchyMode === 'None';
|