@syncfusion/ej2-treegrid 23.1.36 → 23.1.43
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 +17 -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 +24 -9
- package/dist/es6/ej2-treegrid.es2015.js.map +1 -1
- package/dist/es6/ej2-treegrid.es5.js +24 -9
- 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 +9 -9
- package/src/treegrid/actions/batch-edit.js +1 -5
- package/src/treegrid/actions/freeze-column.js +1 -1
- package/src/treegrid/actions/rowdragdrop.js +3 -1
- package/src/treegrid/actions/virtual-scroll.js +6 -1
- package/src/treegrid/base/treegrid.js +12 -0
- package/src/treegrid/renderer/virtual-tree-content-render.js +2 -2
- package/styles/bootstrap4.css +13 -2
- package/styles/treegrid/bootstrap4.css +13 -2
|
@@ -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)) {
|
|
@@ -11312,10 +11326,6 @@ var BatchEdit = /** @__PURE__ @class */ (function () {
|
|
|
11312
11326
|
this.parent.grid.getRowsObject()[parseInt(rowObjectIndex.toString(), 10)].data = added;
|
|
11313
11327
|
this.newBatchRowAdded = false;
|
|
11314
11328
|
}
|
|
11315
|
-
if (this.parent.frozenColumns || this.parent.getFrozenColumns()
|
|
11316
|
-
&& this.parent.grid.getRowsObject()[parseInt(rowObjectIndex.toString(), 10)].edit === 'add') {
|
|
11317
|
-
merge(this.currentViewRecords[parseInt(rowObjectIndex.toString(), 10)], this.parent.grid.getRowsObject()[parseInt(rowObjectIndex.toString(), 10)].changes);
|
|
11318
|
-
}
|
|
11319
11329
|
}
|
|
11320
11330
|
};
|
|
11321
11331
|
BatchEdit.prototype.beforeBatchAdd = function (e) {
|
|
@@ -13133,8 +13143,8 @@ var VirtualTreeContentRenderer = /** @__PURE__ @class */ (function (_super) {
|
|
|
13133
13143
|
if (isNullOrUndefined(this.observer["" + containerRect])) {
|
|
13134
13144
|
this.observer["" + containerRect] = this.observers["" + containerRect];
|
|
13135
13145
|
}
|
|
13136
|
-
if (isNullOrUndefined(this.parent['
|
|
13137
|
-
isNullOrUndefined(this.parent['
|
|
13146
|
+
if (isNullOrUndefined(this.parent.clipboardModule['treeGridParent'].editModule) || args.selectedIndex !== 0 ||
|
|
13147
|
+
isNullOrUndefined(this.parent.clipboardModule['treeGridParent'].editModule['addRowIndex'])) {
|
|
13138
13148
|
_super.prototype["" + selectVirtualRow].call(this, args);
|
|
13139
13149
|
}
|
|
13140
13150
|
};
|
|
@@ -13750,7 +13760,12 @@ var VirtualScroll$1 = /** @__PURE__ @class */ (function () {
|
|
|
13750
13760
|
}
|
|
13751
13761
|
this.expandCollapseRec = null;
|
|
13752
13762
|
startIndex = startIndex < 0 ? 0 : startIndex;
|
|
13753
|
-
|
|
13763
|
+
if (endIndex === 0 && visualData.length > 0) {
|
|
13764
|
+
pageingDetails.result = visualData;
|
|
13765
|
+
}
|
|
13766
|
+
else {
|
|
13767
|
+
pageingDetails.result = visualData.slice(startIndex, endIndex);
|
|
13768
|
+
}
|
|
13754
13769
|
this.prevstartIndex = startIndex;
|
|
13755
13770
|
this.prevendIndex = endIndex;
|
|
13756
13771
|
}
|
|
@@ -13884,7 +13899,7 @@ var Freeze$1 = /** @__PURE__ @class */ (function () {
|
|
|
13884
13899
|
Freeze$$1.prototype.dblClickHandler = function (e) {
|
|
13885
13900
|
if (parentsUntil(e.target, 'e-rowcell') &&
|
|
13886
13901
|
this.parent.grid.editSettings.allowEditOnDblClick && this.parent.editSettings.mode !== 'Cell' && (!e.target['classList'].contains('e-treegridcollapse') && !e.target['classList'].contains('e-treegridexpand'))) {
|
|
13887
|
-
this.parent.
|
|
13902
|
+
this.parent.startEdit(parentsUntil(e.target, 'e-row'));
|
|
13888
13903
|
}
|
|
13889
13904
|
};
|
|
13890
13905
|
Freeze$$1.prototype.dataBoundArg = function () {
|