@fuentis/phoenix-ui 0.0.9-alpha.363 → 0.0.9-alpha.366
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.
|
@@ -1,36 +1,37 @@
|
|
|
1
|
-
import { TableConfiguration } from
|
|
1
|
+
import { TableConfiguration } from './dataTable.interface';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* @todo Check DATE format consistency -> there is a cell-pipe for that.
|
|
6
|
-
* @todo Add filter persistence in localStorage.
|
|
7
|
-
* @todo Fix frozen columns behavior.
|
|
8
|
-
*
|
|
9
|
-
* @todo Unauthorized API population for multi-select filters:
|
|
10
|
-
* - Entities
|
|
11
|
-
* - Catalogs
|
|
12
|
-
* - Statuses
|
|
13
|
-
* - Responsibles
|
|
14
|
-
* - Types
|
|
15
|
-
* - CIA attributes
|
|
3
|
+
* Splits table actions into context-specific arrays (global, row, bulk, more).
|
|
4
|
+
* This controls where buttons will appear (toolbar, row menu, etc.).
|
|
16
5
|
*/
|
|
17
6
|
export declare function resolveActions(value: TableConfiguration): any;
|
|
7
|
+
/**
|
|
8
|
+
* Defines a column that can be exported (visible in PDF/CSV).
|
|
9
|
+
*/
|
|
18
10
|
export interface ExportColumn {
|
|
19
11
|
field: string;
|
|
20
12
|
header: string;
|
|
21
13
|
columnType?: string;
|
|
22
14
|
}
|
|
15
|
+
export interface ExportOptions {
|
|
16
|
+
locale?: string;
|
|
17
|
+
delimiter?: ',' | ';';
|
|
18
|
+
}
|
|
23
19
|
/**
|
|
24
20
|
* Exports table rows to a PDF file.
|
|
25
|
-
* - Uses
|
|
26
|
-
* -
|
|
27
|
-
* -
|
|
21
|
+
* - Uses jsPDF + autoTable
|
|
22
|
+
* - Respects only visible columns
|
|
23
|
+
* - Translates headers with provided translation function
|
|
28
24
|
*/
|
|
29
|
-
export declare function exportRowsToPdf(columns: ExportColumn[], rows: any[], columnTypeMap: Record<string, string>, columnTypeEnum: any, t: (key: string) => string, fileName?: string): void;
|
|
25
|
+
export declare function exportRowsToPdf(columns: ExportColumn[], rows: any[], columnTypeMap: Record<string, string>, columnTypeEnum: any, t: (key: string) => string, fileName?: string, options?: ExportOptions): void;
|
|
30
26
|
/**
|
|
31
27
|
* Exports table rows to a CSV file.
|
|
32
|
-
* -
|
|
33
|
-
* - Translates headers via provided translation function
|
|
34
|
-
* - Escapes
|
|
28
|
+
* - Includes only visible columns
|
|
29
|
+
* - Translates headers via provided translation function
|
|
30
|
+
* - Escapes quotes and adds UTF-8 BOM (so Excel reads special chars correctly)
|
|
31
|
+
*/
|
|
32
|
+
export declare function exportRowsToCsv(columns: ExportColumn[], rows: any[], columnTypeMap: Record<string, string>, columnTypeEnum: any, t: (key: string) => string, fileName?: string, options?: ExportOptions): void;
|
|
33
|
+
/**
|
|
34
|
+
* Builds a file name with pattern: tableKey_YYYY-MM-DD_HH-mm.ext
|
|
35
|
+
* Example: risks_2025-09-10_14-32.csv
|
|
35
36
|
*/
|
|
36
|
-
export declare function
|
|
37
|
+
export declare function buildFileName(baseKey: string, ext: string): string;
|