vlite3 0.4.8 → 0.5.2
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/README.md +201 -100
- package/_virtual/Barcode.js +4 -0
- package/_virtual/CODE128.js +4 -0
- package/_virtual/CODE128A.js +4 -0
- package/_virtual/CODE128B.js +4 -0
- package/_virtual/CODE128C.js +4 -0
- package/_virtual/CODE128_AUTO.js +4 -0
- package/_virtual/CODE93.js +4 -0
- package/_virtual/CODE93FullASCII.js +4 -0
- package/_virtual/EAN.js +4 -0
- package/_virtual/EAN13.js +4 -0
- package/_virtual/EAN2.js +4 -0
- package/_virtual/EAN5.js +4 -0
- package/_virtual/EAN8.js +4 -0
- package/_virtual/ErrorHandler.js +4 -0
- package/_virtual/FileSaver.min.js +5 -0
- package/_virtual/FileSaver.min2.js +4 -0
- package/_virtual/ITF.js +4 -0
- package/_virtual/ITF14.js +4 -0
- package/_virtual/JsBarcode.js +7 -0
- package/_virtual/MSI.js +4 -0
- package/_virtual/MSI10.js +4 -0
- package/_virtual/MSI1010.js +4 -0
- package/_virtual/MSI11.js +4 -0
- package/_virtual/MSI1110.js +4 -0
- package/_virtual/UPC.js +4 -0
- package/_virtual/UPCE.js +4 -0
- package/_virtual/_commonjsHelpers.js +8 -0
- package/_virtual/alignment-pattern.js +4 -0
- package/_virtual/auto.js +4 -0
- package/_virtual/browser.js +7 -0
- package/_virtual/browser2.js +4 -0
- package/_virtual/canvas.js +4 -0
- package/_virtual/canvas2.js +4 -0
- package/_virtual/checksums.js +4 -0
- package/_virtual/constants.js +4 -0
- package/_virtual/constants2.js +4 -0
- package/_virtual/constants3.js +4 -0
- package/_virtual/constants4.js +4 -0
- package/_virtual/defaults.js +4 -0
- package/_virtual/dijkstra.js +4 -0
- package/_virtual/encoder.js +4 -0
- package/_virtual/error-correction-code.js +4 -0
- package/_virtual/error-correction-level.js +4 -0
- package/_virtual/exceptions.js +4 -0
- package/_virtual/finder-pattern.js +4 -0
- package/_virtual/fixOptions.js +4 -0
- package/_virtual/format-info.js +4 -0
- package/_virtual/galois-field.js +4 -0
- package/_virtual/getOptionsFromElement.js +4 -0
- package/_virtual/getRenderProperties.js +4 -0
- package/_virtual/index.js +4 -0
- package/_virtual/index10.js +4 -0
- package/_virtual/index11.js +4 -0
- package/_virtual/index2.js +4 -0
- package/_virtual/index3.js +4 -0
- package/_virtual/index4.js +4 -0
- package/_virtual/index5.js +4 -0
- package/_virtual/index6.js +4 -0
- package/_virtual/index7.js +4 -0
- package/_virtual/index8.js +4 -0
- package/_virtual/index9.js +4 -0
- package/_virtual/linearizeEncodings.js +4 -0
- package/_virtual/mask-pattern.js +4 -0
- package/_virtual/merge.js +4 -0
- package/_virtual/mode.js +4 -0
- package/_virtual/object.js +4 -0
- package/_virtual/optionsFromStrings.js +4 -0
- package/_virtual/papaparse.min.js +7 -0
- package/_virtual/papaparse.min2.js +4 -0
- package/_virtual/polynomial.js +4 -0
- package/_virtual/qrcode.js +4 -0
- package/_virtual/regex.js +4 -0
- package/_virtual/segments.js +4 -0
- package/_virtual/shared.js +4 -0
- package/_virtual/svg-tag.js +4 -0
- package/_virtual/svg.js +4 -0
- package/_virtual/utils.js +4 -0
- package/_virtual/utils2.js +4 -0
- package/_virtual/version-check.js +4 -0
- package/_virtual/version.js +4 -0
- package/components/Accordion/Accordion.vue.d.ts +7 -7
- package/components/Accordion/AccordionItem.vue.d.ts +4 -4
- package/components/Accordion/AccordionTrigger.vue.d.ts +2 -2
- package/components/Alert.vue.d.ts +1 -1
- package/components/Avatar.vue.d.ts +2 -2
- package/components/Avatar.vue.js +2 -2
- package/components/AvatarUploader/AvatarUploader.vue.d.ts +5 -5
- package/components/Badge.vue.d.ts +1 -1
- package/components/Barcode/Barcode.vue.d.ts +22 -0
- package/components/Barcode/Barcode.vue.js +58 -0
- package/components/Barcode/Barcode.vue2.js +4 -0
- package/components/Barcode/index.d.ts +2 -0
- package/components/Barcode/types.d.ts +5 -0
- package/components/Barcode/types.js +15 -0
- package/components/Breadcrumb/Breadcrumb.vue.d.ts +23 -0
- package/components/Breadcrumb/Breadcrumb.vue.js +7 -0
- package/components/Breadcrumb/Breadcrumb.vue2.js +84 -0
- package/components/Breadcrumb/BreadcrumbItem.vue.d.ts +27 -0
- package/components/Breadcrumb/BreadcrumbItem.vue.js +7 -0
- package/components/Breadcrumb/BreadcrumbItem.vue2.js +50 -0
- package/components/Breadcrumb/index.d.ts +3 -0
- package/components/Breadcrumb/types.d.ts +19 -0
- package/components/Button.vue.d.ts +4 -4
- package/components/Button.vue.js +32 -29
- package/components/ButtonGroup.vue.d.ts +1 -1
- package/components/Carousel/Carousel.vue.d.ts +58 -58
- package/components/CheckBox.vue.d.ts +2 -2
- package/components/Chip/Chip.vue.d.ts +3 -3
- package/components/ChoiceBox/ChoiceBox.vue.d.ts +4 -4
- package/components/ColorPicker/ColorPicker.vue.d.ts +3 -3
- package/components/ColorPicker/index.d.ts +1 -0
- package/components/CommandPaletteContent.vue.d.ts +15 -0
- package/components/CommandPaletteContent.vue.js +7 -0
- package/components/CommandPaletteContent.vue2.js +287 -0
- package/components/ConfirmationModal.vue.js +12 -10
- package/components/DataList/DataList.vue.d.ts +2 -2
- package/components/DataTable/DataTable.vue.d.ts +6 -6
- package/components/DataTable/DataTableRow.vue.d.ts +3 -3
- package/components/DatePicker.vue.d.ts +2 -2
- package/components/DatePicker.vue.js +7 -7
- package/components/DateRangePicker.vue.d.ts +29 -0
- package/components/DateRangePicker.vue.js +231 -0
- package/components/DateRangePicker.vue2.js +4 -0
- package/components/Dropdown/Dropdown.vue.d.ts +11 -6
- package/components/Dropdown/Dropdown.vue.js +147 -109
- package/components/Dropdown/DropdownBooleanItem.vue.js +9 -8
- package/components/Dropdown/DropdownGroupedLayout.vue.d.ts +1 -1
- package/components/Dropdown/DropdownGroupedLayout.vue.js +35 -34
- package/components/Dropdown/DropdownItem.vue.js +11 -10
- package/components/Dropdown/DropdownMenu.vue.d.ts +5 -3
- package/components/Dropdown/DropdownMenu.vue.js +114 -111
- package/components/Dropdown/DropdownTrigger.vue.d.ts +2 -0
- package/components/Dropdown/DropdownTrigger.vue.js +9 -7
- package/components/ExportData/ExportData.vue.d.ts +16 -0
- package/components/ExportData/ExportData.vue.js +135 -0
- package/components/ExportData/ExportData.vue2.js +4 -0
- package/components/ExportData/index.d.ts +2 -0
- package/components/ExportData/types.d.ts +17 -0
- package/components/FilePicker/FilePicker.vue.d.ts +5 -5
- package/components/Form/CustomFields.vue.d.ts +6 -6
- package/components/Form/CustomFields.vue.js +1 -1
- package/components/Form/Form.vue.d.ts +4 -5
- package/components/Form/Form.vue.js +2 -2
- package/components/Form/Form.vue2.js +221 -178
- package/components/Form/FormField.vue.d.ts +4 -3
- package/components/Form/FormField.vue.js +70 -62
- package/components/Form/FormFields.vue.d.ts +3 -1
- package/components/Form/FormFields.vue.js +2 -2
- package/components/Form/FormFields.vue2.js +105 -59
- package/components/GoogleLogin.vue.d.ts +2 -2
- package/components/Icon.vue.d.ts +2 -0
- package/components/Icon.vue.js +12 -11
- package/components/ImportData/ImportData.vue.d.ts +31 -0
- package/components/ImportData/ImportData.vue.js +242 -0
- package/components/ImportData/ImportData.vue2.js +4 -0
- package/components/ImportData/ImportStep1.vue.d.ts +23 -0
- package/components/ImportData/ImportStep1.vue.js +162 -0
- package/components/ImportData/ImportStep1.vue2.js +4 -0
- package/components/ImportData/ImportStep2.vue.d.ts +20 -0
- package/components/ImportData/ImportStep2.vue.js +98 -0
- package/components/ImportData/ImportStep2.vue2.js +4 -0
- package/components/ImportData/ImportStep3.vue.d.ts +6 -0
- package/components/ImportData/ImportStep3.vue.js +98 -0
- package/components/ImportData/ImportStep3.vue2.js +4 -0
- package/components/ImportData/ImportStep4.vue.d.ts +6 -0
- package/components/ImportData/ImportStep4.vue.js +139 -0
- package/components/ImportData/ImportStep4.vue2.js +4 -0
- package/components/ImportData/index.d.ts +2 -0
- package/components/ImportData/types.d.ts +51 -0
- package/components/Input.vue.d.ts +9 -9
- package/components/Input.vue.js +137 -120
- package/components/List/List.vue.d.ts +18 -0
- package/components/List/List.vue.js +189 -0
- package/components/List/List.vue2.js +4 -0
- package/components/List/ListFieldRow.vue.d.ts +35 -0
- package/components/List/ListFieldRow.vue.js +119 -0
- package/components/List/ListFieldRow.vue2.js +4 -0
- package/components/List/index.d.ts +4 -0
- package/components/List/types.d.ts +1 -0
- package/components/List/utils.d.ts +9 -0
- package/components/List/utils.js +64 -0
- package/components/Masonry/Masonry.vue.d.ts +2 -2
- package/components/Modal.vue.js +5 -122
- package/components/Modal.vue2.js +133 -2
- package/components/MultiSelect/MultiSelect.vue.d.ts +12 -9
- package/components/MultiSelect/MultiSelect.vue.js +101 -64
- package/components/Navbar/Navbar.vue.d.ts +48 -9
- package/components/Navbar/Navbar.vue.js +418 -146
- package/components/Navbar/NavbarItem.vue.d.ts +2 -2
- package/components/Navbar/NavbarTabs.vue.d.ts +21 -0
- package/components/Navbar/NavbarTabs.vue.js +179 -0
- package/components/Navbar/NavbarTabs.vue3.js +5 -0
- package/components/Navbar/index.d.ts +3 -0
- package/components/NavbarCommandPalette.vue.d.ts +48 -0
- package/components/NumberInput.vue.d.ts +8 -8
- package/components/OTPInput/OTPInput.vue.d.ts +7 -7
- package/components/Pagination/Pagination.vue.d.ts +1 -1
- package/components/PermissionMatrix/PermissionEditor.vue.d.ts +36 -0
- package/components/PermissionMatrix/PermissionEditor.vue.js +323 -0
- package/components/PermissionMatrix/PermissionEditor.vue2.js +4 -0
- package/components/PermissionMatrix/PermissionMatrix.vue.d.ts +15 -0
- package/components/PermissionMatrix/PermissionMatrix.vue.js +7 -0
- package/components/PermissionMatrix/PermissionMatrix.vue2.js +245 -0
- package/components/PermissionMatrix/index.d.ts +3 -0
- package/components/PermissionMatrix/types.d.ts +59 -0
- package/components/PricingPlan/PricingPlan.vue.d.ts +3 -3
- package/components/ProgressBar/ProgressBar.vue.d.ts +3 -3
- package/components/QRCode/QRCode.vue.d.ts +15 -0
- package/components/QRCode/QRCode.vue.js +38 -0
- package/components/QRCode/QRCode.vue2.js +4 -0
- package/components/QRCode/index.d.ts +1 -0
- package/components/Screen/Screen.vue.d.ts +232 -5
- package/components/Screen/Screen.vue.js +423 -271
- package/components/Screen/ScreenFilter.vue.d.ts +2 -2
- package/components/Screen/ScreenFilter.vue.js +9 -9
- package/components/Screen/types.d.ts +12 -0
- package/components/SidePanel.vue.d.ts +2 -2
- package/components/SidebarMenu/SidebarMenu.vue.d.ts +15 -2
- package/components/SidebarMenu/SidebarMenu.vue.js +117 -47
- package/components/SidebarMenu/SidebarMenuItem.vue.d.ts +2 -0
- package/components/SidebarMenu/SidebarMenuItem.vue.js +192 -175
- package/components/SidebarMenu/types.d.ts +32 -5
- package/components/Slider.vue.d.ts +2 -2
- package/components/Spinner/Spinner.vue.d.ts +2 -2
- package/components/Stats/Stats.vue.d.ts +14 -0
- package/components/Stats/Stats.vue.js +307 -0
- package/components/Stats/Stats.vue2.js +4 -0
- package/components/Stats/index.d.ts +2 -0
- package/components/Stats/types.d.ts +32 -0
- package/components/Switch.vue.d.ts +2 -1
- package/components/Switch.vue.js +4 -2
- package/components/Tabes/Tabes.vue.d.ts +3 -3
- package/components/Tabes/Tabes.vue.js +60 -57
- package/components/Tabes/types.d.ts +5 -0
- package/components/Textarea.vue.d.ts +3 -3
- package/components/{Timeline.vue.d.ts → Timeline/Timeline.vue.d.ts} +23 -2
- package/components/Timeline/Timeline.vue.js +92 -0
- package/components/Timeline/TimelineIndicator.vue.d.ts +9 -0
- package/components/Timeline/TimelineIndicator.vue.js +68 -0
- package/components/Timeline/TimelineIndicator.vue2.js +4 -0
- package/components/Timeline/TimelineItem.vue.d.ts +56 -0
- package/components/Timeline/TimelineItem.vue.js +173 -0
- package/components/Timeline/TimelineItem.vue2.js +4 -0
- package/components/Timeline/index.d.ts +3 -0
- package/components/Tooltip.vue.d.ts +2 -2
- package/components/Workbook/Sheet.vue.d.ts +2 -2
- package/components/Workbook/Workbook.vue.d.ts +3 -3
- package/components/index.d.ts +62 -0
- package/composables/useBreadcrumb.d.ts +17 -0
- package/composables/useBreadcrumb.js +27 -0
- package/core/config.d.ts +34 -0
- package/core/config.js +10 -7
- package/core/index.js +15 -8
- package/index.d.ts +55 -44
- package/index.js +243 -200
- package/package.json +12 -2
- package/router.d.ts +2 -0
- package/style.css +7 -5
- package/types/button.d.ts +1 -1
- package/types/config.type.d.ts +35 -0
- package/types/form.type.d.ts +3 -1
- package/types/index.d.ts +2 -1
- package/types/list.type.d.ts +57 -0
- package/types/navbar.type.d.ts +38 -1
- package/types/timeline.type.d.ts +14 -4
- package/components/Timeline.vue.js +0 -160
- /package/components/{Timeline.vue2.js → Timeline/Timeline.vue2.js} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as t, openBlock as a, createBlock as l, mergeProps as o } from "vue";
|
|
2
2
|
import n from "../Button.vue.js";
|
|
3
|
-
const s = /* @__PURE__ */
|
|
3
|
+
const s = /* @__PURE__ */ t({
|
|
4
4
|
__name: "DropdownTrigger",
|
|
5
5
|
props: {
|
|
6
6
|
selectedLabel: { default: "" },
|
|
@@ -8,17 +8,19 @@ const s = /* @__PURE__ */ a({
|
|
|
8
8
|
isOpen: { type: Boolean },
|
|
9
9
|
disabled: { type: Boolean, default: !1 },
|
|
10
10
|
className: {},
|
|
11
|
-
direction: { default: "ltr" }
|
|
11
|
+
direction: { default: "ltr" },
|
|
12
|
+
triggerProps: {}
|
|
12
13
|
},
|
|
13
14
|
setup(e) {
|
|
14
|
-
return (
|
|
15
|
+
return (r, i) => (a(), l(n, o({
|
|
15
16
|
text: e.selectedLabel || e.placeholder,
|
|
16
17
|
iconRight: "iconamoon:arrow-down-2",
|
|
17
18
|
variant: "outline",
|
|
18
19
|
disabled: e.disabled,
|
|
19
|
-
dir: e.direction
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
dir: e.direction
|
|
21
|
+
}, e.triggerProps, {
|
|
22
|
+
class: ["w-full justify-between! font-normal", e.className]
|
|
23
|
+
}), null, 16, ["text", "disabled", "dir", "class"]));
|
|
22
24
|
}
|
|
23
25
|
});
|
|
24
26
|
export {
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ExportDataProps, ExportFormat } from './types';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<ExportDataProps, {
|
|
3
|
+
exportData: (format: ExportFormat, close?: () => void) => Promise<void>;
|
|
4
|
+
availableFormats: import('vue').ComputedRef<{
|
|
5
|
+
label: string;
|
|
6
|
+
value: ExportFormat;
|
|
7
|
+
icon: string;
|
|
8
|
+
}[]>;
|
|
9
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExportDataProps> & Readonly<{}>, {
|
|
10
|
+
title: string;
|
|
11
|
+
mode: "frontend" | "backend";
|
|
12
|
+
formats: ExportFormat[];
|
|
13
|
+
buttonText: string;
|
|
14
|
+
buttonIcon: string;
|
|
15
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import { defineComponent as C, computed as k, openBlock as i, createElementBlock as g, createBlock as m, withCtx as f, createElementVNode as u, toDisplayString as y, Fragment as j, renderList as T, createVNode as F } from "vue";
|
|
2
|
+
import { utils as v, write as N } from "../../node_modules/xlsx/xlsx.js";
|
|
3
|
+
import A from "../../_virtual/papaparse.min.js";
|
|
4
|
+
import { F as b } from "../../_virtual/FileSaver.min.js";
|
|
5
|
+
import w from "../Button.vue.js";
|
|
6
|
+
import I from "../Modal.vue.js";
|
|
7
|
+
import O from "../Icon.vue.js";
|
|
8
|
+
import { showToast as d } from "../../composables/useNotifications.js";
|
|
9
|
+
import { $t as E } from "../../utils/i18n.js";
|
|
10
|
+
const V = { class: "px-1 py-1 text-sm" }, U = { class: "font-medium mb-3 text-muted-foreground" }, M = { class: "space-y-3" }, R = /* @__PURE__ */ C({
|
|
11
|
+
__name: "ExportData",
|
|
12
|
+
props: {
|
|
13
|
+
data: {},
|
|
14
|
+
title: { default: "Export Data" },
|
|
15
|
+
fields: {},
|
|
16
|
+
formats: { default: () => ["excel", "csv", "json"] },
|
|
17
|
+
filename: {},
|
|
18
|
+
buttonText: { default: "Export" },
|
|
19
|
+
buttonIcon: { default: "lucide:download" },
|
|
20
|
+
mode: { default: "frontend" },
|
|
21
|
+
onExport: {}
|
|
22
|
+
},
|
|
23
|
+
setup(n, { expose: D }) {
|
|
24
|
+
const a = n, l = (r, e, t) => {
|
|
25
|
+
const o = t ? E(r, t) : E(r);
|
|
26
|
+
return o !== r ? o : e;
|
|
27
|
+
}, S = (r, e) => {
|
|
28
|
+
if (!(!r || !e))
|
|
29
|
+
return e.includes(".") ? e.split(".").reduce((t, o) => t?.[o], r) : r[e];
|
|
30
|
+
}, h = k(() => [
|
|
31
|
+
{ label: "Excel (.xlsx)", value: "excel", icon: "lucide:file-spreadsheet" },
|
|
32
|
+
{ label: "CSV (.csv)", value: "csv", icon: "lucide:file-text" },
|
|
33
|
+
{ label: "JSON (.json)", value: "json", icon: "lucide:file-json" }
|
|
34
|
+
].filter((e) => a.formats.includes(e.value))), $ = () => a.data.map((r) => {
|
|
35
|
+
const e = {};
|
|
36
|
+
return a.fields.forEach((t) => {
|
|
37
|
+
const o = S(r, t.field);
|
|
38
|
+
t.format ? e[t.title] = t.format(o, r) : e[t.title] = o ?? "";
|
|
39
|
+
}), e;
|
|
40
|
+
}), p = async (r, e) => {
|
|
41
|
+
if (a.mode === "backend" && a.onExport)
|
|
42
|
+
try {
|
|
43
|
+
await a.onExport(r), e && e();
|
|
44
|
+
return;
|
|
45
|
+
} catch (t) {
|
|
46
|
+
console.error("Backend export error:", t), d(l("vlite.exportData.error", "An error occurred while exporting data."), "error");
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
if (!a.data || a.data.length === 0) {
|
|
50
|
+
d(l("vlite.exportData.noData", "No data available to export."), "warning");
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
try {
|
|
54
|
+
const t = a.filename ? a.filename : `${a.title.toLowerCase().replace(/\s+/g, "-")}-${(/* @__PURE__ */ new Date()).toISOString().split("T")[0]}`, o = $();
|
|
55
|
+
switch (r) {
|
|
56
|
+
case "excel": {
|
|
57
|
+
const s = v.book_new(), c = v.json_to_sheet(o);
|
|
58
|
+
v.book_append_sheet(s, c, a.title.substring(0, 31));
|
|
59
|
+
const x = N(s, { bookType: "xlsx", type: "array" }), _ = new Blob([x], { type: "application/octet-stream" });
|
|
60
|
+
b.saveAs(_, `${t}.xlsx`);
|
|
61
|
+
break;
|
|
62
|
+
}
|
|
63
|
+
case "csv": {
|
|
64
|
+
const c = A.unparse(o), x = new Blob(["\uFEFF" + c], { type: "text/csv;charset=utf-8;" });
|
|
65
|
+
b.saveAs(x, `${t}.csv`);
|
|
66
|
+
break;
|
|
67
|
+
}
|
|
68
|
+
case "json": {
|
|
69
|
+
const s = JSON.stringify(o, null, 2), c = new Blob([s], { type: "application/json" });
|
|
70
|
+
b.saveAs(c, `${t}.json`);
|
|
71
|
+
break;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
d(
|
|
75
|
+
l("vlite.exportData.success", `Data exported successfully as ${r.toUpperCase()}`, {
|
|
76
|
+
format: r.toUpperCase()
|
|
77
|
+
}),
|
|
78
|
+
"success"
|
|
79
|
+
), e && e();
|
|
80
|
+
} catch (t) {
|
|
81
|
+
console.error("Export error:", t), d(l("vlite.exportData.error", "An error occurred while exporting data."), "error");
|
|
82
|
+
}
|
|
83
|
+
}, B = k(() => l("vlite.exportData.selectFormat", "Select Export Format"));
|
|
84
|
+
return D({
|
|
85
|
+
exportData: p,
|
|
86
|
+
availableFormats: h
|
|
87
|
+
}), (r, e) => (i(), g("div", null, [
|
|
88
|
+
n.formats.length === 1 ? (i(), m(w, {
|
|
89
|
+
key: 0,
|
|
90
|
+
text: n.buttonText,
|
|
91
|
+
icon: n.buttonIcon,
|
|
92
|
+
variant: "outline",
|
|
93
|
+
onClick: e[0] || (e[0] = (t) => p(n.formats[0]))
|
|
94
|
+
}, null, 8, ["text", "icon"])) : (i(), m(I, {
|
|
95
|
+
key: 1,
|
|
96
|
+
title: n.title,
|
|
97
|
+
"max-width": "sm:max-w-[400px]"
|
|
98
|
+
}, {
|
|
99
|
+
trigger: f(() => [
|
|
100
|
+
F(w, {
|
|
101
|
+
text: n.buttonText,
|
|
102
|
+
icon: n.buttonIcon,
|
|
103
|
+
variant: "outline"
|
|
104
|
+
}, null, 8, ["text", "icon"])
|
|
105
|
+
]),
|
|
106
|
+
default: f(({ close: t }) => [
|
|
107
|
+
u("div", V, [
|
|
108
|
+
u("h6", U, y(B.value), 1),
|
|
109
|
+
u("div", M, [
|
|
110
|
+
(i(!0), g(j, null, T(h.value, (o) => (i(), m(w, {
|
|
111
|
+
key: o.value,
|
|
112
|
+
variant: "outline",
|
|
113
|
+
class: "w-full flex items-center justify-start gap-3 h-12",
|
|
114
|
+
onClick: (s) => p(o.value, t)
|
|
115
|
+
}, {
|
|
116
|
+
default: f(() => [
|
|
117
|
+
F(O, {
|
|
118
|
+
icon: o.icon,
|
|
119
|
+
class: "text-muted-foreground h-5 w-5"
|
|
120
|
+
}, null, 8, ["icon"]),
|
|
121
|
+
u("span", null, y(o.label), 1)
|
|
122
|
+
]),
|
|
123
|
+
_: 2
|
|
124
|
+
}, 1032, ["onClick"]))), 128))
|
|
125
|
+
])
|
|
126
|
+
])
|
|
127
|
+
]),
|
|
128
|
+
_: 1
|
|
129
|
+
}, 8, ["title"]))
|
|
130
|
+
]));
|
|
131
|
+
}
|
|
132
|
+
});
|
|
133
|
+
export {
|
|
134
|
+
R as default
|
|
135
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface ExportField {
|
|
2
|
+
field: string;
|
|
3
|
+
title: string;
|
|
4
|
+
format?: (value: any, row: any) => any;
|
|
5
|
+
}
|
|
6
|
+
export type ExportFormat = 'excel' | 'csv' | 'json';
|
|
7
|
+
export interface ExportDataProps {
|
|
8
|
+
data: any[];
|
|
9
|
+
title?: string;
|
|
10
|
+
fields: ExportField[];
|
|
11
|
+
formats?: ExportFormat[];
|
|
12
|
+
filename?: string;
|
|
13
|
+
buttonText?: string;
|
|
14
|
+
buttonIcon?: string;
|
|
15
|
+
mode?: 'frontend' | 'backend';
|
|
16
|
+
onExport?: (format: ExportFormat) => Promise<void> | void;
|
|
17
|
+
}
|
|
@@ -39,21 +39,21 @@ declare function __VLS_template(): {
|
|
|
39
39
|
};
|
|
40
40
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
41
41
|
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
42
|
-
"update:modelValue": (value: FilePickerValue | FilePickerValue[]) => any;
|
|
43
42
|
change: (value: FilePickerValue | FilePickerValue[]) => any;
|
|
44
43
|
error: (error: string) => any;
|
|
44
|
+
"update:modelValue": (value: FilePickerValue | FilePickerValue[]) => any;
|
|
45
45
|
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
46
|
-
"onUpdate:modelValue"?: (value: FilePickerValue | FilePickerValue[]) => any;
|
|
47
46
|
onChange?: (value: FilePickerValue | FilePickerValue[]) => any;
|
|
48
47
|
onError?: (error: string) => any;
|
|
48
|
+
"onUpdate:modelValue"?: (value: FilePickerValue | FilePickerValue[]) => any;
|
|
49
49
|
}>, {
|
|
50
|
-
disabled: boolean;
|
|
51
|
-
size: InputSize;
|
|
52
50
|
variant: "dropzone" | "input";
|
|
53
|
-
|
|
51
|
+
size: InputSize;
|
|
54
52
|
rounded: InputRounded;
|
|
53
|
+
disabled: boolean;
|
|
55
54
|
loading: boolean;
|
|
56
55
|
multiSelect: boolean;
|
|
56
|
+
modelValue: FilePickerValue | FilePickerValue[] | null;
|
|
57
57
|
fileTypes: string[];
|
|
58
58
|
returnFormat: "file" | "base64";
|
|
59
59
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
@@ -20,19 +20,19 @@ interface Props {
|
|
|
20
20
|
isUpdate?: boolean;
|
|
21
21
|
}
|
|
22
22
|
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
23
|
-
"update:modelValue": (value: Record<string, any>[]) => any;
|
|
24
23
|
change: (value: Record<string, any>[]) => any;
|
|
24
|
+
"update:modelValue": (value: Record<string, any>[]) => any;
|
|
25
25
|
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
26
|
-
"onUpdate:modelValue"?: (value: Record<string, any>[]) => any;
|
|
27
26
|
onChange?: (value: Record<string, any>[]) => any;
|
|
27
|
+
"onUpdate:modelValue"?: (value: Record<string, any>[]) => any;
|
|
28
28
|
}>, {
|
|
29
|
-
disabled: boolean;
|
|
30
|
-
size: InputSize;
|
|
31
29
|
variant: InputVariant;
|
|
32
|
-
|
|
30
|
+
size: InputSize;
|
|
33
31
|
rounded: InputRounded;
|
|
34
|
-
|
|
32
|
+
disabled: boolean;
|
|
35
33
|
isUpdate: boolean;
|
|
34
|
+
modelValue: Record<string, any>[];
|
|
35
|
+
headers: string[];
|
|
36
36
|
minRows: number;
|
|
37
37
|
addButtonText: string;
|
|
38
38
|
showRowNumbers: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./CustomFields.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-c9831df1"]]);
|
|
5
5
|
export {
|
|
6
6
|
s as default
|
|
7
7
|
};
|
|
@@ -46,6 +46,8 @@ interface Props {
|
|
|
46
46
|
timelineTextPosition?: TimelineTextPosition;
|
|
47
47
|
/** Fields to explicitly include in the submit payload */
|
|
48
48
|
emitFields?: string[];
|
|
49
|
+
/** Show asterisk for required fields */
|
|
50
|
+
showRequiredAsterisk?: boolean;
|
|
49
51
|
}
|
|
50
52
|
declare function __VLS_template(): {
|
|
51
53
|
attrs: Partial<{}>;
|
|
@@ -75,16 +77,13 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {},
|
|
|
75
77
|
values: Record<string, any>;
|
|
76
78
|
footer: boolean;
|
|
77
79
|
class: string;
|
|
78
|
-
size: InputSize;
|
|
79
|
-
variant: InputVariant;
|
|
80
|
-
rounded: InputRounded;
|
|
81
80
|
loading: boolean;
|
|
81
|
+
isUpdate: boolean;
|
|
82
|
+
folderId: string;
|
|
82
83
|
className: string;
|
|
83
84
|
headerClass: string;
|
|
84
85
|
footerClass: string;
|
|
85
86
|
cancelText: string;
|
|
86
|
-
isUpdate: boolean;
|
|
87
|
-
folderId: string;
|
|
88
87
|
groupsHeadings: string[];
|
|
89
88
|
groupHeadingsDescription: string[];
|
|
90
89
|
submitText: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Form.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-655cd96c"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|