@fuentis/phoenix-ui 0.0.9-alpha.355 → 0.0.9-alpha.356
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.
|
@@ -2731,6 +2731,15 @@ function exportRowsToCsv(columns, rows, columnTypeMap, columnTypeEnum, t, fileNa
|
|
|
2731
2731
|
URL.revokeObjectURL(url);
|
|
2732
2732
|
}
|
|
2733
2733
|
|
|
2734
|
+
const DEFAULT_MORE_ACTIONS = {
|
|
2735
|
+
context: tableButtonContext.MORE,
|
|
2736
|
+
type: 'menu',
|
|
2737
|
+
buttonType: 'multiselect',
|
|
2738
|
+
items: [
|
|
2739
|
+
{ key: 'EXPORT_PDF', label: 'ACTION.EXPORT_PDF', icon: 'pi pi-file-pdf' },
|
|
2740
|
+
{ key: 'EXPORT_CSV', label: 'ACTION.EXPORT_CSV', icon: 'pi pi-file-excel' },
|
|
2741
|
+
],
|
|
2742
|
+
};
|
|
2734
2743
|
class TableComponent {
|
|
2735
2744
|
dt;
|
|
2736
2745
|
// This setter initializes the dataset and triggers the initial lazy load.
|
|
@@ -2777,6 +2786,12 @@ class TableComponent {
|
|
|
2777
2786
|
this.columnTypeMap[col.field] = col.columnType;
|
|
2778
2787
|
}
|
|
2779
2788
|
}
|
|
2789
|
+
if (!this.tableConfiguration?.moreActions) {
|
|
2790
|
+
this.tableConfiguration = {
|
|
2791
|
+
...this.tableConfiguration,
|
|
2792
|
+
moreActions: DEFAULT_MORE_ACTIONS
|
|
2793
|
+
};
|
|
2794
|
+
}
|
|
2780
2795
|
}
|
|
2781
2796
|
// Handles lazy loading logic, sorting and pagination based on the event.
|
|
2782
2797
|
loadLazyData(event) {
|