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

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 (163) hide show
  1. package/dist/{Arrow-B_t3knDx.cjs → Arrow-D2Pi70sk.cjs} +1 -1
  2. package/dist/{Arrow-GVrF9WOj.js → Arrow-Dh_Fpbqg.js} +1 -1
  3. package/dist/{BaseIcon-DBgAUX2a.cjs → BaseIcon-Bal8YWHd.cjs} +1 -1
  4. package/dist/{BaseIcon-h9TCYwJK.js → BaseIcon-DDXu6LPD.js} +1 -1
  5. package/dist/{ColorPicker-YfLIuv-R.cjs → ColorPicker-CJ3V6DBg.cjs} +1 -1
  6. package/dist/{ColorPicker-CtdVdLS4.js → ColorPicker-DFdr_v0e.js} +3 -3
  7. package/dist/{DataTable-DObvjXDX.js → DataTable-BEgGQ4D3.js} +2 -2
  8. package/dist/{DataTable-C3yxI_aI.cjs → DataTable-BgEOVOhs.cjs} +1 -1
  9. package/dist/{Legend-DzSy-IUq.js → Legend-D3fzSDzv.js} +2 -2
  10. package/dist/{Legend-DJ-i2IuD.cjs → Legend-ywuPKha1.cjs} +1 -1
  11. package/dist/{PackageVersion-Bf6TS-QR.js → PackageVersion-BtYm4WhX.js} +1 -1
  12. package/dist/{PackageVersion-BIgwvtuC.cjs → PackageVersion-D9Y0IJOt.cjs} +1 -1
  13. package/dist/{PenAndPaper-DMTgFlFr.js → PenAndPaper-C0mD6paN.js} +3 -3
  14. package/dist/{PenAndPaper-Bz1D0jf7.cjs → PenAndPaper-dMpMHvEy.cjs} +1 -1
  15. package/dist/{Shape-BB_8PZCY.js → Shape-BlXVxC09.js} +1 -1
  16. package/dist/{Shape-DT1Q81L9.cjs → Shape-DF1rpvBr.cjs} +1 -1
  17. package/dist/{Slicer-Bp6W-Q1V.cjs → Slicer-BaB88GFk.cjs} +1 -1
  18. package/dist/{Slicer-DCUzf9fq.js → Slicer-CaBTnAu_.js} +2 -2
  19. package/dist/{Title-BD93Z93w.js → Title-9xdQbKmK.js} +1 -1
  20. package/dist/{Title-B1y-3QPQ.cjs → Title-CduBjJSc.cjs} +1 -1
  21. package/dist/{Tooltip-DrcHzDRM.js → Tooltip-DAG_w755.js} +1 -1
  22. package/dist/{Tooltip-RV5OVI3a.cjs → Tooltip-KPaPh0AB.cjs} +1 -1
  23. package/dist/{dom-to-png-CCEeTdud.cjs → dom-to-png-9Doy7r6I.cjs} +1 -1
  24. package/dist/{dom-to-png-GVD347Ix.js → dom-to-png-BHePseM4.js} +1 -1
  25. package/dist/{img-CzUIHHgH.cjs → img-BBbAfJQR.cjs} +1 -1
  26. package/dist/{img-Dj_G_KYV.js → img-Di1y0Ikf.js} +1 -1
  27. package/dist/{index-DmOqU2gc.cjs → index-BS69wmdK.cjs} +1 -1
  28. package/dist/{index-DWq4s-ww.js → index-Cq9SFWKh.js} +1 -1
  29. package/dist/{pdf-CHnecAVX.cjs → pdf-CJjcR9vj.cjs} +1 -1
  30. package/dist/{pdf-DpksDzZW.js → pdf-DQ1mgiex.js} +1 -1
  31. package/dist/style.css +1 -1
  32. package/dist/{useNestedProp-CPAzMQW3.js → useNestedProp-D3PTIhO4.js} +1 -1
  33. package/dist/{useNestedProp-CEwtxiO9.cjs → useNestedProp-Dv_NLIAp.cjs} +1 -1
  34. package/dist/{usePrinter-BjxuB68l.js → usePrinter-Ca40kS6V.js} +3 -3
  35. package/dist/{usePrinter-GqLmuLI-.cjs → usePrinter-uYxKqDEn.cjs} +1 -1
  36. package/dist/{vue-data-ui-BhuxqKkJ.js → vue-data-ui-Bjik9H-H.js} +62 -62
  37. package/dist/{vue-data-ui-DBEeag8i.cjs → vue-data-ui-JrJq4CRi.cjs} +1 -1
  38. package/dist/vue-data-ui.cjs +1 -1
  39. package/dist/vue-data-ui.js +1 -1
  40. package/dist/{vue-ui-3d-bar-TWzcdbdy.cjs → vue-ui-3d-bar-CDnuvl7-.cjs} +1 -1
  41. package/dist/{vue-ui-3d-bar-6npDtOUn.js → vue-ui-3d-bar-vqgTXxnJ.js} +9 -9
  42. package/dist/{vue-ui-accordion-VK6Q6MAw.cjs → vue-ui-accordion-CMi53Y4v.cjs} +1 -1
  43. package/dist/{vue-ui-accordion-Ca6nV8uf.js → vue-ui-accordion-DqMoC-KV.js} +3 -3
  44. package/dist/{vue-ui-age-pyramid-CwqMewxq.cjs → vue-ui-age-pyramid-Asn7VBGh.cjs} +1 -1
  45. package/dist/{vue-ui-age-pyramid-BaBU4AkZ.js → vue-ui-age-pyramid-DOd1r-qj.js} +10 -10
  46. package/dist/{vue-ui-annotator-DBtx2PHg.cjs → vue-ui-annotator-CQcK254t.cjs} +1 -1
  47. package/dist/{vue-ui-annotator-BSfg2Cqh.js → vue-ui-annotator-DgGB9Xkp.js} +2 -2
  48. package/dist/{vue-ui-bullet-DQGjRgXj.cjs → vue-ui-bullet-00HOqfX-.cjs} +1 -1
  49. package/dist/{vue-ui-bullet-vBhcJqBu.js → vue-ui-bullet-Bb9jWm8_.js} +8 -8
  50. package/dist/{vue-ui-candlestick-AhsFFM0O.js → vue-ui-candlestick-D0PW4-P1.js} +11 -11
  51. package/dist/{vue-ui-candlestick-C8m29T8u.cjs → vue-ui-candlestick-wHpHbQrl.cjs} +1 -1
  52. package/dist/{vue-ui-carousel-table-M69qs_tr.js → vue-ui-carousel-table-Dqm7cpU6.js} +4 -4
  53. package/dist/{vue-ui-carousel-table-B09sTudP.cjs → vue-ui-carousel-table-kYZBRDac.cjs} +1 -1
  54. package/dist/{vue-ui-chestnut-uQ4QhJEu.cjs → vue-ui-chestnut-Bs9m2OhK.cjs} +1 -1
  55. package/dist/{vue-ui-chestnut-Cz_Aj8pX.js → vue-ui-chestnut-C225mv_7.js} +8 -8
  56. package/dist/{vue-ui-circle-pack-CYIHdn-n.js → vue-ui-circle-pack-0zHx3DG_.js} +9 -9
  57. package/dist/{vue-ui-circle-pack-CN7nYxdb.cjs → vue-ui-circle-pack-BYpSP8TK.cjs} +1 -1
  58. package/dist/{vue-ui-cursor-BaXtpkTz.cjs → vue-ui-cursor-BAe0sXM-.cjs} +1 -1
  59. package/dist/{vue-ui-cursor-weHYxHaT.js → vue-ui-cursor-DiCXcRu4.js} +2 -2
  60. package/dist/{vue-ui-dashboard-CLYI8wEV.cjs → vue-ui-dashboard-CHPhLJJX.cjs} +1 -1
  61. package/dist/{vue-ui-dashboard-BNsg59hU.js → vue-ui-dashboard-CTgsMPIT.js} +62 -62
  62. package/dist/{vue-ui-digits-wj8ka_eT.cjs → vue-ui-digits-8R3Ru4a1.cjs} +1 -1
  63. package/dist/{vue-ui-digits-B0hyDETd.js → vue-ui-digits-Bp9d897p.js} +2 -2
  64. package/dist/{vue-ui-donut-B2acbY3c.js → vue-ui-donut-C-4-X-rY.js} +183 -181
  65. package/dist/vue-ui-donut-CrIbNaOx.cjs +1 -0
  66. package/dist/{vue-ui-donut-evolution-2pYa-efH.js → vue-ui-donut-evolution-YHz8IrSU.js} +11 -11
  67. package/dist/{vue-ui-donut-evolution-UoUnPX6g.cjs → vue-ui-donut-evolution-vOVT8Cqx.cjs} +1 -1
  68. package/dist/{vue-ui-dumbbell-DwZPwUCk.cjs → vue-ui-dumbbell-BaWWoQp_.cjs} +1 -1
  69. package/dist/{vue-ui-dumbbell-DSxoHF9p.js → vue-ui-dumbbell-CZ8OUBMa.js} +10 -10
  70. package/dist/{vue-ui-flow-BkpFuQkm.js → vue-ui-flow-CPkqQVYz.js} +9 -9
  71. package/dist/{vue-ui-flow-aJq5srUA.cjs → vue-ui-flow-CkaBfjze.cjs} +1 -1
  72. package/dist/{vue-ui-funnel-BafVKO-m.cjs → vue-ui-funnel-DJzbSo8T.cjs} +1 -1
  73. package/dist/{vue-ui-funnel-BuI-vnQb.js → vue-ui-funnel-DZi6LrXD.js} +9 -9
  74. package/dist/{vue-ui-galaxy-DU1KQobN.js → vue-ui-galaxy-C3k2rRb6.js} +11 -11
  75. package/dist/{vue-ui-galaxy-DOAhW1MF.cjs → vue-ui-galaxy-Cf47Bk_F.cjs} +1 -1
  76. package/dist/{vue-ui-gauge-D7sFY8c_.js → vue-ui-gauge-BnOUtuf2.js} +7 -7
  77. package/dist/{vue-ui-gauge-D21wMdC_.cjs → vue-ui-gauge-Mjyb4wHf.cjs} +1 -1
  78. package/dist/{vue-ui-gizmo-BXaLmym5.js → vue-ui-gizmo-BBLhRulv.js} +3 -3
  79. package/dist/{vue-ui-gizmo-BA1d9qdv.cjs → vue-ui-gizmo-C0iAMf4L.cjs} +1 -1
  80. package/dist/{vue-ui-heatmap-CCoQHO_6.cjs → vue-ui-heatmap-C5_iy1I6.cjs} +1 -1
  81. package/dist/{vue-ui-heatmap-Cxss4QvF.js → vue-ui-heatmap-C5ucCKcZ.js} +10 -10
  82. package/dist/{vue-ui-history-plot-C92Mp3Xp.cjs → vue-ui-history-plot-RiYWJmxF.cjs} +1 -1
  83. package/dist/{vue-ui-history-plot-DQO0n3Rf.js → vue-ui-history-plot-xDuhK9RB.js} +11 -11
  84. package/dist/{vue-ui-kpi-BhvozR5s.js → vue-ui-kpi-C_fH20jQ.js} +3 -3
  85. package/dist/{vue-ui-kpi-COo6m-Ks.cjs → vue-ui-kpi-GVxO3gjv.cjs} +1 -1
  86. package/dist/{vue-ui-mini-loader-BwEHFWkC.js → vue-ui-mini-loader-CPtBDnXj.js} +2 -2
  87. package/dist/{vue-ui-mini-loader-B-tISyPq.cjs → vue-ui-mini-loader-CggXnACM.cjs} +1 -1
  88. package/dist/{vue-ui-molecule-DS-9YlFP.cjs → vue-ui-molecule-BSrG4A0E.cjs} +1 -1
  89. package/dist/{vue-ui-molecule-bcpIBsMm.js → vue-ui-molecule-CIp-rk8k.js} +11 -11
  90. package/dist/{vue-ui-mood-radar-C5PYCas_.js → vue-ui-mood-radar-D6gH60DF.js} +11 -11
  91. package/dist/{vue-ui-mood-radar-CtsnePEw.cjs → vue-ui-mood-radar-DspivlWW.cjs} +1 -1
  92. package/dist/{vue-ui-nested-donuts-DykqnDcp.js → vue-ui-nested-donuts-CcGcaTsb.js} +11 -11
  93. package/dist/{vue-ui-nested-donuts-BM1drnr6.cjs → vue-ui-nested-donuts-D6QCg4MP.cjs} +1 -1
  94. package/dist/{vue-ui-onion-gaJqwmrF.js → vue-ui-onion-CqhUwNIA.js} +11 -11
  95. package/dist/{vue-ui-onion-C2ZBvIAR.cjs → vue-ui-onion-Dx6zuimZ.cjs} +1 -1
  96. package/dist/{vue-ui-parallel-coordinate-plot-A1Gj_Ga7.js → vue-ui-parallel-coordinate-plot-CtNlO3V9.js} +12 -12
  97. package/dist/{vue-ui-parallel-coordinate-plot-xu2Wocpp.cjs → vue-ui-parallel-coordinate-plot-DyS5MQKG.cjs} +1 -1
  98. package/dist/{vue-ui-quadrant-DcbgFaxG.js → vue-ui-quadrant-CzN4-r-5.js} +12 -12
  99. package/dist/{vue-ui-quadrant-n27JvM93.cjs → vue-ui-quadrant-Omh6HelC.cjs} +1 -1
  100. package/dist/{vue-ui-quick-chart-JcAbo_Ou.cjs → vue-ui-quick-chart-BjCA0MlK.cjs} +1 -1
  101. package/dist/{vue-ui-quick-chart-ByKtbyYB.js → vue-ui-quick-chart-Dw7durcc.js} +9 -9
  102. package/dist/{vue-ui-radar-ClfEAsg9.cjs → vue-ui-radar-BrRw8hK5.cjs} +1 -1
  103. package/dist/{vue-ui-radar-DxDuU7PC.js → vue-ui-radar-CacbmFtH.js} +12 -12
  104. package/dist/{vue-ui-rating-BRsSp9rc.js → vue-ui-rating-CQX3iJ-l.js} +2 -2
  105. package/dist/{vue-ui-rating-wjKAMprc.cjs → vue-ui-rating-dmcWyFJL.cjs} +1 -1
  106. package/dist/{vue-ui-relation-circle-DcsjQXnt.cjs → vue-ui-relation-circle-bSpbFWDy.cjs} +1 -1
  107. package/dist/{vue-ui-relation-circle-DFWEguaU.js → vue-ui-relation-circle-wQOpbtiz.js} +7 -7
  108. package/dist/{vue-ui-ridgeline-D8nEWP-a.cjs → vue-ui-ridgeline-B3UC7scn.cjs} +1 -1
  109. package/dist/{vue-ui-ridgeline-CwXRZCK1.js → vue-ui-ridgeline-CW1ZWqY3.js} +12 -12
  110. package/dist/{vue-ui-rings-BjHcappB.cjs → vue-ui-rings-CcZO3uzz.cjs} +1 -1
  111. package/dist/{vue-ui-rings-BUYVAbfZ.js → vue-ui-rings-cQmDPKw_.js} +12 -12
  112. package/dist/{vue-ui-scatter-C2G-V-rP.cjs → vue-ui-scatter-BXL-s1EX.cjs} +1 -1
  113. package/dist/{vue-ui-scatter-CalyzpYZ.js → vue-ui-scatter-BzscpnA6.js} +12 -12
  114. package/dist/{vue-ui-skeleton-CgSdY-i3.js → vue-ui-skeleton-CEUPs326.js} +3 -3
  115. package/dist/{vue-ui-skeleton-C2lcxV1r.cjs → vue-ui-skeleton-Dqs4vHnY.cjs} +1 -1
  116. package/dist/{vue-ui-smiley-CyjuCEzK.cjs → vue-ui-smiley-Cm0XM44X.cjs} +1 -1
  117. package/dist/{vue-ui-smiley-CAp8amf3.js → vue-ui-smiley-WaDKRlg_.js} +2 -2
  118. package/dist/{vue-ui-spark-trend-DNRog2VZ.cjs → vue-ui-spark-trend-BpPFjrqX.cjs} +1 -1
  119. package/dist/{vue-ui-spark-trend-g3JUDKWQ.js → vue-ui-spark-trend-u1NaH34Q.js} +5 -5
  120. package/dist/{vue-ui-sparkbar-Dgv-eGQT.js → vue-ui-sparkbar-C7hFS6Sx.js} +4 -4
  121. package/dist/{vue-ui-sparkbar-BPFUJ-XV.cjs → vue-ui-sparkbar-DbinWHG4.cjs} +1 -1
  122. package/dist/{vue-ui-sparkgauge-Rm9WqJac.cjs → vue-ui-sparkgauge-BBQjJUfu.cjs} +1 -1
  123. package/dist/{vue-ui-sparkgauge-J4QKrqrr.js → vue-ui-sparkgauge-BS3MWXh7.js} +4 -4
  124. package/dist/{vue-ui-sparkhistogram-BamMJRbn.js → vue-ui-sparkhistogram-CALOiQXU.js} +5 -5
  125. package/dist/{vue-ui-sparkhistogram-CPJl4whz.cjs → vue-ui-sparkhistogram-DgI4On_t.cjs} +1 -1
  126. package/dist/{vue-ui-sparkline-BswJd-GI.cjs → vue-ui-sparkline-DSN96c9R.cjs} +1 -1
  127. package/dist/{vue-ui-sparkline-BE6uxQJ1.js → vue-ui-sparkline-Sm8GP_gE.js} +4 -4
  128. package/dist/{vue-ui-sparkstackbar-DkOoCVXL.cjs → vue-ui-sparkstackbar-CP-f0RiJ.cjs} +1 -1
  129. package/dist/{vue-ui-sparkstackbar-BH9sFANv.js → vue-ui-sparkstackbar-C_BjsR_9.js} +5 -5
  130. package/dist/{vue-ui-stackbar-bII9CH8i.js → vue-ui-stackbar-CsXTzibp.js} +13 -13
  131. package/dist/{vue-ui-stackbar-CSHgiu-S.cjs → vue-ui-stackbar-umPic16O.cjs} +1 -1
  132. package/dist/{vue-ui-strip-plot-BcxHXtpk.js → vue-ui-strip-plot-DanwoFZA.js} +11 -11
  133. package/dist/{vue-ui-strip-plot-DfAGuNRJ.cjs → vue-ui-strip-plot-EohSje2m.cjs} +1 -1
  134. package/dist/{vue-ui-table-kj_YAH7E.cjs → vue-ui-table-BxE_5O0R.cjs} +1 -1
  135. package/dist/{vue-ui-table-D2qlWdag.js → vue-ui-table-CcxyWlGr.js} +3 -3
  136. package/dist/{vue-ui-table-heatmap-DrNGAq6g.cjs → vue-ui-table-heatmap-BS6gDxAV.cjs} +1 -1
  137. package/dist/{vue-ui-table-heatmap-Y9npl2qT.js → vue-ui-table-heatmap-CYTrU1IM.js} +4 -4
  138. package/dist/{vue-ui-table-sparkline-qFq-ga-b.cjs → vue-ui-table-sparkline-CEUN2DKK.cjs} +1 -1
  139. package/dist/{vue-ui-table-sparkline-VeqlQ66b.js → vue-ui-table-sparkline-VQRxKokd.js} +5 -5
  140. package/dist/{vue-ui-thermometer-CgDYCC3w.js → vue-ui-thermometer-BGo9JVPi.js} +7 -7
  141. package/dist/{vue-ui-thermometer-C1lDcGjT.cjs → vue-ui-thermometer-DDEWBlJX.cjs} +1 -1
  142. package/dist/{vue-ui-timer-BY2dCjiN.js → vue-ui-timer-BOYI9dj1.js} +5 -5
  143. package/dist/{vue-ui-timer-CY2IxtRl.cjs → vue-ui-timer-iHHHozQk.cjs} +1 -1
  144. package/dist/{vue-ui-tiremarks-BWQmACOn.cjs → vue-ui-tiremarks-4wzRyfkY.cjs} +1 -1
  145. package/dist/{vue-ui-tiremarks-DTWdmj4v.js → vue-ui-tiremarks-C6AOzn6M.js} +7 -7
  146. package/dist/{vue-ui-treemap-CtBynkdy.js → vue-ui-treemap-D6tGxfkH.js} +12 -12
  147. package/dist/{vue-ui-treemap-DrXwsion.cjs → vue-ui-treemap-Dsbtoqmc.cjs} +1 -1
  148. package/dist/{vue-ui-vertical-bar-C_qWNcce.js → vue-ui-vertical-bar-CCG0RzzH.js} +12 -12
  149. package/dist/{vue-ui-vertical-bar-DybIA-c5.cjs → vue-ui-vertical-bar-DFtT4E0d.cjs} +1 -1
  150. package/dist/{vue-ui-waffle-xCR4Q6fn.cjs → vue-ui-waffle-Cm6ldzLl.cjs} +1 -1
  151. package/dist/{vue-ui-waffle-3xEQ48b1.js → vue-ui-waffle-Cs2lFmZk.js} +12 -12
  152. package/dist/{vue-ui-wheel-CweXDTzj.cjs → vue-ui-wheel-CGA_ObLc.cjs} +1 -1
  153. package/dist/{vue-ui-wheel-Dc8OZDxx.js → vue-ui-wheel-DwHygX8h.js} +7 -7
  154. package/dist/{vue-ui-word-cloud-CJOHMRfq.cjs → vue-ui-word-cloud-B5xsdE9W.cjs} +1 -1
  155. package/dist/{vue-ui-word-cloud-wwE8jKoI.js → vue-ui-word-cloud-DruVUuqq.js} +10 -10
  156. package/dist/{vue-ui-world-DNYusHsf.cjs → vue-ui-world-AmEJJ8Ml.cjs} +1 -1
  157. package/dist/{vue-ui-world-kJodeH03.js → vue-ui-world-D-R7ZstC.js} +11 -11
  158. package/dist/{vue-ui-xy-C5qR9CE2.js → vue-ui-xy-DwvS7yTz.js} +16 -16
  159. package/dist/{vue-ui-xy-DK2uwes1.cjs → vue-ui-xy-UDsyRd42.cjs} +2 -2
  160. package/dist/{vue-ui-xy-canvas-DTaRiqld.js → vue-ui-xy-canvas-DQ8Ubrlv.js} +12 -12
  161. package/dist/{vue-ui-xy-canvas-0s6cq6q8.cjs → vue-ui-xy-canvas-DUmkN9El.cjs} +1 -1
  162. package/package.json +1 -1
  163. package/dist/vue-ui-donut-C4LxZkgt.cjs +0 -1
