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