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.
@@ -1,4 +1,4 @@
1
- import { computed as n, shallowRef as I, ref as d, provide as L, watch as k, onMounted as Y, onUnmounted as _, nextTick as U } from "vue";
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 = d("");
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 = d(!1), w = d(null), s = d(null), H = n(
19
+ const b = o(!1), w = o(null), x = o(null), H = n(
20
20
  () => (e.breakpointSource ?? "viewport") === "container" ? "@container" : ""
21
21
  );
22
- k(w, (l, i, t) => {
23
- if ((e.breakpointSource ?? "viewport") !== "container" || !l) {
24
- s.value = null;
25
- return;
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
- const o = new ResizeObserver((a) => {
28
- s.value = a[0]?.contentRect.width ?? 0;
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
- ), c = W("vlite-appshell-sidebar-visible", !0), $ = n(() => e.sidebarToggle && v), E = () => {
35
- c.value = !c.value;
36
- }, B = n(() => e.hideSidebar || $.value && !c.value), M = (l) => {
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
- x.value = window.scrollY > 10;
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", o = {
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
- }, a = {
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 ? a : o)[l];
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", o = [
133
- e.glass && (x.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",
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
- x.value && !e.floating && !l && e.position === "sticky" ? "shadow-sm" : ""
137
- ], a = l ? p.value.mobileSidebar : "";
138
- let m = "";
139
- return l ? m = p.value.sidebarLayout : (e.breakpointSource ?? "viewport") === "container" ? m = `flex items-center gap-4 w-full px-4 @min-[640px]:px-6 @min-[1024px]:px-8 ${e.height}` : m = `flex items-center gap-4 w-full px-4 sm:px-6 lg:px-8 ${e.height}`, [t, i[e.position], ...o, m, a, e.class].filter(Boolean).join(" ");
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
- r.value && (r.value.scrollTop = 0, r.value.firstElementChild && (r.value.firstElementChild.scrollTop = 0)), h.value && (h.value.scrollTop = 0);
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 : s.value == null ? null : s.value >= P[e.mobileBreakpoint || "md"]);
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: c,
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: x,
171
+ isScrolled: c,
169
172
  isRtl: y,
170
173
  sidebarSlideFromClass: R,
171
- mainScrollRef: r,
174
+ mainScrollRef: s,
172
175
  layoutMainRef: h,
173
176
  toggleSidebar: E,
174
177
  handleNestedTabClick: M,
@@ -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 */
@@ -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";
@@ -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 */
@@ -2,8 +2,8 @@
2
2
  "managedBy": "vlite3",
3
3
  "manifestVersion": 1,
4
4
  "packageName": "vlite3",
5
- "packageVersion": "1.5.35",
6
- "generatedAt": "2026-10-01T15:52:37.283Z",
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"
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.35",
6
+ "version": "1.5.37",
7
7
  "type": "module",
8
8
  "main": "index.js",
9
9
  "module": "index.js",