vue-data-ui 2.4.1 → 2.4.3
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/README.md +44 -44
- package/dist/{Arrow-BIs_9yK8.js → Arrow-C7lNL7sY.js} +1 -1
- package/dist/{Arrow-DpMf3yPs.cjs → Arrow-Dz6AomGr.cjs} +1 -1
- package/dist/{BaseIcon-CXDdkPfN.js → BaseIcon-BbvG1AlW.js} +7 -4
- package/dist/BaseIcon-uALK38Ov.cjs +1 -0
- package/dist/{DataTable-BTgMVOwp.cjs → DataTable-DTzynbND.cjs} +1 -1
- package/dist/{DataTable-DL2agEJ3.js → DataTable-DYqC2pqu.js} +2 -2
- package/dist/{Legend-Dj9KiaLv.cjs → Legend-Cgw4lO2O.cjs} +1 -1
- package/dist/{Legend-DXLiSLHd.js → Legend-DNgTCgEK.js} +1 -1
- package/dist/{PackageVersion-D4D0WicU.cjs → PackageVersion-DwI-KhXH.cjs} +1 -1
- package/dist/{PackageVersion-DtnhR89q.js → PackageVersion-VkaUzgmt.js} +1 -1
- package/dist/PenAndPaper-CDFVOo7X.cjs +1 -0
- package/dist/PenAndPaper-DAZYA8Ew.js +269 -0
- package/dist/{Shape-CO_Ak9Zm.js → Shape-Bwon0l0g.js} +1 -1
- package/dist/{Shape-7EC2UKDK.cjs → Shape-D2Dpshg1.cjs} +1 -1
- package/dist/{Slicer-BZfUZr1J.js → Slicer-TfpN2Cr4.js} +3 -3
- package/dist/{Slicer-CLAVjSQP.cjs → Slicer-uSjfNJjG.cjs} +1 -1
- package/dist/{Title-C-lm3Mkl.cjs → Title-0Tp4hZ4u.cjs} +1 -1
- package/dist/{Title-DYNLqCCT.js → Title-C5pIfQAz.js} +1 -1
- package/dist/{Tooltip-t-3mVhcz.cjs → Tooltip-9Tp2Yrd1.cjs} +1 -1
- package/dist/{Tooltip-CICAYyQj.js → Tooltip-Cz24YLfw.js} +1 -1
- package/dist/{index-DDXisDKy.js → index-Bya_q1J-.js} +883 -842
- package/dist/index-eFox7weK.cjs +9 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +22 -17
- package/dist/types/vue-data-ui.d.ts +22 -17
- package/dist/{useNestedProp-S1UXxUgm.js → useNestedProp-B33hazbH.js} +1 -1
- package/dist/{useNestedProp-CC9zGr7C.cjs → useNestedProp-BkgEhTQY.cjs} +1 -1
- package/dist/usePrinter-CSRFnDBU.cjs +1 -0
- package/dist/{usePrinter-8ofTb2MJ.js → usePrinter-CiHd1FwD.js} +230 -185
- package/dist/useResponsive-BY8tgM1n.js +188 -0
- package/dist/useResponsive-CodiGUOE.cjs +1 -0
- package/dist/vue-data-ui-BTtxyUc3.cjs +9 -0
- package/dist/vue-data-ui-Bduq4f2p.js +261 -0
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/vue-ui-3d-bar-B-P7PMHs.cjs +19 -0
- package/dist/{vue-ui-3d-bar-DcF1nyGW.js → vue-ui-3d-bar-BUEq_VdY.js} +421 -390
- package/dist/{vue-ui-accordion-D_1fE5EF.js → vue-ui-accordion-DfUfL2dI.js} +3 -3
- package/dist/{vue-ui-accordion-Cc9958th.cjs → vue-ui-accordion-TEMpM1hO.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-Oe_yHDL0.js → vue-ui-age-pyramid-CH72tAMb.js} +255 -222
- package/dist/vue-ui-age-pyramid-DsbZ1qcQ.cjs +1 -0
- package/dist/{vue-ui-annotator-Dix6_Gm6.js → vue-ui-annotator-DPeJ2its.js} +1 -1
- package/dist/{vue-ui-annotator-Dbp6cWMr.cjs → vue-ui-annotator-DU_DJKCw.cjs} +1 -1
- package/dist/vue-ui-bullet-CtP3MlUT.js +464 -0
- package/dist/vue-ui-bullet-D8ks_rKr.cjs +34 -0
- package/dist/vue-ui-candlestick-D1jdr0bv.cjs +2 -0
- package/dist/{vue-ui-candlestick-CRwzWF6j.js → vue-ui-candlestick-DDil13a0.js} +278 -245
- package/dist/{vue-ui-carousel-table-BHeEbRKY.js → vue-ui-carousel-table-BaeIxyc0.js} +76 -69
- package/dist/vue-ui-carousel-table-C7SJIOG-.cjs +1 -0
- package/dist/{vue-ui-chestnut-CRk0RCB9.js → vue-ui-chestnut-BczSJF6S.js} +322 -291
- package/dist/vue-ui-chestnut-ih5r0Bj9.cjs +6 -0
- package/dist/{vue-ui-cursor-lU1rts1B.cjs → vue-ui-cursor-C2Pj_CI_.cjs} +1 -1
- package/dist/{vue-ui-cursor-y0kdr0uA.js → vue-ui-cursor-Dg_Dmww-.js} +2 -2
- package/dist/{vue-ui-dashboard-OyihaKdu.js → vue-ui-dashboard-Bul9dqx1.js} +2 -2
- package/dist/{vue-ui-dashboard-BfC0jS-X.cjs → vue-ui-dashboard-Cg020NiT.cjs} +1 -1
- package/dist/{vue-ui-digits-IKt4qT2-.js → vue-ui-digits-B8iAa4YZ.js} +2 -2
- package/dist/{vue-ui-digits-BJfcAiq_.cjs → vue-ui-digits-Ctgd84JR.cjs} +1 -1
- package/dist/vue-ui-donut-D7KT9EAp.cjs +1 -0
- package/dist/{vue-ui-donut-DFaGk4fI.js → vue-ui-donut-DUcp-fat.js} +376 -343
- package/dist/vue-ui-donut-evolution-CHtJ8iOK.cjs +1 -0
- package/dist/{vue-ui-donut-evolution-Dd4o37RP.js → vue-ui-donut-evolution-C_YMbTwq.js} +375 -344
- package/dist/vue-ui-dumbbell-B0dikuqO.cjs +9 -0
- package/dist/{vue-ui-dumbbell-B7j1_JoQ.js → vue-ui-dumbbell-Buwngz_V.js} +294 -261
- package/dist/vue-ui-flow-Bz3c0K5P.js +515 -0
- package/dist/vue-ui-flow-D6rc8J-8.cjs +1 -0
- package/dist/{vue-ui-galaxy-CH1BDtWl.js → vue-ui-galaxy-Cjh0XGTX.js} +212 -181
- package/dist/vue-ui-galaxy-CmTt0vBf.cjs +1 -0
- package/dist/vue-ui-gauge-B1UvGkQa.js +527 -0
- package/dist/vue-ui-gauge-B_TKuyM7.cjs +1 -0
- package/dist/{vue-ui-gizmo-DVwQaEH1.cjs → vue-ui-gizmo-DFW6HnHp.cjs} +1 -1
- package/dist/{vue-ui-gizmo-CKQcbe_7.js → vue-ui-gizmo-DUQ4t-At.js} +3 -3
- package/dist/{vue-ui-heatmap-B-zWMk0Y.js → vue-ui-heatmap-C-poazUw.js} +308 -277
- package/dist/vue-ui-heatmap-C2HlnqzO.cjs +1 -0
- package/dist/{vue-ui-kpi-CghbfSdM.js → vue-ui-kpi-DXe-vxAk.js} +3 -3
- package/dist/{vue-ui-kpi-CuY3xlVq.cjs → vue-ui-kpi-Z4Oi4raz.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-C7roqZ4p.js → vue-ui-mini-loader-BVtHTqxS.js} +2 -2
- package/dist/{vue-ui-mini-loader-CH_PfeDc.cjs → vue-ui-mini-loader-MMvpm9pz.cjs} +1 -1
- package/dist/vue-ui-molecule-BaJpDZND.js +805 -0
- package/dist/vue-ui-molecule-BiYIcOKN.cjs +1 -0
- package/dist/{vue-ui-mood-radar-DSznHxLS.js → vue-ui-mood-radar-BUNDwsEI.js} +259 -228
- package/dist/vue-ui-mood-radar-C6jMyFkb.cjs +1 -0
- package/dist/vue-ui-nested-donuts-DKO2dFKo.cjs +17 -0
- package/dist/{vue-ui-nested-donuts-CiE4DdEQ.js → vue-ui-nested-donuts-mDy2hXa6.js} +371 -338
- package/dist/vue-ui-onion-DwFG3HAI.js +650 -0
- package/dist/vue-ui-onion-GWNoZRhw.cjs +5 -0
- package/dist/vue-ui-parallel-coordinate-plot-DODn4Ohf.cjs +8 -0
- package/dist/vue-ui-parallel-coordinate-plot-ImET_zeo.js +719 -0
- package/dist/{vue-ui-quadrant-Cs3A77us.js → vue-ui-quadrant-BeveRihK.js} +359 -326
- package/dist/vue-ui-quadrant-yuFAxV-5.cjs +1 -0
- package/dist/{vue-ui-quick-chart-CiiSUexi.js → vue-ui-quick-chart-DAhllTfa.js} +585 -552
- package/dist/vue-ui-quick-chart-DgFDBzjS.cjs +15 -0
- package/dist/vue-ui-radar-BJH5SE6-.cjs +1 -0
- package/dist/{vue-ui-radar-CNSpiNrM.js → vue-ui-radar-BllatzRa.js} +279 -246
- package/dist/{vue-ui-rating-GoUNDOdZ.cjs → vue-ui-rating-BoZo7caL.cjs} +1 -1
- package/dist/{vue-ui-rating-b_iYZWF8.js → vue-ui-rating-D1ykV4xO.js} +2 -2
- package/dist/vue-ui-relation-circle-CKmjOle7.cjs +1 -0
- package/dist/vue-ui-relation-circle-xv2l5Be9.js +358 -0
- package/dist/vue-ui-rings-B-ZcX6y1.js +602 -0
- package/dist/vue-ui-rings-DjH3CK23.cjs +2 -0
- package/dist/{vue-ui-scatter-CVuoW-cD.js → vue-ui-scatter-DG43ck1g.js} +440 -407
- package/dist/vue-ui-scatter-SBCXAl7q.cjs +1 -0
- package/dist/{vue-ui-screenshot-Co2o48d6.cjs → vue-ui-screenshot-C1JBP_N0.cjs} +1 -1
- package/dist/{vue-ui-screenshot-Csc0dQL9.js → vue-ui-screenshot-p3ca8cAl.js} +1 -1
- package/dist/{vue-ui-skeleton-B2sRnIXX.js → vue-ui-skeleton-BYssP0K4.js} +419 -379
- package/dist/vue-ui-skeleton-BqKzuhkB.cjs +41 -0
- package/dist/{vue-ui-smiley-Ci3uMgVh.cjs → vue-ui-smiley-BXKVpHl2.cjs} +1 -1
- package/dist/{vue-ui-smiley-D4s-AdIE.js → vue-ui-smiley-D7dDCdpq.js} +2 -2
- package/dist/vue-ui-spark-trend-9V60hM3Z.cjs +1 -0
- package/dist/{vue-ui-spark-trend-CHKQGMLs.js → vue-ui-spark-trend-GWFrO_0z.js} +86 -79
- package/dist/vue-ui-sparkbar-Bgn6AY0q.cjs +1 -0
- package/dist/{vue-ui-sparkbar-Bb1fq2GR.js → vue-ui-sparkbar-CwqlyAyv.js} +90 -83
- package/dist/vue-ui-sparkgauge-Dqntz2Zv.cjs +1 -0
- package/dist/{vue-ui-sparkgauge-DWuaAQbo.js → vue-ui-sparkgauge-F2XbiXyA.js} +57 -50
- package/dist/{vue-ui-sparkhistogram-CjeJ3ch1.js → vue-ui-sparkhistogram-DRIKK6Ym.js} +74 -67
- package/dist/vue-ui-sparkhistogram-DnY4-Sdn.cjs +1 -0
- package/dist/vue-ui-sparkline-CAEs-gtK.cjs +1 -0
- package/dist/{vue-ui-sparkline-DGJDBArr.js → vue-ui-sparkline-Cxtzdlhi.js} +134 -125
- package/dist/{vue-ui-sparkstackbar-B3ul3qUZ.js → vue-ui-sparkstackbar-0A1klq9s.js} +84 -77
- package/dist/vue-ui-sparkstackbar-D37ms1rx.cjs +1 -0
- package/dist/vue-ui-stackbar-ByOuJSdM.js +947 -0
- package/dist/vue-ui-stackbar-wun4S3C0.cjs +6 -0
- package/dist/{vue-ui-strip-plot-CIb2LSV8.js → vue-ui-strip-plot-CMD0MSqY.js} +297 -264
- package/dist/vue-ui-strip-plot-IQrypGvz.cjs +1 -0
- package/dist/{vue-ui-table-CmVi0nv2.js → vue-ui-table-B75DJ39t.js} +1 -1
- package/dist/{vue-ui-table-B_sFrAO9.cjs → vue-ui-table-aj0XZ7T5.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-CgFr38QT.js → vue-ui-table-heatmap-BO2ugWqD.js} +55 -48
- package/dist/vue-ui-table-heatmap-Ce93TyBF.cjs +1 -0
- package/dist/{vue-ui-table-sparkline-eg2Qd8ws.js → vue-ui-table-sparkline-CbjfAaj2.js} +88 -81
- package/dist/vue-ui-table-sparkline-D6KJjDnU.cjs +1 -0
- package/dist/vue-ui-thermometer-Pq4PvSIP.js +447 -0
- package/dist/vue-ui-thermometer-swmi4FmH.cjs +1 -0
- package/dist/{vue-ui-timer-DM1IStj1.cjs → vue-ui-timer-B6IB6yS6.cjs} +1 -1
- package/dist/{vue-ui-timer-COSI3Q5T.js → vue-ui-timer-Bk3BvB-B.js} +6 -6
- package/dist/vue-ui-tiremarks-CU9HJIqf.js +310 -0
- package/dist/vue-ui-tiremarks-Cn79uQH2.cjs +1 -0
- package/dist/vue-ui-treemap-BEMuKV7x.cjs +1 -0
- package/dist/vue-ui-treemap-DY-lRAhC.js +825 -0
- package/dist/vue-ui-vertical-bar-B1e2RxTv.cjs +4 -0
- package/dist/vue-ui-vertical-bar-CtnIKsM1.js +861 -0
- package/dist/vue-ui-waffle-BqP7Okgu.cjs +1 -0
- package/dist/vue-ui-waffle-reOsx-gJ.js +791 -0
- package/dist/vue-ui-wheel-BuWUGnkC.cjs +1 -0
- package/dist/vue-ui-wheel-kYxny3vn.js +291 -0
- package/dist/vue-ui-word-cloud-DbMqrHAf.js +607 -0
- package/dist/vue-ui-word-cloud-DwLY4QdB.cjs +1 -0
- package/dist/vue-ui-xy-CGWzriYn.cjs +3 -0
- package/dist/{vue-ui-xy-canvas-BYdTxzi6.js → vue-ui-xy-canvas-B0HTR7OV.js} +441 -408
- package/dist/vue-ui-xy-canvas-CgJd5FiT.cjs +9 -0
- package/dist/{vue-ui-xy-x8KEsGV-.js → vue-ui-xy-rbACig0h.js} +824 -791
- package/package.json +1 -1
- package/dist/BaseIcon-E7FmzMcY.cjs +0 -1
- package/dist/index-C7_6YjWN.cjs +0 -9
- package/dist/usePrinter-8EP4iaGm.cjs +0 -1
- package/dist/useResponsive-B3TrDDIG.cjs +0 -1
- package/dist/useResponsive-NZB-WLRF.js +0 -187
- package/dist/vue-data-ui-4Yd255Ia.cjs +0 -9
- package/dist/vue-data-ui-Cp7bO_tj.js +0 -258
- package/dist/vue-ui-3d-bar-BeR2aBgQ.cjs +0 -19
- package/dist/vue-ui-age-pyramid-R-C4P4mI.cjs +0 -1
- package/dist/vue-ui-bullet-CQKaC4wG.js +0 -409
- package/dist/vue-ui-bullet-DSZox236.cjs +0 -23
- package/dist/vue-ui-candlestick-Dilozp3V.cjs +0 -2
- package/dist/vue-ui-carousel-table-C0GDDSW9.cjs +0 -1
- package/dist/vue-ui-chestnut-DdEcEI04.cjs +0 -6
- package/dist/vue-ui-donut-DTSVlGMg.cjs +0 -1
- package/dist/vue-ui-donut-evolution-BuUafabD.cjs +0 -1
- package/dist/vue-ui-dumbbell-CVfgnyKi.cjs +0 -9
- package/dist/vue-ui-flow-C45dODaB.cjs +0 -1
- package/dist/vue-ui-flow-DkPTzNv9.js +0 -484
- package/dist/vue-ui-galaxy-DlPavMK0.cjs +0 -1
- package/dist/vue-ui-gauge-BXiy515T.js +0 -494
- package/dist/vue-ui-gauge-vMFUYHYH.cjs +0 -1
- package/dist/vue-ui-heatmap-CMQqQnxc.cjs +0 -1
- package/dist/vue-ui-molecule-BwmkMEVN.js +0 -774
- package/dist/vue-ui-molecule-nOuD0hR5.cjs +0 -1
- package/dist/vue-ui-mood-radar-Bof_C9Ae.cjs +0 -1
- package/dist/vue-ui-nested-donuts-DIb6YyWv.cjs +0 -17
- package/dist/vue-ui-onion-D9o6Rcgu.js +0 -617
- package/dist/vue-ui-onion-N3tRNc4u.cjs +0 -5
- package/dist/vue-ui-parallel-coordinate-plot-BcYrYXhG.js +0 -686
- package/dist/vue-ui-parallel-coordinate-plot-qKGk2bX6.cjs +0 -8
- package/dist/vue-ui-quadrant-Do48rGrX.cjs +0 -1
- package/dist/vue-ui-quick-chart-BxU4d-sJ.cjs +0 -15
- package/dist/vue-ui-radar-CooAvwPA.cjs +0 -1
- package/dist/vue-ui-relation-circle-nRf1pvD0.js +0 -325
- package/dist/vue-ui-relation-circle-uNgJni4x.cjs +0 -1
- package/dist/vue-ui-rings-BgRc1o4_.js +0 -569
- package/dist/vue-ui-rings-iIgQI9Ws.cjs +0 -2
- package/dist/vue-ui-scatter-CkrpmLxP.cjs +0 -1
- package/dist/vue-ui-skeleton-CGV1dEUD.cjs +0 -41
- package/dist/vue-ui-spark-trend-BfoEoJEy.cjs +0 -1
- package/dist/vue-ui-sparkbar-DB2DeXti.cjs +0 -1
- package/dist/vue-ui-sparkgauge-CJepIY2u.cjs +0 -1
- package/dist/vue-ui-sparkhistogram-B7B36LLT.cjs +0 -1
- package/dist/vue-ui-sparkline-BcqmwDAb.cjs +0 -1
- package/dist/vue-ui-sparkstackbar-DT3aKNeV.cjs +0 -1
- package/dist/vue-ui-stackbar-CRcUugkl.cjs +0 -6
- package/dist/vue-ui-stackbar-DNROvZII.js +0 -915
- package/dist/vue-ui-strip-plot-Ck9Fmt_b.cjs +0 -1
- package/dist/vue-ui-table-heatmap-Chvdf2Gi.cjs +0 -1
- package/dist/vue-ui-table-sparkline-DUUYQ5dH.cjs +0 -1
- package/dist/vue-ui-thermometer-BFfN4aat.cjs +0 -1
- package/dist/vue-ui-thermometer-BePmFiwy.js +0 -416
- package/dist/vue-ui-tiremarks-BkYXzU3R.cjs +0 -1
- package/dist/vue-ui-tiremarks-d6TmSHY7.js +0 -279
- package/dist/vue-ui-treemap-BgeZnbl3.cjs +0 -1
- package/dist/vue-ui-treemap-Qg0858o6.js +0 -792
- package/dist/vue-ui-vertical-bar-CieqHVD5.js +0 -828
- package/dist/vue-ui-vertical-bar-D3atbdvl.cjs +0 -4
- package/dist/vue-ui-waffle-CD7C9Lu4.cjs +0 -1
- package/dist/vue-ui-waffle-CjNhM-mV.js +0 -758
- package/dist/vue-ui-wheel-B8mbO6ht.js +0 -258
- package/dist/vue-ui-wheel-CYmM7J61.cjs +0 -1
- package/dist/vue-ui-word-cloud-DMXrUmX5.js +0 -574
- package/dist/vue-ui-word-cloud-Dm9yZ1zQ.cjs +0 -1
- package/dist/vue-ui-xy-DoWnidom.cjs +0 -3
- package/dist/vue-ui-xy-canvas-DHs5sb3t.cjs +0 -9
|
@@ -1,16 +1,20 @@
|
|
|
1
|
-
import { computed as
|
|
2
|
-
import { u as
|
|
3
|
-
import { u as G } from "./useNestedProp-
|
|
4
|
-
import
|
|
5
|
-
import { _ as
|
|
6
|
-
import { _ as
|
|
7
|
-
const
|
|
1
|
+
import { computed as y, ref as k, watch as I, onMounted as X, openBlock as s, createElementBlock as r, normalizeStyle as g, createElementVNode as d, toDisplayString as _, createCommentVNode as h, unref as b, createVNode as W, Fragment as D, renderList as N, normalizeClass as P, createBlock as J, renderSlot as K } from "vue";
|
|
2
|
+
import { u as Q, c as U, t as R, a as Y, p as i, d as C, b as Z, o as ee, e as V, g as te, f as O, X as le, s as ae, w as oe, i as se } from "./index-Bya_q1J-.js";
|
|
3
|
+
import { u as G } from "./useNestedProp-B33hazbH.js";
|
|
4
|
+
import ne from "./vue-ui-skeleton-BYssP0K4.js";
|
|
5
|
+
import { _ as re } from "./PackageVersion-VkaUzgmt.js";
|
|
6
|
+
import { _ as ue } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
|
+
const ie = ["xmlns", "viewBox"], ce = ["id"], de = ["stop-color"], ve = ["stop-color"], ge = ["stop-color"], pe = {
|
|
8
8
|
id: "stackPill",
|
|
9
9
|
clipPathUnits: "objectBoundingBox"
|
|
10
|
-
},
|
|
10
|
+
}, he = ["fill"], fe = {
|
|
11
11
|
key: 0,
|
|
12
12
|
"clip-path": "url(#stackPill)"
|
|
13
|
-
},
|
|
13
|
+
}, ye = ["height", "width", "fill"], me = ["onClick", "x", "width", "height", "fill", "stroke"], ke = ["width", "height", "rx"], _e = ["onClick"], be = { style: { display: "flex", "flex-direction": "row", "align-items": "center", gap: "4px", "justify-content": "center" } }, we = ["height", "width"], xe = ["fill"], Ce = {
|
|
14
|
+
key: 4,
|
|
15
|
+
ref: "source",
|
|
16
|
+
dir: "auto"
|
|
17
|
+
}, $e = {
|
|
14
18
|
__name: "vue-ui-sparkstackbar",
|
|
15
19
|
props: {
|
|
16
20
|
config: {
|
|
@@ -28,7 +32,7 @@ const ue = ["xmlns", "viewBox"], ie = ["id"], ce = ["stop-color"], de = ["stop-c
|
|
|
28
32
|
},
|
|
29
33
|
emits: ["selectDatapoint"],
|
|
30
34
|
setup(M, { emit: T }) {
|
|
31
|
-
const u = M, { vue_ui_sparkstackbar: q } =
|
|
35
|
+
const u = M, { vue_ui_sparkstackbar: q } = Q(), z = y(() => !!u.dataset && u.dataset.length), A = k(U()), e = y({
|
|
32
36
|
get: () => L(),
|
|
33
37
|
set: (t) => t
|
|
34
38
|
});
|
|
@@ -39,10 +43,10 @@ const ue = ["xmlns", "viewBox"], ie = ["id"], ce = ["stop-color"], de = ["stop-c
|
|
|
39
43
|
});
|
|
40
44
|
return t.theme ? {
|
|
41
45
|
...G({
|
|
42
|
-
userConfig:
|
|
46
|
+
userConfig: R.vue_ui_sparkstackbar[t.theme] || u.config,
|
|
43
47
|
defaultConfig: t
|
|
44
48
|
}),
|
|
45
|
-
customPalette:
|
|
49
|
+
customPalette: Y[t.theme] || i
|
|
46
50
|
} : t;
|
|
47
51
|
}
|
|
48
52
|
I(() => u.config, (t) => {
|
|
@@ -50,39 +54,39 @@ const ue = ["xmlns", "viewBox"], ie = ["id"], ce = ["stop-color"], de = ["stop-c
|
|
|
50
54
|
}, { deep: !0 }), I(() => u.dataset, (t) => {
|
|
51
55
|
m.value = u.dataset.map((a, l) => ({
|
|
52
56
|
...a,
|
|
53
|
-
color: a.color ? C(a.color) :
|
|
57
|
+
color: a.color ? C(a.color) : w.value[l] || i[l] || i[l % i.length]
|
|
54
58
|
}));
|
|
55
59
|
}, { deep: !0 });
|
|
56
|
-
const
|
|
60
|
+
const w = y(() => Z(e.value.customPalette)), m = k(u.dataset.map((t, a) => ({
|
|
57
61
|
...t,
|
|
58
62
|
value: e.value.style.animation.show ? 0 : t.value || 0,
|
|
59
|
-
color: t.color ? C(t.color) :
|
|
60
|
-
}))),
|
|
63
|
+
color: t.color ? C(t.color) : w.value[a] || i[a] || i[a % i.length]
|
|
64
|
+
}))), x = k(!0);
|
|
61
65
|
X(() => {
|
|
62
66
|
if (B(), e.value.style.animation.show) {
|
|
63
|
-
let
|
|
64
|
-
o += l / t, o < l ? (m.value = m.value.map((
|
|
65
|
-
...
|
|
66
|
-
value:
|
|
67
|
-
color:
|
|
68
|
-
})), requestAnimationFrame(
|
|
69
|
-
...
|
|
70
|
-
value:
|
|
71
|
-
color:
|
|
67
|
+
let f = function() {
|
|
68
|
+
o += l / t, o < l ? (m.value = m.value.map((n, c) => ({
|
|
69
|
+
...n,
|
|
70
|
+
value: n.value += a[c],
|
|
71
|
+
color: n.color ? C(n.color) : w.value[c] || i[c] || i[c % i.length]
|
|
72
|
+
})), requestAnimationFrame(f)) : (x.value = !1, m.value = u.dataset.map((n, c) => ({
|
|
73
|
+
...n,
|
|
74
|
+
value: n.value || 0,
|
|
75
|
+
color: n.color ? C(n.color) : w.value[c] || i[c] || i[c % i.length],
|
|
72
76
|
id: U()
|
|
73
77
|
})));
|
|
74
78
|
};
|
|
75
|
-
const t = e.value.style.animation.animationFrames, a = u.dataset.map((
|
|
79
|
+
const t = e.value.style.animation.animationFrames, a = u.dataset.map((n, c) => n.value / t), l = u.dataset.map((n) => n.value || 0).reduce((n, c) => n + c, 0);
|
|
76
80
|
let o = 0;
|
|
77
|
-
|
|
81
|
+
x.value = !0, f();
|
|
78
82
|
}
|
|
79
83
|
});
|
|
80
84
|
function B() {
|
|
81
|
-
|
|
85
|
+
ee(u.dataset) ? V({
|
|
82
86
|
componentName: "VueUiSparkStackbar",
|
|
83
87
|
type: "dataset"
|
|
84
88
|
}) : u.dataset.forEach((t, a) => {
|
|
85
|
-
|
|
89
|
+
te({
|
|
86
90
|
datasetObject: t,
|
|
87
91
|
requiredAttributes: ["name", "value"]
|
|
88
92
|
}).forEach((l) => {
|
|
@@ -98,24 +102,24 @@ const ue = ["xmlns", "viewBox"], ie = ["id"], ce = ["stop-color"], de = ["stop-c
|
|
|
98
102
|
const p = k({
|
|
99
103
|
width: 500,
|
|
100
104
|
height: 16
|
|
101
|
-
}), v = k([]), F =
|
|
102
|
-
const l = t.value || 0, o = l / F.value,
|
|
105
|
+
}), v = k([]), F = y(() => u.dataset.map((t) => t.value || 0).filter((t, a) => !v.value.includes(a)).reduce((t, a) => t + a, 0)), j = y(() => m.value.map((t, a) => {
|
|
106
|
+
const l = t.value || 0, o = l / F.value, f = isNaN(o) ? 0 : o, n = f * p.value.width;
|
|
103
107
|
return {
|
|
104
108
|
...t,
|
|
105
109
|
value: l,
|
|
106
|
-
proportion:
|
|
107
|
-
width:
|
|
110
|
+
proportion: f,
|
|
111
|
+
width: n,
|
|
108
112
|
proportionLabel: O({
|
|
109
|
-
v:
|
|
113
|
+
v: f * 100,
|
|
110
114
|
s: "%",
|
|
111
115
|
r: e.value.style.legend.percentage.rounding
|
|
112
116
|
})
|
|
113
117
|
};
|
|
114
|
-
})), $ =
|
|
118
|
+
})), $ = y(() => j.value.filter((t, a) => !v.value.includes(a)));
|
|
115
119
|
function H(t) {
|
|
116
120
|
v.value.includes(t) ? v.value = v.value.filter((a) => a !== t) : v.value.length < m.value.length - 1 && v.value.push(t);
|
|
117
121
|
}
|
|
118
|
-
const S =
|
|
122
|
+
const S = y(() => {
|
|
119
123
|
let t = 0;
|
|
120
124
|
const a = [];
|
|
121
125
|
for (let l = 0; l < $.value.length; l += 1)
|
|
@@ -128,30 +132,30 @@ const ue = ["xmlns", "viewBox"], ie = ["id"], ce = ["stop-color"], de = ["stop-c
|
|
|
128
132
|
function E(t, a) {
|
|
129
133
|
T("selectDatapoint", { datapoint: t, index: a });
|
|
130
134
|
}
|
|
131
|
-
return (t, a) => (
|
|
135
|
+
return (t, a) => (s(), r("div", {
|
|
132
136
|
style: g(`width:100%; background:${e.value.style.backgroundColor}`)
|
|
133
137
|
}, [
|
|
134
|
-
e.value.style.title.text ? (
|
|
138
|
+
e.value.style.title.text ? (s(), r("div", {
|
|
135
139
|
key: 0,
|
|
136
140
|
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}`)
|
|
137
141
|
}, [
|
|
138
142
|
d("div", {
|
|
139
143
|
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"}`)
|
|
140
144
|
}, _(e.value.style.title.text), 5),
|
|
141
|
-
e.value.style.title.subtitle.text ? (
|
|
145
|
+
e.value.style.title.subtitle.text ? (s(), r("div", {
|
|
142
146
|
key: 0,
|
|
143
147
|
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"}`)
|
|
144
|
-
}, _(e.value.style.title.subtitle.text), 5)) :
|
|
145
|
-
], 4)) :
|
|
146
|
-
z.value ? (
|
|
148
|
+
}, _(e.value.style.title.subtitle.text), 5)) : h("", !0)
|
|
149
|
+
], 4)) : h("", !0),
|
|
150
|
+
z.value ? (s(), r("svg", {
|
|
147
151
|
key: 1,
|
|
148
|
-
xmlns: b(
|
|
152
|
+
xmlns: b(le),
|
|
149
153
|
width: "100%",
|
|
150
154
|
viewBox: `0 0 ${p.value.width} ${p.value.height}`
|
|
151
155
|
}, [
|
|
152
|
-
W(
|
|
156
|
+
W(re),
|
|
153
157
|
d("defs", null, [
|
|
154
|
-
(
|
|
158
|
+
(s(!0), r(D, null, N(S.value, (l, o) => (s(), r("linearGradient", {
|
|
155
159
|
key: `stack_gradient_${o}`,
|
|
156
160
|
gradientTransform: "rotate(90)",
|
|
157
161
|
id: `stack_gradient_${o}_${A.value}`
|
|
@@ -159,17 +163,17 @@ const ue = ["xmlns", "viewBox"], ie = ["id"], ce = ["stop-color"], de = ["stop-c
|
|
|
159
163
|
d("stop", {
|
|
160
164
|
offset: "0%",
|
|
161
165
|
"stop-color": l.color
|
|
162
|
-
}, null, 8,
|
|
166
|
+
}, null, 8, de),
|
|
163
167
|
d("stop", {
|
|
164
168
|
offset: "50%",
|
|
165
|
-
"stop-color": b(
|
|
166
|
-
}, null, 8,
|
|
169
|
+
"stop-color": b(ae)(b(oe)(l.color, 0.05), 100 - e.value.style.bar.gradient.intensity)
|
|
170
|
+
}, null, 8, ve),
|
|
167
171
|
d("stop", {
|
|
168
172
|
offset: "100%",
|
|
169
173
|
"stop-color": l.color
|
|
170
|
-
}, null, 8,
|
|
171
|
-
], 8,
|
|
172
|
-
d("clipPath",
|
|
174
|
+
}, null, 8, ge)
|
|
175
|
+
], 8, ce))), 128)),
|
|
176
|
+
d("clipPath", pe, [
|
|
173
177
|
d("rect", {
|
|
174
178
|
x: "0.005",
|
|
175
179
|
y: "-2",
|
|
@@ -178,19 +182,19 @@ const ue = ["xmlns", "viewBox"], ie = ["id"], ce = ["stop-color"], de = ["stop-c
|
|
|
178
182
|
rx: "3",
|
|
179
183
|
ry: "3",
|
|
180
184
|
fill: e.value.style.backgroundColor
|
|
181
|
-
}, null, 8,
|
|
185
|
+
}, null, 8, he)
|
|
182
186
|
])
|
|
183
187
|
]),
|
|
184
|
-
F.value > 0 ? (
|
|
188
|
+
F.value > 0 ? (s(), r("g", fe, [
|
|
185
189
|
d("rect", {
|
|
186
190
|
x: 0,
|
|
187
191
|
y: 0,
|
|
188
192
|
height: p.value.height,
|
|
189
193
|
width: S.value.map((l) => l.width).reduce((l, o) => l + o, 0),
|
|
190
194
|
fill: e.value.style.bar.gradient.underlayerColor,
|
|
191
|
-
class: P({ animated: !
|
|
192
|
-
}, null, 10,
|
|
193
|
-
(
|
|
195
|
+
class: P({ animated: !x.value })
|
|
196
|
+
}, null, 10, ye),
|
|
197
|
+
(s(!0), r(D, null, N(S.value, (l, o) => (s(), r("rect", {
|
|
194
198
|
key: `stack_${o}`,
|
|
195
199
|
onClick: () => E(l, o),
|
|
196
200
|
x: l.start,
|
|
@@ -200,9 +204,9 @@ const ue = ["xmlns", "viewBox"], ie = ["id"], ce = ["stop-color"], de = ["stop-c
|
|
|
200
204
|
fill: e.value.style.bar.gradient.show ? `url(#stack_gradient_${o}_${A.value})` : l.color,
|
|
201
205
|
stroke: e.value.style.backgroundColor,
|
|
202
206
|
"stroke-linecap": "round",
|
|
203
|
-
class: P({ animated: !
|
|
204
|
-
}, null, 10,
|
|
205
|
-
])) : (
|
|
207
|
+
class: P({ animated: !x.value })
|
|
208
|
+
}, null, 10, me))), 128))
|
|
209
|
+
])) : (s(), r("rect", {
|
|
206
210
|
key: 1,
|
|
207
211
|
x: 2,
|
|
208
212
|
y: 1,
|
|
@@ -212,9 +216,9 @@ const ue = ["xmlns", "viewBox"], ie = ["id"], ce = ["stop-color"], de = ["stop-c
|
|
|
212
216
|
"stroke-width": "2",
|
|
213
217
|
fill: "transparent",
|
|
214
218
|
rx: (p.value.height - 4) / 2
|
|
215
|
-
}, null, 8,
|
|
216
|
-
], 8,
|
|
217
|
-
z.value ?
|
|
219
|
+
}, null, 8, ke))
|
|
220
|
+
], 8, ie)) : h("", !0),
|
|
221
|
+
z.value ? h("", !0) : (s(), J(ne, {
|
|
218
222
|
key: 2,
|
|
219
223
|
config: {
|
|
220
224
|
type: "sparkStackbar",
|
|
@@ -226,20 +230,20 @@ const ue = ["xmlns", "viewBox"], ie = ["id"], ce = ["stop-color"], de = ["stop-c
|
|
|
226
230
|
}
|
|
227
231
|
}
|
|
228
232
|
}, null, 8, ["config"])),
|
|
229
|
-
e.value.style.legend.show ? (
|
|
233
|
+
e.value.style.legend.show ? (s(), r("div", {
|
|
230
234
|
key: 3,
|
|
231
235
|
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"}`),
|
|
232
236
|
class: "vue-ui-sparkstackbar-legend"
|
|
233
237
|
}, [
|
|
234
|
-
(
|
|
238
|
+
(s(!0), r(D, null, N(j.value, (l, o) => (s(), r("div", {
|
|
235
239
|
style: g(`font-size:${e.value.style.legend.fontSize}px;`),
|
|
236
240
|
class: P({ "vue-ui-sparkstackbar-legend-item": !0, "vue-ui-sparkstackbar-legend-item-unselected": v.value.includes(o) }),
|
|
237
|
-
onClick: (
|
|
241
|
+
onClick: (f) => {
|
|
238
242
|
H(o), E(l, o);
|
|
239
243
|
}
|
|
240
244
|
}, [
|
|
241
|
-
d("div",
|
|
242
|
-
(
|
|
245
|
+
d("div", be, [
|
|
246
|
+
(s(), r("svg", {
|
|
243
247
|
height: `${e.value.style.legend.fontSize}px`,
|
|
244
248
|
width: `${e.value.style.legend.fontSize}px`,
|
|
245
249
|
viewBox: "0 0 10 10"
|
|
@@ -250,18 +254,18 @@ const ue = ["xmlns", "viewBox"], ie = ["id"], ce = ["stop-color"], de = ["stop-c
|
|
|
250
254
|
r: 5,
|
|
251
255
|
fill: l.color
|
|
252
256
|
}, null, 8, xe)
|
|
253
|
-
], 8,
|
|
257
|
+
], 8, we)),
|
|
254
258
|
d("span", {
|
|
255
259
|
style: g(`color:${e.value.style.legend.name.color}; font-weight:${e.value.style.legend.name.bold ? "bold" : "normal"}`)
|
|
256
260
|
}, _(l.name), 5),
|
|
257
|
-
e.value.style.legend.percentage.show ? (
|
|
261
|
+
e.value.style.legend.percentage.show ? (s(), r("span", {
|
|
258
262
|
key: 0,
|
|
259
263
|
style: g(`font-weight:${e.value.style.legend.percentage.bold ? "bold" : "normal"};color:${e.value.style.legend.percentage.color}`)
|
|
260
|
-
}, _(v.value.includes(o) ? " - " : l.proportionLabel), 5)) :
|
|
261
|
-
e.value.style.legend.value.show ? (
|
|
264
|
+
}, _(v.value.includes(o) ? " - " : l.proportionLabel), 5)) : h("", !0),
|
|
265
|
+
e.value.style.legend.value.show ? (s(), r("span", {
|
|
262
266
|
key: 1,
|
|
263
267
|
style: g(`font-weight:${e.value.style.legend.value.bold ? "bold" : "normal"};color:${e.value.style.legend.value.color}`)
|
|
264
|
-
}, " (" + _(b(
|
|
268
|
+
}, " (" + _(b(se)(
|
|
265
269
|
e.value.style.legend.value.formatter,
|
|
266
270
|
l.value,
|
|
267
271
|
b(O)({
|
|
@@ -271,13 +275,16 @@ const ue = ["xmlns", "viewBox"], ie = ["id"], ce = ["stop-color"], de = ["stop-c
|
|
|
271
275
|
r: e.value.style.legend.value.rounding
|
|
272
276
|
}),
|
|
273
277
|
{ datapoint: l, seriesIndex: o }
|
|
274
|
-
)) + ") ", 5)) :
|
|
278
|
+
)) + ") ", 5)) : h("", !0)
|
|
275
279
|
])
|
|
276
|
-
], 14,
|
|
277
|
-
], 4)) :
|
|
280
|
+
], 14, _e))), 256))
|
|
281
|
+
], 4)) : h("", !0),
|
|
282
|
+
t.$slots.source ? (s(), r("div", Ce, [
|
|
283
|
+
K(t.$slots, "source", {}, void 0, !0)
|
|
284
|
+
], 512)) : h("", !0)
|
|
278
285
|
], 4));
|
|
279
286
|
}
|
|
280
|
-
},
|
|
287
|
+
}, Le = /* @__PURE__ */ ue($e, [["__scopeId", "data-v-bda2b20a"]]);
|
|
281
288
|
export {
|
|
282
|
-
|
|
289
|
+
Le as default
|
|
283
290
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("./index-eFox7weK.cjs"),w=require("./useNestedProp-BkgEhTQY.cjs"),V=require("./vue-ui-skeleton-BqKzuhkB.cjs"),z=require("./PackageVersion-DwI-KhXH.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={key:4,ref:"source",dir:"auto"},K={__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=w.useNestedProp({userConfig:u.config,defaultConfig:N});return l.theme?{...w.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):m.value[a]||o.palette[a]||o.palette[a%o.palette.length]}))},{deep:!0});const m=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):m.value[n]||o.palette[n]||o.palette[n%o.palette.length]}))),g=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):m.value[i]||o.palette[i]||o.palette[i%o.palette.length]})),requestAnimationFrame(p)):(g.value=!1,v.value=u.dataset.map((s,i)=>({...s,value:s.value||0,color:s.color?o.convertColorToHex(s.color):m.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;g.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 B(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:!g.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:()=>B(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:!g.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),B(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),l.$slots.source?(e.openBlock(),e.createElementBlock("div",J,[e.renderSlot(l.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0)],4))}},Q=D._export_sfc(K,[["__scopeId","data-v-bda2b20a"]]);exports.default=Q;
|