@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
|
@@ -2478,7 +2478,17 @@ class DataManipulation {
|
|
|
2478
2478
|
}
|
|
2479
2479
|
if ((!isNullOrUndefined(currentData[this.parent.childMapping]) && !isCountRequired(this.parent)) ||
|
|
2480
2480
|
((currentData[this.parent.hasChildMapping]) && isCountRequired(this.parent))) {
|
|
2481
|
-
currentData.
|
|
2481
|
+
if (!isNullOrUndefined(currentData[this.parent.childMapping])) {
|
|
2482
|
+
if (currentData[this.parent.childMapping].length > 0) {
|
|
2483
|
+
currentData.hasChildRecords = true;
|
|
2484
|
+
}
|
|
2485
|
+
else {
|
|
2486
|
+
currentData.hasChildRecords = false;
|
|
2487
|
+
}
|
|
2488
|
+
}
|
|
2489
|
+
else {
|
|
2490
|
+
currentData.hasChildRecords = true;
|
|
2491
|
+
}
|
|
2482
2492
|
if (this.parent.enableCollapseAll || !isNullOrUndefined(this.parent.dataStateChange)
|
|
2483
2493
|
&& isNullOrUndefined(currentData[this.parent.childMapping])) {
|
|
2484
2494
|
currentData.expanded = false;
|
|
@@ -4240,9 +4250,9 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
4240
4250
|
if (this.treeColumnIndex >= this.columns.length) {
|
|
4241
4251
|
failureCases.push('TreeColumnIndex value should not exceed the total column count.');
|
|
4242
4252
|
}
|
|
4243
|
-
if (this.enableVirtualization &&
|
|
4244
|
-
|
|
4245
|
-
|
|
4253
|
+
if (this.enableVirtualization &&
|
|
4254
|
+
(this.columnModel.some((col) => /%$/.test(col.width)) ||
|
|
4255
|
+
/%$/.test(this.height.toString()))) {
|
|
4246
4256
|
failureCases.push('column width and height should be in pixels');
|
|
4247
4257
|
}
|
|
4248
4258
|
if ((this.childMapping !== 'Children') && !isNullOrUndefined(this.idMapping)) {
|
|
@@ -5532,14 +5542,16 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
5532
5542
|
if (((target.classList.contains('e-flmenu-cancelbtn') || target.classList.contains('e-flmenu-okbtn')
|
|
5533
5543
|
|| target.classList.contains('e-content') || target.classList.contains('e-rowcell'))
|
|
5534
5544
|
&& !isNullOrUndefined(this.filterModule) && this.isReact)) {
|
|
5535
|
-
if (this.grid.filterModule['column']
|
|
5536
|
-
|
|
5537
|
-
|
|
5538
|
-
|
|
5539
|
-
|
|
5540
|
-
|
|
5541
|
-
this.
|
|
5542
|
-
|
|
5545
|
+
if (!isNullOrUndefined(this.grid.filterModule['column'])) {
|
|
5546
|
+
if (this.grid.filterModule['column'].filterTemplate) {
|
|
5547
|
+
const elem = document.getElementById(this.grid.filterModule.filterModule['dlgObj'].element.id);
|
|
5548
|
+
this.grid.filterModule['fltrDlgDetails'].isOpen = false;
|
|
5549
|
+
if (this.grid.filterModule.filterModule['dlgObj'] && !this.grid.filterModule.filterModule['dlgObj'].isDestroyed && elem) {
|
|
5550
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
5551
|
+
this.clearTemplate(['filterTemplate'], undefined, () => {
|
|
5552
|
+
this.grid.filterModule.filterModule['dlgObj'].destroy();
|
|
5553
|
+
});
|
|
5554
|
+
}
|
|
5543
5555
|
}
|
|
5544
5556
|
}
|
|
5545
5557
|
}
|