@esfaenza/es-table 11.2.121 → 11.2.123-beta1
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 +443 -235
- 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.d.ts +8 -4
- package/esfaenza-es-table.metadata.json +1 -1
- package/esm2015/esfaenza-es-table.js +9 -5
- package/esm2015/lib/components/es-table/es_table.component.js +126 -49
- package/esm2015/lib/components/es-td/es_td.component.js +10 -52
- package/esm2015/lib/components/es-th/es_th.component.js +2 -2
- package/esm2015/lib/components/pipes/est-renderer.pipe.js +36 -0
- package/esm2015/lib/components/pipes/est-routerlink.pipe.js +37 -0
- package/esm2015/lib/components/pipes/est_editor.pipe.js +36 -0
- package/esm2015/lib/core/CopyPasteDetector.js +4 -2
- package/esm2015/lib/core/Logger.js +23 -0
- package/esm2015/lib/core/handlers/ColumnMetadataHandler.js +14 -12
- package/esm2015/lib/core/handlers/DynamicModeHandler.js +59 -37
- package/esm2015/lib/core/handlers/ExportHandler.js +2 -2
- package/esm2015/lib/core/handlers/SelectionHandler.js +46 -50
- package/esm2015/lib/core/handlers/UtilitiesHandler.js +2 -5
- package/esm2015/lib/directives/es_th.directive.js +9 -2
- package/esm2015/lib/domain/externals/EsTableColumnsDefinition.js +7 -4
- package/esm2015/lib/domain/externals/ItemPropEditableReference.js +1 -1
- package/esm2015/lib/domain/internals/EsTableColumn.js +2 -2
- package/esm2015/lib/es-table.module.js +42 -19
- package/fesm2015/esfaenza-es-table.js +422 -223
- package/fesm2015/esfaenza-es-table.js.map +1 -1
- package/lib/components/es-table/es_table.component.d.ts +28 -8
- package/lib/components/es-td/es_td.component.d.ts +6 -34
- package/lib/components/pipes/est-renderer.pipe.d.ts +12 -0
- package/lib/components/pipes/est-routerlink.pipe.d.ts +17 -0
- package/lib/components/pipes/est_editor.pipe.d.ts +12 -0
- package/lib/core/Logger.d.ts +7 -0
- package/lib/core/handlers/DynamicModeHandler.d.ts +11 -23
- package/lib/core/handlers/SelectionHandler.d.ts +16 -3
- package/lib/core/handlers/UtilitiesHandler.d.ts +4 -1
- package/lib/directives/es_th.directive.d.ts +25 -0
- package/lib/domain/externals/EsTableColumnsDefinition.d.ts +5 -9
- package/lib/domain/externals/ItemPropEditableReference.d.ts +4 -0
- package/lib/domain/internals/EsTableColumn.d.ts +3 -1
- package/package.json +2 -2
|
@@ -19,6 +19,7 @@ import { Group } from "../../domain/externals/appsearch/Group";
|
|
|
19
19
|
import { EsTableModelChange } from '../../domain/externals/EsTableModelChange';
|
|
20
20
|
import { ItemPropEditableReference } from '../../domain/externals/ItemPropEditableReference';
|
|
21
21
|
import { EsTableDefaultable } from '../../domain/configuration/EsTableDefaultable';
|
|
22
|
+
import { EsTd } from '../es-td/es_td.component';
|
|
22
23
|
import { EsTdDirective } from '../../directives/es_td.directive';
|
|
23
24
|
import { EsThDirective } from '../../directives/es_th.directive';
|
|
24
25
|
import { EsTdEditorDirective } from '../../directives/es_td_editor.directive';
|
|
@@ -33,8 +34,8 @@ import { RowGroupingHandler } from "../../core/handlers/RowGroupingHandler";
|
|
|
33
34
|
import { SelectionHandler } from "../../core/handlers/SelectionHandler";
|
|
34
35
|
import { UtilitiesHandler } from "../../core/handlers/UtilitiesHandler";
|
|
35
36
|
import { CopyPasteDetector } from '../../core/CopyPasteDetector';
|
|
37
|
+
import { Logger } from '../../core/Logger';
|
|
36
38
|
import { Subject } from 'rxjs';
|
|
37
|
-
import { EsTd } from '../es-td/es_td.component';
|
|
38
39
|
/** Componente che permette di rappresentare una griglia di valori */
|
|
39
40
|
export declare class EsTableComponent implements ControlValueAccessor, OnChanges {
|
|
40
41
|
ngControl: NgControl;
|
|
@@ -50,6 +51,7 @@ export declare class EsTableComponent implements ControlValueAccessor, OnChanges
|
|
|
50
51
|
private msgExts;
|
|
51
52
|
private copyPasteDetector;
|
|
52
53
|
private clipboardService;
|
|
54
|
+
private logger;
|
|
53
55
|
/** @ignore */ export_H: ExportHandler;
|
|
54
56
|
/** @ignore */ columnMetadata_H: ColumnMetadataHandler;
|
|
55
57
|
/** @ignore */ dynamicMode_H: DynamicModeHandler;
|
|
@@ -61,7 +63,7 @@ export declare class EsTableComponent implements ControlValueAccessor, OnChanges
|
|
|
61
63
|
/** @ignore */ private copySubscription;
|
|
62
64
|
/** @ignore */ private pasteSubscription;
|
|
63
65
|
/** @ignore */
|
|
64
|
-
constructor(ngControl: NgControl, prefService: PreferencesService, deafults: EsTableDefaultable, locale: string, lc: LocalizationService, cdr: ChangeDetectorRef, utilities_H: UtilitiesHandler, utiExts: UtilityService, expExts: ExportService, dateExts: DateService, msgExts: MessageService, copyPasteDetector: CopyPasteDetector, clipboardService: ClipboardService);
|
|
66
|
+
constructor(ngControl: NgControl, prefService: PreferencesService, deafults: EsTableDefaultable, locale: string, lc: LocalizationService, cdr: ChangeDetectorRef, utilities_H: UtilitiesHandler, utiExts: UtilityService, expExts: ExportService, dateExts: DateService, msgExts: MessageService, copyPasteDetector: CopyPasteDetector, clipboardService: ClipboardService, logger: Logger);
|
|
65
67
|
/** Subject utilizzato internamente lato EsTable per causare il Focus lato componente di Input */
|
|
66
68
|
FocusSubject: Subject<void>;
|
|
67
69
|
/** Timer che verrà impostato a **doubleClickBufferMs** per capire se è stato effettuato un click singolo o un doubleclick */
|
|
@@ -71,7 +73,10 @@ export declare class EsTableComponent implements ControlValueAccessor, OnChanges
|
|
|
71
73
|
/** View finale su cui bindarsi lato Frontend, il tipo può essere IAppSearch<any> (per la **viewMode**), any[] (per l'**arrayMode**) */
|
|
72
74
|
View: any;
|
|
73
75
|
/** Modello da cui l'es-table mostra i pulsanti di paginazione in basso a destra */
|
|
74
|
-
arrayPulsanti:
|
|
76
|
+
arrayPulsanti: {
|
|
77
|
+
val: number;
|
|
78
|
+
cssClass: string;
|
|
79
|
+
}[];
|
|
75
80
|
/** Indica se l'es-table deve mostrare il check globale nell'header per fare il "seleziona tutto" */
|
|
76
81
|
globalCheck: boolean;
|
|
77
82
|
/** Tiene da conto l'ultimo elemento selezionato in modo da poter effettuare il SHIFT+CLICK */
|
|
@@ -123,11 +128,13 @@ export declare class EsTableComponent implements ControlValueAccessor, OnChanges
|
|
|
123
128
|
TMPRowTHs: ThElement[];
|
|
124
129
|
/** Modello di appoggio temporaneo per i **RowThGroups** */
|
|
125
130
|
TMPRowThGroups: {
|
|
131
|
+
ID: string;
|
|
126
132
|
Span: number;
|
|
127
133
|
Template: TemplateRef<any>;
|
|
128
134
|
}[][];
|
|
129
135
|
/** Modello rappresentante un singolo header group della tabella. Questa lista è già ordinata e pronta per essere utilizzata in ngFor */
|
|
130
136
|
RowThGroups: {
|
|
137
|
+
ID: string;
|
|
131
138
|
Span: number;
|
|
132
139
|
Template: TemplateRef<any>;
|
|
133
140
|
}[][];
|
|
@@ -183,6 +190,10 @@ export declare class EsTableComponent implements ControlValueAccessor, OnChanges
|
|
|
183
190
|
ColumnsPinnable: boolean;
|
|
184
191
|
/** Indica se dev'essere disponibile il sistema di aggiornamento automatico */
|
|
185
192
|
AutoUpdate: boolean;
|
|
193
|
+
/** Indica l'altezza cablata che deve assumere la tabella. Es: "100px" | "100%" ... */
|
|
194
|
+
Height: string;
|
|
195
|
+
/** Indica il colore di sfondo dello spazio vuoto (non ricoperto da dati). Particolarmente utile da impostare in caso di **Height** diverso da null */
|
|
196
|
+
EmptySpaceBackgroundColor: string;
|
|
186
197
|
/**
|
|
187
198
|
* @experimental Indica se dev'essere l'estable a gestire la ricerca, anche la prima.
|
|
188
199
|
*
|
|
@@ -466,7 +477,15 @@ export declare class EsTableComponent implements ControlValueAccessor, OnChanges
|
|
|
466
477
|
/** @ignore */
|
|
467
478
|
writeValue(obj: any, throttle?: boolean): Promise<void>;
|
|
468
479
|
/** Funzione di trackby per il body che dovrebbe evitare il 90% delle change detection */
|
|
469
|
-
bodyTrackBy: (
|
|
480
|
+
bodyTrackBy: (_: number, item: any) => any;
|
|
481
|
+
/** Funzione di trackby generica per tutti gli oggetti che hanno il campo id */
|
|
482
|
+
idTrackBy: (_: number, item: any) => any;
|
|
483
|
+
/** Funzione di trackby generica per tutti gli oggetti che hanno il campo PropertyName */
|
|
484
|
+
PropertyNameTrackBy: (_: number, item: any) => any;
|
|
485
|
+
/** Funzione di trackby generica per tutti gli oggetti che hanno il campo ID */
|
|
486
|
+
IDTrackBy: (_: number, item: any) => any;
|
|
487
|
+
/** Funzione di trackby generica per tutti gli oggetti che hanno il campo ID */
|
|
488
|
+
valTrackBy: (_: number, item: any) => any;
|
|
470
489
|
/**
|
|
471
490
|
* Successivamente al bind del nuovo input questa funzione si occupa di finalizzare tutti i parametri di funzionamento dell'es-table
|
|
472
491
|
* in base a Input - Modello, e qualsiasi altra cosa possa servire
|
|
@@ -671,9 +690,8 @@ export declare class EsTableComponent implements ControlValueAccessor, OnChanges
|
|
|
671
690
|
* @param {any} $event Evento nativo javascript
|
|
672
691
|
* @param {TdElement} rowItem Riferimento a binder della riga
|
|
673
692
|
* @param {any} item Item che rappresenta il contesto su cui è stato effettuato un click
|
|
674
|
-
* @param {number} rowIndex Indice della riga
|
|
675
693
|
*/
|
|
676
|
-
dbClickEditOrSingleClickRowSelection($event:
|
|
694
|
+
dbClickEditOrSingleClickRowSelection($event: MouseEvent, rowItem: TdElement, item: any): void;
|
|
677
695
|
/** Evento che gestisce il comando "Copia" buttando i valori selezionati nella clipboard in base al loro tipo */
|
|
678
696
|
private handleCopy;
|
|
679
697
|
/** Evento che gestisce il comando "Incolla" prendendo i dati della clipboard e applicandoli al range di selezione attuale in base al tipo delle celle sotto */
|
|
@@ -711,10 +729,12 @@ export declare class EsTableComponent implements ControlValueAccessor, OnChanges
|
|
|
711
729
|
*/
|
|
712
730
|
finalizeUserEdit(rowItem: TdElement, item: any, columnIndex: number): void;
|
|
713
731
|
private mouseIsDown;
|
|
732
|
+
private rangeSelected;
|
|
733
|
+
private rangeStartWasIgnored;
|
|
714
734
|
private firstCoordinates;
|
|
715
|
-
mousedown(event: MouseEvent, rowItem: any,
|
|
735
|
+
mousedown(event: MouseEvent, rowItem: any, _: any): void;
|
|
716
736
|
mouseenter(event: MouseEvent): void;
|
|
717
|
-
mouseup(event:
|
|
737
|
+
mouseup(event: MouseEvent): void;
|
|
718
738
|
private EsTdsCache;
|
|
719
739
|
getCellReference(object: any, column: string): EsTd;
|
|
720
740
|
registerCell(event: EsTdReference): void;
|
|
@@ -1,25 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
|
|
1
|
+
import { EventEmitter, ChangeDetectorRef } from "@angular/core";
|
|
3
2
|
/** Componente rappresentante una singola cella del body della tabella */
|
|
4
3
|
export declare class EsTd {
|
|
5
4
|
private cdr;
|
|
6
|
-
private myself;
|
|
7
|
-
private renderer;
|
|
8
|
-
protected sanitizer: DomSanitizer;
|
|
9
5
|
/** Id della cella, dev'essere lo stesso della colonna **EsTh** relativa */
|
|
10
6
|
ID: string;
|
|
11
|
-
/** Indica se è una cella interna (rigenerata programmaticamente) o no */
|
|
12
|
-
Internal?: boolean;
|
|
13
|
-
/** RouterLink qualora il click su questa cella debba navigare da qualche parte */
|
|
14
|
-
RouterLink?: any;
|
|
15
|
-
/** Valore da mostrare all'interno della cella. Se omesso verrà proiettato il contenuto dal template in cui è stata usata */
|
|
16
|
-
Display?: string;
|
|
17
|
-
/** Template Angular da istanziare per questo TD */
|
|
18
|
-
Template?: any;
|
|
19
|
-
/** Classi da applicare alla cella */
|
|
20
|
-
Class?: string;
|
|
21
|
-
/** Contenuto da mostrare proiettato dal componente padre */
|
|
22
|
-
Content?: SafeHtml;
|
|
23
7
|
/** Contesto dell'oggetto a cui si riferisce il dato visualizzato. Contiene l'hash dell'oggetto in questione */
|
|
24
8
|
Context: string;
|
|
25
9
|
/** Quando questa cella viene generata questo evento permette di dire "ehi, sono nato!" */
|
|
@@ -28,24 +12,12 @@ export declare class EsTd {
|
|
|
28
12
|
hash: string;
|
|
29
13
|
self: EsTd;
|
|
30
14
|
}>;
|
|
31
|
-
/**
|
|
32
|
-
|
|
15
|
+
/** Errore attualmente presente sulla cella */
|
|
16
|
+
ValidationError: string;
|
|
33
17
|
/** @ignore */
|
|
34
|
-
constructor(cdr: ChangeDetectorRef
|
|
35
|
-
/**
|
|
36
|
-
* Imposta la visibilità o meno della cella, si traduce nell'applicazione o rimozione della classe **app-display-none**
|
|
37
|
-
*
|
|
38
|
-
* @param {boolean} expression Indicazione della visibilità
|
|
39
|
-
*/
|
|
40
|
-
set Visible(expression: boolean);
|
|
41
|
-
/**
|
|
42
|
-
* Restituisce lo stato di Visibilità della cella in oggetto
|
|
43
|
-
*
|
|
44
|
-
* @returns {boolean} **true** se visibile, **false** altrimenti
|
|
45
|
-
*/
|
|
46
|
-
get Visible(): boolean;
|
|
18
|
+
constructor(cdr: ChangeDetectorRef);
|
|
47
19
|
/** @ignore */
|
|
48
20
|
ngAfterViewInit(): void;
|
|
49
|
-
|
|
50
|
-
validationError(
|
|
21
|
+
/** Api per impostare un "errore" su questa cella in maniera programmatica */
|
|
22
|
+
validationError(error?: string): void;
|
|
51
23
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { PipeTransform, QueryList } from "@angular/core";
|
|
2
|
+
import { Logger } from "../../core/Logger";
|
|
3
|
+
import { EsTdDirective } from "../../directives/es_td.directive";
|
|
4
|
+
export declare class EstRendererPipe implements PipeTransform {
|
|
5
|
+
private logger;
|
|
6
|
+
constructor(logger: Logger);
|
|
7
|
+
transform(propName: string, params: {
|
|
8
|
+
name: string;
|
|
9
|
+
src: QueryList<EsTdDirective>;
|
|
10
|
+
fallback: any;
|
|
11
|
+
}): any;
|
|
12
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { PipeTransform } from "@angular/core";
|
|
2
|
+
export declare class EstRouterLinkPipe implements PipeTransform {
|
|
3
|
+
/** Cache per i routerLink generati nelle tabelle dinamiche */
|
|
4
|
+
routerLinksCache: {};
|
|
5
|
+
transform(item: any, path: string, parameters: string[]): any;
|
|
6
|
+
/**
|
|
7
|
+
* Crea un router link
|
|
8
|
+
*
|
|
9
|
+
* @param {string} path Path su cui navigare con eventuali parametri riferiti all'oggetto cotnestuale come {0}, {1}, ecc...
|
|
10
|
+
* @param {string[]} pars Lista posizionale delle proprietà a cui bindare i riferimenti del parametro **path**
|
|
11
|
+
* Es. Il valore dela proprietà all'indice 0 di questo array verrà sostituita al valore {0} del parametro **path**
|
|
12
|
+
* @param {any} item Oggetto collegato a questo contesto. Può essere un oggetto generico (con "properties") o un oggetto ben definito
|
|
13
|
+
*
|
|
14
|
+
* @returns {any} Router link generato in base al parametri
|
|
15
|
+
*/
|
|
16
|
+
private getRouterLink;
|
|
17
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { PipeTransform, QueryList } from "@angular/core";
|
|
2
|
+
import { Logger } from "../../core/Logger";
|
|
3
|
+
import { EsTdEditorDirective } from "../../directives/es_td_editor.directive";
|
|
4
|
+
export declare class EstEditorPipe implements PipeTransform {
|
|
5
|
+
private logger;
|
|
6
|
+
constructor(logger: Logger);
|
|
7
|
+
transform(propName: string, params: {
|
|
8
|
+
name: string;
|
|
9
|
+
src: QueryList<EsTdEditorDirective>;
|
|
10
|
+
fallback: any;
|
|
11
|
+
}): any;
|
|
12
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** Classe che fornisce dei metodi di estensione in grado di riconoscere e dispatchare l'evento copia e incolla lanciato su una pagina web */
|
|
2
|
+
export declare class Logger {
|
|
3
|
+
debugMode: boolean;
|
|
4
|
+
/** @ignore */
|
|
5
|
+
constructor(debugMode: boolean);
|
|
6
|
+
log(text: string): void;
|
|
7
|
+
}
|
|
@@ -1,32 +1,20 @@
|
|
|
1
1
|
import { EsTableComponent } from "../../components/es-table/es_table.component";
|
|
2
|
-
import {
|
|
2
|
+
import { EsTdDirective } from "../../directives/es_td.directive";
|
|
3
|
+
import { EsThDirective } from "../../directives/es_th.directive";
|
|
3
4
|
/** Classe contenente le gestioni particolari della modalità dinamica dell'es-table */
|
|
4
5
|
export declare class DynamicModeHandler {
|
|
5
6
|
private est;
|
|
6
7
|
/** @ignore Costruttore*/
|
|
7
8
|
constructor(est: EsTableComponent);
|
|
8
|
-
/**
|
|
9
|
-
* Metodo di supporto alla creazione di un router link parametrizzato all'oggetto corrente utilizzato nella modalità dinamica
|
|
10
|
-
*
|
|
11
|
-
* @param {string} path Path su cui navigare con eventuali parametri riferiti all'oggetto cotnestuale come {0}, {1}, ecc...
|
|
12
|
-
* @param {string[]} parameterProps Lista posizionale delle proprietà a cui bindare i riferimenti del parametro **path**
|
|
13
|
-
* Es. Il valore dela proprietà all'indice 0 di questo array verrà sostituita al valore {0} del parametro **path**
|
|
14
|
-
* @param {GenericItem} item Oggetto generico collegato a questo contesto
|
|
15
|
-
*
|
|
16
|
-
* @returns {any} Router link generato in base al parametri
|
|
17
|
-
*/
|
|
18
|
-
generateRouterLink(path: string, parameterProps: string[], item: GenericItem): any;
|
|
19
|
-
/**
|
|
20
|
-
* Crea un router link
|
|
21
|
-
*
|
|
22
|
-
* @param {string} path Path su cui navigare con eventuali parametri riferiti all'oggetto cotnestuale come {0}, {1}, ecc...
|
|
23
|
-
* @param {string[]} pars Lista posizionale delle proprietà a cui bindare i riferimenti del parametro **path**
|
|
24
|
-
* Es. Il valore dela proprietà all'indice 0 di questo array verrà sostituita al valore {0} del parametro **path**
|
|
25
|
-
* @param {GenericItem} item Oggetto generico collegato a questo contesto
|
|
26
|
-
*
|
|
27
|
-
* @returns {any} Router link generato in base al parametri
|
|
28
|
-
*/
|
|
29
|
-
private getRouterLink;
|
|
30
9
|
/** Se non ho l'Input **DynamicRowColumnsDefinition** in modalità dinamica lo riempio con il default nome della colonna = testo della colonna */
|
|
31
10
|
eventuallyReviewDynamicColumns(): void;
|
|
11
|
+
/** Genera partendo dalle **DynamicRowColumnsDefinition** la lista di **EsThDirective** e **EsTdDirective** che servono per la tabella */
|
|
12
|
+
emitThsAndTdsBasedOnDynamicDefinition(): {
|
|
13
|
+
ths: EsThDirective[];
|
|
14
|
+
tds: EsTdDirective[];
|
|
15
|
+
};
|
|
16
|
+
/** @ignore Helper */
|
|
17
|
+
private getTh;
|
|
18
|
+
/** @ignore Helper */
|
|
19
|
+
private getTd;
|
|
32
20
|
}
|
|
@@ -175,7 +175,17 @@ export declare class SelectionHandler {
|
|
|
175
175
|
* @param {number} column Indice della colonna preso banalmente dall'ngIf sui thElement
|
|
176
176
|
* @param {{ row: number, column: number }} firstSelectionOverride Permette di overridare il primo elemento selezionato
|
|
177
177
|
*/
|
|
178
|
-
singleCellSelection(event:
|
|
178
|
+
singleCellSelection(event: {
|
|
179
|
+
view: any;
|
|
180
|
+
range: boolean;
|
|
181
|
+
}, row: number, column: number, firstSelectionOverride?: {
|
|
182
|
+
row: number;
|
|
183
|
+
column: number;
|
|
184
|
+
}): void;
|
|
185
|
+
setSelectionStatusBorders(from: {
|
|
186
|
+
row: number;
|
|
187
|
+
column: number;
|
|
188
|
+
}, to: {
|
|
179
189
|
row: number;
|
|
180
190
|
column: number;
|
|
181
191
|
}): void;
|
|
@@ -184,7 +194,7 @@ export declare class SelectionHandler {
|
|
|
184
194
|
*
|
|
185
195
|
* @param {{row: number, column: number}} exclusion Coordinata da escludere nella pulizia
|
|
186
196
|
*/
|
|
187
|
-
|
|
197
|
+
clearSelectionStatusExcluding(exclusion?: {
|
|
188
198
|
row: number;
|
|
189
199
|
column: number;
|
|
190
200
|
}): void;
|
|
@@ -199,7 +209,10 @@ export declare class SelectionHandler {
|
|
|
199
209
|
*
|
|
200
210
|
* @param {any} event Evento nativo Javascript
|
|
201
211
|
*/
|
|
202
|
-
clearTextSelection(event:
|
|
212
|
+
clearTextSelection(event: {
|
|
213
|
+
view: any;
|
|
214
|
+
range: boolean;
|
|
215
|
+
}): boolean;
|
|
203
216
|
/**
|
|
204
217
|
* Data la matrice di selezione generata dal metodo **getSelectionStatusSelection** genera la strigna vera e propria da copiare nella Clipboard
|
|
205
218
|
*
|
|
@@ -33,7 +33,10 @@ export declare class UtilitiesHandler {
|
|
|
33
33
|
*
|
|
34
34
|
* @returns {any[]} Pseudo-array di pulsanti a cui ci si può bindare lato HTML
|
|
35
35
|
*/
|
|
36
|
-
getPagesArray(maxBtns: number, page: number, lastPage: number, actualCount?: number, ipp?: number):
|
|
36
|
+
getPagesArray(maxBtns: number, page: number, lastPage: number, actualCount?: number, ipp?: number): {
|
|
37
|
+
val: number;
|
|
38
|
+
cssClass: string;
|
|
39
|
+
}[];
|
|
37
40
|
/**
|
|
38
41
|
* Calcola l'hash di un oggetto qualsiasi
|
|
39
42
|
*
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { TemplateRef } from "@angular/core";
|
|
2
|
+
import { AvailableOptions } from "@esfaenza/forms-and-validations";
|
|
2
3
|
import { ThAggregation } from "../domain/internals/ThAggregation";
|
|
3
4
|
import { InputType } from "../domain/types";
|
|
4
5
|
/** Direttiva per la dichiarazione snella di un EsTh da emettere come header */
|
|
@@ -8,6 +9,7 @@ export declare class EsThDirective {
|
|
|
8
9
|
_thAggregations: ThAggregation[];
|
|
9
10
|
/** Variabile interna contenente in maniera ordinata i template dei padri */
|
|
10
11
|
_thParents: {
|
|
12
|
+
id: string;
|
|
11
13
|
tmpl?: TemplateRef<any>;
|
|
12
14
|
content?: string;
|
|
13
15
|
}[];
|
|
@@ -72,6 +74,29 @@ export declare class EsThDirective {
|
|
|
72
74
|
thAlignment: "Center" | "Left" | "Right";
|
|
73
75
|
/** Formato da applicare al valore se applicabile */
|
|
74
76
|
thFormat: string;
|
|
77
|
+
/** Nome dell'editor da utilizzare per la modifica di questo campo, ordine di priorità:
|
|
78
|
+
*
|
|
79
|
+
* 1. Editor con nome **thEditorName**
|
|
80
|
+
*
|
|
81
|
+
* 2. Editor riferito alla proprietà **thProperty**
|
|
82
|
+
*
|
|
83
|
+
* 3. Editor di default per **thType**
|
|
84
|
+
*/
|
|
85
|
+
thEditorName: string;
|
|
86
|
+
/** Opzioni da applicare all'editor di questa colonna */
|
|
87
|
+
thEditorOptions: {
|
|
88
|
+
[id in AvailableOptions]?: any;
|
|
89
|
+
};
|
|
90
|
+
/** Nome del renderer da utilizzare per visualizzare questo campo. Utilizzato solo per le tabelle dinamiche */
|
|
91
|
+
thRendererName: string;
|
|
92
|
+
/** Route di navigazione. Es. "['/pages/mod/mod_detail', { 'idItem': '{0}', 'idItem2' : '{1}' }]" */
|
|
93
|
+
thRoutePath: string;
|
|
94
|
+
/**
|
|
95
|
+
* Proprietà da bindare a **routePath** per generare la route completa.
|
|
96
|
+
*
|
|
97
|
+
* L'indice scritto in **routePath** è l'indice di accesso a questo array. Es. ["idItem", "idItem2"]
|
|
98
|
+
*/
|
|
99
|
+
thRouteParameterProperties: string[];
|
|
75
100
|
/** @ignore */
|
|
76
101
|
constructor(Template: TemplateRef<any>);
|
|
77
102
|
}
|
|
@@ -22,12 +22,10 @@ export declare class EsTableColumnsDefinition {
|
|
|
22
22
|
EditorOptions: {
|
|
23
23
|
[id in AvailableOptions]?: any;
|
|
24
24
|
};
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
};
|
|
30
|
-
};
|
|
25
|
+
Pinned: boolean;
|
|
26
|
+
PinnedWidth: number;
|
|
27
|
+
Pinnable: boolean;
|
|
28
|
+
Grouping: string;
|
|
31
29
|
/**
|
|
32
30
|
* Costruttore
|
|
33
31
|
*
|
|
@@ -52,8 +50,6 @@ export declare class EsTableColumnsDefinition {
|
|
|
52
50
|
description: string;
|
|
53
51
|
}[], EditorName?: string, RendererName?: string, EditorOptions?: {
|
|
54
52
|
[id in AvailableOptions]?: any;
|
|
55
|
-
});
|
|
53
|
+
}, Pinned?: boolean, PinnedWidth?: number, Pinnable?: boolean, Grouping?: string);
|
|
56
54
|
static build(parsObj: any): EsTableColumnsDefinition;
|
|
57
|
-
/** Routerlink che verrà generato a runtime basandosi sulle informazioni di **routePath** e **routeParameterProperties** */
|
|
58
|
-
routerLink: any;
|
|
59
55
|
}
|
|
@@ -25,6 +25,10 @@ export declare class ItemPropEditableReference {
|
|
|
25
25
|
loverlaps?: boolean;
|
|
26
26
|
/** Indica se il bordo a destra overlappa su un bordo di selezione sinistro della cella successiva */
|
|
27
27
|
roverlaps?: boolean;
|
|
28
|
+
/** Indica se il bordo in alto overlappa su un bordo di selezione basso della cella precedente */
|
|
29
|
+
toverlaps?: boolean;
|
|
30
|
+
/** Indica se il bordo in basso overlappa su un bordo di selezione in alto della cella successiva */
|
|
31
|
+
boverlaps?: boolean;
|
|
28
32
|
/** Funzione che imposta il nuovo valore della proprietà **property** dell'oggetto **item** ed aggiorna il **value** di questo oggetto */
|
|
29
33
|
val_setter?: (value: string) => any;
|
|
30
34
|
}
|
|
@@ -10,6 +10,7 @@ export declare class EsTableColumn {
|
|
|
10
10
|
pinnedWidth?: number;
|
|
11
11
|
template?: TemplateRef<any>;
|
|
12
12
|
parentTemplates?: {
|
|
13
|
+
id: string;
|
|
13
14
|
tmpl?: TemplateRef<any>;
|
|
14
15
|
content?: string;
|
|
15
16
|
}[];
|
|
@@ -26,11 +27,12 @@ export declare class EsTableColumn {
|
|
|
26
27
|
* @param {boolean} pinned Indica se è una colonna pinnata
|
|
27
28
|
* @param {number} pinnedWidth Indica la dimensione da assegnare a questa colonna quando è pinnata
|
|
28
29
|
* @param {TemplateRef<any>} template Indica il template da usare per mostrare il testo dell'Header
|
|
29
|
-
* @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**)
|
|
30
|
+
* @param {{ id: string, 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**)
|
|
30
31
|
* @param {boolean} multi Indica che la colonna deriva da una direttiva **Multi**
|
|
31
32
|
* @param {string} multiContent Indica il contenuto della direttiva **Multi** per questa colonna
|
|
32
33
|
*/
|
|
33
34
|
constructor(id: string, description: string, visible?: boolean, fixed?: boolean, pinned?: boolean, pinnable?: boolean, pinnedWidth?: number, template?: TemplateRef<any>, parentTemplates?: {
|
|
35
|
+
id: string;
|
|
34
36
|
tmpl?: TemplateRef<any>;
|
|
35
37
|
content?: string;
|
|
36
38
|
}[], multi?: boolean, multiContent?: string);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@esfaenza/es-table",
|
|
3
|
-
"version": "11.2.
|
|
3
|
+
"version": "11.2.123-beta1",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"tslib": "^2.0.0"
|
|
6
6
|
},
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"@angular/common": "~11.2.14",
|
|
9
9
|
"@angular/core": "~11.2.14",
|
|
10
10
|
"@angular/material": "~11.2.13",
|
|
11
|
-
"@esfaenza/extensions": "^11.2.
|
|
11
|
+
"@esfaenza/extensions": "^11.2.48",
|
|
12
12
|
"@esfaenza/localizations": "^11.2.7",
|
|
13
13
|
"@esfaenza/forms-and-validations": "^11.2.140",
|
|
14
14
|
"@esfaenza/ngx-contextmenu": "^11.2.6",
|