vue-data-ui 2.10.3-beta.1 → 2.10.3-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (167) hide show
  1. package/dist/{Arrow-B_t3knDx.cjs → Arrow-ClADeuRV.cjs} +1 -1
  2. package/dist/{Arrow-GVrF9WOj.js → Arrow-CsFRQWgn.js} +1 -1
  3. package/dist/{BaseIcon-DBgAUX2a.cjs → BaseIcon-BZiTtIp-.cjs} +1 -1
  4. package/dist/{BaseIcon-h9TCYwJK.js → BaseIcon-DuZmhYGx.js} +1 -1
  5. package/dist/{ColorPicker-CtdVdLS4.js → ColorPicker-CWTWiV6N.js} +3 -3
  6. package/dist/{ColorPicker-YfLIuv-R.cjs → ColorPicker-ajFBO-uj.cjs} +1 -1
  7. package/dist/{DataTable-C3yxI_aI.cjs → DataTable-D8eve3Rv.cjs} +1 -1
  8. package/dist/{DataTable-DObvjXDX.js → DataTable-D8vcDzp3.js} +2 -2
  9. package/dist/{Legend-DzSy-IUq.js → Legend-BXkorlVx.js} +2 -2
  10. package/dist/{Legend-DJ-i2IuD.cjs → Legend-C-9Va34F.cjs} +1 -1
  11. package/dist/{PackageVersion-BIgwvtuC.cjs → PackageVersion-B6hD3Tku.cjs} +1 -1
  12. package/dist/{PackageVersion-Bf6TS-QR.js → PackageVersion-Cwa-KDYy.js} +1 -1
  13. package/dist/{PenAndPaper-DMTgFlFr.js → PenAndPaper-bYremuGq.js} +3 -3
  14. package/dist/{PenAndPaper-Bz1D0jf7.cjs → PenAndPaper-mD8Ft9s0.cjs} +1 -1
  15. package/dist/{Shape-BB_8PZCY.js → Shape-BKl_8fSs.js} +1 -1
  16. package/dist/{Shape-DT1Q81L9.cjs → Shape-C-MjxBzW.cjs} +1 -1
  17. package/dist/{Slicer-Bp6W-Q1V.cjs → Slicer-BbnCHEKM.cjs} +1 -1
  18. package/dist/{Slicer-DCUzf9fq.js → Slicer-D-8HCnPl.js} +2 -2
  19. package/dist/{Title-BD93Z93w.js → Title-A3qdvX3g.js} +1 -1
  20. package/dist/{Title-B1y-3QPQ.cjs → Title-g0Df2kQZ.cjs} +1 -1
  21. package/dist/{Tooltip-DrcHzDRM.js → Tooltip-C3RycjbN.js} +1 -1
  22. package/dist/{Tooltip-RV5OVI3a.cjs → Tooltip-CzFLZsDA.cjs} +1 -1
  23. package/dist/{dom-to-png-GVD347Ix.js → dom-to-png-BycXzYPI.js} +1 -1
  24. package/dist/{dom-to-png-CCEeTdud.cjs → dom-to-png-CDJbBbow.cjs} +1 -1
  25. package/dist/{img-Dj_G_KYV.js → img-BCG9afle.js} +1 -1
  26. package/dist/{img-CzUIHHgH.cjs → img-Daf6wWtq.cjs} +1 -1
  27. package/dist/index-CLiv4lWF.cjs +9 -0
  28. package/dist/{index-DWq4s-ww.js → index-DO87eA2V.js} +44 -37
  29. package/dist/{pdf-CHnecAVX.cjs → pdf-BO4SP770.cjs} +1 -1
  30. package/dist/{pdf-DpksDzZW.js → pdf-CUKGQwXz.js} +1 -1
  31. package/dist/style.css +1 -1
  32. package/dist/types/vue-data-ui.d.cts +4 -1
  33. package/dist/types/vue-data-ui.d.ts +4 -1
  34. package/dist/{useNestedProp-CEwtxiO9.cjs → useNestedProp-DWYmdrE5.cjs} +1 -1
  35. package/dist/{useNestedProp-CPAzMQW3.js → useNestedProp-fOy4tvij.js} +1 -1
  36. package/dist/{usePrinter-BjxuB68l.js → usePrinter-BjvSt_Yu.js} +3 -3
  37. package/dist/{usePrinter-GqLmuLI-.cjs → usePrinter-sfF-cTSO.cjs} +1 -1
  38. package/dist/{vue-data-ui-DBEeag8i.cjs → vue-data-ui-BGjhB0IM.cjs} +1 -1
  39. package/dist/{vue-data-ui-BhuxqKkJ.js → vue-data-ui-BnXm4F7y.js} +62 -62
  40. package/dist/vue-data-ui.cjs +1 -1
  41. package/dist/vue-data-ui.js +21 -21
  42. package/dist/{vue-ui-3d-bar-6npDtOUn.js → vue-ui-3d-bar-B_iIJS6A.js} +9 -9
  43. package/dist/{vue-ui-3d-bar-TWzcdbdy.cjs → vue-ui-3d-bar-eQPQ37P9.cjs} +1 -1
  44. package/dist/{vue-ui-accordion-Ca6nV8uf.js → vue-ui-accordion-CMJOxHWq.js} +3 -3
  45. package/dist/{vue-ui-accordion-VK6Q6MAw.cjs → vue-ui-accordion-DQ-y4bL8.cjs} +1 -1
  46. package/dist/{vue-ui-age-pyramid-CwqMewxq.cjs → vue-ui-age-pyramid-BKcb5h0_.cjs} +1 -1
  47. package/dist/{vue-ui-age-pyramid-BaBU4AkZ.js → vue-ui-age-pyramid-DSelZbfg.js} +10 -10
  48. package/dist/{vue-ui-annotator-BSfg2Cqh.js → vue-ui-annotator-Ae8rLlRh.js} +2 -2
  49. package/dist/{vue-ui-annotator-DBtx2PHg.cjs → vue-ui-annotator-BnfB4-1v.cjs} +1 -1
  50. package/dist/{vue-ui-bullet-vBhcJqBu.js → vue-ui-bullet-CV7t3yQK.js} +8 -8
  51. package/dist/{vue-ui-bullet-DQGjRgXj.cjs → vue-ui-bullet-D3wD3j73.cjs} +1 -1
  52. package/dist/{vue-ui-candlestick-C8m29T8u.cjs → vue-ui-candlestick-CP-TFhQo.cjs} +1 -1
  53. package/dist/{vue-ui-candlestick-AhsFFM0O.js → vue-ui-candlestick-ylYUQUkS.js} +11 -11
  54. package/dist/{vue-ui-carousel-table-B09sTudP.cjs → vue-ui-carousel-table-B5FwZhGC.cjs} +1 -1
  55. package/dist/{vue-ui-carousel-table-M69qs_tr.js → vue-ui-carousel-table-B8Yes-sQ.js} +4 -4
  56. package/dist/{vue-ui-chestnut-Cz_Aj8pX.js → vue-ui-chestnut-DAskg0cX.js} +8 -8
  57. package/dist/{vue-ui-chestnut-uQ4QhJEu.cjs → vue-ui-chestnut-De2g4Q2p.cjs} +1 -1
  58. package/dist/{vue-ui-circle-pack-CN7nYxdb.cjs → vue-ui-circle-pack-BRLoGdmB.cjs} +1 -1
  59. package/dist/{vue-ui-circle-pack-CYIHdn-n.js → vue-ui-circle-pack-BlKPb01P.js} +9 -9
  60. package/dist/{vue-ui-cursor-BaXtpkTz.cjs → vue-ui-cursor-3vZlEDs4.cjs} +1 -1
  61. package/dist/{vue-ui-cursor-weHYxHaT.js → vue-ui-cursor-Fw7eOKi1.js} +2 -2
  62. package/dist/{vue-ui-dashboard-CLYI8wEV.cjs → vue-ui-dashboard-B_02OPVe.cjs} +1 -1
  63. package/dist/{vue-ui-dashboard-BNsg59hU.js → vue-ui-dashboard-jeg6HmFh.js} +62 -62
  64. package/dist/{vue-ui-digits-B0hyDETd.js → vue-ui-digits-1inXKiGc.js} +2 -2
  65. package/dist/{vue-ui-digits-wj8ka_eT.cjs → vue-ui-digits-D9COqRtQ.cjs} +1 -1
  66. package/dist/vue-ui-donut-B4HiTFOD.js +1294 -0
  67. package/dist/{vue-ui-donut-evolution-2pYa-efH.js → vue-ui-donut-evolution-CwGD6UCG.js} +11 -11
  68. package/dist/{vue-ui-donut-evolution-UoUnPX6g.cjs → vue-ui-donut-evolution-t8NE1QRt.cjs} +1 -1
  69. package/dist/vue-ui-donut-snJ23_B8.cjs +1 -0
  70. package/dist/{vue-ui-dumbbell-DwZPwUCk.cjs → vue-ui-dumbbell-BItso2iE.cjs} +1 -1
  71. package/dist/{vue-ui-dumbbell-DSxoHF9p.js → vue-ui-dumbbell-DdFlUsZF.js} +10 -10
  72. package/dist/{vue-ui-flow-BkpFuQkm.js → vue-ui-flow-CR-74ZdV.js} +9 -9
  73. package/dist/{vue-ui-flow-aJq5srUA.cjs → vue-ui-flow-DZrVpkqa.cjs} +1 -1
  74. package/dist/{vue-ui-funnel-BuI-vnQb.js → vue-ui-funnel-C6Q9kDZj.js} +9 -9
  75. package/dist/{vue-ui-funnel-BafVKO-m.cjs → vue-ui-funnel-P6dph9rO.cjs} +1 -1
  76. package/dist/{vue-ui-galaxy-DOAhW1MF.cjs → vue-ui-galaxy-BzfQwtb7.cjs} +1 -1
  77. package/dist/{vue-ui-galaxy-DU1KQobN.js → vue-ui-galaxy-CRvj8ew8.js} +11 -11
  78. package/dist/{vue-ui-gauge-D21wMdC_.cjs → vue-ui-gauge-BOmHo3_2.cjs} +1 -1
  79. package/dist/{vue-ui-gauge-D7sFY8c_.js → vue-ui-gauge-CrrDIYlt.js} +7 -7
  80. package/dist/{vue-ui-gizmo-BXaLmym5.js → vue-ui-gizmo-BjKqctlX.js} +3 -3
  81. package/dist/{vue-ui-gizmo-BA1d9qdv.cjs → vue-ui-gizmo-CdBHJhKH.cjs} +1 -1
  82. package/dist/{vue-ui-heatmap-CCoQHO_6.cjs → vue-ui-heatmap-CfeV2PVZ.cjs} +1 -1
  83. package/dist/{vue-ui-heatmap-Cxss4QvF.js → vue-ui-heatmap-DQZsO55U.js} +10 -10
  84. package/dist/{vue-ui-history-plot-C92Mp3Xp.cjs → vue-ui-history-plot-BwmxWdM2.cjs} +1 -1
  85. package/dist/{vue-ui-history-plot-DQO0n3Rf.js → vue-ui-history-plot-DR6KcO-n.js} +11 -11
  86. package/dist/{vue-ui-kpi-COo6m-Ks.cjs → vue-ui-kpi-CL1YEty9.cjs} +1 -1
  87. package/dist/{vue-ui-kpi-BhvozR5s.js → vue-ui-kpi-DPbpUZ9S.js} +3 -3
  88. package/dist/{vue-ui-mini-loader-BwEHFWkC.js → vue-ui-mini-loader-DH6ZNRTg.js} +2 -2
  89. package/dist/{vue-ui-mini-loader-B-tISyPq.cjs → vue-ui-mini-loader-sEeyMkrd.cjs} +1 -1
  90. package/dist/{vue-ui-molecule-DS-9YlFP.cjs → vue-ui-molecule-CRnMyuuZ.cjs} +1 -1
  91. package/dist/{vue-ui-molecule-bcpIBsMm.js → vue-ui-molecule-DLK2q-Oq.js} +11 -11
  92. package/dist/{vue-ui-mood-radar-C5PYCas_.js → vue-ui-mood-radar-W5IVToCL.js} +11 -11
  93. package/dist/{vue-ui-mood-radar-CtsnePEw.cjs → vue-ui-mood-radar-lnAFfrjE.cjs} +1 -1
  94. package/dist/{vue-ui-nested-donuts-BM1drnr6.cjs → vue-ui-nested-donuts-CeuU6oEJ.cjs} +1 -1
  95. package/dist/{vue-ui-nested-donuts-DykqnDcp.js → vue-ui-nested-donuts-DtgPU-KX.js} +11 -11
  96. package/dist/{vue-ui-onion-gaJqwmrF.js → vue-ui-onion-BeNPgG7G.js} +11 -11
  97. package/dist/{vue-ui-onion-C2ZBvIAR.cjs → vue-ui-onion-WwdP8EpV.cjs} +1 -1
  98. package/dist/{vue-ui-parallel-coordinate-plot-A1Gj_Ga7.js → vue-ui-parallel-coordinate-plot-Ck3SJsIG.js} +12 -12
  99. package/dist/{vue-ui-parallel-coordinate-plot-xu2Wocpp.cjs → vue-ui-parallel-coordinate-plot-Cv68PCn5.cjs} +1 -1
  100. package/dist/{vue-ui-quadrant-DcbgFaxG.js → vue-ui-quadrant-CMkw88lO.js} +12 -12
  101. package/dist/{vue-ui-quadrant-n27JvM93.cjs → vue-ui-quadrant-DZ6ybcaY.cjs} +1 -1
  102. package/dist/{vue-ui-quick-chart-ByKtbyYB.js → vue-ui-quick-chart-Cl6gJp5T.js} +9 -9
  103. package/dist/{vue-ui-quick-chart-JcAbo_Ou.cjs → vue-ui-quick-chart-DJa7vHnr.cjs} +1 -1
  104. package/dist/{vue-ui-radar-DxDuU7PC.js → vue-ui-radar-D18-CVYt.js} +12 -12
  105. package/dist/{vue-ui-radar-ClfEAsg9.cjs → vue-ui-radar-DJQ9V5u3.cjs} +1 -1
  106. package/dist/{vue-ui-rating-BRsSp9rc.js → vue-ui-rating-4aeU2wx4.js} +2 -2
  107. package/dist/{vue-ui-rating-wjKAMprc.cjs → vue-ui-rating-DJ8riM4Y.cjs} +1 -1
  108. package/dist/{vue-ui-relation-circle-DcsjQXnt.cjs → vue-ui-relation-circle-CNmTYbJn.cjs} +1 -1
  109. package/dist/{vue-ui-relation-circle-DFWEguaU.js → vue-ui-relation-circle-D5fbkhA5.js} +7 -7
  110. package/dist/{vue-ui-ridgeline-CwXRZCK1.js → vue-ui-ridgeline-DYu8Ye38.js} +12 -12
  111. package/dist/{vue-ui-ridgeline-D8nEWP-a.cjs → vue-ui-ridgeline-DcP5wra6.cjs} +1 -1
  112. package/dist/{vue-ui-rings-BUYVAbfZ.js → vue-ui-rings-BVR1q--q.js} +12 -12
  113. package/dist/{vue-ui-rings-BjHcappB.cjs → vue-ui-rings-CLex25i0.cjs} +1 -1
  114. package/dist/{vue-ui-scatter-CalyzpYZ.js → vue-ui-scatter-1nnDmU8p.js} +12 -12
  115. package/dist/{vue-ui-scatter-C2G-V-rP.cjs → vue-ui-scatter-CSsBerNk.cjs} +1 -1
  116. package/dist/{vue-ui-skeleton-C2lcxV1r.cjs → vue-ui-skeleton-3odYNTi5.cjs} +1 -1
  117. package/dist/{vue-ui-skeleton-CgSdY-i3.js → vue-ui-skeleton-BTg31tSs.js} +3 -3
  118. package/dist/{vue-ui-smiley-CAp8amf3.js → vue-ui-smiley-BIzjWlLm.js} +2 -2
  119. package/dist/{vue-ui-smiley-CyjuCEzK.cjs → vue-ui-smiley-DAbOc9Sm.cjs} +1 -1
  120. package/dist/{vue-ui-spark-trend-g3JUDKWQ.js → vue-ui-spark-trend-CFYnfyEb.js} +5 -5
  121. package/dist/{vue-ui-spark-trend-DNRog2VZ.cjs → vue-ui-spark-trend-CRKk0fMc.cjs} +1 -1
  122. package/dist/{vue-ui-sparkbar-BPFUJ-XV.cjs → vue-ui-sparkbar-CCZDQYle.cjs} +1 -1
  123. package/dist/{vue-ui-sparkbar-Dgv-eGQT.js → vue-ui-sparkbar-V1FyDpDn.js} +4 -4
  124. package/dist/{vue-ui-sparkgauge-Rm9WqJac.cjs → vue-ui-sparkgauge-CrirH2LX.cjs} +1 -1
  125. package/dist/{vue-ui-sparkgauge-J4QKrqrr.js → vue-ui-sparkgauge-MgywKNqC.js} +4 -4
  126. package/dist/{vue-ui-sparkhistogram-BamMJRbn.js → vue-ui-sparkhistogram-CwBviGI7.js} +5 -5
  127. package/dist/{vue-ui-sparkhistogram-CPJl4whz.cjs → vue-ui-sparkhistogram-U__aSGYT.cjs} +1 -1
  128. package/dist/{vue-ui-sparkline-BswJd-GI.cjs → vue-ui-sparkline-BHiVgcfL.cjs} +1 -1
  129. package/dist/{vue-ui-sparkline-BE6uxQJ1.js → vue-ui-sparkline-D3v5ydDD.js} +4 -4
  130. package/dist/{vue-ui-sparkstackbar-BH9sFANv.js → vue-ui-sparkstackbar--tnnBrOu.js} +5 -5
  131. package/dist/{vue-ui-sparkstackbar-DkOoCVXL.cjs → vue-ui-sparkstackbar-BrBQ2Vby.cjs} +1 -1
  132. package/dist/{vue-ui-stackbar-bII9CH8i.js → vue-ui-stackbar-C-dJRiXT.js} +13 -13
  133. package/dist/{vue-ui-stackbar-CSHgiu-S.cjs → vue-ui-stackbar-D7htqdCz.cjs} +1 -1
  134. package/dist/{vue-ui-strip-plot-BcxHXtpk.js → vue-ui-strip-plot-B-Mc-qGK.js} +11 -11
  135. package/dist/{vue-ui-strip-plot-DfAGuNRJ.cjs → vue-ui-strip-plot-hNrBW3SU.cjs} +1 -1
  136. package/dist/{vue-ui-table-kj_YAH7E.cjs → vue-ui-table-ByDKzqNM.cjs} +1 -1
  137. package/dist/{vue-ui-table-D2qlWdag.js → vue-ui-table-CQp16PNe.js} +3 -3
  138. package/dist/{vue-ui-table-heatmap-Y9npl2qT.js → vue-ui-table-heatmap-BNl4iQhq.js} +4 -4
  139. package/dist/{vue-ui-table-heatmap-DrNGAq6g.cjs → vue-ui-table-heatmap-DaEPU0kc.cjs} +1 -1
  140. package/dist/{vue-ui-table-sparkline-qFq-ga-b.cjs → vue-ui-table-sparkline-BgV9zEpQ.cjs} +1 -1
  141. package/dist/{vue-ui-table-sparkline-VeqlQ66b.js → vue-ui-table-sparkline-lTHfuO-u.js} +5 -5
  142. package/dist/{vue-ui-thermometer-CgDYCC3w.js → vue-ui-thermometer-BN6Hyr3r.js} +7 -7
  143. package/dist/{vue-ui-thermometer-C1lDcGjT.cjs → vue-ui-thermometer-HB6BdSZ7.cjs} +1 -1
  144. package/dist/{vue-ui-timer-CY2IxtRl.cjs → vue-ui-timer-6NZga1VA.cjs} +1 -1
  145. package/dist/{vue-ui-timer-BY2dCjiN.js → vue-ui-timer-DpIbKhWx.js} +5 -5
  146. package/dist/{vue-ui-tiremarks-DTWdmj4v.js → vue-ui-tiremarks-BDlFLwmy.js} +7 -7
  147. package/dist/{vue-ui-tiremarks-BWQmACOn.cjs → vue-ui-tiremarks-Bssfpj2T.cjs} +1 -1
  148. package/dist/{vue-ui-treemap-CtBynkdy.js → vue-ui-treemap-CSEqsnF6.js} +12 -12
  149. package/dist/{vue-ui-treemap-DrXwsion.cjs → vue-ui-treemap-X9VKUYSw.cjs} +1 -1
  150. package/dist/{vue-ui-vertical-bar-DybIA-c5.cjs → vue-ui-vertical-bar-Bv35bg1C.cjs} +1 -1
  151. package/dist/{vue-ui-vertical-bar-C_qWNcce.js → vue-ui-vertical-bar-SgM2OnqX.js} +12 -12
  152. package/dist/{vue-ui-waffle-xCR4Q6fn.cjs → vue-ui-waffle-C1L34KiX.cjs} +1 -1
  153. package/dist/{vue-ui-waffle-3xEQ48b1.js → vue-ui-waffle-CPwuaVId.js} +12 -12
  154. package/dist/{vue-ui-wheel-CweXDTzj.cjs → vue-ui-wheel-D2HqXb2O.cjs} +1 -1
  155. package/dist/{vue-ui-wheel-Dc8OZDxx.js → vue-ui-wheel-DbNXTA9I.js} +7 -7
  156. package/dist/{vue-ui-word-cloud-wwE8jKoI.js → vue-ui-word-cloud-B7VTWsl2.js} +21 -21
  157. package/dist/{vue-ui-word-cloud-CJOHMRfq.cjs → vue-ui-word-cloud-Cmm3wp39.cjs} +1 -1
  158. package/dist/{vue-ui-world-kJodeH03.js → vue-ui-world-51vUWrqr.js} +11 -11
  159. package/dist/{vue-ui-world-DNYusHsf.cjs → vue-ui-world-Bi32aYtK.cjs} +1 -1
  160. package/dist/{vue-ui-xy-DK2uwes1.cjs → vue-ui-xy-BxJgh4xL.cjs} +2 -2
  161. package/dist/{vue-ui-xy-C5qR9CE2.js → vue-ui-xy-D1O0m03x.js} +16 -16
  162. package/dist/{vue-ui-xy-canvas-0s6cq6q8.cjs → vue-ui-xy-canvas-DbS90DFy.cjs} +1 -1
  163. package/dist/{vue-ui-xy-canvas-DTaRiqld.js → vue-ui-xy-canvas-DsZxaeOo.js} +12 -12
  164. package/package.json +1 -1
  165. package/dist/index-DmOqU2gc.cjs +0 -9
  166. package/dist/vue-ui-donut-B2acbY3c.js +0 -1259
  167. package/dist/vue-ui-donut-C4LxZkgt.cjs +0 -1
