vlite3 0.6.8 → 0.6.9
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/_virtual/_commonjsHelpers.js +6 -0
- package/_virtual/dayjs.min.js +7 -0
- package/_virtual/dayjs.min2.js +4 -0
- package/components/Barcode/Barcode.vue.d.ts +1 -1
- package/components/Breadcrumb/BreadcrumbItem.vue.js +2 -2
- package/components/ConfirmationModal.vue.js +30 -25
- package/components/DataTable/DataTableRow.vue.js +70 -64
- package/components/Date/Date.vue.d.ts +8 -0
- package/components/Date/Date.vue.js +21 -0
- package/components/Date/Date.vue2.js +4 -0
- package/components/Date/index.d.ts +1 -0
- package/components/Dropdown/DropdownMenu.vue.js +1 -1
- package/components/Form/Form.vue.js +1 -1
- package/components/Form/Form.vue2.js +39 -36
- package/components/List/ListFieldRow.vue.js +150 -107
- package/components/Modal.vue.js +2 -2
- package/components/Modal.vue2.js +43 -42
- package/components/Navbar/Navbar.vue.d.ts +33 -19
- package/components/Navbar/Navbar.vue.js +295 -185
- package/components/Navbar/NavbarTabs.vue.js +1 -1
- package/components/Price/Price.vue.d.ts +8 -0
- package/components/Price/Price.vue.js +26 -0
- package/components/Price/Price.vue2.js +4 -0
- package/components/Price/index.d.ts +1 -0
- package/components/Screen/Screen.vue.js +19 -19
- package/components/SidebarMenu/SidebarMenu.vue.js +95 -93
- package/components/SidebarMenu/SidebarMenuItem.vue.js +42 -42
- package/components/Tabes/Tabes.vue.d.ts +6 -0
- package/components/Tabes/Tabes.vue.js +63 -56
- package/core/config.d.ts +14 -1
- package/core/config.js +15 -9
- package/core/index.d.ts +0 -22
- package/core/index.js +17 -9
- package/index.d.ts +2 -0
- package/index.js +18 -14
- package/package.json +2 -1
- package/style.css +1 -1
- package/types/config.type.d.ts +6 -0
- package/types/navbar.type.d.ts +7 -17
|
@@ -87,7 +87,7 @@ const U = {
|
|
|
87
87
|
}
|
|
88
88
|
return !1;
|
|
89
89
|
}, M = (o) => {
|
|
90
|
-
const t = "group relative inline-flex items-center justify-center gap-2 font-medium whitespace-nowrap shrink-0 select-none cursor-pointer outline-none
|
|
90
|
+
const t = "group relative inline-flex items-center justify-center gap-2 font-medium whitespace-nowrap shrink-0 select-none cursor-pointer outline-none focus-visible:ring-2 focus-visible:ring-primary/50 focus-visible:ring-offset-1", e = o.disabled ? "opacity-50 pointer-events-none cursor-not-allowed" : "", d = x(o) ? n.activeClass || E[n.variant] : n.inactiveClass || V[n.variant];
|
|
91
91
|
return [t, $[n.size], d, e].filter(Boolean).join(" ");
|
|
92
92
|
};
|
|
93
93
|
return (o, t) => (s(), b("div", {
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
value?: number | string;
|
|
3
|
+
currency?: string;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
6
|
+
value: number | string;
|
|
7
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLSpanElement>;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { defineComponent as m, computed as t, openBlock as s, createElementBlock as i, toDisplayString as l } from "vue";
|
|
2
|
+
import { useVLiteConfig as p } from "../../core/config.js";
|
|
3
|
+
const d = /* @__PURE__ */ m({
|
|
4
|
+
__name: "Price",
|
|
5
|
+
props: {
|
|
6
|
+
value: { default: 0 },
|
|
7
|
+
currency: {}
|
|
8
|
+
},
|
|
9
|
+
setup(n) {
|
|
10
|
+
const r = n, c = p(), o = t(() => r.currency || c?.components?.price?.currency || "USD"), u = t(() => {
|
|
11
|
+
const e = Number(r.value) || 0;
|
|
12
|
+
try {
|
|
13
|
+
return new Intl.NumberFormat("en-US", {
|
|
14
|
+
style: "currency",
|
|
15
|
+
currency: o.value
|
|
16
|
+
}).format(e);
|
|
17
|
+
} catch {
|
|
18
|
+
return `$${e.toFixed(2)}`;
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
return (e, a) => (s(), i("span", null, l(u.value), 1));
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
export {
|
|
25
|
+
d as default
|
|
26
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Price } from './Price.vue';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as De, provide as q, computed as o, ref as x, watch as z, resolveComponent as Pe, openBlock as a, createElementBlock as s, normalizeClass as j, createElementVNode as g, renderSlot as w, toDisplayString as f, createBlock as c, withCtx as d, createVNode as u, createCommentVNode as m, unref as b, resolveDynamicComponent as H, Fragment as D, mergeProps as v, createTextVNode as
|
|
1
|
+
import { defineComponent as De, provide as q, computed as o, ref as x, watch as z, resolveComponent as Pe, openBlock as a, createElementBlock as s, normalizeClass as j, createElementVNode as g, renderSlot as w, toDisplayString as f, createBlock as c, withCtx as d, createVNode as u, createCommentVNode as m, unref as b, resolveDynamicComponent as H, Fragment as D, mergeProps as v, createTextVNode as p, renderList as Ie } from "vue";
|
|
2
2
|
import Se from "../Input.vue.js";
|
|
3
3
|
/* empty css */
|
|
4
4
|
import h from "../Button.vue.js";
|
|
@@ -49,10 +49,10 @@ const Me = { class: "flex flex-col w-full space-y-8" }, Ue = { class: "flex flex
|
|
|
49
49
|
loading: { type: Boolean, default: !1 },
|
|
50
50
|
refetch: {},
|
|
51
51
|
paginationProps: { default: () => ({
|
|
52
|
-
alignment: "
|
|
52
|
+
alignment: "between",
|
|
53
53
|
navType: "icon",
|
|
54
|
-
showItemsPerPage: !
|
|
55
|
-
itemsPerPageOptions: [10,
|
|
54
|
+
showItemsPerPage: !0,
|
|
55
|
+
itemsPerPageOptions: [10, 20, 30, 50]
|
|
56
56
|
}) },
|
|
57
57
|
emptyTitle: {},
|
|
58
58
|
emptyTitleI18n: {},
|
|
@@ -166,7 +166,7 @@ const Me = { class: "flex flex-col w-full space-y-8" }, Ue = { class: "flex flex
|
|
|
166
166
|
}), he = o(() => {
|
|
167
167
|
const e = r("vlite.screen.missingView");
|
|
168
168
|
return e !== "vlite.screen.missingView" ? e : "Please provide a `:list` or `:table` component.";
|
|
169
|
-
}),
|
|
169
|
+
}), y = o(() => {
|
|
170
170
|
if (n.addBtn?.labelI18n) return r(n.addBtn.labelI18n);
|
|
171
171
|
if (n.addBtn?.label) return n.addBtn.label;
|
|
172
172
|
const e = r("vlite.screen.addNew");
|
|
@@ -183,9 +183,9 @@ const Me = { class: "flex flex-col w-full space-y-8" }, Ue = { class: "flex flex
|
|
|
183
183
|
}), ge = o(() => {
|
|
184
184
|
const e = [];
|
|
185
185
|
return n.exportProps !== !1 && e.push({ value: "export", label: L.value, icon: "lucide:download" }), n.importProps !== !1 && e.push({ value: "import", label: W.value, icon: "lucide:upload" }), e;
|
|
186
|
-
}), M = x(null), xe = x(null), O = x(!1), U = x(!1),
|
|
186
|
+
}), M = x(null), xe = x(null), O = x(!1), U = x(!1), ye = (e) => {
|
|
187
187
|
e.value === "export" ? O.value = !0 : e.value === "import" && (U.value = !0);
|
|
188
|
-
},
|
|
188
|
+
}, pe = o(() => n.exportSchema ? n.exportSchema.map((e) => ({
|
|
189
189
|
field: e.name || e.field,
|
|
190
190
|
title: e.label || e.title || e.name || e.field
|
|
191
191
|
})) : []), we = o(() => n.importSchema ? n.importSchema.map((e) => ({
|
|
@@ -335,7 +335,7 @@ const Me = { class: "flex flex-col w-full space-y-8" }, Ue = { class: "flex flex
|
|
|
335
335
|
variant: t.addBtn.variant || "primary"
|
|
336
336
|
}, t.addBtn.buttonProps), {
|
|
337
337
|
default: d(() => [
|
|
338
|
-
|
|
338
|
+
p(f(y.value), 1)
|
|
339
339
|
]),
|
|
340
340
|
_: 1
|
|
341
341
|
}, 16, ["icon", "variant"])
|
|
@@ -353,7 +353,7 @@ const Me = { class: "flex flex-col w-full space-y-8" }, Ue = { class: "flex flex
|
|
|
353
353
|
variant: t.addBtn.variant || "primary"
|
|
354
354
|
}, t.addBtn.buttonProps), {
|
|
355
355
|
default: d(() => [
|
|
356
|
-
|
|
356
|
+
p(f(y.value), 1)
|
|
357
357
|
]),
|
|
358
358
|
_: 1
|
|
359
359
|
}, 16, ["icon", "variant"])
|
|
@@ -371,7 +371,7 @@ const Me = { class: "flex flex-col w-full space-y-8" }, Ue = { class: "flex flex
|
|
|
371
371
|
variant: t.addBtn.variant || "primary"
|
|
372
372
|
}, t.addBtn.buttonProps), {
|
|
373
373
|
default: d(() => [
|
|
374
|
-
|
|
374
|
+
p(f(y.value), 1)
|
|
375
375
|
]),
|
|
376
376
|
_: 1
|
|
377
377
|
}, 16, ["icon", "variant"])
|
|
@@ -384,7 +384,7 @@ const Me = { class: "flex flex-col w-full space-y-8" }, Ue = { class: "flex flex
|
|
|
384
384
|
onClick: l[5] || (l[5] = (i) => t.addBtn.onClick ? t.addBtn.onClick() : e.$emit("add"))
|
|
385
385
|
}), {
|
|
386
386
|
default: d(() => [
|
|
387
|
-
|
|
387
|
+
p(f(y.value), 1)
|
|
388
388
|
]),
|
|
389
389
|
_: 1
|
|
390
390
|
}, 16, ["icon", "variant"]))
|
|
@@ -396,7 +396,7 @@ const Me = { class: "flex flex-col w-full space-y-8" }, Ue = { class: "flex flex
|
|
|
396
396
|
closeOnSelect: "",
|
|
397
397
|
position: "bottom-end",
|
|
398
398
|
options: ge.value,
|
|
399
|
-
onOnSelect:
|
|
399
|
+
onOnSelect: ye
|
|
400
400
|
}, {
|
|
401
401
|
trigger: d(() => [
|
|
402
402
|
u(h, {
|
|
@@ -414,7 +414,7 @@ const Me = { class: "flex flex-col w-full space-y-8" }, Ue = { class: "flex flex
|
|
|
414
414
|
], 2)),
|
|
415
415
|
w(e.$slots, "sub-header"),
|
|
416
416
|
g("div", {
|
|
417
|
-
class: j(["flex-1 w-full relative
|
|
417
|
+
class: j(["flex-1 w-full relative", t.containerClass])
|
|
418
418
|
}, [
|
|
419
419
|
!oe.value && !t.loading ? w(e.$slots, "empty", { key: 0 }, () => [
|
|
420
420
|
u(b(Ee), {
|
|
@@ -439,7 +439,7 @@ const Me = { class: "flex flex-col w-full space-y-8" }, Ue = { class: "flex flex
|
|
|
439
439
|
class: "px-6!"
|
|
440
440
|
}, t.addBtn.buttonProps), {
|
|
441
441
|
default: d(() => [
|
|
442
|
-
|
|
442
|
+
p(f(y.value), 1)
|
|
443
443
|
]),
|
|
444
444
|
_: 1
|
|
445
445
|
}, 16, ["icon", "variant"])
|
|
@@ -456,7 +456,7 @@ const Me = { class: "flex flex-col w-full space-y-8" }, Ue = { class: "flex flex
|
|
|
456
456
|
variant: t.addBtn.variant || "outline"
|
|
457
457
|
}, t.addBtn.buttonProps), {
|
|
458
458
|
default: d(() => [
|
|
459
|
-
|
|
459
|
+
p(f(y.value), 1)
|
|
460
460
|
]),
|
|
461
461
|
_: 1
|
|
462
462
|
}, 16, ["icon", "variant"])
|
|
@@ -473,7 +473,7 @@ const Me = { class: "flex flex-col w-full space-y-8" }, Ue = { class: "flex flex
|
|
|
473
473
|
variant: t.addBtn.variant || "outline"
|
|
474
474
|
}, t.addBtn.buttonProps), {
|
|
475
475
|
default: d(() => [
|
|
476
|
-
|
|
476
|
+
p(f(y.value), 1)
|
|
477
477
|
]),
|
|
478
478
|
_: 1
|
|
479
479
|
}, 16, ["icon", "variant"])
|
|
@@ -485,7 +485,7 @@ const Me = { class: "flex flex-col w-full space-y-8" }, Ue = { class: "flex flex
|
|
|
485
485
|
onClick: l[6] || (l[6] = (i) => t.addBtn.onClick ? t.addBtn.onClick() : e.$emit("add"))
|
|
486
486
|
}), {
|
|
487
487
|
default: d(() => [
|
|
488
|
-
|
|
488
|
+
p(f(y.value), 1)
|
|
489
489
|
]),
|
|
490
490
|
_: 1
|
|
491
491
|
}, 16, ["icon", "variant"]))
|
|
@@ -496,7 +496,7 @@ const Me = { class: "flex flex-col w-full space-y-8" }, Ue = { class: "flex flex
|
|
|
496
496
|
onClick: l[7] || (l[7] = (i) => e.$emit("add"))
|
|
497
497
|
}, {
|
|
498
498
|
default: d(() => [
|
|
499
|
-
|
|
499
|
+
p(f(y.value), 1)
|
|
500
500
|
]),
|
|
501
501
|
_: 1
|
|
502
502
|
}))
|
|
@@ -550,7 +550,7 @@ const Me = { class: "flex flex-col w-full space-y-8" }, Ue = { class: "flex flex
|
|
|
550
550
|
ref_key: "exportDataRef",
|
|
551
551
|
ref: M,
|
|
552
552
|
data: t.data || [],
|
|
553
|
-
fields:
|
|
553
|
+
fields: pe.value,
|
|
554
554
|
mode: ke.value,
|
|
555
555
|
"on-export": Ce
|
|
556
556
|
}, typeof t.exportProps == "object" ? t.exportProps : {}, {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useRoute as
|
|
3
|
-
import { useBreakpoints as
|
|
4
|
-
import
|
|
1
|
+
import { defineComponent as E, inject as N, ref as w, computed as l, watch as T, reactive as P, provide as L, openBlock as x, createElementBlock as k, normalizeClass as O, Fragment as W, renderList as H, createBlock as A } from "vue";
|
|
2
|
+
import { useRoute as F } from "vue-router";
|
|
3
|
+
import { useBreakpoints as R, breakpointsTailwind as _ } from "@vueuse/core";
|
|
4
|
+
import j from "./SidebarMenuItem.vue.js";
|
|
5
5
|
/* empty css */
|
|
6
|
-
const
|
|
6
|
+
const U = /* @__PURE__ */ E({
|
|
7
7
|
__name: "SidebarMenu",
|
|
8
8
|
props: {
|
|
9
9
|
items: { default: () => [] },
|
|
@@ -29,116 +29,118 @@ const K = /* @__PURE__ */ S({
|
|
|
29
29
|
showTooltip: { type: Boolean, default: !0 }
|
|
30
30
|
},
|
|
31
31
|
setup(m) {
|
|
32
|
-
const c =
|
|
33
|
-
if (
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
if (!i || i === "/" || i === "?")
|
|
41
|
-
return !0;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
32
|
+
const c = N("navbar-context", null), a = m, f = F(), B = R(_), o = w([...a.defaultExpanded]), v = w(null), y = l(() => !a.mobileBreakpoint || a.mobileBreakpoint === "none" ? !0 : B.greaterOrEqual(a.mobileBreakpoint).value), h = l(() => y.value && a.orientation || "vertical"), p = (e) => e.id || (typeof e.to == "string" ? e.to : null) || e.label, b = (e, n) => {
|
|
33
|
+
if (!e.to) return !1;
|
|
34
|
+
const t = typeof e.to == "string" ? e.to : e.to.path;
|
|
35
|
+
if (!t) return !1;
|
|
36
|
+
if (n === t) return !0;
|
|
37
|
+
if (t !== "/" && t.length > 1 && n.startsWith(t)) {
|
|
38
|
+
const i = n[t.length];
|
|
39
|
+
return !i || i === "/" || i === "?";
|
|
44
40
|
}
|
|
45
41
|
return !1;
|
|
46
|
-
},
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
42
|
+
}, g = (e, n, t = []) => {
|
|
43
|
+
for (const i of e) {
|
|
44
|
+
const u = p(i);
|
|
45
|
+
if (i.children?.length) {
|
|
46
|
+
const r = g(i.children, n, [...t, u]);
|
|
47
|
+
if (r !== null)
|
|
48
|
+
return o.value.includes(u) || o.value.push(u), r;
|
|
49
|
+
}
|
|
50
|
+
if (b(i, n))
|
|
51
|
+
return t.forEach((r) => {
|
|
52
|
+
o.value.includes(r) || o.value.push(r);
|
|
53
|
+
}), u;
|
|
56
54
|
}
|
|
57
|
-
return
|
|
58
|
-
},
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
55
|
+
return null;
|
|
56
|
+
}, C = (e, n) => {
|
|
57
|
+
for (const t of a.items) {
|
|
58
|
+
if (!t.children?.length || !(b(t, e) || t.children.some(
|
|
59
|
+
(s) => b(s, e) || s.children?.some((d) => b(d, e))
|
|
60
|
+
))) continue;
|
|
61
|
+
const u = t.children.map((s) => ({
|
|
62
|
+
label: s.label,
|
|
63
|
+
labelI18n: s.labelI18n,
|
|
64
|
+
value: p(s),
|
|
65
|
+
icon: s.icon,
|
|
66
|
+
disabled: s.disabled,
|
|
67
|
+
to: s.to,
|
|
68
|
+
href: s.href
|
|
70
69
|
}));
|
|
71
|
-
let
|
|
72
|
-
if (
|
|
73
|
-
const
|
|
74
|
-
if (
|
|
75
|
-
|
|
70
|
+
let r = u[0]?.value ?? "";
|
|
71
|
+
if (n) {
|
|
72
|
+
const s = u.find((d) => d.value === n);
|
|
73
|
+
if (s)
|
|
74
|
+
r = s.value;
|
|
76
75
|
else {
|
|
77
|
-
const
|
|
78
|
-
|
|
76
|
+
const d = t.children.find(
|
|
77
|
+
(S) => S.children?.some((I) => p(I) === n)
|
|
78
|
+
);
|
|
79
|
+
d && (r = p(d));
|
|
79
80
|
}
|
|
80
81
|
}
|
|
81
|
-
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
82
|
+
return { tabs: u, activeTab: r };
|
|
83
|
+
}
|
|
84
|
+
return null;
|
|
85
|
+
}, M = (e) => {
|
|
86
|
+
const n = g(a.items, e);
|
|
87
|
+
if (v.value = n, !c?.renderNestedTabs?.value) return;
|
|
88
|
+
const t = C(e, n);
|
|
89
|
+
t ? c.setNestedTabs(t.tabs, t.activeTab) : c.setNestedTabs([], "");
|
|
86
90
|
};
|
|
87
|
-
|
|
91
|
+
T(
|
|
88
92
|
() => f?.path,
|
|
89
|
-
(
|
|
90
|
-
|
|
93
|
+
(e) => {
|
|
94
|
+
e && M(e);
|
|
91
95
|
},
|
|
92
96
|
{ immediate: !0 }
|
|
93
|
-
),
|
|
94
|
-
() =>
|
|
97
|
+
), T(
|
|
98
|
+
() => a.items,
|
|
95
99
|
() => {
|
|
96
|
-
f?.path && (
|
|
100
|
+
f?.path && M(f.path);
|
|
97
101
|
},
|
|
98
102
|
{ deep: !0 }
|
|
99
|
-
), g(
|
|
100
|
-
() => s.value,
|
|
101
|
-
() => {
|
|
102
|
-
c?.renderNestedTabs?.value && h(f?.path || "");
|
|
103
|
-
}
|
|
104
103
|
);
|
|
105
|
-
const
|
|
106
|
-
activeItem:
|
|
107
|
-
expandedItems:
|
|
108
|
-
toggleExpand: (
|
|
109
|
-
|
|
104
|
+
const z = P({
|
|
105
|
+
activeItem: v,
|
|
106
|
+
expandedItems: o,
|
|
107
|
+
toggleExpand: (e) => {
|
|
108
|
+
o.value.includes(e) ? o.value = o.value.filter((t) => t !== e) : a.allowMultiple ? o.value.push(e) : o.value = [e];
|
|
110
109
|
},
|
|
111
|
-
setActive: (
|
|
112
|
-
|
|
110
|
+
setActive: (e) => {
|
|
111
|
+
if (v.value = e, c?.renderNestedTabs?.value && f?.path) {
|
|
112
|
+
const n = C(f.path, e);
|
|
113
|
+
n ? c.setNestedTabs(n.tabs, n.activeTab) : c.setNestedTabs([], "");
|
|
114
|
+
}
|
|
113
115
|
},
|
|
114
|
-
indentSize: l(() =>
|
|
115
|
-
variant: l(() =>
|
|
116
|
-
renderMode: l(() =>
|
|
116
|
+
indentSize: l(() => a.indentSize),
|
|
117
|
+
variant: l(() => a.variant),
|
|
118
|
+
renderMode: l(() => a.renderMode || "tree"),
|
|
117
119
|
renderNestedTabs: l(() => !!c?.renderNestedTabs?.value),
|
|
118
|
-
compact: l(() =>
|
|
119
|
-
showCompactLabels: l(() =>
|
|
120
|
-
iconSize: l(() =>
|
|
121
|
-
compactIconSize: l(() =>
|
|
122
|
-
labelClass: l(() =>
|
|
123
|
-
compactLabelClass: l(() =>
|
|
124
|
-
itemPadding: l(() =>
|
|
125
|
-
compactItemPadding: l(() =>
|
|
126
|
-
nestedMenuWidth: l(() =>
|
|
127
|
-
nestedMenuMaxHeight: l(() =>
|
|
128
|
-
currentOrientation:
|
|
129
|
-
showTooltip: l(() =>
|
|
120
|
+
compact: l(() => a.compact),
|
|
121
|
+
showCompactLabels: l(() => a.showCompactLabels),
|
|
122
|
+
iconSize: l(() => a.iconSize),
|
|
123
|
+
compactIconSize: l(() => a.compactIconSize),
|
|
124
|
+
labelClass: l(() => a.labelClass),
|
|
125
|
+
compactLabelClass: l(() => a.compactLabelClass),
|
|
126
|
+
itemPadding: l(() => a.itemPadding),
|
|
127
|
+
compactItemPadding: l(() => a.compactItemPadding),
|
|
128
|
+
nestedMenuWidth: l(() => a.nestedMenuWidth),
|
|
129
|
+
nestedMenuMaxHeight: l(() => a.nestedMenuMaxHeight),
|
|
130
|
+
currentOrientation: h,
|
|
131
|
+
showTooltip: l(() => a.showTooltip)
|
|
130
132
|
});
|
|
131
|
-
return L("sidebar-menu-ctx",
|
|
132
|
-
class:
|
|
133
|
-
|
|
134
|
-
|
|
133
|
+
return L("sidebar-menu-ctx", z), (e, n) => (x(), k("nav", {
|
|
134
|
+
class: O(["flex w-full transition-all duration-300", [
|
|
135
|
+
h.value === "horizontal" ? "flex-row flex-wrap gap-2 items-center" : "flex-col",
|
|
136
|
+
h.value === "vertical" && !a.compact ? "space-y-1" : ""
|
|
135
137
|
]]),
|
|
136
138
|
role: "tree",
|
|
137
139
|
"aria-label": "Sidebar Menu"
|
|
138
140
|
}, [
|
|
139
|
-
(
|
|
140
|
-
key:
|
|
141
|
-
item:
|
|
141
|
+
(x(!0), k(W, null, H(m.items, (t) => (x(), A(j, {
|
|
142
|
+
key: t.id || t.label,
|
|
143
|
+
item: t,
|
|
142
144
|
itemClass: m.itemClass,
|
|
143
145
|
menuOffset: m.menuOffset
|
|
144
146
|
}, null, 8, ["item", "itemClass", "menuOffset"]))), 128))
|
|
@@ -146,5 +148,5 @@ const K = /* @__PURE__ */ S({
|
|
|
146
148
|
}
|
|
147
149
|
});
|
|
148
150
|
export {
|
|
149
|
-
|
|
151
|
+
U as default
|
|
150
152
|
};
|