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
|
@@ -8,9 +8,9 @@ declare const _default: import('vue').DefineComponent<HeatmapProps, {}, {}, {},
|
|
|
8
8
|
}>, {
|
|
9
9
|
class: string;
|
|
10
10
|
layout: import('./types').HeatmapLayout;
|
|
11
|
+
showLegend: boolean;
|
|
11
12
|
minValue: number;
|
|
12
13
|
maxValue: number;
|
|
13
|
-
showLegend: boolean;
|
|
14
14
|
showLabels: boolean;
|
|
15
15
|
interactive: boolean;
|
|
16
16
|
responsive: boolean;
|
|
@@ -3,7 +3,7 @@ import L from "./Icon.vue.js";
|
|
|
3
3
|
import v from "./Modal.vue.js";
|
|
4
4
|
import N from "./CommandPalette/CommandPaletteContent.vue.js";
|
|
5
5
|
import { $t as U } from "../utils/i18n.js";
|
|
6
|
-
/* empty css
|
|
6
|
+
/* empty css */
|
|
7
7
|
const V = { class: "block truncate -text-fs-1.5" }, S = { class: "ml-auto inline-flex items-center gap-0.5 px-1.5 py-0.5 rounded text-[10px] font-mono font-medium border border-border/80 bg-background text-muted-foreground ml-1" }, A = /* @__PURE__ */ x({
|
|
8
8
|
__name: "NavbarCommandPalette",
|
|
9
9
|
props: {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as te, ref as v, shallowRef as ne, watch as oe, computed as h, onMounted as le, onUnmounted as ae, openBlock as C, createElementBlock as L, normalizeClass as re, toDisplayString as I, createCommentVNode as U, createElementVNode as w, createVNode as q, unref as a, normalizeStyle as ie } from "vue";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import se from "./RichTextToolbar.
|
|
4
|
-
/* empty css
|
|
5
|
-
import de from "./RichTextLinkPopover.
|
|
6
|
-
/* empty css
|
|
3
|
+
import se from "./RichTextToolbar.vue2.js";
|
|
4
|
+
/* empty css */
|
|
5
|
+
import de from "./RichTextLinkPopover.vue2.js";
|
|
6
|
+
/* empty css */
|
|
7
7
|
import { useRichTextImageUpload as ue } from "./composables/useRichTextImageUpload.js";
|
|
8
8
|
import { useRichTextLinks as ce } from "./composables/useRichTextLinks.js";
|
|
9
9
|
const fe = ["aria-labelledby", "aria-describedby"], me = ["id", "for"], ve = { class: "rte-wrapper" }, ye = { class: "rte-body-wrap" }, ge = ["id", "contenteditable", "aria-label", "aria-readonly", "aria-disabled", "aria-invalid"], be = ["id"], Se = /* @__PURE__ */ te({
|
|
@@ -6,6 +6,7 @@ declare const _default: import('vue').DefineComponent<SidebarMenuProps, {}, {},
|
|
|
6
6
|
items: SidebarMenuItemSchema[];
|
|
7
7
|
allowMultiple: boolean;
|
|
8
8
|
iconSize: string;
|
|
9
|
+
showTooltip: boolean;
|
|
9
10
|
mobileBreakpoint: "sm" | "md" | "lg" | "xl" | "none";
|
|
10
11
|
menuOffset: [number, number];
|
|
11
12
|
indentSize: number;
|
|
@@ -19,7 +20,6 @@ declare const _default: import('vue').DefineComponent<SidebarMenuProps, {}, {},
|
|
|
19
20
|
compactItemPadding: string;
|
|
20
21
|
nestedMenuWidth: string;
|
|
21
22
|
nestedMenuMaxHeight: string;
|
|
22
|
-
showTooltip: boolean;
|
|
23
23
|
forceTreeView: boolean;
|
|
24
24
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLElement>;
|
|
25
25
|
export default _default;
|
|
@@ -10,12 +10,14 @@ type __VLS_Props = {
|
|
|
10
10
|
iconSize?: string;
|
|
11
11
|
iconBoxShape?: IconBoxShape;
|
|
12
12
|
iconBoxStyle?: IconBoxStyle;
|
|
13
|
+
sparklineHeight?: number;
|
|
13
14
|
};
|
|
14
15
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
15
16
|
variant: StatsVariant;
|
|
16
17
|
loading: boolean;
|
|
17
18
|
layout: StatsLayout;
|
|
18
19
|
attached: boolean;
|
|
20
|
+
sparklineHeight: number;
|
|
19
21
|
iconBoxShape: IconBoxShape;
|
|
20
22
|
iconBoxStyle: IconBoxStyle;
|
|
21
23
|
iconSize: string;
|
|
@@ -1,32 +1,43 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { $t as
|
|
3
|
-
import { formatCurrency as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
|
|
1
|
+
import { defineComponent as M, computed as y, openBlock as e, createElementBlock as n, normalizeStyle as I, normalizeClass as c, Fragment as w, createBlock as l, createCommentVNode as d, createElementVNode as o, toDisplayString as u, unref as h, withCtx as x, createVNode as D } from "vue";
|
|
2
|
+
import { $t as v } from "../../utils/i18n.js";
|
|
3
|
+
import { formatCurrency as N, formatNumber as $ } from "../../utils/functions.js";
|
|
4
|
+
import k from "./components/StatTrend.vue.js";
|
|
5
|
+
import z from "./components/StatIconBox.vue.js";
|
|
6
|
+
import S from "../Tooltip.vue.js";
|
|
7
|
+
import E from "../Chart/LineChart.vue.js";
|
|
8
|
+
import { configState as L } from "../../core/config.js";
|
|
9
|
+
import { resolveColor as q } from "../Chart/utils.js";
|
|
10
|
+
const A = {
|
|
11
|
+
key: 1,
|
|
12
|
+
class: "h-8 w-28 bg-gray-50 animate-pulse rounded-md mt-1"
|
|
13
|
+
}, G = {
|
|
14
|
+
key: 4,
|
|
15
|
+
class: "mt-auto pt-3 -mx-1"
|
|
16
|
+
}, J = {
|
|
17
|
+
key: 6,
|
|
18
|
+
class: "mt-auto pt-3 h-14 bg-gray-50/80 animate-pulse rounded-md"
|
|
19
|
+
}, K = { class: "flex items-center justify-between w-full mt-1" }, O = {
|
|
9
20
|
key: 0,
|
|
10
21
|
class: "h-8 w-24 bg-gray-50 animate-pulse rounded-md"
|
|
11
|
-
},
|
|
22
|
+
}, Q = {
|
|
12
23
|
key: 0,
|
|
13
24
|
class: "h-9 w-24 bg-gray-50 animate-pulse rounded-md"
|
|
14
|
-
},
|
|
25
|
+
}, R = {
|
|
15
26
|
key: 1,
|
|
16
27
|
class: "h-8 w-20 bg-gray-50 animate-pulse rounded-md mt-1"
|
|
17
|
-
},
|
|
18
|
-
key:
|
|
28
|
+
}, U = {
|
|
29
|
+
key: 4,
|
|
19
30
|
class: "flex-1 flex flex-col justify-center min-w-0"
|
|
20
|
-
},
|
|
31
|
+
}, W = {
|
|
21
32
|
key: 0,
|
|
22
33
|
class: "h-9 w-24 bg-gray-50 animate-pulse rounded-md mt-0.5"
|
|
23
|
-
},
|
|
34
|
+
}, X = {
|
|
24
35
|
key: 1,
|
|
25
36
|
class: "h-6 w-5 bg-gray-50 animate-pulse rounded-sm shrink-0"
|
|
26
|
-
},
|
|
37
|
+
}, Y = { class: "flex-1 flex flex-col justify-center min-w-0" }, Z = { class: "flex items-baseline gap-2 mt-1" }, p = {
|
|
27
38
|
key: 0,
|
|
28
39
|
class: "h-8 w-24 bg-gray-50 animate-pulse rounded-md"
|
|
29
|
-
},
|
|
40
|
+
}, ct = /* @__PURE__ */ M({
|
|
30
41
|
__name: "StatItem",
|
|
31
42
|
props: {
|
|
32
43
|
item: {},
|
|
@@ -38,24 +49,31 @@ const V = { class: "flex items-center justify-between w-full mt-1" }, M = {
|
|
|
38
49
|
valueSize: { default: "" },
|
|
39
50
|
iconSize: { default: "" },
|
|
40
51
|
iconBoxShape: { default: "rounded" },
|
|
41
|
-
iconBoxStyle: { default: "filled" }
|
|
52
|
+
iconBoxStyle: { default: "filled" },
|
|
53
|
+
sparklineHeight: { default: 56 }
|
|
42
54
|
},
|
|
43
55
|
setup(t) {
|
|
44
|
-
const
|
|
45
|
-
function
|
|
46
|
-
const
|
|
47
|
-
return
|
|
56
|
+
const a = t;
|
|
57
|
+
function f(i) {
|
|
58
|
+
const r = Number(i.value);
|
|
59
|
+
return i.isPrice ? N(r, {
|
|
60
|
+
numberFormat: i.numberFormat || "compact",
|
|
61
|
+
compactThreshold: i.compactThreshold
|
|
62
|
+
}) : i.numberFormat ? $(r, {
|
|
63
|
+
numberFormat: i.numberFormat,
|
|
64
|
+
compactThreshold: i.compactThreshold
|
|
65
|
+
}) : i.value;
|
|
48
66
|
}
|
|
49
|
-
const
|
|
50
|
-
const
|
|
51
|
-
if (!
|
|
52
|
-
const
|
|
53
|
-
return Math.abs(
|
|
54
|
-
}),
|
|
55
|
-
const
|
|
56
|
-
return
|
|
57
|
-
}),
|
|
58
|
-
const
|
|
67
|
+
const g = y(() => {
|
|
68
|
+
const i = Number(a.item.value) || 0;
|
|
69
|
+
if (!a.item.isPrice && !a.item.numberFormat || (a.item.numberFormat || (a.item.isPrice ? "compact" : "standard")) !== "compact") return !1;
|
|
70
|
+
const s = a.item.compactThreshold ?? L?.components?.price?.compactThreshold ?? 1e3;
|
|
71
|
+
return Math.abs(i) >= s;
|
|
72
|
+
}), b = y(() => {
|
|
73
|
+
const i = Number(a.item.value) || 0;
|
|
74
|
+
return a.item.isPrice ? N(i, { numberFormat: "standard" }) : a.item.numberFormat ? $(i, { numberFormat: "standard" }) : String(a.item.value);
|
|
75
|
+
}), j = y(() => {
|
|
76
|
+
const i = a.layout === "layout-8" ? "flex px-3.5 py-3" : a.layout === "layout-5" ? "flex px-1 py-1" : a.layout === "layout-9" ? "flex flex-col px-4 pt-4 pb-2 h-full min-h-[168px]" : "flex p-3", r = {
|
|
59
77
|
"layout-1": "flex-row items-center gap-3 text-left",
|
|
60
78
|
"layout-2": "flex-row items-center justify-between gap-3 text-left",
|
|
61
79
|
"layout-3": "flex-col items-start gap-1 px-5! pt-2! text-left",
|
|
@@ -63,15 +81,16 @@ const V = { class: "flex items-center justify-between w-full mt-1" }, M = {
|
|
|
63
81
|
"layout-5": "flex-col items-center justify-center text-center gap-0",
|
|
64
82
|
"layout-6": "flex-col items-start gap-1 text-left relative",
|
|
65
83
|
"layout-7": "flex-row items-center gap-3 text-left border-l-4",
|
|
66
|
-
"layout-8": "flex-row items-center gap-2.5 text-left"
|
|
67
|
-
|
|
84
|
+
"layout-8": "flex-row items-center gap-2.5 text-left",
|
|
85
|
+
"layout-9": "flex-col items-stretch gap-0 text-left"
|
|
86
|
+
}, s = r[a.layout] || r["layout-1"];
|
|
68
87
|
let m = "";
|
|
69
|
-
if (
|
|
70
|
-
|
|
88
|
+
if (a.attached)
|
|
89
|
+
a.variant === "transparent" ? m = "border-b border-r border-transparent bg-transparent hover:bg-muted/30 transition-colors" : a.variant === "outline" ? m = "border-b border-r border-border bg-transparent hover:bg-muted/30 transition-colors" : m = "border-b border-r border-border bg-card hover:bg-muted/30 transition-colors";
|
|
71
90
|
else {
|
|
72
|
-
switch (
|
|
91
|
+
switch (a.variant) {
|
|
73
92
|
case "solid": {
|
|
74
|
-
const
|
|
93
|
+
const P = a.item.color || "primary", F = {
|
|
75
94
|
primary: "bg-primary-light dark:ring-1 dark:ring-inset dark:ring-primary/20",
|
|
76
95
|
secondary: "bg-secondary dark:ring-1 dark:ring-inset dark:ring-secondary-foreground/20",
|
|
77
96
|
success: "bg-success-light dark:ring-1 dark:ring-inset dark:ring-success/20",
|
|
@@ -79,7 +98,7 @@ const V = { class: "flex items-center justify-between w-full mt-1" }, M = {
|
|
|
79
98
|
danger: "bg-danger-light dark:ring-1 dark:ring-inset dark:ring-danger/20",
|
|
80
99
|
info: "bg-info-light dark:ring-1 dark:ring-inset dark:ring-info/20"
|
|
81
100
|
};
|
|
82
|
-
m = `${
|
|
101
|
+
m = `${F[P] || F.primary}`;
|
|
83
102
|
break;
|
|
84
103
|
}
|
|
85
104
|
case "outline":
|
|
@@ -94,15 +113,15 @@ const V = { class: "flex items-center justify-between w-full mt-1" }, M = {
|
|
|
94
113
|
}
|
|
95
114
|
m += " rounded-lg";
|
|
96
115
|
}
|
|
97
|
-
return [
|
|
98
|
-
}),
|
|
99
|
-
if (
|
|
100
|
-
const
|
|
101
|
-
if (
|
|
102
|
-
return { backgroundColor: `${
|
|
116
|
+
return [i, s, m].join(" ");
|
|
117
|
+
}), T = y(() => {
|
|
118
|
+
if (a.variant === "solid" && !a.attached) {
|
|
119
|
+
const i = a.item.color;
|
|
120
|
+
if (i && !["primary", "secondary", "success", "warning", "danger", "info"].includes(i))
|
|
121
|
+
return { backgroundColor: `${i}15` };
|
|
103
122
|
}
|
|
104
|
-
if (
|
|
105
|
-
const
|
|
123
|
+
if (a.layout === "layout-7") {
|
|
124
|
+
const i = a.item.color, r = {
|
|
106
125
|
primary: "var(--color-primary)",
|
|
107
126
|
secondary: "var(--color-secondary)",
|
|
108
127
|
success: "var(--color-success)",
|
|
@@ -110,40 +129,121 @@ const V = { class: "flex items-center justify-between w-full mt-1" }, M = {
|
|
|
110
129
|
danger: "var(--color-danger)",
|
|
111
130
|
info: "var(--color-info)"
|
|
112
131
|
};
|
|
113
|
-
if (
|
|
114
|
-
return { borderLeftColor:
|
|
132
|
+
if (i)
|
|
133
|
+
return { borderLeftColor: r[i] || i };
|
|
115
134
|
}
|
|
116
135
|
return {};
|
|
117
|
-
})
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
136
|
+
}), B = y(() => {
|
|
137
|
+
const i = a.item.sparkline;
|
|
138
|
+
return i?.length ? typeof i[0] == "number" ? i.map((r, s) => ({
|
|
139
|
+
label: String(s + 1),
|
|
140
|
+
value: r
|
|
141
|
+
})) : i.map((r, s) => ({
|
|
142
|
+
label: r.label || String(s + 1),
|
|
143
|
+
value: Number(r.value) || 0,
|
|
144
|
+
color: r.color
|
|
145
|
+
})) : [];
|
|
146
|
+
}), H = y(() => {
|
|
147
|
+
if (a.item.sparklineColor) return a.item.sparklineColor;
|
|
148
|
+
const i = a.item.color || "primary";
|
|
149
|
+
try {
|
|
150
|
+
return q(i);
|
|
151
|
+
} catch {
|
|
152
|
+
return i;
|
|
153
|
+
}
|
|
154
|
+
}), C = y(
|
|
155
|
+
() => a.item.sparklineHeight ?? a.sparklineHeight ?? 56
|
|
156
|
+
), V = y(
|
|
157
|
+
() => a.item.sparklineFill === void 0 ? !0 : a.item.sparklineFill
|
|
158
|
+
);
|
|
159
|
+
return (i, r) => (e(), n("div", {
|
|
160
|
+
class: c(j.value),
|
|
161
|
+
style: I(T.value)
|
|
121
162
|
}, [
|
|
122
|
-
t.layout === "layout-
|
|
123
|
-
l(
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
163
|
+
t.layout === "layout-9" ? (e(), n(w, { key: 0 }, [
|
|
164
|
+
t.item.icon ? (e(), l(z, {
|
|
165
|
+
key: 0,
|
|
166
|
+
item: t.item,
|
|
167
|
+
variant: t.variant,
|
|
168
|
+
layout: t.layout,
|
|
169
|
+
attached: t.attached,
|
|
170
|
+
"icon-box-shape": t.iconBoxShape,
|
|
171
|
+
"icon-box-style": t.iconBoxStyle,
|
|
172
|
+
"icon-size": t.iconSize || "w-4 h-4",
|
|
173
|
+
class: "!p-2.5 self-start"
|
|
174
|
+
}, null, 8, ["item", "variant", "layout", "attached", "icon-box-shape", "icon-box-style", "icon-size"])) : d("", !0),
|
|
175
|
+
o("h3", {
|
|
176
|
+
class: c([
|
|
177
|
+
t.titleSize || "text-xs font-medium text-muted-foreground",
|
|
178
|
+
"truncate mt-3 w-full"
|
|
179
|
+
])
|
|
180
|
+
}, u(t.item.titleI18n ? h(v)(t.item.titleI18n) : t.item.title), 3),
|
|
181
|
+
t.loading ? (e(), n("div", A)) : (e(), l(S, {
|
|
182
|
+
key: 2,
|
|
183
|
+
content: b.value,
|
|
184
|
+
disabled: !g.value
|
|
185
|
+
}, {
|
|
186
|
+
default: x(() => [
|
|
187
|
+
o("p", {
|
|
188
|
+
class: c(t.valueSize || "text-2xl font-bold text-foreground truncate mt-1")
|
|
189
|
+
}, u(f(t.item)), 3)
|
|
190
|
+
]),
|
|
191
|
+
_: 1
|
|
192
|
+
}, 8, ["content", "disabled"])),
|
|
193
|
+
t.item.trend && !t.loading ? (e(), l(k, {
|
|
194
|
+
key: 3,
|
|
195
|
+
trend: t.item.trend,
|
|
196
|
+
layout: t.layout
|
|
197
|
+
}, null, 8, ["trend", "layout"])) : d("", !0),
|
|
198
|
+
!t.loading && B.value.length ? (e(), n("div", G, [
|
|
199
|
+
D(E, {
|
|
200
|
+
data: B.value,
|
|
201
|
+
height: C.value,
|
|
202
|
+
smooth: !0,
|
|
203
|
+
fill: V.value,
|
|
204
|
+
"fill-opacity": 0.22,
|
|
205
|
+
"show-dots": !1,
|
|
206
|
+
"show-grid": !1,
|
|
207
|
+
"show-x-axis": !1,
|
|
208
|
+
"show-y-axis": !1,
|
|
209
|
+
"show-x-labels": !1,
|
|
210
|
+
"show-y-labels": !1,
|
|
211
|
+
"show-tooltip": !1,
|
|
212
|
+
"show-legend": !1,
|
|
213
|
+
animate: !1,
|
|
214
|
+
colors: [H.value],
|
|
215
|
+
"line-width": 2
|
|
216
|
+
}, null, 8, ["data", "height", "fill", "colors"])
|
|
217
|
+
])) : t.loading ? (e(), n("div", J)) : (e(), n("div", {
|
|
218
|
+
key: 5,
|
|
219
|
+
class: "mt-auto pt-3",
|
|
220
|
+
style: I({ minHeight: `${C.value}px` })
|
|
221
|
+
}, null, 4))
|
|
222
|
+
], 64)) : t.layout === "layout-4" ? (e(), n(w, { key: 1 }, [
|
|
223
|
+
o("h3", {
|
|
224
|
+
class: c(t.titleSize || "text-sm font-medium text-muted-foreground truncate w-full")
|
|
225
|
+
}, u(t.item.titleI18n ? h(v)(t.item.titleI18n) : t.item.title), 3),
|
|
226
|
+
o("div", K, [
|
|
227
|
+
o("div", null, [
|
|
228
|
+
t.loading ? (e(), n("div", O)) : (e(), l(S, {
|
|
129
229
|
key: 1,
|
|
130
|
-
content:
|
|
131
|
-
disabled: !
|
|
230
|
+
content: b.value,
|
|
231
|
+
disabled: !g.value
|
|
132
232
|
}, {
|
|
133
|
-
default:
|
|
134
|
-
|
|
135
|
-
class:
|
|
136
|
-
},
|
|
233
|
+
default: x(() => [
|
|
234
|
+
o("p", {
|
|
235
|
+
class: c(t.valueSize || "text-2xl font-bold text-foreground truncate")
|
|
236
|
+
}, u(f(t.item)), 3)
|
|
137
237
|
]),
|
|
138
238
|
_: 1
|
|
139
239
|
}, 8, ["content", "disabled"])),
|
|
140
|
-
t.item.trend && !t.loading ? (e(),
|
|
240
|
+
t.item.trend && !t.loading ? (e(), l(k, {
|
|
141
241
|
key: 2,
|
|
142
242
|
trend: t.item.trend,
|
|
143
243
|
layout: t.layout
|
|
144
244
|
}, null, 8, ["trend", "layout"])) : d("", !0)
|
|
145
245
|
]),
|
|
146
|
-
t.item.icon ? (e(),
|
|
246
|
+
t.item.icon ? (e(), l(z, {
|
|
147
247
|
key: 0,
|
|
148
248
|
item: t.item,
|
|
149
249
|
variant: t.variant,
|
|
@@ -154,29 +254,29 @@ const V = { class: "flex items-center justify-between w-full mt-1" }, M = {
|
|
|
154
254
|
"icon-size": t.iconSize
|
|
155
255
|
}, null, 8, ["item", "variant", "layout", "attached", "icon-box-shape", "icon-box-style", "icon-size"])) : d("", !0)
|
|
156
256
|
])
|
|
157
|
-
], 64)) : t.layout === "layout-5" ? (e(),
|
|
158
|
-
t.loading ? (e(),
|
|
257
|
+
], 64)) : t.layout === "layout-5" ? (e(), n(w, { key: 2 }, [
|
|
258
|
+
t.loading ? (e(), n("div", Q)) : (e(), l(S, {
|
|
159
259
|
key: 1,
|
|
160
|
-
content:
|
|
161
|
-
disabled: !
|
|
260
|
+
content: b.value,
|
|
261
|
+
disabled: !g.value
|
|
162
262
|
}, {
|
|
163
|
-
default:
|
|
164
|
-
|
|
165
|
-
class:
|
|
166
|
-
},
|
|
263
|
+
default: x(() => [
|
|
264
|
+
o("p", {
|
|
265
|
+
class: c(t.valueSize || "text-3xl font-bold text-foreground")
|
|
266
|
+
}, u(f(t.item)), 3)
|
|
167
267
|
]),
|
|
168
268
|
_: 1
|
|
169
269
|
}, 8, ["content", "disabled"])),
|
|
170
|
-
|
|
171
|
-
class:
|
|
172
|
-
},
|
|
173
|
-
t.item.trend && !t.loading ? (e(),
|
|
270
|
+
o("h3", {
|
|
271
|
+
class: c(t.titleSize || "text-sm font-medium text-muted-foreground")
|
|
272
|
+
}, u(t.item.titleI18n ? h(v)(t.item.titleI18n) : t.item.title), 3),
|
|
273
|
+
t.item.trend && !t.loading ? (e(), l(k, {
|
|
174
274
|
key: 2,
|
|
175
275
|
trend: t.item.trend,
|
|
176
276
|
layout: t.layout
|
|
177
277
|
}, null, 8, ["trend", "layout"])) : d("", !0)
|
|
178
|
-
], 64)) : t.layout === "layout-6" ? (e(),
|
|
179
|
-
t.item.icon ? (e(),
|
|
278
|
+
], 64)) : t.layout === "layout-6" ? (e(), n(w, { key: 3 }, [
|
|
279
|
+
t.item.icon ? (e(), l(z, {
|
|
180
280
|
key: 0,
|
|
181
281
|
item: t.item,
|
|
182
282
|
variant: t.variant,
|
|
@@ -187,51 +287,51 @@ const V = { class: "flex items-center justify-between w-full mt-1" }, M = {
|
|
|
187
287
|
"icon-size": t.iconSize,
|
|
188
288
|
class: "absolute top-4 right-4"
|
|
189
289
|
}, null, 8, ["item", "variant", "layout", "attached", "icon-box-shape", "icon-box-style", "icon-size"])) : d("", !0),
|
|
190
|
-
|
|
191
|
-
class:
|
|
192
|
-
},
|
|
193
|
-
t.loading ? (e(),
|
|
290
|
+
o("h3", {
|
|
291
|
+
class: c(t.titleSize || "text-sm font-medium text-muted-foreground truncate pr-12")
|
|
292
|
+
}, u(t.item.titleI18n ? h(v)(t.item.titleI18n) : t.item.title), 3),
|
|
293
|
+
t.loading ? (e(), n("div", R)) : (e(), l(S, {
|
|
194
294
|
key: 2,
|
|
195
|
-
content:
|
|
196
|
-
disabled: !
|
|
295
|
+
content: b.value,
|
|
296
|
+
disabled: !g.value
|
|
197
297
|
}, {
|
|
198
|
-
default:
|
|
199
|
-
|
|
200
|
-
class:
|
|
201
|
-
},
|
|
298
|
+
default: x(() => [
|
|
299
|
+
o("p", {
|
|
300
|
+
class: c(t.valueSize || "text-2xl font-bold text-foreground truncate mt-1")
|
|
301
|
+
}, u(f(t.item)), 3)
|
|
202
302
|
]),
|
|
203
303
|
_: 1
|
|
204
304
|
}, 8, ["content", "disabled"])),
|
|
205
|
-
t.item.trend && !t.loading ? (e(),
|
|
305
|
+
t.item.trend && !t.loading ? (e(), l(k, {
|
|
206
306
|
key: 3,
|
|
207
307
|
trend: t.item.trend,
|
|
208
308
|
layout: t.layout
|
|
209
309
|
}, null, 8, ["trend", "layout"])) : d("", !0)
|
|
210
|
-
], 64)) : t.layout === "layout-7" ? (e(),
|
|
211
|
-
|
|
212
|
-
class:
|
|
310
|
+
], 64)) : t.layout === "layout-7" ? (e(), n("div", U, [
|
|
311
|
+
o("h3", {
|
|
312
|
+
class: c(
|
|
213
313
|
t.titleSize || "text-xs font-semibold uppercase tracking-widest text-muted-foreground truncate"
|
|
214
314
|
)
|
|
215
|
-
},
|
|
216
|
-
t.loading ? (e(),
|
|
315
|
+
}, u(t.item.titleI18n ? h(v)(t.item.titleI18n) : t.item.title), 3),
|
|
316
|
+
t.loading ? (e(), n("div", W)) : (e(), l(S, {
|
|
217
317
|
key: 1,
|
|
218
|
-
content:
|
|
219
|
-
disabled: !
|
|
318
|
+
content: b.value,
|
|
319
|
+
disabled: !g.value
|
|
220
320
|
}, {
|
|
221
|
-
default:
|
|
222
|
-
|
|
223
|
-
class:
|
|
224
|
-
},
|
|
321
|
+
default: x(() => [
|
|
322
|
+
o("p", {
|
|
323
|
+
class: c(t.valueSize || "text-3xl font-black text-foreground truncate mt-0.5")
|
|
324
|
+
}, u(f(t.item)), 3)
|
|
225
325
|
]),
|
|
226
326
|
_: 1
|
|
227
327
|
}, 8, ["content", "disabled"])),
|
|
228
|
-
t.item.trend && !t.loading ? (e(),
|
|
328
|
+
t.item.trend && !t.loading ? (e(), l(k, {
|
|
229
329
|
key: 2,
|
|
230
330
|
trend: t.item.trend,
|
|
231
331
|
layout: t.layout
|
|
232
332
|
}, null, 8, ["trend", "layout"])) : d("", !0)
|
|
233
|
-
])) : t.layout === "layout-8" ? (e(),
|
|
234
|
-
t.item.icon ? (e(),
|
|
333
|
+
])) : t.layout === "layout-8" ? (e(), n(w, { key: 5 }, [
|
|
334
|
+
t.item.icon ? (e(), l(z, {
|
|
235
335
|
key: 0,
|
|
236
336
|
item: t.item,
|
|
237
337
|
variant: t.variant,
|
|
@@ -241,28 +341,28 @@ const V = { class: "flex items-center justify-between w-full mt-1" }, M = {
|
|
|
241
341
|
"icon-box-style": t.iconBoxStyle,
|
|
242
342
|
"icon-size": t.iconSize
|
|
243
343
|
}, null, 8, ["item", "variant", "layout", "attached", "icon-box-shape", "icon-box-style", "icon-size"])) : d("", !0),
|
|
244
|
-
|
|
245
|
-
class:
|
|
246
|
-
},
|
|
247
|
-
t.loading ? (e(),
|
|
344
|
+
o("span", {
|
|
345
|
+
class: c([t.titleSize || "-text-fs-2 font-medium text-muted-foreground truncate", "flex-1 min-w-0"])
|
|
346
|
+
}, u(t.item.titleI18n ? h(v)(t.item.titleI18n) : t.item.title), 3),
|
|
347
|
+
t.loading ? (e(), n("div", X)) : (e(), l(S, {
|
|
248
348
|
key: 2,
|
|
249
|
-
content:
|
|
250
|
-
disabled: !
|
|
349
|
+
content: b.value,
|
|
350
|
+
disabled: !g.value
|
|
251
351
|
}, {
|
|
252
|
-
default:
|
|
253
|
-
|
|
254
|
-
class:
|
|
255
|
-
},
|
|
352
|
+
default: x(() => [
|
|
353
|
+
o("span", {
|
|
354
|
+
class: c(t.valueSize || "-text-fs-1 font-semibold text-foreground tabular-nums shrink-0")
|
|
355
|
+
}, u(f(t.item)), 3)
|
|
256
356
|
]),
|
|
257
357
|
_: 1
|
|
258
358
|
}, 8, ["content", "disabled"])),
|
|
259
|
-
t.item.trend && !t.loading ? (e(),
|
|
359
|
+
t.item.trend && !t.loading ? (e(), l(k, {
|
|
260
360
|
key: 3,
|
|
261
361
|
trend: t.item.trend,
|
|
262
362
|
layout: t.layout
|
|
263
363
|
}, null, 8, ["trend", "layout"])) : d("", !0)
|
|
264
|
-
], 64)) : (e(),
|
|
265
|
-
t.item.icon && t.layout !== "layout-2" ? (e(),
|
|
364
|
+
], 64)) : (e(), n(w, { key: 6 }, [
|
|
365
|
+
t.item.icon && t.layout !== "layout-2" ? (e(), l(z, {
|
|
266
366
|
key: 0,
|
|
267
367
|
item: t.item,
|
|
268
368
|
variant: t.variant,
|
|
@@ -272,31 +372,31 @@ const V = { class: "flex items-center justify-between w-full mt-1" }, M = {
|
|
|
272
372
|
"icon-box-style": t.iconBoxStyle,
|
|
273
373
|
"icon-size": t.iconSize
|
|
274
374
|
}, null, 8, ["item", "variant", "layout", "attached", "icon-box-shape", "icon-box-style", "icon-size"])) : d("", !0),
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
class:
|
|
278
|
-
},
|
|
279
|
-
|
|
280
|
-
t.loading ? (e(),
|
|
375
|
+
o("div", Y, [
|
|
376
|
+
o("h3", {
|
|
377
|
+
class: c(t.titleSize || "text-sm font-medium text-muted-foreground truncate")
|
|
378
|
+
}, u(t.item.titleI18n ? h(v)(t.item.titleI18n) : t.item.title), 3),
|
|
379
|
+
o("div", Z, [
|
|
380
|
+
t.loading ? (e(), n("div", p)) : (e(), l(S, {
|
|
281
381
|
key: 1,
|
|
282
|
-
content:
|
|
283
|
-
disabled: !
|
|
382
|
+
content: b.value,
|
|
383
|
+
disabled: !g.value
|
|
284
384
|
}, {
|
|
285
|
-
default:
|
|
286
|
-
|
|
287
|
-
class:
|
|
288
|
-
},
|
|
385
|
+
default: x(() => [
|
|
386
|
+
o("p", {
|
|
387
|
+
class: c(t.valueSize || "text-2xl font-bold text-foreground truncate")
|
|
388
|
+
}, u(f(t.item)), 3)
|
|
289
389
|
]),
|
|
290
390
|
_: 1
|
|
291
391
|
}, 8, ["content", "disabled"]))
|
|
292
392
|
]),
|
|
293
|
-
t.item.trend && !t.loading ? (e(),
|
|
393
|
+
t.item.trend && !t.loading ? (e(), l(k, {
|
|
294
394
|
key: 0,
|
|
295
395
|
trend: t.item.trend,
|
|
296
396
|
layout: t.layout
|
|
297
397
|
}, null, 8, ["trend", "layout"])) : d("", !0)
|
|
298
398
|
]),
|
|
299
|
-
t.item.icon && t.layout === "layout-2" ? (e(),
|
|
399
|
+
t.item.icon && t.layout === "layout-2" ? (e(), l(z, {
|
|
300
400
|
key: 1,
|
|
301
401
|
item: t.item,
|
|
302
402
|
variant: t.variant,
|
|
@@ -311,5 +411,5 @@ const V = { class: "flex items-center justify-between w-full mt-1" }, M = {
|
|
|
311
411
|
}
|
|
312
412
|
});
|
|
313
413
|
export {
|
|
314
|
-
|
|
414
|
+
ct as default
|
|
315
415
|
};
|
|
@@ -6,6 +6,7 @@ declare const _default: import('vue').DefineComponent<StatsProps, {}, {}, {}, {}
|
|
|
6
6
|
loading: boolean;
|
|
7
7
|
layout: import('./types').StatsLayout;
|
|
8
8
|
attached: boolean;
|
|
9
|
+
sparklineHeight: number;
|
|
9
10
|
iconBoxShape: import('./types').IconBoxShape;
|
|
10
11
|
iconBoxStyle: import('./types').IconBoxStyle;
|
|
11
12
|
iconSize: string;
|