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.
Files changed (32) hide show
  1. package/components/AppShell/AppShell.vue.d.ts +1 -0
  2. package/components/AppShell/AppShell.vue.js +5 -4
  3. package/components/AppShell/AppShellLayoutClassic.vue.d.ts +15 -4
  4. package/components/AppShell/AppShellLayoutClassic.vue.js +106 -97
  5. package/components/AppShell/AppShellLayoutDashboard.vue.d.ts +15 -4
  6. package/components/AppShell/AppShellLayoutDashboard.vue.js +87 -78
  7. package/components/AppShell/AppShellLayoutDock.vue.d.ts +15 -4
  8. package/components/AppShell/AppShellLayoutDock.vue.js +83 -74
  9. package/components/AppShell/AppShellLayoutHeaderShell.vue.d.ts +15 -4
  10. package/components/AppShell/AppShellLayoutHeaderShell.vue.js +82 -73
  11. package/components/AppShell/AppShellLayoutSidebarFirst.vue.d.ts +15 -4
  12. package/components/AppShell/AppShellLayoutSidebarFirst.vue.js +82 -73
  13. package/components/AppShell/AppShellLayoutStorefront.vue.d.ts +7 -1
  14. package/components/AppShell/AppShellLayoutStorefront.vue.js +119 -107
  15. package/components/AppShell/index.d.ts +1 -1
  16. package/components/AppShell/useAppShell.d.ts +11 -0
  17. package/components/AppShell/useAppShell.js +159 -108
  18. package/components/CategoryManager/CategoryManager2.vue.js +1 -1
  19. package/components/CommandPalette/CommandPaletteContent2.vue.js +1 -1
  20. package/components/CommandPalette/{CommandPaletteItem2.vue.js → CommandPaletteItem.vue.js} +1 -1
  21. package/components/Form/{AccordionView2.vue.js → AccordionView.vue.js} +1 -1
  22. package/components/Form/index2.vue.js +1 -1
  23. package/components/NavbarCommandPalette.vue.js +1 -1
  24. package/components/Screen/ScreenFilter.vue.js +1 -1
  25. package/components/Timeline/Timeline.vue.d.ts +3 -1
  26. package/components/Timeline/Timeline.vue.js +24 -22
  27. package/docs/components/app-shell.md +2 -0
  28. package/docs-manifest.json +3 -3
  29. package/package.json +1 -1
  30. package/style.css +1 -1
  31. package/types/appshell.type.d.ts +6 -0
  32. package/types/timeline.type.d.ts +1 -0
