@syncfusion/ej2-treegrid 34.2.4 → 34.2.5
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 +1 -10
- package/dist/ej2-treegrid.umd.min.js +1 -10
- package/dist/ej2-treegrid.umd.min.js.map +1 -1
- package/dist/es6/ej2-treegrid.es2015.js +24 -6
- package/dist/es6/ej2-treegrid.es2015.js.map +1 -1
- package/dist/es6/ej2-treegrid.es5.js +24 -6
- package/dist/es6/ej2-treegrid.es5.js.map +1 -1
- package/dist/global/ej2-treegrid.min.js +1 -10
- package/dist/global/ej2-treegrid.min.js.map +1 -1
- package/dist/global/index.d.ts +0 -9
- package/package.json +3 -3
- package/src/treegrid/actions/filter.d.ts +1 -0
- package/src/treegrid/actions/filter.js +20 -5
- package/src/treegrid/base/data.js +3 -0
- package/src/treegrid/renderer/render.js +1 -1
|
@@ -2176,7 +2176,7 @@ class Render {
|
|
|
2176
2176
|
else {
|
|
2177
2177
|
expand = !(!data.expanded || !getExpandStatus(this.parent, data, this.parent.grid.getCurrentViewRecords()));
|
|
2178
2178
|
// TicketsID 43483: While Modify Data Expand and Collapse Icon Behavior Changed
|
|
2179
|
-
if (this.parent.editSettings.mode === 'Cell' && !isRemoteData(this.parent)) {
|
|
2179
|
+
if (this.parent.editSettings.mode === 'Cell' && !isRemoteData(this.parent) && this.parent.allowPaging) {
|
|
2180
2180
|
const selectedRow = this.parent.flatData.find((item) => item.uniqueID === data.uniqueID);
|
|
2181
2181
|
if (!isNullOrUndefined(selectedRow)) {
|
|
2182
2182
|
expand = data.expanded !== selectedRow.expanded ? selectedRow.expanded : data.expanded;
|
|
@@ -2988,6 +2988,9 @@ class DataManipulation {
|
|
|
2988
2988
|
getValue('grid.renderModule', this.parent).dataManagerSuccess(e, virtualArgs);
|
|
2989
2989
|
}
|
|
2990
2990
|
this.parent.trigger(expanded, args);
|
|
2991
|
+
})
|
|
2992
|
+
.catch((e) => {
|
|
2993
|
+
this.parent.trigger(actionFailure, e);
|
|
2991
2994
|
});
|
|
2992
2995
|
}
|
|
2993
2996
|
remoteVirtualAction(virtualArgs) {
|
|
@@ -11469,6 +11472,7 @@ class Filter {
|
|
|
11469
11472
|
}
|
|
11470
11473
|
checkChildExsist(records) {
|
|
11471
11474
|
const childRec = getObject('childRecords', records);
|
|
11475
|
+
const isNegativeOperator = this.checkNegativePredicate();
|
|
11472
11476
|
let isExist = false;
|
|
11473
11477
|
for (let count = 0; count < childRec.length; count++) {
|
|
11474
11478
|
const ischild = childRec[parseInt(count.toString(), 10)].childRecords;
|
|
@@ -11476,11 +11480,14 @@ class Filter {
|
|
|
11476
11480
|
this.parent.filterSettings.hierarchyMode : this.parent.searchSettings.hierarchyMode;
|
|
11477
11481
|
if (((hierarchyMode === 'Child' || hierarchyMode === 'Both') && (this.parent.grid.filterSettings.columns.length !== 0
|
|
11478
11482
|
|| this.parent.grid.searchSettings.key !== ''))) {
|
|
11479
|
-
const
|
|
11480
|
-
if (!
|
|
11481
|
-
|
|
11482
|
-
|
|
11483
|
-
|
|
11483
|
+
const recordID = childRec[parseInt(count.toString(), 10)].uniqueID;
|
|
11484
|
+
if (!isNegativeOperator) {
|
|
11485
|
+
const uniqueIDValue = getValue('uniqueIDFilterCollection', this.parent);
|
|
11486
|
+
if (!Object.prototype.hasOwnProperty.call(uniqueIDValue, childRec[parseInt(count.toString(), 10)].uniqueID)) {
|
|
11487
|
+
this.filteredResult.push(childRec[parseInt(count.toString(), 10)]);
|
|
11488
|
+
setValue('uniqueIDFilterCollection.' + childRec[parseInt(count.toString(), 10)].uniqueID, childRec[parseInt(count.toString(), 10)], this.parent);
|
|
11489
|
+
isExist = true;
|
|
11490
|
+
}
|
|
11484
11491
|
}
|
|
11485
11492
|
}
|
|
11486
11493
|
if ((hierarchyMode === 'None')
|
|
@@ -11531,6 +11538,17 @@ class Filter {
|
|
|
11531
11538
|
this.filteredResult = [];
|
|
11532
11539
|
this.parent.notify('updateResults', { result: flatData, count: flatData.length });
|
|
11533
11540
|
}
|
|
11541
|
+
checkNegativePredicate() {
|
|
11542
|
+
const filterColumns = this.parent.grid.filterSettings.columns;
|
|
11543
|
+
for (let i = 0; i < filterColumns.length; i++) {
|
|
11544
|
+
const operator = getValue('operator', filterColumns[parseInt(i.toString(), 10)]);
|
|
11545
|
+
if (operator === 'doesnotcontain' || operator === 'notequal' || operator === 'doesnotstartwith'
|
|
11546
|
+
|| operator === 'doesnotendwith' || operator === 'notin') {
|
|
11547
|
+
return true;
|
|
11548
|
+
}
|
|
11549
|
+
}
|
|
11550
|
+
return false;
|
|
11551
|
+
}
|
|
11534
11552
|
}
|
|
11535
11553
|
|
|
11536
11554
|
/**
|