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.
- package/components/AppShell/AppShell.vue.d.ts +2 -0
- package/components/AppShell/AppShell.vue.js +11 -9
- package/components/AppShell/AppShellLayoutClassic.vue.js +34 -32
- package/components/AppShell/AppShellLayoutDashboard.vue.js +51 -49
- package/components/AppShell/AppShellLayoutDock.vue.js +52 -50
- package/components/AppShell/AppShellLayoutHeaderShell.vue.js +56 -54
- package/components/AppShell/AppShellLayoutSidebarFirst.vue.js +51 -49
- package/components/AppShell/AppShellLayoutStorefront.vue.js +40 -38
- package/components/AppShell/useAppShell.js +1 -1
- package/components/CategoryManager/CategoryManager.vue2.js +2 -2
- package/components/Chart/BarChart.vue.d.ts +1 -1
- package/components/Chart/ChartLegend.vue.d.ts +22 -0
- package/components/Chart/ChartLegend.vue.js +91 -0
- package/components/Chart/ChartLegend.vue2.js +4 -0
- package/components/Chart/GanttChart.vue.d.ts +2 -2
- package/components/Chart/GanttChart.vue.js +1 -1
- package/components/Chart/GanttChart.vue2.js +367 -364
- package/components/Chart/LineChart.vue.d.ts +5 -2
- package/components/Chart/LineChart.vue.js +1 -1
- package/components/Chart/LineChart.vue2.js +40 -39
- package/components/Chart/PieChart.vue.d.ts +11 -4
- package/components/Chart/PieChart.vue.js +118 -114
- package/components/Chart/SegmentBarChart.vue.d.ts +1 -1
- package/components/Chart/TimelineChart.vue.d.ts +2 -2
- package/components/Chart/index.d.ts +2 -1
- package/components/Chart/types.d.ts +27 -0
- package/components/CommandPalette/CommandPaletteContent.vue2.js +1 -1
- package/components/CommandPalette/{CommandPaletteItem.vue2.js → CommandPaletteItem.vue.js} +1 -1
- package/components/Form/Form.vue.js +1 -1
- package/components/Form/Form.vue2.js +131 -127
- package/components/Heatmap/Heatmap.vue.d.ts +1 -1
- package/components/NavbarCommandPalette.vue.js +1 -1
- package/components/RichTextEditor/RichTextEditor.vue.js +4 -4
- package/components/RichTextEditor/RichTextLinkPopover.vue3.js +2 -2
- package/components/RichTextEditor/RichTextToolbar.vue3.js +2 -2
- package/components/Screen/ScreenFilter.vue.js +2 -2
- package/components/SidebarMenu/SidebarMenu.vue.d.ts +1 -1
- package/components/Stats/StatItem.vue.d.ts +2 -0
- package/components/Stats/StatItem.vue.js +234 -134
- package/components/Stats/Stats.vue.d.ts +1 -0
- package/components/Stats/Stats.vue.js +45 -41
- package/components/Stats/components/StatTrend.vue.js +35 -32
- package/components/Stats/types.d.ts +32 -2
- package/index.js +138 -136
- package/package.json +1 -1
- package/style.css +1 -1
- package/types/appshell.type.d.ts +2 -0
- /package/components/RichTextEditor/{RichTextLinkPopover.vue.js → RichTextLinkPopover.vue2.js} +0 -0
- /package/components/RichTextEditor/{RichTextToolbar.vue.js → RichTextToolbar.vue2.js} +0 -0
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
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
|
|
5
|
+
import M from "../Breadcrumb/Breadcrumb.vue.js";
|
|
6
6
|
import "@iconify/vue";
|
|
7
7
|
/* empty css */
|
|
8
|
-
import { APPSHELL_LAYOUT_KEY as
|
|
9
|
-
const
|
|
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__ */
|
|
24
|
+
}, le = /* @__PURE__ */ _({
|
|
25
25
|
__name: "AppShellLayoutHeaderShell",
|
|
26
26
|
setup(F) {
|
|
27
|
-
const
|
|
28
|
-
props:
|
|
29
|
-
sidebarHidden:
|
|
27
|
+
const k = N(P), {
|
|
28
|
+
props: l,
|
|
29
|
+
sidebarHidden: $,
|
|
30
30
|
isMobileMenuOpen: d,
|
|
31
|
-
isSidebarVisible:
|
|
32
|
-
toggleSidebar:
|
|
33
|
-
pageTitle:
|
|
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:
|
|
39
|
-
mainScrollRef:
|
|
40
|
-
layoutMainRef:
|
|
41
|
-
} =
|
|
42
|
-
return (s, n) => (a(), o("div",
|
|
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
|
-
|
|
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(
|
|
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
|
-
|
|
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(
|
|
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
|
-
|
|
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(
|
|
72
|
+
class: b(["shrink-0", e(l).rightClass])
|
|
73
73
|
}, [
|
|
74
|
-
|
|
74
|
+
r(s.$slots, "sidebar-footer")
|
|
75
75
|
], 2)) : i("", !0)
|
|
76
76
|
], 2), [
|
|
77
|
-
[
|
|
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
|
-
|
|
85
|
+
r(s.$slots, "header", {
|
|
86
86
|
isOpen: e(d),
|
|
87
87
|
toggle: () => d.value = !e(d),
|
|
88
|
-
sidebarVisible: e(
|
|
89
|
-
toggleSidebar: e(
|
|
88
|
+
sidebarVisible: e(x),
|
|
89
|
+
toggleSidebar: e(C),
|
|
90
90
|
breadcrumbItems: e(f).items.value,
|
|
91
|
-
pageTitle: e(
|
|
91
|
+
pageTitle: e(S)
|
|
92
92
|
})
|
|
93
93
|
])
|
|
94
|
-
]))
|
|
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:
|
|
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(
|
|
102
|
-
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) =>
|
|
105
|
-
onChange: e(
|
|
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(
|
|
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(
|
|
113
|
+
class: b(["shrink-0 w-full border-b border-border px-6 py-2", e(l).breadcrumbClass])
|
|
112
114
|
}, [
|
|
113
|
-
m(e(
|
|
115
|
+
m(e(M), {
|
|
114
116
|
items: e(f).items.value,
|
|
115
|
-
variant: e(
|
|
116
|
-
separator: e(
|
|
117
|
-
size: e(
|
|
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:
|
|
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
|
-
|
|
128
|
+
r(s.$slots, "main")
|
|
127
129
|
], 512)
|
|
128
130
|
], 512)) : i("", !0)
|
|
129
131
|
]),
|
|
130
|
-
m(
|
|
132
|
+
m(H, {
|
|
131
133
|
show: e(d),
|
|
132
|
-
"onUpdate:show": n[1] || (n[1] = (h) =>
|
|
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
|
-
|
|
144
|
-
|
|
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
|
-
|
|
149
|
-
|
|
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
|
-
|
|
160
|
-
|
|
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
|
|
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
|
|
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
|
-
},
|
|
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__ */
|
|
21
|
+
}, ee = /* @__PURE__ */ N({
|
|
22
22
|
__name: "AppShellLayoutSidebarFirst",
|
|
23
23
|
setup(F) {
|
|
24
|
-
const
|
|
25
|
-
props:
|
|
26
|
-
sidebarHidden:
|
|
24
|
+
const k = R(A), {
|
|
25
|
+
props: s,
|
|
26
|
+
sidebarHidden: $,
|
|
27
27
|
isMobileMenuOpen: i,
|
|
28
|
-
isSidebarVisible:
|
|
29
|
-
toggleSidebar:
|
|
30
|
-
pageTitle:
|
|
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:
|
|
36
|
-
mainScrollRef:
|
|
37
|
-
layoutMainRef:
|
|
38
|
-
} =
|
|
39
|
-
return (l, n) => (r(), o("div",
|
|
40
|
-
m(
|
|
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
|
-
|
|
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(
|
|
53
|
+
e(s).class
|
|
54
54
|
]),
|
|
55
55
|
role: "navigation",
|
|
56
56
|
"aria-label": "Sidebar"
|
|
57
57
|
}, [
|
|
58
|
-
l.$slots["sidebar-header"] ?
|
|
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(
|
|
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
|
-
|
|
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(
|
|
67
|
+
class: b(["shrink-0", e(s).rightClass])
|
|
68
68
|
}, [
|
|
69
|
-
|
|
69
|
+
a(l.$slots, "sidebar-footer")
|
|
70
70
|
], 2)) : t("", !0)
|
|
71
71
|
], 2), [
|
|
72
|
-
[
|
|
72
|
+
[g, !e($)]
|
|
73
73
|
])
|
|
74
74
|
]),
|
|
75
75
|
_: 3
|
|
76
76
|
}),
|
|
77
|
-
d("div",
|
|
78
|
-
l.$slots.header ? (r(), o("header",
|
|
79
|
-
|
|
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(
|
|
83
|
-
toggleSidebar: e(
|
|
82
|
+
sidebarVisible: e(C),
|
|
83
|
+
toggleSidebar: e(S),
|
|
84
84
|
breadcrumbItems: e(f).items.value,
|
|
85
|
-
pageTitle: e(
|
|
85
|
+
pageTitle: e(T)
|
|
86
86
|
})
|
|
87
|
-
]))
|
|
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:
|
|
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(
|
|
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) =>
|
|
98
|
-
onChange: e(
|
|
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(
|
|
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(
|
|
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(
|
|
109
|
-
separator: e(
|
|
110
|
-
size: e(
|
|
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:
|
|
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
|
-
|
|
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) =>
|
|
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
|
-
|
|
137
|
-
|
|
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
|
-
|
|
142
|
-
|
|
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
|
-
|
|
153
|
-
|
|
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
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
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
|
|
6
|
+
import B from "../Breadcrumb/Breadcrumb.vue.js";
|
|
7
7
|
/* empty css */
|
|
8
|
-
import { APPSHELL_LAYOUT_KEY as
|
|
9
|
-
import { normalizeRoutePrefix as
|
|
10
|
-
const
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
19
|
+
}, I = {
|
|
20
20
|
key: 2,
|
|
21
21
|
class: "shrink-0 w-full border-t border-border bg-background"
|
|
22
|
-
},
|
|
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
|
-
},
|
|
25
|
+
}, F = {
|
|
26
26
|
key: 0,
|
|
27
27
|
class: "mt-auto border-t border-border px-3.5 py-3"
|
|
28
|
-
},
|
|
28
|
+
}, ae = /* @__PURE__ */ z({
|
|
29
29
|
__name: "AppShellLayoutStorefront",
|
|
30
|
-
setup(
|
|
31
|
-
const k = T(
|
|
30
|
+
setup(G) {
|
|
31
|
+
const k = T(E), {
|
|
32
32
|
props: s,
|
|
33
33
|
isMobileMenuOpen: r,
|
|
34
|
-
isSidebarVisible:
|
|
35
|
-
toggleSidebar:
|
|
36
|
-
pageTitle:
|
|
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(() =>
|
|
57
|
-
return (o, u) => (t(), i("div",
|
|
58
|
-
o.$slots.announcement ? (t(), i("div",
|
|
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",
|
|
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(
|
|
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,
|
|
85
|
+
], 10, U)
|
|
86
86
|
]),
|
|
87
87
|
l(o.$slots, "left")
|
|
88
88
|
], 2),
|
|
89
|
-
o.$slots.center ? (t(), i("div",
|
|
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",
|
|
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(
|
|
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(
|
|
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",
|
|
150
|
+
o.$slots.footer ? (t(), i("footer", I, [
|
|
149
151
|
l(o.$slots, "footer")
|
|
150
152
|
])) : d("", !0),
|
|
151
|
-
f(
|
|
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",
|
|
163
|
-
a("div",
|
|
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",
|
|
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
|
-
|
|
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
|
});
|
|
@@ -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;
|