@@ -1,151 +1,160 @@
1
- import { defineComponent as R, inject as _, openBlock as a, createElementBlock as o, createVNode as m, Transition as B, unref as e, withCtx as p, withDirectives as y, createElementVNode as n, normalizeClass as b, renderSlot as r, createCommentVNode as t, vShow as w, isRef as k, createSlots as E, createTextVNode as L } from "vue";
2
- import M from "../SidePanel.vue.js";
3
- import P from "../Navbar/NavbarTabs.vue.js";
4
- import A from "../Breadcrumb/Breadcrumb.vue.js";
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 D } from "./useAppShell.js";
9
- const H = { class: "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" }, O = {
8
+ import { APPSHELL_LAYOUT_KEY as U } from "./useAppShell.js";
9
+ const I = {
10
10
  key: 0,
11
11
  class: "flex items-center"
12
- }, U = { 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 = {
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
- }, Y = {
15
+ }, F = {
16
16
  key: 0,
17
17
  class: "shrink-0 w-full"
18
- }, j = { class: "flex flex-col h-full" }, F = {
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
- }, K = {
21
+ }, G = {
22
22
  key: 0,
23
23
  class: "mt-auto"
24
- }, le = /* @__PURE__ */ R({
24
+ }, ae = /* @__PURE__ */ E({
25
25
  __name: "AppShellLayoutDashboard",
26
- setup(q) {
27
- const $ = _(D), {
26
+ setup(J) {
27
+ const S = L(U), {
28
28
  props: l,
29
- sidebarHidden: C,
29
+ sidebarHidden: x,
30
30
  isMobileMenuOpen: i,
31
- isSidebarVisible: S,
32
- toggleSidebar: x,
33
- pageTitle: T,
34
- breadcrumbData: u,
35
- breakpointClasses: f,
36
- nestedTabsItems: v,
37
- activeNestedTab: c,
38
- handleNestedTabClick: V,
39
- mainScrollRef: z,
40
- layoutMainRef: N,
41
- sidebarSlideFromClass: g
42
- } = $;
43
- return (s, d) => (a(), o("div", H, [
44
- m(B, {
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(g),
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(g)
57
+ "leave-to-class": e(k)
51
58
  }, {
52
- default: p(() => [
53
- y(n("nav", {
54
- class: b([
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(f).mobileTrigger === "md:hidden" ? "max-md:hidden" : "",
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", O, [
69
+ s.$slots["sidebar-header"] ? (a(), o("div", I, [
63
70
  r(s.$slots, "sidebar-header")
64
71
  ])) : t("", !0),
65
- n("div", {
66
- class: b(["flex-1 overflow-y-auto overflow-x-hidden scrollbar-thin scrollbar-stable", e(l).contentClass]),
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: b(["shrink-0 bg-transparent", e(l).rightClass])
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
- [w, !e(C)]
85
+ [$, !e(x)]
79
86
  ])
80
87
  ]),
81
88
  _: 3
82
89
  }, 8, ["enter-from-class", "leave-to-class"]),
83
- n("div", U, [
84
- s.$slots.header ? y((a(), o("header", I, [
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(S),
89
- toggleSidebar: e(x),
90
- breadcrumbItems: e(u).items.value,
91
- pageTitle: e(T)
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
- [w, !e(l).hideHeader]
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: N,
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(v).length > 0 ? (a(), o("div", Y, [
103
- m(P, {
104
- modelValue: e(c),
105
- "onUpdate:modelValue": d[0] || (d[0] = (h) => k(c) ? c.value = h : null),
106
- onChange: e(V),
107
- items: e(v)
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(u).items.value.length > 1 ? (a(), o("div", {
118
+ e(l).breadcrumb && e(l).breadcrumbPosition === "main" && e(f).items.value.length > 1 ? (a(), o("div", {
111
119
  key: 1,
112
- class: b(["shrink-0 w-full px-6 py-2 border-b border-border", e(l).breadcrumbClass])
120
+ class: n(["shrink-0 w-full px-6 py-2 border-b border-border", e(l).breadcrumbClass])
113
121
  }, [
114
- m(e(A), {
115
- items: e(u).items.value,
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
- n("div", {
129
+ b("div", {
122
130
  ref_key: "mainScrollRef",
123
- ref: z,
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
- m(M, {
139
+ u(A, {
132
140
  show: e(i),
133
- "onUpdate:show": d[1] || (d[1] = (h) => k(i) ? i.value = h : null),
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(f).mobileTrigger,
137
- class: b(["z-60", e(f).mobileTrigger]),
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
- }, E({
141
- default: p(() => [
142
- n("div", j, [
143
- n("div", F, [
144
- r(s.$slots, "mobile-sidebar", {}, () => [
145
- r(s.$slots, "sidebar")
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", K, [
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: p(() => [
168
+ fn: v(() => [
160
169
  r(s.$slots, "mobile-sidebar-header", {}, () => [
161
170
  r(s.$slots, "sidebar-header", {}, () => [
162
- d[2] || (d[2] = L("Brand", -1))
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
- le as default
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?(_: {}): any;
7
- sidebar?(_: {}): any;
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'?(_: {}): any;
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 _, inject as R, openBlock as a, createElementBlock as o, createVNode as m, Transition as B, unref as e, withCtx as h, withDirectives as y, createElementVNode as n, normalizeClass as b, renderSlot as l, createCommentVNode as t, vShow as w, isRef as k, createTextVNode as E } from "vue";
2
- import L from "../SidePanel.vue.js";
3
- import M from "../Navbar/NavbarTabs.vue.js";
4
- import P from "../Breadcrumb/Breadcrumb.vue.js";
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 A } from "./useAppShell.js";
9
- const D = { class: "vlite-app-layout flex w-full h-full bg-background p-0 sm:p-2 gap-0 sm:gap-2 overflow-hidden items-stretch" }, H = {
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
- }, O = { 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" }, U = {
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
- }, j = {
15
+ }, Y = {
16
16
  key: 0,
17
17
  class: "shrink-0 w-full border-b border-border"
18
- }, I = { class: "flex flex-col h-full" }, Y = {
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
- }, F = {
21
+ }, q = {
22
22
  key: 0,
23
23
  class: "mt-auto pt-2 border-t border-border px-3 py-2"
24
- }, se = /* @__PURE__ */ _({
24
+ }, le = /* @__PURE__ */ B({
25
25
  __name: "AppShellLayoutDock",
26
- setup(K) {
27
- const x = R(A), {
26
+ setup(G) {
27
+ const C = E(O), {
28
28
  props: r,
29
- sidebarHidden: $,
29
+ sidebarHidden: S,
30
30
  isMobileMenuOpen: i,
31
- isSidebarVisible: C,
32
- toggleSidebar: S,
33
- pageTitle: T,
31
+ isSidebarVisible: T,
32
+ toggleSidebar: V,
33
+ pageTitle: D,
34
34
  breadcrumbData: u,
35
35
  breakpointClasses: c,
36
- nestedTabsItems: v,
37
- activeNestedTab: f,
38
- handleNestedTabClick: V,
39
- mainScrollRef: z,
40
- layoutMainRef: N,
41
- sidebarSlideFromClass: g
42
- } = x;
43
- return (s, d) => (a(), o("div", D, [
44
- m(B, {
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(g)} scale-95`,
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(g)} scale-95`
57
+ "leave-to-class": `${e(y)} scale-95`
51
58
  }, {
52
- default: h(() => [
53
- y(n("nav", {
54
- class: b([
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).mobileTrigger === "md:hidden" ? "max-md:hidden" : "",
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"] ? (a(), o("div", H, [
69
+ s.$slots["sidebar-header"] ? (o(), a("div", U, [
63
70
  l(s.$slots, "sidebar-header")
64
71
  ])) : t("", !0),
65
- n("div", {
66
- class: b(["flex flex-col items-center gap-0.5 w-full", e(r).contentClass])
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"] ? (a(), o("div", {
77
+ s.$slots["sidebar-footer"] ? (o(), a("div", {
71
78
  key: 1,
72
- class: b(["flex flex-col items-center w-full", e(r).rightClass])
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
- [w, !e($)]
84
+ [$, !e(S)]
78
85
  ])
79
86
  ]),
80
87
  _: 3
81
88
  }, 8, ["enter-from-class", "leave-to-class"]),
82
- n("div", O, [
83
- s.$slots.header ? y((a(), o("header", U, [
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(C),
88
- toggleSidebar: e(S),
94
+ sidebarVisible: e(T),
95
+ toggleSidebar: e(V),
89
96
  breadcrumbItems: e(u).items.value,
90
- pageTitle: e(T)
97
+ pageTitle: e(D),
98
+ isDesktop: e(m)
91
99
  })
92
100
  ], 512)), [
93
- [w, !e(r).hideHeader]
101
+ [$, !e(r).hideHeader]
94
102
  ]) : t("", !0),
95
- s.$slots.main ? (a(), o("main", {
103
+ s.$slots.main ? (o(), a("main", {
96
104
  key: 1,
97
105
  ref_key: "layoutMainRef",
98
- ref: N,
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(v).length > 0 ? (a(), o("div", j, [
102
- m(M, {
103
- modelValue: e(f),
104
- "onUpdate:modelValue": d[0] || (d[0] = (p) => k(f) ? f.value = p : null),
105
- onChange: e(V),
106
- items: e(v)
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 ? (a(), o("div", {
117
+ e(r).breadcrumb && e(r).breadcrumbPosition === "main" && e(u).items.value.length > 1 ? (o(), a("div", {
110
118
  key: 1,
111
- class: b(["shrink-0 w-full px-6 py-2 border-b border-border", e(r).breadcrumbClass])
119
+ class: n(["shrink-0 w-full px-6 py-2 border-b border-border", e(r).breadcrumbClass])
112
120
  }, [
113
- m(e(P), {
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
- n("div", {
128
+ b("div", {
121
129
  ref_key: "mainScrollRef",
122
- ref: z,
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
- m(L, {
138
+ f(P, {
131
139
  show: e(i),
132
- "onUpdate:show": d[1] || (d[1] = (p) => k(i) ? i.value = p : null),
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: b(["z-60", e(c).mobileTrigger]),
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: h(() => [
149
+ header: v(() => [
141
150
  l(s.$slots, "mobile-sidebar-header", {}, () => [
142
151
  l(s.$slots, "sidebar-header", {}, () => [
143
- d[2] || (d[2] = E("Brand", -1))
152
+ d[2] || (d[2] = M("Brand", -1))
144
153
  ])
145
154
  ])
146
155
  ]),
147
- default: h(() => [
148
- n("div", I, [
149
- n("div", Y, [
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"] ? (a(), o("div", F, [
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
- se as default
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?(_: {}): any;
7
- sidebar?(_: {}): any;
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'?(_: {}): any;
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>;