@fuentis/phoenix-ui 0.0.9-alpha.367 → 0.0.9-alpha.369
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,11 +1,10 @@
|
|
|
1
1
|
import { TableConfiguration } from './dataTable.interface';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
* This controls where buttons will appear (toolbar, row menu, etc.).
|
|
3
|
+
* Split actions by context (controls placement in toolbar/rows).
|
|
5
4
|
*/
|
|
6
5
|
export declare function resolveActions(value: TableConfiguration): any;
|
|
7
6
|
/**
|
|
8
|
-
*
|
|
7
|
+
* Column contract used for export (PDF/CSV).
|
|
9
8
|
*/
|
|
10
9
|
export interface ExportColumn {
|
|
11
10
|
field: string;
|
|
@@ -17,21 +16,22 @@ export interface ExportOptions {
|
|
|
17
16
|
delimiter?: ',' | ';';
|
|
18
17
|
}
|
|
19
18
|
/**
|
|
20
|
-
*
|
|
21
|
-
* - Uses
|
|
22
|
-
* -
|
|
23
|
-
* -
|
|
19
|
+
* Export rows to PDF (jsPDF + autoTable).
|
|
20
|
+
* - Uses visible columns only
|
|
21
|
+
* - Translates headers via provided translator
|
|
22
|
+
* - Wraps the “Scope” column content for long lists
|
|
24
23
|
*/
|
|
25
24
|
export declare function exportRowsToPdf(columns: ExportColumn[], rows: any[], columnTypeMap: Record<string, string>, columnTypeEnum: any, t: (key: string) => string, fileName?: string, options?: ExportOptions): void;
|
|
26
25
|
/**
|
|
27
|
-
*
|
|
28
|
-
* -
|
|
29
|
-
* - Translates headers
|
|
30
|
-
* -
|
|
26
|
+
* Export rows to CSV.
|
|
27
|
+
* - Uses visible columns only
|
|
28
|
+
* - Translates headers
|
|
29
|
+
* - Adds UTF-8 BOM so Excel renders diacritics/umlauts correctly
|
|
30
|
+
* - Preserves multi-line cells (LIST → each item on a new line)
|
|
31
31
|
*/
|
|
32
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
33
|
/**
|
|
34
|
-
*
|
|
34
|
+
* Build file name as: tableKey_YYYY-MM-DD_HH-mm.ext
|
|
35
35
|
* Example: risks_2025-09-10_14-32.csv
|
|
36
36
|
*/
|
|
37
37
|
export declare function buildFileName(baseKey: string, ext: string): string;
|