vue-data-ui 2.3.84 → 2.3.85
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-Uk_vwKtL.cjs → Arrow-CLOh6oi7.cjs} +1 -1
- package/dist/{Arrow-CQ1ubni5.js → Arrow-JwDgP3de.js} +1 -1
- package/dist/{BaseIcon-CF1HQdM0.cjs → BaseIcon-BBQHz_Sf.cjs} +1 -1
- package/dist/{BaseIcon-B9ZZ6wkT.js → BaseIcon-BysUnfCR.js} +1 -1
- package/dist/{DataTable-C-iU_7h7.js → DataTable-MkG5Dqrn.js} +2 -2
- package/dist/{DataTable-CEtr89Og.cjs → DataTable-pVXaNplZ.cjs} +1 -1
- package/dist/{Legend-pU_BwhaW.js → Legend-KW7sTwN3.js} +1 -1
- package/dist/{Legend-D2ZBCCXe.cjs → Legend-k2mcTp7z.cjs} +1 -1
- package/dist/{Shape-CyM44biU.js → Shape-BFiZBf3X.js} +1 -1
- package/dist/{Shape-BO_KyCq8.cjs → Shape-COoEWeGM.cjs} +1 -1
- package/dist/{Slicer-CZobytqL.js → Slicer-CALc-Q4W.js} +2 -2
- package/dist/{Slicer-BAMZ4wsl.cjs → Slicer-DCyxUSsn.cjs} +1 -1
- package/dist/{Title-B1_d29Eh.cjs → Title-BaKZYHEx.cjs} +1 -1
- package/dist/{Title-Bk3h09h9.js → Title-ISDbzCH8.js} +1 -1
- package/dist/{Tooltip-CdB80DsD.js → Tooltip-BHmMXOej.js} +1 -1
- package/dist/{Tooltip-BU4cSEF0.cjs → Tooltip-okAYzo5Y.cjs} +1 -1
- package/dist/{index-DI4DaxVG.js → index-BiuHBtkZ.js} +1 -1
- package/dist/{index-Cx-40Fnz.cjs → index-D-vy9N1v.cjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-BdsfyHWU.cjs → useNestedProp-B9yDavuy.cjs} +1 -1
- package/dist/{useNestedProp-COsQo-tX.js → useNestedProp-Ck5_RzLu.js} +1 -1
- package/dist/{usePrinter-D9bNzUQP.js → usePrinter-Do8KiK5h.js} +1 -1
- package/dist/{usePrinter-DbhL59iY.cjs → usePrinter-P4nLcXX-.cjs} +1 -1
- package/dist/{vue-data-ui-9nofTL7J.js → vue-data-ui-CAl2KJv9.js} +57 -57
- package/dist/{vue-data-ui-kGaLyV0o.cjs → vue-data-ui-CVYCyzY-.cjs} +1 -1
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-lKgwKkVj.js → vue-ui-3d-bar-CploAEkY.js} +163 -163
- package/dist/vue-ui-3d-bar-DlUqKETN.cjs +19 -0
- package/dist/{vue-ui-accordion-DsN9lxvc.js → vue-ui-accordion-D2fhyKpk.js} +3 -3
- package/dist/{vue-ui-accordion-C8ka_Ot0.cjs → vue-ui-accordion-btKAUUTu.cjs} +1 -1
- package/dist/vue-ui-age-pyramid-CvSoQ1op.cjs +1 -0
- package/dist/{vue-ui-age-pyramid-D2lSXDX6.js → vue-ui-age-pyramid-DkaM5MrK.js} +55 -55
- package/dist/{vue-ui-annotator-DoLG0N5e.js → vue-ui-annotator-38FBI0Pn.js} +1 -1
- package/dist/{vue-ui-annotator-DmfAqbqB.cjs → vue-ui-annotator-BMYk78DR.cjs} +1 -1
- package/dist/vue-ui-candlestick-BJulnyV3.cjs +2 -0
- package/dist/{vue-ui-candlestick-vhHV9d6O.js → vue-ui-candlestick-CKsjq0Uw.js} +81 -81
- package/dist/{vue-ui-carousel-table-DaQV2SlJ.cjs → vue-ui-carousel-table-Cx72LlTd.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-BmyArloA.js → vue-ui-carousel-table-DjGaEuM7.js} +4 -4
- package/dist/{vue-ui-chestnut-DvNW2Y0z.cjs → vue-ui-chestnut-DAiBfoPN.cjs} +2 -2
- package/dist/{vue-ui-chestnut-DgbbDtL0.js → vue-ui-chestnut-TLyh4dIZ.js} +9 -9
- package/dist/{vue-ui-cursor-7-jKCnOY.js → vue-ui-cursor-B1xa5yua.js} +2 -2
- package/dist/{vue-ui-cursor-zXDNHCZv.cjs → vue-ui-cursor-BunDuWpK.cjs} +1 -1
- package/dist/{vue-ui-dashboard-DMossMh1.cjs → vue-ui-dashboard-CMZ736DL.cjs} +1 -1
- package/dist/{vue-ui-dashboard-B_pnIQ5P.js → vue-ui-dashboard-DdcubzWu.js} +2 -2
- package/dist/{vue-ui-digits-C-lpZ-rg.js → vue-ui-digits-BUpjWWnD.js} +2 -2
- package/dist/{vue-ui-digits-BL8Vyod-.cjs → vue-ui-digits-z5g__gqs.cjs} +1 -1
- package/dist/vue-ui-donut-TY2Z9Ljx.cjs +1 -0
- package/dist/{vue-ui-donut-e-p-l-_7.js → vue-ui-donut-ZLpfm-XT.js} +73 -73
- package/dist/vue-ui-donut-evolution-BEm2dOxe.cjs +1 -0
- package/dist/{vue-ui-donut-evolution-Ol1YS2OF.js → vue-ui-donut-evolution-Bn4asQO3.js} +81 -81
- package/dist/{vue-ui-dumbbell-CMFNfda1.cjs → vue-ui-dumbbell-CY6X8J1K.cjs} +2 -2
- package/dist/{vue-ui-dumbbell-BjTXdj83.js → vue-ui-dumbbell-D2R9tJ99.js} +21 -21
- package/dist/{vue-ui-flow-B4mdXrld.js → vue-ui-flow-Dd5uPNTQ.js} +52 -52
- package/dist/vue-ui-flow-DswsuPwy.cjs +1 -0
- package/dist/{vue-ui-galaxy-Eg1e5SG7.js → vue-ui-galaxy-B7CoWLhj.js} +85 -85
- package/dist/vue-ui-galaxy-Dxy6jzus.cjs +1 -0
- package/dist/{vue-ui-gauge-BTt63SCn.js → vue-ui-gauge-CGh_m922.js} +61 -61
- package/dist/vue-ui-gauge-CWd_ol6u.cjs +1 -0
- package/dist/{vue-ui-gizmo-C0aF0qVF.js → vue-ui-gizmo-BY3hnKSH.js} +2 -2
- package/dist/{vue-ui-gizmo-bFlUFJa8.cjs → vue-ui-gizmo-D5Kn7w7L.cjs} +1 -1
- package/dist/vue-ui-heatmap-AUm42a1v.cjs +1 -0
- package/dist/{vue-ui-heatmap-kiVWYvjC.js → vue-ui-heatmap-yYN0u0I6.js} +150 -150
- package/dist/{vue-ui-kpi-DdtZLwfi.js → vue-ui-kpi-B4zr_geL.js} +3 -3
- package/dist/{vue-ui-kpi-qw5ofS-z.cjs → vue-ui-kpi-Q20yM3IP.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-B8YrB3X-.cjs → vue-ui-mini-loader-GFSZofpE.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-DcL5v-Tv.js → vue-ui-mini-loader-GImbaGsN.js} +2 -2
- package/dist/vue-ui-molecule-C9FcDH4x.cjs +1 -0
- package/dist/{vue-ui-molecule-BpomHzqe.js → vue-ui-molecule-DmrB3kgA.js} +54 -54
- package/dist/vue-ui-mood-radar-CRwStVTV.cjs +1 -0
- package/dist/{vue-ui-mood-radar-BV9xC9xF.js → vue-ui-mood-radar-sEkQtzI2.js} +100 -100
- package/dist/{vue-ui-nested-donuts-C3CMWjgk.cjs → vue-ui-nested-donuts-BcOgxtZV.cjs} +2 -2
- package/dist/{vue-ui-nested-donuts-D7D20nJu.js → vue-ui-nested-donuts-DvpZLcYd.js} +43 -43
- package/dist/vue-ui-onion-C9v9YjdJ.cjs +5 -0
- package/dist/{vue-ui-onion-4wR10l5H.js → vue-ui-onion-DQMLPe3M.js} +88 -88
- package/dist/vue-ui-parallel-coordinate-plot-BBuPdl2K.cjs +8 -0
- package/dist/{vue-ui-parallel-coordinate-plot-DA3byJV2.js → vue-ui-parallel-coordinate-plot-DN2LPNyS.js} +38 -38
- package/dist/{vue-ui-quadrant-D5wvd5h3.js → vue-ui-quadrant-D2GpeXI6.js} +49 -49
- package/dist/vue-ui-quadrant-ulY-rCMI.cjs +1 -0
- package/dist/{vue-ui-quick-chart-CTSq5JJE.js → vue-ui-quick-chart-C5K9DfUV.js} +12 -12
- package/dist/vue-ui-quick-chart-DFj17h6h.cjs +15 -0
- package/dist/{vue-ui-radar-OW6awckj.js → vue-ui-radar-B9TZPujK.js} +42 -42
- package/dist/vue-ui-radar-KA287Tp-.cjs +1 -0
- package/dist/{vue-ui-rating-C6gyJWJF.js → vue-ui-rating-B0pNsmGB.js} +2 -2
- package/dist/{vue-ui-rating-3ZVG38br.cjs → vue-ui-rating-DpxzUDQq.cjs} +1 -1
- package/dist/vue-ui-relation-circle-D3B-lpdM.cjs +1 -0
- package/dist/{vue-ui-relation-circle-Dr9-ozKG.js → vue-ui-relation-circle-DSnlpLHt.js} +54 -54
- package/dist/{vue-ui-rings-Ce6tFKrN.js → vue-ui-rings-BuvFDBXg.js} +77 -77
- package/dist/vue-ui-rings-cmeFVitd.cjs +2 -0
- package/dist/vue-ui-scatter-BWPqoSUN.cjs +1 -0
- package/dist/{vue-ui-scatter-C_3WQPMf.js → vue-ui-scatter-D_chvOSJ.js} +51 -51
- package/dist/{vue-ui-screenshot-D6N4GbAL.cjs → vue-ui-screenshot-CwrXLMru.cjs} +1 -1
- package/dist/{vue-ui-screenshot-BvE2dsvU.js → vue-ui-screenshot-DSHeHshf.js} +1 -1
- package/dist/{vue-ui-skeleton-CkSlhfsB.cjs → vue-ui-skeleton-DJhwv2oY.cjs} +1 -1
- package/dist/{vue-ui-skeleton-DH4t1hrL.js → vue-ui-skeleton-Du4zw-c1.js} +2 -2
- package/dist/{vue-ui-smiley-CSA28QLT.cjs → vue-ui-smiley-BNkk6suC.cjs} +1 -1
- package/dist/{vue-ui-smiley-C-92SyPZ.js → vue-ui-smiley-BtQLJ7rA.js} +2 -2
- package/dist/{vue-ui-spark-trend-CrElvUcG.js → vue-ui-spark-trend-BgA79g7a.js} +29 -29
- package/dist/vue-ui-spark-trend-DFIjxBTY.cjs +1 -0
- package/dist/vue-ui-sparkbar-BlwQfhlY.cjs +1 -0
- package/dist/{vue-ui-sparkbar-DrbkUcOX.js → vue-ui-sparkbar-DQAWZReF.js} +27 -27
- package/dist/vue-ui-sparkgauge-BCRSQDpt.cjs +1 -0
- package/dist/{vue-ui-sparkgauge-PSRf_u0V.js → vue-ui-sparkgauge-CCApU38s.js} +22 -22
- package/dist/vue-ui-sparkhistogram-CTxG1Vtn.cjs +1 -0
- package/dist/{vue-ui-sparkhistogram-pZslBri7.js → vue-ui-sparkhistogram-PKTt4EmH.js} +52 -52
- package/dist/{vue-ui-sparkline-CqgArzCs.cjs → vue-ui-sparkline-BUaixngQ.cjs} +1 -1
- package/dist/{vue-ui-sparkline-BPExupWx.js → vue-ui-sparkline-EESAiZyt.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-i02y9FzO.js → vue-ui-sparkstackbar-TnLNixdf.js} +6 -6
- package/dist/vue-ui-sparkstackbar-iQnc0zcO.cjs +1 -0
- package/dist/{vue-ui-stackbar-DfXxN_P3.js → vue-ui-stackbar-Ci04sup3.js} +62 -62
- package/dist/vue-ui-stackbar-Rrcyg4CC.cjs +6 -0
- package/dist/vue-ui-strip-plot-CowHumiU.cjs +1 -0
- package/dist/{vue-ui-strip-plot-BZ-we0b1.js → vue-ui-strip-plot-DbvW0BuF.js} +72 -72
- package/dist/{vue-ui-table-Dy26T2oy.cjs → vue-ui-table-328De4vk.cjs} +1 -1
- package/dist/{vue-ui-table-BqLbMTHt.js → vue-ui-table-CamkBCdL.js} +1 -1
- package/dist/{vue-ui-table-heatmap-BnwiB4id.cjs → vue-ui-table-heatmap-CCHre3Gt.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-KzoqT8nX.js → vue-ui-table-heatmap-D-YdrvGV.js} +4 -4
- package/dist/{vue-ui-table-sparkline-BBEsDDnN.cjs → vue-ui-table-sparkline-Cmg7wnQ0.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-BakiSjV4.js → vue-ui-table-sparkline-Dg2RKv6f.js} +5 -5
- package/dist/vue-ui-thermometer-BDeKErC9.cjs +1 -0
- package/dist/{vue-ui-thermometer-D7cgRJoy.js → vue-ui-thermometer-jWHbZTc2.js} +47 -47
- package/dist/{vue-ui-timer-r4VFny9D.js → vue-ui-timer-BPepr5eV.js} +4 -4
- package/dist/{vue-ui-timer-COLXZ1J1.cjs → vue-ui-timer-B_FyRAU7.cjs} +1 -1
- package/dist/vue-ui-tiremarks-CaJWlyz8.cjs +1 -0
- package/dist/{vue-ui-tiremarks-DNQpuz8A.js → vue-ui-tiremarks-DW8Q2IBl.js} +94 -94
- package/dist/{vue-ui-treemap-CsHaQjwu.cjs → vue-ui-treemap-B9GpvA0k.cjs} +1 -1
- package/dist/{vue-ui-treemap-CD5GoXrU.js → vue-ui-treemap-CWu43qLo.js} +12 -12
- package/dist/{vue-ui-vertical-bar-DRH98pOw.js → vue-ui-vertical-bar-CndASePh.js} +178 -178
- package/dist/vue-ui-vertical-bar-a_41JdIn.cjs +4 -0
- package/dist/{vue-ui-waffle-l9NGD_0B.js → vue-ui-waffle-CdyqwJwN.js} +71 -71
- package/dist/vue-ui-waffle-c9ycdoKz.cjs +1 -0
- package/dist/vue-ui-wheel-B3BMfKmd.cjs +1 -0
- package/dist/{vue-ui-wheel-BpqWo_KY.js → vue-ui-wheel-Byq_BLhl.js} +57 -57
- package/dist/{vue-ui-word-cloud-DLaAm8t8.js → vue-ui-word-cloud-BRxN5uFD.js} +107 -107
- package/dist/{vue-ui-word-cloud-D5JLdr9g.cjs → vue-ui-word-cloud-BVOcsuMP.cjs} +1 -1
- package/dist/vue-ui-xy-CsS5ny0q.cjs +3 -0
- package/dist/{vue-ui-xy-Ct-9OxiZ.js → vue-ui-xy-DgEdZz0O.js} +356 -361
- package/dist/{vue-ui-xy-canvas-BU3nj2M1.js → vue-ui-xy-canvas-BI7jUOTn.js} +10 -10
- package/dist/{vue-ui-xy-canvas-Bub1qCm9.cjs → vue-ui-xy-canvas-Td0WNYN0.cjs} +1 -1
- package/package.json +1 -1
- package/dist/vue-ui-3d-bar-1aTroDle.cjs +0 -19
- package/dist/vue-ui-age-pyramid-D8Tr8jvT.cjs +0 -1
- package/dist/vue-ui-candlestick-BAuWAMct.cjs +0 -2
- package/dist/vue-ui-donut-evolution-DsdzjA88.cjs +0 -1
- package/dist/vue-ui-donut-w1eqaTu0.cjs +0 -1
- package/dist/vue-ui-flow-oBnzNN4s.cjs +0 -1
- package/dist/vue-ui-galaxy-DgxKqf6u.cjs +0 -1
- package/dist/vue-ui-gauge-B64pcc54.cjs +0 -1
- package/dist/vue-ui-heatmap-cjY0mi4a.cjs +0 -1
- package/dist/vue-ui-molecule-B8cYtnHq.cjs +0 -1
- package/dist/vue-ui-mood-radar-BA2VVPO5.cjs +0 -1
- package/dist/vue-ui-onion-CVp0g8MP.cjs +0 -5
- package/dist/vue-ui-parallel-coordinate-plot-CmaHQR6-.cjs +0 -8
- package/dist/vue-ui-quadrant-B8ffMNIS.cjs +0 -1
- package/dist/vue-ui-quick-chart-hnVT9GKL.cjs +0 -15
- package/dist/vue-ui-radar-ySl7KzoX.cjs +0 -1
- package/dist/vue-ui-relation-circle-CMW26dvv.cjs +0 -1
- package/dist/vue-ui-rings-CR1t6iss.cjs +0 -2
- package/dist/vue-ui-scatter-CKtgbptk.cjs +0 -1
- package/dist/vue-ui-spark-trend-D4d4Mr24.cjs +0 -1
- package/dist/vue-ui-sparkbar-DDqy0UBm.cjs +0 -1
- package/dist/vue-ui-sparkgauge-D6cG2rb8.cjs +0 -1
- package/dist/vue-ui-sparkhistogram-B9sVdLfh.cjs +0 -1
- package/dist/vue-ui-sparkstackbar-BbGJ75_9.cjs +0 -1
- package/dist/vue-ui-stackbar-CRbcnnwn.cjs +0 -6
- package/dist/vue-ui-strip-plot-oZBXDxc-.cjs +0 -1
- package/dist/vue-ui-thermometer-E0mrvP4G.cjs +0 -1
- package/dist/vue-ui-tiremarks-C15sglnJ.cjs +0 -1
- package/dist/vue-ui-vertical-bar-DucujxOR.cjs +0 -4
- package/dist/vue-ui-waffle-DhroAZB3.cjs +0 -1
- package/dist/vue-ui-wheel-Bd87HcGT.cjs +0 -1
- package/dist/vue-ui-xy-BHzOpYm9.cjs +0 -3
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { computed as g, ref as d, watch as De, onMounted as qe, onBeforeUnmount as Je, openBlock as u, createElementBlock as n, normalizeClass as O, normalizeStyle as ue, createBlock as P, createCommentVNode as y, unref as r, createSlots as Ke, withCtx as m, renderSlot as $, normalizeProps as q, guardReactiveProps as J, createElementVNode as p, Fragment as x, renderList as S, toDisplayString as T, createVNode as Qe, createTextVNode as K, nextTick as Ze, pushScopeId as je, popScopeId as et } from "vue";
|
|
2
|
-
import { u as tt, c as lt, t as at, a as ot, p as Q, o as st, e as A, b as ut, G as ze, d as nt, m as Oe, f as L, X as rt, s as Pe, I as it, k as V, n as ne, i as G, x as Ae, y as dt, q as ct, r as vt } from "./index-
|
|
2
|
+
import { u as tt, c as lt, t as at, a as ot, p as Q, o as st, e as A, b as ut, G as ze, d as nt, m as Oe, f as L, X as rt, s as Pe, I as it, k as V, n as ne, i as G, x as Ae, y as dt, q as ct, r as vt } from "./index-BiuHBtkZ.js";
|
|
3
3
|
import { t as ft, u as ht } from "./useResponsive-NZB-WLRF.js";
|
|
4
|
-
import { _ as yt } from "./Title-
|
|
5
|
-
import { u as pt, U as bt } from "./usePrinter-
|
|
6
|
-
import { D as gt } from "./DataTable-
|
|
7
|
-
import { _ as mt } from "./Tooltip-
|
|
8
|
-
import { L as wt } from "./Legend-
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { u as Ve } from "./useNestedProp-
|
|
4
|
+
import { _ as yt } from "./Title-ISDbzCH8.js";
|
|
5
|
+
import { u as pt, U as bt } from "./usePrinter-Do8KiK5h.js";
|
|
6
|
+
import { D as gt } from "./DataTable-MkG5Dqrn.js";
|
|
7
|
+
import { _ as mt } from "./Tooltip-BHmMXOej.js";
|
|
8
|
+
import { L as wt } from "./Legend-KW7sTwN3.js";
|
|
9
|
+
import _t from "./vue-ui-skeleton-Du4zw-c1.js";
|
|
10
|
+
import kt from "./vue-ui-accordion-D2fhyKpk.js";
|
|
11
|
+
import { u as Ve } from "./useNestedProp-Ck5_RzLu.js";
|
|
12
12
|
import { _ as xt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
|
-
const re = (M) => (je("data-v-
|
|
13
|
+
const re = (M) => (je("data-v-fe5209b5"), M = M(), et(), M), $t = ["id"], Lt = ["xmlns", "viewBox"], Ct = ["id"], Ft = /* @__PURE__ */ re(() => /* @__PURE__ */ p("stop", {
|
|
14
14
|
offset: "0%",
|
|
15
15
|
"stop-color": "#FFFFFF",
|
|
16
16
|
"stop-opacity": "0"
|
|
@@ -95,7 +95,7 @@ const re = (M) => (je("data-v-e6e70e76"), M = M(), et(), M), $t = ["id"], Lt = [
|
|
|
95
95
|
const { isPrinting: be, isImaging: ge, generatePdf: me, generateImage: we } = pt({
|
|
96
96
|
elementId: `nested_donuts_${w.value}`,
|
|
97
97
|
fileName: e.value.style.chart.title.text || "vue-ui-nested-donuts"
|
|
98
|
-
}), Re = g(() => ut(e.value.customPalette)),
|
|
98
|
+
}), Re = g(() => ut(e.value.customPalette)), _ = d({
|
|
99
99
|
dataLabels: {
|
|
100
100
|
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
101
101
|
},
|
|
@@ -154,7 +154,7 @@ const re = (M) => (je("data-v-e6e70e76"), M = M(), et(), M), $t = ["id"], Lt = [
|
|
|
154
154
|
value: ze(a.values).reduce((l, i) => l + i, 0),
|
|
155
155
|
absoluteValues: a.values || []
|
|
156
156
|
}))
|
|
157
|
-
})))), F = g(() => Math.min(f.value.height, f.value.width) * (e.value.style.chart.layout.donut.strokeWidth / 512)),
|
|
157
|
+
})))), F = g(() => Math.min(f.value.height, f.value.width) * (e.value.style.chart.layout.donut.strokeWidth / 512)), _e = g(() => [...C.value].map((t, s) => {
|
|
158
158
|
const a = t.series.filter((o) => !h.value.includes(o.id)).map((o) => o.value).reduce((o, l) => o + l, 0);
|
|
159
159
|
return {
|
|
160
160
|
...t,
|
|
@@ -171,9 +171,9 @@ const re = (M) => (je("data-v-e6e70e76"), M = M(), et(), M), $t = ["id"], Lt = [
|
|
|
171
171
|
a.includes(t[l]) && (o += 1);
|
|
172
172
|
return o < s;
|
|
173
173
|
}
|
|
174
|
-
const v = d(
|
|
175
|
-
De(() =>
|
|
176
|
-
const
|
|
174
|
+
const v = d(_e.value);
|
|
175
|
+
De(() => _e.value, (t) => v.value = t);
|
|
176
|
+
const ke = d(null), xe = d(null);
|
|
177
177
|
function te(t) {
|
|
178
178
|
ie("selectLegend", t);
|
|
179
179
|
const s = C.value.flatMap((c) => c.series).find((c) => c.id === t.id), a = v.value.flatMap((c) => c.series).find((c) => c.id === t.id);
|
|
@@ -181,32 +181,32 @@ const re = (M) => (je("data-v-e6e70e76"), M = M(), et(), M), $t = ["id"], Lt = [
|
|
|
181
181
|
const i = C.value.find((c) => c.id === s.arcOfId).series.map((c) => c.id), b = Ye(i, i.length - 1, h.value);
|
|
182
182
|
if (h.value.includes(t.id)) {
|
|
183
183
|
let c = function() {
|
|
184
|
-
l > s.value ? (cancelAnimationFrame(
|
|
185
|
-
...
|
|
186
|
-
series:
|
|
184
|
+
l > s.value ? (cancelAnimationFrame(ke.value), v.value = v.value.map((k) => ({
|
|
185
|
+
...k,
|
|
186
|
+
series: k.series.map((N) => N.id == t.id ? {
|
|
187
187
|
...N,
|
|
188
188
|
value: s.value
|
|
189
189
|
} : N)
|
|
190
|
-
}))) : (l += s.value * 0.025, v.value = v.value.map((
|
|
191
|
-
...
|
|
192
|
-
series:
|
|
190
|
+
}))) : (l += s.value * 0.025, v.value = v.value.map((k) => ({
|
|
191
|
+
...k,
|
|
192
|
+
series: k.series.map((N) => N.id === t.id ? {
|
|
193
193
|
...N,
|
|
194
194
|
value: l
|
|
195
195
|
} : N)
|
|
196
|
-
})),
|
|
196
|
+
})), ke.value = requestAnimationFrame(c));
|
|
197
197
|
};
|
|
198
|
-
h.value = h.value.filter((
|
|
198
|
+
h.value = h.value.filter((k) => k !== t.id), c();
|
|
199
199
|
} else if (b) {
|
|
200
200
|
let c = function() {
|
|
201
|
-
l < 0.1 ? (cancelAnimationFrame(xe.value), h.value.push(t.id), v.value = v.value.map((
|
|
202
|
-
...
|
|
203
|
-
series:
|
|
201
|
+
l < 0.1 ? (cancelAnimationFrame(xe.value), h.value.push(t.id), v.value = v.value.map((k, N) => ({
|
|
202
|
+
...k,
|
|
203
|
+
series: k.series.map((z) => z.id === t.id ? {
|
|
204
204
|
...z,
|
|
205
205
|
value: 0
|
|
206
206
|
} : z)
|
|
207
|
-
}))) : (l /= 1.1, v.value = v.value.map((
|
|
208
|
-
...
|
|
209
|
-
series:
|
|
207
|
+
}))) : (l /= 1.1, v.value = v.value.map((k, N) => ({
|
|
208
|
+
...k,
|
|
209
|
+
series: k.series.map((z) => z.id === t.id ? {
|
|
210
210
|
...z,
|
|
211
211
|
value: l
|
|
212
212
|
} : z)
|
|
@@ -431,13 +431,13 @@ const re = (M) => (je("data-v-e6e70e76"), M = M(), et(), M), $t = ["id"], Lt = [
|
|
|
431
431
|
return C.value;
|
|
432
432
|
}
|
|
433
433
|
function Ne() {
|
|
434
|
-
|
|
434
|
+
_.value.showTable = !_.value.showTable;
|
|
435
435
|
}
|
|
436
436
|
function Te() {
|
|
437
|
-
|
|
437
|
+
_.value.dataLabels.show = !_.value.dataLabels.show;
|
|
438
438
|
}
|
|
439
439
|
function Ie() {
|
|
440
|
-
|
|
440
|
+
_.value.showTooltip = !_.value.showTooltip;
|
|
441
441
|
}
|
|
442
442
|
return Me({
|
|
443
443
|
getData: He,
|
|
@@ -489,7 +489,7 @@ const re = (M) => (je("data-v-e6e70e76"), M = M(), et(), M), $t = ["id"], Lt = [
|
|
|
489
489
|
hasLabel: e.value.userOptions.buttons.labels,
|
|
490
490
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
491
491
|
isFullscreen: U.value,
|
|
492
|
-
isTooltip:
|
|
492
|
+
isTooltip: _.value.showTooltip,
|
|
493
493
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
494
494
|
chartElement: B.value,
|
|
495
495
|
onToggleFullscreen: Ge,
|
|
@@ -555,7 +555,7 @@ const re = (M) => (je("data-v-e6e70e76"), M = M(), et(), M), $t = ["id"], Lt = [
|
|
|
555
555
|
xmlns: r(rt),
|
|
556
556
|
class: O({ "vue-data-ui-fullscreen--on": U.value, "vue-data-ui-fulscreen--off": !U.value }),
|
|
557
557
|
viewBox: `0 0 ${f.value.width <= 0 ? 1e-3 : f.value.width} ${f.value.height < 0 ? 1e-3 : f.value.height}`,
|
|
558
|
-
style: ue(`max-width:100%; overflow: visible; background
|
|
558
|
+
style: ue(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
|
|
559
559
|
}, [
|
|
560
560
|
p("defs", null, [
|
|
561
561
|
(u(!0), n(x, null, S(Le.value, (a, o) => (u(), n("radialGradient", {
|
|
@@ -646,7 +646,7 @@ const re = (M) => (je("data-v-e6e70e76"), M = M(), et(), M), $t = ["id"], Lt = [
|
|
|
646
646
|
(u(!0), n(x, null, S(a.donut, (l, i) => (u(), n("g", {
|
|
647
647
|
filter: Fe(l, i)
|
|
648
648
|
}, [
|
|
649
|
-
oe(l) &&
|
|
649
|
+
oe(l) && _.value.dataLabels.show && e.value.style.chart.layout.labels.dataLabels.showPercentage ? (u(), n("text", {
|
|
650
650
|
key: 0,
|
|
651
651
|
class: O({ animated: e.value.useCssAnimation }),
|
|
652
652
|
"text-anchor": r(V)(l, !0).anchor,
|
|
@@ -656,7 +656,7 @@ const re = (M) => (je("data-v-e6e70e76"), M = M(), et(), M), $t = ["id"], Lt = [
|
|
|
656
656
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
657
657
|
"font-weight": e.value.style.chart.layout.labels.dataLabels.boldPercentage ? "bold" : "normal"
|
|
658
658
|
}, T(r(L)({ v: l.proportion * 100, s: "%", r: e.value.style.chart.layout.labels.dataLabels.roundingPercentage })), 11, Et)) : y("", !0),
|
|
659
|
-
oe(l) &&
|
|
659
|
+
oe(l) && _.value.dataLabels.show && e.value.style.chart.layout.labels.dataLabels.showPercentage && e.value.style.chart.layout.labels.dataLabels.showValue ? (u(), n("text", {
|
|
660
660
|
key: 1,
|
|
661
661
|
class: O({ animated: e.value.useCssAnimation }),
|
|
662
662
|
"text-anchor": r(V)(l, !0).anchor,
|
|
@@ -676,7 +676,7 @@ const re = (M) => (je("data-v-e6e70e76"), M = M(), et(), M), $t = ["id"], Lt = [
|
|
|
676
676
|
}),
|
|
677
677
|
{ datapoint: l, seriesIndex: o, datapointIndex: i }
|
|
678
678
|
)) + ") ", 11, Yt)) : y("", !0),
|
|
679
|
-
oe(l) &&
|
|
679
|
+
oe(l) && _.value.dataLabels.show && !e.value.style.chart.layout.labels.dataLabels.showPercentage && e.value.style.chart.layout.labels.dataLabels.showValue ? (u(), n("text", {
|
|
680
680
|
key: 2,
|
|
681
681
|
class: O({ animated: e.value.useCssAnimation }),
|
|
682
682
|
"text-anchor": r(V)(l, !0).anchor,
|
|
@@ -722,7 +722,7 @@ const re = (M) => (je("data-v-e6e70e76"), M = M(), et(), M), $t = ["id"], Lt = [
|
|
|
722
722
|
t.$slots.watermark ? (u(), n("div", Ht, [
|
|
723
723
|
$(t.$slots, "watermark", q(J({ isPrinting: r(be) || r(ge) })), void 0, !0)
|
|
724
724
|
])) : y("", !0),
|
|
725
|
-
R.value ? y("", !0) : (u(), P(
|
|
725
|
+
R.value ? y("", !0) : (u(), P(_t, {
|
|
726
726
|
key: 4,
|
|
727
727
|
config: {
|
|
728
728
|
type: "donut",
|
|
@@ -735,7 +735,7 @@ const re = (M) => (je("data-v-e6e70e76"), M = M(), et(), M), $t = ["id"], Lt = [
|
|
|
735
735
|
}
|
|
736
736
|
}, null, 8, ["config"])),
|
|
737
737
|
Qe(mt, {
|
|
738
|
-
show:
|
|
738
|
+
show: _.value.showTooltip && Z.value,
|
|
739
739
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
740
740
|
color: e.value.style.chart.tooltip.color,
|
|
741
741
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -805,11 +805,11 @@ const re = (M) => (je("data-v-e6e70e76"), M = M(), et(), M), $t = ["id"], Lt = [
|
|
|
805
805
|
}, [
|
|
806
806
|
$(t.$slots, "legend", { legend: se.value }, void 0, !0)
|
|
807
807
|
], 512)),
|
|
808
|
-
R.value ? (u(), P(
|
|
808
|
+
R.value ? (u(), P(kt, {
|
|
809
809
|
key: 7,
|
|
810
810
|
hideDetails: "",
|
|
811
811
|
config: {
|
|
812
|
-
open:
|
|
812
|
+
open: _.value.showTable,
|
|
813
813
|
maxHeight: 1e4,
|
|
814
814
|
body: {
|
|
815
815
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -829,7 +829,7 @@ const re = (M) => (je("data-v-e6e70e76"), M = M(), et(), M), $t = ["id"], Lt = [
|
|
|
829
829
|
body: H.value.body,
|
|
830
830
|
config: H.value.config,
|
|
831
831
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
832
|
-
onClose: s[2] || (s[2] = (a) =>
|
|
832
|
+
onClose: s[2] || (s[2] = (a) => _.value.showTable = !1)
|
|
833
833
|
}, {
|
|
834
834
|
th: m(({ th: a }) => [
|
|
835
835
|
p("div", {
|
|
@@ -847,7 +847,7 @@ const re = (M) => (je("data-v-e6e70e76"), M = M(), et(), M), $t = ["id"], Lt = [
|
|
|
847
847
|
}, 8, ["config"])) : y("", !0)
|
|
848
848
|
], 14, $t));
|
|
849
849
|
}
|
|
850
|
-
}, dl = /* @__PURE__ */ xt(Qt, [["__scopeId", "data-v-
|
|
850
|
+
}, dl = /* @__PURE__ */ xt(Qt, [["__scopeId", "data-v-fe5209b5"]]);
|
|
851
851
|
export {
|
|
852
852
|
dl as default
|
|
853
853
|
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),u=require("./index-D-vy9N1v.cjs"),j=require("./useResponsive-B3TrDDIG.cjs"),he=require("./Title-BaKZYHEx.cjs"),J=require("./usePrinter-P4nLcXX-.cjs"),pe=require("./Legend-k2mcTp7z.cjs"),fe=require("./DataTable-pVXaNplZ.cjs"),ge=require("./Tooltip-okAYzo5Y.cjs"),me=require("./vue-ui-skeleton-DJhwv2oY.cjs"),ye=require("./vue-ui-accordion-btKAUUTu.cjs"),K=require("./useNestedProp-B9yDavuy.cjs"),be=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ke=["id"],we=["xmlns","viewBox"],Ce=["cx","cy","r","stroke","stroke-width","stroke-dasharray","stroke-dashoffset"],xe=["cx","cy","r","stroke","stroke-width","stroke-dasharray","stroke-dashoffset"],$e=["id"],Be=["stdDeviation"],Te=["filter"],Se=["cx","cy","r","stroke-width","stroke-dasharray","stroke-dashoffset"],_e=["cx","cy","r","stroke-width","stroke-dasharray","stroke-dashoffset","onMouseenter"],Pe={key:1},Ne=["onMouseenter"],Oe=["x","y","font-size","fill","font-weight"],Fe={key:3,class:"vue-data-ui-watermark"},Ie=["onClick"],Ee=["innerHTML"],Le={__name:"vue-ui-onion",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend"],setup(Q,{expose:Z,emit:ee}){const p=Q,{vue_ui_onion:te}=u.useConfig(),C=e.computed(()=>!!p.dataset&&p.dataset.length),m=e.ref(u.createUid()),le=e.ref(null),F=e.ref(0),x=e.ref(!1),T=e.ref(""),d=e.ref([]),y=e.ref(null),I=e.ref(null),E=e.ref(null),L=e.ref(0),M=e.ref(0),V=e.ref(0),t=e.computed({get:()=>D(),set:a=>a});function D(){const a=K.useNestedProp({userConfig:p.config,defaultConfig:te});return a.theme?{...K.useNestedProp({userConfig:u.themes.vue_ui_onion[a.theme]||p.config,defaultConfig:a}),customPalette:u.themePalettes[a.theme]||u.palette}:a}e.watch(()=>p.config,a=>{t.value=D(),q(),L.value+=1,M.value+=1,V.value+=1},{deep:!0});const{isPrinting:R,isImaging:z,generatePdf:A,generateImage:Y}=J.usePrinter({elementId:`vue-ui-onion_${m.value}`,fileName:t.value.style.chart.title.text||"vue-ui-onion"}),ae=e.computed(()=>u.convertCustomPalette(t.value.customPalette)),f=e.ref({showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show}),n=e.ref({height:512,width:512,padding:{top:64,left:64,right:64,bottom:64},minRadius:64}),$=e.ref(null);e.onMounted(()=>{q()});function q(){if(u.objectIsEmpty(p.dataset)&&u.error({componentName:"VueUiOnion",type:"dataset"}),t.value.responsive){const r=j.throttle(()=>{const{width:l,height:o}=j.useResponsive({chart:y.value,title:t.value.style.chart.title.text?I.value:null,legend:t.value.style.chart.legend.show?E.value:null});n.value.width=l,n.value.height=o,n.value.padding.top=Math.max(l,o)*.125,n.value.padding.right=Math.max(l,o)*.125,n.value.padding.bottom=Math.max(l,o)*.125,n.value.padding.left=Math.max(l,o)*.125,n.value.minRadius=Math.min(l,o)*.125});$.value=new ResizeObserver(r),$.value.observe(y.value.parentNode)}}e.onBeforeUnmount(()=>{$.value&&$.value.disconnect()});const s=e.computed(()=>({top:n.value.padding.top,left:n.value.padding.left,right:n.value.width-n.value.padding.right,bottom:n.value.height-n.value.padding.bottom,centerX:n.value.width/2,centerY:n.value.height/2,width:n.value.width-n.value.padding.right-n.value.padding.left,height:n.value.height-n.value.padding.bottom-n.value.padding.top,minRadius:n.value.minRadius,maxRadius:Math.min(n.value.width,n.value.height)-n.value.padding.top*2})),i=e.computed(()=>(p.dataset.forEach((a,r)=>{[null,void 0].includes(a.name)&&u.error({componentName:"VueUiOnion",type:"datasetSerieAttribute",property:"name",index:r}),[void 0].includes(a.percentage)&&u.error({componentName:"VueUiOnion",type:"datasetSerieAttribute",property:"percentage",index:r})}),p.dataset.map((a,r)=>{const l=`onion_serie_${r}_${m.value}`;return{...a,percentage:a.percentage||0,targetPercentage:a.percentage||0,color:u.convertColorToHex(a.color)||ae.value[r]||u.palette[r],id:l,shape:"circle",opacity:d.value.includes(l)?.5:1,absoluteIndex:r,segregate:()=>X(l),isSegregated:d.value.includes(l)}}))),b=e.ref(i.value),oe=e.computed(()=>t.value.useStartAnimation),re=e.ref(null),ne=e.computed(()=>Math.max(...i.value.map(a=>a.percentage))),S=e.ref(!1);e.watch(()=>i.value,ue,{immediate:!0});function ue(){if(oe.value&&!S.value){let r=function(){a>=ne.value?(cancelAnimationFrame(re.value),b.value=i.value,S.value=!0):(b.value=i.value.map(l=>({...l,percentage:a<l.targetPercentage?a:l.targetPercentage})),a+=1,requestAnimationFrame(r),S.value=!0)};b.value=i.value.map(l=>({...l,percentage:0}));let a=0;r()}else b.value=i.value}const se=e.computed(()=>({cy:"onion-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":""})),ie=e.computed(()=>i.value.filter(a=>!d.value.includes(a.id)).length),g=e.computed(()=>{const a=Math.min(s.value.width,s.value.height)/2/i.value.length;return{gutter:(a>t.value.style.chart.layout.maxThickness?t.value.style.chart.layout.maxThickness:a)*t.value.style.chart.layout.gutter.width,track:(a>t.value.style.chart.layout.maxThickness?t.value.style.chart.layout.maxThickness:a)*t.value.style.chart.layout.track.width}}),v=e.computed(()=>b.value.filter(a=>!d.value.includes(a.id)).map((a,r)=>{const l=(s.value.maxRadius-g.value.track)/ie.value/2*(1+r),o=s.value.centerY-l;return{percentage:a.percentage||0,...a,labelY:o,radius:l,path:ce(l,a.percentage||0)}}));function ce(a,r){const l=2*Math.PI*a,o=l*.75,c=`${o} ${l}`,w=o*(1-r/100);return{bgDashArray:`${o} ${l}`,bgDashOffset:0,dashArray:c,dashOffset:w,fullOffset:0,active:`
|
|
2
|
+
M ${s.value.centerX},${s.value.centerY-a}
|
|
3
|
+
A ${a},${a} 0 1 1
|
|
4
|
+
${s.value.centerX+a*Math.cos(Math.PI*3/4)},${s.value.centerY+a*Math.sin(Math.PI*3/4)}
|
|
5
|
+
`.trim()}}function X(a){d.value.includes(a)?d.value=d.value.filter(r=>r!==a):d.value.push(a),ee("selectLegend",v.value)}function de(){return v.value}const _=e.computed(()=>{const a=[t.value.table.translations.serie,t.value.table.translations.percentage,t.value.table.translations.value],r=v.value.map(l=>[l.name,l.percentage,l.value]);return{head:a,body:r}}),B=e.computed(()=>{const a=_.value.head,r=v.value.map(o=>[`<span style="color:${o.color}">⬤</span> ${o.name}`,`${Number(o.percentage??0).toFixed(t.value.table.td.roundingPercentage).toLocaleString()}%`,`${o.prefix||""}${[null,void 0,NaN,"NaN"].includes(o.value)?"-":o.value.toFixed(t.value.table.td.roundingValue).toLocaleString()}${o.suffix||""}`]),l={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{head:a,body:r,config:l,colNames:a}});function U(){e.nextTick(()=>{const a=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[""]],r=_.value.head,l=_.value.body,o=a.concat([r]).concat(l),c=u.createCsvContent(o);u.downloadCsv({csvContent:c,title:t.value.style.chart.title.text||"vue-ui-onion"})})}const h=e.ref(void 0),k=e.ref(!1);function ve(a){k.value=a,F.value+=1}const P=e.ref(null);function G({datapoint:a,seriesIndex:r,show:l=!0}){const o=a.absoluteIndex;h.value=r,P.value={datapoint:a,seriesIndex:o,series:i.value,config:t.value},x.value=l;let c="";const w=t.value.style.chart.tooltip.customFormat;if(u.isFunction(w)&&u.functionReturnsString(()=>w({seriesIndex:o,datapoint:a,series:i.value,config:t.value})))T.value=w({seriesIndex:o,datapoint:a,series:i.value,config:t.value});else{const N=t.value.style.chart.tooltip.showPercentage,O=t.value.style.chart.tooltip.showValue;c+=`<div style="width: 100%; border-bottom: 1px solid ${t.value.style.chart.tooltip.borderColor}; padding-bottom: 6px;margin-bottom:3px;display:flex;flex-direction:row;gap:3px;align-items:center"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${a.color}"/></svg><span></span>${a.name}</span></div>`,c+=`<div style="width:100%;text-align:left;"><b>${N?u.dataLabel({p:"",v:a.percentage,s:"%",r:t.value.style.chart.tooltip.roundingPercentage}):""}</b> ${N&&O?"(":""}${O?u.applyDataLabel(t.value.style.chart.layout.labels.value.formatter,a.value,u.dataLabel({p:a.prefix||"",v:a.value,s:a.suffix||"",r:t.value.style.chart.tooltip.roundingValue}),{datapoint:a,seriesIndex:r}):""}${N&&O?")":""}</div>`,T.value=`<div>${c}</div>`}}function H(){f.value.showTable=!f.value.showTable}function W(){f.value.showTooltip=!f.value.showTooltip}return Z({getData:de,generatePdf:A,generateCsv:U,generateImage:Y,toggleTable:H,toggleTooltip:W}),(a,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`vue-ui-onion ${k.value?"vue-data-ui-wrapper-fullscreen":""} ${t.value.useCssAnimation?"":"vue-ui-dna"}`),ref_key:"onionChart",ref:y,id:`vue-ui-onion_${m.value}`,style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; ${t.value.responsive?"height: 100%;":""} text-align:center;background:${t.value.style.chart.backgroundColor}`)},[t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"chartTitle",ref:I,style:"width:100%;background:transparent"},[(e.openBlock(),e.createBlock(he._sfc_main,{key:`title_${L.value}`,config:{title:{cy:"onion-div-title",...t.value.style.chart.title},subtitle:{cy:"onion-div-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&C.value?(e.openBlock(),e.createBlock(J.UserOptions,{ref_key:"details",ref:le,key:`user_options${F.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isImaging:e.unref(z),isPrinting:e.unref(R),uid:m.value,hasTooltip:t.value.userOptions.buttons.tooltip&&t.value.style.chart.tooltip.show,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasXls:t.value.userOptions.buttons.csv,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:k.value,isTooltip:f.value.showTooltip,titles:{...t.value.userOptions.buttonTitles},chartElement:y.value,onToggleFullscreen:ve,onGeneratePdf:e.unref(A),onGenerateCsv:U,onGenerateImage:e.unref(Y),onToggleTable:H,onToggleTooltip:W},e.createSlots({_:2},[a.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,a.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,a.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,a.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,a.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,a.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:o})=>[e.renderSlot(a.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:o})),void 0,!0)]),key:"5"}:void 0]),1032,["backgroundColor","color","isImaging","isPrinting","uid","hasTooltip","hasPdf","hasImg","hasXls","hasTable","hasFullscreen","isFullscreen","isTooltip","titles","chartElement","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),C.value?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(u.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":k.value,"vue-data-ui-fulscreen--off":!k.value}),viewBox:`0 0 ${n.value.width<=0?1e-4:n.value.width} ${n.value.height<=0?1e-4:n.value.height}`,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:transparent;color:${t.value.style.chart.color}`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(l,o)=>(e.openBlock(),e.createElementBlock("circle",{cx:s.value.centerX,cy:s.value.centerY,r:l.radius<=0?1e-4:l.radius,stroke:t.value.style.chart.layout.gutter.color,"stroke-width":g.value.gutter,fill:"none","stroke-dasharray":l.path.bgDashArray,"stroke-dashoffset":l.path.fullOffset,"stroke-linecap":"round",class:e.normalizeClass({"vue-ui-onion-path":!0,"vue-ui-onion-blur":t.value.useBlurOnHover&&![null,void 0].includes(h.value)&&h.value!==o}),style:{transform:"rotate(-90deg)","transform-origin":"50% 50%"}},null,10,Ce))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(l,o)=>(e.openBlock(),e.createElementBlock("circle",{cx:s.value.centerX,cy:s.value.centerY,r:l.radius<0?1e-4:l.radius,stroke:`${l.color}`,"stroke-width":g.value.track,fill:"none","stroke-dasharray":l.path.dashArray,"stroke-dashoffset":l.path.dashOffset,class:e.normalizeClass({"vue-ui-onion-path":!0,"vue-ui-onion-blur":t.value.useBlurOnHover&&![null,void 0].includes(h.value)&&h.value!==o}),"stroke-linecap":"round",style:{transform:"rotate(-90deg)","transform-origin":"50% 50%"}},null,10,xe))),256)),e.createElementVNode("defs",null,[e.createElementVNode("filter",{id:`blur_${m.value}`,x:"-50%",y:"-50%",width:"200%",height:"200%"},[e.createElementVNode("feGaussianBlur",{in:"SourceGraphic",stdDeviation:100/t.value.style.chart.gradientIntensity},null,8,Be)],8,$e)]),t.value.style.chart.useGradient?(e.openBlock(),e.createElementBlock("g",{key:0,filter:`url(#blur_${m.value})`},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(l,o)=>(e.openBlock(),e.createElementBlock("circle",{cx:s.value.centerX,cy:s.value.centerY,r:l.radius<=0?1e-4:l.radius,stroke:"white","stroke-width":g.value.track/3,fill:"none","stroke-linecap":"round","stroke-dasharray":l.path.dashArray,"stroke-dashoffset":l.path.dashOffset,style:{transform:"rotate(-90deg)","transform-origin":"50% 50%"}},null,8,Se))),256))],8,Te)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(l,o)=>(e.openBlock(),e.createElementBlock("circle",{"data-cy-trap":"",cx:s.value.centerX,cy:s.value.centerY,r:l.radius<=0?1e-4:l.radius,stroke:"transparent","stroke-width":Math.max(g.value.track,g.value.gutter),fill:"none","stroke-dasharray":l.path.bgDashArray,"stroke-dashoffset":l.path.fullOffset,"stroke-linecap":"round",class:"vue-ui-onion-path",style:{transform:"rotate(-90deg)","transform-origin":"50% 50%"},onMouseenter:c=>G({datapoint:l,show:!0,seriesIndex:o}),onMouseleave:r[0]||(r[0]=c=>{h.value=void 0,x.value=!1})},null,40,_e))),256)),t.value.style.chart.layout.labels.show?(e.openBlock(),e.createElementBlock("g",Pe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(l,o)=>(e.openBlock(),e.createElementBlock("g",{onMouseenter:c=>G({datapoint:l,show:!0,seriesIndex:o}),onMouseleave:r[1]||(r[1]=c=>{h.value=void 0,x.value=!1})},[d.value.includes(l.id)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("text",{key:0,x:n.value.width/2-g.value.gutter*.8+t.value.style.chart.layout.labels.offsetX,y:l.labelY+t.value.style.chart.layout.labels.offsetY,"text-anchor":"end","font-size":t.value.style.chart.layout.labels.fontSize,fill:t.value.useBlurOnHover&&![null,void 0].includes(h.value)&&h.value===o?l.color:t.value.style.chart.layout.labels.color,"font-weight":t.value.style.chart.layout.labels.bold?"bold":"normal"},e.toDisplayString(l.name?l.name+": ":"")+" "+e.toDisplayString(t.value.style.chart.layout.labels.percentage.show?e.unref(u.dataLabel)({v:l.percentage,s:"%",r:t.value.style.chart.layout.labels.roundingPercentage}):"")+" "+e.toDisplayString(!t.value.style.chart.layout.labels.percentage.show&&t.value.style.chart.layout.labels.value.show?`: ${e.unref(u.applyDataLabel)(t.value.style.chart.layout.labels.value.formatter,l.value,e.unref(u.dataLabel)({p:l.prefix||"",v:l.value||0,s:l.suffix||"",r:t.value.style.chart.layout.labels.roundingValue}),{datapoint:l,seriesIndex:o})}`:`${t.value.style.chart.layout.labels.value.show&&l.value?`(${e.unref(u.applyDataLabel)(t.value.style.chart.layout.labels.value.formatter,l.value,e.unref(u.dataLabel)({p:l.prefix||"",v:l.value||0,s:l.suffix||"",r:t.value.style.chart.layout.labels.roundingValue}),{datapoint:l,seriesIndex:o})})`:""}`),9,Oe))],40,Ne))),256))])):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"svg",{svg:n.value},void 0,!0)],14,we)):e.createCommentVNode("",!0),a.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Fe,[e.renderSlot(a.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(R)||e.unref(z)})),void 0,!0)])):e.createCommentVNode("",!0),C.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(me.default,{key:4,config:{type:"onion",style:{backgroundColor:t.value.style.chart.backgroundColor,onion:{color:t.value.style.chart.layout.gutter.color}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:E},[t.value.style.chart.legend.show?(e.openBlock(),e.createBlock(pe.Legend,{key:`legend_${V.value}`,legendSet:i.value,config:se.value,onClickMarker:r[2]||(r[2]=({legend:l})=>X(l.id))},{item:e.withCtx(({legend:l})=>[e.createElementVNode("div",{"data-cy-legend-item":"",onClick:o=>l.segregate(),style:e.normalizeStyle(`opacity:${d.value.includes(l.id)?.5:1}`)},e.toDisplayString(l.name?l.name+": ":"")+" "+e.toDisplayString((l.percentage||0).toFixed(t.value.style.chart.legend.roundingPercentage))+"% ",13,Ie)]),_:1},8,["legendSet","config"])):e.renderSlot(a.$slots,"legend",{key:1,legend:i.value},void 0,!0)],512),e.createVNode(ge._sfc_main,{show:f.value.showTooltip&&x.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:y.value,content:T.value,isCustom:e.unref(u.isFunction)(t.value.style.chart.tooltip.customFormat)},{"tooltip-before":e.withCtx(()=>[e.renderSlot(a.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...P.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(a.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...P.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","fontSize","backgroundOpacity","position","offsetY","parent","content","isCustom"]),C.value?(e.openBlock(),e.createBlock(ye.default,{key:5,hideDetails:"",config:{open:f.value.showTable,maxHeight:1e4,head:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color},body:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color}}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock(fe.DataTable,{key:`table_${M.value}`,colNames:B.value.colNames,head:B.value.head,body:B.value.body,config:B.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:r[3]||(r[3]=l=>f.value.showTable=!1)},{th:e.withCtx(({th:l})=>[e.createTextVNode(e.toDisplayString(l),1)]),td:e.withCtx(({td:l})=>[e.createElementVNode("div",{innerHTML:l},null,8,Ee)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],14,ke))}},Me=be._export_sfc(Le,[["__scopeId","data-v-45ea05bd"]]);exports.default=Me;
|