vlite3 1.4.41 → 1.5.1
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/Button.vue.js +2 -2
- package/components/Button.vue2.js +10 -10
- package/components/CategoryManager/CategoryManager.vue.d.ts +2 -2
- package/components/CategoryManager/CategoryManager.vue2.js +1 -1
- package/components/CommandPalette/CommandPaletteContent.vue2.js +1 -1
- package/components/CommandPalette/{CommandPaletteItem.vue2.js → CommandPaletteItem.vue.js} +1 -1
- package/components/DataTable/DataTable.vue.d.ts +1 -1
- package/components/Dropdown/DropdownMenu.vue.js +1 -1
- package/components/Form/{AccordionView.vue2.js → AccordionView.vue.js} +1 -1
- package/components/Form/index.vue2.js +1 -1
- package/components/NavbarCommandPalette.vue.js +1 -1
- package/components/Screen/ScreenFilter.vue.js +1 -1
- package/components/Screen/components/ScreenAddAction.vue.js +10 -10
- package/components/Screen/components/ScreenHeaderTitle.vue.js +11 -11
- package/components/Tabes/Tabes.vue.d.ts +17 -1
- package/components/Tabes/Tabes.vue.js +3 -3
- package/components/Tabes/Tabes.vue2.js +243 -189
- package/components/Tabes/tabes.utils.d.ts +7 -0
- package/components/Tabes/tabes.utils.js +30 -22
- package/components/Tabes/types.d.ts +7 -0
- package/components/ToastNotification.vue.js +2 -2
- package/components/ToastNotification.vue2.js +38 -36
- package/package.json +5 -4
- package/style.css +10 -1
- /package/components/Dropdown/{DropdownMenu.vue2.js → DropdownMenu.vue3.js} +0 -0
package/components/Button.vue.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Button.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-8c0db2af"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as G, useAttrs as H, computed as s, useSlots as F, Comment as M, Fragment as b, Text as O, withDirectives as Z, openBlock as i, createElementBlock as c, normalizeClass as o, createElementVNode as I, createBlock as x, createCommentVNode as u, renderSlot as w, createTextVNode as
|
|
1
|
+
import { defineComponent as G, useAttrs as H, computed as s, useSlots as F, Comment as M, Fragment as b, Text as O, withDirectives as Z, openBlock as i, createElementBlock as c, normalizeClass as o, createElementVNode as I, createBlock as x, createCommentVNode as u, renderSlot as w, createTextVNode as k, toDisplayString as h, unref as q } from "vue";
|
|
2
2
|
import v from "./Icon.vue.js";
|
|
3
3
|
import { vRipple as J } from "../directives/vRipple.js";
|
|
4
4
|
import { $t as K } from "../utils/i18n.js";
|
|
@@ -61,7 +61,7 @@ const P = ["type", "dir", "disabled", "data-testid"], Q = {
|
|
|
61
61
|
}), a = s(() => {
|
|
62
62
|
const n = e.layout || B.layout;
|
|
63
63
|
return n === "tile" ? "tile" : n === "vertical" ? "vertical" : "horizontal";
|
|
64
|
-
}), f = s(() => a.value === "tile"), A = s(() => a.value === "horizontal"), E = s(() => $[e.variant] ?? $.primary),
|
|
64
|
+
}), f = s(() => a.value === "tile"), A = s(() => a.value === "horizontal"), E = s(() => $[e.variant] ?? $.primary), z = s(() => ({
|
|
65
65
|
xs: "w-9 h-9",
|
|
66
66
|
sm: "w-10 h-10",
|
|
67
67
|
sm2: "w-11 h-11",
|
|
@@ -71,7 +71,7 @@ const P = ["type", "dir", "disabled", "data-testid"], Q = {
|
|
|
71
71
|
})[e.size]), l = s(() => e.textI18n ? K(e.textI18n) : e.text), j = F(), p = s(() => j.default ? j.default().some((r) => !(r.type === M || r.type === b && Array.isArray(r.children) && r.children.length === 0 || r.type === O && typeof r.children == "string" && r.children.trim() === "")) : !1), y = s(
|
|
72
72
|
() => e?.asIcon || e.icon && !l.value && !p.value
|
|
73
73
|
), g = s(() => e.icon ? e.icon.startsWith("http://") || e.icon.startsWith("https://") || e.icon.startsWith("data:image/") ? !0 : [".png", ".jpg", ".jpeg", ".gif", ".svg", ".webp", ".ico", ".avif"].some((r) => e.icon.toLowerCase().endsWith(r)) : !1), T = s(() => {
|
|
74
|
-
const r = `v-btn 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 focus:outline-none focus-visible:outline-none ${a.value === "tile" ? "flex-col gap-1.5 items-center" : a.value === "vertical" ? "flex-col gap-2" : e.description ? "gap-3" : "gap-2"} ${A.value ? "v-btn-horizontal" : ""} ${y.value ? "icon-only shrink-0" : ""}`, C = {
|
|
74
|
+
const r = `v-btn inline-flex items-center justify-center whitespace-nowrap text-sm font-medium shrink-0 disabled:pointer-events-none disabled:opacity-50 active:scale-[0.98] cursor-pointer focus:outline-none focus-visible:outline-none ${a.value === "tile" ? "flex-col gap-1.5 items-center" : a.value === "vertical" ? "flex-col gap-2" : e.description ? "gap-3" : "gap-2"} ${A.value ? "v-btn-horizontal" : ""} ${y.value ? "icon-only shrink-0" : ""}`, C = {
|
|
75
75
|
primary: "bg-primary text-primary-foreground hover:bg-primary/90",
|
|
76
76
|
"primary-light": "bg-primary-light text-primary-fg-light hover:bg-primary/15",
|
|
77
77
|
secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
@@ -139,7 +139,7 @@ const P = ["type", "dir", "disabled", "data-testid"], Q = {
|
|
|
139
139
|
);
|
|
140
140
|
}), m = s(() => {
|
|
141
141
|
if (f.value && g.value)
|
|
142
|
-
return `${
|
|
142
|
+
return `${z.value} object-cover`;
|
|
143
143
|
const n = e.description && a.value === "horizontal", r = {
|
|
144
144
|
xs: n ? "w-3.5 h-3.5" : "w-3 h-3",
|
|
145
145
|
sm: n ? "w-5 h-5" : "w-4 h-4",
|
|
@@ -170,13 +170,13 @@ const P = ["type", "dir", "disabled", "data-testid"], Q = {
|
|
|
170
170
|
class: o(["inline-flex items-center justify-center shrink-0 transition-transform duration-150 ease-out group-active:scale-[0.92]", [
|
|
171
171
|
g.value ? "" : "rounded-full",
|
|
172
172
|
g.value ? "" : E.value,
|
|
173
|
-
g.value ? "" :
|
|
173
|
+
g.value ? "" : z.value
|
|
174
174
|
]])
|
|
175
175
|
}, [
|
|
176
176
|
t.loading ? (i(), x(v, {
|
|
177
177
|
key: 0,
|
|
178
178
|
icon: "lucide:loader-2",
|
|
179
|
-
class: o(["animate-spin pointer-events-none", [m.value, g.value ?
|
|
179
|
+
class: o(["animate-spin pointer-events-none", [m.value, g.value ? z.value : ""]])
|
|
180
180
|
}, null, 8, ["class"])) : t.icon ? (i(), x(v, {
|
|
181
181
|
key: 1,
|
|
182
182
|
icon: t.icon,
|
|
@@ -189,7 +189,7 @@ const P = ["type", "dir", "disabled", "data-testid"], Q = {
|
|
|
189
189
|
}, [
|
|
190
190
|
l.value || p.value ? (i(), c("span", Q, [
|
|
191
191
|
w(n.$slots, "default", {}, () => [
|
|
192
|
-
|
|
192
|
+
k(h(l.value), 1)
|
|
193
193
|
], !0)
|
|
194
194
|
])) : u("", !0),
|
|
195
195
|
e.description ? (i(), c("span", U, h(e.description), 1)) : u("", !0)
|
|
@@ -210,10 +210,10 @@ const P = ["type", "dir", "disabled", "data-testid"], Q = {
|
|
|
210
210
|
class: o([t.textClass, "leading-tight truncate inline-flex items-center justify-center gap-1.5"])
|
|
211
211
|
}, [
|
|
212
212
|
w(n.$slots, "default", {}, () => [
|
|
213
|
-
|
|
213
|
+
k(h(l.value), 1)
|
|
214
214
|
], !0)
|
|
215
215
|
], 2)) : w(n.$slots, "default", { key: 1 }, () => [
|
|
216
|
-
|
|
216
|
+
k(h(l.value), 1)
|
|
217
217
|
], !0)
|
|
218
218
|
], 64)) : l.value || p.value || e.description ? (i(), c("div", {
|
|
219
219
|
key: 3,
|
|
@@ -226,7 +226,7 @@ const P = ["type", "dir", "disabled", "data-testid"], Q = {
|
|
|
226
226
|
class: o([[t.textClass, V.value], "inline-flex items-center gap-1.5 w-full leading-tight [&>:where(svg)]:mx-auto [&>:where(img)]:mx-auto"])
|
|
227
227
|
}, [
|
|
228
228
|
w(n.$slots, "default", {}, () => [
|
|
229
|
-
|
|
229
|
+
k(h(l.value), 1)
|
|
230
230
|
], !0)
|
|
231
231
|
], 2),
|
|
232
232
|
e.description ? (i(), c("span", X, h(e.description), 1)) : u("", !0)
|
|
@@ -18,22 +18,22 @@ declare const __VLS_component: import('vue').DefineComponent<CategoryManagerProp
|
|
|
18
18
|
onDelete: (item: CategoryItem) => any;
|
|
19
19
|
"update:modelValue": (val: CategoryItem[]) => any;
|
|
20
20
|
onAdd: (item: CategoryItem) => any;
|
|
21
|
-
onEdit: (item: CategoryItem) => any;
|
|
22
21
|
onReorder: (val: {
|
|
23
22
|
id: string | number;
|
|
24
23
|
parentId: string | number | null;
|
|
25
24
|
position: number;
|
|
26
25
|
}) => any;
|
|
26
|
+
onEdit: (item: CategoryItem) => any;
|
|
27
27
|
}, string, import('vue').PublicProps, Readonly<CategoryManagerProps> & Readonly<{
|
|
28
28
|
onOnDelete?: (item: CategoryItem) => any;
|
|
29
29
|
"onUpdate:modelValue"?: (val: CategoryItem[]) => any;
|
|
30
30
|
onOnAdd?: (item: CategoryItem) => any;
|
|
31
|
-
onOnEdit?: (item: CategoryItem) => any;
|
|
32
31
|
onOnReorder?: (val: {
|
|
33
32
|
id: string | number;
|
|
34
33
|
parentId: string | number | null;
|
|
35
34
|
position: number;
|
|
36
35
|
}) => any;
|
|
36
|
+
onOnEdit?: (item: CategoryItem) => any;
|
|
37
37
|
}>, {
|
|
38
38
|
size: "sm" | "md" | "lg";
|
|
39
39
|
loading: boolean;
|
|
@@ -4,7 +4,7 @@ import k from "../Icon.vue.js";
|
|
|
4
4
|
import { $t as E } from "../../utils/i18n.js";
|
|
5
5
|
import { useCommandPaletteItems as Y } from "./useCommandPaletteItems.js";
|
|
6
6
|
import { useCommandPaletteNav as Z } from "./useCommandPaletteNav.js";
|
|
7
|
-
import ee from "./CommandPaletteItem.
|
|
7
|
+
import ee from "./CommandPaletteItem.vue.js";
|
|
8
8
|
const te = { class: "command-palette-content flex flex-col w-full h-full max-h-[70vh]" }, oe = { class: "flex items-center gap-3 px-4 py-3 border-b border-border/80 shrink-0" }, se = ["placeholder"], ne = ["aria-label"], re = {
|
|
9
9
|
key: 0,
|
|
10
10
|
class: "flex flex-col items-center justify-center py-14 px-6 text-center select-none",
|
|
@@ -46,6 +46,7 @@ declare const __VLS_component: import('vue').DefineComponent<DataTableProps, {},
|
|
|
46
46
|
striped: boolean;
|
|
47
47
|
rows: any[];
|
|
48
48
|
headers: TableHeader[];
|
|
49
|
+
sortable: boolean;
|
|
49
50
|
emptyIcon: string;
|
|
50
51
|
selectedRows: any[];
|
|
51
52
|
hideSelectable: boolean;
|
|
@@ -57,7 +58,6 @@ declare const __VLS_component: import('vue').DefineComponent<DataTableProps, {},
|
|
|
57
58
|
keyField: string;
|
|
58
59
|
hoverable: boolean;
|
|
59
60
|
treeIndent: number;
|
|
60
|
-
sortable: boolean;
|
|
61
61
|
headerVariant: "default" | "minimal";
|
|
62
62
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
63
63
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as g, computed as d, openBlock as n, createElementBlock as R, createElementVNode as x, createBlock as s, withCtx as k, createTextVNode as B, toDisplayString as I, createCommentVNode as y, unref as l } from "vue";
|
|
2
2
|
import T from "./TableView.vue.js";
|
|
3
|
-
import C from "./AccordionView.
|
|
3
|
+
import C from "./AccordionView.vue.js";
|
|
4
4
|
import U from "../Label.vue.js";
|
|
5
5
|
import z from "../Button.vue.js";
|
|
6
6
|
import { useCustomFieldRows as N } from "./composables/useCustomFieldRows.js";
|
|
@@ -3,7 +3,7 @@ import L from "./Icon.vue.js";
|
|
|
3
3
|
import v from "./Modal.vue.js";
|
|
4
4
|
import N from "./CommandPalette/CommandPaletteContent.vue.js";
|
|
5
5
|
import { $t as U } from "../utils/i18n.js";
|
|
6
|
-
/* empty css
|
|
6
|
+
/* empty css */
|
|
7
7
|
const V = { class: "block truncate -text-fs-1.5" }, S = { class: "ms-auto inline-flex items-center gap-0.5 px-1.5 py-0.5 rounded text-[10px] font-mono font-medium border border-border/80 bg-background text-muted-foreground ms-1" }, A = /* @__PURE__ */ x({
|
|
8
8
|
__name: "NavbarCommandPalette",
|
|
9
9
|
props: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as x, computed as m, markRaw as
|
|
1
|
+
import { defineComponent as x, computed as m, markRaw as s, resolveComponent as N, openBlock as d, createBlock as o, resolveDynamicComponent as P, createElementBlock as f, Fragment as y, mergeProps as e, withCtx as n, createVNode as B, createTextVNode as i, toDisplayString as r, createCommentVNode as k } from "vue";
|
|
2
2
|
import c from "../../Button.vue.js";
|
|
3
3
|
import V from "../../Modal.vue.js";
|
|
4
4
|
import { $t as g } from "../../../utils/i18n.js";
|
|
@@ -15,16 +15,16 @@ const D = ["href", "target"], F = /* @__PURE__ */ x({
|
|
|
15
15
|
emits: ["add"],
|
|
16
16
|
setup(t, { emit: C }) {
|
|
17
17
|
const a = t, b = C, v = m(
|
|
18
|
-
() => a.addComponent ?
|
|
18
|
+
() => a.addComponent ? s(a.addComponent) : void 0
|
|
19
19
|
), h = m(
|
|
20
|
-
() => a.addBtn?.modal ?
|
|
20
|
+
() => a.addBtn?.modal ? s(a.addBtn.modal) : void 0
|
|
21
21
|
), l = m(() => {
|
|
22
22
|
if (a.addBtn?.labelI18n) return g(a.addBtn.labelI18n);
|
|
23
23
|
if (a.addBtn?.label) return a.addBtn.label;
|
|
24
24
|
const u = g("vlite.screen.addNew");
|
|
25
25
|
return u !== "vlite.screen.addNew" ? u : "Add New";
|
|
26
26
|
});
|
|
27
|
-
return (u,
|
|
27
|
+
return (u, w) => {
|
|
28
28
|
const A = N("router-link");
|
|
29
29
|
return v.value ? (d(), o(P(v.value), { key: 0 })) : t.canAdd ? (d(), f(y, { key: 1 }, [
|
|
30
30
|
t.addBtn ? (d(), f(y, { key: 0 }, [
|
|
@@ -34,12 +34,12 @@ const D = ["href", "target"], F = /* @__PURE__ */ x({
|
|
|
34
34
|
}, t.addBtn.modalProps, {
|
|
35
35
|
refetch: t.refetch,
|
|
36
36
|
data: t.data,
|
|
37
|
-
|
|
37
|
+
class: "w-full md:w-auto!",
|
|
38
38
|
loading: t.loading
|
|
39
39
|
}), {
|
|
40
40
|
trigger: n(() => [
|
|
41
41
|
B(c, e({
|
|
42
|
-
class: "w-full",
|
|
42
|
+
class: "w-full md:w-auto!",
|
|
43
43
|
icon: t.addBtn.icon || "fluent:add-16-filled",
|
|
44
44
|
variant: t.addBtn.variant || "primary"
|
|
45
45
|
}, t.addBtn.buttonProps), {
|
|
@@ -57,7 +57,7 @@ const D = ["href", "target"], F = /* @__PURE__ */ x({
|
|
|
57
57
|
}, {
|
|
58
58
|
default: n(() => [
|
|
59
59
|
B(c, e({
|
|
60
|
-
class: "w-full",
|
|
60
|
+
class: "w-full md:w-auto!",
|
|
61
61
|
icon: t.addBtn.icon || "fluent:add-16-filled",
|
|
62
62
|
variant: t.addBtn.variant || "primary"
|
|
63
63
|
}, t.addBtn.buttonProps), {
|
|
@@ -75,7 +75,7 @@ const D = ["href", "target"], F = /* @__PURE__ */ x({
|
|
|
75
75
|
class: "inline-flex w-full sm:w-auto"
|
|
76
76
|
}, [
|
|
77
77
|
B(c, e({
|
|
78
|
-
class: "w-full",
|
|
78
|
+
class: "w-full md:w-auto!",
|
|
79
79
|
icon: t.addBtn.icon || "fluent:add-16-filled",
|
|
80
80
|
variant: t.addBtn.variant || "primary"
|
|
81
81
|
}, t.addBtn.buttonProps), {
|
|
@@ -86,11 +86,11 @@ const D = ["href", "target"], F = /* @__PURE__ */ x({
|
|
|
86
86
|
}, 16, ["icon", "variant"])
|
|
87
87
|
], 8, D)) : (d(), o(c, e({
|
|
88
88
|
key: 3,
|
|
89
|
-
class: "w-full
|
|
89
|
+
class: "w-full md:w-auto!",
|
|
90
90
|
icon: t.addBtn.icon || "fluent:add-16-filled",
|
|
91
91
|
variant: t.addBtn.variant || "primary"
|
|
92
92
|
}, t.addBtn.buttonProps, {
|
|
93
|
-
onClick:
|
|
93
|
+
onClick: w[0] || (w[0] = (I) => t.addBtn.onClick ? t.addBtn.onClick() : b("add"))
|
|
94
94
|
}), {
|
|
95
95
|
default: n(() => [
|
|
96
96
|
i(r(l.value), 1)
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as p, computed as c, openBlock as n, createElementBlock as o, renderSlot as a, createElementVNode as u, normalizeClass as d, toDisplayString as m, createBlock as x, withCtx as
|
|
1
|
+
import { defineComponent as p, computed as c, openBlock as n, createElementBlock as o, renderSlot as a, createElementVNode as u, normalizeClass as d, toDisplayString as m, createBlock as x, withCtx as I, createVNode as h, createCommentVNode as i } from "vue";
|
|
2
2
|
import C from "../../Icon.vue.js";
|
|
3
3
|
import g from "../../Tooltip.vue.js";
|
|
4
4
|
import { $t as f } from "../../../utils/i18n.js";
|
|
5
|
-
const
|
|
5
|
+
const v = { class: "flex flex-col" }, y = {
|
|
6
6
|
key: 0,
|
|
7
7
|
class: "flex items-center! gap-2"
|
|
8
8
|
}, S = /* @__PURE__ */ p({
|
|
@@ -18,12 +18,12 @@ const k = { class: "flex flex-col shrink-0" }, v = {
|
|
|
18
18
|
descriptionClass: {}
|
|
19
19
|
},
|
|
20
20
|
setup(t) {
|
|
21
|
-
const e = t, s = c(() => e.titleI18n ? f(e.titleI18n) : e.title),
|
|
21
|
+
const e = t, s = c(() => e.titleI18n ? f(e.titleI18n) : e.title), l = c(
|
|
22
22
|
() => e.descriptionI18n ? f(e.descriptionI18n) : e.description
|
|
23
23
|
);
|
|
24
|
-
return (
|
|
25
|
-
a(
|
|
26
|
-
s.value ? (n(), o("div",
|
|
24
|
+
return (r, k) => (n(), o("div", v, [
|
|
25
|
+
a(r.$slots, "title", {}, () => [
|
|
26
|
+
s.value ? (n(), o("div", y, [
|
|
27
27
|
u("h1", {
|
|
28
28
|
class: d(["text-fs-7.5 font-bold text-foreground", t.titleClass])
|
|
29
29
|
}, m(s.value), 3),
|
|
@@ -33,8 +33,8 @@ const k = { class: "flex flex-col shrink-0" }, v = {
|
|
|
33
33
|
"content-i18n": t.infoI18n,
|
|
34
34
|
placement: "right"
|
|
35
35
|
}, {
|
|
36
|
-
default:
|
|
37
|
-
|
|
36
|
+
default: I(() => [
|
|
37
|
+
h(C, {
|
|
38
38
|
icon: "lucide:info",
|
|
39
39
|
class: "w-[18px] h-[18px] mt-3! text-muted-foreground hover:text-foreground cursor-pointer transition-colors outline-none"
|
|
40
40
|
})
|
|
@@ -43,11 +43,11 @@ const k = { class: "flex flex-col shrink-0" }, v = {
|
|
|
43
43
|
}, 8, ["content", "content-i18n"])) : i("", !0)
|
|
44
44
|
])) : i("", !0)
|
|
45
45
|
]),
|
|
46
|
-
a(
|
|
47
|
-
|
|
46
|
+
a(r.$slots, "description", {}, () => [
|
|
47
|
+
l.value ? (n(), o("p", {
|
|
48
48
|
key: 0,
|
|
49
49
|
class: d(["text-sm text-gray-700 mt-1 md:max-w-[450px]", t.descriptionClass])
|
|
50
|
-
}, m(
|
|
50
|
+
}, m(l.value), 3)) : i("", !0)
|
|
51
51
|
])
|
|
52
52
|
]));
|
|
53
53
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TabesMenuSelectPayload, TabesOption, TabesSize, TabesVariant } from './types';
|
|
1
|
+
import { TabesMenuSelectPayload, TabesOption, TabesReorderPayload, TabesSize, TabesVariant } from './types';
|
|
2
2
|
interface Props {
|
|
3
3
|
options: TabesOption[];
|
|
4
4
|
modelValue: string | number;
|
|
@@ -18,6 +18,17 @@ interface Props {
|
|
|
18
18
|
* — matching Dropdown — instead of pinning LTR.
|
|
19
19
|
*/
|
|
20
20
|
direction?: 'ltr' | 'rtl' | 'auto';
|
|
21
|
+
/**
|
|
22
|
+
* Opt-in: let the user drag tabs into a new order. Off by default.
|
|
23
|
+
* The new order is persisted to localStorage and restored on reload.
|
|
24
|
+
*/
|
|
25
|
+
sortable?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* localStorage slot for the persisted order (prefixed `builto-tabes-order-`).
|
|
28
|
+
* When omitted, a stable key is derived from the tab value set. Only used
|
|
29
|
+
* when `sortable` is on.
|
|
30
|
+
*/
|
|
31
|
+
storageKey?: string;
|
|
21
32
|
}
|
|
22
33
|
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
23
34
|
change: (value: string | number) => any;
|
|
@@ -25,18 +36,23 @@ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, imp
|
|
|
25
36
|
"menu-select": (payload: TabesMenuSelectPayload) => any;
|
|
26
37
|
"menu-open": (tab: TabesOption) => any;
|
|
27
38
|
"menu-close": (tab: TabesOption) => any;
|
|
39
|
+
reorder: (payload: TabesReorderPayload) => any;
|
|
40
|
+
"update:options": (options: TabesOption[]) => any;
|
|
28
41
|
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
29
42
|
onChange?: (value: string | number) => any;
|
|
30
43
|
"onUpdate:modelValue"?: (value: string | number) => any;
|
|
31
44
|
"onMenu-select"?: (payload: TabesMenuSelectPayload) => any;
|
|
32
45
|
"onMenu-open"?: (tab: TabesOption) => any;
|
|
33
46
|
"onMenu-close"?: (tab: TabesOption) => any;
|
|
47
|
+
onReorder?: (payload: TabesReorderPayload) => any;
|
|
48
|
+
"onUpdate:options"?: (options: TabesOption[]) => any;
|
|
34
49
|
}>, {
|
|
35
50
|
variant: TabesVariant;
|
|
36
51
|
size: TabesSize;
|
|
37
52
|
block: boolean;
|
|
38
53
|
direction: "ltr" | "rtl" | "auto";
|
|
39
54
|
wrap: boolean;
|
|
55
|
+
sortable: boolean;
|
|
40
56
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
41
57
|
rootRef: HTMLDivElement;
|
|
42
58
|
scrollRef: HTMLDivElement;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Tabes.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const
|
|
3
|
+
import a from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const f = /* @__PURE__ */ a(o, [["__scopeId", "data-v-de4ab2fa"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
f as default
|
|
7
7
|
};
|