@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
|
@@ -5271,6 +5271,18 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
5271
5271
|
}
|
|
5272
5272
|
this.isEditCollapse = false;
|
|
5273
5273
|
this.notify('checkboxSelection', { target: target });
|
|
5274
|
+
if (this.grid.isCheckBoxSelection && !this.grid.isPersistSelection) {
|
|
5275
|
+
if (this.aggregates.map((ag) => ag.showChildSummary === true).length) {
|
|
5276
|
+
const checkedTarget = this.grid.getHeaderContent().querySelector('.e-checkselectall');
|
|
5277
|
+
const checkedLen = this.grid.getSelectedRowIndexes().length;
|
|
5278
|
+
const totalRecords = this.getCurrentViewRecords().length;
|
|
5279
|
+
if (checkedLen === totalRecords) {
|
|
5280
|
+
const spanEle = checkedTarget.nextElementSibling;
|
|
5281
|
+
removeClass([spanEle], ['e-stop', 'e-uncheck']);
|
|
5282
|
+
addClass([spanEle], ['e-check']);
|
|
5283
|
+
}
|
|
5284
|
+
}
|
|
5285
|
+
}
|
|
5274
5286
|
}
|
|
5275
5287
|
/**
|
|
5276
5288
|
* Returns TreeGrid rows
|
|
@@ -8456,6 +8468,9 @@ class RowDD$1 {
|
|
|
8456
8468
|
if (!tObj.rowDropSettings.targetID && this.canDrop) {
|
|
8457
8469
|
tObj.rowDragAndDropModule.updateIcon(args.rows, rowIdx, args);
|
|
8458
8470
|
}
|
|
8471
|
+
if (isNullOrUndefined(tObj.rowDropSettings.targetID) && !this.canDrop) {
|
|
8472
|
+
this.removetopOrBottomBorder();
|
|
8473
|
+
}
|
|
8459
8474
|
if (tObj.rowDropSettings.targetID) {
|
|
8460
8475
|
const dropElement = parentsUntil(args.target, 'e-treegrid');
|
|
8461
8476
|
if (dropElement && dropElement.id === this.parent.rowDropSettings.targetID) {
|
|
@@ -8479,7 +8494,6 @@ class RowDD$1 {
|
|
|
8479
8494
|
this.dropPosition = 'Invalid';
|
|
8480
8495
|
}
|
|
8481
8496
|
setValue('dropPosition', this.dropPosition, args);
|
|
8482
|
-
args.dropIndex = args.dropIndex === args.fromIndex ? this.getTargetIdx(args.target.parentElement) : args.dropIndex;
|
|
8483
8497
|
tObj.trigger(rowDrop, args);
|
|
8484
8498
|
if (!args.cancel) {
|
|
8485
8499
|
if (!isCountRequired(this.parent)) {
|