vlite3 1.4.25 → 1.4.27

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 (32) hide show
  1. package/components/CategoryManager/CategoryManager.vue2.js +3 -2
  2. package/components/Chart/BarChart.vue.d.ts +1 -1
  3. package/components/Chart/ChartLegend.vue.d.ts +22 -0
  4. package/components/Chart/ChartLegend.vue.js +91 -0
  5. package/components/Chart/ChartLegend.vue2.js +4 -0
  6. package/components/Chart/GanttChart.vue.d.ts +2 -2
  7. package/components/Chart/LineChart.vue.d.ts +5 -2
  8. package/components/Chart/LineChart.vue.js +1 -1
  9. package/components/Chart/LineChart.vue2.js +40 -39
  10. package/components/Chart/PieChart.vue.d.ts +11 -4
  11. package/components/Chart/PieChart.vue.js +118 -114
  12. package/components/Chart/SegmentBarChart.vue.d.ts +1 -1
  13. package/components/Chart/TimelineChart.vue.d.ts +2 -2
  14. package/components/Chart/index.d.ts +2 -1
  15. package/components/Chart/types.d.ts +25 -0
  16. package/components/ColorPicker/ColorPicker.vue.d.ts +20 -1
  17. package/components/ColorPicker/ColorPicker.vue.js +72 -59
  18. package/components/DateRangePicker.vue.js +5 -239
  19. package/components/DateRangePicker.vue2.js +239 -2
  20. package/components/Form/FormField.vue.js +10 -10
  21. package/components/Heatmap/Heatmap.vue.d.ts +1 -1
  22. package/components/Screen/ScreenFilter.vue.js +3 -2
  23. package/components/SidebarMenu/SidebarMenu.vue.d.ts +1 -1
  24. package/components/Stats/StatItem.vue.d.ts +2 -0
  25. package/components/Stats/StatItem.vue.js +234 -134
  26. package/components/Stats/Stats.vue.d.ts +1 -0
  27. package/components/Stats/Stats.vue.js +45 -41
  28. package/components/Stats/components/StatTrend.vue.js +35 -32
  29. package/components/Stats/types.d.ts +32 -2
  30. package/index.js +138 -136
  31. package/package.json +2 -2
  32. package/style.css +1 -1
