@esfaenza/es-table 11.2.123 → 11.2.124

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.
@@ -5291,7 +5291,8 @@
5291
5291
  this.internalWriteCall = false;
5292
5292
  };
5293
5293
  /** Metodo eventualmente richiamabile anche dal componente esterno che permette di forzare un refresh della tabella */
5294
- EsTableComponent.prototype.forceRefresh = function () {
5294
+ EsTableComponent.prototype.forceRefresh = function (relaunchSearch) {
5295
+ if (relaunchSearch === void 0) { relaunchSearch = true; }
5295
5296
  // Se sono in modalità View viene mantenuto in automatico il numero di pagina, ma per la modalità array devo prendere le info di paginazione prima e riapplicarle dopo
5296
5297
  var arrayPage;
5297
5298
  var arrayIpp;
@@ -5299,6 +5300,8 @@
5299
5300
  arrayPage = this.arraymodePage;
5300
5301
  arrayIpp = this.ArraymodeItemsPerPage;
5301
5302
  }
5303
+ if (!relaunchSearch && this.viewMode)
5304
+ this.View.selfsearch = true;
5302
5305
  this.writeValue(this.View);
5303
5306
  this.cdr.detectChanges();
5304
5307
  if (this.arrayMode) {
@@ -5312,8 +5315,9 @@
5312
5315
  * @param {string} groupOrHeader Header di cui settare la visibilità
5313
5316
  * @param {boolean} visibility Visibilità da impostare
5314
5317
  **/
5315
- EsTableComponent.prototype.setHeaderVisibility = function (groupOrHeader, visibility, refresh) {
5318
+ EsTableComponent.prototype.setHeaderVisibility = function (groupOrHeader, visibility, refresh, relaunchSearch) {
5316
5319
  if (refresh === void 0) { refresh = true; }
5320
+ if (relaunchSearch === void 0) { relaunchSearch = true; }
5317
5321
  var groupOrHead = this.thsCache[groupOrHeader];
5318
5322
  if (!groupOrHead)
5319
5323
  return;
@@ -5326,7 +5330,7 @@
5326
5330
  }
5327
5331
  if (refresh) {
5328
5332
  this.useLocalVisibility = true;
5329
- this.forceRefresh();
5333
+ this.forceRefresh(relaunchSearch);
5330
5334
  }
5331
5335
  };
5332
5336
  /**