@esfaenza/es-table 11.2.22-beta26 → 11.2.22-beta27

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.
@@ -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
  }
@@ -2136,9 +2139,13 @@
2136
2139
  /** Genera le informazioni di paginazione e taglia la View in modalità array per mostrare solo gli oggetti della pagina specificata */
2137
2140
  ItemsHandler.prototype.adaptViewToPaging = function () {
2138
2141
  var tmpItems = [];
2139
- // Se ho una search view l'array pulsanti viene calcolato da lei, non devo prendere quello della modalità array
2142
+ // Se ho una search view l'array pulsanti viene calcolato da lei, non devo prendere quello della modalità array,
2143
+ // inoltre non ho bisogno di fare ragionamenti su quanti elementi ci sono e sulla pagina, dato che viene tutto gestito esternamente,
2144
+ // unendo al risultato della view tutti gli oggetti addizionali
2140
2145
  if (!this.est.SearchView)
2141
2146
  this.est.arrayPulsanti = this.utilities.getPagesArray(6, this.est.arraymodePage, this.est.arraymodePages);
2147
+ else
2148
+ return this.est.View;
2142
2149
  // Poi per tutti i valori dopo compresi fra la pagina - 1 e la pagina
2143
2150
  for (var i = ((this.est.arraymodePage - 1) * this.est.ArraymodeItemsPerPage); i < this.est.arraymodePage * this.est.ArraymodeItemsPerPage; i++) {
2144
2151
  if (i <= this.est.View.length - 1)
@@ -3961,7 +3968,6 @@
3961
3968
  if (!this.UseSelectionCache || !this.arraymodeSelection) {
3962
3969
  this.selection_H.clearSelectionCaches();
3963
3970
  this.arraymodeSelection = new ItemsSelection([]);
3964
- ;
3965
3971
  this.onSelectionChanged.emit(this.arraymodeSelection);
3966
3972
  }
3967
3973
  // Recupero Preference