vue-data-ui 3.22.0 → 3.22.2
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-_pDGXl76.js → Arrow-BGhJI-qh.js} +1 -1
- package/dist/{BaseDraggableDialog-O8jn9Lvi.js → BaseDraggableDialog-a9xCKjW-.js} +2 -2
- package/dist/{BaseIcon-CWXbczu_.js → BaseIcon-DEtwcvEH.js} +1 -1
- package/dist/{BaseLegendToggle-CUYal8mC.js → BaseLegendToggle-B-lM0iV1.js} +1 -1
- package/dist/{BaseZoomControls-JwSGzoKi.js → BaseZoomControls-BjjT6vtB.js} +2 -2
- package/dist/{ColorPicker-CCqmzGGo.js → ColorPicker-DMLahA2S.js} +2 -2
- package/dist/{DataTable-G9aclxhk.js → DataTable-DJZgdnIn.js} +2 -2
- package/dist/{Legend-CAStwHdx.js → Legend-BVDhEEsC.js} +2 -2
- package/dist/{NonSvgPenAndPaper-BLy8zMox.js → NonSvgPenAndPaper-Dwq_M6Bz.js} +13 -13
- package/dist/{PackageVersion-DxBQctV8.js → PackageVersion-Dx81ZIAL.js} +1 -1
- package/dist/{PenAndPaper-z1woaB1V.js → PenAndPaper-DJIIG6dv.js} +13 -13
- package/dist/{Shape-BubavoqO.js → Shape-C5OvuwII.js} +1 -1
- package/dist/{Slicer-JCOpjPU7.js → Slicer-ClR833cP.js} +2 -2
- package/dist/{SlicerPreview-BA_RDgVn.js → SlicerPreview-CAhqG_ZQ.js} +12 -12
- package/dist/{SparkTooltip-DMFXQmFi.js → SparkTooltip-DTzo8Sah.js} +6 -6
- package/dist/{Title-DH6G8_cZ.js → Title-CVYf1f8m.js} +1 -1
- package/dist/{Tooltip-979Ytd8R.js → Tooltip-BmGCBJuU.js} +1 -1
- package/dist/{UserOptions-rx9hUnOy.js → UserOptions-xqbNpHi2.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-CtV3uxDJ.js → dom-to-png-rjAIVHxa.js} +1 -1
- package/dist/exposedLib-CffbQxjN.js +19 -0
- package/dist/{img-C_RNNswI.js → img-BCAOkqfM.js} +1 -1
- package/dist/{labelUtils-Bycs-017.js → labelUtils-C0D1tjig.js} +1 -1
- package/dist/{lib-AJRHFE5U.js → lib-CXicicWN.js} +155 -126
- package/dist/{package-0oRlvBuX.js → package-CILLITOI.js} +1 -1
- package/dist/{pdf-CdX23zf1.js → pdf-ChYv2jb6.js} +1 -1
- package/dist/{render-common-DSiH7qj-.js → render-common-bMAFQ_qf.js} +2 -2
- 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/vue-data-ui.d.ts +7 -10
- package/dist/{useAutoSizeLabelsInsideViewbox-kjVKQz36.js → useAutoSizeLabelsInsideViewbox-B4-0yo3K.js} +1 -1
- package/dist/{useConfig-Br1uzq_L.js → useConfig-Bf_EBbe3.js} +4 -1
- package/dist/{useNestedProp-DtcXIg7n.js → useNestedProp-APyFoLCQ.js} +1 -1
- package/dist/{useObjectBindings-CxQ6A5pi.js → useObjectBindings-Byts-nf-.js} +1 -1
- package/dist/{usePrinter-6n2MzVyV.js → usePrinter-Dng0UK-G.js} +2 -2
- package/dist/utils.js +3 -3
- package/dist/{vue-data-ui-DoViN_4r.js → vue-data-ui-DD-txoS1.js} +68 -68
- package/dist/vue-data-ui.js +72 -72
- package/dist/vue-ui-3d-bar-DxfNdF2e.js +1757 -0
- package/dist/{vue-ui-accordion-HvsT8_RM.js → vue-ui-accordion-Di_givzQ.js} +4 -4
- package/dist/vue-ui-age-pyramid-CTwMfsqS.js +1238 -0
- package/dist/{vue-ui-annotator-7s5ly6XJ.js → vue-ui-annotator-tRkLFMQ9.js} +60 -60
- package/dist/{vue-ui-bullet-B-bWGz6d.js → vue-ui-bullet-9gtGJaGb.js} +23 -23
- package/dist/{vue-ui-bump-DM-hF-AK.js → vue-ui-bump-BJ5O8Mps.js} +400 -400
- package/dist/{vue-ui-candlestick-BfOvntqR.js → vue-ui-candlestick-CJ_VVYbJ.js} +50 -50
- package/dist/vue-ui-carousel-table-8s8BSy-K.js +455 -0
- package/dist/vue-ui-chestnut-D3-ck2h2.js +2010 -0
- package/dist/vue-ui-chord-1BitQtEw.js +1391 -0
- package/dist/{vue-ui-circle-pack-BBaRLELd.js → vue-ui-circle-pack-DVMhDFKU.js} +44 -44
- package/dist/{vue-ui-cursor-DWlKtcab.js → vue-ui-cursor-D7yh10hX.js} +61 -61
- package/dist/{vue-ui-dag-BAKU4jBj.js → vue-ui-dag--LFEAAf_.js} +18 -18
- package/dist/{vue-ui-dashboard-DE4R55nU.js → vue-ui-dashboard-COeO878g.js} +70 -70
- package/dist/{vue-ui-digits-B416Mj46.js → vue-ui-digits-C50FVr7C.js} +4 -4
- package/dist/{vue-ui-donut-BuGSF4pM.js → vue-ui-donut-BzKXqQA2.js} +160 -160
- package/dist/{vue-ui-donut-BugVAUHv.js → vue-ui-donut-NHjQzFO5.js} +474 -474
- package/dist/vue-ui-donut-evolution-lPkwit2C.js +1510 -0
- package/dist/vue-ui-dumbbell-hlEfvbbf.js +1530 -0
- package/dist/{vue-ui-flow-BoEP6hmg.js → vue-ui-flow-Bg_OSszc.js} +43 -43
- package/dist/vue-ui-funnel-B_bK0jJB.js +777 -0
- package/dist/{vue-ui-galaxy-CB5F8Q-u.js → vue-ui-galaxy-WVCUzcYc.js} +301 -301
- package/dist/vue-ui-gauge-Cqeko0wA.js +920 -0
- package/dist/{vue-ui-geo-BAy4kNv-.js → vue-ui-geo-DtzXRvmx.js} +22 -22
- package/dist/{vue-ui-gizmo-DjA8cqcl.js → vue-ui-gizmo-hIFd7qck.js} +4 -4
- package/dist/{vue-ui-heatmap-CMlxUI7Q.js → vue-ui-heatmap-yPlwc3l_.js} +95 -95
- package/dist/vue-ui-history-plot-BGmcDg2w.js +1554 -0
- package/dist/{vue-ui-horizontal-bar-XgzEVwOK.js → vue-ui-horizontal-bar-CJciNHpT.js} +264 -264
- package/dist/{vue-ui-kpi-B5Lu5U1S.js → vue-ui-kpi-DmSe1QGb.js} +4 -4
- package/dist/{vue-ui-mini-loader-CyYpLcrt.js → vue-ui-mini-loader-CqxI6DwN.js} +3 -3
- package/dist/{vue-ui-molecule-DzpgAmZn.js → vue-ui-molecule-w-94Uktn.js} +181 -181
- package/dist/{vue-ui-mood-radar-DMgYQtOw.js → vue-ui-mood-radar-B3OGWGHR.js} +29 -29
- package/dist/{vue-ui-nested-donuts-BHX0QqvR.js → vue-ui-nested-donuts-Dv_yE5EV.js} +211 -211
- package/dist/{vue-ui-onion-CYh7tdS0.js → vue-ui-onion-BQbI0Vxd.js} +34 -34
- package/dist/{vue-ui-parallel-coordinate-plot-BTaG92hV.js → vue-ui-parallel-coordinate-plot-ColST3Jj.js} +40 -40
- package/dist/vue-ui-quadrant-BB7qdXK0.js +1978 -0
- package/dist/{vue-ui-quick-chart-CHSUGLTx.js → vue-ui-quick-chart-CGDeo3Fx.js} +358 -358
- package/dist/vue-ui-radar-DqDn14DL.js +1281 -0
- package/dist/{vue-ui-rating-BoBLJm55.js → vue-ui-rating-ChDwpol2.js} +34 -34
- package/dist/vue-ui-relation-circle-BvfZqcK0.js +924 -0
- package/dist/{vue-ui-ridgeline-q_UhtM4M.js → vue-ui-ridgeline-Cq8z57xB.js} +219 -219
- package/dist/{vue-ui-rings-VOjUZu2b.js → vue-ui-rings-Ds-sgNPK.js} +36 -36
- package/dist/{vue-ui-scatter-DETMofE2.js → vue-ui-scatter-BgOVUzQ3.js} +75 -75
- package/dist/{vue-ui-skeleton-D36VILNm.js → vue-ui-skeleton-DJ5KAbfV.js} +42 -42
- package/dist/{vue-ui-smiley-CPbUSUTQ.js → vue-ui-smiley-fFrNX-Gl.js} +17 -17
- package/dist/{vue-ui-spark-trend-XpEbgNeK.js → vue-ui-spark-trend-D6OBWxmg.js} +92 -92
- package/dist/{vue-ui-sparkbar-Dq1hnBhL.js → vue-ui-sparkbar-CtCP8O44.js} +78 -78
- package/dist/{vue-ui-sparkgauge-CbAakuhB.js → vue-ui-sparkgauge-CZDkyViI.js} +38 -38
- package/dist/vue-ui-sparkhistogram-DgruLf33.js +560 -0
- package/dist/vue-ui-sparkline-CJKE7Xcl.js +1547 -0
- package/dist/{vue-ui-sparkstackbar-OprYrGQQ.js → vue-ui-sparkstackbar-BSV0M-2u.js} +162 -162
- package/dist/{vue-ui-stackbar-Bt0FKlf7.js → vue-ui-stackbar-pnlYCnTj.js} +67 -67
- package/dist/vue-ui-stackline-DS_MPmc1.js +2398 -0
- package/dist/{vue-ui-strip-plot-DdzflSOm.js → vue-ui-strip-plot-DSKOrJZX.js} +49 -49
- package/dist/{vue-ui-table-BZbLau0d.js → vue-ui-table-c1FPEwLM.js} +87 -87
- package/dist/{vue-ui-table-heatmap-DX80uRHe.js → vue-ui-table-heatmap-CMQJXnP8.js} +17 -17
- package/dist/vue-ui-table-sparkline-CAS9Pk60.js +712 -0
- package/dist/vue-ui-thermometer-w3eeJv9s.js +763 -0
- package/dist/{vue-ui-timer-smc39MBP.js → vue-ui-timer-CSP48eS-.js} +6 -6
- package/dist/{vue-ui-tiremarks-MwPUc9H4.js → vue-ui-tiremarks-DJvXj1P3.js} +19 -19
- package/dist/vue-ui-treemap-BaOMXTR1.js +1587 -0
- package/dist/vue-ui-waffle-Bo22Ph8n.js +1362 -0
- package/dist/{vue-ui-wheel-VQ5Sc_Kt.js → vue-ui-wheel-CbL52G-w.js} +51 -51
- package/dist/vue-ui-word-cloud-BqOCyp7c.js +1723 -0
- package/dist/{vue-ui-world-Dq9I3omC.js → vue-ui-world-BkjzCcVh.js} +445 -445
- package/dist/{vue-ui-xy-BRITAMZZ.js → vue-ui-xy-CVDNhnDY.js} +162 -162
- package/dist/{vue-ui-xy-D4D9tjiY.js → vue-ui-xy-DuwLRfr4.js} +537 -534
- package/dist/{vue-ui-xy-canvas-CYQF5hVa.js → vue-ui-xy-canvas-CXqGVMeQ.js} +65 -65
- package/package.json +2 -2
- package/dist/exposedLib-BJbE_A8E.js +0 -19
- package/dist/vue-ui-3d-bar-BUEcrSrc.js +0 -1757
- package/dist/vue-ui-age-pyramid-Zw5otO78.js +0 -1238
- package/dist/vue-ui-carousel-table-CrmVyfym.js +0 -455
- package/dist/vue-ui-chestnut-BQq65pNh.js +0 -2010
- package/dist/vue-ui-chord-BA2jFRMP.js +0 -1391
- package/dist/vue-ui-donut-evolution-C6fXP7QH.js +0 -1510
- package/dist/vue-ui-dumbbell-1K5kOirf.js +0 -1530
- package/dist/vue-ui-funnel-CheSqvyj.js +0 -777
- package/dist/vue-ui-gauge-Cjtovl1s.js +0 -920
- package/dist/vue-ui-history-plot-PkrNUPpp.js +0 -1554
- package/dist/vue-ui-quadrant-C00cEk5o.js +0 -1978
- package/dist/vue-ui-radar-jNxRTIur.js +0 -1281
- package/dist/vue-ui-relation-circle-Ne_rI2jS.js +0 -924
- package/dist/vue-ui-sparkhistogram-DpPjIA7n.js +0 -560
- package/dist/vue-ui-sparkline-DLay6Hog.js +0 -1513
- package/dist/vue-ui-stackline-CrUTz-k1.js +0 -2398
- package/dist/vue-ui-table-sparkline-C3_J575b.js +0 -707
- package/dist/vue-ui-thermometer-Bo32hwAO.js +0 -763
- package/dist/vue-ui-treemap-BNG7Zc04.js +0 -1587
- package/dist/vue-ui-waffle-D-9Ny9vN.js +0 -1362
- package/dist/vue-ui-word-cloud-BqsUdsCY.js +0 -1656
|
@@ -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
|
|
2
|
+
import { Et as t, Ft as n, G as r, H as i, It as a, Ut as o, Vt as ee, X as s, ct as te, i as c, kt as l, t as ne, x as re, y as ie } from "./lib-CXicicWN.js";
|
|
3
|
+
import { t as ae } from "./useConfig-Bf_EBbe3.js";
|
|
4
|
+
import { n as oe, t as se } from "./BaseScanner-DZvpgOjM.js";
|
|
5
|
+
import { t as u } from "./useNestedProp-APyFoLCQ.js";
|
|
6
|
+
import { t as ce } from "./useThemeCheck-C43Tcqmk.js";
|
|
7
|
+
import { t as le } from "./usePrefersMotion-BC-CsqR1.js";
|
|
8
|
+
import { t as ue } from "./vue_ui_sparkbar-z6qO--Kf.js";
|
|
9
|
+
import { Fragment as d, computed as f, createBlock as p, 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-Dx81ZIAL.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(i()), H = x(K()), xe = f(() => o({
|
|
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: o({
|
|
100
100
|
defaultConfig: H.value,
|
|
101
101
|
userConfig: xe.value
|
|
102
102
|
})
|
|
103
|
-
}), G =
|
|
103
|
+
}), G = f(() => !!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: ue[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 : ee[t] || l
|
|
121
121
|
};
|
|
122
122
|
}
|
|
123
123
|
E(() => B.config, (e) => {
|
|
124
124
|
H.value = K();
|
|
125
125
|
}, { deep: !0 });
|
|
126
|
-
let Ce =
|
|
126
|
+
let Ce = f(() => re(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
|
+
t(B.dataset) && s({
|
|
133
133
|
componentName: "VueUiSparkbar",
|
|
134
134
|
type: "dataset",
|
|
135
135
|
debug: G.value
|
|
@@ -156,17 +156,17 @@ 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 =
|
|
164
|
+
}), we = f(() => Math.max(...W.value.map((e) => e.value))), Te = f(() => (W.value.forEach((e, t) => {
|
|
165
165
|
te({
|
|
166
166
|
datasetObject: e,
|
|
167
167
|
requiredAttributes: ["name", "value"]
|
|
168
168
|
}).forEach((e) => {
|
|
169
|
-
|
|
169
|
+
s({
|
|
170
170
|
componentName: "VueUiSparkbar",
|
|
171
171
|
type: "datasetSerieAttribute",
|
|
172
172
|
property: e,
|
|
@@ -177,7 +177,7 @@ var D = /* @__PURE__ */ e({ default: () => R }), O = [
|
|
|
177
177
|
}), q.value.map((e, t) => ({
|
|
178
178
|
...e,
|
|
179
179
|
value: e.value || 0,
|
|
180
|
-
color:
|
|
180
|
+
color: ie(e.color) || Ce.value[t] || l[t] || l[t % l.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(n)(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(d, null, he(Te.value, (t, i) => (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 && i !== w(W).length - 1 ? "margin-bottom:6px" : ""}`),
|
|
253
253
|
onClick: (e) => De(t, i),
|
|
254
254
|
onMouseenter: (e) => Oe(t, i),
|
|
255
255
|
onMouseleave: (e) => ke(t, i)
|
|
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(c)(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: i
|
|
271
271
|
}),
|
|
272
|
-
targetLabel:
|
|
272
|
+
targetLabel: w(c)(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: i
|
|
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(d, { 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(c)(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: i
|
|
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(c)(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: i
|
|
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(ne),
|
|
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_${i}_${V.value}`
|
|
354
|
-
}, [
|
|
354
|
+
}, [g("stop", {
|
|
355
355
|
offset: "0%",
|
|
356
|
-
"stop-color":
|
|
357
|
-
}, null, 8, M),
|
|
356
|
+
"stop-color": w(n)(w(a)(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(n)(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(), p(se, { key: 3 })) : m("", !0)
|
|
389
389
|
], 4));
|
|
390
390
|
}
|
|
391
391
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
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 { computed as
|
|
2
|
+
import { Et as t, G as n, H as ee, Ut as r, X as i, ct as te, i as ne, mt as re, t as ie, v as a } from "./lib-CXicicWN.js";
|
|
3
|
+
import { t as o } from "./useConfig-Bf_EBbe3.js";
|
|
4
|
+
import { n as ae, t as oe } from "./BaseScanner-DZvpgOjM.js";
|
|
5
|
+
import { t as s } from "./useNestedProp-APyFoLCQ.js";
|
|
6
|
+
import { t as se } from "./useThemeCheck-C43Tcqmk.js";
|
|
7
|
+
import { t as c } from "./useChartAccessibility-DYqac8yF.js";
|
|
8
|
+
import { t as l } from "./usePrefersMotion-BC-CsqR1.js";
|
|
9
|
+
import { t as u } from "./vue_ui_sparkgauge-BX1MS3bA.js";
|
|
10
|
+
import { computed as d, createBlock as ce, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createVNode as le, defineAsyncComponent as ue, normalizeClass as de, normalizeStyle as h, onBeforeUnmount as g, onMounted as _, openBlock as v, ref as y, renderSlot as b, toDisplayString as x, toRefs as fe, unref as S, watch as C } from "vue";
|
|
11
11
|
//#region src/components/vue-ui-sparkgauge.vue
|
|
12
12
|
var w = /* @__PURE__ */ e({ default: () => j }), pe = ["xmlns", "viewBox"], me = ["width", "height"], he = ["id"], ge = ["stop-color"], T = ["stop-color"], E = [
|
|
13
13
|
"d",
|
|
@@ -50,7 +50,7 @@ var w = /* @__PURE__ */ e({ default: () => j }), pe = ["xmlns", "viewBox"], me =
|
|
|
50
50
|
}
|
|
51
51
|
},
|
|
52
52
|
setup(e) {
|
|
53
|
-
let w =
|
|
53
|
+
let w = ue(() => import("./PackageVersion-Dx81ZIAL.js").then((e) => e.t)), { vue_ui_sparkgauge: j } = o(), { isThemeValid: M, warnInvalidTheme: N } = se(), P = l(), F = y(null), I = e, L = y(ee()), R = y(W()), z = d(() => R.value.style.animation.show && !P.value), _e = d(() => r({
|
|
54
54
|
defaultConfig: { style: {
|
|
55
55
|
animation: { show: !1 },
|
|
56
56
|
background: "#99999930",
|
|
@@ -62,7 +62,7 @@ var w = /* @__PURE__ */ e({ default: () => j }), pe = ["xmlns", "viewBox"], me =
|
|
|
62
62
|
gutter: { color: "#6A6A6A80" }
|
|
63
63
|
} },
|
|
64
64
|
userConfig: R.value.skeletonConfig ?? {}
|
|
65
|
-
})), { loading: B, FINAL_DATASET: V } =
|
|
65
|
+
})), { loading: B, FINAL_DATASET: V } = ae({
|
|
66
66
|
...fe(I),
|
|
67
67
|
FINAL_CONFIG: R,
|
|
68
68
|
prepareConfig: W,
|
|
@@ -76,26 +76,26 @@ var w = /* @__PURE__ */ e({ default: () => j }), pe = ["xmlns", "viewBox"], me =
|
|
|
76
76
|
defaultConfig: R.value,
|
|
77
77
|
userConfig: _e.value
|
|
78
78
|
})
|
|
79
|
-
}), H =
|
|
79
|
+
}), H = d(() => {
|
|
80
80
|
let e = V.value.min ?? 0, t = V.value.max ?? 0;
|
|
81
81
|
return {
|
|
82
82
|
min: e,
|
|
83
83
|
max: t,
|
|
84
84
|
diff: t - e
|
|
85
85
|
};
|
|
86
|
-
}), U =
|
|
86
|
+
}), U = d(() => H.value.diff / R.value.style.animation.speedMs), { svgRef: ve } = c({ config: { text: I.dataset?.title || "" } });
|
|
87
87
|
function W() {
|
|
88
|
-
let e =
|
|
88
|
+
let e = s({
|
|
89
89
|
userConfig: I.config,
|
|
90
90
|
defaultConfig: j
|
|
91
91
|
}), t = e.theme;
|
|
92
92
|
if (!t) return e;
|
|
93
93
|
if (!M.value(e)) return N(e), e;
|
|
94
|
-
let n =
|
|
95
|
-
userConfig:
|
|
94
|
+
let n = s({
|
|
95
|
+
userConfig: u[t] || I.config,
|
|
96
96
|
defaultConfig: e
|
|
97
97
|
});
|
|
98
|
-
return
|
|
98
|
+
return s({
|
|
99
99
|
userConfig: I.config,
|
|
100
100
|
defaultConfig: n
|
|
101
101
|
});
|
|
@@ -103,13 +103,13 @@ var w = /* @__PURE__ */ e({ default: () => j }), pe = ["xmlns", "viewBox"], me =
|
|
|
103
103
|
_(() => {
|
|
104
104
|
K();
|
|
105
105
|
});
|
|
106
|
-
let G =
|
|
106
|
+
let G = d(() => R.value.debug);
|
|
107
107
|
function K() {
|
|
108
|
-
|
|
108
|
+
t(I.dataset) ? i({
|
|
109
109
|
componentName: "VueUiSparkgauge",
|
|
110
110
|
type: "dataset",
|
|
111
111
|
debug: G.value
|
|
112
|
-
}) :
|
|
112
|
+
}) : te({
|
|
113
113
|
datasetObject: I.dataset,
|
|
114
114
|
requiredAttributes: [
|
|
115
115
|
"value",
|
|
@@ -117,7 +117,7 @@ var w = /* @__PURE__ */ e({ default: () => j }), pe = ["xmlns", "viewBox"], me =
|
|
|
117
117
|
"max"
|
|
118
118
|
]
|
|
119
119
|
}).forEach((e) => {
|
|
120
|
-
|
|
120
|
+
i({
|
|
121
121
|
componentName: "VueUiSparkgauge",
|
|
122
122
|
type: "datasetAttribute",
|
|
123
123
|
property: e,
|
|
@@ -128,7 +128,7 @@ var w = /* @__PURE__ */ e({ default: () => j }), pe = ["xmlns", "viewBox"], me =
|
|
|
128
128
|
C(() => I.config, () => {
|
|
129
129
|
R.value = W(), J.value = z.value ? H.value.min : V.value.value, K();
|
|
130
130
|
}, { deep: !0 });
|
|
131
|
-
let q =
|
|
131
|
+
let q = d(() => ({
|
|
132
132
|
height: R.value.style.height,
|
|
133
133
|
width: 128,
|
|
134
134
|
base: R.value.style.basePosition
|
|
@@ -136,7 +136,7 @@ var w = /* @__PURE__ */ e({ default: () => j }), pe = ["xmlns", "viewBox"], me =
|
|
|
136
136
|
C([() => V.value.value, z], ([e, t]) => {
|
|
137
137
|
Y(e || 0, t);
|
|
138
138
|
}, { immediate: !0 });
|
|
139
|
-
let ye =
|
|
139
|
+
let ye = d(() => J.value > H.value.max ? H.value.max : J.value < H.value.min ? H.value.min : J.value);
|
|
140
140
|
_(() => {
|
|
141
141
|
Y(V.value.value || 0);
|
|
142
142
|
});
|
|
@@ -150,31 +150,31 @@ var w = /* @__PURE__ */ e({ default: () => j }), pe = ["xmlns", "viewBox"], me =
|
|
|
150
150
|
}
|
|
151
151
|
n();
|
|
152
152
|
}
|
|
153
|
-
let X =
|
|
153
|
+
let X = d(() => V.value.title ?? ""), Z = d(() => {
|
|
154
154
|
let e = H.value.diff;
|
|
155
155
|
if (!isFinite(e) || e === 0) return 0;
|
|
156
156
|
let t = H.value.min, n = ye.value;
|
|
157
157
|
return n >= 0 ? (n - t) / e : (Math.abs(t) - Math.abs(n)) / e;
|
|
158
|
-
}), Q =
|
|
159
|
-
return
|
|
158
|
+
}), Q = d(() => re(R.value.style.colors.min, R.value.style.colors.max, H.value.min, H.value.max, J.value)), $ = d(() => R.value.style.dataLabel.autoColor ? Q.value : R.value.style.dataLabel.color), be = d(() => R.value.style.track.autoColor ? Q.value : R.value.style.track.color);
|
|
159
|
+
return g(() => {
|
|
160
160
|
F.value && cancelAnimationFrame(F.value);
|
|
161
|
-
}), (e,
|
|
161
|
+
}), (e, t) => (v(), p("div", {
|
|
162
162
|
class: "vue-data-ui-component vue-ui-sparkgauge",
|
|
163
|
-
style:
|
|
163
|
+
style: h(`font-family:${R.value.style.fontFamily};width: 100%; background:${R.value.style.background}`)
|
|
164
164
|
}, [
|
|
165
165
|
R.value.style.title.show && X.value && R.value.style.title.position === "top" ? (v(), p("div", {
|
|
166
166
|
key: 0,
|
|
167
167
|
class: "vue-data-ui-sparkgauge-label",
|
|
168
|
-
style:
|
|
168
|
+
style: h(`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}`)
|
|
169
169
|
}, x(X.value), 5)) : f("", !0),
|
|
170
170
|
(v(), p("svg", {
|
|
171
171
|
ref_key: "svgRef",
|
|
172
172
|
ref: ve,
|
|
173
|
-
xmlns: S(
|
|
173
|
+
xmlns: S(ie),
|
|
174
174
|
viewBox: `0 0 ${q.value.width} ${q.value.height}`,
|
|
175
175
|
style: "overflow: visible; background:transparent; width:100%;"
|
|
176
176
|
}, [
|
|
177
|
-
|
|
177
|
+
le(S(w)),
|
|
178
178
|
e.$slots["chart-background"] && !S(B) ? (v(), p("foreignObject", {
|
|
179
179
|
key: 0,
|
|
180
180
|
x: 0,
|
|
@@ -212,8 +212,8 @@ var w = /* @__PURE__ */ e({ default: () => j }), pe = ["xmlns", "viewBox"], me =
|
|
|
212
212
|
fill: "none",
|
|
213
213
|
"stroke-dasharray": 169.5,
|
|
214
214
|
"stroke-dashoffset": 169.5 - 169.5 * Z.value,
|
|
215
|
-
class:
|
|
216
|
-
style:
|
|
215
|
+
class: de({ "vue-ui-sparkgauge-track": R.value.style.animation.show }),
|
|
216
|
+
style: h(R.value.style.animation.show ? `animation: vue-ui-sparkgauge-animation ${R.value.style.animation.speedMs}ms ease-in;` : "")
|
|
217
217
|
}, null, 14, D)),
|
|
218
218
|
S(B) ? (v(), p("rect", {
|
|
219
219
|
key: 2,
|
|
@@ -231,23 +231,23 @@ var w = /* @__PURE__ */ e({ default: () => j }), pe = ["xmlns", "viewBox"], me =
|
|
|
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
|
-
}, x(S(
|
|
234
|
+
}, x(S(ne)(R.value.style.dataLabel.formatter, S(a)(J.value), S(n)({
|
|
235
235
|
p: R.value.style.dataLabel.prefix,
|
|
236
|
-
v: S(
|
|
236
|
+
v: S(a)(J.value),
|
|
237
237
|
s: R.value.style.dataLabel.suffix,
|
|
238
238
|
r: R.value.style.dataLabel.rounding
|
|
239
239
|
}), {
|
|
240
|
-
datapoint: S(
|
|
240
|
+
datapoint: S(a)(J.value),
|
|
241
241
|
color: $.value
|
|
242
242
|
})), 9, k))
|
|
243
243
|
], 8, pe)),
|
|
244
244
|
R.value.style.title.show && X.value && R.value.style.title.position === "bottom" ? (v(), p("div", {
|
|
245
245
|
key: 1,
|
|
246
246
|
class: "vue-data-ui-sparkgauge-label",
|
|
247
|
-
style:
|
|
247
|
+
style: h(`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}`)
|
|
248
248
|
}, x(X.value), 5)) : f("", !0),
|
|
249
249
|
e.$slots.source ? (v(), p("div", A, [b(e.$slots, "source")], 512)) : f("", !0),
|
|
250
|
-
b(e.$slots, "skeleton", {}, () => [S(B) ? (v(),
|
|
250
|
+
b(e.$slots, "skeleton", {}, () => [S(B) ? (v(), ce(oe, { key: 0 })) : f("", !0)])
|
|
251
251
|
], 4));
|
|
252
252
|
}
|
|
253
253
|
};
|