@esfaenza/es-table 13.1.14 → 13.1.18
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/esm2020/lib/components/es-table/es_table.component.mjs +112 -19
- package/esm2020/lib/core/handlers/ColumnMetadataHandler.mjs +116 -8
- package/esm2020/lib/directives/es_td.directive.mjs +3 -1
- package/esm2020/lib/directives/es_th.directive.mjs +13 -5
- package/esm2020/lib/domain/externals/appsearch/EsTableMultiValue.mjs +25 -0
- package/esm2020/lib/domain/internals/EsTableColumn.mjs +7 -3
- package/esm2020/lib/domain/internals/TdElement.mjs +1 -1
- package/esm2020/lib/es-table.module.mjs +8 -4
- package/esm2020/public-api.mjs +2 -1
- package/fesm2015/esfaenza-es-table.mjs +277 -35
- package/fesm2015/esfaenza-es-table.mjs.map +1 -1
- package/fesm2020/esfaenza-es-table.mjs +277 -35
- package/fesm2020/esfaenza-es-table.mjs.map +1 -1
- package/lib/components/es-table/es_table.component.d.ts +48 -3
- package/lib/core/handlers/ColumnMetadataHandler.d.ts +10 -5
- package/lib/directives/es_td.directive.d.ts +2 -0
- package/lib/directives/es_th.directive.d.ts +17 -5
- package/lib/domain/externals/appsearch/EsTableMultiValue.d.ts +22 -0
- package/lib/domain/internals/EsTableColumn.d.ts +13 -3
- package/lib/domain/internals/TdElement.d.ts +7 -0
- package/lib/es-table.module.d.ts +2 -1
- package/package.json +2 -1
- package/public-api.d.ts +1 -0
|
@@ -29,6 +29,7 @@ import { ReportModeHandler } from "../../core/handlers/ReportModeHandler";
|
|
|
29
29
|
import { RowGroupingHandler } from "../../core/handlers/RowGroupingHandler";
|
|
30
30
|
import { SelectionHandler } from "../../core/handlers/SelectionHandler";
|
|
31
31
|
import { UtilitiesHandler } from "../../core/handlers/UtilitiesHandler";
|
|
32
|
+
import { Subject } from 'rxjs';
|
|
32
33
|
import * as i0 from "@angular/core";
|
|
33
34
|
/** Componente che permette di rappresentare una griglia di valori */
|
|
34
35
|
export declare class EsTableComponent implements ControlValueAccessor, OnChanges {
|
|
@@ -53,6 +54,12 @@ export declare class EsTableComponent implements ControlValueAccessor, OnChanges
|
|
|
53
54
|
selection_H: SelectionHandler;
|
|
54
55
|
/** @ignore */
|
|
55
56
|
constructor(ngControl: NgControl, prefService: PreferencesService, deafults: EsTableDefaultable, locale: string, lc: LocalizationService, cdr: ChangeDetectorRef, utilities_H: UtilitiesHandler, utiExts: UtilityService, expExts: ExportService, dateExts: DateService, msgExts: MessageService);
|
|
57
|
+
/** Subject utilizzato internamente lato EsTable per causare il Focus lato componente di Input */
|
|
58
|
+
FocusSubject: Subject<void>;
|
|
59
|
+
/** Timer che verrà impostato a **doubleClickBufferMs** per capire se è stato effettuato un click singolo o un doubleclick */
|
|
60
|
+
private cellDbClickTimer;
|
|
61
|
+
/** Se vengono effettuati 2 click a distanza inferiore a questi Millisecondi viene considerato un doppio click */
|
|
62
|
+
private doubleClickBufferMs;
|
|
56
63
|
/** View finale su cui bindarsi lato Frontend, il tipo può essere IAppSearch<any> (per la **viewMode**), any[] (per l'**arrayMode**) e ReportDefinition per la **reportMode** */
|
|
57
64
|
View: any;
|
|
58
65
|
/** Modello da cui l'es-table mostra i pulsanti di paginazione in basso a destra */
|
|
@@ -156,6 +163,8 @@ export declare class EsTableComponent implements ControlValueAccessor, OnChanges
|
|
|
156
163
|
headerGroupRef: any;
|
|
157
164
|
/** Query per recuperare le informazioni sul raggruppamento di secondo livello degli header */
|
|
158
165
|
secondaryHeaderGroupRef: any;
|
|
166
|
+
/** Query per recuperare il campo di Input attuale. Dopo un doppio click lo becco e lo focusso appena termina la chagne detection */
|
|
167
|
+
inputField: ElementRef;
|
|
159
168
|
/** Opzioni extra che devono apparire nel Menù contestuale in alto a destra, richiamato dai 3 pallini verticali */
|
|
160
169
|
CornerMenuOptions: CornerMenuOption[];
|
|
161
170
|
/** Indica se dev'essere possibile effettuare il resize delle colonne */
|
|
@@ -292,6 +301,8 @@ export declare class EsTableComponent implements ControlValueAccessor, OnChanges
|
|
|
292
301
|
UseSelectionCache: any;
|
|
293
302
|
/** Permette di decidere se, in modalità raggruppamento, mostrare o meno il valore delle colonne di gruppo negli oggetti finali. Di default sono nascosti */
|
|
294
303
|
ShowItemGroupsColumns: any;
|
|
304
|
+
/** Indica che tutti i campi che definiscono le modalità di modifica campo possono essere modificati in base alle impostazioni */
|
|
305
|
+
UserEdits: boolean;
|
|
295
306
|
/** Evento che viene richiamato al cambio di oridnamento di una colonna */
|
|
296
307
|
onOrderChanged: EventEmitter<AppOrdering>;
|
|
297
308
|
/**
|
|
@@ -590,10 +601,44 @@ export declare class EsTableComponent implements ControlValueAccessor, OnChanges
|
|
|
590
601
|
* impostando prima **internalWriteCall** in modo da non effettuare operazioni inutili
|
|
591
602
|
*/
|
|
592
603
|
internalWriteValue(): void;
|
|
604
|
+
/** Metodo eventualmente richiamabile anche dal componente esterno che permette di forzare un refresh della tabella */
|
|
605
|
+
forceRefresh(): void;
|
|
593
606
|
/**
|
|
594
|
-
*
|
|
607
|
+
* Funzione che in base ai click su una cella capisce se sto effettuando un'operazione di selezione o se sto entrando nell'edit di una cella con un doppio click
|
|
608
|
+
*
|
|
609
|
+
* @param {any} $event Evento nativo javascript
|
|
610
|
+
* @param {TdElement} rowItem Riferimento a binder della riga
|
|
611
|
+
* @param {any} item Item che rappresenta il contesto su cui è stato effettuato un click
|
|
595
612
|
*/
|
|
596
|
-
|
|
613
|
+
dbClickEditOrSingleClickRowSelection($event: any, rowItem: TdElement, item: any): void;
|
|
614
|
+
/**
|
|
615
|
+
* Ripulisce il timer utilizzato per capire se è stato effettuato un doppio click o meno
|
|
616
|
+
*/
|
|
617
|
+
private clearCellClickTimer;
|
|
618
|
+
/**
|
|
619
|
+
* Handler click singolo su una riga
|
|
620
|
+
*
|
|
621
|
+
* @param {any} $event Evento nativo javascript
|
|
622
|
+
* @param {any} item Item che rappresenta il contesto su cui è stato effettuato un click
|
|
623
|
+
* @param {boolean} selection Indica se la selezione è attiva
|
|
624
|
+
*
|
|
625
|
+
*/
|
|
626
|
+
handleRowClick($event: any, item: any, selection: boolean): void;
|
|
627
|
+
/**
|
|
628
|
+
* La modifica dell'utente è iniziata. Si imposta la variabile relativa a "true" in modo da mostrare l'input di testo
|
|
629
|
+
*
|
|
630
|
+
* Dopo che l'input è apparso, dopo un ciclo di Change Detection viene attivato il Subject collegato all'input che servirà a effettuare il focus
|
|
631
|
+
*
|
|
632
|
+
* @param {TdElement} rowItem Elemento di riga su cui è stata attivata la modifica
|
|
633
|
+
*/
|
|
634
|
+
setupUserEdit(rowItem: TdElement): void;
|
|
635
|
+
/**
|
|
636
|
+
* La modifica dell'utente è terminata. Si reimposta la variabile relativa a "false" in modo da nascondere l'input di testo
|
|
637
|
+
*
|
|
638
|
+
* @param {TdElement} rowItem Elemento di riga su cui è stata attivata la modifica
|
|
639
|
+
* @param {any} item Oggetto sopra il quale è stata attivata la modifica
|
|
640
|
+
*/
|
|
641
|
+
finalizeUserEdit(rowItem: TdElement, item: any): void;
|
|
597
642
|
static ɵfac: i0.ɵɵFactoryDeclaration<EsTableComponent, [{ optional: true; self: true; }, { optional: true; }, { optional: true; }, { optional: true; }, null, null, null, null, null, null, null]>;
|
|
598
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<EsTableComponent, "es-table", never, { "CornerMenuOptions": "CornerMenuOptions"; "ColumnsResizable": "ColumnsResizable"; "ColumnsPinnable": "ColumnsPinnable"; "AutoUpdate": "AutoUpdate"; "UseCustomCells": "UseCustomCells"; "MaxHeight": "MaxHeight"; "ContainerClass": "ContainerClass"; "XLSXExport": "XLSXExport"; "CSVExport": "CSVExport"; "AllSearch": "AllSearch"; "HighCellDensity": "HighCellDensity"; "Selection": "Selection"; "ShowLoadingOnBootstrap": "ShowLoadingOnBootstrap"; "Removal": "Removal"; "RemovalCondition": "RemovalCondition"; "Export": "Export"; "ShiftClick": "ShiftClick"; "CountLabel": "CountLabel"; "HidePaging": "HidePaging"; "HidePagingCount": "HidePagingCount"; "HidePagingButtons": "HidePagingButtons"; "ContextMenu": "ContextMenu"; "ExportFileName": "ExportFileName"; "TableClass": "TableClass"; "ExportFunction": "ExportFunction"; "HasHeaderGroup": "HasHeaderGroup"; "HasSecondaryHeaderGroup": "HasSecondaryHeaderGroup"; "HeaderHidden": "HeaderHidden"; "BodyHidden": "BodyHidden"; "SelectionDisabled": "SelectionDisabled"; "SingleSelection": "SingleSelection"; "RowClassAssigner": "RowClassAssigner"; "OrderByColumn": "OrderByColumn"; "MultipleOrderingDirectives": "MultipleOrderingDirectives"; "HiddenColumns": "HiddenColumns"; "ColumnsOrdering": "ColumnsOrdering"; "SearchView": "SearchView"; "SelectAll": "SelectAll"; "UseArrayModePaging": "UseArrayModePaging"; "DynamicRowColumnsDefinition": "DynamicRowColumnsDefinition"; "DynamicOperations": "DynamicOperations"; "Hierarchy": "Hierarchy"; "ParentKey": "ParentKey"; "OwnKey": "OwnKey"; "StartsExpanded": "StartsExpanded"; "SavePreferences": "SavePreferences"; "PagingStyle": "PagingStyle"; "RowGroupingPagingStyle": "RowGroupingPagingStyle"; "SecondarySource": "SecondarySource"; "TertiarySource": "TertiarySource"; "UseSelectionCache": "UseSelectionCache"; "ShowItemGroupsColumns": "ShowItemGroupsColumns"; "ArraymodeItemsPerPage": "ArraymodeItemsPerPage"; }, { "onOrderChanged": "onOrderChanged"; "onSearchRequest": "onSearchRequest"; "onSelectionChanged": "onSelectionChanged"; "onRemoval": "onRemoval"; "onAbortRemoval": "onAbortRemoval"; "onCornerAction": "onCornerAction"; "onDynamicOperation": "onDynamicOperation"; }, ["bodyRef", "headerRef", "headerGroupRef", "secondaryHeaderGroupRef", "EsTdsDirective", "EsThsDirective"], never>;
|
|
643
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EsTableComponent, "es-table", never, { "CornerMenuOptions": "CornerMenuOptions"; "ColumnsResizable": "ColumnsResizable"; "ColumnsPinnable": "ColumnsPinnable"; "AutoUpdate": "AutoUpdate"; "UseCustomCells": "UseCustomCells"; "MaxHeight": "MaxHeight"; "ContainerClass": "ContainerClass"; "XLSXExport": "XLSXExport"; "CSVExport": "CSVExport"; "AllSearch": "AllSearch"; "HighCellDensity": "HighCellDensity"; "Selection": "Selection"; "ShowLoadingOnBootstrap": "ShowLoadingOnBootstrap"; "Removal": "Removal"; "RemovalCondition": "RemovalCondition"; "Export": "Export"; "ShiftClick": "ShiftClick"; "CountLabel": "CountLabel"; "HidePaging": "HidePaging"; "HidePagingCount": "HidePagingCount"; "HidePagingButtons": "HidePagingButtons"; "ContextMenu": "ContextMenu"; "ExportFileName": "ExportFileName"; "TableClass": "TableClass"; "ExportFunction": "ExportFunction"; "HasHeaderGroup": "HasHeaderGroup"; "HasSecondaryHeaderGroup": "HasSecondaryHeaderGroup"; "HeaderHidden": "HeaderHidden"; "BodyHidden": "BodyHidden"; "SelectionDisabled": "SelectionDisabled"; "SingleSelection": "SingleSelection"; "RowClassAssigner": "RowClassAssigner"; "OrderByColumn": "OrderByColumn"; "MultipleOrderingDirectives": "MultipleOrderingDirectives"; "HiddenColumns": "HiddenColumns"; "ColumnsOrdering": "ColumnsOrdering"; "SearchView": "SearchView"; "SelectAll": "SelectAll"; "UseArrayModePaging": "UseArrayModePaging"; "DynamicRowColumnsDefinition": "DynamicRowColumnsDefinition"; "DynamicOperations": "DynamicOperations"; "Hierarchy": "Hierarchy"; "ParentKey": "ParentKey"; "OwnKey": "OwnKey"; "StartsExpanded": "StartsExpanded"; "SavePreferences": "SavePreferences"; "PagingStyle": "PagingStyle"; "RowGroupingPagingStyle": "RowGroupingPagingStyle"; "SecondarySource": "SecondarySource"; "TertiarySource": "TertiarySource"; "UseSelectionCache": "UseSelectionCache"; "ShowItemGroupsColumns": "ShowItemGroupsColumns"; "UserEdits": "UserEdits"; "ArraymodeItemsPerPage": "ArraymodeItemsPerPage"; }, { "onOrderChanged": "onOrderChanged"; "onSearchRequest": "onSearchRequest"; "onSelectionChanged": "onSelectionChanged"; "onRemoval": "onRemoval"; "onAbortRemoval": "onAbortRemoval"; "onCornerAction": "onCornerAction"; "onDynamicOperation": "onDynamicOperation"; }, ["bodyRef", "headerRef", "headerGroupRef", "secondaryHeaderGroupRef", "EsTdsDirective", "EsThsDirective"], never>;
|
|
599
644
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { CdkDrag, CdkDragDrop } from "@angular/cdk/drag-drop";
|
|
2
2
|
import { UtilityService } from "@esfaenza/extensions";
|
|
3
3
|
import { PreferencesService } from "@esfaenza/preferences";
|
|
4
|
-
import { EsTd } from "../../components/es-td/es_td.component";
|
|
5
4
|
import { EsTableComponent } from "../../components/es-table/es_table.component";
|
|
6
5
|
import { EsTdDirective } from "../../directives/es_td.directive";
|
|
7
6
|
import { EsThDirective } from "../../directives/es_th.directive";
|
|
@@ -33,10 +32,14 @@ export declare class ColumnMetadataHandler {
|
|
|
33
32
|
* @param {EsThDirective[]} ths Colonne della tabella
|
|
34
33
|
*/
|
|
35
34
|
reviewColumnsList(ths: EsThDirective[]): void;
|
|
35
|
+
expandMultiThsAndTds(ths: EsThDirective[], tds: EsTdDirective[], items: any[]): {
|
|
36
|
+
expThs: EsThDirective[];
|
|
37
|
+
expTds: EsTdDirective[];
|
|
38
|
+
};
|
|
36
39
|
/**
|
|
37
40
|
* Prende i th e i td in modalità diretive e li ordina in base a se ci sono colonne fixed o meno
|
|
38
41
|
*/
|
|
39
|
-
moveFixedColumnsAtTheBeginning(ths: EsThDirective[], tds:
|
|
42
|
+
moveFixedColumnsAtTheBeginning(ths: EsThDirective[], tds: EsTdDirective[]): void;
|
|
40
43
|
/** In base alla configurazione delle colonne calcola le dimenioni delle colonne pinnate */
|
|
41
44
|
evaluatePinnedColumnsWidth(): void;
|
|
42
45
|
/**
|
|
@@ -47,9 +50,9 @@ export declare class ColumnMetadataHandler {
|
|
|
47
50
|
*/
|
|
48
51
|
alignColumnsIfLoadedView(view: AppSearch<any>): void;
|
|
49
52
|
/**
|
|
50
|
-
* In base alla visibilità registrata nelle **ColumnsList** questo metodo si occupa di prendere tutti i **
|
|
53
|
+
* In base alla visibilità registrata nelle **ColumnsList** questo metodo si occupa di prendere tutti i **EsThDirective** ed **EsTdDirective** relativi e nasonderli/mostrarli
|
|
51
54
|
*
|
|
52
|
-
* Costo: 1 scan ColumnsList, 1 scan
|
|
55
|
+
* Costo: 1 scan ColumnsList, 1 scan EsThDirectives, 1 scan EsTdDirectives
|
|
53
56
|
*
|
|
54
57
|
* @param {EsThDirective[]} ths Header della tabella
|
|
55
58
|
* @param {EsTdDirective[]} tds Celle della tabella
|
|
@@ -86,7 +89,9 @@ export declare class ColumnMetadataHandler {
|
|
|
86
89
|
leafs: EsThDirective[];
|
|
87
90
|
groupingLevel: number;
|
|
88
91
|
parentsCache: any;
|
|
89
|
-
thsCache:
|
|
92
|
+
thsCache: {
|
|
93
|
+
[index: string]: EsThDirective;
|
|
94
|
+
};
|
|
90
95
|
}): void;
|
|
91
96
|
/**
|
|
92
97
|
* Calcola il numero di salti da un header foglia all'ultimo parent della catena
|
|
@@ -5,6 +5,8 @@ export declare class EsTdDirective {
|
|
|
5
5
|
Template: TemplateRef<any>;
|
|
6
6
|
/** Variabile interna che indica il fatto che questo componente è una direttiva. Serve per disambigualrlo dell'EsTdComponent */
|
|
7
7
|
_directive: boolean;
|
|
8
|
+
/** Variabile interna che indica il fatto che questo template si riferisce a una proprietà multipla */
|
|
9
|
+
_multi: boolean;
|
|
8
10
|
/** Indica se la cella è visibile o meno di default */
|
|
9
11
|
tdVisible: boolean;
|
|
10
12
|
/** Id della colonna, fa riferimento al **th** padre */
|
|
@@ -7,11 +7,18 @@ export declare class EsThDirective {
|
|
|
7
7
|
/** Variabile interna all'interno della quale viene raccolta la cache delle aggregazioni specificate in thAggregation */
|
|
8
8
|
_thAggregations: ThAggregation[];
|
|
9
9
|
/** Variabile interna contenente in maniera ordinata i template dei padri */
|
|
10
|
-
_thParents:
|
|
10
|
+
_thParents: {
|
|
11
|
+
tmpl?: TemplateRef<any>;
|
|
12
|
+
content?: string;
|
|
13
|
+
}[];
|
|
11
14
|
/** Variabile interna che indica il fatto che questo componente è una direttiva. Serve per disambigualrlo dell'EsThComponent */
|
|
12
15
|
_directive: boolean;
|
|
13
16
|
/** Variabile interna impostata dall'**EsTable**, per controllare che ci sia almeno un TD che utilizzi quest'header */
|
|
14
17
|
_referenced: boolean;
|
|
18
|
+
/** Variabile interna che indica il fatto che questo template si riferisce a una proprietà multipla */
|
|
19
|
+
_multi: boolean;
|
|
20
|
+
/** Variabile interna che indica il contenuto dell'header in caso di multi */
|
|
21
|
+
_multi_content: string;
|
|
15
22
|
/** Id della colonna, dev'essere lo stesso per tutti i **td** relativi */
|
|
16
23
|
th: string;
|
|
17
24
|
/** Indica se la colonna è pinnata o no */
|
|
@@ -46,10 +53,15 @@ export declare class EsThDirective {
|
|
|
46
53
|
thGroup: boolean;
|
|
47
54
|
/** Indica che bisogna fare una aggregazione su questa colonna, a fronte di almeno un altra con un raggruppamento */
|
|
48
55
|
thAggregation: string;
|
|
49
|
-
/**
|
|
50
|
-
|
|
51
|
-
|
|
56
|
+
/** Impostazioni per la modifica inline di questo campo: la **Property** di riferimento e il **Type** (a scelta fra quelli supportati dal form-adaptive) */
|
|
57
|
+
thUserEdits: {
|
|
58
|
+
Property: string;
|
|
59
|
+
Type: 'string' | 'float' | 'date' | 'number' | 'int' | 'boolean' | 'enum' | 'autocomplete' | 'datetime' | 'time' | 'file' | 'currency';
|
|
60
|
+
};
|
|
61
|
+
/** Indica che questo header deve essere emesso una volta per ogni valore presente nella lista di **EsTableMultiValue** alla proprietà **th** dell'oggetto corrente */
|
|
62
|
+
thMulti: boolean;
|
|
63
|
+
/** @ignore */
|
|
52
64
|
constructor(Template: TemplateRef<any>);
|
|
53
65
|
static ɵfac: i0.ɵɵFactoryDeclaration<EsThDirective, never>;
|
|
54
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<EsThDirective, "[th]", never, { "th": "th"; "thPinned": "thPinned"; "thPinnable": "thPinnable"; "thPinnedWidth": "thPinnedWidth"; "thVisible": "thVisible"; "thFixed": "thFixed"; "thParent": "thParent"; "thOrder": "thOrder"; "thOrderable": "thOrderable"; "thWrap": "thWrap"; "thResizable": "thResizable"; "thClass": "thClass"; "thGroupClass": "thGroupClass"; "thIf": "thIf"; "thEmpty": "thEmpty"; "thGroup": "thGroup"; "thAggregation": "thAggregation"; }, {}, never>;
|
|
66
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<EsThDirective, "[th]", never, { "th": "th"; "thPinned": "thPinned"; "thPinnable": "thPinnable"; "thPinnedWidth": "thPinnedWidth"; "thVisible": "thVisible"; "thFixed": "thFixed"; "thParent": "thParent"; "thOrder": "thOrder"; "thOrderable": "thOrderable"; "thWrap": "thWrap"; "thResizable": "thResizable"; "thClass": "thClass"; "thGroupClass": "thGroupClass"; "thIf": "thIf"; "thEmpty": "thEmpty"; "thGroup": "thGroup"; "thAggregation": "thAggregation"; "thUserEdits": "thUserEdits"; "thMulti": "thMulti"; }, {}, never>;
|
|
55
67
|
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/** Classe che definisce un multi-elemento, cioè una proprietà particolare di un oggetto da visualizzare in es-table che genera dinamicamente gruppi di Header e valori sottostanti */
|
|
2
|
+
export declare class EsTableMultiValue {
|
|
3
|
+
value: any;
|
|
4
|
+
header: string;
|
|
5
|
+
header_group: string;
|
|
6
|
+
/**
|
|
7
|
+
* Costruttore
|
|
8
|
+
*
|
|
9
|
+
* @param {string} value Valore di questo elemento
|
|
10
|
+
* @param {string} header Nome di questo header
|
|
11
|
+
* @param {string} header_group Gruppo dell'header, in caso di multipli gruppi innestati usare la sintassi "G1 > G2 > G3" ecc...
|
|
12
|
+
* @param {boolean} exports Indica se questo header con questo valore dev'essere esportato
|
|
13
|
+
* @param {string} export_format Qualora **export** fosse **true** indica il formato per l'esportazione
|
|
14
|
+
*/
|
|
15
|
+
constructor(value: any, header: string, header_group: string, exports?: boolean, export_format?: string);
|
|
16
|
+
/** Indica se questo header con questo valore dev'essere esportato */
|
|
17
|
+
exports?: boolean;
|
|
18
|
+
/** Qualora **export** fosse **true** indica il formato per l'esportazione */
|
|
19
|
+
export_format?: string;
|
|
20
|
+
/** Generato automaticamente da **header_group** se passato da costruttore, altrimenti generato da es-table. Contiene la lista di gerarchie degli header groups (cioè **header_group** splittato su ">" e trimmato) */
|
|
21
|
+
_headersHierarchy?: string[];
|
|
22
|
+
}
|
|
@@ -9,7 +9,12 @@ export declare class EsTableColumn {
|
|
|
9
9
|
pinnable?: boolean;
|
|
10
10
|
pinnedWidth?: number;
|
|
11
11
|
template?: TemplateRef<any>;
|
|
12
|
-
parentTemplates?:
|
|
12
|
+
parentTemplates?: {
|
|
13
|
+
tmpl?: TemplateRef<any>;
|
|
14
|
+
content?: string;
|
|
15
|
+
}[];
|
|
16
|
+
multi?: boolean;
|
|
17
|
+
multiContent?: string;
|
|
13
18
|
/**
|
|
14
19
|
* Costruttore
|
|
15
20
|
*
|
|
@@ -20,9 +25,14 @@ export declare class EsTableColumn {
|
|
|
20
25
|
* @param {boolean} pinned Indica se è una colonna pinnata
|
|
21
26
|
* @param {number} pinnedWidth Indica la dimensione da assegnare a questa colonna quando è pinnata
|
|
22
27
|
* @param {TemplateRef<any>} template Indica il template da usare per mostrare il testo dell'Header
|
|
23
|
-
* @param {TemplateRef<any
|
|
28
|
+
* @param {{ tmpl: TemplateRef<any>, content: string }[]} parentTemplates Indica la lista di template padri collegata a questo header, rappresentati come Template o come stringa qualora fosse generato automaticamente (caso **Multi**)
|
|
29
|
+
* @param {boolean} multi Indica che la colonna deriva da una direttiva **Multi**
|
|
30
|
+
* @param {string} multiContent Indica il contenuto della direttiva **Multi** per questa colonna
|
|
24
31
|
*/
|
|
25
|
-
constructor(id: string, description: string, visible?: boolean, fixed?: boolean, pinned?: boolean, pinnable?: boolean, pinnedWidth?: number, template?: TemplateRef<any>, parentTemplates?:
|
|
32
|
+
constructor(id: string, description: string, visible?: boolean, fixed?: boolean, pinned?: boolean, pinnable?: boolean, pinnedWidth?: number, template?: TemplateRef<any>, parentTemplates?: {
|
|
33
|
+
tmpl?: TemplateRef<any>;
|
|
34
|
+
content?: string;
|
|
35
|
+
}[], multi?: boolean, multiContent?: string);
|
|
26
36
|
/** Indice precedente in cui si trovava questa colonna in modo da poterla spinnare in maniera super sexy */
|
|
27
37
|
prev_index: number;
|
|
28
38
|
}
|
|
@@ -32,4 +32,11 @@ export interface TdElement {
|
|
|
32
32
|
Visible?: boolean;
|
|
33
33
|
/** Indica se la cella deve wrappare o no il contenuto */
|
|
34
34
|
Wraps?: boolean;
|
|
35
|
+
/** Impostazioni per la modifica inline di questo campo: la **Property** di riferimento e il **Type** (a scelta fra quelli supportati dal form-adaptive) */
|
|
36
|
+
UserEdits?: {
|
|
37
|
+
Property: string;
|
|
38
|
+
Type: string;
|
|
39
|
+
};
|
|
40
|
+
/** Indica che l'oggetto di bindare per questo td è l'elemento all'indice Y della proprietà Z dove Y e Z vengono prese dall'**ID** scritto come Z_Y */
|
|
41
|
+
Multi?: true;
|
|
35
42
|
}
|
package/lib/es-table.module.d.ts
CHANGED
|
@@ -18,9 +18,10 @@ import * as i14 from "@esfaenza/ngx-contextmenu";
|
|
|
18
18
|
import * as i15 from "@angular/material/select";
|
|
19
19
|
import * as i16 from "@angular/material/input";
|
|
20
20
|
import * as i17 from "@angular/cdk/drag-drop";
|
|
21
|
+
import * as i18 from "@esfaenza/forms-and-validations";
|
|
21
22
|
export declare class EsTableModule {
|
|
22
23
|
static forRoot(config?: EsTableModuleConfig): ModuleWithProviders<EsTableModule>;
|
|
23
24
|
static ɵfac: i0.ɵɵFactoryDeclaration<EsTableModule, never>;
|
|
24
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<EsTableModule, [typeof i1.EsTh, typeof i2.EsTd, typeof i3.EsTableComponent, typeof i4.EsTdDirective, typeof i5.EsThDirective, typeof i6.TablePagerComponent], [typeof i7.CommonModule, typeof i8.FormsModule, typeof i9.RouterModule, typeof i10.LocalizationModule, typeof i11.ModalModule, typeof i12.BsDropdownModule, typeof i13.CsvModule, typeof i14.ContextMenuModule, typeof i15.MatSelectModule, typeof i16.MatInputModule, typeof i17.DragDropModule], [typeof i3.EsTableComponent, typeof i4.EsTdDirective, typeof i5.EsThDirective, typeof i6.TablePagerComponent]>;
|
|
25
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<EsTableModule, [typeof i1.EsTh, typeof i2.EsTd, typeof i3.EsTableComponent, typeof i4.EsTdDirective, typeof i5.EsThDirective, typeof i6.TablePagerComponent], [typeof i7.CommonModule, typeof i8.FormsModule, typeof i9.RouterModule, typeof i10.LocalizationModule, typeof i11.ModalModule, typeof i12.BsDropdownModule, typeof i13.CsvModule, typeof i14.ContextMenuModule, typeof i15.MatSelectModule, typeof i16.MatInputModule, typeof i17.DragDropModule, typeof i18.FormsAndValidationsModule], [typeof i3.EsTableComponent, typeof i4.EsTdDirective, typeof i5.EsThDirective, typeof i6.TablePagerComponent]>;
|
|
25
26
|
static ɵinj: i0.ɵɵInjectorDeclaration<EsTableModule>;
|
|
26
27
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@esfaenza/es-table",
|
|
3
|
-
"version": "13.1.
|
|
3
|
+
"version": "13.1.18",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"tslib": "^2.0.0"
|
|
6
6
|
},
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
"@angular/material": "~13.1.1",
|
|
11
11
|
"@esfaenza/extensions": "^13.1.3",
|
|
12
12
|
"@esfaenza/localizations": "^13.1.3",
|
|
13
|
+
"@esfaenza/forms-and-validations": "^13.1.13",
|
|
13
14
|
"@ctrl/ngx-csv": "5.0.0",
|
|
14
15
|
"@esfaenza/ngx-contextmenu": "^13.1.3",
|
|
15
16
|
"@esfaenza/preferences": "^13.1.6",
|
package/public-api.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ export * from './lib/domain/externals/appsearch/GroupAggregation';
|
|
|
16
16
|
export * from './lib/domain/externals/appsearch/GroupFilter';
|
|
17
17
|
export * from './lib/domain/externals/appsearch/GroupOrAggregation';
|
|
18
18
|
export * from './lib/domain/externals/appsearch/ItemsSelection';
|
|
19
|
+
export * from './lib/domain/externals/appsearch/EsTableMultiValue';
|
|
19
20
|
export * from './lib/domain/externals/report/ReportColumn';
|
|
20
21
|
export * from './lib/domain/externals/report/ReportDefinition';
|
|
21
22
|
export * from './lib/domain/externals/report/ReportOrder';
|