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
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ImportProgress } from './types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
progress: ImportProgress;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import { defineComponent as $, computed as s, ref as B, openBlock as d, createElementBlock as c, createElementVNode as e, toDisplayString as t, createVNode as m, createTextVNode as j, Fragment as I, renderList as P, createCommentVNode as p } from "vue";
|
|
2
|
+
import f from "../Icon.vue.js";
|
|
3
|
+
import { $t as v } from "../../utils/i18n.js";
|
|
4
|
+
const T = { class: "space-y-6" }, F = {
|
|
5
|
+
key: 0,
|
|
6
|
+
class: "bg-card rounded-2xl p-8 border border-border shadow-sm"
|
|
7
|
+
}, H = { class: "relative flex justify-center items-center pt-8 pb-4" }, R = { class: "relative w-36 h-36" }, U = {
|
|
8
|
+
class: "w-full h-full absolute top-0 left-0 text-primary transition-all duration-300 ease-out",
|
|
9
|
+
viewBox: "0 0 100 100"
|
|
10
|
+
}, L = ["stroke-dasharray"], q = { class: "absolute inset-0 flex flex-col items-center justify-center" }, z = { class: "text-3xl font-bold text-foreground" }, A = { class: "text-xs text-muted-foreground mt-1" }, G = { class: "text-center mt-4 space-y-1" }, J = { class: "text-lg font-medium text-foreground" }, K = { class: "text-sm text-muted-foreground" }, M = {
|
|
11
|
+
key: 1,
|
|
12
|
+
class: "bg-card rounded-2xl p-8 border border-border shadow-sm"
|
|
13
|
+
}, O = { class: "text-center mb-8" }, Q = { class: "inline-flex items-center justify-center w-16 h-16 bg-success/10 rounded-full mb-4" }, W = { class: "text-xl font-bold text-foreground" }, X = { class: "text-muted-foreground mt-1" }, Y = { class: "grid grid-cols-2 md:grid-cols-4 gap-4 max-w-3xl mx-auto" }, Z = { class: "bg-background rounded-xl p-4 border border-border flex flex-col items-center text-center" }, ee = { class: "text-2xl font-bold text-foreground" }, te = { class: "text-xs font-medium text-muted-foreground uppercase tracking-wider mt-1" }, se = { class: "bg-background rounded-xl p-4 border border-border flex flex-col items-center text-center" }, oe = { class: "text-2xl font-bold text-success" }, re = { class: "text-xs font-medium text-muted-foreground uppercase tracking-wider mt-1" }, de = { class: "bg-background rounded-xl p-4 border border-border flex flex-col items-center text-center" }, ce = { class: "text-2xl font-bold text-primary" }, le = { class: "text-xs font-medium text-muted-foreground uppercase tracking-wider mt-1" }, ne = { class: "bg-background rounded-xl p-4 border border-border flex flex-col items-center text-center" }, ie = { class: "text-2xl font-bold text-warning" }, ae = { class: "text-xs font-medium text-muted-foreground uppercase tracking-wider mt-1" }, ue = {
|
|
14
|
+
key: 0,
|
|
15
|
+
class: "mt-6 text-center"
|
|
16
|
+
}, xe = { class: "inline-flex items-center gap-2 px-4 py-2 bg-destructive/10 text-destructive rounded-lg border border-destructive/20 font-medium" }, me = {
|
|
17
|
+
key: 0,
|
|
18
|
+
class: "mt-4 text-left"
|
|
19
|
+
}, pe = {
|
|
20
|
+
key: 0,
|
|
21
|
+
class: "mt-3 max-h-48 overflow-y-auto bg-destructive/5 rounded-lg border border-destructive/10 p-3 text-sm"
|
|
22
|
+
}, fe = { class: "space-y-2" }, ve = { class: "font-semibold shrink-0" }, be = /* @__PURE__ */ $({
|
|
23
|
+
__name: "ImportStep4",
|
|
24
|
+
props: {
|
|
25
|
+
progress: {}
|
|
26
|
+
},
|
|
27
|
+
setup(o) {
|
|
28
|
+
const i = o, r = (u, l, n) => {
|
|
29
|
+
const x = n ? v(u, n) : v(u);
|
|
30
|
+
return x !== u ? x : l;
|
|
31
|
+
}, g = s(() => i.progress.percentage >= 100), a = B(!1), h = s(() => r("vlite.importData.processing", "Processing Data...")), _ = s(() => r("vlite.importData.doNotClose", "Please do not close this window.")), b = s(() => r("vlite.importData.complete", "Import Complete")), w = s(() => r("vlite.importData.successCount", `Successfully processed ${i.progress.total} records.`, { total: i.progress.total })), k = s(() => r("vlite.importData.total", "Total")), y = s(() => r("vlite.importData.created", "Created")), D = s(() => r("vlite.importData.updated", "Updated")), C = s(() => r("vlite.importData.skipped", "Skipped")), E = s(() => r("vlite.importData.failedCount", `${i.progress.failed} records failed to import`, { count: i.progress.failed })), N = s(() => r("vlite.importData.hideErrors", "Hide Error Details")), S = s(() => r("vlite.importData.viewErrors", "View Error Details")), V = s(() => r("vlite.importData.row", "Row"));
|
|
32
|
+
return (u, l) => (d(), c("div", T, [
|
|
33
|
+
g.value ? (d(), c("div", M, [
|
|
34
|
+
e("div", O, [
|
|
35
|
+
e("div", Q, [
|
|
36
|
+
m(f, {
|
|
37
|
+
icon: "lucide:check",
|
|
38
|
+
class: "w-8 h-8 text-success"
|
|
39
|
+
})
|
|
40
|
+
]),
|
|
41
|
+
e("h3", W, t(b.value), 1),
|
|
42
|
+
e("p", X, t(w.value), 1)
|
|
43
|
+
]),
|
|
44
|
+
e("div", Y, [
|
|
45
|
+
e("div", Z, [
|
|
46
|
+
e("span", ee, t(o.progress.total), 1),
|
|
47
|
+
e("span", te, t(k.value), 1)
|
|
48
|
+
]),
|
|
49
|
+
e("div", se, [
|
|
50
|
+
e("span", oe, t(o.progress.created), 1),
|
|
51
|
+
e("span", re, t(y.value), 1)
|
|
52
|
+
]),
|
|
53
|
+
e("div", de, [
|
|
54
|
+
e("span", ce, t(o.progress.updated), 1),
|
|
55
|
+
e("span", le, t(D.value), 1)
|
|
56
|
+
]),
|
|
57
|
+
e("div", ne, [
|
|
58
|
+
e("span", ie, t(o.progress.skipped), 1),
|
|
59
|
+
e("span", ae, t(C.value), 1)
|
|
60
|
+
])
|
|
61
|
+
]),
|
|
62
|
+
o.progress.failed > 0 ? (d(), c("div", ue, [
|
|
63
|
+
e("div", xe, [
|
|
64
|
+
m(f, {
|
|
65
|
+
icon: "lucide:alert-triangle",
|
|
66
|
+
class: "w-4 h-4"
|
|
67
|
+
}),
|
|
68
|
+
e("span", null, t(E.value), 1)
|
|
69
|
+
]),
|
|
70
|
+
o.progress.errors?.length ? (d(), c("div", me, [
|
|
71
|
+
e("button", {
|
|
72
|
+
onClick: l[0] || (l[0] = (n) => a.value = !a.value),
|
|
73
|
+
class: "text-sm font-medium text-destructive hover:underline inline-flex items-center gap-1"
|
|
74
|
+
}, [
|
|
75
|
+
j(t(a.value ? N.value : S.value) + " ", 1),
|
|
76
|
+
m(f, {
|
|
77
|
+
icon: a.value ? "lucide:chevron-up" : "lucide:chevron-down",
|
|
78
|
+
class: "w-4 h-4"
|
|
79
|
+
}, null, 8, ["icon"])
|
|
80
|
+
]),
|
|
81
|
+
a.value ? (d(), c("div", pe, [
|
|
82
|
+
e("ul", fe, [
|
|
83
|
+
(d(!0), c(I, null, P(o.progress.errors, (n, x) => (d(), c("li", {
|
|
84
|
+
key: x,
|
|
85
|
+
class: "text-destructive/80 flex items-start gap-2"
|
|
86
|
+
}, [
|
|
87
|
+
e("span", ve, t(V.value) + " " + t(n.record) + ":", 1),
|
|
88
|
+
e("span", null, t(n.message), 1)
|
|
89
|
+
]))), 128))
|
|
90
|
+
])
|
|
91
|
+
])) : p("", !0)
|
|
92
|
+
])) : p("", !0)
|
|
93
|
+
])) : p("", !0)
|
|
94
|
+
])) : (d(), c("div", F, [
|
|
95
|
+
e("div", H, [
|
|
96
|
+
e("div", R, [
|
|
97
|
+
l[1] || (l[1] = e("svg", {
|
|
98
|
+
class: "w-full h-full text-muted",
|
|
99
|
+
viewBox: "0 0 100 100"
|
|
100
|
+
}, [
|
|
101
|
+
e("circle", {
|
|
102
|
+
"stroke-width": "6",
|
|
103
|
+
stroke: "currentColor",
|
|
104
|
+
fill: "transparent",
|
|
105
|
+
r: "42",
|
|
106
|
+
cx: "50",
|
|
107
|
+
cy: "50"
|
|
108
|
+
})
|
|
109
|
+
], -1)),
|
|
110
|
+
(d(), c("svg", U, [
|
|
111
|
+
e("circle", {
|
|
112
|
+
"stroke-width": "6",
|
|
113
|
+
stroke: "currentColor",
|
|
114
|
+
"stroke-linecap": "round",
|
|
115
|
+
fill: "transparent",
|
|
116
|
+
r: "42",
|
|
117
|
+
cx: "50",
|
|
118
|
+
cy: "50",
|
|
119
|
+
"stroke-dasharray": `${o.progress.percentage * 263 / 100} 263`,
|
|
120
|
+
transform: "rotate(-90 50 50)"
|
|
121
|
+
}, null, 8, L)
|
|
122
|
+
])),
|
|
123
|
+
e("div", q, [
|
|
124
|
+
e("div", z, t(o.progress.percentage) + "%", 1),
|
|
125
|
+
e("div", A, t(o.progress.processed) + " / " + t(o.progress.total), 1)
|
|
126
|
+
])
|
|
127
|
+
])
|
|
128
|
+
]),
|
|
129
|
+
e("div", G, [
|
|
130
|
+
e("h3", J, t(h.value), 1),
|
|
131
|
+
e("p", K, t(_.value), 1)
|
|
132
|
+
])
|
|
133
|
+
]))
|
|
134
|
+
]));
|
|
135
|
+
}
|
|
136
|
+
});
|
|
137
|
+
export {
|
|
138
|
+
be as default
|
|
139
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
export interface ImportField {
|
|
2
|
+
field: string;
|
|
3
|
+
title: string;
|
|
4
|
+
required?: boolean;
|
|
5
|
+
matchings?: string[];
|
|
6
|
+
expectedType?: 'string' | 'number' | 'boolean' | 'array' | 'object';
|
|
7
|
+
defaultValue?: any;
|
|
8
|
+
onMatch?: (value: any) => any;
|
|
9
|
+
}
|
|
10
|
+
export interface ImportProgress {
|
|
11
|
+
total: number;
|
|
12
|
+
processed: number;
|
|
13
|
+
created: number;
|
|
14
|
+
updated: number;
|
|
15
|
+
skipped: number;
|
|
16
|
+
failed: number;
|
|
17
|
+
percentage: number;
|
|
18
|
+
errors: {
|
|
19
|
+
record: string;
|
|
20
|
+
message: string;
|
|
21
|
+
}[];
|
|
22
|
+
}
|
|
23
|
+
export interface ImportOptions {
|
|
24
|
+
existing: 'add' | 'replace' | 'skip';
|
|
25
|
+
new: 'create' | 'skip';
|
|
26
|
+
}
|
|
27
|
+
export interface ImportBatchPayload {
|
|
28
|
+
data: any[];
|
|
29
|
+
options: ImportOptions;
|
|
30
|
+
}
|
|
31
|
+
export interface ImportBatchResult {
|
|
32
|
+
processed: number;
|
|
33
|
+
created: number;
|
|
34
|
+
updated: number;
|
|
35
|
+
skipped: number;
|
|
36
|
+
failed: number;
|
|
37
|
+
errors: {
|
|
38
|
+
record: string;
|
|
39
|
+
message: string;
|
|
40
|
+
}[];
|
|
41
|
+
}
|
|
42
|
+
export interface ImportDataProps {
|
|
43
|
+
title?: string;
|
|
44
|
+
titleI18n?: string;
|
|
45
|
+
buttonText?: string;
|
|
46
|
+
buttonIcon?: string;
|
|
47
|
+
fields: ImportField[];
|
|
48
|
+
batchSize?: number;
|
|
49
|
+
processBatch: (payload: ImportBatchPayload) => Promise<ImportBatchResult>;
|
|
50
|
+
onComplete?: () => void;
|
|
51
|
+
}
|
|
@@ -12,28 +12,28 @@ declare function __VLS_template(): {
|
|
|
12
12
|
};
|
|
13
13
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
14
14
|
declare const __VLS_component: import('vue').DefineComponent<InputProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
15
|
-
"update:modelValue": (value: string | number) => any;
|
|
16
|
-
change: (value: string | number) => any;
|
|
17
15
|
blur: (event: FocusEvent) => any;
|
|
16
|
+
change: (value: string | number) => any;
|
|
18
17
|
focus: (event: FocusEvent) => any;
|
|
18
|
+
"update:modelValue": (value: string | number) => any;
|
|
19
19
|
"click:icon": (event: MouseEvent) => any;
|
|
20
20
|
"click:icon-right": (event: MouseEvent) => any;
|
|
21
21
|
}, string, import('vue').PublicProps, Readonly<InputProps> & Readonly<{
|
|
22
|
-
"onUpdate:modelValue"?: (value: string | number) => any;
|
|
23
|
-
onChange?: (value: string | number) => any;
|
|
24
22
|
onBlur?: (event: FocusEvent) => any;
|
|
23
|
+
onChange?: (value: string | number) => any;
|
|
25
24
|
onFocus?: (event: FocusEvent) => any;
|
|
25
|
+
"onUpdate:modelValue"?: (value: string | number) => any;
|
|
26
26
|
"onClick:icon"?: (event: MouseEvent) => any;
|
|
27
27
|
"onClick:icon-right"?: (event: MouseEvent) => any;
|
|
28
28
|
}>, {
|
|
29
|
-
disabled: boolean;
|
|
30
|
-
type: import('../types').InputType;
|
|
31
|
-
class: string;
|
|
32
|
-
size: InputSize;
|
|
33
29
|
variant: InputVariant;
|
|
34
|
-
|
|
30
|
+
size: InputSize;
|
|
35
31
|
rounded: InputRounded;
|
|
32
|
+
type: import('../types').InputType;
|
|
33
|
+
class: string;
|
|
34
|
+
disabled: boolean;
|
|
36
35
|
loading: boolean;
|
|
36
|
+
modelValue: string | number;
|
|
37
37
|
rows: number;
|
|
38
38
|
showClearButton: boolean;
|
|
39
39
|
autofocus: boolean;
|