ng-components-tsi 0.0.30 → 0.0.31

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.
@@ -3648,18 +3648,18 @@ class TableUltimateComponent {
3648
3648
  isItemSelected(id) {
3649
3649
  return this.selectItems().some(item => item.id == id);
3650
3650
  }
3651
- toogleItem(data, event) {
3652
- const row = this.rowFilter().find(r => r.idListTsi == data.idListTsi);
3651
+ toogleItem(idList, event) {
3652
+ const row = this.rowFormat().find(r => r.idListTsi == idList);
3653
3653
  if (!row || this.isCheckboxDisabled(row)) {
3654
3654
  return;
3655
3655
  }
3656
3656
  const input = event.target;
3657
3657
  if (input.checked) {
3658
- const item = { id: data.idListTsi, data: data };
3658
+ const item = { id: idList, data: row };
3659
3659
  this.selectItems.update(sel => [...sel, item]);
3660
3660
  return;
3661
3661
  }
3662
- this.selectItems.update(sel => sel.filter(s => s.id != data.idListTsi));
3662
+ this.selectItems.update(sel => sel.filter(s => s.id != idList));
3663
3663
  }
3664
3664
  resolveCell(col, row) {
3665
3665
  const value = row[col];