@esfaenza/es-table 11.2.134 → 11.2.135

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.
@@ -4301,6 +4301,8 @@
4301
4301
  this.callTimeout = null;
4302
4302
  /** Cache dei th piuttosto che ricalcolarseli di continuo */
4303
4303
  this.thsCache = {};
4304
+ /** Indica quando la cache dei th è stata fillata almeno la prima volta */
4305
+ this.thsCacheSet = false;
4304
4306
  /**
4305
4307
  * Flag che, se **true**, per un giro di binding mantiene la visibilità impostata localmente, piuttosto che allineare alla View bindata.
4306
4308
  * Usata per modificare in maniera programmatica la visibilità delle colonne dal metodo **setHeaderVisibility**,
@@ -4531,7 +4533,7 @@
4531
4533
  // vuol dire che l'es-table è cambiata quindi non imposto preference
4532
4534
  if (((_b = this.EsThsDirective) === null || _b === void 0 ? void 0 : _b.length) > 0) {
4533
4535
  for (i = 0; i < repository.length; i++) {
4534
- if (!this.thsCache[repository[i]]) {
4536
+ if (this.thsCacheSet && !this.thsCache[repository[i]]) {
4535
4537
  updatedPrefs = false;
4536
4538
  break;
4537
4539
  }
@@ -4743,6 +4745,7 @@
4743
4745
  var th = ths[i];
4744
4746
  this.thsCache[th.th] = th;
4745
4747
  }
4748
+ this.thsCacheSet = true;
4746
4749
  // Prepassaggio per tirare fuori tutte le info utili sugli headers in modo da non ricacolarseli sempre dopo
4747
4750
  var hI = this.columnMetadata_H.evaluateHeadersGroupingInfos(ths);
4748
4751
  if (this.arrayMode) // In modalità array non ho un backend...