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,139 +1,190 @@
1
- import { computed as t, shallowRef as A, ref as i, provide as S, onMounted as I, onUnmounted as P, watch as p, nextTick as Y } from "vue";
2
- import { useRoute as D } from "vue-router";
3
- import { useLocalStorage as U, useBreakpoints as _, breakpointsTailwind as F } from "@vueuse/core";
4
- import { useBreadcrumb as K } from "../../composables/useBreadcrumb.js";
5
- import { useRtl as V } from "../../composables/useRtl.js";
6
- const W = /* @__PURE__ */ Symbol("appshell-layout-ctx");
7
- function ee(e, v) {
8
- const L = e.breadcrumb ? K({
1
+ import { computed as n, shallowRef as I, ref as o, provide as L, watch as k, onMounted as Y, onUnmounted as _, nextTick as U } from "vue";
2
+ import { useRoute as V } from "vue-router";
3
+ import { useLocalStorage as W, useBreakpoints as F, breakpointsTailwind as K } from "@vueuse/core";
4
+ import { useBreadcrumb as q } from "../../composables/useBreadcrumb.js";
5
+ import { useRtl as G } from "../../composables/useRtl.js";
6
+ const J = /* @__PURE__ */ Symbol("appshell-layout-ctx");
7
+ function ne(e, v) {
8
+ const O = e.breadcrumb ? q({
9
9
  homeIcon: e.breadcrumbHomeIcon,
10
10
  labelMap: e.breadcrumbLabels || {}
11
- }) : { items: t(() => []) }, c = A([]), m = i("");
12
- S("navbar-context", {
13
- compact: t(() => e.compact),
14
- renderNestedTabs: t(() => e.renderNestedTabs),
15
- setNestedTabs: (l, n) => {
16
- c.value = l, m.value = n;
11
+ }) : { items: n(() => []) }, f = I([]), u = o("");
12
+ L("navbar-context", {
13
+ compact: n(() => e.compact),
14
+ renderNestedTabs: n(() => e.renderNestedTabs),
15
+ setNestedTabs: (l, i) => {
16
+ f.value = l, u.value = i;
17
17
  }
18
18
  });
19
- const u = i(!1), o = i(!1), a = i(null), f = i(null), E = V(), w = t(() => E.value), N = t(
20
- () => w.value ? "opacity-0 translate-x-2" : "opacity-0 -translate-x-2"
21
- ), d = U("vlite-appshell-sidebar-visible", !0), R = t(() => e.sidebarToggle && v), j = () => {
22
- d.value = !d.value;
23
- }, B = t(() => e.hideSidebar || R.value && !d.value), H = (l) => {
24
- c.value.find((s) => s.value === l) && (typeof l == "string" && l.startsWith("/") ? import("vue-router").then(({ useRouter: s }) => {
25
- s().push(l).catch(() => {
19
+ const b = o(!1), w = o(null), x = o(null), H = n(
20
+ () => (e.breakpointSource ?? "viewport") === "container" ? "@container" : ""
21
+ );
22
+ k(
23
+ [w, () => e.breakpointSource ?? "viewport"],
24
+ ([l, i], t, d) => {
25
+ if (i !== "container" || !l) {
26
+ x.value = null;
27
+ return;
28
+ }
29
+ const r = new ResizeObserver((a) => {
30
+ x.value = a[0]?.contentRect.width ?? 0;
26
31
  });
27
- }) : m.value = l);
28
- }, k = () => {
29
- o.value = window.scrollY > 10;
32
+ r.observe(l), d(() => r.disconnect());
33
+ }
34
+ );
35
+ const c = o(!1), s = o(null), h = o(null), j = G(), y = n(() => j.value), R = n(
36
+ () => y.value ? "opacity-0 translate-x-2" : "opacity-0 -translate-x-2"
37
+ ), m = W("vlite-appshell-sidebar-visible", !0), $ = n(() => e.sidebarToggle && v), E = () => {
38
+ m.value = !m.value;
39
+ }, B = n(() => e.hideSidebar || $.value && !m.value), M = (l) => {
40
+ f.value.find((t) => t.value === l) && (typeof l == "string" && l.startsWith("/") ? import("vue-router").then(({ useRouter: t }) => {
41
+ t().push(l).catch(() => {
42
+ });
43
+ }) : u.value = l);
44
+ }, S = () => {
45
+ c.value = window.scrollY > 10;
30
46
  };
31
- I(() => {
32
- window.addEventListener("scroll", k, { passive: !0 });
33
- }), P(() => {
34
- window.removeEventListener("scroll", k);
47
+ Y(() => {
48
+ window.addEventListener("scroll", S, { passive: !0 });
49
+ }), _(() => {
50
+ window.removeEventListener("scroll", S);
35
51
  });
36
- const y = t(() => {
37
- const l = e.mobileBreakpoint || "md", n = {
38
- sm: "sm:hidden",
39
- md: "md:hidden",
40
- lg: "lg:hidden",
41
- xl: "xl:hidden"
42
- }, s = {
43
- sm: "hidden sm:flex",
44
- md: "hidden md:flex",
45
- lg: "hidden lg:flex",
46
- xl: "hidden xl:flex"
52
+ const p = n(() => {
53
+ const l = e.mobileBreakpoint || "md", i = e.compact ? "w-20" : "", t = (e.breakpointSource ?? "viewport") === "container", d = {
54
+ sm: {
55
+ mobileTrigger: "sm:hidden",
56
+ desktopContent: "hidden sm:flex",
57
+ sidebarLayout: `flex flex-col max-sm:w-full ${i} h-auto sm:h-full sm:max-h-screen shrink-0`,
58
+ mobileHeader: "sm:hidden flex items-center justify-between px-4 py-3 shrink-0 bg-background",
59
+ desktopSidebar: "hidden sm:flex flex-col h-full w-full overflow-hidden",
60
+ desktopOnly: "hidden sm:flex",
61
+ mobileSidebar: "max-sm:hidden"
62
+ },
63
+ md: {
64
+ mobileTrigger: "md:hidden",
65
+ desktopContent: "hidden md:flex",
66
+ sidebarLayout: `flex flex-col max-md:w-full ${i} h-auto md:h-full md:max-h-screen shrink-0`,
67
+ mobileHeader: "md:hidden flex items-center justify-between px-4 py-3 shrink-0 bg-background",
68
+ desktopSidebar: "hidden md:flex flex-col h-full w-full overflow-hidden",
69
+ desktopOnly: "hidden md:flex",
70
+ mobileSidebar: "max-md:hidden"
71
+ },
72
+ lg: {
73
+ mobileTrigger: "lg:hidden",
74
+ desktopContent: "hidden lg:flex",
75
+ sidebarLayout: `flex flex-col max-lg:w-full ${i} h-auto lg:h-full lg:max-h-screen shrink-0`,
76
+ mobileHeader: "lg:hidden flex items-center justify-between px-4 py-3 shrink-0 bg-background",
77
+ desktopSidebar: "hidden lg:flex flex-col h-full w-full overflow-hidden",
78
+ desktopOnly: "hidden lg:flex",
79
+ mobileSidebar: "max-lg:hidden"
80
+ },
81
+ xl: {
82
+ mobileTrigger: "xl:hidden",
83
+ desktopContent: "hidden xl:flex",
84
+ sidebarLayout: `flex flex-col max-xl:w-full ${i} h-auto xl:h-full xl:max-h-screen shrink-0`,
85
+ mobileHeader: "xl:hidden flex items-center justify-between px-4 py-3 shrink-0 bg-background",
86
+ desktopSidebar: "hidden xl:flex flex-col h-full w-full overflow-hidden",
87
+ desktopOnly: "hidden xl:flex",
88
+ mobileSidebar: "max-xl:hidden"
89
+ }
47
90
  }, r = {
48
- sm: `flex flex-col max-sm:w-full ${e.compact ? "w-20" : ""} h-auto sm:h-full sm:max-h-screen shrink-0`,
49
- md: `flex flex-col max-md:w-full ${e.compact ? "w-20" : ""} h-auto md:h-full md:max-h-screen shrink-0`,
50
- lg: `flex flex-col max-lg:w-full ${e.compact ? "w-20" : ""} h-auto lg:h-full lg:max-h-screen shrink-0`,
51
- xl: `flex flex-col max-xl:w-full ${e.compact ? "w-20" : ""} h-auto xl:h-full xl:max-h-screen shrink-0`
52
- }, h = {
53
- sm: "sm:hidden flex items-center justify-between px-4 py-3 shrink-0 bg-background",
54
- md: "md:hidden flex items-center justify-between px-4 py-3 shrink-0 bg-background",
55
- lg: "lg:hidden flex items-center justify-between px-4 py-3 shrink-0 bg-background",
56
- xl: "xl:hidden flex items-center justify-between px-4 py-3 shrink-0 bg-background"
57
- }, C = {
58
- sm: "hidden sm:flex flex-col h-full w-full overflow-hidden",
59
- md: "hidden md:flex flex-col h-full w-full overflow-hidden",
60
- lg: "hidden lg:flex flex-col h-full w-full overflow-hidden",
61
- xl: "hidden xl:flex flex-col h-full w-full overflow-hidden"
62
- }, x = {
63
- sm: "hidden sm:flex",
64
- md: "hidden md:flex",
65
- lg: "hidden lg:flex",
66
- xl: "hidden xl:flex"
67
- };
68
- return {
69
- mobileTrigger: n[l],
70
- desktopContent: s[l],
71
- sidebarLayout: r[l],
72
- mobileHeader: h[l],
73
- desktopSidebar: C[l],
74
- desktopOnly: x[l]
91
+ sm: {
92
+ mobileTrigger: "@min-[640px]:hidden",
93
+ desktopContent: "hidden @min-[640px]:flex",
94
+ sidebarLayout: `flex flex-col @max-[639px]:w-full ${i} h-auto @min-[640px]:h-full @min-[640px]:max-h-screen shrink-0`,
95
+ mobileHeader: "@min-[640px]:hidden flex items-center justify-between px-4 py-3 shrink-0 bg-background",
96
+ desktopSidebar: "hidden @min-[640px]:flex flex-col h-full w-full overflow-hidden",
97
+ desktopOnly: "hidden @min-[640px]:flex",
98
+ mobileSidebar: "@max-[639px]:hidden"
99
+ },
100
+ md: {
101
+ mobileTrigger: "@min-[768px]:hidden",
102
+ desktopContent: "hidden @min-[768px]:flex",
103
+ sidebarLayout: `flex flex-col @max-[767px]:w-full ${i} h-auto @min-[768px]:h-full @min-[768px]:max-h-screen shrink-0`,
104
+ mobileHeader: "@min-[768px]:hidden flex items-center justify-between px-4 py-3 shrink-0 bg-background",
105
+ desktopSidebar: "hidden @min-[768px]:flex flex-col h-full w-full overflow-hidden",
106
+ desktopOnly: "hidden @min-[768px]:flex",
107
+ mobileSidebar: "@max-[767px]:hidden"
108
+ },
109
+ lg: {
110
+ mobileTrigger: "@min-[1024px]:hidden",
111
+ desktopContent: "hidden @min-[1024px]:flex",
112
+ sidebarLayout: `flex flex-col @max-[1023px]:w-full ${i} h-auto @min-[1024px]:h-full @min-[1024px]:max-h-screen shrink-0`,
113
+ mobileHeader: "@min-[1024px]:hidden flex items-center justify-between px-4 py-3 shrink-0 bg-background",
114
+ desktopSidebar: "hidden @min-[1024px]:flex flex-col h-full w-full overflow-hidden",
115
+ desktopOnly: "hidden @min-[1024px]:flex",
116
+ mobileSidebar: "@max-[1023px]:hidden"
117
+ },
118
+ xl: {
119
+ mobileTrigger: "@min-[1280px]:hidden",
120
+ desktopContent: "hidden @min-[1280px]:flex",
121
+ sidebarLayout: `flex flex-col @max-[1279px]:w-full ${i} h-auto @min-[1280px]:h-full @min-[1280px]:max-h-screen shrink-0`,
122
+ mobileHeader: "@min-[1280px]:hidden flex items-center justify-between px-4 py-3 shrink-0 bg-background",
123
+ desktopSidebar: "hidden @min-[1280px]:flex flex-col h-full w-full overflow-hidden",
124
+ desktopOnly: "hidden @min-[1280px]:flex",
125
+ mobileSidebar: "@max-[1279px]:hidden"
126
+ }
75
127
  };
76
- }), M = t(() => {
77
- const l = e.variant === "sidebar", n = {
128
+ return (t ? r : d)[l];
129
+ }), z = n(() => {
130
+ const l = e.variant === "sidebar", i = {
78
131
  fixed: "relative z-40",
79
132
  sticky: "relative z-40",
80
133
  relative: "relative z-10",
81
134
  absolute: "relative z-40"
82
- }, s = "bg-body", r = [
83
- e.glass && (o.value || l || e.floating) ? "bg-background/95" : "bg-background",
135
+ }, t = "bg-body", d = [
136
+ e.glass && (c.value || l || e.floating) ? "bg-background/95" : "bg-background",
84
137
  e.border && !e.floating ? l ? "border-e border-border" : "border-b border-border" : "",
85
138
  e.floating ? "m-4 rounded shadow-lg border border-border/50" : "",
86
- o.value && !e.floating && !l && e.position === "sticky" ? "shadow-sm" : ""
87
- ], h = e.mobileBreakpoint || "md", x = l ? {
88
- sm: "max-sm:hidden",
89
- md: "max-md:hidden",
90
- lg: "max-lg:hidden",
91
- xl: "max-xl:hidden"
92
- }[h] : "";
93
- let g = "";
94
- return l ? g = y.value.sidebarLayout : g = `flex items-center gap-4 w-full px-4 sm:px-6 lg:px-8 ${e.height}`, [s, n[e.position], ...r, g, x, e.class].filter(Boolean).join(" ");
95
- }), O = t(() => {
139
+ c.value && !e.floating && !l && e.position === "sticky" ? "shadow-sm" : ""
140
+ ], r = l ? p.value.mobileSidebar : "";
141
+ let a = "";
142
+ return l ? a = p.value.sidebarLayout : (e.breakpointSource ?? "viewport") === "container" ? a = `flex items-center gap-4 w-full px-4 @min-[640px]:px-6 @min-[1024px]:px-8 ${e.height}` : a = `flex items-center gap-4 w-full px-4 sm:px-6 lg:px-8 ${e.height}`, [t, i[e.position], ...d, a, r, e.class].filter(Boolean).join(" ");
143
+ }), N = n(() => {
96
144
  if (e.variant === "sidebar")
97
145
  return "flex-1 py-4 overflow-y-auto scrollbar-thin scrollbar-stable";
98
146
  if (e.centerPosition === "left")
99
147
  return "flex items-center justify-start";
100
- }), b = D();
101
- p(
102
- () => b.path,
148
+ }), g = V();
149
+ k(
150
+ () => g.path,
103
151
  () => {
104
- u.value = !1, Y(() => {
105
- a.value && (a.value.scrollTop = 0, a.value.firstElementChild && (a.value.firstElementChild.scrollTop = 0)), f.value && (f.value.scrollTop = 0);
152
+ b.value = !1, U(() => {
153
+ s.value && (s.value.scrollTop = 0, s.value.firstElementChild && (s.value.firstElementChild.scrollTop = 0)), h.value && (h.value.scrollTop = 0);
106
154
  });
107
155
  }
108
156
  );
109
- const $ = _(F).greater(e.mobileBreakpoint);
110
- p($, (l) => {
111
- l && (u.value = !1);
157
+ const P = { sm: 640, md: 768, lg: 1024, xl: 1280 }, A = F(K).greater(e.mobileBreakpoint), T = n(() => (e.breakpointSource ?? "viewport") !== "container" ? A.value : x.value == null ? null : x.value >= P[e.mobileBreakpoint || "md"]);
158
+ k(T, (l) => {
159
+ l && (b.value = !1);
112
160
  });
113
- const z = t(() => b.meta?.title || b.name || ""), T = {
161
+ const D = n(() => g.meta?.title || g.name || ""), C = {
114
162
  props: e,
115
163
  isLayoutMode: v,
116
- isMobileMenuOpen: u,
117
- isSidebarVisible: d,
164
+ isMobileMenuOpen: b,
165
+ isSidebarVisible: m,
118
166
  sidebarHidden: B,
119
- pageTitle: z,
120
- isScrolled: o,
121
- isRtl: w,
122
- sidebarSlideFromClass: N,
123
- mainScrollRef: a,
124
- layoutMainRef: f,
125
- toggleSidebar: j,
126
- handleNestedTabClick: H,
127
- breakpointClasses: y,
128
- containerClasses: M,
129
- centerClasses: O,
130
- breadcrumbData: L,
131
- nestedTabsItems: c,
132
- activeNestedTab: m
167
+ isDesktop: T,
168
+ shellRef: w,
169
+ shellClass: H,
170
+ pageTitle: D,
171
+ isScrolled: c,
172
+ isRtl: y,
173
+ sidebarSlideFromClass: R,
174
+ mainScrollRef: s,
175
+ layoutMainRef: h,
176
+ toggleSidebar: E,
177
+ handleNestedTabClick: M,
178
+ breakpointClasses: p,
179
+ containerClasses: z,
180
+ centerClasses: N,
181
+ breadcrumbData: O,
182
+ nestedTabsItems: f,
183
+ activeNestedTab: u
133
184
  };
134
- return S(W, T), T;
185
+ return L(J, C), C;
135
186
  }
136
187
  export {
137
- W as APPSHELL_LAYOUT_KEY,
138
- ee as useAppShell
188
+ J as APPSHELL_LAYOUT_KEY,
189
+ ne as useAppShell
139
190
  };
@@ -22,7 +22,7 @@ import "@vueuse/core";
22
22
  /* empty css */
23
23
  import qe from "../IconPicker.vue.js";
24
24
  /* empty css */
25
- /* empty css */
25
+ /* empty css */
26
26
  /* empty css */
27
27
  /* empty css */
28
28
  /* empty css */
@@ -4,7 +4,7 @@ import _ from "../Icon.vue.js";
4
4
  import { $t as E } from "../../utils/i18n.js";
5
5
  import { useCommandPaletteItems as Y } from "./useCommandPaletteItems.js";
6
6
  import { useCommandPaletteNav as Z } from "./useCommandPaletteNav.js";
7
- import ee from "./CommandPaletteItem2.vue.js";
7
+ import ee from "./CommandPaletteItem.vue.js";
8
8
  const te = { class: "command-palette-content flex flex-col w-full h-full max-h-[70vh]" }, oe = { class: "flex items-center gap-3 px-4 py-3 border-b border-border/80 shrink-0" }, se = ["placeholder"], ne = ["aria-label"], re = {
9
9
  key: 0,
10
10
  class: "flex flex-col items-center justify-center py-14 px-6 text-center select-none",
@@ -1,5 +1,5 @@
1
1
  import t from "./CommandPaletteItem3.vue.js";
2
- /* empty css */
2
+ /* empty css */
3
3
  import o from "../../_virtual/_plugin-vue_export-helper.js";
4
4
  const r = /* @__PURE__ */ o(t, [["__scopeId", "data-v-66b1ae06"]]);
5
5
  export {
@@ -1,5 +1,5 @@
1
1
  import o from "./AccordionView3.vue.js";
2
- /* empty css */
2
+ /* empty css */
3
3
  import r from "../../_virtual/_plugin-vue_export-helper.js";
4
4
  const i = /* @__PURE__ */ r(o, [["__scopeId", "data-v-543c2aba"]]);
5
5
  export {
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as g, computed as d, openBlock as n, createElementBlock as R, createElementVNode as x, createBlock as s, withCtx as k, createTextVNode as B, toDisplayString as I, createCommentVNode as y, unref as l } from "vue";
2
2
  import T from "./TableView.vue.js";
3
- import C from "./AccordionView2.vue.js";
3
+ import C from "./AccordionView.vue.js";
4
4
  import U from "../Label.vue.js";
5
5
  import z from "../Button.vue.js";
6
6
  import { useCustomFieldRows as N } from "./composables/useCustomFieldRows.js";
@@ -3,7 +3,7 @@ import L from "./Icon.vue.js";
3
3
  import v from "./Modal.vue.js";
4
4
  import N from "./CommandPalette/CommandPaletteContent.vue.js";
5
5
  import { $t as U } from "../utils/i18n.js";
6
- /* empty css */
6
+ /* empty css */
7
7
  const V = { class: "block truncate -text-fs-1.5" }, S = { class: "ms-auto inline-flex items-center gap-0.5 px-1.5 py-0.5 rounded text-[10px] font-mono font-medium border border-border/80 bg-background text-muted-foreground ms-1" }, A = /* @__PURE__ */ x({
8
8
  __name: "NavbarCommandPalette",
9
9
  props: {
@@ -23,7 +23,7 @@ import "iconify-icon-picker/style.css";
23
23
  import "../../icons/IconRegistry.js";
24
24
  /* empty css */
25
25
  /* empty css */
26
- /* empty css */
26
+ /* empty css */
27
27
  /* empty css */
28
28
  /* empty css */
29
29
  /* empty css */
@@ -1,5 +1,5 @@
1
1
  import { Component } from 'vue';
2
- import { TimelineStep, TimelineMode, TimelineDirection, TimelineTextPosition, TimelineLineStyle, TimelineIndicatorType } from '../../types';
2
+ import { TimelineStep, TimelineMode, TimelineDirection, TimelineTextPosition, TimelineLineStyle, TimelineIndicatorType, TimelineTone } from '../../types';
3
3
  interface Props {
4
4
  steps: TimelineStep[];
5
5
  mode?: TimelineMode;
@@ -10,6 +10,7 @@ interface Props {
10
10
  textPosition?: TimelineTextPosition;
11
11
  lineStyle?: TimelineLineStyle;
12
12
  indicatorType?: TimelineIndicatorType;
13
+ tone?: TimelineTone;
13
14
  clickable?: boolean;
14
15
  class?: string;
15
16
  }
@@ -57,6 +58,7 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {},
57
58
  textPosition: TimelineTextPosition;
58
59
  lineStyle: TimelineLineStyle;
59
60
  as: string;
61
+ tone: TimelineTone;
60
62
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
61
63
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
62
64
  export default _default;
@@ -1,4 +1,4 @@
1
- import { defineComponent as V, useAttrs as z, useSlots as E, computed as S, openBlock as c, createBlock as x, createElementBlock as y, mergeProps as o, createElementVNode as b, normalizeClass as F, normalizeStyle as P, createCommentVNode as $, Fragment as w, renderList as O, isMemoSame as G, withCtx as u, renderSlot as m, cloneVNode as L, h as C, Comment as R, Text as q } from "vue";
1
+ import { defineComponent as V, useAttrs as z, useSlots as E, computed as S, openBlock as c, createBlock as x, createElementBlock as y, mergeProps as s, createElementVNode as b, normalizeClass as F, normalizeStyle as P, createCommentVNode as $, Fragment as w, renderList as O, isMemoSame as G, withCtx as u, renderSlot as m, cloneVNode as L, h as C, Comment as R, Text as q } from "vue";
2
2
  import D from "./TimelineItem.vue.js";
3
3
  const H = {
4
4
  key: 0,
@@ -21,38 +21,40 @@ const H = {
21
21
  textPosition: { default: "bottom" },
22
22
  lineStyle: { default: "solid" },
23
23
  indicatorType: { default: "icon" },
24
+ tone: { default: "primary" },
24
25
  clickable: { type: Boolean, default: !1 },
25
26
  class: { default: "" }
26
27
  },
27
28
  emits: ["step-click"],
28
29
  setup(t, { emit: T }) {
29
- const e = t, j = z(), h = E(), A = T, d = S(() => e.direction === "vertical"), v = S(() => e.steps.length <= 1 ? 0 : Math.min(e.activeStep, e.steps.length - 1) / (e.steps.length - 1) * 100), B = (i, s) => {
30
- A("step-click", i, s);
30
+ const e = t, j = z(), v = E(), A = T, d = S(() => e.direction === "vertical"), h = S(() => e.steps.length <= 1 ? 0 : Math.min(e.activeStep, e.steps.length - 1) / (e.steps.length - 1) * 100), B = (i, o) => {
31
+ A("step-click", i, o);
31
32
  }, g = (i) => {
32
- const s = [];
33
+ const o = [];
33
34
  for (const l of i)
34
35
  if (!(l.type === R || l.type === q && !String(l.children ?? "").trim())) {
35
36
  if (l.type === w && Array.isArray(l.children)) {
36
- s.push(...g(l.children));
37
+ o.push(...g(l.children));
37
38
  continue;
38
39
  }
39
- s.push(l);
40
+ o.push(l);
40
41
  }
41
- return s;
42
+ return o;
42
43
  }, M = () => typeof e.gap == "number" ? `${Number.isFinite(e.gap) ? Math.max(0, e.gap) : 0}px` : e.gap, N = () => {
43
- const i = e.steps.flatMap((a, p) => g(h.item?.({ step: a, index: p }) ?? []).map((f) => L(f, { class: "vlite-timeline__content-item" }))), s = o(j, {
44
+ const i = e.steps.flatMap((a, p) => g(v.item?.({ step: a, index: p }) ?? []).map((f) => L(f, { class: "vlite-timeline__content-item" }))), o = s(j, {
44
45
  class: ["vlite-timeline", "vlite-timeline--content", e.class],
45
46
  style: { "--vlite-timeline-gap": M() },
46
47
  "data-vlite-timeline-indicator": e.indicatorType === "number" ? "number" : "dot",
47
- "data-vlite-timeline-line": e.lineStyle
48
+ "data-vlite-timeline-line": e.lineStyle,
49
+ "data-vlite-timeline-tone": e.tone
48
50
  });
49
- if (typeof e.as == "string") return C(e.as, s, i);
51
+ if (typeof e.as == "string") return C(e.as, o, i);
50
52
  const l = Object.fromEntries(
51
- Object.entries(h).filter(([a]) => a !== "item")
53
+ Object.entries(v).filter(([a]) => a !== "item")
52
54
  );
53
- return l.default = () => i, C(e.as, s, l);
55
+ return l.default = () => i, C(e.as, o, l);
54
56
  };
55
- return (i, s) => t.mode === "content" ? (c(), x(N, { key: 0 })) : (c(), y("nav", o({ key: 1 }, i.$attrs, {
57
+ return (i, o) => t.mode === "content" ? (c(), x(N, { key: 0 })) : (c(), y("nav", s({ key: 1 }, i.$attrs, {
56
58
  "aria-label": "Progress",
57
59
  class: ["w-full pb-5", e.class]
58
60
  }), [
@@ -68,13 +70,13 @@ const H = {
68
70
  !d.value && t.textPosition === "bottom" ? (c(), y("div", H, [
69
71
  b("div", {
70
72
  class: "h-full bg-primary transition-all duration-300 ease-in-out",
71
- style: P({ width: `${v.value}%` })
73
+ style: P({ width: `${h.value}%` })
72
74
  }, null, 4)
73
75
  ])) : $("", !0),
74
76
  !d.value && t.textPosition === "right" ? (c(), y("div", I, [
75
77
  b("div", {
76
78
  class: "h-full bg-primary transition-all duration-300 ease-in-out",
77
- style: P({ width: `${v.value}%` })
79
+ style: P({ width: `${h.value}%` })
78
80
  }, null, 4)
79
81
  ])) : $("", !0),
80
82
  (c(!0), y(w, null, O(t.steps, (l, a, p, r) => {
@@ -104,27 +106,27 @@ const H = {
104
106
  onStepClick: B
105
107
  }, {
106
108
  indicator: u((n) => [
107
- m(i.$slots, "indicator", o({ ref_for: !0 }, n))
109
+ m(i.$slots, "indicator", s({ ref_for: !0 }, n))
108
110
  ]),
109
111
  title: u((n) => [
110
- m(i.$slots, "title", o({ ref_for: !0 }, n))
112
+ m(i.$slots, "title", s({ ref_for: !0 }, n))
111
113
  ]),
112
114
  subtitle: u((n) => [
113
- m(i.$slots, "subtitle", o({ ref_for: !0 }, n))
115
+ m(i.$slots, "subtitle", s({ ref_for: !0 }, n))
114
116
  ]),
115
117
  status: u((n) => [
116
- m(i.$slots, "status", o({ ref_for: !0 }, n))
118
+ m(i.$slots, "status", s({ ref_for: !0 }, n))
117
119
  ]),
118
120
  content: u((n) => [
119
- m(i.$slots, "content", o({ ref_for: !0 }, n))
121
+ m(i.$slots, "content", s({ ref_for: !0 }, n))
120
122
  ]),
121
123
  body: u((n) => [
122
- m(i.$slots, "body", o({ ref_for: !0 }, n))
124
+ m(i.$slots, "body", s({ ref_for: !0 }, n))
123
125
  ]),
124
126
  _: 3
125
127
  }, 8, ["step", "index", "is-last", "active-step", "direction", "text-position", "line-style", "indicator-type", "clickable"]));
126
128
  return k.memo = f, k;
127
- }, s, 0), 128))
129
+ }, o, 0), 128))
128
130
  ], 2)
129
131
  ], 16));
130
132
  }
@@ -25,6 +25,7 @@ By using `AppShell`, you separate the concern of *where* your UI elements live f
25
25
  | `sidebarToggle` | `boolean` | `false` | Enables the desktop sidebar toggle feature. Renders a toggle if configured via `#header`. Preference is persisted in `localStorage`. |
26
26
  | `renderNestedTabs` | `boolean` | `false` | When `true`, clicking a top-level sidebar item with children extracts those children and renders them as a `NavbarTabs` bar at the top of `#main`. |
27
27
  | `mobileBreakpoint` | `'sm' \| 'md' \| 'lg' \| 'xl'` | `'md'` | The Tailwind breakpoint at which the layout switches from mobile (hamburger drawer) to the full desktop sidebar layout. |
28
+ | `breakpointSource` | `'viewport' \| 'container'` | `'viewport'` | `viewport` follows the browser. `container` follows the shell's own width, so a sized canvas (such as a preview frame) switches layout without resizing the browser. |
28
29
  | `contentClass` | `string` | `''` | Additional CSS classes applied to the main scrollable area. |
29
30
  | `rightClass` | `string` | `''` | Additional CSS classes applied to the bottom-pinned footer area (`#sidebar-footer`) or right header section. |
30
31
  | `menuClass` | `string` | `''` | Additional CSS classes applied to the menu wrapper. |
@@ -98,6 +99,7 @@ When using the `<template #header>` slot, you are granted several powerful scope
98
99
  | `toggleSidebar` | `() => void` | Show/hide the desktop sidebar dynamically. |
99
100
  | `breadcrumbItems`| `BreadcrumbItem[]` | Auto-generated breadcrumb array from the current route. To be fed into `<Breadcrumb>`. |
100
101
  | `pageTitle` | `string` | The page title inferred automatically from `route.meta.title` or `route.name`. |
102
+ | `isDesktop` | `boolean \| null` | True at or above `mobileBreakpoint`. `null` only while `breakpointSource="container"` is still measuring. Also passed to `#sidebar`, `#main`, and `#mobile-sidebar`. |
101
103
 
102
104
  ---
103
105
 
@@ -2,8 +2,8 @@
2
2
  "managedBy": "vlite3",
3
3
  "manifestVersion": 1,
4
4
  "packageName": "vlite3",
5
- "packageVersion": "1.5.34",
6
- "generatedAt": "2026-09-29T14:29:27.876Z",
5
+ "packageVersion": "1.5.37",
6
+ "generatedAt": "2026-10-01T21:46:55.982Z",
7
7
  "files": {
8
8
  "component-index.md": {
9
9
  "sha256": "e49e0418bda4262d9181fcd9a79cce02513027b34aab865663da7e2d93e7c702"
@@ -15,7 +15,7 @@
15
15
  "sha256": "4600f3b731be8a10131e6a606c9ed1a9e93c4598ce8207492c3543f2fe2f9ee7"
16
16
  },
17
17
  "components/app-shell.md": {
18
- "sha256": "11baa903b66b01ea5c7c9d5519b4b05d63c34feac37069785f1d8e855be64815"
18
+ "sha256": "a376b4d8b09785dbaeb99852eb967ad8da328d78db5af98978fbb0f197e6416a"
19
19
  },
20
20
  "components/async-select.md": {
21
21
  "sha256": "7b9cfe11e57327566a0c9d3c49869130afaa445f59d486889dde1d540e01c3c7"
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "private": false,
4
4
  "description": "A Vue 3 UI component library built with Tailwind CSS.",
5
5
  "license": "MIT",
6
- "version": "1.5.34",
6
+ "version": "1.5.37",
7
7
  "type": "module",
8
8
  "main": "index.js",
9
9
  "module": "index.js",