@esfaenza/es-table 11.2.126 → 11.2.127
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 +12 -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/esm2015/lib/core/handlers/DynamicModeHandler.js +9 -1
- package/fesm2015/esfaenza-es-table.js +12 -1
- package/fesm2015/esfaenza-es-table.js.map +1 -1
- package/package.json +1 -1
|
@@ -1928,6 +1928,14 @@
|
|
|
1928
1928
|
return null;
|
|
1929
1929
|
var ths = [];
|
|
1930
1930
|
var tds = [];
|
|
1931
|
+
// Aggiunta di tutte le operazioni dinamiche. I TD verranno aggiunti lato Body
|
|
1932
|
+
// TODO: renderle collecate anche ai TD così si semplifica anche l'html
|
|
1933
|
+
for (var i = 0; i < this.est.DynamicOperations.length; i++) {
|
|
1934
|
+
var col = this.est.DynamicOperations[i];
|
|
1935
|
+
var dd = new EsThDirective(null);
|
|
1936
|
+
dd.th = col.id;
|
|
1937
|
+
ths.push(dd);
|
|
1938
|
+
}
|
|
1931
1939
|
for (var i = 0; i < this.est.DynamicRowColumnsDefinition.length; i++) {
|
|
1932
1940
|
var col = this.est.DynamicRowColumnsDefinition[i];
|
|
1933
1941
|
ths.push(this.getTh(col));
|
|
@@ -4550,7 +4558,10 @@
|
|
|
4550
4558
|
repository = cols;
|
|
4551
4559
|
source = this.View.columns;
|
|
4552
4560
|
}
|
|
4553
|
-
// In modalità report
|
|
4561
|
+
// In modalità report aggiorno le preferenze solo se c'è almeno una colonna, altrimenti vuol dire che si parte da vuoti
|
|
4562
|
+
// con tutte le colonne disponibili
|
|
4563
|
+
if (this.View.report_columns && ((source === null || source === void 0 ? void 0 : source.length) || 0) == 0)
|
|
4564
|
+
updatedPrefs = false;
|
|
4554
4565
|
// In modalità normale invece se le preferenze fanno riferimento a delle colonne che io non ho nella View attuale significa che
|
|
4555
4566
|
// sto facendo riferimento a una versione vecchia dell'es-table, quindi non foccio operazioni
|
|
4556
4567
|
for (i = 0; i < source.length; i++) {
|