@@ -1,19 +1,19 @@
1
1
  import { ref as c, computed as R, onMounted as ot, nextTick as Oe, onBeforeUnmount as $t, watch as _, createElementBlock as M, openBlock as w, Fragment as je, createCommentVNode as Z, normalizeStyle as N, normalizeClass as ve, createElementVNode as W, withDirectives as gt, createVNode as me, toDisplayString as Qe, unref as D, vModelText as pt, withModifiers as mt, renderList as bt, useSlots as Gt, createBlock as ie, createSlots as Zt, withCtx as A, renderSlot as P, normalizeProps as ye, guardReactiveProps as ge, createTextVNode as qt } from "vue";
2
- import { l as St, f as be, X as jt, u as Kt, c as Qt, t as _t, p as pe, a as Jt, C as Ke, b as el, D as lt, i as Le, d as xt, $ as tl, H as ll, ah as al, o as ol, e as nl, x as kt, q as rl, r as ul, y as sl, s as Re } from "./index-DWq4s-ww.js";
2
+ import { l as St, f as be, X as jt, u as Kt, c as Qt, t as _t, p as pe, a as Jt, C as Ke, b as el, D as lt, i as Le, d as xt, $ as tl, H as ll, ah as al, o as ol, e as nl, x as kt, q as rl, r as ul, y as sl, s as Re } from "./index-Cq9SFWKh.js";
3
3
  import { d as il, t as vl, u as cl, c as dl, a as Lt, l as F, r as at, b as ne, p as wt } from "./useResponsive-Cw4oZ8sQ.js";
4
- import { _ as hl } from "./Tooltip-DrcHzDRM.js";
5
- import { L as fl } from "./Legend-DzSy-IUq.js";
6
- import { _ as yl } from "./Title-BD93Z93w.js";
7
- import { S as gl } from "./Slicer-DCUzf9fq.js";
8
- import { u as pl, U as ml } from "./usePrinter-BjxuB68l.js";
9
- import bl from "./vue-ui-accordion-Ca6nV8uf.js";
10
- import { D as xl } from "./DataTable-DObvjXDX.js";
11
- import kl from "./vue-ui-skeleton-CgSdY-i3.js";
12
- import { u as Ct } from "./useNestedProp-CPAzMQW3.js";
4
+ import { _ as hl } from "./Tooltip-DAG_w755.js";
5
+ import { L as fl } from "./Legend-D3fzSDzv.js";
6
+ import { _ as yl } from "./Title-9xdQbKmK.js";
7
+ import { S as gl } from "./Slicer-CaBTnAu_.js";
8
+ import { u as pl, U as ml } from "./usePrinter-Ca40kS6V.js";
9
+ import bl from "./vue-ui-accordion-DqMoC-KV.js";
10
+ import { D as xl } from "./DataTable-BEgGQ4D3.js";
11
+ import kl from "./vue-ui-skeleton-CEUPs326.js";
12
+ import { u as Ct } from "./useNestedProp-D3PTIhO4.js";
13
13
  import { u as Ll } from "./useUserOptionState-BIvW1Kz7.js";
14
14
  import { u as wl } from "./useChartAccessibility-BWojgys7.js";
