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.
- package/fesm2022/ng-components-tsi.mjs +4 -4
- package/fesm2022/ng-components-tsi.mjs.map +1 -1
- package/lib/modals/general/md-generico/md-generico.component.d.ts +1 -1
- package/lib/ui/forms/inputs/autocomplete-cdk/autocomplete.component.d.ts +1 -1
- package/lib/ui/forms/inputs/input/input.component.d.ts +4 -4
- package/lib/ui/forms/inputs/input-radio/input-radio.component.d.ts +1 -1
- package/lib/ui/forms/inputs/multiselected/multiselected.component.d.ts +1 -1
- package/lib/ui/forms/lists/list-option/list-option.component.d.ts +1 -1
- package/lib/ui/tables/paginador/paginador.component.d.ts +1 -1
- package/lib/ui/tables/table-ultimate/table-ultimate.component.d.ts +1 -1
- package/ng-components-tsi-0.0.31.tgz +0 -0
- package/package.json +1 -1
- package/ng-components-tsi-0.0.30.tgz +0 -0
|
@@ -3648,18 +3648,18 @@ class TableUltimateComponent {
|
|
|
3648
3648
|
isItemSelected(id) {
|
|
3649
3649
|
return this.selectItems().some(item => item.id == id);
|
|
3650
3650
|
}
|
|
3651
|
-
toogleItem(
|
|
3652
|
-
const row = this.
|
|
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:
|
|
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 !=
|
|
3662
|
+
this.selectItems.update(sel => sel.filter(s => s.id != idList));
|
|
3663
3663
|
}
|
|
3664
3664
|
resolveCell(col, row) {
|
|
3665
3665
|
const value = row[col];
|