@dskripchenko/ui 1.7.0 → 1.8.0
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/dist/index.mjs
CHANGED
|
@@ -6531,7 +6531,8 @@ var Lc = {
|
|
|
6531
6531
|
icon: {},
|
|
6532
6532
|
loading: { type: Boolean },
|
|
6533
6533
|
footer: {},
|
|
6534
|
-
locale: { default: void 0 }
|
|
6534
|
+
locale: { default: void 0 },
|
|
6535
|
+
trendPlacement: { default: "inline" }
|
|
6535
6536
|
},
|
|
6536
6537
|
setup(t) {
|
|
6537
6538
|
let n = t, r = $(), i = a(() => n.locale ?? r.value.code ?? "ru-RU"), d = a(() => n.value === void 0 ? "" : n.formatter ? n.formatter(n.value) : typeof n.value == "number" ? n.value.toLocaleString(i.value, {
|
|
@@ -6541,6 +6542,7 @@ var Lc = {
|
|
|
6541
6542
|
return (n, r) => (T(), c("div", { class: y(["uid-stat", [
|
|
6542
6543
|
`uid-stat--${t.tone}`,
|
|
6543
6544
|
t.variant === "ghost" && "uid-stat--ghost",
|
|
6545
|
+
t.trendPlacement === "below" && "uid-stat--trend-below",
|
|
6544
6546
|
t.loading && "uid-stat--loading"
|
|
6545
6547
|
]]) }, [t.icon || n.$slots.icon ? (T(), c("span", ul, [A(n.$slots, "icon", {}, () => [t.icon ? (T(), o(e, {
|
|
6546
6548
|
key: 0,
|
|
@@ -8568,7 +8570,7 @@ var Lc = {
|
|
|
8568
8570
|
"--uid-gauge-value-size": `${Math.max(14, n.size * .13)}px`
|
|
8569
8571
|
}));
|
|
8570
8572
|
return (n, r) => (T(), c("div", {
|
|
8571
|
-
class: y(["uid-gauge", e.tone !== "primary" && `uid-gauge--${e.tone}
|
|
8573
|
+
class: y(["uid-gauge", [e.tone !== "primary" && `uid-gauge--${e.tone}`, e.ranges && e.ranges.length > 0 && "uid-gauge--ranged"]]),
|
|
8572
8574
|
style: b(C.value),
|
|
8573
8575
|
role: "meter",
|
|
8574
8576
|
"aria-valuemin": e.min,
|