@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.
@@ -1,12 +1,3 @@
1
- /*!
2
- * filename: index.d.ts
3
- * version : 34.2.4
4
- * Copyright Syncfusion Inc. 2001 - 2025. All rights reserved.
5
- * Use of this code is subject to the terms of our license.
6
- * A copy of the current license can be obtained at any time by e-mailing
7
- * licensing@syncfusion.com. Any infringement will be prosecuted under
8
- * applicable laws.
9
- */
10
1
  import * as _treegrid from '@syncfusion/ej2-treegrid';
11
2
 
12
3
  export declare namespace ej {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@syncfusion/ej2-treegrid",
3
- "version": "34.2.4",
3
+ "version": "34.2.5",
4
4
  "description": "Essential JS 2 TreeGrid Component",
5
5
  "author": "Syncfusion Inc.",
6
6
  "license": "SEE LICENSE IN license",
@@ -8,9 +8,9 @@
8
8
  "module": "./index.js",
9
9
  "es2015": "./dist/es6/ej2-treegrid.es5.js",
10
10
  "dependencies": {
11
- "@syncfusion/ej2-base": "~34.2.4",
11
+ "@syncfusion/ej2-base": "~34.2.5",
12
12
  "@syncfusion/ej2-data": "~34.2.2",
13
- "@syncfusion/ej2-grids": "~34.2.4",
13
+ "@syncfusion/ej2-grids": "~34.2.5",
14
14
  "@syncfusion/ej2-popups": "~34.2.4"
15
15
  },
16
16
  "devDependencies": {},
@@ -54,4 +54,5 @@ export declare class Filter {
54
54
  private checkChildExsist;
55
55
  private updateFilterLevel;
56
56
  private clearFilterLevel;
57
+ private checkNegativePredicate;
57
58
  }
@@ -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 uniqueIDValue = getValue('uniqueIDFilterCollection', this.parent);
175
- if (!Object.prototype.hasOwnProperty.call(uniqueIDValue, childRec[parseInt(count.toString(), 10)].uniqueID)) {
176
- this.filteredResult.push(childRec[parseInt(count.toString(), 10)]);
177
- setValue('uniqueIDFilterCollection.' + childRec[parseInt(count.toString(), 10)].uniqueID, childRec[parseInt(count.toString(), 10)], this.parent);
178
- isExist = true;
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;