vue-data-ui 3.22.9 → 3.22.10
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-DdymhUfY.js → Arrow-Ku6rQ87g.js} +1 -1
- package/dist/{BaseDraggableDialog-Av7Uxq5V.js → BaseDraggableDialog-CdkCqtag.js} +2 -2
- package/dist/{BaseIcon-UdRAvP2h.js → BaseIcon-CDTIUIKV.js} +1 -1
- package/dist/{BaseLegendToggle-DWtet-Hh.js → BaseLegendToggle-BrQ2OlzI.js} +1 -1
- package/dist/{BaseZoomControls-BY2KLqs6.js → BaseZoomControls-CkEX0292.js} +2 -2
- package/dist/{ColorPicker-DR_ummtM.js → ColorPicker-C959ZIW9.js} +2 -2
- package/dist/{DataTable-BxpTMgfK.js → DataTable-ByZy5gt1.js} +2 -2
- package/dist/{Legend-ROt6ugzW.js → Legend-5VQGLnmx.js} +2 -2
- package/dist/{NonSvgPenAndPaper-B6EG_Sga.js → NonSvgPenAndPaper-Bd8OzTqw.js} +3 -3
- package/dist/{PackageVersion-D__dRVRA.js → PackageVersion-BoTvk0i5.js} +1 -1
- package/dist/{PenAndPaper-DsXi7GJ-.js → PenAndPaper-CLaZJl6K.js} +3 -3
- package/dist/{Shape-UpH0a4Ur.js → Shape-B5ksaGa1.js} +3 -3
- package/dist/{Slicer-CW_XPIKL.js → Slicer-WsWTQPKt.js} +21 -21
- package/dist/{SlicerPreview-CTz41lOu.js → SlicerPreview-3n516NyE.js} +214 -214
- package/dist/{SparkTooltip-BTLN-Kex.js → SparkTooltip-CbYYc-xb.js} +1 -1
- package/dist/{Title-CcNiYzEo.js → Title-Cr3jP7Qd.js} +1 -1
- package/dist/{Tooltip-CxOrWlFy.js → Tooltip-CDbLl3TD.js} +1 -1
- package/dist/{UserOptions-trvJ26nz.js → UserOptions-BUQOnoPR.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-BbwhsRIr.js → dom-to-png-COPbGrdd.js} +1 -1
- package/dist/exposedLib-CZbtc2a6.js +25 -0
- package/dist/{img-DnP3eXuv.js → img-CNdXiUfZ.js} +1 -1
- package/dist/{labelUtils-DBEh078l.js → labelUtils-JaoYKi2N.js} +1 -1
- package/dist/{lib-JqW18y5I.js → lib-CnHx5WfV.js} +118 -107
- package/dist/{package-ByOT60IK.js → package-BRBLwZUc.js} +1 -1
- package/dist/{pdf-hj3gzrE7.js → pdf-CEMzBeuV.js} +1 -1
- package/dist/{render-common-D18VrP0h.js → render-common-DJXFRGhU.js} +10 -10
- 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/types/utils.d.ts +40 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-BGnDfZdg.js → useAutoSizeLabelsInsideViewbox-BUPt2iaP.js} +1 -1
- package/dist/{useNestedProp-DIuuzG1r.js → useNestedProp-D8NuRneO.js} +2 -2
- package/dist/{usePrinter-CqqHmnBI.js → usePrinter-B-X_Pub0.js} +2 -2
- package/dist/utils.js +26 -24
- package/dist/{vue-data-ui-ub3fCh6P.js → vue-data-ui-Bx_8d3b_.js} +68 -68
- package/dist/vue-data-ui.js +77 -77
- package/dist/vue-ui-3d-bar-CfUfbpSE.js +1825 -0
- package/dist/{vue-ui-accordion-CjAGqEJg.js → vue-ui-accordion-Oo3IsX3-.js} +3 -3
- package/dist/vue-ui-age-pyramid-DD-4y5Jd.js +1247 -0
- package/dist/{vue-ui-annotator-BIucnT0L.js → vue-ui-annotator-BvGE3lzE.js} +8 -8
- package/dist/vue-ui-bullet-DYOdbaO2.js +710 -0
- package/dist/vue-ui-bump-B8fJoxHF.js +1249 -0
- package/dist/{vue-ui-candlestick-DULUMU-Q.js → vue-ui-candlestick-BUP1JoNs.js} +287 -287
- package/dist/vue-ui-carousel-table-D-Bwhydt.js +455 -0
- package/dist/vue-ui-chestnut-C2VK2NEx.js +2042 -0
- package/dist/{vue-ui-chord-DL1M7cgL.js → vue-ui-chord-AA-QjUQI.js} +42 -42
- package/dist/{vue-ui-circle-pack-C1Pgq6si.js → vue-ui-circle-pack-CdBFGYOK.js} +37 -37
- package/dist/{vue-ui-cursor-d2uLAKTQ.js → vue-ui-cursor-Cm_J_5Gk.js} +5 -5
- package/dist/{vue-ui-dag-CVh9FpZr.js → vue-ui-dag-CgRph4-n.js} +32 -32
- package/dist/{vue-ui-dashboard-BH0N3ebj.js → vue-ui-dashboard-BuPw5QjB.js} +69 -69
- package/dist/{vue-ui-digits-R6wi3J-Y.js → vue-ui-digits-ClrukmcB.js} +3 -3
- package/dist/vue-ui-donut-Bc-EPZvu.js +2419 -0
- package/dist/{vue-ui-donut-BWDeVzLc.js → vue-ui-donut-DtQCrMKL.js} +207 -207
- package/dist/vue-ui-donut-evolution-DHkiY-BD.js +1522 -0
- package/dist/vue-ui-dumbbell-BlHEH4Mw.js +1564 -0
- package/dist/{vue-ui-flow-CNczKwTh.js → vue-ui-flow-PjwAW2tY.js} +71 -71
- package/dist/vue-ui-funnel-DojI09FV.js +782 -0
- package/dist/{vue-ui-galaxy-v3cTbUiM.js → vue-ui-galaxy-txYIK_LG.js} +276 -276
- package/dist/{vue-ui-gauge-DxvMjfoc.js → vue-ui-gauge-CoL0OzSd.js} +178 -178
- package/dist/{vue-ui-geo-BgmLkZZ2.js → vue-ui-geo-yuL-_sqF.js} +20 -20
- package/dist/{vue-ui-gizmo-n1kmcGeE.js → vue-ui-gizmo-CbC5zV3K.js} +9 -9
- package/dist/{vue-ui-heatmap-dSTh8ah_.js → vue-ui-heatmap-CwqsZIsR.js} +331 -331
- package/dist/{vue-ui-history-plot-N8BqMFVU.js → vue-ui-history-plot-CuWssH-D.js} +414 -414
- package/dist/vue-ui-horizontal-bar-Dyje3GND.js +1689 -0
- package/dist/{vue-ui-kpi-BKrUk9o8.js → vue-ui-kpi-BdYenScF.js} +3 -3
- package/dist/{vue-ui-mini-loader-D5we7V_W.js → vue-ui-mini-loader-BbwE3vBT.js} +2 -2
- package/dist/vue-ui-molecule-BBh31vmd.js +931 -0
- package/dist/{vue-ui-mood-radar-CpBRHQo_.js → vue-ui-mood-radar-B_6GFlaR.js} +261 -261
- package/dist/vue-ui-nested-donuts-BWq-At5Y.js +1493 -0
- package/dist/vue-ui-onion-BwGbSE-6.js +1200 -0
- package/dist/vue-ui-parallel-coordinate-plot-Bh9hNoqf.js +1416 -0
- package/dist/vue-ui-quadrant-B72Y4Zuw.js +1984 -0
- package/dist/{vue-ui-quick-chart-BO98uEPl.js → vue-ui-quick-chart-B3LF2ViM.js} +108 -108
- package/dist/vue-ui-radar-4v_E8oGX.js +1287 -0
- package/dist/{vue-ui-rating-CN-ZiAES.js → vue-ui-rating-CzLGCFWK.js} +101 -101
- package/dist/vue-ui-relation-circle-B_8dyIv2.js +924 -0
- package/dist/vue-ui-ridgeline-BArLhskj.js +1628 -0
- package/dist/vue-ui-rings-Csn5BgLk.js +1252 -0
- package/dist/vue-ui-scatter-BBaOx94M.js +2422 -0
- package/dist/{vue-ui-skeleton-DC2bZ0nk.js → vue-ui-skeleton-KeIPGp9U.js} +99 -99
- package/dist/{vue-ui-smiley-Dyyu1je3.js → vue-ui-smiley-C1mYDh4R.js} +17 -17
- package/dist/vue-ui-spark-trend-EqCqmHmU.js +443 -0
- package/dist/{vue-ui-sparkbar-DhIo1qsW.js → vue-ui-sparkbar-BPh45vBP.js} +66 -66
- package/dist/{vue-ui-sparkgauge-D0Fo3Hts.js → vue-ui-sparkgauge-CtouPcyW.js} +65 -65
- package/dist/vue-ui-sparkhistogram-D4sI0DHN.js +576 -0
- package/dist/{vue-ui-sparkline-ApivEMBP.js → vue-ui-sparkline-BDFZ78Fz.js} +51 -51
- package/dist/vue-ui-sparkstackbar-CbTXIfxm.js +674 -0
- package/dist/{vue-ui-stackbar-Ds4hXATH.js → vue-ui-stackbar-nMXIY9x8.js} +108 -108
- package/dist/vue-ui-stackline-CzfXl5ah.js +2425 -0
- package/dist/{vue-ui-strip-plot-C3ZHf4bD.js → vue-ui-strip-plot-BCf5nthl.js} +65 -65
- package/dist/vue-ui-table-BAKkFXki.js +1338 -0
- package/dist/{vue-ui-table-heatmap-CNXNXXBU.js → vue-ui-table-heatmap-CUMxqHKK.js} +15 -15
- package/dist/{vue-ui-table-sparkline-B9JJ4pFF.js → vue-ui-table-sparkline-BVTm16fd.js} +20 -20
- package/dist/vue-ui-thermometer-CGeEW1KV.js +770 -0
- package/dist/{vue-ui-timer-5NAWw5BN.js → vue-ui-timer-Bz7EnsM1.js} +5 -5
- package/dist/{vue-ui-tiremarks-Caz_g1c5.js → vue-ui-tiremarks-IOqtk_Rr.js} +17 -17
- package/dist/{vue-ui-treemap-F9upPyOI.js → vue-ui-treemap-JxNNtb7v.js} +232 -232
- package/dist/vue-ui-waffle-D34mcJWi.js +1368 -0
- package/dist/{vue-ui-wheel-DD6Q39BA.js → vue-ui-wheel-B_qEhyvk.js} +44 -44
- package/dist/{vue-ui-word-cloud-BZLT5svo.js → vue-ui-word-cloud-TtObhd91.js} +32 -32
- package/dist/{vue-ui-world-DbEJN5NA.js → vue-ui-world-R9o00A6c.js} +210 -210
- package/dist/{vue-ui-xy-BYMAITk_.js → vue-ui-xy-CUt6sU1s.js} +766 -766
- package/dist/{vue-ui-xy-Cn9Q8YPr.js → vue-ui-xy-Do34-UbE.js} +134 -134
- package/dist/vue-ui-xy-canvas-C6eRRH--.js +1790 -0
- package/package.json +1 -1
- package/dist/exposedLib-VXFp3Z2c.js +0 -19
- package/dist/vue-ui-3d-bar-taPI41_I.js +0 -1825
- package/dist/vue-ui-age-pyramid-jvQZbF8E.js +0 -1247
- package/dist/vue-ui-bullet-CIATzlsk.js +0 -710
- package/dist/vue-ui-bump-D8MxltQE.js +0 -1249
- package/dist/vue-ui-carousel-table-BSmdexG7.js +0 -455
- package/dist/vue-ui-chestnut-BIh1nQ7q.js +0 -2042
- package/dist/vue-ui-donut-BoZdciGh.js +0 -2419
- package/dist/vue-ui-donut-evolution-CpC9EMro.js +0 -1522
- package/dist/vue-ui-dumbbell-DGA5Bfnl.js +0 -1564
- package/dist/vue-ui-funnel-CaD2tZCT.js +0 -782
- package/dist/vue-ui-horizontal-bar-CwiQxYzv.js +0 -1689
- package/dist/vue-ui-molecule--kK1JfnP.js +0 -931
- package/dist/vue-ui-nested-donuts-8Ehwcuns.js +0 -1493
- package/dist/vue-ui-onion-Cf6JiYTH.js +0 -1200
- package/dist/vue-ui-parallel-coordinate-plot-Blnqp1DB.js +0 -1416
- package/dist/vue-ui-quadrant-CxU0jiOm.js +0 -1984
- package/dist/vue-ui-radar-eH2Qih4_.js +0 -1287
- package/dist/vue-ui-relation-circle-BIcP-aAt.js +0 -924
- package/dist/vue-ui-ridgeline-ChXHzEJw.js +0 -1628
- package/dist/vue-ui-rings-J990vNbX.js +0 -1252
- package/dist/vue-ui-scatter-BeJB0EKg.js +0 -2422
- package/dist/vue-ui-spark-trend-CpDX85H3.js +0 -443
- package/dist/vue-ui-sparkhistogram-CUjFiuAh.js +0 -576
- package/dist/vue-ui-sparkstackbar-DsKQJx_n.js +0 -674
- package/dist/vue-ui-stackline-DJbcVvmN.js +0 -2425
- package/dist/vue-ui-table-uudidrYt.js +0 -1338
- package/dist/vue-ui-thermometer-Bvw3oQb3.js +0 -770
- package/dist/vue-ui-waffle-Bk9AsrPp.js +0 -1368
- package/dist/vue-ui-xy-canvas-Dcm2ftwm.js +0 -1790
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
2
|
+
import { At as t, Bt as n, C as r, Gt as i, K as ee, Nt as a, Y as o, et as s, ft as te, i as c, qt as l, t as ne, x as re, zt as u } from "./lib-CnHx5WfV.js";
|
|
3
3
|
import { t as ie } from "./useConfig-DYM3f6EI.js";
|
|
4
4
|
import { n as ae, t as oe } from "./BaseScanner-DZvpgOjM.js";
|
|
5
|
-
import { t as d } from "./useNestedProp-
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as
|
|
5
|
+
import { t as d } from "./useNestedProp-D8NuRneO.js";
|
|
6
|
+
import { t as se } from "./useThemeCheck-C43Tcqmk.js";
|
|
7
|
+
import { t as f } from "./DefGrad-DVBqDjhO.js";
|
|
8
8
|
import { t as ce } from "./usePrefersMotion-BC-CsqR1.js";
|
|
9
9
|
import { t as le } from "./vue_ui_sparkbar-z6qO--Kf.js";
|
|
10
|
-
import { Fragment as p, computed as m, createBlock as ue, createCommentVNode as h, createElementBlock as g, createElementVNode as _, createVNode as v, defineAsyncComponent as
|
|
10
|
+
import { Fragment as p, computed as m, createBlock as ue, createCommentVNode as h, createElementBlock as g, createElementVNode as _, createVNode as v, defineAsyncComponent as y, mergeProps as b, nextTick as de, normalizeProps as x, normalizeStyle as S, onMounted as C, openBlock as w, ref as T, renderList as fe, renderSlot as E, toDisplayString as D, toRefs as pe, unref as O, useSlots as me, watch as k } from "vue";
|
|
11
11
|
//#region src/components/vue-ui-sparkbar.vue
|
|
12
12
|
var A = /* @__PURE__ */ e({ default: () => R }), j = [
|
|
13
13
|
"onClick",
|
|
@@ -57,11 +57,11 @@ var A = /* @__PURE__ */ e({ default: () => R }), j = [
|
|
|
57
57
|
},
|
|
58
58
|
emits: ["selectDatapoint"],
|
|
59
59
|
setup(e, { emit: A }) {
|
|
60
|
-
let R =
|
|
61
|
-
|
|
60
|
+
let R = y(() => import("./PackageVersion-BoTvk0i5.js").then((e) => e.t)), { vue_ui_sparkbar: z } = ie(), { isThemeValid: he, warnInvalidTheme: ge } = se(), B = ce(), V = e, _e = me();
|
|
61
|
+
C(() => {
|
|
62
62
|
_e["chart-background"] && console.warn("VueUiSparkbar does not support the #chart-background slot.");
|
|
63
63
|
});
|
|
64
|
-
let H =
|
|
64
|
+
let H = T(ee()), U = T(q()), ve = m(() => l({
|
|
65
65
|
defaultConfig: { style: {
|
|
66
66
|
backgroundColor: "#99999930",
|
|
67
67
|
animation: { show: !1 },
|
|
@@ -74,7 +74,7 @@ var A = /* @__PURE__ */ e({ default: () => R }), j = [
|
|
|
74
74
|
} },
|
|
75
75
|
userConfig: U.value.skeletonConfig ?? {}
|
|
76
76
|
})), { loading: W, FINAL_DATASET: G, manualLoading: ye } = ae({
|
|
77
|
-
...
|
|
77
|
+
...pe(V),
|
|
78
78
|
FINAL_CONFIG: U,
|
|
79
79
|
prepareConfig: q,
|
|
80
80
|
skeletonDataset: V.config?.skeletonDataset ?? [
|
|
@@ -97,7 +97,7 @@ var A = /* @__PURE__ */ e({ default: () => R }), j = [
|
|
|
97
97
|
color: "#DBDBDB"
|
|
98
98
|
}
|
|
99
99
|
],
|
|
100
|
-
skeletonConfig:
|
|
100
|
+
skeletonConfig: l({
|
|
101
101
|
defaultConfig: U.value,
|
|
102
102
|
userConfig: ve.value
|
|
103
103
|
})
|
|
@@ -118,19 +118,19 @@ var A = /* @__PURE__ */ e({ default: () => R }), j = [
|
|
|
118
118
|
});
|
|
119
119
|
return {
|
|
120
120
|
...r,
|
|
121
|
-
customPalette: r.customPalette.length ? r.customPalette :
|
|
121
|
+
customPalette: r.customPalette.length ? r.customPalette : i[t] || a
|
|
122
122
|
};
|
|
123
123
|
}
|
|
124
124
|
k(() => V.config, (e) => {
|
|
125
125
|
U.value = q();
|
|
126
126
|
}, { deep: !0 });
|
|
127
|
-
let be = m(() =>
|
|
127
|
+
let be = m(() => r(U.value.customPalette)), J = T(G.value.map((e) => ({
|
|
128
128
|
...e,
|
|
129
129
|
value: U.value.style.animation.show ? 0 : e.value || 0,
|
|
130
130
|
formatter: e.formatter || null
|
|
131
|
-
}))), Y =
|
|
132
|
-
|
|
133
|
-
|
|
131
|
+
}))), Y = T(null);
|
|
132
|
+
C(async () => {
|
|
133
|
+
t(V.dataset) && s({
|
|
134
134
|
componentName: "VueUiSparkbar",
|
|
135
135
|
type: "dataset",
|
|
136
136
|
debug: K.value
|
|
@@ -157,28 +157,28 @@ var A = /* @__PURE__ */ e({ default: () => R }), j = [
|
|
|
157
157
|
...e,
|
|
158
158
|
value: U.value.style.animation.show && !B.value ? 0 : e.value || 0,
|
|
159
159
|
formatter: e.formatter || null
|
|
160
|
-
})),
|
|
160
|
+
})), de(X);
|
|
161
161
|
}, { deep: !0 });
|
|
162
|
-
let Z =
|
|
162
|
+
let Z = T({
|
|
163
163
|
width: 500,
|
|
164
164
|
height: 16
|
|
165
|
-
}), xe = m(() => Math.max(...G.value.map((e) => e.value))), Se = m(() => (G.value.forEach((e,
|
|
166
|
-
|
|
165
|
+
}), xe = m(() => Math.max(...G.value.map((e) => e.value))), Se = m(() => (G.value.forEach((e, t) => {
|
|
166
|
+
te({
|
|
167
167
|
datasetObject: e,
|
|
168
168
|
requiredAttributes: ["name", "value"]
|
|
169
169
|
}).forEach((e) => {
|
|
170
|
-
|
|
170
|
+
s({
|
|
171
171
|
componentName: "VueUiSparkbar",
|
|
172
172
|
type: "datasetSerieAttribute",
|
|
173
173
|
property: e,
|
|
174
|
-
index:
|
|
174
|
+
index: t,
|
|
175
175
|
debug: K.value
|
|
176
176
|
});
|
|
177
177
|
});
|
|
178
178
|
}), J.value.map((e, t) => ({
|
|
179
179
|
...e,
|
|
180
180
|
value: e.value || 0,
|
|
181
|
-
color:
|
|
181
|
+
color: re(e.color) || be.value[t] || a[t] || a[t % a.length]
|
|
182
182
|
}))));
|
|
183
183
|
function Ce(e) {
|
|
184
184
|
return e / xe.value;
|
|
@@ -211,78 +211,78 @@ var A = /* @__PURE__ */ e({ default: () => R }), j = [
|
|
|
211
211
|
seriesIndex: t
|
|
212
212
|
});
|
|
213
213
|
}
|
|
214
|
-
return (e, t) => (
|
|
214
|
+
return (e, t) => (w(), g("div", {
|
|
215
215
|
class: "vue-data-ui-component vue-ui-sparkbar",
|
|
216
|
-
style:
|
|
216
|
+
style: S({
|
|
217
217
|
width: "100%",
|
|
218
218
|
position: "relative",
|
|
219
219
|
fontFamily: U.value.style.fontFamily,
|
|
220
|
-
background: V.backgroundOpacity === null ? U.value.style.backgroundColor :
|
|
220
|
+
background: V.backgroundOpacity === null ? U.value.style.backgroundColor : O(u)(U.value.style.backgroundColor, V.backgroundOpacity)
|
|
221
221
|
})
|
|
222
222
|
}, [
|
|
223
|
-
e.$slots.title ?
|
|
223
|
+
e.$slots.title ? E(e.$slots, "title", x(b({ key: 0 }, { title: {
|
|
224
224
|
...e.title,
|
|
225
225
|
title: U.value.style.title.text,
|
|
226
226
|
subtitle: U.value.style.title.subtitle.text
|
|
227
227
|
} }))) : h("", !0),
|
|
228
|
-
!e.$slots.title && U.value.style.title.text ? (
|
|
228
|
+
!e.$slots.title && U.value.style.title.text ? (w(), g("div", {
|
|
229
229
|
key: 1,
|
|
230
230
|
class: "vue-ui-sparkbar-title-container",
|
|
231
|
-
style:
|
|
231
|
+
style: S({
|
|
232
232
|
background: U.value.style.title.backgroundColor,
|
|
233
233
|
margin: U.value.style.title.margin,
|
|
234
234
|
textAlign: U.value.style.title.textAlign
|
|
235
235
|
})
|
|
236
236
|
}, [_("div", {
|
|
237
237
|
class: "vue-ui-sparkbar-title",
|
|
238
|
-
style:
|
|
238
|
+
style: S({
|
|
239
239
|
fontSize: U.value.style.title.fontSize + "px",
|
|
240
240
|
color: U.value.style.title.color,
|
|
241
241
|
fontWeight: U.value.style.title.bold ? "bold" : "normal"
|
|
242
242
|
})
|
|
243
|
-
},
|
|
243
|
+
}, D(U.value.style.title.text), 5), U.value.style.title.subtitle.text ? (w(), g("div", {
|
|
244
244
|
key: 0,
|
|
245
245
|
class: "vue-ui-sparkbar-subtitle",
|
|
246
|
-
style:
|
|
246
|
+
style: S({
|
|
247
247
|
fontSize: U.value.style.title.subtitle.fontSize + "px",
|
|
248
248
|
color: U.value.style.title.subtitle.color,
|
|
249
249
|
fontWeight: U.value.style.title.subtitle.bold ? "bold" : "normal"
|
|
250
250
|
})
|
|
251
|
-
},
|
|
252
|
-
(
|
|
253
|
-
style:
|
|
254
|
-
onClick: (e) => Te(t,
|
|
255
|
-
onMouseenter: (e) => Ee(t,
|
|
256
|
-
onMouseleave: (e) => De(t,
|
|
251
|
+
}, D(U.value.style.title.subtitle.text), 5)) : h("", !0)], 4)) : h("", !0),
|
|
252
|
+
(w(!0), g(p, null, fe(Se.value, (t, r) => (w(), g("div", {
|
|
253
|
+
style: S(`display:flex !important;${["left", "right"].includes(U.value.style.labels.name.position) ? `flex-direction: ${U.value.style.labels.name.position === "right" ? "row-reverse" : "row"} !important` : "flex-direction:column !important"};gap:${U.value.style.gap}px !important;align-items:center;${O(G).length > 0 && r !== O(G).length - 1 ? "margin-bottom:6px" : ""}`),
|
|
254
|
+
onClick: (e) => Te(t, r),
|
|
255
|
+
onMouseenter: (e) => Ee(t, r),
|
|
256
|
+
onMouseleave: (e) => De(t, r)
|
|
257
257
|
}, [
|
|
258
|
-
|
|
258
|
+
O(W) ? h("", !0) : E(e.$slots, "data-label", b({
|
|
259
259
|
key: 0,
|
|
260
260
|
ref_for: !0
|
|
261
261
|
}, { bar: {
|
|
262
262
|
...t,
|
|
263
263
|
target: $(t),
|
|
264
|
-
valueLabel:
|
|
264
|
+
valueLabel: O(c)(t.formatter, t.value, O(o)({
|
|
265
265
|
p: t.prefix || "",
|
|
266
266
|
v: t.value,
|
|
267
267
|
s: t.suffix || "",
|
|
268
268
|
r: t.rounding || 0
|
|
269
269
|
}), {
|
|
270
270
|
datapoint: t,
|
|
271
|
-
seriesIndex:
|
|
271
|
+
seriesIndex: r
|
|
272
272
|
}),
|
|
273
|
-
targetLabel:
|
|
273
|
+
targetLabel: O(c)(t.formatter, $(t), O(o)({
|
|
274
274
|
p: t.prefix || "",
|
|
275
275
|
v: $(t),
|
|
276
276
|
s: t.suffix || "",
|
|
277
277
|
r: t.rounding || 0
|
|
278
278
|
}), {
|
|
279
279
|
datapoint: t,
|
|
280
|
-
seriesIndex:
|
|
280
|
+
seriesIndex: r
|
|
281
281
|
})
|
|
282
282
|
} })),
|
|
283
|
-
!e.$slots["data-label"] ||
|
|
283
|
+
!e.$slots["data-label"] || O(W) ? (w(), g("div", {
|
|
284
284
|
key: 1,
|
|
285
|
-
style:
|
|
285
|
+
style: S({
|
|
286
286
|
display: "flex",
|
|
287
287
|
justifyContent: ["right", "top-right"].includes(U.value.style.labels.name.position) ? "flex-end" : ["top-center"].includes(U.value.style.labels.name.position) ? "center" : "flex-start",
|
|
288
288
|
alignItems: "center",
|
|
@@ -292,10 +292,10 @@ var A = /* @__PURE__ */ e({ default: () => R }), j = [
|
|
|
292
292
|
fontWeight: U.value.style.labels.name.bold ? "bold" : "normal",
|
|
293
293
|
flexWrap: "wrap"
|
|
294
294
|
})
|
|
295
|
-
}, [
|
|
295
|
+
}, [O(W) ? (w(), g("div", {
|
|
296
296
|
key: 0,
|
|
297
297
|
class: "vue-ui-sparkbar-skeleton-name",
|
|
298
|
-
style:
|
|
298
|
+
style: S({
|
|
299
299
|
width: "60px",
|
|
300
300
|
height: U.value.style.labels.fontSize + "px",
|
|
301
301
|
borderRadius: U.value.style.labels.fontSize / 4 + "px",
|
|
@@ -304,58 +304,58 @@ var A = /* @__PURE__ */ e({ default: () => R }), j = [
|
|
|
304
304
|
justifyContent: "space-between",
|
|
305
305
|
marginTop: "5px"
|
|
306
306
|
})
|
|
307
|
-
}, [_("div", { style:
|
|
307
|
+
}, [_("div", { style: S({
|
|
308
308
|
height: "100%",
|
|
309
309
|
width: "40px",
|
|
310
310
|
borderRadius: U.value.style.labels.fontSize / 4 + "px",
|
|
311
311
|
backgroundColor: "#6A6A6A80"
|
|
312
|
-
}) }, null, 4), _("div", { style:
|
|
312
|
+
}) }, null, 4), _("div", { style: S({
|
|
313
313
|
height: "100%",
|
|
314
314
|
width: "15px",
|
|
315
315
|
borderRadius: U.value.style.labels.fontSize / 4 + "px",
|
|
316
316
|
backgroundColor: "#6A6A6A80"
|
|
317
|
-
}) }, null, 4)], 4)) : (
|
|
318
|
-
_("span", null,
|
|
319
|
-
U.value.style.labels.value.show ? (
|
|
317
|
+
}) }, null, 4)], 4)) : (w(), g(p, { key: 1 }, [
|
|
318
|
+
_("span", null, D(t.name), 1),
|
|
319
|
+
U.value.style.labels.value.show ? (w(), g("span", {
|
|
320
320
|
key: 0,
|
|
321
|
-
style:
|
|
321
|
+
style: S(`font-weight:${U.value.style.labels.value.bold ? "bold" : "normal"}`),
|
|
322
322
|
class: "vue-ui-sparkbar-datapoint-name"
|
|
323
|
-
}, ": " +
|
|
323
|
+
}, ": " + D(O(c)(t.formatter, t.value, O(o)({
|
|
324
324
|
p: t.prefix || "",
|
|
325
325
|
v: t.value,
|
|
326
326
|
s: t.suffix || "",
|
|
327
327
|
r: t.rounding || 0
|
|
328
328
|
}), {
|
|
329
329
|
datapoint: t,
|
|
330
|
-
seriesIndex:
|
|
330
|
+
seriesIndex: r
|
|
331
331
|
})), 5)) : h("", !0),
|
|
332
|
-
U.value.style.layout.showTargetValue ? (
|
|
332
|
+
U.value.style.layout.showTargetValue ? (w(), g("span", M, D(" " + U.value.style.layout.targetValueText) + " " + D(O(c)(t.formatter, $(t), O(o)({
|
|
333
333
|
p: t.prefix || "",
|
|
334
334
|
v: $(t),
|
|
335
335
|
s: t.suffix || "",
|
|
336
336
|
r: t.rounding || 0
|
|
337
337
|
}), {
|
|
338
338
|
datapoint: t,
|
|
339
|
-
seriesIndex:
|
|
339
|
+
seriesIndex: r
|
|
340
340
|
})), 1)) : h("", !0)
|
|
341
341
|
], 64))], 4)) : h("", !0),
|
|
342
|
-
(
|
|
342
|
+
(w(), g("svg", {
|
|
343
343
|
role: "img",
|
|
344
|
-
xmlns:
|
|
344
|
+
xmlns: O(ne),
|
|
345
345
|
viewBox: `0 0 ${Z.value.width} ${Z.value.height}`,
|
|
346
346
|
width: "100%"
|
|
347
347
|
}, [
|
|
348
|
-
v(
|
|
349
|
-
_("defs", null, [v(
|
|
348
|
+
v(O(R)),
|
|
349
|
+
_("defs", null, [v(f, {
|
|
350
350
|
t: "linear",
|
|
351
351
|
x1: "0%",
|
|
352
352
|
y1: "0%",
|
|
353
353
|
x2: "100%",
|
|
354
354
|
y2: "0%",
|
|
355
|
-
id: `sparkbar_gradient_${
|
|
355
|
+
id: `sparkbar_gradient_${r}_${H.value}`,
|
|
356
356
|
stops: [[
|
|
357
357
|
"0%",
|
|
358
|
-
|
|
358
|
+
O(u)(O(n)(t.color, .03), 100 - U.value.style.bar.gradient.intensity),
|
|
359
359
|
1
|
|
360
360
|
], [
|
|
361
361
|
"100%",
|
|
@@ -368,7 +368,7 @@ var A = /* @__PURE__ */ e({ default: () => R }), j = [
|
|
|
368
368
|
width: Z.value.width,
|
|
369
369
|
x: 0,
|
|
370
370
|
y: 0,
|
|
371
|
-
fill:
|
|
371
|
+
fill: O(u)(U.value.style.gutter.backgroundColor, U.value.style.gutter.opacity),
|
|
372
372
|
rx: Z.value.height / 2
|
|
373
373
|
}, null, 8, P),
|
|
374
374
|
_("rect", {
|
|
@@ -384,13 +384,13 @@ var A = /* @__PURE__ */ e({ default: () => R }), j = [
|
|
|
384
384
|
width: Z.value.width * Q(t),
|
|
385
385
|
x: 0,
|
|
386
386
|
y: 0,
|
|
387
|
-
fill: U.value.style.bar.gradient.show ? `url(#sparkbar_gradient_${
|
|
387
|
+
fill: U.value.style.bar.gradient.show ? `url(#sparkbar_gradient_${r}_${H.value})` : t.color,
|
|
388
388
|
rx: Z.value.height / 2
|
|
389
389
|
}, null, 8, I)
|
|
390
390
|
], 8, N))
|
|
391
391
|
], 44, j))), 256)),
|
|
392
|
-
e.$slots.source ? (
|
|
393
|
-
|
|
392
|
+
e.$slots.source ? (w(), g("div", L, [E(e.$slots, "source")], 512)) : h("", !0),
|
|
393
|
+
O(W) ? (w(), ue(oe, { key: 3 })) : h("", !0)
|
|
394
394
|
], 4));
|
|
395
395
|
}
|
|
396
396
|
};
|
|
@@ -1,20 +1,20 @@
|
|
|
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 { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import { computed as
|
|
2
|
+
import { At as t, K as n, Y as ee, et as r, ft as te, i as ne, qt as i, t as re, vt as a, y as o } from "./lib-CnHx5WfV.js";
|
|
3
|
+
import { t as ie } from "./useConfig-DYM3f6EI.js";
|
|
4
|
+
import { n as s, t as ae } from "./BaseScanner-DZvpgOjM.js";
|
|
5
|
+
import { t as c } from "./useNestedProp-D8NuRneO.js";
|
|
6
|
+
import { t as l } from "./useThemeCheck-C43Tcqmk.js";
|
|
7
|
+
import { t as u } from "./DefGrad-DVBqDjhO.js";
|
|
8
|
+
import { t as d } from "./useChartAccessibility-DYqac8yF.js";
|
|
9
|
+
import { t as f } from "./usePrefersMotion-BC-CsqR1.js";
|
|
10
|
+
import { t as oe } from "./vue_ui_sparkgauge-BX1MS3bA.js";
|
|
11
|
+
import { computed as p, createBlock as se, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createVNode as _, defineAsyncComponent as ce, normalizeClass as v, normalizeStyle as y, onBeforeUnmount as le, onMounted as b, openBlock as x, ref as S, renderSlot as C, toDisplayString as w, toRefs as ue, unref as T, watch as E } from "vue";
|
|
12
12
|
//#region src/components/vue-ui-sparkgauge.vue
|
|
13
|
-
var
|
|
13
|
+
var D = /* @__PURE__ */ e({ default: () => j }), de = ["xmlns", "viewBox"], fe = ["width", "height"], pe = [
|
|
14
14
|
"d",
|
|
15
15
|
"stroke",
|
|
16
16
|
"stroke-linecap"
|
|
17
|
-
],
|
|
17
|
+
], me = [
|
|
18
18
|
"d",
|
|
19
19
|
"stroke",
|
|
20
20
|
"stroke-linecap",
|
|
@@ -51,7 +51,7 @@ var E = /* @__PURE__ */ e({ default: () => j }), fe = ["xmlns", "viewBox"], pe =
|
|
|
51
51
|
}
|
|
52
52
|
},
|
|
53
53
|
setup(e) {
|
|
54
|
-
let
|
|
54
|
+
let D = ce(() => import("./PackageVersion-BoTvk0i5.js").then((e) => e.t)), { vue_ui_sparkgauge: j } = ie(), { isThemeValid: M, warnInvalidTheme: N } = l(), P = f(), F = S(null), I = e, L = S(n()), R = S(W()), z = p(() => R.value.style.animation.show && !P.value), he = p(() => i({
|
|
55
55
|
defaultConfig: { style: {
|
|
56
56
|
animation: { show: !1 },
|
|
57
57
|
background: "#99999930",
|
|
@@ -63,8 +63,8 @@ var E = /* @__PURE__ */ e({ default: () => j }), fe = ["xmlns", "viewBox"], pe =
|
|
|
63
63
|
gutter: { color: "#6A6A6A80" }
|
|
64
64
|
} },
|
|
65
65
|
userConfig: R.value.skeletonConfig ?? {}
|
|
66
|
-
})), { loading: B, FINAL_DATASET: V } =
|
|
67
|
-
...
|
|
66
|
+
})), { loading: B, FINAL_DATASET: V } = s({
|
|
67
|
+
...ue(I),
|
|
68
68
|
FINAL_CONFIG: R,
|
|
69
69
|
prepareConfig: W,
|
|
70
70
|
skeletonDataset: I.config?.skeletonDataset ?? {
|
|
@@ -73,44 +73,44 @@ var E = /* @__PURE__ */ e({ default: () => j }), fe = ["xmlns", "viewBox"], pe =
|
|
|
73
73
|
max: 1,
|
|
74
74
|
title: ""
|
|
75
75
|
},
|
|
76
|
-
skeletonConfig:
|
|
76
|
+
skeletonConfig: i({
|
|
77
77
|
defaultConfig: R.value,
|
|
78
78
|
userConfig: he.value
|
|
79
79
|
})
|
|
80
|
-
}), H =
|
|
80
|
+
}), H = p(() => {
|
|
81
81
|
let e = V.value.min ?? 0, t = V.value.max ?? 0;
|
|
82
82
|
return {
|
|
83
83
|
min: e,
|
|
84
84
|
max: t,
|
|
85
85
|
diff: t - e
|
|
86
86
|
};
|
|
87
|
-
}), U =
|
|
87
|
+
}), U = p(() => H.value.diff / R.value.style.animation.speedMs), { svgRef: ge } = d({ config: { text: I.dataset?.title || "" } });
|
|
88
88
|
function W() {
|
|
89
|
-
let e =
|
|
89
|
+
let e = c({
|
|
90
90
|
userConfig: I.config,
|
|
91
91
|
defaultConfig: j
|
|
92
92
|
}), t = e.theme;
|
|
93
93
|
if (!t) return e;
|
|
94
94
|
if (!M.value(e)) return N(e), e;
|
|
95
|
-
let n =
|
|
96
|
-
userConfig:
|
|
95
|
+
let n = c({
|
|
96
|
+
userConfig: oe[t] || I.config,
|
|
97
97
|
defaultConfig: e
|
|
98
98
|
});
|
|
99
|
-
return
|
|
99
|
+
return c({
|
|
100
100
|
userConfig: I.config,
|
|
101
101
|
defaultConfig: n
|
|
102
102
|
});
|
|
103
103
|
}
|
|
104
|
-
|
|
104
|
+
b(() => {
|
|
105
105
|
K();
|
|
106
106
|
});
|
|
107
|
-
let G =
|
|
107
|
+
let G = p(() => R.value.debug);
|
|
108
108
|
function K() {
|
|
109
|
-
|
|
109
|
+
t(I.dataset) ? r({
|
|
110
110
|
componentName: "VueUiSparkgauge",
|
|
111
111
|
type: "dataset",
|
|
112
112
|
debug: G.value
|
|
113
|
-
}) :
|
|
113
|
+
}) : te({
|
|
114
114
|
datasetObject: I.dataset,
|
|
115
115
|
requiredAttributes: [
|
|
116
116
|
"value",
|
|
@@ -118,7 +118,7 @@ var E = /* @__PURE__ */ e({ default: () => j }), fe = ["xmlns", "viewBox"], pe =
|
|
|
118
118
|
"max"
|
|
119
119
|
]
|
|
120
120
|
}).forEach((e) => {
|
|
121
|
-
|
|
121
|
+
r({
|
|
122
122
|
componentName: "VueUiSparkgauge",
|
|
123
123
|
type: "datasetAttribute",
|
|
124
124
|
property: e,
|
|
@@ -126,19 +126,19 @@ var E = /* @__PURE__ */ e({ default: () => j }), fe = ["xmlns", "viewBox"], pe =
|
|
|
126
126
|
});
|
|
127
127
|
});
|
|
128
128
|
}
|
|
129
|
-
|
|
129
|
+
E(() => I.config, () => {
|
|
130
130
|
R.value = W(), J.value = z.value ? H.value.min : V.value.value, K();
|
|
131
131
|
}, { deep: !0 });
|
|
132
|
-
let q =
|
|
132
|
+
let q = p(() => ({
|
|
133
133
|
height: R.value.style.height,
|
|
134
134
|
width: 128,
|
|
135
135
|
base: R.value.style.basePosition
|
|
136
|
-
})), J =
|
|
137
|
-
|
|
136
|
+
})), J = S(z.value ? H.value.min : V.value.value);
|
|
137
|
+
E([() => V.value.value, z], ([e, t]) => {
|
|
138
138
|
Y(e || 0, t);
|
|
139
139
|
}, { immediate: !0 });
|
|
140
|
-
let _e =
|
|
141
|
-
|
|
140
|
+
let _e = p(() => J.value > H.value.max ? H.value.max : J.value < H.value.min ? H.value.min : J.value);
|
|
141
|
+
b(() => {
|
|
142
142
|
Y(V.value.value || 0);
|
|
143
143
|
});
|
|
144
144
|
function Y(e, t = z.value) {
|
|
@@ -151,40 +151,40 @@ var E = /* @__PURE__ */ e({ default: () => j }), fe = ["xmlns", "viewBox"], pe =
|
|
|
151
151
|
}
|
|
152
152
|
n();
|
|
153
153
|
}
|
|
154
|
-
let X =
|
|
154
|
+
let X = p(() => V.value.title ?? ""), Z = p(() => {
|
|
155
155
|
let e = H.value.diff;
|
|
156
156
|
if (!isFinite(e) || e === 0) return 0;
|
|
157
157
|
let t = H.value.min, n = _e.value;
|
|
158
158
|
return n >= 0 ? (n - t) / e : (Math.abs(t) - Math.abs(n)) / e;
|
|
159
|
-
}), Q =
|
|
160
|
-
return
|
|
159
|
+
}), Q = p(() => a(R.value.style.colors.min, R.value.style.colors.max, H.value.min, H.value.max, J.value)), $ = p(() => R.value.style.dataLabel.autoColor ? Q.value : R.value.style.dataLabel.color), ve = p(() => R.value.style.track.autoColor ? Q.value : R.value.style.track.color);
|
|
160
|
+
return le(() => {
|
|
161
161
|
F.value && cancelAnimationFrame(F.value);
|
|
162
|
-
}), (e, t) => (
|
|
162
|
+
}), (e, t) => (x(), h("div", {
|
|
163
163
|
class: "vue-data-ui-component vue-ui-sparkgauge",
|
|
164
|
-
style:
|
|
164
|
+
style: y(`font-family:${R.value.style.fontFamily};width: 100%; background:${R.value.style.background}`)
|
|
165
165
|
}, [
|
|
166
|
-
R.value.style.title.show && X.value && R.value.style.title.position === "top" ? (
|
|
166
|
+
R.value.style.title.show && X.value && R.value.style.title.position === "top" ? (x(), h("div", {
|
|
167
167
|
key: 0,
|
|
168
168
|
class: "vue-data-ui-sparkgauge-label",
|
|
169
|
-
style:
|
|
170
|
-
},
|
|
171
|
-
(
|
|
169
|
+
style: y(`font-size:${R.value.style.title.fontSize}px;text-align:${R.value.style.title.textAlign};font-weight:${R.value.style.title.bold ? "bold" : "normal"};color:${R.value.style.title.color}`)
|
|
170
|
+
}, w(X.value), 5)) : m("", !0),
|
|
171
|
+
(x(), h("svg", {
|
|
172
172
|
ref_key: "svgRef",
|
|
173
173
|
ref: ge,
|
|
174
|
-
xmlns:
|
|
174
|
+
xmlns: T(re),
|
|
175
175
|
viewBox: `0 0 ${q.value.width} ${q.value.height}`,
|
|
176
176
|
style: "overflow: visible; background:transparent; width:100%;"
|
|
177
177
|
}, [
|
|
178
|
-
|
|
179
|
-
e.$slots["chart-background"] && !
|
|
178
|
+
_(T(D)),
|
|
179
|
+
e.$slots["chart-background"] && !T(B) ? (x(), h("foreignObject", {
|
|
180
180
|
key: 0,
|
|
181
181
|
x: 0,
|
|
182
182
|
y: 0,
|
|
183
183
|
width: q.value.width,
|
|
184
184
|
height: q.value.height,
|
|
185
185
|
style: { pointerEvents: "none" }
|
|
186
|
-
}, [
|
|
187
|
-
|
|
186
|
+
}, [C(e.$slots, "chart-background")], 8, fe)) : m("", !0),
|
|
187
|
+
g("defs", null, [_(u, {
|
|
188
188
|
t: "linear",
|
|
189
189
|
id: `gradient_${L.value}`,
|
|
190
190
|
x1: "-10%",
|
|
@@ -201,14 +201,14 @@ var E = /* @__PURE__ */ e({ default: () => j }), fe = ["xmlns", "viewBox"], pe =
|
|
|
201
201
|
1
|
|
202
202
|
]]
|
|
203
203
|
}, null, 8, ["id", "stops"])]),
|
|
204
|
-
|
|
204
|
+
g("path", {
|
|
205
205
|
d: `M10 ${q.value.base} A 1 1 0 1 1 118 ${q.value.base}`,
|
|
206
206
|
stroke: R.value.style.gutter.color,
|
|
207
207
|
"stroke-width": 8,
|
|
208
208
|
"stroke-linecap": R.value.style.gutter.strokeLinecap,
|
|
209
209
|
fill: "none"
|
|
210
|
-
}, null, 8,
|
|
211
|
-
Z.value === 0 ?
|
|
210
|
+
}, null, 8, pe),
|
|
211
|
+
Z.value === 0 ? m("", !0) : (x(), h("path", {
|
|
212
212
|
key: 1,
|
|
213
213
|
d: `M10 ${q.value.base} A 1 1 0 1 1 118 ${q.value.base}`,
|
|
214
214
|
stroke: R.value.style.colors.showGradient ? `url(#gradient_${L.value})` : ve.value,
|
|
@@ -217,10 +217,10 @@ var E = /* @__PURE__ */ e({ default: () => j }), fe = ["xmlns", "viewBox"], pe =
|
|
|
217
217
|
fill: "none",
|
|
218
218
|
"stroke-dasharray": 169.5,
|
|
219
219
|
"stroke-dashoffset": 169.5 - 169.5 * Z.value,
|
|
220
|
-
class:
|
|
221
|
-
style:
|
|
222
|
-
}, null, 14,
|
|
223
|
-
|
|
220
|
+
class: v({ "vue-ui-sparkgauge-track": R.value.style.animation.show }),
|
|
221
|
+
style: y(R.value.style.animation.show ? `animation: vue-ui-sparkgauge-animation ${R.value.style.animation.speedMs}ms ease-in;` : "")
|
|
222
|
+
}, null, 14, me)),
|
|
223
|
+
T(B) ? (x(), h("rect", {
|
|
224
224
|
key: 2,
|
|
225
225
|
x: q.value.width / 2 - R.value.style.dataLabel.fontSize / 2,
|
|
226
226
|
y: q.value.base + 6 + R.value.style.dataLabel.offsetY - R.value.style.dataLabel.fontSize,
|
|
@@ -228,7 +228,7 @@ var E = /* @__PURE__ */ e({ default: () => j }), fe = ["xmlns", "viewBox"], pe =
|
|
|
228
228
|
height: R.value.style.dataLabel.fontSize,
|
|
229
229
|
fill: "#6A6A6A50",
|
|
230
230
|
rx: 3
|
|
231
|
-
}, null, 8, O)) : (
|
|
231
|
+
}, null, 8, O)) : (x(), h("text", {
|
|
232
232
|
key: 3,
|
|
233
233
|
"text-anchor": "middle",
|
|
234
234
|
x: q.value.width / 2,
|
|
@@ -236,25 +236,25 @@ var E = /* @__PURE__ */ e({ default: () => j }), fe = ["xmlns", "viewBox"], pe =
|
|
|
236
236
|
"font-size": R.value.style.dataLabel.fontSize,
|
|
237
237
|
fill: $.value,
|
|
238
238
|
"font-weight": R.value.style.dataLabel.bold ? "bold" : "normal"
|
|
239
|
-
},
|
|
239
|
+
}, w(T(ne)(R.value.style.dataLabel.formatter, T(o)(J.value), T(ee)({
|
|
240
240
|
p: R.value.style.dataLabel.prefix,
|
|
241
|
-
v:
|
|
241
|
+
v: T(o)(J.value),
|
|
242
242
|
s: R.value.style.dataLabel.suffix,
|
|
243
243
|
r: R.value.style.dataLabel.rounding
|
|
244
244
|
}), {
|
|
245
|
-
datapoint:
|
|
245
|
+
datapoint: T(o)(J.value),
|
|
246
246
|
color: $.value
|
|
247
247
|
})), 9, k))
|
|
248
|
-
], 8,
|
|
249
|
-
R.value.style.title.show && X.value && R.value.style.title.position === "bottom" ? (
|
|
248
|
+
], 8, de)),
|
|
249
|
+
R.value.style.title.show && X.value && R.value.style.title.position === "bottom" ? (x(), h("div", {
|
|
250
250
|
key: 1,
|
|
251
251
|
class: "vue-data-ui-sparkgauge-label",
|
|
252
|
-
style:
|
|
253
|
-
},
|
|
254
|
-
e.$slots.source ? (
|
|
255
|
-
|
|
252
|
+
style: y(`font-size:${R.value.style.title.fontSize}px;text-align:${R.value.style.title.textAlign};font-weight:${R.value.style.title.bold ? "bold" : "normal"};font-weight:${R.value.style.title.bold ? "bold" : "normal"};color:${R.value.style.title.color}`)
|
|
253
|
+
}, w(X.value), 5)) : m("", !0),
|
|
254
|
+
e.$slots.source ? (x(), h("div", A, [C(e.$slots, "source")], 512)) : m("", !0),
|
|
255
|
+
C(e.$slots, "skeleton", {}, () => [T(B) ? (x(), se(ae, { key: 0 })) : m("", !0)])
|
|
256
256
|
], 4));
|
|
257
257
|
}
|
|
258
258
|
};
|
|
259
259
|
//#endregion
|
|
260
|
-
export {
|
|
260
|
+
export { D as n, j as t };
|