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,107 +1,136 @@
1
- import { defineComponent as p, computed as g, openBlock as c, createElementBlock as d, normalizeClass as k, createElementVNode as b, normalizeStyle as S, createCommentVNode as x, Fragment as C, renderList as B, isMemoSame as T, createBlock as z, withCtx as o, renderSlot as s, mergeProps as n } from "vue";
2
- import V from "./TimelineItem.vue.js";
3
- const j = {
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
+ import D from "./TimelineItem.vue.js";
3
+ const H = {
4
4
  key: 0,
5
5
  class: "absolute top-4 left-4 right-4 h-0.5 bg-border",
6
6
  "aria-hidden": "true"
7
- }, E = {
7
+ }, I = {
8
8
  key: 1,
9
9
  class: "absolute top-4 left-4 right-4 h-0.5 bg-border block sm:hidden",
10
10
  "aria-hidden": "true"
11
- }, L = /* @__PURE__ */ p({
11
+ }, Q = /* @__PURE__ */ V({
12
+ inheritAttrs: !1,
12
13
  __name: "Timeline",
13
14
  props: {
14
15
  steps: {},
16
+ mode: { default: "progress" },
17
+ as: { default: "ol" },
18
+ gap: { default: 20 },
15
19
  activeStep: { default: 0 },
16
20
  direction: { default: "horizontal" },
17
21
  textPosition: { default: "bottom" },
18
22
  lineStyle: { default: "solid" },
19
23
  indicatorType: { default: "icon" },
24
+ tone: { default: "primary" },
20
25
  clickable: { type: Boolean, default: !1 },
21
26
  class: { default: "" }
22
27
  },
23
28
  emits: ["step-click"],
24
- setup(e, { emit: w }) {
25
- const l = e, P = w, a = g(() => l.direction === "vertical"), y = g(() => l.steps.length <= 1 ? 0 : Math.min(l.activeStep, l.steps.length - 1) / (l.steps.length - 1) * 100), $ = (i, f) => {
26
- P("step-click", i, f);
29
+ setup(t, { emit: T }) {
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);
32
+ }, g = (i) => {
33
+ const o = [];
34
+ for (const l of i)
35
+ if (!(l.type === R || l.type === q && !String(l.children ?? "").trim())) {
36
+ if (l.type === w && Array.isArray(l.children)) {
37
+ o.push(...g(l.children));
38
+ continue;
39
+ }
40
+ o.push(l);
41
+ }
42
+ return o;
43
+ }, M = () => typeof e.gap == "number" ? `${Number.isFinite(e.gap) ? Math.max(0, e.gap) : 0}px` : e.gap, N = () => {
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, {
45
+ class: ["vlite-timeline", "vlite-timeline--content", e.class],
46
+ style: { "--vlite-timeline-gap": M() },
47
+ "data-vlite-timeline-indicator": e.indicatorType === "number" ? "number" : "dot",
48
+ "data-vlite-timeline-line": e.lineStyle,
49
+ "data-vlite-timeline-tone": e.tone
50
+ });
51
+ if (typeof e.as == "string") return C(e.as, o, i);
52
+ const l = Object.fromEntries(
53
+ Object.entries(v).filter(([a]) => a !== "item")
54
+ );
55
+ return l.default = () => i, C(e.as, o, l);
27
56
  };
28
- return (i, f) => (c(), d("nav", {
57
+ return (i, o) => t.mode === "content" ? (c(), x(N, { key: 0 })) : (c(), y("nav", s({ key: 1 }, i.$attrs, {
29
58
  "aria-label": "Progress",
30
- class: k(["w-full pb-5", l.class])
31
- }, [
59
+ class: ["w-full pb-5", e.class]
60
+ }), [
32
61
  b("ol", {
33
62
  role: "list",
34
- class: k([
63
+ class: F([
35
64
  "relative flex",
36
- a.value ? "flex-col space-y-0" : "",
37
- !a.value && e.textPosition === "bottom" ? "flex-row w-full justify-between items-center" : "",
38
- !a.value && e.textPosition === "right" ? "flex-row w-full max-sm:justify-between max-sm:items-center" : ""
65
+ d.value ? "flex-col space-y-0" : "",
66
+ !d.value && t.textPosition === "bottom" ? "flex-row w-full justify-between items-center" : "",
67
+ !d.value && t.textPosition === "right" ? "flex-row w-full max-sm:justify-between max-sm:items-center" : ""
39
68
  ])
40
69
  }, [
41
- !a.value && e.textPosition === "bottom" ? (c(), d("div", j, [
70
+ !d.value && t.textPosition === "bottom" ? (c(), y("div", H, [
42
71
  b("div", {
43
72
  class: "h-full bg-primary transition-all duration-300 ease-in-out",
44
- style: S({ width: `${y.value}%` })
73
+ style: P({ width: `${h.value}%` })
45
74
  }, null, 4)
46
- ])) : x("", !0),
47
- !a.value && e.textPosition === "right" ? (c(), d("div", E, [
75
+ ])) : $("", !0),
76
+ !d.value && t.textPosition === "right" ? (c(), y("div", I, [
48
77
  b("div", {
49
78
  class: "h-full bg-primary transition-all duration-300 ease-in-out",
50
- style: S({ width: `${y.value}%` })
79
+ style: P({ width: `${h.value}%` })
51
80
  }, null, 4)
52
- ])) : x("", !0),
53
- (c(!0), d(C, null, B(e.steps, (u, m, M, r) => {
54
- const v = [
55
- u,
56
- m,
57
- e.activeStep,
58
- e.direction,
59
- e.textPosition,
60
- e.lineStyle,
61
- e.indicatorType,
62
- e.clickable,
63
- e.steps.length
81
+ ])) : $("", !0),
82
+ (c(!0), y(w, null, O(t.steps, (l, a, p, r) => {
83
+ const f = [
84
+ l,
85
+ a,
86
+ t.activeStep,
87
+ t.direction,
88
+ t.textPosition,
89
+ t.lineStyle,
90
+ t.indicatorType,
91
+ t.clickable,
92
+ t.steps.length
64
93
  ];
65
- if (r && r.el && r.key === u.id && T(r, v)) return r;
66
- const h = (c(), z(V, {
67
- key: u.id,
68
- step: u,
69
- index: m,
70
- "is-last": m === e.steps.length - 1,
71
- "active-step": e.activeStep,
72
- direction: e.direction,
73
- "text-position": e.textPosition,
74
- "line-style": e.lineStyle,
75
- "indicator-type": e.indicatorType,
76
- clickable: e.clickable,
77
- onStepClick: $
94
+ if (r && r.el && r.key === l.id && G(r, f)) return r;
95
+ const k = (c(), x(D, {
96
+ key: l.id,
97
+ step: l,
98
+ index: a,
99
+ "is-last": a === t.steps.length - 1,
100
+ "active-step": t.activeStep,
101
+ direction: t.direction,
102
+ "text-position": t.textPosition,
103
+ "line-style": t.lineStyle,
104
+ "indicator-type": t.indicatorType,
105
+ clickable: t.clickable,
106
+ onStepClick: B
78
107
  }, {
79
- indicator: o((t) => [
80
- s(i.$slots, "indicator", n({ ref_for: !0 }, t))
108
+ indicator: u((n) => [
109
+ m(i.$slots, "indicator", s({ ref_for: !0 }, n))
81
110
  ]),
82
- title: o((t) => [
83
- s(i.$slots, "title", n({ ref_for: !0 }, t))
111
+ title: u((n) => [
112
+ m(i.$slots, "title", s({ ref_for: !0 }, n))
84
113
  ]),
85
- subtitle: o((t) => [
86
- s(i.$slots, "subtitle", n({ ref_for: !0 }, t))
114
+ subtitle: u((n) => [
115
+ m(i.$slots, "subtitle", s({ ref_for: !0 }, n))
87
116
  ]),
88
- status: o((t) => [
89
- s(i.$slots, "status", n({ ref_for: !0 }, t))
117
+ status: u((n) => [
118
+ m(i.$slots, "status", s({ ref_for: !0 }, n))
90
119
  ]),
91
- content: o((t) => [
92
- s(i.$slots, "content", n({ ref_for: !0 }, t))
120
+ content: u((n) => [
121
+ m(i.$slots, "content", s({ ref_for: !0 }, n))
93
122
  ]),
94
- body: o((t) => [
95
- s(i.$slots, "body", n({ ref_for: !0 }, t))
123
+ body: u((n) => [
124
+ m(i.$slots, "body", s({ ref_for: !0 }, n))
96
125
  ]),
97
126
  _: 3
98
127
  }, 8, ["step", "index", "is-last", "active-step", "direction", "text-position", "line-style", "indicator-type", "clickable"]));
99
- return h.memo = v, h;
100
- }, f, 0), 128))
128
+ return k.memo = f, k;
129
+ }, o, 0), 128))
101
130
  ], 2)
102
- ], 2));
131
+ ], 16));
103
132
  }
104
133
  });
105
134
  export {
106
- L as default
135
+ Q as default
107
136
  };
@@ -0,0 +1,5 @@
1
+ import o from "./Timeline.vue.js";
2
+ /* empty css */
3
+ export {
4
+ o as default
5
+ };
@@ -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.33",
6
- "generatedAt": "2026-09-28T00:27:29.552Z",
5
+ "packageVersion": "1.5.35",
6
+ "generatedAt": "2026-10-01T15:52:37.283Z",
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"