@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.
- 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 +27 -1
- package/dist/es6/ej2-treegrid.es2015.js.map +1 -1
- package/dist/es6/ej2-treegrid.es5.js +28 -1
- 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 +17 -0
|
@@ -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;
|
|
@@ -5529,6 +5539,22 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
5529
5539
|
}
|
|
5530
5540
|
}
|
|
5531
5541
|
}
|
|
5542
|
+
if (((target.classList.contains('e-flmenu-cancelbtn') || target.classList.contains('e-flmenu-okbtn')
|
|
5543
|
+
|| target.classList.contains('e-content') || target.classList.contains('e-rowcell'))
|
|
5544
|
+
&& !isNullOrUndefined(this.filterModule) && this.isReact)) {
|
|
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
|
+
}
|
|
5555
|
+
}
|
|
5556
|
+
}
|
|
5557
|
+
}
|
|
5532
5558
|
}
|
|
5533
5559
|
/**
|
|
5534
5560
|
* Returns TreeGrid rows
|