@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.
@@ -4141,8 +4141,16 @@
4141
4141
  * @param {any[]} items Oggetti da selezionare o deselezionare
4142
4142
  * @param {boolean} select **true** per selezionarli, **false** per non toccarli
4143
4143
  */
4144
- EsTableComponent.prototype.setSelectionStatus = function (items, select) {
4145
- this.selection_H.handleItemsSelection(items, select);
4144
+ EsTableComponent.prototype.setSelectionStatus = function (items, all, select) {
4145
+ var _a;
4146
+ if (all) {
4147
+ var si = ((_a = this.View) === null || _a === void 0 ? void 0 : _a.selection) || this.arraymodeSelection;
4148
+ //se deseleziono con attuale selezione ad all o se seleziono con attuale selezione manuale devo richiamare la **selectAllOrResetSelection**
4149
+ if ((si.all && !select) || (!si.all && select))
4150
+ this.selection_H.selectAllOrResetSelection();
4151
+ }
4152
+ else
4153
+ this.selection_H.handleItemsSelection(items, select);
4146
4154
  this.cdr.markForCheck();
4147
4155
  };
4148
4156
  /**