vlite3 1.4.24 → 1.4.26

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 (49) hide show
  1. package/components/AppShell/AppShell.vue.d.ts +2 -0
  2. package/components/AppShell/AppShell.vue.js +11 -9
  3. package/components/AppShell/AppShellLayoutClassic.vue.js +34 -32
  4. package/components/AppShell/AppShellLayoutDashboard.vue.js +51 -49
  5. package/components/AppShell/AppShellLayoutDock.vue.js +52 -50
  6. package/components/AppShell/AppShellLayoutHeaderShell.vue.js +56 -54
  7. package/components/AppShell/AppShellLayoutSidebarFirst.vue.js +51 -49
  8. package/components/AppShell/AppShellLayoutStorefront.vue.js +40 -38
  9. package/components/AppShell/useAppShell.js +1 -1
  10. package/components/CategoryManager/CategoryManager.vue2.js +2 -2
  11. package/components/Chart/BarChart.vue.d.ts +1 -1
  12. package/components/Chart/ChartLegend.vue.d.ts +22 -0
  13. package/components/Chart/ChartLegend.vue.js +91 -0
  14. package/components/Chart/ChartLegend.vue2.js +4 -0
  15. package/components/Chart/GanttChart.vue.d.ts +2 -2
  16. package/components/Chart/GanttChart.vue.js +1 -1
  17. package/components/Chart/GanttChart.vue2.js +367 -364
  18. package/components/Chart/LineChart.vue.d.ts +5 -2
  19. package/components/Chart/LineChart.vue.js +1 -1
  20. package/components/Chart/LineChart.vue2.js +40 -39
  21. package/components/Chart/PieChart.vue.d.ts +11 -4
  22. package/components/Chart/PieChart.vue.js +118 -114
  23. package/components/Chart/SegmentBarChart.vue.d.ts +1 -1
  24. package/components/Chart/TimelineChart.vue.d.ts +2 -2
  25. package/components/Chart/index.d.ts +2 -1
  26. package/components/Chart/types.d.ts +27 -0
  27. package/components/CommandPalette/CommandPaletteContent.vue2.js +1 -1
  28. package/components/CommandPalette/{CommandPaletteItem.vue2.js → CommandPaletteItem.vue.js} +1 -1
  29. package/components/Form/Form.vue.js +1 -1
  30. package/components/Form/Form.vue2.js +131 -127
  31. package/components/Heatmap/Heatmap.vue.d.ts +1 -1
  32. package/components/NavbarCommandPalette.vue.js +1 -1
  33. package/components/RichTextEditor/RichTextEditor.vue.js +4 -4
  34. package/components/RichTextEditor/RichTextLinkPopover.vue3.js +2 -2
  35. package/components/RichTextEditor/RichTextToolbar.vue3.js +2 -2
  36. package/components/Screen/ScreenFilter.vue.js +2 -2
  37. package/components/SidebarMenu/SidebarMenu.vue.d.ts +1 -1
  38. package/components/Stats/StatItem.vue.d.ts +2 -0
  39. package/components/Stats/StatItem.vue.js +234 -134
  40. package/components/Stats/Stats.vue.d.ts +1 -0
  41. package/components/Stats/Stats.vue.js +45 -41
  42. package/components/Stats/components/StatTrend.vue.js +35 -32
  43. package/components/Stats/types.d.ts +32 -2
  44. package/index.js +138 -136
  45. package/package.json +1 -1
  46. package/style.css +1 -1
  47. package/types/appshell.type.d.ts +2 -0
  48. /package/components/RichTextEditor/{RichTextLinkPopover.vue.js → RichTextLinkPopover.vue2.js} +0 -0
  49. /package/components/RichTextEditor/{RichTextToolbar.vue.js → RichTextToolbar.vue2.js} +0 -0
