vue-data-ui 2.6.5 → 2.6.7
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-DfGZcZu4.js → Arrow-BxUmDF04.js} +1 -1
- package/dist/{Arrow-CyeGXbbD.cjs → Arrow-PPbxds1Q.cjs} +1 -1
- package/dist/{BaseIcon-B5DvqSYe.cjs → BaseIcon-BmVwfJg2.cjs} +1 -1
- package/dist/{BaseIcon-BzuvxztF.js → BaseIcon-CDx9pxUG.js} +1 -1
- package/dist/{DataTable-zpYtivMM.cjs → DataTable-Cv_TVAas.cjs} +1 -1
- package/dist/{DataTable-BCCBpyhr.js → DataTable-TjJIVFlL.js} +2 -2
- package/dist/{Legend-CJkkmRNE.cjs → Legend-DunrYGuw.cjs} +1 -1
- package/dist/{Legend-CyJrN721.js → Legend-NKGwxkI7.js} +2 -2
- package/dist/{PackageVersion-Dv25_ZxF.cjs → PackageVersion-DJKkRuOD.cjs} +1 -1
- package/dist/{PackageVersion-PZr4BkQ5.js → PackageVersion-QRvxRYPv.js} +1 -1
- package/dist/{PenAndPaper-Cniu2YEX.js → PenAndPaper-CxC1lWGK.js} +3 -3
- package/dist/{PenAndPaper-Cx3_Liuv.cjs → PenAndPaper-MTTJ3Gd9.cjs} +1 -1
- package/dist/{Shape-BXTmpde5.js → Shape-58uyOuYc.js} +26 -23
- package/dist/Shape-D_1vUjCL.cjs +1 -0
- package/dist/{Slicer-DzKrIvL0.cjs → Slicer-BGEieXKn.cjs} +1 -1
- package/dist/{Slicer-D3tEQT9Z.js → Slicer-C7ormJRw.js} +2 -2
- package/dist/{Title-CXBc1TH6.js → Title-BI8etrRU.js} +1 -1
- package/dist/{Title-DdUtciJN.cjs → Title-Dk92HYMu.cjs} +1 -1
- package/dist/Tooltip-ClMeqejQ.cjs +1 -0
- package/dist/{Tooltip-C9lPh5bN.js → Tooltip-Cxc8c50d.js} +23 -20
- package/dist/{index-DLCyjPV0.js → index-9EeNZMz1.js} +6 -1
- package/dist/index-DEnRHTzk.cjs +9 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +89 -62
- package/dist/types/vue-data-ui.d.ts +89 -62
- package/dist/useChartAccessibility-BWojgys7.js +13 -0
- package/dist/useChartAccessibility-Cm7nkzTG.cjs +1 -0
- package/dist/{useNestedProp-BdTohsDJ.cjs → useNestedProp-BNT60LxO.cjs} +1 -1
- package/dist/{useNestedProp-q86V3_LA.js → useNestedProp-df_bKQEI.js} +1 -1
- package/dist/{usePrinter-CPqTP09H.cjs → usePrinter-dyVny55M.cjs} +1 -1
- package/dist/{usePrinter-CpHZjw3G.js → usePrinter-ngrh00Ym.js} +1 -1
- package/dist/{vue-data-ui-CR9Dof80.cjs → vue-data-ui-BYX-I7HQ.cjs} +1 -1
- package/dist/{vue-data-ui-CzqznXmA.js → vue-data-ui-CDD7JcMs.js} +61 -61
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-DvHdA_uo.js → vue-ui-3d-bar-BArLjlrc.js} +171 -168
- package/dist/vue-ui-3d-bar-DegdXf_S.cjs +19 -0
- package/dist/{vue-ui-accordion-FM16tlk7.cjs → vue-ui-accordion-D2qxHGzp.cjs} +1 -1
- package/dist/{vue-ui-accordion-DR2qjfsa.js → vue-ui-accordion-Qo8JxnIN.js} +3 -3
- package/dist/{vue-ui-age-pyramid-BoXxK9_W.js → vue-ui-age-pyramid-Biz02m7c.js} +85 -82
- package/dist/vue-ui-age-pyramid-kpaaJ2Gx.cjs +1 -0
- package/dist/{vue-ui-annotator-5tI8NuFh.cjs → vue-ui-annotator-By6XNYm0.cjs} +1 -1
- package/dist/{vue-ui-annotator-D4kCCpAK.js → vue-ui-annotator-MXs48Lua.js} +1 -1
- package/dist/{vue-ui-bullet-X3Xa_OZ6.js → vue-ui-bullet-CtBs_r3I.js} +92 -89
- package/dist/vue-ui-bullet-Dkz6vX0T.cjs +34 -0
- package/dist/vue-ui-candlestick-DiEUIuW8.cjs +2 -0
- package/dist/{vue-ui-candlestick-BTW5toA5.js → vue-ui-candlestick-gPztmuJE.js} +155 -152
- package/dist/{vue-ui-carousel-table-Cmnwv9Y3.cjs → vue-ui-carousel-table-CYeXP21y.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-D7s_SrJR.js → vue-ui-carousel-table-D9ckYNKZ.js} +4 -4
- package/dist/{vue-ui-chestnut-DN9EZShg.js → vue-ui-chestnut-DWjn-jcN.js} +186 -183
- package/dist/vue-ui-chestnut-oZtRERnV.cjs +6 -0
- package/dist/{vue-ui-circle-pack-ts3rurGX.js → vue-ui-circle-pack-Bz5yVvAM.js} +99 -96
- package/dist/vue-ui-circle-pack-DCJ6N00S.cjs +1 -0
- package/dist/{vue-ui-cursor-SW96fYT3.js → vue-ui-cursor-BrrVDy1u.js} +2 -2
- package/dist/{vue-ui-cursor-CpWkrHpR.cjs → vue-ui-cursor-DZhRygRy.cjs} +1 -1
- package/dist/{vue-ui-dashboard-BZcfgajg.js → vue-ui-dashboard-DEmGN8Js.js} +2 -2
- package/dist/{vue-ui-dashboard-Buh9xBz-.cjs → vue-ui-dashboard-o8Ju_cXW.cjs} +1 -1
- package/dist/{vue-ui-digits-rB78vJRR.cjs → vue-ui-digits-CgyYdrQ5.cjs} +1 -1
- package/dist/{vue-ui-digits-C00yOT24.js → vue-ui-digits-DbOrROu7.js} +2 -2
- package/dist/vue-ui-donut-9pWaRwf3.cjs +1 -0
- package/dist/{vue-ui-donut-BkGR2Q-_.js → vue-ui-donut-CP5uWglM.js} +158 -156
- package/dist/{vue-ui-donut-evolution-B7WrjiTO.js → vue-ui-donut-evolution-BAMD1wQ5.js} +133 -131
- package/dist/vue-ui-donut-evolution-Ci_gIrkO.cjs +1 -0
- package/dist/{vue-ui-dumbbell-gQadUH53.js → vue-ui-dumbbell-CFYd-Ypn.js} +125 -122
- package/dist/vue-ui-dumbbell-DUNYoZxT.cjs +9 -0
- package/dist/{vue-ui-flow-CqSTZbgP.js → vue-ui-flow-CdvGWFzv.js} +96 -93
- package/dist/vue-ui-flow-W89ofPB-.cjs +1 -0
- package/dist/{vue-ui-funnel-Jr9TMTsq.js → vue-ui-funnel-DYutKyoz.js} +88 -85
- package/dist/vue-ui-funnel-RvdVrhFu.cjs +1 -0
- package/dist/{vue-ui-galaxy-BrQ10tPo.js → vue-ui-galaxy-BCBRlYS1.js} +123 -120
- package/dist/vue-ui-galaxy-Djdx-ca8.cjs +1 -0
- package/dist/{vue-ui-gauge-DOMio6Mv.js → vue-ui-gauge-BNAAZt4F.js} +86 -83
- package/dist/vue-ui-gauge-BVVmf09x.cjs +1 -0
- package/dist/{vue-ui-gizmo-SKS1idHb.js → vue-ui-gizmo-BFQ_KgLX.js} +3 -3
- package/dist/{vue-ui-gizmo-C3NimqVM.cjs → vue-ui-gizmo-Ceh0oFY3.cjs} +1 -1
- package/dist/vue-ui-heatmap-CiZpI-tA.cjs +1 -0
- package/dist/{vue-ui-heatmap-l4vCjb6f.js → vue-ui-heatmap-Ct3qaBv7.js} +109 -106
- package/dist/vue-ui-history-plot-Ci8Y2EFg.cjs +1 -0
- package/dist/{vue-ui-history-plot-B05tJML1.js → vue-ui-history-plot-shn74MJ6.js} +130 -127
- package/dist/{vue-ui-kpi-DF4U5E1w.js → vue-ui-kpi-B_pV-2JJ.js} +3 -3
- package/dist/{vue-ui-kpi-DQJr571M.cjs → vue-ui-kpi-DfYrbxlX.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-BMARnOW4.js → vue-ui-mini-loader-BFnWQs5p.js} +2 -2
- package/dist/{vue-ui-mini-loader-BZkVKkqn.cjs → vue-ui-mini-loader-LIqf62jk.cjs} +1 -1
- package/dist/vue-ui-molecule-D8YuYTKv.cjs +1 -0
- package/dist/{vue-ui-molecule-C1ycekVJ.js → vue-ui-molecule-DNz1m8XZ.js} +147 -144
- package/dist/{vue-ui-mood-radar-_Kd-Lhpm.js → vue-ui-mood-radar-DiYB_zhM.js} +97 -94
- package/dist/vue-ui-mood-radar-uvH7qUHy.cjs +1 -0
- package/dist/{vue-ui-nested-donuts-DIwRSn-O.js → vue-ui-nested-donuts-9hn-g4ir.js} +99 -96
- package/dist/vue-ui-nested-donuts-C7ikDjp7.cjs +17 -0
- package/dist/vue-ui-onion-5Rqvd4Fw.cjs +5 -0
- package/dist/{vue-ui-onion-Dqb0gwGl.js → vue-ui-onion-DCWfNTNu.js} +105 -102
- package/dist/{vue-ui-parallel-coordinate-plot-De-tYNNy.js → vue-ui-parallel-coordinate-plot-CaPFL9_1.js} +97 -94
- package/dist/vue-ui-parallel-coordinate-plot-tlgTbaNX.cjs +8 -0
- package/dist/vue-ui-quadrant-B0Sw5NGo.cjs +1 -0
- package/dist/{vue-ui-quadrant-BQ5maxJq.js → vue-ui-quadrant-BoQZ375K.js} +155 -153
- package/dist/vue-ui-quick-chart-D3zV1d7t.cjs +15 -0
- package/dist/{vue-ui-quick-chart-DF_510YT.js → vue-ui-quick-chart-vfMN8F1q.js} +164 -161
- package/dist/{vue-ui-radar-DDHd0AYs.js → vue-ui-radar-CAuu6wkh.js} +129 -127
- package/dist/vue-ui-radar-CNMJCAwo.cjs +1 -0
- package/dist/{vue-ui-rating-Chi3OOtp.js → vue-ui-rating-Bm0HZ3du.js} +2 -2
- package/dist/{vue-ui-rating-D9kQcY2a.cjs → vue-ui-rating-dsRDRL98.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-CV1xQOok.js → vue-ui-relation-circle-5OZMN9jR.js} +127 -124
- package/dist/vue-ui-relation-circle-iD7BufNH.cjs +1 -0
- package/dist/{vue-ui-rings-D2ezwyae.js → vue-ui-rings-COefBaQT.js} +114 -112
- package/dist/vue-ui-rings-DC4WG4sK.cjs +2 -0
- package/dist/vue-ui-scatter-5ny76dmi.cjs +1 -0
- package/dist/{vue-ui-scatter-BxbUYPk1.js → vue-ui-scatter-DhO83TZZ.js} +157 -154
- package/dist/{vue-ui-screenshot-Bc7Lv1i8.cjs → vue-ui-screenshot-DABH_phE.cjs} +1 -1
- package/dist/{vue-ui-screenshot-cxDgcXJB.js → vue-ui-screenshot-brillPo5.js} +1 -1
- package/dist/{vue-ui-skeleton-D6ojufhb.js → vue-ui-skeleton-BmJiYGtE.js} +3 -3
- package/dist/{vue-ui-skeleton-DvdPnQbR.cjs → vue-ui-skeleton-_DN0U6W6.cjs} +1 -1
- package/dist/{vue-ui-smiley-DEJ6S-We.cjs → vue-ui-smiley-CW6714mb.cjs} +1 -1
- package/dist/{vue-ui-smiley-9nGRDSn7.js → vue-ui-smiley-D9NRimij.js} +2 -2
- package/dist/{vue-ui-spark-trend-DiNeAGXR.js → vue-ui-spark-trend-BKZj03CQ.js} +5 -5
- package/dist/{vue-ui-spark-trend-BosbwgVe.cjs → vue-ui-spark-trend-expbkxgR.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-DNf_Majv.js → vue-ui-sparkbar-CYRORE5i.js} +4 -4
- package/dist/{vue-ui-sparkbar-DGFKrcg0.cjs → vue-ui-sparkbar-Cr9FtevP.cjs} +1 -1
- package/dist/vue-ui-sparkgauge-BHXFhvTv.cjs +1 -0
- package/dist/{vue-ui-sparkgauge-D89HjxSK.js → vue-ui-sparkgauge-JV4tYB7P.js} +56 -53
- package/dist/{vue-ui-sparkhistogram-CU1_P6AJ.js → vue-ui-sparkhistogram-DKINHX2q.js} +93 -90
- package/dist/vue-ui-sparkhistogram-T4a3DDck.cjs +1 -0
- package/dist/{vue-ui-sparkline-C2McLmh5.js → vue-ui-sparkline-CbRTHtig.js} +109 -106
- package/dist/vue-ui-sparkline-Dc6Sf3n8.cjs +1 -0
- package/dist/{vue-ui-sparkstackbar-Cu4aG9PB.js → vue-ui-sparkstackbar-6u9-2nG4.js} +59 -56
- package/dist/vue-ui-sparkstackbar-CV5SkdsP.cjs +1 -0
- package/dist/{vue-ui-stackbar-6m5CpvNM.js → vue-ui-stackbar-CUppObfj.js} +136 -133
- package/dist/vue-ui-stackbar-CXB-nd71.cjs +6 -0
- package/dist/vue-ui-strip-plot-6IXF_U6-.cjs +1 -0
- package/dist/{vue-ui-strip-plot-DlZ2Eez4.js → vue-ui-strip-plot-doaNZAW4.js} +127 -124
- package/dist/{vue-ui-table-U0_3I0fu.js → vue-ui-table-CZsNuDR5.js} +1 -1
- package/dist/{vue-ui-table-BjhcV9qB.cjs → vue-ui-table-S66UCskD.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-Bfqytiv5.cjs → vue-ui-table-heatmap-BU9UU15H.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-BrGkCaOG.js → vue-ui-table-heatmap-CjohHqDV.js} +4 -4
- package/dist/{vue-ui-table-sparkline-CXlnp8E3.cjs → vue-ui-table-sparkline-CHFFTD0a.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-C1wNBDqO.js → vue-ui-table-sparkline-ab2rwdKB.js} +5 -5
- package/dist/{vue-ui-thermometer-Bx2abW1B.js → vue-ui-thermometer-C72mHwUi.js} +84 -81
- package/dist/vue-ui-thermometer-Ccd6RGh8.cjs +1 -0
- package/dist/vue-ui-timer-C8Fn2B0b.cjs +64 -0
- package/dist/{vue-ui-timer-3UkgrtEj.js → vue-ui-timer-D-LNi6lz.js} +183 -180
- package/dist/{vue-ui-tiremarks-C_xuD4De.js → vue-ui-tiremarks-Bo8EWsJ8.js} +59 -56
- package/dist/vue-ui-tiremarks-SOzvMOz4.cjs +1 -0
- package/dist/vue-ui-treemap-BqTTQrVh.cjs +1 -0
- package/dist/{vue-ui-treemap-BjDSR72h.js → vue-ui-treemap-uj94elVB.js} +123 -120
- package/dist/{vue-ui-vertical-bar-DUhOoSNl.js → vue-ui-vertical-bar-BUTOw-DK.js} +108 -106
- package/dist/vue-ui-vertical-bar-C4Sxun4Q.cjs +4 -0
- package/dist/{vue-ui-waffle-Dpox5n5s.js → vue-ui-waffle-CTWA1frT.js} +107 -104
- package/dist/vue-ui-waffle-DYWGRKdT.cjs +1 -0
- package/dist/vue-ui-wheel-8K72ZKda.js +330 -0
- package/dist/vue-ui-wheel-Cz5-0klT.cjs +1 -0
- package/dist/{vue-ui-word-cloud-u5S86-Ft.js → vue-ui-word-cloud-CSwBPDB8.js} +97 -94
- package/dist/vue-ui-word-cloud-D39riLZb.cjs +1 -0
- package/dist/vue-ui-xy-BbWXjajH.cjs +3 -0
- package/dist/{vue-ui-xy-0nBQDwL2.js → vue-ui-xy-DpDKutd7.js} +65 -58
- package/dist/{vue-ui-xy-canvas-yQlThVu7.cjs → vue-ui-xy-canvas-BCj0SCqe.cjs} +2 -2
- package/dist/{vue-ui-xy-canvas-DI7LiD4U.js → vue-ui-xy-canvas-BQm9gah4.js} +82 -81
- package/package.json +1 -1
- package/dist/Shape-GAZUIBfN.cjs +0 -1
- package/dist/Tooltip-BlGVq6xj.cjs +0 -1
- package/dist/index-DSGAenF3.cjs +0 -9
- package/dist/vue-ui-3d-bar-vvpkf_bv.cjs +0 -19
- package/dist/vue-ui-age-pyramid-CMMnrI3R.cjs +0 -1
- package/dist/vue-ui-bullet-nXPlud-q.cjs +0 -34
- package/dist/vue-ui-candlestick-B6T0LhEG.cjs +0 -2
- package/dist/vue-ui-chestnut-D8Gq_i77.cjs +0 -6
- package/dist/vue-ui-circle-pack-DCz3OWlu.cjs +0 -1
- package/dist/vue-ui-donut-BpgK-I9o.cjs +0 -1
- package/dist/vue-ui-donut-evolution-BVJCDPQ2.cjs +0 -1
- package/dist/vue-ui-dumbbell-DRcemHVG.cjs +0 -9
- package/dist/vue-ui-flow-DdQsK5DR.cjs +0 -1
- package/dist/vue-ui-funnel-Bq4yoTfd.cjs +0 -1
- package/dist/vue-ui-galaxy-ia1UNlpc.cjs +0 -1
- package/dist/vue-ui-gauge-C3FbYOSi.cjs +0 -1
- package/dist/vue-ui-heatmap-BCau2Z3U.cjs +0 -1
- package/dist/vue-ui-history-plot-DL7VjOd0.cjs +0 -1
- package/dist/vue-ui-molecule-B5XDGmLx.cjs +0 -1
- package/dist/vue-ui-mood-radar-DyMCJKFb.cjs +0 -1
- package/dist/vue-ui-nested-donuts-B4Am-r6T.cjs +0 -17
- package/dist/vue-ui-onion-YeBdJrdx.cjs +0 -5
- package/dist/vue-ui-parallel-coordinate-plot-CoecETlm.cjs +0 -8
- package/dist/vue-ui-quadrant-Btzq3qNJ.cjs +0 -1
- package/dist/vue-ui-quick-chart-5cWjffLJ.cjs +0 -15
- package/dist/vue-ui-radar-t22bqFiQ.cjs +0 -1
- package/dist/vue-ui-relation-circle-CWgGPxDJ.cjs +0 -1
- package/dist/vue-ui-rings-CiLJkRwa.cjs +0 -2
- package/dist/vue-ui-scatter-B24gGA8q.cjs +0 -1
- package/dist/vue-ui-sparkgauge-DwK7dzdJ.cjs +0 -1
- package/dist/vue-ui-sparkhistogram-DKoI6_TT.cjs +0 -1
- package/dist/vue-ui-sparkline-Bp7GMRrA.cjs +0 -1
- package/dist/vue-ui-sparkstackbar-Dayxdcr7.cjs +0 -1
- package/dist/vue-ui-stackbar-C21xTVy9.cjs +0 -6
- package/dist/vue-ui-strip-plot-DAo8FMup.cjs +0 -1
- package/dist/vue-ui-thermometer-CBdAwYdC.cjs +0 -1
- package/dist/vue-ui-timer-CRDQbqJ_.cjs +0 -64
- package/dist/vue-ui-tiremarks-C78mfaBr.cjs +0 -1
- package/dist/vue-ui-treemap-CP__1pdb.cjs +0 -1
- package/dist/vue-ui-vertical-bar-DTB8r4LH.cjs +0 -4
- package/dist/vue-ui-waffle-CrVyCF7k.cjs +0 -1
- package/dist/vue-ui-wheel-DV2zgr4d.cjs +0 -1
- package/dist/vue-ui-wheel-ykD8OULJ.js +0 -319
- package/dist/vue-ui-word-cloud-DBkAo2uX.cjs +0 -1
- package/dist/vue-ui-xy-mEVVQr_U.cjs +0 -3
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
import { useSlots as
|
|
2
|
-
import { u as
|
|
3
|
-
import { u as ee } from "./useNestedProp-
|
|
4
|
-
import
|
|
5
|
-
import { _ as
|
|
6
|
-
import { _ as
|
|
7
|
-
import {
|
|
8
|
-
|
|
1
|
+
import { useSlots as ie, onMounted as Y, computed as m, ref as d, watch as G, createElementBlock as r, openBlock as s, normalizeStyle as v, createCommentVNode as y, createBlock as ce, createVNode as q, createElementVNode as p, toDisplayString as w, unref as C, Fragment as x, renderList as $, normalizeClass as F, withCtx as H, renderSlot as U, normalizeProps as X, guardReactiveProps as J } from "vue";
|
|
2
|
+
import { u as de, c as K, t as ve, p as i, a as pe, d as N, b as ge, o as fe, e as Q, g as he, f as V, X as ye, s as me, w as ke, i as Z, x as be } from "./index-9EeNZMz1.js";
|
|
3
|
+
import { u as ee } from "./useNestedProp-df_bKQEI.js";
|
|
4
|
+
import _e from "./vue-ui-skeleton-BmJiYGtE.js";
|
|
5
|
+
import { _ as we } from "./PackageVersion-QRvxRYPv.js";
|
|
6
|
+
import { _ as Ce } from "./Tooltip-Cxc8c50d.js";
|
|
7
|
+
import { u as xe } from "./useChartAccessibility-BWojgys7.js";
|
|
8
|
+
import { _ as $e } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
9
|
+
const Se = ["xmlns", "viewBox"], ze = ["id"], Pe = ["stop-color"], De = ["stop-color"], Fe = ["stop-color"], Ne = {
|
|
9
10
|
id: "stackPill",
|
|
10
11
|
clipPathUnits: "objectBoundingBox"
|
|
11
|
-
},
|
|
12
|
+
}, Ae = ["fill"], Le = {
|
|
12
13
|
key: 0,
|
|
13
14
|
"clip-path": "url(#stackPill)"
|
|
14
|
-
},
|
|
15
|
+
}, Be = ["x", "width", "height", "fill"], Oe = ["x", "width", "height", "fill", "stroke"], Ue = ["onClick", "x", "width", "height", "onMouseenter"], Ve = ["width", "height", "rx"], je = ["onClick"], Ee = { style: { display: "flex", "flex-direction": "row", "align-items": "center", gap: "4px", "justify-content": "center" } }, Me = ["height", "width"], Re = ["fill"], Te = {
|
|
15
16
|
key: 4,
|
|
16
17
|
ref: "source",
|
|
17
18
|
dir: "auto"
|
|
18
|
-
},
|
|
19
|
+
}, Ie = {
|
|
19
20
|
__name: "vue-ui-sparkstackbar",
|
|
20
21
|
props: {
|
|
21
22
|
config: {
|
|
@@ -33,42 +34,42 @@ const xe = ["xmlns", "viewBox"], $e = ["id"], Se = ["stop-color"], ze = ["stop-c
|
|
|
33
34
|
},
|
|
34
35
|
emits: ["selectDatapoint"],
|
|
35
36
|
setup(te, { emit: le }) {
|
|
36
|
-
const { vue_ui_sparkstackbar: oe } =
|
|
37
|
+
const { vue_ui_sparkstackbar: oe } = de(), u = te, ae = ie();
|
|
37
38
|
Y(() => {
|
|
38
39
|
ae["chart-background"] && console.warn("VueUiSparkStackbar does not support the #chart-background slot.");
|
|
39
40
|
});
|
|
40
41
|
const j = m(() => !!u.dataset && u.dataset.length), E = d(null), M = d(K()), A = d(!1), L = d(""), e = m({
|
|
41
|
-
get: () =>
|
|
42
|
+
get: () => R(),
|
|
42
43
|
set: (t) => t
|
|
43
|
-
});
|
|
44
|
-
function
|
|
44
|
+
}), { svgRef: se } = xe({ config: e.value.style.title });
|
|
45
|
+
function R() {
|
|
45
46
|
const t = ee({
|
|
46
47
|
userConfig: u.config,
|
|
47
48
|
defaultConfig: oe
|
|
48
49
|
});
|
|
49
50
|
return t.theme ? {
|
|
50
51
|
...ee({
|
|
51
|
-
userConfig:
|
|
52
|
+
userConfig: pe.vue_ui_sparkstackbar[t.theme] || u.config,
|
|
52
53
|
defaultConfig: t
|
|
53
54
|
}),
|
|
54
|
-
customPalette:
|
|
55
|
+
customPalette: ve[t.theme] || i
|
|
55
56
|
} : t;
|
|
56
57
|
}
|
|
57
58
|
G(() => u.config, (t) => {
|
|
58
|
-
e.value =
|
|
59
|
+
e.value = R(), T();
|
|
59
60
|
}, { deep: !0 }), G(() => u.dataset, (t) => {
|
|
60
61
|
k.value = u.dataset.map((a, l) => ({
|
|
61
62
|
...a,
|
|
62
63
|
color: a.color ? N(a.color) : S.value[l] || i[l] || i[l % i.length]
|
|
63
64
|
}));
|
|
64
65
|
}, { deep: !0 });
|
|
65
|
-
const S = m(() =>
|
|
66
|
+
const S = m(() => ge(e.value.customPalette)), k = d(u.dataset.map((t, a) => ({
|
|
66
67
|
...t,
|
|
67
68
|
value: e.value.style.animation.show ? 0 : t.value || 0,
|
|
68
69
|
color: t.color ? N(t.color) : S.value[a] || i[a] || i[a % i.length]
|
|
69
70
|
}))), _ = d(!0);
|
|
70
71
|
Y(() => {
|
|
71
|
-
if (
|
|
72
|
+
if (T(), e.value.style.animation.show) {
|
|
72
73
|
let h = function() {
|
|
73
74
|
o += l / t, o < l ? (k.value = k.value.map((n, c) => ({
|
|
74
75
|
...n,
|
|
@@ -86,12 +87,12 @@ const xe = ["xmlns", "viewBox"], $e = ["id"], Se = ["stop-color"], ze = ["stop-c
|
|
|
86
87
|
_.value = !0, h();
|
|
87
88
|
}
|
|
88
89
|
});
|
|
89
|
-
function
|
|
90
|
-
|
|
90
|
+
function T() {
|
|
91
|
+
fe(u.dataset) ? Q({
|
|
91
92
|
componentName: "VueUiSparkStackbar",
|
|
92
93
|
type: "dataset"
|
|
93
94
|
}) : u.dataset.forEach((t, a) => {
|
|
94
|
-
|
|
95
|
+
he({
|
|
95
96
|
datasetObject: t,
|
|
96
97
|
requiredAttributes: ["name", "value"]
|
|
97
98
|
}).forEach((l) => {
|
|
@@ -107,8 +108,8 @@ const xe = ["xmlns", "viewBox"], $e = ["id"], Se = ["stop-color"], ze = ["stop-c
|
|
|
107
108
|
const g = d({
|
|
108
109
|
width: 500,
|
|
109
110
|
height: 16
|
|
110
|
-
}), f = d([]),
|
|
111
|
-
const l = t.value || 0, o = l /
|
|
111
|
+
}), f = d([]), I = m(() => u.dataset.map((t) => t.value || 0).filter((t, a) => !f.value.includes(a)).reduce((t, a) => t + a, 0)), z = m(() => k.value.map((t, a) => {
|
|
112
|
+
const l = t.value || 0, o = l / I.value, h = isNaN(o) ? 0 : o, n = h * g.value.width;
|
|
112
113
|
return {
|
|
113
114
|
...t,
|
|
114
115
|
value: l,
|
|
@@ -121,7 +122,7 @@ const xe = ["xmlns", "viewBox"], $e = ["id"], Se = ["stop-color"], ze = ["stop-c
|
|
|
121
122
|
})
|
|
122
123
|
};
|
|
123
124
|
})), B = m(() => z.value.filter((t, a) => !f.value.includes(a)));
|
|
124
|
-
function
|
|
125
|
+
function re(t) {
|
|
125
126
|
f.value.includes(t) ? f.value = f.value.filter((a) => a !== t) : f.value.length < k.value.length - 1 && f.value.push(t);
|
|
126
127
|
}
|
|
127
128
|
const P = m(() => {
|
|
@@ -133,17 +134,17 @@ const xe = ["xmlns", "viewBox"], $e = ["id"], Se = ["stop-color"], ze = ["stop-c
|
|
|
133
134
|
start: t
|
|
134
135
|
}), t += B.value[l].width;
|
|
135
136
|
return a;
|
|
136
|
-
}),
|
|
137
|
+
}), ne = le;
|
|
137
138
|
function W(t, a) {
|
|
138
|
-
|
|
139
|
+
ne("selectDatapoint", { datapoint: t, index: a });
|
|
139
140
|
}
|
|
140
141
|
const O = d(null), D = d(!1), b = d(null);
|
|
141
|
-
function
|
|
142
|
+
function ue({ datapoint: t, seriesIndex: a }) {
|
|
142
143
|
if (!e.value.style.tooltip.show)
|
|
143
144
|
return;
|
|
144
145
|
O.value = { datapoint: t, seriesIndex: a, config: e.value, series: z.value }, A.value = !0, b.value = a;
|
|
145
146
|
const l = e.value.style.tooltip.customFormat;
|
|
146
|
-
if (
|
|
147
|
+
if (be(l))
|
|
147
148
|
try {
|
|
148
149
|
const o = l({
|
|
149
150
|
seriesIndex: a,
|
|
@@ -195,11 +196,13 @@ const xe = ["xmlns", "viewBox"], $e = ["id"], Se = ["stop-color"], ze = ["stop-c
|
|
|
195
196
|
], 4)) : y("", !0),
|
|
196
197
|
j.value ? (s(), r("svg", {
|
|
197
198
|
key: 1,
|
|
198
|
-
|
|
199
|
+
ref_key: "svgRef",
|
|
200
|
+
ref: se,
|
|
201
|
+
xmlns: C(ye),
|
|
199
202
|
width: "100%",
|
|
200
203
|
viewBox: `0 0 ${g.value.width} ${g.value.height}`
|
|
201
204
|
}, [
|
|
202
|
-
q(
|
|
205
|
+
q(we),
|
|
203
206
|
p("defs", null, [
|
|
204
207
|
(s(!0), r(x, null, $(P.value, (l, o) => (s(), r("linearGradient", {
|
|
205
208
|
key: `stack_gradient_${o}`,
|
|
@@ -209,17 +212,17 @@ const xe = ["xmlns", "viewBox"], $e = ["id"], Se = ["stop-color"], ze = ["stop-c
|
|
|
209
212
|
p("stop", {
|
|
210
213
|
offset: "0%",
|
|
211
214
|
"stop-color": l.color
|
|
212
|
-
}, null, 8,
|
|
215
|
+
}, null, 8, Pe),
|
|
213
216
|
p("stop", {
|
|
214
217
|
offset: "50%",
|
|
215
|
-
"stop-color": C(
|
|
216
|
-
}, null, 8,
|
|
218
|
+
"stop-color": C(me)(C(ke)(l.color, 0.05), 100 - e.value.style.bar.gradient.intensity)
|
|
219
|
+
}, null, 8, De),
|
|
217
220
|
p("stop", {
|
|
218
221
|
offset: "100%",
|
|
219
222
|
"stop-color": l.color
|
|
220
|
-
}, null, 8,
|
|
221
|
-
], 8,
|
|
222
|
-
p("clipPath",
|
|
223
|
+
}, null, 8, Fe)
|
|
224
|
+
], 8, ze))), 128)),
|
|
225
|
+
p("clipPath", Ne, [
|
|
223
226
|
p("rect", {
|
|
224
227
|
x: "0.005",
|
|
225
228
|
y: "-2",
|
|
@@ -228,10 +231,10 @@ const xe = ["xmlns", "viewBox"], $e = ["id"], Se = ["stop-color"], ze = ["stop-c
|
|
|
228
231
|
rx: "3",
|
|
229
232
|
ry: "3",
|
|
230
233
|
fill: e.value.style.backgroundColor
|
|
231
|
-
}, null, 8,
|
|
234
|
+
}, null, 8, Ae)
|
|
232
235
|
])
|
|
233
236
|
]),
|
|
234
|
-
|
|
237
|
+
I.value > 0 ? (s(), r("g", Le, [
|
|
235
238
|
(s(!0), r(x, null, $(P.value, (l, o) => (s(), r("rect", {
|
|
236
239
|
key: `stack_underlayer_${o}`,
|
|
237
240
|
x: l.start,
|
|
@@ -243,7 +246,7 @@ const xe = ["xmlns", "viewBox"], $e = ["id"], Se = ["stop-color"], ze = ["stop-c
|
|
|
243
246
|
style: v({
|
|
244
247
|
opacity: b.value !== null && e.value.style.tooltip.show ? b.value === o ? 1 : 0.5 : 1
|
|
245
248
|
})
|
|
246
|
-
}, null, 14,
|
|
249
|
+
}, null, 14, Be))), 128)),
|
|
247
250
|
(s(!0), r(x, null, $(P.value, (l, o) => (s(), r("rect", {
|
|
248
251
|
key: `stack_${o}`,
|
|
249
252
|
x: l.start,
|
|
@@ -257,7 +260,7 @@ const xe = ["xmlns", "viewBox"], $e = ["id"], Se = ["stop-color"], ze = ["stop-c
|
|
|
257
260
|
style: v({
|
|
258
261
|
opacity: b.value !== null && e.value.style.tooltip.show ? b.value === o ? 1 : 0.5 : 1
|
|
259
262
|
})
|
|
260
|
-
}, null, 14,
|
|
263
|
+
}, null, 14, Oe))), 128)),
|
|
261
264
|
(s(!0), r(x, null, $(P.value, (l, o) => (s(), r("rect", {
|
|
262
265
|
key: `stack_trap_${o}`,
|
|
263
266
|
onClick: () => W(l, o),
|
|
@@ -268,11 +271,11 @@ const xe = ["xmlns", "viewBox"], $e = ["id"], Se = ["stop-color"], ze = ["stop-c
|
|
|
268
271
|
fill: "transparent",
|
|
269
272
|
stroke: "none",
|
|
270
273
|
class: F({ animated: !_.value }),
|
|
271
|
-
onMouseenter: () =>
|
|
274
|
+
onMouseenter: () => ue({ datapoint: l, seriesIndex: o }),
|
|
272
275
|
onMouseleave: a[0] || (a[0] = (h) => {
|
|
273
276
|
A.value = !1, b.value = null;
|
|
274
277
|
})
|
|
275
|
-
}, null, 42,
|
|
278
|
+
}, null, 42, Ue))), 128))
|
|
276
279
|
])) : (s(), r("rect", {
|
|
277
280
|
key: 1,
|
|
278
281
|
x: 2,
|
|
@@ -283,9 +286,9 @@ const xe = ["xmlns", "viewBox"], $e = ["id"], Se = ["stop-color"], ze = ["stop-c
|
|
|
283
286
|
"stroke-width": "2",
|
|
284
287
|
fill: "transparent",
|
|
285
288
|
rx: (g.value.height - 4) / 2
|
|
286
|
-
}, null, 8,
|
|
287
|
-
], 8,
|
|
288
|
-
j.value ? y("", !0) : (s(),
|
|
289
|
+
}, null, 8, Ve))
|
|
290
|
+
], 8, Se)) : y("", !0),
|
|
291
|
+
j.value ? y("", !0) : (s(), ce(_e, {
|
|
289
292
|
key: 2,
|
|
290
293
|
config: {
|
|
291
294
|
type: "sparkStackbar",
|
|
@@ -306,10 +309,10 @@ const xe = ["xmlns", "viewBox"], $e = ["id"], Se = ["stop-color"], ze = ["stop-c
|
|
|
306
309
|
style: v(`font-size:${e.value.style.legend.fontSize}px;`),
|
|
307
310
|
class: F({ "vue-ui-sparkstackbar-legend-item": !0, "vue-ui-sparkstackbar-legend-item-unselected": f.value.includes(o) }),
|
|
308
311
|
onClick: (h) => {
|
|
309
|
-
|
|
312
|
+
re(o), W(l, o);
|
|
310
313
|
}
|
|
311
314
|
}, [
|
|
312
|
-
p("div",
|
|
315
|
+
p("div", Ee, [
|
|
313
316
|
(s(), r("svg", {
|
|
314
317
|
height: `${e.value.style.legend.fontSize}px`,
|
|
315
318
|
width: `${e.value.style.legend.fontSize}px`,
|
|
@@ -320,8 +323,8 @@ const xe = ["xmlns", "viewBox"], $e = ["id"], Se = ["stop-color"], ze = ["stop-c
|
|
|
320
323
|
cy: 5,
|
|
321
324
|
r: 5,
|
|
322
325
|
fill: l.color
|
|
323
|
-
}, null, 8,
|
|
324
|
-
], 8,
|
|
326
|
+
}, null, 8, Re)
|
|
327
|
+
], 8, Me)),
|
|
325
328
|
p("span", {
|
|
326
329
|
style: v(`color:${e.value.style.legend.name.color}; font-weight:${e.value.style.legend.name.bold ? "bold" : "normal"}`)
|
|
327
330
|
}, w(l.name), 5),
|
|
@@ -344,9 +347,9 @@ const xe = ["xmlns", "viewBox"], $e = ["id"], Se = ["stop-color"], ze = ["stop-c
|
|
|
344
347
|
{ datapoint: l, seriesIndex: o }
|
|
345
348
|
)) + ") ", 5)) : y("", !0)
|
|
346
349
|
])
|
|
347
|
-
], 14,
|
|
350
|
+
], 14, je))), 256))
|
|
348
351
|
], 4)) : y("", !0),
|
|
349
|
-
q(
|
|
352
|
+
q(Ce, {
|
|
350
353
|
show: A.value && e.value.style.tooltip.show,
|
|
351
354
|
parent: E.value,
|
|
352
355
|
backgroundColor: e.value.style.tooltip.backgroundColor,
|
|
@@ -370,12 +373,12 @@ const xe = ["xmlns", "viewBox"], $e = ["id"], Se = ["stop-color"], ze = ["stop-c
|
|
|
370
373
|
]),
|
|
371
374
|
_: 3
|
|
372
375
|
}, 8, ["show", "parent", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "content", "isCustom", "offsetY"]),
|
|
373
|
-
t.$slots.source ? (s(), r("div",
|
|
376
|
+
t.$slots.source ? (s(), r("div", Te, [
|
|
374
377
|
U(t.$slots, "source", {}, void 0, !0)
|
|
375
378
|
], 512)) : y("", !0)
|
|
376
379
|
], 4));
|
|
377
380
|
}
|
|
378
|
-
},
|
|
381
|
+
}, Qe = /* @__PURE__ */ $e(Ie, [["__scopeId", "data-v-7955299f"]]);
|
|
379
382
|
export {
|
|
380
|
-
|
|
383
|
+
Qe as default
|
|
381
384
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),a=require("./index-DEnRHTzk.cjs"),V=require("./useNestedProp-BNT60LxO.cjs"),U=require("./vue-ui-skeleton-_DN0U6W6.cjs"),M=require("./PackageVersion-DJKkRuOD.cjs"),j=require("./Tooltip-ClMeqejQ.cjs"),R=require("./useChartAccessibility-Cm7nkzTG.cjs"),H=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),I=["xmlns","viewBox"],W=["id"],Y=["stop-color"],G=["stop-color"],X=["stop-color"],J={id:"stackPill",clipPathUnits:"objectBoundingBox"},K=["fill"],Q={key:0,"clip-path":"url(#stackPill)"},Z=["x","width","height","fill"],ee=["x","width","height","fill","stroke"],te=["onClick","x","width","height","onMouseenter"],le=["width","height","rx"],oe=["onClick"],ae={style:{display:"flex","flex-direction":"row","align-items":"center",gap:"4px","justify-content":"center"}},re=["height","width"],ne=["fill"],se={key:4,ref:"source",dir:"auto"},ue={__name:"vue-ui-sparkstackbar",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectDatapoint"],setup(P,{emit:D}){const{vue_ui_sparkstackbar:L}=a.useConfig(),u=P,F=e.useSlots();e.onMounted(()=>{F["chart-background"]&&console.warn("VueUiSparkStackbar does not support the #chart-background slot.")});const x=e.computed(()=>!!u.dataset&&u.dataset.length),B=e.ref(null),S=e.ref(a.createUid()),b=e.ref(!1),C=e.ref(""),t=e.computed({get:()=>$(),set:l=>l}),{svgRef:A}=R.useChartAccessibility({config:t.value.style.title});function $(){const l=V.useNestedProp({userConfig:u.config,defaultConfig:L});return l.theme?{...V.useNestedProp({userConfig:a.themes.vue_ui_sparkstackbar[l.theme]||u.config,defaultConfig:l}),customPalette:a.themePalettes[l.theme]||a.palette}:l}e.watch(()=>u.config,l=>{t.value=$(),E()},{deep:!0}),e.watch(()=>u.dataset,l=>{p.value=u.dataset.map((n,o)=>({...n,color:n.color?a.convertColorToHex(n.color):f.value[o]||a.palette[o]||a.palette[o%a.palette.length]}))},{deep:!0});const f=e.computed(()=>a.convertCustomPalette(t.value.customPalette)),p=e.ref(u.dataset.map((l,n)=>({...l,value:t.value.style.animation.show?0:l.value||0,color:l.color?a.convertColorToHex(l.color):f.value[n]||a.palette[n]||a.palette[n%a.palette.length]}))),g=e.ref(!0);e.onMounted(()=>{if(E(),t.value.style.animation.show){let v=function(){r+=o/l,r<o?(p.value=p.value.map((s,i)=>({...s,value:s.value+=n[i],color:s.color?a.convertColorToHex(s.color):f.value[i]||a.palette[i]||a.palette[i%a.palette.length]})),requestAnimationFrame(v)):(g.value=!1,p.value=u.dataset.map((s,i)=>({...s,value:s.value||0,color:s.color?a.convertColorToHex(s.color):f.value[i]||a.palette[i]||a.palette[i%a.palette.length],id:a.createUid()})))};const l=t.value.style.animation.animationFrames,n=u.dataset.map((s,i)=>s.value/l),o=u.dataset.map(s=>s.value||0).reduce((s,i)=>s+i,0);let r=0;g.value=!0,v()}});function E(){a.objectIsEmpty(u.dataset)?a.error({componentName:"VueUiSparkStackbar",type:"dataset"}):u.dataset.forEach((l,n)=>{a.getMissingDatasetAttributes({datasetObject:l,requiredAttributes:["name","value"]}).forEach(o=>{a.error({componentName:"VueUiSparkStackbar",type:"datasetSerieAttribute",property:o,index:n})})})}const c=e.ref({width:500,height:16}),d=e.ref([]),N=e.computed(()=>u.dataset.map(l=>l.value||0).filter((l,n)=>!d.value.includes(n)).reduce((l,n)=>l+n,0)),y=e.computed(()=>p.value.map((l,n)=>{const o=l.value||0,r=o/N.value,v=isNaN(r)?0:r,s=v*c.value.width;return{...l,value:o,proportion:v,width:s,proportionLabel:a.dataLabel({v:v*100,s:"%",r:t.value.style.legend.percentage.rounding})}})),_=e.computed(()=>y.value.filter((l,n)=>!d.value.includes(n)));function T(l){d.value.includes(l)?d.value=d.value.filter(n=>n!==l):d.value.length<p.value.length-1&&d.value.push(l)}const h=e.computed(()=>{let l=0;const n=[];for(let o=0;o<_.value.length;o+=1)n.push({..._.value[o],start:l}),l+=_.value[o].width;return n}),q=D;function z(l,n){q("selectDatapoint",{datapoint:l,index:n})}const w=e.ref(null),k=e.ref(!1),m=e.ref(null);function O({datapoint:l,seriesIndex:n}){if(!t.value.style.tooltip.show)return;w.value={datapoint:l,seriesIndex:n,config:t.value,series:y.value},b.value=!0,m.value=n;const o=t.value.style.tooltip.customFormat;if(a.isFunction(o))try{const r=o({seriesIndex:n,datapoint:l,series:y.value,config:t.value});typeof r=="string"&&(C.value=r,k.value=!0)}catch{console.warn("Custom format cannot be applied."),k.value=!1}if(!k.value){let r="";r+=`<div style="width:100%;text-align:center;border-bottom:1px solid ${t.value.style.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l.name}</div>`,r+=`<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${l.color}"/></svg>`,r+=`<b>${l.proportionLabel}</b>`,r+=`<span>(${a.applyDataLabel(t.value.style.legend.value.formatter,l.value,a.dataLabel({p:t.value.style.legend.value.prefix,v:l.value,s:t.value.style.legend.value.suffix,r:t.value.style.legend.value.rounding}),{datapoint:l,seriesIndex:n})})</span>`,C.value=`<div>${r}</div>`}}return(l,n)=>(e.openBlock(),e.createElementBlock("div",{class:"vue-ui-spark-stackbar",ref_key:"sparkstackbarChart",ref:B,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",{class:"atom-title",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,class:"atom-subtitle",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),x.value?(e.openBlock(),e.createElementBlock("svg",{key:1,ref_key:"svgRef",ref:A,xmlns:e.unref(a.XMLNS),width:"100%",viewBox:`0 0 ${c.value.width} ${c.value.height}`},[e.createVNode(M._sfc_main),e.createElementVNode("defs",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,(o,r)=>(e.openBlock(),e.createElementBlock("linearGradient",{key:`stack_gradient_${r}`,gradientTransform:"rotate(90)",id:`stack_gradient_${r}_${S.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":o.color},null,8,Y),e.createElementVNode("stop",{offset:"50%","stop-color":e.unref(a.setOpacity)(e.unref(a.shiftHue)(o.color,.05),100-t.value.style.bar.gradient.intensity)},null,8,G),e.createElementVNode("stop",{offset:"100%","stop-color":o.color},null,8,X)],8,W))),128)),e.createElementVNode("clipPath",J,[e.createElementVNode("rect",{x:"0.005",y:"-2",width:"0.99",height:"5",rx:"3",ry:"3",fill:t.value.style.backgroundColor},null,8,K)])]),N.value>0?(e.openBlock(),e.createElementBlock("g",Q,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,(o,r)=>(e.openBlock(),e.createElementBlock("rect",{key:`stack_underlayer_${r}`,x:o.start,y:0,width:o.width,height:c.value.height,fill:t.value.style.bar.gradient.underlayerColor,class:e.normalizeClass({animated:!g.value}),style:e.normalizeStyle({opacity:m.value!==null&&t.value.style.tooltip.show?m.value===r?1:.5:1})},null,14,Z))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,(o,r)=>(e.openBlock(),e.createElementBlock("rect",{key:`stack_${r}`,x:o.start,y:0,width:o.width,height:c.value.height,fill:t.value.style.bar.gradient.show?`url(#stack_gradient_${r}_${S.value})`:o.color,stroke:t.value.style.backgroundColor,"stroke-linecap":"round",class:e.normalizeClass({animated:!g.value}),style:e.normalizeStyle({opacity:m.value!==null&&t.value.style.tooltip.show?m.value===r?1:.5:1})},null,14,ee))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,(o,r)=>(e.openBlock(),e.createElementBlock("rect",{key:`stack_trap_${r}`,onClick:()=>z(o,r),x:o.start,y:0,width:o.width,height:c.value.height,fill:"transparent",stroke:"none",class:e.normalizeClass({animated:!g.value}),onMouseenter:()=>O({datapoint:o,seriesIndex:r}),onMouseleave:n[0]||(n[0]=v=>{b.value=!1,m.value=null})},null,42,te))),128))])):(e.openBlock(),e.createElementBlock("rect",{key:1,x:2,y:1,width:c.value.width-4,height:c.value.height-2,stroke:"#CCCCCC","stroke-width":"2",fill:"transparent",rx:(c.value.height-4)/2},null,8,le))],8,I)):e.createCommentVNode("",!0),x.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(U.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(y.value,(o,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":d.value.includes(r)}),onClick:v=>{T(r),z(o,r)}},[e.createElementVNode("div",ae,[(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:o.color},null,8,ne)],8,re)),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(o.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(d.value.includes(r)?" - ":o.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(a.applyDataLabel)(t.value.style.legend.value.formatter,o.value,e.unref(a.dataLabel)({p:t.value.style.legend.value.prefix,v:o.value,s:t.value.style.legend.value.suffix,r:t.value.style.legend.value.rounding}),{datapoint:o,seriesIndex:r}))+") ",5)):e.createCommentVNode("",!0)])],14,oe))),256))],4)):e.createCommentVNode("",!0),e.createVNode(j._sfc_main,{show:b.value&&t.value.style.tooltip.show,parent:B.value,backgroundColor:t.value.style.tooltip.backgroundColor,color:t.value.style.tooltip.color,fontSize:t.value.style.tooltip.fontSize,borderRadius:t.value.style.tooltip.borderRadius,borderColor:t.value.style.tooltip.borderColor,borderWidth:t.value.style.tooltip.borderWidth,backgroundOpacity:t.value.style.tooltip.backgroundOpacity,position:t.value.style.tooltip.position,content:C.value,isCustom:k.value,offsetY:-124+t.value.style.tooltip.offsetY,blockShiftY:!0},{"tooltip-before":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...w.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...w.value})),void 0,!0)]),_:3},8,["show","parent","backgroundColor","color","fontSize","borderRadius","borderColor","borderWidth","backgroundOpacity","position","content","isCustom","offsetY"]),l.$slots.source?(e.openBlock(),e.createElementBlock("div",se,[e.renderSlot(l.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0)],4))}},ie=H._export_sfc(ue,[["__scopeId","data-v-7955299f"]]);exports.default=ie;
|