vlite3 1.5.35 → 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.
- package/components/AppShell/useAppShell.js +34 -31
- package/components/CategoryManager/CategoryManager2.vue.js +1 -1
- package/components/Form/{AccordionView2.vue.js → AccordionView.vue.js} +1 -1
- package/components/Form/index2.vue.js +1 -1
- package/components/Screen/ScreenFilter.vue.js +1 -1
- package/docs-manifest.json +2 -2
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { computed as n, shallowRef as I, ref as
|
|
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
2
|
import { useRoute as V } from "vue-router";
|
|
3
3
|
import { useLocalStorage as W, useBreakpoints as F, breakpointsTailwind as K } from "@vueuse/core";
|
|
4
4
|
import { useBreadcrumb as q } from "../../composables/useBreadcrumb.js";
|
|
@@ -8,7 +8,7 @@ function ne(e, v) {
|
|
|
8
8
|
const O = e.breadcrumb ? q({
|
|
9
9
|
homeIcon: e.breadcrumbHomeIcon,
|
|
10
10
|
labelMap: e.breadcrumbLabels || {}
|
|
11
|
-
}) : { items: n(() => []) }, f = I([]), u =
|
|
11
|
+
}) : { items: n(() => []) }, f = I([]), u = o("");
|
|
12
12
|
L("navbar-context", {
|
|
13
13
|
compact: n(() => e.compact),
|
|
14
14
|
renderNestedTabs: n(() => e.renderNestedTabs),
|
|
@@ -16,30 +16,33 @@ function ne(e, v) {
|
|
|
16
16
|
f.value = l, u.value = i;
|
|
17
17
|
}
|
|
18
18
|
});
|
|
19
|
-
const b =
|
|
19
|
+
const b = o(!1), w = o(null), x = o(null), H = n(
|
|
20
20
|
() => (e.breakpointSource ?? "viewport") === "container" ? "@container" : ""
|
|
21
21
|
);
|
|
22
|
-
k(
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
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;
|
|
31
|
+
});
|
|
32
|
+
r.observe(l), d(() => r.disconnect());
|
|
26
33
|
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
});
|
|
30
|
-
o.observe(l), t(() => o.disconnect());
|
|
31
|
-
});
|
|
32
|
-
const x = d(!1), r = d(null), h = d(null), j = G(), y = n(() => j.value), R = n(
|
|
34
|
+
);
|
|
35
|
+
const c = o(!1), s = o(null), h = o(null), j = G(), y = n(() => j.value), R = n(
|
|
33
36
|
() => y.value ? "opacity-0 translate-x-2" : "opacity-0 -translate-x-2"
|
|
34
|
-
),
|
|
35
|
-
|
|
36
|
-
}, B = n(() => e.hideSidebar || $.value && !
|
|
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) => {
|
|
37
40
|
f.value.find((t) => t.value === l) && (typeof l == "string" && l.startsWith("/") ? import("vue-router").then(({ useRouter: t }) => {
|
|
38
41
|
t().push(l).catch(() => {
|
|
39
42
|
});
|
|
40
43
|
}) : u.value = l);
|
|
41
44
|
}, S = () => {
|
|
42
|
-
|
|
45
|
+
c.value = window.scrollY > 10;
|
|
43
46
|
};
|
|
44
47
|
Y(() => {
|
|
45
48
|
window.addEventListener("scroll", S, { passive: !0 });
|
|
@@ -47,7 +50,7 @@ function ne(e, v) {
|
|
|
47
50
|
window.removeEventListener("scroll", S);
|
|
48
51
|
});
|
|
49
52
|
const p = n(() => {
|
|
50
|
-
const l = e.mobileBreakpoint || "md", i = e.compact ? "w-20" : "", t = (e.breakpointSource ?? "viewport") === "container",
|
|
53
|
+
const l = e.mobileBreakpoint || "md", i = e.compact ? "w-20" : "", t = (e.breakpointSource ?? "viewport") === "container", d = {
|
|
51
54
|
sm: {
|
|
52
55
|
mobileTrigger: "sm:hidden",
|
|
53
56
|
desktopContent: "hidden sm:flex",
|
|
@@ -84,7 +87,7 @@ function ne(e, v) {
|
|
|
84
87
|
desktopOnly: "hidden xl:flex",
|
|
85
88
|
mobileSidebar: "max-xl:hidden"
|
|
86
89
|
}
|
|
87
|
-
},
|
|
90
|
+
}, r = {
|
|
88
91
|
sm: {
|
|
89
92
|
mobileTrigger: "@min-[640px]:hidden",
|
|
90
93
|
desktopContent: "hidden @min-[640px]:flex",
|
|
@@ -122,21 +125,21 @@ function ne(e, v) {
|
|
|
122
125
|
mobileSidebar: "@max-[1279px]:hidden"
|
|
123
126
|
}
|
|
124
127
|
};
|
|
125
|
-
return (t ?
|
|
128
|
+
return (t ? r : d)[l];
|
|
126
129
|
}), z = n(() => {
|
|
127
130
|
const l = e.variant === "sidebar", i = {
|
|
128
131
|
fixed: "relative z-40",
|
|
129
132
|
sticky: "relative z-40",
|
|
130
133
|
relative: "relative z-10",
|
|
131
134
|
absolute: "relative z-40"
|
|
132
|
-
}, t = "bg-body",
|
|
133
|
-
e.glass && (
|
|
135
|
+
}, t = "bg-body", d = [
|
|
136
|
+
e.glass && (c.value || l || e.floating) ? "bg-background/95" : "bg-background",
|
|
134
137
|
e.border && !e.floating ? l ? "border-e border-border" : "border-b border-border" : "",
|
|
135
138
|
e.floating ? "m-4 rounded shadow-lg border border-border/50" : "",
|
|
136
|
-
|
|
137
|
-
],
|
|
138
|
-
let
|
|
139
|
-
return l ?
|
|
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(" ");
|
|
140
143
|
}), N = n(() => {
|
|
141
144
|
if (e.variant === "sidebar")
|
|
142
145
|
return "flex-1 py-4 overflow-y-auto scrollbar-thin scrollbar-stable";
|
|
@@ -147,11 +150,11 @@ function ne(e, v) {
|
|
|
147
150
|
() => g.path,
|
|
148
151
|
() => {
|
|
149
152
|
b.value = !1, U(() => {
|
|
150
|
-
|
|
153
|
+
s.value && (s.value.scrollTop = 0, s.value.firstElementChild && (s.value.firstElementChild.scrollTop = 0)), h.value && (h.value.scrollTop = 0);
|
|
151
154
|
});
|
|
152
155
|
}
|
|
153
156
|
);
|
|
154
|
-
const P = { sm: 640, md: 768, lg: 1024, xl: 1280 }, A = F(K).greater(e.mobileBreakpoint), T = n(() => (e.breakpointSource ?? "viewport") !== "container" ? A.value :
|
|
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"]);
|
|
155
158
|
k(T, (l) => {
|
|
156
159
|
l && (b.value = !1);
|
|
157
160
|
});
|
|
@@ -159,16 +162,16 @@ function ne(e, v) {
|
|
|
159
162
|
props: e,
|
|
160
163
|
isLayoutMode: v,
|
|
161
164
|
isMobileMenuOpen: b,
|
|
162
|
-
isSidebarVisible:
|
|
165
|
+
isSidebarVisible: m,
|
|
163
166
|
sidebarHidden: B,
|
|
164
167
|
isDesktop: T,
|
|
165
168
|
shellRef: w,
|
|
166
169
|
shellClass: H,
|
|
167
170
|
pageTitle: D,
|
|
168
|
-
isScrolled:
|
|
171
|
+
isScrolled: c,
|
|
169
172
|
isRtl: y,
|
|
170
173
|
sidebarSlideFromClass: R,
|
|
171
|
-
mainScrollRef:
|
|
174
|
+
mainScrollRef: s,
|
|
172
175
|
layoutMainRef: h,
|
|
173
176
|
toggleSidebar: E,
|
|
174
177
|
handleNestedTabClick: M,
|
|
@@ -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 "./
|
|
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";
|
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-10-
|
|
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"
|