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
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { defineComponent as b, computed as m, openBlock as a, createElementBlock as u, normalizeClass as c, Fragment as f, renderList as p, createElementVNode as t, normalizeStyle as v, toDisplayString as r, unref as h, createTextVNode as k } from "vue";
|
|
2
|
+
import { getColor as M, formatNumber as g } from "./utils.js";
|
|
3
|
+
const _ = ["onMouseenter"], C = { class: "text-xs text-foreground whitespace-nowrap" }, I = { class: "font-medium" }, V = { class: "text-muted-foreground" }, $ = ["onMouseenter"], N = { class: "inline-flex items-center gap-2 min-w-0" }, j = { class: "text-xs font-medium text-foreground truncate" }, z = { class: "text-xs text-muted-foreground tabular-nums shrink-0 text-right" }, B = { class: "text-foreground/70" }, E = ["onMouseenter"], L = { class: "min-w-0" }, P = { class: "text-xs font-medium text-foreground truncate" }, S = { class: "text-[10px] text-muted-foreground" }, T = /* @__PURE__ */ b({
|
|
4
|
+
__name: "ChartLegend",
|
|
5
|
+
props: {
|
|
6
|
+
data: {},
|
|
7
|
+
total: {},
|
|
8
|
+
colors: { default: () => [] },
|
|
9
|
+
legendsVariant: { default: "default" },
|
|
10
|
+
legendPosition: { default: "right" },
|
|
11
|
+
hoveredIndex: { default: null }
|
|
12
|
+
},
|
|
13
|
+
emits: ["hover"],
|
|
14
|
+
setup(o, { emit: y }) {
|
|
15
|
+
const i = o, d = y, x = m(
|
|
16
|
+
() => i.data.map((l, n) => {
|
|
17
|
+
const e = Number(l.value) || 0, s = i.total ? Math.round(e / i.total * 100) : 0;
|
|
18
|
+
return {
|
|
19
|
+
...l,
|
|
20
|
+
index: n,
|
|
21
|
+
color: l.color ?? M(i.colors, n),
|
|
22
|
+
value: e,
|
|
23
|
+
pct: s
|
|
24
|
+
};
|
|
25
|
+
})
|
|
26
|
+
), w = m(() => {
|
|
27
|
+
const l = i.legendsVariant, n = i.legendPosition;
|
|
28
|
+
return l === "variant1" ? "flex flex-row flex-wrap items-center justify-center gap-x-4 gap-y-2 min-w-0 w-full" : l === "variant2" ? n === "bottom" ? "flex flex-col gap-2.5 w-full min-w-0" : "flex flex-col gap-2.5 min-w-[160px]" : n === "bottom" ? "flex flex-row flex-wrap justify-center gap-x-5 gap-y-3 min-w-0" : "flex flex-col gap-2 min-w-[120px]";
|
|
29
|
+
});
|
|
30
|
+
return (l, n) => (a(), u("div", {
|
|
31
|
+
class: c(w.value),
|
|
32
|
+
role: "list"
|
|
33
|
+
}, [
|
|
34
|
+
o.legendsVariant === "variant1" ? (a(!0), u(f, { key: 0 }, p(x.value, (e) => (a(), u("button", {
|
|
35
|
+
key: e.index,
|
|
36
|
+
type: "button",
|
|
37
|
+
role: "listitem",
|
|
38
|
+
class: c(["inline-flex items-center gap-2 text-left cursor-pointer transition-opacity duration-150", o.hoveredIndex !== null && o.hoveredIndex !== e.index ? "opacity-45" : "opacity-100"]),
|
|
39
|
+
onMouseenter: (s) => d("hover", e.index),
|
|
40
|
+
onMouseleave: n[0] || (n[0] = (s) => d("hover", null))
|
|
41
|
+
}, [
|
|
42
|
+
t("span", {
|
|
43
|
+
class: "w-2 h-2 rounded-full shrink-0",
|
|
44
|
+
style: v({ backgroundColor: e.color })
|
|
45
|
+
}, null, 4),
|
|
46
|
+
t("span", C, [
|
|
47
|
+
t("span", I, r(e.label), 1),
|
|
48
|
+
t("span", V, " (" + r(h(g)(e.value)) + ", " + r(e.pct) + "%) ", 1)
|
|
49
|
+
])
|
|
50
|
+
], 42, _))), 128)) : o.legendsVariant === "variant2" ? (a(!0), u(f, { key: 1 }, p(x.value, (e) => (a(), u("button", {
|
|
51
|
+
key: e.index,
|
|
52
|
+
type: "button",
|
|
53
|
+
role: "listitem",
|
|
54
|
+
class: c(["flex w-full items-center justify-between gap-4 text-left cursor-pointer transition-opacity duration-150", o.hoveredIndex !== null && o.hoveredIndex !== e.index ? "opacity-45" : "opacity-100"]),
|
|
55
|
+
onMouseenter: (s) => d("hover", e.index),
|
|
56
|
+
onMouseleave: n[1] || (n[1] = (s) => d("hover", null))
|
|
57
|
+
}, [
|
|
58
|
+
t("span", N, [
|
|
59
|
+
t("span", {
|
|
60
|
+
class: "w-2.5 h-2.5 rounded-sm shrink-0",
|
|
61
|
+
style: v({ backgroundColor: e.color })
|
|
62
|
+
}, null, 4),
|
|
63
|
+
t("span", j, r(e.label), 1)
|
|
64
|
+
]),
|
|
65
|
+
t("span", z, [
|
|
66
|
+
k(r(h(g)(e.value)) + " ", 1),
|
|
67
|
+
t("span", B, "(" + r(e.pct) + "%)", 1)
|
|
68
|
+
])
|
|
69
|
+
], 42, $))), 128)) : (a(!0), u(f, { key: 2 }, p(x.value, (e) => (a(), u("button", {
|
|
70
|
+
key: e.index,
|
|
71
|
+
type: "button",
|
|
72
|
+
role: "listitem",
|
|
73
|
+
class: c(["flex items-center gap-2 cursor-pointer text-left transition-opacity duration-150", o.hoveredIndex !== null && o.hoveredIndex !== e.index ? "opacity-45" : "opacity-100"]),
|
|
74
|
+
onMouseenter: (s) => d("hover", e.index),
|
|
75
|
+
onMouseleave: n[2] || (n[2] = (s) => d("hover", null))
|
|
76
|
+
}, [
|
|
77
|
+
t("span", {
|
|
78
|
+
class: "w-2.5 h-2.5 rounded-sm shrink-0",
|
|
79
|
+
style: v({ backgroundColor: e.color })
|
|
80
|
+
}, null, 4),
|
|
81
|
+
t("div", L, [
|
|
82
|
+
t("div", P, r(e.label), 1),
|
|
83
|
+
t("div", S, r(h(g)(e.value)) + " (" + r(e.pct) + "%) ", 1)
|
|
84
|
+
])
|
|
85
|
+
], 42, E))), 128))
|
|
86
|
+
], 2));
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
export {
|
|
90
|
+
T as default
|
|
91
|
+
};
|
|
@@ -43,9 +43,9 @@ declare const _default: import('vue').DefineComponent<GanttChartProps, {}, {}, {
|
|
|
43
43
|
draggable: boolean;
|
|
44
44
|
showHeader: boolean;
|
|
45
45
|
colors: string[];
|
|
46
|
-
showLabels: boolean;
|
|
47
|
-
showTooltip: boolean;
|
|
48
46
|
showGrid: boolean;
|
|
47
|
+
showTooltip: boolean;
|
|
48
|
+
showLabels: boolean;
|
|
49
49
|
barRadius: number;
|
|
50
50
|
rowHeight: number;
|
|
51
51
|
barHeight: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t from "./GanttChart.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import o from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const m = /* @__PURE__ */ o(t, [["__scopeId", "data-v-
|
|
4
|
+
const m = /* @__PURE__ */ o(t, [["__scopeId", "data-v-ebb84e3d"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|