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.
- 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 +157 -109
- 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/Dropdown/DropdownMenu.vue.js +1 -1
- package/components/Form/{AccordionView.vue.js → AccordionView2.vue.js} +1 -1
- package/components/Form/Form2.vue.js +3 -2
- package/components/Form/index2.vue.js +1 -1
- package/components/ImportData/ImportData.vue.js +3 -2
- package/components/NavbarCommandPalette.vue.js +1 -1
- package/components/Screen/ScreenFilter.vue.js +1 -1
- package/components/Timeline/Timeline.vue.d.ts +12 -3
- package/components/Timeline/Timeline.vue.js +90 -61
- package/components/Timeline/Timeline3.vue.js +5 -0
- package/docs/components/app-shell.md +2 -0
- package/docs-manifest.json +3 -3
- package/index.js +502 -501
- package/package.json +1 -1
- package/style.css +1 -1
- package/types/appshell.type.d.ts +6 -0
- package/types/timeline.type.d.ts +2 -0
- package/components/Timeline/Timeline2.vue.js +0 -4
- /package/components/Dropdown/{DropdownMenu2.vue.js → DropdownMenu3.vue.js} +0 -0
|
@@ -1,107 +1,136 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
const
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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(
|
|
25
|
-
const
|
|
26
|
-
|
|
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,
|
|
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:
|
|
31
|
-
}, [
|
|
59
|
+
class: ["w-full pb-5", e.class]
|
|
60
|
+
}), [
|
|
32
61
|
b("ol", {
|
|
33
62
|
role: "list",
|
|
34
|
-
class:
|
|
63
|
+
class: F([
|
|
35
64
|
"relative flex",
|
|
36
|
-
|
|
37
|
-
!
|
|
38
|
-
!
|
|
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
|
-
!
|
|
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:
|
|
73
|
+
style: P({ width: `${h.value}%` })
|
|
45
74
|
}, null, 4)
|
|
46
|
-
])) :
|
|
47
|
-
!
|
|
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:
|
|
79
|
+
style: P({ width: `${h.value}%` })
|
|
51
80
|
}, null, 4)
|
|
52
|
-
])) :
|
|
53
|
-
(c(!0),
|
|
54
|
-
const
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
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 ===
|
|
66
|
-
const
|
|
67
|
-
key:
|
|
68
|
-
step:
|
|
69
|
-
index:
|
|
70
|
-
"is-last":
|
|
71
|
-
"active-step":
|
|
72
|
-
direction:
|
|
73
|
-
"text-position":
|
|
74
|
-
"line-style":
|
|
75
|
-
"indicator-type":
|
|
76
|
-
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:
|
|
80
|
-
|
|
108
|
+
indicator: u((n) => [
|
|
109
|
+
m(i.$slots, "indicator", s({ ref_for: !0 }, n))
|
|
81
110
|
]),
|
|
82
|
-
title:
|
|
83
|
-
|
|
111
|
+
title: u((n) => [
|
|
112
|
+
m(i.$slots, "title", s({ ref_for: !0 }, n))
|
|
84
113
|
]),
|
|
85
|
-
subtitle:
|
|
86
|
-
|
|
114
|
+
subtitle: u((n) => [
|
|
115
|
+
m(i.$slots, "subtitle", s({ ref_for: !0 }, n))
|
|
87
116
|
]),
|
|
88
|
-
status:
|
|
89
|
-
|
|
117
|
+
status: u((n) => [
|
|
118
|
+
m(i.$slots, "status", s({ ref_for: !0 }, n))
|
|
90
119
|
]),
|
|
91
|
-
content:
|
|
92
|
-
|
|
120
|
+
content: u((n) => [
|
|
121
|
+
m(i.$slots, "content", s({ ref_for: !0 }, n))
|
|
93
122
|
]),
|
|
94
|
-
body:
|
|
95
|
-
|
|
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
|
|
100
|
-
},
|
|
128
|
+
return k.memo = f, k;
|
|
129
|
+
}, o, 0), 128))
|
|
101
130
|
], 2)
|
|
102
|
-
],
|
|
131
|
+
], 16));
|
|
103
132
|
}
|
|
104
133
|
});
|
|
105
134
|
export {
|
|
106
|
-
|
|
135
|
+
Q as default
|
|
107
136
|
};
|
|
@@ -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
|
|
package/docs-manifest.json
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
"managedBy": "vlite3",
|
|
3
3
|
"manifestVersion": 1,
|
|
4
4
|
"packageName": "vlite3",
|
|
5
|
-
"packageVersion": "1.5.
|
|
6
|
-
"generatedAt": "2026-
|
|
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": "
|
|
18
|
+
"sha256": "a376b4d8b09785dbaeb99852eb967ad8da328d78db5af98978fbb0f197e6416a"
|
|
19
19
|
},
|
|
20
20
|
"components/async-select.md": {
|
|
21
21
|
"sha256": "7b9cfe11e57327566a0c9d3c49869130afaa445f59d486889dde1d540e01c3c7"
|