vue-data-ui 3.22.8 → 3.22.10
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-DdymhUfY.js → Arrow-Ku6rQ87g.js} +1 -1
- package/dist/{BaseDraggableDialog-DcfGlH8A.js → BaseDraggableDialog-CdkCqtag.js} +2 -2
- package/dist/BaseIcon-CDTIUIKV.js +483 -0
- package/dist/{BaseLegendToggle-DtQ8vyfr.js → BaseLegendToggle-BrQ2OlzI.js} +1 -1
- package/dist/{BaseZoomControls-C6zonwhr.js → BaseZoomControls-CkEX0292.js} +2 -2
- package/dist/{ColorPicker-CK2-h611.js → ColorPicker-C959ZIW9.js} +2 -2
- package/dist/{DataTable-D9NvewTT.js → DataTable-ByZy5gt1.js} +2 -2
- package/dist/DefGrad-DVBqDjhO.js +48 -0
- package/dist/{Legend-ROt6ugzW.js → Legend-5VQGLnmx.js} +2 -2
- package/dist/{NonSvgPenAndPaper-BHHNsVVP.js → NonSvgPenAndPaper-Bd8OzTqw.js} +3 -3
- package/dist/{PackageVersion-DW7zwRcm.js → PackageVersion-BoTvk0i5.js} +1 -1
- package/dist/{PenAndPaper-pcgwlYr2.js → PenAndPaper-CLaZJl6K.js} +3 -3
- package/dist/{Shape-UpH0a4Ur.js → Shape-B5ksaGa1.js} +3 -3
- package/dist/{Slicer-BZ5VnOOS.js → Slicer-WsWTQPKt.js} +368 -363
- package/dist/{SlicerPreview-BQFeCw0m.js → SlicerPreview-3n516NyE.js} +460 -455
- package/dist/{SparkTooltip-BTLN-Kex.js → SparkTooltip-CbYYc-xb.js} +1 -1
- package/dist/{Title-CcNiYzEo.js → Title-Cr3jP7Qd.js} +1 -1
- package/dist/{Tooltip-CxOrWlFy.js → Tooltip-CDbLl3TD.js} +1 -1
- package/dist/{UserOptions-16uF1ayB.js → UserOptions-BUQOnoPR.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-BbwhsRIr.js → dom-to-png-COPbGrdd.js} +1 -1
- package/dist/exposedLib-CZbtc2a6.js +25 -0
- package/dist/{img-DnP3eXuv.js → img-CNdXiUfZ.js} +1 -1
- package/dist/{labelUtils-DBEh078l.js → labelUtils-JaoYKi2N.js} +1 -1
- package/dist/{lib-JqW18y5I.js → lib-CnHx5WfV.js} +118 -107
- package/dist/{package-gp9pYCfN.js → package-BRBLwZUc.js} +1 -1
- package/dist/{pdf-hj3gzrE7.js → pdf-CEMzBeuV.js} +1 -1
- package/dist/{render-common-CLn1VXJ9.js → render-common-DJXFRGhU.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/utils.d.ts +40 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-BGnDfZdg.js → useAutoSizeLabelsInsideViewbox-BUPt2iaP.js} +1 -1
- package/dist/{useNestedProp-DIuuzG1r.js → useNestedProp-D8NuRneO.js} +2 -2
- package/dist/{usePrinter-CqqHmnBI.js → usePrinter-B-X_Pub0.js} +2 -2
- package/dist/utils.js +26 -24
- package/dist/{vue-data-ui-AZZ9Cq-4.js → vue-data-ui-Bx_8d3b_.js} +68 -68
- package/dist/vue-data-ui.js +77 -77
- package/dist/vue-ui-3d-bar-CfUfbpSE.js +1825 -0
- package/dist/{vue-ui-accordion-YyosvEPo.js → vue-ui-accordion-Oo3IsX3-.js} +3 -3
- package/dist/vue-ui-age-pyramid-DD-4y5Jd.js +1247 -0
- package/dist/{vue-ui-annotator-CfJXeAOE.js → vue-ui-annotator-BvGE3lzE.js} +8 -8
- package/dist/vue-ui-bullet-DYOdbaO2.js +710 -0
- package/dist/vue-ui-bump-B8fJoxHF.js +1249 -0
- package/dist/{vue-ui-candlestick-D-Z9pEaA.js → vue-ui-candlestick-BUP1JoNs.js} +555 -544
- package/dist/vue-ui-carousel-table-D-Bwhydt.js +455 -0
- package/dist/vue-ui-chestnut-C2VK2NEx.js +2042 -0
- package/dist/{vue-ui-chord-Db1O_diJ.js → vue-ui-chord-AA-QjUQI.js} +42 -42
- package/dist/vue-ui-circle-pack-CdBFGYOK.js +1614 -0
- package/dist/{vue-ui-cursor-DLP7wxsw.js → vue-ui-cursor-Cm_J_5Gk.js} +5 -5
- package/dist/{vue-ui-dag-DL3zq0F2.js → vue-ui-dag-CgRph4-n.js} +32 -32
- package/dist/{vue-ui-dashboard-C2ozZ-LI.js → vue-ui-dashboard-BuPw5QjB.js} +69 -69
- package/dist/{vue-ui-digits-ThFVNO3l.js → vue-ui-digits-ClrukmcB.js} +3 -3
- package/dist/vue-ui-donut-Bc-EPZvu.js +2419 -0
- package/dist/{vue-ui-donut-BuTd6dt4.js → vue-ui-donut-DtQCrMKL.js} +207 -207
- package/dist/vue-ui-donut-evolution-DHkiY-BD.js +1522 -0
- package/dist/vue-ui-dumbbell-BlHEH4Mw.js +1564 -0
- package/dist/{vue-ui-flow-BTUNfWb7.js → vue-ui-flow-PjwAW2tY.js} +71 -71
- package/dist/vue-ui-funnel-DojI09FV.js +782 -0
- package/dist/{vue-ui-galaxy-DJ2uNYcN.js → vue-ui-galaxy-txYIK_LG.js} +276 -276
- package/dist/vue-ui-gauge-CoL0OzSd.js +926 -0
- package/dist/{vue-ui-geo-ovHu_Sc9.js → vue-ui-geo-yuL-_sqF.js} +20 -20
- package/dist/{vue-ui-gizmo-DDxEj-qe.js → vue-ui-gizmo-CbC5zV3K.js} +66 -61
- package/dist/{vue-ui-heatmap-Npqnvb1r.js → vue-ui-heatmap-CwqsZIsR.js} +331 -331
- package/dist/{vue-ui-history-plot-C3Kjy2tc.js → vue-ui-history-plot-CuWssH-D.js} +561 -550
- package/dist/vue-ui-horizontal-bar-Dyje3GND.js +1689 -0
- package/dist/{vue-ui-kpi-BrlfYO-j.js → vue-ui-kpi-BdYenScF.js} +3 -3
- package/dist/{vue-ui-mini-loader-D5we7V_W.js → vue-ui-mini-loader-BbwE3vBT.js} +2 -2
- package/dist/vue-ui-molecule-BBh31vmd.js +931 -0
- package/dist/{vue-ui-mood-radar-DlVh6hwx.js → vue-ui-mood-radar-B_6GFlaR.js} +336 -331
- package/dist/vue-ui-nested-donuts-BWq-At5Y.js +1493 -0
- package/dist/vue-ui-onion-BwGbSE-6.js +1200 -0
- package/dist/vue-ui-parallel-coordinate-plot-Bh9hNoqf.js +1416 -0
- package/dist/vue-ui-quadrant-B72Y4Zuw.js +1984 -0
- package/dist/{vue-ui-quick-chart-WMzSJxGZ.js → vue-ui-quick-chart-B3LF2ViM.js} +108 -108
- package/dist/vue-ui-radar-4v_E8oGX.js +1287 -0
- package/dist/vue-ui-rating-CzLGCFWK.js +352 -0
- package/dist/vue-ui-relation-circle-B_8dyIv2.js +924 -0
- package/dist/{vue-ui-ridgeline-Cp3YP0xe.js → vue-ui-ridgeline-BArLhskj.js} +543 -537
- package/dist/vue-ui-rings-Csn5BgLk.js +1252 -0
- package/dist/vue-ui-scatter-BBaOx94M.js +2422 -0
- package/dist/{vue-ui-skeleton-CuFm4PtB.js → vue-ui-skeleton-KeIPGp9U.js} +426 -423
- package/dist/{vue-ui-smiley-D4NnZ1mg.js → vue-ui-smiley-C1mYDh4R.js} +120 -107
- package/dist/{vue-ui-spark-trend-C38ysZ-c.js → vue-ui-spark-trend-EqCqmHmU.js} +145 -140
- package/dist/vue-ui-sparkbar-BPh45vBP.js +398 -0
- package/dist/{vue-ui-sparkgauge-DgPc4vPT.js → vue-ui-sparkgauge-CtouPcyW.js} +81 -76
- package/dist/{vue-ui-sparkhistogram-D02ff7ZI.js → vue-ui-sparkhistogram-D4sI0DHN.js} +166 -150
- package/dist/vue-ui-sparkline-BDFZ78Fz.js +1560 -0
- package/dist/vue-ui-sparkstackbar-CbTXIfxm.js +674 -0
- package/dist/{vue-ui-stackbar-BVdApDnY.js → vue-ui-stackbar-nMXIY9x8.js} +603 -596
- package/dist/vue-ui-stackline-CzfXl5ah.js +2425 -0
- package/dist/{vue-ui-strip-plot-C-TFNvgz.js → vue-ui-strip-plot-BCf5nthl.js} +415 -408
- package/dist/vue-ui-table-BAKkFXki.js +1338 -0
- package/dist/{vue-ui-table-heatmap-D0pZbBOH.js → vue-ui-table-heatmap-CUMxqHKK.js} +15 -15
- package/dist/{vue-ui-table-sparkline-Q6BHPKUn.js → vue-ui-table-sparkline-BVTm16fd.js} +20 -20
- package/dist/vue-ui-thermometer-CGeEW1KV.js +770 -0
- package/dist/{vue-ui-timer-BdzKpoRj.js → vue-ui-timer-Bz7EnsM1.js} +94 -89
- package/dist/{vue-ui-tiremarks-DWb69ofh.js → vue-ui-tiremarks-IOqtk_Rr.js} +17 -17
- package/dist/{vue-ui-treemap-uUz07Prw.js → vue-ui-treemap-JxNNtb7v.js} +509 -504
- package/dist/vue-ui-waffle-D34mcJWi.js +1368 -0
- package/dist/{vue-ui-wheel-DTfvWYA7.js → vue-ui-wheel-B_qEhyvk.js} +44 -44
- package/dist/{vue-ui-word-cloud-DqfljAqH.js → vue-ui-word-cloud-TtObhd91.js} +32 -32
- package/dist/{vue-ui-world-BtBrH92Z.js → vue-ui-world-R9o00A6c.js} +359 -348
- package/dist/{vue-ui-xy-Bvgy2do1.js → vue-ui-xy-CUt6sU1s.js} +1678 -1652
- package/dist/{vue-ui-xy-D5KsuNR2.js → vue-ui-xy-Do34-UbE.js} +134 -134
- package/dist/vue-ui-xy-canvas-C6eRRH--.js +1790 -0
- package/package.json +1 -1
- package/dist/BaseIcon-C2qlyHc7.js +0 -502
- package/dist/exposedLib-VXFp3Z2c.js +0 -19
- package/dist/vue-ui-3d-bar-B3HxJmDI.js +0 -1757
- package/dist/vue-ui-age-pyramid-DTAOc7fn.js +0 -1238
- package/dist/vue-ui-bullet-CCLnrOLm.js +0 -710
- package/dist/vue-ui-bump-Rq7efdoe.js +0 -1249
- package/dist/vue-ui-carousel-table-Lx5Zk4dG.js +0 -455
- package/dist/vue-ui-chestnut-RfWMGUD-.js +0 -2010
- package/dist/vue-ui-circle-pack-B4Ro7UuI.js +0 -1608
- package/dist/vue-ui-donut-C3Rt6j-I.js +0 -2410
- package/dist/vue-ui-donut-evolution-DY46UPF_.js +0 -1510
- package/dist/vue-ui-dumbbell-wK7vUB0x.js +0 -1530
- package/dist/vue-ui-funnel-BhoHzyHa.js +0 -777
- package/dist/vue-ui-gauge-Cf4NqvrO.js +0 -920
- package/dist/vue-ui-horizontal-bar-D1rCsgqt.js +0 -1683
- package/dist/vue-ui-molecule-CExCqZ08.js +0 -925
- package/dist/vue-ui-nested-donuts-3TRV8pN-.js +0 -1487
- package/dist/vue-ui-onion-DwKK9DXn.js +0 -1200
- package/dist/vue-ui-parallel-coordinate-plot-DSp_cwU-.js +0 -1416
- package/dist/vue-ui-quadrant-ByVg-NBs.js +0 -1978
- package/dist/vue-ui-radar-DE-me6OC.js +0 -1281
- package/dist/vue-ui-rating-CzD3EQ3G.js +0 -343
- package/dist/vue-ui-relation-circle-L7-dTqet.js +0 -924
- package/dist/vue-ui-rings-WzWiEo9W.js +0 -1246
- package/dist/vue-ui-scatter-DwrAydha.js +0 -2413
- package/dist/vue-ui-sparkbar-B03ndcUe.js +0 -393
- package/dist/vue-ui-sparkline-DlTfNQj8.js +0 -1547
- package/dist/vue-ui-sparkstackbar-DrmiWFlw.js +0 -662
- package/dist/vue-ui-stackline-QzQQ7lTy.js +0 -2419
- package/dist/vue-ui-table-Q3brrivC.js +0 -1338
- package/dist/vue-ui-thermometer-Bg0RR6m4.js +0 -763
- package/dist/vue-ui-waffle-Pi9e7Ae7.js +0 -1362
- package/dist/vue-ui-xy-canvas-BfgeE3TW.js +0 -1790
|
@@ -0,0 +1,398 @@
|
|
|
1
|
+
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
+
import { At as t, Bt as n, C as r, Gt as i, K as ee, Nt as a, Y as o, et as s, ft as te, i as c, qt as l, t as ne, x as re, zt as u } from "./lib-CnHx5WfV.js";
|
|
3
|
+
import { t as ie } from "./useConfig-DYM3f6EI.js";
|
|
4
|
+
import { n as ae, t as oe } from "./BaseScanner-DZvpgOjM.js";
|
|
5
|
+
import { t as d } from "./useNestedProp-D8NuRneO.js";
|
|
6
|
+
import { t as se } from "./useThemeCheck-C43Tcqmk.js";
|
|
7
|
+
import { t as f } from "./DefGrad-DVBqDjhO.js";
|
|
8
|
+
import { t as ce } from "./usePrefersMotion-BC-CsqR1.js";
|
|
9
|
+
import { t as le } from "./vue_ui_sparkbar-z6qO--Kf.js";
|
|
10
|
+
import { Fragment as p, computed as m, createBlock as ue, createCommentVNode as h, createElementBlock as g, createElementVNode as _, createVNode as v, defineAsyncComponent as y, mergeProps as b, nextTick as de, normalizeProps as x, normalizeStyle as S, onMounted as C, openBlock as w, ref as T, renderList as fe, renderSlot as E, toDisplayString as D, toRefs as pe, unref as O, useSlots as me, watch as k } from "vue";
|
|
11
|
+
//#region src/components/vue-ui-sparkbar.vue
|
|
12
|
+
var A = /* @__PURE__ */ e({ default: () => R }), j = [
|
|
13
|
+
"onClick",
|
|
14
|
+
"onMouseenter",
|
|
15
|
+
"onMouseleave"
|
|
16
|
+
], M = {
|
|
17
|
+
key: 1,
|
|
18
|
+
class: "vue-ui-sparkbar-datapoint-value"
|
|
19
|
+
}, N = ["xmlns", "viewBox"], P = [
|
|
20
|
+
"height",
|
|
21
|
+
"width",
|
|
22
|
+
"fill",
|
|
23
|
+
"rx"
|
|
24
|
+
], F = [
|
|
25
|
+
"height",
|
|
26
|
+
"width",
|
|
27
|
+
"fill",
|
|
28
|
+
"rx"
|
|
29
|
+
], I = [
|
|
30
|
+
"height",
|
|
31
|
+
"width",
|
|
32
|
+
"fill",
|
|
33
|
+
"rx"
|
|
34
|
+
], L = {
|
|
35
|
+
key: 2,
|
|
36
|
+
ref: "source",
|
|
37
|
+
dir: "auto"
|
|
38
|
+
}, R = {
|
|
39
|
+
__name: "vue-ui-sparkbar",
|
|
40
|
+
props: {
|
|
41
|
+
config: {
|
|
42
|
+
type: Object,
|
|
43
|
+
default() {
|
|
44
|
+
return {};
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
dataset: {
|
|
48
|
+
type: Array,
|
|
49
|
+
default() {
|
|
50
|
+
return [];
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
backgroundOpacity: {
|
|
54
|
+
type: Number,
|
|
55
|
+
default: null
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
emits: ["selectDatapoint"],
|
|
59
|
+
setup(e, { emit: A }) {
|
|
60
|
+
let R = y(() => import("./PackageVersion-BoTvk0i5.js").then((e) => e.t)), { vue_ui_sparkbar: z } = ie(), { isThemeValid: he, warnInvalidTheme: ge } = se(), B = ce(), V = e, _e = me();
|
|
61
|
+
C(() => {
|
|
62
|
+
_e["chart-background"] && console.warn("VueUiSparkbar does not support the #chart-background slot.");
|
|
63
|
+
});
|
|
64
|
+
let H = T(ee()), U = T(q()), ve = m(() => l({
|
|
65
|
+
defaultConfig: { style: {
|
|
66
|
+
backgroundColor: "#99999930",
|
|
67
|
+
animation: { show: !1 },
|
|
68
|
+
layout: { independant: !0 },
|
|
69
|
+
gutter: {
|
|
70
|
+
backgroundColor: "#6A6A6A",
|
|
71
|
+
opacity: 50
|
|
72
|
+
},
|
|
73
|
+
bar: { gradient: { underlayerColor: "#6A6A6A" } }
|
|
74
|
+
} },
|
|
75
|
+
userConfig: U.value.skeletonConfig ?? {}
|
|
76
|
+
})), { loading: W, FINAL_DATASET: G, manualLoading: ye } = ae({
|
|
77
|
+
...pe(V),
|
|
78
|
+
FINAL_CONFIG: U,
|
|
79
|
+
prepareConfig: q,
|
|
80
|
+
skeletonDataset: V.config?.skeletonDataset ?? [
|
|
81
|
+
{
|
|
82
|
+
name: "_",
|
|
83
|
+
value: 21,
|
|
84
|
+
target: 25,
|
|
85
|
+
color: "#808080"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
name: "_",
|
|
89
|
+
value: 13,
|
|
90
|
+
target: 25,
|
|
91
|
+
color: "#ADADAD"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
name: "_",
|
|
95
|
+
value: 8,
|
|
96
|
+
target: 25,
|
|
97
|
+
color: "#DBDBDB"
|
|
98
|
+
}
|
|
99
|
+
],
|
|
100
|
+
skeletonConfig: l({
|
|
101
|
+
defaultConfig: U.value,
|
|
102
|
+
userConfig: ve.value
|
|
103
|
+
})
|
|
104
|
+
}), K = m(() => !!U.value.debug);
|
|
105
|
+
function q() {
|
|
106
|
+
let e = d({
|
|
107
|
+
userConfig: V.config,
|
|
108
|
+
defaultConfig: z
|
|
109
|
+
}), t = e.theme;
|
|
110
|
+
if (!t) return e;
|
|
111
|
+
if (!he.value(e)) return ge(e), e;
|
|
112
|
+
let n = d({
|
|
113
|
+
userConfig: le[t] || V.config,
|
|
114
|
+
defaultConfig: e
|
|
115
|
+
}), r = d({
|
|
116
|
+
userConfig: V.config,
|
|
117
|
+
defaultConfig: n
|
|
118
|
+
});
|
|
119
|
+
return {
|
|
120
|
+
...r,
|
|
121
|
+
customPalette: r.customPalette.length ? r.customPalette : i[t] || a
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
k(() => V.config, (e) => {
|
|
125
|
+
U.value = q();
|
|
126
|
+
}, { deep: !0 });
|
|
127
|
+
let be = m(() => r(U.value.customPalette)), J = T(G.value.map((e) => ({
|
|
128
|
+
...e,
|
|
129
|
+
value: U.value.style.animation.show ? 0 : e.value || 0,
|
|
130
|
+
formatter: e.formatter || null
|
|
131
|
+
}))), Y = T(null);
|
|
132
|
+
C(async () => {
|
|
133
|
+
t(V.dataset) && s({
|
|
134
|
+
componentName: "VueUiSparkbar",
|
|
135
|
+
type: "dataset",
|
|
136
|
+
debug: K.value
|
|
137
|
+
}), X();
|
|
138
|
+
});
|
|
139
|
+
function X() {
|
|
140
|
+
if (U.value.style.animation.show && !B.value) {
|
|
141
|
+
let e = U.value.style.animation.animationFrames, t = G.value.map((t, n) => t.value / e), n = G.value.map((e) => e.value || 0).reduce((e, t) => e + t, 0), r = 0;
|
|
142
|
+
function i() {
|
|
143
|
+
r += n / e, r < n ? (J.value = J.value.map((e, n) => ({
|
|
144
|
+
...e,
|
|
145
|
+
value: e.value += t[n]
|
|
146
|
+
})), Y.value = requestAnimationFrame(i)) : J.value = G.value.map((e) => ({
|
|
147
|
+
...e,
|
|
148
|
+
value: e.value || 0,
|
|
149
|
+
formatter: e.formatter || null
|
|
150
|
+
}));
|
|
151
|
+
}
|
|
152
|
+
i();
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
k(() => G.value, async (e) => {
|
|
156
|
+
cancelAnimationFrame(Y.value), J.value = G.value.map((e) => ({
|
|
157
|
+
...e,
|
|
158
|
+
value: U.value.style.animation.show && !B.value ? 0 : e.value || 0,
|
|
159
|
+
formatter: e.formatter || null
|
|
160
|
+
})), de(X);
|
|
161
|
+
}, { deep: !0 });
|
|
162
|
+
let Z = T({
|
|
163
|
+
width: 500,
|
|
164
|
+
height: 16
|
|
165
|
+
}), xe = m(() => Math.max(...G.value.map((e) => e.value))), Se = m(() => (G.value.forEach((e, t) => {
|
|
166
|
+
te({
|
|
167
|
+
datasetObject: e,
|
|
168
|
+
requiredAttributes: ["name", "value"]
|
|
169
|
+
}).forEach((e) => {
|
|
170
|
+
s({
|
|
171
|
+
componentName: "VueUiSparkbar",
|
|
172
|
+
type: "datasetSerieAttribute",
|
|
173
|
+
property: e,
|
|
174
|
+
index: t,
|
|
175
|
+
debug: K.value
|
|
176
|
+
});
|
|
177
|
+
});
|
|
178
|
+
}), J.value.map((e, t) => ({
|
|
179
|
+
...e,
|
|
180
|
+
value: e.value || 0,
|
|
181
|
+
color: re(e.color) || be.value[t] || a[t] || a[t % a.length]
|
|
182
|
+
}))));
|
|
183
|
+
function Ce(e) {
|
|
184
|
+
return e / xe.value;
|
|
185
|
+
}
|
|
186
|
+
function Q(e) {
|
|
187
|
+
return U.value.style.layout.independant ? e.target ? e.value / e.target : U.value.style.layout.percentage ? e.value > 100 ? 1 : e.value / 100 : U.value.style.layout.target === 0 ? 1 : e.value / U.value.style.layout.target : Ce(e.value);
|
|
188
|
+
}
|
|
189
|
+
function $(e) {
|
|
190
|
+
return U.value.style.layout.independant && e.target || U.value.style.layout.target;
|
|
191
|
+
}
|
|
192
|
+
let we = A;
|
|
193
|
+
function Te(e, t) {
|
|
194
|
+
we("selectDatapoint", {
|
|
195
|
+
datapoint: e,
|
|
196
|
+
index: t
|
|
197
|
+
}), U.value.events.datapointClick && U.value.events.datapointClick({
|
|
198
|
+
datapoint: e,
|
|
199
|
+
seriesIndex: t
|
|
200
|
+
});
|
|
201
|
+
}
|
|
202
|
+
function Ee(e, t) {
|
|
203
|
+
U.value.events.datapointEnter && U.value.events.datapointEnter({
|
|
204
|
+
datapoint: e,
|
|
205
|
+
seriesIndex: t
|
|
206
|
+
});
|
|
207
|
+
}
|
|
208
|
+
function De(e, t) {
|
|
209
|
+
U.value.events.datapointLeave && U.value.events.datapointLeave({
|
|
210
|
+
datapoint: e,
|
|
211
|
+
seriesIndex: t
|
|
212
|
+
});
|
|
213
|
+
}
|
|
214
|
+
return (e, t) => (w(), g("div", {
|
|
215
|
+
class: "vue-data-ui-component vue-ui-sparkbar",
|
|
216
|
+
style: S({
|
|
217
|
+
width: "100%",
|
|
218
|
+
position: "relative",
|
|
219
|
+
fontFamily: U.value.style.fontFamily,
|
|
220
|
+
background: V.backgroundOpacity === null ? U.value.style.backgroundColor : O(u)(U.value.style.backgroundColor, V.backgroundOpacity)
|
|
221
|
+
})
|
|
222
|
+
}, [
|
|
223
|
+
e.$slots.title ? E(e.$slots, "title", x(b({ key: 0 }, { title: {
|
|
224
|
+
...e.title,
|
|
225
|
+
title: U.value.style.title.text,
|
|
226
|
+
subtitle: U.value.style.title.subtitle.text
|
|
227
|
+
} }))) : h("", !0),
|
|
228
|
+
!e.$slots.title && U.value.style.title.text ? (w(), g("div", {
|
|
229
|
+
key: 1,
|
|
230
|
+
class: "vue-ui-sparkbar-title-container",
|
|
231
|
+
style: S({
|
|
232
|
+
background: U.value.style.title.backgroundColor,
|
|
233
|
+
margin: U.value.style.title.margin,
|
|
234
|
+
textAlign: U.value.style.title.textAlign
|
|
235
|
+
})
|
|
236
|
+
}, [_("div", {
|
|
237
|
+
class: "vue-ui-sparkbar-title",
|
|
238
|
+
style: S({
|
|
239
|
+
fontSize: U.value.style.title.fontSize + "px",
|
|
240
|
+
color: U.value.style.title.color,
|
|
241
|
+
fontWeight: U.value.style.title.bold ? "bold" : "normal"
|
|
242
|
+
})
|
|
243
|
+
}, D(U.value.style.title.text), 5), U.value.style.title.subtitle.text ? (w(), g("div", {
|
|
244
|
+
key: 0,
|
|
245
|
+
class: "vue-ui-sparkbar-subtitle",
|
|
246
|
+
style: S({
|
|
247
|
+
fontSize: U.value.style.title.subtitle.fontSize + "px",
|
|
248
|
+
color: U.value.style.title.subtitle.color,
|
|
249
|
+
fontWeight: U.value.style.title.subtitle.bold ? "bold" : "normal"
|
|
250
|
+
})
|
|
251
|
+
}, D(U.value.style.title.subtitle.text), 5)) : h("", !0)], 4)) : h("", !0),
|
|
252
|
+
(w(!0), g(p, null, fe(Se.value, (t, r) => (w(), g("div", {
|
|
253
|
+
style: S(`display:flex !important;${["left", "right"].includes(U.value.style.labels.name.position) ? `flex-direction: ${U.value.style.labels.name.position === "right" ? "row-reverse" : "row"} !important` : "flex-direction:column !important"};gap:${U.value.style.gap}px !important;align-items:center;${O(G).length > 0 && r !== O(G).length - 1 ? "margin-bottom:6px" : ""}`),
|
|
254
|
+
onClick: (e) => Te(t, r),
|
|
255
|
+
onMouseenter: (e) => Ee(t, r),
|
|
256
|
+
onMouseleave: (e) => De(t, r)
|
|
257
|
+
}, [
|
|
258
|
+
O(W) ? h("", !0) : E(e.$slots, "data-label", b({
|
|
259
|
+
key: 0,
|
|
260
|
+
ref_for: !0
|
|
261
|
+
}, { bar: {
|
|
262
|
+
...t,
|
|
263
|
+
target: $(t),
|
|
264
|
+
valueLabel: O(c)(t.formatter, t.value, O(o)({
|
|
265
|
+
p: t.prefix || "",
|
|
266
|
+
v: t.value,
|
|
267
|
+
s: t.suffix || "",
|
|
268
|
+
r: t.rounding || 0
|
|
269
|
+
}), {
|
|
270
|
+
datapoint: t,
|
|
271
|
+
seriesIndex: r
|
|
272
|
+
}),
|
|
273
|
+
targetLabel: O(c)(t.formatter, $(t), O(o)({
|
|
274
|
+
p: t.prefix || "",
|
|
275
|
+
v: $(t),
|
|
276
|
+
s: t.suffix || "",
|
|
277
|
+
r: t.rounding || 0
|
|
278
|
+
}), {
|
|
279
|
+
datapoint: t,
|
|
280
|
+
seriesIndex: r
|
|
281
|
+
})
|
|
282
|
+
} })),
|
|
283
|
+
!e.$slots["data-label"] || O(W) ? (w(), g("div", {
|
|
284
|
+
key: 1,
|
|
285
|
+
style: S({
|
|
286
|
+
display: "flex",
|
|
287
|
+
justifyContent: ["right", "top-right"].includes(U.value.style.labels.name.position) ? "flex-end" : ["top-center"].includes(U.value.style.labels.name.position) ? "center" : "flex-start",
|
|
288
|
+
alignItems: "center",
|
|
289
|
+
width: U.value.style.labels.name.width,
|
|
290
|
+
color: U.value.style.labels.name.color,
|
|
291
|
+
fontSize: U.value.style.labels.fontSize + "px",
|
|
292
|
+
fontWeight: U.value.style.labels.name.bold ? "bold" : "normal",
|
|
293
|
+
flexWrap: "wrap"
|
|
294
|
+
})
|
|
295
|
+
}, [O(W) ? (w(), g("div", {
|
|
296
|
+
key: 0,
|
|
297
|
+
class: "vue-ui-sparkbar-skeleton-name",
|
|
298
|
+
style: S({
|
|
299
|
+
width: "60px",
|
|
300
|
+
height: U.value.style.labels.fontSize + "px",
|
|
301
|
+
borderRadius: U.value.style.labels.fontSize / 4 + "px",
|
|
302
|
+
display: "flex",
|
|
303
|
+
alignItems: "center",
|
|
304
|
+
justifyContent: "space-between",
|
|
305
|
+
marginTop: "5px"
|
|
306
|
+
})
|
|
307
|
+
}, [_("div", { style: S({
|
|
308
|
+
height: "100%",
|
|
309
|
+
width: "40px",
|
|
310
|
+
borderRadius: U.value.style.labels.fontSize / 4 + "px",
|
|
311
|
+
backgroundColor: "#6A6A6A80"
|
|
312
|
+
}) }, null, 4), _("div", { style: S({
|
|
313
|
+
height: "100%",
|
|
314
|
+
width: "15px",
|
|
315
|
+
borderRadius: U.value.style.labels.fontSize / 4 + "px",
|
|
316
|
+
backgroundColor: "#6A6A6A80"
|
|
317
|
+
}) }, null, 4)], 4)) : (w(), g(p, { key: 1 }, [
|
|
318
|
+
_("span", null, D(t.name), 1),
|
|
319
|
+
U.value.style.labels.value.show ? (w(), g("span", {
|
|
320
|
+
key: 0,
|
|
321
|
+
style: S(`font-weight:${U.value.style.labels.value.bold ? "bold" : "normal"}`),
|
|
322
|
+
class: "vue-ui-sparkbar-datapoint-name"
|
|
323
|
+
}, ": " + D(O(c)(t.formatter, t.value, O(o)({
|
|
324
|
+
p: t.prefix || "",
|
|
325
|
+
v: t.value,
|
|
326
|
+
s: t.suffix || "",
|
|
327
|
+
r: t.rounding || 0
|
|
328
|
+
}), {
|
|
329
|
+
datapoint: t,
|
|
330
|
+
seriesIndex: r
|
|
331
|
+
})), 5)) : h("", !0),
|
|
332
|
+
U.value.style.layout.showTargetValue ? (w(), g("span", M, D(" " + U.value.style.layout.targetValueText) + " " + D(O(c)(t.formatter, $(t), O(o)({
|
|
333
|
+
p: t.prefix || "",
|
|
334
|
+
v: $(t),
|
|
335
|
+
s: t.suffix || "",
|
|
336
|
+
r: t.rounding || 0
|
|
337
|
+
}), {
|
|
338
|
+
datapoint: t,
|
|
339
|
+
seriesIndex: r
|
|
340
|
+
})), 1)) : h("", !0)
|
|
341
|
+
], 64))], 4)) : h("", !0),
|
|
342
|
+
(w(), g("svg", {
|
|
343
|
+
role: "img",
|
|
344
|
+
xmlns: O(ne),
|
|
345
|
+
viewBox: `0 0 ${Z.value.width} ${Z.value.height}`,
|
|
346
|
+
width: "100%"
|
|
347
|
+
}, [
|
|
348
|
+
v(O(R)),
|
|
349
|
+
_("defs", null, [v(f, {
|
|
350
|
+
t: "linear",
|
|
351
|
+
x1: "0%",
|
|
352
|
+
y1: "0%",
|
|
353
|
+
x2: "100%",
|
|
354
|
+
y2: "0%",
|
|
355
|
+
id: `sparkbar_gradient_${r}_${H.value}`,
|
|
356
|
+
stops: [[
|
|
357
|
+
"0%",
|
|
358
|
+
O(u)(O(n)(t.color, .03), 100 - U.value.style.bar.gradient.intensity),
|
|
359
|
+
1
|
|
360
|
+
], [
|
|
361
|
+
"100%",
|
|
362
|
+
t.color,
|
|
363
|
+
1
|
|
364
|
+
]]
|
|
365
|
+
}, null, 8, ["id", "stops"])]),
|
|
366
|
+
_("rect", {
|
|
367
|
+
height: Z.value.height,
|
|
368
|
+
width: Z.value.width,
|
|
369
|
+
x: 0,
|
|
370
|
+
y: 0,
|
|
371
|
+
fill: O(u)(U.value.style.gutter.backgroundColor, U.value.style.gutter.opacity),
|
|
372
|
+
rx: Z.value.height / 2
|
|
373
|
+
}, null, 8, P),
|
|
374
|
+
_("rect", {
|
|
375
|
+
height: Z.value.height,
|
|
376
|
+
width: Z.value.width * Q(t),
|
|
377
|
+
x: 0,
|
|
378
|
+
y: 0,
|
|
379
|
+
fill: U.value.style.bar.gradient.underlayerColor,
|
|
380
|
+
rx: Z.value.height / 2
|
|
381
|
+
}, null, 8, F),
|
|
382
|
+
_("rect", {
|
|
383
|
+
height: Z.value.height,
|
|
384
|
+
width: Z.value.width * Q(t),
|
|
385
|
+
x: 0,
|
|
386
|
+
y: 0,
|
|
387
|
+
fill: U.value.style.bar.gradient.show ? `url(#sparkbar_gradient_${r}_${H.value})` : t.color,
|
|
388
|
+
rx: Z.value.height / 2
|
|
389
|
+
}, null, 8, I)
|
|
390
|
+
], 8, N))
|
|
391
|
+
], 44, j))), 256)),
|
|
392
|
+
e.$slots.source ? (w(), g("div", L, [E(e.$slots, "source")], 512)) : h("", !0),
|
|
393
|
+
O(W) ? (w(), ue(oe, { key: 3 })) : h("", !0)
|
|
394
|
+
], 4));
|
|
395
|
+
}
|
|
396
|
+
};
|
|
397
|
+
//#endregion
|
|
398
|
+
export { A as n, R as t };
|