@esfaenza/es-table 11.2.147 → 11.2.149

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.
@@ -4300,7 +4300,7 @@ class EsTableComponent {
4300
4300
  * @param {any[]} items Oggetti da selezionare o deselezionare
4301
4301
  * @param {boolean} select **true** per selezionarli, **false** per non toccarli
4302
4302
  */
4303
- setSelectionStatus(items, all, select) {
4303
+ setSelectionStatus(items, all, select, emit = false) {
4304
4304
  var _a;
4305
4305
  if (all) {
4306
4306
  if (!this.SelectAll) {
@@ -4315,19 +4315,20 @@ class EsTableComponent {
4315
4315
  else
4316
4316
  this.selection_H.handleItemsSelection(items, select);
4317
4317
  this.cdr.markForCheck();
4318
+ if (emit)
4319
+ this.onSelectionChanged.emit(this.arraymodeSelection);
4318
4320
  }
4319
4321
  /**
4320
4322
  * Effettua un hard reset della selezione
4321
4323
  */
4322
4324
  resetSelection(emit = false) {
4323
- var _a;
4324
4325
  this.selection_H.clearSelectionCaches();
4325
- if ((_a = this.View) === null || _a === void 0 ? void 0 : _a.selection) {
4326
+ if (this.viewMode && this.View) {
4326
4327
  this.View.selection = new ItemsSelection([]);
4327
4328
  if (emit)
4328
4329
  this.onSelectionChanged.emit(this.View.selection);
4329
4330
  }
4330
- else if (this.arraymodeSelection) {
4331
+ else if (this.arrayMode) {
4331
4332
  this.arraymodeSelection = new ItemsSelection([]);
4332
4333
  if (emit)
4333
4334
  this.onSelectionChanged.emit(this.arraymodeSelection);