@@ -1,32 +1,43 @@
1
- import { defineComponent as T, computed as w, openBlock as e, createElementBlock as o, normalizeStyle as $, normalizeClass as r, Fragment as k, createElementVNode as l, toDisplayString as c, unref as b, createBlock as i, withCtx as g, createCommentVNode as d } from "vue";
2
- import { $t as x } from "../../utils/i18n.js";
3
- import { formatCurrency as C, formatNumber as I } from "../../utils/functions.js";
4
- import h from "./components/StatTrend.vue.js";
5
- import S from "./components/StatIconBox.vue.js";
6
- import v from "../Tooltip.vue.js";
7
- import { configState as P } from "../../core/config.js";
8
- const V = { class: "flex items-center justify-between w-full mt-1" }, M = {
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
- }, E = {
22
+ }, Q = {
12
23
  key: 0,
13
24
  class: "h-9 w-24 bg-gray-50 animate-pulse rounded-md"
14
- }, D = {
25
+ }, R = {
15
26
  key: 1,
16
27
  class: "h-8 w-20 bg-gray-50 animate-pulse rounded-md mt-1"
17
- }, L = {
18
- key: 3,
28
+ }, U = {
29
+ key: 4,
19
30
  class: "flex-1 flex flex-col justify-center min-w-0"
20
- }, q = {
31
+ }, W = {
21
32
  key: 0,
22
33
  class: "h-9 w-24 bg-gray-50 animate-pulse rounded-md mt-0.5"
23
- }, A = {
34
+ }, X = {
24
35
  key: 1,
25
36
  class: "h-6 w-5 bg-gray-50 animate-pulse rounded-sm shrink-0"
26
- }, G = { class: "flex-1 flex flex-col justify-center min-w-0" }, H = { class: "flex items-baseline gap-2 mt-1" }, J = {
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
- }, Y = /* @__PURE__ */ T({
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 n = t;
45
- function s(a) {
46
- const u = Number(a.value);
47
- return a.isPrice ? C(u, { numberFormat: a.numberFormat || "compact", compactThreshold: a.compactThreshold }) : a.numberFormat ? I(u, { numberFormat: a.numberFormat, compactThreshold: a.compactThreshold }) : a.value;
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 y = w(() => {
50
- const a = Number(n.item.value) || 0;
51
- if (!n.item.isPrice && !n.item.numberFormat || (n.item.numberFormat || (n.item.isPrice ? "compact" : "standard")) !== "compact") return !1;
52
- const z = n.item.compactThreshold ?? P?.components?.price?.compactThreshold ?? 1e3;
53
- return Math.abs(a) >= z;
54
- }), f = w(() => {
55
- const a = Number(n.item.value) || 0;
56
- return n.item.isPrice ? C(a, { numberFormat: "standard" }) : n.item.numberFormat ? I(a, { numberFormat: "standard" }) : String(n.item.value);
57
- }), F = w(() => {
58
- const a = n.layout === "layout-8" ? "flex px-3.5 py-3" : n.layout === "layout-5" ? "flex px-1 py-1" : "flex p-3", u = {
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
- }, z = u[n.layout] || u["layout-1"];
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 (n.attached)
70
- n.variant === "transparent" ? m = "border-b border-r border-transparent bg-transparent hover:bg-muted/30 transition-colors" : n.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";
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 (n.variant) {
91
+ switch (a.variant) {
73
92
  case "solid": {
74
- const N = n.item.color || "primary", B = {
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 = `${B[N] || B.primary}`;
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 [a, z, m].join(" ");
98
- }), j = w(() => {
99
- if (n.variant === "solid" && !n.attached) {
100
- const a = n.item.color;
101
- if (a && !["primary", "secondary", "success", "warning", "danger", "info"].includes(a))
102
- return { backgroundColor: `${a}15` };
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 (n.layout === "layout-7") {
105
- const a = n.item.color, u = {
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 (a)
114
- return { borderLeftColor: u[a] || a };
132
+ if (i)
133
+ return { borderLeftColor: r[i] || i };
115
134
  }
116
135
  return {};
117
- });
118
- return (a, u) => (e(), o("div", {
119
- class: r(F.value),
120
- style: $(j.value)
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-4" ? (e(), o(k, { key: 0 }, [
123
- l("h3", {
124
- class: r(t.titleSize || "text-sm font-medium text-muted-foreground truncate w-full")
125
- }, c(t.item.titleI18n ? b(x)(t.item.titleI18n) : t.item.title), 3),
126
- l("div", V, [
127
- l("div", null, [
128
- t.loading ? (e(), o("div", M)) : (e(), i(v, {
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: f.value,
131
- disabled: !y.value
230
+ content: b.value,
231
+ disabled: !g.value
132
232
  }, {
133
- default: g(() => [
134
- l("p", {
135
- class: r(t.valueSize || "text-2xl font-bold text-foreground truncate")
136
- }, c(s(t.item)), 3)
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(), i(h, {
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(), i(S, {
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(), o(k, { key: 1 }, [
158
- t.loading ? (e(), o("div", E)) : (e(), i(v, {
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: f.value,
161
- disabled: !y.value
260
+ content: b.value,
261
+ disabled: !g.value
162
262
  }, {
163
- default: g(() => [
164
- l("p", {
165
- class: r(t.valueSize || "text-3xl font-bold text-foreground")
166
- }, c(s(t.item)), 3)
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
- l("h3", {
171
- class: r(t.titleSize || "text-sm font-medium text-muted-foreground")
172
- }, c(t.item.titleI18n ? b(x)(t.item.titleI18n) : t.item.title), 3),
173
- t.item.trend && !t.loading ? (e(), i(h, {
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(), o(k, { key: 2 }, [
179
- t.item.icon ? (e(), i(S, {
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
- l("h3", {
191
- class: r(t.titleSize || "text-sm font-medium text-muted-foreground truncate pr-12")
192
- }, c(t.item.titleI18n ? b(x)(t.item.titleI18n) : t.item.title), 3),
193
- t.loading ? (e(), o("div", D)) : (e(), i(v, {
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: f.value,
196
- disabled: !y.value
295
+ content: b.value,
296
+ disabled: !g.value
197
297
  }, {
198
- default: g(() => [
199
- l("p", {
200
- class: r(t.valueSize || "text-2xl font-bold text-foreground truncate mt-1")
201
- }, c(s(t.item)), 3)
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(), i(h, {
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(), o("div", L, [
211
- l("h3", {
212
- class: r(
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
- }, c(t.item.titleI18n ? b(x)(t.item.titleI18n) : t.item.title), 3),
216
- t.loading ? (e(), o("div", q)) : (e(), i(v, {
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: f.value,
219
- disabled: !y.value
318
+ content: b.value,
319
+ disabled: !g.value
220
320
  }, {
221
- default: g(() => [
222
- l("p", {
223
- class: r(t.valueSize || "text-3xl font-black text-foreground truncate mt-0.5")
224
- }, c(s(t.item)), 3)
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(), i(h, {
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(), o(k, { key: 4 }, [
234
- t.item.icon ? (e(), i(S, {
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
- l("span", {
245
- class: r([t.titleSize || "-text-fs-2 font-medium text-muted-foreground truncate", "flex-1 min-w-0"])
246
- }, c(t.item.titleI18n ? b(x)(t.item.titleI18n) : t.item.title), 3),
247
- t.loading ? (e(), o("div", A)) : (e(), i(v, {
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: f.value,
250
- disabled: !y.value
349
+ content: b.value,
350
+ disabled: !g.value
251
351
  }, {
252
- default: g(() => [
253
- l("span", {
254
- class: r(t.valueSize || "-text-fs-1 font-semibold text-foreground tabular-nums shrink-0")
255
- }, c(s(t.item)), 3)
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(), i(h, {
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(), o(k, { key: 5 }, [
265
- t.item.icon && t.layout !== "layout-2" ? (e(), i(S, {
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
- l("div", G, [
276
- l("h3", {
277
- class: r(t.titleSize || "text-sm font-medium text-muted-foreground truncate")
278
- }, c(t.item.titleI18n ? b(x)(t.item.titleI18n) : t.item.title), 3),
279
- l("div", H, [
280
- t.loading ? (e(), o("div", J)) : (e(), i(v, {
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: f.value,
283
- disabled: !y.value
382
+ content: b.value,
383
+ disabled: !g.value
284
384
  }, {
285
- default: g(() => [
286
- l("p", {
287
- class: r(t.valueSize || "text-2xl font-bold text-foreground truncate")
288
- }, c(s(t.item)), 3)
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(), i(h, {
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(), i(S, {
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
- Y as default
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;