@esfaenza/es-table 11.2.117 → 11.2.119
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 +93 -8
- 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 +1 -0
- package/esfaenza-es-table.metadata.json +1 -1
- package/esm2015/esfaenza-es-table.js +2 -1
- package/esm2015/lib/components/es-table/es_table.component.js +42 -8
- package/esm2015/lib/components/pipes/est-format.pipe.js +43 -0
- package/esm2015/lib/core/handlers/ReportModeHandler.js +5 -1
- package/esm2015/lib/directives/es_td.directive.js +4 -2
- package/esm2015/lib/directives/es_th.directive.js +4 -2
- package/esm2015/lib/domain/externals/EsTableColumnsDefinition.js +1 -1
- package/esm2015/lib/domain/externals/report/ReportColumn.js +1 -1
- package/esm2015/lib/domain/externals/report/ReportRow.js +1 -1
- package/esm2015/lib/es-table.module.js +3 -2
- package/fesm2015/esfaenza-es-table.js +95 -12
- package/fesm2015/esfaenza-es-table.js.map +1 -1
- package/lib/components/pipes/est-format.pipe.d.ts +7 -0
- package/lib/directives/es_td.directive.d.ts +4 -0
- package/lib/directives/es_th.directive.d.ts +4 -0
- package/lib/domain/externals/EsTableColumnsDefinition.d.ts +3 -2
- package/lib/domain/externals/report/ReportColumn.d.ts +4 -0
- package/lib/domain/externals/report/ReportRow.d.ts +4 -0
- package/package.json +1 -1
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PipeTransform } from "@angular/core";
|
|
2
|
+
import { DateService } from "@esfaenza/extensions";
|
|
3
|
+
export declare class EstFormatPipe implements PipeTransform {
|
|
4
|
+
private dates;
|
|
5
|
+
constructor(dates: DateService);
|
|
6
|
+
transform(value: string, format: string): string;
|
|
7
|
+
}
|
|
@@ -18,6 +18,10 @@ export declare class EsTdDirective {
|
|
|
18
18
|
tdClass: string;
|
|
19
19
|
/** In mancanza di **Template** indica qual è la proprietà dell'oggetto contenente le informazioni da mostrare */
|
|
20
20
|
tdPropertyAccessor: string;
|
|
21
|
+
/** Allineamento dei valori della tabella */
|
|
22
|
+
tdAlignment: "Center" | "Left" | "Right";
|
|
23
|
+
/** Formato da applicare al valore se applicabile, utilizzabile solo se **tdPropertyAccessor** è valorizzato */
|
|
24
|
+
tdFormat: string;
|
|
21
25
|
/**
|
|
22
26
|
* @ignore
|
|
23
27
|
*/
|
|
@@ -68,6 +68,10 @@ export declare class EsThDirective {
|
|
|
68
68
|
thStaticContent: string;
|
|
69
69
|
/** Colore del background della cella */
|
|
70
70
|
thBackgroundColor: string;
|
|
71
|
+
/** Allineamento dei valori della tabella */
|
|
72
|
+
thAlignment: "Center" | "Left" | "Right";
|
|
73
|
+
/** Formato da applicare al valore se applicabile */
|
|
74
|
+
thFormat: string;
|
|
71
75
|
/** @ignore */
|
|
72
76
|
constructor(Template: TemplateRef<any>);
|
|
73
77
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { InputType } from "../types";
|
|
2
|
+
import { AvailableOptions } from "@esfaenza/forms-and-validations";
|
|
2
3
|
/** Classe che identifica una colonna. Utilizzata in modalità "Colonne dinamiche" */
|
|
3
4
|
export declare class EsTableColumnsDefinition {
|
|
4
5
|
Description: string;
|
|
@@ -19,7 +20,7 @@ export declare class EsTableColumnsDefinition {
|
|
|
19
20
|
EditorName: string;
|
|
20
21
|
RendererName: string;
|
|
21
22
|
EditorOptions: {
|
|
22
|
-
[id
|
|
23
|
+
[id in AvailableOptions]?: any;
|
|
23
24
|
};
|
|
24
25
|
edits: {
|
|
25
26
|
[index: string]: {
|
|
@@ -50,7 +51,7 @@ export declare class EsTableColumnsDefinition {
|
|
|
50
51
|
id: string;
|
|
51
52
|
description: string;
|
|
52
53
|
}[], EditorName?: string, RendererName?: string, EditorOptions?: {
|
|
53
|
-
[id
|
|
54
|
+
[id in AvailableOptions]?: any;
|
|
54
55
|
});
|
|
55
56
|
static build(parsObj: any): EsTableColumnsDefinition;
|
|
56
57
|
/** Routerlink che verrà generato a runtime basandosi sulle informazioni di **routePath** e **routeParameterProperties** */
|
|
@@ -12,4 +12,8 @@ export declare class ReportColumn {
|
|
|
12
12
|
seq: number;
|
|
13
13
|
/** Ordinamento dei dati presentati */
|
|
14
14
|
order?: string;
|
|
15
|
+
/** Allineamento da tenere per questa colonna: **Center**, **Left** o **Right** */
|
|
16
|
+
alignment?: string;
|
|
17
|
+
/** Formato dei dati da presentare in questa colonna */
|
|
18
|
+
format?: string;
|
|
15
19
|
}
|