@syncfusion/ej2-treegrid 34.2.4 → 34.2.6
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 +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 +2 -2
- package/dist/global/ej2-treegrid.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +5 -5
- 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
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 34.2.
|
|
3
|
+
* version : 34.2.6
|
|
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": "34.2.
|
|
3
|
+
"version": "34.2.6",
|
|
4
4
|
"description": "Essential JS 2 TreeGrid Component",
|
|
5
5
|
"author": "Syncfusion Inc.",
|
|
6
6
|
"license": "SEE LICENSE IN license",
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
"module": "./index.js",
|
|
9
9
|
"es2015": "./dist/es6/ej2-treegrid.es5.js",
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@syncfusion/ej2-base": "~34.2.
|
|
12
|
-
"@syncfusion/ej2-data": "~34.2.
|
|
13
|
-
"@syncfusion/ej2-grids": "~34.2.
|
|
14
|
-
"@syncfusion/ej2-popups": "~34.2.
|
|
11
|
+
"@syncfusion/ej2-base": "~34.2.6",
|
|
12
|
+
"@syncfusion/ej2-data": "~34.2.6",
|
|
13
|
+
"@syncfusion/ej2-grids": "~34.2.6",
|
|
14
|
+
"@syncfusion/ej2-popups": "~34.2.6"
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {},
|
|
17
17
|
"keywords": [
|
|
@@ -164,6 +164,7 @@ var Filter = /** @class */ (function () {
|
|
|
164
164
|
};
|
|
165
165
|
Filter.prototype.checkChildExsist = function (records) {
|
|
166
166
|
var childRec = getObject('childRecords', records);
|
|
167
|
+
var isNegativeOperator = this.checkNegativePredicate();
|
|
167
168
|
var isExist = false;
|
|
168
169
|
for (var count = 0; count < childRec.length; count++) {
|
|
169
170
|
var ischild = childRec[parseInt(count.toString(), 10)].childRecords;
|
|
@@ -171,11 +172,14 @@ var Filter = /** @class */ (function () {
|
|
|
171
172
|
this.parent.filterSettings.hierarchyMode : this.parent.searchSettings.hierarchyMode;
|
|
172
173
|
if (((hierarchyMode === 'Child' || hierarchyMode === 'Both') && (this.parent.grid.filterSettings.columns.length !== 0
|
|
173
174
|
|| this.parent.grid.searchSettings.key !== ''))) {
|
|
174
|
-
var
|
|
175
|
-
if (!
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
175
|
+
var recordID = childRec[parseInt(count.toString(), 10)].uniqueID;
|
|
176
|
+
if (!isNegativeOperator) {
|
|
177
|
+
var uniqueIDValue = getValue('uniqueIDFilterCollection', this.parent);
|
|
178
|
+
if (!Object.prototype.hasOwnProperty.call(uniqueIDValue, childRec[parseInt(count.toString(), 10)].uniqueID)) {
|
|
179
|
+
this.filteredResult.push(childRec[parseInt(count.toString(), 10)]);
|
|
180
|
+
setValue('uniqueIDFilterCollection.' + childRec[parseInt(count.toString(), 10)].uniqueID, childRec[parseInt(count.toString(), 10)], this.parent);
|
|
181
|
+
isExist = true;
|
|
182
|
+
}
|
|
179
183
|
}
|
|
180
184
|
}
|
|
181
185
|
if ((hierarchyMode === 'None')
|
|
@@ -226,6 +230,17 @@ var Filter = /** @class */ (function () {
|
|
|
226
230
|
this.filteredResult = [];
|
|
227
231
|
this.parent.notify('updateResults', { result: flatData, count: flatData.length });
|
|
228
232
|
};
|
|
233
|
+
Filter.prototype.checkNegativePredicate = function () {
|
|
234
|
+
var filterColumns = this.parent.grid.filterSettings.columns;
|
|
235
|
+
for (var i = 0; i < filterColumns.length; i++) {
|
|
236
|
+
var operator = getValue('operator', filterColumns[parseInt(i.toString(), 10)]);
|
|
237
|
+
if (operator === 'doesnotcontain' || operator === 'notequal' || operator === 'doesnotstartwith'
|
|
238
|
+
|| operator === 'doesnotendwith' || operator === 'notin') {
|
|
239
|
+
return true;
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
return false;
|
|
243
|
+
};
|
|
229
244
|
return Filter;
|
|
230
245
|
}());
|
|
231
246
|
export { Filter };
|
|
@@ -600,6 +600,9 @@ var DataManipulation = /** @class */ (function () {
|
|
|
600
600
|
getValue('grid.renderModule', _this.parent).dataManagerSuccess(e, virtualArgs);
|
|
601
601
|
}
|
|
602
602
|
_this.parent.trigger(events.expanded, args);
|
|
603
|
+
})
|
|
604
|
+
.catch(function (e) {
|
|
605
|
+
_this.parent.trigger(events.actionFailure, e);
|
|
603
606
|
});
|
|
604
607
|
};
|
|
605
608
|
DataManipulation.prototype.remoteVirtualAction = function (virtualArgs) {
|
|
@@ -169,7 +169,7 @@ var Render = /** @class */ (function () {
|
|
|
169
169
|
else {
|
|
170
170
|
expand = !(!data.expanded || !getExpandStatus(this.parent, data, this.parent.grid.getCurrentViewRecords()));
|
|
171
171
|
// TicketsID 43483: While Modify Data Expand and Collapse Icon Behavior Changed
|
|
172
|
-
if (this.parent.editSettings.mode === 'Cell' && !isRemoteData(this.parent)) {
|
|
172
|
+
if (this.parent.editSettings.mode === 'Cell' && !isRemoteData(this.parent) && this.parent.allowPaging) {
|
|
173
173
|
var selectedRow = this.parent.flatData.find(function (item) { return item.uniqueID === data.uniqueID; });
|
|
174
174
|
if (!isNullOrUndefined(selectedRow)) {
|
|
175
175
|
expand = data.expanded !== selectedRow.expanded ? selectedRow.expanded : data.expanded;
|