@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.
- package/bundles/esfaenza-es-table.umd.js +4 -1
- package/bundles/esfaenza-es-table.umd.js.map +1 -1
- package/bundles/esfaenza-es-table.umd.min.js +1 -1
- package/bundles/esfaenza-es-table.umd.min.js.map +1 -1
- package/esm2015/lib/components/es-table/es_table.component.js +5 -2
- package/fesm2015/esfaenza-es-table.js +4 -1
- package/fesm2015/esfaenza-es-table.js.map +1 -1
- package/lib/components/es-table/es_table.component.d.ts +2 -0
- package/package.json +1 -1
|
@@ -3796,6 +3796,8 @@ class EsTableComponent {
|
|
|
3796
3796
|
this.callTimeout = null;
|
|
3797
3797
|
/** Cache dei th piuttosto che ricalcolarseli di continuo */
|
|
3798
3798
|
this.thsCache = {};
|
|
3799
|
+
/** Indica quando la cache dei th è stata fillata almeno la prima volta */
|
|
3800
|
+
this.thsCacheSet = false;
|
|
3799
3801
|
/**
|
|
3800
3802
|
* Flag che, se **true**, per un giro di binding mantiene la visibilità impostata localmente, piuttosto che allineare alla View bindata.
|
|
3801
3803
|
* Usata per modificare in maniera programmatica la visibilità delle colonne dal metodo **setHeaderVisibility**,
|
|
@@ -4008,7 +4010,7 @@ class EsTableComponent {
|
|
|
4008
4010
|
// vuol dire che l'es-table è cambiata quindi non imposto preference
|
|
4009
4011
|
if (((_b = this.EsThsDirective) === null || _b === void 0 ? void 0 : _b.length) > 0) {
|
|
4010
4012
|
for (let i = 0; i < repository.length; i++) {
|
|
4011
|
-
if (!this.thsCache[repository[i]]) {
|
|
4013
|
+
if (this.thsCacheSet && !this.thsCache[repository[i]]) {
|
|
4012
4014
|
updatedPrefs = false;
|
|
4013
4015
|
break;
|
|
4014
4016
|
}
|
|
@@ -4212,6 +4214,7 @@ class EsTableComponent {
|
|
|
4212
4214
|
let th = ths[i];
|
|
4213
4215
|
this.thsCache[th.th] = th;
|
|
4214
4216
|
}
|
|
4217
|
+
this.thsCacheSet = true;
|
|
4215
4218
|
// Prepassaggio per tirare fuori tutte le info utili sugli headers in modo da non ricacolarseli sempre dopo
|
|
4216
4219
|
let hI = this.columnMetadata_H.evaluateHeadersGroupingInfos(ths);
|
|
4217
4220
|
if (this.arrayMode) // In modalità array non ho un backend...
|