@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.
@@ -4753,7 +4753,7 @@ class EsTableComponent {
4753
4753
  this.internalWriteCall = false;
4754
4754
  }
4755
4755
  /** Metodo eventualmente richiamabile anche dal componente esterno che permette di forzare un refresh della tabella */
4756
- forceRefresh() {
4756
+ forceRefresh(relaunchSearch = true) {
4757
4757
  // 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
4758
4758
  let arrayPage;
4759
4759
  let arrayIpp;
@@ -4761,6 +4761,8 @@ class EsTableComponent {
4761
4761
  arrayPage = this.arraymodePage;
4762
4762
  arrayIpp = this.ArraymodeItemsPerPage;
4763
4763
  }
4764
+ if (!relaunchSearch && this.viewMode)
4765
+ this.View.selfsearch = true;
4764
4766
  this.writeValue(this.View);
4765
4767
  this.cdr.detectChanges();
4766
4768
  if (this.arrayMode) {
@@ -4774,7 +4776,7 @@ class EsTableComponent {
4774
4776
  * @param {string} groupOrHeader Header di cui settare la visibilità
4775
4777
  * @param {boolean} visibility Visibilità da impostare
4776
4778
  **/
4777
- setHeaderVisibility(groupOrHeader, visibility, refresh = true) {
4779
+ setHeaderVisibility(groupOrHeader, visibility, refresh = true, relaunchSearch = true) {
4778
4780
  let groupOrHead = this.thsCache[groupOrHeader];
4779
4781
  if (!groupOrHead)
4780
4782
  return;
@@ -4787,7 +4789,7 @@ class EsTableComponent {
4787
4789
  }
4788
4790
  if (refresh) {
4789
4791
  this.useLocalVisibility = true;
4790
- this.forceRefresh();
4792
+ this.forceRefresh(relaunchSearch);
4791
4793
  }
4792
4794
  }
4793
4795
  /**