vlite3 1.2.1 → 1.2.4

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 (64) hide show
  1. package/README.md +1 -0
  2. package/components/AppShell/AppShellLayoutClassic.vue.js +67 -64
  3. package/components/AppShell/AppShellLayoutDashboard.vue.js +76 -71
  4. package/components/AppShell/AppShellLayoutDock.vue.js +27 -27
  5. package/components/AppShell/AppShellLayoutHeaderShell.vue.js +81 -76
  6. package/components/AppShell/AppShellLayoutSidebarFirst.vue.js +56 -56
  7. package/components/AsyncSelect/createAsyncSelect.d.ts +88 -0
  8. package/components/AsyncSelect/createAsyncSelect.js +156 -0
  9. package/components/AsyncSelect/index.d.ts +1 -0
  10. package/components/ChoiceBox/ChoiceBox.vue.js +4 -2
  11. package/components/CommandPalette/CommandPaletteContent.vue2.js +1 -1
  12. package/components/CommandPalette/{CommandPaletteItem.vue.js → CommandPaletteItem.vue2.js} +1 -1
  13. package/components/DataTable/DataTable.vue.d.ts +3 -3
  14. package/components/DataTable/DataTableRow.vue.d.ts +1 -1
  15. package/components/Form/CustomFields.vue.js +2 -2
  16. package/components/Form/CustomFields.vue2.js +15 -2
  17. package/components/Form/Form.vue.js +1 -1
  18. package/components/Form/Form.vue2.js +1 -1
  19. package/components/Invoice/InvoiceVariant1.vue.js +225 -176
  20. package/components/Invoice/InvoiceVariant2.vue.js +174 -125
  21. package/components/Invoice/InvoiceVariant3.vue.js +186 -157
  22. package/components/Invoice/InvoiceVariant4.vue.js +200 -156
  23. package/components/Invoice/types.d.ts +10 -1
  24. package/components/List/ListFieldRow.vue.js +221 -144
  25. package/components/List/utils.d.ts +2 -2
  26. package/components/List/utils.js +6 -9
  27. package/components/NavbarCommandPalette.vue.js +2 -2
  28. package/components/Price/Price.vue.d.ts +3 -1
  29. package/components/Price/Price.vue.js +35 -10
  30. package/components/Rating/Rating.vue.d.ts +43 -0
  31. package/components/Rating/Rating.vue.js +7 -0
  32. package/components/Rating/Rating.vue2.js +92 -0
  33. package/components/Rating/ReviewSummary.vue.d.ts +5 -0
  34. package/components/Rating/ReviewSummary.vue.js +67 -0
  35. package/components/Rating/ReviewSummary.vue2.js +4 -0
  36. package/components/Rating/index.d.ts +3 -0
  37. package/components/Rating/types.d.ts +28 -0
  38. package/components/Screen/Screen.vue.d.ts +38 -12
  39. package/components/Screen/Screen.vue.js +400 -304
  40. package/components/Screen/components/ScreenToolbar.vue.d.ts +62 -0
  41. package/components/Screen/components/ScreenToolbar.vue.js +116 -0
  42. package/components/Screen/components/ScreenToolbar.vue2.js +4 -0
  43. package/components/Screen/types.d.ts +9 -0
  44. package/components/SidebarMenu/SidebarMenu.vue.js +1 -1
  45. package/components/SidebarMenu/SidebarMenuItem.vue.d.ts +3 -1
  46. package/components/SidebarMenu/SidebarMenuItem.vue.js +198 -175
  47. package/components/Stats/StatItem.vue.js +212 -153
  48. package/components/Stats/Stats.vue.js +20 -20
  49. package/components/Stats/components/StatIconBox.vue.js +42 -42
  50. package/components/Stats/components/StatTrend.vue.js +20 -20
  51. package/components/Stats/types.d.ts +3 -1
  52. package/components/Timeline/Timeline.vue.js +21 -11
  53. package/components/Timeline/TimelineItem.vue.js +1 -1
  54. package/core/config.d.ts +10 -0
  55. package/core/config.js +11 -9
  56. package/index.d.ts +2 -0
  57. package/index.js +220 -214
  58. package/package.json +2 -1
  59. package/style.css +23 -17
  60. package/types/config.type.d.ts +2 -0
  61. package/types/list.type.d.ts +4 -0
  62. package/utils/functions.d.ts +9 -10
  63. package/utils/functions.js +78 -63
  64. package/utils/status.js +16 -16
package/README.md CHANGED
@@ -431,6 +431,7 @@ Follow these rules strictly to ensure visual consistency and predictable styling
431
431
  - [x] **CustomFields**
432
432
  - [x] **GoogleLogin**
433
433
  - [x] **PermissionEditor**
434
+ - [x] **Rating**
434
435
  - [x] **RichTextEditor**
435
436
 
436
437
  ### Data Display
