@syncfusion/ej2-treegrid 23.1.43 → 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 +11 -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 +6 -9
- package/dist/es6/ej2-treegrid.es2015.js.map +1 -1
- package/dist/es6/ej2-treegrid.es5.js +6 -9
- 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/clipboard.js +3 -3
- package/src/treegrid/actions/selection.js +2 -2
- package/src/treegrid/actions/virtual-scroll.js +1 -1
- package/src/treegrid/base/treegrid.js +0 -3
|
@@ -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;
|
|
@@ -13267,7 +13264,7 @@ class VirtualScroll$1 {
|
|
|
13267
13264
|
else {
|
|
13268
13265
|
const requestType = pageingDetails.actionArgs.requestType;
|
|
13269
13266
|
if (requestType === 'filtering' || requestType === 'collapseAll' || requestType === 'searching' ||
|
|
13270
|
-
(requestType === 'refresh' && this.parent.enableCollapseAll && endIndex > visualData.length)) {
|
|
13267
|
+
(requestType === 'refresh' && this.parent.enableCollapseAll && endIndex > visualData.length && isNullOrUndefined(this.expandCollapseRec))) {
|
|
13271
13268
|
startIndex = 0;
|
|
13272
13269
|
endIndex = this.parent.grid.pageSettings.pageSize - 1;
|
|
13273
13270
|
this.parent.grid.getContent().firstElementChild.scrollTop = 0;
|