@syncfusion/ej2-treegrid 23.1.36 → 23.1.39
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/CHANGELOG.md +2 -0
- package/dist/ej2-treegrid.min.js +3 -3
- package/dist/ej2-treegrid.umd.min.js +3 -3
- package/dist/ej2-treegrid.umd.min.js.map +1 -1
- package/dist/es6/ej2-treegrid.es2015.js +15 -1
- package/dist/es6/ej2-treegrid.es2015.js.map +1 -1
- package/dist/es6/ej2-treegrid.es5.js +15 -1
- package/dist/es6/ej2-treegrid.es5.js.map +1 -1
- package/dist/global/ej2-treegrid.min.js +3 -3
- package/dist/global/ej2-treegrid.min.js.map +1 -1
- package/dist/global/index.d.ts +2 -2
- package/package.json +8 -8
- package/src/treegrid/actions/rowdragdrop.js +3 -1
- package/src/treegrid/base/treegrid.js +12 -0
|
@@ -5575,6 +5575,18 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
|
|
|
5575
5575
|
}
|
|
5576
5576
|
this.isEditCollapse = false;
|
|
5577
5577
|
this.notify('checkboxSelection', { target: target });
|
|
5578
|
+
if (this.grid.isCheckBoxSelection && !this.grid.isPersistSelection) {
|
|
5579
|
+
if (this.aggregates.map(function (ag) { return ag.showChildSummary === true; }).length) {
|
|
5580
|
+
var checkedTarget = this.grid.getHeaderContent().querySelector('.e-checkselectall');
|
|
5581
|
+
var checkedLen = this.grid.getSelectedRowIndexes().length;
|
|
5582
|
+
var totalRecords = this.getCurrentViewRecords().length;
|
|
5583
|
+
if (checkedLen === totalRecords) {
|
|
5584
|
+
var spanEle = checkedTarget.nextElementSibling;
|
|
5585
|
+
removeClass([spanEle], ['e-stop', 'e-uncheck']);
|
|
5586
|
+
addClass([spanEle], ['e-check']);
|
|
5587
|
+
}
|
|
5588
|
+
}
|
|
5589
|
+
}
|
|
5578
5590
|
};
|
|
5579
5591
|
/**
|
|
5580
5592
|
* Returns TreeGrid rows
|
|
@@ -8794,6 +8806,9 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
|
|
|
8794
8806
|
if (!tObj.rowDropSettings.targetID && this.canDrop) {
|
|
8795
8807
|
tObj.rowDragAndDropModule.updateIcon(args.rows, rowIdx, args);
|
|
8796
8808
|
}
|
|
8809
|
+
if (isNullOrUndefined(tObj.rowDropSettings.targetID) && !this.canDrop) {
|
|
8810
|
+
this.removetopOrBottomBorder();
|
|
8811
|
+
}
|
|
8797
8812
|
if (tObj.rowDropSettings.targetID) {
|
|
8798
8813
|
var dropElement = parentsUntil(args.target, 'e-treegrid');
|
|
8799
8814
|
if (dropElement && dropElement.id === this.parent.rowDropSettings.targetID) {
|
|
@@ -8817,7 +8832,6 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
|
|
|
8817
8832
|
this.dropPosition = 'Invalid';
|
|
8818
8833
|
}
|
|
8819
8834
|
setValue('dropPosition', this.dropPosition, args);
|
|
8820
|
-
args.dropIndex = args.dropIndex === args.fromIndex ? this.getTargetIdx(args.target.parentElement) : args.dropIndex;
|
|
8821
8835
|
tObj.trigger(rowDrop, args);
|
|
8822
8836
|
if (!args.cancel) {
|
|
8823
8837
|
if (!isCountRequired(this.parent)) {
|