@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
|
@@ -534,7 +534,7 @@ class TreeClipboard extends Clipboard {
|
|
|
534
534
|
this.treeCopyContent += '\n';
|
|
535
535
|
}
|
|
536
536
|
if (!rows[selectedIndexes[parseInt(i.toString(), 10)]].classList.contains('e-summaryrow')) {
|
|
537
|
-
const cells = [].slice.call(rows[selectedIndexes[parseInt(i.toString(), 10)]].querySelectorAll('.e-rowcell'));
|
|
537
|
+
const cells = [].slice.call(rows[selectedIndexes[parseInt(i.toString(), 10)]].querySelectorAll('.e-rowcell:not(.e-hide)'));
|
|
538
538
|
const uniqueid = this.treeGridParent.getSelectedRecords()[parseInt(i.toString(), 10)][`${uniqueID}`];
|
|
539
539
|
if (this.copiedUniqueIdCollection.indexOf(uniqueid) === -1) {
|
|
540
540
|
if (this.treeGridParent.copyHierarchyMode === 'Parent' || this.treeGridParent.copyHierarchyMode === 'Both') {
|
|
@@ -596,7 +596,7 @@ class TreeClipboard extends Clipboard {
|
|
|
596
596
|
if (!isNullOrUndefined(currentRecords[parseInt(selectedIndex.toString(), 10)][`${parentItem}`]) &&
|
|
597
597
|
currentRecords[parseInt(j.toString(), 10)][`${uniqueID}`] === currentRecords[parseInt(selectedIndex.toString(), 10)][`${parentItem}`][`${uniqueID}`]) {
|
|
598
598
|
selectedIndex = j;
|
|
599
|
-
const cells = [].slice.call(rows[parseInt(selectedIndex.toString(), 10)].querySelectorAll('.e-rowcell'));
|
|
599
|
+
const cells = [].slice.call(rows[parseInt(selectedIndex.toString(), 10)].querySelectorAll('.e-rowcell:not(.e-hide)'));
|
|
600
600
|
const uniqueid = currentRecords[parseInt(j.toString(), 10)][`${uniqueID}`];
|
|
601
601
|
if (this.copiedUniqueIdCollection.indexOf(uniqueid) === -1) {
|
|
602
602
|
this[`${getCopyData}`](cells, false, '\t', withHeader);
|
|
@@ -651,7 +651,7 @@ class TreeClipboard extends Clipboard {
|
|
|
651
651
|
for (let j = 0; j < currentRecords.length; j++) {
|
|
652
652
|
if (!isNullOrUndefined(childData[parseInt(i.toString(), 10)][`${uniqueID}`]) && currentRecords[parseInt(j.toString(), 10)][`${uniqueID}`] === childData[parseInt(i.toString(), 10)][`${uniqueID}`]) {
|
|
653
653
|
if ((!isNullOrUndefined(rows[parseInt(j.toString(), 10)])) && !rows[parseInt(j.toString(), 10)].classList.contains('e-summaryrow')) {
|
|
654
|
-
const cells = [].slice.call(rows[parseInt(j.toString(), 10)].querySelectorAll('.e-rowcell'));
|
|
654
|
+
const cells = [].slice.call(rows[parseInt(j.toString(), 10)].querySelectorAll('.e-rowcell:not(.e-hide)'));
|
|
655
655
|
const uniqueid = currentRecords[parseInt(j.toString(), 10)][`${uniqueID}`];
|
|
656
656
|
if (this.copiedUniqueIdCollection.indexOf(uniqueid) === -1) {
|
|
657
657
|
this[`${getCopyData}`](cells, false, '\t', withHeader);
|
|
@@ -1251,7 +1251,7 @@ class Selection {
|
|
|
1251
1251
|
(!isNullOrUndefined(this.parent.filterModule) && this.parent.filterModule.filteredResult.length > 0))) {
|
|
1252
1252
|
this.selectedItems.push(checkedRecord);
|
|
1253
1253
|
}
|
|
1254
|
-
if (this.selectedItems.indexOf(checkedRecord) === -1 && this.parent.enableVirtualization && ((!isNullOrUndefined(this.parent.filterModule) && this.parent.filterModule.filteredResult.length > 0))) {
|
|
1254
|
+
if (this.selectedItems.indexOf(checkedRecord) === -1 && (this.parent.enableVirtualization || this.parent.allowPaging) && ((!isNullOrUndefined(this.parent.filterModule) && this.parent.filterModule.filteredResult.length > 0))) {
|
|
1255
1255
|
this.selectedItems.push(checkedRecord);
|
|
1256
1256
|
}
|
|
1257
1257
|
if (this.selectedItems.indexOf(checkedRecord) === -1 && (!isNullOrUndefined(this.parent.filterModule) &&
|
|
@@ -1325,7 +1325,7 @@ class Selection {
|
|
|
1325
1325
|
this.selectedItems = [];
|
|
1326
1326
|
this.selectedIndexes = [];
|
|
1327
1327
|
childData = (!isNullOrUndefined(this.parent.filterModule) && this.parent.filterModule.filteredResult.length > 0) ?
|
|
1328
|
-
this.parent.
|
|
1328
|
+
this.parent.filterModule.filteredResult : this.parent.flatData;
|
|
1329
1329
|
childData.forEach((record) => {
|
|
1330
1330
|
if (this.parent.enableVirtualization) {
|
|
1331
1331
|
if (record.hasChildRecords && record.childRecords.length > 0) {
|
|
@@ -4946,9 +4946,6 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
4946
4946
|
let requireRefresh = false;
|
|
4947
4947
|
for (const prop of properties) {
|
|
4948
4948
|
switch (prop) {
|
|
4949
|
-
case 'columns':
|
|
4950
|
-
this.grid.columns = this.getGridColumns(this.columns);
|
|
4951
|
-
break;
|
|
4952
4949
|
case 'treeColumnIndex':
|
|
4953
4950
|
this.grid.refreshColumns();
|
|
4954
4951
|
break;
|
|
@@ -10927,10 +10924,6 @@ class BatchEdit {
|
|
|
10927
10924
|
this.parent.grid.getRowsObject()[parseInt(rowObjectIndex.toString(), 10)].data = added;
|
|
10928
10925
|
this.newBatchRowAdded = false;
|
|
10929
10926
|
}
|
|
10930
|
-
if (this.parent.frozenColumns || this.parent.getFrozenColumns()
|
|
10931
|
-
&& this.parent.grid.getRowsObject()[parseInt(rowObjectIndex.toString(), 10)].edit === 'add') {
|
|
10932
|
-
merge(this.currentViewRecords[parseInt(rowObjectIndex.toString(), 10)], this.parent.grid.getRowsObject()[parseInt(rowObjectIndex.toString(), 10)].changes);
|
|
10933
|
-
}
|
|
10934
10927
|
}
|
|
10935
10928
|
}
|
|
10936
10929
|
beforeBatchAdd(e) {
|
|
@@ -12721,8 +12714,8 @@ class VirtualTreeContentRenderer extends VirtualContentRenderer {
|
|
|
12721
12714
|
if (isNullOrUndefined(this.observer[`${containerRect}`])) {
|
|
12722
12715
|
this.observer[`${containerRect}`] = this.observers[`${containerRect}`];
|
|
12723
12716
|
}
|
|
12724
|
-
if (isNullOrUndefined(this.parent['
|
|
12725
|
-
isNullOrUndefined(this.parent['
|
|
12717
|
+
if (isNullOrUndefined(this.parent.clipboardModule['treeGridParent'].editModule) || args.selectedIndex !== 0 ||
|
|
12718
|
+
isNullOrUndefined(this.parent.clipboardModule['treeGridParent'].editModule['addRowIndex'])) {
|
|
12726
12719
|
super[`${selectVirtualRow}`](args);
|
|
12727
12720
|
}
|
|
12728
12721
|
}
|
|
@@ -13271,7 +13264,7 @@ class VirtualScroll$1 {
|
|
|
13271
13264
|
else {
|
|
13272
13265
|
const requestType = pageingDetails.actionArgs.requestType;
|
|
13273
13266
|
if (requestType === 'filtering' || requestType === 'collapseAll' || requestType === 'searching' ||
|
|
13274
|
-
(requestType === 'refresh' && this.parent.enableCollapseAll && endIndex > visualData.length)) {
|
|
13267
|
+
(requestType === 'refresh' && this.parent.enableCollapseAll && endIndex > visualData.length && isNullOrUndefined(this.expandCollapseRec))) {
|
|
13275
13268
|
startIndex = 0;
|
|
13276
13269
|
endIndex = this.parent.grid.pageSettings.pageSize - 1;
|
|
13277
13270
|
this.parent.grid.getContent().firstElementChild.scrollTop = 0;
|
|
@@ -13318,7 +13311,12 @@ class VirtualScroll$1 {
|
|
|
13318
13311
|
}
|
|
13319
13312
|
this.expandCollapseRec = null;
|
|
13320
13313
|
startIndex = startIndex < 0 ? 0 : startIndex;
|
|
13321
|
-
|
|
13314
|
+
if (endIndex === 0 && visualData.length > 0) {
|
|
13315
|
+
pageingDetails.result = visualData;
|
|
13316
|
+
}
|
|
13317
|
+
else {
|
|
13318
|
+
pageingDetails.result = visualData.slice(startIndex, endIndex);
|
|
13319
|
+
}
|
|
13322
13320
|
this.prevstartIndex = startIndex;
|
|
13323
13321
|
this.prevendIndex = endIndex;
|
|
13324
13322
|
}
|
|
@@ -13444,7 +13442,7 @@ class Freeze$1 {
|
|
|
13444
13442
|
dblClickHandler(e) {
|
|
13445
13443
|
if (parentsUntil(e.target, 'e-rowcell') &&
|
|
13446
13444
|
this.parent.grid.editSettings.allowEditOnDblClick && this.parent.editSettings.mode !== 'Cell' && (!e.target['classList'].contains('e-treegridcollapse') && !e.target['classList'].contains('e-treegridexpand'))) {
|
|
13447
|
-
this.parent.
|
|
13445
|
+
this.parent.startEdit(parentsUntil(e.target, 'e-row'));
|
|
13448
13446
|
}
|
|
13449
13447
|
}
|
|
13450
13448
|
dataBoundArg() {
|