grav-svelte 0.0.40 → 0.0.41
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.
|
@@ -24,6 +24,7 @@ import { ModalContainer } from "../Modals/index.js";
|
|
|
24
24
|
// Event handlers from parent
|
|
25
25
|
export let onFilter: (filters: FiltrosI[]) => void;
|
|
26
26
|
export let onAdd: () => void;
|
|
27
|
+
export let onImport: () => void;
|
|
27
28
|
export let onReorder: (reorderedItems: any[]) => void = () => {};
|
|
28
29
|
|
|
29
30
|
function handleFiltroAplicado() {
|
|
@@ -34,6 +35,10 @@ import { ModalContainer } from "../Modals/index.js";
|
|
|
34
35
|
onAdd();
|
|
35
36
|
}
|
|
36
37
|
|
|
38
|
+
function handleImport() {
|
|
39
|
+
onImport();
|
|
40
|
+
}
|
|
41
|
+
|
|
37
42
|
interface PageChangeEvent {
|
|
38
43
|
detail: {
|
|
39
44
|
page: number;
|
|
@@ -86,6 +91,7 @@ import { ModalContainer } from "../Modals/index.js";
|
|
|
86
91
|
bind:Filtros
|
|
87
92
|
on:filtrar={handleFiltroAplicado}
|
|
88
93
|
on:add={handleAdd}
|
|
94
|
+
on:import={handleImport}
|
|
89
95
|
{showAddButton}
|
|
90
96
|
{showImportButton}
|
|
91
97
|
{Titulo_Crud}
|