@@ -1,70 +1,70 @@
1
- import { defineComponent as B, inject as E, ref as w, openBlock as a, createElementBlock as n, renderSlot as l, unref as e, createCommentVNode as b, createElementVNode as i, createVNode as m, Transition as L, withCtx as g, withDirectives as A, normalizeStyle as H, normalizeClass as d, Fragment as y, vShow as U, isRef as $, createBlock as D, createTextVNode as I } from "vue";
2
- import { onClickOutside as Y } from "@vueuse/core";
1
+ import { defineComponent as B, inject as E, ref as $, openBlock as a, createElementBlock as n, renderSlot as l, unref as e, createCommentVNode as b, createElementVNode as i, createVNode as u, Transition as L, withCtx as g, withDirectives as A, normalizeStyle as H, normalizeClass as d, Fragment as y, vShow as U, isRef as w, createBlock as D, createSlots as I, createTextVNode as Y } from "vue";
2
+ import { onClickOutside as j } from "@vueuse/core";
3
3
  import C from "../Icon.vue.js";
4
- import j from "../SidePanel.vue.js";
5
- import F from "../Navbar/NavbarTabs.vue.js";
4
+ import F from "../SidePanel.vue.js";
5
+ import K from "../Navbar/NavbarTabs.vue.js";
6
6
  /* empty css */
7
- import K from "../Breadcrumb/Breadcrumb.vue.js";
7
+ import q from "../Breadcrumb/Breadcrumb.vue.js";
8
8
  /* empty css */
