@esfaenza/es-table 11.2.123-beta1 → 11.2.124
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 +47 -33
- 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 +31 -34
- package/esm2015/lib/domain/internals/PagerInfos.js +15 -0
- package/esm2015/lib/domain/internals/ThGroup.js +2 -0
- package/fesm2015/esfaenza-es-table.js +44 -33
- package/fesm2015/esfaenza-es-table.js.map +1 -1
- package/lib/components/es-table/es_table.component.d.ts +35 -56
- package/lib/domain/internals/PagerInfos.d.ts +13 -0
- package/lib/domain/internals/ThGroup.d.ts +10 -0
- package/package.json +1 -1
|
@@ -515,6 +515,22 @@
|
|
|
515
515
|
return AppSearch;
|
|
516
516
|
}());
|
|
517
517
|
|
|
518
|
+
/** Classe che rappresenta le informazioni di paginazione della tabella attuale */
|
|
519
|
+
var PagerInfos = /** @class */ (function () {
|
|
520
|
+
function PagerInfos() {
|
|
521
|
+
this.PagerCount = null;
|
|
522
|
+
this.ShowCount = true;
|
|
523
|
+
this.ShowPaging = true;
|
|
524
|
+
this.ShowButtons = true;
|
|
525
|
+
this.ShowPagingOptions = true;
|
|
526
|
+
this.UsesView = true;
|
|
527
|
+
this.View = null;
|
|
528
|
+
this.Ready = false;
|
|
529
|
+
this.Searches = 'items';
|
|
530
|
+
}
|
|
531
|
+
return PagerInfos;
|
|
532
|
+
}());
|
|
533
|
+
|
|
518
534
|
/** Identifica una selezione applicabile agli oggetti presentati in una tabella */
|
|
519
535
|
var ItemsSelection = /** @class */ (function () {
|
|
520
536
|
/**
|
|
@@ -3987,9 +4003,9 @@
|
|
|
3987
4003
|
this.boundSource = [];
|
|
3988
4004
|
/** Stessa cosa della **boundSource**, utilizzata come appoggio temporaneo interno */
|
|
3989
4005
|
this.TMPBoundSource = [];
|
|
3990
|
-
/** "Fetta" di oggetti utilizzata nell'endless scroll, ogni elemento di questo array è un blocchetto di 100 elementi */
|
|
4006
|
+
/** @deprecated "Fetta" di oggetti utilizzata nell'endless scroll, ogni elemento di questo array è un blocchetto di 100 elementi */
|
|
3991
4007
|
this.boundSubSources = [];
|
|
3992
|
-
/** Questa funge da indicatore per gli slice inseriti, la lunghezza dovrebbe essere corrispondente a **boundSubSources** */
|
|
4008
|
+
/** @deprecated Questa funge da indicatore per gli slice inseriti, la lunghezza dovrebbe essere corrispondente a **boundSubSources** */
|
|
3993
4009
|
this.addedSlices = [];
|
|
3994
4010
|
/** Variabile che identifica il valore del "seleziona Tutto" nella paginazione */
|
|
3995
4011
|
this.defaultAllPageOverride = 999999;
|
|
@@ -3999,22 +4015,20 @@
|
|
|
3999
4015
|
this.seconds = '10';
|
|
4000
4016
|
/** Impostata a true ogni volta che viene avviata una ricerca, e a false ogni volta che un nuovo valore viene ricevuto */
|
|
4001
4017
|
this.researchInProgress = false;
|
|
4018
|
+
/** Modello di appoggio temporaneo per i **RowTDs** */
|
|
4019
|
+
this.TMPRowTDs = null;
|
|
4002
4020
|
/** Modello rappresentante un dizionario di righe della tabella, con chiave l'hash e valore la lista di celle */
|
|
4003
4021
|
this.RowTDs = null;
|
|
4004
4022
|
/** Indica se **RowTDs** è un oggetto vuoto o meno */
|
|
4005
4023
|
this.EmptyRowTds = true;
|
|
4006
|
-
/** Modello di appoggio temporaneo per i **RowTDs** */
|
|
4007
|
-
this.TMPRowTDs = null;
|
|
4008
|
-
/** Modello rappresentante un singolo th della tabella, generato in base alle configurazioni e agli oggetti ricevuti */
|
|
4009
|
-
this.RowTHs = null;
|
|
4010
4024
|
/** Modello di appoggio temporaneo per i **RowTHs** */
|
|
4011
4025
|
this.TMPRowTHs = null;
|
|
4026
|
+
/** Modello rappresentante un singolo th della tabella, generato in base alle configurazioni e agli oggetti ricevuti */
|
|
4027
|
+
this.RowTHs = null;
|
|
4012
4028
|
/** Modello di appoggio temporaneo per i **RowThGroups** */
|
|
4013
4029
|
this.TMPRowThGroups = null;
|
|
4014
4030
|
/** Modello rappresentante un singolo header group della tabella. Questa lista è già ordinata e pronta per essere utilizzata in ngFor */
|
|
4015
4031
|
this.RowThGroups = null;
|
|
4016
|
-
/** Cache per i routerLink generati nelle tabelle dinamiche */
|
|
4017
|
-
this.DynamicTableRouterLinkCache = {};
|
|
4018
4032
|
/**
|
|
4019
4033
|
* Lista dei contesti. Un contesto non è altro che un hash particolare calcolato su un oggetto che identifica univocamente tale oggetto.
|
|
4020
4034
|
*
|
|
@@ -4025,6 +4039,19 @@
|
|
|
4025
4039
|
this.OrderDirectives = [];
|
|
4026
4040
|
/** Codice dell'ultimo oggetto solezionato */
|
|
4027
4041
|
this.lastSelectedItemID = null;
|
|
4042
|
+
/**
|
|
4043
|
+
* Decide se utilizzare o meno le CustomCells. Impostandolo a **true** l'es-table diventa in grado di gestire nativamente:
|
|
4044
|
+
*
|
|
4045
|
+
* 1) Ordinamento e visibilità delle colonne
|
|
4046
|
+
*
|
|
4047
|
+
* 2) Ordinamento dei dati
|
|
4048
|
+
*
|
|
4049
|
+
* 3) Modalità Gerarchica
|
|
4050
|
+
*
|
|
4051
|
+
* ecc...
|
|
4052
|
+
* viene dedotto dal sistema in automatico
|
|
4053
|
+
*/
|
|
4054
|
+
this.UseCustomCells = null;
|
|
4028
4055
|
/**
|
|
4029
4056
|
* Indica se oltre alle colonne dinamiche specifiche di un tipo di oggetto ci sono anche colonne dinamiche aggiunte dall'utente
|
|
4030
4057
|
*
|
|
@@ -4051,24 +4078,8 @@
|
|
|
4051
4078
|
this.Height = null;
|
|
4052
4079
|
/** Indica il colore di sfondo dello spazio vuoto (non ricoperto da dati). Particolarmente utile da impostare in caso di **Height** diverso da null */
|
|
4053
4080
|
this.EmptySpaceBackgroundColor = null;
|
|
4054
|
-
/**
|
|
4055
|
-
* @experimental Indica se dev'essere l'estable a gestire la ricerca, anche la prima.
|
|
4056
|
-
*
|
|
4057
|
-
* **ATTENZIONE: RICHIEDE MODIFICHE NON TRIVIALI ALLA PAGINA DI RICERCA CHE UTILIZZA QUESTO TIPO DI ES-TABLE. NON UTILIZZARE SE NON SI SA CIO' CHE SI STA FACENDO**
|
|
4058
|
-
**/
|
|
4081
|
+
/** Indica se dev'essere l'estable a gestire la ricerca, anche la prima. **/
|
|
4059
4082
|
this.EsTableHandledSearch = false;
|
|
4060
|
-
/**
|
|
4061
|
-
* Decide se utilizzare o meno le CustomCells. Impostandolo a **true** l'es-table diventa in grado di gestire nativamente:
|
|
4062
|
-
*
|
|
4063
|
-
* 1) Ordinamento e visibilità delle colonne
|
|
4064
|
-
*
|
|
4065
|
-
* 2) Ordinamento dei dati
|
|
4066
|
-
*
|
|
4067
|
-
* 3) Modalità Gerarchica
|
|
4068
|
-
*
|
|
4069
|
-
* ecc...
|
|
4070
|
-
*/
|
|
4071
|
-
this.UseCustomCells = null;
|
|
4072
4083
|
/** Permette di impostare l'altezza massima della tabella. Se null la dimensione si adatta al numero di elementi attualmente in visualizzazione */
|
|
4073
4084
|
this.MaxHeight = null;
|
|
4074
4085
|
/** Classi da applicare al contenitore della tabella */
|
|
@@ -4113,9 +4124,9 @@
|
|
|
4113
4124
|
this.TableClass = null;
|
|
4114
4125
|
/** Indica di esportare solo le colonne attualmente visibili della view */
|
|
4115
4126
|
this.ExportOnlyVisibleColumns = false;
|
|
4116
|
-
/** Indica la presenza di raggruppamenti a livello di header */
|
|
4127
|
+
/** @deprecated Indica la presenza di raggruppamenti a livello di header */
|
|
4117
4128
|
this.HasHeaderGroup = null;
|
|
4118
|
-
/** Indica la presenza di raggruppamenti a livello del raggruppamento precedentemente esistente, chiaramente è insensata senza **HasHeaderGroup** */
|
|
4129
|
+
/** @deprecated Indica la presenza di raggruppamenti a livello del raggruppamento precedentemente esistente, chiaramente è insensata senza **HasHeaderGroup** */
|
|
4119
4130
|
this.HasSecondaryHeaderGroup = null;
|
|
4120
4131
|
/** Indica se nascondere gli Header della tabella */
|
|
4121
4132
|
this.HeaderHidden = null;
|
|
@@ -4141,7 +4152,7 @@
|
|
|
4141
4152
|
this.HiddenColumns = null;
|
|
4142
4153
|
/** Permette di riordinare le colonne in base alle impostazioni effettuate dal Menù contestuale in alto a destra */
|
|
4143
4154
|
this.ColumnsOrdering = null;
|
|
4144
|
-
/** Eventuale supporto alle ricerche applicate alla modalità Array */
|
|
4155
|
+
/** @deprecated Eventuale supporto alle ricerche applicate alla modalità Array */
|
|
4145
4156
|
this.SearchView = null;
|
|
4146
4157
|
/** Abilita o disabilita il sistema che permette di selezionare tutti gli elementi nella vista */
|
|
4147
4158
|
this.SelectAll = null;
|
|
@@ -4263,7 +4274,7 @@
|
|
|
4263
4274
|
**/
|
|
4264
4275
|
this.useLocalVisibility = false;
|
|
4265
4276
|
/** Opzioni di paginazione */
|
|
4266
|
-
this.PagerOptions =
|
|
4277
|
+
this.PagerOptions = new PagerInfos();
|
|
4267
4278
|
/** @ignore */
|
|
4268
4279
|
this.propagateChange = function (_) { };
|
|
4269
4280
|
/** Funzione di trackby per il body che dovrebbe evitare il 90% delle change detection */
|
|
@@ -5280,7 +5291,8 @@
|
|
|
5280
5291
|
this.internalWriteCall = false;
|
|
5281
5292
|
};
|
|
5282
5293
|
/** Metodo eventualmente richiamabile anche dal componente esterno che permette di forzare un refresh della tabella */
|
|
5283
|
-
EsTableComponent.prototype.forceRefresh = function () {
|
|
5294
|
+
EsTableComponent.prototype.forceRefresh = function (relaunchSearch) {
|
|
5295
|
+
if (relaunchSearch === void 0) { relaunchSearch = true; }
|
|
5284
5296
|
// Se sono in modalità View viene mantenuto in automatico il numero di pagina, ma per la modalità array devo prendere le info di paginazione prima e riapplicarle dopo
|
|
5285
5297
|
var arrayPage;
|
|
5286
5298
|
var arrayIpp;
|
|
@@ -5288,6 +5300,8 @@
|
|
|
5288
5300
|
arrayPage = this.arraymodePage;
|
|
5289
5301
|
arrayIpp = this.ArraymodeItemsPerPage;
|
|
5290
5302
|
}
|
|
5303
|
+
if (!relaunchSearch && this.viewMode)
|
|
5304
|
+
this.View.selfsearch = true;
|
|
5291
5305
|
this.writeValue(this.View);
|
|
5292
5306
|
this.cdr.detectChanges();
|
|
5293
5307
|
if (this.arrayMode) {
|
|
@@ -5301,8 +5315,9 @@
|
|
|
5301
5315
|
* @param {string} groupOrHeader Header di cui settare la visibilità
|
|
5302
5316
|
* @param {boolean} visibility Visibilità da impostare
|
|
5303
5317
|
**/
|
|
5304
|
-
EsTableComponent.prototype.setHeaderVisibility = function (groupOrHeader, visibility, refresh) {
|
|
5318
|
+
EsTableComponent.prototype.setHeaderVisibility = function (groupOrHeader, visibility, refresh, relaunchSearch) {
|
|
5305
5319
|
if (refresh === void 0) { refresh = true; }
|
|
5320
|
+
if (relaunchSearch === void 0) { relaunchSearch = true; }
|
|
5306
5321
|
var groupOrHead = this.thsCache[groupOrHeader];
|
|
5307
5322
|
if (!groupOrHead)
|
|
5308
5323
|
return;
|
|
@@ -5315,7 +5330,7 @@
|
|
|
5315
5330
|
}
|
|
5316
5331
|
if (refresh) {
|
|
5317
5332
|
this.useLocalVisibility = true;
|
|
5318
|
-
this.forceRefresh();
|
|
5333
|
+
this.forceRefresh(relaunchSearch);
|
|
5319
5334
|
}
|
|
5320
5335
|
};
|
|
5321
5336
|
/**
|
|
@@ -5619,7 +5634,6 @@
|
|
|
5619
5634
|
Height: [{ type: i0.Input }],
|
|
5620
5635
|
EmptySpaceBackgroundColor: [{ type: i0.Input }],
|
|
5621
5636
|
EsTableHandledSearch: [{ type: i0.Input }],
|
|
5622
|
-
UseCustomCells: [{ type: i0.Input }],
|
|
5623
5637
|
MaxHeight: [{ type: i0.Input }],
|
|
5624
5638
|
ContainerClass: [{ type: i0.Input }],
|
|
5625
5639
|
XLSXExport: [{ type: i0.Input }],
|