@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.
@@ -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.getCurrentViewRecords() : this.parent.flatData;
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;
@@ -13713,7 +13710,7 @@ var VirtualScroll$1 = /** @__PURE__ @class */ (function () {
13713
13710
  else {
13714
13711
  var requestType = pageingDetails.actionArgs.requestType;
13715
13712
  if (requestType === 'filtering' || requestType === 'collapseAll' || requestType === 'searching' ||
13716
- (requestType === 'refresh' && this.parent.enableCollapseAll && endIndex > visualData.length)) {
13713
+ (requestType === 'refresh' && this.parent.enableCollapseAll && endIndex > visualData.length && isNullOrUndefined(this.expandCollapseRec))) {
13717
13714
  startIndex = 0;
13718
13715
  endIndex = this.parent.grid.pageSettings.pageSize - 1;
13719
13716
  this.parent.grid.getContent().firstElementChild.scrollTop = 0;