@@ -1,1259 +0,0 @@
1
- import { useSlots as xt, computed as p, ref as d, onMounted as Qe, onBeforeUnmount as $t, watch as Ze, createElementBlock as n, openBlock as o, unref as r, normalizeStyle as _, normalizeClass as pe, createBlock as E, createCommentVNode as i, renderSlot as g, createElementVNode as f, createVNode as ge, createSlots as et, withCtx as $, normalizeProps as Q, guardReactiveProps as Z, Fragment as m, renderList as T, mergeProps as tt, toDisplayString as P, createTextVNode as lt, nextTick as Ct } from "vue";
2
- import { u as Pt, o as Ft, e as at, g as St, c as Lt, b as Tt, d as ot, p as H, m as zt, Y as At, f as N, X as Ot, s as oe, w as Nt, j as Yt, L as z, i as I, k as ue, n as w, t as Xt, a as It, q as Mt, r as Dt, x as Vt } from "./index-DWq4s-ww.js";
3
- import { t as Bt, u as Gt } from "./useResponsive-Cw4oZ8sQ.js";
4
- import { _ as Rt } from "./Title-BD93Z93w.js";
5
- import { u as Ut, U as Wt } from "./usePrinter-BjxuB68l.js";
6
- import { D as jt } from "./DataTable-DObvjXDX.js";
7
- import { _ as Et } from "./Tooltip-DrcHzDRM.js";
8
- import { L as Ht } from "./Legend-DzSy-IUq.js";
9
- import qt from "./vue-ui-skeleton-CgSdY-i3.js";
10
- import Jt from "./vue-ui-accordion-Ca6nV8uf.js";
11
- import { u as ut } from "./useNestedProp-CPAzMQW3.js";
12
- import { _ as Kt } from "./PackageVersion-Bf6TS-QR.js";
13
- import { _ as Qt } from "./PenAndPaper-DMTgFlFr.js";
14
- import { u as Zt } from "./useUserOptionState-BIvW1Kz7.js";
15
- import { _ as el } from "./Shape-BB_8PZCY.js";
16
- import { u as tl } from "./useChartAccessibility-BWojgys7.js";
17
- import { _ as ll } from "./_plugin-vue_export-helper-CHgC5LLL.js";
18
- const al = ["id"], ol = ["xmlns", "viewBox"], ul = ["width", "height"], sl = { key: 1 }, nl = ["id"], rl = ["stop-color"], il = ["offset", "stop-color"], vl = ["offset", "stop-color"], cl = ["stop-color"], dl = { key: 2 }, hl = ["id", "cx", "cy"], yl = ["stop-color", "stop-opacity"], fl = ["stop-color"], pl = ["id"], gl = ["id"], ml = ["id"], bl = ["flood-color"], wl = ["id"], kl = ["flood-color"], _l = ["d", "stroke", "filter"], xl = ["x1", "y1", "x2", "y2", "stroke", "filter"], $l = ["cx", "cy", "r", "fill", "filter"], Cl = { key: 6 }, Pl = ["stroke", "d"], Fl = { key: 0 }, Sl = ["d", "fill", "stroke", "stroke-width", "filter"], Ll = ["d", "fill", "stroke", "stroke-width", "filter"], Tl = { key: 0 }, zl = ["stroke", "d"], Al = { key: 0 }, Ol = ["d", "stroke", "stroke-width", "filter"], Nl = { key: 1 }, Yl = ["d", "fill", "stroke", "stroke-width", "filter"], Xl = ["d", "fill", "stroke", "stroke-width", "filter"], Il = { key: 1 }, Ml = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Dl = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Vl = ["cx", "cy", "r", "stroke"], Bl = ["cx", "cy", "r", "fill"], Gl = { key: 0 }, Rl = ["d", "fill", "onMouseenter", "onClick"], Ul = { key: 1 }, Wl = ["cx", "cy", "r", "fill"], jl = ["x", "y", "fill", "font-size"], El = ["x", "y", "fill", "font-size"], Hl = ["x", "y", "fill", "font-size"], ql = ["x", "y", "fill", "font-size"], Jl = ["filter"], Kl = { key: 0 }, Ql = ["x", "y"], Zl = { key: 1 }, ea = ["cx", "cy", "fill", "stroke", "filter", "onClick"], ta = ["cx", "cy", "fill", "stroke", "filter", "onClick"], la = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], aa = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], oa = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], ua = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], sa = { key: 2 }, na = ["x", "y", "width"], ra = ["x", "y", "width"], ia = {
19
- key: 5,
20
- class: "vue-data-ui-watermark"
21
- }, va = ["onClick"], ca = {
22
- key: 0,
23
- style: { "font-variant-numeric": "tabular-nums" }
24
- }, da = { key: 1 }, ha = ["innerHTML"], ya = {
25
- __name: "vue-ui-donut",
26
- props: {
27
- config: {
28
- type: Object,
29
- default() {
30
- return {};
31
- }
32
- },
33
- dataset: {
34
- type: Array,
35
- default() {
36
- return [];
37
- }
38
- }
39
- },
40
- emits: ["selectLegend", "selectDatapoint"],
41
- setup(me, { expose: st, emit: nt }) {
42
- const { vue_ui_donut: rt } = Pt(), it = xt(), A = me, ee = p({
43
- get() {
44
- return !!A.dataset && A.dataset.length;
45
- },
46
- set(l) {
47
- return l;
48
- }
49
- }), te = d(null), be = d(null), we = d(null), se = d(null), ke = d(null), _e = d(null), xe = d(0), $e = d(0), Ce = d(0);
50
- Qe(() => {
51
- Pe();
52
- }), $t(() => {
53
- se.value && se.value.disconnect();
54
- });
55
- function Pe() {
56
- if (Ft(A.dataset) ? at({
57
- componentName: "VueUiDonut",
58
- type: "dataset"
59
- }) : A.dataset.forEach((l, u) => {
60
- St({
61
- datasetObject: l,
62
- requiredAttributes: ["name", "values"]
63
- }).forEach((t) => {
64
- ee.value = !1, at({
65
- componentName: "VueUiDonut",
66
- type: "datasetSerieAttribute",
67
- property: t,
68
- index: u
69
- });
70
- });
71
- }), e.value.responsive) {
72
- const l = Bt(() => {
73
- const { width: u, height: t } = Gt({
74
- chart: te.value,
75
- title: e.value.style.chart.title.text ? be.value : null,
76
- legend: e.value.style.chart.legend.show ? we.value : null,
77
- source: ke.value,
78
- noTitle: _e.value,
79
- padding: ze.value
80
- });
81
- requestAnimationFrame(() => {
82
- s.value.width = u, s.value.height = t;
83
- });
84
- });
85
- se.value = new ResizeObserver(l), se.value.observe(te.value.parentNode);
86
- }
87
- }
88
- const y = d(Lt()), vt = d(null), ne = d(!1), ve = d(""), S = d(null), Fe = d(0);
89
- function Se() {
90
- const l = ut({
91
- userConfig: A.config,
92
- defaultConfig: rt
93
- });
94
- return l.theme ? {
95
- ...ut({
96
- userConfig: It.vue_ui_donut[l.theme] || A.config,
97
- defaultConfig: l
98
- }),
99
- customPalette: Xt[l.theme] || H
100
- } : l;
101
- }
102
- const e = p({
103
- get: () => Se(),
104
- set: (l) => l
105
- }), Y = d(!0), V = d([]);
106
- function ct(l) {
107
- return 1 - Math.pow(1 - l, 3);
108
- }
109
- function dt(l, u = 1e3, t = 50) {
110
- return new Promise((a) => {
111
- const v = l.length;
112
- V.value = Array(v).fill(0);
113
- let b = 0;
114
- l.forEach((k, C) => {
115
- setTimeout(() => {
116
- const ae = performance.now();
117
- function Je(kt) {
118
- const Ke = Math.min((kt - ae) / u, 1), _t = ct(Ke);
119
- V.value[C] = k * _t, V.value = [...V.value], Ke < 1 ? requestAnimationFrame(Je) : (V.value[C] = k, V.value = [...V.value], b += 1, b === v && a());
120
- }
121
- requestAnimationFrame(Je);
122
- }, C * t);
123
- });
124
- });
125
- }
126
- Qe(async () => {
127
- const l = A.dataset.map((u) => u.values.reduce((t, a) => t + a, 0));
128
- e.value.startAnimation.show && await dt(
129
- l,
130
- e.value.startAnimation.durationMs,
131
- e.value.startAnimation.staggerMs
132
- ), Y.value = !1;
133
- });
134
- const { userOptionsVisible: ce, setUserOptionsVisibility: Le, keepUserOptionState: Te } = Zt({ config: e.value }), { svgRef: de } = tl({ config: e.value.style.chart.title });
135
- Ze(() => A.config, (l) => {
136
- e.value = Se(), ce.value = !e.value.userOptions.showOnChartHover, Pe(), xe.value += 1, $e.value += 1, Ce.value += 1, h.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, h.value.showTable = e.value.table.show, h.value.showTooltip = e.value.style.chart.tooltip.show;
137
- }, { deep: !0 });
138
- const ze = p(() => {
139
- const { top: l, right: u, bottom: t, left: a } = e.value.style.chart.padding;
140
- return {
141
- css: `padding:${l}px ${u}px ${t}px ${a}px`,
142
- top: l,
143
- right: u,
144
- bottom: t,
145
- left: a
146
- };
147
- }), { isPrinting: Ae, isImaging: Oe, generatePdf: Ne, generateImage: Ye } = Ut({
148
- elementId: `donut__${y.value}`,
149
- fileName: e.value.style.chart.title.text || "vue-ui-donut",
150
- options: e.value.userOptions.print
151
- }), ht = p(() => e.value.userOptions.show && !e.value.style.chart.title.text), Xe = p(() => Tt(e.value.customPalette)), h = d({
152
- dataLabels: {
153
- show: e.value.style.chart.layout.labels.dataLabels.show
154
- },
155
- showTable: e.value.table.show,
156
- showTooltip: e.value.style.chart.tooltip.show
157
- }), s = d({
158
- height: 360,
159
- width: 512
160
- }), q = p(() => {
161
- const l = e.value.style.chart.layout.donut.strokeWidth / 512, u = Math.min(s.value.width, s.value.height) * l, t = u > x.value ? x.value : u;
162
- return Math.max(t, 3);
163
- }), Ie = nt, B = p(() => A.dataset.map((l, u) => ({
164
- name: l.name,
165
- color: ot(l.color) || Xe.value[u] || H[u] || H[u % H.length],
166
- value: l.values.reduce((t, a) => t + a, 0),
167
- absoluteValues: l.values,
168
- comment: l.comment || "",
169
- patternIndex: u,
170
- pattern: `pattern_${y.value}_${u}`
171
- }))), O = d(B.value);
172
- Ze(() => B.value, (l) => O.value = l);
173
- function yt() {
174
- return B.value.map((l) => ({
175
- name: l.name,
176
- color: l.color,
177
- value: l.value
178
- }));
179
- }
180
- const M = d([]), Me = d(null), De = d(null), W = d(!1);
181
- function Ve(l) {
182
- const u = B.value.find((v, b) => b === l), t = O.value.find((v, b) => b === l);
183
- let a = t.value;
184
- if (M.value.includes(l)) {
185
- let b = function() {
186
- O.value = O.value.map((C, ae) => l === ae ? {
187
- ...C,
188
- value: v
189
- } : C);
190
- }, k = function() {
191
- a > v ? (cancelAnimationFrame(Me.value), b(), W.value = !1) : (W.value = !0, a += v * (e.value.type === "polar" ? 1 : 0.045), O.value = O.value.map((C, ae) => l === ae ? {
192
- ...C,
193
- value: a
194
- } : C), Me.value = requestAnimationFrame(k));
195
- };
196
- M.value = M.value.filter((C) => C !== l);
197
- const v = u.value;
198
- e.value.useSerieToggleAnimation ? k() : b();
199
- } else if (M.value.length < B.value.length - 1) {
200
- let v = function() {
201
- M.value.push(l), O.value = O.value.map((k, C) => l === C ? {
202
- ...k,
203
- value: 0
204
- } : k);
205
- }, b = function() {
206
- a < t.value / 100 ? (cancelAnimationFrame(De.value), v(), W.value = !1) : (W.value = !0, a /= e.value.type === "polar" ? 20 : 1.18, O.value = O.value.map((k, C) => l === C ? {
207
- ...k,
208
- value: a
209
- } : k), De.value = requestAnimationFrame(b));
210
- };
211
- e.value.useSerieToggleAnimation ? b() : v();
212
- }
213
- Ie("selectLegend", G.value.map((v) => ({
214
- name: v.name,
215
- color: v.color,
216
- value: v.value
217
- })));
218
- }
219
- const ft = p(() => A.dataset.reduce((l, u) => l + u.values.reduce((t, a) => t + a, 0), 0)), G = p(() => {
220
- if (Y.value) {
221
- const l = V.value.map((t, a) => ({
222
- ...B.value[a],
223
- value: t,
224
- color: B.value[a].color,
225
- ghost: !1
226
- })), u = ft.value - V.value.reduce((t, a) => t + a, 0);
227
- return u > 0 && l.push({
228
- name: "__ghost__",
229
- value: u,
230
- color: "transparent",
231
- ghost: !0
232
- }), l;
233
- } else
234
- return O.value.forEach((l, u) => {
235
- if ([null, void 0].includes(l.values))
236
- return {
237
- ...l,
238
- values: []
239
- };
240
- }), O.value.map((l, u) => ({
241
- ...l,
242
- seriesIndex: u
243
- })).filter((l, u) => !M.value.includes(u));
244
- }), Be = p(() => A.dataset.map((l, u) => ({
245
- name: l.name,
246
- color: ot(l.color) || Xe.value[u] || H[u] || H[u % H.length],
247
- value: (l.values || []).reduce((t, a) => t + a, 0),
248
- shape: "circle",
249
- patternIndex: u
250
- })).map((l, u) => ({
251
- ...l,
252
- proportion: l.value / A.dataset.map((t) => (t.values || []).reduce((a, v) => a + v, 0)).reduce((t, a) => t + a, 0),
253
- opacity: M.value.includes(u) ? 0.5 : 1,
254
- segregate: () => !W.value && Ve(u),
255
- isSegregated: M.value.includes(u)
256
- }))), pt = p(() => ({
257
- cy: "donut-div-legend",
258
- backgroundColor: e.value.style.chart.legend.backgroundColor,
259
- color: e.value.style.chart.legend.color,
260
- fontSize: e.value.style.chart.legend.fontSize,
261
- paddingBottom: 12,
262
- fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
263
- })), x = p(() => {
264
- const l = Math.min(s.value.width / 3, s.value.height / 3);
265
- return l < 55 ? 55 : l;
266
- }), F = p(() => zt({ series: G.value }, s.value.width / 2, s.value.height / 2, x.value, x.value, 1.99999, 2, 1, 360, 105.25, q.value)), D = p(() => F.value.filter((l) => !l.ghost)), c = p(() => {
267
- const l = Math.max(...G.value.map((t) => t.value)), u = G.value.map((t) => t.value / l);
268
- return At({
269
- series: u,
270
- center: {
271
- x: s.value.width / 2,
272
- y: s.value.height / 2
273
- },
274
- maxRadius: Math.min(s.value.width, s.value.height) / 3,
275
- hasGhost: Y.value
276
- });
277
- });
278
- function J(l) {
279
- return l.x > s.value.width / 2 + 6 ? "start" : l.x < s.value.width / 2 - 6 ? "end" : "middle";
280
- }
281
- function gt(l) {
282
- return l.middlePoint.y > s.value.height / 2 ? z({ initX: l.middlePoint.x, initY: l.middlePoint.y, offset: 100, centerX: s.value.width / 2, centerY: s.value.height / 2 }).y : z({ initX: l.middlePoint.x, initY: l.middlePoint.y, offset: 0, centerX: s.value.width / 2, centerY: s.value.height / 2 }).y - 100;
283
- }
284
- function X(l) {
285
- return l.proportion * 100 > e.value.style.chart.layout.labels.dataLabels.hideUnderValue;
286
- }
287
- function he(l, u) {
288
- const t = l.value / mt(u);
289
- return isNaN(t) ? 0 : I(
290
- e.value.style.chart.layout.labels.percentage.formatter,
291
- t * 100,
292
- N({
293
- v: t * 100,
294
- s: "%",
295
- r: e.value.style.chart.layout.labels.percentage.rounding
296
- }),
297
- { datapoint: l }
298
- );
299
- }
300
- function mt(l) {
301
- return [...l].map((u) => u.value).reduce((u, t) => u + t, 0);
302
- }
303
- const L = p(() => G.value.map((l) => l.value).reduce((l, u) => l + u, 0)), Ge = p(() => L.value / G.value.length), Re = p(() => (l) => W.value ? l.proportion * 100 : l.value / L.value * 100), ye = d(null), le = d(!1);
304
- function Ue({ datapoint: l, relativeIndex: u, seriesIndex: t, show: a = !1 }) {
305
- ye.value = { datapoint: l, seriesIndex: t, config: e.value, series: B.value }, ne.value = a, S.value = u;
306
- let v = "";
307
- const b = e.value.style.chart.tooltip.customFormat;
308
- if (le.value = !1, Vt(b))
309
- try {
310
- const k = b({
311
- seriesIndex: t,
312
- datapoint: l,
313
- series: B.value,
314
- config: e.value
315
- });
316
- typeof k == "string" && (ve.value = k, le.value = !0);
317
- } catch {
318
- console.warn("Custom format cannot be applied."), le.value = !1;
319
- }
320
- if (!le.value) {
321
- if (v += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l.name}</div>`, v += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><circle cx="30" cy="30" r="30" stroke="none" fill="${l.color}"/>${it.pattern ? `<circle cx="30" cy="30" r="30" stroke="none" fill="url(#pattern_${y.value}_${t})"/>` : ""}</svg>`, e.value.style.chart.tooltip.showValue && (v += `<b>${I(
322
- e.value.style.chart.layout.labels.value.formatter,
323
- l.value,
324
- N({
325
- p: e.value.style.chart.layout.labels.dataLabels.prefix,
326
- v: l.value,
327
- s: e.value.style.chart.layout.labels.dataLabels.suffix,
328
- r: e.value.style.chart.tooltip.roundingValue
329
- }),
330
- {
331
- datapoint: l,
332
- relativeIndex: u,
333
- seriesIndex: t
334
- }
335
- )}</b>`), e.value.style.chart.tooltip.showPercentage) {
336
- const k = I(
337
- e.value.style.chart.layout.labels.percentage.formatter,
338
- l.proportion * 100,
339
- N({
340
- v: l.proportion * 100,
341
- s: "%",
342
- r: e.value.style.chart.tooltip.roundingPercentage
343
- }),
344
- {
345
- datapoint: l,
346
- relativeIndex: u,
347
- seriesIndex: t
348
- }
349
- );
350
- e.value.style.chart.tooltip.showValue ? v += `<span>(${k})</span></div>` : v += `<b>${k}</b></div>`;
351
- }
352
- e.value.style.chart.comments.showInTooltip && l.comment && (v += `<div class="vue-data-ui-tooltip-comment" style="background:${l.color}20; padding: 6px; margin-bottom: 6px; margin-top:6px; border-left: 1px solid ${l.color}">${l.comment}</div>`), ve.value = `<div>${v}</div>`;
353
- }
354
- }
355
- function j(l) {
356
- return e.value.useBlurOnHover && ![null, void 0].includes(S.value) && S.value !== l ? `url(#blur_${y.value})` : "";
357
- }
358
- const R = p(() => {
359
- const l = G.value.map((t) => ({
360
- name: t.name,
361
- color: t.color
362
- })), u = G.value.map((t) => t.value);
363
- return { head: l, body: u };
364
- });
365
- function We() {
366
- Ct(() => {
367
- const l = R.value.head.map((a, v) => [[
368
- a.name
369
- ], [R.value.body[v]], [isNaN(R.value.body[v] / L.value) ? "-" : R.value.body[v] / L.value * 100]]), u = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(l), t = Mt(u);
370
- Dt({ csvContent: t, title: e.value.style.chart.title.text || "vue-ui-donut" });
371
- });
372
- }
373
- const re = p(() => {
374
- const l = [
375
- ' <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>',
376
- N({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: L.value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
377
- "100%"
378
- ], u = R.value.head.map((v, b) => [
379
- {
380
- color: v.color,
381
- name: v.name
382
- },
383
- R.value.body[b],
384
- isNaN(R.value.body[b] / L.value) ? "-" : (R.value.body[b] / L.value * 100).toFixed(e.value.table.td.roundingPercentage) + "%"
385
- ]), t = {
386
- th: {
387
- backgroundColor: e.value.table.th.backgroundColor,
388
- color: e.value.table.th.color,
389
- outline: e.value.table.th.outline
390
- },
391
- td: {
392
- backgroundColor: e.value.table.td.backgroundColor,
393
- color: e.value.table.td.color,
394
- outline: e.value.table.td.outline
395
- },
396
- breakpoint: e.value.table.responsiveBreakpoint
397
- };
398
- return {
399
- colNames: [
400
- e.value.table.columnNames.series,
401
- e.value.table.columnNames.value,
402
- e.value.table.columnNames.percentage
403
- ],
404
- head: l,
405
- body: u,
406
- config: t
407
- };
408
- }), K = d(!1);
409
- function bt(l) {
410
- K.value = l, Fe.value += 1;
411
- }
412
- const je = p(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent));
413
- function wt(l) {
414
- return l.toFixed(e.value.style.chart.legend.roundingPercentage).split("").map((u) => "-").join("");
415
- }
416
- function U(l, u) {
417
- Ie("selectDatapoint", { datapoint: l, index: u });
418
- }
419
- function Ee() {
420
- h.value.showTable = !h.value.showTable;
421
- }
422
- function He() {
423
- h.value.dataLabels.show = !h.value.dataLabels.show;
424
- }
425
- function qe() {
426
- h.value.showTooltip = !h.value.showTooltip;
427
- }
428
- const ie = d(!1);
429
- function fe() {
430
- ie.value = !ie.value;
431
- }
432
- return st({
433
- getData: yt,
434
- generatePdf: Ne,
435
- generateCsv: We,
436
- generateImage: Ye,
437
- toggleTable: Ee,
438
- toggleLabels: He,
439
- toggleTooltip: qe,
440
- toggleAnnotator: fe
441
- }), (l, u) => (o(), n("div", {
442
- ref_key: "donutChart",
443
- ref: te,
444
- class: pe(`vue-ui-donut ${K.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
445
- style: _(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height:100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
446
- id: `donut__${y.value}`,
447
- onMouseenter: u[6] || (u[6] = () => r(Le)(!0)),
448
- onMouseleave: u[7] || (u[7] = () => r(Le)(!1))
449
- }, [
450
- e.value.userOptions.buttons.annotator && r(de) ? (o(), E(Qt, {
451
- key: 0,
452
- color: e.value.style.chart.color,
453
- backgroundColor: e.value.style.chart.backgroundColor,
454
- active: ie.value,
455
- svgRef: r(de),
456
- onClose: fe
457
- }, null, 8, ["color", "backgroundColor", "active", "svgRef"])) : i("", !0),
458
- g(l.$slots, "userConfig", {}, void 0, !0),
459
- ht.value ? (o(), n("div", {
460
- key: 1,
461
- ref_key: "noTitle",
462
- ref: _e,
463
- class: "vue-data-ui-no-title-space",
464
- style: "height:36px; width: 100%;background:transparent"
465
- }, null, 512)) : i("", !0),
466
- e.value.style.chart.title.text ? (o(), n("div", {
467
- key: 2,
468
- ref_key: "chartTitle",
469
- ref: be,
470
- style: "width:100%;background:transparent;padding-bottom:24px"
471
- }, [
472
- (o(), E(Rt, {
473
- key: `title_${xe.value}`,
474
- config: {
475
- title: {
476
- cy: "donut-div-title",
477
- ...e.value.style.chart.title
478
- },
479
- subtitle: {
480
- cy: "donut-div-subtitle",
481
- ...e.value.style.chart.title.subtitle
482
- }
483
- }
484
- }, null, 8, ["config"]))
485
- ], 512)) : i("", !0),
486
- e.value.userOptions.show && ee.value && (r(Te) || r(ce)) ? (o(), E(Wt, {
487
- ref_key: "details",
488
- ref: vt,
489
- key: `user_option_${Fe.value}`,
490
- backgroundColor: e.value.style.chart.backgroundColor,
491
- color: e.value.style.chart.color,
492
- isPrinting: r(Ae),
493
- isImaging: r(Oe),
494
- uid: y.value,
495
- hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
496
- hasPdf: e.value.userOptions.buttons.pdf,
497
- hasImg: e.value.userOptions.buttons.img,
498
- hasXls: e.value.userOptions.buttons.csv,
499
- hasTable: e.value.userOptions.buttons.table,
500
- hasLabel: e.value.userOptions.buttons.labels,
501
- hasFullscreen: e.value.userOptions.buttons.fullscreen,
502
- isFullscreen: K.value,
503
- chartElement: te.value,
504
- position: e.value.userOptions.position,
505
- isTooltip: h.value.showTooltip,
506
- titles: { ...e.value.userOptions.buttonTitles },
507
- hasAnnotator: e.value.userOptions.buttons.annotator,
508
- isAnnotation: ie.value,
509
- onToggleFullscreen: bt,
510
- onGeneratePdf: r(Ne),
511
- onGenerateCsv: We,
512
- onGenerateImage: r(Ye),
513
- onToggleTable: Ee,
514
- onToggleLabels: He,
515
- onToggleTooltip: qe,
516
- onToggleAnnotator: fe,
517
- style: _({
518
- visibility: r(Te) ? r(ce) ? "visible" : "hidden" : "visible"
519
- })
520
- }, et({ _: 2 }, [
521
- l.$slots.menuIcon ? {
522
- name: "menuIcon",
523
- fn: $(({ isOpen: t, color: a }) => [
524
- g(l.$slots, "menuIcon", Q(Z({ isOpen: t, color: a })), void 0, !0)
525
- ]),
526
- key: "0"
527
- } : void 0,
528
- l.$slots.optionTooltip ? {
529
- name: "optionTooltip",
530
- fn: $(() => [
531
- g(l.$slots, "optionTooltip", {}, void 0, !0)
532
- ]),
533
- key: "1"
534
- } : void 0,
535
- l.$slots.optionPdf ? {
536
- name: "optionPdf",
537
- fn: $(() => [
538
- g(l.$slots, "optionPdf", {}, void 0, !0)
539
- ]),
540
- key: "2"
541
- } : void 0,
542
- l.$slots.optionCsv ? {
543
- name: "optionCsv",
544
- fn: $(() => [
545
- g(l.$slots, "optionCsv", {}, void 0, !0)
546
- ]),
547
- key: "3"
548
- } : void 0,
549
- l.$slots.optionImg ? {
550
- name: "optionImg",
551
- fn: $(() => [
552
- g(l.$slots, "optionImg", {}, void 0, !0)
553
- ]),
554
- key: "4"
555
- } : void 0,
556
- l.$slots.optionTable ? {
557
- name: "optionTable",
558
- fn: $(() => [
559
- g(l.$slots, "optionTable", {}, void 0, !0)
560
- ]),
561
- key: "5"
562
- } : void 0,
563
- l.$slots.optionLabels ? {
564
- name: "optionLabels",
565
- fn: $(() => [
566
- g(l.$slots, "optionLabels", {}, void 0, !0)
567
- ]),
568
- key: "6"
569
- } : void 0,
570
- l.$slots.optionFullscreen ? {
571
- name: "optionFullscreen",
572
- fn: $(({ toggleFullscreen: t, isFullscreen: a }) => [
573
- g(l.$slots, "optionFullscreen", Q(Z({ toggleFullscreen: t, isFullscreen: a })), void 0, !0)
574
- ]),
575
- key: "7"
576
- } : void 0,
577
- l.$slots.optionAnnotator ? {
578
- name: "optionAnnotator",
579
- fn: $(({ toggleAnnotator: t, isAnnotator: a }) => [
580
- g(l.$slots, "optionAnnotator", Q(Z({ toggleAnnotator: t, isAnnotator: a })), void 0, !0)
581
- ]),
582
- key: "8"
583
- } : void 0
584
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : i("", !0),
585
- ee.value ? (o(), n("svg", {
586
- key: 4,
587
- ref_key: "svgRef",
588
- ref: de,
589
- xmlns: r(Ot),
590
- class: pe({ "vue-data-ui-fullscreen--on": K.value, "vue-data-ui-fulscreen--off": !K.value }),
591
- viewBox: `0 0 ${s.value.width <= 0 ? 10 : s.value.width} ${s.value.height <= 0 ? 10 : s.value.height}`,
592
- style: _(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};${ze.value.css}`)
593
- }, [
594
- ge(Kt),
595
- l.$slots["chart-background"] ? (o(), n("foreignObject", {
596
- key: 0,
597
- x: 0,
598
- y: 0,
599
- width: s.value.width <= 0 ? 10 : s.value.width,
600
- height: s.value.height <= 0 ? 10 : s.value.height,
601
- style: {
602
- pointerEvents: "none"
603
- }
604
- }, [
605
- g(l.$slots, "chart-background", {}, void 0, !0)
606
- ], 8, ul)) : i("", !0),
607
- e.value.type === "classic" && !isNaN(q.value / x.value) ? (o(), n("defs", sl, [
608
- e.value.style.chart.useGradient ? (o(), n("radialGradient", {
609
- key: 0,
610
- id: `gradient_${y.value}`
611
- }, [
612
- f("stop", {
613
- offset: "0%",
614
- "stop-color": r(oe)(e.value.style.chart.backgroundColor, 0),
615
- "stop-opacity": "0"
616
- }, null, 8, rl),
617
- f("stop", {
618
- offset: `${(1 - q.value / x.value) * 100}%`,
619
- "stop-color": r(oe)("#FFFFFF", 0),
620
- "stop-opacity": "0"
621
- }, null, 8, il),
622
- f("stop", {
623
- offset: `${(1 - q.value / x.value / 2) * 100}%`,
624
- "stop-color": r(oe)("#FFFFFF", e.value.style.chart.gradientIntensity)
625
- }, null, 8, vl),
626
- f("stop", {
627
- offset: "100%",
628
- "stop-color": r(oe)(e.value.style.chart.backgroundColor, 0),
629
- "stop-opacity": "0"
630
- }, null, 8, cl)
631
- ], 8, nl)) : i("", !0)
632
- ])) : i("", !0),
633
- e.value.type === "polar" ? (o(), n("defs", dl, [
634
- (o(!0), n(m, null, T(c.value, (t, a) => (o(), n("radialGradient", {
635
- id: `polar_gradient_${a}_${y.value}`,
636
- cx: (isNaN(t.middlePoint.x / s.value.width * 100) ? 0 : t.middlePoint.x / s.value.width * 100) + "%",
637
- cy: (isNaN(t.middlePoint.y / s.value.height * 100) ? 0 : t.middlePoint.y / s.value.height * 100) + "%",
638
- r: "62%"
639
- }, [
640
- f("stop", {
641
- offset: "0%",
642
- "stop-color": r(Nt)(F.value[a].color, 0.05),
643
- "stop-opacity": e.value.style.chart.gradientIntensity / 100
644
- }, null, 8, yl),
645
- f("stop", {
646
- offset: "100%",
647
- "stop-color": F.value[a].color
648
- }, null, 8, fl)
649
- ], 8, hl))), 256))
650
- ])) : i("", !0),
651
- f("defs", null, [
652
- f("filter", {
653
- id: `blur_${y.value}`,
654
- x: "-50%",
655
- y: "-50%",
656
- width: "200%",
657
- height: "200%"
658
- }, [
659
- f("feGaussianBlur", {
660
- in: "SourceGraphic",
661
- stdDeviation: 2,
662
- id: `blur_std_${y.value}`
663
- }, null, 8, gl),
664
- u[8] || (u[8] = f("feColorMatrix", {
665
- type: "saturate",
666
- values: "0"
667
- }, null, -1))
668
- ], 8, pl),
669
- f("filter", {
670
- id: `shadow_${y.value}`,
671
- "color-interpolation-filters": "sRGB"
672
- }, [
673
- f("feDropShadow", {
674
- dx: "0",
675
- dy: "0",
676
- stdDeviation: "10",
677
- "flood-opacity": "0.5",
678
- "flood-color": e.value.style.chart.layout.donut.shadowColor
679
- }, null, 8, bl)
680
- ], 8, ml),
681
- f("filter", {
682
- id: `drop_shadow_${y.value}`,
683
- "color-interpolation-filters": "sRGB",
684
- x: "-50%",
685
- y: "-50%",
686
- width: "200%",
687
- height: "200%"
688
- }, [
689
- f("feDropShadow", {
690
- dx: "0",
691
- dy: "0",
692
- stdDeviation: "3",
693
- "flood-opacity": "1",
694
- "flood-color": e.value.style.chart.layout.donut.shadowColor
695
- }, null, 8, kl)
696
- ], 8, wl)
697
- ]),
698
- e.value.type === "classic" ? (o(!0), n(m, { key: 3 }, T(F.value.filter((t) => !t.ghost), (t, a) => (o(), n("g", null, [
699
- X(t) && h.value.dataLabels.show ? (o(), n("path", {
700
- key: 0,
701
- d: r(Yt)(t, { x: s.value.width / 2, y: s.value.height / 2 }, 16, 16, !1, !1, q.value, 12, e.value.style.chart.layout.curvedMarkers),
702
- stroke: t.color,
703
- "stroke-width": "1",
704
- "stroke-linecap": "round",
705
- "stroke-linejoin": "round",
706
- fill: "none",
707
- filter: j(a)
708
- }, null, 8, _l)) : i("", !0)
709
- ]))), 256)) : i("", !0),
710
- e.value.type === "polar" ? (o(!0), n(m, { key: 4 }, T(F.value.filter((t) => !t.ghost), (t, a) => (o(), n("g", null, [
711
- X(t) && h.value.dataLabels.show ? (o(), n("line", {
712
- key: 0,
713
- x1: r(z)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 24, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x,
714
- y1: r(z)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 24, centerX: s.value.width / 2, centerY: s.value.height / 2 }).y,
715
- x2: c.value[a].middlePoint.x,
716
- y2: c.value[a].middlePoint.y,
717
- stroke: t.color,
718
- "stroke-width": "1",
719
- "stroke-linecap": "round",
720
- "stroke-linejoin": "round",
721
- fill: "none",
722
- filter: j(a),
723
- style: _({
724
- transition: Y.value ? "" : "all 0.1s ease-in-out"
725
- })
726
- }, null, 12, xl)) : i("", !0)
727
- ]))), 256)) : i("", !0),
728
- e.value.type === "classic" && e.value.style.chart.layout.donut.useShadow ? (o(), n("circle", {
729
- key: 5,
730
- cx: s.value.width / 2,
731
- cy: s.value.height / 2,
732
- r: x.value <= 0 ? 10 : x.value,
733
- fill: e.value.style.chart.backgroundColor,
734
- filter: `url(#shadow_${y.value})`
735
- }, null, 8, $l)) : i("", !0),
736
- l.$slots.pattern ? (o(), n("g", Cl, [
737
- (o(!0), n(m, null, T(me.dataset, (t, a) => (o(), n("defs", {
738
- key: `pattern-${t.patternIndex}`
739
- }, [
740
- g(l.$slots, "pattern", tt({ ref_for: !0 }, { seriesIndex: a, patternId: `pattern_${y.value}_${a}` }), void 0, !0)
741
- ]))), 128))
742
- ])) : i("", !0),
743
- L.value && e.value.type === "classic" ? (o(), n(m, { key: 7 }, [
744
- (o(!0), n(m, null, T(D.value, (t, a) => (o(), n("path", {
745
- stroke: e.value.style.chart.backgroundColor,
746
- d: t.arcSlice,
747
- fill: "#FFFFFF"
748
- }, null, 8, Pl))), 256)),
749
- l.$slots.pattern ? (o(), n("g", Fl, [
750
- (o(!0), n(m, null, T(D.value, (t, a) => (o(), n("path", {
751
- class: "vue-ui-donut-arc-path",
752
- d: t.arcSlice,
753
- fill: `url(#${t.pattern})`,
754
- stroke: e.value.style.chart.backgroundColor,
755
- "stroke-width": e.value.style.chart.layout.donut.borderWidth,
756
- filter: j(a)
757
- }, null, 8, Sl))), 256))
758
- ])) : i("", !0),
759
- (o(!0), n(m, null, T(D.value, (t, a) => (o(), n("path", {
760
- class: "vue-ui-donut-arc-path",
761
- d: t.arcSlice,
762
- fill: r(oe)(t.color, 80),
763
- stroke: e.value.style.chart.backgroundColor,
764
- "stroke-width": e.value.style.chart.layout.donut.borderWidth,
765
- filter: j(a)
766
- }, null, 8, Ll))), 256))
767
- ], 64)) : i("", !0),
768
- L.value && e.value.type === "polar" ? (o(), n(m, { key: 8 }, [
769
- F.value.length > 1 ? (o(), n("g", Tl, [
770
- (o(!0), n(m, null, T(D.value, (t, a) => (o(), n("path", {
771
- stroke: e.value.style.chart.backgroundColor,
772
- d: c.value[a].path,
773
- fill: "#FFFFFF",
774
- style: _({
775
- transition: Y.value ? "" : "all 0.1s ease-in-out"
776
- })
777
- }, null, 12, zl))), 256)),
778
- e.value.style.chart.layout.donut.useShadow ? (o(), n("g", Al, [
779
- (o(!0), n(m, null, T(F.value, (t, a) => (o(), n("path", {
780
- class: "vue-ui-donut-arc-path",
781
- d: c.value[a].path,
782
- fill: "transparent",
783
- stroke: e.value.style.chart.backgroundColor,
784
- "stroke-width": e.value.style.chart.layout.donut.borderWidth,
785
- filter: `url(#drop_shadow_${y.value})`,
786
- style: _({
787
- transition: Y.value ? "" : "all 0.1s ease-in-out"
788
- })
789
- }, null, 12, Ol))), 256))
790
- ])) : i("", !0),
791
- l.$slots.pattern ? (o(), n("g", Nl, [
792
- (o(!0), n(m, null, T(D.value, (t, a) => (o(), n("path", {
793
- class: "vue-ui-donut-arc-path",
794
- d: c.value[a].path,
795
- fill: `url(#${t.pattern})`,
796
- stroke: e.value.style.chart.backgroundColor,
797
- "stroke-width": e.value.style.chart.layout.donut.borderWidth,
798
- filter: j(a),
799
- style: _({
800
- transition: Y.value ? "" : "all 0.1s ease-in-out"
801
- })
802
- }, null, 12, Yl))), 256))
803
- ])) : i("", !0),
804
- (o(!0), n(m, null, T(D.value, (t, a) => (o(), n("path", {
805
- class: "vue-ui-donut-arc-path",
806
- d: c.value[a].path,
807
- fill: e.value.style.chart.useGradient ? `url(#polar_gradient_${a}_${y.value})` : t.color,
808
- stroke: e.value.style.chart.backgroundColor,
809
- "stroke-width": e.value.style.chart.layout.donut.borderWidth,
810
- filter: j(a),
811
- style: _({
812
- transition: Y.value ? "" : "all 0.1s ease-in-out"
813
- })
814
- }, null, 12, Xl))), 256))
815
- ])) : (o(), n("g", Il, [
816
- l.$slots.pattern ? (o(), n("circle", {
817
- key: 0,
818
- cx: s.value.width / 2,
819
- cy: s.value.height / 2,
820
- r: x.value,
821
- fill: `url(#pattern_${y.value}_${F.value[0].patternIndex})`,
822
- stroke: e.value.style.chart.backgroundColor,
823
- "stroke-width": e.value.style.chart.layout.donut.borderWidth
824
- }, null, 8, Ml)) : i("", !0),
825
- f("circle", {
826
- cx: s.value.width / 2,
827
- cy: s.value.height / 2,
828
- r: x.value,
829
- fill: e.value.style.chart.useGradient ? `url(#polar_gradient_0_${y.value})` : F.value[0].color,
830
- stroke: e.value.style.chart.backgroundColor,
831
- "stroke-width": e.value.style.chart.layout.donut.borderWidth
832
- }, null, 8, Dl)
833
- ]))
834
- ], 64)) : (o(), n("circle", {
835
- key: 9,
836
- cx: s.value.width / 2,
837
- cy: s.value.height / 2,
838
- r: x.value <= 0 ? 10 : x.value,
839
- fill: "transparent",
840
- stroke: e.value.style.chart.backgroundColor
841
- }, null, 8, Vl)),
842
- e.value.style.chart.useGradient && e.value.type === "classic" ? (o(), n("circle", {
843
- key: 10,
844
- cx: s.value.width / 2,
845
- cy: s.value.height / 2,
846
- r: (
847
- /* This might require adjustments */
848
- x.value <= 0 ? 10 : x.value
849
- ),
850
- fill: `url(#gradient_${y.value})`
851
- }, null, 8, Bl)) : i("", !0),
852
- L.value ? (o(), n(m, { key: 11 }, [
853
- F.value.length > 1 || e.value.type === "classic" ? (o(), n("g", Gl, [
854
- (o(!0), n(m, null, T(F.value.filter((t) => !t.ghost), (t, a) => (o(), n("path", {
855
- d: e.value.type === "classic" ? t.arcSlice : c.value[a].path,
856
- fill: S.value === a ? "rgba(0,0,0,0.1)" : "transparent",
857
- onMouseenter: (v) => Ue({
858
- datapoint: t,
859
- relativeIndex: a,
860
- seriesIndex: t.seriesIndex,
861
- show: !0
862
- }),
863
- onMouseleave: u[0] || (u[0] = (v) => {
864
- ne.value = !1, S.value = null;
865
- }),
866
- onClick: (v) => U(t, a)
867
- }, null, 40, Rl))), 256))
868
- ])) : (o(), n("g", Ul, [
869
- f("circle", {
870
- cx: s.value.width / 2,
871
- cy: s.value.height / 2,
872
- r: x.value,
873
- fill: S.value === l.i ? "rgba(0,0,0,0.1)" : "transparent",
874
- onMouseenter: u[1] || (u[1] = (t) => Ue({
875
- datapoint: F.value[0],
876
- relativeIndex: 0,
877
- seriesIndex: F.value[0].seriesIndex,
878
- show: !0
879
- })),
880
- onMouseleave: u[2] || (u[2] = (t) => {
881
- ne.value = !1, S.value = null;
882
- }),
883
- onClick: u[3] || (u[3] = (t) => U(F.value[0], l.i))
884
- }, null, 40, Wl)
885
- ]))
886
- ], 64)) : i("", !0),
887
- e.value.type === "classic" ? (o(), n(m, { key: 12 }, [
888
- e.value.style.chart.layout.labels.hollow.total.show ? (o(), n("text", {
889
- key: 0,
890
- "text-anchor": "middle",
891
- x: s.value.width / 2,
892
- y: s.value.height / 2 - (e.value.style.chart.layout.labels.hollow.average.show ? e.value.style.chart.layout.labels.hollow.total.fontSize : 0) + e.value.style.chart.layout.labels.hollow.total.offsetY,
893
- fill: e.value.style.chart.layout.labels.hollow.total.color,
894
- "font-size": e.value.style.chart.layout.labels.hollow.total.fontSize,
895
- style: _(`font-weight:${e.value.style.chart.layout.labels.hollow.total.bold ? "bold" : ""}`)
896
- }, P(e.value.style.chart.layout.labels.hollow.total.text), 13, jl)) : i("", !0),
897
- e.value.style.chart.layout.labels.hollow.total.show ? (o(), n("text", {
898
- key: 1,
899
- "text-anchor": "middle",
900
- x: s.value.width / 2,
901
- y: s.value.height / 2 + e.value.style.chart.layout.labels.hollow.total.fontSize - (e.value.style.chart.layout.labels.hollow.average.show ? e.value.style.chart.layout.labels.hollow.total.fontSize : 0) + e.value.style.chart.layout.labels.hollow.total.value.offsetY,
902
- fill: e.value.style.chart.layout.labels.hollow.total.value.color,
903
- "font-size": e.value.style.chart.layout.labels.hollow.total.value.fontSize,
904
- style: _(`font-weight:${e.value.style.chart.layout.labels.hollow.total.value.bold ? "bold" : ""}`)
905
- }, P(r(I)(
906
- e.value.style.chart.layout.labels.hollow.total.value.formatter,
907
- L.value,
908
- r(N)({
909
- p: e.value.style.chart.layout.labels.hollow.total.value.prefix,
910
- v: L.value,
911
- s: e.value.style.chart.layout.labels.hollow.total.value.suffix
912
- })
913
- )), 13, El)) : i("", !0),
914
- e.value.style.chart.layout.labels.hollow.average.show ? (o(), n("text", {
915
- key: 2,
916
- "text-anchor": "middle",
917
- x: s.value.width / 2,
918
- y: s.value.height / 2 + (e.value.style.chart.layout.labels.hollow.total.show ? e.value.style.chart.layout.labels.hollow.average.fontSize : 0) + e.value.style.chart.layout.labels.hollow.average.offsetY,
919
- fill: e.value.style.chart.layout.labels.hollow.average.color,
920
- "font-size": e.value.style.chart.layout.labels.hollow.average.fontSize,
921
- style: _(`font-weight:${e.value.style.chart.layout.labels.hollow.average.bold ? "bold" : ""}`)
922
- }, P(e.value.style.chart.layout.labels.hollow.average.text), 13, Hl)) : i("", !0),
923
- e.value.style.chart.layout.labels.hollow.average.show ? (o(), n("text", {
924
- key: 3,
925
- "text-anchor": "middle",
926
- x: s.value.width / 2,
927
- y: s.value.height / 2 + (e.value.style.chart.layout.labels.hollow.total.show ? e.value.style.chart.layout.labels.hollow.average.fontSize : 0) + e.value.style.chart.layout.labels.hollow.average.fontSize + e.value.style.chart.layout.labels.hollow.average.value.offsetY,
928
- fill: e.value.style.chart.layout.labels.hollow.average.value.color,
929
- "font-size": e.value.style.chart.layout.labels.hollow.average.value.fontSize,
930
- style: _(`font-weight:${e.value.style.chart.layout.labels.hollow.average.value.bold ? "bold" : ""}`)
931
- }, P(W.value || Y.value ? "--" : r(I)(
932
- e.value.style.chart.layout.labels.hollow.average.value.formatter,
933
- Ge.value,
934
- r(N)({
935
- p: e.value.style.chart.layout.labels.hollow.average.value.prefix,
936
- v: Ge.value,
937
- s: e.value.style.chart.layout.labels.hollow.average.value.suffix,
938
- r: e.value.style.chart.layout.labels.hollow.average.value.rounding
939
- })
940
- )), 13, ql)) : i("", !0)
941
- ], 64)) : i("", !0),
942
- (o(!0), n(m, null, T(D.value.filter((t) => !t.ghost), (t, a) => (o(), n("g", {
943
- filter: j(a),
944
- class: pe({ animated: e.value.useCssAnimation })
945
- }, [
946
- e.value.style.chart.layout.labels.dataLabels.useLabelSlots ? (o(), n("g", Kl, [
947
- (o(), n("foreignObject", {
948
- x: r(w)(t, !0).anchor === "end" ? r(w)(t).x - 120 : r(w)(t, !0).anchor === "middle" ? r(w)(t).x - 60 : r(w)(t).x,
949
- y: r(ue)(t) - (je.value ? 20 : 0),
950
- width: "120",
951
- height: "60",
952
- style: { overflow: "visible" }
953
- }, [
954
- f("div", null, [
955
- g(l.$slots, "dataLabel", tt({ ref_for: !0 }, {
956
- datapoint: t,
957
- isBlur: !e.value.useBlurOnHover || [null, void 0].includes(S.value) || S.value === a,
958
- isSafari: je.value,
959
- isVisible: X(t) && h.value.dataLabels.show,
960
- textAlign: r(w)(t, !0, 16, !0).anchor,
961
- flexAlign: r(w)(t, !0, 16).anchor,
962
- percentage: he(t, D.value)
963
- }), void 0, !0)
964
- ])
965
- ], 8, Ql))
966
- ])) : (o(), n("g", Zl, [
967
- e.value.type === "classic" ? (o(), n(m, { key: 0 }, [
968
- X(t) && h.value.dataLabels.show ? (o(), n("circle", {
969
- key: 0,
970
- cx: r(w)(t).x,
971
- cy: r(ue)(t) - 3.5,
972
- fill: t.color,
973
- stroke: e.value.style.chart.backgroundColor,
974
- "stroke-width": 1,
975
- r: 3,
976
- filter: !e.value.useBlurOnHover || [null, void 0].includes(S.value) || S.value === a ? "" : `url(#blur_${y.value})`,
977
- onClick: (v) => U(t, a)
978
- }, null, 8, ea)) : i("", !0)
979
- ], 64)) : i("", !0),
980
- e.value.type === "polar" ? (o(), n(m, { key: 1 }, [
981
- X(t) && h.value.dataLabels.show ? (o(), n("circle", {
982
- key: 0,
983
- cx: r(z)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 24, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x,
984
- cy: r(z)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 24, centerX: s.value.width / 2, centerY: s.value.height / 2 }).y,
985
- fill: t.color,
986
- stroke: e.value.style.chart.backgroundColor,
987
- "stroke-width": 1,
988
- r: 3,
989
- filter: !e.value.useBlurOnHover || [null, void 0].includes(S.value) || S.value === a ? "" : `url(#blur_${y.value})`,
990
- onClick: (v) => U(t, a)
991
- }, null, 8, ta)) : i("", !0)
992
- ], 64)) : i("", !0),
993
- e.value.type === "classic" ? (o(), n(m, { key: 2 }, [
994
- X(t) && h.value.dataLabels.show ? (o(), n("text", {
995
- key: 0,
996
- "text-anchor": r(w)(t, !0, 12).anchor,
997
- x: r(w)(t, !0, 12).x,
998
- y: r(ue)(t),
999
- fill: e.value.style.chart.layout.labels.percentage.color,
1000
- "font-size": e.value.style.chart.layout.labels.percentage.fontSize,
1001
- style: _(`font-weight:${e.value.style.chart.layout.labels.percentage.bold ? "bold" : ""}`),
1002
- onClick: (v) => U(t, a)
1003
- }, P(he(t, D.value)) + " " + P(e.value.style.chart.layout.labels.value.show ? `(${r(I)(
1004
- e.value.style.chart.layout.labels.value.formatter,
1005
- t.value,
1006
- r(N)({
1007
- p: e.value.style.chart.layout.labels.dataLabels.prefix,
1008
- v: t.value,
1009
- s: e.value.style.chart.layout.labels.dataLabels.suffix,
1010
- r: e.value.style.chart.layout.labels.value.rounding
1011
- }),
1012
- { datapoint: t }
1013
- )})` : ""), 13, la)) : i("", !0),
1014
- X(t) && h.value.dataLabels.show ? (o(), n("text", {
1015
- key: 1,
1016
- "text-anchor": r(w)(t).anchor,
1017
- x: r(w)(t, !0, 12).x,
1018
- y: r(ue)(t) + e.value.style.chart.layout.labels.percentage.fontSize,
1019
- fill: e.value.style.chart.layout.labels.name.color,
1020
- "font-size": e.value.style.chart.layout.labels.name.fontSize,
1021
- style: _(`font-weight:${e.value.style.chart.layout.labels.name.bold ? "bold" : ""}`),
1022
- onClick: (v) => U(t, a)
1023
- }, P(t.name), 13, aa)) : i("", !0)
1024
- ], 64)) : i("", !0),
1025
- e.value.type === "polar" ? (o(), n(m, { key: 3 }, [
1026
- X(t) && h.value.dataLabels.show ? (o(), n("text", {
1027
- key: 0,
1028
- "text-anchor": J(c.value[a].middlePoint),
1029
- x: r(z)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x,
1030
- y: r(z)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).y,
1031
- fill: e.value.style.chart.layout.labels.percentage.color,
1032
- "font-size": e.value.style.chart.layout.labels.percentage.fontSize,
1033
- style: _(`transition: all 0.1s ease-in-out; font-weight:${e.value.style.chart.layout.labels.percentage.bold ? "bold" : ""}`),
1034
- onClick: (v) => U(t, a)
1035
- }, P(he(t, D.value)) + " " + P(e.value.style.chart.layout.labels.value.show ? `(${r(I)(
1036
- e.value.style.chart.layout.labels.value.formatter,
1037
- t.value,
1038
- r(N)({
1039
- p: e.value.style.chart.layout.labels.dataLabels.prefix,
1040
- v: t.value,
1041
- s: e.value.style.chart.layout.labels.dataLabels.suffix,
1042
- r: e.value.style.chart.layout.labels.value.rounding
1043
- }),
1044
- { datapoint: t }
1045
- )})` : ""), 13, oa)) : i("", !0),
1046
- X(t) && h.value.dataLabels.show ? (o(), n("text", {
1047
- key: 1,
1048
- "text-anchor": J(c.value[a].middlePoint),
1049
- x: r(z)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x,
1050
- y: r(z)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).y + e.value.style.chart.layout.labels.percentage.fontSize,
1051
- fill: e.value.style.chart.layout.labels.name.color,
1052
- "font-size": e.value.style.chart.layout.labels.name.fontSize,
1053
- style: _(`transition: all 0.1s ease-in-out; font-weight:${e.value.style.chart.layout.labels.name.bold ? "bold" : ""}`),
1054
- onClick: (v) => U(t, a)
1055
- }, P(t.name), 13, ua)) : i("", !0)
1056
- ], 64)) : i("", !0)
1057
- ])),
1058
- h.value.dataLabels.show && e.value.style.chart.comments.show && t.comment ? (o(), n("g", sa, [
1059
- X(t) && e.value.type === "classic" ? (o(), n("foreignObject", {
1060
- key: 0,
1061
- x: e.value.style.chart.comments.offsetX + (r(w)(t, !0).anchor === "end" ? r(w)(t).x - e.value.style.chart.comments.width : r(w)(t, !0).anchor === "middle" ? r(w)(t).x - e.value.style.chart.comments.width / 2 : r(w)(t).x),
1062
- y: r(ue)(t) + 24 + e.value.style.chart.comments.offsetY,
1063
- width: e.value.style.chart.comments.width,
1064
- height: "200",
1065
- style: { overflow: "visible", "pointer-events": "none" }
1066
- }, [
1067
- f("div", null, [
1068
- g(l.$slots, "plot-comment", {
1069
- plot: { ...t, textAlign: r(w)(t, !0, 16, !0).anchor, flexAlign: r(w)(t, !0, 16).anchor, isFirstLoad: Y.value }
1070
- }, void 0, !0)
1071
- ])
1072
- ], 8, na)) : i("", !0),
1073
- X(t) && e.value.type === "polar" ? (o(), n("foreignObject", {
1074
- key: 1,
1075
- x: e.value.style.chart.comments.offsetX + (J(c.value[a].middlePoint) === "end" ? r(z)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x - e.value.style.chart.comments.width : J(c.value[a].middlePoint) === "middle" ? r(z)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x - e.value.style.chart.comments.width / 2 : r(z)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x),
1076
- y: gt(c.value[a]) + e.value.style.chart.comments.offsetY,
1077
- width: e.value.style.chart.comments.width,
1078
- height: "200",
1079
- style: { overflow: "visible", "pointer-events": "none" }
1080
- }, [
1081
- f("div", null, [
1082
- g(l.$slots, "plot-comment", {
1083
- plot: { ...t, textAlign: J(c.value[a].middlePoint), flexAlign: J(c.value[a].middlePoint), isFirstLoad: Y.value }
1084
- }, void 0, !0)
1085
- ])
1086
- ], 8, ra)) : i("", !0)
1087
- ])) : i("", !0)
1088
- ], 10, Jl))), 256)),
1089
- g(l.$slots, "svg", { svg: s.value }, void 0, !0)
1090
- ], 14, ol)) : i("", !0),
1091
- l.$slots.watermark ? (o(), n("div", ia, [
1092
- g(l.$slots, "watermark", Q(Z({ isPrinting: r(Ae) || r(Oe) })), void 0, !0)
1093
- ])) : i("", !0),
1094
- ee.value ? i("", !0) : (o(), E(qt, {
1095
- key: 6,
1096
- config: {
1097
- type: "donut",
1098
- style: {
1099
- backgroundColor: e.value.style.chart.backgroundColor,
1100
- donut: {
1101
- color: "#CCCCCC",
1102
- strokeWidth: q.value * 0.8
1103
- }
1104
- }
1105
- }
1106
- }, null, 8, ["config"])),
1107
- f("div", {
1108
- ref_key: "chartLegend",
1109
- ref: we
1110
- }, [
1111
- e.value.style.chart.legend.show ? (o(), E(Ht, {
1112
- key: `legend_${Ce.value}`,
1113
- legendSet: Be.value,
1114
- config: pt.value,
1115
- onClickMarker: u[4] || (u[4] = ({ i: t }) => Ve(t))
1116
- }, et({
1117
- item: $(({ legend: t, index: a }) => [
1118
- f("div", {
1119
- style: _(`opacity:${M.value.includes(a) ? 0.5 : 1}`),
1120
- onClick: (v) => t.segregate()
1121
- }, [
1122
- lt(P(t.name) + ": " + P(r(I)(
1123
- e.value.style.chart.layout.labels.value.formatter,
1124
- t.value,
1125
- r(N)({
1126
- p: e.value.style.chart.layout.labels.dataLabels.prefix,
1127
- v: t.value,
1128
- s: e.value.style.chart.layout.labels.dataLabels.suffix,
1129
- r: e.value.style.chart.legend.roundingValue
1130
- }),
1131
- {
1132
- datapoint: t,
1133
- index: a
1134
- }
1135
- )) + " ", 1),
1136
- M.value.includes(a) ? (o(), n("span", da, " ( " + P(wt(t.proportion * 100)) + " % ) ", 1)) : (o(), n("span", ca, " (" + P(isNaN(t.value / L.value) ? "-" : r(I)(
1137
- e.value.style.chart.layout.labels.percentage.formatter,
1138
- Re.value(t),
1139
- r(N)({
1140
- v: Re.value(t),
1141
- s: "%",
1142
- r: e.value.style.chart.legend.roundingPercentage
1143
- })
1144
- )) + ") ", 1))
1145
- ], 12, va)
1146
- ]),
1147
- _: 2
1148
- }, [
1149
- l.$slots.pattern ? {
1150
- name: "legend-pattern",
1151
- fn: $(({ legend: t, index: a }) => [
1152
- ge(el, {
1153
- shape: t.shape,
1154
- radius: 30,
1155
- stroke: "none",
1156
- plot: { x: 30, y: 30 },
1157
- fill: `url(#pattern_${y.value}_${a})`
1158
- }, null, 8, ["shape", "fill"])
1159
- ]),
1160
- key: "0"
1161
- } : void 0
1162
- ]), 1032, ["legendSet", "config"])) : i("", !0),
1163
- g(l.$slots, "legend", { legend: Be.value }, void 0, !0)
1164
- ], 512),
1165
- l.$slots.source ? (o(), n("div", {
1166
- key: 7,
1167
- ref_key: "source",
1168
- ref: ke,
1169
- dir: "auto"
1170
- }, [
1171
- g(l.$slots, "source", {}, void 0, !0)
1172
- ], 512)) : i("", !0),
1173
- ge(Et, {
1174
- show: h.value.showTooltip && ne.value,
1175
- backgroundColor: e.value.style.chart.tooltip.backgroundColor,
1176
- color: e.value.style.chart.tooltip.color,
1177
- fontSize: e.value.style.chart.tooltip.fontSize,
1178
- borderRadius: e.value.style.chart.tooltip.borderRadius,
1179
- borderColor: e.value.style.chart.tooltip.borderColor,
1180
- borderWidth: e.value.style.chart.tooltip.borderWidth,
1181
- backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
1182
- position: e.value.style.chart.tooltip.position,
1183
- offsetY: e.value.style.chart.tooltip.offsetY,
1184
- parent: te.value,
1185
- content: ve.value,
1186
- isCustom: le.value,
1187
- isFullscreen: K.value
1188
- }, {
1189
- "tooltip-before": $(() => [
1190
- g(l.$slots, "tooltip-before", Q(Z({ ...ye.value })), void 0, !0)
1191
- ]),
1192
- "tooltip-after": $(() => [
1193
- g(l.$slots, "tooltip-after", Q(Z({ ...ye.value })), void 0, !0)
1194
- ]),
1195
- _: 3
1196
- }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen"]),
1197
- ee.value ? (o(), E(Jt, {
1198
- key: 8,
1199
- hideDetails: "",
1200
- config: {
1201
- open: h.value.showTable,
1202
- maxHeight: 1e4,
1203
- body: {
1204
- backgroundColor: e.value.style.chart.backgroundColor,
1205
- color: e.value.style.chart.color
1206
- },
1207
- head: {
1208
- backgroundColor: e.value.style.chart.backgroundColor,
1209
- color: e.value.style.chart.color
1210
- }
1211
- }
1212
- }, {
1213
- content: $(() => [
1214
- (o(), E(jt, {
1215
- key: `table_${$e.value}`,
1216
- colNames: re.value.colNames,
1217
- head: re.value.head,
1218
- body: re.value.body,
1219
- config: re.value.config,
1220
- title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
1221
- onClose: u[5] || (u[5] = (t) => h.value.showTable = !1)
1222
- }, {
1223
- th: $(({ th: t }) => [
1224
- f("div", {
1225
- innerHTML: t,
1226
- style: { display: "flex", "align-items": "center" }
1227
- }, null, 8, ha)
1228
- ]),
1229
- td: $(({ td: t }) => [
1230
- lt(P(t.name ? t.name : isNaN(Number(t)) ? t.includes("%") ? t : r(I)(
1231
- e.value.style.chart.layout.labels.percentage.formatter,
1232
- t,
1233
- r(N)({
1234
- v: t,
1235
- s: "%",
1236
- r: e.value.style.chart.layout.labels.percentage.rounding
1237
- })
1238
- ) : r(I)(
1239
- e.value.style.chart.layout.labels.value.formatter,
1240
- t,
1241
- r(N)({
1242
- p: e.value.style.chart.layout.labels.dataLabels.prefix,
1243
- v: t,
1244
- s: e.value.style.chart.layout.labels.dataLabels.suffix,
1245
- r: e.value.style.chart.layout.labels.value.rounding
1246
- })
1247
- )), 1)
1248
- ]),
1249
- _: 1
1250
- }, 8, ["colNames", "head", "body", "config", "title"]))
1251
- ]),
1252
- _: 1
1253
- }, 8, ["config"])) : i("", !0)
1254
- ], 46, al));
1255
- }
1256
- }, Aa = /* @__PURE__ */ ll(ya, [["__scopeId", "data-v-82683d32"]]);
1257
- export {
1258
- Aa as default
1259
- };