vue-data-ui 2.3.89 → 2.3.91
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-6DWnAEHt.js → Arrow-CHTslrAF.js} +1 -1
- package/dist/{Arrow-CW5gDSmt.cjs → Arrow-DpuaFuue.cjs} +1 -1
- package/dist/{BaseIcon-Dj8EbAXm.js → BaseIcon-DfaCNBgc.js} +1 -1
- package/dist/{BaseIcon-B_MrASni.cjs → BaseIcon-JWGtHqTA.cjs} +1 -1
- package/dist/{DataTable-BmYcdJ1w.js → DataTable-BKc3r3k3.js} +2 -2
- package/dist/{DataTable-DAwK5x3h.cjs → DataTable-CnkdsvIo.cjs} +1 -1
- package/dist/{Legend-DhQ-a1RH.cjs → Legend-BQJV6Xk4.cjs} +1 -1
- package/dist/{Legend-BRG8ddDy.js → Legend-WNL92WSx.js} +1 -1
- package/dist/PackageVersion-D9PU8glB.js +10 -0
- package/dist/PackageVersion-LdLhc8hQ.cjs +1 -0
- package/dist/{Shape-D7jva0XA.cjs → Shape-CgW0V2Og.cjs} +1 -1
- package/dist/{Shape-BcL3EDZ5.js → Shape-DPvoEBm9.js} +1 -1
- package/dist/{Slicer-DI1kgq9D.js → Slicer-DE9nFM_c.js} +2 -2
- package/dist/{Slicer-DV29nclP.cjs → Slicer-Dma3nlzi.cjs} +1 -1
- package/dist/{Title-DYwo_Q5b.cjs → Title-Bg_BK11V.cjs} +1 -1
- package/dist/{Title-fAvrqioZ.js → Title-CECK1w9L.js} +1 -1
- package/dist/{Tooltip-TZYYFvPe.js → Tooltip-Ci3AprCm.js} +1 -1
- package/dist/{Tooltip-03RvVGln.cjs → Tooltip-lM1Jzkza.cjs} +1 -1
- package/dist/{index-BKTciLz4.cjs → index-BhH89oF0.cjs} +1 -1
- package/dist/{index-Ca4RHJ4t.js → index-mBy4elhB.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-vP7uimPz.js → useNestedProp-BrIRtQj1.js} +1 -1
- package/dist/{useNestedProp-BFnXnY0k.cjs → useNestedProp-m8IH8hWW.cjs} +1 -1
- package/dist/{usePrinter-CxYg-Dw-.cjs → usePrinter-B8jr_V3b.cjs} +1 -1
- package/dist/{usePrinter-5fwXghqP.js → usePrinter-Ck-yukK2.js} +1 -1
- package/dist/{vue-data-ui-BaLkNH7M.cjs → vue-data-ui-BgaY7Noy.cjs} +1 -1
- package/dist/{vue-data-ui-4VG00HFR.js → vue-data-ui-BuL-2aYA.js} +57 -57
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/vue-ui-3d-bar-C9a-AsIX.cjs +19 -0
- package/dist/{vue-ui-3d-bar-DPJWcxqV.js → vue-ui-3d-bar-Cv-56A3m.js} +148 -146
- package/dist/{vue-ui-accordion-SXHdW20_.cjs → vue-ui-accordion-Bzq1iTL2.cjs} +1 -1
- package/dist/{vue-ui-accordion-vYoYjedX.js → vue-ui-accordion-dyF20BlD.js} +3 -3
- package/dist/{vue-ui-age-pyramid-BEC4SHLl.js → vue-ui-age-pyramid-BqsDR6uw.js} +83 -81
- package/dist/vue-ui-age-pyramid-DDPU8QV8.cjs +1 -0
- package/dist/{vue-ui-annotator-B1NZRuJJ.cjs → vue-ui-annotator-B9HxrEVE.cjs} +1 -1
- package/dist/{vue-ui-annotator-DFpv61wn.js → vue-ui-annotator-CkJsRR0r.js} +1 -1
- package/dist/{vue-ui-candlestick-AEKT8X3p.js → vue-ui-candlestick-B8eYA2g0.js} +113 -111
- package/dist/vue-ui-candlestick-DbbbJa-d.cjs +2 -0
- package/dist/{vue-ui-carousel-table-DhzVxOvp.js → vue-ui-carousel-table-BCiTg3Ok.js} +4 -4
- package/dist/{vue-ui-carousel-table-DCk2p-1k.cjs → vue-ui-carousel-table-CCWGcKb7.cjs} +1 -1
- package/dist/{vue-ui-chestnut-qqcIpMGB.js → vue-ui-chestnut-DI-N69Ad.js} +161 -159
- package/dist/vue-ui-chestnut-rsWP_sXY.cjs +6 -0
- package/dist/{vue-ui-cursor-CgSghVjL.js → vue-ui-cursor-BUzJk1oC.js} +2 -2
- package/dist/{vue-ui-cursor-CvJgJk1M.cjs → vue-ui-cursor-wY14Z-Vd.cjs} +1 -1
- package/dist/{vue-ui-dashboard-CtJdVmtu.cjs → vue-ui-dashboard-Cf8TYbAr.cjs} +1 -1
- package/dist/{vue-ui-dashboard-CYzkic0X.js → vue-ui-dashboard-CiG3kXLl.js} +2 -2
- package/dist/{vue-ui-digits-C0dMG-hR.cjs → vue-ui-digits-BBho1-xO.cjs} +1 -1
- package/dist/{vue-ui-digits-BO1hSjoq.js → vue-ui-digits-DZJI0YuX.js} +2 -2
- package/dist/{vue-ui-donut-DP-yxiw3.js → vue-ui-donut-CBG9ECp8.js} +118 -116
- package/dist/vue-ui-donut-D4WpeX9W.cjs +1 -0
- package/dist/vue-ui-donut-evolution-BVnSrr-b.cjs +1 -0
- package/dist/{vue-ui-donut-evolution-C-yDyglF.js → vue-ui-donut-evolution-BtTiBfLb.js} +102 -100
- package/dist/vue-ui-dumbbell-BQKiB9yH.cjs +9 -0
- package/dist/{vue-ui-dumbbell-D2SQ4cKV.js → vue-ui-dumbbell-DlEN2c_X.js} +88 -86
- package/dist/{vue-ui-flow-D_E9V2A1.js → vue-ui-flow-CXqGztWj.js} +65 -63
- package/dist/vue-ui-flow-DfMNmttZ.cjs +1 -0
- package/dist/vue-ui-galaxy-CGn5nkD5.cjs +1 -0
- package/dist/{vue-ui-galaxy-DqE2UiA3.js → vue-ui-galaxy-xI38Kf-S.js} +82 -80
- package/dist/{vue-ui-gauge-CFYXDw2p.js → vue-ui-gauge-BEludqYn.js} +56 -54
- package/dist/vue-ui-gauge-Bz-OSNOJ.cjs +1 -0
- package/dist/{vue-ui-gizmo-BWztIJ3j.js → vue-ui-gizmo-BB28OTr1.js} +32 -30
- package/dist/vue-ui-gizmo-CZZB7YgY.cjs +1 -0
- package/dist/vue-ui-heatmap-BtUvE7rK.cjs +1 -0
- package/dist/{vue-ui-heatmap-E1MlhSCs.js → vue-ui-heatmap-mywZXUV8.js} +99 -97
- package/dist/{vue-ui-kpi-BWDPF-9X.cjs → vue-ui-kpi-CEAGjnkj.cjs} +1 -1
- package/dist/{vue-ui-kpi-DeP0XmP7.js → vue-ui-kpi-zr721ux9.js} +3 -3
- package/dist/{vue-ui-mini-loader-Bal12IrX.js → vue-ui-mini-loader-9zyuKIpT.js} +2 -2
- package/dist/{vue-ui-mini-loader-D5e8uW_d.cjs → vue-ui-mini-loader-DBFAzGb2.cjs} +1 -1
- package/dist/{vue-ui-molecule-DHrHeQgF.js → vue-ui-molecule-Bv_ppQig.js} +77 -75
- package/dist/vue-ui-molecule-DltNL0kV.cjs +1 -0
- package/dist/{vue-ui-mood-radar-dJaJotNf.js → vue-ui-mood-radar-CIK2Xohn.js} +76 -74
- package/dist/vue-ui-mood-radar-CQkF2Rp1.cjs +1 -0
- package/dist/{vue-ui-nested-donuts--K9ygdH3.js → vue-ui-nested-donuts-f-cMx3iQ.js} +112 -110
- package/dist/vue-ui-nested-donuts-vHr23QlH.cjs +17 -0
- package/dist/vue-ui-onion-B6ZrryDW.cjs +5 -0
- package/dist/{vue-ui-onion-Bm1inM56.js → vue-ui-onion-CmUXelhy.js} +82 -80
- package/dist/vue-ui-parallel-coordinate-plot-BU0yoxD9.cjs +8 -0
- package/dist/{vue-ui-parallel-coordinate-plot-9PSGD-LR.js → vue-ui-parallel-coordinate-plot-h9dS2u_k.js} +91 -89
- package/dist/{vue-ui-quadrant-iGQbx93I.js → vue-ui-quadrant-DNT_0fTL.js} +141 -139
- package/dist/vue-ui-quadrant-DPPXilUd.cjs +1 -0
- package/dist/vue-ui-quick-chart-1gG267X0.cjs +15 -0
- package/dist/{vue-ui-quick-chart-DeEQcx6A.js → vue-ui-quick-chart-T6C0BTyw.js} +166 -164
- package/dist/{vue-ui-radar-DfnhsNQV.js → vue-ui-radar-CfCHXIYJ.js} +89 -87
- package/dist/vue-ui-radar-DpzjMFZD.cjs +1 -0
- package/dist/{vue-ui-rating-D0rgVdkT.cjs → vue-ui-rating-DYcT_LS-.cjs} +1 -1
- package/dist/{vue-ui-rating-CCesFD6e.js → vue-ui-rating-DuRLpMwk.js} +2 -2
- package/dist/vue-ui-relation-circle-BMrPtD2n.cjs +1 -0
- package/dist/{vue-ui-relation-circle-D2GXm_Fk.js → vue-ui-relation-circle-WmZMKqHL.js} +54 -52
- package/dist/{vue-ui-rings-B7_-G3JM.js → vue-ui-rings-Ce0Z_osd.js} +97 -93
- package/dist/{vue-ui-rings-CScmcQ1n.cjs → vue-ui-rings-CkYl3uce.cjs} +2 -2
- package/dist/vue-ui-scatter-Cjie2D-t.cjs +1 -0
- package/dist/{vue-ui-scatter-DdhiNjLc.js → vue-ui-scatter-DY9EpoGP.js} +132 -130
- package/dist/{vue-ui-screenshot-BrhjnTwn.cjs → vue-ui-screenshot-BCFym6go.cjs} +1 -1
- package/dist/{vue-ui-screenshot-Cpy2qbf1.js → vue-ui-screenshot-lQLJHBQ2.js} +1 -1
- package/dist/vue-ui-skeleton-Cf89QIhl.cjs +41 -0
- package/dist/{vue-ui-skeleton-D7aLznpP.js → vue-ui-skeleton-DDhwPZd_.js} +423 -388
- package/dist/{vue-ui-smiley-Cj0yi7_H.cjs → vue-ui-smiley-DMA6fgGr.cjs} +1 -1
- package/dist/{vue-ui-smiley-vcpYARLj.js → vue-ui-smiley-xxMwBT9c.js} +2 -2
- package/dist/vue-ui-spark-trend-Btj_H6fa.cjs +1 -0
- package/dist/{vue-ui-spark-trend-CFJSCQnf.js → vue-ui-spark-trend-CLHTqp94.js} +42 -40
- package/dist/{vue-ui-sparkbar-CgRdDfk6.js → vue-ui-sparkbar-Btk6snt4.js} +53 -51
- package/dist/vue-ui-sparkbar-CKrbBVKQ.cjs +1 -0
- package/dist/{vue-ui-sparkgauge-CCPMNge0.js → vue-ui-sparkgauge-DKJtFTSv.js} +31 -29
- package/dist/vue-ui-sparkgauge-DfWLtFYS.cjs +1 -0
- package/dist/{vue-ui-sparkhistogram-D5z2Wtpk.js → vue-ui-sparkhistogram-JRLlw9EX.js} +69 -67
- package/dist/vue-ui-sparkhistogram-wHJ-8zVV.cjs +1 -0
- package/dist/vue-ui-sparkline-DElVaalm.cjs +1 -0
- package/dist/{vue-ui-sparkline-KYN0oKt1.js → vue-ui-sparkline-tBF9iaNm.js} +65 -63
- package/dist/{vue-ui-sparkstackbar-7lurD9-4.js → vue-ui-sparkstackbar-BS9I8en7.js} +102 -87
- package/dist/vue-ui-sparkstackbar-tZa2IYHP.cjs +1 -0
- package/dist/{vue-ui-stackbar-CsVmAvl3.js → vue-ui-stackbar-UiX8q4yL.js} +128 -126
- package/dist/vue-ui-stackbar-rOa0atA9.cjs +6 -0
- package/dist/{vue-ui-strip-plot-B63AgKts.js → vue-ui-strip-plot-BOkfg5vB.js} +78 -76
- package/dist/vue-ui-strip-plot-hRy6QRHK.cjs +1 -0
- package/dist/{vue-ui-table-hPqdMR-m.cjs → vue-ui-table-B9dc0l0k.cjs} +1 -1
- package/dist/{vue-ui-table-G5O8K-F_.js → vue-ui-table-Dtfv71zG.js} +1 -1
- package/dist/{vue-ui-table-heatmap-t9Ngijvp.js → vue-ui-table-heatmap-BMl-sP5Q.js} +4 -4
- package/dist/{vue-ui-table-heatmap-BhVuTdSS.cjs → vue-ui-table-heatmap-DUQEHohs.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-DtjJrGve.cjs → vue-ui-table-sparkline-BVnGb-lu.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-BX4en1c-.js → vue-ui-table-sparkline-BeunspIj.js} +5 -5
- package/dist/vue-ui-thermometer-A3Xxn5Ly.cjs +1 -0
- package/dist/{vue-ui-thermometer-BWGyDQ7_.js → vue-ui-thermometer-Cb9ALBj_.js} +80 -78
- package/dist/{vue-ui-timer-8AlVLAJi.js → vue-ui-timer-2PRDq1w6.js} +62 -60
- package/dist/vue-ui-timer-DltmIdrq.cjs +64 -0
- package/dist/vue-ui-tiremarks-BTlJcW4v.cjs +1 -0
- package/dist/{vue-ui-tiremarks-DYIHGkBU.js → vue-ui-tiremarks-Bse3PMGV.js} +51 -49
- package/dist/vue-ui-treemap-Cv_mHK8H.cjs +1 -0
- package/dist/{vue-ui-treemap-mmvdTHiX.js → vue-ui-treemap-D8fjVYq0.js} +93 -91
- package/dist/{vue-ui-vertical-bar-DAKHNRoR.js → vue-ui-vertical-bar-BVldPT8k.js} +110 -108
- package/dist/vue-ui-vertical-bar-ZgJq3_CI.cjs +4 -0
- package/dist/vue-ui-waffle-BpeGEjCl.cjs +1 -0
- package/dist/{vue-ui-waffle-B-A4NYNd.js → vue-ui-waffle-wikAjwZY.js} +72 -70
- package/dist/vue-ui-wheel-BlgfdULS.cjs +1 -0
- package/dist/{vue-ui-wheel-DN9WvA6Z.js → vue-ui-wheel-D5qyBs0Y.js} +43 -41
- package/dist/{vue-ui-word-cloud-BWTyaGAT.js → vue-ui-word-cloud-Bcdl2iE-.js} +60 -58
- package/dist/vue-ui-word-cloud-sNzfl_Tq.cjs +1 -0
- package/dist/{vue-ui-xy-Dzp4qCjk.js → vue-ui-xy-CUjllUSv.js} +507 -504
- package/dist/vue-ui-xy-FHLTc7xG.cjs +3 -0
- package/dist/{vue-ui-xy-canvas-CAcTkk_r.cjs → vue-ui-xy-canvas-BJUnRVuf.cjs} +1 -1
- package/dist/{vue-ui-xy-canvas-9NPbm7dE.js → vue-ui-xy-canvas-BkOlPU8e.js} +10 -10
- package/package.json +1 -1
- package/dist/vue-ui-3d-bar-rOT9iPsm.cjs +0 -19
- package/dist/vue-ui-age-pyramid-HElID9Ax.cjs +0 -1
- package/dist/vue-ui-candlestick-p1s0Av21.cjs +0 -2
- package/dist/vue-ui-chestnut-oFfB3fBF.cjs +0 -6
- package/dist/vue-ui-donut-Dnnoj71c.cjs +0 -1
- package/dist/vue-ui-donut-evolution-vBUH5VVx.cjs +0 -1
- package/dist/vue-ui-dumbbell-BUA_uSse.cjs +0 -9
- package/dist/vue-ui-flow-B-AFlw-n.cjs +0 -1
- package/dist/vue-ui-galaxy-CbL5nONj.cjs +0 -1
- package/dist/vue-ui-gauge-BUV_hQND.cjs +0 -1
- package/dist/vue-ui-gizmo-B-LxuvDh.cjs +0 -1
- package/dist/vue-ui-heatmap-DW5StHKM.cjs +0 -1
- package/dist/vue-ui-molecule-DHBId4h4.cjs +0 -1
- package/dist/vue-ui-mood-radar-DSXB9l99.cjs +0 -1
- package/dist/vue-ui-nested-donuts-CEX2cvop.cjs +0 -17
- package/dist/vue-ui-onion-Iekdjs8b.cjs +0 -5
- package/dist/vue-ui-parallel-coordinate-plot-OlFoYL_3.cjs +0 -8
- package/dist/vue-ui-quadrant-CgJeo2zZ.cjs +0 -1
- package/dist/vue-ui-quick-chart-Du8lDPmh.cjs +0 -15
- package/dist/vue-ui-radar-BYk9DWnM.cjs +0 -1
- package/dist/vue-ui-relation-circle-8eoBav4O.cjs +0 -1
- package/dist/vue-ui-scatter-BnBI8qdt.cjs +0 -1
- package/dist/vue-ui-skeleton-pDeQ3NcD.cjs +0 -41
- package/dist/vue-ui-spark-trend-BW8k0jDd.cjs +0 -1
- package/dist/vue-ui-sparkbar-BbJHfAQj.cjs +0 -1
- package/dist/vue-ui-sparkgauge-BESRB8_4.cjs +0 -1
- package/dist/vue-ui-sparkhistogram-BYnSfLdb.cjs +0 -1
- package/dist/vue-ui-sparkline-D5WUy4p5.cjs +0 -1
- package/dist/vue-ui-sparkstackbar-Dy-IfQ3q.cjs +0 -1
- package/dist/vue-ui-stackbar-Ch-fmE9l.cjs +0 -6
- package/dist/vue-ui-strip-plot-BLRl-tF6.cjs +0 -1
- package/dist/vue-ui-thermometer-B07RI9fZ.cjs +0 -1
- package/dist/vue-ui-timer-CXrENAVg.cjs +0 -64
- package/dist/vue-ui-tiremarks-C43c4_IR.cjs +0 -1
- package/dist/vue-ui-treemap-BN90ISQv.cjs +0 -1
- package/dist/vue-ui-vertical-bar-BRDO_Rsu.cjs +0 -4
- package/dist/vue-ui-waffle-BN_yZEtJ.cjs +0 -1
- package/dist/vue-ui-wheel-50_zeiIW.cjs +0 -1
- package/dist/vue-ui-word-cloud-BVoFIb_q.cjs +0 -1
- package/dist/vue-ui-xy-CJHHesUD.cjs +0 -3
|
@@ -1,12 +1,16 @@
|
|
|
1
|
-
import { computed as f, ref as k, watch as
|
|
2
|
-
import { u as
|
|
3
|
-
import { u as
|
|
4
|
-
import
|
|
5
|
-
import { _ as
|
|
6
|
-
|
|
1
|
+
import { computed as f, ref as k, watch as I, onMounted as X, openBlock as n, createElementBlock as r, normalizeStyle as g, createElementVNode as d, toDisplayString as _, createCommentVNode as y, unref as b, createVNode as W, Fragment as D, renderList as N, normalizeClass as P, createBlock as J } from "vue";
|
|
2
|
+
import { u as K, c as U, t as Q, a as R, p as i, d as C, b as Y, o as Z, e as V, g as ee, f as O, X as te, s as le, w as ae, i as oe } from "./index-mBy4elhB.js";
|
|
3
|
+
import { u as G } from "./useNestedProp-BrIRtQj1.js";
|
|
4
|
+
import se from "./vue-ui-skeleton-DDhwPZd_.js";
|
|
5
|
+
import { _ as ne } from "./PackageVersion-D9PU8glB.js";
|
|
6
|
+
import { _ as re } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
|
+
const ue = ["xmlns", "viewBox"], ie = ["id"], ce = ["stop-color"], de = ["stop-color"], ve = ["stop-color"], ge = {
|
|
7
8
|
id: "stackPill",
|
|
8
9
|
clipPathUnits: "objectBoundingBox"
|
|
9
|
-
},
|
|
10
|
+
}, pe = ["fill"], he = {
|
|
11
|
+
key: 0,
|
|
12
|
+
"clip-path": "url(#stackPill)"
|
|
13
|
+
}, fe = ["height", "width", "fill"], ye = ["onClick", "x", "width", "height", "fill", "stroke"], me = ["width", "height", "rx"], ke = ["onClick"], _e = { style: { display: "flex", "flex-direction": "row", "align-items": "center", gap: "4px", "justify-content": "center" } }, be = ["height", "width"], xe = ["fill"], we = {
|
|
10
14
|
__name: "vue-ui-sparkstackbar",
|
|
11
15
|
props: {
|
|
12
16
|
config: {
|
|
@@ -23,33 +27,33 @@ const ne = ["xmlns", "viewBox"], re = ["id"], ue = ["stop-color"], ie = ["stop-c
|
|
|
23
27
|
}
|
|
24
28
|
},
|
|
25
29
|
emits: ["selectDatapoint"],
|
|
26
|
-
setup(
|
|
27
|
-
const
|
|
30
|
+
setup(M, { emit: T }) {
|
|
31
|
+
const u = M, { vue_ui_sparkstackbar: q } = K(), z = f(() => !!u.dataset && u.dataset.length), A = k(U()), e = f({
|
|
28
32
|
get: () => L(),
|
|
29
33
|
set: (t) => t
|
|
30
34
|
});
|
|
31
35
|
function L() {
|
|
32
|
-
const t =
|
|
33
|
-
userConfig:
|
|
34
|
-
defaultConfig:
|
|
36
|
+
const t = G({
|
|
37
|
+
userConfig: u.config,
|
|
38
|
+
defaultConfig: q
|
|
35
39
|
});
|
|
36
40
|
return t.theme ? {
|
|
37
|
-
...
|
|
38
|
-
userConfig:
|
|
41
|
+
...G({
|
|
42
|
+
userConfig: Q.vue_ui_sparkstackbar[t.theme] || u.config,
|
|
39
43
|
defaultConfig: t
|
|
40
44
|
}),
|
|
41
|
-
customPalette:
|
|
45
|
+
customPalette: R[t.theme] || i
|
|
42
46
|
} : t;
|
|
43
47
|
}
|
|
44
|
-
|
|
48
|
+
I(() => u.config, (t) => {
|
|
45
49
|
e.value = L(), B();
|
|
46
|
-
}, { deep: !0 }),
|
|
47
|
-
|
|
50
|
+
}, { deep: !0 }), I(() => u.dataset, (t) => {
|
|
51
|
+
m.value = u.dataset.map((a, l) => ({
|
|
48
52
|
...a,
|
|
49
53
|
color: a.color ? C(a.color) : x.value[l] || i[l] || i[l % i.length]
|
|
50
54
|
}));
|
|
51
55
|
}, { deep: !0 });
|
|
52
|
-
const x = f(() =>
|
|
56
|
+
const x = f(() => Y(e.value.customPalette)), m = k(u.dataset.map((t, a) => ({
|
|
53
57
|
...t,
|
|
54
58
|
value: e.value.style.animation.show ? 0 : t.value || 0,
|
|
55
59
|
color: t.color ? C(t.color) : x.value[a] || i[a] || i[a % i.length]
|
|
@@ -57,32 +61,32 @@ const ne = ["xmlns", "viewBox"], re = ["id"], ue = ["stop-color"], ie = ["stop-c
|
|
|
57
61
|
X(() => {
|
|
58
62
|
if (B(), e.value.style.animation.show) {
|
|
59
63
|
let h = function() {
|
|
60
|
-
o += l / t, o < l ? (
|
|
64
|
+
o += l / t, o < l ? (m.value = m.value.map((s, c) => ({
|
|
61
65
|
...s,
|
|
62
|
-
value: s.value += a[
|
|
63
|
-
color: s.color ? C(s.color) : x.value[
|
|
64
|
-
})), requestAnimationFrame(h)) : (w.value = !1,
|
|
66
|
+
value: s.value += a[c],
|
|
67
|
+
color: s.color ? C(s.color) : x.value[c] || i[c] || i[c % i.length]
|
|
68
|
+
})), requestAnimationFrame(h)) : (w.value = !1, m.value = u.dataset.map((s, c) => ({
|
|
65
69
|
...s,
|
|
66
70
|
value: s.value || 0,
|
|
67
|
-
color: s.color ? C(s.color) : x.value[
|
|
68
|
-
id:
|
|
71
|
+
color: s.color ? C(s.color) : x.value[c] || i[c] || i[c % i.length],
|
|
72
|
+
id: U()
|
|
69
73
|
})));
|
|
70
74
|
};
|
|
71
|
-
const t = e.value.style.animation.animationFrames, a =
|
|
75
|
+
const t = e.value.style.animation.animationFrames, a = u.dataset.map((s, c) => s.value / t), l = u.dataset.map((s) => s.value || 0).reduce((s, c) => s + c, 0);
|
|
72
76
|
let o = 0;
|
|
73
77
|
w.value = !0, h();
|
|
74
78
|
}
|
|
75
79
|
});
|
|
76
80
|
function B() {
|
|
77
|
-
|
|
81
|
+
Z(u.dataset) ? V({
|
|
78
82
|
componentName: "VueUiSparkStackbar",
|
|
79
83
|
type: "dataset"
|
|
80
|
-
}) :
|
|
81
|
-
|
|
84
|
+
}) : u.dataset.forEach((t, a) => {
|
|
85
|
+
ee({
|
|
82
86
|
datasetObject: t,
|
|
83
87
|
requiredAttributes: ["name", "value"]
|
|
84
88
|
}).forEach((l) => {
|
|
85
|
-
|
|
89
|
+
V({
|
|
86
90
|
componentName: "VueUiSparkStackbar",
|
|
87
91
|
type: "datasetSerieAttribute",
|
|
88
92
|
property: l,
|
|
@@ -91,25 +95,25 @@ const ne = ["xmlns", "viewBox"], re = ["id"], ue = ["stop-color"], ie = ["stop-c
|
|
|
91
95
|
});
|
|
92
96
|
});
|
|
93
97
|
}
|
|
94
|
-
const
|
|
98
|
+
const p = k({
|
|
95
99
|
width: 500,
|
|
96
100
|
height: 16
|
|
97
|
-
}), v = k([]),
|
|
98
|
-
const l = t.value || 0, o = l /
|
|
101
|
+
}), v = k([]), F = f(() => u.dataset.map((t) => t.value || 0).filter((t, a) => !v.value.includes(a)).reduce((t, a) => t + a, 0)), j = f(() => m.value.map((t, a) => {
|
|
102
|
+
const l = t.value || 0, o = l / F.value, h = isNaN(o) ? 0 : o, s = h * p.value.width;
|
|
99
103
|
return {
|
|
100
104
|
...t,
|
|
101
105
|
value: l,
|
|
102
106
|
proportion: h,
|
|
103
|
-
width: s
|
|
107
|
+
width: s,
|
|
104
108
|
proportionLabel: O({
|
|
105
109
|
v: h * 100,
|
|
106
110
|
s: "%",
|
|
107
111
|
r: e.value.style.legend.percentage.rounding
|
|
108
112
|
})
|
|
109
113
|
};
|
|
110
|
-
})), $ = f(() =>
|
|
114
|
+
})), $ = f(() => j.value.filter((t, a) => !v.value.includes(a)));
|
|
111
115
|
function H(t) {
|
|
112
|
-
v.value.includes(t) ? v.value = v.value.filter((a) => a !== t) : v.value.length <
|
|
116
|
+
v.value.includes(t) ? v.value = v.value.filter((a) => a !== t) : v.value.length < m.value.length - 1 && v.value.push(t);
|
|
113
117
|
}
|
|
114
118
|
const S = f(() => {
|
|
115
119
|
let t = 0;
|
|
@@ -121,51 +125,52 @@ const ne = ["xmlns", "viewBox"], re = ["id"], ue = ["stop-color"], ie = ["stop-c
|
|
|
121
125
|
}), t += $.value[l].width;
|
|
122
126
|
return a;
|
|
123
127
|
});
|
|
124
|
-
function
|
|
125
|
-
|
|
128
|
+
function E(t, a) {
|
|
129
|
+
T("selectDatapoint", { datapoint: t, index: a });
|
|
126
130
|
}
|
|
127
|
-
return (t, a) => (n(),
|
|
131
|
+
return (t, a) => (n(), r("div", {
|
|
128
132
|
style: g(`width:100%; background:${e.value.style.backgroundColor}`)
|
|
129
133
|
}, [
|
|
130
|
-
e.value.style.title.text ? (n(),
|
|
134
|
+
e.value.style.title.text ? (n(), r("div", {
|
|
131
135
|
key: 0,
|
|
132
136
|
style: g(`width:calc(100% - 12px);background:transparent;margin:0 auto;margin:${e.value.style.title.margin};padding: 0 6px;text-align:${e.value.style.title.textAlign}`)
|
|
133
137
|
}, [
|
|
134
|
-
|
|
138
|
+
d("div", {
|
|
135
139
|
style: g(`font-size:${e.value.style.title.fontSize}px;color:${e.value.style.title.color};font-weight:${e.value.style.title.bold ? "bold" : "normal"}`)
|
|
136
140
|
}, _(e.value.style.title.text), 5),
|
|
137
|
-
e.value.style.title.subtitle.text ? (n(),
|
|
141
|
+
e.value.style.title.subtitle.text ? (n(), r("div", {
|
|
138
142
|
key: 0,
|
|
139
143
|
style: g(`font-size:${e.value.style.title.subtitle.fontSize}px;color:${e.value.style.title.subtitle.color};font-weight:${e.value.style.title.subtitle.bold ? "bold" : "normal"}`)
|
|
140
144
|
}, _(e.value.style.title.subtitle.text), 5)) : y("", !0)
|
|
141
145
|
], 4)) : y("", !0),
|
|
142
|
-
z.value ? (n(),
|
|
146
|
+
z.value ? (n(), r("svg", {
|
|
143
147
|
key: 1,
|
|
144
|
-
xmlns: b(
|
|
148
|
+
xmlns: b(te),
|
|
145
149
|
width: "100%",
|
|
146
|
-
viewBox: `0 0 ${
|
|
150
|
+
viewBox: `0 0 ${p.value.width} ${p.value.height}`
|
|
147
151
|
}, [
|
|
148
|
-
|
|
149
|
-
|
|
152
|
+
W(ne),
|
|
153
|
+
d("defs", null, [
|
|
154
|
+
(n(!0), r(D, null, N(S.value, (l, o) => (n(), r("linearGradient", {
|
|
150
155
|
key: `stack_gradient_${o}`,
|
|
151
156
|
gradientTransform: "rotate(90)",
|
|
152
157
|
id: `stack_gradient_${o}_${A.value}`
|
|
153
158
|
}, [
|
|
154
|
-
|
|
159
|
+
d("stop", {
|
|
155
160
|
offset: "0%",
|
|
156
161
|
"stop-color": l.color
|
|
157
|
-
}, null, 8,
|
|
158
|
-
|
|
162
|
+
}, null, 8, ce),
|
|
163
|
+
d("stop", {
|
|
159
164
|
offset: "50%",
|
|
160
|
-
"stop-color": b(
|
|
161
|
-
}, null, 8,
|
|
162
|
-
|
|
165
|
+
"stop-color": b(le)(b(ae)(l.color, 0.05), 100 - e.value.style.bar.gradient.intensity)
|
|
166
|
+
}, null, 8, de),
|
|
167
|
+
d("stop", {
|
|
163
168
|
offset: "100%",
|
|
164
169
|
"stop-color": l.color
|
|
165
|
-
}, null, 8,
|
|
166
|
-
], 8,
|
|
167
|
-
|
|
168
|
-
|
|
170
|
+
}, null, 8, ve)
|
|
171
|
+
], 8, ie))), 128)),
|
|
172
|
+
d("clipPath", ge, [
|
|
173
|
+
d("rect", {
|
|
169
174
|
x: "0.005",
|
|
170
175
|
y: "-2",
|
|
171
176
|
width: "0.99",
|
|
@@ -173,33 +178,43 @@ const ne = ["xmlns", "viewBox"], re = ["id"], ue = ["stop-color"], ie = ["stop-c
|
|
|
173
178
|
rx: "3",
|
|
174
179
|
ry: "3",
|
|
175
180
|
fill: e.value.style.backgroundColor
|
|
176
|
-
}, null, 8,
|
|
181
|
+
}, null, 8, pe)
|
|
177
182
|
])
|
|
178
183
|
]),
|
|
179
|
-
|
|
180
|
-
|
|
184
|
+
F.value > 0 ? (n(), r("g", he, [
|
|
185
|
+
d("rect", {
|
|
181
186
|
x: 0,
|
|
182
187
|
y: 0,
|
|
183
|
-
height:
|
|
188
|
+
height: p.value.height,
|
|
184
189
|
width: S.value.map((l) => l.width).reduce((l, o) => l + o, 0),
|
|
185
190
|
fill: e.value.style.bar.gradient.underlayerColor,
|
|
186
|
-
class:
|
|
187
|
-
}, null, 10,
|
|
188
|
-
(n(!0),
|
|
191
|
+
class: P({ animated: !w.value })
|
|
192
|
+
}, null, 10, fe),
|
|
193
|
+
(n(!0), r(D, null, N(S.value, (l, o) => (n(), r("rect", {
|
|
189
194
|
key: `stack_${o}`,
|
|
190
|
-
onClick: () =>
|
|
195
|
+
onClick: () => E(l, o),
|
|
191
196
|
x: l.start,
|
|
192
197
|
y: 0,
|
|
193
198
|
width: l.width,
|
|
194
|
-
height:
|
|
199
|
+
height: p.value.height,
|
|
195
200
|
fill: e.value.style.bar.gradient.show ? `url(#stack_gradient_${o}_${A.value})` : l.color,
|
|
196
201
|
stroke: e.value.style.backgroundColor,
|
|
197
202
|
"stroke-linecap": "round",
|
|
198
|
-
class:
|
|
199
|
-
}, null, 10,
|
|
200
|
-
])
|
|
201
|
-
|
|
202
|
-
|
|
203
|
+
class: P({ animated: !w.value })
|
|
204
|
+
}, null, 10, ye))), 128))
|
|
205
|
+
])) : (n(), r("rect", {
|
|
206
|
+
key: 1,
|
|
207
|
+
x: 2,
|
|
208
|
+
y: 1,
|
|
209
|
+
width: p.value.width - 4,
|
|
210
|
+
height: p.value.height - 2,
|
|
211
|
+
stroke: "#CCCCCC",
|
|
212
|
+
"stroke-width": "2",
|
|
213
|
+
fill: "transparent",
|
|
214
|
+
rx: (p.value.height - 4) / 2
|
|
215
|
+
}, null, 8, me))
|
|
216
|
+
], 8, ue)) : y("", !0),
|
|
217
|
+
z.value ? y("", !0) : (n(), J(se, {
|
|
203
218
|
key: 2,
|
|
204
219
|
config: {
|
|
205
220
|
type: "sparkStackbar",
|
|
@@ -211,42 +226,42 @@ const ne = ["xmlns", "viewBox"], re = ["id"], ue = ["stop-color"], ie = ["stop-c
|
|
|
211
226
|
}
|
|
212
227
|
}
|
|
213
228
|
}, null, 8, ["config"])),
|
|
214
|
-
e.value.style.legend.show ? (n(),
|
|
229
|
+
e.value.style.legend.show ? (n(), r("div", {
|
|
215
230
|
key: 3,
|
|
216
231
|
style: g(`background:transparent;margin:0 auto;margin:${e.value.style.legend.margin};justify-content:${e.value.style.legend.textAlign === "left" ? "flex-start" : e.value.style.legend.textAlign === "right" ? "flex-end" : "center"}`),
|
|
217
232
|
class: "vue-ui-sparkstackbar-legend"
|
|
218
233
|
}, [
|
|
219
|
-
(n(!0),
|
|
234
|
+
(n(!0), r(D, null, N(j.value, (l, o) => (n(), r("div", {
|
|
220
235
|
style: g(`font-size:${e.value.style.legend.fontSize}px;`),
|
|
221
|
-
class:
|
|
236
|
+
class: P({ "vue-ui-sparkstackbar-legend-item": !0, "vue-ui-sparkstackbar-legend-item-unselected": v.value.includes(o) }),
|
|
222
237
|
onClick: (h) => {
|
|
223
|
-
H(o),
|
|
238
|
+
H(o), E(l, o);
|
|
224
239
|
}
|
|
225
240
|
}, [
|
|
226
|
-
|
|
227
|
-
(n(),
|
|
241
|
+
d("div", _e, [
|
|
242
|
+
(n(), r("svg", {
|
|
228
243
|
height: `${e.value.style.legend.fontSize}px`,
|
|
229
244
|
width: `${e.value.style.legend.fontSize}px`,
|
|
230
245
|
viewBox: "0 0 10 10"
|
|
231
246
|
}, [
|
|
232
|
-
|
|
247
|
+
d("circle", {
|
|
233
248
|
cx: 5,
|
|
234
249
|
cy: 5,
|
|
235
250
|
r: 5,
|
|
236
251
|
fill: l.color
|
|
237
|
-
}, null, 8,
|
|
238
|
-
], 8,
|
|
239
|
-
|
|
252
|
+
}, null, 8, xe)
|
|
253
|
+
], 8, be)),
|
|
254
|
+
d("span", {
|
|
240
255
|
style: g(`color:${e.value.style.legend.name.color}; font-weight:${e.value.style.legend.name.bold ? "bold" : "normal"}`)
|
|
241
256
|
}, _(l.name), 5),
|
|
242
|
-
e.value.style.legend.percentage.show ? (n(),
|
|
257
|
+
e.value.style.legend.percentage.show ? (n(), r("span", {
|
|
243
258
|
key: 0,
|
|
244
259
|
style: g(`font-weight:${e.value.style.legend.percentage.bold ? "bold" : "normal"};color:${e.value.style.legend.percentage.color}`)
|
|
245
260
|
}, _(v.value.includes(o) ? " - " : l.proportionLabel), 5)) : y("", !0),
|
|
246
|
-
e.value.style.legend.value.show ? (n(),
|
|
261
|
+
e.value.style.legend.value.show ? (n(), r("span", {
|
|
247
262
|
key: 1,
|
|
248
263
|
style: g(`font-weight:${e.value.style.legend.value.bold ? "bold" : "normal"};color:${e.value.style.legend.value.color}`)
|
|
249
|
-
}, " (" + _(b(
|
|
264
|
+
}, " (" + _(b(oe)(
|
|
250
265
|
e.value.style.legend.value.formatter,
|
|
251
266
|
l.value,
|
|
252
267
|
b(O)({
|
|
@@ -258,11 +273,11 @@ const ne = ["xmlns", "viewBox"], re = ["id"], ue = ["stop-color"], ie = ["stop-c
|
|
|
258
273
|
{ datapoint: l, seriesIndex: o }
|
|
259
274
|
)) + ") ", 5)) : y("", !0)
|
|
260
275
|
])
|
|
261
|
-
], 14,
|
|
276
|
+
], 14, ke))), 256))
|
|
262
277
|
], 4)) : y("", !0)
|
|
263
278
|
], 4));
|
|
264
279
|
}
|
|
265
|
-
},
|
|
280
|
+
}, ze = /* @__PURE__ */ re(we, [["__scopeId", "data-v-cd0ed8a9"]]);
|
|
266
281
|
export {
|
|
267
|
-
|
|
282
|
+
ze as default
|
|
268
283
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("./index-BhH89oF0.cjs"),B=require("./useNestedProp-m8IH8hWW.cjs"),V=require("./vue-ui-skeleton-Cf89QIhl.cjs"),z=require("./PackageVersion-LdLhc8hQ.cjs"),D=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),P=["xmlns","viewBox"],L=["id"],A=["stop-color"],F=["stop-color"],q=["stop-color"],U={id:"stackPill",clipPathUnits:"objectBoundingBox"},j=["fill"],T={key:0,"clip-path":"url(#stackPill)"},H=["height","width","fill"],I=["onClick","x","width","height","fill","stroke"],O=["width","height","rx"],M=["onClick"],G={style:{display:"flex","flex-direction":"row","align-items":"center",gap:"4px","justify-content":"center"}},W=["height","width"],X=["fill"],J={__name:"vue-ui-sparkstackbar",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectDatapoint"],setup(S,{emit:E}){const u=S,{vue_ui_sparkstackbar:N}=o.useConfig(),f=e.computed(()=>!!u.dataset&&u.dataset.length),k=e.ref(o.createUid()),t=e.computed({get:()=>_(),set:l=>l});function _(){const l=B.useNestedProp({userConfig:u.config,defaultConfig:N});return l.theme?{...B.useNestedProp({userConfig:o.themes.vue_ui_sparkstackbar[l.theme]||u.config,defaultConfig:l}),customPalette:o.themePalettes[l.theme]||o.palette}:l}e.watch(()=>u.config,l=>{t.value=_(),b()},{deep:!0}),e.watch(()=>u.dataset,l=>{v.value=u.dataset.map((n,a)=>({...n,color:n.color?o.convertColorToHex(n.color):g.value[a]||o.palette[a]||o.palette[a%o.palette.length]}))},{deep:!0});const g=e.computed(()=>o.convertCustomPalette(t.value.customPalette)),v=e.ref(u.dataset.map((l,n)=>({...l,value:t.value.style.animation.show?0:l.value||0,color:l.color?o.convertColorToHex(l.color):g.value[n]||o.palette[n]||o.palette[n%o.palette.length]}))),m=e.ref(!0);e.onMounted(()=>{if(b(),t.value.style.animation.show){let p=function(){r+=a/l,r<a?(v.value=v.value.map((s,i)=>({...s,value:s.value+=n[i],color:s.color?o.convertColorToHex(s.color):g.value[i]||o.palette[i]||o.palette[i%o.palette.length]})),requestAnimationFrame(p)):(m.value=!1,v.value=u.dataset.map((s,i)=>({...s,value:s.value||0,color:s.color?o.convertColorToHex(s.color):g.value[i]||o.palette[i]||o.palette[i%o.palette.length],id:o.createUid()})))};const l=t.value.style.animation.animationFrames,n=u.dataset.map((s,i)=>s.value/l),a=u.dataset.map(s=>s.value||0).reduce((s,i)=>s+i,0);let r=0;m.value=!0,p()}});function b(){o.objectIsEmpty(u.dataset)?o.error({componentName:"VueUiSparkStackbar",type:"dataset"}):u.dataset.forEach((l,n)=>{o.getMissingDatasetAttributes({datasetObject:l,requiredAttributes:["name","value"]}).forEach(a=>{o.error({componentName:"VueUiSparkStackbar",type:"datasetSerieAttribute",property:a,index:n})})})}const d=e.ref({width:500,height:16}),c=e.ref([]),C=e.computed(()=>u.dataset.map(l=>l.value||0).filter((l,n)=>!c.value.includes(n)).reduce((l,n)=>l+n,0)),x=e.computed(()=>v.value.map((l,n)=>{const a=l.value||0,r=a/C.value,p=isNaN(r)?0:r,s=p*d.value.width;return{...l,value:a,proportion:p,width:s,proportionLabel:o.dataLabel({v:p*100,s:"%",r:t.value.style.legend.percentage.rounding})}})),h=e.computed(()=>x.value.filter((l,n)=>!c.value.includes(n)));function $(l){c.value.includes(l)?c.value=c.value.filter(n=>n!==l):c.value.length<v.value.length-1&&c.value.push(l)}const y=e.computed(()=>{let l=0;const n=[];for(let a=0;a<h.value.length;a+=1)n.push({...h.value[a],start:l}),l+=h.value[a].width;return n});function w(l,n){E("selectDatapoint",{datapoint:l,index:n})}return(l,n)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle(`width:100%; background:${t.value.style.backgroundColor}`)},[t.value.style.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`width:calc(100% - 12px);background:transparent;margin:0 auto;margin:${t.value.style.title.margin};padding: 0 6px;text-align:${t.value.style.title.textAlign}`)},[e.createElementVNode("div",{style:e.normalizeStyle(`font-size:${t.value.style.title.fontSize}px;color:${t.value.style.title.color};font-weight:${t.value.style.title.bold?"bold":"normal"}`)},e.toDisplayString(t.value.style.title.text),5),t.value.style.title.subtitle.text?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`font-size:${t.value.style.title.subtitle.fontSize}px;color:${t.value.style.title.subtitle.color};font-weight:${t.value.style.title.subtitle.bold?"bold":"normal"}`)},e.toDisplayString(t.value.style.title.subtitle.text),5)):e.createCommentVNode("",!0)],4)):e.createCommentVNode("",!0),f.value?(e.openBlock(),e.createElementBlock("svg",{key:1,xmlns:e.unref(o.XMLNS),width:"100%",viewBox:`0 0 ${d.value.width} ${d.value.height}`},[e.createVNode(z._sfc_main),e.createElementVNode("defs",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value,(a,r)=>(e.openBlock(),e.createElementBlock("linearGradient",{key:`stack_gradient_${r}`,gradientTransform:"rotate(90)",id:`stack_gradient_${r}_${k.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":a.color},null,8,A),e.createElementVNode("stop",{offset:"50%","stop-color":e.unref(o.setOpacity)(e.unref(o.shiftHue)(a.color,.05),100-t.value.style.bar.gradient.intensity)},null,8,F),e.createElementVNode("stop",{offset:"100%","stop-color":a.color},null,8,q)],8,L))),128)),e.createElementVNode("clipPath",U,[e.createElementVNode("rect",{x:"0.005",y:"-2",width:"0.99",height:"5",rx:"3",ry:"3",fill:t.value.style.backgroundColor},null,8,j)])]),C.value>0?(e.openBlock(),e.createElementBlock("g",T,[e.createElementVNode("rect",{x:0,y:0,height:d.value.height,width:y.value.map(a=>a.width).reduce((a,r)=>a+r,0),fill:t.value.style.bar.gradient.underlayerColor,class:e.normalizeClass({animated:!m.value})},null,10,H),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value,(a,r)=>(e.openBlock(),e.createElementBlock("rect",{key:`stack_${r}`,onClick:()=>w(a,r),x:a.start,y:0,width:a.width,height:d.value.height,fill:t.value.style.bar.gradient.show?`url(#stack_gradient_${r}_${k.value})`:a.color,stroke:t.value.style.backgroundColor,"stroke-linecap":"round",class:e.normalizeClass({animated:!m.value})},null,10,I))),128))])):(e.openBlock(),e.createElementBlock("rect",{key:1,x:2,y:1,width:d.value.width-4,height:d.value.height-2,stroke:"#CCCCCC","stroke-width":"2",fill:"transparent",rx:(d.value.height-4)/2},null,8,O))],8,P)):e.createCommentVNode("",!0),f.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(V.default,{key:2,config:{type:"sparkStackbar",style:{backgroundColor:t.value.style.backgroundColor,sparkStackbar:{color:"#CCCCCC"}}}},null,8,["config"])),t.value.style.legend.show?(e.openBlock(),e.createElementBlock("div",{key:3,style:e.normalizeStyle(`background:transparent;margin:0 auto;margin:${t.value.style.legend.margin};justify-content:${t.value.style.legend.textAlign==="left"?"flex-start":t.value.style.legend.textAlign==="right"?"flex-end":"center"}`),class:"vue-ui-sparkstackbar-legend"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,(a,r)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle(`font-size:${t.value.style.legend.fontSize}px;`),class:e.normalizeClass({"vue-ui-sparkstackbar-legend-item":!0,"vue-ui-sparkstackbar-legend-item-unselected":c.value.includes(r)}),onClick:p=>{$(r),w(a,r)}},[e.createElementVNode("div",G,[(e.openBlock(),e.createElementBlock("svg",{height:`${t.value.style.legend.fontSize}px`,width:`${t.value.style.legend.fontSize}px`,viewBox:"0 0 10 10"},[e.createElementVNode("circle",{cx:5,cy:5,r:5,fill:a.color},null,8,X)],8,W)),e.createElementVNode("span",{style:e.normalizeStyle(`color:${t.value.style.legend.name.color}; font-weight:${t.value.style.legend.name.bold?"bold":"normal"}`)},e.toDisplayString(a.name),5),t.value.style.legend.percentage.show?(e.openBlock(),e.createElementBlock("span",{key:0,style:e.normalizeStyle(`font-weight:${t.value.style.legend.percentage.bold?"bold":"normal"};color:${t.value.style.legend.percentage.color}`)},e.toDisplayString(c.value.includes(r)?" - ":a.proportionLabel),5)):e.createCommentVNode("",!0),t.value.style.legend.value.show?(e.openBlock(),e.createElementBlock("span",{key:1,style:e.normalizeStyle(`font-weight:${t.value.style.legend.value.bold?"bold":"normal"};color:${t.value.style.legend.value.color}`)}," ("+e.toDisplayString(e.unref(o.applyDataLabel)(t.value.style.legend.value.formatter,a.value,e.unref(o.dataLabel)({p:t.value.style.legend.value.prefix,v:a.value,s:t.value.style.legend.value.suffix,r:t.value.style.legend.value.rounding}),{datapoint:a,seriesIndex:r}))+") ",5)):e.createCommentVNode("",!0)])],14,M))),256))],4)):e.createCommentVNode("",!0)],4))}},K=D._export_sfc(J,[["__scopeId","data-v-cd0ed8a9"]]);exports.default=K;
|