@syncfusion/ej2-treegrid 26.2.10 → 26.2.12

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,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 26.2.10
3
+ * version : 26.2.12
4
4
  * Copyright Syncfusion Inc. 2001 - 2023. 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,8 +1,8 @@
1
1
  {
2
2
  "_from": "@syncfusion/ej2-treegrid@*",
3
- "_id": "@syncfusion/ej2-treegrid@26.2.9",
3
+ "_id": "@syncfusion/ej2-treegrid@26.2.11",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-sZpmBjfiblJpSR/xujnXOM5x8uSx+l1ql4v13nTnls8uxKrYXqjRD5QnDxGag1D9Dyzh3pcOEGQygRG/ida/NQ==",
5
+ "_integrity": "sha512-CXVEcMkoEPpqXqa5fEgBT6Qy8CGgGvULCa2H8CmtuOWE+6E7ey+gV7u5bMqc5AFUJo2BVdsWRmfxXzRQP26gxA==",
6
6
  "_location": "/@syncfusion/ej2-treegrid",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -24,8 +24,8 @@
24
24
  "/@syncfusion/ej2-react-treegrid",
25
25
  "/@syncfusion/ej2-vue-treegrid"
26
26
  ],
27
- "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-treegrid/-/ej2-treegrid-26.2.9.tgz",
28
- "_shasum": "3a23a5e660312b2fb62e5fb19e12f001b4450cf6",
27
+ "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-treegrid/-/ej2-treegrid-26.2.11.tgz",
28
+ "_shasum": "6461d8531da1d9896b0e63538bfc85d9706199ae",
29
29
  "_spec": "@syncfusion/ej2-treegrid@*",
30
30
  "_where": "/jenkins/workspace/elease-automation_release_26.1.1/packages/included",
31
31
  "author": {
@@ -38,8 +38,8 @@
38
38
  "dependencies": {
39
39
  "@syncfusion/ej2-base": "~26.2.10",
40
40
  "@syncfusion/ej2-data": "~26.2.10",
41
- "@syncfusion/ej2-grids": "~26.2.10",
42
- "@syncfusion/ej2-popups": "~26.2.10"
41
+ "@syncfusion/ej2-grids": "~26.2.12",
42
+ "@syncfusion/ej2-popups": "~26.2.11"
43
43
  },
44
44
  "deprecated": false,
45
45
  "description": "Essential JS 2 TreeGrid Component",
@@ -76,6 +76,6 @@
76
76
  "url": "git+https://github.com/syncfusion/ej2-treegrid.git"
77
77
  },
78
78
  "typings": "index.d.ts",
79
- "version": "26.2.10",
79
+ "version": "26.2.12",
80
80
  "sideEffects": false
81
81
  }
@@ -608,7 +608,17 @@ var DataManipulation = /** @class */ (function () {
608
608
  }
609
609
  if ((!isNullOrUndefined(currentData[this.parent.childMapping]) && !isCountRequired(this.parent)) ||
610
610
  ((currentData[this.parent.hasChildMapping]) && isCountRequired(this.parent))) {
611
- currentData.hasChildRecords = true;
611
+ if (!isNullOrUndefined(currentData[this.parent.childMapping])) {
612
+ if (currentData[this.parent.childMapping].length > 0) {
613
+ currentData.hasChildRecords = true;
614
+ }
615
+ else {
616
+ currentData.hasChildRecords = false;
617
+ }
618
+ }
619
+ else {
620
+ currentData.hasChildRecords = true;
621
+ }
612
622
  if (this.parent.enableCollapseAll || !isNullOrUndefined(this.parent.dataStateChange)
613
623
  && isNullOrUndefined(currentData[this.parent.childMapping])) {
614
624
  currentData.expanded = false;
@@ -2153,6 +2153,7 @@ var TreeGrid = /** @class */ (function (_super) {
2153
2153
  }
2154
2154
  };
2155
2155
  TreeGrid.prototype.mouseClickHandler = function (e) {
2156
+ var _this = this;
2156
2157
  if (!isNullOrUndefined(e.touches)) {
2157
2158
  return;
2158
2159
  }
@@ -2180,6 +2181,22 @@ var TreeGrid = /** @class */ (function (_super) {
2180
2181
  }
2181
2182
  }
2182
2183
  }
2184
+ if (((target.classList.contains('e-flmenu-cancelbtn') || target.classList.contains('e-flmenu-okbtn')
2185
+ || target.classList.contains('e-content') || target.classList.contains('e-rowcell'))
2186
+ && !isNullOrUndefined(this.filterModule) && this.isReact)) {
2187
+ if (!isNullOrUndefined(this.grid.filterModule['column'])) {
2188
+ if (this.grid.filterModule['column'].filterTemplate) {
2189
+ var elem = document.getElementById(this.grid.filterModule.filterModule['dlgObj'].element.id);
2190
+ this.grid.filterModule['fltrDlgDetails'].isOpen = false;
2191
+ if (this.grid.filterModule.filterModule['dlgObj'] && !this.grid.filterModule.filterModule['dlgObj'].isDestroyed && elem) {
2192
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
2193
+ this.clearTemplate(['filterTemplate'], undefined, function () {
2194
+ _this.grid.filterModule.filterModule['dlgObj'].destroy();
2195
+ });
2196
+ }
2197
+ }
2198
+ }
2199
+ }
2183
2200
  };
2184
2201
  /**
2185
2202
  * Returns TreeGrid rows