vue-data-ui 3.10.0 → 3.10.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-ChEFq9U7.js → Arrow-DWr41GRU.js} +1 -1
- package/dist/{BaseDraggableDialog-O2XSymlZ.js → BaseDraggableDialog-BQYfVNu8.js} +2 -2
- package/dist/{BaseIcon-B9bGT7HU.js → BaseIcon-4uOct8re.js} +18 -18
- package/dist/{BaseZoomControls-B4rpv4Kk.js → BaseZoomControls-Cb-Qq9_R.js} +2 -2
- package/dist/{ColorPicker-VKEPgk58.js → ColorPicker-Culsjrcr.js} +2 -2
- package/dist/{DataTable-DEwh__D8.js → DataTable-DyoDzNNY.js} +2 -2
- package/dist/{Legend-D2xmnFPH.js → Legend-DN5UJOBH.js} +2 -2
- package/dist/{NonSvgPenAndPaper-CxbOhI52.js → NonSvgPenAndPaper-CNMLfAk3.js} +3 -3
- package/dist/{PackageVersion-C-JOGZBL.js → PackageVersion-CQxJyGQr.js} +1 -1
- package/dist/{PenAndPaper-CulSakut.js → PenAndPaper-LTuSTmWE.js} +3 -3
- package/dist/{Shape-12_eh8zD.js → Shape-PzdCMGsP.js} +1 -1
- package/dist/{Slicer-EQH4YKwe.js → Slicer-DckZxvyx.js} +2 -2
- package/dist/{SlicerPreview-Ddfxn6es.js → SlicerPreview-CSc_cazO.js} +2 -2
- package/dist/{SparkTooltip-D_OsZuuE.js → SparkTooltip-BLTVhvm2.js} +1 -1
- package/dist/{Title-B5L2jweB.js → Title-NgeRXqRA.js} +1 -1
- package/dist/{Tooltip-DpfUZbt7.js → Tooltip-B6qvABDL.js} +1 -1
- package/dist/{UserOptions-5pXc4J-c.js → UserOptions-CX7Xsusk.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-WXGPkYro.js → dom-to-png-CzjUUVZt.js} +1 -1
- package/dist/{img-CqYIrJ8I.js → img-6fNF_rG0.js} +1 -1
- package/dist/{labelUtils-B3mOOEke.js → labelUtils-D6Y-n7cD.js} +1 -1
- package/dist/{lib-2iaAPQ_c.js → lib-CVHM9FhP.js} +188 -140
- package/dist/{pdf-Q5BpWMSa.js → pdf-Dd_6HF9L.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +3 -1
- package/dist/{useAutoSizeLabelsInsideViewbox-DmpzKQ9i.js → useAutoSizeLabelsInsideViewbox-CqeJ1kZA.js} +1 -1
- package/dist/{useNestedProp-BCt4DMkT.js → useNestedProp-Ckf_2P_V.js} +1 -1
- package/dist/{usePrinter-ChVMpU2f.js → usePrinter-1NmjuP-i.js} +2 -2
- package/dist/{useThemeCheck-DGJ31Vi5.js → useThemeCheck-D1ZYXUwG.js} +5 -3
- package/dist/{vue-data-ui-CwfD22m4.js → vue-data-ui-GAruO_UT.js} +68 -68
- package/dist/vue-data-ui.js +73 -73
- package/dist/{vue-ui-3d-bar-DAr11NEe.js → vue-ui-3d-bar-t_E9saCp.js} +222 -218
- package/dist/{vue-ui-accordion-CAXPDm31.js → vue-ui-accordion-DFKaB_05.js} +3 -3
- package/dist/{vue-ui-age-pyramid-KApqwR11.js → vue-ui-age-pyramid-DKlTGZ6m.js} +177 -173
- package/dist/{vue-ui-annotator-D-x-F49X.js → vue-ui-annotator-CNkhGqqn.js} +7 -7
- package/dist/{vue-ui-bullet-D3ZOexko.js → vue-ui-bullet-C4FXVy8_.js} +135 -131
- package/dist/{vue-ui-bump-BJUb7fNz.js → vue-ui-bump-BJZrexv4.js} +264 -260
- package/dist/{vue-ui-candlestick-BBwYtV1-.js → vue-ui-candlestick-P7w1YVT6.js} +304 -300
- package/dist/{vue-ui-carousel-table-DrzQReuc.js → vue-ui-carousel-table-DQk4RoWo.js} +4 -4
- package/dist/{vue-ui-chestnut-ByqOYfmS.js → vue-ui-chestnut-Co8x4We0.js} +326 -322
- package/dist/{vue-ui-chord-3k3MxDxL.js → vue-ui-chord-NjSRzToa.js} +171 -167
- package/dist/{vue-ui-circle-pack-U-fW2dBh.js → vue-ui-circle-pack-CwrgCRKX.js} +162 -158
- package/dist/{vue-ui-cursor-PxyKLKT4.js → vue-ui-cursor-Bh5-9JWm.js} +3 -3
- package/dist/{vue-ui-dag-BgB4pBHg.js → vue-ui-dag-BBGpjSzH.js} +451 -447
- package/dist/{vue-ui-dashboard-Bb0qmaCv.js → vue-ui-dashboard-ekbwnmce.js} +68 -68
- package/dist/{vue-ui-digits-DWt_f5c-.js → vue-ui-digits-DnsDASGD.js} +2 -2
- package/dist/{vue-ui-donut-Ce4aLPAr.js → vue-ui-donut-DvLh8qa2.js} +467 -463
- package/dist/{vue-ui-donut-evolution-Dn8sOIr-.js → vue-ui-donut-evolution-BiLhAVY8.js} +354 -350
- package/dist/{vue-ui-dumbbell-Bu8opmEM.js → vue-ui-dumbbell-C2OWcZvr.js} +240 -236
- package/dist/{vue-ui-flow-CavJTxRY.js → vue-ui-flow-Cp2le1ur.js} +171 -167
- package/dist/{vue-ui-funnel-CWSmOHEt.js → vue-ui-funnel-ClGo8z4y.js} +133 -129
- package/dist/{vue-ui-galaxy-CqeQVqG-.js → vue-ui-galaxy-DTAl_-40.js} +146 -142
- package/dist/{vue-ui-gauge-DnU9JZ0v.js → vue-ui-gauge-DOG6-lgt.js} +175 -171
- package/dist/{vue-ui-geo-Dg8W127k.js → vue-ui-geo-BpWyHXwd.js} +123 -119
- package/dist/{vue-ui-gizmo-BfyTXxBY.js → vue-ui-gizmo-BMq5dzK4.js} +3 -3
- package/dist/{vue-ui-heatmap-D_JOEm4-.js → vue-ui-heatmap-Bp9HI0Zo.js} +231 -227
- package/dist/{vue-ui-history-plot-DgMc6-9X.js → vue-ui-history-plot-CVM1jz1X.js} +252 -248
- package/dist/{vue-ui-horizontal-bar-BPX7YBdV.js → vue-ui-horizontal-bar-B0UY6b-O.js} +325 -321
- package/dist/{vue-ui-kpi-BqCS6onP.js → vue-ui-kpi-DgSmfw2q.js} +3 -3
- package/dist/{vue-ui-mini-loader-CcXuJ3iD.js → vue-ui-mini-loader-D8z1PwRZ.js} +2 -2
- package/dist/{vue-ui-molecule-CX-pPp0u.js → vue-ui-molecule-CUppdL5f.js} +183 -179
- package/dist/{vue-ui-mood-radar-3nHlZfrB.js → vue-ui-mood-radar-QN25VSAw.js} +162 -158
- package/dist/{vue-ui-nested-donuts-cz79gQlJ.js → vue-ui-nested-donuts-ywWUDYjT.js} +178 -174
- package/dist/{vue-ui-onion-yseOpPeu.js → vue-ui-onion-DmwZ1gg_.js} +185 -181
- package/dist/{vue-ui-parallel-coordinate-plot-Dqg_vJCM.js → vue-ui-parallel-coordinate-plot-Bz2ROYRD.js} +195 -191
- package/dist/{vue-ui-quadrant-D4UDUZoN.js → vue-ui-quadrant-CUpWOWF2.js} +243 -239
- package/dist/{vue-ui-quick-chart-BMDrPkAJ.js → vue-ui-quick-chart-CXrm_rzI.js} +295 -291
- package/dist/{vue-ui-radar-B_wSZVDb.js → vue-ui-radar-BqLjOOnJ.js} +168 -164
- package/dist/{vue-ui-rating-CBedYtOp.js → vue-ui-rating-W6I6pacT.js} +2 -2
- package/dist/{vue-ui-relation-circle-DydZv4Pf.js → vue-ui-relation-circle-CrYmJHLI.js} +185 -181
- package/dist/vue-ui-ridgeline-ZbmQXJxt.js +1306 -0
- package/dist/{vue-ui-rings-BdYnuNS7.js → vue-ui-rings-BxYoBfvT.js} +299 -295
- package/dist/{vue-ui-scatter-QISpPygj.js → vue-ui-scatter-BhJkoRBS.js} +354 -350
- package/dist/{vue-ui-skeleton-CdpD_Zjk.js → vue-ui-skeleton-Bg1akQqn.js} +3 -3
- package/dist/{vue-ui-smiley-CTeSlfZa.js → vue-ui-smiley-B23r7AWp.js} +2 -2
- package/dist/{vue-ui-spark-trend-Jgho2QgC.js → vue-ui-spark-trend-CJtfXMSj.js} +120 -116
- package/dist/{vue-ui-sparkbar-CLqcdko6.js → vue-ui-sparkbar-DHJdmNDm.js} +84 -80
- package/dist/{vue-ui-sparkgauge-BA3NDOhA.js → vue-ui-sparkgauge-ANfPLNuD.js} +81 -77
- package/dist/{vue-ui-sparkhistogram-fb8hGuCn.js → vue-ui-sparkhistogram-CIfYUXVZ.js} +109 -105
- package/dist/{vue-ui-sparkline-BWdvoOYj.js → vue-ui-sparkline-Bm0OmFUB.js} +184 -174
- package/dist/{vue-ui-sparkstackbar-DbbdPqIp.js → vue-ui-sparkstackbar-CCnnfsqG.js} +99 -95
- package/dist/{vue-ui-stackbar-MYly9iMc.js → vue-ui-stackbar-CK5is5H7.js} +376 -372
- package/dist/{vue-ui-stackline-L0q_GsYv.js → vue-ui-stackline-CFv2OUCL.js} +349 -345
- package/dist/{vue-ui-strip-plot-B7W1EZdY.js → vue-ui-strip-plot-CJ1Zkrhq.js} +248 -244
- package/dist/{vue-ui-table-WSRRp_nE.js → vue-ui-table-CMyYl8lE.js} +5 -5
- package/dist/{vue-ui-table-heatmap-Bqr4Eubg.js → vue-ui-table-heatmap-8kBdXO2V.js} +6 -6
- package/dist/{vue-ui-table-sparkline-UhaEz2jD.js → vue-ui-table-sparkline-Bo4nuBEx.js} +174 -170
- package/dist/{vue-ui-thermometer-BFwmgdMO.js → vue-ui-thermometer-h3voYVGJ.js} +133 -129
- package/dist/{vue-ui-timer-CoLOwKwP.js → vue-ui-timer-CazY_Z4R.js} +5 -5
- package/dist/{vue-ui-tiremarks-CvXOa3z4.js → vue-ui-tiremarks-CTa_gpit.js} +156 -152
- package/dist/{vue-ui-treemap-C8HbMbin.js → vue-ui-treemap-B6AuOtaA.js} +161 -157
- package/dist/{vue-ui-waffle-rS6LRZNV.js → vue-ui-waffle-DnEBC07H.js} +185 -181
- package/dist/{vue-ui-wheel-BGle0ni9.js → vue-ui-wheel-DFU2vMsP.js} +125 -121
- package/dist/{vue-ui-word-cloud-Dj1lJdtL.js → vue-ui-word-cloud-DgY58NEj.js} +179 -175
- package/dist/{vue-ui-world-C7d5vM6d.js → vue-ui-world-xEUaTJDk.js} +6 -6
- package/dist/{vue-ui-xy-canvas-CoBMpLeE.js → vue-ui-xy-canvas-eHl--9m7.js} +213 -209
- package/dist/{vue-ui-xy-De-FDHwh.js → vue-ui-xy-spqKboQb.js} +697 -693
- package/package.json +1 -1
- package/dist/vue-ui-ridgeline-BGerPYkY.js +0 -1302
|
@@ -1,33 +1,37 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { c as
|
|
3
|
-
import { u as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
const j = { style: { backgroundColor: "#1A1A1A", gutter: { backgroundColor: "#3A3A3A" }, bar: { gradient: { underlayerColor: "#1A1A1A" } }, labels: { name: { color: "#CCCCCC" } }, title: { color: "#CCCCCC" } } },
|
|
1
|
+
import { defineAsyncComponent as ce, useSlots as de, onMounted as L, ref as C, toRefs as ve, computed as x, watch as N, nextTick as fe, createElementBlock as u, openBlock as r, normalizeStyle as v, unref as o, renderSlot as D, createCommentVNode as f, createBlock as ge, normalizeProps as pe, mergeProps as P, createElementVNode as c, toDisplayString as p, Fragment as O, renderList as ye, createVNode as me } from "vue";
|
|
2
|
+
import { c as he, t as Ce, i as be, j as A, k as ke, o as xe, g as M, l as Ae, m as _e, s as $, a as _, d as w, X as we, h as Se } from "./lib-CVHM9FhP.js";
|
|
3
|
+
import { u as De, a as F } from "./useNestedProp-Ckf_2P_V.js";
|
|
4
|
+
import { u as $e, B as Fe } from "./BaseScanner-BMpwQAfz.js";
|
|
5
|
+
import { u as Ee } from "./useThemeCheck-D1ZYXUwG.js";
|
|
6
|
+
const j = {}, V = { style: { backgroundColor: "#1A1A1A", gutter: { backgroundColor: "#3A3A3A" }, bar: { gradient: { underlayerColor: "#1A1A1A" } }, labels: { name: { color: "#CCCCCC" } }, title: { color: "#CCCCCC" } } }, U = { style: { backgroundColor: "#1A1A1A", gutter: { backgroundColor: "#3A3A3A" }, bar: { gradient: { underlayerColor: "#1A1A1A" } }, labels: { name: { color: "#CCCCCC" } }, title: { color: "#CCCCCC" } } }, R = { style: { backgroundColor: "#FFF8E1", gutter: { backgroundColor: "#ded6ca" }, bar: { gradient: { underlayerColor: "#FFF8E1" } }, labels: { name: { color: "#424242" } }, title: { color: "#424242" } } }, W = { style: { backgroundColor: "#1E1E1E", gutter: { backgroundColor: "#2E2E2E" }, bar: { gradient: { underlayerColor: "#FFF8E1" } }, labels: { name: { color: "#BDBDBD" } }, title: { color: "#BDBDBD" } } }, G = { style: { backgroundColor: "#1A1A1A", gutter: { backgroundColor: "#333333" }, bar: { gradient: { underlayerColor: "#1A1A1A" } }, labels: { name: { color: "#99CC99" } }, title: { color: "#66CC66" } } }, q = { style: { backgroundColor: "#fbfafa", gutter: { backgroundColor: "#f5f0eb" }, bar: { gradient: { underlayerColor: "#fbfafa" } }, labels: { name: { color: "#8A9892" } } } }, H = { style: { backgroundColor: "#f6f6fb", bar: { gradient: { underlayerColor: "#f6f6fb" } }, labels: { name: { color: "#50606C" } } } }, X = {
|
|
7
7
|
default: {},
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
8
|
+
minimal: j,
|
|
9
|
+
minimalDark: V,
|
|
10
|
+
dark: U,
|
|
11
|
+
celebration: R,
|
|
12
|
+
celebrationNight: W,
|
|
13
|
+
hack: G,
|
|
14
|
+
zen: q,
|
|
15
|
+
concrete: H
|
|
16
|
+
}, He = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
15
17
|
__proto__: null,
|
|
16
|
-
celebration:
|
|
17
|
-
celebrationNight:
|
|
18
|
-
concrete:
|
|
19
|
-
dark:
|
|
20
|
-
default:
|
|
21
|
-
hack:
|
|
22
|
-
|
|
23
|
-
|
|
18
|
+
celebration: R,
|
|
19
|
+
celebrationNight: W,
|
|
20
|
+
concrete: H,
|
|
21
|
+
dark: U,
|
|
22
|
+
default: X,
|
|
23
|
+
hack: G,
|
|
24
|
+
minimal: j,
|
|
25
|
+
minimalDark: V,
|
|
26
|
+
zen: q
|
|
27
|
+
}, Symbol.toStringTag, { value: "Module" })), Te = ["onClick", "onMouseenter", "onMouseleave"], Be = {
|
|
24
28
|
key: 1,
|
|
25
29
|
class: "vue-ui-sparkbar-datapoint-value"
|
|
26
|
-
},
|
|
30
|
+
}, Ie = ["xmlns", "viewBox"], ze = ["id"], Le = ["stop-color"], Ne = ["stop-color"], Pe = ["height", "width", "fill", "rx"], Oe = ["height", "width", "fill", "rx"], Me = ["height", "width", "fill", "rx"], je = {
|
|
27
31
|
key: 2,
|
|
28
32
|
ref: "source",
|
|
29
33
|
dir: "auto"
|
|
30
|
-
},
|
|
34
|
+
}, Ve = {
|
|
31
35
|
__name: "vue-ui-sparkbar",
|
|
32
36
|
props: {
|
|
33
37
|
config: {
|
|
@@ -51,13 +55,13 @@ const j = { style: { backgroundColor: "#1A1A1A", gutter: { backgroundColor: "#3A
|
|
|
51
55
|
}
|
|
52
56
|
},
|
|
53
57
|
emits: ["selectDatapoint"],
|
|
54
|
-
setup(
|
|
55
|
-
const
|
|
58
|
+
setup(J, { emit: K }) {
|
|
59
|
+
const Q = ce(() => import("./PackageVersion-CQxJyGQr.js")), { vue_ui_sparkbar: Y } = De(), { isThemeValid: Z, warnInvalidTheme: ee } = Ee(), g = J, te = de();
|
|
56
60
|
L(() => {
|
|
57
|
-
|
|
61
|
+
te["chart-background"] && console.warn("VueUiSparkbar does not support the #chart-background slot.");
|
|
58
62
|
});
|
|
59
|
-
const E =
|
|
60
|
-
...
|
|
63
|
+
const E = C(he()), e = C(S()), { loading: b, FINAL_DATASET: d } = $e({
|
|
64
|
+
...ve(g),
|
|
61
65
|
FINAL_CONFIG: e,
|
|
62
66
|
prepareConfig: S,
|
|
63
67
|
skeletonDataset: [
|
|
@@ -65,7 +69,7 @@ const j = { style: { backgroundColor: "#1A1A1A", gutter: { backgroundColor: "#3A
|
|
|
65
69
|
{ name: "_", value: 13, target: 25, color: "#ADADAD" },
|
|
66
70
|
{ name: "_", value: 8, target: 25, color: "#DBDBDB" }
|
|
67
71
|
],
|
|
68
|
-
skeletonConfig:
|
|
72
|
+
skeletonConfig: Ce({
|
|
69
73
|
defaultConfig: e.value,
|
|
70
74
|
userConfig: {
|
|
71
75
|
style: {
|
|
@@ -88,13 +92,13 @@ const j = { style: { backgroundColor: "#1A1A1A", gutter: { backgroundColor: "#3A
|
|
|
88
92
|
function S() {
|
|
89
93
|
const t = F({
|
|
90
94
|
userConfig: g.config,
|
|
91
|
-
defaultConfig:
|
|
95
|
+
defaultConfig: Y
|
|
92
96
|
}), a = t.theme;
|
|
93
97
|
if (!a) return t;
|
|
94
|
-
if (!
|
|
95
|
-
return
|
|
98
|
+
if (!Z.value(t))
|
|
99
|
+
return ee(t), t;
|
|
96
100
|
const l = F({
|
|
97
|
-
userConfig:
|
|
101
|
+
userConfig: X[a] || g.config,
|
|
98
102
|
defaultConfig: t
|
|
99
103
|
}), n = F({
|
|
100
104
|
userConfig: g.config,
|
|
@@ -102,19 +106,19 @@ const j = { style: { backgroundColor: "#1A1A1A", gutter: { backgroundColor: "#3A
|
|
|
102
106
|
});
|
|
103
107
|
return {
|
|
104
108
|
...n,
|
|
105
|
-
customPalette: n.customPalette.length ? n.customPalette :
|
|
109
|
+
customPalette: n.customPalette.length ? n.customPalette : be[a] || A
|
|
106
110
|
};
|
|
107
111
|
}
|
|
108
112
|
N(() => g.config, (t) => {
|
|
109
113
|
e.value = S();
|
|
110
114
|
}, { deep: !0 });
|
|
111
|
-
const
|
|
115
|
+
const le = x(() => ke(e.value.customPalette)), y = C(d.value.map((t) => ({
|
|
112
116
|
...t,
|
|
113
117
|
value: e.value.style.animation.show ? 0 : t.value || 0,
|
|
114
118
|
formatter: t.formatter || null
|
|
115
|
-
}))), B =
|
|
119
|
+
}))), B = C(null);
|
|
116
120
|
L(async () => {
|
|
117
|
-
|
|
121
|
+
xe(g.dataset) && M({
|
|
118
122
|
componentName: "VueUiSparkbar",
|
|
119
123
|
type: "dataset",
|
|
120
124
|
debug: T.value
|
|
@@ -123,16 +127,16 @@ const j = { style: { backgroundColor: "#1A1A1A", gutter: { backgroundColor: "#3A
|
|
|
123
127
|
function I() {
|
|
124
128
|
if (e.value.style.animation.show) {
|
|
125
129
|
let h = function() {
|
|
126
|
-
n += l / t, n < l ? (y.value = y.value.map((s,
|
|
130
|
+
n += l / t, n < l ? (y.value = y.value.map((s, k) => ({
|
|
127
131
|
...s,
|
|
128
|
-
value: s.value += a[
|
|
132
|
+
value: s.value += a[k]
|
|
129
133
|
})), B.value = requestAnimationFrame(h)) : y.value = d.value.map((s) => ({
|
|
130
134
|
...s,
|
|
131
135
|
value: s.value || 0,
|
|
132
136
|
formatter: s.formatter || null
|
|
133
137
|
}));
|
|
134
138
|
};
|
|
135
|
-
const t = e.value.style.animation.animationFrames, a = d.value.map((s,
|
|
139
|
+
const t = e.value.style.animation.animationFrames, a = d.value.map((s, k) => s.value / t), l = d.value.map((s) => s.value || 0).reduce((s, k) => s + k, 0);
|
|
136
140
|
let n = 0;
|
|
137
141
|
h();
|
|
138
142
|
}
|
|
@@ -142,13 +146,13 @@ const j = { style: { backgroundColor: "#1A1A1A", gutter: { backgroundColor: "#3A
|
|
|
142
146
|
...a,
|
|
143
147
|
value: e.value.style.animation.show ? 0 : a.value || 0,
|
|
144
148
|
formatter: a.formatter || null
|
|
145
|
-
})),
|
|
149
|
+
})), fe(I);
|
|
146
150
|
}, { deep: !0 });
|
|
147
|
-
const i =
|
|
151
|
+
const i = C({
|
|
148
152
|
width: 500,
|
|
149
153
|
height: 16
|
|
150
|
-
}),
|
|
151
|
-
|
|
154
|
+
}), ae = x(() => Math.max(...d.value.map((t) => t.value))), oe = x(() => (d.value.forEach((t, a) => {
|
|
155
|
+
Ae({
|
|
152
156
|
datasetObject: t,
|
|
153
157
|
requiredAttributes: ["name", "value"]
|
|
154
158
|
}).forEach((l) => {
|
|
@@ -163,25 +167,25 @@ const j = { style: { backgroundColor: "#1A1A1A", gutter: { backgroundColor: "#3A
|
|
|
163
167
|
}), y.value.map((t, a) => ({
|
|
164
168
|
...t,
|
|
165
169
|
value: t.value || 0,
|
|
166
|
-
color:
|
|
170
|
+
color: _e(t.color) || le.value[a] || A[a] || A[a % A.length]
|
|
167
171
|
}))));
|
|
168
|
-
function
|
|
169
|
-
return t /
|
|
172
|
+
function ne(t) {
|
|
173
|
+
return t / ae.value;
|
|
170
174
|
}
|
|
171
175
|
function z(t) {
|
|
172
|
-
return e.value.style.layout.independant ? t.target ? t.value / t.target : e.value.style.layout.percentage ? t.value > 100 ? 1 : t.value / 100 : e.value.style.layout.target === 0 ? 1 : t.value / e.value.style.layout.target :
|
|
176
|
+
return e.value.style.layout.independant ? t.target ? t.value / t.target : e.value.style.layout.percentage ? t.value > 100 ? 1 : t.value / 100 : e.value.style.layout.target === 0 ? 1 : t.value / e.value.style.layout.target : ne(t.value);
|
|
173
177
|
}
|
|
174
178
|
function m(t) {
|
|
175
179
|
return e.value.style.layout.independant && t.target || e.value.style.layout.target;
|
|
176
180
|
}
|
|
177
|
-
const
|
|
178
|
-
function
|
|
179
|
-
|
|
181
|
+
const re = K;
|
|
182
|
+
function se(t, a) {
|
|
183
|
+
re("selectDatapoint", { datapoint: t, index: a }), e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: a });
|
|
180
184
|
}
|
|
181
|
-
function
|
|
185
|
+
function ue(t, a) {
|
|
182
186
|
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: a });
|
|
183
187
|
}
|
|
184
|
-
function
|
|
188
|
+
function ie(t, a) {
|
|
185
189
|
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: a });
|
|
186
190
|
}
|
|
187
191
|
return (t, a) => (r(), u("div", {
|
|
@@ -193,7 +197,7 @@ const j = { style: { backgroundColor: "#1A1A1A", gutter: { backgroundColor: "#3A
|
|
|
193
197
|
background: g.backgroundOpacity !== null ? o($)(e.value.style.backgroundColor, g.backgroundOpacity) : e.value.style.backgroundColor
|
|
194
198
|
})
|
|
195
199
|
}, [
|
|
196
|
-
t.$slots.title ? D(t.$slots, "title",
|
|
200
|
+
t.$slots.title ? D(t.$slots, "title", pe(P({ key: 0 }, { title: { ...t.title, title: e.value.style.title.text, subtitle: e.value.style.title.subtitle.text } }))) : f("", !0),
|
|
197
201
|
!t.$slots.title && e.value.style.title.text ? (r(), u("div", {
|
|
198
202
|
key: 1,
|
|
199
203
|
class: "vue-ui-sparkbar-title-container",
|
|
@@ -221,13 +225,13 @@ const j = { style: { backgroundColor: "#1A1A1A", gutter: { backgroundColor: "#3A
|
|
|
221
225
|
})
|
|
222
226
|
}, p(e.value.style.title.subtitle.text), 5)) : f("", !0)
|
|
223
227
|
], 4)) : f("", !0),
|
|
224
|
-
(r(!0), u(O, null,
|
|
228
|
+
(r(!0), u(O, null, ye(oe.value, (l, n) => (r(), u("div", {
|
|
225
229
|
style: v(`display:flex !important;${["left", "right"].includes(e.value.style.labels.name.position) ? `flex-direction: ${e.value.style.labels.name.position === "right" ? "row-reverse" : "row"} !important` : "flex-direction:column !important"};gap:${e.value.style.gap}px !important;align-items:center;${o(d).length > 0 && n !== o(d).length - 1 ? "margin-bottom:6px" : ""}`),
|
|
226
|
-
onClick: (h) =>
|
|
227
|
-
onMouseenter: (h) =>
|
|
228
|
-
onMouseleave: (h) =>
|
|
230
|
+
onClick: (h) => se(l, n),
|
|
231
|
+
onMouseenter: (h) => ue(l, n),
|
|
232
|
+
onMouseleave: (h) => ie(l, n)
|
|
229
233
|
}, [
|
|
230
|
-
o(
|
|
234
|
+
o(b) ? f("", !0) : D(t.$slots, "data-label", P({
|
|
231
235
|
key: 0,
|
|
232
236
|
ref_for: !0
|
|
233
237
|
}, { bar: {
|
|
@@ -256,7 +260,7 @@ const j = { style: { backgroundColor: "#1A1A1A", gutter: { backgroundColor: "#3A
|
|
|
256
260
|
{ datapoint: l, seriesIndex: n }
|
|
257
261
|
)
|
|
258
262
|
} })),
|
|
259
|
-
!t.$slots["data-label"] || o(
|
|
263
|
+
!t.$slots["data-label"] || o(b) ? (r(), u("div", {
|
|
260
264
|
key: 1,
|
|
261
265
|
style: v({
|
|
262
266
|
display: "flex",
|
|
@@ -269,7 +273,7 @@ const j = { style: { backgroundColor: "#1A1A1A", gutter: { backgroundColor: "#3A
|
|
|
269
273
|
flexWrap: "wrap"
|
|
270
274
|
})
|
|
271
275
|
}, [
|
|
272
|
-
o(
|
|
276
|
+
o(b) ? (r(), u("div", {
|
|
273
277
|
key: 0,
|
|
274
278
|
class: "vue-ui-sparkbar-skeleton-name",
|
|
275
279
|
style: v({
|
|
@@ -305,7 +309,7 @@ const j = { style: { backgroundColor: "#1A1A1A", gutter: { backgroundColor: "#3A
|
|
|
305
309
|
}),
|
|
306
310
|
{ datapoint: l, seriesIndex: n }
|
|
307
311
|
)), 5)) : f("", !0),
|
|
308
|
-
e.value.style.layout.showTargetValue ? (r(), u("span",
|
|
312
|
+
e.value.style.layout.showTargetValue ? (r(), u("span", Be, p(" " + e.value.style.layout.targetValueText) + " " + p(o(_)(
|
|
309
313
|
l.formatter,
|
|
310
314
|
m(l),
|
|
311
315
|
o(w)({
|
|
@@ -319,11 +323,11 @@ const j = { style: { backgroundColor: "#1A1A1A", gutter: { backgroundColor: "#3A
|
|
|
319
323
|
], 64))
|
|
320
324
|
], 4)) : f("", !0),
|
|
321
325
|
(r(), u("svg", {
|
|
322
|
-
xmlns: o(
|
|
326
|
+
xmlns: o(we),
|
|
323
327
|
viewBox: `0 0 ${i.value.width} ${i.value.height}`,
|
|
324
328
|
width: "100%"
|
|
325
329
|
}, [
|
|
326
|
-
|
|
330
|
+
me(o(Q)),
|
|
327
331
|
c("defs", null, [
|
|
328
332
|
c("linearGradient", {
|
|
329
333
|
x1: "0%",
|
|
@@ -334,13 +338,13 @@ const j = { style: { backgroundColor: "#1A1A1A", gutter: { backgroundColor: "#3A
|
|
|
334
338
|
}, [
|
|
335
339
|
c("stop", {
|
|
336
340
|
offset: "0%",
|
|
337
|
-
"stop-color": o($)(o(
|
|
338
|
-
}, null, 8,
|
|
341
|
+
"stop-color": o($)(o(Se)(l.color, 0.03), 100 - e.value.style.bar.gradient.intensity)
|
|
342
|
+
}, null, 8, Le),
|
|
339
343
|
c("stop", {
|
|
340
344
|
offset: "100%",
|
|
341
345
|
"stop-color": l.color
|
|
342
|
-
}, null, 8,
|
|
343
|
-
], 8,
|
|
346
|
+
}, null, 8, Ne)
|
|
347
|
+
], 8, ze)
|
|
344
348
|
]),
|
|
345
349
|
c("rect", {
|
|
346
350
|
height: i.value.height,
|
|
@@ -349,7 +353,7 @@ const j = { style: { backgroundColor: "#1A1A1A", gutter: { backgroundColor: "#3A
|
|
|
349
353
|
y: 0,
|
|
350
354
|
fill: o($)(e.value.style.gutter.backgroundColor, e.value.style.gutter.opacity),
|
|
351
355
|
rx: i.value.height / 2
|
|
352
|
-
}, null, 8,
|
|
356
|
+
}, null, 8, Pe),
|
|
353
357
|
c("rect", {
|
|
354
358
|
height: i.value.height,
|
|
355
359
|
width: i.value.width * z(l),
|
|
@@ -357,7 +361,7 @@ const j = { style: { backgroundColor: "#1A1A1A", gutter: { backgroundColor: "#3A
|
|
|
357
361
|
y: 0,
|
|
358
362
|
fill: e.value.style.bar.gradient.underlayerColor,
|
|
359
363
|
rx: i.value.height / 2
|
|
360
|
-
}, null, 8,
|
|
364
|
+
}, null, 8, Oe),
|
|
361
365
|
c("rect", {
|
|
362
366
|
height: i.value.height,
|
|
363
367
|
width: i.value.width * z(l),
|
|
@@ -365,21 +369,21 @@ const j = { style: { backgroundColor: "#1A1A1A", gutter: { backgroundColor: "#3A
|
|
|
365
369
|
y: 0,
|
|
366
370
|
fill: e.value.style.bar.gradient.show ? `url(#sparkbar_gradient_${n}_${E.value})` : l.color,
|
|
367
371
|
rx: i.value.height / 2
|
|
368
|
-
}, null, 8,
|
|
369
|
-
], 8,
|
|
370
|
-
], 44,
|
|
371
|
-
t.$slots.source ? (r(), u("div",
|
|
372
|
+
}, null, 8, Me)
|
|
373
|
+
], 8, Ie))
|
|
374
|
+
], 44, Te))), 256)),
|
|
375
|
+
t.$slots.source ? (r(), u("div", je, [
|
|
372
376
|
D(t.$slots, "source")
|
|
373
377
|
], 512)) : f("", !0),
|
|
374
|
-
o(
|
|
378
|
+
o(b) ? (r(), ge(Fe, { key: 3 })) : f("", !0)
|
|
375
379
|
], 4));
|
|
376
380
|
}
|
|
377
|
-
},
|
|
381
|
+
}, Xe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
378
382
|
__proto__: null,
|
|
379
|
-
default:
|
|
383
|
+
default: Ve
|
|
380
384
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
381
385
|
export {
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
386
|
+
Ve as _,
|
|
387
|
+
Xe as a,
|
|
388
|
+
He as v
|
|
385
389
|
};
|
|
@@ -1,31 +1,35 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { u as
|
|
3
|
-
import { c as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
const M = { style: { background: "#1A1A1A", title: { color: "#CCCCCC" }, dataLabel: { color: "#CCCCCC" }, gutter: { color: "#3A3A3A" } } },
|
|
1
|
+
import { defineAsyncComponent as W, ref as p, toRefs as Z, onMounted as F, computed as n, watch as z, createElementBlock as i, openBlock as r, normalizeStyle as y, createCommentVNode as f, createBlock as ee, toDisplayString as C, unref as u, createVNode as te, createElementVNode as m, renderSlot as N, normalizeClass as ae } from "vue";
|
|
2
|
+
import { u as le, a as k } from "./useNestedProp-Ckf_2P_V.js";
|
|
3
|
+
import { c as oe, t as se, o as ne, g as E, l as re, am as ue, X as ie, a as ce, U as A, d as ve } from "./lib-CVHM9FhP.js";
|
|
4
|
+
import { u as de, B as fe } from "./BaseScanner-BMpwQAfz.js";
|
|
5
|
+
import { u as me } from "./useThemeCheck-D1ZYXUwG.js";
|
|
6
|
+
import { u as ge } from "./useChartAccessibility-9icAAmYg.js";
|
|
7
|
+
const M = { style: { colors: { min: "#9D7D92", max: "#678681" } } }, O = { style: { background: "#1A1A1A", title: { color: "#CCCCCC" }, dataLabel: { color: "#CCCCCC" }, colors: { min: "#9D7D92", max: "#678681" }, gutter: { color: "#3A3A3A" } } }, j = { style: { background: "#1A1A1A", title: { color: "#CCCCCC" }, dataLabel: { color: "#CCCCCC" }, gutter: { color: "#3A3A3A" } } }, T = { style: { background: "#FFF8E1", title: { color: "#424242" }, dataLabel: { color: "#424242" }, colors: { min: "#F57C00", max: "#D32F2F" }, gutter: { color: "#5D403740" } } }, I = { style: { background: "#1E1E1E", title: { color: "#BDBDBD" }, dataLabel: { color: "#BDBDBD" }, colors: { min: "#F57C00", max: "#D32F2F" }, gutter: { color: "#5D403740" } } }, U = { style: { background: "#1A1A1A", title: { color: "#66CC66" }, dataLabel: { color: "#AACCAA" }, colors: { min: "#334C33", max: "#33CC33" }, track: { color: "#33CC33" }, gutter: { color: "#333333" } } }, P = { style: { background: "#fbfafa", title: { color: "#8A9892" }, dataLabel: { color: "#A0AC94" }, colors: { min: "#C09E85", max: "#B9B99D" }, track: { color: "#B9B99D" }, gutter: { color: "#f5f0eb" } } }, R = { style: { background: "#f6f6fb", title: { color: "#50606C" }, dataLabel: { color: "#61747E" }, colors: { min: "#92B0AB", max: "#4A6A75" }, track: { color: "#4A6A75" }, gutter: { color: "#e1e5e8" } } }, G = {
|
|
8
8
|
default: {},
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
9
|
+
minimal: M,
|
|
10
|
+
minimalDark: O,
|
|
11
|
+
dark: j,
|
|
12
|
+
celebration: T,
|
|
13
|
+
celebrationNight: I,
|
|
14
|
+
hack: U,
|
|
15
|
+
zen: P,
|
|
16
|
+
concrete: R
|
|
17
|
+
}, Ee = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
16
18
|
__proto__: null,
|
|
17
|
-
celebration:
|
|
18
|
-
celebrationNight:
|
|
19
|
-
concrete:
|
|
20
|
-
dark:
|
|
21
|
-
default:
|
|
22
|
-
hack:
|
|
23
|
-
|
|
24
|
-
|
|
19
|
+
celebration: T,
|
|
20
|
+
celebrationNight: I,
|
|
21
|
+
concrete: R,
|
|
22
|
+
dark: j,
|
|
23
|
+
default: G,
|
|
24
|
+
hack: U,
|
|
25
|
+
minimal: M,
|
|
26
|
+
minimalDark: O,
|
|
27
|
+
zen: P
|
|
28
|
+
}, Symbol.toStringTag, { value: "Module" })), ye = ["xmlns", "viewBox"], be = ["width", "height"], he = ["id"], pe = ["stop-color"], Ce = ["stop-color"], ke = ["d", "stroke", "stroke-linecap"], Ae = ["d", "stroke", "stroke-linecap", "stroke-dashoffset"], _e = ["x", "y", "width", "height"], xe = ["x", "y", "font-size", "fill", "font-weight"], we = {
|
|
25
29
|
key: 2,
|
|
26
30
|
ref: "source",
|
|
27
31
|
dir: "auto"
|
|
28
|
-
},
|
|
32
|
+
}, Le = {
|
|
29
33
|
__name: "vue-ui-sparkgauge",
|
|
30
34
|
props: {
|
|
31
35
|
config: {
|
|
@@ -41,9 +45,9 @@ const M = { style: { background: "#1A1A1A", title: { color: "#CCCCCC" }, dataLab
|
|
|
41
45
|
}
|
|
42
46
|
}
|
|
43
47
|
},
|
|
44
|
-
setup(
|
|
45
|
-
const
|
|
46
|
-
...
|
|
48
|
+
setup(V) {
|
|
49
|
+
const q = W(() => import("./PackageVersion-CQxJyGQr.js")), { vue_ui_sparkgauge: X } = le(), { isThemeValid: Y, warnInvalidTheme: H } = me(), c = V, _ = p(oe()), e = p(h()), { loading: b, FINAL_DATASET: v } = de({
|
|
50
|
+
...Z(c),
|
|
47
51
|
FINAL_CONFIG: e,
|
|
48
52
|
prepareConfig: h,
|
|
49
53
|
skeletonDataset: {
|
|
@@ -52,7 +56,7 @@ const M = { style: { background: "#1A1A1A", title: { color: "#CCCCCC" }, dataLab
|
|
|
52
56
|
max: 1,
|
|
53
57
|
title: ""
|
|
54
58
|
},
|
|
55
|
-
skeletonConfig:
|
|
59
|
+
skeletonConfig: se({
|
|
56
60
|
defaultConfig: e.value,
|
|
57
61
|
userConfig: {
|
|
58
62
|
style: {
|
|
@@ -71,20 +75,20 @@ const M = { style: { background: "#1A1A1A", title: { color: "#CCCCCC" }, dataLab
|
|
|
71
75
|
}
|
|
72
76
|
}
|
|
73
77
|
})
|
|
74
|
-
}), { svgRef:
|
|
78
|
+
}), { svgRef: J } = ge({ config: { text: c.dataset?.title || "" } });
|
|
75
79
|
function h() {
|
|
76
|
-
const t =
|
|
80
|
+
const t = k({
|
|
77
81
|
userConfig: c.config,
|
|
78
|
-
defaultConfig:
|
|
82
|
+
defaultConfig: X
|
|
79
83
|
}), o = t.theme;
|
|
80
84
|
if (!o) return t;
|
|
81
|
-
if (!
|
|
82
|
-
return
|
|
83
|
-
const d =
|
|
84
|
-
userConfig:
|
|
85
|
+
if (!Y.value(t))
|
|
86
|
+
return H(t), t;
|
|
87
|
+
const d = k({
|
|
88
|
+
userConfig: G[o] || c.config,
|
|
85
89
|
defaultConfig: t
|
|
86
90
|
});
|
|
87
|
-
return
|
|
91
|
+
return k({
|
|
88
92
|
userConfig: c.config,
|
|
89
93
|
defaultConfig: d
|
|
90
94
|
});
|
|
@@ -94,11 +98,11 @@ const M = { style: { background: "#1A1A1A", title: { color: "#CCCCCC" }, dataLab
|
|
|
94
98
|
});
|
|
95
99
|
const x = n(() => e.value.debug);
|
|
96
100
|
function w() {
|
|
97
|
-
|
|
101
|
+
ne(c.dataset) ? E({
|
|
98
102
|
componentName: "VueUiSparkgauge",
|
|
99
103
|
type: "dataset",
|
|
100
104
|
debug: x.value
|
|
101
|
-
}) :
|
|
105
|
+
}) : re({
|
|
102
106
|
datasetObject: c.dataset,
|
|
103
107
|
requiredAttributes: ["value", "min", "max"]
|
|
104
108
|
}).forEach((t) => {
|
|
@@ -128,7 +132,7 @@ const M = { style: { background: "#1A1A1A", title: { color: "#CCCCCC" }, dataLab
|
|
|
128
132
|
z(() => v.value.value, () => {
|
|
129
133
|
$(v.value.value || 0);
|
|
130
134
|
});
|
|
131
|
-
const
|
|
135
|
+
const K = n(() => a.value > s.value.max ? s.value.max : a.value < s.value.min ? s.value.min : a.value), L = n(() => s.value.diff / e.value.style.animation.speedMs);
|
|
132
136
|
F(() => {
|
|
133
137
|
$(v.value.value || 0);
|
|
134
138
|
});
|
|
@@ -138,29 +142,29 @@ const M = { style: { background: "#1A1A1A", title: { color: "#CCCCCC" }, dataLab
|
|
|
138
142
|
}
|
|
139
143
|
o();
|
|
140
144
|
}
|
|
141
|
-
const
|
|
145
|
+
const g = n(() => v.value.title ?? ""), D = n(() => {
|
|
142
146
|
const t = s.value.diff;
|
|
143
147
|
if (!isFinite(t) || t === 0) return 0;
|
|
144
|
-
const o = s.value.min, d =
|
|
148
|
+
const o = s.value.min, d = K.value;
|
|
145
149
|
return d >= 0 ? (d - o) / t : (Math.abs(o) - Math.abs(d)) / t;
|
|
146
|
-
}),
|
|
150
|
+
}), S = n(() => ue(e.value.style.colors.min, e.value.style.colors.max, s.value.min, s.value.max, a.value)), B = n(() => e.value.style.dataLabel.autoColor ? S.value : e.value.style.dataLabel.color), Q = n(() => e.value.style.track.autoColor ? S.value : e.value.style.track.color);
|
|
147
151
|
return (t, o) => (r(), i("div", {
|
|
148
152
|
class: "vue-data-ui-component vue-ui-sparkgauge",
|
|
149
153
|
style: y(`font-family:${e.value.style.fontFamily};width: 100%; background:${e.value.style.background}`)
|
|
150
154
|
}, [
|
|
151
|
-
e.value.style.title.show &&
|
|
155
|
+
e.value.style.title.show && g.value && e.value.style.title.position === "top" ? (r(), i("div", {
|
|
152
156
|
key: 0,
|
|
153
157
|
class: "vue-data-ui-sparkgauge-label",
|
|
154
158
|
style: y(`font-size:${e.value.style.title.fontSize}px;text-align:${e.value.style.title.textAlign};font-weight:${e.value.style.title.bold ? "bold" : "normal"};color:${e.value.style.title.color}`)
|
|
155
|
-
},
|
|
159
|
+
}, C(g.value), 5)) : f("", !0),
|
|
156
160
|
(r(), i("svg", {
|
|
157
161
|
ref_key: "svgRef",
|
|
158
|
-
ref:
|
|
159
|
-
xmlns: u(
|
|
162
|
+
ref: J,
|
|
163
|
+
xmlns: u(ie),
|
|
160
164
|
viewBox: `0 0 ${l.value.width} ${l.value.height}`,
|
|
161
165
|
style: "overflow: visible; background:transparent; width:100%;"
|
|
162
166
|
}, [
|
|
163
|
-
|
|
167
|
+
te(u(q)),
|
|
164
168
|
t.$slots["chart-background"] && !u(b) ? (r(), i("foreignObject", {
|
|
165
169
|
key: 0,
|
|
166
170
|
x: 0,
|
|
@@ -172,44 +176,44 @@ const M = { style: { background: "#1A1A1A", title: { color: "#CCCCCC" }, dataLab
|
|
|
172
176
|
}
|
|
173
177
|
}, [
|
|
174
178
|
N(t.$slots, "chart-background")
|
|
175
|
-
], 8,
|
|
176
|
-
|
|
177
|
-
|
|
179
|
+
], 8, be)) : f("", !0),
|
|
180
|
+
m("defs", null, [
|
|
181
|
+
m("linearGradient", {
|
|
178
182
|
id: `gradient_${_.value}`,
|
|
179
183
|
x1: "-10%",
|
|
180
184
|
y1: "100%",
|
|
181
185
|
x2: "110%",
|
|
182
186
|
y2: "100%"
|
|
183
187
|
}, [
|
|
184
|
-
|
|
188
|
+
m("stop", {
|
|
185
189
|
offset: "0%",
|
|
186
190
|
"stop-color": e.value.style.colors.min
|
|
187
|
-
}, null, 8,
|
|
188
|
-
|
|
191
|
+
}, null, 8, pe),
|
|
192
|
+
m("stop", {
|
|
189
193
|
offset: "100%",
|
|
190
194
|
"stop-color": e.value.style.colors.max
|
|
191
|
-
}, null, 8,
|
|
192
|
-
], 8,
|
|
195
|
+
}, null, 8, Ce)
|
|
196
|
+
], 8, he)
|
|
193
197
|
]),
|
|
194
|
-
|
|
198
|
+
m("path", {
|
|
195
199
|
d: `M10 ${l.value.base} A 1 1 0 1 1 118 ${l.value.base}`,
|
|
196
200
|
stroke: e.value.style.gutter.color,
|
|
197
201
|
"stroke-width": 8,
|
|
198
202
|
"stroke-linecap": e.value.style.gutter.strokeLinecap,
|
|
199
203
|
fill: "none"
|
|
200
|
-
}, null, 8,
|
|
201
|
-
|
|
204
|
+
}, null, 8, ke),
|
|
205
|
+
D.value !== 0 ? (r(), i("path", {
|
|
202
206
|
key: 1,
|
|
203
207
|
d: `M10 ${l.value.base} A 1 1 0 1 1 118 ${l.value.base}`,
|
|
204
|
-
stroke: e.value.style.colors.showGradient ? `url(#gradient_${_.value})` :
|
|
208
|
+
stroke: e.value.style.colors.showGradient ? `url(#gradient_${_.value})` : Q.value,
|
|
205
209
|
"stroke-width": 8,
|
|
206
210
|
"stroke-linecap": e.value.style.track.strokeLinecap,
|
|
207
211
|
fill: "none",
|
|
208
212
|
"stroke-dasharray": 169.5,
|
|
209
|
-
"stroke-dashoffset": 169.5 - 169.5 *
|
|
210
|
-
class:
|
|
213
|
+
"stroke-dashoffset": 169.5 - 169.5 * D.value,
|
|
214
|
+
class: ae({ "vue-ui-sparkgauge-track": e.value.style.animation.show }),
|
|
211
215
|
style: y(e.value.style.animation.show ? `animation: vue-ui-sparkgauge-animation ${e.value.style.animation.speedMs}ms ease-in;` : "")
|
|
212
|
-
}, null, 14,
|
|
216
|
+
}, null, 14, Ae)) : f("", !0),
|
|
213
217
|
u(b) ? (r(), i("rect", {
|
|
214
218
|
key: 2,
|
|
215
219
|
x: l.value.width / 2 - e.value.style.dataLabel.fontSize / 2,
|
|
@@ -218,43 +222,43 @@ const M = { style: { background: "#1A1A1A", title: { color: "#CCCCCC" }, dataLab
|
|
|
218
222
|
height: e.value.style.dataLabel.fontSize,
|
|
219
223
|
fill: "#6A6A6A50",
|
|
220
224
|
rx: 3
|
|
221
|
-
}, null, 8,
|
|
225
|
+
}, null, 8, _e)) : (r(), i("text", {
|
|
222
226
|
key: 3,
|
|
223
227
|
"text-anchor": "middle",
|
|
224
228
|
x: l.value.width / 2,
|
|
225
229
|
y: l.value.base + 6 + e.value.style.dataLabel.offsetY,
|
|
226
230
|
"font-size": e.value.style.dataLabel.fontSize,
|
|
227
|
-
fill:
|
|
231
|
+
fill: B.value,
|
|
228
232
|
"font-weight": e.value.style.dataLabel.bold ? "bold" : "normal"
|
|
229
|
-
},
|
|
233
|
+
}, C(u(ce)(
|
|
230
234
|
e.value.style.dataLabel.formatter,
|
|
231
235
|
u(A)(a.value),
|
|
232
|
-
u(
|
|
236
|
+
u(ve)({
|
|
233
237
|
p: e.value.style.dataLabel.prefix,
|
|
234
238
|
v: u(A)(a.value),
|
|
235
239
|
s: e.value.style.dataLabel.suffix,
|
|
236
240
|
r: e.value.style.dataLabel.rounding
|
|
237
241
|
}),
|
|
238
|
-
{ datapoint: u(A)(a.value), color:
|
|
239
|
-
)), 9,
|
|
240
|
-
], 8,
|
|
241
|
-
e.value.style.title.show &&
|
|
242
|
+
{ datapoint: u(A)(a.value), color: B.value }
|
|
243
|
+
)), 9, xe))
|
|
244
|
+
], 8, ye)),
|
|
245
|
+
e.value.style.title.show && g.value && e.value.style.title.position === "bottom" ? (r(), i("div", {
|
|
242
246
|
key: 1,
|
|
243
247
|
class: "vue-data-ui-sparkgauge-label",
|
|
244
248
|
style: y(`font-size:${e.value.style.title.fontSize}px;text-align:${e.value.style.title.textAlign};font-weight:${e.value.style.title.bold ? "bold" : "normal"};font-weight:${e.value.style.title.bold ? "bold" : "normal"};color:${e.value.style.title.color}`)
|
|
245
|
-
},
|
|
246
|
-
t.$slots.source ? (r(), i("div",
|
|
249
|
+
}, C(g.value), 5)) : f("", !0),
|
|
250
|
+
t.$slots.source ? (r(), i("div", we, [
|
|
247
251
|
N(t.$slots, "source")
|
|
248
252
|
], 512)) : f("", !0),
|
|
249
|
-
u(b) ? (r(),
|
|
253
|
+
u(b) ? (r(), ee(fe, { key: 3 })) : f("", !0)
|
|
250
254
|
], 4));
|
|
251
255
|
}
|
|
252
|
-
},
|
|
256
|
+
}, Me = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
253
257
|
__proto__: null,
|
|
254
|
-
default:
|
|
258
|
+
default: Le
|
|
255
259
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
256
260
|
export {
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
261
|
+
Le as _,
|
|
262
|
+
Me as a,
|
|
263
|
+
Ee as v
|
|
260
264
|
};
|