vue-data-ui 3.26.4 → 3.27.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-BW_Fs3gD.js → Arrow-DKO1l8oR.js} +1 -1
- package/dist/{BaseDraggableDialog-BniZj4c8.js → BaseDraggableDialog-C50TEJFv.js} +2 -2
- package/dist/{BaseIcon-CPBlYfWq.js → BaseIcon-Cx9FD751.js} +1 -1
- package/dist/{BaseLegendToggle-CWtURpCj.js → BaseLegendToggle-CP3sddwv.js} +1 -1
- package/dist/{BaseZoomControls-jfXIQvEi.js → BaseZoomControls-vNi8YykO.js} +2 -2
- package/dist/{ColorPicker-BKndMOAm.js → ColorPicker-hmC2bvwS.js} +2 -2
- package/dist/{DataTable-DV4Plrm3.js → DataTable-CjF_An2h.js} +2 -2
- package/dist/{HillActions-B45z2DmP.js → HillActions-DqqGB33u.js} +1 -1
- package/dist/{Legend-CJzCVAWl.js → Legend-CulFgjUY.js} +2 -2
- package/dist/{NonSvgPenAndPaper-B3I_UGDm.js → NonSvgPenAndPaper-BK1v_MfW.js} +3 -3
- package/dist/{PackageVersion-DEAYvEjl.js → PackageVersion-D7H9nfK0.js} +1 -1
- package/dist/{PenAndPaper-Dv8WPVwA.js → PenAndPaper-CNiuGw6k.js} +3 -3
- package/dist/{Shape-BIe6C0HJ.js → Shape-DSwamtmO.js} +1 -1
- package/dist/{SlicerPreview-8atniw0P.js → SlicerPreview-k5YerMA9.js} +12 -12
- package/dist/{SparkTooltip-DsGcGbm2.js → SparkTooltip-D35KVv6N.js} +6 -6
- package/dist/{Title-B4UpMerH.js → Title-BMCuINbv.js} +1 -1
- package/dist/{Tooltip-BmfGHn1L.js → Tooltip-C4ZTwkLF.js} +1 -1
- package/dist/{UserOptions-C92R4ACT.js → UserOptions-CORYQiif.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-hill.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-label.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-BL08UcHI.js → dom-to-png-CBusMkua.js} +1 -1
- package/dist/{exposedLib-CBUiJ5b-.js → exposedLib-UNxZlnAS.js} +10 -10
- package/dist/{img--C0otIB0.js → img-Bb5rHcpO.js} +1 -1
- package/dist/{labelUtils-CfQIxXGL.js → labelUtils-Ccn9kK7T.js} +1 -1
- package/dist/{lib-DTiqmM1G.js → lib-D4wK6ljP.js} +130 -136
- package/dist/{package-Dj6ohGVJ.js → package-DmQufM0G.js} +1 -1
- package/dist/{pdf-CbSwKZjC.js → pdf-BzIQHx-F.js} +1 -1
- package/dist/{render-common-vuBsglf8.js → render-common-BtfjXdkJ.js} +10 -10
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +212 -60
- package/dist/types/vue-ui-stackbar.d.ts +10 -0
- package/dist/{useConfig-DObkR9Aa.js → useConfig-D_6ZrPMD.js} +82 -0
- package/dist/{useNestedProp-D8cRQaVo.js → useNestedProp-DR_8JPol.js} +1 -1
- package/dist/{useObjectBindings-CPmyIJxB.js → useObjectBindings-DvasYMGu.js} +2 -2
- package/dist/{usePrinter-R2nu9g4B.js → usePrinter-DdW2GSm0.js} +2 -2
- package/dist/utils.js +10 -10
- package/dist/{vue-data-ui-CijFk00w.js → vue-data-ui-Df7WV80w.js} +70 -70
- package/dist/vue-data-ui.js +75 -75
- package/dist/{vue-ui-3d-bar-BxmndVBz.js → vue-ui-3d-bar-CJjNPwhG.js} +463 -463
- package/dist/{vue-ui-accordion-CxMo-mXC.js → vue-ui-accordion-CaoNWreI.js} +4 -4
- package/dist/{vue-ui-age-pyramid-ysX_ySuK.js → vue-ui-age-pyramid-BYcM0uIP.js} +22 -22
- package/dist/{vue-ui-annotator-IAqTX-5M.js → vue-ui-annotator-BmqjDjRF.js} +10 -10
- package/dist/{vue-ui-bullet-rO5_pB7t.js → vue-ui-bullet-DBOAvpBB.js} +18 -18
- package/dist/vue-ui-bump-rPYwDJ4o.js +1242 -0
- package/dist/{vue-ui-candlestick-BLxP54W4.js → vue-ui-candlestick-WQHIQNv_.js} +625 -625
- package/dist/{vue-ui-carousel-table-DHbt40ze.js → vue-ui-carousel-table-Dojcvt49.js} +106 -106
- package/dist/{vue-ui-chestnut-CHHZx5ek.js → vue-ui-chestnut-BdhEByUf.js} +65 -65
- package/dist/{vue-ui-chord-WmqFMK4A.js → vue-ui-chord-MF4xF5az.js} +46 -46
- package/dist/{vue-ui-circle-pack-D2RXFToP.js → vue-ui-circle-pack-BwDim7G8.js} +26 -26
- package/dist/{vue-ui-cursor-CDf6s7AZ.js → vue-ui-cursor-w_5cbpSb.js} +61 -61
- package/dist/{vue-ui-dag-Ba3Bkxd7.js → vue-ui-dag-D2EUqeDN.js} +65 -65
- package/dist/{vue-ui-dashboard-DKCEm56d.js → vue-ui-dashboard-BLnVXosj.js} +70 -70
- package/dist/{vue-ui-digits-B6cSEytP.js → vue-ui-digits-zSqwYWHm.js} +4 -4
- package/dist/{vue-ui-donut-BfAlXtvS.js → vue-ui-donut-ZYZfqIhi.js} +117 -117
- package/dist/{vue-ui-donut-evolution-C2TYUKag.js → vue-ui-donut-evolution-DtLbWi3h.js} +216 -216
- package/dist/vue-ui-donut-nLDLZwig.js +2427 -0
- package/dist/{vue-ui-dumbbell-GMQ4JZf_.js → vue-ui-dumbbell-Qgn3wRyI.js} +20 -20
- package/dist/{vue-ui-flow-B53jXaVQ.js → vue-ui-flow-iSH6dyGw.js} +109 -109
- package/dist/vue-ui-funnel-Cc2z2zS5.js +749 -0
- package/dist/{vue-ui-galaxy-CE7LYi8M.js → vue-ui-galaxy-GhuBSU0o.js} +267 -267
- package/dist/vue-ui-gauge-BAjBO13a.js +934 -0
- package/dist/{vue-ui-geo-B4a2hwYf.js → vue-ui-geo-mwTtvIHY.js} +19 -19
- package/dist/{vue-ui-gizmo-CY4cLNcJ.js → vue-ui-gizmo-B5vOOrZX.js} +4 -4
- package/dist/vue-ui-heatmap-fimkY1nN.js +1613 -0
- package/dist/{vue-ui-hill-CTPzgkCs.js → vue-ui-hill-DPfTt3UE.js} +18 -18
- package/dist/{vue-ui-history-plot-CGFijdmp.js → vue-ui-history-plot-B1WgzqTb.js} +53 -53
- package/dist/vue-ui-horizontal-bar-Bkp5HQdt.js +1723 -0
- package/dist/{vue-ui-kpi-Bu2OpF5d.js → vue-ui-kpi-D-p0CSQh.js} +4 -4
- package/dist/{vue-ui-label-CWFQzKOy.js → vue-ui-label-r3-QloJL.js} +65 -65
- package/dist/{vue-ui-mini-loader-hdh8SSxW.js → vue-ui-mini-loader-CnrBGAtM.js} +3 -3
- package/dist/vue-ui-molecule-BhdAYX_H.js +941 -0
- package/dist/vue-ui-mood-radar-CdlnPrQf.js +1111 -0
- package/dist/{vue-ui-nested-donuts-DN2PgxeK.js → vue-ui-nested-donuts-DceVEyUc.js} +341 -341
- package/dist/{vue-ui-onion-lrDciRpg.js → vue-ui-onion-_L0uEATI.js} +209 -209
- package/dist/vue-ui-parallel-coordinate-plot-CbXwIM47.js +1444 -0
- package/dist/{vue-ui-quadrant-DrcflMPg.js → vue-ui-quadrant-CDDFLRcX.js} +55 -55
- package/dist/{vue-ui-quick-chart-D5ZFV0Aj.js → vue-ui-quick-chart-Dom257hl.js} +377 -377
- package/dist/vue-ui-radar-BLdri1bA.js +1386 -0
- package/dist/{vue-ui-rating-DxBJXbPW.js → vue-ui-rating-C_iTttXB.js} +25 -25
- package/dist/vue-ui-relation-circle-BmxTSgjd.js +905 -0
- package/dist/vue-ui-ridgeline-CsUrcVmL.js +1630 -0
- package/dist/{vue-ui-rings-6OHcBlOC.js → vue-ui-rings-D_GPkgbD.js} +318 -318
- package/dist/vue-ui-scatter-D_C-IhnW.js +2418 -0
- package/dist/{vue-ui-skeleton--HlS7ySk.js → vue-ui-skeleton-t7e6KEZ2.js} +60 -60
- package/dist/{vue-ui-smiley-ZrM6-QCy.js → vue-ui-smiley-Dl95YWVo.js} +14 -14
- package/dist/{vue-ui-spark-trend-CIfpocxI.js → vue-ui-spark-trend-pkZA7u5V.js} +20 -20
- package/dist/{vue-ui-sparkbar-Db7Ntacd.js → vue-ui-sparkbar-Ds7OJjhG.js} +77 -77
- package/dist/{vue-ui-sparkgauge-DEuNFkU_.js → vue-ui-sparkgauge-US1M88qc.js} +6 -6
- package/dist/vue-ui-sparkhistogram-FISVpSvv.js +589 -0
- package/dist/{vue-ui-sparkline-CSsnkXMJ.js → vue-ui-sparkline-DvE1dHcs.js} +37 -37
- package/dist/{vue-ui-sparkstackbar-BnN7KebI.js → vue-ui-sparkstackbar-CWtF9eG-.js} +39 -39
- package/dist/vue-ui-stackbar-fMgrHzZe.js +3273 -0
- package/dist/{vue-ui-stackline-CqjwxpU1.js → vue-ui-stackline-CSMuUup2.js} +303 -303
- package/dist/vue-ui-strip-plot-TGD2UFHS.js +1752 -0
- package/dist/{vue-ui-table-CsMozTrM.js → vue-ui-table-BCEIbg8-.js} +14 -14
- package/dist/{vue-ui-table-heatmap-DFcESbBy.js → vue-ui-table-heatmap-CvUcFWMf.js} +9 -9
- package/dist/vue-ui-table-sparkline-CoVQ1qGY.js +738 -0
- package/dist/vue-ui-thermometer-BYFAZCzh.js +758 -0
- package/dist/{vue-ui-timer-CFxvU_q1.js → vue-ui-timer-BKr8RVnn.js} +10 -10
- package/dist/{vue-ui-tiremarks-DIjsyNwO.js → vue-ui-tiremarks-BYu3cEoy.js} +35 -35
- package/dist/{vue-ui-treemap-BuvFUWJm.js → vue-ui-treemap-BR3rX5_L.js} +50 -50
- package/dist/{vue-ui-waffle-B8Knvp7m.js → vue-ui-waffle-mP8g5aQk.js} +275 -275
- package/dist/{vue-ui-wheel-2_4BOo6P.js → vue-ui-wheel-CZsSO2R6.js} +187 -187
- package/dist/{vue-ui-word-cloud-BEgmAfj1.js → vue-ui-word-cloud-CJ30onqy.js} +35 -35
- package/dist/{vue-ui-world-D4WMHq7E.js → vue-ui-world-BZ09DOiF.js} +498 -498
- package/dist/{vue-ui-xy-DBLJ8Uhc.js → vue-ui-xy-C3h54loZ.js} +405 -405
- package/dist/{vue-ui-xy-canvas-Dv0pk4Wd.js → vue-ui-xy-canvas-BwgK8drp.js} +165 -165
- package/dist/{vue-ui-xy-DGIz4MDV.js → vue-ui-xy-jemv5dsf.js} +288 -288
- package/dist/{vue_ui_stackbar-DdjDL6aq.js → vue_ui_stackbar-yQyvT4Su.js} +46 -0
- package/package.json +1 -1
- package/dist/vue-ui-bump-BIyTRpqJ.js +0 -1242
- package/dist/vue-ui-donut-DMISY-E8.js +0 -2427
- package/dist/vue-ui-funnel-eVH871L3.js +0 -749
- package/dist/vue-ui-gauge-D_jNBHjA.js +0 -934
- package/dist/vue-ui-heatmap-DW7bo_Um.js +0 -1613
- package/dist/vue-ui-horizontal-bar-vPeWNfxO.js +0 -1723
- package/dist/vue-ui-molecule-ejjPjG63.js +0 -941
- package/dist/vue-ui-mood-radar-pqMAcUWm.js +0 -1111
- package/dist/vue-ui-parallel-coordinate-plot-McES6sLT.js +0 -1444
- package/dist/vue-ui-radar-DZPVV9cU.js +0 -1386
- package/dist/vue-ui-relation-circle-BtESVsB0.js +0 -905
- package/dist/vue-ui-ridgeline-CSLuDJWq.js +0 -1630
- package/dist/vue-ui-scatter-CKJ87fhp.js +0 -2418
- package/dist/vue-ui-sparkhistogram-CQTwLaZi.js +0 -589
- package/dist/vue-ui-stackbar-CISQXhoK.js +0 -2660
- package/dist/vue-ui-strip-plot-CRZDCNc1.js +0 -1752
- package/dist/vue-ui-table-sparkline-CwsrD7te.js +0 -738
- package/dist/vue-ui-thermometer-_zSQM0Nk.js +0 -758
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { $ as t,
|
|
3
|
-
import { n as
|
|
4
|
-
import { t as
|
|
5
|
-
import { n as
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import { Fragment as
|
|
2
|
+
import { $ as t, Ht as n, Jt as r, S as i, X as ee, Yt as te, at as a, en as ne, i as o, nn as s, t as re, w as ie, yt as ae, zt as oe } from "./lib-D4wK6ljP.js";
|
|
3
|
+
import { n as se, t as ce } from "./useHints-Dq_w2E8B.js";
|
|
4
|
+
import { t as le } from "./useConfig-D_6ZrPMD.js";
|
|
5
|
+
import { n as ue, t as de } from "./BaseScanner-Dzc8VT3j.js";
|
|
6
|
+
import { t as c } from "./useNestedProp-DR_8JPol.js";
|
|
7
|
+
import { t as l } from "./useThemeCheck-C43Tcqmk.js";
|
|
8
|
+
import { t as u } from "./DefGrad-DVBqDjhO.js";
|
|
9
|
+
import { t as d } from "./usePrefersMotion-BC-CsqR1.js";
|
|
10
|
+
import { t as fe } from "./vue_ui_sparkbar-z6qO--Kf.js";
|
|
11
|
+
import { Fragment as f, computed as p, createBlock as pe, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createVNode as _, defineAsyncComponent as me, guardReactiveProps as he, mergeProps as ge, nextTick as _e, normalizeProps as ve, normalizeStyle as v, onMounted as y, openBlock as b, ref as x, renderList as ye, renderSlot as S, toDisplayString as C, toRefs as be, unref as w, useSlots as T, watch as E } from "vue";
|
|
12
12
|
//#region src/components/vue-ui-sparkbar.vue
|
|
13
13
|
var D = /* @__PURE__ */ e({ default: () => P }), O = [
|
|
14
14
|
"onClick",
|
|
@@ -58,16 +58,16 @@ var D = /* @__PURE__ */ e({ default: () => P }), O = [
|
|
|
58
58
|
},
|
|
59
59
|
emits: ["selectDatapoint"],
|
|
60
60
|
setup(e, { emit: D }) {
|
|
61
|
-
let P =
|
|
62
|
-
|
|
61
|
+
let P = me(() => import("./PackageVersion-D7H9nfK0.js").then((e) => e.t)), { vue_ui_sparkbar: Se } = le(), { isThemeValid: Ce, warnInvalidTheme: we } = l(), F = d(), I = e, Te = T(), L = x(ee()), R = x(G()), z = p(() => R.value.style.bar), B = p(() => R.value.style.labels), V = p(() => R.value.style), H = p(() => R.value.debug);
|
|
62
|
+
y(() => {
|
|
63
63
|
Te["chart-background"] && H.value && console.warn("VueUiSparkbar does not support the #chart-background slot.");
|
|
64
|
-
}),
|
|
64
|
+
}), se({
|
|
65
65
|
config: () => R.value,
|
|
66
66
|
dataset: () => I.dataset,
|
|
67
67
|
component: "VueUiSparkbar",
|
|
68
|
-
rules: [
|
|
68
|
+
rules: [ce.noHint]
|
|
69
69
|
});
|
|
70
|
-
let Ee =
|
|
70
|
+
let Ee = p(() => s({
|
|
71
71
|
defaultConfig: { style: {
|
|
72
72
|
backgroundColor: "#99999930",
|
|
73
73
|
animation: { show: !1 },
|
|
@@ -79,8 +79,8 @@ var D = /* @__PURE__ */ e({ default: () => P }), O = [
|
|
|
79
79
|
bar: { gradient: { underlayerColor: "#6A6A6A" } }
|
|
80
80
|
} },
|
|
81
81
|
userConfig: R.value.skeletonConfig ?? {}
|
|
82
|
-
})), { loading: U, FINAL_DATASET: W, manualLoading: De } =
|
|
83
|
-
...
|
|
82
|
+
})), { loading: U, FINAL_DATASET: W, manualLoading: De } = ue({
|
|
83
|
+
...be(I),
|
|
84
84
|
FINAL_CONFIG: R,
|
|
85
85
|
prepareConfig: G,
|
|
86
86
|
skeletonDataset: I.config?.skeletonDataset ?? [
|
|
@@ -103,40 +103,40 @@ var D = /* @__PURE__ */ e({ default: () => P }), O = [
|
|
|
103
103
|
color: "#DBDBDB"
|
|
104
104
|
}
|
|
105
105
|
],
|
|
106
|
-
skeletonConfig:
|
|
106
|
+
skeletonConfig: s({
|
|
107
107
|
defaultConfig: R.value,
|
|
108
108
|
userConfig: Ee.value
|
|
109
109
|
})
|
|
110
110
|
});
|
|
111
111
|
function G() {
|
|
112
|
-
let e =
|
|
112
|
+
let e = c({
|
|
113
113
|
userConfig: I.config,
|
|
114
114
|
defaultConfig: Se
|
|
115
115
|
}), t = e.theme;
|
|
116
116
|
if (!t) return e;
|
|
117
117
|
if (!Ce.value(e)) return we(e), e;
|
|
118
|
-
let r =
|
|
119
|
-
userConfig:
|
|
118
|
+
let r = c({
|
|
119
|
+
userConfig: fe[t] || I.config,
|
|
120
120
|
defaultConfig: e
|
|
121
|
-
}), i =
|
|
121
|
+
}), i = c({
|
|
122
122
|
userConfig: I.config,
|
|
123
123
|
defaultConfig: r
|
|
124
124
|
});
|
|
125
125
|
return {
|
|
126
126
|
...i,
|
|
127
|
-
customPalette: i.customPalette.length ? i.customPalette :
|
|
127
|
+
customPalette: i.customPalette.length ? i.customPalette : ne[t] || n
|
|
128
128
|
};
|
|
129
129
|
}
|
|
130
130
|
E(() => I.config, (e) => {
|
|
131
131
|
R.value = G();
|
|
132
132
|
}, { deep: !0 });
|
|
133
|
-
let Oe =
|
|
133
|
+
let Oe = p(() => ie(R.value.customPalette)), K = x(W.value.map((e) => ({
|
|
134
134
|
...e,
|
|
135
135
|
value: V.value.animation.show ? 0 : e.value || 0,
|
|
136
136
|
formatter: e.formatter || null
|
|
137
|
-
}))), q =
|
|
138
|
-
|
|
139
|
-
|
|
137
|
+
}))), q = x(null);
|
|
138
|
+
y(async () => {
|
|
139
|
+
oe(I.dataset) && a({
|
|
140
140
|
componentName: "VueUiSparkbar",
|
|
141
141
|
type: "dataset",
|
|
142
142
|
debug: H.value
|
|
@@ -163,17 +163,17 @@ var D = /* @__PURE__ */ e({ default: () => P }), O = [
|
|
|
163
163
|
...e,
|
|
164
164
|
value: V.value.animation.show && !F.value ? 0 : e.value || 0,
|
|
165
165
|
formatter: e.formatter || null
|
|
166
|
-
})),
|
|
166
|
+
})), _e(J);
|
|
167
167
|
}, { deep: !0 });
|
|
168
|
-
let Y =
|
|
168
|
+
let Y = x({
|
|
169
169
|
width: 500,
|
|
170
170
|
height: 16
|
|
171
|
-
}), ke =
|
|
172
|
-
|
|
171
|
+
}), ke = p(() => Math.max(...W.value.map((e) => e.value))), Ae = p(() => (H.value && W.value.forEach((e, t) => {
|
|
172
|
+
ae({
|
|
173
173
|
datasetObject: e,
|
|
174
174
|
requiredAttributes: ["name", "value"]
|
|
175
175
|
}).forEach((e) => {
|
|
176
|
-
|
|
176
|
+
a({
|
|
177
177
|
componentName: "VueUiSparkbar",
|
|
178
178
|
type: "datasetSerieAttribute",
|
|
179
179
|
property: e,
|
|
@@ -183,7 +183,7 @@ var D = /* @__PURE__ */ e({ default: () => P }), O = [
|
|
|
183
183
|
}), K.value.map((e, t) => ({
|
|
184
184
|
...e,
|
|
185
185
|
value: e.value || 0,
|
|
186
|
-
color:
|
|
186
|
+
color: i(e.color) || Oe.value[t] || n[t] || n[t % n.length]
|
|
187
187
|
}))));
|
|
188
188
|
function je(e) {
|
|
189
189
|
return e / ke.value;
|
|
@@ -216,55 +216,55 @@ var D = /* @__PURE__ */ e({ default: () => P }), O = [
|
|
|
216
216
|
seriesIndex: t
|
|
217
217
|
});
|
|
218
218
|
}
|
|
219
|
-
let $ =
|
|
220
|
-
return (e, n) => (
|
|
219
|
+
let $ = p(() => z.value.borderRadius == null ? Y.value.height / 2 : Math.min(Y.value.height / 2, z.value.borderRadius));
|
|
220
|
+
return (e, n) => (b(), h("div", {
|
|
221
221
|
class: "vue-data-ui-component vue-ui-sparkbar",
|
|
222
|
-
style:
|
|
222
|
+
style: v({
|
|
223
223
|
width: "100%",
|
|
224
224
|
position: "relative",
|
|
225
225
|
fontFamily: V.value.fontFamily,
|
|
226
|
-
background: I.backgroundOpacity === null ? V.value.backgroundColor :
|
|
226
|
+
background: I.backgroundOpacity === null ? V.value.backgroundColor : w(r)(V.value.backgroundColor, I.backgroundOpacity)
|
|
227
227
|
})
|
|
228
228
|
}, [
|
|
229
|
-
e.$slots.title ?
|
|
229
|
+
e.$slots.title ? S(e.$slots, "title", ve(he({ title: {
|
|
230
230
|
...e.title,
|
|
231
231
|
title: V.value.title.text,
|
|
232
232
|
subtitle: V.value.title.subtitle.text
|
|
233
|
-
} })), void 0, void 0, 0) :
|
|
234
|
-
!e.$slots.title && V.value.title.text ? (
|
|
233
|
+
} })), void 0, void 0, 0) : m("", !0),
|
|
234
|
+
!e.$slots.title && V.value.title.text ? (b(), h("div", {
|
|
235
235
|
key: 1,
|
|
236
236
|
class: "vue-ui-sparkbar-title-container",
|
|
237
|
-
style:
|
|
237
|
+
style: v({
|
|
238
238
|
background: V.value.title.backgroundColor,
|
|
239
239
|
margin: V.value.title.margin,
|
|
240
240
|
textAlign: V.value.title.textAlign
|
|
241
241
|
})
|
|
242
|
-
}, [
|
|
242
|
+
}, [g("div", {
|
|
243
243
|
class: "vue-ui-sparkbar-title",
|
|
244
|
-
style:
|
|
244
|
+
style: v({
|
|
245
245
|
fontSize: V.value.title.fontSize + "px",
|
|
246
246
|
color: V.value.title.color,
|
|
247
247
|
fontWeight: V.value.title.bold ? "bold" : "normal"
|
|
248
248
|
})
|
|
249
|
-
},
|
|
249
|
+
}, C(V.value.title.text), 5), V.value.title.subtitle.text ? (b(), h("div", {
|
|
250
250
|
key: 0,
|
|
251
251
|
class: "vue-ui-sparkbar-subtitle",
|
|
252
|
-
style:
|
|
252
|
+
style: v({
|
|
253
253
|
fontSize: V.value.title.subtitle.fontSize + "px",
|
|
254
254
|
color: V.value.title.subtitle.color,
|
|
255
255
|
fontWeight: V.value.title.subtitle.bold ? "bold" : "normal"
|
|
256
256
|
})
|
|
257
|
-
},
|
|
258
|
-
(
|
|
259
|
-
style:
|
|
257
|
+
}, C(V.value.title.subtitle.text), 5)) : m("", !0)], 4)) : m("", !0),
|
|
258
|
+
(b(!0), h(f, null, ye(Ae.value, (n, i) => (b(), h("div", {
|
|
259
|
+
style: v(`display:flex !important;${["left", "right"].includes(B.value.name.position) ? `flex-direction: ${B.value.name.position === "right" ? "row-reverse" : "row"} !important` : "flex-direction:column !important"};gap:${V.value.gap}px !important;align-items:center;${w(W).length > 0 && i !== w(W).length - 1 ? "margin-bottom:6px" : ""}`),
|
|
260
260
|
onClick: (e) => Me(n, i),
|
|
261
261
|
onMouseenter: (e) => Ne(n, i),
|
|
262
262
|
onMouseleave: (e) => Pe(n, i)
|
|
263
263
|
}, [
|
|
264
|
-
|
|
264
|
+
w(U) ? m("", !0) : S(e.$slots, "data-label", ge({ ref_for: !0 }, { bar: {
|
|
265
265
|
...n,
|
|
266
266
|
target: Z(n),
|
|
267
|
-
valueLabel:
|
|
267
|
+
valueLabel: w(o)(n.formatter, n.value, w(t)({
|
|
268
268
|
p: n.prefix || "",
|
|
269
269
|
v: n.value,
|
|
270
270
|
s: n.suffix || "",
|
|
@@ -273,7 +273,7 @@ var D = /* @__PURE__ */ e({ default: () => P }), O = [
|
|
|
273
273
|
datapoint: n,
|
|
274
274
|
seriesIndex: i
|
|
275
275
|
}),
|
|
276
|
-
targetLabel:
|
|
276
|
+
targetLabel: w(o)(n.formatter, Z(n), w(t)({
|
|
277
277
|
p: n.prefix || "",
|
|
278
278
|
v: Z(n),
|
|
279
279
|
s: n.suffix || "",
|
|
@@ -283,9 +283,9 @@ var D = /* @__PURE__ */ e({ default: () => P }), O = [
|
|
|
283
283
|
seriesIndex: i
|
|
284
284
|
})
|
|
285
285
|
} }), void 0, void 0, 0),
|
|
286
|
-
!e.$slots["data-label"] ||
|
|
286
|
+
!e.$slots["data-label"] || w(U) ? (b(), h("div", {
|
|
287
287
|
key: 1,
|
|
288
|
-
style:
|
|
288
|
+
style: v({
|
|
289
289
|
display: "flex",
|
|
290
290
|
justifyContent: ["right", "top-right"].includes(B.value.name.position) ? "flex-end" : ["top-center"].includes(B.value.name.position) ? "center" : "flex-start",
|
|
291
291
|
alignItems: "center",
|
|
@@ -295,10 +295,10 @@ var D = /* @__PURE__ */ e({ default: () => P }), O = [
|
|
|
295
295
|
fontWeight: B.value.name.bold ? "bold" : "normal",
|
|
296
296
|
flexWrap: "wrap"
|
|
297
297
|
})
|
|
298
|
-
}, [
|
|
298
|
+
}, [w(U) ? (b(), h("div", {
|
|
299
299
|
key: 0,
|
|
300
300
|
class: "vue-ui-sparkbar-skeleton-name",
|
|
301
|
-
style:
|
|
301
|
+
style: v({
|
|
302
302
|
width: "60px",
|
|
303
303
|
height: B.value.fontSize + "px",
|
|
304
304
|
borderRadius: B.value.fontSize / 4 + "px",
|
|
@@ -307,23 +307,23 @@ var D = /* @__PURE__ */ e({ default: () => P }), O = [
|
|
|
307
307
|
justifyContent: "space-between",
|
|
308
308
|
marginTop: "5px"
|
|
309
309
|
})
|
|
310
|
-
}, [
|
|
310
|
+
}, [g("div", { style: v({
|
|
311
311
|
height: "100%",
|
|
312
312
|
width: "40px",
|
|
313
313
|
borderRadius: B.value.fontSize / 4 + "px",
|
|
314
314
|
backgroundColor: "#6A6A6A80"
|
|
315
|
-
}) }, null, 4),
|
|
315
|
+
}) }, null, 4), g("div", { style: v({
|
|
316
316
|
height: "100%",
|
|
317
317
|
width: "15px",
|
|
318
318
|
borderRadius: B.value.fontSize / 4 + "px",
|
|
319
319
|
backgroundColor: "#6A6A6A80"
|
|
320
|
-
}) }, null, 4)], 4)) : (
|
|
321
|
-
|
|
322
|
-
B.value.value.show ? (
|
|
320
|
+
}) }, null, 4)], 4)) : (b(), h(f, { key: 1 }, [
|
|
321
|
+
g("span", null, C(n.name), 1),
|
|
322
|
+
B.value.value.show ? (b(), h("span", {
|
|
323
323
|
key: 0,
|
|
324
|
-
style:
|
|
324
|
+
style: v(`font-weight:${B.value.value.bold ? "bold" : "normal"}`),
|
|
325
325
|
class: "vue-ui-sparkbar-datapoint-name"
|
|
326
|
-
}, ": " + w(
|
|
326
|
+
}, ": " + C(w(o)(n.formatter, n.value, w(t)({
|
|
327
327
|
p: n.prefix || "",
|
|
328
328
|
v: n.value,
|
|
329
329
|
s: n.suffix || "",
|
|
@@ -331,8 +331,8 @@ var D = /* @__PURE__ */ e({ default: () => P }), O = [
|
|
|
331
331
|
}), {
|
|
332
332
|
datapoint: n,
|
|
333
333
|
seriesIndex: i
|
|
334
|
-
})), 5)) :
|
|
335
|
-
V.value.layout.showTargetValue ? (
|
|
334
|
+
})), 5)) : m("", !0),
|
|
335
|
+
V.value.layout.showTargetValue ? (b(), h("span", k, C(" " + V.value.layout.targetValueText) + " " + C(w(o)(n.formatter, Z(n), w(t)({
|
|
336
336
|
p: n.prefix || "",
|
|
337
337
|
v: Z(n),
|
|
338
338
|
s: n.suffix || "",
|
|
@@ -340,16 +340,16 @@ var D = /* @__PURE__ */ e({ default: () => P }), O = [
|
|
|
340
340
|
}), {
|
|
341
341
|
datapoint: n,
|
|
342
342
|
seriesIndex: i
|
|
343
|
-
})), 1)) :
|
|
344
|
-
], 64))], 4)) :
|
|
345
|
-
(
|
|
343
|
+
})), 1)) : m("", !0)
|
|
344
|
+
], 64))], 4)) : m("", !0),
|
|
345
|
+
(b(), h("svg", {
|
|
346
346
|
role: "img",
|
|
347
|
-
xmlns:
|
|
347
|
+
xmlns: w(re),
|
|
348
348
|
viewBox: `0 0 ${Y.value.width} ${Y.value.height}`,
|
|
349
349
|
width: "100%"
|
|
350
350
|
}, [
|
|
351
|
-
|
|
352
|
-
|
|
351
|
+
_(w(P)),
|
|
352
|
+
g("defs", null, [_(u, {
|
|
353
353
|
t: "linear",
|
|
354
354
|
x1: "0%",
|
|
355
355
|
y1: "0%",
|
|
@@ -358,7 +358,7 @@ var D = /* @__PURE__ */ e({ default: () => P }), O = [
|
|
|
358
358
|
id: `sparkbar_gradient_${i}_${L.value}`,
|
|
359
359
|
stops: [[
|
|
360
360
|
"0%",
|
|
361
|
-
|
|
361
|
+
w(r)(w(te)(n.color, .03), 100 - z.value.gradient.intensity),
|
|
362
362
|
1
|
|
363
363
|
], [
|
|
364
364
|
"100%",
|
|
@@ -366,15 +366,15 @@ var D = /* @__PURE__ */ e({ default: () => P }), O = [
|
|
|
366
366
|
1
|
|
367
367
|
]]
|
|
368
368
|
}, null, 8, ["id", "stops"])]),
|
|
369
|
-
|
|
369
|
+
g("rect", {
|
|
370
370
|
height: Y.value.height,
|
|
371
371
|
width: Y.value.width,
|
|
372
372
|
x: 0,
|
|
373
373
|
y: 0,
|
|
374
|
-
fill:
|
|
374
|
+
fill: w(r)(V.value.gutter.backgroundColor, V.value.gutter.opacity),
|
|
375
375
|
rx: $.value
|
|
376
376
|
}, null, 8, j),
|
|
377
|
-
|
|
377
|
+
g("rect", {
|
|
378
378
|
height: Y.value.height,
|
|
379
379
|
width: Y.value.width * X(n),
|
|
380
380
|
x: 0,
|
|
@@ -382,7 +382,7 @@ var D = /* @__PURE__ */ e({ default: () => P }), O = [
|
|
|
382
382
|
fill: z.value.gradient.underlayerColor,
|
|
383
383
|
rx: $.value
|
|
384
384
|
}, null, 8, M),
|
|
385
|
-
|
|
385
|
+
g("rect", {
|
|
386
386
|
height: Y.value.height,
|
|
387
387
|
width: Y.value.width * X(n),
|
|
388
388
|
x: 0,
|
|
@@ -392,8 +392,8 @@ var D = /* @__PURE__ */ e({ default: () => P }), O = [
|
|
|
392
392
|
}, null, 8, N)
|
|
393
393
|
], 8, A))
|
|
394
394
|
], 44, O))), 256)),
|
|
395
|
-
e.$slots.source ? (
|
|
396
|
-
|
|
395
|
+
e.$slots.source ? (b(), h("div", xe, [S(e.$slots, "source")], 512)) : m("", !0),
|
|
396
|
+
w(U) ? (b(), pe(de, { key: 3 })) : m("", !0)
|
|
397
397
|
], 4));
|
|
398
398
|
}
|
|
399
399
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { $ as t,
|
|
2
|
+
import { $ as t, Tt as n, X as ee, at as r, b as i, i as te, nn as a, t as ne, yt as o, zt as s } from "./lib-D4wK6ljP.js";
|
|
3
3
|
import { n as re, t as ie } from "./useHints-Dq_w2E8B.js";
|
|
4
|
-
import { t as ae } from "./useConfig-
|
|
4
|
+
import { t as ae } from "./useConfig-D_6ZrPMD.js";
|
|
5
5
|
import { n as oe, t as c } from "./BaseScanner-Dzc8VT3j.js";
|
|
6
|
-
import { t as l } from "./useNestedProp-
|
|
6
|
+
import { t as l } from "./useNestedProp-DR_8JPol.js";
|
|
7
7
|
import { t as u } from "./useThemeCheck-C43Tcqmk.js";
|
|
8
8
|
import { t as se } from "./DefGrad-DVBqDjhO.js";
|
|
9
9
|
import { t as ce } from "./useChartAccessibility-DYqac8yF.js";
|
|
@@ -52,7 +52,7 @@ var T = /* @__PURE__ */ e({ default: () => k }), he = ["xmlns", "viewBox"], ge =
|
|
|
52
52
|
}
|
|
53
53
|
},
|
|
54
54
|
setup(e) {
|
|
55
|
-
let T = fe(() => import("./PackageVersion-
|
|
55
|
+
let T = fe(() => import("./PackageVersion-D7H9nfK0.js").then((e) => e.t)), { vue_ui_sparkgauge: k } = ae(), { isThemeValid: A, warnInvalidTheme: j } = u(), M = le(), N = b(null), P = e, F = b(ee()), I = b(W()), L = d(() => I.value.style.dataLabel), R = d(() => I.value.style);
|
|
56
56
|
re({
|
|
57
57
|
config: () => I.value,
|
|
58
58
|
dataset: () => P.dataset,
|
|
@@ -114,7 +114,7 @@ var T = /* @__PURE__ */ e({ default: () => k }), he = ["xmlns", "viewBox"], ge =
|
|
|
114
114
|
});
|
|
115
115
|
let G = d(() => I.value.debug);
|
|
116
116
|
function K() {
|
|
117
|
-
|
|
117
|
+
s(P.dataset) ? r({
|
|
118
118
|
componentName: "VueUiSparkgauge",
|
|
119
119
|
type: "dataset",
|
|
120
120
|
debug: G.value
|
|
@@ -164,7 +164,7 @@ var T = /* @__PURE__ */ e({ default: () => k }), he = ["xmlns", "viewBox"], ge =
|
|
|
164
164
|
if (!isFinite(e) || e === 0) return 0;
|
|
165
165
|
let t = H.value.min, n = xe.value;
|
|
166
166
|
return n >= 0 ? (n - t) / e : (Math.abs(t) - Math.abs(n)) / e;
|
|
167
|
-
}), Q = d(() =>
|
|
167
|
+
}), Q = d(() => n(R.value.colors.min, R.value.colors.max, H.value.min, H.value.max, J.value)), $ = d(() => L.value.autoColor ? Q.value : L.value.color), Se = d(() => R.value.track.autoColor ? Q.value : R.value.track.color);
|
|
168
168
|
return pe(() => {
|
|
169
169
|
N.value && cancelAnimationFrame(N.value);
|
|
170
170
|
}), (e, n) => (y(), p("div", {
|