vlite3 1.5.34 → 1.5.37
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/AppShell/AppShell.vue.d.ts +1 -0
- package/components/AppShell/AppShell.vue.js +5 -4
- package/components/AppShell/AppShellLayoutClassic.vue.d.ts +15 -4
- package/components/AppShell/AppShellLayoutClassic.vue.js +106 -97
- package/components/AppShell/AppShellLayoutDashboard.vue.d.ts +15 -4
- package/components/AppShell/AppShellLayoutDashboard.vue.js +87 -78
- package/components/AppShell/AppShellLayoutDock.vue.d.ts +15 -4
- package/components/AppShell/AppShellLayoutDock.vue.js +83 -74
- package/components/AppShell/AppShellLayoutHeaderShell.vue.d.ts +15 -4
- package/components/AppShell/AppShellLayoutHeaderShell.vue.js +82 -73
- package/components/AppShell/AppShellLayoutSidebarFirst.vue.d.ts +15 -4
- package/components/AppShell/AppShellLayoutSidebarFirst.vue.js +82 -73
- package/components/AppShell/AppShellLayoutStorefront.vue.d.ts +7 -1
- package/components/AppShell/AppShellLayoutStorefront.vue.js +119 -107
- package/components/AppShell/index.d.ts +1 -1
- package/components/AppShell/useAppShell.d.ts +11 -0
- package/components/AppShell/useAppShell.js +159 -108
- package/components/CategoryManager/CategoryManager2.vue.js +1 -1
- package/components/CommandPalette/CommandPaletteContent2.vue.js +1 -1
- package/components/CommandPalette/{CommandPaletteItem2.vue.js → CommandPaletteItem.vue.js} +1 -1
- package/components/Form/{AccordionView2.vue.js → AccordionView.vue.js} +1 -1
- package/components/Form/index2.vue.js +1 -1
- package/components/NavbarCommandPalette.vue.js +1 -1
- package/components/Screen/ScreenFilter.vue.js +1 -1
- package/components/Timeline/Timeline.vue.d.ts +3 -1
- package/components/Timeline/Timeline.vue.js +24 -22
- package/docs/components/app-shell.md +2 -0
- package/docs-manifest.json +3 -3
- package/package.json +1 -1
- package/style.css +1 -1
- package/types/appshell.type.d.ts +6 -0
- package/types/timeline.type.d.ts +1 -0
|
@@ -1,151 +1,160 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
1
|
+
import { defineComponent as E, inject as L, openBlock as a, createElementBlock as o, normalizeClass as n, unref as e, createVNode as u, Transition as M, withCtx as v, withDirectives as w, createElementVNode as b, renderSlot as r, createCommentVNode as t, vShow as $, isRef as C, createSlots as P, createTextVNode as _ } from "vue";
|
|
2
|
+
import A from "../SidePanel.vue.js";
|
|
3
|
+
import H from "../Navbar/NavbarTabs.vue.js";
|
|
4
|
+
import O from "../Breadcrumb/Breadcrumb.vue.js";
|
|
5
5
|
import "@iconify/vue";
|
|
6
6
|
import "../../icons/IconRegistry.js";
|
|
7
7
|
/* empty css */
|
|
8
|
-
import { APPSHELL_LAYOUT_KEY as
|
|
9
|
-
const
|
|
8
|
+
import { APPSHELL_LAYOUT_KEY as U } from "./useAppShell.js";
|
|
9
|
+
const I = {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "flex items-center"
|
|
12
|
-
},
|
|
12
|
+
}, Y = { class: "flex flex-col flex-1 min-w-0 h-full overflow-hidden bg-background rounded-xl max-sm:rounded-none border border-border max-sm:border-0 shadow-sm" }, j = {
|
|
13
13
|
key: 0,
|
|
14
14
|
class: "w-full shrink-0 z-20 bg-background border-b border-border"
|
|
15
|
-
},
|
|
15
|
+
}, F = {
|
|
16
16
|
key: 0,
|
|
17
17
|
class: "shrink-0 w-full"
|
|
18
|
-
},
|
|
18
|
+
}, K = { class: "flex flex-col h-full" }, q = {
|
|
19
19
|
class: "flex-1 overflow-y-auto px-3.5 pt-4 scrollbar-thin scrollbar-stable",
|
|
20
20
|
style: { "will-change": "transform", contain: "layout style" }
|
|
21
|
-
},
|
|
21
|
+
}, G = {
|
|
22
22
|
key: 0,
|
|
23
23
|
class: "mt-auto"
|
|
24
|
-
},
|
|
24
|
+
}, ae = /* @__PURE__ */ E({
|
|
25
25
|
__name: "AppShellLayoutDashboard",
|
|
26
|
-
setup(
|
|
27
|
-
const
|
|
26
|
+
setup(J) {
|
|
27
|
+
const S = L(U), {
|
|
28
28
|
props: l,
|
|
29
|
-
sidebarHidden:
|
|
29
|
+
sidebarHidden: x,
|
|
30
30
|
isMobileMenuOpen: i,
|
|
31
|
-
isSidebarVisible:
|
|
32
|
-
toggleSidebar:
|
|
33
|
-
pageTitle:
|
|
34
|
-
breadcrumbData:
|
|
35
|
-
breakpointClasses:
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
31
|
+
isSidebarVisible: T,
|
|
32
|
+
toggleSidebar: V,
|
|
33
|
+
pageTitle: D,
|
|
34
|
+
breadcrumbData: f,
|
|
35
|
+
breakpointClasses: c,
|
|
36
|
+
isDesktop: m,
|
|
37
|
+
shellRef: g,
|
|
38
|
+
shellClass: z,
|
|
39
|
+
nestedTabsItems: y,
|
|
40
|
+
activeNestedTab: h,
|
|
41
|
+
handleNestedTabClick: N,
|
|
42
|
+
mainScrollRef: R,
|
|
43
|
+
layoutMainRef: B,
|
|
44
|
+
sidebarSlideFromClass: k
|
|
45
|
+
} = S;
|
|
46
|
+
return (s, d) => (a(), o("div", {
|
|
47
|
+
ref_key: "shellRef",
|
|
48
|
+
ref: g,
|
|
49
|
+
class: n(["vlite-app-layout flex w-full h-full bg-muted/20 p-0 sm:p-2.5 gap-0 sm:gap-2.5 overflow-hidden", e(z)])
|
|
50
|
+
}, [
|
|
51
|
+
u(M, {
|
|
45
52
|
"enter-active-class": "transition-all duration-300 ease-in-out",
|
|
46
53
|
"leave-active-class": "transition-all duration-300 ease-in-out",
|
|
47
|
-
"enter-from-class": e(
|
|
54
|
+
"enter-from-class": e(k),
|
|
48
55
|
"enter-to-class": "opacity-100 translate-x-0",
|
|
49
56
|
"leave-from-class": "opacity-100 translate-x-0",
|
|
50
|
-
"leave-to-class": e(
|
|
57
|
+
"leave-to-class": e(k)
|
|
51
58
|
}, {
|
|
52
|
-
default:
|
|
53
|
-
|
|
54
|
-
class:
|
|
59
|
+
default: v(() => [
|
|
60
|
+
w(b("nav", {
|
|
61
|
+
class: n([
|
|
55
62
|
"shrink-0 h-full flex flex-col bg-background rounded-xl max-sm:rounded-none border border-border max-sm:border-0 shadow-sm overflow-hidden z-30",
|
|
56
|
-
e(
|
|
63
|
+
e(c).mobileSidebar,
|
|
57
64
|
e(l).class
|
|
58
65
|
]),
|
|
59
66
|
role: "navigation",
|
|
60
67
|
"aria-label": "Sidebar"
|
|
61
68
|
}, [
|
|
62
|
-
s.$slots["sidebar-header"] ? (a(), o("div",
|
|
69
|
+
s.$slots["sidebar-header"] ? (a(), o("div", I, [
|
|
63
70
|
r(s.$slots, "sidebar-header")
|
|
64
71
|
])) : t("", !0),
|
|
65
|
-
|
|
66
|
-
class:
|
|
72
|
+
b("div", {
|
|
73
|
+
class: n(["flex-1 overflow-y-auto overflow-x-hidden scrollbar-thin scrollbar-stable", e(l).contentClass]),
|
|
67
74
|
style: { "will-change": "transform", contain: "layout style" }
|
|
68
75
|
}, [
|
|
69
|
-
r(s.$slots, "sidebar")
|
|
76
|
+
r(s.$slots, "sidebar", { isDesktop: e(m) })
|
|
70
77
|
], 2),
|
|
71
78
|
s.$slots["sidebar-footer"] ? (a(), o("div", {
|
|
72
79
|
key: 1,
|
|
73
|
-
class:
|
|
80
|
+
class: n(["shrink-0 bg-transparent", e(l).rightClass])
|
|
74
81
|
}, [
|
|
75
82
|
r(s.$slots, "sidebar-footer")
|
|
76
83
|
], 2)) : t("", !0)
|
|
77
84
|
], 2), [
|
|
78
|
-
[
|
|
85
|
+
[$, !e(x)]
|
|
79
86
|
])
|
|
80
87
|
]),
|
|
81
88
|
_: 3
|
|
82
89
|
}, 8, ["enter-from-class", "leave-to-class"]),
|
|
83
|
-
|
|
84
|
-
s.$slots.header ?
|
|
90
|
+
b("div", Y, [
|
|
91
|
+
s.$slots.header ? w((a(), o("header", j, [
|
|
85
92
|
r(s.$slots, "header", {
|
|
86
93
|
isOpen: e(i),
|
|
87
94
|
toggle: () => i.value = !e(i),
|
|
88
|
-
sidebarVisible: e(
|
|
89
|
-
toggleSidebar: e(
|
|
90
|
-
breadcrumbItems: e(
|
|
91
|
-
pageTitle: e(
|
|
95
|
+
sidebarVisible: e(T),
|
|
96
|
+
toggleSidebar: e(V),
|
|
97
|
+
breadcrumbItems: e(f).items.value,
|
|
98
|
+
pageTitle: e(D),
|
|
99
|
+
isDesktop: e(m)
|
|
92
100
|
})
|
|
93
101
|
], 512)), [
|
|
94
|
-
[
|
|
102
|
+
[$, !e(l).hideHeader]
|
|
95
103
|
]) : t("", !0),
|
|
96
104
|
s.$slots.main ? (a(), o("main", {
|
|
97
105
|
key: 1,
|
|
98
106
|
ref_key: "layoutMainRef",
|
|
99
|
-
ref:
|
|
107
|
+
ref: B,
|
|
100
108
|
class: "flex-1 overflow-y-auto w-full relative h-full flex flex-col min-h-0 scrollbar-thin scrollbar-stable"
|
|
101
109
|
}, [
|
|
102
|
-
e(l).renderNestedTabs && e(
|
|
103
|
-
|
|
104
|
-
modelValue: e(
|
|
105
|
-
"onUpdate:modelValue": d[0] || (d[0] = (
|
|
106
|
-
onChange: e(
|
|
107
|
-
items: e(
|
|
110
|
+
e(l).renderNestedTabs && e(y).length > 0 ? (a(), o("div", F, [
|
|
111
|
+
u(H, {
|
|
112
|
+
modelValue: e(h),
|
|
113
|
+
"onUpdate:modelValue": d[0] || (d[0] = (p) => C(h) ? h.value = p : null),
|
|
114
|
+
onChange: e(N),
|
|
115
|
+
items: e(y)
|
|
108
116
|
}, null, 8, ["modelValue", "onChange", "items"])
|
|
109
117
|
])) : t("", !0),
|
|
110
|
-
e(l).breadcrumb && e(l).breadcrumbPosition === "main" && e(
|
|
118
|
+
e(l).breadcrumb && e(l).breadcrumbPosition === "main" && e(f).items.value.length > 1 ? (a(), o("div", {
|
|
111
119
|
key: 1,
|
|
112
|
-
class:
|
|
120
|
+
class: n(["shrink-0 w-full px-6 py-2 border-b border-border", e(l).breadcrumbClass])
|
|
113
121
|
}, [
|
|
114
|
-
|
|
115
|
-
items: e(
|
|
122
|
+
u(e(O), {
|
|
123
|
+
items: e(f).items.value,
|
|
116
124
|
variant: e(l).breadcrumbVariant,
|
|
117
125
|
separator: e(l).breadcrumbSeparator,
|
|
118
126
|
size: e(l).breadcrumbSize
|
|
119
127
|
}, null, 8, ["items", "variant", "separator", "size"])
|
|
120
128
|
], 2)) : t("", !0),
|
|
121
|
-
|
|
129
|
+
b("div", {
|
|
122
130
|
ref_key: "mainScrollRef",
|
|
123
|
-
ref:
|
|
131
|
+
ref: R,
|
|
124
132
|
style: { "will-change": "transform", contain: "layout style" },
|
|
125
133
|
class: "flex-1 overflow-y-auto w-full relative h-full scrollbar-thin scrollbar-stable"
|
|
126
134
|
}, [
|
|
127
|
-
r(s.$slots, "main")
|
|
135
|
+
r(s.$slots, "main", { isDesktop: e(m) })
|
|
128
136
|
], 512)
|
|
129
137
|
], 512)) : t("", !0)
|
|
130
138
|
]),
|
|
131
|
-
|
|
139
|
+
u(A, {
|
|
132
140
|
show: e(i),
|
|
133
|
-
"onUpdate:show": d[1] || (d[1] = (
|
|
141
|
+
"onUpdate:show": d[1] || (d[1] = (p) => C(i) ? i.value = p : null),
|
|
134
142
|
position: "left",
|
|
135
143
|
size: "sm",
|
|
136
|
-
triggerClass: e(
|
|
137
|
-
class:
|
|
144
|
+
triggerClass: e(c).mobileTrigger,
|
|
145
|
+
class: n(["z-60", e(c).mobileTrigger]),
|
|
138
146
|
headerClass: "ps-3! pe-4.5! py-3!",
|
|
139
|
-
bodyClass: "p-0!"
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
147
|
+
bodyClass: "p-0!",
|
|
148
|
+
"teleport-target": e(l).breakpointSource === "container" && e(g) || void 0
|
|
149
|
+
}, P({
|
|
150
|
+
default: v(() => [
|
|
151
|
+
b("div", K, [
|
|
152
|
+
b("div", q, [
|
|
153
|
+
r(s.$slots, "mobile-sidebar", { isDesktop: e(m) }, () => [
|
|
154
|
+
r(s.$slots, "sidebar", { isDesktop: e(m) })
|
|
146
155
|
])
|
|
147
156
|
]),
|
|
148
|
-
s.$slots["mobile-sidebar-footer"] || s.$slots["sidebar-footer"] ? (a(), o("div",
|
|
157
|
+
s.$slots["mobile-sidebar-footer"] || s.$slots["sidebar-footer"] ? (a(), o("div", G, [
|
|
149
158
|
r(s.$slots, "mobile-sidebar-footer", {}, () => [
|
|
150
159
|
r(s.$slots, "sidebar-footer")
|
|
151
160
|
])
|
|
@@ -156,19 +165,19 @@ const H = { class: "vlite-app-layout flex w-full h-full bg-muted/20 p-0 sm:p-2.5
|
|
|
156
165
|
}, [
|
|
157
166
|
s.$slots["mobile-sidebar-header"] || s.$slots["sidebar-header"] ? {
|
|
158
167
|
name: "header",
|
|
159
|
-
fn:
|
|
168
|
+
fn: v(() => [
|
|
160
169
|
r(s.$slots, "mobile-sidebar-header", {}, () => [
|
|
161
170
|
r(s.$slots, "sidebar-header", {}, () => [
|
|
162
|
-
d[2] || (d[2] =
|
|
171
|
+
d[2] || (d[2] = _("Brand", -1))
|
|
163
172
|
])
|
|
164
173
|
])
|
|
165
174
|
]),
|
|
166
175
|
key: "0"
|
|
167
176
|
} : void 0
|
|
168
|
-
]), 1032, ["show", "triggerClass", "class"])
|
|
169
|
-
]));
|
|
177
|
+
]), 1032, ["show", "triggerClass", "teleport-target", "class"])
|
|
178
|
+
], 2));
|
|
170
179
|
}
|
|
171
180
|
});
|
|
172
181
|
export {
|
|
173
|
-
|
|
182
|
+
ae as default
|
|
174
183
|
};
|
|
@@ -3,8 +3,12 @@ declare function __VLS_template(): {
|
|
|
3
3
|
slots: {
|
|
4
4
|
'sidebar-header'?(_: {}): any;
|
|
5
5
|
'sidebar-header'?(_: {}): any;
|
|
6
|
-
sidebar?(_: {
|
|
7
|
-
|
|
6
|
+
sidebar?(_: {
|
|
7
|
+
isDesktop: boolean;
|
|
8
|
+
}): any;
|
|
9
|
+
sidebar?(_: {
|
|
10
|
+
isDesktop: boolean;
|
|
11
|
+
}): any;
|
|
8
12
|
'sidebar-footer'?(_: {}): any;
|
|
9
13
|
'sidebar-footer'?(_: {}): any;
|
|
10
14
|
header?(_: {
|
|
@@ -14,13 +18,19 @@ declare function __VLS_template(): {
|
|
|
14
18
|
toggleSidebar: () => void;
|
|
15
19
|
breadcrumbItems: any[];
|
|
16
20
|
pageTitle: string;
|
|
21
|
+
isDesktop: boolean;
|
|
22
|
+
}): any;
|
|
23
|
+
main?(_: {
|
|
24
|
+
isDesktop: boolean;
|
|
17
25
|
}): any;
|
|
18
|
-
main?(_: {}): any;
|
|
19
26
|
'mobile-sidebar-header'?(_: {}): any;
|
|
20
|
-
'mobile-sidebar'?(_: {
|
|
27
|
+
'mobile-sidebar'?(_: {
|
|
28
|
+
isDesktop: boolean;
|
|
29
|
+
}): any;
|
|
21
30
|
'mobile-sidebar-footer'?(_: {}): any;
|
|
22
31
|
};
|
|
23
32
|
refs: {
|
|
33
|
+
shellRef: HTMLDivElement;
|
|
24
34
|
layoutMainRef: HTMLElement;
|
|
25
35
|
mainScrollRef: HTMLDivElement;
|
|
26
36
|
};
|
|
@@ -28,6 +38,7 @@ declare function __VLS_template(): {
|
|
|
28
38
|
};
|
|
29
39
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
30
40
|
declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
41
|
+
shellRef: HTMLDivElement;
|
|
31
42
|
layoutMainRef: HTMLElement;
|
|
32
43
|
mainScrollRef: HTMLDivElement;
|
|
33
44
|
}, HTMLDivElement>;
|
|
@@ -1,157 +1,166 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
1
|
+
import { defineComponent as B, inject as E, openBlock as o, createElementBlock as a, normalizeClass as n, unref as e, createVNode as f, Transition as L, withCtx as v, withDirectives as w, createElementVNode as b, renderSlot as l, createCommentVNode as t, vShow as $, isRef as x, createTextVNode as M } from "vue";
|
|
2
|
+
import P from "../SidePanel.vue.js";
|
|
3
|
+
import A from "../Navbar/NavbarTabs.vue.js";
|
|
4
|
+
import H from "../Breadcrumb/Breadcrumb.vue.js";
|
|
5
5
|
import "@iconify/vue";
|
|
6
6
|
import "../../icons/IconRegistry.js";
|
|
7
7
|
/* empty css */
|
|
8
|
-
import { APPSHELL_LAYOUT_KEY as
|
|
9
|
-
const
|
|
8
|
+
import { APPSHELL_LAYOUT_KEY as O } from "./useAppShell.js";
|
|
9
|
+
const U = {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "flex items-center justify-center w-full"
|
|
12
|
-
},
|
|
12
|
+
}, j = { class: "flex flex-col flex-1 min-w-0 h-full overflow-hidden bg-background rounded-xl max-sm:rounded-none border border-border max-sm:border-0 shadow-sm" }, I = {
|
|
13
13
|
key: 0,
|
|
14
14
|
class: "w-full shrink-0 z-20 bg-background border-b border-border"
|
|
15
|
-
},
|
|
15
|
+
}, Y = {
|
|
16
16
|
key: 0,
|
|
17
17
|
class: "shrink-0 w-full border-b border-border"
|
|
18
|
-
},
|
|
18
|
+
}, F = { class: "flex flex-col h-full" }, K = {
|
|
19
19
|
class: "flex-1 overflow-y-auto px-3.5 pt-4 scrollbar-thin scrollbar-stable",
|
|
20
20
|
style: { "will-change": "transform", contain: "layout style" }
|
|
21
|
-
},
|
|
21
|
+
}, q = {
|
|
22
22
|
key: 0,
|
|
23
23
|
class: "mt-auto pt-2 border-t border-border px-3 py-2"
|
|
24
|
-
},
|
|
24
|
+
}, le = /* @__PURE__ */ B({
|
|
25
25
|
__name: "AppShellLayoutDock",
|
|
26
|
-
setup(
|
|
27
|
-
const
|
|
26
|
+
setup(G) {
|
|
27
|
+
const C = E(O), {
|
|
28
28
|
props: r,
|
|
29
|
-
sidebarHidden:
|
|
29
|
+
sidebarHidden: S,
|
|
30
30
|
isMobileMenuOpen: i,
|
|
31
|
-
isSidebarVisible:
|
|
32
|
-
toggleSidebar:
|
|
33
|
-
pageTitle:
|
|
31
|
+
isSidebarVisible: T,
|
|
32
|
+
toggleSidebar: V,
|
|
33
|
+
pageTitle: D,
|
|
34
34
|
breadcrumbData: u,
|
|
35
35
|
breakpointClasses: c,
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
36
|
+
isDesktop: m,
|
|
37
|
+
shellRef: g,
|
|
38
|
+
shellClass: z,
|
|
39
|
+
nestedTabsItems: k,
|
|
40
|
+
activeNestedTab: p,
|
|
41
|
+
handleNestedTabClick: N,
|
|
42
|
+
mainScrollRef: R,
|
|
43
|
+
layoutMainRef: _,
|
|
44
|
+
sidebarSlideFromClass: y
|
|
45
|
+
} = C;
|
|
46
|
+
return (s, d) => (o(), a("div", {
|
|
47
|
+
ref_key: "shellRef",
|
|
48
|
+
ref: g,
|
|
49
|
+
class: n(["vlite-app-layout flex w-full h-full bg-background p-0 sm:p-2 gap-0 sm:gap-2 overflow-hidden items-stretch", e(z)])
|
|
50
|
+
}, [
|
|
51
|
+
f(L, {
|
|
45
52
|
"enter-active-class": "transition-all duration-300 ease-in-out",
|
|
46
53
|
"leave-active-class": "transition-all duration-300 ease-in-out",
|
|
47
|
-
"enter-from-class": `${e(
|
|
54
|
+
"enter-from-class": `${e(y)} scale-95`,
|
|
48
55
|
"enter-to-class": "opacity-100 translate-x-0 scale-100",
|
|
49
56
|
"leave-from-class": "opacity-100 translate-x-0 scale-100",
|
|
50
|
-
"leave-to-class": `${e(
|
|
57
|
+
"leave-to-class": `${e(y)} scale-95`
|
|
51
58
|
}, {
|
|
52
|
-
default:
|
|
53
|
-
|
|
54
|
-
class:
|
|
59
|
+
default: v(() => [
|
|
60
|
+
w(b("nav", {
|
|
61
|
+
class: n([
|
|
55
62
|
"shrink-0 self-center flex flex-col items-center bg-background rounded-2xl max-sm:rounded-none border border-border max-sm:border-0 shadow-sm overflow-hidden z-30 py-3 px-2 gap-0.5",
|
|
56
|
-
e(c).
|
|
63
|
+
e(c).mobileSidebar,
|
|
57
64
|
e(r).class
|
|
58
65
|
]),
|
|
59
66
|
role: "navigation",
|
|
60
67
|
"aria-label": "Sidebar dock"
|
|
61
68
|
}, [
|
|
62
|
-
s.$slots["sidebar-header"] ? (
|
|
69
|
+
s.$slots["sidebar-header"] ? (o(), a("div", U, [
|
|
63
70
|
l(s.$slots, "sidebar-header")
|
|
64
71
|
])) : t("", !0),
|
|
65
|
-
|
|
66
|
-
class:
|
|
72
|
+
b("div", {
|
|
73
|
+
class: n(["flex flex-col items-center gap-0.5 w-full", e(r).contentClass])
|
|
67
74
|
}, [
|
|
68
|
-
l(s.$slots, "sidebar")
|
|
75
|
+
l(s.$slots, "sidebar", { isDesktop: e(m) })
|
|
69
76
|
], 2),
|
|
70
|
-
s.$slots["sidebar-footer"] ? (
|
|
77
|
+
s.$slots["sidebar-footer"] ? (o(), a("div", {
|
|
71
78
|
key: 1,
|
|
72
|
-
class:
|
|
79
|
+
class: n(["flex flex-col items-center w-full", e(r).rightClass])
|
|
73
80
|
}, [
|
|
74
81
|
l(s.$slots, "sidebar-footer")
|
|
75
82
|
], 2)) : t("", !0)
|
|
76
83
|
], 2), [
|
|
77
|
-
[
|
|
84
|
+
[$, !e(S)]
|
|
78
85
|
])
|
|
79
86
|
]),
|
|
80
87
|
_: 3
|
|
81
88
|
}, 8, ["enter-from-class", "leave-to-class"]),
|
|
82
|
-
|
|
83
|
-
s.$slots.header ?
|
|
89
|
+
b("div", j, [
|
|
90
|
+
s.$slots.header ? w((o(), a("header", I, [
|
|
84
91
|
l(s.$slots, "header", {
|
|
85
92
|
isOpen: e(i),
|
|
86
93
|
toggle: () => i.value = !e(i),
|
|
87
|
-
sidebarVisible: e(
|
|
88
|
-
toggleSidebar: e(
|
|
94
|
+
sidebarVisible: e(T),
|
|
95
|
+
toggleSidebar: e(V),
|
|
89
96
|
breadcrumbItems: e(u).items.value,
|
|
90
|
-
pageTitle: e(
|
|
97
|
+
pageTitle: e(D),
|
|
98
|
+
isDesktop: e(m)
|
|
91
99
|
})
|
|
92
100
|
], 512)), [
|
|
93
|
-
[
|
|
101
|
+
[$, !e(r).hideHeader]
|
|
94
102
|
]) : t("", !0),
|
|
95
|
-
s.$slots.main ? (
|
|
103
|
+
s.$slots.main ? (o(), a("main", {
|
|
96
104
|
key: 1,
|
|
97
105
|
ref_key: "layoutMainRef",
|
|
98
|
-
ref:
|
|
106
|
+
ref: _,
|
|
99
107
|
class: "flex-1 overflow-y-auto w-full relative h-full flex flex-col min-h-0 scrollbar-thin scrollbar-stable"
|
|
100
108
|
}, [
|
|
101
|
-
e(r).renderNestedTabs && e(
|
|
102
|
-
|
|
103
|
-
modelValue: e(
|
|
104
|
-
"onUpdate:modelValue": d[0] || (d[0] = (
|
|
105
|
-
onChange: e(
|
|
106
|
-
items: e(
|
|
109
|
+
e(r).renderNestedTabs && e(k).length > 0 ? (o(), a("div", Y, [
|
|
110
|
+
f(A, {
|
|
111
|
+
modelValue: e(p),
|
|
112
|
+
"onUpdate:modelValue": d[0] || (d[0] = (h) => x(p) ? p.value = h : null),
|
|
113
|
+
onChange: e(N),
|
|
114
|
+
items: e(k)
|
|
107
115
|
}, null, 8, ["modelValue", "onChange", "items"])
|
|
108
116
|
])) : t("", !0),
|
|
109
|
-
e(r).breadcrumb && e(r).breadcrumbPosition === "main" && e(u).items.value.length > 1 ? (
|
|
117
|
+
e(r).breadcrumb && e(r).breadcrumbPosition === "main" && e(u).items.value.length > 1 ? (o(), a("div", {
|
|
110
118
|
key: 1,
|
|
111
|
-
class:
|
|
119
|
+
class: n(["shrink-0 w-full px-6 py-2 border-b border-border", e(r).breadcrumbClass])
|
|
112
120
|
}, [
|
|
113
|
-
|
|
121
|
+
f(e(H), {
|
|
114
122
|
items: e(u).items.value,
|
|
115
123
|
variant: e(r).breadcrumbVariant,
|
|
116
124
|
separator: e(r).breadcrumbSeparator,
|
|
117
125
|
size: e(r).breadcrumbSize
|
|
118
126
|
}, null, 8, ["items", "variant", "separator", "size"])
|
|
119
127
|
], 2)) : t("", !0),
|
|
120
|
-
|
|
128
|
+
b("div", {
|
|
121
129
|
ref_key: "mainScrollRef",
|
|
122
|
-
ref:
|
|
130
|
+
ref: R,
|
|
123
131
|
style: { "will-change": "transform", contain: "layout style" },
|
|
124
132
|
class: "flex-1 overflow-y-auto w-full relative h-full scrollbar-thin scrollbar-stable"
|
|
125
133
|
}, [
|
|
126
|
-
l(s.$slots, "main")
|
|
134
|
+
l(s.$slots, "main", { isDesktop: e(m) })
|
|
127
135
|
], 512)
|
|
128
136
|
], 512)) : t("", !0)
|
|
129
137
|
]),
|
|
130
|
-
|
|
138
|
+
f(P, {
|
|
131
139
|
show: e(i),
|
|
132
|
-
"onUpdate:show": d[1] || (d[1] = (
|
|
140
|
+
"onUpdate:show": d[1] || (d[1] = (h) => x(i) ? i.value = h : null),
|
|
133
141
|
position: "left",
|
|
134
142
|
size: "sm",
|
|
135
143
|
triggerClass: e(c).mobileTrigger,
|
|
136
|
-
class:
|
|
144
|
+
class: n(["z-60", e(c).mobileTrigger]),
|
|
137
145
|
headerClass: "ps-3! pe-4.5! py-3!",
|
|
138
|
-
bodyClass: "p-0!"
|
|
146
|
+
bodyClass: "p-0!",
|
|
147
|
+
"teleport-target": e(r).breakpointSource === "container" && e(g) || void 0
|
|
139
148
|
}, {
|
|
140
|
-
header:
|
|
149
|
+
header: v(() => [
|
|
141
150
|
l(s.$slots, "mobile-sidebar-header", {}, () => [
|
|
142
151
|
l(s.$slots, "sidebar-header", {}, () => [
|
|
143
|
-
d[2] || (d[2] =
|
|
152
|
+
d[2] || (d[2] = M("Brand", -1))
|
|
144
153
|
])
|
|
145
154
|
])
|
|
146
155
|
]),
|
|
147
|
-
default:
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
l(s.$slots, "mobile-sidebar", {}, () => [
|
|
151
|
-
l(s.$slots, "sidebar")
|
|
156
|
+
default: v(() => [
|
|
157
|
+
b("div", F, [
|
|
158
|
+
b("div", K, [
|
|
159
|
+
l(s.$slots, "mobile-sidebar", { isDesktop: e(m) }, () => [
|
|
160
|
+
l(s.$slots, "sidebar", { isDesktop: e(m) })
|
|
152
161
|
])
|
|
153
162
|
]),
|
|
154
|
-
s.$slots["mobile-sidebar-footer"] || s.$slots["sidebar-footer"] ? (
|
|
163
|
+
s.$slots["mobile-sidebar-footer"] || s.$slots["sidebar-footer"] ? (o(), a("div", q, [
|
|
155
164
|
l(s.$slots, "mobile-sidebar-footer", {}, () => [
|
|
156
165
|
l(s.$slots, "sidebar-footer")
|
|
157
166
|
])
|
|
@@ -159,10 +168,10 @@ const D = { class: "vlite-app-layout flex w-full h-full bg-background p-0 sm:p-2
|
|
|
159
168
|
])
|
|
160
169
|
]),
|
|
161
170
|
_: 3
|
|
162
|
-
}, 8, ["show", "triggerClass", "class"])
|
|
163
|
-
]));
|
|
171
|
+
}, 8, ["show", "triggerClass", "teleport-target", "class"])
|
|
172
|
+
], 2));
|
|
164
173
|
}
|
|
165
174
|
});
|
|
166
175
|
export {
|
|
167
|
-
|
|
176
|
+
le as default
|
|
168
177
|
};
|
|
@@ -3,8 +3,12 @@ declare function __VLS_template(): {
|
|
|
3
3
|
slots: {
|
|
4
4
|
'sidebar-header'?(_: {}): any;
|
|
5
5
|
'sidebar-header'?(_: {}): any;
|
|
6
|
-
sidebar?(_: {
|
|
7
|
-
|
|
6
|
+
sidebar?(_: {
|
|
7
|
+
isDesktop: boolean;
|
|
8
|
+
}): any;
|
|
9
|
+
sidebar?(_: {
|
|
10
|
+
isDesktop: boolean;
|
|
11
|
+
}): any;
|
|
8
12
|
'sidebar-footer'?(_: {}): any;
|
|
9
13
|
'sidebar-footer'?(_: {}): any;
|
|
10
14
|
header?(_: {
|
|
@@ -14,13 +18,19 @@ declare function __VLS_template(): {
|
|
|
14
18
|
toggleSidebar: () => void;
|
|
15
19
|
breadcrumbItems: any[];
|
|
16
20
|
pageTitle: string;
|
|
21
|
+
isDesktop: boolean;
|
|
22
|
+
}): any;
|
|
23
|
+
main?(_: {
|
|
24
|
+
isDesktop: boolean;
|
|
17
25
|
}): any;
|
|
18
|
-
main?(_: {}): any;
|
|
19
26
|
'mobile-sidebar-header'?(_: {}): any;
|
|
20
|
-
'mobile-sidebar'?(_: {
|
|
27
|
+
'mobile-sidebar'?(_: {
|
|
28
|
+
isDesktop: boolean;
|
|
29
|
+
}): any;
|
|
21
30
|
'mobile-sidebar-footer'?(_: {}): any;
|
|
22
31
|
};
|
|
23
32
|
refs: {
|
|
33
|
+
shellRef: HTMLDivElement;
|
|
24
34
|
layoutMainRef: HTMLElement;
|
|
25
35
|
mainScrollRef: HTMLDivElement;
|
|
26
36
|
};
|
|
@@ -28,6 +38,7 @@ declare function __VLS_template(): {
|
|
|
28
38
|
};
|
|
29
39
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
30
40
|
declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
41
|
+
shellRef: HTMLDivElement;
|
|
31
42
|
layoutMainRef: HTMLElement;
|
|
32
43
|
mainScrollRef: HTMLDivElement;
|
|
33
44
|
}, HTMLDivElement>;
|