@esfaenza/es-table 11.2.55 → 11.2.56

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.
@@ -3631,8 +3631,16 @@ class EsTableComponent {
3631
3631
  * @param {any[]} items Oggetti da selezionare o deselezionare
3632
3632
  * @param {boolean} select **true** per selezionarli, **false** per non toccarli
3633
3633
  */
3634
- setSelectionStatus(items, select) {
3635
- this.selection_H.handleItemsSelection(items, select);
3634
+ setSelectionStatus(items, all, select) {
3635
+ var _a;
3636
+ if (all) {
3637
+ let si = ((_a = this.View) === null || _a === void 0 ? void 0 : _a.selection) || this.arraymodeSelection;
3638
+ //se deseleziono con attuale selezione ad all o se seleziono con attuale selezione manuale devo richiamare la **selectAllOrResetSelection**
3639
+ if ((si.all && !select) || (!si.all && select))
3640
+ this.selection_H.selectAllOrResetSelection();
3641
+ }
3642
+ else
3643
+ this.selection_H.handleItemsSelection(items, select);
3636
3644
  this.cdr.markForCheck();
3637
3645
  }
3638
3646
  /**