@esfaenza/es-table 11.2.22-beta25 → 11.2.22-beta29
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 +16 -7
- 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 +3 -2
- package/esm2015/lib/core/handlers/classes/ColumnMetadataHandler.js +3 -3
- package/esm2015/lib/core/handlers/classes/ItemsHandler.js +13 -5
- package/fesm2015/esfaenza-es-table.js +16 -7
- package/fesm2015/esfaenza-es-table.js.map +1 -1
- package/package.json +1 -1
|
@@ -1307,8 +1307,8 @@
|
|
|
1307
1307
|
return;
|
|
1308
1308
|
var columns = this.est.viewMode ? view.columns : this.est.arrayColumns;
|
|
1309
1309
|
this.est.ColumnsList.forEach(function (c) {
|
|
1310
|
-
// Se la colonna è pinnata mi arriva col simoleon
|
|
1311
|
-
var exCl = columns.filter(function (cc) { return cc.replace('§', '') == c.id; });
|
|
1310
|
+
// Se la colonna è pinnata mi arriva col simoleon, ma anche se è una composizione di più colonne
|
|
1311
|
+
var exCl = columns.filter(function (cc) { return (cc.startsWith('§') ? cc.substring(1) : cc).replace('§', '') == c.id; });
|
|
1312
1312
|
// Se la colonna è pinnata aggiorno l'informazione nella view
|
|
1313
1313
|
if (exCl.length == 1)
|
|
1314
1314
|
c.pinned = exCl[0].startsWith('§');
|
|
@@ -2077,10 +2077,13 @@
|
|
|
2077
2077
|
// Se faccio dei raggruppamenti ignoro la paginazione
|
|
2078
2078
|
if (this.est.UseArrayModePaging && !allIfPossible) {
|
|
2079
2079
|
// Se sono in modalità array ma la ricerca dipende da una view devo riallineare gli itemperpage
|
|
2080
|
-
if (this.est.SearchView)
|
|
2080
|
+
if (this.est.SearchView) {
|
|
2081
2081
|
this.est.ArraymodeItemsPerPage = this.est.SearchView.itemsperpageoverride;
|
|
2082
|
+
this.est.arraymodePage = this.est.SearchView.page;
|
|
2083
|
+
this.est.arraymodePages = this.est.SearchView.pages;
|
|
2084
|
+
}
|
|
2082
2085
|
// Devo chiamare il refresh page solo se vengo richiamato da un binding esterno
|
|
2083
|
-
if (refreshPaging)
|
|
2086
|
+
else if (refreshPaging)
|
|
2084
2087
|
this.refreshPaging(this.est.ArraymodeItemsPerPage);
|
|
2085
2088
|
items = this.adaptViewToPaging();
|
|
2086
2089
|
}
|
|
@@ -2129,16 +2132,21 @@
|
|
|
2129
2132
|
else {
|
|
2130
2133
|
var ret = this.est.SecondarySource ? this.est.View.items2 : this.est.TertiarySource ? this.est.View.items3 : this.est.View.items;
|
|
2131
2134
|
// Setto variabile interna per specificare che questo è un elemento normale, non un gruppo o altro
|
|
2132
|
-
|
|
2135
|
+
if (ret)
|
|
2136
|
+
ret.forEach(function (itm) { itm._item = true; });
|
|
2133
2137
|
return ret;
|
|
2134
2138
|
}
|
|
2135
2139
|
};
|
|
2136
2140
|
/** Genera le informazioni di paginazione e taglia la View in modalità array per mostrare solo gli oggetti della pagina specificata */
|
|
2137
2141
|
ItemsHandler.prototype.adaptViewToPaging = function () {
|
|
2138
2142
|
var tmpItems = [];
|
|
2139
|
-
// Se ho una search view l'array pulsanti viene calcolato da lei, non devo prendere quello della modalità array
|
|
2143
|
+
// Se ho una search view l'array pulsanti viene calcolato da lei, non devo prendere quello della modalità array,
|
|
2144
|
+
// inoltre non ho bisogno di fare ragionamenti su quanti elementi ci sono e sulla pagina, dato che viene tutto gestito esternamente,
|
|
2145
|
+
// unendo al risultato della view tutti gli oggetti addizionali
|
|
2140
2146
|
if (!this.est.SearchView)
|
|
2141
2147
|
this.est.arrayPulsanti = this.utilities.getPagesArray(6, this.est.arraymodePage, this.est.arraymodePages);
|
|
2148
|
+
else
|
|
2149
|
+
return this.est.View;
|
|
2142
2150
|
// Poi per tutti i valori dopo compresi fra la pagina - 1 e la pagina
|
|
2143
2151
|
for (var i = ((this.est.arraymodePage - 1) * this.est.ArraymodeItemsPerPage); i < this.est.arraymodePage * this.est.ArraymodeItemsPerPage; i++) {
|
|
2144
2152
|
if (i <= this.est.View.length - 1)
|
|
@@ -3961,7 +3969,6 @@
|
|
|
3961
3969
|
if (!this.UseSelectionCache || !this.arraymodeSelection) {
|
|
3962
3970
|
this.selection_H.clearSelectionCaches();
|
|
3963
3971
|
this.arraymodeSelection = new ItemsSelection([]);
|
|
3964
|
-
;
|
|
3965
3972
|
this.onSelectionChanged.emit(this.arraymodeSelection);
|
|
3966
3973
|
}
|
|
3967
3974
|
// Recupero Preference
|
|
@@ -4034,7 +4041,9 @@
|
|
|
4034
4041
|
/** Genera le informzioni di paginazione per la vista globale dell'es-table */
|
|
4035
4042
|
EsTableComponent.prototype.setupPagingInformations = function () {
|
|
4036
4043
|
var _a;
|
|
4044
|
+
// Default che valgono di base, poi eventualmente moddati dalle funzioni sotto
|
|
4037
4045
|
this.PagerOptions.ShowCount = !this.HidePagingCount;
|
|
4046
|
+
this.PagerOptions.UsesView = true;
|
|
4038
4047
|
if (this.arrayMode && this.UseArrayModePaging && !this.SearchView) {
|
|
4039
4048
|
this.PagerOptions.PagerCount = this.View.length || 0;
|
|
4040
4049
|
this.PagerOptions.ShowPaging = !this.HidePaging && this.View.length > 10;
|