vue-data-ui 3.22.6 → 3.22.8
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/{Arrow-Ds4xmpiQ.js → Arrow-DdymhUfY.js} +1 -1
- package/dist/{BaseDraggableDialog-VbypEaAa.js → BaseDraggableDialog-DcfGlH8A.js} +2 -2
- package/dist/{BaseIcon-DcUvOfxf.js → BaseIcon-C2qlyHc7.js} +1 -1
- package/dist/{BaseLegendToggle-DFwIY5bE.js → BaseLegendToggle-DtQ8vyfr.js} +1 -1
- package/dist/{BaseZoomControls-DwolSINF.js → BaseZoomControls-C6zonwhr.js} +2 -2
- package/dist/{ColorPicker-UVDPcrjE.js → ColorPicker-CK2-h611.js} +2 -2
- package/dist/{DataTable-CXfvIulC.js → DataTable-D9NvewTT.js} +2 -2
- package/dist/{Legend-D-635Kag.js → Legend-ROt6ugzW.js} +2 -2
- package/dist/{NonSvgPenAndPaper-pR_1qp3s.js → NonSvgPenAndPaper-BHHNsVVP.js} +29 -29
- package/dist/{PackageVersion-Da7hl-34.js → PackageVersion-DW7zwRcm.js} +1 -1
- package/dist/{PenAndPaper-Bk2-E7V4.js → PenAndPaper-pcgwlYr2.js} +18 -18
- package/dist/{Shape-BSetplwm.js → Shape-UpH0a4Ur.js} +3 -3
- package/dist/{Slicer-ClIGOuoX.js → Slicer-BZ5VnOOS.js} +19 -19
- package/dist/{SlicerPreview-D1n9AW39.js → SlicerPreview-BQFeCw0m.js} +351 -351
- package/dist/{SparkTooltip-CjDAyolg.js → SparkTooltip-BTLN-Kex.js} +6 -6
- package/dist/{Title-C-p0ilWB.js → Title-CcNiYzEo.js} +1 -1
- package/dist/{Tooltip-YabpoXo1.js → Tooltip-CxOrWlFy.js} +1 -1
- package/dist/{UserOptions-BO4VFL8O.js → UserOptions-16uF1ayB.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{dom-to-png-CVJfsfwL.js → dom-to-png-BbwhsRIr.js} +1 -1
- package/dist/exposedLib-VXFp3Z2c.js +19 -0
- package/dist/{geoProjections-Czak6Jn1.js → geoProjections-BbN7z57k.js} +172 -15
- package/dist/{img-B_y5qDdm.js → img-DnP3eXuv.js} +1 -1
- package/dist/{labelUtils-CyVwqXSh.js → labelUtils-DBEh078l.js} +1 -1
- package/dist/{lib-DRBJCmHW.js → lib-JqW18y5I.js} +49 -30
- package/dist/{package-DyQ_PQis.js → package-gp9pYCfN.js} +1 -1
- package/dist/{pdf-CG02qhAH.js → pdf-hj3gzrE7.js} +1 -1
- package/dist/{render-common-CUAlQvAQ.js → render-common-CLn1VXJ9.js} +20 -20
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/utils.d.ts +18 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-DPMOys9n.js → useAutoSizeLabelsInsideViewbox-BGnDfZdg.js} +1 -1
- package/dist/{useNestedProp-BEo2N1Db.js → useNestedProp-DIuuzG1r.js} +1 -1
- package/dist/{usePrinter-CRp5IW3v.js → usePrinter-CqqHmnBI.js} +2 -2
- package/dist/utils.js +23 -23
- package/dist/{vue-data-ui-Bpu4kxlm.js → vue-data-ui-AZZ9Cq-4.js} +68 -68
- package/dist/vue-data-ui.js +77 -77
- package/dist/{vue-ui-3d-bar-BAH0jNtT.js → vue-ui-3d-bar-B3HxJmDI.js} +124 -124
- package/dist/{vue-ui-accordion-CfMrbDoq.js → vue-ui-accordion-YyosvEPo.js} +3 -3
- package/dist/vue-ui-age-pyramid-DTAOc7fn.js +1238 -0
- package/dist/{vue-ui-annotator-CG6rhFpy.js → vue-ui-annotator-CfJXeAOE.js} +6 -6
- package/dist/vue-ui-bullet-CCLnrOLm.js +710 -0
- package/dist/vue-ui-bump-Rq7efdoe.js +1249 -0
- package/dist/vue-ui-candlestick-D-Z9pEaA.js +1829 -0
- package/dist/vue-ui-carousel-table-Lx5Zk4dG.js +455 -0
- package/dist/{vue-ui-chestnut-Cx8T3NEl.js → vue-ui-chestnut-RfWMGUD-.js} +114 -114
- package/dist/{vue-ui-chord-B-sauvLo.js → vue-ui-chord-Db1O_diJ.js} +57 -57
- package/dist/vue-ui-circle-pack-B4Ro7UuI.js +1608 -0
- package/dist/{vue-ui-cursor-DVsEm_4l.js → vue-ui-cursor-DLP7wxsw.js} +61 -61
- package/dist/{vue-ui-dag-Cfi0b9qm.js → vue-ui-dag-DL3zq0F2.js} +37 -37
- package/dist/{vue-ui-dashboard-F_NZ1xoQ.js → vue-ui-dashboard-C2ozZ-LI.js} +69 -69
- package/dist/{vue-ui-digits-BfP1kbj3.js → vue-ui-digits-ThFVNO3l.js} +3 -3
- package/dist/{vue-ui-donut-DlVRnVr_.js → vue-ui-donut-BuTd6dt4.js} +224 -224
- package/dist/{vue-ui-donut-BwAyvV3-.js → vue-ui-donut-C3Rt6j-I.js} +458 -458
- package/dist/vue-ui-donut-evolution-DY46UPF_.js +1510 -0
- package/dist/vue-ui-dumbbell-wK7vUB0x.js +1530 -0
- package/dist/{vue-ui-flow-D_7Idmmw.js → vue-ui-flow-BTUNfWb7.js} +122 -122
- package/dist/vue-ui-funnel-BhoHzyHa.js +777 -0
- package/dist/{vue-ui-galaxy-Bjxbg5_B.js → vue-ui-galaxy-DJ2uNYcN.js} +263 -263
- package/dist/{vue-ui-gauge-Dt0H7DgC.js → vue-ui-gauge-Cf4NqvrO.js} +226 -226
- package/dist/{vue-ui-geo-89DEQb5l.js → vue-ui-geo-ovHu_Sc9.js} +21 -21
- package/dist/{vue-ui-gizmo-CQyLK18v.js → vue-ui-gizmo-DDxEj-qe.js} +7 -7
- package/dist/{vue-ui-heatmap-o6MvoxBK.js → vue-ui-heatmap-Npqnvb1r.js} +282 -282
- package/dist/vue-ui-history-plot-C3Kjy2tc.js +1715 -0
- package/dist/vue-ui-horizontal-bar-D1rCsgqt.js +1683 -0
- package/dist/{vue-ui-kpi-4C-j92D-.js → vue-ui-kpi-BrlfYO-j.js} +4 -4
- package/dist/{vue-ui-mini-loader-Bj4Wv-i8.js → vue-ui-mini-loader-D5we7V_W.js} +2 -2
- package/dist/vue-ui-molecule-CExCqZ08.js +925 -0
- package/dist/{vue-ui-mood-radar-B5W35Fvp.js → vue-ui-mood-radar-DlVh6hwx.js} +27 -27
- package/dist/vue-ui-nested-donuts-3TRV8pN-.js +1487 -0
- package/dist/vue-ui-onion-DwKK9DXn.js +1200 -0
- package/dist/{vue-ui-parallel-coordinate-plot-DBpHCFxa.js → vue-ui-parallel-coordinate-plot-DSp_cwU-.js} +57 -57
- package/dist/vue-ui-quadrant-ByVg-NBs.js +1978 -0
- package/dist/{vue-ui-quick-chart-so_8PzvS.js → vue-ui-quick-chart-WMzSJxGZ.js} +188 -188
- package/dist/{vue-ui-radar-5fQ5AAWD.js → vue-ui-radar-DE-me6OC.js} +64 -64
- package/dist/vue-ui-rating-CzD3EQ3G.js +343 -0
- package/dist/vue-ui-relation-circle-L7-dTqet.js +924 -0
- package/dist/vue-ui-ridgeline-Cp3YP0xe.js +1622 -0
- package/dist/vue-ui-rings-WzWiEo9W.js +1246 -0
- package/dist/vue-ui-scatter-DwrAydha.js +2413 -0
- package/dist/{vue-ui-skeleton-BkxB6Dik.js → vue-ui-skeleton-CuFm4PtB.js} +58 -58
- package/dist/{vue-ui-smiley-C4g0iaF7.js → vue-ui-smiley-D4NnZ1mg.js} +17 -17
- package/dist/{vue-ui-spark-trend-0FELlq4x.js → vue-ui-spark-trend-C38ysZ-c.js} +21 -21
- package/dist/{vue-ui-sparkbar-D-i_VLO6.js → vue-ui-sparkbar-B03ndcUe.js} +80 -80
- package/dist/{vue-ui-sparkgauge-CWw6w_ng.js → vue-ui-sparkgauge-DgPc4vPT.js} +7 -7
- package/dist/{vue-ui-sparkhistogram-DuGpkfma.js → vue-ui-sparkhistogram-D02ff7ZI.js} +115 -115
- package/dist/{vue-ui-sparkline-Bi06lHQd.js → vue-ui-sparkline-DlTfNQj8.js} +464 -464
- package/dist/vue-ui-sparkstackbar-DrmiWFlw.js +662 -0
- package/dist/vue-ui-stackbar-BVdApDnY.js +2332 -0
- package/dist/vue-ui-stackline-QzQQ7lTy.js +2419 -0
- package/dist/vue-ui-strip-plot-C-TFNvgz.js +1729 -0
- package/dist/{vue-ui-table-DBlZswRi.js → vue-ui-table-Q3brrivC.js} +68 -68
- package/dist/{vue-ui-table-heatmap-3xYIDKcP.js → vue-ui-table-heatmap-D0pZbBOH.js} +14 -14
- package/dist/{vue-ui-table-sparkline-BH5PzEnJ.js → vue-ui-table-sparkline-Q6BHPKUn.js} +199 -199
- package/dist/{vue-ui-thermometer-BxMzAqoT.js → vue-ui-thermometer-Bg0RR6m4.js} +26 -26
- package/dist/{vue-ui-timer-ONSitYDm.js → vue-ui-timer-BdzKpoRj.js} +29 -29
- package/dist/{vue-ui-tiremarks-DWXM-9nR.js → vue-ui-tiremarks-DWb69ofh.js} +17 -17
- package/dist/{vue-ui-treemap-B03c4RIy.js → vue-ui-treemap-uUz07Prw.js} +401 -401
- package/dist/vue-ui-waffle-Pi9e7Ae7.js +1362 -0
- package/dist/{vue-ui-wheel-DRP7X8S2.js → vue-ui-wheel-DTfvWYA7.js} +137 -137
- package/dist/{vue-ui-word-cloud-AKpMO97a.js → vue-ui-word-cloud-DqfljAqH.js} +40 -40
- package/dist/vue-ui-world-BtBrH92Z.js +3016 -0
- package/dist/{vue-ui-xy-Bmd11BxR.js → vue-ui-xy-Bvgy2do1.js} +1598 -1596
- package/dist/{vue-ui-xy-DJ8YKPgs.js → vue-ui-xy-D5KsuNR2.js} +259 -259
- package/dist/{vue-ui-xy-canvas-DO_PDGKf.js → vue-ui-xy-canvas-BfgeE3TW.js} +440 -437
- package/package.json +1 -1
- package/dist/exposedLib-CjwriUaG.js +0 -19
- package/dist/vue-ui-age-pyramid-BF5ZuuyI.js +0 -1238
- package/dist/vue-ui-bullet-C_oBS1cr.js +0 -710
- package/dist/vue-ui-bump-BZB1Na8h.js +0 -1249
- package/dist/vue-ui-candlestick-8d_1xO8X.js +0 -1826
- package/dist/vue-ui-carousel-table-BfZNcwmY.js +0 -455
- package/dist/vue-ui-circle-pack-BLh8HnGK.js +0 -1608
- package/dist/vue-ui-donut-evolution-D1k4u6cA.js +0 -1510
- package/dist/vue-ui-dumbbell-DgmvPpK2.js +0 -1530
- package/dist/vue-ui-funnel-BYCFV5TD.js +0 -777
- package/dist/vue-ui-history-plot-B7zuCfdg.js +0 -1715
- package/dist/vue-ui-horizontal-bar-CwB4sc6M.js +0 -1683
- package/dist/vue-ui-molecule-BDrRmwmm.js +0 -925
- package/dist/vue-ui-nested-donuts-wfesrzle.js +0 -1487
- package/dist/vue-ui-onion-B8-psLbF.js +0 -1200
- package/dist/vue-ui-quadrant-BzyGOJR2.js +0 -1978
- package/dist/vue-ui-rating-CKWHDKOT.js +0 -343
- package/dist/vue-ui-relation-circle-Bd_ONHCz.js +0 -924
- package/dist/vue-ui-ridgeline-DVbYznRz.js +0 -1622
- package/dist/vue-ui-rings-c-yLWFHr.js +0 -1246
- package/dist/vue-ui-scatter-QhmE7n1H.js +0 -2413
- package/dist/vue-ui-sparkstackbar-DrKgBUmt.js +0 -662
- package/dist/vue-ui-stackbar-DDvuDGQ_.js +0 -2329
- package/dist/vue-ui-stackline-C0NHBUaE.js +0 -2416
- package/dist/vue-ui-strip-plot-_6LL45i9.js +0 -1729
- package/dist/vue-ui-waffle-afa8HSxz.js +0 -1362
- package/dist/vue-ui-world-CqS-HhZl.js +0 -14264
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
2
|
+
import { $ as t, G as n, J as r, Kt as i, M as a, Rt as o, i as s, kt as c, m as ee, t as te, v as l, wt as ne } from "./lib-JqW18y5I.js";
|
|
3
3
|
import { t as re } from "./useConfig-DYM3f6EI.js";
|
|
4
4
|
import { n as ie, t as ae } from "./BaseScanner-DZvpgOjM.js";
|
|
5
|
-
import { t as u } from "./useNestedProp-
|
|
5
|
+
import { t as u } from "./useNestedProp-DIuuzG1r.js";
|
|
6
6
|
import { t as oe } from "./useThemeCheck-C43Tcqmk.js";
|
|
7
7
|
import { t as se } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
8
8
|
import { c as ce } from "./canvas-lib-BOP_HS11.js";
|
|
@@ -63,7 +63,7 @@ var x = /* @__PURE__ */ e({ default: () => S }), be = ["id", "aria-describedby"]
|
|
|
63
63
|
}
|
|
64
64
|
},
|
|
65
65
|
setup(e) {
|
|
66
|
-
let se = he(() => import("./PackageVersion-
|
|
66
|
+
let se = he(() => import("./PackageVersion-DW7zwRcm.js").then((e) => e.t)), { vue_ui_spark_trend: x } = re(), { isThemeValid: S, warnInvalidTheme: Re } = oe(), C = ue(), w = e, T = g(null), E = g(null), ze = g(null), D = g(null), O = g(null), k = g(!1), A = g(null), j = g(n()), M = g(I()), Be = d(() => i({
|
|
67
67
|
defaultConfig: { style: {
|
|
68
68
|
animation: { show: !1 },
|
|
69
69
|
backgroundColor: "#99999930",
|
|
@@ -96,7 +96,7 @@ var x = /* @__PURE__ */ e({ default: () => S }), be = ["id", "aria-describedby"]
|
|
|
96
96
|
144,
|
|
97
97
|
233
|
|
98
98
|
],
|
|
99
|
-
skeletonConfig:
|
|
99
|
+
skeletonConfig: i({
|
|
100
100
|
defaultConfig: M.value,
|
|
101
101
|
userConfig: Be.value
|
|
102
102
|
})
|
|
@@ -117,7 +117,7 @@ var x = /* @__PURE__ */ e({ default: () => S }), be = ["id", "aria-describedby"]
|
|
|
117
117
|
defaultConfig: n
|
|
118
118
|
});
|
|
119
119
|
}
|
|
120
|
-
let L = d(() =>
|
|
120
|
+
let L = d(() => ne({
|
|
121
121
|
data: P.value,
|
|
122
122
|
threshold: M.value.downsample.threshold
|
|
123
123
|
}));
|
|
@@ -127,7 +127,7 @@ var x = /* @__PURE__ */ e({ default: () => S }), be = ["id", "aria-describedby"]
|
|
|
127
127
|
function R(e) {
|
|
128
128
|
return e.map((e) => l(e));
|
|
129
129
|
}
|
|
130
|
-
let z = g(
|
|
130
|
+
let z = g(ne({
|
|
131
131
|
data: P.value,
|
|
132
132
|
threshold: M.value.downsample.threshold
|
|
133
133
|
}).map((e) => M.value.style.animation.show && !C.value || [
|
|
@@ -148,7 +148,7 @@ var x = /* @__PURE__ */ e({ default: () => S }), be = ["id", "aria-describedby"]
|
|
|
148
148
|
deep: !0,
|
|
149
149
|
immediate: !0
|
|
150
150
|
}), b(() => JSON.stringify(w.dataset), () => {
|
|
151
|
-
A.value &&= (cancelAnimationFrame(A.value), null), F.value =
|
|
151
|
+
A.value &&= (cancelAnimationFrame(A.value), null), F.value = c(w.dataset);
|
|
152
152
|
let e = L.value;
|
|
153
153
|
z.value = M.value.style.animation.show && !C.value ? Array(e.length).fill(null) : e.map((e) => Number.isFinite(e) ? e : null), B(), ge(() => $(".vue-ui-sparktrend-progress-label", 6));
|
|
154
154
|
}, {
|
|
@@ -173,11 +173,11 @@ var x = /* @__PURE__ */ e({ default: () => S }), be = ["id", "aria-describedby"]
|
|
|
173
173
|
});
|
|
174
174
|
let Ve = d(() => M.value.debug);
|
|
175
175
|
function V() {
|
|
176
|
-
if (
|
|
176
|
+
if (c(w.dataset) && (t({
|
|
177
177
|
componentName: "VueUiSparkTrend",
|
|
178
178
|
type: "dataset",
|
|
179
179
|
debug: Ve.value
|
|
180
|
-
}), F.value = !0),
|
|
180
|
+
}), F.value = !0), c(w.dataset) || (F.value = !1), M.value.responsive) {
|
|
181
181
|
let e = ce(() => {
|
|
182
182
|
let { width: e, height: t } = le({
|
|
183
183
|
chart: T.value,
|
|
@@ -251,7 +251,7 @@ var x = /* @__PURE__ */ e({ default: () => S }), be = ["id", "aria-describedby"]
|
|
|
251
251
|
};
|
|
252
252
|
})), Y = d(() => {
|
|
253
253
|
let e = R(L.value);
|
|
254
|
-
return M.value.style.trendLabel.trendType === "global" ?
|
|
254
|
+
return M.value.style.trendLabel.trendType === "global" ? ee(e) : M.value.style.trendLabel.trendType === "n-1" && e.length > 1 ? (e.at(-1) / e.at(-2) - 1) * 100 : M.value.style.trendLabel.trendType === "lastToFirst" ? (e.at(-1) / e[0] - 1) * 100 : 0;
|
|
255
255
|
}), X = d(() => k.value || Y.value === 0 ? "neutral" : Y.value > 0 ? "positive" : "negative"), Z = d(() => M.value.style.arrow.colors[X.value]), Ke = d(() => {
|
|
256
256
|
let e = {
|
|
257
257
|
x: J.value[0].x,
|
|
@@ -280,18 +280,18 @@ var x = /* @__PURE__ */ e({ default: () => S }), be = ["id", "aria-describedby"]
|
|
|
280
280
|
fontSize: M.value.style.trendLabel.fontSize
|
|
281
281
|
}), Je = d(() => {
|
|
282
282
|
if (N.value || k.value) return "Trend chart loading";
|
|
283
|
-
let e = J.value?.at(-1), t = e?.value, n =
|
|
283
|
+
let e = J.value?.at(-1), t = e?.value, n = r({
|
|
284
284
|
p: Y.value > 0 ? "+" : "",
|
|
285
285
|
v: Y.value,
|
|
286
286
|
s: "%",
|
|
287
287
|
r: M.value.style.trendLabel.rounding
|
|
288
|
-
}),
|
|
288
|
+
}), i = t == null ? "not available" : s(M.value.style.dataLabel.formatter, t, r({
|
|
289
289
|
p: M.value.style.dataLabel.prefix,
|
|
290
290
|
v: t,
|
|
291
291
|
s: M.value.style.dataLabel.suffix,
|
|
292
292
|
r: M.value.style.dataLabel.rounding
|
|
293
293
|
}), { datapoint: e });
|
|
294
|
-
return `Progression ${X.value === "positive" ? `up ${n}` : X.value === "negative" ? `down ${n}` : `stable at ${n}`}. Last value ${
|
|
294
|
+
return `Progression ${X.value === "positive" ? `up ${n}` : X.value === "negative" ? `down ${n}` : `stable at ${n}`}. Last value ${i}.`;
|
|
295
295
|
}), Ye = d(() => `sparktrend-a11y-${j.value}`);
|
|
296
296
|
return (e, t) => (h(), p("div", {
|
|
297
297
|
ref_key: "sparkTrendChart",
|
|
@@ -311,7 +311,7 @@ var x = /* @__PURE__ */ e({ default: () => S }), be = ["id", "aria-describedby"]
|
|
|
311
311
|
key: He.value,
|
|
312
312
|
ref_key: "svgRef",
|
|
313
313
|
ref: E,
|
|
314
|
-
xmlns: y(
|
|
314
|
+
xmlns: y(te),
|
|
315
315
|
viewBox: `0 0 ${W.value.width} ${W.value.height}`,
|
|
316
316
|
style: "width:100%;background:transparent;overflow:visible",
|
|
317
317
|
"aria-hidden": "true"
|
|
@@ -333,25 +333,25 @@ var x = /* @__PURE__ */ e({ default: () => S }), be = ["id", "aria-describedby"]
|
|
|
333
333
|
id: `pill_gradient_${j.value}`
|
|
334
334
|
}, [m("stop", {
|
|
335
335
|
offset: "0%",
|
|
336
|
-
"stop-color": y(
|
|
336
|
+
"stop-color": y(o)(M.value.style.line.useColorTrend ? Z.value : M.value.style.line.stroke, M.value.style.area.opacity)
|
|
337
337
|
}, null, 8, Te), m("stop", {
|
|
338
338
|
offset: "100%",
|
|
339
339
|
"stop-color": M.value.style.backgroundColor
|
|
340
340
|
}, null, 8, Ee)], 8, we)]),
|
|
341
341
|
M.value.style.area.show && J.value[0] ? (h(), p("g", De, [M.value.style.line.smooth ? (h(), p("path", {
|
|
342
342
|
key: 0,
|
|
343
|
-
d: `M ${J.value[0].x},${G.value.bottom} ${y(
|
|
344
|
-
fill: M.value.style.area.useGradient ? `url(#pill_gradient_${j.value})` : y(
|
|
343
|
+
d: `M ${J.value[0].x},${G.value.bottom} ${y(a)(J.value)} L ${J.value.at(-1).x},${G.value.bottom} Z`,
|
|
344
|
+
fill: M.value.style.area.useGradient ? `url(#pill_gradient_${j.value})` : y(o)(M.value.style.line.useColorTrend ? Z.value : M.value.style.line.stroke, M.value.style.area.opacity),
|
|
345
345
|
stroke: "none"
|
|
346
346
|
}, null, 8, Oe)) : (h(), p("path", {
|
|
347
347
|
key: 1,
|
|
348
348
|
d: `M${Ke.value}Z`,
|
|
349
|
-
fill: M.value.style.area.useGradient ? `url(#pill_gradient_${j.value})` : y(
|
|
349
|
+
fill: M.value.style.area.useGradient ? `url(#pill_gradient_${j.value})` : y(o)(M.value.style.line.useColorTrend ? Z.value : M.value.style.line.stroke, M.value.style.area.opacity),
|
|
350
350
|
stroke: "none"
|
|
351
351
|
}, null, 8, ke))])) : f("", !0),
|
|
352
352
|
M.value.style.line.smooth && J.value.length ? (h(), p("path", {
|
|
353
353
|
key: 2,
|
|
354
|
-
d: `M ${y(
|
|
354
|
+
d: `M ${y(a)(J.value)}`,
|
|
355
355
|
stroke: M.value.style.line.useColorTrend ? Z.value : M.value.style.line.stroke,
|
|
356
356
|
fill: "none",
|
|
357
357
|
"stroke-width": M.value.style.line.strokeWidth,
|
|
@@ -394,7 +394,7 @@ var x = /* @__PURE__ */ e({ default: () => S }), be = ["id", "aria-describedby"]
|
|
|
394
394
|
fill: M.value.style.trendLabel.useColorTrend ? Z.value : M.value.style.trendLabel.color,
|
|
395
395
|
"font-size": M.value.style.trendLabel.fontSize,
|
|
396
396
|
"font-weight": M.value.style.trendLabel.bold ? "bold" : "normal"
|
|
397
|
-
}, v(y(
|
|
397
|
+
}, v(y(r)({
|
|
398
398
|
p: Y.value > 0 ? "+" : "",
|
|
399
399
|
v: Y.value,
|
|
400
400
|
s: "%",
|
|
@@ -417,7 +417,7 @@ var x = /* @__PURE__ */ e({ default: () => S }), be = ["id", "aria-describedby"]
|
|
|
417
417
|
"font-size": M.value.style.dataLabel.fontSize,
|
|
418
418
|
fill: M.value.style.dataLabel.useColorTrend ? Z.value : M.value.style.dataLabel.color,
|
|
419
419
|
"font-weight": M.value.style.dataLabel.bold ? "bold" : "normal"
|
|
420
|
-
}, v(y(
|
|
420
|
+
}, v(y(s)(M.value.style.dataLabel.formatter, J.value.at(-1).value, y(r)({
|
|
421
421
|
p: M.value.style.dataLabel.prefix,
|
|
422
422
|
v: J.value.at(-1).value,
|
|
423
423
|
s: M.value.style.dataLabel.suffix,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as
|
|
4
|
-
import { n as
|
|
5
|
-
import { t as
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import { Fragment as f, computed as p, createBlock as
|
|
2
|
+
import { $ as t, G as n, J as r, Kt as i, Mt as a, Rt as o, S as ee, Wt as te, b as s, dt as c, i as l, kt as ne, t as re, zt as ie } from "./lib-JqW18y5I.js";
|
|
3
|
+
import { t as ae } from "./useConfig-DYM3f6EI.js";
|
|
4
|
+
import { n as oe, t as se } from "./BaseScanner-DZvpgOjM.js";
|
|
5
|
+
import { t as u } from "./useNestedProp-DIuuzG1r.js";
|
|
6
|
+
import { t as ce } from "./useThemeCheck-C43Tcqmk.js";
|
|
7
|
+
import { t as le } from "./usePrefersMotion-BC-CsqR1.js";
|
|
8
|
+
import { t as d } from "./vue_ui_sparkbar-z6qO--Kf.js";
|
|
9
|
+
import { Fragment as f, computed as p, createBlock as ue, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createVNode as de, defineAsyncComponent as fe, mergeProps as _, nextTick as pe, normalizeProps as me, normalizeStyle as v, onMounted as y, openBlock as b, ref as x, renderList as he, renderSlot as S, toDisplayString as C, toRefs as ge, unref as w, useSlots as T, watch as E } from "vue";
|
|
10
10
|
//#region src/components/vue-ui-sparkbar.vue
|
|
11
11
|
var D = /* @__PURE__ */ e({ default: () => R }), O = [
|
|
12
12
|
"onClick",
|
|
@@ -56,11 +56,11 @@ var D = /* @__PURE__ */ e({ default: () => R }), O = [
|
|
|
56
56
|
},
|
|
57
57
|
emits: ["selectDatapoint"],
|
|
58
58
|
setup(e, { emit: D }) {
|
|
59
|
-
let R =
|
|
60
|
-
|
|
59
|
+
let R = fe(() => import("./PackageVersion-DW7zwRcm.js").then((e) => e.t)), { vue_ui_sparkbar: _e } = ae(), { isThemeValid: ve, warnInvalidTheme: ye } = ce(), z = le(), B = e, be = T();
|
|
60
|
+
y(() => {
|
|
61
61
|
be["chart-background"] && console.warn("VueUiSparkbar does not support the #chart-background slot.");
|
|
62
62
|
});
|
|
63
|
-
let V =
|
|
63
|
+
let V = x(n()), H = x(K()), xe = p(() => i({
|
|
64
64
|
defaultConfig: { style: {
|
|
65
65
|
backgroundColor: "#99999930",
|
|
66
66
|
animation: { show: !1 },
|
|
@@ -72,8 +72,8 @@ var D = /* @__PURE__ */ e({ default: () => R }), O = [
|
|
|
72
72
|
bar: { gradient: { underlayerColor: "#6A6A6A" } }
|
|
73
73
|
} },
|
|
74
74
|
userConfig: H.value.skeletonConfig ?? {}
|
|
75
|
-
})), { loading: U, FINAL_DATASET: W, manualLoading: Se } =
|
|
76
|
-
...
|
|
75
|
+
})), { loading: U, FINAL_DATASET: W, manualLoading: Se } = oe({
|
|
76
|
+
...ge(B),
|
|
77
77
|
FINAL_CONFIG: H,
|
|
78
78
|
prepareConfig: K,
|
|
79
79
|
skeletonDataset: B.config?.skeletonDataset ?? [
|
|
@@ -96,40 +96,40 @@ var D = /* @__PURE__ */ e({ default: () => R }), O = [
|
|
|
96
96
|
color: "#DBDBDB"
|
|
97
97
|
}
|
|
98
98
|
],
|
|
99
|
-
skeletonConfig:
|
|
99
|
+
skeletonConfig: i({
|
|
100
100
|
defaultConfig: H.value,
|
|
101
101
|
userConfig: xe.value
|
|
102
102
|
})
|
|
103
103
|
}), G = p(() => !!H.value.debug);
|
|
104
104
|
function K() {
|
|
105
|
-
let e =
|
|
105
|
+
let e = u({
|
|
106
106
|
userConfig: B.config,
|
|
107
107
|
defaultConfig: _e
|
|
108
|
-
}),
|
|
109
|
-
if (!
|
|
108
|
+
}), t = e.theme;
|
|
109
|
+
if (!t) return e;
|
|
110
110
|
if (!ve.value(e)) return ye(e), e;
|
|
111
|
-
let
|
|
112
|
-
userConfig:
|
|
111
|
+
let n = u({
|
|
112
|
+
userConfig: d[t] || B.config,
|
|
113
113
|
defaultConfig: e
|
|
114
|
-
}),
|
|
114
|
+
}), r = u({
|
|
115
115
|
userConfig: B.config,
|
|
116
|
-
defaultConfig:
|
|
116
|
+
defaultConfig: n
|
|
117
117
|
});
|
|
118
118
|
return {
|
|
119
|
-
...
|
|
120
|
-
customPalette:
|
|
119
|
+
...r,
|
|
120
|
+
customPalette: r.customPalette.length ? r.customPalette : te[t] || a
|
|
121
121
|
};
|
|
122
122
|
}
|
|
123
123
|
E(() => B.config, (e) => {
|
|
124
124
|
H.value = K();
|
|
125
125
|
}, { deep: !0 });
|
|
126
|
-
let Ce = p(() =>
|
|
126
|
+
let Ce = p(() => ee(H.value.customPalette)), q = x(W.value.map((e) => ({
|
|
127
127
|
...e,
|
|
128
128
|
value: H.value.style.animation.show ? 0 : e.value || 0,
|
|
129
129
|
formatter: e.formatter || null
|
|
130
|
-
}))), J =
|
|
131
|
-
|
|
132
|
-
|
|
130
|
+
}))), J = x(null);
|
|
131
|
+
y(async () => {
|
|
132
|
+
ne(B.dataset) && t({
|
|
133
133
|
componentName: "VueUiSparkbar",
|
|
134
134
|
type: "dataset",
|
|
135
135
|
debug: G.value
|
|
@@ -156,28 +156,28 @@ var D = /* @__PURE__ */ e({ default: () => R }), O = [
|
|
|
156
156
|
...e,
|
|
157
157
|
value: H.value.style.animation.show && !z.value ? 0 : e.value || 0,
|
|
158
158
|
formatter: e.formatter || null
|
|
159
|
-
})),
|
|
159
|
+
})), pe(Y);
|
|
160
160
|
}, { deep: !0 });
|
|
161
|
-
let X =
|
|
161
|
+
let X = x({
|
|
162
162
|
width: 500,
|
|
163
163
|
height: 16
|
|
164
|
-
}), we = p(() => Math.max(...W.value.map((e) => e.value))), Te = p(() => (W.value.forEach((e,
|
|
165
|
-
|
|
164
|
+
}), we = p(() => Math.max(...W.value.map((e) => e.value))), Te = p(() => (W.value.forEach((e, n) => {
|
|
165
|
+
c({
|
|
166
166
|
datasetObject: e,
|
|
167
167
|
requiredAttributes: ["name", "value"]
|
|
168
168
|
}).forEach((e) => {
|
|
169
|
-
|
|
169
|
+
t({
|
|
170
170
|
componentName: "VueUiSparkbar",
|
|
171
171
|
type: "datasetSerieAttribute",
|
|
172
172
|
property: e,
|
|
173
|
-
index:
|
|
173
|
+
index: n,
|
|
174
174
|
debug: G.value
|
|
175
175
|
});
|
|
176
176
|
});
|
|
177
|
-
}), q.value.map((e,
|
|
177
|
+
}), q.value.map((e, t) => ({
|
|
178
178
|
...e,
|
|
179
179
|
value: e.value || 0,
|
|
180
|
-
color:
|
|
180
|
+
color: s(e.color) || Ce.value[t] || a[t] || a[t % a.length]
|
|
181
181
|
}))));
|
|
182
182
|
function Z(e) {
|
|
183
183
|
return e / we.value;
|
|
@@ -210,57 +210,57 @@ var D = /* @__PURE__ */ e({ default: () => R }), O = [
|
|
|
210
210
|
seriesIndex: t
|
|
211
211
|
});
|
|
212
212
|
}
|
|
213
|
-
return (e, t) => (
|
|
213
|
+
return (e, t) => (b(), h("div", {
|
|
214
214
|
class: "vue-data-ui-component vue-ui-sparkbar",
|
|
215
|
-
style:
|
|
215
|
+
style: v({
|
|
216
216
|
width: "100%",
|
|
217
217
|
position: "relative",
|
|
218
218
|
fontFamily: H.value.style.fontFamily,
|
|
219
|
-
background: B.backgroundOpacity === null ? H.value.style.backgroundColor :
|
|
219
|
+
background: B.backgroundOpacity === null ? H.value.style.backgroundColor : w(o)(H.value.style.backgroundColor, B.backgroundOpacity)
|
|
220
220
|
})
|
|
221
221
|
}, [
|
|
222
|
-
e.$slots.title ?
|
|
222
|
+
e.$slots.title ? S(e.$slots, "title", me(_({ key: 0 }, { title: {
|
|
223
223
|
...e.title,
|
|
224
224
|
title: H.value.style.title.text,
|
|
225
225
|
subtitle: H.value.style.title.subtitle.text
|
|
226
|
-
} }))) :
|
|
227
|
-
!e.$slots.title && H.value.style.title.text ? (
|
|
226
|
+
} }))) : m("", !0),
|
|
227
|
+
!e.$slots.title && H.value.style.title.text ? (b(), h("div", {
|
|
228
228
|
key: 1,
|
|
229
229
|
class: "vue-ui-sparkbar-title-container",
|
|
230
|
-
style:
|
|
230
|
+
style: v({
|
|
231
231
|
background: H.value.style.title.backgroundColor,
|
|
232
232
|
margin: H.value.style.title.margin,
|
|
233
233
|
textAlign: H.value.style.title.textAlign
|
|
234
234
|
})
|
|
235
|
-
}, [
|
|
235
|
+
}, [g("div", {
|
|
236
236
|
class: "vue-ui-sparkbar-title",
|
|
237
|
-
style:
|
|
237
|
+
style: v({
|
|
238
238
|
fontSize: H.value.style.title.fontSize + "px",
|
|
239
239
|
color: H.value.style.title.color,
|
|
240
240
|
fontWeight: H.value.style.title.bold ? "bold" : "normal"
|
|
241
241
|
})
|
|
242
|
-
},
|
|
242
|
+
}, C(H.value.style.title.text), 5), H.value.style.title.subtitle.text ? (b(), h("div", {
|
|
243
243
|
key: 0,
|
|
244
244
|
class: "vue-ui-sparkbar-subtitle",
|
|
245
|
-
style:
|
|
245
|
+
style: v({
|
|
246
246
|
fontSize: H.value.style.title.subtitle.fontSize + "px",
|
|
247
247
|
color: H.value.style.title.subtitle.color,
|
|
248
248
|
fontWeight: H.value.style.title.subtitle.bold ? "bold" : "normal"
|
|
249
249
|
})
|
|
250
|
-
},
|
|
251
|
-
(
|
|
252
|
-
style:
|
|
250
|
+
}, C(H.value.style.title.subtitle.text), 5)) : m("", !0)], 4)) : m("", !0),
|
|
251
|
+
(b(!0), h(f, null, he(Te.value, (t, n) => (b(), h("div", {
|
|
252
|
+
style: v(`display:flex !important;${["left", "right"].includes(H.value.style.labels.name.position) ? `flex-direction: ${H.value.style.labels.name.position === "right" ? "row-reverse" : "row"} !important` : "flex-direction:column !important"};gap:${H.value.style.gap}px !important;align-items:center;${w(W).length > 0 && n !== w(W).length - 1 ? "margin-bottom:6px" : ""}`),
|
|
253
253
|
onClick: (e) => De(t, n),
|
|
254
254
|
onMouseenter: (e) => Oe(t, n),
|
|
255
255
|
onMouseleave: (e) => ke(t, n)
|
|
256
256
|
}, [
|
|
257
|
-
|
|
257
|
+
w(U) ? m("", !0) : S(e.$slots, "data-label", _({
|
|
258
258
|
key: 0,
|
|
259
259
|
ref_for: !0
|
|
260
260
|
}, { bar: {
|
|
261
261
|
...t,
|
|
262
262
|
target: $(t),
|
|
263
|
-
valueLabel:
|
|
263
|
+
valueLabel: w(l)(t.formatter, t.value, w(r)({
|
|
264
264
|
p: t.prefix || "",
|
|
265
265
|
v: t.value,
|
|
266
266
|
s: t.suffix || "",
|
|
@@ -269,7 +269,7 @@ var D = /* @__PURE__ */ e({ default: () => R }), O = [
|
|
|
269
269
|
datapoint: t,
|
|
270
270
|
seriesIndex: n
|
|
271
271
|
}),
|
|
272
|
-
targetLabel:
|
|
272
|
+
targetLabel: w(l)(t.formatter, $(t), w(r)({
|
|
273
273
|
p: t.prefix || "",
|
|
274
274
|
v: $(t),
|
|
275
275
|
s: t.suffix || "",
|
|
@@ -279,9 +279,9 @@ var D = /* @__PURE__ */ e({ default: () => R }), O = [
|
|
|
279
279
|
seriesIndex: n
|
|
280
280
|
})
|
|
281
281
|
} })),
|
|
282
|
-
!e.$slots["data-label"] ||
|
|
282
|
+
!e.$slots["data-label"] || w(U) ? (b(), h("div", {
|
|
283
283
|
key: 1,
|
|
284
|
-
style:
|
|
284
|
+
style: v({
|
|
285
285
|
display: "flex",
|
|
286
286
|
justifyContent: ["right", "top-right"].includes(H.value.style.labels.name.position) ? "flex-end" : ["top-center"].includes(H.value.style.labels.name.position) ? "center" : "flex-start",
|
|
287
287
|
alignItems: "center",
|
|
@@ -291,10 +291,10 @@ var D = /* @__PURE__ */ e({ default: () => R }), O = [
|
|
|
291
291
|
fontWeight: H.value.style.labels.name.bold ? "bold" : "normal",
|
|
292
292
|
flexWrap: "wrap"
|
|
293
293
|
})
|
|
294
|
-
}, [
|
|
294
|
+
}, [w(U) ? (b(), h("div", {
|
|
295
295
|
key: 0,
|
|
296
296
|
class: "vue-ui-sparkbar-skeleton-name",
|
|
297
|
-
style:
|
|
297
|
+
style: v({
|
|
298
298
|
width: "60px",
|
|
299
299
|
height: H.value.style.labels.fontSize + "px",
|
|
300
300
|
borderRadius: H.value.style.labels.fontSize / 4 + "px",
|
|
@@ -303,23 +303,23 @@ var D = /* @__PURE__ */ e({ default: () => R }), O = [
|
|
|
303
303
|
justifyContent: "space-between",
|
|
304
304
|
marginTop: "5px"
|
|
305
305
|
})
|
|
306
|
-
}, [
|
|
306
|
+
}, [g("div", { style: v({
|
|
307
307
|
height: "100%",
|
|
308
308
|
width: "40px",
|
|
309
309
|
borderRadius: H.value.style.labels.fontSize / 4 + "px",
|
|
310
310
|
backgroundColor: "#6A6A6A80"
|
|
311
|
-
}) }, null, 4),
|
|
311
|
+
}) }, null, 4), g("div", { style: v({
|
|
312
312
|
height: "100%",
|
|
313
313
|
width: "15px",
|
|
314
314
|
borderRadius: H.value.style.labels.fontSize / 4 + "px",
|
|
315
315
|
backgroundColor: "#6A6A6A80"
|
|
316
|
-
}) }, null, 4)], 4)) : (
|
|
317
|
-
|
|
318
|
-
H.value.style.labels.value.show ? (
|
|
316
|
+
}) }, null, 4)], 4)) : (b(), h(f, { key: 1 }, [
|
|
317
|
+
g("span", null, C(t.name), 1),
|
|
318
|
+
H.value.style.labels.value.show ? (b(), h("span", {
|
|
319
319
|
key: 0,
|
|
320
|
-
style:
|
|
320
|
+
style: v(`font-weight:${H.value.style.labels.value.bold ? "bold" : "normal"}`),
|
|
321
321
|
class: "vue-ui-sparkbar-datapoint-name"
|
|
322
|
-
}, ": " + w(
|
|
322
|
+
}, ": " + C(w(l)(t.formatter, t.value, w(r)({
|
|
323
323
|
p: t.prefix || "",
|
|
324
324
|
v: t.value,
|
|
325
325
|
s: t.suffix || "",
|
|
@@ -327,8 +327,8 @@ var D = /* @__PURE__ */ e({ default: () => R }), O = [
|
|
|
327
327
|
}), {
|
|
328
328
|
datapoint: t,
|
|
329
329
|
seriesIndex: n
|
|
330
|
-
})), 5)) :
|
|
331
|
-
H.value.style.layout.showTargetValue ? (
|
|
330
|
+
})), 5)) : m("", !0),
|
|
331
|
+
H.value.style.layout.showTargetValue ? (b(), h("span", k, C(" " + H.value.style.layout.targetValueText) + " " + C(w(l)(t.formatter, $(t), w(r)({
|
|
332
332
|
p: t.prefix || "",
|
|
333
333
|
v: $(t),
|
|
334
334
|
s: t.suffix || "",
|
|
@@ -336,37 +336,37 @@ var D = /* @__PURE__ */ e({ default: () => R }), O = [
|
|
|
336
336
|
}), {
|
|
337
337
|
datapoint: t,
|
|
338
338
|
seriesIndex: n
|
|
339
|
-
})), 1)) :
|
|
340
|
-
], 64))], 4)) :
|
|
341
|
-
(
|
|
339
|
+
})), 1)) : m("", !0)
|
|
340
|
+
], 64))], 4)) : m("", !0),
|
|
341
|
+
(b(), h("svg", {
|
|
342
342
|
role: "img",
|
|
343
|
-
xmlns:
|
|
343
|
+
xmlns: w(re),
|
|
344
344
|
viewBox: `0 0 ${X.value.width} ${X.value.height}`,
|
|
345
345
|
width: "100%"
|
|
346
346
|
}, [
|
|
347
|
-
|
|
348
|
-
|
|
347
|
+
de(w(R)),
|
|
348
|
+
g("defs", null, [g("linearGradient", {
|
|
349
349
|
x1: "0%",
|
|
350
350
|
y1: "0%",
|
|
351
351
|
x2: "100%",
|
|
352
352
|
y2: "0%",
|
|
353
353
|
id: `sparkbar_gradient_${n}_${V.value}`
|
|
354
|
-
}, [
|
|
354
|
+
}, [g("stop", {
|
|
355
355
|
offset: "0%",
|
|
356
|
-
"stop-color":
|
|
357
|
-
}, null, 8, M),
|
|
356
|
+
"stop-color": w(o)(w(ie)(t.color, .03), 100 - H.value.style.bar.gradient.intensity)
|
|
357
|
+
}, null, 8, M), g("stop", {
|
|
358
358
|
offset: "100%",
|
|
359
359
|
"stop-color": t.color
|
|
360
360
|
}, null, 8, N)], 8, j)]),
|
|
361
|
-
|
|
361
|
+
g("rect", {
|
|
362
362
|
height: X.value.height,
|
|
363
363
|
width: X.value.width,
|
|
364
364
|
x: 0,
|
|
365
365
|
y: 0,
|
|
366
|
-
fill:
|
|
366
|
+
fill: w(o)(H.value.style.gutter.backgroundColor, H.value.style.gutter.opacity),
|
|
367
367
|
rx: X.value.height / 2
|
|
368
368
|
}, null, 8, P),
|
|
369
|
-
|
|
369
|
+
g("rect", {
|
|
370
370
|
height: X.value.height,
|
|
371
371
|
width: X.value.width * Q(t),
|
|
372
372
|
x: 0,
|
|
@@ -374,7 +374,7 @@ var D = /* @__PURE__ */ e({ default: () => R }), O = [
|
|
|
374
374
|
fill: H.value.style.bar.gradient.underlayerColor,
|
|
375
375
|
rx: X.value.height / 2
|
|
376
376
|
}, null, 8, F),
|
|
377
|
-
|
|
377
|
+
g("rect", {
|
|
378
378
|
height: X.value.height,
|
|
379
379
|
width: X.value.width * Q(t),
|
|
380
380
|
x: 0,
|
|
@@ -384,8 +384,8 @@ var D = /* @__PURE__ */ e({ default: () => R }), O = [
|
|
|
384
384
|
}, null, 8, I)
|
|
385
385
|
], 8, A))
|
|
386
386
|
], 44, O))), 256)),
|
|
387
|
-
e.$slots.source ? (
|
|
388
|
-
|
|
387
|
+
e.$slots.source ? (b(), h("div", L, [S(e.$slots, "source")], 512)) : m("", !0),
|
|
388
|
+
w(U) ? (b(), ue(se, { key: 3 })) : m("", !0)
|
|
389
389
|
], 4));
|
|
390
390
|
}
|
|
391
391
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
2
|
+
import { $ as t, G as n, J as ee, Kt as r, _t as te, dt as ne, i as re, kt as ie, t as ae, v as i } from "./lib-JqW18y5I.js";
|
|
3
3
|
import { t as oe } from "./useConfig-DYM3f6EI.js";
|
|
4
4
|
import { n as se, t as a } from "./BaseScanner-DZvpgOjM.js";
|
|
5
|
-
import { t as o } from "./useNestedProp-
|
|
5
|
+
import { t as o } from "./useNestedProp-DIuuzG1r.js";
|
|
6
6
|
import { t as ce } from "./useThemeCheck-C43Tcqmk.js";
|
|
7
7
|
import { t as s } from "./useChartAccessibility-DYqac8yF.js";
|
|
8
8
|
import { t as c } from "./usePrefersMotion-BC-CsqR1.js";
|
|
@@ -50,7 +50,7 @@ var C = /* @__PURE__ */ e({ default: () => j }), me = ["xmlns", "viewBox"], he =
|
|
|
50
50
|
}
|
|
51
51
|
},
|
|
52
52
|
setup(e) {
|
|
53
|
-
let C = de(() => import("./PackageVersion-
|
|
53
|
+
let C = de(() => import("./PackageVersion-DW7zwRcm.js").then((e) => e.t)), { vue_ui_sparkgauge: j } = oe(), { isThemeValid: M, warnInvalidTheme: N } = ce(), P = c(), F = v(null), I = e, L = v(n()), R = v(W()), z = u(() => R.value.style.animation.show && !P.value), _e = u(() => r({
|
|
54
54
|
defaultConfig: { style: {
|
|
55
55
|
animation: { show: !1 },
|
|
56
56
|
background: "#99999930",
|
|
@@ -105,11 +105,11 @@ var C = /* @__PURE__ */ e({ default: () => j }), me = ["xmlns", "viewBox"], he =
|
|
|
105
105
|
});
|
|
106
106
|
let G = u(() => R.value.debug);
|
|
107
107
|
function K() {
|
|
108
|
-
|
|
108
|
+
ie(I.dataset) ? t({
|
|
109
109
|
componentName: "VueUiSparkgauge",
|
|
110
110
|
type: "dataset",
|
|
111
111
|
debug: G.value
|
|
112
|
-
}) :
|
|
112
|
+
}) : ne({
|
|
113
113
|
datasetObject: I.dataset,
|
|
114
114
|
requiredAttributes: [
|
|
115
115
|
"value",
|
|
@@ -117,7 +117,7 @@ var C = /* @__PURE__ */ e({ default: () => j }), me = ["xmlns", "viewBox"], he =
|
|
|
117
117
|
"max"
|
|
118
118
|
]
|
|
119
119
|
}).forEach((e) => {
|
|
120
|
-
|
|
120
|
+
t({
|
|
121
121
|
componentName: "VueUiSparkgauge",
|
|
122
122
|
type: "datasetAttribute",
|
|
123
123
|
property: e,
|
|
@@ -231,7 +231,7 @@ var C = /* @__PURE__ */ e({ default: () => j }), me = ["xmlns", "viewBox"], he =
|
|
|
231
231
|
"font-size": R.value.style.dataLabel.fontSize,
|
|
232
232
|
fill: $.value,
|
|
233
233
|
"font-weight": R.value.style.dataLabel.bold ? "bold" : "normal"
|
|
234
|
-
}, b(x(
|
|
234
|
+
}, b(x(re)(R.value.style.dataLabel.formatter, x(i)(J.value), x(ee)({
|
|
235
235
|
p: R.value.style.dataLabel.prefix,
|
|
236
236
|
v: x(i)(J.value),
|
|
237
237
|
s: R.value.style.dataLabel.suffix,
|