@syncfusion/ej2-treegrid 23.1.39 → 23.2.4
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 +26 -0
- 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 +15 -17
- package/dist/es6/ej2-treegrid.es2015.js.map +1 -1
- package/dist/es6/ej2-treegrid.es5.js +15 -17
- 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 +9 -9
- package/src/treegrid/actions/batch-edit.js +1 -5
- package/src/treegrid/actions/clipboard.js +3 -3
- package/src/treegrid/actions/freeze-column.js +1 -1
- package/src/treegrid/actions/selection.js +2 -2
- package/src/treegrid/actions/virtual-scroll.js +7 -2
- package/src/treegrid/base/treegrid.js +0 -3
- package/src/treegrid/renderer/virtual-tree-content-render.js +2 -2
- package/styles/bootstrap4.css +13 -2
- package/styles/treegrid/bootstrap4.css +13 -2
|
@@ -649,7 +649,7 @@ var TreeClipboard = /** @__PURE__ @class */ (function (_super) {
|
|
|
649
649
|
this.treeCopyContent += '\n';
|
|
650
650
|
}
|
|
651
651
|
if (!rows[selectedIndexes[parseInt(i.toString(), 10)]].classList.contains('e-summaryrow')) {
|
|
652
|
-
var cells = [].slice.call(rows[selectedIndexes[parseInt(i.toString(), 10)]].querySelectorAll('.e-rowcell'));
|
|
652
|
+
var cells = [].slice.call(rows[selectedIndexes[parseInt(i.toString(), 10)]].querySelectorAll('.e-rowcell:not(.e-hide)'));
|
|
653
653
|
var uniqueid = this.treeGridParent.getSelectedRecords()[parseInt(i.toString(), 10)]["" + uniqueID];
|
|
654
654
|
if (this.copiedUniqueIdCollection.indexOf(uniqueid) === -1) {
|
|
655
655
|
if (this.treeGridParent.copyHierarchyMode === 'Parent' || this.treeGridParent.copyHierarchyMode === 'Both') {
|
|
@@ -711,7 +711,7 @@ var TreeClipboard = /** @__PURE__ @class */ (function (_super) {
|
|
|
711
711
|
if (!isNullOrUndefined(currentRecords[parseInt(selectedIndex.toString(), 10)]["" + parentItem]) &&
|
|
712
712
|
currentRecords[parseInt(j.toString(), 10)]["" + uniqueID] === currentRecords[parseInt(selectedIndex.toString(), 10)]["" + parentItem]["" + uniqueID]) {
|
|
713
713
|
selectedIndex = j;
|
|
714
|
-
var cells = [].slice.call(rows[parseInt(selectedIndex.toString(), 10)].querySelectorAll('.e-rowcell'));
|
|
714
|
+
var cells = [].slice.call(rows[parseInt(selectedIndex.toString(), 10)].querySelectorAll('.e-rowcell:not(.e-hide)'));
|
|
715
715
|
var uniqueid = currentRecords[parseInt(j.toString(), 10)]["" + uniqueID];
|
|
716
716
|
if (this.copiedUniqueIdCollection.indexOf(uniqueid) === -1) {
|
|
717
717
|
this["" + getCopyData](cells, false, '\t', withHeader);
|
|
@@ -766,7 +766,7 @@ var TreeClipboard = /** @__PURE__ @class */ (function (_super) {
|
|
|
766
766
|
for (var j = 0; j < currentRecords.length; j++) {
|
|
767
767
|
if (!isNullOrUndefined(childData[parseInt(i.toString(), 10)]["" + uniqueID]) && currentRecords[parseInt(j.toString(), 10)]["" + uniqueID] === childData[parseInt(i.toString(), 10)]["" + uniqueID]) {
|
|
768
768
|
if ((!isNullOrUndefined(rows[parseInt(j.toString(), 10)])) && !rows[parseInt(j.toString(), 10)].classList.contains('e-summaryrow')) {
|
|
769
|
-
var cells = [].slice.call(rows[parseInt(j.toString(), 10)].querySelectorAll('.e-rowcell'));
|
|
769
|
+
var cells = [].slice.call(rows[parseInt(j.toString(), 10)].querySelectorAll('.e-rowcell:not(.e-hide)'));
|
|
770
770
|
var uniqueid = currentRecords[parseInt(j.toString(), 10)]["" + uniqueID];
|
|
771
771
|
if (this.copiedUniqueIdCollection.indexOf(uniqueid) === -1) {
|
|
772
772
|
this["" + getCopyData](cells, false, '\t', withHeader);
|
|
@@ -1369,7 +1369,7 @@ var Selection = /** @__PURE__ @class */ (function () {
|
|
|
1369
1369
|
(!isNullOrUndefined(this.parent.filterModule) && this.parent.filterModule.filteredResult.length > 0))) {
|
|
1370
1370
|
this.selectedItems.push(checkedRecord);
|
|
1371
1371
|
}
|
|
1372
|
-
if (this.selectedItems.indexOf(checkedRecord) === -1 && this.parent.enableVirtualization && ((!isNullOrUndefined(this.parent.filterModule) && this.parent.filterModule.filteredResult.length > 0))) {
|
|
1372
|
+
if (this.selectedItems.indexOf(checkedRecord) === -1 && (this.parent.enableVirtualization || this.parent.allowPaging) && ((!isNullOrUndefined(this.parent.filterModule) && this.parent.filterModule.filteredResult.length > 0))) {
|
|
1373
1373
|
this.selectedItems.push(checkedRecord);
|
|
1374
1374
|
}
|
|
1375
1375
|
if (this.selectedItems.indexOf(checkedRecord) === -1 && (!isNullOrUndefined(this.parent.filterModule) &&
|
|
@@ -1444,7 +1444,7 @@ var Selection = /** @__PURE__ @class */ (function () {
|
|
|
1444
1444
|
this.selectedItems = [];
|
|
1445
1445
|
this.selectedIndexes = [];
|
|
1446
1446
|
childData = (!isNullOrUndefined(this.parent.filterModule) && this.parent.filterModule.filteredResult.length > 0) ?
|
|
1447
|
-
this.parent.
|
|
1447
|
+
this.parent.filterModule.filteredResult : this.parent.flatData;
|
|
1448
1448
|
childData.forEach(function (record) {
|
|
1449
1449
|
if (_this.parent.enableVirtualization) {
|
|
1450
1450
|
if (record.hasChildRecords && record.childRecords.length > 0) {
|
|
@@ -5250,9 +5250,6 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
|
|
|
5250
5250
|
for (var _i = 0, properties_1 = properties; _i < properties_1.length; _i++) {
|
|
5251
5251
|
var prop = properties_1[_i];
|
|
5252
5252
|
switch (prop) {
|
|
5253
|
-
case 'columns':
|
|
5254
|
-
this.grid.columns = this.getGridColumns(this.columns);
|
|
5255
|
-
break;
|
|
5256
5253
|
case 'treeColumnIndex':
|
|
5257
5254
|
this.grid.refreshColumns();
|
|
5258
5255
|
break;
|
|
@@ -11326,10 +11323,6 @@ var BatchEdit = /** @__PURE__ @class */ (function () {
|
|
|
11326
11323
|
this.parent.grid.getRowsObject()[parseInt(rowObjectIndex.toString(), 10)].data = added;
|
|
11327
11324
|
this.newBatchRowAdded = false;
|
|
11328
11325
|
}
|
|
11329
|
-
if (this.parent.frozenColumns || this.parent.getFrozenColumns()
|
|
11330
|
-
&& this.parent.grid.getRowsObject()[parseInt(rowObjectIndex.toString(), 10)].edit === 'add') {
|
|
11331
|
-
merge(this.currentViewRecords[parseInt(rowObjectIndex.toString(), 10)], this.parent.grid.getRowsObject()[parseInt(rowObjectIndex.toString(), 10)].changes);
|
|
11332
|
-
}
|
|
11333
11326
|
}
|
|
11334
11327
|
};
|
|
11335
11328
|
BatchEdit.prototype.beforeBatchAdd = function (e) {
|
|
@@ -13147,8 +13140,8 @@ var VirtualTreeContentRenderer = /** @__PURE__ @class */ (function (_super) {
|
|
|
13147
13140
|
if (isNullOrUndefined(this.observer["" + containerRect])) {
|
|
13148
13141
|
this.observer["" + containerRect] = this.observers["" + containerRect];
|
|
13149
13142
|
}
|
|
13150
|
-
if (isNullOrUndefined(this.parent['
|
|
13151
|
-
isNullOrUndefined(this.parent['
|
|
13143
|
+
if (isNullOrUndefined(this.parent.clipboardModule['treeGridParent'].editModule) || args.selectedIndex !== 0 ||
|
|
13144
|
+
isNullOrUndefined(this.parent.clipboardModule['treeGridParent'].editModule['addRowIndex'])) {
|
|
13152
13145
|
_super.prototype["" + selectVirtualRow].call(this, args);
|
|
13153
13146
|
}
|
|
13154
13147
|
};
|
|
@@ -13717,7 +13710,7 @@ var VirtualScroll$1 = /** @__PURE__ @class */ (function () {
|
|
|
13717
13710
|
else {
|
|
13718
13711
|
var requestType = pageingDetails.actionArgs.requestType;
|
|
13719
13712
|
if (requestType === 'filtering' || requestType === 'collapseAll' || requestType === 'searching' ||
|
|
13720
|
-
(requestType === 'refresh' && this.parent.enableCollapseAll && endIndex > visualData.length)) {
|
|
13713
|
+
(requestType === 'refresh' && this.parent.enableCollapseAll && endIndex > visualData.length && isNullOrUndefined(this.expandCollapseRec))) {
|
|
13721
13714
|
startIndex = 0;
|
|
13722
13715
|
endIndex = this.parent.grid.pageSettings.pageSize - 1;
|
|
13723
13716
|
this.parent.grid.getContent().firstElementChild.scrollTop = 0;
|
|
@@ -13764,7 +13757,12 @@ var VirtualScroll$1 = /** @__PURE__ @class */ (function () {
|
|
|
13764
13757
|
}
|
|
13765
13758
|
this.expandCollapseRec = null;
|
|
13766
13759
|
startIndex = startIndex < 0 ? 0 : startIndex;
|
|
13767
|
-
|
|
13760
|
+
if (endIndex === 0 && visualData.length > 0) {
|
|
13761
|
+
pageingDetails.result = visualData;
|
|
13762
|
+
}
|
|
13763
|
+
else {
|
|
13764
|
+
pageingDetails.result = visualData.slice(startIndex, endIndex);
|
|
13765
|
+
}
|
|
13768
13766
|
this.prevstartIndex = startIndex;
|
|
13769
13767
|
this.prevendIndex = endIndex;
|
|
13770
13768
|
}
|
|
@@ -13898,7 +13896,7 @@ var Freeze$1 = /** @__PURE__ @class */ (function () {
|
|
|
13898
13896
|
Freeze$$1.prototype.dblClickHandler = function (e) {
|
|
13899
13897
|
if (parentsUntil(e.target, 'e-rowcell') &&
|
|
13900
13898
|
this.parent.grid.editSettings.allowEditOnDblClick && this.parent.editSettings.mode !== 'Cell' && (!e.target['classList'].contains('e-treegridcollapse') && !e.target['classList'].contains('e-treegridexpand'))) {
|
|
13901
|
-
this.parent.
|
|
13899
|
+
this.parent.startEdit(parentsUntil(e.target, 'e-row'));
|
|
13902
13900
|
}
|
|
13903
13901
|
};
|
|
13904
13902
|
Freeze$$1.prototype.dataBoundArg = function () {
|