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