vlite3 1.1.2 → 1.1.4
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/components/AttachmentsList/AttachmentsList.vue.d.ts +1 -1
- package/components/AttachmentsList/AttachmentsList.vue.js +237 -163
- package/components/Avatar.vue.js +1 -1
- package/components/AvatarUploader/AvatarUploader.vue.js +40 -37
- package/components/Button.vue.js +30 -28
- package/components/Carousel/Carousel.vue.d.ts +2 -2
- package/components/CategoryManager/CategoryManager.vue.d.ts +10 -2
- package/components/CategoryManager/CategoryManager.vue.js +137 -118
- package/components/CategoryManager/CategoryNode.vue.d.ts +2 -0
- package/components/CategoryManager/CategoryNode.vue.js +93 -88
- package/components/Chat/ChatBubble.vue.js +22 -22
- package/components/CheckBox.vue.js +29 -28
- package/components/CommandPalette/CommandPaletteContent.vue2.js +1 -1
- package/components/CommandPalette/{CommandPaletteItem.vue.js → CommandPaletteItem.vue2.js} +1 -1
- package/components/ConfirmationModal.vue.js +30 -28
- package/components/CopyButton.vue.d.ts +50 -0
- package/components/CopyButton.vue.js +69 -0
- package/components/CopyButton.vue2.js +4 -0
- package/components/DataTable/DataTable.vue.js +44 -44
- package/components/DatePicker.vue.js +41 -35
- package/components/DateRangePicker.vue.js +18 -17
- package/components/Dropdown/Dropdown.vue.d.ts +3 -0
- package/components/Dropdown/Dropdown.vue.js +117 -115
- package/components/Dropdown/DropdownBooleanItem.vue.js +16 -15
- package/components/Dropdown/DropdownItem.vue.js +21 -20
- package/components/Dropdown/DropdownMenu.vue.js +1 -1
- package/components/Dropdown/DropdownMenu.vue2.js +13 -12
- package/components/Dropdown/DropdownTrigger.vue.d.ts +2 -0
- package/components/Dropdown/DropdownTrigger.vue.js +10 -6
- package/components/Dropdown/composables/useDropdownHydration.d.ts +2 -0
- package/components/Dropdown/composables/useDropdownSelection.d.ts +1 -0
- package/components/Dropdown/composables/useDropdownSelection.js +46 -31
- package/components/FilePicker/FilePicker.vue.js +93 -90
- package/components/Form/CustomFields.vue.js +2 -2
- package/components/Form/Form.vue.js +2 -2
- package/components/Form/Form.vue2.js +68 -64
- package/components/Form/FormField.vue.js +204 -148
- package/components/Form/FormFields.vue.js +2 -2
- package/components/Form/FormFields.vue2.js +28 -27
- package/components/Form/types.d.ts +2 -2
- package/components/Form/utils/form.utils.d.ts +3 -3
- package/components/Form/utils/form.utils.js +37 -37
- package/components/Input.vue.js +64 -62
- package/components/Invoice/Invoice.vue.js +9 -7
- package/components/Invoice/InvoiceTotals.vue.d.ts +14 -0
- package/components/Invoice/InvoiceTotals.vue.js +86 -0
- package/components/Invoice/InvoiceTotals.vue2.js +4 -0
- package/components/Invoice/InvoiceVariant1.vue.d.ts +3 -1
- package/components/Invoice/InvoiceVariant1.vue.js +194 -207
- package/components/Invoice/InvoiceVariant2.vue.d.ts +3 -1
- package/components/Invoice/InvoiceVariant2.vue.js +109 -118
- package/components/Invoice/InvoiceVariant3.vue.d.ts +3 -1
- package/components/Invoice/InvoiceVariant3.vue.js +157 -167
- package/components/Invoice/InvoiceVariant4.vue.d.ts +3 -1
- package/components/Invoice/InvoiceVariant4.vue.js +192 -202
- package/components/Invoice/index.d.ts +1 -0
- package/components/Invoice/types.d.ts +22 -0
- package/components/Masonry/Masonry.vue.d.ts +1 -1
- package/components/Modal.vue.js +1 -1
- package/components/Modal.vue2.js +60 -54
- package/components/MultiSelect/MultiSelect.vue.js +47 -46
- package/components/MultiSelect/composables/useMultiSelectHydration.d.ts +2 -0
- package/components/NavbarCommandPalette.vue.js +1 -1
- package/components/NumberInput.vue.js +2 -2
- package/components/NumberInput.vue2.js +121 -116
- package/components/PricingPlan/PricingPlan.vue.d.ts +1 -1
- package/components/SidePanel.vue.js +2 -2
- package/components/SidePanel.vue2.js +58 -52
- package/components/Stats/StatItem.vue.js +96 -91
- package/components/Stats/types.d.ts +1 -0
- package/components/Switch.vue.d.ts +6 -1
- package/components/Switch.vue.js +61 -24
- package/components/TagInput/TagInput.vue.d.ts +187 -0
- package/components/TagInput/TagInput.vue.js +113 -0
- package/components/TagInput/TagInput.vue2.js +4 -0
- package/components/TagInput/index.d.ts +1 -0
- package/components/Textarea.vue.js +19 -18
- package/components/ThumbnailSelector/ThumbnailSelector.vue.js +2 -2
- package/components/ThumbnailSelector/ThumbnailSelector.vue2.js +19 -16
- package/core/config.d.ts +36 -0
- package/index.d.ts +2 -0
- package/index.js +130 -124
- package/package.json +1 -1
- package/style.css +616 -1
- package/types/button.d.ts +1 -1
- package/types/styles.d.ts +1 -0
- package/utils/functions.js +9 -9
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as x, ref as w, computed as z, openBlock as i, createElementBlock as
|
|
1
|
+
import { defineComponent as x, ref as w, computed as z, openBlock as i, createElementBlock as n, createElementVNode as b, normalizeClass as r, createVNode as o, withCtx as V, createCommentVNode as g, withModifiers as C } from "vue";
|
|
2
2
|
import c from "../Icon.vue.js";
|
|
3
3
|
import U from "../FilePicker/FilePicker.vue.js";
|
|
4
|
-
import
|
|
5
|
-
const
|
|
4
|
+
import $ from "../Avatar.vue.js";
|
|
5
|
+
const A = ["data-testid"], R = ["onClick"], F = /* @__PURE__ */ x({
|
|
6
6
|
name: "AvatarUploader",
|
|
7
7
|
__name: "AvatarUploader",
|
|
8
8
|
props: {
|
|
@@ -19,48 +19,51 @@ const R = { class: "inline-block" }, j = ["onClick"], F = /* @__PURE__ */ x({
|
|
|
19
19
|
},
|
|
20
20
|
emits: ["update:modelValue", "change", "error"],
|
|
21
21
|
setup(e, { emit: v }) {
|
|
22
|
-
const
|
|
22
|
+
const t = e, l = v, d = w(null), m = z(() => {
|
|
23
23
|
if (d.value) return d.value;
|
|
24
|
-
if (typeof
|
|
25
|
-
if (
|
|
26
|
-
if (
|
|
27
|
-
if (
|
|
24
|
+
if (typeof t.modelValue == "string") return t.modelValue;
|
|
25
|
+
if (t.modelValue && t.modelValue.fileUrl) return t.modelValue.fileUrl;
|
|
26
|
+
if (t.modelValue && t.modelValue.base64) return t.modelValue.base64;
|
|
27
|
+
if (t.modelValue && t.modelValue.file instanceof File)
|
|
28
28
|
try {
|
|
29
|
-
return URL.createObjectURL(
|
|
29
|
+
return URL.createObjectURL(t.modelValue.file);
|
|
30
30
|
} catch {
|
|
31
31
|
}
|
|
32
32
|
return null;
|
|
33
|
-
}), h = (
|
|
34
|
-
if (!
|
|
35
|
-
Array.isArray(
|
|
33
|
+
}), h = (a) => {
|
|
34
|
+
if (!a || Array.isArray(a)) {
|
|
35
|
+
Array.isArray(a) && a.length === 0 && f();
|
|
36
36
|
return;
|
|
37
37
|
}
|
|
38
|
-
if (
|
|
39
|
-
d.value =
|
|
40
|
-
else if (
|
|
38
|
+
if (a.base64)
|
|
39
|
+
d.value = a.base64, l("update:modelValue", a.base64);
|
|
40
|
+
else if (a.file)
|
|
41
41
|
try {
|
|
42
|
-
d.value = URL.createObjectURL(
|
|
42
|
+
d.value = URL.createObjectURL(a.file), l("update:modelValue", a);
|
|
43
43
|
} catch {
|
|
44
44
|
}
|
|
45
|
-
|
|
46
|
-
}, y = (
|
|
47
|
-
|
|
45
|
+
l("change", a);
|
|
46
|
+
}, y = (a) => {
|
|
47
|
+
l("error", a);
|
|
48
48
|
}, f = () => {
|
|
49
|
-
d.value = null,
|
|
49
|
+
d.value = null, l("update:modelValue", null), l("change", null);
|
|
50
50
|
};
|
|
51
|
-
return (
|
|
51
|
+
return (a, u) => (i(), n("div", {
|
|
52
|
+
class: "inline-block",
|
|
53
|
+
"data-testid": a.$attrs["data-testid"] || (a.$attrs.name ? `avatar-${a.$attrs.name}` : "avatar-uploader")
|
|
54
|
+
}, [
|
|
52
55
|
b("div", {
|
|
53
|
-
class:
|
|
56
|
+
class: r(["relative inline-block group", e.rounded === "full" ? "rounded-full" : "rounded-md"])
|
|
54
57
|
}, [
|
|
55
|
-
|
|
58
|
+
o($, {
|
|
56
59
|
src: m.value || void 0,
|
|
57
60
|
fallback: e.fallback,
|
|
58
61
|
alt: e.alt,
|
|
59
62
|
size: e.size,
|
|
60
63
|
rounded: e.rounded,
|
|
61
|
-
class:
|
|
64
|
+
class: r(e.className)
|
|
62
65
|
}, null, 8, ["src", "fallback", "alt", "size", "rounded", "class"]),
|
|
63
|
-
|
|
66
|
+
o(U, {
|
|
64
67
|
disabled: !e.editable || e.disabled || e.loading,
|
|
65
68
|
"return-format": "base64",
|
|
66
69
|
"file-types": ["image/jpeg", "image/png", "image/webp", "image/gif"],
|
|
@@ -72,44 +75,44 @@ const R = { class: "inline-block" }, j = ["onClick"], F = /* @__PURE__ */ x({
|
|
|
72
75
|
trigger: V(({ trigger: s, isLoading: k }) => [
|
|
73
76
|
b("button", {
|
|
74
77
|
type: "button",
|
|
75
|
-
class:
|
|
76
|
-
onClick: (
|
|
78
|
+
class: r(["absolute inset-0 cursor-pointer", { "cursor-default": !e.editable || e.disabled }]),
|
|
79
|
+
onClick: (j) => e.editable && !e.disabled ? s() : null
|
|
77
80
|
}, [
|
|
78
|
-
e.loading || k ? (i(),
|
|
81
|
+
e.loading || k ? (i(), n("div", {
|
|
79
82
|
key: 0,
|
|
80
|
-
class:
|
|
83
|
+
class: r(["absolute inset-0 flex items-center justify-center bg-[#7878783b] text-white", e.rounded === "full" ? "rounded-full" : "rounded-md"])
|
|
81
84
|
}, [
|
|
82
|
-
|
|
85
|
+
o(c, {
|
|
83
86
|
icon: "lucide:loader-2",
|
|
84
87
|
class: "animate-spin w-1/3 h-1/3"
|
|
85
88
|
})
|
|
86
|
-
], 2)) : e.editable && !e.disabled ? (i(),
|
|
89
|
+
], 2)) : e.editable && !e.disabled ? (i(), n("div", {
|
|
87
90
|
key: 1,
|
|
88
|
-
class:
|
|
91
|
+
class: r(["absolute inset-0 flex items-center justify-center bg-[#00000051] text-white opacity-0 group-hover:opacity-100 transition-opacity", e.rounded === "full" ? "rounded-full" : "rounded-md"])
|
|
89
92
|
}, [
|
|
90
|
-
|
|
93
|
+
o(c, {
|
|
91
94
|
icon: "lucide:camera",
|
|
92
95
|
class: "w-1/3 h-1/3"
|
|
93
96
|
})
|
|
94
97
|
], 2)) : g("", !0)
|
|
95
|
-
], 10,
|
|
98
|
+
], 10, R)
|
|
96
99
|
]),
|
|
97
100
|
_: 1
|
|
98
101
|
}, 8, ["disabled", "max-size"]),
|
|
99
|
-
(m.value || e.modelValue) && e.editable && !e.disabled && !e.loading ? (i(),
|
|
102
|
+
(m.value || e.modelValue) && e.editable && !e.disabled && !e.loading ? (i(), n("button", {
|
|
100
103
|
key: 0,
|
|
101
104
|
type: "button",
|
|
102
105
|
class: "absolute -top-1 -right-1 z-10 p-1 bg-background border border-border rounded-full text-muted-foreground shadow-sm hover:text-destructive hover:border-destructive transition-all opacity-0 group-hover:opacity-100 scale-75 group-hover:scale-100",
|
|
103
106
|
onClick: C(f, ["stop"]),
|
|
104
107
|
title: "Remove image"
|
|
105
108
|
}, [
|
|
106
|
-
|
|
109
|
+
o(c, {
|
|
107
110
|
icon: "lucide:x",
|
|
108
111
|
class: "w-3 h-3"
|
|
109
112
|
})
|
|
110
113
|
])) : g("", !0)
|
|
111
114
|
], 2)
|
|
112
|
-
]));
|
|
115
|
+
], 8, A));
|
|
113
116
|
}
|
|
114
117
|
});
|
|
115
118
|
export {
|
package/components/Button.vue.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as z, computed as l, useSlots as k, withDirectives as $, openBlock as o, createElementBlock as g, normalizeClass as s, createBlock as d, createCommentVNode as h, renderSlot as m, createTextVNode as b, toDisplayString as f, unref as B } from "vue";
|
|
2
2
|
import u from "./Icon.vue.js";
|
|
3
|
-
import { vRipple as
|
|
4
|
-
import { $t as
|
|
5
|
-
const
|
|
3
|
+
import { vRipple as I } from "../directives/vRipple.js";
|
|
4
|
+
import { $t as R } from "../utils/i18n.js";
|
|
5
|
+
const S = ["type", "disabled", "data-testid"], T = /* @__PURE__ */ z({
|
|
6
6
|
__name: "Button",
|
|
7
7
|
props: {
|
|
8
8
|
variant: { default: "primary" },
|
|
@@ -22,10 +22,10 @@ const $ = ["type", "disabled"], T = /* @__PURE__ */ k({
|
|
|
22
22
|
asIcon: { type: Boolean }
|
|
23
23
|
},
|
|
24
24
|
setup(e) {
|
|
25
|
-
const t = e,
|
|
26
|
-
() => t?.asIcon || t.icon && !
|
|
27
|
-
),
|
|
28
|
-
const n = `inline-flex items-center justify-center whitespace-nowrap text-sm font-medium disabled:pointer-events-none disabled:opacity-50 active:scale-[0.98] cursor-pointer gap-2 ${
|
|
25
|
+
const t = e, r = l(() => t.textI18n ? R(t.textI18n) : t.text), v = k(), i = l(
|
|
26
|
+
() => t?.asIcon || t.icon && !r.value && !v.default
|
|
27
|
+
), x = l(() => {
|
|
28
|
+
const n = `inline-flex items-center justify-center whitespace-nowrap text-sm font-medium disabled:pointer-events-none disabled:opacity-50 active:scale-[0.98] cursor-pointer gap-2 ${i.value ? "icon-only shrink-0" : ""}`, a = {
|
|
29
29
|
primary: "bg-primary text-primary-foreground hover:bg-primary/90",
|
|
30
30
|
"primary-light": "bg-primary-light text-primary-fg-light hover:bg-primary/20",
|
|
31
31
|
secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
@@ -45,7 +45,8 @@ const $ = ["type", "disabled"], T = /* @__PURE__ */ k({
|
|
|
45
45
|
"outline-info": "border border-info text-info hover:bg-info/10",
|
|
46
46
|
"outline-success": "border border-success text-success hover:bg-success/10",
|
|
47
47
|
ghost: "hover:bg-accent hover:text-accent-foreground text-foreground",
|
|
48
|
-
link: "text-primary underline-offset-4 hover:underline"
|
|
48
|
+
link: "text-primary underline-offset-4 hover:underline",
|
|
49
|
+
transparent: ""
|
|
49
50
|
}, w = {
|
|
50
51
|
xs: "h-6.5 px-2",
|
|
51
52
|
sm: "h-7.5 px-3",
|
|
@@ -53,14 +54,14 @@ const $ = ["type", "disabled"], T = /* @__PURE__ */ k({
|
|
|
53
54
|
md: "h-9 px-4 py-2",
|
|
54
55
|
lg: "h-10 px-4",
|
|
55
56
|
xl: "h-12 px-10"
|
|
56
|
-
},
|
|
57
|
+
}, y = {
|
|
57
58
|
xs: "h-6.5 w-6.5 min-h-6.5 min-w-6.5",
|
|
58
59
|
sm: "h-7.5 w-7.5 min-h-7.5 min-w-7.5",
|
|
59
60
|
sm2: "h-8 w-8 min-h-8 min-w-8",
|
|
60
61
|
md: "h-9 w-9 min-h-9 min-w-9",
|
|
61
62
|
lg: "h-10 w-10 min-h-10 min-w-10",
|
|
62
63
|
xl: "h-12 w-12 min-h-12 min-w-12"
|
|
63
|
-
},
|
|
64
|
+
}, p = {
|
|
64
65
|
none: "rounded-none",
|
|
65
66
|
sm: "rounded-sm",
|
|
66
67
|
sm2: "rounded-sm",
|
|
@@ -70,15 +71,15 @@ const $ = ["type", "disabled"], T = /* @__PURE__ */ k({
|
|
|
70
71
|
"2xl": "rounded-2xl",
|
|
71
72
|
full: "rounded-full"
|
|
72
73
|
};
|
|
73
|
-
let C =
|
|
74
|
+
let C = i.value ? y[t.size] : w[t.size];
|
|
74
75
|
return [
|
|
75
76
|
n,
|
|
76
|
-
|
|
77
|
-
|
|
77
|
+
a[t.variant],
|
|
78
|
+
p[t.rounded],
|
|
78
79
|
C,
|
|
79
80
|
t.class
|
|
80
81
|
].join(" ");
|
|
81
|
-
}), c =
|
|
82
|
+
}), c = l(() => {
|
|
82
83
|
const n = {
|
|
83
84
|
xs: "w-3 h-3",
|
|
84
85
|
sm: "w-4 h-4",
|
|
@@ -86,7 +87,7 @@ const $ = ["type", "disabled"], T = /* @__PURE__ */ k({
|
|
|
86
87
|
md: "w-4 h-4",
|
|
87
88
|
lg: "w-4 h-4",
|
|
88
89
|
xl: "w-4 h-4"
|
|
89
|
-
},
|
|
90
|
+
}, a = {
|
|
90
91
|
xs: "w-3 h-3",
|
|
91
92
|
sm: "w-4 h-4",
|
|
92
93
|
sm2: "w-4 h-4",
|
|
@@ -94,39 +95,40 @@ const $ = ["type", "disabled"], T = /* @__PURE__ */ k({
|
|
|
94
95
|
lg: "w-4 h-4",
|
|
95
96
|
xl: "w-4 h-4"
|
|
96
97
|
};
|
|
97
|
-
return
|
|
98
|
+
return i.value ? a[t.size] : n[t.size];
|
|
98
99
|
});
|
|
99
|
-
return (n,
|
|
100
|
+
return (n, a) => $((o(), g("button", {
|
|
100
101
|
type: e.type,
|
|
101
|
-
class:
|
|
102
|
-
disabled: e.disabled || e.loading
|
|
102
|
+
class: s([x.value, "cursor-pointer"]),
|
|
103
|
+
disabled: e.disabled || e.loading,
|
|
104
|
+
"data-testid": n.$attrs["data-testid"] || (r.value ? `btn-${r.value.toString().toLowerCase().replace(/[^a-z0-9]+/g, "-")}` : e.icon ? `btn-${e.icon.replace(/[^a-zA-Z0-9]+/g, "-")}` : "button")
|
|
103
105
|
}, [
|
|
104
106
|
e.loading ? (o(), d(u, {
|
|
105
107
|
key: 0,
|
|
106
108
|
icon: "lucide:loader-2",
|
|
107
|
-
class:
|
|
109
|
+
class: s(["animate-spin pointer-events-none", c.value])
|
|
108
110
|
}, null, 8, ["class"])) : e.icon ? (o(), d(u, {
|
|
109
111
|
key: 1,
|
|
110
112
|
icon: e.icon,
|
|
111
|
-
class:
|
|
113
|
+
class: s(["pointer-events-none", [e.iconClass, c.value, i.value ? "mx-auto" : ""]])
|
|
112
114
|
}, null, 8, ["icon", "class"])) : h("", !0),
|
|
113
115
|
e.textClass ? (o(), g("span", {
|
|
114
116
|
key: 2,
|
|
115
|
-
class:
|
|
117
|
+
class: s(e.textClass)
|
|
116
118
|
}, [
|
|
117
119
|
m(n.$slots, "default", {}, () => [
|
|
118
|
-
b(f(
|
|
120
|
+
b(f(r.value), 1)
|
|
119
121
|
])
|
|
120
122
|
], 2)) : m(n.$slots, "default", { key: 3 }, () => [
|
|
121
|
-
b(f(
|
|
123
|
+
b(f(r.value), 1)
|
|
122
124
|
]),
|
|
123
125
|
e.iconRight && !e.loading ? (o(), d(u, {
|
|
124
126
|
key: 4,
|
|
125
127
|
icon: e.iconRight,
|
|
126
|
-
class:
|
|
128
|
+
class: s([[e.iconRightClass, c.value], "h-4 w-4 pointer-events-none"])
|
|
127
129
|
}, null, 8, ["icon", "class"])) : h("", !0)
|
|
128
|
-
], 10,
|
|
129
|
-
[I
|
|
130
|
+
], 10, S)), [
|
|
131
|
+
[B(I)]
|
|
130
132
|
]);
|
|
131
133
|
}
|
|
132
134
|
});
|
|
@@ -352,7 +352,7 @@ declare function __VLS_template(): {
|
|
|
352
352
|
};
|
|
353
353
|
}>> & Readonly<{
|
|
354
354
|
"onSlide-change"?: ((index: number) => any) | undefined;
|
|
355
|
-
}>, "state" | "focus" | "direction" | "draggable" | "easing" | "
|
|
355
|
+
}>, "state" | "focus" | "direction" | "draggable" | "easing" | "gap" | "goNext" | "pagination" | "paginationSize" | "paginationVisibility" | "paginationHoverInitialTimeout" | "paginationHoverEdgeThreshold" | "autoPlay" | "autoPlayInterval" | "itemsToShow" | "speed" | "mousewheel" | "loop" | "currentItem" | "bufferSize" | "maxDomElements" | "goToSlide" | "goPrev" | "autoFocus" | "wheelOptions" | "canGoNext" | "canGoPrev"> & import('vue').ShallowUnwrapRef<{
|
|
356
356
|
goToSlide: (index: number, smooth?: boolean) => void;
|
|
357
357
|
goNext: (smooth?: boolean) => void;
|
|
358
358
|
goPrev: (smooth?: boolean) => void;
|
|
@@ -778,7 +778,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
778
778
|
};
|
|
779
779
|
}>> & Readonly<{
|
|
780
780
|
"onSlide-change"?: ((index: number) => any) | undefined;
|
|
781
|
-
}>, "state" | "focus" | "direction" | "draggable" | "easing" | "
|
|
781
|
+
}>, "state" | "focus" | "direction" | "draggable" | "easing" | "gap" | "goNext" | "pagination" | "paginationSize" | "paginationVisibility" | "paginationHoverInitialTimeout" | "paginationHoverEdgeThreshold" | "autoPlay" | "autoPlayInterval" | "itemsToShow" | "speed" | "mousewheel" | "loop" | "currentItem" | "bufferSize" | "maxDomElements" | "goToSlide" | "goPrev" | "autoFocus" | "wheelOptions" | "canGoNext" | "canGoPrev"> & import('vue').ShallowUnwrapRef<{
|
|
782
782
|
goToSlide: (index: number, smooth?: boolean) => void;
|
|
783
783
|
goNext: (smooth?: boolean) => void;
|
|
784
784
|
goPrev: (smooth?: boolean) => void;
|
|
@@ -13,13 +13,21 @@ declare const __VLS_component: import('vue').DefineComponent<CategoryManagerProp
|
|
|
13
13
|
"update:modelValue": (val: CategoryItem[]) => any;
|
|
14
14
|
onAdd: (item: CategoryItem) => any;
|
|
15
15
|
onEdit: (item: CategoryItem) => any;
|
|
16
|
-
onReorder: (val:
|
|
16
|
+
onReorder: (val: {
|
|
17
|
+
id: string | number;
|
|
18
|
+
parentId: string | number | null;
|
|
19
|
+
position: number;
|
|
20
|
+
}) => any;
|
|
17
21
|
}, string, import('vue').PublicProps, Readonly<CategoryManagerProps> & Readonly<{
|
|
18
22
|
onOnDelete?: (item: CategoryItem) => any;
|
|
19
23
|
"onUpdate:modelValue"?: (val: CategoryItem[]) => any;
|
|
20
24
|
onOnAdd?: (item: CategoryItem) => any;
|
|
21
25
|
onOnEdit?: (item: CategoryItem) => any;
|
|
22
|
-
onOnReorder?: (val:
|
|
26
|
+
onOnReorder?: (val: {
|
|
27
|
+
id: string | number;
|
|
28
|
+
parentId: string | number | null;
|
|
29
|
+
position: number;
|
|
30
|
+
}) => any;
|
|
23
31
|
}>, {
|
|
24
32
|
size: "sm" | "md" | "lg";
|
|
25
33
|
readonly: boolean;
|