@syncfusion/ej2-treegrid 26.2.11 → 26.2.14
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 -12
- package/dist/es6/ej2-treegrid.es2015.js.map +1 -1
- package/dist/es6/ej2-treegrid.es5.js +24 -12
- 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 +7 -7
- package/src/treegrid/base/data.js +11 -1
- package/src/treegrid/base/treegrid.js +13 -11
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 26.2.
|
|
3
|
+
* version : 26.2.14
|
|
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.
|
|
3
|
+
"_id": "@syncfusion/ej2-treegrid@26.2.12",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-vOe0gjwaK9/EISx9QC1AqClDxAx4EYZAmFEJe31WPcIsllnpGOM+lU3wlNxyo36ADOrubPPsdHUrRepXmiEdlQ==",
|
|
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.
|
|
28
|
-
"_shasum": "
|
|
27
|
+
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-treegrid/-/ej2-treegrid-26.2.12.tgz",
|
|
28
|
+
"_shasum": "23c0a74e7ba1e3e7b4b0b7a9acf7e6849f438fa7",
|
|
29
29
|
"_spec": "@syncfusion/ej2-treegrid@*",
|
|
30
30
|
"_where": "/jenkins/workspace/elease-automation_release_26.1.1/packages/included",
|
|
31
31
|
"author": {
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"bundleDependencies": false,
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@syncfusion/ej2-base": "~26.2.10",
|
|
40
|
-
"@syncfusion/ej2-data": "~26.2.
|
|
41
|
-
"@syncfusion/ej2-grids": "~26.2.
|
|
40
|
+
"@syncfusion/ej2-data": "~26.2.14",
|
|
41
|
+
"@syncfusion/ej2-grids": "~26.2.14",
|
|
42
42
|
"@syncfusion/ej2-popups": "~26.2.11"
|
|
43
43
|
},
|
|
44
44
|
"deprecated": false,
|
|
@@ -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.
|
|
79
|
+
"version": "26.2.14",
|
|
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.
|
|
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;
|
|
@@ -878,9 +878,9 @@ var TreeGrid = /** @class */ (function (_super) {
|
|
|
878
878
|
if (this.treeColumnIndex >= this.columns.length) {
|
|
879
879
|
failureCases.push('TreeColumnIndex value should not exceed the total column count.');
|
|
880
880
|
}
|
|
881
|
-
if (this.enableVirtualization &&
|
|
882
|
-
|
|
883
|
-
|
|
881
|
+
if (this.enableVirtualization &&
|
|
882
|
+
(this.columnModel.some(function (col) { return /%$/.test(col.width); }) ||
|
|
883
|
+
/%$/.test(this.height.toString()))) {
|
|
884
884
|
failureCases.push('column width and height should be in pixels');
|
|
885
885
|
}
|
|
886
886
|
if ((this.childMapping !== 'Children') && !isNullOrUndefined(this.idMapping)) {
|
|
@@ -2184,14 +2184,16 @@ var TreeGrid = /** @class */ (function (_super) {
|
|
|
2184
2184
|
if (((target.classList.contains('e-flmenu-cancelbtn') || target.classList.contains('e-flmenu-okbtn')
|
|
2185
2185
|
|| target.classList.contains('e-content') || target.classList.contains('e-rowcell'))
|
|
2186
2186
|
&& !isNullOrUndefined(this.filterModule) && this.isReact)) {
|
|
2187
|
-
if (this.grid.filterModule['column']
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
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
|
+
}
|
|
2195
2197
|
}
|
|
2196
2198
|
}
|
|
2197
2199
|
}
|