@esfaenza/es-table 11.2.22-beta22 → 11.2.22-beta23
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 +7 -16
- 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/esfaenza-es-table.metadata.json +1 -1
- package/esm2015/lib/components/es-table/es_table.component.js +7 -14
- package/esm2015/lib/core/handlers/classes/ItemsHandler.js +1 -4
- package/fesm2015/esfaenza-es-table.js +6 -16
- package/fesm2015/esfaenza-es-table.js.map +1 -1
- package/lib/components/es-table/es_table.component.d.ts +0 -2
- package/package.json +1 -1
|
@@ -2047,6 +2047,7 @@
|
|
|
2047
2047
|
return HierarchyModeHandler;
|
|
2048
2048
|
}());
|
|
2049
2049
|
|
|
2050
|
+
// Modelli
|
|
2050
2051
|
/** Classe che si occupa della gestione del recupero degli oggetti, paginazione e tutto ciò in cui gli elementi caricati vengono manipolati direttamente */
|
|
2051
2052
|
var ItemsHandler = /** @class */ (function () {
|
|
2052
2053
|
/** @ignore Costruttore */
|
|
@@ -2138,9 +2139,6 @@
|
|
|
2138
2139
|
// Se ho una search view l'array pulsanti viene calcolato da lei, non devo prendere quello della modalità array
|
|
2139
2140
|
if (!this.est.SearchView)
|
|
2140
2141
|
this.est.arrayPulsanti = this.utilities.getPagesArray(6, this.est.arraymodePage, this.est.arraymodePages);
|
|
2141
|
-
// Se utilizzo la searchView gli oggetti sono quelli della SearchView con sopra quelli dell'array (tutti). Se la pagina non è la prima, sticazzi
|
|
2142
|
-
if (this.est.SearchView)
|
|
2143
|
-
return __spread((this.est.SearchView.page == 1 ? this.est.View : []), this.est.SearchView.items);
|
|
2144
2142
|
// Poi per tutti i valori dopo compresi fra la pagina - 1 e la pagina
|
|
2145
2143
|
for (var i = ((this.est.arraymodePage - 1) * this.est.ArraymodeItemsPerPage); i < this.est.arraymodePage * this.est.ArraymodeItemsPerPage; i++) {
|
|
2146
2144
|
if (i <= this.est.View.length - 1)
|
|
@@ -3692,8 +3690,6 @@
|
|
|
3692
3690
|
this.ColumnsOrdering = null;
|
|
3693
3691
|
/** Eventuale supporto alle ricerche applicate alla modalità Array */
|
|
3694
3692
|
this.SearchView = null;
|
|
3695
|
-
/** Eventuale supporto alle ricerche applicate alla modalità Array - Evento */
|
|
3696
|
-
this.SearchViewChange = new i0.EventEmitter();
|
|
3697
3693
|
/** Abilita o disabilita il sistema che permette di selezionare tutti gli elementi nella vista */
|
|
3698
3694
|
this.SelectAll = null;
|
|
3699
3695
|
/** Simula la paginazione anche per le tabelle che funzionano in modalità Array */
|
|
@@ -3887,8 +3883,8 @@
|
|
|
3887
3883
|
var newSearchView;
|
|
3888
3884
|
return __generator(this, function (_s) {
|
|
3889
3885
|
newSearchView = changes['SearchView'];
|
|
3890
|
-
if (
|
|
3891
|
-
this.
|
|
3886
|
+
if (newSearchView && this.SearchView)
|
|
3887
|
+
this.arrayPulsanti = this.utilities_H.getPagesArray(6, this.SearchView.page, this.SearchView.pages || 1, this.SearchView.items.length, this.SearchView.itemsperpageoverride);
|
|
3892
3888
|
return [2 /*return*/];
|
|
3893
3889
|
});
|
|
3894
3890
|
});
|
|
@@ -3898,12 +3894,7 @@
|
|
|
3898
3894
|
/** @ignore */
|
|
3899
3895
|
EsTableComponent.prototype.registerOnTouched = function (fn) { };
|
|
3900
3896
|
/** @ignore */
|
|
3901
|
-
EsTableComponent.prototype.changed = function () {
|
|
3902
|
-
if (this.SearchView)
|
|
3903
|
-
this.SearchViewChange.emit(this.SearchView);
|
|
3904
|
-
else
|
|
3905
|
-
this.propagateChange(this.View);
|
|
3906
|
-
};
|
|
3897
|
+
EsTableComponent.prototype.changed = function () { this.propagateChange(this.View); };
|
|
3907
3898
|
/** @ignore */
|
|
3908
3899
|
EsTableComponent.prototype.writeValue = function (obj) {
|
|
3909
3900
|
var _this = this;
|
|
@@ -4050,11 +4041,12 @@
|
|
|
4050
4041
|
this.PagerOptions.UsesView = false;
|
|
4051
4042
|
}
|
|
4052
4043
|
else if (this.arrayMode && (!this.UseArrayModePaging || this.SearchView)) {
|
|
4053
|
-
this.PagerOptions.PagerCount = this.View.length || 0;
|
|
4054
4044
|
if (this.SearchView) {
|
|
4055
4045
|
this.PagerOptions.View = this.SearchView;
|
|
4056
|
-
this.PagerOptions.PagerCount
|
|
4046
|
+
this.PagerOptions.PagerCount = this.SearchView.objectcount || 0;
|
|
4057
4047
|
}
|
|
4048
|
+
else
|
|
4049
|
+
this.PagerOptions.PagerCount = this.View.length || 0;
|
|
4058
4050
|
this.PagerOptions.ShowCount = this.PagerOptions.ShowCount || (this.View && this.View.length) || (this.SearchView && this.SearchView.objectcount && this.SearchView.objectcount != -1);
|
|
4059
4051
|
}
|
|
4060
4052
|
else if (this.viewMode) {
|
|
@@ -4759,7 +4751,6 @@
|
|
|
4759
4751
|
HiddenColumns: [{ type: i0.Input }],
|
|
4760
4752
|
ColumnsOrdering: [{ type: i0.Input }],
|
|
4761
4753
|
SearchView: [{ type: i0.Input }],
|
|
4762
|
-
SearchViewChange: [{ type: i0.Output }],
|
|
4763
4754
|
SelectAll: [{ type: i0.Input }],
|
|
4764
4755
|
UseArrayModePaging: [{ type: i0.Input }],
|
|
4765
4756
|
DynamicRowColumnsDefinition: [{ type: i0.Input }],
|