@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
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/** Classe che rappresenta le informazioni di paginazione della tabella attuale */
|
|
2
|
+
export class PagerInfos {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.PagerCount = null;
|
|
5
|
+
this.ShowCount = true;
|
|
6
|
+
this.ShowPaging = true;
|
|
7
|
+
this.ShowButtons = true;
|
|
8
|
+
this.ShowPagingOptions = true;
|
|
9
|
+
this.UsesView = true;
|
|
10
|
+
this.View = null;
|
|
11
|
+
this.Ready = false;
|
|
12
|
+
this.Searches = 'items';
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUGFnZXJJbmZvcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2VzLXRhYmxlL3NyYy9saWIvZG9tYWluL2ludGVybmFscy9QYWdlckluZm9zLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3M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cG8gKi9cclxuICAgIFNwYW46IG51bWJlcjtcclxuICAgIC8qKiBUZW1wbGF0ZSBkYSB2aXN1YWxpenphcmUgZGVudHJvIGFsIGdydXBwbyAqL1xyXG4gICAgVGVtcGxhdGU6IFRlbXBsYXRlUmVmPGFueT47XHJcbn0iXX0=
|
|
@@ -194,6 +194,21 @@ class AppSearch {
|
|
|
194
194
|
}
|
|
195
195
|
}
|
|
196
196
|
|
|
197
|
+
/** Classe che rappresenta le informazioni di paginazione della tabella attuale */
|
|
198
|
+
class PagerInfos {
|
|
199
|
+
constructor() {
|
|
200
|
+
this.PagerCount = null;
|
|
201
|
+
this.ShowCount = true;
|
|
202
|
+
this.ShowPaging = true;
|
|
203
|
+
this.ShowButtons = true;
|
|
204
|
+
this.ShowPagingOptions = true;
|
|
205
|
+
this.UsesView = true;
|
|
206
|
+
this.View = null;
|
|
207
|
+
this.Ready = false;
|
|
208
|
+
this.Searches = 'items';
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
|
|
197
212
|
/** Identifica una selezione applicabile agli oggetti presentati in una tabella */
|
|
198
213
|
class ItemsSelection {
|
|
199
214
|
/**
|
|
@@ -3484,9 +3499,9 @@ class EsTableComponent {
|
|
|
3484
3499
|
this.boundSource = [];
|
|
3485
3500
|
/** Stessa cosa della **boundSource**, utilizzata come appoggio temporaneo interno */
|
|
3486
3501
|
this.TMPBoundSource = [];
|
|
3487
|
-
/** "Fetta" di oggetti utilizzata nell'endless scroll, ogni elemento di questo array è un blocchetto di 100 elementi */
|
|
3502
|
+
/** @deprecated "Fetta" di oggetti utilizzata nell'endless scroll, ogni elemento di questo array è un blocchetto di 100 elementi */
|
|
3488
3503
|
this.boundSubSources = [];
|
|
3489
|
-
/** Questa funge da indicatore per gli slice inseriti, la lunghezza dovrebbe essere corrispondente a **boundSubSources** */
|
|
3504
|
+
/** @deprecated Questa funge da indicatore per gli slice inseriti, la lunghezza dovrebbe essere corrispondente a **boundSubSources** */
|
|
3490
3505
|
this.addedSlices = [];
|
|
3491
3506
|
/** Variabile che identifica il valore del "seleziona Tutto" nella paginazione */
|
|
3492
3507
|
this.defaultAllPageOverride = 999999;
|
|
@@ -3496,22 +3511,20 @@ class EsTableComponent {
|
|
|
3496
3511
|
this.seconds = '10';
|
|
3497
3512
|
/** Impostata a true ogni volta che viene avviata una ricerca, e a false ogni volta che un nuovo valore viene ricevuto */
|
|
3498
3513
|
this.researchInProgress = false;
|
|
3514
|
+
/** Modello di appoggio temporaneo per i **RowTDs** */
|
|
3515
|
+
this.TMPRowTDs = null;
|
|
3499
3516
|
/** Modello rappresentante un dizionario di righe della tabella, con chiave l'hash e valore la lista di celle */
|
|
3500
3517
|
this.RowTDs = null;
|
|
3501
3518
|
/** Indica se **RowTDs** è un oggetto vuoto o meno */
|
|
3502
3519
|
this.EmptyRowTds = true;
|
|
3503
|
-
/** Modello di appoggio temporaneo per i **RowTDs** */
|
|
3504
|
-
this.TMPRowTDs = null;
|
|
3505
|
-
/** Modello rappresentante un singolo th della tabella, generato in base alle configurazioni e agli oggetti ricevuti */
|
|
3506
|
-
this.RowTHs = null;
|
|
3507
3520
|
/** Modello di appoggio temporaneo per i **RowTHs** */
|
|
3508
3521
|
this.TMPRowTHs = null;
|
|
3522
|
+
/** Modello rappresentante un singolo th della tabella, generato in base alle configurazioni e agli oggetti ricevuti */
|
|
3523
|
+
this.RowTHs = null;
|
|
3509
3524
|
/** Modello di appoggio temporaneo per i **RowThGroups** */
|
|
3510
3525
|
this.TMPRowThGroups = null;
|
|
3511
3526
|
/** Modello rappresentante un singolo header group della tabella. Questa lista è già ordinata e pronta per essere utilizzata in ngFor */
|
|
3512
3527
|
this.RowThGroups = null;
|
|
3513
|
-
/** Cache per i routerLink generati nelle tabelle dinamiche */
|
|
3514
|
-
this.DynamicTableRouterLinkCache = {};
|
|
3515
3528
|
/**
|
|
3516
3529
|
* Lista dei contesti. Un contesto non è altro che un hash particolare calcolato su un oggetto che identifica univocamente tale oggetto.
|
|
3517
3530
|
*
|
|
@@ -3522,6 +3535,19 @@ class EsTableComponent {
|
|
|
3522
3535
|
this.OrderDirectives = [];
|
|
3523
3536
|
/** Codice dell'ultimo oggetto solezionato */
|
|
3524
3537
|
this.lastSelectedItemID = null;
|
|
3538
|
+
/**
|
|
3539
|
+
* Decide se utilizzare o meno le CustomCells. Impostandolo a **true** l'es-table diventa in grado di gestire nativamente:
|
|
3540
|
+
*
|
|
3541
|
+
* 1) Ordinamento e visibilità delle colonne
|
|
3542
|
+
*
|
|
3543
|
+
* 2) Ordinamento dei dati
|
|
3544
|
+
*
|
|
3545
|
+
* 3) Modalità Gerarchica
|
|
3546
|
+
*
|
|
3547
|
+
* ecc...
|
|
3548
|
+
* viene dedotto dal sistema in automatico
|
|
3549
|
+
*/
|
|
3550
|
+
this.UseCustomCells = null;
|
|
3525
3551
|
/**
|
|
3526
3552
|
* Indica se oltre alle colonne dinamiche specifiche di un tipo di oggetto ci sono anche colonne dinamiche aggiunte dall'utente
|
|
3527
3553
|
*
|
|
@@ -3548,24 +3574,8 @@ class EsTableComponent {
|
|
|
3548
3574
|
this.Height = null;
|
|
3549
3575
|
/** Indica il colore di sfondo dello spazio vuoto (non ricoperto da dati). Particolarmente utile da impostare in caso di **Height** diverso da null */
|
|
3550
3576
|
this.EmptySpaceBackgroundColor = null;
|
|
3551
|
-
/**
|
|
3552
|
-
* @experimental Indica se dev'essere l'estable a gestire la ricerca, anche la prima.
|
|
3553
|
-
*
|
|
3554
|
-
* **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**
|
|
3555
|
-
**/
|
|
3577
|
+
/** Indica se dev'essere l'estable a gestire la ricerca, anche la prima. **/
|
|
3556
3578
|
this.EsTableHandledSearch = false;
|
|
3557
|
-
/**
|
|
3558
|
-
* Decide se utilizzare o meno le CustomCells. Impostandolo a **true** l'es-table diventa in grado di gestire nativamente:
|
|
3559
|
-
*
|
|
3560
|
-
* 1) Ordinamento e visibilità delle colonne
|
|
3561
|
-
*
|
|
3562
|
-
* 2) Ordinamento dei dati
|
|
3563
|
-
*
|
|
3564
|
-
* 3) Modalità Gerarchica
|
|
3565
|
-
*
|
|
3566
|
-
* ecc...
|
|
3567
|
-
*/
|
|
3568
|
-
this.UseCustomCells = null;
|
|
3569
3579
|
/** Permette di impostare l'altezza massima della tabella. Se null la dimensione si adatta al numero di elementi attualmente in visualizzazione */
|
|
3570
3580
|
this.MaxHeight = null;
|
|
3571
3581
|
/** Classi da applicare al contenitore della tabella */
|
|
@@ -3610,9 +3620,9 @@ class EsTableComponent {
|
|
|
3610
3620
|
this.TableClass = null;
|
|
3611
3621
|
/** Indica di esportare solo le colonne attualmente visibili della view */
|
|
3612
3622
|
this.ExportOnlyVisibleColumns = false;
|
|
3613
|
-
/** Indica la presenza di raggruppamenti a livello di header */
|
|
3623
|
+
/** @deprecated Indica la presenza di raggruppamenti a livello di header */
|
|
3614
3624
|
this.HasHeaderGroup = null;
|
|
3615
|
-
/** Indica la presenza di raggruppamenti a livello del raggruppamento precedentemente esistente, chiaramente è insensata senza **HasHeaderGroup** */
|
|
3625
|
+
/** @deprecated Indica la presenza di raggruppamenti a livello del raggruppamento precedentemente esistente, chiaramente è insensata senza **HasHeaderGroup** */
|
|
3616
3626
|
this.HasSecondaryHeaderGroup = null;
|
|
3617
3627
|
/** Indica se nascondere gli Header della tabella */
|
|
3618
3628
|
this.HeaderHidden = null;
|
|
@@ -3638,7 +3648,7 @@ class EsTableComponent {
|
|
|
3638
3648
|
this.HiddenColumns = null;
|
|
3639
3649
|
/** Permette di riordinare le colonne in base alle impostazioni effettuate dal Menù contestuale in alto a destra */
|
|
3640
3650
|
this.ColumnsOrdering = null;
|
|
3641
|
-
/** Eventuale supporto alle ricerche applicate alla modalità Array */
|
|
3651
|
+
/** @deprecated Eventuale supporto alle ricerche applicate alla modalità Array */
|
|
3642
3652
|
this.SearchView = null;
|
|
3643
3653
|
/** Abilita o disabilita il sistema che permette di selezionare tutti gli elementi nella vista */
|
|
3644
3654
|
this.SelectAll = null;
|
|
@@ -3760,7 +3770,7 @@ class EsTableComponent {
|
|
|
3760
3770
|
**/
|
|
3761
3771
|
this.useLocalVisibility = false;
|
|
3762
3772
|
/** Opzioni di paginazione */
|
|
3763
|
-
this.PagerOptions =
|
|
3773
|
+
this.PagerOptions = new PagerInfos();
|
|
3764
3774
|
/** @ignore */
|
|
3765
3775
|
this.propagateChange = (_) => { };
|
|
3766
3776
|
/** Funzione di trackby per il body che dovrebbe evitare il 90% delle change detection */
|
|
@@ -4743,7 +4753,7 @@ class EsTableComponent {
|
|
|
4743
4753
|
this.internalWriteCall = false;
|
|
4744
4754
|
}
|
|
4745
4755
|
/** Metodo eventualmente richiamabile anche dal componente esterno che permette di forzare un refresh della tabella */
|
|
4746
|
-
forceRefresh() {
|
|
4756
|
+
forceRefresh(relaunchSearch = true) {
|
|
4747
4757
|
// 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
|
|
4748
4758
|
let arrayPage;
|
|
4749
4759
|
let arrayIpp;
|
|
@@ -4751,6 +4761,8 @@ class EsTableComponent {
|
|
|
4751
4761
|
arrayPage = this.arraymodePage;
|
|
4752
4762
|
arrayIpp = this.ArraymodeItemsPerPage;
|
|
4753
4763
|
}
|
|
4764
|
+
if (!relaunchSearch && this.viewMode)
|
|
4765
|
+
this.View.selfsearch = true;
|
|
4754
4766
|
this.writeValue(this.View);
|
|
4755
4767
|
this.cdr.detectChanges();
|
|
4756
4768
|
if (this.arrayMode) {
|
|
@@ -4764,7 +4776,7 @@ class EsTableComponent {
|
|
|
4764
4776
|
* @param {string} groupOrHeader Header di cui settare la visibilità
|
|
4765
4777
|
* @param {boolean} visibility Visibilità da impostare
|
|
4766
4778
|
**/
|
|
4767
|
-
setHeaderVisibility(groupOrHeader, visibility, refresh = true) {
|
|
4779
|
+
setHeaderVisibility(groupOrHeader, visibility, refresh = true, relaunchSearch = true) {
|
|
4768
4780
|
let groupOrHead = this.thsCache[groupOrHeader];
|
|
4769
4781
|
if (!groupOrHead)
|
|
4770
4782
|
return;
|
|
@@ -4777,7 +4789,7 @@ class EsTableComponent {
|
|
|
4777
4789
|
}
|
|
4778
4790
|
if (refresh) {
|
|
4779
4791
|
this.useLocalVisibility = true;
|
|
4780
|
-
this.forceRefresh();
|
|
4792
|
+
this.forceRefresh(relaunchSearch);
|
|
4781
4793
|
}
|
|
4782
4794
|
}
|
|
4783
4795
|
/**
|
|
@@ -5076,7 +5088,6 @@ EsTableComponent.propDecorators = {
|
|
|
5076
5088
|
Height: [{ type: Input }],
|
|
5077
5089
|
EmptySpaceBackgroundColor: [{ type: Input }],
|
|
5078
5090
|
EsTableHandledSearch: [{ type: Input }],
|
|
5079
|
-
UseCustomCells: [{ type: Input }],
|
|
5080
5091
|
MaxHeight: [{ type: Input }],
|
|
5081
5092
|
ContainerClass: [{ type: Input }],
|
|
5082
5093
|
XLSXExport: [{ type: Input }],
|