vue-data-ui 3.22.6 → 3.22.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-Ds4xmpiQ.js → Arrow-DaGI9u-b.js} +1 -1
- package/dist/{BaseDraggableDialog-VbypEaAa.js → BaseDraggableDialog-1wwwdwV2.js} +2 -2
- package/dist/{BaseIcon-DcUvOfxf.js → BaseIcon-_-BX7be3.js} +1 -1
- package/dist/{BaseLegendToggle-DFwIY5bE.js → BaseLegendToggle-CHnlKalt.js} +1 -1
- package/dist/{BaseZoomControls-DwolSINF.js → BaseZoomControls-C9bdZSCj.js} +2 -2
- package/dist/{ColorPicker-UVDPcrjE.js → ColorPicker-TB3KhY3j.js} +2 -2
- package/dist/{DataTable-CXfvIulC.js → DataTable-CVF7DoZn.js} +2 -2
- package/dist/{Legend-D-635Kag.js → Legend-kAr7Vqqu.js} +2 -2
- package/dist/{NonSvgPenAndPaper-pR_1qp3s.js → NonSvgPenAndPaper-CEiv7_gM.js} +29 -29
- package/dist/{PackageVersion-Da7hl-34.js → PackageVersion-Dse0n05o.js} +1 -1
- package/dist/{PenAndPaper-Bk2-E7V4.js → PenAndPaper-gaV1QPpP.js} +18 -18
- package/dist/{Shape-BSetplwm.js → Shape-CiQIxyyT.js} +1 -1
- package/dist/{Slicer-ClIGOuoX.js → Slicer-6FOtg9py.js} +2 -2
- package/dist/{SlicerPreview-D1n9AW39.js → SlicerPreview-DUywypFu.js} +4 -4
- package/dist/{SparkTooltip-CjDAyolg.js → SparkTooltip-B-qsPj68.js} +1 -1
- package/dist/{Title-C-p0ilWB.js → Title-PiTKr6sp.js} +1 -1
- package/dist/{Tooltip-YabpoXo1.js → Tooltip-B8yYfISA.js} +1 -1
- package/dist/{UserOptions-BO4VFL8O.js → UserOptions-BL9VlHop.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{dom-to-png-CVJfsfwL.js → dom-to-png-BZjYWNEg.js} +1 -1
- package/dist/exposedLib-Be0ifkti.js +19 -0
- package/dist/{img-B_y5qDdm.js → img-B_abIg0o.js} +1 -1
- package/dist/{labelUtils-CyVwqXSh.js → labelUtils-CTDRZdP1.js} +1 -1
- package/dist/{lib-DRBJCmHW.js → lib-EAmk-PgA.js} +14 -1
- package/dist/{package-DyQ_PQis.js → package-DeMimPej.js} +1 -1
- package/dist/{pdf-CG02qhAH.js → pdf-B6qrdEqB.js} +1 -1
- package/dist/{render-common-CUAlQvAQ.js → render-common-DMai0gHB.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/{useAutoSizeLabelsInsideViewbox-DPMOys9n.js → useAutoSizeLabelsInsideViewbox-CyOGrdD_.js} +1 -1
- package/dist/{useNestedProp-BEo2N1Db.js → useNestedProp-D8XqxgOU.js} +1 -1
- package/dist/{usePrinter-CRp5IW3v.js → usePrinter-DnGzpp6Q.js} +2 -2
- package/dist/utils.js +10 -10
- package/dist/{vue-data-ui-Bpu4kxlm.js → vue-data-ui-D6qVWloL.js} +68 -68
- package/dist/vue-data-ui.js +72 -72
- package/dist/vue-ui-3d-bar-CjNuWXoA.js +1757 -0
- package/dist/{vue-ui-accordion-CfMrbDoq.js → vue-ui-accordion-Dzz8XhX3.js} +3 -3
- package/dist/{vue-ui-age-pyramid-BF5ZuuyI.js → vue-ui-age-pyramid-CC7Dxli-.js} +21 -21
- package/dist/{vue-ui-annotator-CG6rhFpy.js → vue-ui-annotator-DXZumSP8.js} +67 -67
- package/dist/{vue-ui-bullet-C_oBS1cr.js → vue-ui-bullet-Dde6FhbR.js} +17 -17
- package/dist/{vue-ui-bump-BZB1Na8h.js → vue-ui-bump-C5pni1JV.js} +243 -243
- package/dist/{vue-ui-candlestick-8d_1xO8X.js → vue-ui-candlestick-Ctw65O4_.js} +449 -446
- package/dist/{vue-ui-carousel-table-BfZNcwmY.js → vue-ui-carousel-table-BEUvhUH0.js} +42 -42
- package/dist/vue-ui-chestnut-C3IbAdkQ.js +2010 -0
- package/dist/vue-ui-chord-5eCWG4br.js +1391 -0
- package/dist/{vue-ui-circle-pack-BLh8HnGK.js → vue-ui-circle-pack-Cq4lkmee.js} +31 -31
- package/dist/{vue-ui-cursor-DVsEm_4l.js → vue-ui-cursor-DLJcFwRZ.js} +3 -3
- package/dist/{vue-ui-dag-Cfi0b9qm.js → vue-ui-dag-DemsIecS.js} +23 -23
- package/dist/{vue-ui-dashboard-F_NZ1xoQ.js → vue-ui-dashboard-DWHD_wNN.js} +69 -69
- package/dist/{vue-ui-digits-BfP1kbj3.js → vue-ui-digits-sIKc85vS.js} +3 -3
- package/dist/{vue-ui-donut-BwAyvV3-.js → vue-ui-donut-CLheJPcO.js} +414 -414
- package/dist/{vue-ui-donut-DlVRnVr_.js → vue-ui-donut-Dp6GW0dw.js} +85 -85
- package/dist/{vue-ui-donut-evolution-D1k4u6cA.js → vue-ui-donut-evolution-zmRPpJLj.js} +419 -419
- package/dist/vue-ui-dumbbell-bSbgHd0U.js +1530 -0
- package/dist/{vue-ui-flow-D_7Idmmw.js → vue-ui-flow-q_M7O1BK.js} +83 -83
- package/dist/vue-ui-funnel-BEZUEuuh.js +777 -0
- package/dist/{vue-ui-galaxy-Bjxbg5_B.js → vue-ui-galaxy-DCCWmIyH.js} +250 -250
- package/dist/{vue-ui-gauge-Dt0H7DgC.js → vue-ui-gauge-B1ljgfE1.js} +216 -216
- package/dist/{vue-ui-geo-89DEQb5l.js → vue-ui-geo-CM59rpnj.js} +17 -17
- package/dist/{vue-ui-gizmo-CQyLK18v.js → vue-ui-gizmo-D2RL6IVp.js} +62 -62
- package/dist/{vue-ui-heatmap-o6MvoxBK.js → vue-ui-heatmap-BX6PQxML.js} +245 -245
- package/dist/vue-ui-history-plot-DaHAeQph.js +1715 -0
- package/dist/{vue-ui-horizontal-bar-CwB4sc6M.js → vue-ui-horizontal-bar-CTW6l4n3.js} +274 -274
- package/dist/{vue-ui-kpi-4C-j92D-.js → vue-ui-kpi-DLbP7lJR.js} +3 -3
- package/dist/{vue-ui-mini-loader-Bj4Wv-i8.js → vue-ui-mini-loader-DPHzHsM7.js} +2 -2
- package/dist/vue-ui-molecule-aD0SMTiX.js +925 -0
- package/dist/{vue-ui-mood-radar-B5W35Fvp.js → vue-ui-mood-radar-CCWaPr0P.js} +29 -29
- package/dist/{vue-ui-nested-donuts-wfesrzle.js → vue-ui-nested-donuts--BCPWkl7.js} +104 -104
- package/dist/{vue-ui-onion-B8-psLbF.js → vue-ui-onion-s4iMCGAP.js} +39 -39
- package/dist/vue-ui-parallel-coordinate-plot-CfgvpyoC.js +1416 -0
- package/dist/vue-ui-quadrant-T_UmRAAy.js +1978 -0
- package/dist/vue-ui-quick-chart-D1OWBgQJ.js +2469 -0
- package/dist/{vue-ui-radar-5fQ5AAWD.js → vue-ui-radar-CHjeGOMC.js} +78 -78
- package/dist/{vue-ui-rating-CKWHDKOT.js → vue-ui-rating-Bek8Tgr-.js} +33 -33
- package/dist/vue-ui-relation-circle-DRZGQ_UX.js +924 -0
- package/dist/{vue-ui-ridgeline-DVbYznRz.js → vue-ui-ridgeline-DIODGiu8.js} +101 -101
- package/dist/vue-ui-rings-CcdUSXGG.js +1246 -0
- package/dist/vue-ui-scatter-CixnqLoi.js +2413 -0
- package/dist/{vue-ui-skeleton-BkxB6Dik.js → vue-ui-skeleton-Fmue6DAG.js} +3 -3
- package/dist/{vue-ui-smiley-C4g0iaF7.js → vue-ui-smiley-BVMI5vUy.js} +9 -9
- package/dist/{vue-ui-spark-trend-0FELlq4x.js → vue-ui-spark-trend-DfZeLiWA.js} +98 -98
- package/dist/{vue-ui-sparkbar-D-i_VLO6.js → vue-ui-sparkbar-Cl1e49sw.js} +87 -87
- package/dist/{vue-ui-sparkgauge-CWw6w_ng.js → vue-ui-sparkgauge-DDNNBIdf.js} +48 -48
- package/dist/{vue-ui-sparkhistogram-DuGpkfma.js → vue-ui-sparkhistogram-ny_liYa6.js} +104 -104
- package/dist/{vue-ui-sparkline-Bi06lHQd.js → vue-ui-sparkline-BNxdO-Bx.js} +268 -268
- package/dist/vue-ui-sparkstackbar-BfF5-Wg2.js +662 -0
- package/dist/vue-ui-stackbar-B-2Me3d-.js +2332 -0
- package/dist/{vue-ui-stackline-C0NHBUaE.js → vue-ui-stackline-CdvVPQUM.js} +697 -694
- package/dist/{vue-ui-strip-plot-_6LL45i9.js → vue-ui-strip-plot-CRXPXA5V.js} +368 -368
- package/dist/{vue-ui-table-DBlZswRi.js → vue-ui-table-Dr1dK3d_.js} +25 -25
- package/dist/{vue-ui-table-heatmap-3xYIDKcP.js → vue-ui-table-heatmap-D-Qrm3oX.js} +5 -5
- package/dist/{vue-ui-table-sparkline-BH5PzEnJ.js → vue-ui-table-sparkline-C31Q32My.js} +201 -201
- package/dist/{vue-ui-thermometer-BxMzAqoT.js → vue-ui-thermometer-BUrtIfuo.js} +119 -119
- package/dist/{vue-ui-timer-ONSitYDm.js → vue-ui-timer-B5bkNNHS.js} +29 -29
- package/dist/{vue-ui-tiremarks-DWXM-9nR.js → vue-ui-tiremarks-Bn8b-ZSz.js} +14 -14
- package/dist/vue-ui-treemap-LMWiicop.js +1713 -0
- package/dist/{vue-ui-waffle-afa8HSxz.js → vue-ui-waffle-B_L3gkky.js} +306 -306
- package/dist/{vue-ui-wheel-DRP7X8S2.js → vue-ui-wheel-CeVwXtEX.js} +36 -36
- package/dist/{vue-ui-word-cloud-AKpMO97a.js → vue-ui-word-cloud-D81-qJLw.js} +37 -37
- package/dist/{vue-ui-world-CqS-HhZl.js → vue-ui-world-B7npRmTa.js} +399 -399
- package/dist/{vue-ui-xy-Bmd11BxR.js → vue-ui-xy-C2p9H2IX.js} +1438 -1436
- package/dist/{vue-ui-xy-DJ8YKPgs.js → vue-ui-xy-OhwS0kcZ.js} +218 -218
- package/dist/{vue-ui-xy-canvas-DO_PDGKf.js → vue-ui-xy-canvas-DLKDdH35.js} +420 -417
- package/package.json +1 -1
- package/dist/exposedLib-CjwriUaG.js +0 -19
- package/dist/vue-ui-3d-bar-BAH0jNtT.js +0 -1757
- package/dist/vue-ui-chestnut-Cx8T3NEl.js +0 -2010
- package/dist/vue-ui-chord-B-sauvLo.js +0 -1391
- package/dist/vue-ui-dumbbell-DgmvPpK2.js +0 -1530
- package/dist/vue-ui-funnel-BYCFV5TD.js +0 -777
- package/dist/vue-ui-history-plot-B7zuCfdg.js +0 -1715
- package/dist/vue-ui-molecule-BDrRmwmm.js +0 -925
- package/dist/vue-ui-parallel-coordinate-plot-DBpHCFxa.js +0 -1416
- package/dist/vue-ui-quadrant-BzyGOJR2.js +0 -1978
- package/dist/vue-ui-quick-chart-so_8PzvS.js +0 -2469
- package/dist/vue-ui-relation-circle-Bd_ONHCz.js +0 -924
- package/dist/vue-ui-rings-c-yLWFHr.js +0 -1246
- package/dist/vue-ui-scatter-QhmE7n1H.js +0 -2413
- package/dist/vue-ui-sparkstackbar-DrKgBUmt.js +0 -662
- package/dist/vue-ui-stackbar-DDvuDGQ_.js +0 -2329
- package/dist/vue-ui-treemap-B03c4RIy.js +0 -1713
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as
|
|
4
|
-
import { n as
|
|
5
|
-
import { t as
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import { Fragment as f, computed as p, createBlock as
|
|
2
|
+
import { Gt as t, Lt as n, Ot as r, Q as i, Rt as a, S as ee, Ut as te, W as ne, b as o, i as s, jt as c, q as l, t as re, ut as ie } from "./lib-EAmk-PgA.js";
|
|
3
|
+
import { t as ae } from "./useConfig-DYM3f6EI.js";
|
|
4
|
+
import { n as oe, t as se } from "./BaseScanner-DZvpgOjM.js";
|
|
5
|
+
import { t as u } from "./useNestedProp-D8XqxgOU.js";
|
|
6
|
+
import { t as ce } from "./useThemeCheck-C43Tcqmk.js";
|
|
7
|
+
import { t as le } from "./usePrefersMotion-BC-CsqR1.js";
|
|
8
|
+
import { t as d } from "./vue_ui_sparkbar-z6qO--Kf.js";
|
|
9
|
+
import { Fragment as f, computed as p, createBlock as ue, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createVNode as de, defineAsyncComponent as fe, mergeProps as _, nextTick as pe, normalizeProps as me, normalizeStyle as v, onMounted as y, openBlock as b, ref as x, renderList as he, renderSlot as S, toDisplayString as C, toRefs as ge, unref as w, useSlots as T, watch as E } from "vue";
|
|
10
10
|
//#region src/components/vue-ui-sparkbar.vue
|
|
11
11
|
var D = /* @__PURE__ */ e({ default: () => R }), O = [
|
|
12
12
|
"onClick",
|
|
@@ -56,11 +56,11 @@ var D = /* @__PURE__ */ e({ default: () => R }), O = [
|
|
|
56
56
|
},
|
|
57
57
|
emits: ["selectDatapoint"],
|
|
58
58
|
setup(e, { emit: D }) {
|
|
59
|
-
let R =
|
|
60
|
-
|
|
59
|
+
let R = fe(() => import("./PackageVersion-Dse0n05o.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(ne()), H = x(K()), xe = p(() => t({
|
|
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: t({
|
|
100
100
|
defaultConfig: H.value,
|
|
101
101
|
userConfig: xe.value
|
|
102
102
|
})
|
|
103
103
|
}), G = p(() => !!H.value.debug);
|
|
104
104
|
function K() {
|
|
105
|
-
let e =
|
|
105
|
+
let e = u({
|
|
106
106
|
userConfig: B.config,
|
|
107
107
|
defaultConfig: _e
|
|
108
|
-
}),
|
|
109
|
-
if (!
|
|
108
|
+
}), t = e.theme;
|
|
109
|
+
if (!t) return e;
|
|
110
110
|
if (!ve.value(e)) return ye(e), e;
|
|
111
|
-
let
|
|
112
|
-
userConfig:
|
|
111
|
+
let n = u({
|
|
112
|
+
userConfig: d[t] || B.config,
|
|
113
113
|
defaultConfig: e
|
|
114
|
-
}),
|
|
114
|
+
}), r = u({
|
|
115
115
|
userConfig: B.config,
|
|
116
|
-
defaultConfig:
|
|
116
|
+
defaultConfig: n
|
|
117
117
|
});
|
|
118
118
|
return {
|
|
119
|
-
...
|
|
120
|
-
customPalette:
|
|
119
|
+
...r,
|
|
120
|
+
customPalette: r.customPalette.length ? r.customPalette : te[t] || c
|
|
121
121
|
};
|
|
122
122
|
}
|
|
123
123
|
E(() => B.config, (e) => {
|
|
124
124
|
H.value = K();
|
|
125
125
|
}, { deep: !0 });
|
|
126
|
-
let Ce = p(() =>
|
|
126
|
+
let Ce = p(() => ee(H.value.customPalette)), q = x(W.value.map((e) => ({
|
|
127
127
|
...e,
|
|
128
128
|
value: H.value.style.animation.show ? 0 : e.value || 0,
|
|
129
129
|
formatter: e.formatter || null
|
|
130
|
-
}))), J =
|
|
131
|
-
|
|
132
|
-
|
|
130
|
+
}))), J = x(null);
|
|
131
|
+
y(async () => {
|
|
132
|
+
r(B.dataset) && i({
|
|
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
164
|
}), we = p(() => Math.max(...W.value.map((e) => e.value))), Te = p(() => (W.value.forEach((e, t) => {
|
|
165
|
-
|
|
165
|
+
ie({
|
|
166
166
|
datasetObject: e,
|
|
167
167
|
requiredAttributes: ["name", "value"]
|
|
168
168
|
}).forEach((e) => {
|
|
169
|
-
|
|
169
|
+
i({
|
|
170
170
|
componentName: "VueUiSparkbar",
|
|
171
171
|
type: "datasetSerieAttribute",
|
|
172
172
|
property: e,
|
|
@@ -174,10 +174,10 @@ var D = /* @__PURE__ */ e({ default: () => R }), O = [
|
|
|
174
174
|
debug: G.value
|
|
175
175
|
});
|
|
176
176
|
});
|
|
177
|
-
}), q.value.map((e,
|
|
177
|
+
}), q.value.map((e, t) => ({
|
|
178
178
|
...e,
|
|
179
179
|
value: e.value || 0,
|
|
180
|
-
color:
|
|
180
|
+
color: o(e.color) || Ce.value[t] || c[t] || c[t % c.length]
|
|
181
181
|
}))));
|
|
182
182
|
function Z(e) {
|
|
183
183
|
return e / we.value;
|
|
@@ -210,78 +210,78 @@ 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:
|
|
253
|
-
onClick: (e) => De(t,
|
|
254
|
-
onMouseenter: (e) => Oe(t,
|
|
255
|
-
onMouseleave: (e) => ke(t,
|
|
250
|
+
}, C(H.value.style.title.subtitle.text), 5)) : m("", !0)], 4)) : m("", !0),
|
|
251
|
+
(b(!0), h(f, null, he(Te.value, (t, r) => (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 && r !== w(W).length - 1 ? "margin-bottom:6px" : ""}`),
|
|
253
|
+
onClick: (e) => De(t, r),
|
|
254
|
+
onMouseenter: (e) => Oe(t, r),
|
|
255
|
+
onMouseleave: (e) => ke(t, r)
|
|
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(s)(t.formatter, t.value, w(l)({
|
|
264
264
|
p: t.prefix || "",
|
|
265
265
|
v: t.value,
|
|
266
266
|
s: t.suffix || "",
|
|
267
267
|
r: t.rounding || 0
|
|
268
268
|
}), {
|
|
269
269
|
datapoint: t,
|
|
270
|
-
seriesIndex:
|
|
270
|
+
seriesIndex: r
|
|
271
271
|
}),
|
|
272
|
-
targetLabel:
|
|
272
|
+
targetLabel: w(s)(t.formatter, $(t), w(l)({
|
|
273
273
|
p: t.prefix || "",
|
|
274
274
|
v: $(t),
|
|
275
275
|
s: t.suffix || "",
|
|
276
276
|
r: t.rounding || 0
|
|
277
277
|
}), {
|
|
278
278
|
datapoint: t,
|
|
279
|
-
seriesIndex:
|
|
279
|
+
seriesIndex: r
|
|
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,70 +303,70 @@ var D = /* @__PURE__ */ e({ default: () => R }), O = [
|
|
|
303
303
|
justifyContent: "space-between",
|
|
304
304
|
marginTop: "5px"
|
|
305
305
|
})
|
|
306
|
-
}, [
|
|
306
|
+
}, [g("div", { style: v({
|
|
307
307
|
height: "100%",
|
|
308
308
|
width: "40px",
|
|
309
309
|
borderRadius: H.value.style.labels.fontSize / 4 + "px",
|
|
310
310
|
backgroundColor: "#6A6A6A80"
|
|
311
|
-
}) }, null, 4),
|
|
311
|
+
}) }, null, 4), g("div", { style: v({
|
|
312
312
|
height: "100%",
|
|
313
313
|
width: "15px",
|
|
314
314
|
borderRadius: H.value.style.labels.fontSize / 4 + "px",
|
|
315
315
|
backgroundColor: "#6A6A6A80"
|
|
316
|
-
}) }, null, 4)], 4)) : (
|
|
317
|
-
|
|
318
|
-
H.value.style.labels.value.show ? (
|
|
316
|
+
}) }, null, 4)], 4)) : (b(), h(f, { key: 1 }, [
|
|
317
|
+
g("span", null, C(t.name), 1),
|
|
318
|
+
H.value.style.labels.value.show ? (b(), h("span", {
|
|
319
319
|
key: 0,
|
|
320
|
-
style:
|
|
320
|
+
style: v(`font-weight:${H.value.style.labels.value.bold ? "bold" : "normal"}`),
|
|
321
321
|
class: "vue-ui-sparkbar-datapoint-name"
|
|
322
|
-
}, ": " + w(
|
|
322
|
+
}, ": " + C(w(s)(t.formatter, t.value, w(l)({
|
|
323
323
|
p: t.prefix || "",
|
|
324
324
|
v: t.value,
|
|
325
325
|
s: t.suffix || "",
|
|
326
326
|
r: t.rounding || 0
|
|
327
327
|
}), {
|
|
328
328
|
datapoint: t,
|
|
329
|
-
seriesIndex:
|
|
330
|
-
})), 5)) :
|
|
331
|
-
H.value.style.layout.showTargetValue ? (
|
|
329
|
+
seriesIndex: r
|
|
330
|
+
})), 5)) : m("", !0),
|
|
331
|
+
H.value.style.layout.showTargetValue ? (b(), h("span", k, C(" " + H.value.style.layout.targetValueText) + " " + C(w(s)(t.formatter, $(t), w(l)({
|
|
332
332
|
p: t.prefix || "",
|
|
333
333
|
v: $(t),
|
|
334
334
|
s: t.suffix || "",
|
|
335
335
|
r: t.rounding || 0
|
|
336
336
|
}), {
|
|
337
337
|
datapoint: t,
|
|
338
|
-
seriesIndex:
|
|
339
|
-
})), 1)) :
|
|
340
|
-
], 64))], 4)) :
|
|
341
|
-
(
|
|
338
|
+
seriesIndex: r
|
|
339
|
+
})), 1)) : m("", !0)
|
|
340
|
+
], 64))], 4)) : m("", !0),
|
|
341
|
+
(b(), h("svg", {
|
|
342
342
|
role: "img",
|
|
343
|
-
xmlns:
|
|
343
|
+
xmlns: w(re),
|
|
344
344
|
viewBox: `0 0 ${X.value.width} ${X.value.height}`,
|
|
345
345
|
width: "100%"
|
|
346
346
|
}, [
|
|
347
|
-
|
|
348
|
-
|
|
347
|
+
de(w(R)),
|
|
348
|
+
g("defs", null, [g("linearGradient", {
|
|
349
349
|
x1: "0%",
|
|
350
350
|
y1: "0%",
|
|
351
351
|
x2: "100%",
|
|
352
352
|
y2: "0%",
|
|
353
|
-
id: `sparkbar_gradient_${
|
|
354
|
-
}, [
|
|
353
|
+
id: `sparkbar_gradient_${r}_${V.value}`
|
|
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,18 +374,18 @@ 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,
|
|
381
381
|
y: 0,
|
|
382
|
-
fill: H.value.style.bar.gradient.show ? `url(#sparkbar_gradient_${
|
|
382
|
+
fill: H.value.style.bar.gradient.show ? `url(#sparkbar_gradient_${r}_${V.value})` : t.color,
|
|
383
383
|
rx: X.value.height / 2
|
|
384
384
|
}, null, 8, I)
|
|
385
385
|
], 8, A))
|
|
386
386
|
], 44, O))), 256)),
|
|
387
|
-
e.$slots.source ? (
|
|
388
|
-
|
|
387
|
+
e.$slots.source ? (b(), h("div", L, [S(e.$slots, "source")], 512)) : m("", !0),
|
|
388
|
+
w(U) ? (b(), ue(se, { key: 3 })) : m("", !0)
|
|
389
389
|
], 4));
|
|
390
390
|
}
|
|
391
391
|
};
|
|
@@ -1,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 u, createBlock as
|
|
2
|
+
import { Gt as t, Ot as n, Q as r, W as ee, gt as te, i, q as a, t as o, ut as s, v as c } from "./lib-EAmk-PgA.js";
|
|
3
|
+
import { t as ne } from "./useConfig-DYM3f6EI.js";
|
|
4
|
+
import { n as re, t as ie } from "./BaseScanner-DZvpgOjM.js";
|
|
5
|
+
import { t as l } from "./useNestedProp-D8XqxgOU.js";
|
|
6
|
+
import { t as ae } from "./useThemeCheck-C43Tcqmk.js";
|
|
7
|
+
import { t as oe } from "./useChartAccessibility-DYqac8yF.js";
|
|
8
|
+
import { t as se } from "./usePrefersMotion-BC-CsqR1.js";
|
|
9
|
+
import { t as ce } from "./vue_ui_sparkgauge-BX1MS3bA.js";
|
|
10
|
+
import { computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createVNode as le, defineAsyncComponent as ue, normalizeClass as de, normalizeStyle as h, onBeforeUnmount as fe, onMounted as g, openBlock as _, ref as v, renderSlot as y, toDisplayString as b, toRefs as pe, unref as x, watch as S } from "vue";
|
|
11
11
|
//#region src/components/vue-ui-sparkgauge.vue
|
|
12
12
|
var C = /* @__PURE__ */ e({ default: () => j }), me = ["xmlns", "viewBox"], he = ["width", "height"], ge = ["id"], w = ["stop-color"], T = ["stop-color"], E = [
|
|
13
13
|
"d",
|
|
@@ -50,7 +50,7 @@ var C = /* @__PURE__ */ e({ default: () => j }), me = ["xmlns", "viewBox"], he =
|
|
|
50
50
|
}
|
|
51
51
|
},
|
|
52
52
|
setup(e) {
|
|
53
|
-
let C =
|
|
53
|
+
let C = ue(() => import("./PackageVersion-Dse0n05o.js").then((e) => e.t)), { vue_ui_sparkgauge: j } = ne(), { isThemeValid: M, warnInvalidTheme: N } = ae(), P = se(), F = v(null), I = e, L = v(ee()), R = v(W()), z = u(() => R.value.style.animation.show && !P.value), _e = u(() => t({
|
|
54
54
|
defaultConfig: { style: {
|
|
55
55
|
animation: { show: !1 },
|
|
56
56
|
background: "#99999930",
|
|
@@ -62,7 +62,7 @@ var C = /* @__PURE__ */ e({ default: () => j }), me = ["xmlns", "viewBox"], he =
|
|
|
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 } = re({
|
|
66
66
|
...pe(I),
|
|
67
67
|
FINAL_CONFIG: R,
|
|
68
68
|
prepareConfig: W,
|
|
@@ -72,7 +72,7 @@ var C = /* @__PURE__ */ e({ default: () => j }), me = ["xmlns", "viewBox"], he =
|
|
|
72
72
|
max: 1,
|
|
73
73
|
title: ""
|
|
74
74
|
},
|
|
75
|
-
skeletonConfig:
|
|
75
|
+
skeletonConfig: t({
|
|
76
76
|
defaultConfig: R.value,
|
|
77
77
|
userConfig: _e.value
|
|
78
78
|
})
|
|
@@ -83,19 +83,19 @@ var C = /* @__PURE__ */ e({ default: () => j }), me = ["xmlns", "viewBox"], he =
|
|
|
83
83
|
max: t,
|
|
84
84
|
diff: t - e
|
|
85
85
|
};
|
|
86
|
-
}), U = u(() => H.value.diff / R.value.style.animation.speedMs), { svgRef: ve } =
|
|
86
|
+
}), U = u(() => H.value.diff / R.value.style.animation.speedMs), { svgRef: ve } = oe({ config: { text: I.dataset?.title || "" } });
|
|
87
87
|
function W() {
|
|
88
|
-
let e =
|
|
88
|
+
let e = l({
|
|
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 = l({
|
|
95
|
+
userConfig: ce[t] || I.config,
|
|
96
96
|
defaultConfig: e
|
|
97
97
|
});
|
|
98
|
-
return
|
|
98
|
+
return l({
|
|
99
99
|
userConfig: I.config,
|
|
100
100
|
defaultConfig: n
|
|
101
101
|
});
|
|
@@ -105,11 +105,11 @@ var C = /* @__PURE__ */ e({ default: () => j }), me = ["xmlns", "viewBox"], he =
|
|
|
105
105
|
});
|
|
106
106
|
let G = u(() => R.value.debug);
|
|
107
107
|
function K() {
|
|
108
|
-
|
|
108
|
+
n(I.dataset) ? r({
|
|
109
109
|
componentName: "VueUiSparkgauge",
|
|
110
110
|
type: "dataset",
|
|
111
111
|
debug: G.value
|
|
112
|
-
}) :
|
|
112
|
+
}) : s({
|
|
113
113
|
datasetObject: I.dataset,
|
|
114
114
|
requiredAttributes: [
|
|
115
115
|
"value",
|
|
@@ -117,7 +117,7 @@ var C = /* @__PURE__ */ e({ default: () => j }), me = ["xmlns", "viewBox"], he =
|
|
|
117
117
|
"max"
|
|
118
118
|
]
|
|
119
119
|
}).forEach((e) => {
|
|
120
|
-
|
|
120
|
+
r({
|
|
121
121
|
componentName: "VueUiSparkgauge",
|
|
122
122
|
type: "datasetAttribute",
|
|
123
123
|
property: e,
|
|
@@ -156,54 +156,54 @@ var C = /* @__PURE__ */ e({ default: () => j }), me = ["xmlns", "viewBox"], he =
|
|
|
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
158
|
}), Q = u(() => te(R.value.style.colors.min, R.value.style.colors.max, H.value.min, H.value.max, J.value)), $ = u(() => R.value.style.dataLabel.autoColor ? Q.value : R.value.style.dataLabel.color), be = u(() => R.value.style.track.autoColor ? Q.value : R.value.style.track.color);
|
|
159
|
-
return
|
|
159
|
+
return fe(() => {
|
|
160
160
|
F.value && cancelAnimationFrame(F.value);
|
|
161
|
-
}), (e, t) => (_(),
|
|
161
|
+
}), (e, t) => (_(), 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
|
-
R.value.style.title.show && X.value && R.value.style.title.position === "top" ? (_(),
|
|
165
|
+
R.value.style.title.show && X.value && R.value.style.title.position === "top" ? (_(), p("div", {
|
|
166
166
|
key: 0,
|
|
167
167
|
class: "vue-data-ui-sparkgauge-label",
|
|
168
|
-
style:
|
|
169
|
-
}, b(X.value), 5)) :
|
|
170
|
-
(_(),
|
|
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
|
+
}, b(X.value), 5)) : f("", !0),
|
|
170
|
+
(_(), p("svg", {
|
|
171
171
|
ref_key: "svgRef",
|
|
172
172
|
ref: ve,
|
|
173
|
-
xmlns: x(
|
|
173
|
+
xmlns: x(o),
|
|
174
174
|
viewBox: `0 0 ${q.value.width} ${q.value.height}`,
|
|
175
175
|
style: "overflow: visible; background:transparent; width:100%;"
|
|
176
176
|
}, [
|
|
177
|
-
|
|
178
|
-
e.$slots["chart-background"] && !x(B) ? (_(),
|
|
177
|
+
le(x(C)),
|
|
178
|
+
e.$slots["chart-background"] && !x(B) ? (_(), p("foreignObject", {
|
|
179
179
|
key: 0,
|
|
180
180
|
x: 0,
|
|
181
181
|
y: 0,
|
|
182
182
|
width: q.value.width,
|
|
183
183
|
height: q.value.height,
|
|
184
184
|
style: { pointerEvents: "none" }
|
|
185
|
-
}, [y(e.$slots, "chart-background")], 8, he)) :
|
|
186
|
-
|
|
185
|
+
}, [y(e.$slots, "chart-background")], 8, he)) : f("", !0),
|
|
186
|
+
m("defs", null, [m("linearGradient", {
|
|
187
187
|
id: `gradient_${L.value}`,
|
|
188
188
|
x1: "-10%",
|
|
189
189
|
y1: "100%",
|
|
190
190
|
x2: "110%",
|
|
191
191
|
y2: "100%"
|
|
192
|
-
}, [
|
|
192
|
+
}, [m("stop", {
|
|
193
193
|
offset: "0%",
|
|
194
194
|
"stop-color": R.value.style.colors.min
|
|
195
|
-
}, null, 8, w),
|
|
195
|
+
}, null, 8, w), m("stop", {
|
|
196
196
|
offset: "100%",
|
|
197
197
|
"stop-color": R.value.style.colors.max
|
|
198
198
|
}, null, 8, T)], 8, ge)]),
|
|
199
|
-
|
|
199
|
+
m("path", {
|
|
200
200
|
d: `M10 ${q.value.base} A 1 1 0 1 1 118 ${q.value.base}`,
|
|
201
201
|
stroke: R.value.style.gutter.color,
|
|
202
202
|
"stroke-width": 8,
|
|
203
203
|
"stroke-linecap": R.value.style.gutter.strokeLinecap,
|
|
204
204
|
fill: "none"
|
|
205
205
|
}, null, 8, E),
|
|
206
|
-
Z.value === 0 ?
|
|
206
|
+
Z.value === 0 ? f("", !0) : (_(), p("path", {
|
|
207
207
|
key: 1,
|
|
208
208
|
d: `M10 ${q.value.base} A 1 1 0 1 1 118 ${q.value.base}`,
|
|
209
209
|
stroke: R.value.style.colors.showGradient ? `url(#gradient_${L.value})` : be.value,
|
|
@@ -212,10 +212,10 @@ var C = /* @__PURE__ */ e({ default: () => j }), me = ["xmlns", "viewBox"], he =
|
|
|
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
|
-
x(B) ? (_(),
|
|
218
|
+
x(B) ? (_(), p("rect", {
|
|
219
219
|
key: 2,
|
|
220
220
|
x: q.value.width / 2 - R.value.style.dataLabel.fontSize / 2,
|
|
221
221
|
y: q.value.base + 6 + R.value.style.dataLabel.offsetY - R.value.style.dataLabel.fontSize,
|
|
@@ -223,7 +223,7 @@ var C = /* @__PURE__ */ e({ default: () => j }), me = ["xmlns", "viewBox"], he =
|
|
|
223
223
|
height: R.value.style.dataLabel.fontSize,
|
|
224
224
|
fill: "#6A6A6A50",
|
|
225
225
|
rx: 3
|
|
226
|
-
}, null, 8, O)) : (_(),
|
|
226
|
+
}, null, 8, O)) : (_(), p("text", {
|
|
227
227
|
key: 3,
|
|
228
228
|
"text-anchor": "middle",
|
|
229
229
|
x: q.value.width / 2,
|
|
@@ -231,23 +231,23 @@ var C = /* @__PURE__ */ e({ default: () => j }), me = ["xmlns", "viewBox"], he =
|
|
|
231
231
|
"font-size": R.value.style.dataLabel.fontSize,
|
|
232
232
|
fill: $.value,
|
|
233
233
|
"font-weight": R.value.style.dataLabel.bold ? "bold" : "normal"
|
|
234
|
-
}, b(x(
|
|
234
|
+
}, b(x(i)(R.value.style.dataLabel.formatter, x(c)(J.value), x(a)({
|
|
235
235
|
p: R.value.style.dataLabel.prefix,
|
|
236
|
-
v: x(
|
|
236
|
+
v: x(c)(J.value),
|
|
237
237
|
s: R.value.style.dataLabel.suffix,
|
|
238
238
|
r: R.value.style.dataLabel.rounding
|
|
239
239
|
}), {
|
|
240
|
-
datapoint: x(
|
|
240
|
+
datapoint: x(c)(J.value),
|
|
241
241
|
color: $.value
|
|
242
242
|
})), 9, k))
|
|
243
243
|
], 8, me)),
|
|
244
|
-
R.value.style.title.show && X.value && R.value.style.title.position === "bottom" ? (_(),
|
|
244
|
+
R.value.style.title.show && X.value && R.value.style.title.position === "bottom" ? (_(), p("div", {
|
|
245
245
|
key: 1,
|
|
246
246
|
class: "vue-data-ui-sparkgauge-label",
|
|
247
|
-
style:
|
|
248
|
-
}, b(X.value), 5)) :
|
|
249
|
-
e.$slots.source ? (_(),
|
|
250
|
-
y(e.$slots, "skeleton", {}, () => [x(B) ? (_(),
|
|
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
|
+
}, b(X.value), 5)) : f("", !0),
|
|
249
|
+
e.$slots.source ? (_(), p("div", A, [y(e.$slots, "source")], 512)) : f("", !0),
|
|
250
|
+
y(e.$slots, "skeleton", {}, () => [x(B) ? (_(), d(ie, { key: 0 })) : f("", !0)])
|
|
251
251
|
], 4));
|
|
252
252
|
}
|
|
253
253
|
};
|