@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
|
@@ -2646,7 +2646,17 @@ var DataManipulation = /** @__PURE__ @class */ (function () {
|
|
|
2646
2646
|
}
|
|
2647
2647
|
if ((!isNullOrUndefined(currentData[this.parent.childMapping]) && !isCountRequired(this.parent)) ||
|
|
2648
2648
|
((currentData[this.parent.hasChildMapping]) && isCountRequired(this.parent))) {
|
|
2649
|
-
currentData.
|
|
2649
|
+
if (!isNullOrUndefined(currentData[this.parent.childMapping])) {
|
|
2650
|
+
if (currentData[this.parent.childMapping].length > 0) {
|
|
2651
|
+
currentData.hasChildRecords = true;
|
|
2652
|
+
}
|
|
2653
|
+
else {
|
|
2654
|
+
currentData.hasChildRecords = false;
|
|
2655
|
+
}
|
|
2656
|
+
}
|
|
2657
|
+
else {
|
|
2658
|
+
currentData.hasChildRecords = true;
|
|
2659
|
+
}
|
|
2650
2660
|
if (this.parent.enableCollapseAll || !isNullOrUndefined(this.parent.dataStateChange)
|
|
2651
2661
|
&& isNullOrUndefined(currentData[this.parent.childMapping])) {
|
|
2652
2662
|
currentData.expanded = false;
|
|
@@ -5808,6 +5818,7 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
|
|
|
5808
5818
|
}
|
|
5809
5819
|
};
|
|
5810
5820
|
TreeGrid.prototype.mouseClickHandler = function (e) {
|
|
5821
|
+
var _this = this;
|
|
5811
5822
|
if (!isNullOrUndefined(e.touches)) {
|
|
5812
5823
|
return;
|
|
5813
5824
|
}
|
|
@@ -5835,6 +5846,22 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
|
|
|
5835
5846
|
}
|
|
5836
5847
|
}
|
|
5837
5848
|
}
|
|
5849
|
+
if (((target.classList.contains('e-flmenu-cancelbtn') || target.classList.contains('e-flmenu-okbtn')
|
|
5850
|
+
|| target.classList.contains('e-content') || target.classList.contains('e-rowcell'))
|
|
5851
|
+
&& !isNullOrUndefined(this.filterModule) && this.isReact)) {
|
|
5852
|
+
if (!isNullOrUndefined(this.grid.filterModule['column'])) {
|
|
5853
|
+
if (this.grid.filterModule['column'].filterTemplate) {
|
|
5854
|
+
var elem = document.getElementById(this.grid.filterModule.filterModule['dlgObj'].element.id);
|
|
5855
|
+
this.grid.filterModule['fltrDlgDetails'].isOpen = false;
|
|
5856
|
+
if (this.grid.filterModule.filterModule['dlgObj'] && !this.grid.filterModule.filterModule['dlgObj'].isDestroyed && elem) {
|
|
5857
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
5858
|
+
this.clearTemplate(['filterTemplate'], undefined, function () {
|
|
5859
|
+
_this.grid.filterModule.filterModule['dlgObj'].destroy();
|
|
5860
|
+
});
|
|
5861
|
+
}
|
|
5862
|
+
}
|
|
5863
|
+
}
|
|
5864
|
+
}
|
|
5838
5865
|
};
|
|
5839
5866
|
/**
|
|
5840
5867
|
* Returns TreeGrid rows
|