@servicemind.tis/tis-smart-table-viewer 2.3.4 → 2.3.5

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.
@@ -2571,11 +2571,9 @@ class TisSmartTableViewerComponent {
2571
2571
  const rowId = this.getRowIdentifier(element);
2572
2572
  if (this.expandedRowIds.has(rowId)) {
2573
2573
  this.expandedRowIds.delete(rowId);
2574
- element.expanded = false;
2575
2574
  }
2576
2575
  else {
2577
2576
  this.expandedRowIds.add(rowId);
2578
- element.expanded = true;
2579
2577
  }
2580
2578
  }
2581
2579
  expandAllRow() {
@@ -2584,18 +2582,14 @@ class TisSmartTableViewerComponent {
2584
2582
  }
2585
2583
  this.isAllExpanded = !this.isAllExpanded;
2586
2584
  if (this.isAllExpanded) {
2587
- // Add all row IDs to expanded set and set expanded property
2585
+ // Add all row IDs to expanded set
2588
2586
  this.dataSource.apiSubject.value.forEach(row => {
2589
2587
  const rowId = this.getRowIdentifier(row);
2590
2588
  this.expandedRowIds.add(rowId);
2591
- row.expanded = true;
2592
2589
  });
2593
2590
  }
2594
2591
  else {
2595
- // Clear all expanded rows and remove expanded property
2596
- this.dataSource.apiSubject.value.forEach(row => {
2597
- row.expanded = false;
2598
- });
2592
+ // Clear all expanded rows
2599
2593
  this.expandedRowIds.clear();
2600
2594
  }
2601
2595
  }