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,33 +1,34 @@
|
|
|
1
|
-
import { computed as h, onMounted as
|
|
2
|
-
import { u as
|
|
3
|
-
import { L as
|
|
4
|
-
import { _ as
|
|
5
|
-
import { _ as
|
|
6
|
-
import { D as
|
|
7
|
-
import { u as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { u as be } from "./useNestedProp-
|
|
11
|
-
import { _ as
|
|
12
|
-
import { P as
|
|
13
|
-
import { u as
|
|
14
|
-
import {
|
|
15
|
-
|
|
1
|
+
import { computed as h, onMounted as Ae, ref as u, watch as Ie, createElementBlock as n, openBlock as o, unref as i, normalizeStyle as E, normalizeClass as V, createBlock as $, createCommentVNode as c, renderSlot as v, createVNode as ie, createSlots as Ee, withCtx as d, normalizeProps as S, guardReactiveProps as N, createElementVNode as _, Fragment as ce, renderList as ve, createTextVNode as de, toDisplayString as M, nextTick as Ve } from "vue";
|
|
2
|
+
import { u as Me, o as De, e as he, g as Be, c as pe, t as Ge, p as D, a as ze, b as Ue, J as ye, d as We, M as He, f as k, X as Re, i as fe, x as ge, q as Xe, r as je, y as Ye } from "./index-9EeNZMz1.js";
|
|
3
|
+
import { L as qe } from "./Legend-NKGwxkI7.js";
|
|
4
|
+
import { _ as Je } from "./Title-BI8etrRU.js";
|
|
5
|
+
import { _ as Ke } from "./Tooltip-Cxc8c50d.js";
|
|
6
|
+
import { D as Qe } from "./DataTable-TjJIVFlL.js";
|
|
7
|
+
import { u as Ze, U as et } from "./usePrinter-ngrh00Ym.js";
|
|
8
|
+
import tt from "./vue-ui-skeleton-BmJiYGtE.js";
|
|
9
|
+
import lt from "./vue-ui-accordion-Qo8JxnIN.js";
|
|
10
|
+
import { u as be } from "./useNestedProp-df_bKQEI.js";
|
|
11
|
+
import { _ as at } from "./PackageVersion-QRvxRYPv.js";
|
|
12
|
+
import { P as ot } from "./PenAndPaper-CxC1lWGK.js";
|
|
13
|
+
import { u as st } from "./useUserOptionState-BIvW1Kz7.js";
|
|
14
|
+
import { u as rt } from "./useChartAccessibility-BWojgys7.js";
|
|
15
|
+
import { _ as ut } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
|
+
const nt = ["id"], it = {
|
|
16
17
|
key: 1,
|
|
17
18
|
ref: "noTitle",
|
|
18
19
|
class: "vue-data-ui-no-title-space",
|
|
19
20
|
style: "height:36px; width: 100%;background:transparent"
|
|
20
|
-
},
|
|
21
|
+
}, ct = {
|
|
21
22
|
key: 2,
|
|
22
23
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
23
|
-
},
|
|
24
|
+
}, vt = ["xmlns", "viewBox"], dt = ["width", "height"], ht = ["id"], pt = ["stdDeviation"], yt = ["d", "stroke", "stroke-width"], ft = ["d", "stroke", "stroke-width"], gt = ["filter"], bt = ["d", "stroke", "stroke-width"], mt = ["d", "stroke-width", "onMouseenter", "onClick"], kt = {
|
|
24
25
|
key: 5,
|
|
25
26
|
class: "vue-data-ui-watermark"
|
|
26
|
-
},
|
|
27
|
+
}, Ct = ["onClick"], wt = { key: 0 }, $t = { key: 1 }, xt = {
|
|
27
28
|
key: 8,
|
|
28
29
|
ref: "source",
|
|
29
30
|
dir: "auto"
|
|
30
|
-
},
|
|
31
|
+
}, _t = ["innerHTML"], Tt = {
|
|
31
32
|
__name: "vue-ui-galaxy",
|
|
32
33
|
props: {
|
|
33
34
|
config: {
|
|
@@ -44,17 +45,17 @@ const rt = ["id"], ut = {
|
|
|
44
45
|
}
|
|
45
46
|
},
|
|
46
47
|
emits: ["selectLegend", "selectDatapoint"],
|
|
47
|
-
setup(me, { expose: ke, emit:
|
|
48
|
-
const { vue_ui_galaxy:
|
|
49
|
-
|
|
50
|
-
|
|
48
|
+
setup(me, { expose: ke, emit: Ce }) {
|
|
49
|
+
const { vue_ui_galaxy: we } = Me(), f = me, L = h(() => !!f.dataset && f.dataset.length);
|
|
50
|
+
Ae(() => {
|
|
51
|
+
R();
|
|
51
52
|
});
|
|
52
|
-
function
|
|
53
|
-
|
|
53
|
+
function R() {
|
|
54
|
+
De(f.dataset) ? he({
|
|
54
55
|
componentName: "VueUiGalaxy",
|
|
55
56
|
type: "dataset"
|
|
56
|
-
}) :
|
|
57
|
-
|
|
57
|
+
}) : f.dataset.forEach((t, a) => {
|
|
58
|
+
Be({
|
|
58
59
|
datasetObject: t,
|
|
59
60
|
requiredAttributes: ["name", "values"]
|
|
60
61
|
}).forEach((l) => {
|
|
@@ -67,30 +68,30 @@ const rt = ["id"], ut = {
|
|
|
67
68
|
});
|
|
68
69
|
});
|
|
69
70
|
}
|
|
70
|
-
const
|
|
71
|
+
const T = u(pe()), F = u(null), $e = u(null), B = u(!1), G = u(""), g = u(null), X = u(0), j = u(0), Y = u(0), q = u(0), e = h({
|
|
71
72
|
get: () => Q(),
|
|
72
73
|
set: (t) => t
|
|
73
|
-
}), { userOptionsVisible: z, setUserOptionsVisibility: J, keepUserOptionState: K } =
|
|
74
|
+
}), { userOptionsVisible: z, setUserOptionsVisibility: J, keepUserOptionState: K } = st({ config: e.value }), { svgRef: xe } = rt({ config: e.value.style.chart.title });
|
|
74
75
|
function Q() {
|
|
75
76
|
const t = be({
|
|
76
|
-
userConfig:
|
|
77
|
-
defaultConfig:
|
|
77
|
+
userConfig: f.config,
|
|
78
|
+
defaultConfig: we
|
|
78
79
|
});
|
|
79
80
|
return t.theme ? {
|
|
80
81
|
...be({
|
|
81
|
-
userConfig:
|
|
82
|
+
userConfig: ze.vue_ui_galaxy[t.theme] || f.config,
|
|
82
83
|
defaultConfig: t
|
|
83
84
|
}),
|
|
84
|
-
customPalette:
|
|
85
|
+
customPalette: Ge[t.theme] || D
|
|
85
86
|
} : t;
|
|
86
87
|
}
|
|
87
|
-
|
|
88
|
-
e.value = Q(), z.value = !e.value.userOptions.showOnChartHover,
|
|
88
|
+
Ie(() => f.config, (t) => {
|
|
89
|
+
e.value = Q(), z.value = !e.value.userOptions.showOnChartHover, R(), j.value += 1, Y.value += 1, q.value += 1, p.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, p.value.showTable = e.value.table.show, p.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
89
90
|
}, { deep: !0 });
|
|
90
|
-
const { isPrinting: Z, isImaging: ee, generatePdf: te, generateImage: le } =
|
|
91
|
-
elementId: `galaxy_${
|
|
91
|
+
const { isPrinting: Z, isImaging: ee, generatePdf: te, generateImage: le } = Ze({
|
|
92
|
+
elementId: `galaxy_${T.value}`,
|
|
92
93
|
fileName: e.value.style.chart.title.text || "vue-ui-galaxy"
|
|
93
|
-
}),
|
|
94
|
+
}), _e = h(() => e.value.userOptions.show && !e.value.style.chart.title.text), Te = h(() => Ue(e.value.customPalette)), p = u({
|
|
94
95
|
dataLabels: {
|
|
95
96
|
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
96
97
|
},
|
|
@@ -100,7 +101,7 @@ const rt = ["id"], ut = {
|
|
|
100
101
|
height: 180,
|
|
101
102
|
// or 250 if non fibo
|
|
102
103
|
width: 250
|
|
103
|
-
}), ae =
|
|
104
|
+
}), ae = Ce, y = u([]);
|
|
104
105
|
function U(t) {
|
|
105
106
|
y.value.includes(t.id) ? y.value = y.value.filter((a) => a !== t.id) : y.value.push(t.id), ae("selectLegend", O.value.map((a) => ({
|
|
106
107
|
name: a.name,
|
|
@@ -108,32 +109,32 @@ const rt = ["id"], ut = {
|
|
|
108
109
|
value: a.value
|
|
109
110
|
})));
|
|
110
111
|
}
|
|
111
|
-
const
|
|
112
|
+
const C = h(() => f.dataset.map((t, a) => ({
|
|
112
113
|
name: t.name,
|
|
113
|
-
color:
|
|
114
|
+
color: We(t.color) || Te.value[a] || D[a] || D[a % D.length],
|
|
114
115
|
value: t.values ? ye(t.values).reduce((l, s) => l + s, 0) : 0,
|
|
115
116
|
absoluteValues: ye(t.values),
|
|
116
117
|
id: pe(),
|
|
117
118
|
seriesIndex: a
|
|
118
119
|
})).sort((t, a) => a.value - t.value));
|
|
119
|
-
function
|
|
120
|
-
return
|
|
120
|
+
function Pe() {
|
|
121
|
+
return C.value.map((t) => ({
|
|
121
122
|
name: t.name,
|
|
122
123
|
color: t.color,
|
|
123
124
|
value: t.value
|
|
124
125
|
}));
|
|
125
126
|
}
|
|
126
|
-
const b = h(() =>
|
|
127
|
+
const b = h(() => C.value.filter((t) => !y.value.includes(t.id)).map((t) => t.value).reduce((t, a) => t + a, 0)), Oe = u(190), oe = h(() => C.value.filter((t) => !y.value.includes(t.id))), O = h(() => {
|
|
127
128
|
const t = [];
|
|
128
129
|
for (let a = 0; a < oe.value.length; a += 1) {
|
|
129
130
|
const l = oe.value[a];
|
|
130
|
-
let s = l.value / b.value *
|
|
131
|
+
let s = l.value / b.value * Oe.value;
|
|
131
132
|
a > 0 && t.length && (s += t[a - 1].points), t.push({
|
|
132
133
|
points: s,
|
|
133
134
|
...l,
|
|
134
135
|
seriesIndex: a,
|
|
135
136
|
proportion: l.value / b.value,
|
|
136
|
-
path:
|
|
137
|
+
path: He({
|
|
137
138
|
points: s,
|
|
138
139
|
startX: 115 + e.value.style.chart.layout.arcs.offsetX,
|
|
139
140
|
startY: 90 + e.value.style.chart.layout.arcs.offsetY
|
|
@@ -142,30 +143,30 @@ const rt = ["id"], ut = {
|
|
|
142
143
|
}
|
|
143
144
|
return t.filter((a, l) => !y.value.includes(a.id)).toSorted((a, l) => l.points - a.points);
|
|
144
145
|
}), x = u(!1);
|
|
145
|
-
function
|
|
146
|
-
x.value = t,
|
|
146
|
+
function Se(t) {
|
|
147
|
+
x.value = t, X.value += 1;
|
|
147
148
|
}
|
|
148
149
|
const W = u(null);
|
|
149
|
-
function
|
|
150
|
+
function Ne({ datapoint: t, _relativeIndex: a, seriesIndex: l, show: s = !1 }) {
|
|
150
151
|
W.value = {
|
|
151
152
|
datapoint: t,
|
|
152
153
|
seriesIndex: l,
|
|
153
|
-
series:
|
|
154
|
+
series: C.value,
|
|
154
155
|
config: e.value
|
|
155
|
-
}, B.value = s,
|
|
156
|
+
}, B.value = s, g.value = t.id;
|
|
156
157
|
let r = "";
|
|
157
|
-
const
|
|
158
|
-
|
|
158
|
+
const w = e.value.style.chart.tooltip.customFormat;
|
|
159
|
+
ge(w) && Ye(() => w({
|
|
159
160
|
seriesIndex: l,
|
|
160
161
|
datapoint: t,
|
|
161
|
-
series:
|
|
162
|
+
series: C.value,
|
|
162
163
|
config: e.value
|
|
163
|
-
})) ? G.value =
|
|
164
|
+
})) ? G.value = w({
|
|
164
165
|
seriesIndex: l,
|
|
165
166
|
datapoint: t,
|
|
166
|
-
series:
|
|
167
|
+
series: C.value,
|
|
167
168
|
config: e.value
|
|
168
|
-
}) : (r += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${t.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="${t.color}"/></svg>`, e.value.style.chart.tooltip.showValue && (r += `<b>${
|
|
169
|
+
}) : (r += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${t.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="${t.color}"/></svg>`, e.value.style.chart.tooltip.showValue && (r += `<b>${fe(
|
|
169
170
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
170
171
|
t.value,
|
|
171
172
|
k({
|
|
@@ -185,14 +186,14 @@ const rt = ["id"], ut = {
|
|
|
185
186
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
186
187
|
})}</b></div>`), G.value = `<div>${r}</div>`);
|
|
187
188
|
}
|
|
188
|
-
const se = h(() =>
|
|
189
|
+
const se = h(() => C.value.map((t, a) => ({
|
|
189
190
|
...t,
|
|
190
|
-
proportion: (t.value || 0) /
|
|
191
|
+
proportion: (t.value || 0) / f.dataset.map((l) => (l.values || []).reduce((s, r) => s + r, 0)).reduce((l, s) => l + s, 0),
|
|
191
192
|
opacity: y.value.includes(t.id) ? 0.5 : 1,
|
|
192
193
|
shape: t.shape || "circle",
|
|
193
194
|
segregate: () => U(t),
|
|
194
195
|
isSegregated: y.value.includes(t.id)
|
|
195
|
-
}))),
|
|
196
|
+
}))), Le = h(() => ({
|
|
196
197
|
cy: "galaxy-div-legend",
|
|
197
198
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
198
199
|
color: e.value.style.chart.legend.color,
|
|
@@ -207,7 +208,7 @@ const rt = ["id"], ut = {
|
|
|
207
208
|
return { head: t, body: a };
|
|
208
209
|
});
|
|
209
210
|
function re() {
|
|
210
|
-
|
|
211
|
+
Ve(() => {
|
|
211
212
|
const t = m.value.head.map((s, r) => [[
|
|
212
213
|
s.name
|
|
213
214
|
], [m.value.body[r]], [isNaN(m.value.body[r] / b.value) ? "-" : m.value.body[r] / b.value * 100]]), a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(t), l = Xe(a);
|
|
@@ -219,16 +220,16 @@ const rt = ["id"], ut = {
|
|
|
219
220
|
' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>',
|
|
220
221
|
k({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: b.value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
|
|
221
222
|
"100%"
|
|
222
|
-
], a = m.value.head.map((r,
|
|
223
|
-
const
|
|
223
|
+
], a = m.value.head.map((r, w) => {
|
|
224
|
+
const Fe = k({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: m.value.body[w], s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue });
|
|
224
225
|
return [
|
|
225
226
|
{
|
|
226
227
|
color: r.color,
|
|
227
228
|
name: r.name
|
|
228
229
|
},
|
|
229
|
-
|
|
230
|
-
isNaN(m.value.body[
|
|
231
|
-
v: m.value.body[
|
|
230
|
+
Fe,
|
|
231
|
+
isNaN(m.value.body[w] / b.value) ? "-" : k({
|
|
232
|
+
v: m.value.body[w] / b.value * 100,
|
|
232
233
|
s: "%",
|
|
233
234
|
r: e.value.table.td.roundingPercentage
|
|
234
235
|
})
|
|
@@ -268,7 +269,7 @@ const rt = ["id"], ut = {
|
|
|
268
269
|
I.value = !I.value;
|
|
269
270
|
}
|
|
270
271
|
return ke({
|
|
271
|
-
getData:
|
|
272
|
+
getData: Pe,
|
|
272
273
|
generatePdf: te,
|
|
273
274
|
generateCsv: re,
|
|
274
275
|
generateImage: le,
|
|
@@ -280,11 +281,11 @@ const rt = ["id"], ut = {
|
|
|
280
281
|
ref: F,
|
|
281
282
|
class: V(`vue-ui-galaxy ${x.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
282
283
|
style: E(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;${e.value.style.chart.title.text ? "" : "padding-top:36px"};background:${e.value.style.chart.backgroundColor}`),
|
|
283
|
-
id: `galaxy_${
|
|
284
|
+
id: `galaxy_${T.value}`,
|
|
284
285
|
onMouseenter: a[3] || (a[3] = () => i(J)(!0)),
|
|
285
286
|
onMouseleave: a[4] || (a[4] = () => i(J)(!1))
|
|
286
287
|
}, [
|
|
287
|
-
e.value.userOptions.buttons.annotator ? (o(), $(
|
|
288
|
+
e.value.userOptions.buttons.annotator ? (o(), $(ot, {
|
|
288
289
|
key: 0,
|
|
289
290
|
parent: F.value,
|
|
290
291
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -292,10 +293,10 @@ const rt = ["id"], ut = {
|
|
|
292
293
|
active: I.value,
|
|
293
294
|
onClose: H
|
|
294
295
|
}, null, 8, ["parent", "backgroundColor", "color", "active"])) : c("", !0),
|
|
295
|
-
|
|
296
|
-
e.value.style.chart.title.text ? (o(), n("div",
|
|
297
|
-
(o(), $(
|
|
298
|
-
key: `title_${
|
|
296
|
+
_e.value ? (o(), n("div", it, null, 512)) : c("", !0),
|
|
297
|
+
e.value.style.chart.title.text ? (o(), n("div", ct, [
|
|
298
|
+
(o(), $(Je, {
|
|
299
|
+
key: `title_${j.value}`,
|
|
299
300
|
config: {
|
|
300
301
|
title: {
|
|
301
302
|
cy: "galaxy-div-title",
|
|
@@ -308,15 +309,15 @@ const rt = ["id"], ut = {
|
|
|
308
309
|
}
|
|
309
310
|
}, null, 8, ["config"]))
|
|
310
311
|
])) : c("", !0),
|
|
311
|
-
e.value.userOptions.show && L.value && (i(K) || i(z)) ? (o(), $(
|
|
312
|
+
e.value.userOptions.show && L.value && (i(K) || i(z)) ? (o(), $(et, {
|
|
312
313
|
ref_key: "details",
|
|
313
314
|
ref: $e,
|
|
314
|
-
key: `user_option_${
|
|
315
|
+
key: `user_option_${X.value}`,
|
|
315
316
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
316
317
|
color: e.value.style.chart.color,
|
|
317
318
|
isPrinting: i(Z),
|
|
318
319
|
isImaging: i(ee),
|
|
319
|
-
uid:
|
|
320
|
+
uid: T.value,
|
|
320
321
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
321
322
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
322
323
|
hasXls: e.value.userOptions.buttons.csv,
|
|
@@ -330,7 +331,7 @@ const rt = ["id"], ut = {
|
|
|
330
331
|
position: e.value.userOptions.position,
|
|
331
332
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
332
333
|
isAnnotation: I.value,
|
|
333
|
-
onToggleFullscreen:
|
|
334
|
+
onToggleFullscreen: Se,
|
|
334
335
|
onGeneratePdf: i(te),
|
|
335
336
|
onGenerateCsv: re,
|
|
336
337
|
onGenerateImage: i(le),
|
|
@@ -340,7 +341,7 @@ const rt = ["id"], ut = {
|
|
|
340
341
|
style: E({
|
|
341
342
|
visibility: i(K) ? i(z) ? "visible" : "hidden" : "visible"
|
|
342
343
|
})
|
|
343
|
-
},
|
|
344
|
+
}, Ee({ _: 2 }, [
|
|
344
345
|
t.$slots.optionTooltip ? {
|
|
345
346
|
name: "optionTooltip",
|
|
346
347
|
fn: d(() => [
|
|
@@ -393,12 +394,14 @@ const rt = ["id"], ut = {
|
|
|
393
394
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : c("", !0),
|
|
394
395
|
L.value ? (o(), n("svg", {
|
|
395
396
|
key: 4,
|
|
396
|
-
|
|
397
|
+
ref_key: "svgRef",
|
|
398
|
+
ref: xe,
|
|
399
|
+
xmlns: i(Re),
|
|
397
400
|
class: V({ "vue-data-ui-fullscreen--on": x.value, "vue-data-ui-fulscreen--off": !x.value }),
|
|
398
401
|
viewBox: `0 0 ${P.value.width} ${P.value.height}`,
|
|
399
402
|
style: E(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
|
|
400
403
|
}, [
|
|
401
|
-
ie(
|
|
404
|
+
ie(at),
|
|
402
405
|
t.$slots["chart-background"] ? (o(), n("foreignObject", {
|
|
403
406
|
key: 0,
|
|
404
407
|
x: 0,
|
|
@@ -410,20 +413,20 @@ const rt = ["id"], ut = {
|
|
|
410
413
|
}
|
|
411
414
|
}, [
|
|
412
415
|
v(t.$slots, "chart-background", {}, void 0, !0)
|
|
413
|
-
], 8,
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
id: `blur_${
|
|
416
|
+
], 8, dt)) : c("", !0),
|
|
417
|
+
_("defs", null, [
|
|
418
|
+
_("filter", {
|
|
419
|
+
id: `blur_${T.value}`,
|
|
417
420
|
x: "-50%",
|
|
418
421
|
y: "-50%",
|
|
419
422
|
width: "200%",
|
|
420
423
|
height: "200%"
|
|
421
424
|
}, [
|
|
422
|
-
|
|
425
|
+
_("feGaussianBlur", {
|
|
423
426
|
in: "SourceGraphic",
|
|
424
427
|
stdDeviation: 100 / e.value.style.chart.layout.arcs.gradient.intensity
|
|
425
|
-
}, null, 8,
|
|
426
|
-
], 8,
|
|
428
|
+
}, null, 8, pt)
|
|
429
|
+
], 8, ht)
|
|
427
430
|
]),
|
|
428
431
|
(o(!0), n(ce, null, ve(O.value, (l) => (o(), n("g", null, [
|
|
429
432
|
l.value ? (o(), n("path", {
|
|
@@ -431,31 +434,31 @@ const rt = ["id"], ut = {
|
|
|
431
434
|
d: l.path,
|
|
432
435
|
fill: "none",
|
|
433
436
|
stroke: e.value.style.chart.backgroundColor,
|
|
434
|
-
"stroke-width": (e.value.style.chart.layout.arcs.strokeWidth + e.value.style.chart.layout.arcs.borderWidth) * (
|
|
437
|
+
"stroke-width": (e.value.style.chart.layout.arcs.strokeWidth + e.value.style.chart.layout.arcs.borderWidth) * (g.value === l.id && e.value.style.chart.layout.arcs.hoverEffect.show ? e.value.style.chart.layout.arcs.hoverEffect.multiplicator : 1),
|
|
435
438
|
"stroke-linecap": "round"
|
|
436
|
-
}, null, 8,
|
|
439
|
+
}, null, 8, yt)) : c("", !0),
|
|
437
440
|
l.value ? (o(), n("path", {
|
|
438
441
|
key: 1,
|
|
439
442
|
d: l.path,
|
|
440
443
|
fill: "none",
|
|
441
444
|
stroke: l.color,
|
|
442
|
-
"stroke-width": e.value.style.chart.layout.arcs.strokeWidth * (
|
|
445
|
+
"stroke-width": e.value.style.chart.layout.arcs.strokeWidth * (g.value === l.id && e.value.style.chart.layout.arcs.hoverEffect.show ? e.value.style.chart.layout.arcs.hoverEffect.multiplicator : 1),
|
|
443
446
|
"stroke-linecap": "round",
|
|
444
|
-
class: V(`${
|
|
445
|
-
}, null, 10,
|
|
447
|
+
class: V(`${g.value && g.value !== l.id && e.value.useBlurOnHover ? "vue-ui-galaxy-blur" : ""}`)
|
|
448
|
+
}, null, 10, ft)) : c("", !0),
|
|
446
449
|
l.value && e.value.style.chart.layout.arcs.gradient.show ? (o(), n("g", {
|
|
447
450
|
key: 2,
|
|
448
|
-
filter: `url(#blur_${
|
|
451
|
+
filter: `url(#blur_${T.value})`
|
|
449
452
|
}, [
|
|
450
|
-
|
|
453
|
+
_("path", {
|
|
451
454
|
d: l.path,
|
|
452
455
|
fill: "none",
|
|
453
456
|
stroke: e.value.style.chart.layout.arcs.gradient.color,
|
|
454
|
-
"stroke-width": e.value.style.chart.layout.arcs.strokeWidth / 2 * (
|
|
457
|
+
"stroke-width": e.value.style.chart.layout.arcs.strokeWidth / 2 * (g.value === l.id && e.value.style.chart.layout.arcs.hoverEffect.show ? e.value.style.chart.layout.arcs.hoverEffect.multiplicator : 1),
|
|
455
458
|
"stroke-linecap": "round",
|
|
456
|
-
class: V(`vue-ui-galaxy-gradient ${
|
|
457
|
-
}, null, 10,
|
|
458
|
-
], 8,
|
|
459
|
+
class: V(`vue-ui-galaxy-gradient ${g.value && g.value !== l.id && e.value.useBlurOnHover ? "vue-ui-galaxy-blur" : ""}`)
|
|
460
|
+
}, null, 10, bt)
|
|
461
|
+
], 8, gt)) : c("", !0)
|
|
459
462
|
]))), 256)),
|
|
460
463
|
(o(!0), n(ce, null, ve(O.value, (l, s) => (o(), n("g", null, [
|
|
461
464
|
l.value ? (o(), n("path", {
|
|
@@ -465,23 +468,23 @@ const rt = ["id"], ut = {
|
|
|
465
468
|
stroke: "transparent",
|
|
466
469
|
"stroke-width": e.value.style.chart.layout.arcs.strokeWidth + e.value.style.chart.layout.arcs.borderWidth,
|
|
467
470
|
"stroke-linecap": "round",
|
|
468
|
-
onMouseenter: (r) =>
|
|
471
|
+
onMouseenter: (r) => Ne({
|
|
469
472
|
datapoint: l,
|
|
470
473
|
seriesIndex: l.seriesIndex,
|
|
471
474
|
show: !0
|
|
472
475
|
}),
|
|
473
476
|
onMouseleave: a[0] || (a[0] = (r) => {
|
|
474
|
-
B.value = !1,
|
|
477
|
+
B.value = !1, g.value = null;
|
|
475
478
|
}),
|
|
476
479
|
onClick: (r) => ae("selectDatapoint", l)
|
|
477
|
-
}, null, 40,
|
|
480
|
+
}, null, 40, mt)) : c("", !0)
|
|
478
481
|
]))), 256)),
|
|
479
482
|
v(t.$slots, "svg", { svg: P.value }, void 0, !0)
|
|
480
|
-
], 14,
|
|
481
|
-
t.$slots.watermark ? (o(), n("div",
|
|
483
|
+
], 14, vt)) : c("", !0),
|
|
484
|
+
t.$slots.watermark ? (o(), n("div", kt, [
|
|
482
485
|
v(t.$slots, "watermark", S(N({ isPrinting: i(Z) || i(ee) })), void 0, !0)
|
|
483
486
|
])) : c("", !0),
|
|
484
|
-
L.value ? c("", !0) : (o(), $(
|
|
487
|
+
L.value ? c("", !0) : (o(), $(tt, {
|
|
485
488
|
key: 6,
|
|
486
489
|
config: {
|
|
487
490
|
type: "galaxy",
|
|
@@ -493,18 +496,18 @@ const rt = ["id"], ut = {
|
|
|
493
496
|
}
|
|
494
497
|
}
|
|
495
498
|
}, null, 8, ["config"])),
|
|
496
|
-
e.value.style.chart.legend.show ? (o(), $(
|
|
499
|
+
e.value.style.chart.legend.show ? (o(), $(qe, {
|
|
497
500
|
key: `legend_${q.value}`,
|
|
498
501
|
legendSet: se.value,
|
|
499
|
-
config:
|
|
502
|
+
config: Le.value,
|
|
500
503
|
onClickMarker: a[1] || (a[1] = ({ legend: l }) => U(l))
|
|
501
504
|
}, {
|
|
502
505
|
item: d(({ legend: l, index: s }) => [
|
|
503
|
-
|
|
506
|
+
_("div", {
|
|
504
507
|
onClick: (r) => U(l),
|
|
505
508
|
style: E(`opacity:${y.value.includes(l.id) ? 0.5 : 1}`)
|
|
506
509
|
}, [
|
|
507
|
-
de(M(l.name) + ": " + M(i(
|
|
510
|
+
de(M(l.name) + ": " + M(i(fe)(
|
|
508
511
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
509
512
|
l.value,
|
|
510
513
|
i(k)({
|
|
@@ -515,20 +518,20 @@ const rt = ["id"], ut = {
|
|
|
515
518
|
}),
|
|
516
519
|
{ datapoint: l, seriesIndex: s }
|
|
517
520
|
)) + " ", 1),
|
|
518
|
-
y.value.includes(l.id) ? (o(), n("span",
|
|
521
|
+
y.value.includes(l.id) ? (o(), n("span", $t, " ( - % ) ")) : (o(), n("span", wt, " (" + M(isNaN(l.value / b.value) ? "-" : i(k)({
|
|
519
522
|
v: l.value / b.value * 100,
|
|
520
523
|
s: "%",
|
|
521
524
|
r: e.value.style.chart.legend.roundingPercentage
|
|
522
525
|
})) + ") ", 1))
|
|
523
|
-
], 12,
|
|
526
|
+
], 12, Ct)
|
|
524
527
|
]),
|
|
525
528
|
_: 1
|
|
526
529
|
}, 8, ["legendSet", "config"])) : c("", !0),
|
|
527
530
|
v(t.$slots, "legend", { legend: se.value }, void 0, !0),
|
|
528
|
-
t.$slots.source ? (o(), n("div",
|
|
531
|
+
t.$slots.source ? (o(), n("div", xt, [
|
|
529
532
|
v(t.$slots, "source", {}, void 0, !0)
|
|
530
533
|
], 512)) : c("", !0),
|
|
531
|
-
ie(
|
|
534
|
+
ie(Ke, {
|
|
532
535
|
show: p.value.showTooltip && B.value,
|
|
533
536
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
534
537
|
color: e.value.style.chart.tooltip.color,
|
|
@@ -542,7 +545,7 @@ const rt = ["id"], ut = {
|
|
|
542
545
|
parent: F.value,
|
|
543
546
|
content: G.value,
|
|
544
547
|
isFullscreen: x.value,
|
|
545
|
-
isCustom: i(
|
|
548
|
+
isCustom: i(ge)(e.value.style.chart.tooltip.customFormat)
|
|
546
549
|
}, {
|
|
547
550
|
"tooltip-before": d(() => [
|
|
548
551
|
v(t.$slots, "tooltip-before", S(N({ ...W.value })), void 0, !0)
|
|
@@ -552,7 +555,7 @@ const rt = ["id"], ut = {
|
|
|
552
555
|
]),
|
|
553
556
|
_: 3
|
|
554
557
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
555
|
-
L.value ? (o(), $(
|
|
558
|
+
L.value ? (o(), $(lt, {
|
|
556
559
|
key: 9,
|
|
557
560
|
hideDetails: "",
|
|
558
561
|
config: {
|
|
@@ -569,7 +572,7 @@ const rt = ["id"], ut = {
|
|
|
569
572
|
}
|
|
570
573
|
}, {
|
|
571
574
|
content: d(() => [
|
|
572
|
-
(o(), $(
|
|
575
|
+
(o(), $(Qe, {
|
|
573
576
|
key: `table_${Y.value}`,
|
|
574
577
|
colNames: A.value.colNames,
|
|
575
578
|
head: A.value.head,
|
|
@@ -579,10 +582,10 @@ const rt = ["id"], ut = {
|
|
|
579
582
|
onClose: a[2] || (a[2] = (l) => p.value.showTable = !1)
|
|
580
583
|
}, {
|
|
581
584
|
th: d(({ th: l }) => [
|
|
582
|
-
|
|
585
|
+
_("div", {
|
|
583
586
|
innerHTML: l,
|
|
584
587
|
style: { display: "flex", "align-items": "center" }
|
|
585
|
-
}, null, 8,
|
|
588
|
+
}, null, 8, _t)
|
|
586
589
|
]),
|
|
587
590
|
td: d(({ td: l }) => [
|
|
588
591
|
de(M(l.name || l), 1)
|
|
@@ -592,9 +595,9 @@ const rt = ["id"], ut = {
|
|
|
592
595
|
]),
|
|
593
596
|
_: 1
|
|
594
597
|
}, 8, ["config"])) : c("", !0)
|
|
595
|
-
], 46,
|
|
598
|
+
], 46, nt));
|
|
596
599
|
}
|
|
597
|
-
},
|
|
600
|
+
}, Ut = /* @__PURE__ */ ut(Tt, [["__scopeId", "data-v-67e1681a"]]);
|
|
598
601
|
export {
|
|
599
|
-
|
|
602
|
+
Ut as default
|
|
600
603
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-DEnRHTzk.cjs"),ce=require("./Legend-DunrYGuw.cjs"),de=require("./Title-Dk92HYMu.cjs"),ve=require("./Tooltip-ClMeqejQ.cjs"),he=require("./DataTable-Cv_TVAas.cjs"),X=require("./usePrinter-dyVny55M.cjs"),pe=require("./vue-ui-skeleton-_DN0U6W6.cjs"),fe=require("./vue-ui-accordion-D2qxHGzp.cjs"),Y=require("./useNestedProp-BNT60LxO.cjs"),ye=require("./PackageVersion-DJKkRuOD.cjs"),ge=require("./PenAndPaper-MTTJ3Gd9.cjs"),me=require("./useUserOptionState-BgepsfED.cjs"),be=require("./useChartAccessibility-Cm7nkzTG.cjs"),ke=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Ce=["id"],we={key:1,ref:"noTitle",class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},xe={key:2,style:"width:100%;background:transparent;padding-bottom:24px"},$e=["xmlns","viewBox"],Be=["width","height"],Se=["id"],Te=["stdDeviation"],Ne=["d","stroke","stroke-width"],Pe=["d","stroke","stroke-width"],_e=["filter"],Ve=["d","stroke","stroke-width"],Ee=["d","stroke-width","onMouseenter","onClick"],Le={key:5,class:"vue-data-ui-watermark"},Oe=["onClick"],Ae={key:0},Fe={key:1},ze={key:8,ref:"source",dir:"auto"},Ie=["innerHTML"],De={__name:"vue-ui-galaxy",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend","selectDatapoint"],setup(J,{expose:K,emit:Q}){const{vue_ui_galaxy:Z}=r.useConfig(),c=J,k=e.computed(()=>!!c.dataset&&c.dataset.length);e.onMounted(()=>{_()});function _(){r.objectIsEmpty(c.dataset)?r.error({componentName:"VueUiGalaxy",type:"dataset"}):c.dataset.forEach((l,a)=>{r.getMissingDatasetAttributes({datasetObject:l,requiredAttributes:["name","values"]}).forEach(o=>{r.error({componentName:"VueUiGalaxy",type:"datasetSerieAttribute",property:o,index:a})})})}const g=e.ref(r.createUid()),C=e.ref(null),ee=e.ref(null),$=e.ref(!1),B=e.ref(""),d=e.ref(null),V=e.ref(0),E=e.ref(0),L=e.ref(0),O=e.ref(0),t=e.computed({get:()=>z(),set:l=>l}),{userOptionsVisible:S,setUserOptionsVisibility:A,keepUserOptionState:F}=me.useUserOptionState({config:t.value}),{svgRef:te}=be.useChartAccessibility({config:t.value.style.chart.title});function z(){const l=Y.useNestedProp({userConfig:c.config,defaultConfig:Z});return l.theme?{...Y.useNestedProp({userConfig:r.themes.vue_ui_galaxy[l.theme]||c.config,defaultConfig:l}),customPalette:r.themePalettes[l.theme]||r.palette}:l}e.watch(()=>c.config,l=>{t.value=z(),S.value=!t.value.userOptions.showOnChartHover,_(),E.value+=1,L.value+=1,O.value+=1,u.value.dataLabels.show=t.value.style.chart.layout.labels.dataLabels.show,u.value.showTable=t.value.table.show,u.value.showTooltip=t.value.style.chart.tooltip.show},{deep:!0});const{isPrinting:I,isImaging:D,generatePdf:q,generateImage:M}=X.usePrinter({elementId:`galaxy_${g.value}`,fileName:t.value.style.chart.title.text||"vue-ui-galaxy"}),le=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),oe=e.computed(()=>r.convertCustomPalette(t.value.customPalette)),u=e.ref({dataLabels:{show:t.value.style.chart.layout.labels.dataLabels.show},showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show}),m=e.ref({height:180,width:250}),U=Q,i=e.ref([]);function T(l){i.value.includes(l.id)?i.value=i.value.filter(a=>a!==l.id):i.value.push(l.id),U("selectLegend",b.value.map(a=>({name:a.name,color:a.color,value:a.value})))}const p=e.computed(()=>c.dataset.map((l,a)=>({name:l.name,color:r.convertColorToHex(l.color)||oe.value[a]||r.palette[a]||r.palette[a%r.palette.length],value:l.values?r.sanitizeArray(l.values).reduce((o,n)=>o+n,0):0,absoluteValues:r.sanitizeArray(l.values),id:r.createUid(),seriesIndex:a})).sort((l,a)=>a.value-l.value));function ae(){return p.value.map(l=>({name:l.name,color:l.color,value:l.value}))}const v=e.computed(()=>p.value.filter(l=>!i.value.includes(l.id)).map(l=>l.value).reduce((l,a)=>l+a,0)),re=e.ref(190),G=e.computed(()=>p.value.filter(l=>!i.value.includes(l.id))),b=e.computed(()=>{const l=[];for(let a=0;a<G.value.length;a+=1){const o=G.value[a];let n=o.value/v.value*re.value;a>0&&l.length&&(n+=l[a-1].points),l.push({points:n,...o,seriesIndex:a,proportion:o.value/v.value,path:r.createSpiralPath({points:n,startX:115+t.value.style.chart.layout.arcs.offsetX,startY:90+t.value.style.chart.layout.arcs.offsetY})})}return l.filter((a,o)=>!i.value.includes(a.id)).toSorted((a,o)=>o.points-a.points)}),y=e.ref(!1);function ne(l){y.value=l,V.value+=1}const N=e.ref(null);function se({datapoint:l,_relativeIndex:a,seriesIndex:o,show:n=!1}){N.value={datapoint:l,seriesIndex:o,series:p.value,config:t.value},$.value=n,d.value=l.id;let s="";const f=t.value.style.chart.tooltip.customFormat;r.isFunction(f)&&r.functionReturnsString(()=>f({seriesIndex:o,datapoint:l,series:p.value,config:t.value}))?B.value=f({seriesIndex:o,datapoint:l,series:p.value,config:t.value}):(s+=`<div style="width:100%;text-align:center;border-bottom:1px solid ${t.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l.name}</div>`,s+=`<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>`,t.value.style.chart.tooltip.showValue&&(s+=`<b>${r.applyDataLabel(t.value.style.chart.layout.labels.dataLabels.formatter,l.value,r.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:l.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.tooltip.roundingValue}),{datapoint:l,seriesIndex:o})}</b>`),t.value.style.chart.tooltip.showPercentage&&(t.value.style.chart.tooltip.showValue?s+=`<span>(${r.dataLabel({v:l.proportion*100,s:"%",r:t.value.style.chart.tooltip.roundingPercentage})})</span></div>`:s+=`<b>${r.dataLabel({v:l.proportion*100,s:"%",r:t.value.style.chart.tooltip.roundingPercentage})}</b></div>`),B.value=`<div>${s}</div>`)}const R=e.computed(()=>p.value.map((l,a)=>({...l,proportion:(l.value||0)/c.dataset.map(o=>(o.values||[]).reduce((n,s)=>n+s,0)).reduce((o,n)=>o+n,0),opacity:i.value.includes(l.id)?.5:1,shape:l.shape||"circle",segregate:()=>T(l),isSegregated:i.value.includes(l.id)}))),ue=e.computed(()=>({cy:"galaxy-div-legend",backgroundColor:t.value.style.chart.legend.backgroundColor,color:t.value.style.chart.legend.color,fontSize:t.value.style.chart.legend.fontSize,paddingBottom:12,fontWeight:t.value.style.chart.legend.bold?"bold":""})),h=e.computed(()=>{const l=b.value.map(o=>({name:o.name,color:o.color})),a=b.value.map(o=>o.value);return{head:l,body:a}});function W(){e.nextTick(()=>{const l=h.value.head.map((n,s)=>[[n.name],[h.value.body[s]],[isNaN(h.value.body[s]/v.value)?"-":h.value.body[s]/v.value*100]]),a=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[""],["val"],["%"]]].concat(l),o=r.createCsvContent(a);r.downloadCsv({csvContent:o,title:t.value.style.chart.title.text||"vue-ui-galaxy"})})}const w=e.computed(()=>{const l=[' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>',r.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:v.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.table.td.roundingValue}),"100%"],a=h.value.head.map((s,f)=>{const ie=r.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:h.value.body[f],s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.table.td.roundingValue});return[{color:s.color,name:s.name},ie,isNaN(h.value.body[f]/v.value)?"-":r.dataLabel({v:h.value.body[f]/v.value*100,s:"%",r:t.value.table.td.roundingPercentage})]}),o={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint};return{colNames:[t.value.table.columnNames.series,t.value.table.columnNames.value,t.value.table.columnNames.percentage],head:l,body:a,config:o}});function H(){u.value.showTable=!u.value.showTable}function j(){u.value.showTooltip=!u.value.showTooltip}const x=e.ref(!1);function P(){x.value=!x.value}return K({getData:ae,generatePdf:q,generateCsv:W,generateImage:M,toggleTable:H,toggleTooltip:j,toggleAnnotator:P}),(l,a)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"galaxyChart",ref:C,class:e.normalizeClass(`vue-ui-galaxy ${y.value?"vue-data-ui-wrapper-fullscreen":""} ${t.value.useCssAnimation?"":"vue-ui-dna"}`),style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;${t.value.style.chart.title.text?"":"padding-top:36px"};background:${t.value.style.chart.backgroundColor}`),id:`galaxy_${g.value}`,onMouseenter:a[3]||(a[3]=()=>e.unref(A)(!0)),onMouseleave:a[4]||(a[4]=()=>e.unref(A)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(ge.PenAndPaper,{key:0,parent:C.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:x.value,onClose:P},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),le.value?(e.openBlock(),e.createElementBlock("div",we,null,512)):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",xe,[(e.openBlock(),e.createBlock(de._sfc_main,{key:`title_${E.value}`,config:{title:{cy:"galaxy-div-title",...t.value.style.chart.title},subtitle:{cy:"galaxy-div-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))])):e.createCommentVNode("",!0),t.value.userOptions.show&&k.value&&(e.unref(F)||e.unref(S))?(e.openBlock(),e.createBlock(X.UserOptions,{ref_key:"details",ref:ee,key:`user_option_${V.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(I),isImaging:e.unref(D),uid:g.value,hasTooltip:t.value.userOptions.buttons.tooltip&&t.value.style.chart.tooltip.show,hasPdf:t.value.userOptions.buttons.pdf,hasXls:t.value.userOptions.buttons.csv,hasImg:t.value.userOptions.buttons.img,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isTooltip:u.value.showTooltip,isFullscreen:y.value,titles:{...t.value.userOptions.buttonTitles},chartElement:C.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:x.value,onToggleFullscreen:ne,onGeneratePdf:e.unref(q),onGenerateCsv:W,onGenerateImage:e.unref(M),onToggleTable:H,onToggleTooltip:j,onToggleAnnotator:P,style:e.normalizeStyle({visibility:e.unref(F)?e.unref(S)?"visible":"hidden":"visible"})},e.createSlots({_:2},[l.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,l.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,l.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:o,isFullscreen:n})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:o,isFullscreen:n})),void 0,!0)]),key:"5"}:void 0,l.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:o,isAnnotator:n})=>[e.renderSlot(l.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:o,isAnnotator:n})),void 0,!0)]),key:"6"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasTooltip","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","isTooltip","isFullscreen","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),k.value?(e.openBlock(),e.createElementBlock("svg",{key:4,ref_key:"svgRef",ref:te,xmlns:e.unref(r.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":y.value,"vue-data-ui-fulscreen--off":!y.value}),viewBox:`0 0 ${m.value.width} ${m.value.height}`,style:e.normalizeStyle(`max-width:100%; overflow: visible; background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(ye._sfc_main),l.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:0,y:0,width:m.value.width,height:m.value.height,style:{pointerEvents:"none"}},[e.renderSlot(l.$slots,"chart-background",{},void 0,!0)],8,Be)):e.createCommentVNode("",!0),e.createElementVNode("defs",null,[e.createElementVNode("filter",{id:`blur_${g.value}`,x:"-50%",y:"-50%",width:"200%",height:"200%"},[e.createElementVNode("feGaussianBlur",{in:"SourceGraphic",stdDeviation:100/t.value.style.chart.layout.arcs.gradient.intensity},null,8,Te)],8,Se)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value,o=>(e.openBlock(),e.createElementBlock("g",null,[o.value?(e.openBlock(),e.createElementBlock("path",{key:0,d:o.path,fill:"none",stroke:t.value.style.chart.backgroundColor,"stroke-width":(t.value.style.chart.layout.arcs.strokeWidth+t.value.style.chart.layout.arcs.borderWidth)*(d.value===o.id&&t.value.style.chart.layout.arcs.hoverEffect.show?t.value.style.chart.layout.arcs.hoverEffect.multiplicator:1),"stroke-linecap":"round"},null,8,Ne)):e.createCommentVNode("",!0),o.value?(e.openBlock(),e.createElementBlock("path",{key:1,d:o.path,fill:"none",stroke:o.color,"stroke-width":t.value.style.chart.layout.arcs.strokeWidth*(d.value===o.id&&t.value.style.chart.layout.arcs.hoverEffect.show?t.value.style.chart.layout.arcs.hoverEffect.multiplicator:1),"stroke-linecap":"round",class:e.normalizeClass(`${d.value&&d.value!==o.id&&t.value.useBlurOnHover?"vue-ui-galaxy-blur":""}`)},null,10,Pe)):e.createCommentVNode("",!0),o.value&&t.value.style.chart.layout.arcs.gradient.show?(e.openBlock(),e.createElementBlock("g",{key:2,filter:`url(#blur_${g.value})`},[e.createElementVNode("path",{d:o.path,fill:"none",stroke:t.value.style.chart.layout.arcs.gradient.color,"stroke-width":t.value.style.chart.layout.arcs.strokeWidth/2*(d.value===o.id&&t.value.style.chart.layout.arcs.hoverEffect.show?t.value.style.chart.layout.arcs.hoverEffect.multiplicator:1),"stroke-linecap":"round",class:e.normalizeClass(`vue-ui-galaxy-gradient ${d.value&&d.value!==o.id&&t.value.useBlurOnHover?"vue-ui-galaxy-blur":""}`)},null,10,Ve)],8,_e)):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value,(o,n)=>(e.openBlock(),e.createElementBlock("g",null,[o.value?(e.openBlock(),e.createElementBlock("path",{key:0,d:o.path,fill:"none",stroke:"transparent","stroke-width":t.value.style.chart.layout.arcs.strokeWidth+t.value.style.chart.layout.arcs.borderWidth,"stroke-linecap":"round",onMouseenter:s=>se({datapoint:o,seriesIndex:o.seriesIndex,show:!0}),onMouseleave:a[0]||(a[0]=s=>{$.value=!1,d.value=null}),onClick:s=>U("selectDatapoint",o)},null,40,Ee)):e.createCommentVNode("",!0)]))),256)),e.renderSlot(l.$slots,"svg",{svg:m.value},void 0,!0)],14,$e)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Le,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(I)||e.unref(D)})),void 0,!0)])):e.createCommentVNode("",!0),k.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(pe.default,{key:6,config:{type:"galaxy",style:{backgroundColor:t.value.style.chart.backgroundColor,galaxy:{color:"#CCCCCC"}}}},null,8,["config"])),t.value.style.chart.legend.show?(e.openBlock(),e.createBlock(ce.Legend,{key:`legend_${O.value}`,legendSet:R.value,config:ue.value,onClickMarker:a[1]||(a[1]=({legend:o})=>T(o))},{item:e.withCtx(({legend:o,index:n})=>[e.createElementVNode("div",{onClick:s=>T(o),style:e.normalizeStyle(`opacity:${i.value.includes(o.id)?.5:1}`)},[e.createTextVNode(e.toDisplayString(o.name)+": "+e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.chart.layout.labels.dataLabels.formatter,o.value,e.unref(r.dataLabel)({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:o.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.legend.roundingValue}),{datapoint:o,seriesIndex:n}))+" ",1),i.value.includes(o.id)?(e.openBlock(),e.createElementBlock("span",Fe," ( - % ) ")):(e.openBlock(),e.createElementBlock("span",Ae," ("+e.toDisplayString(isNaN(o.value/v.value)?"-":e.unref(r.dataLabel)({v:o.value/v.value*100,s:"%",r:t.value.style.chart.legend.roundingPercentage}))+") ",1))],12,Oe)]),_:1},8,["legendSet","config"])):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"legend",{legend:R.value},void 0,!0),l.$slots.source?(e.openBlock(),e.createElementBlock("div",ze,[e.renderSlot(l.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createVNode(ve._sfc_main,{show:u.value.showTooltip&&$.value,backgroundColor:t.value.style.chart.tooltip.backgroundColor,color:t.value.style.chart.tooltip.color,borderRadius:t.value.style.chart.tooltip.borderRadius,borderColor:t.value.style.chart.tooltip.borderColor,borderWidth:t.value.style.chart.tooltip.borderWidth,fontSize:t.value.style.chart.tooltip.fontSize,backgroundOpacity:t.value.style.chart.tooltip.backgroundOpacity,position:t.value.style.chart.tooltip.position,offsetY:t.value.style.chart.tooltip.offsetY,parent:C.value,content:B.value,isFullscreen:y.value,isCustom:e.unref(r.isFunction)(t.value.style.chart.tooltip.customFormat)},{"tooltip-before":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...N.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...N.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","fontSize","backgroundOpacity","position","offsetY","parent","content","isFullscreen","isCustom"]),k.value?(e.openBlock(),e.createBlock(fe.default,{key:9,hideDetails:"",config:{open:u.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color},head:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color}}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock(he.DataTable,{key:`table_${L.value}`,colNames:w.value.colNames,head:w.value.head,body:w.value.body,config:w.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:a[2]||(a[2]=o=>u.value.showTable=!1)},{th:e.withCtx(({th:o})=>[e.createElementVNode("div",{innerHTML:o,style:{display:"flex","align-items":"center"}},null,8,Ie)]),td:e.withCtx(({td:o})=>[e.createTextVNode(e.toDisplayString(o.name||o),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],46,Ce))}},qe=ke._export_sfc(De,[["__scopeId","data-v-67e1681a"]]);exports.default=qe;
|