vlite3 1.5.33 → 1.5.35

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