@@ -1,12 +1,12 @@
1
- import { defineComponent as V, inject as z, openBlock as a, createElementBlock as o, createVNode as m, Transition as _, withCtx as p, withDirectives as N, createElementVNode as t, normalizeClass as b, unref as e, renderSlot as l, createCommentVNode as i, 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";
1
+ import { defineComponent as _, inject as N, openBlock as a, createElementBlock as o, createVNode as m, Transition as R, withCtx as p, withDirectives as g, createElementVNode as t, normalizeClass as b, unref as e, renderSlot as r, createCommentVNode as i, vShow as y, isRef as w, createSlots as B, createTextVNode as E } from "vue";
2
+ import H from "../SidePanel.vue.js";
3
+ import L from "../Navbar/NavbarTabs.vue.js";
4
4
  /* empty css */
5
- import P from "../Breadcrumb/Breadcrumb.vue.js";
5
+ import M from "../Breadcrumb/Breadcrumb.vue.js";
6
6
  import "@iconify/vue";
7
7
  /* empty css */
8
- import { APPSHELL_LAYOUT_KEY as A } from "./useAppShell.js";
9
- const H = { class: "vlite-app-layout flex flex-row w-full h-full bg-background overflow-hidden" }, O = {
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-background overflow-hidden" }, O = {
10
10
  key: 0,
11
11
  class: "flex items-center"
12
12
  }, U = { class: "flex flex-col flex-1 min-w-0 h-full overflow-hidden gap-2 max-sm:p-0 max-sm:gap-0" }, D = {
@@ -21,26 +21,26 @@ const H = { class: "vlite-app-layout flex flex-row w-full h-full bg-background o
21
21
  }, q = {
22
22
  key: 0,
23
23
  class: "mt-auto"
24
- }, le = /* @__PURE__ */ V({
24
+ }, le = /* @__PURE__ */ _({
25
25
  __name: "AppShellLayoutHeaderShell",
26
26
  setup(F) {
27
- const y = z(A), {
28
- props: r,
29
- sidebarHidden: w,
27
+ const k = N(P), {
28
+ props: l,
29
+ sidebarHidden: $,
30
30
  isMobileMenuOpen: d,
31
- isSidebarVisible: k,
32
- toggleSidebar: $,
33
- pageTitle: x,
31
+ isSidebarVisible: x,
32
+ toggleSidebar: C,
33
+ pageTitle: S,
34
34
  breadcrumbData: f,
35
35
  breakpointClasses: u,
36
36
  nestedTabsItems: v,
37
37
  activeNestedTab: c,
38
- handleNestedTabClick: C,
39
- mainScrollRef: S,
40
- layoutMainRef: T
41
- } = y;
42
- return (s, n) => (a(), o("div", H, [
43
- m(_, {
38
+ handleNestedTabClick: T,
39
+ mainScrollRef: V,
40
+ layoutMainRef: z
41
+ } = k;
42
+ return (s, n) => (a(), o("div", A, [
43
+ m(R, {
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",
@@ -49,87 +49,89 @@ const H = { class: "vlite-app-layout flex flex-row w-full h-full bg-background o
49
49
  "leave-to-class": "opacity-0 -translate-x-2"
50
50
  }, {
51
51
  default: p(() => [
52
- N(t("nav", {
52
+ g(t("nav", {
53
53
  class: b([
54
54
  "shrink-0 h-full flex flex-col bg-background border-r border-border overflow-hidden z-30",
55
55
  e(u).mobileTrigger === "md:hidden" ? "max-md:hidden" : "",
56
- e(r).class
56
+ e(l).class
57
57
  ]),
58
58
  role: "navigation",
59
59
  "aria-label": "Sidebar"
60
60
  }, [
61
61
  s.$slots["sidebar-header"] ? (a(), o("div", O, [
62
- l(s.$slots, "sidebar-header")
62
+ r(s.$slots, "sidebar-header")
63
63
  ])) : i("", !0),
64
64
  t("div", {
65
- class: b(["flex-1 overflow-y-auto overflow-x-hidden scrollbar-thin scrollbar-stable", e(r).contentClass]),
65
+ class: b(["flex-1 overflow-y-auto overflow-x-hidden scrollbar-thin scrollbar-stable", e(l).contentClass]),
66
66
  style: { "will-change": "transform", contain: "layout style" }
67
67
  }, [
68
- l(s.$slots, "sidebar")
68
+ r(s.$slots, "sidebar")
69
69
  ], 2),
70
70
  s.$slots["sidebar-footer"] ? (a(), o("div", {
71
71
  key: 1,
72
- class: b(["shrink-0", e(r).rightClass])
72
+ class: b(["shrink-0", e(l).rightClass])
73
73
  }, [
74
- l(s.$slots, "sidebar-footer")
74
+ r(s.$slots, "sidebar-footer")
75
75
  ], 2)) : i("", !0)
76
76
  ], 2), [
77
- [R, !e(w)]
77
+ [y, !e($)]
78
78
  ])
79
79
  ]),
80
80
  _: 3
81
81
  }),
82
82
  t("div", U, [
83
- s.$slots.header ? (a(), o("header", D, [
83
+ s.$slots.header ? g((a(), o("header", D, [
84
84
  t("div", I, [
85
- l(s.$slots, "header", {
85
+ r(s.$slots, "header", {
86
86
  isOpen: e(d),
87
87
  toggle: () => d.value = !e(d),
88
- sidebarVisible: e(k),
89
- toggleSidebar: e($),
88
+ sidebarVisible: e(x),
89
+ toggleSidebar: e(C),
90
90
  breadcrumbItems: e(f).items.value,
91
- pageTitle: e(x)
91
+ pageTitle: e(S)
92
92
  })
93
93
  ])
94
- ])) : i("", !0),
94
+ ], 512)), [
95
+ [y, !e(l).hideHeader]
96
+ ]) : i("", !0),
95
97
  s.$slots.main ? (a(), o("main", {
96
98
  key: 1,
97
99
  ref_key: "layoutMainRef",
98
- ref: T,
100
+ ref: z,
99
101
  class: "flex-1 overflow-hidden w-full relative flex flex-col min-h-0 bg-background"
100
102
  }, [
101
- e(r).renderNestedTabs && e(v).length > 0 ? (a(), o("div", Y, [
102
- m(M, {
103
+ e(l).renderNestedTabs && e(v).length > 0 ? (a(), o("div", Y, [
104
+ m(L, {
103
105
  modelValue: e(c),
104
- "onUpdate:modelValue": n[0] || (n[0] = (h) => g(c) ? c.value = h : null),
105
- onChange: e(C),
106
+ "onUpdate:modelValue": n[0] || (n[0] = (h) => w(c) ? c.value = h : null),
107
+ onChange: e(T),
106
108
  items: e(v)
107
109
  }, null, 8, ["modelValue", "onChange", "items"])
108
110
  ])) : i("", !0),
109
- e(r).breadcrumb && e(r).breadcrumbPosition === "main" && e(f).items.value.length > 1 ? (a(), o("div", {
111
+ e(l).breadcrumb && e(l).breadcrumbPosition === "main" && e(f).items.value.length > 1 ? (a(), o("div", {
110
112
  key: 1,
111
- class: b(["shrink-0 w-full border-b border-border px-6 py-2", e(r).breadcrumbClass])
113
+ class: b(["shrink-0 w-full border-b border-border px-6 py-2", e(l).breadcrumbClass])
112
114
  }, [
113
- m(e(P), {
115
+ m(e(M), {
114
116
  items: e(f).items.value,
115
- variant: e(r).breadcrumbVariant,
116
- separator: e(r).breadcrumbSeparator,
117
- size: e(r).breadcrumbSize
117
+ variant: e(l).breadcrumbVariant,
118
+ separator: e(l).breadcrumbSeparator,
119
+ size: e(l).breadcrumbSize
118
120
  }, null, 8, ["items", "variant", "separator", "size"])
119
121
  ], 2)) : i("", !0),
120
122
  t("div", {
121
123
  ref_key: "mainScrollRef",
122
- ref: S,
124
+ ref: V,
123
125
  style: { "will-change": "transform", contain: "layout style" },
124
126
  class: "flex-1 overflow-y-auto w-full relative h-full scrollbar-thin scrollbar-stable"
125
127
  }, [
126
- l(s.$slots, "main")
128
+ r(s.$slots, "main")
127
129
  ], 512)
128
130
  ], 512)) : i("", !0)
129
131
  ]),
130
- m(L, {
132
+ m(H, {
131
133
  show: e(d),
132
- "onUpdate:show": n[1] || (n[1] = (h) => g(d) ? d.value = h : null),
134
+ "onUpdate:show": n[1] || (n[1] = (h) => w(d) ? d.value = h : null),
133
135
  position: "left",
134
136
  size: "sm",
135
137
  triggerClass: e(u).mobileTrigger,
@@ -140,13 +142,13 @@ const H = { class: "vlite-app-layout flex flex-row w-full h-full bg-background o
140
142
  default: p(() => [
141
143
  t("div", j, [
142
144
  t("div", K, [
143
- l(s.$slots, "mobile-sidebar", {}, () => [
144
- l(s.$slots, "sidebar")
145
+ r(s.$slots, "mobile-sidebar", {}, () => [
146
+ r(s.$slots, "sidebar")
145
147
  ])
146
148
  ]),
147
149
  s.$slots["mobile-sidebar-footer"] || s.$slots["sidebar-footer"] ? (a(), o("div", q, [
148
- l(s.$slots, "mobile-sidebar-footer", {}, () => [
149
- l(s.$slots, "sidebar-footer")
150
+ r(s.$slots, "mobile-sidebar-footer", {}, () => [
151
+ r(s.$slots, "sidebar-footer")
150
152
  ])
151
153
  ])) : i("", !0)
152
154
  ])
@@ -156,8 +158,8 @@ const H = { class: "vlite-app-layout flex flex-row w-full h-full bg-background o
156
158
  s.$slots["mobile-sidebar-header"] || s.$slots["sidebar-header"] ? {
157
159
  name: "header",
158
160
  fn: p(() => [
159
- l(s.$slots, "mobile-sidebar-header", {}, () => [
160
- l(s.$slots, "sidebar-header", {}, () => [
161
+ r(s.$slots, "mobile-sidebar-header", {}, () => [
162
+ r(s.$slots, "sidebar-header", {}, () => [
161
163
  n[2] || (n[2] = E("Brand", -1))
162
164
  ])
163
165
  ])
@@ -1,4 +1,4 @@
1
- import { defineComponent as x, inject as z, openBlock as r, createElementBlock as o, createVNode as m, Transition as N, withCtx as p, withDirectives as R, createElementVNode as d, normalizeClass as b, unref as e, renderSlot as s, createCommentVNode as t, vShow as _, isRef as y, createSlots as B, createTextVNode as E } from "vue";
1
+ import { defineComponent as N, inject as R, openBlock as r, createElementBlock as o, createVNode as m, Transition as _, withCtx as p, withDirectives as y, createElementVNode as d, normalizeClass as b, unref as e, renderSlot as a, createCommentVNode as t, vShow as g, isRef as w, createSlots as B, createTextVNode as E } from "vue";
2
2
  import L from "../SidePanel.vue.js";
3
3
  import M from "../Navbar/NavbarTabs.vue.js";
4
4
  /* empty css */
@@ -6,10 +6,10 @@ import P from "../Breadcrumb/Breadcrumb.vue.js";
6
6
  import "@iconify/vue";
7
7
  /* empty css */
8
8
  import { APPSHELL_LAYOUT_KEY as A } from "./useAppShell.js";
9
- const O = { class: "vlite-app-layout flex flex-row w-full h-full bg-body overflow-hidden" }, U = { class: "flex flex-col flex-1 min-w-0 h-full overflow-hidden" }, D = {
9
+ const H = { class: "vlite-app-layout flex flex-row w-full h-full bg-body overflow-hidden" }, O = { class: "flex flex-col flex-1 min-w-0 h-full overflow-hidden" }, U = {
10
10
  key: 0,
11
11
  class: "w-full shrink-0 z-20 border-b bg-background"
12
- }, H = {
12
+ }, D = {
13
13
  key: 0,
14
14
  class: "shrink-0 w-full"
15
15
  }, I = { class: "flex flex-col h-full" }, Y = {
@@ -18,26 +18,26 @@ const O = { class: "vlite-app-layout flex flex-row w-full h-full bg-body overflo
18
18
  }, j = {
19
19
  key: 0,
20
20
  class: "mt-auto"
21
- }, ee = /* @__PURE__ */ x({
21
+ }, ee = /* @__PURE__ */ N({
22
22
  __name: "AppShellLayoutSidebarFirst",
23
23
  setup(F) {
24
- const g = z(A), {
25
- props: a,
26
- sidebarHidden: w,
24
+ const k = R(A), {
25
+ props: s,
26
+ sidebarHidden: $,
27
27
  isMobileMenuOpen: i,
28
- isSidebarVisible: k,
29
- toggleSidebar: $,
30
- pageTitle: C,
28
+ isSidebarVisible: C,
29
+ toggleSidebar: S,
30
+ pageTitle: T,
31
31
  breadcrumbData: f,
32
32
  breakpointClasses: u,
33
33
  nestedTabsItems: v,
34
34
  activeNestedTab: c,
35
- handleNestedTabClick: S,
36
- mainScrollRef: T,
37
- layoutMainRef: V
38
- } = g;
39
- return (l, n) => (r(), o("div", O, [
40
- m(N, {
35
+ handleNestedTabClick: V,
36
+ mainScrollRef: x,
37
+ layoutMainRef: z
38
+ } = k;
39
+ return (l, n) => (r(), o("div", H, [
40
+ m(_, {
41
41
  "enter-active-class": "transition-all duration-300 ease-in-out",
42
42
  "leave-active-class": "transition-all duration-300 ease-in-out",
43
43
  "enter-from-class": "opacity-0 -translate-x-2",
@@ -46,83 +46,85 @@ const O = { class: "vlite-app-layout flex flex-row w-full h-full bg-body overflo
46
46
  "leave-to-class": "opacity-0 -translate-x-2"
47
47
  }, {
48
48
  default: p(() => [
49
- R(d("nav", {
49
+ y(d("nav", {
50
50
  class: b([
51
51
  "shrink-0 h-full flex flex-col bg-background border-r border-border overflow-hidden z-30",
52
52
  e(u).mobileTrigger === "md:hidden" ? "max-md:hidden" : "",
53
- e(a).class
53
+ e(s).class
54
54
  ]),
55
55
  role: "navigation",
56
56
  "aria-label": "Sidebar"
57
57
  }, [
58
- l.$slots["sidebar-header"] ? s(l.$slots, "sidebar-header", { key: 0 }) : t("", !0),
58
+ l.$slots["sidebar-header"] ? a(l.$slots, "sidebar-header", { key: 0 }) : t("", !0),
59
59
  d("div", {
60
- class: b(["flex-1 overflow-y-auto overflow-x-hidden scrollbar-thin scrollbar-stable", e(a).contentClass]),
60
+ class: b(["flex-1 overflow-y-auto overflow-x-hidden scrollbar-thin scrollbar-stable", e(s).contentClass]),
61
61
  style: { "will-change": "transform", contain: "layout style" }
62
62
  }, [
63
- s(l.$slots, "sidebar")
63
+ a(l.$slots, "sidebar")
64
64
  ], 2),
65
65
  l.$slots["sidebar-footer"] ? (r(), o("div", {
66
66
  key: 1,
67
- class: b(["shrink-0", e(a).rightClass])
67
+ class: b(["shrink-0", e(s).rightClass])
68
68
  }, [
69
- s(l.$slots, "sidebar-footer")
69
+ a(l.$slots, "sidebar-footer")
70
70
  ], 2)) : t("", !0)
71
71
  ], 2), [
72
- [_, !e(w)]
72
+ [g, !e($)]
73
73
  ])
74
74
  ]),
75
75
  _: 3
76
76
  }),
77
- d("div", U, [
78
- l.$slots.header ? (r(), o("header", D, [
79
- s(l.$slots, "header", {
77
+ d("div", O, [
78
+ l.$slots.header ? y((r(), o("header", U, [
79
+ a(l.$slots, "header", {
80
80
  isOpen: e(i),
81
81
  toggle: () => i.value = !e(i),
82
- sidebarVisible: e(k),
83
- toggleSidebar: e($),
82
+ sidebarVisible: e(C),
83
+ toggleSidebar: e(S),
84
84
  breadcrumbItems: e(f).items.value,
85
- pageTitle: e(C)
85
+ pageTitle: e(T)
86
86
  })
87
- ])) : t("", !0),
87
+ ], 512)), [
88
+ [g, !e(s).hideHeader]
89
+ ]) : t("", !0),
88
90
  l.$slots.main ? (r(), o("main", {
89
91
  key: 1,
90
92
  ref_key: "layoutMainRef",
91
- ref: V,
93
+ ref: z,
92
94
  class: "flex-1 overflow-y-auto w-full relative h-full flex flex-col min-h-0 scrollbar-thin scrollbar-stable"
93
95
  }, [
94
- e(a).renderNestedTabs && e(v).length > 0 ? (r(), o("div", H, [
96
+ e(s).renderNestedTabs && e(v).length > 0 ? (r(), o("div", D, [
95
97
  m(M, {
96
98
  modelValue: e(c),
97
- "onUpdate:modelValue": n[0] || (n[0] = (h) => y(c) ? c.value = h : null),
98
- onChange: e(S),
99
+ "onUpdate:modelValue": n[0] || (n[0] = (h) => w(c) ? c.value = h : null),
100
+ onChange: e(V),
99
101
  items: e(v)
100
102
  }, null, 8, ["modelValue", "onChange", "items"])
101
103
  ])) : t("", !0),
102
- e(a).breadcrumb && e(a).breadcrumbPosition === "main" && e(f).items.value.length > 1 ? (r(), o("div", {
104
+ e(s).breadcrumb && e(s).breadcrumbPosition === "main" && e(f).items.value.length > 1 ? (r(), o("div", {
103
105
  key: 1,
104
- class: b(["shrink-0 w-full border-b border-border px-6 py-2", e(a).breadcrumbClass])
106
+ class: b(["shrink-0 w-full border-b border-border px-6 py-2", e(s).breadcrumbClass])
105
107
  }, [
106
108
  m(e(P), {
107
109
  items: e(f).items.value,
108
- variant: e(a).breadcrumbVariant,
109
- separator: e(a).breadcrumbSeparator,
110
- size: e(a).breadcrumbSize
110
+ variant: e(s).breadcrumbVariant,
111
+ separator: e(s).breadcrumbSeparator,
112
+ size: e(s).breadcrumbSize
111
113
  }, null, 8, ["items", "variant", "separator", "size"])
112
114
  ], 2)) : t("", !0),
113
115
  d("div", {
114
116
  ref_key: "mainScrollRef",
115
- ref: T,
117
+ ref: x,
116
118
  style: { "will-change": "transform", contain: "layout style" },
117
119
  class: "flex-1 overflow-y-auto w-full relative h-full scrollbar-thin scrollbar-stable"
118
120
  }, [
119
- s(l.$slots, "main")
121
+ a(l.$slots, "main")
120
122
  ], 512)
121
123
  ], 512)) : t("", !0)
122
124
  ]),
123
125
  m(L, {
124
126
  show: e(i),
125
- "onUpdate:show": n[1] || (n[1] = (h) => y(i) ? i.value = h : null),
127
+ "onUpdate:show": n[1] || (n[1] = (h) => w(i) ? i.value = h : null),
126
128
  position: "left",
127
129
  size: "sm",
128
130
  triggerClass: e(u).mobileTrigger,
@@ -133,13 +135,13 @@ const O = { class: "vlite-app-layout flex flex-row w-full h-full bg-body overflo
133
135
  default: p(() => [
134
136
  d("div", I, [
135
137
  d("div", Y, [
136
- s(l.$slots, "mobile-sidebar", {}, () => [
137
- s(l.$slots, "sidebar")
138
+ a(l.$slots, "mobile-sidebar", {}, () => [
139
+ a(l.$slots, "sidebar")
138
140
  ])
139
141
  ]),
140
142
  l.$slots["mobile-sidebar-footer"] || l.$slots["sidebar-footer"] ? (r(), o("div", j, [
141
- s(l.$slots, "mobile-sidebar-footer", {}, () => [
142
- s(l.$slots, "sidebar-footer")
143
+ a(l.$slots, "mobile-sidebar-footer", {}, () => [
144
+ a(l.$slots, "sidebar-footer")
143
145
  ])
144
146
  ])) : t("", !0)
145
147
  ])
@@ -149,8 +151,8 @@ const O = { class: "vlite-app-layout flex flex-row w-full h-full bg-body overflo
149
151
  l.$slots["mobile-sidebar-header"] || l.$slots["sidebar-header"] ? {
150
152
  name: "header",
151
153
  fn: p(() => [
152
- s(l.$slots, "mobile-sidebar-header", {}, () => [
153
- s(l.$slots, "sidebar-header", {}, () => [
154
+ a(l.$slots, "mobile-sidebar-header", {}, () => [
155
+ a(l.$slots, "sidebar-header", {}, () => [
154
156
  n[2] || (n[2] = E("Brand", -1))
155
157
  ])
156
158
  ])
@@ -1,39 +1,39 @@
1
- import { defineComponent as z, inject as T, computed as v, openBlock as t, createElementBlock as i, renderSlot as l, createCommentVNode as d, createElementVNode as a, normalizeClass as n, unref as e, createVNode as f, isRef as y, createSlots as _, withCtx as w } from "vue";
2
- import R from "../Icon.vue.js";
3
- import P from "../SidePanel.vue.js";
4
- import V from "../Navbar/NavbarTabs.vue.js";
1
+ import { defineComponent as z, inject as T, computed as v, openBlock as t, createElementBlock as i, renderSlot as l, createCommentVNode as d, withDirectives as _, createElementVNode as a, normalizeClass as n, unref as e, createVNode as f, vShow as R, isRef as y, createSlots as P, withCtx as w } from "vue";
2
+ import V from "../Icon.vue.js";
3
+ import j from "../SidePanel.vue.js";
4
+ import N from "../Navbar/NavbarTabs.vue.js";
5
5
  /* empty css */
6
- import j from "../Breadcrumb/Breadcrumb.vue.js";
6
+ import B from "../Breadcrumb/Breadcrumb.vue.js";
7
7
  /* empty css */
8
- import { APPSHELL_LAYOUT_KEY as N } from "./useAppShell.js";
9
- import { normalizeRoutePrefix as B } from "../CategoryMenu/utils.js";
10
- const E = { class: "vlite-app-layout flex flex-col w-full h-full min-h-0 bg-body text-foreground overflow-hidden" }, L = {
8
+ import { APPSHELL_LAYOUT_KEY as E } from "./useAppShell.js";
9
+ import { normalizeRoutePrefix as L } from "../CategoryMenu/utils.js";
10
+ const M = { class: "vlite-app-layout flex flex-col w-full h-full min-h-0 bg-body text-foreground overflow-hidden" }, O = {
11
11
  key: 0,
12
12
  class: "shrink-0 w-full"
13
- }, M = { class: "w-full mx-auto px-3 sm:px-4 md:px-6 lg:px-8" }, O = ["aria-label"], A = {
13
+ }, A = { class: "w-full mx-auto px-3 sm:px-4 md:px-6 lg:px-8" }, U = ["aria-label"], D = {
14
14
  key: 0,
15
15
  class: "flex items-center justify-center min-w-0 flex-1 px-2"
16
- }, U = { class: "w-full min-w-0 mx-auto overflow-hidden" }, Y = {
16
+ }, H = { class: "w-full min-w-0 mx-auto overflow-hidden" }, Y = {
17
17
  key: 0,
18
18
  class: "shrink-0 w-full"
19
- }, D = {
19
+ }, I = {
20
20
  key: 2,
21
21
  class: "shrink-0 w-full border-t border-border bg-background"
22
- }, H = { class: "flex flex-col h-full" }, I = {
22
+ }, K = { class: "flex flex-col h-full" }, q = {
23
23
  class: "flex-1 overflow-y-auto px-3.5 py-4 space-y-4 scrollbar-thin scrollbar-stable",
24
24
  style: { "will-change": "transform", contain: "layout style" }
25
- }, K = {
25
+ }, F = {
26
26
  key: 0,
27
27
  class: "mt-auto border-t border-border px-3.5 py-3"
28
- }, te = /* @__PURE__ */ z({
28
+ }, ae = /* @__PURE__ */ z({
29
29
  __name: "AppShellLayoutStorefront",
30
- setup(q) {
31
- const k = T(N), {
30
+ setup(G) {
31
+ const k = T(E), {
32
32
  props: s,
33
33
  isMobileMenuOpen: r,
34
- isSidebarVisible: F,
35
- toggleSidebar: G,
36
- pageTitle: J,
34
+ isSidebarVisible: J,
35
+ toggleSidebar: Q,
36
+ pageTitle: W,
37
37
  breadcrumbData: p,
38
38
  breakpointClasses: m,
39
39
  nestedTabsItems: g,
@@ -53,15 +53,15 @@ const E = { class: "vlite-app-layout flex flex-col w-full h-full min-h-0 bg-body
53
53
  s.glass ? "bg-background/90 backdrop-blur-md" : "",
54
54
  s.floating ? "m-3 rounded-lg border border-border shadow-sm overflow-hidden" : "",
55
55
  s.class
56
- ].filter(Boolean).join(" ")), h = v(() => B(s.categoryRoutePrefix));
57
- return (o, u) => (t(), i("div", E, [
58
- o.$slots.announcement ? (t(), i("div", L, [
56
+ ].filter(Boolean).join(" ")), h = v(() => L(s.categoryRoutePrefix));
57
+ return (o, u) => (t(), i("div", M, [
58
+ o.$slots.announcement ? (t(), i("div", O, [
59
59
  l(o.$slots, "announcement")
60
60
  ])) : d("", !0),
61
- a("header", {
61
+ _(a("header", {
62
62
  class: n(S.value)
63
63
  }, [
64
- a("div", M, [
64
+ a("div", A, [
65
65
  a("div", {
66
66
  class: n(["flex w-full items-center justify-between gap-3 md:gap-6", e(s).height])
67
67
  }, [
@@ -78,15 +78,15 @@ const E = { class: "vlite-app-layout flex flex-col w-full h-full min-h-0 bg-body
78
78
  "aria-label": e(r) ? "Close menu" : "Open menu",
79
79
  onClick: u[0] || (u[0] = (b) => r.value = !e(r))
80
80
  }, [
81
- f(R, {
81
+ f(V, {
82
82
  icon: e(r) ? "lucide:x" : "lucide:menu",
83
83
  class: "w-5 h-5"
84
84
  }, null, 8, ["icon"])
85
- ], 10, O)
85
+ ], 10, U)
86
86
  ]),
87
87
  l(o.$slots, "left")
88
88
  ], 2),
89
- o.$slots.center ? (t(), i("div", A, [
89
+ o.$slots.center ? (t(), i("div", D, [
90
90
  l(o.$slots, "center")
91
91
  ])) : d("", !0),
92
92
  a("div", {
@@ -106,11 +106,13 @@ const E = { class: "vlite-app-layout flex flex-col w-full h-full min-h-0 bg-body
106
106
  key: 0,
107
107
  class: n(["w-full min-w-0 overflow-hidden border-t border-border bg-background", [e(m).desktopContent, e(s).menuClass]])
108
108
  }, [
109
- a("div", U, [
109
+ a("div", H, [
110
110
  l(o.$slots, "categories", { categoryRoutePrefix: h.value })
111
111
  ])
112
112
  ], 2)) : d("", !0)
113
- ], 2),
113
+ ], 2), [
114
+ [R, !e(s).hideHeader]
115
+ ]),
114
116
  o.$slots.main ? (t(), i("main", {
115
117
  key: 1,
116
118
  ref_key: "layoutMainRef",
@@ -118,7 +120,7 @@ const E = { class: "vlite-app-layout flex flex-col w-full h-full min-h-0 bg-body
118
120
  class: "flex-1 overflow-hidden w-full relative flex flex-col min-h-0"
119
121
  }, [
120
122
  e(s).renderNestedTabs && e(g).length > 0 ? (t(), i("div", Y, [
121
- f(V, {
123
+ f(N, {
122
124
  modelValue: e(c),
123
125
  "onUpdate:modelValue": u[1] || (u[1] = (b) => y(c) ? c.value = b : null),
124
126
  onChange: e($),
@@ -129,7 +131,7 @@ const E = { class: "vlite-app-layout flex flex-col w-full h-full min-h-0 bg-body
129
131
  key: 1,
130
132
  class: n(["shrink-0 w-full border-b border-border px-6 py-2", e(s).breadcrumbClass])
131
133
  }, [
132
- f(e(j), {
134
+ f(e(B), {
133
135
  items: e(p).items.value,
134
136
  variant: e(s).breadcrumbVariant,
135
137
  separator: e(s).breadcrumbSeparator,
@@ -145,10 +147,10 @@ const E = { class: "vlite-app-layout flex flex-col w-full h-full min-h-0 bg-body
145
147
  l(o.$slots, "main")
146
148
  ], 2)
147
149
  ], 512)) : d("", !0),
148
- o.$slots.footer ? (t(), i("footer", D, [
150
+ o.$slots.footer ? (t(), i("footer", I, [
149
151
  l(o.$slots, "footer")
150
152
  ])) : d("", !0),
151
- f(P, {
153
+ f(j, {
152
154
  show: e(r),
153
155
  "onUpdate:show": u[2] || (u[2] = (b) => y(r) ? r.value = b : null),
154
156
  position: "left",
@@ -157,13 +159,13 @@ const E = { class: "vlite-app-layout flex flex-col w-full h-full min-h-0 bg-body
157
159
  class: n(["z-60", e(m).mobileTrigger]),
158
160
  headerClass: "pl-3! pr-4.5! py-3!",
159
161
  bodyClass: "p-0!"
160
- }, _({
162
+ }, P({
161
163
  default: w(() => [
162
- a("div", H, [
163
- a("div", I, [
164
+ a("div", K, [
165
+ a("div", q, [
164
166
  l(o.$slots, "mobile-sidebar", { categoryRoutePrefix: h.value })
165
167
  ]),
166
- o.$slots["mobile-sidebar-footer"] ? (t(), i("div", K, [
168
+ o.$slots["mobile-sidebar-footer"] ? (t(), i("div", F, [
167
169
  l(o.$slots, "mobile-sidebar-footer")
168
170
  ])) : d("", !0)
169
171
  ])
@@ -182,5 +184,5 @@ const E = { class: "vlite-app-layout flex flex-col w-full h-full min-h-0 bg-body
182
184
  }
183
185
  });
184
186
  export {
185
- te as default
187
+ ae as default
186
188
  };
@@ -17,7 +17,7 @@ function G(e, v) {
17
17
  });
18
18
  const u = i(!1), o = i(!1), a = i(null), f = i(null), d = P("vlite-appshell-sidebar-visible", !0), L = t(() => e.sidebarToggle && v), E = () => {
19
19
  d.value = !d.value;
20
- }, N = t(() => L.value && !d.value), j = (l) => {
20
+ }, N = t(() => e.hideSidebar || L.value && !d.value), j = (l) => {
21
21
  c.value.find((s) => s.value === l) && (typeof l == "string" && l.startsWith("/") ? import("vue-router").then(({ useRouter: s }) => {
22
22
  s().push(l).catch(() => {
23
23
  });
@@ -22,8 +22,8 @@ import qe from "../IconPicker.vue.js";
22
22
  /* empty css */
23
23
  /* empty css */
24
24
  /* empty css */
25
- /* empty css */
26
- /* empty css */
25
+ /* empty css */
26
+ /* empty css */
27
27
  import "../../core/config.js";
28
28
  /* empty css */
29
29
  /* empty css */
@@ -33,9 +33,9 @@ declare const _default: import('vue').DefineComponent<BarChartProps, {}, {}, {},
33
33
  height: number;
34
34
  orientation: "vertical" | "horizontal";
35
35
  colors: string[];
36
+ showGrid: boolean;
36
37
  showLegend: boolean;
37
38
  showTooltip: boolean;
38
- showGrid: boolean;
39
39
  showXAxis: boolean;
40
40
  showYAxis: boolean;
41
41
  showXLabels: boolean;
@@ -0,0 +1,22 @@
1
+ import { ChartDataPoint } from './types';
2
+ export type ChartLegendsVariant = 'default' | 'variant1' | 'variant2';
3
+ export type ChartLegendPosition = 'right' | 'bottom';
4
+ type __VLS_Props = {
5
+ data: ChartDataPoint[];
6
+ total: number;
7
+ colors?: string[];
8
+ legendsVariant?: ChartLegendsVariant;
9
+ legendPosition?: ChartLegendPosition;
10
+ hoveredIndex?: number | null;
11
+ };
12
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
13
+ hover: (index: number) => any;
14
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
15
+ onHover?: (index: number) => any;
16
+ }>, {
17
+ colors: string[];
18
+ legendsVariant: ChartLegendsVariant;
19
+ legendPosition: ChartLegendPosition;
20
+ hoveredIndex: number | null;
21
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
22
+ export default _default;