15
- import De from "./BaseIcon-h9TCYwJK.js";
16
- import { C as Cl } from "./ColorPicker-CtdVdLS4.js";
15
+ import De from "./BaseIcon-DDXu6LPD.js";
16
+ import { C as Cl } from "./ColorPicker-DFdr_v0e.js";
17
17
  import { _ as zt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
18
18
  const $l = {
19
19
  class: /* @__PURE__ */ ve({
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),d=require("./index-DmOqU2gc.cjs"),x=require("./useResponsive-DQmBAoBf.cjs"),vt=require("./Tooltip-RV5OVI3a.cjs"),dt=require("./Legend-DJ-i2IuD.cjs"),ht=require("./Title-B1y-3QPQ.cjs"),ft=require("./Slicer-Bp6W-Q1V.cjs"),Ue=require("./usePrinter-GqLmuLI-.cjs"),yt=require("./vue-ui-accordion-VK6Q6MAw.cjs"),pt=require("./DataTable-C3yxI_aI.cjs"),gt=require("./vue-ui-skeleton-C2lcxV1r.cjs"),qe=require("./useNestedProp-CEwtxiO9.cjs"),mt=require("./useUserOptionState-BgepsfED.cjs"),bt=require("./useChartAccessibility-Cm7nkzTG.cjs"),ge=require("./BaseIcon-DBgAUX2a.cjs"),xt=require("./ColorPicker-YfLIuv-R.cjs"),We=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),kt={class:t.normalizeClass({"vue-ui-pen-and-paper-action":!0}),style:{padding:"0 !important"}},Ct=["disabled"],Lt=["data-mode","xmlns","viewBox"],wt=["cx","cy","r","fill"],St=["d","stroke","stroke-width"],zt=["x","y","fill","font-size"],$t=["x","dy"],Tt=["d","stroke","stroke-width"],Et={__name:"NonSvgPenAndPaper",props:{parent:{type:HTMLElement},backgroundColor:{type:String,default:"#FFFFFF"},color:{type:String,default:"#2D353C"},active:{type:Boolean,default:!1}},emits:["close"],setup(z,{emit:Ee}){const U=z,Be=Ee,L=t.ref([]),V=t.ref([]),K=t.ref("0 0 0 0"),D=t.ref(U.color),y=t.ref(1),m=t.ref("draw"),w=t.ref(null),q=t.ref(!1),h=t.ref(null),Y=t.ref({x:0,y:0}),X=t.ref([""]),E=t.ref({row:0,col:0}),P=t.ref(16);let W=1;function G(){return W++}function ne(i){var a;const r=R.value;if(!r)return{x:0,y:0};const o=r.createSVGPoint();let u=i.clientX,v=i.clientY;i.touches&&i.touches.length&&(u=i.touches[0].clientX,v=i.touches[0].clientY),o.x=u,o.y=v;const f=(a=r.getScreenCTM())==null?void 0:a.inverse();return f?o.matrixTransform(f):{x:0,y:0}}function re(i){if(!w.value||m.value!=="text"||q.value)return;const{x:r,y:o}=ne(i);Y.value={x:r,y:o},X.value=[""],E.value={row:0,col:0};const u=document.createElementNS("http://www.w3.org/2000/svg","text");u.setAttribute("x",r),u.setAttribute("y",o),u.setAttribute("fill",D.value),u.setAttribute("font-size",P.value),u.setAttribute("font-family","sans-serif"),u.setAttribute("class","vue-data-ui-doodle"),u.setAttribute("dominant-baseline","hanging"),u.setAttribute("pointer-events","all");const v=document.createElementNS("http://www.w3.org/2000/svg","tspan");v.setAttribute("x",r),v.setAttribute("dy","0"),v.textContent="",u.appendChild(v),u.style.pointerEvents="none",u.style.userSelect="none",w.value.appendChild(u),h.value=u,q.value=!0,window.addEventListener("keydown",ue),window.addEventListener("mousedown",ie,!0),J(),se()}function ue(i){if(!q.value)return;let{row:r,col:o}=E.value,u=X.value.slice(),v=!1;if(i.key==="Enter"){const f=u[r],a=f.slice(0,o),T=f.slice(o);u.splice(r,1,a,T),r+=1,o=0,v=!0,i.preventDefault()}else if(i.key==="Backspace"){if(o>0)u[r]=u[r].slice(0,o-1)+u[r].slice(o),o-=1,v=!0;else if(r>0){const f=u[r-1].length;u[r-1]+=u[r],u.splice(r,1),r-=1,o=f,v=!0}i.preventDefault()}else if(i.key==="Delete")o<u[r].length?(u[r]=u[r].slice(0,o)+u[r].slice(o+1),v=!0):r<u.length-1&&(u[r]+=u[r+1],u.splice(r+1,1),v=!0),i.preventDefault();else if(i.key==="ArrowLeft")o>0?o-=1:r>0&&(r-=1,o=u[r].length),v=!0,i.preventDefault();else if(i.key==="ArrowRight")o<u[r].length?o+=1:r<u.length-1&&(r+=1,o=0),v=!0,i.preventDefault();else if(i.key==="ArrowUp")r>0&&(r-=1,o=Math.min(o,u[r].length),v=!0),i.preventDefault();else if(i.key==="ArrowDown")r<u.length-1&&(r+=1,o=Math.min(o,u[r].length),v=!0),i.preventDefault();else if(i.key.length===1&&!i.ctrlKey&&!i.metaKey&&!i.altKey)u[r]=u[r].slice(0,o)+i.key+u[r].slice(o),o+=1,v=!0,i.preventDefault();else if(i.key==="Escape"){ce(!0);return}else i.key==="Tab"&&i.preventDefault();v&&(X.value=u,E.value={row:r,col:o},J(),se())}function J(){const i=h.value,{x:r,y:o}=Y.value;for(;i.firstChild;)i.removeChild(i.firstChild);X.value.forEach((u,v)=>{const f=document.createElementNS("http://www.w3.org/2000/svg","tspan");f.setAttribute("x",r),f.setAttribute("dy",v===0?"0":`${P.value*1.2}`),f.textContent=u.length?u:"​",i.appendChild(f)})}function se(){const i=w.value.querySelector(".vue-data-ui-svg-caret");i&&w.value.removeChild(i);const r=h.value;if(!r)return;const{x:o,y:u}=Y.value,{row:v,col:f}=E.value,a=P.value,T=r.childNodes[v];if(!T)return;let B=T.textContent.slice(0,f);B.endsWith(" ")&&(B+=" ");const p=document.createElementNS("http://www.w3.org/2000/svg","text");p.setAttribute("x",o),p.setAttribute("y",u),p.setAttribute("font-size",a),p.setAttribute("font-family","sans-serif"),p.textContent=B||"",w.value.appendChild(p);const M=p.getBBox();w.value.removeChild(p);let $=u+v*a*1.2,g=o+M.width;const c=document.createElementNS("http://www.w3.org/2000/svg","rect");c.setAttribute("x",g),c.setAttribute("y",$),c.setAttribute("width",1),c.setAttribute("height",a),c.setAttribute("fill",D.value),c.setAttribute("class","vue-data-ui-svg-caret"),w.value.appendChild(c)}function ie(i){if(h.value&&!h.value.contains(i.target)){const r=h.value.children;r.length===1&&(r[0].textContent===""||r[0].textContent==="​")&&h.value.remove(),ce(!1)}}function ce(i=!1){var u;window.removeEventListener("keydown",ue),window.removeEventListener("mousedown",ie,!0);const r=(u=w.value)==null?void 0:u.querySelector(".vue-data-ui-svg-caret");r&&w.value.removeChild(r);const o=X.value.every(v=>!v||v==="​");i||o||L.value.push({id:G(),type:"text",x:Y.value.x,y:Y.value.y,color:D.value,fontSize:P.value,lines:X.value.map(v=>v)}),h.value&&w.value&&w.value.contains(h.value)&&w.value.removeChild(h.value),q.value=!1,h.value=null,X.value=[""],E.value={row:0,col:0}}const H=t.computed(()=>d.lightenHexColor(U.color,.6));function ee({width:i,height:r}){K.value=`0 0 ${i} ${r}`}const _=t.ref(null);t.onMounted(()=>{t.nextTick(()=>{if(U.parent){_.value=new ResizeObserver(o=>{for(const u of o){const{width:v,height:f}=u.contentRect;ee({width:v,height:f})}}),_.value.observe(U.parent);const{width:i,height:r}=U.parent.getBoundingClientRect();ee({width:i,height:r})}}),w.value=R.value.querySelector("g")}),t.onBeforeUnmount(()=>{_.value&&_.value.disconnect()}),t.watch(()=>U.parent,i=>{if(!i)return;const{width:r,height:o}=U.parent.getBoundingClientRect();ee({width:r,height:o})},{immediate:!0}),t.watch(m,i=>{var r,o;i==="text"?(r=R.value)==null||r.addEventListener("mousedown",re):(o=R.value)==null||o.removeEventListener("mousedown",re)});const Z=t.ref(!1),N=t.ref(""),R=t.ref(null);function me(i){if(m.value!=="draw"||!R.value)return;Z.value=!0;const{x:r,y:o}=F(i);N.value=`M ${r} ${o}`}function be(i){if(!Z.value||!R.value)return;const{x:r,y:o}=F(i);N.value+=` ${r} ${o}`}function l(i){const r=i.trim().split(/\s+/);if(r.length<4)return i;const o=r.slice(1).map(Number);if(o.length%2!==0)return i;const u=ve(o),v=[`M ${u[0]} ${u[1]}`];for(let T=2;T<u.length-2;T+=2){const B=u[T-2],p=u[T-1],M=u[T],$=u[T+1],g=(B+M)/2,c=(p+$)/2;v.push(`Q ${B} ${p} ${g} ${c}`)}const f=u[u.length-2],a=u[u.length-1];return v.push(`L ${f} ${a}`),v.join(" ")}function ve(i,r=1){const o=[...i];for(let u=2;u<i.length-2;u+=2){const v=i[u],f=i[u+1],a=i[u-2],T=i[u-1],B=i[u+2],p=i[u+3];o[u]=v+r*((a+B)/2-v),o[u+1]=f+r*((T+p)/2-f)}return o}function xe(i){const r=i.trim().split(/\s+/);let o="",u="",v=null,f=null;for(let a=0;a<r.length;a+=1){const T=r[a];if(isNaN(T)){if(u=T,u==="M"||u==="L")v=parseFloat(r[++a]),f=parseFloat(r[++a]),o+=`${u}${v} ${f}`;else if(u==="Q"){const B=parseFloat(r[++a]),p=parseFloat(r[++a]),M=parseFloat(r[++a]),$=parseFloat(r[++a]);B===v&&p===f?o+=`t${M-v} ${$-f}`:o+=`q${B-v} ${p-f} ${M-v} ${$-f}`,v=M,f=$}}else{const B=parseFloat(T),p=parseFloat(r[++a]);if(u==="L"){const M=B-v,$=p-f;M===0?o+=`v${$}`:$===0?o+=`h${M}`:o+=`l${M} ${$}`,v=B,f=p}else if(u==="Q"){const M=B,$=p,g=parseFloat(r[++a]),c=parseFloat(r[++a]);M===v&&$===f?o+=`t${g-v} ${c-f}`:o+=`q${M-v} ${$-f} ${g-v} ${c-f}`,v=g,f=c}}}return o}function ae(){Z.value&&(L.value.push({id:G(),strokeWidth:y.value,path:xe(l(N.value)),color:D.value}),V.value=[],N.value=""),Z.value=!1}function F(i){if(!R.value)return{x:0,y:0};const r=R.value.getBoundingClientRect();let o,u;return i.touches&&i.touches.length?(o=i.touches[0].clientX,u=i.touches[0].clientY):(o=i.clientX,u=i.clientY),{x:o-r.left,y:u-r.top}}function ke(){if(L.value.length>0){const i=L.value.pop();V.value.push(i)}}function Ce(){if(V.value.length>0){const i=V.value.pop();L.value.push(i)}}function Le(){L.value=[],V.value=[]}const de=t.ref(null);return(i,r)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[z.active?(t.openBlock(),t.createElementBlock("div",{key:0,"data-dom-to-png-ignore":"",class:t.normalizeClass({"vue-ui-pen-and-paper-actions":!0,visible:z.active}),style:t.normalizeStyle({backgroundColor:z.backgroundColor})},[t.createElementVNode("button",{class:"vue-ui-pen-and-paper-action",style:t.normalizeStyle({backgroundColor:z.backgroundColor,border:`1px solid ${H.value}`}),onClick:r[0]||(r[0]=o=>Be("close"))},[t.createVNode(ge.default,{name:"close",stroke:z.color},null,8,["stroke"])],4),t.createElementVNode("button",kt,[t.createVNode(xt.ColorPicker,{value:D.value,"onUpdate:value":r[1]||(r[1]=o=>D.value=o),backgroundColor:z.backgroundColor,buttonBorderColor:H.value},null,8,["value","backgroundColor","buttonBorderColor"])]),t.createElementVNode("button",{class:t.normalizeClass(["vue-ui-pen-and-paper-action",{"vue-ui-pen-and-paper-action-active":m.value==="text"}]),onClick:r[2]||(r[2]=o=>m.value=m.value==="text"?"draw":"text"),style:t.normalizeStyle({backgroundColor:z.backgroundColor,border:`1px solid ${H.value}`})},[t.createVNode(ge.default,{name:m.value==="draw"?"annotator":"text",stroke:z.color},null,8,["name","stroke"]),t.createElementVNode("div",{style:t.normalizeStyle({position:"absolute",bottom:"-20px",color:H.value,width:"100%",textAlign:"center",fontSize:"12px"})},t.toDisplayString(t.unref(d.dataLabel)({v:m.value==="draw"?y.value:P.value,s:"px",r:1})),5)],6),t.createElementVNode("button",{class:t.normalizeClass({"vue-ui-pen-and-paper-action":!0,"vue-ui-pen-and-paper-action-disabled":!L.value.length}),disabled:!L.value.length,style:t.normalizeStyle({backgroundColor:z.backgroundColor,border:`1px solid ${H.value}`,marginTop:"20px"}),onClick:ke},[t.createVNode(ge.default,{name:"restart",stroke:z.color},null,8,["stroke"])],14,Ct),t.createElementVNode("button",{class:t.normalizeClass({"vue-ui-pen-and-paper-action":!0,"vue-ui-pen-and-paper-action-disabled":!V.value.length}),style:t.normalizeStyle({backgroundColor:z.backgroundColor,border:`1px solid ${H.value}`}),onClick:Ce},[t.createVNode(ge.default,{name:"restart",stroke:z.color,style:{transform:"scaleX(-1)"}},null,8,["stroke"])],6),t.createElementVNode("button",{class:t.normalizeClass([{"vue-ui-pen-and-paper-action":!0,"vue-ui-pen-and-paper-action-disabled":!L.value.length},"vue-ui-pen-and-paper-action"]),style:t.normalizeStyle({backgroundColor:z.backgroundColor,border:`1px solid ${H.value}`}),onClick:Le},[t.createVNode(ge.default,{name:"trash",stroke:z.color},null,8,["stroke"])],6),m.value==="draw"?t.withDirectives((t.openBlock(),t.createElementBlock("input",{key:0,ref_key:"range",ref:de,type:"range",class:"vertical-range",min:.5,max:12,step:.1,"onUpdate:modelValue":r[3]||(r[3]=o=>y.value=o),style:t.normalizeStyle({accentColor:z.color})},null,4)),[[t.vModelText,y.value]]):t.createCommentVNode("",!0),m.value==="text"?t.withDirectives((t.openBlock(),t.createElementBlock("input",{key:1,ref_key:"range",ref:de,type:"range",class:"vertical-range",min:3,max:48,step:.1,"onUpdate:modelValue":r[4]||(r[4]=o=>P.value=o),style:t.normalizeStyle({accentColor:z.color})},null,4)),[[t.vModelText,P.value]]):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),(t.openBlock(),t.createElementBlock("svg",{"data-mode":m.value,ref_key:"svgElement",ref:R,xmlns:t.unref(d.XMLNS),viewBox:K.value,class:t.normalizeClass({"vue-ui-pen-and-paper":!0,inactive:!z.active}),onMousedown:me,onMousemove:be,onMouseup:ae,onMouseleave:ae,onTouchstart:t.withModifiers(me,["prevent"]),onTouchmove:t.withModifiers(be,["prevent"]),onTouchend:ae},[t.createElementVNode("g",{ref_key:"G",ref:w},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(L.value,o=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:o.id},[o.path&&o.path.replace("M","").split(" ").length===2?(t.openBlock(),t.createElementBlock("circle",{key:0,cx:o.path.replace("M","").split(" ")[0],cy:o.path.replace("M","").split(" ")[1],r:o.strokeWidth/2,fill:o.color},null,8,wt)):o.path?(t.openBlock(),t.createElementBlock("path",{key:1,class:"vue-ui-pen-and-paper-path",d:o.path,stroke:o.color,"stroke-width":o.strokeWidth,fill:"none"},null,8,St)):o.type==="text"?(t.openBlock(),t.createElementBlock("text",{key:2,x:o.x,y:o.y,fill:o.color,"font-size":o.fontSize,"font-family":"sans-serif","dominant-baseline":"hanging",class:"vue-ui-pen-and-paper-text"},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.lines,(u,v)=>(t.openBlock(),t.createElementBlock("tspan",{key:v,x:o.x,dy:v===0?"0":o.fontSize*1.2},t.toDisplayString(u.length?u:"​"),9,$t))),128))],8,zt)):t.createCommentVNode("",!0)],64))),128))],512),Z.value?(t.openBlock(),t.createElementBlock("path",{key:0,class:"vue-ui-pen-and-paper-path vue-ui-pen-and-paper-path-drawing",d:l(N.value),stroke:D.value,"stroke-width":y.value*1.1,fill:"none"},null,8,Tt)):t.createCommentVNode("",!0)],42,Lt))],64))}},Bt=We._export_sfc(Et,[["__scopeId","data-v-14478ba4"]]),Mt=["id"],Nt=["onClick"],Pt={key:2,class:"vue-data-ui-watermark"},It=["innerHTML"],At={__name:"vue-ui-xy-canvas",props:{dataset:{type:Array,default(){return[]}},config:{type:Object,default(){return{}}}},emits:["selectLegend"],setup(z,{expose:Ee,emit:U}){const{vue_ui_xy_canvas:Be}=d.useConfig(),L=z,V=t.ref(d.createUid()),K=t.ref(null),D=t.ref(null),y=t.ref(null),m=t.ref(1),w=t.ref(1),q=t.ref(!1),h=t.ref(null),Y=t.ref(""),X=t.ref(null),E=t.ref([]),P=t.ref(1),W=t.ref(!0),G=t.ref(!0),ne=t.ref(null),re=t.ref(0),ue=t.ref(0),J=t.ref(!1),se=t.ref(null),ie=t.ref(null),ce=t.ref(null),H=t.ref(null),ee=t.ref(0),_=t.ref(0),Z=t.ref(0),N=t.ref(null),R=t.computed(()=>!!L.dataset&&L.dataset.length),me=U,be=t.useSlots();t.onMounted(()=>{be["chart-background"]&&console.warn("VueUiXyCanvas does not support the #chart-background slot.")});const l=t.computed({get:()=>ke(),set:e=>e}),{userOptionsVisible:ve,setUserOptionsVisibility:xe,keepUserOptionState:ae}=mt.useUserOptionState({config:l.value}),{svgRef:F}=bt.useChartAccessibility({config:l.value.style.chart.title});function ke(){const e=qe.useNestedProp({userConfig:L.config,defaultConfig:Be});let n={};return e.theme?n={...qe.useNestedProp({userConfig:d.themes.vue_ui_xy_canvas[e.theme]||L.config,defaultConfig:e}),customPalette:d.themePalettes[e.theme]||d.palette}:n=e,L.config&&d.hasDeepProperty(L.config,"style.chart.scale.min")?n.style.chart.scale.min=L.config.style.chart.scale.min:n.style.chart.scale.min=null,L.config&&d.hasDeepProperty(L.config,"style.chart.scale.max")?n.style.chart.scale.max=L.config.style.chart.scale.max:n.style.chart.scale.max=null,L.config&&d.hasDeepProperty(L.config,"style.chart.zoom.startIndex")?n.style.chart.zoom.startIndex=L.config.style.chart.zoom.startIndex:n.style.chart.zoom.startIndex=null,L.config&&d.hasDeepProperty(L.config,"style.chart.zoom.endIndex")?n.style.chart.zoom.endIndex=L.config.style.chart.zoom.endIndex:n.style.chart.zoom.endIndex=null,n}t.watch(()=>L.config,e=>{l.value=ke(),ve.value=!l.value.userOptions.showOnChartHover,Me(),ee.value+=1,_.value+=1,Z.value+=1,o.value.showTable=l.value.table.show,o.value.showDataLabels=l.value.style.chart.dataLabels.show,o.value.stacked=l.value.style.chart.stacked,o.value.showTooltip=l.value.style.chart.tooltip.show},{deep:!0}),t.watch(()=>L.dataset,()=>{Me(),ee.value+=1,_.value+=1,Z.value+=1},{deep:!0});const Ce=t.ref(l.value.style.chart.aspectRatio),{isPrinting:Le,isImaging:de,generatePdf:i,generateImage:r}=Ue.usePrinter({elementId:`xy_canvas_${V.value}`,fileName:l.value.style.chart.title.text||"vue-ui-xy-canvas",options:l.value.userOptions.print}),o=t.ref({showTable:l.value.table.show,showDataLabels:l.value.style.chart.dataLabels.show,stacked:l.value.style.chart.stacked,showTooltip:l.value.style.chart.tooltip.show});function u(e){J.value=e,ue.value+=1}const v=t.computed(()=>d.convertCustomPalette(l.value.customPalette)),f=t.computed(()=>$.value?Math.max(...$.value.filter((e,n)=>!E.value.includes(e.absoluteIndex)).map(e=>e.series.length)):0),a=t.computed(()=>{const e=m.value-m.value*(l.value.style.chart.paddingProportions.left+l.value.style.chart.paddingProportions.right);return{canvasWidth:m.value,canvasHeight:w.value,left:m.value*l.value.style.chart.paddingProportions.left,top:w.value*l.value.style.chart.paddingProportions.top,right:m.value-m.value*l.value.style.chart.paddingProportions.right,bottom:w.value-w.value*l.value.style.chart.paddingProportions.bottom,width:e,height:w.value-w.value*(l.value.style.chart.paddingProportions.top+l.value.style.chart.paddingProportions.bottom),slot:e/(c.value.end-c.value.start)}});function T(e,n){return e/n}function B({hasAutoScale:e,series:n,min:s,max:b,scale:C,yOffset:A,individualHeight:k,stackIndex:S=null}){return n.map((te,O)=>{const Q=C.min<0?Math.abs(C.min):0,le=T(te+Q,Q+C.max);let ye,pe;e&&(ye=C.min,pe=T(te-ye,C.max-ye));let j=0;return S===null?j=a.value.bottom-a.value.height*(e?pe:le):j=a.value.bottom-A-k*(e?pe:le),{x:a.value.left+a.value.slot*O+a.value.slot/2,y:j,value:te}})}const p=t.computed(()=>{const e=l.value.style.chart.scale.min!==null?l.value.style.chart.scale.min:Math.min(...$.value.filter((k,S)=>!E.value.includes(k.absoluteIndex)).flatMap(k=>k.series.slice(c.value.start,c.value.end))),n=l.value.style.chart.scale.max!==null?l.value.style.chart.scale.max:Math.max(...$.value.filter((k,S)=>!E.value.includes(k.absoluteIndex)).flatMap(k=>k.series.slice(c.value.start,c.value.end))),s=d.calculateNiceScale(e<0?e:0,n===e?e+1<0?0:e+1:n<0?0:n,l.value.style.chart.scale.ticks),b=s.min<0?Math.abs(s.min):0,C=a.value.bottom-a.value.height*(b/(s.max+b)),A=s.ticks.map(k=>({y:a.value.bottom-a.value.height*((k+b)/(s.max+b)),x:a.value.left-8,value:k}));return{absoluteMin:b,max:n,min:e,scale:s,yLabels:A,zero:C}}),M=t.computed(()=>g.value.map(e=>`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),d=require("./index-BS69wmdK.cjs"),x=require("./useResponsive-DQmBAoBf.cjs"),vt=require("./Tooltip-KPaPh0AB.cjs"),dt=require("./Legend-ywuPKha1.cjs"),ht=require("./Title-CduBjJSc.cjs"),ft=require("./Slicer-BaB88GFk.cjs"),Ue=require("./usePrinter-uYxKqDEn.cjs"),yt=require("./vue-ui-accordion-CMi53Y4v.cjs"),pt=require("./DataTable-BgEOVOhs.cjs"),gt=require("./vue-ui-skeleton-Dqs4vHnY.cjs"),qe=require("./useNestedProp-Dv_NLIAp.cjs"),mt=require("./useUserOptionState-BgepsfED.cjs"),bt=require("./useChartAccessibility-Cm7nkzTG.cjs"),ge=require("./BaseIcon-Bal8YWHd.cjs"),xt=require("./ColorPicker-CJ3V6DBg.cjs"),We=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),kt={class:t.normalizeClass({"vue-ui-pen-and-paper-action":!0}),style:{padding:"0 !important"}},Ct=["disabled"],Lt=["data-mode","xmlns","viewBox"],wt=["cx","cy","r","fill"],St=["d","stroke","stroke-width"],zt=["x","y","fill","font-size"],$t=["x","dy"],Tt=["d","stroke","stroke-width"],Et={__name:"NonSvgPenAndPaper",props:{parent:{type:HTMLElement},backgroundColor:{type:String,default:"#FFFFFF"},color:{type:String,default:"#2D353C"},active:{type:Boolean,default:!1}},emits:["close"],setup(z,{emit:Ee}){const U=z,Be=Ee,L=t.ref([]),V=t.ref([]),K=t.ref("0 0 0 0"),D=t.ref(U.color),y=t.ref(1),m=t.ref("draw"),w=t.ref(null),q=t.ref(!1),h=t.ref(null),Y=t.ref({x:0,y:0}),X=t.ref([""]),E=t.ref({row:0,col:0}),P=t.ref(16);let W=1;function G(){return W++}function ne(i){var a;const r=R.value;if(!r)return{x:0,y:0};const o=r.createSVGPoint();let u=i.clientX,v=i.clientY;i.touches&&i.touches.length&&(u=i.touches[0].clientX,v=i.touches[0].clientY),o.x=u,o.y=v;const f=(a=r.getScreenCTM())==null?void 0:a.inverse();return f?o.matrixTransform(f):{x:0,y:0}}function re(i){if(!w.value||m.value!=="text"||q.value)return;const{x:r,y:o}=ne(i);Y.value={x:r,y:o},X.value=[""],E.value={row:0,col:0};const u=document.createElementNS("http://www.w3.org/2000/svg","text");u.setAttribute("x",r),u.setAttribute("y",o),u.setAttribute("fill",D.value),u.setAttribute("font-size",P.value),u.setAttribute("font-family","sans-serif"),u.setAttribute("class","vue-data-ui-doodle"),u.setAttribute("dominant-baseline","hanging"),u.setAttribute("pointer-events","all");const v=document.createElementNS("http://www.w3.org/2000/svg","tspan");v.setAttribute("x",r),v.setAttribute("dy","0"),v.textContent="",u.appendChild(v),u.style.pointerEvents="none",u.style.userSelect="none",w.value.appendChild(u),h.value=u,q.value=!0,window.addEventListener("keydown",ue),window.addEventListener("mousedown",ie,!0),J(),se()}function ue(i){if(!q.value)return;let{row:r,col:o}=E.value,u=X.value.slice(),v=!1;if(i.key==="Enter"){const f=u[r],a=f.slice(0,o),T=f.slice(o);u.splice(r,1,a,T),r+=1,o=0,v=!0,i.preventDefault()}else if(i.key==="Backspace"){if(o>0)u[r]=u[r].slice(0,o-1)+u[r].slice(o),o-=1,v=!0;else if(r>0){const f=u[r-1].length;u[r-1]+=u[r],u.splice(r,1),r-=1,o=f,v=!0}i.preventDefault()}else if(i.key==="Delete")o<u[r].length?(u[r]=u[r].slice(0,o)+u[r].slice(o+1),v=!0):r<u.length-1&&(u[r]+=u[r+1],u.splice(r+1,1),v=!0),i.preventDefault();else if(i.key==="ArrowLeft")o>0?o-=1:r>0&&(r-=1,o=u[r].length),v=!0,i.preventDefault();else if(i.key==="ArrowRight")o<u[r].length?o+=1:r<u.length-1&&(r+=1,o=0),v=!0,i.preventDefault();else if(i.key==="ArrowUp")r>0&&(r-=1,o=Math.min(o,u[r].length),v=!0),i.preventDefault();else if(i.key==="ArrowDown")r<u.length-1&&(r+=1,o=Math.min(o,u[r].length),v=!0),i.preventDefault();else if(i.key.length===1&&!i.ctrlKey&&!i.metaKey&&!i.altKey)u[r]=u[r].slice(0,o)+i.key+u[r].slice(o),o+=1,v=!0,i.preventDefault();else if(i.key==="Escape"){ce(!0);return}else i.key==="Tab"&&i.preventDefault();v&&(X.value=u,E.value={row:r,col:o},J(),se())}function J(){const i=h.value,{x:r,y:o}=Y.value;for(;i.firstChild;)i.removeChild(i.firstChild);X.value.forEach((u,v)=>{const f=document.createElementNS("http://www.w3.org/2000/svg","tspan");f.setAttribute("x",r),f.setAttribute("dy",v===0?"0":`${P.value*1.2}`),f.textContent=u.length?u:"​",i.appendChild(f)})}function se(){const i=w.value.querySelector(".vue-data-ui-svg-caret");i&&w.value.removeChild(i);const r=h.value;if(!r)return;const{x:o,y:u}=Y.value,{row:v,col:f}=E.value,a=P.value,T=r.childNodes[v];if(!T)return;let B=T.textContent.slice(0,f);B.endsWith(" ")&&(B+=" ");const p=document.createElementNS("http://www.w3.org/2000/svg","text");p.setAttribute("x",o),p.setAttribute("y",u),p.setAttribute("font-size",a),p.setAttribute("font-family","sans-serif"),p.textContent=B||"",w.value.appendChild(p);const M=p.getBBox();w.value.removeChild(p);let $=u+v*a*1.2,g=o+M.width;const c=document.createElementNS("http://www.w3.org/2000/svg","rect");c.setAttribute("x",g),c.setAttribute("y",$),c.setAttribute("width",1),c.setAttribute("height",a),c.setAttribute("fill",D.value),c.setAttribute("class","vue-data-ui-svg-caret"),w.value.appendChild(c)}function ie(i){if(h.value&&!h.value.contains(i.target)){const r=h.value.children;r.length===1&&(r[0].textContent===""||r[0].textContent==="​")&&h.value.remove(),ce(!1)}}function ce(i=!1){var u;window.removeEventListener("keydown",ue),window.removeEventListener("mousedown",ie,!0);const r=(u=w.value)==null?void 0:u.querySelector(".vue-data-ui-svg-caret");r&&w.value.removeChild(r);const o=X.value.every(v=>!v||v==="​");i||o||L.value.push({id:G(),type:"text",x:Y.value.x,y:Y.value.y,color:D.value,fontSize:P.value,lines:X.value.map(v=>v)}),h.value&&w.value&&w.value.contains(h.value)&&w.value.removeChild(h.value),q.value=!1,h.value=null,X.value=[""],E.value={row:0,col:0}}const H=t.computed(()=>d.lightenHexColor(U.color,.6));function ee({width:i,height:r}){K.value=`0 0 ${i} ${r}`}const _=t.ref(null);t.onMounted(()=>{t.nextTick(()=>{if(U.parent){_.value=new ResizeObserver(o=>{for(const u of o){const{width:v,height:f}=u.contentRect;ee({width:v,height:f})}}),_.value.observe(U.parent);const{width:i,height:r}=U.parent.getBoundingClientRect();ee({width:i,height:r})}}),w.value=R.value.querySelector("g")}),t.onBeforeUnmount(()=>{_.value&&_.value.disconnect()}),t.watch(()=>U.parent,i=>{if(!i)return;const{width:r,height:o}=U.parent.getBoundingClientRect();ee({width:r,height:o})},{immediate:!0}),t.watch(m,i=>{var r,o;i==="text"?(r=R.value)==null||r.addEventListener("mousedown",re):(o=R.value)==null||o.removeEventListener("mousedown",re)});const Z=t.ref(!1),N=t.ref(""),R=t.ref(null);function me(i){if(m.value!=="draw"||!R.value)return;Z.value=!0;const{x:r,y:o}=F(i);N.value=`M ${r} ${o}`}function be(i){if(!Z.value||!R.value)return;const{x:r,y:o}=F(i);N.value+=` ${r} ${o}`}function l(i){const r=i.trim().split(/\s+/);if(r.length<4)return i;const o=r.slice(1).map(Number);if(o.length%2!==0)return i;const u=ve(o),v=[`M ${u[0]} ${u[1]}`];for(let T=2;T<u.length-2;T+=2){const B=u[T-2],p=u[T-1],M=u[T],$=u[T+1],g=(B+M)/2,c=(p+$)/2;v.push(`Q ${B} ${p} ${g} ${c}`)}const f=u[u.length-2],a=u[u.length-1];return v.push(`L ${f} ${a}`),v.join(" ")}function ve(i,r=1){const o=[...i];for(let u=2;u<i.length-2;u+=2){const v=i[u],f=i[u+1],a=i[u-2],T=i[u-1],B=i[u+2],p=i[u+3];o[u]=v+r*((a+B)/2-v),o[u+1]=f+r*((T+p)/2-f)}return o}function xe(i){const r=i.trim().split(/\s+/);let o="",u="",v=null,f=null;for(let a=0;a<r.length;a+=1){const T=r[a];if(isNaN(T)){if(u=T,u==="M"||u==="L")v=parseFloat(r[++a]),f=parseFloat(r[++a]),o+=`${u}${v} ${f}`;else if(u==="Q"){const B=parseFloat(r[++a]),p=parseFloat(r[++a]),M=parseFloat(r[++a]),$=parseFloat(r[++a]);B===v&&p===f?o+=`t${M-v} ${$-f}`:o+=`q${B-v} ${p-f} ${M-v} ${$-f}`,v=M,f=$}}else{const B=parseFloat(T),p=parseFloat(r[++a]);if(u==="L"){const M=B-v,$=p-f;M===0?o+=`v${$}`:$===0?o+=`h${M}`:o+=`l${M} ${$}`,v=B,f=p}else if(u==="Q"){const M=B,$=p,g=parseFloat(r[++a]),c=parseFloat(r[++a]);M===v&&$===f?o+=`t${g-v} ${c-f}`:o+=`q${M-v} ${$-f} ${g-v} ${c-f}`,v=g,f=c}}}return o}function ae(){Z.value&&(L.value.push({id:G(),strokeWidth:y.value,path:xe(l(N.value)),color:D.value}),V.value=[],N.value=""),Z.value=!1}function F(i){if(!R.value)return{x:0,y:0};const r=R.value.getBoundingClientRect();let o,u;return i.touches&&i.touches.length?(o=i.touches[0].clientX,u=i.touches[0].clientY):(o=i.clientX,u=i.clientY),{x:o-r.left,y:u-r.top}}function ke(){if(L.value.length>0){const i=L.value.pop();V.value.push(i)}}function Ce(){if(V.value.length>0){const i=V.value.pop();L.value.push(i)}}function Le(){L.value=[],V.value=[]}const de=t.ref(null);return(i,r)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[z.active?(t.openBlock(),t.createElementBlock("div",{key:0,"data-dom-to-png-ignore":"",class:t.normalizeClass({"vue-ui-pen-and-paper-actions":!0,visible:z.active}),style:t.normalizeStyle({backgroundColor:z.backgroundColor})},[t.createElementVNode("button",{class:"vue-ui-pen-and-paper-action",style:t.normalizeStyle({backgroundColor:z.backgroundColor,border:`1px solid ${H.value}`}),onClick:r[0]||(r[0]=o=>Be("close"))},[t.createVNode(ge.default,{name:"close",stroke:z.color},null,8,["stroke"])],4),t.createElementVNode("button",kt,[t.createVNode(xt.ColorPicker,{value:D.value,"onUpdate:value":r[1]||(r[1]=o=>D.value=o),backgroundColor:z.backgroundColor,buttonBorderColor:H.value},null,8,["value","backgroundColor","buttonBorderColor"])]),t.createElementVNode("button",{class:t.normalizeClass(["vue-ui-pen-and-paper-action",{"vue-ui-pen-and-paper-action-active":m.value==="text"}]),onClick:r[2]||(r[2]=o=>m.value=m.value==="text"?"draw":"text"),style:t.normalizeStyle({backgroundColor:z.backgroundColor,border:`1px solid ${H.value}`})},[t.createVNode(ge.default,{name:m.value==="draw"?"annotator":"text",stroke:z.color},null,8,["name","stroke"]),t.createElementVNode("div",{style:t.normalizeStyle({position:"absolute",bottom:"-20px",color:H.value,width:"100%",textAlign:"center",fontSize:"12px"})},t.toDisplayString(t.unref(d.dataLabel)({v:m.value==="draw"?y.value:P.value,s:"px",r:1})),5)],6),t.createElementVNode("button",{class:t.normalizeClass({"vue-ui-pen-and-paper-action":!0,"vue-ui-pen-and-paper-action-disabled":!L.value.length}),disabled:!L.value.length,style:t.normalizeStyle({backgroundColor:z.backgroundColor,border:`1px solid ${H.value}`,marginTop:"20px"}),onClick:ke},[t.createVNode(ge.default,{name:"restart",stroke:z.color},null,8,["stroke"])],14,Ct),t.createElementVNode("button",{class:t.normalizeClass({"vue-ui-pen-and-paper-action":!0,"vue-ui-pen-and-paper-action-disabled":!V.value.length}),style:t.normalizeStyle({backgroundColor:z.backgroundColor,border:`1px solid ${H.value}`}),onClick:Ce},[t.createVNode(ge.default,{name:"restart",stroke:z.color,style:{transform:"scaleX(-1)"}},null,8,["stroke"])],6),t.createElementVNode("button",{class:t.normalizeClass([{"vue-ui-pen-and-paper-action":!0,"vue-ui-pen-and-paper-action-disabled":!L.value.length},"vue-ui-pen-and-paper-action"]),style:t.normalizeStyle({backgroundColor:z.backgroundColor,border:`1px solid ${H.value}`}),onClick:Le},[t.createVNode(ge.default,{name:"trash",stroke:z.color},null,8,["stroke"])],6),m.value==="draw"?t.withDirectives((t.openBlock(),t.createElementBlock("input",{key:0,ref_key:"range",ref:de,type:"range",class:"vertical-range",min:.5,max:12,step:.1,"onUpdate:modelValue":r[3]||(r[3]=o=>y.value=o),style:t.normalizeStyle({accentColor:z.color})},null,4)),[[t.vModelText,y.value]]):t.createCommentVNode("",!0),m.value==="text"?t.withDirectives((t.openBlock(),t.createElementBlock("input",{key:1,ref_key:"range",ref:de,type:"range",class:"vertical-range",min:3,max:48,step:.1,"onUpdate:modelValue":r[4]||(r[4]=o=>P.value=o),style:t.normalizeStyle({accentColor:z.color})},null,4)),[[t.vModelText,P.value]]):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),(t.openBlock(),t.createElementBlock("svg",{"data-mode":m.value,ref_key:"svgElement",ref:R,xmlns:t.unref(d.XMLNS),viewBox:K.value,class:t.normalizeClass({"vue-ui-pen-and-paper":!0,inactive:!z.active}),onMousedown:me,onMousemove:be,onMouseup:ae,onMouseleave:ae,onTouchstart:t.withModifiers(me,["prevent"]),onTouchmove:t.withModifiers(be,["prevent"]),onTouchend:ae},[t.createElementVNode("g",{ref_key:"G",ref:w},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(L.value,o=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:o.id},[o.path&&o.path.replace("M","").split(" ").length===2?(t.openBlock(),t.createElementBlock("circle",{key:0,cx:o.path.replace("M","").split(" ")[0],cy:o.path.replace("M","").split(" ")[1],r:o.strokeWidth/2,fill:o.color},null,8,wt)):o.path?(t.openBlock(),t.createElementBlock("path",{key:1,class:"vue-ui-pen-and-paper-path",d:o.path,stroke:o.color,"stroke-width":o.strokeWidth,fill:"none"},null,8,St)):o.type==="text"?(t.openBlock(),t.createElementBlock("text",{key:2,x:o.x,y:o.y,fill:o.color,"font-size":o.fontSize,"font-family":"sans-serif","dominant-baseline":"hanging",class:"vue-ui-pen-and-paper-text"},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.lines,(u,v)=>(t.openBlock(),t.createElementBlock("tspan",{key:v,x:o.x,dy:v===0?"0":o.fontSize*1.2},t.toDisplayString(u.length?u:"​"),9,$t))),128))],8,zt)):t.createCommentVNode("",!0)],64))),128))],512),Z.value?(t.openBlock(),t.createElementBlock("path",{key:0,class:"vue-ui-pen-and-paper-path vue-ui-pen-and-paper-path-drawing",d:l(N.value),stroke:D.value,"stroke-width":y.value*1.1,fill:"none"},null,8,Tt)):t.createCommentVNode("",!0)],42,Lt))],64))}},Bt=We._export_sfc(Et,[["__scopeId","data-v-14478ba4"]]),Mt=["id"],Nt=["onClick"],Pt={key:2,class:"vue-data-ui-watermark"},It=["innerHTML"],At={__name:"vue-ui-xy-canvas",props:{dataset:{type:Array,default(){return[]}},config:{type:Object,default(){return{}}}},emits:["selectLegend"],setup(z,{expose:Ee,emit:U}){const{vue_ui_xy_canvas:Be}=d.useConfig(),L=z,V=t.ref(d.createUid()),K=t.ref(null),D=t.ref(null),y=t.ref(null),m=t.ref(1),w=t.ref(1),q=t.ref(!1),h=t.ref(null),Y=t.ref(""),X=t.ref(null),E=t.ref([]),P=t.ref(1),W=t.ref(!0),G=t.ref(!0),ne=t.ref(null),re=t.ref(0),ue=t.ref(0),J=t.ref(!1),se=t.ref(null),ie=t.ref(null),ce=t.ref(null),H=t.ref(null),ee=t.ref(0),_=t.ref(0),Z=t.ref(0),N=t.ref(null),R=t.computed(()=>!!L.dataset&&L.dataset.length),me=U,be=t.useSlots();t.onMounted(()=>{be["chart-background"]&&console.warn("VueUiXyCanvas does not support the #chart-background slot.")});const l=t.computed({get:()=>ke(),set:e=>e}),{userOptionsVisible:ve,setUserOptionsVisibility:xe,keepUserOptionState:ae}=mt.useUserOptionState({config:l.value}),{svgRef:F}=bt.useChartAccessibility({config:l.value.style.chart.title});function ke(){const e=qe.useNestedProp({userConfig:L.config,defaultConfig:Be});let n={};return e.theme?n={...qe.useNestedProp({userConfig:d.themes.vue_ui_xy_canvas[e.theme]||L.config,defaultConfig:e}),customPalette:d.themePalettes[e.theme]||d.palette}:n=e,L.config&&d.hasDeepProperty(L.config,"style.chart.scale.min")?n.style.chart.scale.min=L.config.style.chart.scale.min:n.style.chart.scale.min=null,L.config&&d.hasDeepProperty(L.config,"style.chart.scale.max")?n.style.chart.scale.max=L.config.style.chart.scale.max:n.style.chart.scale.max=null,L.config&&d.hasDeepProperty(L.config,"style.chart.zoom.startIndex")?n.style.chart.zoom.startIndex=L.config.style.chart.zoom.startIndex:n.style.chart.zoom.startIndex=null,L.config&&d.hasDeepProperty(L.config,"style.chart.zoom.endIndex")?n.style.chart.zoom.endIndex=L.config.style.chart.zoom.endIndex:n.style.chart.zoom.endIndex=null,n}t.watch(()=>L.config,e=>{l.value=ke(),ve.value=!l.value.userOptions.showOnChartHover,Me(),ee.value+=1,_.value+=1,Z.value+=1,o.value.showTable=l.value.table.show,o.value.showDataLabels=l.value.style.chart.dataLabels.show,o.value.stacked=l.value.style.chart.stacked,o.value.showTooltip=l.value.style.chart.tooltip.show},{deep:!0}),t.watch(()=>L.dataset,()=>{Me(),ee.value+=1,_.value+=1,Z.value+=1},{deep:!0});const Ce=t.ref(l.value.style.chart.aspectRatio),{isPrinting:Le,isImaging:de,generatePdf:i,generateImage:r}=Ue.usePrinter({elementId:`xy_canvas_${V.value}`,fileName:l.value.style.chart.title.text||"vue-ui-xy-canvas",options:l.value.userOptions.print}),o=t.ref({showTable:l.value.table.show,showDataLabels:l.value.style.chart.dataLabels.show,stacked:l.value.style.chart.stacked,showTooltip:l.value.style.chart.tooltip.show});function u(e){J.value=e,ue.value+=1}const v=t.computed(()=>d.convertCustomPalette(l.value.customPalette)),f=t.computed(()=>$.value?Math.max(...$.value.filter((e,n)=>!E.value.includes(e.absoluteIndex)).map(e=>e.series.length)):0),a=t.computed(()=>{const e=m.value-m.value*(l.value.style.chart.paddingProportions.left+l.value.style.chart.paddingProportions.right);return{canvasWidth:m.value,canvasHeight:w.value,left:m.value*l.value.style.chart.paddingProportions.left,top:w.value*l.value.style.chart.paddingProportions.top,right:m.value-m.value*l.value.style.chart.paddingProportions.right,bottom:w.value-w.value*l.value.style.chart.paddingProportions.bottom,width:e,height:w.value-w.value*(l.value.style.chart.paddingProportions.top+l.value.style.chart.paddingProportions.bottom),slot:e/(c.value.end-c.value.start)}});function T(e,n){return e/n}function B({hasAutoScale:e,series:n,min:s,max:b,scale:C,yOffset:A,individualHeight:k,stackIndex:S=null}){return n.map((te,O)=>{const Q=C.min<0?Math.abs(C.min):0,le=T(te+Q,Q+C.max);let ye,pe;e&&(ye=C.min,pe=T(te-ye,C.max-ye));let j=0;return S===null?j=a.value.bottom-a.value.height*(e?pe:le):j=a.value.bottom-A-k*(e?pe:le),{x:a.value.left+a.value.slot*O+a.value.slot/2,y:j,value:te}})}const p=t.computed(()=>{const e=l.value.style.chart.scale.min!==null?l.value.style.chart.scale.min:Math.min(...$.value.filter((k,S)=>!E.value.includes(k.absoluteIndex)).flatMap(k=>k.series.slice(c.value.start,c.value.end))),n=l.value.style.chart.scale.max!==null?l.value.style.chart.scale.max:Math.max(...$.value.filter((k,S)=>!E.value.includes(k.absoluteIndex)).flatMap(k=>k.series.slice(c.value.start,c.value.end))),s=d.calculateNiceScale(e<0?e:0,n===e?e+1<0?0:e+1:n<0?0:n,l.value.style.chart.scale.ticks),b=s.min<0?Math.abs(s.min):0,C=a.value.bottom-a.value.height*(b/(s.max+b)),A=s.ticks.map(k=>({y:a.value.bottom-a.value.height*((k+b)/(s.max+b)),x:a.value.left-8,value:k}));return{absoluteMin:b,max:n,min:e,scale:s,yLabels:A,zero:C}}),M=t.computed(()=>g.value.map(e=>`
2
2
  <div style="display:flex;flex-direction:row;gap:6px;align-items:center;">
3
3
  <svg viewBox="0 0 10 10" height="12" width="12">
4
4
  <circle cx="5" cy="5" r="5" fill="${e.color}"/>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vue-data-ui",
3
3
  "private": false,
4
- "version": "2.10.3-beta.1",
4
+ "version": "2.10.3-beta.2",
5
5
  "type": "module",
6
6
  "description": "A user-empowering data visualization Vue 3 components library for eloquent data storytelling",
7
7
  "keywords": [
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index-DmOqU2gc.cjs"),Ee=require("./useResponsive-DQmBAoBf.cjs"),He=require("./Title-B1y-3QPQ.cjs"),Pe=require("./usePrinter-GqLmuLI-.cjs"),Je=require("./DataTable-C3yxI_aI.cjs"),Ke=require("./Tooltip-RV5OVI3a.cjs"),Qe=require("./Legend-DJ-i2IuD.cjs"),Ze=require("./vue-ui-skeleton-C2lcxV1r.cjs"),et=require("./vue-ui-accordion-VK6Q6MAw.cjs"),Fe=require("./useNestedProp-CEwtxiO9.cjs"),tt=require("./PackageVersion-BIgwvtuC.cjs"),lt=require("./PenAndPaper-Bz1D0jf7.cjs"),ot=require("./useUserOptionState-BgepsfED.cjs"),at=require("./Shape-DT1Q81L9.cjs"),nt=require("./useChartAccessibility-Cm7nkzTG.cjs"),rt=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ut=["id"],st=["xmlns","viewBox"],it=["width","height"],ct={key:1},dt=["id"],vt=["stop-color"],ht=["offset","stop-color"],ft=["offset","stop-color"],yt=["stop-color"],mt={key:2},pt=["id","cx","cy"],gt=["stop-color","stop-opacity"],kt=["stop-color"],bt=["id"],wt=["id"],Ct=["id"],Bt=["flood-color"],_t=["id"],xt=["flood-color"],$t=["d","stroke","filter"],St=["x1","y1","x2","y2","stroke","filter"],Nt=["cx","cy","r","fill","filter"],Et={key:6},Pt=["stroke","d"],Ft={key:0},Lt=["d","fill","stroke","stroke-width","filter"],Vt=["d","fill","stroke","stroke-width","filter"],Ot={key:0},zt=["stroke","d"],Tt={key:0},Mt=["d","stroke","stroke-width","filter"],Xt={key:1},Dt=["d","fill","stroke","stroke-width","filter"],At=["d","fill","stroke","stroke-width","filter"],Yt={key:1},It=["cx","cy","r","fill","stroke","stroke-width"],qt=["cx","cy","r","fill","stroke","stroke-width"],Rt=["cx","cy","r","stroke"],Gt=["cx","cy","r","fill"],Ut={key:0},Wt=["d","fill","onMouseenter","onClick"],jt={key:1},Ht=["cx","cy","r","fill"],Jt=["x","y","fill","font-size"],Kt=["x","y","fill","font-size"],Qt=["x","y","fill","font-size"],Zt=["x","y","fill","font-size"],el=["filter"],tl={key:0},ll=["x","y"],ol={key:1},al=["cx","cy","fill","stroke","filter","onClick"],nl=["cx","cy","fill","stroke","filter","onClick"],rl=["text-anchor","x","y","fill","font-size","onClick"],ul=["text-anchor","x","y","fill","font-size","onClick"],sl=["text-anchor","x","y","fill","font-size","onClick"],il=["text-anchor","x","y","fill","font-size","onClick"],cl={key:2},dl=["x","y","width"],vl=["x","y","width"],hl={key:5,class:"vue-data-ui-watermark"},fl=["onClick"],yl={key:0,style:{"font-variant-numeric":"tabular-nums"}},ml={key:1},pl=["innerHTML"],gl={__name:"vue-ui-donut",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend","selectDatapoint"],setup(H,{expose:Le,emit:Ve}){const{vue_ui_donut:Oe}=n.useConfig(),ze=e.useSlots(),k=H,z=e.computed({get(){return!!k.dataset&&k.dataset.length},set(o){return o}}),T=e.ref(null),J=e.ref(null),K=e.ref(null),D=e.ref(null),Q=e.ref(null),Z=e.ref(null),ee=e.ref(0),te=e.ref(0),le=e.ref(0);e.onMounted(()=>{oe()}),e.onBeforeUnmount(()=>{D.value&&D.value.disconnect()});function oe(){if(n.objectIsEmpty(k.dataset)?n.error({componentName:"VueUiDonut",type:"dataset"}):k.dataset.forEach((o,r)=>{n.getMissingDatasetAttributes({datasetObject:o,requiredAttributes:["name","values"]}).forEach(l=>{z.value=!1,n.error({componentName:"VueUiDonut",type:"datasetSerieAttribute",property:l,index:r})})}),t.value.responsive){const o=Ee.throttle(()=>{const{width:r,height:l}=Ee.useResponsive({chart:T.value,title:t.value.style.chart.title.text?J.value:null,legend:t.value.style.chart.legend.show?K.value:null,source:Q.value,noTitle:Z.value,padding:se.value});requestAnimationFrame(()=>{u.value.width=r,u.value.height=l})});D.value=new ResizeObserver(o),D.value.observe(T.value.parentNode)}}const d=e.ref(n.createUid()),Te=e.ref(null),A=e.ref(!1),q=e.ref(""),p=e.ref(null),ae=e.ref(0);function ne(){const o=Fe.useNestedProp({userConfig:k.config,defaultConfig:Oe});return o.theme?{...Fe.useNestedProp({userConfig:n.themes.vue_ui_donut[o.theme]||k.config,defaultConfig:o}),customPalette:n.themePalettes[o.theme]||n.palette}:o}const t=e.computed({get:()=>ne(),set:o=>o}),w=e.ref(!0),x=e.ref([]);function Me(o){return 1-Math.pow(1-o,3)}function Xe(o,r=1e3,l=50){return new Promise(a=>{const s=o.length;x.value=Array(s).fill(0);let v=0;o.forEach((h,y)=>{setTimeout(()=>{const X=performance.now();function Se(We){const Ne=Math.min((We-X)/r,1),je=Me(Ne);x.value[y]=h*je,x.value=[...x.value],Ne<1?requestAnimationFrame(Se):(x.value[y]=h,x.value=[...x.value],v+=1,v===s&&a())}requestAnimationFrame(Se)},y*l)})})}e.onMounted(async()=>{const o=k.dataset.map(r=>r.values.reduce((l,a)=>l+a,0));t.value.startAnimation.show&&await Xe(o,t.value.startAnimation.durationMs,t.value.startAnimation.staggerMs),w.value=!1});const{userOptionsVisible:R,setUserOptionsVisibility:re,keepUserOptionState:ue}=ot.useUserOptionState({config:t.value}),{svgRef:G}=nt.useChartAccessibility({config:t.value.style.chart.title});e.watch(()=>k.config,o=>{t.value=ne(),R.value=!t.value.userOptions.showOnChartHover,oe(),ee.value+=1,te.value+=1,le.value+=1,c.value.dataLabels.show=t.value.style.chart.layout.labels.dataLabels.show,c.value.showTable=t.value.table.show,c.value.showTooltip=t.value.style.chart.tooltip.show},{deep:!0});const se=e.computed(()=>{const{top:o,right:r,bottom:l,left:a}=t.value.style.chart.padding;return{css:`padding:${o}px ${r}px ${l}px ${a}px`,top:o,right:r,bottom:l,left:a}}),{isPrinting:ie,isImaging:ce,generatePdf:de,generateImage:ve}=Pe.usePrinter({elementId:`donut__${d.value}`,fileName:t.value.style.chart.title.text||"vue-ui-donut",options:t.value.userOptions.print}),De=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),he=e.computed(()=>n.convertCustomPalette(t.value.customPalette)),c=e.ref({dataLabels:{show:t.value.style.chart.layout.labels.dataLabels.show},showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show}),u=e.ref({height:360,width:512}),L=e.computed(()=>{const o=t.value.style.chart.layout.donut.strokeWidth/512,r=Math.min(u.value.width,u.value.height)*o,l=r>f.value?f.value:r;return Math.max(l,3)}),fe=Ve,$=e.computed(()=>k.dataset.map((o,r)=>({name:o.name,color:n.convertColorToHex(o.color)||he.value[r]||n.palette[r]||n.palette[r%n.palette.length],value:o.values.reduce((l,a)=>l+a,0),absoluteValues:o.values,comment:o.comment||"",patternIndex:r,pattern:`pattern_${d.value}_${r}`}))),b=e.ref($.value);e.watch(()=>$.value,o=>b.value=o);function Ae(){return $.value.map(o=>({name:o.name,color:o.color,value:o.value}))}const B=e.ref([]),ye=e.ref(null),me=e.ref(null),P=e.ref(!1);function pe(o){const r=$.value.find((s,v)=>v===o),l=b.value.find((s,v)=>v===o);let a=l.value;if(B.value.includes(o)){let v=function(){b.value=b.value.map((y,X)=>o===X?{...y,value:s}:y)},h=function(){a>s?(cancelAnimationFrame(ye.value),v(),P.value=!1):(P.value=!0,a+=s*(t.value.type==="polar"?1:.045),b.value=b.value.map((y,X)=>o===X?{...y,value:a}:y),ye.value=requestAnimationFrame(h))};B.value=B.value.filter(y=>y!==o);const s=r.value;t.value.useSerieToggleAnimation?h():v()}else if(B.value.length<$.value.length-1){let s=function(){B.value.push(o),b.value=b.value.map((h,y)=>o===y?{...h,value:0}:h)},v=function(){a<l.value/100?(cancelAnimationFrame(me.value),s(),P.value=!1):(P.value=!0,a/=t.value.type==="polar"?20:1.18,b.value=b.value.map((h,y)=>o===y?{...h,value:a}:h),me.value=requestAnimationFrame(v))};t.value.useSerieToggleAnimation?v():s()}fe("selectLegend",S.value.map(s=>({name:s.name,color:s.color,value:s.value})))}const Ye=e.computed(()=>k.dataset.reduce((o,r)=>o+r.values.reduce((l,a)=>l+a,0),0)),S=e.computed(()=>{if(w.value){const o=x.value.map((l,a)=>({...$.value[a],value:l,color:$.value[a].color,ghost:!1})),r=Ye.value-x.value.reduce((l,a)=>l+a,0);return r>0&&o.push({name:"__ghost__",value:r,color:"transparent",ghost:!0}),o}else return b.value.forEach((o,r)=>{if([null,void 0].includes(o.values))return{...o,values:[]}}),b.value.map((o,r)=>({...o,seriesIndex:r})).filter((o,r)=>!B.value.includes(r))}),ge=e.computed(()=>k.dataset.map((o,r)=>({name:o.name,color:n.convertColorToHex(o.color)||he.value[r]||n.palette[r]||n.palette[r%n.palette.length],value:(o.values||[]).reduce((l,a)=>l+a,0),shape:"circle",patternIndex:r})).map((o,r)=>({...o,proportion:o.value/k.dataset.map(l=>(l.values||[]).reduce((a,s)=>a+s,0)).reduce((l,a)=>l+a,0),opacity:B.value.includes(r)?.5:1,segregate:()=>!P.value&&pe(r),isSegregated:B.value.includes(r)}))),Ie=e.computed(()=>({cy:"donut-div-legend",backgroundColor:t.value.style.chart.legend.backgroundColor,color:t.value.style.chart.legend.color,fontSize:t.value.style.chart.legend.fontSize,paddingBottom:12,fontWeight:t.value.style.chart.legend.bold?"bold":""})),f=e.computed(()=>{const o=Math.min(u.value.width/3,u.value.height/3);return o<55?55:o}),m=e.computed(()=>n.makeDonut({series:S.value},u.value.width/2,u.value.height/2,f.value,f.value,1.99999,2,1,360,105.25,L.value)),_=e.computed(()=>m.value.filter(o=>!o.ghost)),i=e.computed(()=>{const o=Math.max(...S.value.map(l=>l.value)),r=S.value.map(l=>l.value/o);return n.createPolarAreas({series:r,center:{x:u.value.width/2,y:u.value.height/2},maxRadius:Math.min(u.value.width,u.value.height)/3,hasGhost:w.value})});function V(o){return o.x>u.value.width/2+6?"start":o.x<u.value.width/2-6?"end":"middle"}function qe(o){return o.middlePoint.y>u.value.height/2?n.offsetFromCenterPoint({initX:o.middlePoint.x,initY:o.middlePoint.y,offset:100,centerX:u.value.width/2,centerY:u.value.height/2}).y:n.offsetFromCenterPoint({initX:o.middlePoint.x,initY:o.middlePoint.y,offset:0,centerX:u.value.width/2,centerY:u.value.height/2}).y-100}function C(o){return o.proportion*100>t.value.style.chart.layout.labels.dataLabels.hideUnderValue}function U(o,r){const l=o.value/Re(r);return isNaN(l)?0:n.applyDataLabel(t.value.style.chart.layout.labels.percentage.formatter,l*100,n.dataLabel({v:l*100,s:"%",r:t.value.style.chart.layout.labels.percentage.rounding}),{datapoint:o})}function Re(o){return[...o].map(r=>r.value).reduce((r,l)=>r+l,0)}const g=e.computed(()=>S.value.map(o=>o.value).reduce((o,r)=>o+r,0)),ke=e.computed(()=>g.value/S.value.length),be=e.computed(()=>o=>P.value?o.proportion*100:o.value/g.value*100),W=e.ref(null),M=e.ref(!1);function we({datapoint:o,relativeIndex:r,seriesIndex:l,show:a=!1}){W.value={datapoint:o,seriesIndex:l,config:t.value,series:$.value},A.value=a,p.value=r;let s="";const v=t.value.style.chart.tooltip.customFormat;if(M.value=!1,n.isFunction(v))try{const h=v({seriesIndex:l,datapoint:o,series:$.value,config:t.value});typeof h=="string"&&(q.value=h,M.value=!0)}catch{console.warn("Custom format cannot be applied."),M.value=!1}if(!M.value){if(s+=`<div style="width:100%;text-align:center;border-bottom:1px solid ${t.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${o.name}</div>`,s+=`<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="${o.color}"/>${ze.pattern?`<circle cx="30" cy="30" r="30" stroke="none" fill="url(#pattern_${d.value}_${l})"/>`:""}</svg>`,t.value.style.chart.tooltip.showValue&&(s+=`<b>${n.applyDataLabel(t.value.style.chart.layout.labels.value.formatter,o.value,n.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:o.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.tooltip.roundingValue}),{datapoint:o,relativeIndex:r,seriesIndex:l})}</b>`),t.value.style.chart.tooltip.showPercentage){const h=n.applyDataLabel(t.value.style.chart.layout.labels.percentage.formatter,o.proportion*100,n.dataLabel({v:o.proportion*100,s:"%",r:t.value.style.chart.tooltip.roundingPercentage}),{datapoint:o,relativeIndex:r,seriesIndex:l});t.value.style.chart.tooltip.showValue?s+=`<span>(${h})</span></div>`:s+=`<b>${h}</b></div>`}t.value.style.chart.comments.showInTooltip&&o.comment&&(s+=`<div class="vue-data-ui-tooltip-comment" style="background:${o.color}20; padding: 6px; margin-bottom: 6px; margin-top:6px; border-left: 1px solid ${o.color}">${o.comment}</div>`),q.value=`<div>${s}</div>`}}function F(o){return t.value.useBlurOnHover&&![null,void 0].includes(p.value)&&p.value!==o?`url(#blur_${d.value})`:""}const N=e.computed(()=>{const o=S.value.map(l=>({name:l.name,color:l.color})),r=S.value.map(l=>l.value);return{head:o,body:r}});function Ce(){e.nextTick(()=>{const o=N.value.head.map((a,s)=>[[a.name],[N.value.body[s]],[isNaN(N.value.body[s]/g.value)?"-":N.value.body[s]/g.value*100]]),r=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[""],["val"],["%"]]].concat(o),l=n.createCsvContent(r);n.downloadCsv({csvContent:l,title:t.value.style.chart.title.text||"vue-ui-donut"})})}const Y=e.computed(()=>{const o=[' <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>',n.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:g.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.table.td.roundingValue}),"100%"],r=N.value.head.map((s,v)=>[{color:s.color,name:s.name},N.value.body[v],isNaN(N.value.body[v]/g.value)?"-":(N.value.body[v]/g.value*100).toFixed(t.value.table.td.roundingPercentage)+"%"]),l={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint};return{colNames:[t.value.table.columnNames.series,t.value.table.columnNames.value,t.value.table.columnNames.percentage],head:o,body:r,config:l}}),O=e.ref(!1);function Ge(o){O.value=o,ae.value+=1}const Be=e.computed(()=>/^((?!chrome|android).)*safari/i.test(navigator.userAgent));function Ue(o){return o.toFixed(t.value.style.chart.legend.roundingPercentage).split("").map(r=>"-").join("")}function E(o,r){fe("selectDatapoint",{datapoint:o,index:r})}function _e(){c.value.showTable=!c.value.showTable}function xe(){c.value.dataLabels.show=!c.value.dataLabels.show}function $e(){c.value.showTooltip=!c.value.showTooltip}const I=e.ref(!1);function j(){I.value=!I.value}return Le({getData:Ae,generatePdf:de,generateCsv:Ce,generateImage:ve,toggleTable:_e,toggleLabels:xe,toggleTooltip:$e,toggleAnnotator:j}),(o,r)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"donutChart",ref:T,class:e.normalizeClass(`vue-ui-donut ${O.value?"vue-data-ui-wrapper-fullscreen":""} ${t.value.useCssAnimation?"":"vue-ui-dna"}`),style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; ${t.value.responsive?"height:100%;":""} text-align:center;background:${t.value.style.chart.backgroundColor}`),id:`donut__${d.value}`,onMouseenter:r[6]||(r[6]=()=>e.unref(re)(!0)),onMouseleave:r[7]||(r[7]=()=>e.unref(re)(!1))},[t.value.userOptions.buttons.annotator&&e.unref(G)?(e.openBlock(),e.createBlock(lt._sfc_main,{key:0,color:t.value.style.chart.color,backgroundColor:t.value.style.chart.backgroundColor,active:I.value,svgRef:e.unref(G),onClose:j},null,8,["color","backgroundColor","active","svgRef"])):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"userConfig",{},void 0,!0),De.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:Z,class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},null,512)):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"chartTitle",ref:J,style:"width:100%;background:transparent;padding-bottom:24px"},[(e.openBlock(),e.createBlock(He._sfc_main,{key:`title_${ee.value}`,config:{title:{cy:"donut-div-title",...t.value.style.chart.title},subtitle:{cy:"donut-div-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&z.value&&(e.unref(ue)||e.unref(R))?(e.openBlock(),e.createBlock(Pe.UserOptions,{ref_key:"details",ref:Te,key:`user_option_${ae.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(ie),isImaging:e.unref(ce),uid:d.value,hasTooltip:t.value.style.chart.tooltip.show&&t.value.userOptions.buttons.tooltip,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasXls:t.value.userOptions.buttons.csv,hasTable:t.value.userOptions.buttons.table,hasLabel:t.value.userOptions.buttons.labels,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:O.value,chartElement:T.value,position:t.value.userOptions.position,isTooltip:c.value.showTooltip,titles:{...t.value.userOptions.buttonTitles},hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:I.value,onToggleFullscreen:Ge,onGeneratePdf:e.unref(de),onGenerateCsv:Ce,onGenerateImage:e.unref(ve),onToggleTable:_e,onToggleLabels:xe,onToggleTooltip:$e,onToggleAnnotator:j,style:e.normalizeStyle({visibility:e.unref(ue)?e.unref(R)?"visible":"hidden":"visible"})},e.createSlots({_:2},[o.$slots.menuIcon?{name:"menuIcon",fn:e.withCtx(({isOpen:l,color:a})=>[e.renderSlot(o.$slots,"menuIcon",e.normalizeProps(e.guardReactiveProps({isOpen:l,color:a})),void 0,!0)]),key:"0"}:void 0,o.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionTooltip",{},void 0,!0)]),key:"1"}:void 0,o.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionPdf",{},void 0,!0)]),key:"2"}:void 0,o.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionCsv",{},void 0,!0)]),key:"3"}:void 0,o.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionImg",{},void 0,!0)]),key:"4"}:void 0,o.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionTable",{},void 0,!0)]),key:"5"}:void 0,o.$slots.optionLabels?{name:"optionLabels",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionLabels",{},void 0,!0)]),key:"6"}:void 0,o.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:a})=>[e.renderSlot(o.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:a})),void 0,!0)]),key:"7"}:void 0,o.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:l,isAnnotator:a})=>[e.renderSlot(o.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:l,isAnnotator:a})),void 0,!0)]),key:"8"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasTooltip","hasPdf","hasImg","hasXls","hasTable","hasLabel","hasFullscreen","isFullscreen","chartElement","position","isTooltip","titles","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),z.value?(e.openBlock(),e.createElementBlock("svg",{key:4,ref_key:"svgRef",ref:G,xmlns:e.unref(n.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":O.value,"vue-data-ui-fulscreen--off":!O.value}),viewBox:`0 0 ${u.value.width<=0?10:u.value.width} ${u.value.height<=0?10:u.value.height}`,style:e.normalizeStyle(`max-width:100%; overflow: visible; background:transparent;color:${t.value.style.chart.color};${se.value.css}`)},[e.createVNode(tt._sfc_main),o.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:0,y:0,width:u.value.width<=0?10:u.value.width,height:u.value.height<=0?10:u.value.height,style:{pointerEvents:"none"}},[e.renderSlot(o.$slots,"chart-background",{},void 0,!0)],8,it)):e.createCommentVNode("",!0),t.value.type==="classic"&&!isNaN(L.value/f.value)?(e.openBlock(),e.createElementBlock("defs",ct,[t.value.style.chart.useGradient?(e.openBlock(),e.createElementBlock("radialGradient",{key:0,id:`gradient_${d.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(n.setOpacity)(t.value.style.chart.backgroundColor,0),"stop-opacity":"0"},null,8,vt),e.createElementVNode("stop",{offset:`${(1-L.value/f.value)*100}%`,"stop-color":e.unref(n.setOpacity)("#FFFFFF",0),"stop-opacity":"0"},null,8,ht),e.createElementVNode("stop",{offset:`${(1-L.value/f.value/2)*100}%`,"stop-color":e.unref(n.setOpacity)("#FFFFFF",t.value.style.chart.gradientIntensity)},null,8,ft),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(n.setOpacity)(t.value.style.chart.backgroundColor,0),"stop-opacity":"0"},null,8,yt)],8,dt)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),t.value.type==="polar"?(e.openBlock(),e.createElementBlock("defs",mt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(l,a)=>(e.openBlock(),e.createElementBlock("radialGradient",{id:`polar_gradient_${a}_${d.value}`,cx:(isNaN(l.middlePoint.x/u.value.width*100)?0:l.middlePoint.x/u.value.width*100)+"%",cy:(isNaN(l.middlePoint.y/u.value.height*100)?0:l.middlePoint.y/u.value.height*100)+"%",r:"62%"},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(n.shiftHue)(m.value[a].color,.05),"stop-opacity":t.value.style.chart.gradientIntensity/100},null,8,gt),e.createElementVNode("stop",{offset:"100%","stop-color":m.value[a].color},null,8,kt)],8,pt))),256))])):e.createCommentVNode("",!0),e.createElementVNode("defs",null,[e.createElementVNode("filter",{id:`blur_${d.value}`,x:"-50%",y:"-50%",width:"200%",height:"200%"},[e.createElementVNode("feGaussianBlur",{in:"SourceGraphic",stdDeviation:2,id:`blur_std_${d.value}`},null,8,wt),r[8]||(r[8]=e.createElementVNode("feColorMatrix",{type:"saturate",values:"0"},null,-1))],8,bt),e.createElementVNode("filter",{id:`shadow_${d.value}`,"color-interpolation-filters":"sRGB"},[e.createElementVNode("feDropShadow",{dx:"0",dy:"0",stdDeviation:"10","flood-opacity":"0.5","flood-color":t.value.style.chart.layout.donut.shadowColor},null,8,Bt)],8,Ct),e.createElementVNode("filter",{id:`drop_shadow_${d.value}`,"color-interpolation-filters":"sRGB",x:"-50%",y:"-50%",width:"200%",height:"200%"},[e.createElementVNode("feDropShadow",{dx:"0",dy:"0",stdDeviation:"3","flood-opacity":"1","flood-color":t.value.style.chart.layout.donut.shadowColor},null,8,xt)],8,_t)]),t.value.type==="classic"?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:3},e.renderList(m.value.filter(l=>!l.ghost),(l,a)=>(e.openBlock(),e.createElementBlock("g",null,[C(l)&&c.value.dataLabels.show?(e.openBlock(),e.createElementBlock("path",{key:0,d:e.unref(n.calcNutArrowPath)(l,{x:u.value.width/2,y:u.value.height/2},16,16,!1,!1,L.value,12,t.value.style.chart.layout.curvedMarkers),stroke:l.color,"stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round",fill:"none",filter:F(a)},null,8,$t)):e.createCommentVNode("",!0)]))),256)):e.createCommentVNode("",!0),t.value.type==="polar"?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:4},e.renderList(m.value.filter(l=>!l.ghost),(l,a)=>(e.openBlock(),e.createElementBlock("g",null,[C(l)&&c.value.dataLabels.show?(e.openBlock(),e.createElementBlock("line",{key:0,x1:e.unref(n.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:24,centerX:u.value.width/2,centerY:u.value.height/2}).x,y1:e.unref(n.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:24,centerX:u.value.width/2,centerY:u.value.height/2}).y,x2:i.value[a].middlePoint.x,y2:i.value[a].middlePoint.y,stroke:l.color,"stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round",fill:"none",filter:F(a),style:e.normalizeStyle({transition:w.value?"":"all 0.1s ease-in-out"})},null,12,St)):e.createCommentVNode("",!0)]))),256)):e.createCommentVNode("",!0),t.value.type==="classic"&&t.value.style.chart.layout.donut.useShadow?(e.openBlock(),e.createElementBlock("circle",{key:5,cx:u.value.width/2,cy:u.value.height/2,r:f.value<=0?10:f.value,fill:t.value.style.chart.backgroundColor,filter:`url(#shadow_${d.value})`},null,8,Nt)):e.createCommentVNode("",!0),o.$slots.pattern?(e.openBlock(),e.createElementBlock("g",Et,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(H.dataset,(l,a)=>(e.openBlock(),e.createElementBlock("defs",{key:`pattern-${l.patternIndex}`},[e.renderSlot(o.$slots,"pattern",e.mergeProps({ref_for:!0},{seriesIndex:a,patternId:`pattern_${d.value}_${a}`}),void 0,!0)]))),128))])):e.createCommentVNode("",!0),g.value&&t.value.type==="classic"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:7},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.value,(l,a)=>(e.openBlock(),e.createElementBlock("path",{stroke:t.value.style.chart.backgroundColor,d:l.arcSlice,fill:"#FFFFFF"},null,8,Pt))),256)),o.$slots.pattern?(e.openBlock(),e.createElementBlock("g",Ft,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.value,(l,a)=>(e.openBlock(),e.createElementBlock("path",{class:"vue-ui-donut-arc-path",d:l.arcSlice,fill:`url(#${l.pattern})`,stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.donut.borderWidth,filter:F(a)},null,8,Lt))),256))])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.value,(l,a)=>(e.openBlock(),e.createElementBlock("path",{class:"vue-ui-donut-arc-path",d:l.arcSlice,fill:e.unref(n.setOpacity)(l.color,80),stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.donut.borderWidth,filter:F(a)},null,8,Vt))),256))],64)):e.createCommentVNode("",!0),g.value&&t.value.type==="polar"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:8},[m.value.length>1?(e.openBlock(),e.createElementBlock("g",Ot,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.value,(l,a)=>(e.openBlock(),e.createElementBlock("path",{stroke:t.value.style.chart.backgroundColor,d:i.value[a].path,fill:"#FFFFFF",style:e.normalizeStyle({transition:w.value?"":"all 0.1s ease-in-out"})},null,12,zt))),256)),t.value.style.chart.layout.donut.useShadow?(e.openBlock(),e.createElementBlock("g",Tt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,(l,a)=>(e.openBlock(),e.createElementBlock("path",{class:"vue-ui-donut-arc-path",d:i.value[a].path,fill:"transparent",stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.donut.borderWidth,filter:`url(#drop_shadow_${d.value})`,style:e.normalizeStyle({transition:w.value?"":"all 0.1s ease-in-out"})},null,12,Mt))),256))])):e.createCommentVNode("",!0),o.$slots.pattern?(e.openBlock(),e.createElementBlock("g",Xt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.value,(l,a)=>(e.openBlock(),e.createElementBlock("path",{class:"vue-ui-donut-arc-path",d:i.value[a].path,fill:`url(#${l.pattern})`,stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.donut.borderWidth,filter:F(a),style:e.normalizeStyle({transition:w.value?"":"all 0.1s ease-in-out"})},null,12,Dt))),256))])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.value,(l,a)=>(e.openBlock(),e.createElementBlock("path",{class:"vue-ui-donut-arc-path",d:i.value[a].path,fill:t.value.style.chart.useGradient?`url(#polar_gradient_${a}_${d.value})`:l.color,stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.donut.borderWidth,filter:F(a),style:e.normalizeStyle({transition:w.value?"":"all 0.1s ease-in-out"})},null,12,At))),256))])):(e.openBlock(),e.createElementBlock("g",Yt,[o.$slots.pattern?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:u.value.width/2,cy:u.value.height/2,r:f.value,fill:`url(#pattern_${d.value}_${m.value[0].patternIndex})`,stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.donut.borderWidth},null,8,It)):e.createCommentVNode("",!0),e.createElementVNode("circle",{cx:u.value.width/2,cy:u.value.height/2,r:f.value,fill:t.value.style.chart.useGradient?`url(#polar_gradient_0_${d.value})`:m.value[0].color,stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.donut.borderWidth},null,8,qt)]))],64)):(e.openBlock(),e.createElementBlock("circle",{key:9,cx:u.value.width/2,cy:u.value.height/2,r:f.value<=0?10:f.value,fill:"transparent",stroke:t.value.style.chart.backgroundColor},null,8,Rt)),t.value.style.chart.useGradient&&t.value.type==="classic"?(e.openBlock(),e.createElementBlock("circle",{key:10,cx:u.value.width/2,cy:u.value.height/2,r:f.value<=0?10:f.value,fill:`url(#gradient_${d.value})`},null,8,Gt)):e.createCommentVNode("",!0),g.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:11},[m.value.length>1||t.value.type==="classic"?(e.openBlock(),e.createElementBlock("g",Ut,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value.filter(l=>!l.ghost),(l,a)=>(e.openBlock(),e.createElementBlock("path",{d:t.value.type==="classic"?l.arcSlice:i.value[a].path,fill:p.value===a?"rgba(0,0,0,0.1)":"transparent",onMouseenter:s=>we({datapoint:l,relativeIndex:a,seriesIndex:l.seriesIndex,show:!0}),onMouseleave:r[0]||(r[0]=s=>{A.value=!1,p.value=null}),onClick:s=>E(l,a)},null,40,Wt))),256))])):(e.openBlock(),e.createElementBlock("g",jt,[e.createElementVNode("circle",{cx:u.value.width/2,cy:u.value.height/2,r:f.value,fill:p.value===o.i?"rgba(0,0,0,0.1)":"transparent",onMouseenter:r[1]||(r[1]=l=>we({datapoint:m.value[0],relativeIndex:0,seriesIndex:m.value[0].seriesIndex,show:!0})),onMouseleave:r[2]||(r[2]=l=>{A.value=!1,p.value=null}),onClick:r[3]||(r[3]=l=>E(m.value[0],o.i))},null,40,Ht)]))],64)):e.createCommentVNode("",!0),t.value.type==="classic"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:12},[t.value.style.chart.layout.labels.hollow.total.show?(e.openBlock(),e.createElementBlock("text",{key:0,"text-anchor":"middle",x:u.value.width/2,y:u.value.height/2-(t.value.style.chart.layout.labels.hollow.average.show?t.value.style.chart.layout.labels.hollow.total.fontSize:0)+t.value.style.chart.layout.labels.hollow.total.offsetY,fill:t.value.style.chart.layout.labels.hollow.total.color,"font-size":t.value.style.chart.layout.labels.hollow.total.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.labels.hollow.total.bold?"bold":""}`)},e.toDisplayString(t.value.style.chart.layout.labels.hollow.total.text),13,Jt)):e.createCommentVNode("",!0),t.value.style.chart.layout.labels.hollow.total.show?(e.openBlock(),e.createElementBlock("text",{key:1,"text-anchor":"middle",x:u.value.width/2,y:u.value.height/2+t.value.style.chart.layout.labels.hollow.total.fontSize-(t.value.style.chart.layout.labels.hollow.average.show?t.value.style.chart.layout.labels.hollow.total.fontSize:0)+t.value.style.chart.layout.labels.hollow.total.value.offsetY,fill:t.value.style.chart.layout.labels.hollow.total.value.color,"font-size":t.value.style.chart.layout.labels.hollow.total.value.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.labels.hollow.total.value.bold?"bold":""}`)},e.toDisplayString(e.unref(n.applyDataLabel)(t.value.style.chart.layout.labels.hollow.total.value.formatter,g.value,e.unref(n.dataLabel)({p:t.value.style.chart.layout.labels.hollow.total.value.prefix,v:g.value,s:t.value.style.chart.layout.labels.hollow.total.value.suffix}))),13,Kt)):e.createCommentVNode("",!0),t.value.style.chart.layout.labels.hollow.average.show?(e.openBlock(),e.createElementBlock("text",{key:2,"text-anchor":"middle",x:u.value.width/2,y:u.value.height/2+(t.value.style.chart.layout.labels.hollow.total.show?t.value.style.chart.layout.labels.hollow.average.fontSize:0)+t.value.style.chart.layout.labels.hollow.average.offsetY,fill:t.value.style.chart.layout.labels.hollow.average.color,"font-size":t.value.style.chart.layout.labels.hollow.average.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.labels.hollow.average.bold?"bold":""}`)},e.toDisplayString(t.value.style.chart.layout.labels.hollow.average.text),13,Qt)):e.createCommentVNode("",!0),t.value.style.chart.layout.labels.hollow.average.show?(e.openBlock(),e.createElementBlock("text",{key:3,"text-anchor":"middle",x:u.value.width/2,y:u.value.height/2+(t.value.style.chart.layout.labels.hollow.total.show?t.value.style.chart.layout.labels.hollow.average.fontSize:0)+t.value.style.chart.layout.labels.hollow.average.fontSize+t.value.style.chart.layout.labels.hollow.average.value.offsetY,fill:t.value.style.chart.layout.labels.hollow.average.value.color,"font-size":t.value.style.chart.layout.labels.hollow.average.value.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.labels.hollow.average.value.bold?"bold":""}`)},e.toDisplayString(P.value||w.value?"--":e.unref(n.applyDataLabel)(t.value.style.chart.layout.labels.hollow.average.value.formatter,ke.value,e.unref(n.dataLabel)({p:t.value.style.chart.layout.labels.hollow.average.value.prefix,v:ke.value,s:t.value.style.chart.layout.labels.hollow.average.value.suffix,r:t.value.style.chart.layout.labels.hollow.average.value.rounding}))),13,Zt)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.value.filter(l=>!l.ghost),(l,a)=>(e.openBlock(),e.createElementBlock("g",{filter:F(a),class:e.normalizeClass({animated:t.value.useCssAnimation})},[t.value.style.chart.layout.labels.dataLabels.useLabelSlots?(e.openBlock(),e.createElementBlock("g",tl,[(e.openBlock(),e.createElementBlock("foreignObject",{x:e.unref(n.calcMarkerOffsetX)(l,!0).anchor==="end"?e.unref(n.calcMarkerOffsetX)(l).x-120:e.unref(n.calcMarkerOffsetX)(l,!0).anchor==="middle"?e.unref(n.calcMarkerOffsetX)(l).x-60:e.unref(n.calcMarkerOffsetX)(l).x,y:e.unref(n.calcMarkerOffsetY)(l)-(Be.value?20:0),width:"120",height:"60",style:{overflow:"visible"}},[e.createElementVNode("div",null,[e.renderSlot(o.$slots,"dataLabel",e.mergeProps({ref_for:!0},{datapoint:l,isBlur:!t.value.useBlurOnHover||[null,void 0].includes(p.value)||p.value===a,isSafari:Be.value,isVisible:C(l)&&c.value.dataLabels.show,textAlign:e.unref(n.calcMarkerOffsetX)(l,!0,16,!0).anchor,flexAlign:e.unref(n.calcMarkerOffsetX)(l,!0,16).anchor,percentage:U(l,_.value)}),void 0,!0)])],8,ll))])):(e.openBlock(),e.createElementBlock("g",ol,[t.value.type==="classic"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[C(l)&&c.value.dataLabels.show?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:e.unref(n.calcMarkerOffsetX)(l).x,cy:e.unref(n.calcMarkerOffsetY)(l)-3.5,fill:l.color,stroke:t.value.style.chart.backgroundColor,"stroke-width":1,r:3,filter:!t.value.useBlurOnHover||[null,void 0].includes(p.value)||p.value===a?"":`url(#blur_${d.value})`,onClick:s=>E(l,a)},null,8,al)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),t.value.type==="polar"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[C(l)&&c.value.dataLabels.show?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:e.unref(n.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:24,centerX:u.value.width/2,centerY:u.value.height/2}).x,cy:e.unref(n.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:24,centerX:u.value.width/2,centerY:u.value.height/2}).y,fill:l.color,stroke:t.value.style.chart.backgroundColor,"stroke-width":1,r:3,filter:!t.value.useBlurOnHover||[null,void 0].includes(p.value)||p.value===a?"":`url(#blur_${d.value})`,onClick:s=>E(l,a)},null,8,nl)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),t.value.type==="classic"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[C(l)&&c.value.dataLabels.show?(e.openBlock(),e.createElementBlock("text",{key:0,"text-anchor":e.unref(n.calcMarkerOffsetX)(l,!0,12).anchor,x:e.unref(n.calcMarkerOffsetX)(l,!0,12).x,y:e.unref(n.calcMarkerOffsetY)(l),fill:t.value.style.chart.layout.labels.percentage.color,"font-size":t.value.style.chart.layout.labels.percentage.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.labels.percentage.bold?"bold":""}`),onClick:s=>E(l,a)},e.toDisplayString(U(l,_.value))+" "+e.toDisplayString(t.value.style.chart.layout.labels.value.show?`(${e.unref(n.applyDataLabel)(t.value.style.chart.layout.labels.value.formatter,l.value,e.unref(n.dataLabel)({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:l.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.layout.labels.value.rounding}),{datapoint:l})})`:""),13,rl)):e.createCommentVNode("",!0),C(l)&&c.value.dataLabels.show?(e.openBlock(),e.createElementBlock("text",{key:1,"text-anchor":e.unref(n.calcMarkerOffsetX)(l).anchor,x:e.unref(n.calcMarkerOffsetX)(l,!0,12).x,y:e.unref(n.calcMarkerOffsetY)(l)+t.value.style.chart.layout.labels.percentage.fontSize,fill:t.value.style.chart.layout.labels.name.color,"font-size":t.value.style.chart.layout.labels.name.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.labels.name.bold?"bold":""}`),onClick:s=>E(l,a)},e.toDisplayString(l.name),13,ul)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),t.value.type==="polar"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[C(l)&&c.value.dataLabels.show?(e.openBlock(),e.createElementBlock("text",{key:0,"text-anchor":V(i.value[a].middlePoint),x:e.unref(n.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:42,centerX:u.value.width/2,centerY:u.value.height/2}).x,y:e.unref(n.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:42,centerX:u.value.width/2,centerY:u.value.height/2}).y,fill:t.value.style.chart.layout.labels.percentage.color,"font-size":t.value.style.chart.layout.labels.percentage.fontSize,style:e.normalizeStyle(`transition: all 0.1s ease-in-out; font-weight:${t.value.style.chart.layout.labels.percentage.bold?"bold":""}`),onClick:s=>E(l,a)},e.toDisplayString(U(l,_.value))+" "+e.toDisplayString(t.value.style.chart.layout.labels.value.show?`(${e.unref(n.applyDataLabel)(t.value.style.chart.layout.labels.value.formatter,l.value,e.unref(n.dataLabel)({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:l.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.layout.labels.value.rounding}),{datapoint:l})})`:""),13,sl)):e.createCommentVNode("",!0),C(l)&&c.value.dataLabels.show?(e.openBlock(),e.createElementBlock("text",{key:1,"text-anchor":V(i.value[a].middlePoint),x:e.unref(n.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:42,centerX:u.value.width/2,centerY:u.value.height/2}).x,y:e.unref(n.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:42,centerX:u.value.width/2,centerY:u.value.height/2}).y+t.value.style.chart.layout.labels.percentage.fontSize,fill:t.value.style.chart.layout.labels.name.color,"font-size":t.value.style.chart.layout.labels.name.fontSize,style:e.normalizeStyle(`transition: all 0.1s ease-in-out; font-weight:${t.value.style.chart.layout.labels.name.bold?"bold":""}`),onClick:s=>E(l,a)},e.toDisplayString(l.name),13,il)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)])),c.value.dataLabels.show&&t.value.style.chart.comments.show&&l.comment?(e.openBlock(),e.createElementBlock("g",cl,[C(l)&&t.value.type==="classic"?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:t.value.style.chart.comments.offsetX+(e.unref(n.calcMarkerOffsetX)(l,!0).anchor==="end"?e.unref(n.calcMarkerOffsetX)(l).x-t.value.style.chart.comments.width:e.unref(n.calcMarkerOffsetX)(l,!0).anchor==="middle"?e.unref(n.calcMarkerOffsetX)(l).x-t.value.style.chart.comments.width/2:e.unref(n.calcMarkerOffsetX)(l).x),y:e.unref(n.calcMarkerOffsetY)(l)+24+t.value.style.chart.comments.offsetY,width:t.value.style.chart.comments.width,height:"200",style:{overflow:"visible","pointer-events":"none"}},[e.createElementVNode("div",null,[e.renderSlot(o.$slots,"plot-comment",{plot:{...l,textAlign:e.unref(n.calcMarkerOffsetX)(l,!0,16,!0).anchor,flexAlign:e.unref(n.calcMarkerOffsetX)(l,!0,16).anchor,isFirstLoad:w.value}},void 0,!0)])],8,dl)):e.createCommentVNode("",!0),C(l)&&t.value.type==="polar"?(e.openBlock(),e.createElementBlock("foreignObject",{key:1,x:t.value.style.chart.comments.offsetX+(V(i.value[a].middlePoint)==="end"?e.unref(n.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:42,centerX:u.value.width/2,centerY:u.value.height/2}).x-t.value.style.chart.comments.width:V(i.value[a].middlePoint)==="middle"?e.unref(n.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:42,centerX:u.value.width/2,centerY:u.value.height/2}).x-t.value.style.chart.comments.width/2:e.unref(n.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:42,centerX:u.value.width/2,centerY:u.value.height/2}).x),y:qe(i.value[a])+t.value.style.chart.comments.offsetY,width:t.value.style.chart.comments.width,height:"200",style:{overflow:"visible","pointer-events":"none"}},[e.createElementVNode("div",null,[e.renderSlot(o.$slots,"plot-comment",{plot:{...l,textAlign:V(i.value[a].middlePoint),flexAlign:V(i.value[a].middlePoint),isFirstLoad:w.value}},void 0,!0)])],8,vl)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],10,el))),256)),e.renderSlot(o.$slots,"svg",{svg:u.value},void 0,!0)],14,st)):e.createCommentVNode("",!0),o.$slots.watermark?(e.openBlock(),e.createElementBlock("div",hl,[e.renderSlot(o.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(ie)||e.unref(ce)})),void 0,!0)])):e.createCommentVNode("",!0),z.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Ze.default,{key:6,config:{type:"donut",style:{backgroundColor:t.value.style.chart.backgroundColor,donut:{color:"#CCCCCC",strokeWidth:L.value*.8}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:K},[t.value.style.chart.legend.show?(e.openBlock(),e.createBlock(Qe.Legend,{key:`legend_${le.value}`,legendSet:ge.value,config:Ie.value,onClickMarker:r[4]||(r[4]=({i:l})=>pe(l))},e.createSlots({item:e.withCtx(({legend:l,index:a})=>[e.createElementVNode("div",{style:e.normalizeStyle(`opacity:${B.value.includes(a)?.5:1}`),onClick:s=>l.segregate()},[e.createTextVNode(e.toDisplayString(l.name)+": "+e.toDisplayString(e.unref(n.applyDataLabel)(t.value.style.chart.layout.labels.value.formatter,l.value,e.unref(n.dataLabel)({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:l.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.legend.roundingValue}),{datapoint:l,index:a}))+" ",1),B.value.includes(a)?(e.openBlock(),e.createElementBlock("span",ml," ( "+e.toDisplayString(Ue(l.proportion*100))+" % ) ",1)):(e.openBlock(),e.createElementBlock("span",yl," ("+e.toDisplayString(isNaN(l.value/g.value)?"-":e.unref(n.applyDataLabel)(t.value.style.chart.layout.labels.percentage.formatter,be.value(l),e.unref(n.dataLabel)({v:be.value(l),s:"%",r:t.value.style.chart.legend.roundingPercentage})))+") ",1))],12,fl)]),_:2},[o.$slots.pattern?{name:"legend-pattern",fn:e.withCtx(({legend:l,index:a})=>[e.createVNode(at._sfc_main,{shape:l.shape,radius:30,stroke:"none",plot:{x:30,y:30},fill:`url(#pattern_${d.value}_${a})`},null,8,["shape","fill"])]),key:"0"}:void 0]),1032,["legendSet","config"])):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"legend",{legend:ge.value},void 0,!0)],512),o.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:7,ref_key:"source",ref:Q,dir:"auto"},[e.renderSlot(o.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createVNode(Ke._sfc_main,{show:c.value.showTooltip&&A.value,backgroundColor:t.value.style.chart.tooltip.backgroundColor,color:t.value.style.chart.tooltip.color,fontSize:t.value.style.chart.tooltip.fontSize,borderRadius:t.value.style.chart.tooltip.borderRadius,borderColor:t.value.style.chart.tooltip.borderColor,borderWidth:t.value.style.chart.tooltip.borderWidth,backgroundOpacity:t.value.style.chart.tooltip.backgroundOpacity,position:t.value.style.chart.tooltip.position,offsetY:t.value.style.chart.tooltip.offsetY,parent:T.value,content:q.value,isCustom:M.value,isFullscreen:O.value},{"tooltip-before":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...W.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...W.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","fontSize","borderRadius","borderColor","borderWidth","backgroundOpacity","position","offsetY","parent","content","isCustom","isFullscreen"]),z.value?(e.openBlock(),e.createBlock(et.default,{key:8,hideDetails:"",config:{open:c.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color},head:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color}}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock(Je.DataTable,{key:`table_${te.value}`,colNames:Y.value.colNames,head:Y.value.head,body:Y.value.body,config:Y.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:r[5]||(r[5]=l=>c.value.showTable=!1)},{th:e.withCtx(({th:l})=>[e.createElementVNode("div",{innerHTML:l,style:{display:"flex","align-items":"center"}},null,8,pl)]),td:e.withCtx(({td:l})=>[e.createTextVNode(e.toDisplayString(l.name?l.name:isNaN(Number(l))?l.includes("%")?l:e.unref(n.applyDataLabel)(t.value.style.chart.layout.labels.percentage.formatter,l,e.unref(n.dataLabel)({v:l,s:"%",r:t.value.style.chart.layout.labels.percentage.rounding})):e.unref(n.applyDataLabel)(t.value.style.chart.layout.labels.value.formatter,l,e.unref(n.dataLabel)({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:l,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.layout.labels.value.rounding}))),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],46,ut))}},kl=rt._export_sfc(gl,[["__scopeId","data-v-82683d32"]]);exports.default=kl;