vue-data-ui 2.10.3-beta.2 → 2.10.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
@@ -1,1261 +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 u, 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 M, k as ue, n as w, t as Xt, a as It, q as Mt, r as Dt, x as Vt } from "./index-Cq9SFWKh.js";
3
- import { t as Bt, u as Gt } from "./useResponsive-Cw4oZ8sQ.js";
4
- import { _ as Rt } from "./Title-9xdQbKmK.js";
5
- import { u as Ut, U as Wt } from "./usePrinter-Ca40kS6V.js";
6
- import { D as jt } from "./DataTable-BEgGQ4D3.js";
7
- import { _ as Et } from "./Tooltip-DAG_w755.js";
8
- import { L as Ht } from "./Legend-D3fzSDzv.js";
9
- import qt from "./vue-ui-skeleton-CEUPs326.js";
10
- import Jt from "./vue-ui-accordion-DqMoC-KV.js";
11
- import { u as ut } from "./useNestedProp-D3PTIhO4.js";
12
- import { _ as Kt } from "./PackageVersion-BtYm4WhX.js";
13
- import { _ as Qt } from "./PenAndPaper-C0mD6paN.js";
14
- import { u as Zt } from "./useUserOptionState-BIvW1Kz7.js";
15
- import { _ as el } from "./Shape-BlXVxC09.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, o) => {
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: o
69
- });
70
- });
71
- }), e.value.responsive) {
72
- const l = Bt(() => {
73
- const { width: o, 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 = o, 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(""), F = 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, o = 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) / o, 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((o) => o.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: o, bottom: t, left: a } = e.value.style.chart.padding;
140
- return {
141
- css: `padding:${l}px ${o}px ${t}px ${a}px`,
142
- top: l,
143
- right: o,
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, o = Math.min(s.value.width, s.value.height) * l, t = o > x.value ? x.value : o;
162
- return Math.max(t, 3);
163
- }), Ie = nt, B = p(() => A.dataset.map((l, o) => ({
164
- name: l.name,
165
- color: ot(l.color) || Xe.value[o] || H[o] || H[o % H.length],
166
- value: l.values.reduce((t, a) => t + a, 0),
167
- absoluteValues: l.values,
168
- comment: l.comment || "",
169
- patternIndex: o,
170
- seriesIndex: o,
171
- ghost: !1,
172
- pattern: `pattern_${y.value}_${o}`
173
- }))), O = d(B.value);
174
- Ze(() => B.value, (l) => O.value = l);
175
- function yt() {
176
- return B.value.map((l) => ({
177
- name: l.name,
178
- color: l.color,
179
- value: l.value
180
- }));
181
- }
182
- const D = d([]), Me = d(null), De = d(null), W = d(!1);
183
- function Ve(l) {
184
- const o = B.value.find((v, b) => b === l), t = O.value.find((v, b) => b === l);
185
- let a = t.value;
186
- if (D.value.includes(l)) {
187
- let b = function() {
188
- O.value = O.value.map((C, ae) => l === ae ? {
189
- ...C,
190
- value: v
191
- } : C);
192
- }, k = function() {
193
- 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 ? {
194
- ...C,
195
- value: a
196
- } : C), Me.value = requestAnimationFrame(k));
197
- };
198
- D.value = D.value.filter((C) => C !== l);
199
- const v = o.value;
200
- e.value.useSerieToggleAnimation ? k() : b();
201
- } else if (D.value.length < B.value.length - 1) {
202
- let v = function() {
203
- D.value.push(l), O.value = O.value.map((k, C) => l === C ? {
204
- ...k,
205
- value: 0
206
- } : k);
207
- }, b = function() {
208
- 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 ? {
209
- ...k,
210
- value: a
211
- } : k), De.value = requestAnimationFrame(b));
212
- };
213
- e.value.useSerieToggleAnimation ? b() : v();
214
- }
215
- Ie("selectLegend", G.value.map((v) => ({
216
- name: v.name,
217
- color: v.color,
218
- value: v.value
219
- })));
220
- }
221
- const ft = p(() => A.dataset.reduce((l, o) => l + o.values.reduce((t, a) => t + a, 0), 0)), G = p(() => {
222
- if (Y.value) {
223
- const l = V.value.map((t, a) => ({
224
- ...B.value[a],
225
- value: t,
226
- color: B.value[a].color,
227
- ghost: !1
228
- })), o = ft.value - V.value.reduce((t, a) => t + a, 0);
229
- return o > 0 && l.push({
230
- name: "__ghost__",
231
- value: o,
232
- color: "transparent",
233
- ghost: !0
234
- }), l;
235
- } else
236
- return O.value.forEach((l, o) => {
237
- if ([null, void 0].includes(l.values))
238
- return {
239
- ...l,
240
- values: []
241
- };
242
- }), O.value.map((l, o) => ({
243
- ...l,
244
- seriesIndex: o
245
- })).filter((l, o) => !D.value.includes(o));
246
- }), Be = p(() => A.dataset.map((l, o) => ({
247
- name: l.name,
248
- color: ot(l.color) || Xe.value[o] || H[o] || H[o % H.length],
249
- value: (l.values || []).reduce((t, a) => t + a, 0),
250
- shape: "circle",
251
- patternIndex: o
252
- })).map((l, o) => ({
253
- ...l,
254
- proportion: l.value / A.dataset.map((t) => (t.values || []).reduce((a, v) => a + v, 0)).reduce((t, a) => t + a, 0),
255
- opacity: D.value.includes(o) ? 0.5 : 1,
256
- segregate: () => !W.value && Ve(o),
257
- isSegregated: D.value.includes(o)
258
- }))), pt = p(() => ({
259
- cy: "donut-div-legend",
260
- backgroundColor: e.value.style.chart.legend.backgroundColor,
261
- color: e.value.style.chart.legend.color,
262
- fontSize: e.value.style.chart.legend.fontSize,
263
- paddingBottom: 12,
264
- fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
265
- })), x = p(() => {
266
- const l = Math.min(s.value.width / 3, s.value.height / 3);
267
- return l < 55 ? 55 : l;
268
- }), S = 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)), X = p(() => S.value.filter((l) => !l.ghost)), c = p(() => {
269
- const l = Math.max(...G.value.map((t) => t.value)), o = G.value.map((t) => t.value / l);
270
- return At({
271
- series: o,
272
- center: {
273
- x: s.value.width / 2,
274
- y: s.value.height / 2
275
- },
276
- maxRadius: Math.min(s.value.width, s.value.height) / 3,
277
- hasGhost: Y.value
278
- });
279
- });
280
- function J(l) {
281
- return l.x > s.value.width / 2 + 6 ? "start" : l.x < s.value.width / 2 - 6 ? "end" : "middle";
282
- }
283
- function gt(l) {
284
- 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;
285
- }
286
- function I(l) {
287
- return l.proportion * 100 > e.value.style.chart.layout.labels.dataLabels.hideUnderValue;
288
- }
289
- function he(l, o) {
290
- const t = l.value / mt(o);
291
- return isNaN(t) ? 0 : M(
292
- e.value.style.chart.layout.labels.percentage.formatter,
293
- t * 100,
294
- N({
295
- v: t * 100,
296
- s: "%",
297
- r: e.value.style.chart.layout.labels.percentage.rounding
298
- }),
299
- { datapoint: l }
300
- );
301
- }
302
- function mt(l) {
303
- return [...l].map((o) => o.value).reduce((o, t) => o + t, 0);
304
- }
305
- const L = p(() => G.value.map((l) => l.value).reduce((l, o) => l + o, 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);
306
- function Ue({ datapoint: l, relativeIndex: o, seriesIndex: t, show: a = !1 }) {
307
- ye.value = { datapoint: l, seriesIndex: t, config: e.value, series: B.value }, ne.value = a, F.value = o;
308
- let v = "";
309
- const b = e.value.style.chart.tooltip.customFormat;
310
- if (le.value = !1, Vt(b))
311
- try {
312
- const k = b({
313
- seriesIndex: t,
314
- datapoint: l,
315
- series: B.value,
316
- config: e.value
317
- });
318
- typeof k == "string" && (ve.value = k, le.value = !0);
319
- } catch {
320
- console.warn("Custom format cannot be applied."), le.value = !1;
321
- }
322
- if (!le.value) {
323
- 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>${M(
324
- e.value.style.chart.layout.labels.value.formatter,
325
- l.value,
326
- N({
327
- p: e.value.style.chart.layout.labels.dataLabels.prefix,
328
- v: l.value,
329
- s: e.value.style.chart.layout.labels.dataLabels.suffix,
330
- r: e.value.style.chart.tooltip.roundingValue
331
- }),
332
- {
333
- datapoint: l,
334
- relativeIndex: o,
335
- seriesIndex: t
336
- }
337
- )}</b>`), e.value.style.chart.tooltip.showPercentage) {
338
- const k = M(
339
- e.value.style.chart.layout.labels.percentage.formatter,
340
- l.proportion * 100,
341
- N({
342
- v: l.proportion * 100,
343
- s: "%",
344
- r: e.value.style.chart.tooltip.roundingPercentage
345
- }),
346
- {
347
- datapoint: l,
348
- relativeIndex: o,
349
- seriesIndex: t
350
- }
351
- );
352
- e.value.style.chart.tooltip.showValue ? v += `<span>(${k})</span></div>` : v += `<b>${k}</b></div>`;
353
- }
354
- 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>`;
355
- }
356
- }
357
- function j(l) {
358
- return e.value.useBlurOnHover && ![null, void 0].includes(F.value) && F.value !== l ? `url(#blur_${y.value})` : "";
359
- }
360
- const R = p(() => {
361
- const l = G.value.map((t) => ({
362
- name: t.name,
363
- color: t.color
364
- })), o = G.value.map((t) => t.value);
365
- return { head: l, body: o };
366
- });
367
- function We() {
368
- Ct(() => {
369
- const l = R.value.head.map((a, v) => [[
370
- a.name
371
- ], [R.value.body[v]], [isNaN(R.value.body[v] / L.value) ? "-" : R.value.body[v] / L.value * 100]]), o = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(l), t = Mt(o);
372
- Dt({ csvContent: t, title: e.value.style.chart.title.text || "vue-ui-donut" });
373
- });
374
- }
375
- const re = p(() => {
376
- const l = [
377
- ' <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>',
378
- 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 }),
379
- "100%"
380
- ], o = R.value.head.map((v, b) => [
381
- {
382
- color: v.color,
383
- name: v.name
384
- },
385
- R.value.body[b],
386
- isNaN(R.value.body[b] / L.value) ? "-" : (R.value.body[b] / L.value * 100).toFixed(e.value.table.td.roundingPercentage) + "%"
387
- ]), t = {
388
- th: {
389
- backgroundColor: e.value.table.th.backgroundColor,
390
- color: e.value.table.th.color,
391
- outline: e.value.table.th.outline
392
- },
393
- td: {
394
- backgroundColor: e.value.table.td.backgroundColor,
395
- color: e.value.table.td.color,
396
- outline: e.value.table.td.outline
397
- },
398
- breakpoint: e.value.table.responsiveBreakpoint
399
- };
400
- return {
401
- colNames: [
402
- e.value.table.columnNames.series,
403
- e.value.table.columnNames.value,
404
- e.value.table.columnNames.percentage
405
- ],
406
- head: l,
407
- body: o,
408
- config: t
409
- };
410
- }), K = d(!1);
411
- function bt(l) {
412
- K.value = l, Fe.value += 1;
413
- }
414
- const je = p(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent));
415
- function wt(l) {
416
- return l.toFixed(e.value.style.chart.legend.roundingPercentage).split("").map((o) => "-").join("");
417
- }
418
- function U(l, o) {
419
- Ie("selectDatapoint", { datapoint: l, index: o });
420
- }
421
- function Ee() {
422
- h.value.showTable = !h.value.showTable;
423
- }
424
- function He() {
425
- h.value.dataLabels.show = !h.value.dataLabels.show;
426
- }
427
- function qe() {
428
- h.value.showTooltip = !h.value.showTooltip;
429
- }
430
- const ie = d(!1);
431
- function fe() {
432
- ie.value = !ie.value;
433
- }
434
- return st({
435
- getData: yt,
436
- generatePdf: Ne,
437
- generateCsv: We,
438
- generateImage: Ye,
439
- toggleTable: Ee,
440
- toggleLabels: He,
441
- toggleTooltip: qe,
442
- toggleAnnotator: fe
443
- }), (l, o) => (u(), n("div", {
444
- ref_key: "donutChart",
445
- ref: te,
446
- class: pe(`vue-ui-donut ${K.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
447
- style: _(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height:100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
448
- id: `donut__${y.value}`,
449
- onMouseenter: o[6] || (o[6] = () => r(Le)(!0)),
450
- onMouseleave: o[7] || (o[7] = () => r(Le)(!1))
451
- }, [
452
- e.value.userOptions.buttons.annotator && r(de) ? (u(), E(Qt, {
453
- key: 0,
454
- color: e.value.style.chart.color,
455
- backgroundColor: e.value.style.chart.backgroundColor,
456
- active: ie.value,
457
- svgRef: r(de),
458
- onClose: fe
459
- }, null, 8, ["color", "backgroundColor", "active", "svgRef"])) : i("", !0),
460
- g(l.$slots, "userConfig", {}, void 0, !0),
461
- ht.value ? (u(), n("div", {
462
- key: 1,
463
- ref_key: "noTitle",
464
- ref: _e,
465
- class: "vue-data-ui-no-title-space",
466
- style: "height:36px; width: 100%;background:transparent"
467
- }, null, 512)) : i("", !0),
468
- e.value.style.chart.title.text ? (u(), n("div", {
469
- key: 2,
470
- ref_key: "chartTitle",
471
- ref: be,
472
- style: "width:100%;background:transparent;padding-bottom:24px"
473
- }, [
474
- (u(), E(Rt, {
475
- key: `title_${xe.value}`,
476
- config: {
477
- title: {
478
- cy: "donut-div-title",
479
- ...e.value.style.chart.title
480
- },
481
- subtitle: {
482
- cy: "donut-div-subtitle",
483
- ...e.value.style.chart.title.subtitle
484
- }
485
- }
486
- }, null, 8, ["config"]))
487
- ], 512)) : i("", !0),
488
- e.value.userOptions.show && ee.value && (r(Te) || r(ce)) ? (u(), E(Wt, {
489
- ref_key: "details",
490
- ref: vt,
491
- key: `user_option_${Fe.value}`,
492
- backgroundColor: e.value.style.chart.backgroundColor,
493
- color: e.value.style.chart.color,
494
- isPrinting: r(Ae),
495
- isImaging: r(Oe),
496
- uid: y.value,
497
- hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
498
- hasPdf: e.value.userOptions.buttons.pdf,
499
- hasImg: e.value.userOptions.buttons.img,
500
- hasXls: e.value.userOptions.buttons.csv,
501
- hasTable: e.value.userOptions.buttons.table,
502
- hasLabel: e.value.userOptions.buttons.labels,
503
- hasFullscreen: e.value.userOptions.buttons.fullscreen,
504
- isFullscreen: K.value,
505
- chartElement: te.value,
506
- position: e.value.userOptions.position,
507
- isTooltip: h.value.showTooltip,
508
- titles: { ...e.value.userOptions.buttonTitles },
509
- hasAnnotator: e.value.userOptions.buttons.annotator,
510
- isAnnotation: ie.value,
511
- onToggleFullscreen: bt,
512
- onGeneratePdf: r(Ne),
513
- onGenerateCsv: We,
514
- onGenerateImage: r(Ye),
515
- onToggleTable: Ee,
516
- onToggleLabels: He,
517
- onToggleTooltip: qe,
518
- onToggleAnnotator: fe,
519
- style: _({
520
- visibility: r(Te) ? r(ce) ? "visible" : "hidden" : "visible"
521
- })
522
- }, et({ _: 2 }, [
523
- l.$slots.menuIcon ? {
524
- name: "menuIcon",
525
- fn: $(({ isOpen: t, color: a }) => [
526
- g(l.$slots, "menuIcon", Q(Z({ isOpen: t, color: a })), void 0, !0)
527
- ]),
528
- key: "0"
529
- } : void 0,
530
- l.$slots.optionTooltip ? {
531
- name: "optionTooltip",
532
- fn: $(() => [
533
- g(l.$slots, "optionTooltip", {}, void 0, !0)
534
- ]),
535
- key: "1"
536
- } : void 0,
537
- l.$slots.optionPdf ? {
538
- name: "optionPdf",
539
- fn: $(() => [
540
- g(l.$slots, "optionPdf", {}, void 0, !0)
541
- ]),
542
- key: "2"
543
- } : void 0,
544
- l.$slots.optionCsv ? {
545
- name: "optionCsv",
546
- fn: $(() => [
547
- g(l.$slots, "optionCsv", {}, void 0, !0)
548
- ]),
549
- key: "3"
550
- } : void 0,
551
- l.$slots.optionImg ? {
552
- name: "optionImg",
553
- fn: $(() => [
554
- g(l.$slots, "optionImg", {}, void 0, !0)
555
- ]),
556
- key: "4"
557
- } : void 0,
558
- l.$slots.optionTable ? {
559
- name: "optionTable",
560
- fn: $(() => [
561
- g(l.$slots, "optionTable", {}, void 0, !0)
562
- ]),
563
- key: "5"
564
- } : void 0,
565
- l.$slots.optionLabels ? {
566
- name: "optionLabels",
567
- fn: $(() => [
568
- g(l.$slots, "optionLabels", {}, void 0, !0)
569
- ]),
570
- key: "6"
571
- } : void 0,
572
- l.$slots.optionFullscreen ? {
573
- name: "optionFullscreen",
574
- fn: $(({ toggleFullscreen: t, isFullscreen: a }) => [
575
- g(l.$slots, "optionFullscreen", Q(Z({ toggleFullscreen: t, isFullscreen: a })), void 0, !0)
576
- ]),
577
- key: "7"
578
- } : void 0,
579
- l.$slots.optionAnnotator ? {
580
- name: "optionAnnotator",
581
- fn: $(({ toggleAnnotator: t, isAnnotator: a }) => [
582
- g(l.$slots, "optionAnnotator", Q(Z({ toggleAnnotator: t, isAnnotator: a })), void 0, !0)
583
- ]),
584
- key: "8"
585
- } : void 0
586
- ]), 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),
587
- ee.value ? (u(), n("svg", {
588
- key: 4,
589
- ref_key: "svgRef",
590
- ref: de,
591
- xmlns: r(Ot),
592
- class: pe({ "vue-data-ui-fullscreen--on": K.value, "vue-data-ui-fulscreen--off": !K.value }),
593
- viewBox: `0 0 ${s.value.width <= 0 ? 10 : s.value.width} ${s.value.height <= 0 ? 10 : s.value.height}`,
594
- style: _(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};${ze.value.css}`)
595
- }, [
596
- ge(Kt),
597
- l.$slots["chart-background"] ? (u(), n("foreignObject", {
598
- key: 0,
599
- x: 0,
600
- y: 0,
601
- width: s.value.width <= 0 ? 10 : s.value.width,
602
- height: s.value.height <= 0 ? 10 : s.value.height,
603
- style: {
604
- pointerEvents: "none"
605
- }
606
- }, [
607
- g(l.$slots, "chart-background", {}, void 0, !0)
608
- ], 8, ul)) : i("", !0),
609
- e.value.type === "classic" && !isNaN(q.value / x.value) ? (u(), n("defs", sl, [
610
- e.value.style.chart.useGradient ? (u(), n("radialGradient", {
611
- key: 0,
612
- id: `gradient_${y.value}`
613
- }, [
614
- f("stop", {
615
- offset: "0%",
616
- "stop-color": r(oe)(e.value.style.chart.backgroundColor, 0),
617
- "stop-opacity": "0"
618
- }, null, 8, rl),
619
- f("stop", {
620
- offset: `${(1 - q.value / x.value) * 100}%`,
621
- "stop-color": r(oe)("#FFFFFF", 0),
622
- "stop-opacity": "0"
623
- }, null, 8, il),
624
- f("stop", {
625
- offset: `${(1 - q.value / x.value / 2) * 100}%`,
626
- "stop-color": r(oe)("#FFFFFF", e.value.style.chart.gradientIntensity)
627
- }, null, 8, vl),
628
- f("stop", {
629
- offset: "100%",
630
- "stop-color": r(oe)(e.value.style.chart.backgroundColor, 0),
631
- "stop-opacity": "0"
632
- }, null, 8, cl)
633
- ], 8, nl)) : i("", !0)
634
- ])) : i("", !0),
635
- e.value.type === "polar" ? (u(), n("defs", dl, [
636
- (u(!0), n(m, null, T(c.value, (t, a) => (u(), n("radialGradient", {
637
- id: `polar_gradient_${a}_${y.value}`,
638
- cx: (isNaN(t.middlePoint.x / s.value.width * 100) ? 0 : t.middlePoint.x / s.value.width * 100) + "%",
639
- cy: (isNaN(t.middlePoint.y / s.value.height * 100) ? 0 : t.middlePoint.y / s.value.height * 100) + "%",
640
- r: "62%"
641
- }, [
642
- f("stop", {
643
- offset: "0%",
644
- "stop-color": r(Nt)(S.value[a].color, 0.05),
645
- "stop-opacity": e.value.style.chart.gradientIntensity / 100
646
- }, null, 8, yl),
647
- f("stop", {
648
- offset: "100%",
649
- "stop-color": S.value[a].color
650
- }, null, 8, fl)
651
- ], 8, hl))), 256))
652
- ])) : i("", !0),
653
- f("defs", null, [
654
- f("filter", {
655
- id: `blur_${y.value}`,
656
- x: "-50%",
657
- y: "-50%",
658
- width: "200%",
659
- height: "200%"
660
- }, [
661
- f("feGaussianBlur", {
662
- in: "SourceGraphic",
663
- stdDeviation: 2,
664
- id: `blur_std_${y.value}`
665
- }, null, 8, gl),
666
- o[8] || (o[8] = f("feColorMatrix", {
667
- type: "saturate",
668
- values: "0"
669
- }, null, -1))
670
- ], 8, pl),
671
- f("filter", {
672
- id: `shadow_${y.value}`,
673
- "color-interpolation-filters": "sRGB"
674
- }, [
675
- f("feDropShadow", {
676
- dx: "0",
677
- dy: "0",
678
- stdDeviation: "10",
679
- "flood-opacity": "0.5",
680
- "flood-color": e.value.style.chart.layout.donut.shadowColor
681
- }, null, 8, bl)
682
- ], 8, ml),
683
- f("filter", {
684
- id: `drop_shadow_${y.value}`,
685
- "color-interpolation-filters": "sRGB",
686
- x: "-50%",
687
- y: "-50%",
688
- width: "200%",
689
- height: "200%"
690
- }, [
691
- f("feDropShadow", {
692
- dx: "0",
693
- dy: "0",
694
- stdDeviation: "3",
695
- "flood-opacity": "1",
696
- "flood-color": e.value.style.chart.layout.donut.shadowColor
697
- }, null, 8, kl)
698
- ], 8, wl)
699
- ]),
700
- e.value.type === "classic" ? (u(!0), n(m, { key: 3 }, T(S.value.filter((t) => !t.ghost), (t, a) => (u(), n("g", null, [
701
- I(t) && h.value.dataLabels.show ? (u(), n("path", {
702
- key: 0,
703
- 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),
704
- stroke: t.color,
705
- "stroke-width": "1",
706
- "stroke-linecap": "round",
707
- "stroke-linejoin": "round",
708
- fill: "none",
709
- filter: j(a)
710
- }, null, 8, _l)) : i("", !0)
711
- ]))), 256)) : i("", !0),
712
- e.value.type === "polar" ? (u(!0), n(m, { key: 4 }, T(S.value.filter((t) => !t.ghost), (t, a) => (u(), n("g", null, [
713
- I(t) && h.value.dataLabels.show ? (u(), n("line", {
714
- key: 0,
715
- 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,
716
- 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,
717
- x2: c.value[a].middlePoint.x,
718
- y2: c.value[a].middlePoint.y,
719
- stroke: t.color,
720
- "stroke-width": "1",
721
- "stroke-linecap": "round",
722
- "stroke-linejoin": "round",
723
- fill: "none",
724
- filter: j(a),
725
- style: _({
726
- transition: Y.value ? "" : "all 0.1s ease-in-out"
727
- })
728
- }, null, 12, xl)) : i("", !0)
729
- ]))), 256)) : i("", !0),
730
- e.value.type === "classic" && e.value.style.chart.layout.donut.useShadow ? (u(), n("circle", {
731
- key: 5,
732
- cx: s.value.width / 2,
733
- cy: s.value.height / 2,
734
- r: x.value <= 0 ? 10 : x.value,
735
- fill: e.value.style.chart.backgroundColor,
736
- filter: `url(#shadow_${y.value})`
737
- }, null, 8, $l)) : i("", !0),
738
- l.$slots.pattern ? (u(), n("g", Cl, [
739
- (u(!0), n(m, null, T(me.dataset, (t, a) => (u(), n("defs", {
740
- key: `pattern-${t.patternIndex}`
741
- }, [
742
- g(l.$slots, "pattern", tt({ ref_for: !0 }, { seriesIndex: a, patternId: `pattern_${y.value}_${a}` }), void 0, !0)
743
- ]))), 128))
744
- ])) : i("", !0),
745
- L.value && e.value.type === "classic" ? (u(), n(m, { key: 7 }, [
746
- (u(!0), n(m, null, T(X.value, (t, a) => (u(), n("path", {
747
- stroke: e.value.style.chart.backgroundColor,
748
- d: t.arcSlice,
749
- fill: "#FFFFFF"
750
- }, null, 8, Pl))), 256)),
751
- l.$slots.pattern ? (u(), n("g", Fl, [
752
- (u(!0), n(m, null, T(X.value, (t, a) => (u(), n("path", {
753
- class: "vue-ui-donut-arc-path",
754
- d: t.arcSlice,
755
- fill: `url(#${t.pattern})`,
756
- stroke: e.value.style.chart.backgroundColor,
757
- "stroke-width": e.value.style.chart.layout.donut.borderWidth,
758
- filter: j(a)
759
- }, null, 8, Sl))), 256))
760
- ])) : i("", !0),
761
- (u(!0), n(m, null, T(X.value, (t, a) => (u(), n("path", {
762
- class: "vue-ui-donut-arc-path",
763
- d: t.arcSlice,
764
- fill: r(oe)(t.color, 80),
765
- stroke: e.value.style.chart.backgroundColor,
766
- "stroke-width": e.value.style.chart.layout.donut.borderWidth,
767
- filter: j(a)
768
- }, null, 8, Ll))), 256))
769
- ], 64)) : i("", !0),
770
- L.value && e.value.type === "polar" ? (u(), n(m, { key: 8 }, [
771
- S.value.length > 1 ? (u(), n("g", Tl, [
772
- (u(!0), n(m, null, T(X.value, (t, a) => (u(), n("path", {
773
- stroke: e.value.style.chart.backgroundColor,
774
- d: c.value[a].path,
775
- fill: "#FFFFFF",
776
- style: _({
777
- transition: Y.value ? "none" : "all 0.1s ease-in-out"
778
- })
779
- }, null, 12, zl))), 256)),
780
- e.value.style.chart.layout.donut.useShadow ? (u(), n("g", Al, [
781
- (u(!0), n(m, null, T(X.value, (t, a) => (u(), n("path", {
782
- class: "vue-ui-donut-arc-path",
783
- d: c.value[a].path,
784
- fill: "transparent",
785
- stroke: e.value.style.chart.backgroundColor,
786
- "stroke-width": e.value.style.chart.layout.donut.borderWidth,
787
- filter: `url(#drop_shadow_${y.value})`,
788
- style: _({
789
- transition: Y.value ? "none" : "all 0.1s ease-in-out"
790
- })
791
- }, null, 12, Ol))), 256))
792
- ])) : i("", !0),
793
- l.$slots.pattern ? (u(), n("g", Nl, [
794
- (u(!0), n(m, null, T(X.value, (t, a) => (u(), n("path", {
795
- class: "vue-ui-donut-arc-path",
796
- d: c.value[a].path,
797
- fill: `url(#${t.pattern})`,
798
- stroke: e.value.style.chart.backgroundColor,
799
- "stroke-width": e.value.style.chart.layout.donut.borderWidth,
800
- filter: j(a),
801
- style: _({
802
- transition: Y.value ? "none" : "all 0.1s ease-in-out"
803
- })
804
- }, null, 12, Yl))), 256))
805
- ])) : i("", !0),
806
- (u(!0), n(m, null, T(X.value, (t, a) => (u(), n("path", {
807
- class: "vue-ui-donut-arc-path",
808
- d: c.value[a].path,
809
- fill: e.value.style.chart.useGradient ? `url(#polar_gradient_${a}_${y.value})` : t.color,
810
- stroke: e.value.style.chart.backgroundColor,
811
- "stroke-width": e.value.style.chart.layout.donut.borderWidth,
812
- filter: j(a),
813
- style: _({
814
- transition: Y.value ? "none" : "all 0.1s ease-in-out"
815
- })
816
- }, null, 12, Xl))), 256))
817
- ])) : (u(), n("g", Il, [
818
- l.$slots.pattern ? (u(), n("circle", {
819
- key: 0,
820
- cx: s.value.width / 2,
821
- cy: s.value.height / 2,
822
- r: x.value,
823
- fill: `url(#pattern_${y.value}_${S.value[0].patternIndex})`,
824
- stroke: e.value.style.chart.backgroundColor,
825
- "stroke-width": e.value.style.chart.layout.donut.borderWidth
826
- }, null, 8, Ml)) : i("", !0),
827
- f("circle", {
828
- cx: s.value.width / 2,
829
- cy: s.value.height / 2,
830
- r: x.value,
831
- fill: e.value.style.chart.useGradient ? `url(#polar_gradient_0_${y.value})` : S.value[0].color,
832
- stroke: e.value.style.chart.backgroundColor,
833
- "stroke-width": e.value.style.chart.layout.donut.borderWidth
834
- }, null, 8, Dl)
835
- ]))
836
- ], 64)) : (u(), n("circle", {
837
- key: 9,
838
- cx: s.value.width / 2,
839
- cy: s.value.height / 2,
840
- r: x.value <= 0 ? 10 : x.value,
841
- fill: "transparent",
842
- stroke: e.value.style.chart.backgroundColor
843
- }, null, 8, Vl)),
844
- e.value.style.chart.useGradient && e.value.type === "classic" ? (u(), n("circle", {
845
- key: 10,
846
- cx: s.value.width / 2,
847
- cy: s.value.height / 2,
848
- r: (
849
- /* This might require adjustments */
850
- x.value <= 0 ? 10 : x.value
851
- ),
852
- fill: `url(#gradient_${y.value})`
853
- }, null, 8, Bl)) : i("", !0),
854
- L.value ? (u(), n(m, { key: 11 }, [
855
- S.value.length > 1 || e.value.type === "classic" ? (u(), n("g", Gl, [
856
- (u(!0), n(m, null, T(S.value.filter((t) => !t.ghost), (t, a) => (u(), n("path", {
857
- d: e.value.type === "classic" ? t.arcSlice : c.value[a].path,
858
- fill: F.value === a ? "rgba(0,0,0,0.1)" : "transparent",
859
- onMouseenter: (v) => Ue({
860
- datapoint: t,
861
- relativeIndex: a,
862
- seriesIndex: t.seriesIndex,
863
- show: !0
864
- }),
865
- onMouseleave: o[0] || (o[0] = (v) => {
866
- ne.value = !1, F.value = null;
867
- }),
868
- onClick: (v) => U(t, a)
869
- }, null, 40, Rl))), 256))
870
- ])) : (u(), n("g", Ul, [
871
- f("circle", {
872
- cx: s.value.width / 2,
873
- cy: s.value.height / 2,
874
- r: x.value,
875
- fill: F.value === l.i ? "rgba(0,0,0,0.1)" : "transparent",
876
- onMouseenter: o[1] || (o[1] = (t) => Ue({
877
- datapoint: S.value[0],
878
- relativeIndex: 0,
879
- seriesIndex: S.value[0].seriesIndex,
880
- show: !0
881
- })),
882
- onMouseleave: o[2] || (o[2] = (t) => {
883
- ne.value = !1, F.value = null;
884
- }),
885
- onClick: o[3] || (o[3] = (t) => U(S.value[0], l.i))
886
- }, null, 40, Wl)
887
- ]))
888
- ], 64)) : i("", !0),
889
- e.value.type === "classic" ? (u(), n(m, { key: 12 }, [
890
- e.value.style.chart.layout.labels.hollow.total.show ? (u(), n("text", {
891
- key: 0,
892
- "text-anchor": "middle",
893
- x: s.value.width / 2,
894
- 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,
895
- fill: e.value.style.chart.layout.labels.hollow.total.color,
896
- "font-size": e.value.style.chart.layout.labels.hollow.total.fontSize,
897
- style: _(`font-weight:${e.value.style.chart.layout.labels.hollow.total.bold ? "bold" : ""}`)
898
- }, P(e.value.style.chart.layout.labels.hollow.total.text), 13, jl)) : i("", !0),
899
- e.value.style.chart.layout.labels.hollow.total.show ? (u(), n("text", {
900
- key: 1,
901
- "text-anchor": "middle",
902
- x: s.value.width / 2,
903
- 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,
904
- fill: e.value.style.chart.layout.labels.hollow.total.value.color,
905
- "font-size": e.value.style.chart.layout.labels.hollow.total.value.fontSize,
906
- style: _(`font-weight:${e.value.style.chart.layout.labels.hollow.total.value.bold ? "bold" : ""}`)
907
- }, P(r(M)(
908
- e.value.style.chart.layout.labels.hollow.total.value.formatter,
909
- L.value,
910
- r(N)({
911
- p: e.value.style.chart.layout.labels.hollow.total.value.prefix,
912
- v: L.value,
913
- s: e.value.style.chart.layout.labels.hollow.total.value.suffix
914
- })
915
- )), 13, El)) : i("", !0),
916
- e.value.style.chart.layout.labels.hollow.average.show ? (u(), n("text", {
917
- key: 2,
918
- "text-anchor": "middle",
919
- x: s.value.width / 2,
920
- 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,
921
- fill: e.value.style.chart.layout.labels.hollow.average.color,
922
- "font-size": e.value.style.chart.layout.labels.hollow.average.fontSize,
923
- style: _(`font-weight:${e.value.style.chart.layout.labels.hollow.average.bold ? "bold" : ""}`)
924
- }, P(e.value.style.chart.layout.labels.hollow.average.text), 13, Hl)) : i("", !0),
925
- e.value.style.chart.layout.labels.hollow.average.show ? (u(), n("text", {
926
- key: 3,
927
- "text-anchor": "middle",
928
- x: s.value.width / 2,
929
- 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,
930
- fill: e.value.style.chart.layout.labels.hollow.average.value.color,
931
- "font-size": e.value.style.chart.layout.labels.hollow.average.value.fontSize,
932
- style: _(`font-weight:${e.value.style.chart.layout.labels.hollow.average.value.bold ? "bold" : ""}`)
933
- }, P(W.value || Y.value ? "--" : r(M)(
934
- e.value.style.chart.layout.labels.hollow.average.value.formatter,
935
- Ge.value,
936
- r(N)({
937
- p: e.value.style.chart.layout.labels.hollow.average.value.prefix,
938
- v: Ge.value,
939
- s: e.value.style.chart.layout.labels.hollow.average.value.suffix,
940
- r: e.value.style.chart.layout.labels.hollow.average.value.rounding
941
- })
942
- )), 13, ql)) : i("", !0)
943
- ], 64)) : i("", !0),
944
- (u(!0), n(m, null, T(X.value.filter((t) => !t.ghost), (t, a) => (u(), n("g", {
945
- filter: j(a),
946
- class: pe({ animated: e.value.useCssAnimation })
947
- }, [
948
- e.value.style.chart.layout.labels.dataLabels.useLabelSlots ? (u(), n("g", Kl, [
949
- (u(), n("foreignObject", {
950
- 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,
951
- y: r(ue)(t) - (je.value ? 20 : 0),
952
- width: "120",
953
- height: "60",
954
- style: { overflow: "visible" }
955
- }, [
956
- f("div", null, [
957
- g(l.$slots, "dataLabel", tt({ ref_for: !0 }, {
958
- datapoint: t,
959
- isBlur: !e.value.useBlurOnHover || [null, void 0].includes(F.value) || F.value === a,
960
- isSafari: je.value,
961
- isVisible: I(t) && h.value.dataLabels.show,
962
- textAlign: r(w)(t, !0, 16, !0).anchor,
963
- flexAlign: r(w)(t, !0, 16).anchor,
964
- percentage: he(t, X.value)
965
- }), void 0, !0)
966
- ])
967
- ], 8, Ql))
968
- ])) : (u(), n("g", Zl, [
969
- e.value.type === "classic" ? (u(), n(m, { key: 0 }, [
970
- I(t) && h.value.dataLabels.show ? (u(), n("circle", {
971
- key: 0,
972
- cx: r(w)(t).x,
973
- cy: r(ue)(t) - 3.5,
974
- fill: t.color,
975
- stroke: e.value.style.chart.backgroundColor,
976
- "stroke-width": 1,
977
- r: 3,
978
- filter: !e.value.useBlurOnHover || [null, void 0].includes(F.value) || F.value === a ? "" : `url(#blur_${y.value})`,
979
- onClick: (v) => U(t, a)
980
- }, null, 8, ea)) : i("", !0)
981
- ], 64)) : i("", !0),
982
- e.value.type === "polar" ? (u(), n(m, { key: 1 }, [
983
- I(t) && h.value.dataLabels.show ? (u(), n("circle", {
984
- key: 0,
985
- 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,
986
- 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,
987
- fill: t.color,
988
- stroke: e.value.style.chart.backgroundColor,
989
- "stroke-width": 1,
990
- r: 3,
991
- filter: !e.value.useBlurOnHover || [null, void 0].includes(F.value) || F.value === a ? "" : `url(#blur_${y.value})`,
992
- onClick: (v) => U(t, a)
993
- }, null, 8, ta)) : i("", !0)
994
- ], 64)) : i("", !0),
995
- e.value.type === "classic" ? (u(), n(m, { key: 2 }, [
996
- I(t) && h.value.dataLabels.show ? (u(), n("text", {
997
- key: 0,
998
- "text-anchor": r(w)(t, !0, 12).anchor,
999
- x: r(w)(t, !0, 12).x,
1000
- y: r(ue)(t),
1001
- fill: e.value.style.chart.layout.labels.percentage.color,
1002
- "font-size": e.value.style.chart.layout.labels.percentage.fontSize,
1003
- style: _(`font-weight:${e.value.style.chart.layout.labels.percentage.bold ? "bold" : ""}`),
1004
- onClick: (v) => U(t, a)
1005
- }, P(he(t, X.value)) + " " + P(e.value.style.chart.layout.labels.value.show ? `(${r(M)(
1006
- e.value.style.chart.layout.labels.value.formatter,
1007
- t.value,
1008
- r(N)({
1009
- p: e.value.style.chart.layout.labels.dataLabels.prefix,
1010
- v: t.value,
1011
- s: e.value.style.chart.layout.labels.dataLabels.suffix,
1012
- r: e.value.style.chart.layout.labels.value.rounding
1013
- }),
1014
- { datapoint: t }
1015
- )})` : ""), 13, la)) : i("", !0),
1016
- I(t) && h.value.dataLabels.show ? (u(), n("text", {
1017
- key: 1,
1018
- "text-anchor": r(w)(t).anchor,
1019
- x: r(w)(t, !0, 12).x,
1020
- y: r(ue)(t) + e.value.style.chart.layout.labels.percentage.fontSize,
1021
- fill: e.value.style.chart.layout.labels.name.color,
1022
- "font-size": e.value.style.chart.layout.labels.name.fontSize,
1023
- style: _(`font-weight:${e.value.style.chart.layout.labels.name.bold ? "bold" : ""}`),
1024
- onClick: (v) => U(t, a)
1025
- }, P(t.name), 13, aa)) : i("", !0)
1026
- ], 64)) : i("", !0),
1027
- e.value.type === "polar" ? (u(), n(m, { key: 3 }, [
1028
- I(t) && h.value.dataLabels.show ? (u(), n("text", {
1029
- key: 0,
1030
- "text-anchor": J(c.value[a].middlePoint),
1031
- 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,
1032
- 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,
1033
- fill: e.value.style.chart.layout.labels.percentage.color,
1034
- "font-size": e.value.style.chart.layout.labels.percentage.fontSize,
1035
- style: _(`transition: all 0.1s ease-in-out; font-weight:${e.value.style.chart.layout.labels.percentage.bold ? "bold" : ""}`),
1036
- onClick: (v) => U(t, a)
1037
- }, P(he(t, X.value)) + " " + P(e.value.style.chart.layout.labels.value.show ? `(${r(M)(
1038
- e.value.style.chart.layout.labels.value.formatter,
1039
- t.value,
1040
- r(N)({
1041
- p: e.value.style.chart.layout.labels.dataLabels.prefix,
1042
- v: t.value,
1043
- s: e.value.style.chart.layout.labels.dataLabels.suffix,
1044
- r: e.value.style.chart.layout.labels.value.rounding
1045
- }),
1046
- { datapoint: t }
1047
- )})` : ""), 13, oa)) : i("", !0),
1048
- I(t) && h.value.dataLabels.show ? (u(), n("text", {
1049
- key: 1,
1050
- "text-anchor": J(c.value[a].middlePoint),
1051
- 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,
1052
- 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,
1053
- fill: e.value.style.chart.layout.labels.name.color,
1054
- "font-size": e.value.style.chart.layout.labels.name.fontSize,
1055
- style: _(`transition: all 0.1s ease-in-out; font-weight:${e.value.style.chart.layout.labels.name.bold ? "bold" : ""}`),
1056
- onClick: (v) => U(t, a)
1057
- }, P(t.name), 13, ua)) : i("", !0)
1058
- ], 64)) : i("", !0)
1059
- ])),
1060
- h.value.dataLabels.show && e.value.style.chart.comments.show && t.comment ? (u(), n("g", sa, [
1061
- I(t) && e.value.type === "classic" ? (u(), n("foreignObject", {
1062
- key: 0,
1063
- 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),
1064
- y: r(ue)(t) + 24 + e.value.style.chart.comments.offsetY,
1065
- width: e.value.style.chart.comments.width,
1066
- height: "200",
1067
- style: { overflow: "visible", "pointer-events": "none" }
1068
- }, [
1069
- f("div", null, [
1070
- g(l.$slots, "plot-comment", {
1071
- plot: { ...t, textAlign: r(w)(t, !0, 16, !0).anchor, flexAlign: r(w)(t, !0, 16).anchor, isFirstLoad: Y.value }
1072
- }, void 0, !0)
1073
- ])
1074
- ], 8, na)) : i("", !0),
1075
- I(t) && e.value.type === "polar" ? (u(), n("foreignObject", {
1076
- key: 1,
1077
- 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),
1078
- y: gt(c.value[a]) + e.value.style.chart.comments.offsetY,
1079
- width: e.value.style.chart.comments.width,
1080
- height: "200",
1081
- style: { overflow: "visible", "pointer-events": "none" }
1082
- }, [
1083
- f("div", null, [
1084
- g(l.$slots, "plot-comment", {
1085
- plot: { ...t, textAlign: J(c.value[a].middlePoint), flexAlign: J(c.value[a].middlePoint), isFirstLoad: Y.value }
1086
- }, void 0, !0)
1087
- ])
1088
- ], 8, ra)) : i("", !0)
1089
- ])) : i("", !0)
1090
- ], 10, Jl))), 256)),
1091
- g(l.$slots, "svg", { svg: s.value }, void 0, !0)
1092
- ], 14, ol)) : i("", !0),
1093
- l.$slots.watermark ? (u(), n("div", ia, [
1094
- g(l.$slots, "watermark", Q(Z({ isPrinting: r(Ae) || r(Oe) })), void 0, !0)
1095
- ])) : i("", !0),
1096
- ee.value ? i("", !0) : (u(), E(qt, {
1097
- key: 6,
1098
- config: {
1099
- type: "donut",
1100
- style: {
1101
- backgroundColor: e.value.style.chart.backgroundColor,
1102
- donut: {
1103
- color: "#CCCCCC",
1104
- strokeWidth: q.value * 0.8
1105
- }
1106
- }
1107
- }
1108
- }, null, 8, ["config"])),
1109
- f("div", {
1110
- ref_key: "chartLegend",
1111
- ref: we
1112
- }, [
1113
- e.value.style.chart.legend.show ? (u(), E(Ht, {
1114
- key: `legend_${Ce.value}`,
1115
- legendSet: Be.value,
1116
- config: pt.value,
1117
- onClickMarker: o[4] || (o[4] = ({ i: t }) => Ve(t))
1118
- }, et({
1119
- item: $(({ legend: t, index: a }) => [
1120
- f("div", {
1121
- style: _(`opacity:${D.value.includes(a) ? 0.5 : 1}`),
1122
- onClick: (v) => t.segregate()
1123
- }, [
1124
- lt(P(t.name) + ": " + P(r(M)(
1125
- e.value.style.chart.layout.labels.value.formatter,
1126
- t.value,
1127
- r(N)({
1128
- p: e.value.style.chart.layout.labels.dataLabels.prefix,
1129
- v: t.value,
1130
- s: e.value.style.chart.layout.labels.dataLabels.suffix,
1131
- r: e.value.style.chart.legend.roundingValue
1132
- }),
1133
- {
1134
- datapoint: t,
1135
- index: a
1136
- }
1137
- )) + " ", 1),
1138
- D.value.includes(a) ? (u(), n("span", da, " ( " + P(wt(t.proportion * 100)) + " % ) ", 1)) : (u(), n("span", ca, " (" + P(isNaN(t.value / L.value) ? "-" : r(M)(
1139
- e.value.style.chart.layout.labels.percentage.formatter,
1140
- Re.value(t),
1141
- r(N)({
1142
- v: Re.value(t),
1143
- s: "%",
1144
- r: e.value.style.chart.legend.roundingPercentage
1145
- })
1146
- )) + ") ", 1))
1147
- ], 12, va)
1148
- ]),
1149
- _: 2
1150
- }, [
1151
- l.$slots.pattern ? {
1152
- name: "legend-pattern",
1153
- fn: $(({ legend: t, index: a }) => [
1154
- ge(el, {
1155
- shape: t.shape,
1156
- radius: 30,
1157
- stroke: "none",
1158
- plot: { x: 30, y: 30 },
1159
- fill: `url(#pattern_${y.value}_${a})`
1160
- }, null, 8, ["shape", "fill"])
1161
- ]),
1162
- key: "0"
1163
- } : void 0
1164
- ]), 1032, ["legendSet", "config"])) : i("", !0),
1165
- g(l.$slots, "legend", { legend: Be.value }, void 0, !0)
1166
- ], 512),
1167
- l.$slots.source ? (u(), n("div", {
1168
- key: 7,
1169
- ref_key: "source",
1170
- ref: ke,
1171
- dir: "auto"
1172
- }, [
1173
- g(l.$slots, "source", {}, void 0, !0)
1174
- ], 512)) : i("", !0),
1175
- ge(Et, {
1176
- show: h.value.showTooltip && ne.value,
1177
- backgroundColor: e.value.style.chart.tooltip.backgroundColor,
1178
- color: e.value.style.chart.tooltip.color,
1179
- fontSize: e.value.style.chart.tooltip.fontSize,
1180
- borderRadius: e.value.style.chart.tooltip.borderRadius,
1181
- borderColor: e.value.style.chart.tooltip.borderColor,
1182
- borderWidth: e.value.style.chart.tooltip.borderWidth,
1183
- backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
1184
- position: e.value.style.chart.tooltip.position,
1185
- offsetY: e.value.style.chart.tooltip.offsetY,
1186
- parent: te.value,
1187
- content: ve.value,
1188
- isCustom: le.value,
1189
- isFullscreen: K.value
1190
- }, {
1191
- "tooltip-before": $(() => [
1192
- g(l.$slots, "tooltip-before", Q(Z({ ...ye.value })), void 0, !0)
1193
- ]),
1194
- "tooltip-after": $(() => [
1195
- g(l.$slots, "tooltip-after", Q(Z({ ...ye.value })), void 0, !0)
1196
- ]),
1197
- _: 3
1198
- }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen"]),
1199
- ee.value ? (u(), E(Jt, {
1200
- key: 8,
1201
- hideDetails: "",
1202
- config: {
1203
- open: h.value.showTable,
1204
- maxHeight: 1e4,
1205
- body: {
1206
- backgroundColor: e.value.style.chart.backgroundColor,
1207
- color: e.value.style.chart.color
1208
- },
1209
- head: {
1210
- backgroundColor: e.value.style.chart.backgroundColor,
1211
- color: e.value.style.chart.color
1212
- }
1213
- }
1214
- }, {
1215
- content: $(() => [
1216
- (u(), E(jt, {
1217
- key: `table_${$e.value}`,
1218
- colNames: re.value.colNames,
1219
- head: re.value.head,
1220
- body: re.value.body,
1221
- config: re.value.config,
1222
- title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
1223
- onClose: o[5] || (o[5] = (t) => h.value.showTable = !1)
1224
- }, {
1225
- th: $(({ th: t }) => [
1226
- f("div", {
1227
- innerHTML: t,
1228
- style: { display: "flex", "align-items": "center" }
1229
- }, null, 8, ha)
1230
- ]),
1231
- td: $(({ td: t }) => [
1232
- lt(P(t.name ? t.name : isNaN(Number(t)) ? t.includes("%") ? t : r(M)(
1233
- e.value.style.chart.layout.labels.percentage.formatter,
1234
- t,
1235
- r(N)({
1236
- v: t,
1237
- s: "%",
1238
- r: e.value.style.chart.layout.labels.percentage.rounding
1239
- })
1240
- ) : r(M)(
1241
- e.value.style.chart.layout.labels.value.formatter,
1242
- t,
1243
- r(N)({
1244
- p: e.value.style.chart.layout.labels.dataLabels.prefix,
1245
- v: t,
1246
- s: e.value.style.chart.layout.labels.dataLabels.suffix,
1247
- r: e.value.style.chart.layout.labels.value.rounding
1248
- })
1249
- )), 1)
1250
- ]),
1251
- _: 1
1252
- }, 8, ["colNames", "head", "body", "config", "title"]))
1253
- ]),
1254
- _: 1
1255
- }, 8, ["config"])) : i("", !0)
1256
- ], 46, al));
1257
- }
1258
- }, Aa = /* @__PURE__ */ ll(ya, [["__scopeId", "data-v-9e4a77ed"]]);
1259
- export {
1260
- Aa as default
1261
- };