vue-data-ui 3.20.11 → 3.21.0
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-D6j6ocXm.js → Arrow-_pDGXl76.js} +1 -1
- package/dist/{BaseDraggableDialog-4hDW-Rj2.js → BaseDraggableDialog-BvaFJWHb.js} +2 -2
- package/dist/{BaseIcon-DfLoHNUj.js → BaseIcon-CbDazQLH.js} +1 -1
- package/dist/{BaseLegendToggle-C_Db-y7s.js → BaseLegendToggle-BNRi408o.js} +1 -1
- package/dist/{BaseZoomControls-CG7hI_1P.js → BaseZoomControls-Dbtq9oyx.js} +2 -2
- package/dist/{ColorPicker-Bjwxnvfh.js → ColorPicker-B4ob7JgP.js} +2 -2
- package/dist/{DataTable-B--IN22e.js → DataTable-DweDyHc1.js} +2 -2
- package/dist/{Legend-Cz2uQ5gs.js → Legend-BLhREbj7.js} +2 -2
- package/dist/{NonSvgPenAndPaper-gLNJ1Lmr.js → NonSvgPenAndPaper-BzZyMJBF.js} +3 -3
- package/dist/{PackageVersion-eS823iMF.js → PackageVersion-DYLo3MRd.js} +1 -1
- package/dist/{PenAndPaper-DqrClVfb.js → PenAndPaper-D4aFMYZf.js} +3 -3
- package/dist/{Shape-BPCJfphn.js → Shape-BxFtoF1z.js} +1 -1
- package/dist/{Slicer-SHBj0VaV.js → Slicer-GABgkLkB.js} +2 -2
- package/dist/{SlicerPreview-By4kBVCY.js → SlicerPreview-CXLgqXX8.js} +6 -6
- package/dist/{SparkTooltip-CfE6yCad.js → SparkTooltip-CdSRUoZN.js} +6 -6
- package/dist/{Title-NWp4qB4K.js → Title-DH6G8_cZ.js} +1 -1
- package/dist/{Tooltip-BENq327o.js → Tooltip-979Ytd8R.js} +1 -1
- package/dist/{UserOptions-C1NgoGu6.js → UserOptions-qFz-9Pnw.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-BYtB4BF3.js → dom-to-png-CtV3uxDJ.js} +1 -1
- package/dist/exposedLib-BJbE_A8E.js +19 -0
- package/dist/{img-1cKsci8e.js → img-C_RNNswI.js} +1 -1
- package/dist/{labelUtils-CUctkYoA.js → labelUtils-Bycs-017.js} +1 -1
- package/dist/{lib-DUeYQsS0.js → lib-AJRHFE5U.js} +12 -6
- package/dist/{pdf-D0eZ99cP.js → pdf-CdX23zf1.js} +1 -1
- package/dist/ssr.js +1366 -0
- package/dist/types/ssr.d.ts +128 -0
- package/dist/types/vue-data-ui.d.ts +135 -1
- package/dist/{useAutoSizeLabelsInsideViewbox-BIVntRZp.js → useAutoSizeLabelsInsideViewbox-kjVKQz36.js} +1 -1
- package/dist/{useNestedProp-CNcoy38D.js → useNestedProp-DtcXIg7n.js} +1 -1
- package/dist/{usePrinter-C1Gqt_Sp.js → usePrinter-6n2MzVyV.js} +2 -2
- package/dist/utils.js +8 -8
- package/dist/{vue-data-ui-0t8DsSSW.js → vue-data-ui-D2dM3IQZ.js} +68 -68
- package/dist/vue-data-ui.js +72 -72
- package/dist/vue-ui-3d-bar-0C_yshya.js +1757 -0
- package/dist/{vue-ui-accordion-Bpbv-VHE.js → vue-ui-accordion-DLnwuQda.js} +3 -3
- package/dist/vue-ui-age-pyramid-DFNELwbT.js +1238 -0
- package/dist/{vue-ui-annotator-Q57JevNc.js → vue-ui-annotator-BljP5cB7.js} +8 -8
- package/dist/vue-ui-bullet-ChQq42AN.js +710 -0
- package/dist/{vue-ui-bump-CE8VRCs2.js → vue-ui-bump-BVCYywuS.js} +253 -253
- package/dist/{vue-ui-candlestick-B4tkLoQe.js → vue-ui-candlestick-CQ0nfkmL.js} +276 -276
- package/dist/vue-ui-carousel-table-Cvi1gsKR.js +455 -0
- package/dist/vue-ui-chestnut-DeWbKqze.js +2010 -0
- package/dist/vue-ui-chord-bRXYWpGT.js +1391 -0
- package/dist/{vue-ui-circle-pack-SCxS2mrl.js → vue-ui-circle-pack-DWO8x9gf.js} +36 -36
- package/dist/{vue-ui-cursor-DT8uNrQa.js → vue-ui-cursor-BKGUvOWO.js} +3 -3
- package/dist/{vue-ui-dag-CK30vhll.js → vue-ui-dag-lL0juBzN.js} +20 -20
- package/dist/{vue-ui-dashboard-Cf21Q0H0.js → vue-ui-dashboard-CEk2z8v9.js} +69 -69
- package/dist/{vue-ui-digits-DiapBzIK.js → vue-ui-digits-BAjr0eIJ.js} +3 -3
- package/dist/vue-ui-donut-BsSpIinL.js +2410 -0
- package/dist/vue-ui-donut-evolution-1UhFKEgG.js +1510 -0
- package/dist/vue-ui-dumbbell-ChqJicg9.js +1530 -0
- package/dist/{vue-ui-flow-uPuvDSxv.js → vue-ui-flow-BXfzMTXx.js} +57 -57
- package/dist/{vue-ui-funnel-CCy9NFKa.js → vue-ui-funnel-BpnC82m0.js} +32 -32
- package/dist/{vue-ui-galaxy-BjoOO1lq.js → vue-ui-galaxy-FNzwDOH1.js} +330 -330
- package/dist/vue-ui-gauge-D6I78FZr.js +920 -0
- package/dist/{vue-ui-geo-C8FXD9it.js → vue-ui-geo-Z1xuH8r6.js} +18 -18
- package/dist/{vue-ui-gizmo-BiLdRUEw.js → vue-ui-gizmo-ZlmJIh0_.js} +62 -62
- package/dist/{vue-ui-heatmap-D3ewCJX6.js → vue-ui-heatmap-BWN0UBKE.js} +264 -264
- package/dist/{vue-ui-history-plot-BpyvvMPA.js → vue-ui-history-plot-2E6KrNhv.js} +74 -74
- package/dist/vue-ui-horizontal-bar-BzP7k_3J.js +1681 -0
- package/dist/{vue-ui-kpi-YCPfpGty.js → vue-ui-kpi-B9bdicir.js} +3 -3
- package/dist/{vue-ui-mini-loader-Bi0nsbao.js → vue-ui-mini-loader-BnLOdRA0.js} +2 -2
- package/dist/vue-ui-molecule-B-69fE_1.js +925 -0
- package/dist/{vue-ui-mood-radar-81X63j-D.js → vue-ui-mood-radar-D3kF7iHz.js} +21 -21
- package/dist/{vue-ui-nested-donuts-C1j-h8RW.js → vue-ui-nested-donuts-CTmomXj1.js} +256 -256
- package/dist/{vue-ui-onion-CZLJxedN.js → vue-ui-onion-3fJB4mfC.js} +45 -45
- package/dist/{vue-ui-parallel-coordinate-plot-Czndz3oA.js → vue-ui-parallel-coordinate-plot-CKKkbBlu.js} +39 -39
- package/dist/{vue-ui-quadrant-LwMr7DKL.js → vue-ui-quadrant-DGLnjwva.js} +355 -355
- package/dist/{vue-ui-quick-chart-C20W7LNY.js → vue-ui-quick-chart-DJnhlEXi.js} +359 -359
- package/dist/vue-ui-radar-AIBX0QYs.js +1229 -0
- package/dist/{vue-ui-rating-D8QQctnQ.js → vue-ui-rating-pDVqT08V.js} +33 -33
- package/dist/vue-ui-relation-circle-BQVR8L9Y.js +924 -0
- package/dist/{vue-ui-ridgeline-B5BRKUoc.js → vue-ui-ridgeline-CYq3APPQ.js} +54 -54
- package/dist/{vue-ui-rings-DVA3hiUL.js → vue-ui-rings-BgFO7NYF.js} +81 -81
- package/dist/vue-ui-scatter-BPu5DwaJ.js +2413 -0
- package/dist/{vue-ui-skeleton-DxXA3XSP.js → vue-ui-skeleton-qpdvvWtx.js} +41 -41
- package/dist/{vue-ui-smiley-CqwB6Uhu.js → vue-ui-smiley-DUI5n89s.js} +16 -16
- package/dist/{vue-ui-spark-trend-B3mkyeZ3.js → vue-ui-spark-trend-CQ9ZN5sL.js} +27 -27
- package/dist/{vue-ui-sparkbar-BlmV-ndv.js → vue-ui-sparkbar-d6ctWlLA.js} +83 -83
- package/dist/{vue-ui-sparkgauge-DKRJDqAS.js → vue-ui-sparkgauge-HX_rqLxX.js} +44 -44
- package/dist/{vue-ui-sparkhistogram-BNiXxI65.js → vue-ui-sparkhistogram-B_zxKMHv.js} +110 -110
- package/dist/vue-ui-sparkline-BSdOdtKu.js +1507 -0
- package/dist/{vue-ui-sparkstackbar-C6qMimoL.js → vue-ui-sparkstackbar-B2sqpW-w.js} +155 -155
- package/dist/{vue-ui-stackbar-C7jTnGyT.js → vue-ui-stackbar-DH75CCpy.js} +81 -81
- package/dist/vue-ui-stackline-CXodezD1.js +2398 -0
- package/dist/{vue-ui-strip-plot-CvjdxEOT.js → vue-ui-strip-plot-C1un5Mku.js} +90 -90
- package/dist/{vue-ui-table-B0zkvlw5.js → vue-ui-table-R-aXpHvF.js} +78 -78
- package/dist/{vue-ui-table-heatmap-xwfStZrD.js → vue-ui-table-heatmap-C1e_7MJ2.js} +16 -16
- package/dist/{vue-ui-table-sparkline-BQjo2sbB.js → vue-ui-table-sparkline-Dy-6i82F.js} +22 -22
- package/dist/{vue-ui-thermometer-CVhxnkN-.js → vue-ui-thermometer-CIse_lcE.js} +21 -21
- package/dist/{vue-ui-timer-Cimuw9rF.js → vue-ui-timer-AlYvthQ6.js} +23 -23
- package/dist/{vue-ui-tiremarks-CSPL1oli.js → vue-ui-tiremarks-CP_bw6by.js} +19 -19
- package/dist/{vue-ui-treemap-BWivpffU.js → vue-ui-treemap-BXrV5VAp.js} +65 -65
- package/dist/{vue-ui-waffle-FmLPDL2g.js → vue-ui-waffle-uoqEnQ30.js} +232 -232
- package/dist/{vue-ui-wheel-BjdVO5f4.js → vue-ui-wheel-DLgw_xfe.js} +36 -36
- package/dist/{vue-ui-word-cloud-hhjEM6ee.js → vue-ui-word-cloud-Bgu-qbcp.js} +35 -35
- package/dist/{vue-ui-world-H9HX6smc.js → vue-ui-world-B93iq1ZM.js} +445 -445
- package/dist/vue-ui-xy-DzuOBbPL.js +4744 -0
- package/dist/{vue-ui-xy-canvas-kbP-mjEo.js → vue-ui-xy-canvas-DjxM7y3T.js} +60 -60
- package/package.json +5 -1
- package/dist/exposedLib-CI8ji8G-.js +0 -19
- package/dist/vue-ui-3d-bar-D1dX4mDU.js +0 -1757
- package/dist/vue-ui-age-pyramid-BYIxO-rR.js +0 -1238
- package/dist/vue-ui-bullet-B65T4IyK.js +0 -710
- package/dist/vue-ui-carousel-table-DB1kG5AJ.js +0 -455
- package/dist/vue-ui-chestnut-CXzK4gsf.js +0 -2010
- package/dist/vue-ui-chord-BhuABwXT.js +0 -1391
- package/dist/vue-ui-donut-DrM628Ge.js +0 -2410
- package/dist/vue-ui-donut-evolution-CIXY4tKY.js +0 -1510
- package/dist/vue-ui-dumbbell-B8V84XkY.js +0 -1530
- package/dist/vue-ui-gauge-DbV0oQs3.js +0 -920
- package/dist/vue-ui-horizontal-bar-DoCvNzdC.js +0 -1681
- package/dist/vue-ui-molecule-IFNTvQdE.js +0 -925
- package/dist/vue-ui-radar-Dxopl3RI.js +0 -1229
- package/dist/vue-ui-relation-circle-CMRXow6X.js +0 -924
- package/dist/vue-ui-scatter-DcveiIfl.js +0 -2413
- package/dist/vue-ui-sparkline-C5EDZIAt.js +0 -1507
- package/dist/vue-ui-stackline-fdOF6lLn.js +0 -2398
- package/dist/vue-ui-xy-omDIF90L.js +0 -4744
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { Bt as t,
|
|
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 { Bt as t, Ft as n, G as r, H as i, Ht as a, Ot as o, Pt as s, Tt as ee, X as c, ct as te, i as l, t as ne, x as u, y as re } from "./lib-AJRHFE5U.js";
|
|
3
|
+
import { t as ie } from "./useConfig-DnH7Pf_2.js";
|
|
4
|
+
import { n as ae, t as oe } from "./BaseScanner-Dr2a1Msy.js";
|
|
5
|
+
import { t as d } from "./useNestedProp-DtcXIg7n.js";
|
|
6
|
+
import { t as se } from "./useThemeCheck-C43Tcqmk.js";
|
|
7
|
+
import { t as ce } from "./usePrefersMotion-BC-CsqR1.js";
|
|
8
|
+
import { t as le } from "./vue_ui_sparkbar-z6qO--Kf.js";
|
|
9
|
+
import { Fragment as f, computed as p, createBlock as m, createCommentVNode as h, createElementBlock as g, createElementVNode as _, createVNode as ue, defineAsyncComponent as de, mergeProps as v, nextTick as fe, normalizeProps as pe, normalizeStyle as y, onMounted as b, openBlock as x, ref as S, renderList as me, renderSlot as C, toDisplayString as w, toRefs as he, unref as T, useSlots as ge, 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 = de(() => import("./PackageVersion-DYLo3MRd.js").then((e) => e.t)), { vue_ui_sparkbar: _e } = ie(), { isThemeValid: ve, warnInvalidTheme: ye } = se(), z = ce(), B = e, be = ge();
|
|
60
|
+
b(() => {
|
|
61
61
|
be["chart-background"] && console.warn("VueUiSparkbar does not support the #chart-background slot.");
|
|
62
62
|
});
|
|
63
|
-
let V =
|
|
63
|
+
let V = S(i()), H = S(K()), xe = p(() => a({
|
|
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 } = ae({
|
|
76
|
+
...he(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: a({
|
|
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 = d({
|
|
106
106
|
userConfig: B.config,
|
|
107
107
|
defaultConfig: _e
|
|
108
|
-
}),
|
|
109
|
-
if (!
|
|
108
|
+
}), n = e.theme;
|
|
109
|
+
if (!n) return e;
|
|
110
110
|
if (!ve.value(e)) return ye(e), e;
|
|
111
|
-
let
|
|
112
|
-
userConfig:
|
|
111
|
+
let r = d({
|
|
112
|
+
userConfig: le[n] || B.config,
|
|
113
113
|
defaultConfig: e
|
|
114
|
-
}), i =
|
|
114
|
+
}), i = d({
|
|
115
115
|
userConfig: B.config,
|
|
116
|
-
defaultConfig:
|
|
116
|
+
defaultConfig: r
|
|
117
117
|
});
|
|
118
118
|
return {
|
|
119
119
|
...i,
|
|
120
|
-
customPalette: i.customPalette.length ? i.customPalette :
|
|
120
|
+
customPalette: i.customPalette.length ? i.customPalette : t[n] || o
|
|
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(() => u(H.value.customPalette)), q = S(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 = S(null);
|
|
131
|
+
b(async () => {
|
|
132
|
+
ee(B.dataset) && c({
|
|
133
133
|
componentName: "VueUiSparkbar",
|
|
134
134
|
type: "dataset",
|
|
135
135
|
debug: G.value
|
|
@@ -156,9 +156,9 @@ 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
|
+
})), fe(Y);
|
|
160
160
|
}, { deep: !0 });
|
|
161
|
-
let X =
|
|
161
|
+
let X = S({
|
|
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) => {
|
|
@@ -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: re(e.color) || Ce.value[t] || o[t] || o[t % o.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) => (x(), g("div", {
|
|
214
214
|
class: "vue-data-ui-component vue-ui-sparkbar",
|
|
215
|
-
style:
|
|
215
|
+
style: y({
|
|
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 : T(s)(H.value.style.backgroundColor, B.backgroundOpacity)
|
|
220
220
|
})
|
|
221
221
|
}, [
|
|
222
|
-
e.$slots.title ?
|
|
222
|
+
e.$slots.title ? C(e.$slots, "title", pe(v({ 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
|
+
} }))) : h("", !0),
|
|
227
|
+
!e.$slots.title && H.value.style.title.text ? (x(), g("div", {
|
|
228
228
|
key: 1,
|
|
229
229
|
class: "vue-ui-sparkbar-title-container",
|
|
230
|
-
style:
|
|
230
|
+
style: y({
|
|
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
|
+
}, [_("div", {
|
|
236
236
|
class: "vue-ui-sparkbar-title",
|
|
237
|
-
style:
|
|
237
|
+
style: y({
|
|
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
|
+
}, w(H.value.style.title.text), 5), H.value.style.title.subtitle.text ? (x(), g("div", {
|
|
243
243
|
key: 0,
|
|
244
244
|
class: "vue-ui-sparkbar-subtitle",
|
|
245
|
-
style:
|
|
245
|
+
style: y({
|
|
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
|
+
}, w(H.value.style.title.subtitle.text), 5)) : h("", !0)], 4)) : h("", !0),
|
|
251
|
+
(x(!0), g(f, null, me(Te.value, (t, i) => (x(), g("div", {
|
|
252
|
+
style: y(`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;${T(W).length > 0 && i !== T(W).length - 1 ? "margin-bottom:6px" : ""}`),
|
|
253
|
+
onClick: (e) => De(t, i),
|
|
254
|
+
onMouseenter: (e) => Oe(t, i),
|
|
255
|
+
onMouseleave: (e) => ke(t, i)
|
|
256
256
|
}, [
|
|
257
|
-
|
|
257
|
+
T(U) ? h("", !0) : C(e.$slots, "data-label", v({
|
|
258
258
|
key: 0,
|
|
259
259
|
ref_for: !0
|
|
260
260
|
}, { bar: {
|
|
261
261
|
...t,
|
|
262
262
|
target: $(t),
|
|
263
|
-
valueLabel:
|
|
263
|
+
valueLabel: T(l)(t.formatter, t.value, T(r)({
|
|
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: i
|
|
271
271
|
}),
|
|
272
|
-
targetLabel:
|
|
272
|
+
targetLabel: T(l)(t.formatter, $(t), T(r)({
|
|
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: i
|
|
280
280
|
})
|
|
281
281
|
} })),
|
|
282
|
-
!e.$slots["data-label"] ||
|
|
282
|
+
!e.$slots["data-label"] || T(U) ? (x(), g("div", {
|
|
283
283
|
key: 1,
|
|
284
|
-
style:
|
|
284
|
+
style: y({
|
|
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
|
+
}, [T(U) ? (x(), g("div", {
|
|
295
295
|
key: 0,
|
|
296
296
|
class: "vue-ui-sparkbar-skeleton-name",
|
|
297
|
-
style:
|
|
297
|
+
style: y({
|
|
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
|
+
}, [_("div", { style: y({
|
|
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), _("div", { style: y({
|
|
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)) : (x(), g(f, { key: 1 }, [
|
|
317
|
+
_("span", null, w(t.name), 1),
|
|
318
|
+
H.value.style.labels.value.show ? (x(), g("span", {
|
|
319
319
|
key: 0,
|
|
320
|
-
style:
|
|
320
|
+
style: y(`font-weight:${H.value.style.labels.value.bold ? "bold" : "normal"}`),
|
|
321
321
|
class: "vue-ui-sparkbar-datapoint-name"
|
|
322
|
-
}, ": " +
|
|
322
|
+
}, ": " + w(T(l)(t.formatter, t.value, T(r)({
|
|
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: i
|
|
330
|
+
})), 5)) : h("", !0),
|
|
331
|
+
H.value.style.layout.showTargetValue ? (x(), g("span", k, w(" " + H.value.style.layout.targetValueText) + " " + w(T(l)(t.formatter, $(t), T(r)({
|
|
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: i
|
|
339
|
+
})), 1)) : h("", !0)
|
|
340
|
+
], 64))], 4)) : h("", !0),
|
|
341
|
+
(x(), g("svg", {
|
|
342
342
|
role: "img",
|
|
343
|
-
xmlns:
|
|
343
|
+
xmlns: T(ne),
|
|
344
344
|
viewBox: `0 0 ${X.value.width} ${X.value.height}`,
|
|
345
345
|
width: "100%"
|
|
346
346
|
}, [
|
|
347
|
-
|
|
348
|
-
|
|
347
|
+
ue(T(R)),
|
|
348
|
+
_("defs", null, [_("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_${i}_${V.value}`
|
|
354
|
+
}, [_("stop", {
|
|
355
355
|
offset: "0%",
|
|
356
|
-
"stop-color":
|
|
357
|
-
}, null, 8, M),
|
|
356
|
+
"stop-color": T(s)(T(n)(t.color, .03), 100 - H.value.style.bar.gradient.intensity)
|
|
357
|
+
}, null, 8, M), _("stop", {
|
|
358
358
|
offset: "100%",
|
|
359
359
|
"stop-color": t.color
|
|
360
360
|
}, null, 8, N)], 8, j)]),
|
|
361
|
-
|
|
361
|
+
_("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: T(s)(H.value.style.gutter.backgroundColor, H.value.style.gutter.opacity),
|
|
367
367
|
rx: X.value.height / 2
|
|
368
368
|
}, null, 8, P),
|
|
369
|
-
|
|
369
|
+
_("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
|
+
_("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_${i}_${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 ? (x(), g("div", L, [C(e.$slots, "source")], 512)) : h("", !0),
|
|
388
|
+
T(U) ? (x(), m(oe, { key: 3 })) : h("", !0)
|
|
389
389
|
], 4));
|
|
390
390
|
}
|
|
391
391
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
2
|
+
import { G as t, H as n, Ht as r, Tt as i, X as a, ct as ee, i as te, mt as o, t as s, v as c } from "./lib-AJRHFE5U.js";
|
|
3
3
|
import { t as ne } from "./useConfig-DnH7Pf_2.js";
|
|
4
4
|
import { n as re, t as ie } from "./BaseScanner-Dr2a1Msy.js";
|
|
5
|
-
import { t as l } from "./useNestedProp-
|
|
5
|
+
import { t as l } from "./useNestedProp-DtcXIg7n.js";
|
|
6
6
|
import { t as ae } from "./useThemeCheck-C43Tcqmk.js";
|
|
7
7
|
import { t as oe } from "./useChartAccessibility-DYqac8yF.js";
|
|
8
8
|
import { t as se } from "./usePrefersMotion-BC-CsqR1.js";
|
|
9
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
|
|
10
|
+
import { computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createVNode as h, defineAsyncComponent as le, normalizeClass as ue, normalizeStyle as g, onBeforeUnmount as de, 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
|
-
var
|
|
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",
|
|
14
14
|
"stroke",
|
|
15
15
|
"stroke-linecap"
|
|
@@ -50,7 +50,7 @@ var C = /* @__PURE__ */ e({ default: () => j }), me = ["xmlns", "viewBox"], he =
|
|
|
50
50
|
}
|
|
51
51
|
},
|
|
52
52
|
setup(e) {
|
|
53
|
-
let
|
|
53
|
+
let w = le(() => import("./PackageVersion-DYLo3MRd.js").then((e) => e.t)), { vue_ui_sparkgauge: j } = ne(), { isThemeValid: M, warnInvalidTheme: N } = ae(), P = se(), F = y(null), I = e, L = y(n()), R = y(W()), z = u(() => R.value.style.animation.show && !P.value), _e = u(() => r({
|
|
54
54
|
defaultConfig: { style: {
|
|
55
55
|
animation: { show: !1 },
|
|
56
56
|
background: "#99999930",
|
|
@@ -63,7 +63,7 @@ var C = /* @__PURE__ */ e({ default: () => j }), me = ["xmlns", "viewBox"], he =
|
|
|
63
63
|
} },
|
|
64
64
|
userConfig: R.value.skeletonConfig ?? {}
|
|
65
65
|
})), { loading: B, FINAL_DATASET: V } = re({
|
|
66
|
-
...
|
|
66
|
+
...fe(I),
|
|
67
67
|
FINAL_CONFIG: R,
|
|
68
68
|
prepareConfig: W,
|
|
69
69
|
skeletonDataset: I.config?.skeletonDataset ?? {
|
|
@@ -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: r({
|
|
76
76
|
defaultConfig: R.value,
|
|
77
77
|
userConfig: _e.value
|
|
78
78
|
})
|
|
@@ -100,16 +100,16 @@ var C = /* @__PURE__ */ e({ default: () => j }), me = ["xmlns", "viewBox"], he =
|
|
|
100
100
|
defaultConfig: n
|
|
101
101
|
});
|
|
102
102
|
}
|
|
103
|
-
|
|
103
|
+
_(() => {
|
|
104
104
|
K();
|
|
105
105
|
});
|
|
106
106
|
let G = u(() => R.value.debug);
|
|
107
107
|
function K() {
|
|
108
|
-
|
|
108
|
+
i(I.dataset) ? a({
|
|
109
109
|
componentName: "VueUiSparkgauge",
|
|
110
110
|
type: "dataset",
|
|
111
111
|
debug: G.value
|
|
112
|
-
}) :
|
|
112
|
+
}) : ee({
|
|
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
|
+
a({
|
|
121
121
|
componentName: "VueUiSparkgauge",
|
|
122
122
|
type: "datasetAttribute",
|
|
123
123
|
property: e,
|
|
@@ -125,19 +125,19 @@ var C = /* @__PURE__ */ e({ default: () => j }), me = ["xmlns", "viewBox"], he =
|
|
|
125
125
|
});
|
|
126
126
|
});
|
|
127
127
|
}
|
|
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
131
|
let q = u(() => ({
|
|
132
132
|
height: R.value.style.height,
|
|
133
133
|
width: 128,
|
|
134
134
|
base: R.value.style.basePosition
|
|
135
|
-
})), J =
|
|
136
|
-
|
|
135
|
+
})), J = y(z.value ? H.value.min : V.value.value);
|
|
136
|
+
C([() => V.value.value, z], ([e, t]) => {
|
|
137
137
|
Y(e || 0, t);
|
|
138
138
|
}, { immediate: !0 });
|
|
139
139
|
let ye = u(() => 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
|
});
|
|
143
143
|
function Y(e, t = z.value) {
|
|
@@ -155,34 +155,34 @@ var C = /* @__PURE__ */ e({ default: () => j }), me = ["xmlns", "viewBox"], he =
|
|
|
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 = u(() =>
|
|
159
|
-
return
|
|
158
|
+
}), Q = u(() => o(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 de(() => {
|
|
160
160
|
F.value && cancelAnimationFrame(F.value);
|
|
161
|
-
}), (e,
|
|
161
|
+
}), (e, n) => (v(), p("div", {
|
|
162
162
|
class: "vue-data-ui-component vue-ui-sparkgauge",
|
|
163
|
-
style:
|
|
163
|
+
style: g(`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" ? (v(), p("div", {
|
|
166
166
|
key: 0,
|
|
167
167
|
class: "vue-data-ui-sparkgauge-label",
|
|
168
|
-
style:
|
|
169
|
-
},
|
|
170
|
-
(
|
|
168
|
+
style: g(`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
|
+
}, x(X.value), 5)) : f("", !0),
|
|
170
|
+
(v(), p("svg", {
|
|
171
171
|
ref_key: "svgRef",
|
|
172
172
|
ref: ve,
|
|
173
|
-
xmlns:
|
|
173
|
+
xmlns: S(s),
|
|
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"] && !
|
|
177
|
+
h(S(w)),
|
|
178
|
+
e.$slots["chart-background"] && !S(B) ? (v(), 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
|
-
}, [
|
|
185
|
+
}, [b(e.$slots, "chart-background")], 8, me)) : f("", !0),
|
|
186
186
|
m("defs", null, [m("linearGradient", {
|
|
187
187
|
id: `gradient_${L.value}`,
|
|
188
188
|
x1: "-10%",
|
|
@@ -192,10 +192,10 @@ var C = /* @__PURE__ */ e({ default: () => j }), me = ["xmlns", "viewBox"], he =
|
|
|
192
192
|
}, [m("stop", {
|
|
193
193
|
offset: "0%",
|
|
194
194
|
"stop-color": R.value.style.colors.min
|
|
195
|
-
}, null, 8,
|
|
195
|
+
}, null, 8, ge), m("stop", {
|
|
196
196
|
offset: "100%",
|
|
197
197
|
"stop-color": R.value.style.colors.max
|
|
198
|
-
}, null, 8, T)], 8,
|
|
198
|
+
}, null, 8, T)], 8, he)]),
|
|
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,
|
|
@@ -203,7 +203,7 @@ var C = /* @__PURE__ */ e({ default: () => j }), me = ["xmlns", "viewBox"], he =
|
|
|
203
203
|
"stroke-linecap": R.value.style.gutter.strokeLinecap,
|
|
204
204
|
fill: "none"
|
|
205
205
|
}, null, 8, E),
|
|
206
|
-
Z.value === 0 ? f("", !0) : (
|
|
206
|
+
Z.value === 0 ? f("", !0) : (v(), 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: ue({ "vue-ui-sparkgauge-track": R.value.style.animation.show }),
|
|
216
|
+
style: g(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,
|
|
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)) : (v(), p("text", {
|
|
227
227
|
key: 3,
|
|
228
228
|
"text-anchor": "middle",
|
|
229
229
|
x: q.value.width / 2,
|
|
@@ -231,25 +231,25 @@ 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
|
-
},
|
|
234
|
+
}, x(S(te)(R.value.style.dataLabel.formatter, S(c)(J.value), S(t)({
|
|
235
235
|
p: R.value.style.dataLabel.prefix,
|
|
236
|
-
v:
|
|
236
|
+
v: S(c)(J.value),
|
|
237
237
|
s: R.value.style.dataLabel.suffix,
|
|
238
238
|
r: R.value.style.dataLabel.rounding
|
|
239
239
|
}), {
|
|
240
|
-
datapoint:
|
|
240
|
+
datapoint: S(c)(J.value),
|
|
241
241
|
color: $.value
|
|
242
242
|
})), 9, k))
|
|
243
|
-
], 8,
|
|
244
|
-
R.value.style.title.show && X.value && R.value.style.title.position === "bottom" ? (
|
|
243
|
+
], 8, pe)),
|
|
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:
|
|
248
|
-
},
|
|
249
|
-
e.$slots.source ? (
|
|
250
|
-
|
|
247
|
+
style: g(`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
|
+
}, x(X.value), 5)) : f("", !0),
|
|
249
|
+
e.$slots.source ? (v(), p("div", A, [b(e.$slots, "source")], 512)) : f("", !0),
|
|
250
|
+
b(e.$slots, "skeleton", {}, () => [S(B) ? (v(), d(ie, { key: 0 })) : f("", !0)])
|
|
251
251
|
], 4));
|
|
252
252
|
}
|
|
253
253
|
};
|
|
254
254
|
//#endregion
|
|
255
|
-
export {
|
|
255
|
+
export { w as n, j as t };
|