9
- import { APPSHELL_LAYOUT_KEY as q } from "./useAppShell.js";
10
- const G = { class: "vlite-app-layout flex flex-col w-full h-full bg-body overflow-hidden" }, J = {
9
+ import { APPSHELL_LAYOUT_KEY as G } from "./useAppShell.js";
10
+ const J = { class: "vlite-app-layout flex flex-col w-full h-full bg-body overflow-hidden" }, Q = {
11
11
  key: 0,
12
- class: "w-full shrink-0 z-50 flex flex-col relative"
13
- }, Q = { class: "flex flex-1 w-full overflow-hidden relative" }, W = { class: "flex items-center gap-4 shrink-0 z-10" }, X = {
12
+ class: "w-full shrink-0 z-50 flex flex-col relative border-b"
13
+ }, W = { class: "flex flex-1 w-full overflow-hidden relative" }, X = { class: "flex items-center gap-4 shrink-0 z-10" }, Z = {
14
14
  key: 0,
15
15
  class: "shrink-0 w-full"
16
- }, Z = {
16
+ }, _ = {
17
17
  class: "flex flex-col max-h-[80vh] overflow-y-auto scrollbar-thin",
18
18
  style: { "will-change": "transform", contain: "layout style" }
19
- }, _ = { class: "space-y-1 p-2" }, ee = { class: "space-y-1 p-2" }, se = { class: "flex flex-col space-y-6 pt-4 h-full" }, le = {
19
+ }, ee = { class: "space-y-1 p-2" }, se = { class: "space-y-1 p-2" }, le = { class: "flex flex-col space-y-6 pt-4 h-full" }, oe = {
20
20
  key: 0,
21
21
  class: "flex flex-col space-y-1"
22
- }, oe = {
22
+ }, re = {
23
23
  key: 1,
24
24
  class: "flex flex-col space-y-4 flex-1 overflow-y-auto px-3.5! scrollbar-thin scrollbar-stable",
25
25
  style: { "will-change": "transform", contain: "layout style" }
26
- }, re = {
26
+ }, te = {
27
27
  key: 2,
28
28
  class: "mt-auto pt-2 border-t border-border px-3! py-2!"
29
- }, pe = /* @__PURE__ */ B({
29
+ }, ve = /* @__PURE__ */ B({
30
30
  __name: "AppShellLayoutClassic",
31
- setup(te) {
32
- const T = E(q), {
31
+ setup(ae) {
32
+ const T = E(G), {
33
33
  props: o,
34
34
  sidebarHidden: S,
35
35
  isMobileMenuOpen: r,
36
- isSidebarVisible: x,
37
- toggleSidebar: z,
38
- pageTitle: V,
36
+ isSidebarVisible: z,
37
+ toggleSidebar: V,
38
+ pageTitle: R,
39
39
  breadcrumbData: c,
40
40
  breakpointClasses: f,
41
- containerClasses: R,
41
+ containerClasses: x,
42
42
  centerClasses: M,
43
43
  nestedTabsItems: h,
44
44
  activeNestedTab: p,
45
45
  handleNestedTabClick: O,
46
46
  mainScrollRef: N,
47
47
  layoutMainRef: P
48
- } = T, k = w(null), v = w(null);
49
- return Y(
48
+ } = T, k = $(null), v = $(null);
49
+ return j(
50
50
  k,
51
51
  () => {
52
52
  r.value = !1;
53
53
  },
54
54
  { ignore: [v] }
55
- ), (s, t) => (a(), n("div", G, [
56
- s.$slots.header ? (a(), n("header", J, [
55
+ ), (s, t) => (a(), n("div", J, [
56
+ s.$slots.header ? (a(), n("header", Q, [
57
57
  l(s.$slots, "header", {
58
58
  isOpen: e(r),
59
59
  toggle: () => r.value = !e(r),
60
- sidebarVisible: e(x),
61
- toggleSidebar: e(z),
60
+ sidebarVisible: e(z),
61
+ toggleSidebar: e(V),
62
62
  breadcrumbItems: e(c).items.value,
63
- pageTitle: e(V)
63
+ pageTitle: e(R)
64
64
  })
65
65
  ])) : b("", !0),
66
- i("div", Q, [
67
- m(L, {
66
+ i("div", W, [
67
+ u(L, {
68
68
  "enter-active-class": "transition-all duration-300 ease-in-out overflow-hidden",
69
69
  "leave-active-class": "transition-all duration-300 ease-in-out overflow-hidden",
70
70
  "enter-from-class": "opacity-0",
@@ -74,14 +74,12 @@ const G = { class: "vlite-app-layout flex flex-col w-full h-full bg-body overflo
74
74
  }, {
75
75
  default: g(() => [
76
76
  A(i("nav", {
77
- class: d(e(R)),
77
+ class: d(e(x)),
78
78
  role: "navigation",
79
- style: H(
80
- e(o).sidebarToggle ? "transition: width 0.3s ease, opacity 0.3s ease;" : ""
81
- )
79
+ style: H(e(o).sidebarToggle ? "transition: width 0.3s ease, opacity 0.3s ease;" : "")
82
80
  }, [
83
81
  e(o).variant === "header" ? (a(), n(y, { key: 0 }, [
84
- i("div", W, [
82
+ i("div", X, [
85
83
  l(s.$slots, "mobile-trigger", {
86
84
  isOpen: e(r),
87
85
  toggle: () => r.value = !e(r)
@@ -91,9 +89,9 @@ const G = { class: "vlite-app-layout flex flex-col w-full h-full bg-body overflo
91
89
  ref_key: "mobileTriggerRef",
92
90
  ref: v,
93
91
  class: d(["p-2 -ml-2 text-muted-foreground hover:bg-accent rounded-md shrink-0", [e(f).mobileTrigger, e(o).mobileTriggerClass]]),
94
- onClick: t[0] || (t[0] = (u) => r.value = !e(r))
92
+ onClick: t[0] || (t[0] = (m) => r.value = !e(r))
95
93
  }, [
96
- m(C, {
94
+ u(C, {
97
95
  icon: "lucide:menu",
98
96
  class: "w-5 h-5"
99
97
  }),
@@ -137,9 +135,9 @@ const G = { class: "vlite-app-layout flex flex-col w-full h-full bg-body overflo
137
135
  ref_key: "mobileTriggerRef",
138
136
  ref: v,
139
137
  class: d(["p-2 -mr-2 text-muted-foreground hover:bg-accent rounded-md", e(o).mobileTriggerClass]),
140
- onClick: t[1] || (t[1] = (u) => r.value = !e(r))
138
+ onClick: t[1] || (t[1] = (m) => r.value = !e(r))
141
139
  }, [
142
- m(C, {
140
+ u(C, {
143
141
  icon: "lucide:menu",
144
142
  class: "w-5 h-5"
145
143
  }),
@@ -178,10 +176,10 @@ const G = { class: "vlite-app-layout flex flex-col w-full h-full bg-body overflo
178
176
  ref: P,
179
177
  class: "flex-1 overflow-y-auto w-full relative h-full flex flex-col scrollbar-thin scrollbar-stable"
180
178
  }, [
181
- e(o).renderNestedTabs && e(h).length > 0 ? (a(), n("div", X, [
182
- m(F, {
179
+ e(o).renderNestedTabs && e(h).length > 0 ? (a(), n("div", Z, [
180
+ u(K, {
183
181
  modelValue: e(p),
184
- "onUpdate:modelValue": t[2] || (t[2] = (u) => $(p) ? p.value = u : null),
182
+ "onUpdate:modelValue": t[2] || (t[2] = (m) => w(p) ? p.value = m : null),
185
183
  onChange: e(O),
186
184
  items: e(h)
187
185
  }, null, 8, ["modelValue", "onChange", "items"])
@@ -190,7 +188,7 @@ const G = { class: "vlite-app-layout flex flex-col w-full h-full bg-body overflo
190
188
  key: 1,
191
189
  class: d(["shrink-0 w-full border-b border-border px-6 py-2", e(o).breadcrumbClass])
192
190
  }, [
193
- m(e(K), {
191
+ u(e(q), {
194
192
  items: e(c).items.value,
195
193
  variant: e(o).breadcrumbVariant,
196
194
  separator: e(o).breadcrumbSeparator,
@@ -211,66 +209,71 @@ const G = { class: "vlite-app-layout flex flex-col w-full h-full bg-body overflo
211
209
  key: 0,
212
210
  ref_key: "mobileMenuRef",
213
211
  ref: k,
214
- class: d(["absolute top-[calc(100%_+_1px)] left-0 w-full bg-body border border-border/50 shadow-xl z-50 flex flex-col transition-all duration-300 origin-top overflow-hidden will-change-transform", e(o).menuClass])
212
+ class: d(["absolute top-[calc(100%_+_1px)] left-0 w-full bg-body border border-border shadow-xl z-50 flex flex-col transition-all duration-300 origin-top overflow-hidden will-change-transform", e(o).menuClass])
215
213
  }, [
216
- i("div", Z, [
214
+ i("div", _, [
217
215
  l(s.$slots, "mobile-menu", {}, () => [
218
- i("div", _, [
216
+ i("div", ee, [
219
217
  l(s.$slots, "left")
220
218
  ]),
221
- t[6] || (t[6] = i("div", { class: "h-px bg-border/50 my-1 mx-2" }, null, -1)),
222
- i("div", ee, [
219
+ t[6] || (t[6] = i("div", { class: "h-px bg-border my-1 mx-2" }, null, -1)),
220
+ i("div", se, [
223
221
  l(s.$slots, "center")
224
222
  ])
225
223
  ])
226
224
  ])
227
225
  ], 2)) : b("", !0)
228
- ], 64)) : (a(), D(j, {
226
+ ], 64)) : (a(), D(F, {
229
227
  key: 2,
230
228
  show: e(r),
231
- "onUpdate:show": t[3] || (t[3] = (u) => $(r) ? r.value = u : null),
229
+ "onUpdate:show": t[3] || (t[3] = (m) => w(r) ? r.value = m : null),
232
230
  position: "left",
233
231
  size: "sm",
234
232
  triggerClass: e(f).mobileTrigger,
235
233
  class: d(["z-60", e(f).mobileTrigger]),
236
234
  headerClass: "pl-3! pr-4.5! py-3!",
237
235
  bodyClass: "p-0!"
238
- }, {
239
- header: g(() => [
240
- l(s.$slots, "mobile-sidebar-header", {}, () => [
241
- l(s.$slots, "sidebar-header", {}, () => [
242
- t[7] || (t[7] = I("Brand", -1))
243
- ])
244
- ])
245
- ]),
236
+ }, I({
246
237
  default: g(() => [
247
- i("div", se, [
248
- e(o).variant === "header" ? (a(), n("div", le, [
238
+ i("div", le, [
239
+ e(o).variant === "header" ? (a(), n("div", oe, [
249
240
  l(s.$slots, "mobile-menu", {}, () => [
250
241
  l(s.$slots, "left"),
251
242
  t[8] || (t[8] = i("div", { class: "h-px bg-border my-2" }, null, -1)),
252
243
  l(s.$slots, "center")
253
244
  ])
254
- ])) : (a(), n("div", oe, [
245
+ ])) : (a(), n("div", re, [
255
246
  l(s.$slots, "left"),
256
247
  l(s.$slots, "mobile-sidebar", {}, () => [
257
248
  l(s.$slots, "sidebar")
258
249
  ]),
259
250
  l(s.$slots, "center")
260
251
  ])),
261
- s.$slots?.["mobile-sidebar-footer"] || s.$slots?.["sidebar-footer"] ? (a(), n("div", re, [
252
+ s.$slots?.["mobile-sidebar-footer"] || s.$slots?.["sidebar-footer"] ? (a(), n("div", te, [
262
253
  l(s.$slots, "mobile-sidebar-footer", {}, () => [
263
254
  l(s.$slots, "sidebar-footer")
264
255
  ])
265
256
  ])) : b("", !0)
266
257
  ])
267
258
  ]),
268
- _: 3
269
- }, 8, ["show", "triggerClass", "class"]))
259
+ _: 2
260
+ }, [
261
+ s.$slots["mobile-sidebar-header"] || s.$slots["sidebar-header"] ? {
262
+ name: "header",
263
+ fn: g(() => [
264
+ l(s.$slots, "mobile-sidebar-header", {}, () => [
265
+ l(s.$slots, "sidebar-header", {}, () => [
266
+ t[7] || (t[7] = Y("Brand", -1))
267
+ ])
268
+ ])
269
+ ]),
270
+ key: "0"
271
+ } : void 0
272
+ ]), 1032, ["show", "triggerClass", "class"]))
270
273
  ])
271
274
  ]));
272
275
  }
273
276
  });
274
277
  export {
275
- pe as default
278
+ ve as default
276
279
  };
@@ -1,36 +1,36 @@
1
- import { defineComponent as V, inject as _, openBlock as a, createElementBlock as o, createVNode as m, Transition as z, withCtx as h, withDirectives as N, createElementVNode as n, normalizeClass as b, unref as e, renderSlot as s, createCommentVNode as t, vShow as R, isRef as g, createTextVNode as B } from "vue";
2
- import E from "../SidePanel.vue.js";
3
- import L from "../Navbar/NavbarTabs.vue.js";
1
+ import { defineComponent as V, inject as z, openBlock as a, createElementBlock as o, createVNode as m, Transition as N, withCtx as p, withDirectives as _, createElementVNode as n, normalizeClass as b, unref as e, renderSlot as l, createCommentVNode as t, vShow as R, isRef as g, createSlots as B, createTextVNode as E } from "vue";
2
+ import L from "../SidePanel.vue.js";
3
+ import M from "../Navbar/NavbarTabs.vue.js";
4
4
  /* empty css */
5
- import M from "../Breadcrumb/Breadcrumb.vue.js";
5
+ import P from "../Breadcrumb/Breadcrumb.vue.js";
6
6
  import "@iconify/vue";
7
7
  /* empty css */
8
- import { APPSHELL_LAYOUT_KEY as P } from "./useAppShell.js";
9
- const A = { class: "vlite-app-layout flex flex-row w-full h-full bg-muted/20 p-0 sm:p-2 gap-0 sm:gap-2 overflow-hidden" }, D = {
8
+ import { APPSHELL_LAYOUT_KEY as A } from "./useAppShell.js";
9
+ const D = { class: "vlite-app-layout flex flex-row w-full h-full bg-muted/20 p-0 sm:p-2.5 gap-0 sm:gap-2.5 overflow-hidden" }, O = {
10
10
  key: 0,
11
- class: "flex items-center px-4 py-3"
12
- }, O = { class: "flex flex-col flex-1 min-w-0 h-full overflow-hidden bg-background rounded-xl max-sm:rounded-none border border-border/70 max-sm:border-0 shadow-sm" }, U = {
11
+ class: "flex items-center"
12
+ }, U = { class: "flex flex-col flex-1 min-w-0 h-full overflow-hidden bg-background rounded-xl max-sm:rounded-none border border-border max-sm:border-0 shadow-sm" }, H = {
13
13
  key: 0,
14
- class: "w-full shrink-0 z-20 bg-background border-b border-border/50"
15
- }, H = {
14
+ class: "w-full shrink-0 z-20 bg-background border-b border-border"
15
+ }, I = {
16
16
  key: 0,
17
- class: "shrink-0 w-full border-b border-border/50"
18
- }, I = { class: "flex flex-col h-full" }, Y = {
17
+ class: "shrink-0 w-full"
18
+ }, Y = { class: "flex flex-col h-full" }, j = {
19
19
  class: "flex-1 overflow-y-auto px-3.5 pt-4 scrollbar-thin scrollbar-stable",
20
20
  style: { "will-change": "transform", contain: "layout style" }
21
- }, j = {
21
+ }, K = {
22
22
  key: 0,
23
- class: "mt-auto pt-2 border-t border-border px-3 py-2"
24
- }, ee = /* @__PURE__ */ V({
23
+ class: "mt-auto"
24
+ }, se = /* @__PURE__ */ V({
25
25
  __name: "AppShellLayoutDashboard",
26
- setup(K) {
27
- const y = _(P), {
28
- props: l,
26
+ setup(q) {
27
+ const y = z(A), {
28
+ props: r,
29
29
  sidebarHidden: w,
30
30
  isMobileMenuOpen: i,
31
31
  isSidebarVisible: k,
32
- toggleSidebar: x,
33
- pageTitle: $,
32
+ toggleSidebar: $,
33
+ pageTitle: x,
34
34
  breadcrumbData: u,
35
35
  breakpointClasses: f,
36
36
  nestedTabsItems: v,
@@ -39,8 +39,8 @@ const A = { class: "vlite-app-layout flex flex-row w-full h-full bg-muted/20 p-0
39
39
  mainScrollRef: S,
40
40
  layoutMainRef: T
41
41
  } = y;
42
- return (r, d) => (a(), o("div", A, [
43
- m(z, {
42
+ return (s, d) => (a(), o("div", D, [
43
+ m(N, {
44
44
  "enter-active-class": "transition-all duration-300 ease-in-out",
45
45
  "leave-active-class": "transition-all duration-300 ease-in-out",
46
46
  "enter-from-class": "opacity-0 -translate-x-2",
@@ -48,30 +48,30 @@ const A = { class: "vlite-app-layout flex flex-row w-full h-full bg-muted/20 p-0
48
48
  "leave-from-class": "opacity-100 translate-x-0",
49
49
  "leave-to-class": "opacity-0 -translate-x-2"
50
50
  }, {
51
- default: h(() => [
52
- N(n("nav", {
51
+ default: p(() => [
52
+ _(n("nav", {
53
53
  class: b([
54
- "shrink-0 h-full flex flex-col bg-background rounded-xl max-sm:rounded-none border border-border/70 max-sm:border-0 shadow-sm overflow-hidden z-30",
54
+ "shrink-0 h-full flex flex-col bg-background rounded-xl max-sm:rounded-none border border-border max-sm:border-0 shadow-sm overflow-hidden z-30",
55
55
  e(f).mobileTrigger === "md:hidden" ? "max-md:hidden" : "",
56
- e(l).class
56
+ e(r).class
57
57
  ]),
58
58
  role: "navigation",
59
59
  "aria-label": "Sidebar"
60
60
  }, [
61
- r.$slots["sidebar-header"] ? (a(), o("div", D, [
62
- s(r.$slots, "sidebar-header")
61
+ s.$slots["sidebar-header"] ? (a(), o("div", O, [
62
+ l(s.$slots, "sidebar-header")
63
63
  ])) : t("", !0),
64
64
  n("div", {
65
- class: b(["flex-1 overflow-y-auto overflow-x-hidden scrollbar-thin scrollbar-stable", e(l).contentClass]),
65
+ class: b(["flex-1 overflow-y-auto overflow-x-hidden scrollbar-thin scrollbar-stable", e(r).contentClass]),
66
66
  style: { "will-change": "transform", contain: "layout style" }
67
67
  }, [
68
- s(r.$slots, "sidebar")
68
+ l(s.$slots, "sidebar")
69
69
  ], 2),
70
- r.$slots["sidebar-footer"] ? (a(), o("div", {
70
+ s.$slots["sidebar-footer"] ? (a(), o("div", {
71
71
  key: 1,
72
- class: b(["shrink-0 bg-transparent pt-2", e(l).rightClass])
72
+ class: b(["shrink-0 bg-transparent", e(r).rightClass])
73
73
  }, [
74
- s(r.$slots, "sidebar-footer")
74
+ l(s.$slots, "sidebar-footer")
75
75
  ], 2)) : t("", !0)
76
76
  ], 2), [
77
77
  [R, !e(w)]
@@ -79,88 +79,93 @@ const A = { class: "vlite-app-layout flex flex-row w-full h-full bg-muted/20 p-0
79
79
  ]),
80
80
  _: 3
81
81
  }),
82
- n("div", O, [
83
- r.$slots.header ? (a(), o("header", U, [
84
- s(r.$slots, "header", {
82
+ n("div", U, [
83
+ s.$slots.header ? (a(), o("header", H, [
84
+ l(s.$slots, "header", {
85
85
  isOpen: e(i),
86
86
  toggle: () => i.value = !e(i),
87
87
  sidebarVisible: e(k),
88
- toggleSidebar: e(x),
88
+ toggleSidebar: e($),
89
89
  breadcrumbItems: e(u).items.value,
90
- pageTitle: e($)
90
+ pageTitle: e(x)
91
91
  })
92
92
  ])) : t("", !0),
93
- r.$slots.main ? (a(), o("main", {
93
+ s.$slots.main ? (a(), o("main", {
94
94
  key: 1,
95
95
  ref_key: "layoutMainRef",
96
96
  ref: T,
97
97
  class: "flex-1 overflow-y-auto w-full relative h-full flex flex-col min-h-0 scrollbar-thin scrollbar-stable"
98
98
  }, [
99
- e(l).renderNestedTabs && e(v).length > 0 ? (a(), o("div", H, [
100
- m(L, {
99
+ e(r).renderNestedTabs && e(v).length > 0 ? (a(), o("div", I, [
100
+ m(M, {
101
101
  modelValue: e(c),
102
- "onUpdate:modelValue": d[0] || (d[0] = (p) => g(c) ? c.value = p : null),
102
+ "onUpdate:modelValue": d[0] || (d[0] = (h) => g(c) ? c.value = h : null),
103
103
  onChange: e(C),
104
104
  items: e(v)
105
105
  }, null, 8, ["modelValue", "onChange", "items"])
106
106
  ])) : t("", !0),
107
- e(l).breadcrumb && e(l).breadcrumbPosition === "main" && e(u).items.value.length > 1 ? (a(), o("div", {
107
+ e(r).breadcrumb && e(r).breadcrumbPosition === "main" && e(u).items.value.length > 1 ? (a(), o("div", {
108
108
  key: 1,
109
- class: b(["shrink-0 w-full px-6 py-2 border-b border-border/50", e(l).breadcrumbClass])
109
+ class: b(["shrink-0 w-full px-6 py-2 border-b border-border", e(r).breadcrumbClass])
110
110
  }, [
111
- m(e(M), {
111
+ m(e(P), {
112
112
  items: e(u).items.value,
113
- variant: e(l).breadcrumbVariant,
114
- separator: e(l).breadcrumbSeparator,
115
- size: e(l).breadcrumbSize
113
+ variant: e(r).breadcrumbVariant,
114
+ separator: e(r).breadcrumbSeparator,
115
+ size: e(r).breadcrumbSize
116
116
  }, null, 8, ["items", "variant", "separator", "size"])
117
117
  ], 2)) : t("", !0),
118
118
  n("div", {
119
119
  ref_key: "mainScrollRef",
120
120
  ref: S,
121
121
  style: { "will-change": "transform", contain: "layout style" },
122
- class: "flex-1 overflow-y-auto pt-2 w-full relative h-full scrollbar-thin scrollbar-stable"
122
+ class: "flex-1 overflow-y-auto w-full relative h-full scrollbar-thin scrollbar-stable"
123
123
  }, [
124
- s(r.$slots, "main")
124
+ l(s.$slots, "main")
125
125
  ], 512)
126
126
  ], 512)) : t("", !0)
127
127
  ]),
128
- m(E, {
128
+ m(L, {
129
129
  show: e(i),
130
- "onUpdate:show": d[1] || (d[1] = (p) => g(i) ? i.value = p : null),
130
+ "onUpdate:show": d[1] || (d[1] = (h) => g(i) ? i.value = h : null),
131
131
  position: "left",
132
132
  size: "sm",
133
133
  triggerClass: e(f).mobileTrigger,
134
134
  class: b(["z-60", e(f).mobileTrigger]),
135
135
  headerClass: "pl-3! pr-4.5! py-3!",
136
136
  bodyClass: "p-0!"
137
- }, {
138
- header: h(() => [
139
- s(r.$slots, "mobile-sidebar-header", {}, () => [
140
- s(r.$slots, "sidebar-header", {}, () => [
141
- d[2] || (d[2] = B("Brand", -1))
142
- ])
143
- ])
144
- ]),
145
- default: h(() => [
146
- n("div", I, [
147
- n("div", Y, [
148
- s(r.$slots, "mobile-sidebar", {}, () => [
149
- s(r.$slots, "sidebar")
137
+ }, B({
138
+ default: p(() => [
139
+ n("div", Y, [
140
+ n("div", j, [
141
+ l(s.$slots, "mobile-sidebar", {}, () => [
142
+ l(s.$slots, "sidebar")
150
143
  ])
151
144
  ]),
152
- r.$slots["mobile-sidebar-footer"] || r.$slots["sidebar-footer"] ? (a(), o("div", j, [
153
- s(r.$slots, "mobile-sidebar-footer", {}, () => [
154
- s(r.$slots, "sidebar-footer")
145
+ s.$slots["mobile-sidebar-footer"] || s.$slots["sidebar-footer"] ? (a(), o("div", K, [
146
+ l(s.$slots, "mobile-sidebar-footer", {}, () => [
147
+ l(s.$slots, "sidebar-footer")
155
148
  ])
156
149
  ])) : t("", !0)
157
150
  ])
158
151
  ]),
159
- _: 3
160
- }, 8, ["show", "triggerClass", "class"])
152
+ _: 2
153
+ }, [
154
+ s.$slots["mobile-sidebar-header"] || s.$slots["sidebar-header"] ? {
155
+ name: "header",
156
+ fn: p(() => [
157
+ l(s.$slots, "mobile-sidebar-header", {}, () => [
158
+ l(s.$slots, "sidebar-header", {}, () => [
159
+ d[2] || (d[2] = E("Brand", -1))
160
+ ])
161
+ ])
162
+ ]),
163
+ key: "0"
164
+ } : void 0
165
+ ]), 1032, ["show", "triggerClass", "class"])
161
166
  ]));
162
167
  }
163
168
  });
164
169
  export {
165
- ee as default
170
+ se as default
166
171
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as V, inject as _, openBlock as o, createElementBlock as a, createVNode as m, Transition as z, withCtx as h, withDirectives as N, createElementVNode as n, normalizeClass as b, unref as e, renderSlot as s, createCommentVNode as t, vShow as R, isRef as v, createTextVNode as B } from "vue";
1
+ import { defineComponent as V, inject as _, openBlock as a, createElementBlock as o, createVNode as m, Transition as z, withCtx as h, withDirectives as N, createElementVNode as n, normalizeClass as b, unref as e, renderSlot as r, createCommentVNode as t, vShow as R, isRef as v, createTextVNode as B } from "vue";
2
2
  import E from "../SidePanel.vue.js";
3
3
  import L from "../Navbar/NavbarTabs.vue.js";
4
4
  /* empty css */
@@ -8,13 +8,13 @@ import "@iconify/vue";
8
8
  import { APPSHELL_LAYOUT_KEY as P } from "./useAppShell.js";
9
9
  const A = { class: "vlite-app-layout flex flex-row w-full h-full bg-background p-0 sm:p-2 gap-0 sm:gap-2 overflow-hidden items-stretch" }, D = {
10
10
  key: 0,
11
- class: "flex items-center justify-center mb-1.5 pb-2 border-b border-border/40 w-full"
12
- }, O = { class: "flex flex-col flex-1 min-w-0 h-full overflow-hidden bg-background rounded-xl max-sm:rounded-none border border-border/70 max-sm:border-0 shadow-sm" }, U = {
11
+ class: "flex items-center justify-center w-full"
12
+ }, O = { class: "flex flex-col flex-1 min-w-0 h-full overflow-hidden bg-background rounded-xl max-sm:rounded-none border border-border max-sm:border-0 shadow-sm" }, U = {
13
13
  key: 0,
14
- class: "w-full shrink-0 z-20 bg-background border-b border-border/50"
14
+ class: "w-full shrink-0 z-20 bg-background border-b border-border"
15
15
  }, j = {
16
16
  key: 0,
17
- class: "shrink-0 w-full border-b border-border/50"
17
+ class: "shrink-0 w-full border-b border-border"
18
18
  }, H = { class: "flex flex-col h-full" }, I = {
19
19
  class: "flex-1 overflow-y-auto px-3.5 pt-4 scrollbar-thin scrollbar-stable",
20
20
  style: { "will-change": "transform", contain: "layout style" }
@@ -39,7 +39,7 @@ const A = { class: "vlite-app-layout flex flex-row w-full h-full bg-background p
39
39
  mainScrollRef: S,
40
40
  layoutMainRef: T
41
41
  } = y;
42
- return (r, d) => (o(), a("div", A, [
42
+ return (s, d) => (a(), o("div", A, [
43
43
  m(z, {
44
44
  "enter-active-class": "transition-all duration-300 ease-in-out",
45
45
  "leave-active-class": "transition-all duration-300 ease-in-out",
@@ -51,26 +51,26 @@ const A = { class: "vlite-app-layout flex flex-row w-full h-full bg-background p
51
51
  default: h(() => [
52
52
  N(n("nav", {
53
53
  class: b([
54
- "shrink-0 self-center flex flex-col items-center bg-background rounded-2xl max-sm:rounded-none border border-border/70 max-sm:border-0 shadow-sm overflow-hidden z-30 py-3 px-2 gap-0.5",
54
+ "shrink-0 self-center flex flex-col items-center bg-background rounded-2xl max-sm:rounded-none border border-border max-sm:border-0 shadow-sm overflow-hidden z-30 py-3 px-2 gap-0.5",
55
55
  e(c).mobileTrigger === "md:hidden" ? "max-md:hidden" : "",
56
56
  e(l).class
57
57
  ]),
58
58
  role: "navigation",
59
59
  "aria-label": "Sidebar dock"
60
60
  }, [
61
- r.$slots["sidebar-header"] ? (o(), a("div", D, [
62
- s(r.$slots, "sidebar-header")
61
+ s.$slots["sidebar-header"] ? (a(), o("div", D, [
62
+ r(s.$slots, "sidebar-header")
63
63
  ])) : t("", !0),
64
64
  n("div", {
65
65
  class: b(["flex flex-col items-center gap-0.5 w-full", e(l).contentClass])
66
66
  }, [
67
- s(r.$slots, "sidebar")
67
+ r(s.$slots, "sidebar")
68
68
  ], 2),
69
- r.$slots["sidebar-footer"] ? (o(), a("div", {
69
+ s.$slots["sidebar-footer"] ? (a(), o("div", {
70
70
  key: 1,
71
- class: b(["flex flex-col items-center mt-1.5 pt-2 border-t border-border/40 w-full", e(l).rightClass])
71
+ class: b(["flex flex-col items-center w-full", e(l).rightClass])
72
72
  }, [
73
- s(r.$slots, "sidebar-footer")
73
+ r(s.$slots, "sidebar-footer")
74
74
  ], 2)) : t("", !0)
75
75
  ], 2), [
76
76
  [R, !e(w)]
@@ -79,8 +79,8 @@ const A = { class: "vlite-app-layout flex flex-row w-full h-full bg-background p
79
79
  _: 3
80
80
  }),
81
81
  n("div", O, [
82
- r.$slots.header ? (o(), a("header", U, [
83
- s(r.$slots, "header", {
82
+ s.$slots.header ? (a(), o("header", U, [
83
+ r(s.$slots, "header", {
84
84
  isOpen: e(i),
85
85
  toggle: () => i.value = !e(i),
86
86
  sidebarVisible: e(k),
@@ -89,13 +89,13 @@ const A = { class: "vlite-app-layout flex flex-row w-full h-full bg-background p
89
89
  pageTitle: e($)
90
90
  })
91
91
  ])) : t("", !0),
92
- r.$slots.main ? (o(), a("main", {
92
+ s.$slots.main ? (a(), o("main", {
93
93
  key: 1,
94
94
  ref_key: "layoutMainRef",
95
95
  ref: T,
96
96
  class: "flex-1 overflow-y-auto w-full relative h-full flex flex-col min-h-0 scrollbar-thin scrollbar-stable"
97
97
  }, [
98
- e(l).renderNestedTabs && e(g).length > 0 ? (o(), a("div", j, [
98
+ e(l).renderNestedTabs && e(g).length > 0 ? (a(), o("div", j, [
99
99
  m(L, {
100
100
  modelValue: e(f),
101
101
  "onUpdate:modelValue": d[0] || (d[0] = (p) => v(f) ? f.value = p : null),
@@ -103,9 +103,9 @@ const A = { class: "vlite-app-layout flex flex-row w-full h-full bg-background p
103
103
  items: e(g)
104
104
  }, null, 8, ["modelValue", "onChange", "items"])
105
105
  ])) : t("", !0),
106
- e(l).breadcrumb && e(l).breadcrumbPosition === "main" && e(u).items.value.length > 1 ? (o(), a("div", {
106
+ e(l).breadcrumb && e(l).breadcrumbPosition === "main" && e(u).items.value.length > 1 ? (a(), o("div", {
107
107
  key: 1,
108
- class: b(["shrink-0 w-full px-6 py-2 border-b border-border/50", e(l).breadcrumbClass])
108
+ class: b(["shrink-0 w-full px-6 py-2 border-b border-border", e(l).breadcrumbClass])
109
109
  }, [
110
110
  m(e(M), {
111
111
  items: e(u).items.value,
@@ -120,7 +120,7 @@ const A = { class: "vlite-app-layout flex flex-row w-full h-full bg-background p
120
120
  style: { "will-change": "transform", contain: "layout style" },
121
121
  class: "flex-1 overflow-y-auto w-full relative h-full scrollbar-thin scrollbar-stable"
122
122
  }, [
123
- s(r.$slots, "main")
123
+ r(s.$slots, "main")
124
124
  ], 512)
125
125
  ], 512)) : t("", !0)
126
126
  ]),
@@ -135,8 +135,8 @@ const A = { class: "vlite-app-layout flex flex-row w-full h-full bg-background p
135
135
  bodyClass: "p-0!"
136
136
  }, {
137
137
  header: h(() => [
138
- s(r.$slots, "mobile-sidebar-header", {}, () => [
139
- s(r.$slots, "sidebar-header", {}, () => [
138
+ r(s.$slots, "mobile-sidebar-header", {}, () => [
139
+ r(s.$slots, "sidebar-header", {}, () => [
140
140
  d[2] || (d[2] = B("Brand", -1))
141
141
  ])
142
142
  ])
@@ -144,13 +144,13 @@ const A = { class: "vlite-app-layout flex flex-row w-full h-full bg-background p
144
144
  default: h(() => [
145
145
  n("div", H, [
146
146
  n("div", I, [
147
- s(r.$slots, "mobile-sidebar", {}, () => [
148
- s(r.$slots, "sidebar")
147
+ r(s.$slots, "mobile-sidebar", {}, () => [
148
+ r(s.$slots, "sidebar")
149
149
  ])
150
150
  ]),
151
- r.$slots["mobile-sidebar-footer"] || r.$slots["sidebar-footer"] ? (o(), a("div", Y, [
152
- s(r.$slots, "mobile-sidebar-footer", {}, () => [
153
- s(r.$slots, "sidebar-footer")
151
+ s.$slots["mobile-sidebar-footer"] || s.$slots["sidebar-footer"] ? (a(), o("div", Y, [
152
+ r(s.$slots, "mobile-sidebar-footer", {}, () => [
153
+ r(s.$slots, "sidebar-footer")
154
154
  ])
155
155
  ])) : t("", !0)
156
156
  ])