vlite3 1.3.11 → 1.4.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/components/Accordion/Accordion.vue.d.ts +2 -2
- package/components/Accordion/AccordionItem.vue.d.ts +1 -1
- package/components/Accordion/AccordionItem.vue.js +11 -7
- package/components/Accordion/AccordionTrigger.vue.d.ts +1 -1
- package/components/AppShell/AppShell.vue.d.ts +1 -0
- package/components/AppShell/AppShell.vue.js +33 -26
- package/components/AppShell/AppShellLayoutStorefront.vue.d.ts +54 -0
- package/components/AppShell/AppShellLayoutStorefront.vue.js +222 -0
- package/components/AppShell/AppShellLayoutStorefront.vue2.js +4 -0
- package/components/AsyncSelect/createAsyncSelect.js +3 -2
- package/components/CategoryManager/CategoryManager.vue2.js +36 -31
- package/components/CategoryMenu/CategoryMenu.vue.d.ts +22 -0
- package/components/CategoryMenu/CategoryMenu.vue.js +106 -0
- package/components/CategoryMenu/CategoryMenu.vue2.js +4 -0
- package/components/CategoryMenu/CategoryMenuVariant1.vue.d.ts +17 -0
- package/components/CategoryMenu/CategoryMenuVariant1.vue.js +146 -0
- package/components/CategoryMenu/CategoryMenuVariant1.vue2.js +4 -0
- package/components/CategoryMenu/CategoryMenuVariant2.vue.d.ts +18 -0
- package/components/CategoryMenu/CategoryMenuVariant2.vue.js +162 -0
- package/components/CategoryMenu/CategoryMenuVariant2.vue2.js +4 -0
- package/components/CategoryMenu/index.d.ts +2 -0
- package/components/CategoryMenu/types.d.ts +32 -0
- package/components/CategoryMenu/utils.d.ts +16 -0
- package/components/CategoryMenu/utils.js +45 -0
- package/components/ColorPicker/ColorPicker.vue.d.ts +7 -3
- package/components/ColorPicker/ColorPicker.vue.js +59 -45
- package/components/DatePicker.vue.js +5 -4
- package/components/DateRangePicker.vue.js +3 -2
- package/components/Dropdown/Dropdown.vue.d.ts +4 -1
- package/components/Dropdown/Dropdown.vue.js +8 -7
- package/components/Dropdown/DropdownGroupedLayout.vue2.js +5 -2
- package/components/Dropdown/DropdownGroupedLayout.vue3.js +111 -0
- package/components/Dropdown/DropdownItem.vue.d.ts +2 -2
- package/components/Dropdown/DropdownItem.vue.js +66 -49
- package/components/Dropdown/DropdownMenu.vue.js +1 -1
- package/components/Dropdown/{DropdownMenu.vue2.js → DropdownMenu.vue3.js} +40 -40
- package/components/Dropdown/composables/useDropdownHydration.d.ts +4 -0
- package/components/Dropdown/composables/useDropdownNavigation.js +30 -18
- package/components/Form/Form.vue.d.ts +13 -1
- package/components/Form/Form.vue.js +2 -2
- package/components/Form/Form.vue2.js +313 -275
- package/components/Form/FormField.vue.js +103 -74
- package/components/Form/FormFields.vue.js +2 -2
- package/components/Form/FormFields.vue2.js +7 -6
- package/components/Form/composables/useForm.js +71 -67
- package/components/Form/types.d.ts +21 -1
- package/components/IconPicker.vue.js +3 -2
- package/components/ImportData/ImportStep2.vue.js +3 -2
- package/components/MultiSelect/composables/useMultiSelectHydration.d.ts +4 -0
- package/components/NavbarCommandPalette.vue.d.ts +1 -1
- package/components/PermissionMatrix/PermissionTopBar.vue.js +3 -2
- package/components/RichTextEditor/RichTextEditor.vue.js +43 -48
- package/components/RichTextEditor/RichTextLinkPopover.vue3.js +2 -2
- package/components/RichTextEditor/RichTextToolbar.vue.d.ts +12 -3
- package/components/RichTextEditor/{RichTextToolbar.vue.js → RichTextToolbar.vue2.js} +157 -121
- package/components/RichTextEditor/RichTextToolbar.vue3.js +2 -2
- package/components/RichTextEditor/index.d.ts +2 -0
- package/components/RichTextEditor/types.d.ts +38 -0
- package/components/RichTextEditor/types.js +52 -0
- package/components/Screen/ScreenFilter.vue.js +26 -21
- package/components/SidebarMenu/SidebarMenu.vue.d.ts +2 -2
- package/components/SidebarMenu/SidebarMenuItem.vue.js +3 -2
- package/components/Switch.vue.js +8 -8
- package/components/Tooltip.vue.js +1 -0
- package/components/Workbook/Sheet.vue.d.ts +1 -1
- package/components/Workbook/Sheet.vue.js +14 -13
- package/components/index.d.ts +1 -0
- package/index.d.ts +1 -0
- package/index.js +306 -301
- package/package.json +2 -2
- package/style.css +2 -2
- package/types/appshell.type.d.ts +2 -1
- package/types/styles.d.ts +2 -0
- package/components/Dropdown/DropdownGroupedLayout.vue.js +0 -75
- /package/components/RichTextEditor/{RichTextLinkPopover.vue.js → RichTextLinkPopover.vue2.js} +0 -0
|
@@ -29,10 +29,10 @@ declare const __VLS_component: import('vue').DefineComponent<AccordionProps, {},
|
|
|
29
29
|
variant: import('./types').AccordionVariant;
|
|
30
30
|
size: import('./types').AccordionSize;
|
|
31
31
|
disabled: boolean;
|
|
32
|
-
attached: boolean;
|
|
33
|
-
items: import('./types').AccordionItemSchema[];
|
|
34
32
|
showIndex: boolean;
|
|
35
33
|
iconVariant: import('./types').IconVariant;
|
|
34
|
+
attached: boolean;
|
|
35
|
+
items: import('./types').AccordionItemSchema[];
|
|
36
36
|
allowMultiple: boolean;
|
|
37
37
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
38
38
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
@@ -44,8 +44,8 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {},
|
|
|
44
44
|
variant: AccordionVariant;
|
|
45
45
|
size: AccordionSize;
|
|
46
46
|
disabled: boolean;
|
|
47
|
-
attached: boolean;
|
|
48
47
|
showIndex: boolean;
|
|
48
|
+
attached: boolean;
|
|
49
49
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
50
50
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
51
51
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as B, computed as r, openBlock as c, createElementBlock as m, normalizeClass as u, renderSlot as f, createVNode as p, withCtx as
|
|
1
|
+
import { defineComponent as B, computed as r, openBlock as c, createElementBlock as m, normalizeClass as u, renderSlot as f, createVNode as p, withCtx as x, createElementVNode as V, toDisplayString as v, createCommentVNode as $, withDirectives as O, createBlock as T, resolveDynamicComponent as A, vShow as D } from "vue";
|
|
2
2
|
import P from "./AccordionTrigger.vue.js";
|
|
3
3
|
import N from "./AccordionContent.vue.js";
|
|
4
4
|
import { $t as h } from "../../utils/i18n.js";
|
|
@@ -38,7 +38,7 @@ const S = { class: "font-medium" }, E = {
|
|
|
38
38
|
md: "px-4 py-3 text-base",
|
|
39
39
|
lg: "px-5 py-4 text-lg"
|
|
40
40
|
}[a];
|
|
41
|
-
return t === "solid" ? `${i} ${s} bg-
|
|
41
|
+
return t === "solid" ? `${i} ${s} bg-card ${o}` : t === "ghost" ? d ? `${i} ${s} bg-muted font-medium ${o}` : `${i} ${s} hover:bg-muted/20 bg-transparent ${o}` : t === "outline" || t === "separated" ? d ? `${i} ${s} bg-muted/5 border-b border-border ${o}` : `${i} ${s} hover:bg-muted/5 bg-transparent ${o}` : !n.attached && t === "default" ? `${i} ${{
|
|
42
42
|
sm: "py-2 text-base",
|
|
43
43
|
md: "py-3 text-base",
|
|
44
44
|
lg: "py-4 text-lg"
|
|
@@ -54,7 +54,11 @@ const S = { class: "font-medium" }, E = {
|
|
|
54
54
|
md: "pb-4 pt-4 text-sm",
|
|
55
55
|
lg: "pb-5 pt-5 text-base"
|
|
56
56
|
}[a]} px-0`;
|
|
57
|
-
}), k = r(
|
|
57
|
+
}), k = r(
|
|
58
|
+
() => n.item.titleI18n ? h(n.item.titleI18n) : n.item.title
|
|
59
|
+
), b = r(
|
|
60
|
+
() => n.item.descriptionI18n ? h(n.item.descriptionI18n) : n.item.description
|
|
61
|
+
);
|
|
58
62
|
return (t, a) => (c(), m("div", {
|
|
59
63
|
class: u([I.value, n.class, n.itemClass])
|
|
60
64
|
}, [
|
|
@@ -78,9 +82,9 @@ const S = { class: "font-medium" }, E = {
|
|
|
78
82
|
class: u(g.value),
|
|
79
83
|
onClick: l
|
|
80
84
|
}, {
|
|
81
|
-
default:
|
|
82
|
-
V("span", S,
|
|
83
|
-
b.value ? (c(), m("span", E,
|
|
85
|
+
default: x(() => [
|
|
86
|
+
V("span", S, v(k.value), 1),
|
|
87
|
+
b.value ? (c(), m("span", E, v(b.value), 1)) : $("", !0)
|
|
84
88
|
]),
|
|
85
89
|
_: 1
|
|
86
90
|
}, 8, ["open", "size", "disabled", "icon", "index", "show-index", "open-icon", "close-icon", "icon-variant", "active-icon-variant", "class"])
|
|
@@ -88,7 +92,7 @@ const S = { class: "font-medium" }, E = {
|
|
|
88
92
|
O(p(N, {
|
|
89
93
|
class: u(w.value)
|
|
90
94
|
}, {
|
|
91
|
-
default:
|
|
95
|
+
default: x(() => [
|
|
92
96
|
f(t.$slots, "content", {
|
|
93
97
|
item: e.item,
|
|
94
98
|
close: l
|
|
@@ -30,9 +30,9 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {},
|
|
|
30
30
|
}>, {
|
|
31
31
|
class: string;
|
|
32
32
|
size: AccordionSize;
|
|
33
|
-
chevron: boolean;
|
|
34
33
|
showIndex: boolean;
|
|
35
34
|
iconVariant: IconVariant;
|
|
35
|
+
chevron: boolean;
|
|
36
36
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLButtonElement>;
|
|
37
37
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
38
38
|
export default _default;
|
|
@@ -21,6 +21,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<Ap
|
|
|
21
21
|
mobileMenuVariant: "sidepanel" | "dropdown";
|
|
22
22
|
breadcrumb: boolean;
|
|
23
23
|
renderNestedTabs: boolean;
|
|
24
|
+
categoryRoutePrefix: string;
|
|
24
25
|
logoClass: string;
|
|
25
26
|
sidebarToggle: boolean;
|
|
26
27
|
breadcrumbVariant: import('../Breadcrumb').BreadcrumbVariant;
|
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useAppShell as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
|
|
1
|
+
import { defineComponent as f, computed as o, provide as d, markRaw as e, openBlock as m, createBlock as c, resolveDynamicComponent as p, createSlots as _, renderList as b, withCtx as g, renderSlot as y, normalizeProps as h, guardReactiveProps as v } from "vue";
|
|
2
|
+
import { useAppShell as C } from "./useAppShell.js";
|
|
3
|
+
import { normalizeRoutePrefix as B, CATEGORY_MENU_ROUTE_PREFIX_KEY as P } from "../CategoryMenu/utils.js";
|
|
4
|
+
import l from "./AppShellLayoutSidebarFirst.vue.js";
|
|
5
|
+
import R from "./AppShellLayoutDashboard.vue.js";
|
|
6
|
+
import $ from "./AppShellLayoutDock.vue.js";
|
|
7
|
+
import S from "./AppShellLayoutClassic.vue.js";
|
|
8
|
+
import k from "./AppShellLayoutHeaderShell.vue.js";
|
|
9
|
+
import x from "./AppShellLayoutStorefront.vue.js";
|
|
10
|
+
const A = {
|
|
9
11
|
inheritAttrs: !1
|
|
10
|
-
},
|
|
11
|
-
...
|
|
12
|
+
}, Y = /* @__PURE__ */ f({
|
|
13
|
+
...A,
|
|
12
14
|
__name: "AppShell",
|
|
13
15
|
props: {
|
|
14
16
|
variant: { default: "sidebar" },
|
|
@@ -39,38 +41,43 @@ const S = {
|
|
|
39
41
|
breadcrumbLabels: {},
|
|
40
42
|
breadcrumbHomeIcon: { default: "lucide:home" },
|
|
41
43
|
breadcrumbClass: { default: "" },
|
|
42
|
-
layoutMode: { default: "variant1" }
|
|
44
|
+
layoutMode: { default: "variant1" },
|
|
45
|
+
categoryRoutePrefix: { default: "" }
|
|
43
46
|
},
|
|
44
47
|
emits: ["toggle-mobile"],
|
|
45
|
-
setup(
|
|
46
|
-
const a =
|
|
47
|
-
|
|
48
|
-
const s =
|
|
48
|
+
setup(n) {
|
|
49
|
+
const a = n;
|
|
50
|
+
C(a, !0);
|
|
51
|
+
const s = o(() => B(a.categoryRoutePrefix));
|
|
52
|
+
d(P, s);
|
|
53
|
+
const u = o(() => {
|
|
49
54
|
switch (a.layoutMode) {
|
|
50
55
|
case "variant1":
|
|
51
|
-
return e(
|
|
56
|
+
return e(l);
|
|
52
57
|
case "variant2":
|
|
53
|
-
return e(
|
|
58
|
+
return e(R);
|
|
54
59
|
case "variant3":
|
|
55
|
-
return e(
|
|
60
|
+
return e($);
|
|
56
61
|
case "variant4":
|
|
57
|
-
return e(
|
|
62
|
+
return e(S);
|
|
58
63
|
case "variant5":
|
|
59
|
-
return e(
|
|
64
|
+
return e(k);
|
|
65
|
+
case "variant6":
|
|
66
|
+
return e(x);
|
|
60
67
|
default:
|
|
61
|
-
return e(
|
|
68
|
+
return e(l);
|
|
62
69
|
}
|
|
63
70
|
});
|
|
64
|
-
return (t,
|
|
65
|
-
|
|
71
|
+
return (t, E) => (m(), c(p(u.value), null, _({ _: 2 }, [
|
|
72
|
+
b(t.$slots, (T, r) => ({
|
|
66
73
|
name: r,
|
|
67
|
-
fn:
|
|
68
|
-
|
|
74
|
+
fn: g((i) => [
|
|
75
|
+
y(t.$slots, r, h(v(i ?? {})))
|
|
69
76
|
])
|
|
70
77
|
}))
|
|
71
78
|
]), 1024));
|
|
72
79
|
}
|
|
73
80
|
});
|
|
74
81
|
export {
|
|
75
|
-
|
|
82
|
+
Y as default
|
|
76
83
|
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
attrs: Partial<{}>;
|
|
3
|
+
slots: {
|
|
4
|
+
announcement?(_: {}): any;
|
|
5
|
+
'mobile-trigger'?(_: {
|
|
6
|
+
isOpen: boolean;
|
|
7
|
+
toggle: () => boolean;
|
|
8
|
+
}): any;
|
|
9
|
+
left?(_: {}): any;
|
|
10
|
+
left?(_: {}): any;
|
|
11
|
+
nav?(_: {}): any;
|
|
12
|
+
nav?(_: {}): any;
|
|
13
|
+
logo?(_: {}): any;
|
|
14
|
+
logo?(_: {}): any;
|
|
15
|
+
center?(_: {}): any;
|
|
16
|
+
center?(_: {}): any;
|
|
17
|
+
search?(_: {}): any;
|
|
18
|
+
search?(_: {}): any;
|
|
19
|
+
actions?(_: {}): any;
|
|
20
|
+
actions?(_: {}): any;
|
|
21
|
+
right?(_: {}): any;
|
|
22
|
+
right?(_: {}): any;
|
|
23
|
+
'mobile-search'?(_: {}): any;
|
|
24
|
+
categories?(_: {
|
|
25
|
+
categoryRoutePrefix: string;
|
|
26
|
+
}): any;
|
|
27
|
+
categories?(_: {
|
|
28
|
+
categoryRoutePrefix: string;
|
|
29
|
+
}): any;
|
|
30
|
+
main?(_: {}): any;
|
|
31
|
+
footer?(_: {}): any;
|
|
32
|
+
'mobile-sidebar-header'?(_: {}): any;
|
|
33
|
+
'mobile-sidebar'?(_: {}): any;
|
|
34
|
+
'mobile-nav'?(_: {}): any;
|
|
35
|
+
'mobile-sidebar-footer'?(_: {}): any;
|
|
36
|
+
};
|
|
37
|
+
refs: {
|
|
38
|
+
layoutMainRef: HTMLElement;
|
|
39
|
+
mainScrollRef: HTMLDivElement;
|
|
40
|
+
};
|
|
41
|
+
rootEl: HTMLDivElement;
|
|
42
|
+
};
|
|
43
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
44
|
+
declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
45
|
+
layoutMainRef: HTMLElement;
|
|
46
|
+
mainScrollRef: HTMLDivElement;
|
|
47
|
+
}, HTMLDivElement>;
|
|
48
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
49
|
+
export default _default;
|
|
50
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
51
|
+
new (): {
|
|
52
|
+
$slots: S;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
import { defineComponent as T, inject as P, computed as v, openBlock as r, createElementBlock as t, renderSlot as o, createCommentVNode as i, createElementVNode as d, normalizeClass as a, unref as s, createVNode as b, isRef as y, createSlots as R, withCtx as $ } from "vue";
|
|
2
|
+
import V from "../Icon.vue.js";
|
|
3
|
+
import j from "../SidePanel.vue.js";
|
|
4
|
+
import x from "../Navbar/NavbarTabs.vue.js";
|
|
5
|
+
/* empty css */
|
|
6
|
+
import N from "../Breadcrumb/Breadcrumb.vue.js";
|
|
7
|
+
/* empty css */
|
|
8
|
+
import { APPSHELL_LAYOUT_KEY as B } from "./useAppShell.js";
|
|
9
|
+
import { normalizeRoutePrefix as E } from "../CategoryMenu/utils.js";
|
|
10
|
+
const L = { class: "vlite-app-layout flex flex-col w-full h-full min-h-0 bg-body text-foreground overflow-hidden" }, M = {
|
|
11
|
+
key: 0,
|
|
12
|
+
class: "shrink-0 w-full"
|
|
13
|
+
}, O = { class: "w-full mx-auto max-w-7xl px-3 sm:px-4 md:px-6 lg:px-8" }, A = { class: "flex items-center gap-2 min-w-0" }, U = ["aria-label"], Y = { class: "w-full mx-auto max-w-7xl px-3 sm:px-4 md:px-6 lg:px-8" }, D = {
|
|
14
|
+
key: 0,
|
|
15
|
+
class: "shrink-0 w-full"
|
|
16
|
+
}, H = {
|
|
17
|
+
key: 2,
|
|
18
|
+
class: "shrink-0 w-full border-t border-border bg-background"
|
|
19
|
+
}, I = { class: "flex flex-col h-full" }, K = {
|
|
20
|
+
class: "flex-1 overflow-y-auto px-3.5 py-4 space-y-4 scrollbar-thin scrollbar-stable",
|
|
21
|
+
style: { "will-change": "transform", contain: "layout style" }
|
|
22
|
+
}, q = {
|
|
23
|
+
key: 0,
|
|
24
|
+
class: "mt-auto border-t border-border px-3.5 py-3"
|
|
25
|
+
}, te = /* @__PURE__ */ T({
|
|
26
|
+
__name: "AppShellLayoutStorefront",
|
|
27
|
+
setup(F) {
|
|
28
|
+
const w = P(B), {
|
|
29
|
+
props: l,
|
|
30
|
+
isMobileMenuOpen: n,
|
|
31
|
+
isSidebarVisible: G,
|
|
32
|
+
toggleSidebar: J,
|
|
33
|
+
pageTitle: Q,
|
|
34
|
+
breadcrumbData: g,
|
|
35
|
+
breakpointClasses: m,
|
|
36
|
+
nestedTabsItems: p,
|
|
37
|
+
activeNestedTab: c,
|
|
38
|
+
handleNestedTabClick: k,
|
|
39
|
+
mainScrollRef: C,
|
|
40
|
+
layoutMainRef: S
|
|
41
|
+
} = w, z = v(() => [
|
|
42
|
+
"w-full shrink-0 bg-background transition-shadow duration-200",
|
|
43
|
+
{
|
|
44
|
+
fixed: "fixed top-0 left-0 z-50",
|
|
45
|
+
sticky: "sticky top-0 z-50",
|
|
46
|
+
relative: "relative z-20",
|
|
47
|
+
absolute: "absolute top-0 left-0 w-full z-50"
|
|
48
|
+
}[l.position || "sticky"],
|
|
49
|
+
l.border ? "border-b border-border" : "",
|
|
50
|
+
l.glass ? "bg-background/90 backdrop-blur-md" : "",
|
|
51
|
+
l.floating ? "m-3 rounded-lg border border-border shadow-sm overflow-hidden" : "",
|
|
52
|
+
l.class
|
|
53
|
+
].filter(Boolean).join(" ")), h = v(() => E(l.categoryRoutePrefix));
|
|
54
|
+
return (e, u) => (r(), t("div", L, [
|
|
55
|
+
e.$slots.announcement ? (r(), t("div", M, [
|
|
56
|
+
o(e.$slots, "announcement")
|
|
57
|
+
])) : i("", !0),
|
|
58
|
+
d("header", {
|
|
59
|
+
class: a(z.value)
|
|
60
|
+
}, [
|
|
61
|
+
d("div", O, [
|
|
62
|
+
d("div", {
|
|
63
|
+
class: a(["grid w-full grid-cols-[auto_minmax(0,1fr)_auto] md:grid-cols-[minmax(0,1fr)_auto_minmax(0,1fr)] items-center gap-3", s(l).height])
|
|
64
|
+
}, [
|
|
65
|
+
d("div", A, [
|
|
66
|
+
o(e.$slots, "mobile-trigger", {
|
|
67
|
+
isOpen: s(n),
|
|
68
|
+
toggle: () => n.value = !s(n)
|
|
69
|
+
}, () => [
|
|
70
|
+
d("button", {
|
|
71
|
+
type: "button",
|
|
72
|
+
class: a(["inline-flex items-center justify-center w-9 h-9 rounded-md text-muted-foreground hover:text-foreground hover:bg-accent", [s(m).mobileTrigger, s(l).mobileTriggerClass]]),
|
|
73
|
+
"aria-label": s(n) ? "Close menu" : "Open menu",
|
|
74
|
+
onClick: u[0] || (u[0] = (f) => n.value = !s(n))
|
|
75
|
+
}, [
|
|
76
|
+
b(V, {
|
|
77
|
+
icon: s(n) ? "lucide:x" : "lucide:menu",
|
|
78
|
+
class: "w-5 h-5"
|
|
79
|
+
}, null, 8, ["icon"])
|
|
80
|
+
], 10, U)
|
|
81
|
+
]),
|
|
82
|
+
e.$slots.left ? (r(), t("div", {
|
|
83
|
+
key: 0,
|
|
84
|
+
class: a(["items-center gap-2 min-w-0", s(m).desktopContent])
|
|
85
|
+
}, [
|
|
86
|
+
o(e.$slots, "left")
|
|
87
|
+
], 2)) : i("", !0),
|
|
88
|
+
e.$slots.nav ? (r(), t("nav", {
|
|
89
|
+
key: 1,
|
|
90
|
+
class: a(["items-center gap-1 min-w-0", s(m).desktopContent]),
|
|
91
|
+
"aria-label": "Primary navigation"
|
|
92
|
+
}, [
|
|
93
|
+
o(e.$slots, "nav")
|
|
94
|
+
], 2)) : i("", !0)
|
|
95
|
+
]),
|
|
96
|
+
e.$slots.logo || e.$slots.center ? (r(), t("div", {
|
|
97
|
+
key: 0,
|
|
98
|
+
class: a(["min-w-0 justify-self-center flex items-center justify-center", s(l).logoClass])
|
|
99
|
+
}, [
|
|
100
|
+
o(e.$slots, "logo", {}, () => [
|
|
101
|
+
o(e.$slots, "center")
|
|
102
|
+
])
|
|
103
|
+
], 2)) : i("", !0),
|
|
104
|
+
d("div", {
|
|
105
|
+
class: a(["flex items-center justify-end gap-2 min-w-0 justify-self-end", s(l).rightClass])
|
|
106
|
+
}, [
|
|
107
|
+
e.$slots.search ? (r(), t("div", {
|
|
108
|
+
key: 0,
|
|
109
|
+
class: a(["items-center min-w-0 w-full max-w-sm", s(m).desktopContent])
|
|
110
|
+
}, [
|
|
111
|
+
o(e.$slots, "search")
|
|
112
|
+
], 2)) : i("", !0),
|
|
113
|
+
o(e.$slots, "actions", {}, () => [
|
|
114
|
+
o(e.$slots, "right")
|
|
115
|
+
])
|
|
116
|
+
], 2)
|
|
117
|
+
], 2),
|
|
118
|
+
e.$slots["mobile-search"] || e.$slots.search ? (r(), t("div", {
|
|
119
|
+
key: 0,
|
|
120
|
+
class: a(["pb-3", s(m).mobileTrigger])
|
|
121
|
+
}, [
|
|
122
|
+
o(e.$slots, "mobile-search", {}, () => [
|
|
123
|
+
o(e.$slots, "search")
|
|
124
|
+
])
|
|
125
|
+
], 2)) : i("", !0)
|
|
126
|
+
]),
|
|
127
|
+
e.$slots.categories ? (r(), t("div", {
|
|
128
|
+
key: 0,
|
|
129
|
+
class: a(["w-full border-t border-border bg-background", [s(m).desktopContent, s(l).menuClass]])
|
|
130
|
+
}, [
|
|
131
|
+
d("div", Y, [
|
|
132
|
+
o(e.$slots, "categories", { categoryRoutePrefix: h.value })
|
|
133
|
+
])
|
|
134
|
+
], 2)) : i("", !0)
|
|
135
|
+
], 2),
|
|
136
|
+
e.$slots.main ? (r(), t("main", {
|
|
137
|
+
key: 1,
|
|
138
|
+
ref_key: "layoutMainRef",
|
|
139
|
+
ref: S,
|
|
140
|
+
class: "flex-1 overflow-hidden w-full relative flex flex-col min-h-0"
|
|
141
|
+
}, [
|
|
142
|
+
s(l).renderNestedTabs && s(p).length > 0 ? (r(), t("div", D, [
|
|
143
|
+
b(x, {
|
|
144
|
+
modelValue: s(c),
|
|
145
|
+
"onUpdate:modelValue": u[1] || (u[1] = (f) => y(c) ? c.value = f : null),
|
|
146
|
+
onChange: s(k),
|
|
147
|
+
items: s(p)
|
|
148
|
+
}, null, 8, ["modelValue", "onChange", "items"])
|
|
149
|
+
])) : i("", !0),
|
|
150
|
+
s(l).breadcrumb && s(l).breadcrumbPosition === "main" && s(g).items.value.length > 1 ? (r(), t("div", {
|
|
151
|
+
key: 1,
|
|
152
|
+
class: a(["shrink-0 w-full border-b border-border px-6 py-2", s(l).breadcrumbClass])
|
|
153
|
+
}, [
|
|
154
|
+
b(s(N), {
|
|
155
|
+
items: s(g).items.value,
|
|
156
|
+
variant: s(l).breadcrumbVariant,
|
|
157
|
+
separator: s(l).breadcrumbSeparator,
|
|
158
|
+
size: s(l).breadcrumbSize
|
|
159
|
+
}, null, 8, ["items", "variant", "separator", "size"])
|
|
160
|
+
], 2)) : i("", !0),
|
|
161
|
+
d("div", {
|
|
162
|
+
ref_key: "mainScrollRef",
|
|
163
|
+
ref: C,
|
|
164
|
+
style: { "will-change": "transform", contain: "layout style" },
|
|
165
|
+
class: a(["flex-1 overflow-y-auto w-full relative h-full scrollbar-thin scrollbar-stable", s(l).contentClass])
|
|
166
|
+
}, [
|
|
167
|
+
o(e.$slots, "main")
|
|
168
|
+
], 2)
|
|
169
|
+
], 512)) : i("", !0),
|
|
170
|
+
e.$slots.footer ? (r(), t("footer", H, [
|
|
171
|
+
o(e.$slots, "footer")
|
|
172
|
+
])) : i("", !0),
|
|
173
|
+
b(j, {
|
|
174
|
+
show: s(n),
|
|
175
|
+
"onUpdate:show": u[2] || (u[2] = (f) => y(n) ? n.value = f : null),
|
|
176
|
+
position: "left",
|
|
177
|
+
size: "sm",
|
|
178
|
+
triggerClass: s(m).mobileTrigger,
|
|
179
|
+
class: a(["z-60", s(m).mobileTrigger]),
|
|
180
|
+
headerClass: "pl-3! pr-4.5! py-3!",
|
|
181
|
+
bodyClass: "p-0!"
|
|
182
|
+
}, R({
|
|
183
|
+
default: $(() => [
|
|
184
|
+
d("div", I, [
|
|
185
|
+
d("div", K, [
|
|
186
|
+
o(e.$slots, "mobile-sidebar", {}, () => [
|
|
187
|
+
o(e.$slots, "mobile-nav", {}, () => [
|
|
188
|
+
o(e.$slots, "nav")
|
|
189
|
+
]),
|
|
190
|
+
o(e.$slots, "categories", { categoryRoutePrefix: h.value }),
|
|
191
|
+
o(e.$slots, "left")
|
|
192
|
+
])
|
|
193
|
+
]),
|
|
194
|
+
e.$slots["mobile-sidebar-footer"] || e.$slots.actions || e.$slots.right ? (r(), t("div", q, [
|
|
195
|
+
o(e.$slots, "mobile-sidebar-footer", {}, () => [
|
|
196
|
+
o(e.$slots, "actions", {}, () => [
|
|
197
|
+
o(e.$slots, "right")
|
|
198
|
+
])
|
|
199
|
+
])
|
|
200
|
+
])) : i("", !0)
|
|
201
|
+
])
|
|
202
|
+
]),
|
|
203
|
+
_: 2
|
|
204
|
+
}, [
|
|
205
|
+
e.$slots["mobile-sidebar-header"] || e.$slots.logo || e.$slots.center ? {
|
|
206
|
+
name: "header",
|
|
207
|
+
fn: $(() => [
|
|
208
|
+
o(e.$slots, "mobile-sidebar-header", {}, () => [
|
|
209
|
+
o(e.$slots, "logo", {}, () => [
|
|
210
|
+
o(e.$slots, "center")
|
|
211
|
+
])
|
|
212
|
+
])
|
|
213
|
+
]),
|
|
214
|
+
key: "0"
|
|
215
|
+
} : void 0
|
|
216
|
+
]), 1032, ["show", "triggerClass", "class"])
|
|
217
|
+
]));
|
|
218
|
+
}
|
|
219
|
+
});
|
|
220
|
+
export {
|
|
221
|
+
te as default
|
|
222
|
+
};
|
|
@@ -3,6 +3,7 @@ import Q from "../Dropdown/Dropdown.vue.js";
|
|
|
3
3
|
import "@iconify/vue";
|
|
4
4
|
import "../../core/config.js";
|
|
5
5
|
/* empty css */
|
|
6
|
+
/* empty css */
|
|
6
7
|
/* empty css */
|
|
7
8
|
import R from "../Button.vue.js";
|
|
8
9
|
import T from "../MultiSelect/MultiSelect.vue.js";
|
|
@@ -10,7 +11,7 @@ import U from "../Modal.vue.js";
|
|
|
10
11
|
function j(t) {
|
|
11
12
|
return typeof t == "function" || Object.prototype.toString.call(t) === "[object Object]" && !L(t);
|
|
12
13
|
}
|
|
13
|
-
const
|
|
14
|
+
const re = (t) => /* @__PURE__ */ E({
|
|
14
15
|
name: t.name,
|
|
15
16
|
inheritAttrs: !1,
|
|
16
17
|
props: {
|
|
@@ -213,5 +214,5 @@ const ne = (t) => /* @__PURE__ */ E({
|
|
|
213
214
|
}
|
|
214
215
|
});
|
|
215
216
|
export {
|
|
216
|
-
|
|
217
|
+
re as createAsyncSelect
|
|
217
218
|
};
|