vue-data-ui 2.6.6 → 2.6.8

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 (197) hide show
  1. package/dist/{Arrow-DFWjAvCY.js → Arrow-BHD3VBsD.js} +1 -1
  2. package/dist/{Arrow-BYqxz6UG.cjs → Arrow-YuEygGzC.cjs} +1 -1
  3. package/dist/{BaseIcon-COe_H-UB.cjs → BaseIcon-D326yPTV.cjs} +1 -1
  4. package/dist/{BaseIcon-t20JEZNG.js → BaseIcon-dThl5uNa.js} +1 -1
  5. package/dist/{DataTable-Du7nJ0TM.cjs → DataTable-CaD8j-SL.cjs} +1 -1
  6. package/dist/{DataTable-CJN0sipt.js → DataTable-D0-zzsJg.js} +2 -2
  7. package/dist/{Legend-CM7IGBC3.cjs → Legend-CEw2uq9s.cjs} +1 -1
  8. package/dist/{Legend-BDyPoYfp.js → Legend-Oaw0MY8Y.js} +2 -2
  9. package/dist/{PackageVersion-qeLvq6l8.cjs → PackageVersion-CCgJTyH9.cjs} +1 -1
  10. package/dist/{PackageVersion-DqmHcoqz.js → PackageVersion-J_USnljf.js} +1 -1
  11. package/dist/{PenAndPaper-6UYizrkQ.js → PenAndPaper-CoEXEMcN.js} +3 -3
  12. package/dist/{PenAndPaper-BYqaxOpk.cjs → PenAndPaper-DvNBHCpq.cjs} +1 -1
  13. package/dist/Shape-Cwx-wRaK.cjs +1 -0
  14. package/dist/{Shape-C_qIhG3J.js → Shape-Dtm6toQp.js} +26 -23
  15. package/dist/{Slicer-DPae3p1M.cjs → Slicer-7z_6bjyU.cjs} +1 -1
  16. package/dist/{Slicer-BQP3UIW-.js → Slicer-BAcq2vD0.js} +2 -2
  17. package/dist/{Title-BGiQdt7J.cjs → Title-BQSh4ukk.cjs} +1 -1
  18. package/dist/{Title-D6h1gTvZ.js → Title-DePxeqVl.js} +1 -1
  19. package/dist/{Tooltip-BonEVaob.js → Tooltip-DRw9RoFp.js} +23 -20
  20. package/dist/Tooltip-DtqrGu-Q.cjs +1 -0
  21. package/dist/{index-B9qF6XbP.js → index-CZlI7PiS.js} +1 -1
  22. package/dist/{index-kZKcQZM_.cjs → index-DD4PT0Pl.cjs} +1 -1
  23. package/dist/style.css +1 -1
  24. package/dist/useChartAccessibility-BWojgys7.js +13 -0
  25. package/dist/useChartAccessibility-Cm7nkzTG.cjs +1 -0
  26. package/dist/{useNestedProp-g5oKzlVy.js → useNestedProp-Cg0NIwr6.js} +1 -1
  27. package/dist/{useNestedProp-D4Jn2Oxr.cjs → useNestedProp-DU7JFxpL.cjs} +1 -1
  28. package/dist/{usePrinter-DR42gTOS.cjs → usePrinter-BtJq2wwh.cjs} +1 -1
  29. package/dist/{usePrinter-DsiBLAy1.js → usePrinter-D-sSdR2l.js} +1 -1
  30. package/dist/{vue-data-ui-DB2kdhYH.js → vue-data-ui-Dh3BJvUF.js} +61 -61
  31. package/dist/{vue-data-ui-DbhVASfn.cjs → vue-data-ui-DzVmFW3P.cjs} +1 -1
  32. package/dist/vue-data-ui.cjs +1 -1
  33. package/dist/vue-data-ui.js +1 -1
  34. package/dist/{vue-ui-3d-bar-DHeSFJ5z.js → vue-ui-3d-bar-Ckd-GTWY.js} +171 -168
  35. package/dist/vue-ui-3d-bar-llxfgI9N.cjs +19 -0
  36. package/dist/{vue-ui-accordion-BfDu7hTY.cjs → vue-ui-accordion-2He8z0Sy.cjs} +1 -1
  37. package/dist/{vue-ui-accordion-DBmchkva.js → vue-ui-accordion-DVtmOO3I.js} +3 -3
  38. package/dist/{vue-ui-age-pyramid-CvUCPqxa.js → vue-ui-age-pyramid-BUGAES7K.js} +85 -82
  39. package/dist/vue-ui-age-pyramid-CxBb12yp.cjs +1 -0
  40. package/dist/{vue-ui-annotator-BV9t6ro7.cjs → vue-ui-annotator-BDUanFLb.cjs} +1 -1
  41. package/dist/{vue-ui-annotator-Dr5PLrJx.js → vue-ui-annotator-gIa7-tAI.js} +1 -1
  42. package/dist/vue-ui-bullet-Bg8f_RzX.cjs +34 -0
  43. package/dist/{vue-ui-bullet-D7Uw9tez.js → vue-ui-bullet-DNfzMdcg.js} +92 -89
  44. package/dist/vue-ui-candlestick-CnKPX6xB.cjs +2 -0
  45. package/dist/{vue-ui-candlestick-BFmh-zx1.js → vue-ui-candlestick-jErGIOZA.js} +155 -152
  46. package/dist/{vue-ui-carousel-table-CUhkylz_.js → vue-ui-carousel-table-DHyvpjWL.js} +4 -4
  47. package/dist/{vue-ui-carousel-table-C30Gvanv.cjs → vue-ui-carousel-table-DsY9Mrdg.cjs} +1 -1
  48. package/dist/vue-ui-chestnut-BTCxF3dU.cjs +6 -0
  49. package/dist/{vue-ui-chestnut-C53wdHmR.js → vue-ui-chestnut-kQjk4FqR.js} +186 -183
  50. package/dist/{vue-ui-circle-pack-Bj3sA7RV.js → vue-ui-circle-pack-BQbwIDRa.js} +99 -96
  51. package/dist/vue-ui-circle-pack-D-eMMNzU.cjs +1 -0
  52. package/dist/{vue-ui-cursor-ZBrt-jTo.cjs → vue-ui-cursor-Dd2eSMAz.cjs} +1 -1
  53. package/dist/{vue-ui-cursor-0GY46Ywr.js → vue-ui-cursor-xy62w2ep.js} +2 -2
  54. package/dist/{vue-ui-dashboard-BX787_or.js → vue-ui-dashboard-DPjU-kPn.js} +2 -2
  55. package/dist/{vue-ui-dashboard-pzZD8J2y.cjs → vue-ui-dashboard-nMODKstD.cjs} +1 -1
  56. package/dist/{vue-ui-digits-BvCMwL0L.js → vue-ui-digits-BNTE0Lsb.js} +2 -2
  57. package/dist/{vue-ui-digits-Blb8fghV.cjs → vue-ui-digits-Beuy8wvV.cjs} +1 -1
  58. package/dist/vue-ui-donut-DWKUDr7k.cjs +1 -0
  59. package/dist/vue-ui-donut-evolution-BICtQ8ke.cjs +1 -0
  60. package/dist/{vue-ui-donut-evolution-DRfJVMrP.js → vue-ui-donut-evolution-DfHfXqar.js} +133 -131
  61. package/dist/{vue-ui-donut-yBjSgsTz.js → vue-ui-donut-ipVF2Pk6.js} +158 -155
  62. package/dist/{vue-ui-dumbbell-4-hWZn-o.js → vue-ui-dumbbell-D04To0aO.js} +125 -122
  63. package/dist/vue-ui-dumbbell-DPZYa6RZ.cjs +9 -0
  64. package/dist/{vue-ui-flow-aH6xSdwn.js → vue-ui-flow-DYpBU4gG.js} +96 -93
  65. package/dist/vue-ui-flow-HFjfjzgX.cjs +1 -0
  66. package/dist/vue-ui-funnel-BwClLXO6.cjs +1 -0
  67. package/dist/{vue-ui-funnel-BZy4SvlW.js → vue-ui-funnel-CVQHETom.js} +88 -85
  68. package/dist/vue-ui-galaxy-B0W8yBZU.cjs +1 -0
  69. package/dist/{vue-ui-galaxy-GDXdZqjm.js → vue-ui-galaxy-DseGnRIL.js} +123 -120
  70. package/dist/vue-ui-gauge-0vhiDi19.cjs +1 -0
  71. package/dist/{vue-ui-gauge-CeyHdkuS.js → vue-ui-gauge-B7nCLtyI.js} +86 -83
  72. package/dist/{vue-ui-gizmo-veFxjktw.js → vue-ui-gizmo-C1fpqm2H.js} +3 -3
  73. package/dist/{vue-ui-gizmo-CRTzb1J_.cjs → vue-ui-gizmo-CTMnMH7C.cjs} +1 -1
  74. package/dist/{vue-ui-heatmap-BizLgjJ8.js → vue-ui-heatmap-B0a6TegZ.js} +109 -106
  75. package/dist/vue-ui-heatmap-DjxXVFyU.cjs +1 -0
  76. package/dist/vue-ui-history-plot-CfjWg_3c.cjs +1 -0
  77. package/dist/{vue-ui-history-plot-gzx5uGyY.js → vue-ui-history-plot-DsLgXpZ8.js} +130 -127
  78. package/dist/{vue-ui-kpi-CP08PB51.cjs → vue-ui-kpi-CTsWQvCi.cjs} +1 -1
  79. package/dist/{vue-ui-kpi-MdyAQjdJ.js → vue-ui-kpi-be1EaVNS.js} +3 -3
  80. package/dist/{vue-ui-mini-loader-CYVr1K6S.js → vue-ui-mini-loader-BHm2QQQF.js} +2 -2
  81. package/dist/{vue-ui-mini-loader-BRmtJ6az.cjs → vue-ui-mini-loader-DLdlPE48.cjs} +1 -1
  82. package/dist/{vue-ui-molecule-CJ05ddhf.js → vue-ui-molecule--G2QIMak.js} +147 -144
  83. package/dist/vue-ui-molecule-DQOP_2JN.cjs +1 -0
  84. package/dist/{vue-ui-mood-radar-DG1pF6Ii.js → vue-ui-mood-radar-Bhr5Q9pC.js} +97 -94
  85. package/dist/vue-ui-mood-radar-HxyTIDLP.cjs +1 -0
  86. package/dist/vue-ui-nested-donuts-C0aK_Cmr.cjs +17 -0
  87. package/dist/{vue-ui-nested-donuts-CDjZ6KfI.js → vue-ui-nested-donuts-Dtll0W-x.js} +99 -96
  88. package/dist/{vue-ui-onion-DsskQUiP.js → vue-ui-onion-CRRZ8ajr.js} +105 -102
  89. package/dist/vue-ui-onion-DJFv8ezH.cjs +5 -0
  90. package/dist/vue-ui-parallel-coordinate-plot-BTkf3dkR.cjs +8 -0
  91. package/dist/{vue-ui-parallel-coordinate-plot-D7r71vdp.js → vue-ui-parallel-coordinate-plot-DMk3iobe.js} +97 -94
  92. package/dist/vue-ui-quadrant-B7iHGaqG.cjs +1 -0
  93. package/dist/{vue-ui-quadrant-DCHEhvMX.js → vue-ui-quadrant-EcGC8p0U.js} +155 -152
  94. package/dist/vue-ui-quick-chart-BOla8Yse.cjs +15 -0
  95. package/dist/{vue-ui-quick-chart-BB5b4AQ1.js → vue-ui-quick-chart-D6AS1YSx.js} +164 -161
  96. package/dist/vue-ui-radar-DmM3tCiY.cjs +1 -0
  97. package/dist/{vue-ui-radar-CNEXWSEx.js → vue-ui-radar-LzAasUWm.js} +105 -102
  98. package/dist/{vue-ui-rating-ClvF4LPg.cjs → vue-ui-rating-D9K7meNL.cjs} +1 -1
  99. package/dist/{vue-ui-rating-DJLSl0-4.js → vue-ui-rating-DK4hwg8z.js} +2 -2
  100. package/dist/{vue-ui-relation-circle-Hdzt7fOS.js → vue-ui-relation-circle-CbOCYAmF.js} +127 -124
  101. package/dist/vue-ui-relation-circle-DIJuJZrt.cjs +1 -0
  102. package/dist/vue-ui-rings-BWgF92GG.cjs +2 -0
  103. package/dist/{vue-ui-rings-BAFkqjcL.js → vue-ui-rings-Cqzy5T3m.js} +114 -111
  104. package/dist/{vue-ui-scatter-Ca67EOrI.js → vue-ui-scatter-DXvyWQYL.js} +157 -154
  105. package/dist/vue-ui-scatter-F-gNKXpp.cjs +1 -0
  106. package/dist/{vue-ui-screenshot-CsdnwhSO.js → vue-ui-screenshot-BL75IkNz.js} +1 -1
  107. package/dist/{vue-ui-screenshot-CFcvBOJm.cjs → vue-ui-screenshot-BXngAa8V.cjs} +1 -1
  108. package/dist/{vue-ui-skeleton-CHEZlRpn.js → vue-ui-skeleton-D8r-yAkW.js} +3 -3
  109. package/dist/{vue-ui-skeleton-BBNX7lud.cjs → vue-ui-skeleton-Tk4j6G2D.cjs} +1 -1
  110. package/dist/{vue-ui-smiley-Dth6gRqg.js → vue-ui-smiley-BKWWVHh7.js} +2 -2
  111. package/dist/{vue-ui-smiley-EngC6Vc4.cjs → vue-ui-smiley-BLnMEG6Z.cjs} +1 -1
  112. package/dist/{vue-ui-spark-trend-33sBlF-n.js → vue-ui-spark-trend-Bb7xpmpt.js} +5 -5
  113. package/dist/{vue-ui-spark-trend-DJ8yhFMx.cjs → vue-ui-spark-trend-CqG-PKFp.cjs} +1 -1
  114. package/dist/{vue-ui-sparkbar-D9QLpB7G.cjs → vue-ui-sparkbar-0h661dcM.cjs} +1 -1
  115. package/dist/{vue-ui-sparkbar-mJu95295.js → vue-ui-sparkbar-JIpGYhbq.js} +4 -4
  116. package/dist/vue-ui-sparkgauge-BLglWMCN.cjs +1 -0
  117. package/dist/{vue-ui-sparkgauge-nFFf8h-x.js → vue-ui-sparkgauge-Cc-l_NLU.js} +56 -53
  118. package/dist/{vue-ui-sparkhistogram-Bh6R737O.js → vue-ui-sparkhistogram-BysifQmq.js} +93 -90
  119. package/dist/vue-ui-sparkhistogram-CCbcvIJ1.cjs +1 -0
  120. package/dist/vue-ui-sparkline-CDJX8K9i.cjs +1 -0
  121. package/dist/{vue-ui-sparkline-BfBiA1O5.js → vue-ui-sparkline-CV-N3Wio.js} +109 -106
  122. package/dist/vue-ui-sparkstackbar-Bo4JAlsR.cjs +1 -0
  123. package/dist/{vue-ui-sparkstackbar-BNTFNUIA.js → vue-ui-sparkstackbar-WOO_AbtI.js} +59 -56
  124. package/dist/{vue-ui-stackbar-BbFUifMU.js → vue-ui-stackbar-CP0igpri.js} +136 -133
  125. package/dist/vue-ui-stackbar-D7odU6jb.cjs +6 -0
  126. package/dist/vue-ui-strip-plot-CUqC58Ki.cjs +1 -0
  127. package/dist/{vue-ui-strip-plot-wsxpyqrw.js → vue-ui-strip-plot-_3AJWLnm.js} +127 -124
  128. package/dist/{vue-ui-table-DUokotBj.cjs → vue-ui-table-8O19epjz.cjs} +1 -1
  129. package/dist/{vue-ui-table-CQYM4uPf.js → vue-ui-table-WdE7p5Oy.js} +1 -1
  130. package/dist/{vue-ui-table-heatmap-OYQ9OOzo.js → vue-ui-table-heatmap-CXS6WfTi.js} +4 -4
  131. package/dist/{vue-ui-table-heatmap-Brk58nK_.cjs → vue-ui-table-heatmap-DH5kHmxx.cjs} +1 -1
  132. package/dist/{vue-ui-table-sparkline-DUjDhg8A.js → vue-ui-table-sparkline-CWwjANqk.js} +5 -5
  133. package/dist/{vue-ui-table-sparkline-C9dOsIAB.cjs → vue-ui-table-sparkline-DnvQfr2p.cjs} +1 -1
  134. package/dist/{vue-ui-thermometer-WSMSVcM_.js → vue-ui-thermometer-BxrDTquG.js} +84 -81
  135. package/dist/vue-ui-thermometer-COmtpPaq.cjs +1 -0
  136. package/dist/vue-ui-timer-Bx3W4oUc.cjs +64 -0
  137. package/dist/{vue-ui-timer-DBP_fRcm.js → vue-ui-timer-DjKCOw9A.js} +183 -180
  138. package/dist/vue-ui-tiremarks--XDyJeJg.cjs +1 -0
  139. package/dist/{vue-ui-tiremarks-WWgS2mqw.js → vue-ui-tiremarks-VWxcZxB-.js} +59 -56
  140. package/dist/{vue-ui-treemap-CXoXEuSA.js → vue-ui-treemap-BGFmZcII.js} +123 -120
  141. package/dist/vue-ui-treemap-DTwjydy8.cjs +1 -0
  142. package/dist/vue-ui-vertical-bar-Bpv8mXW2.cjs +4 -0
  143. package/dist/{vue-ui-vertical-bar-COaAa4nz.js → vue-ui-vertical-bar-DC9czKCT.js} +108 -105
  144. package/dist/vue-ui-waffle-B_6ZAnKt.cjs +1 -0
  145. package/dist/{vue-ui-waffle-DD8pT7JN.js → vue-ui-waffle-Cu63K9Iy.js} +107 -104
  146. package/dist/{vue-ui-wheel-BLlKekiu.js → vue-ui-wheel-AOt-pfpa.js} +75 -72
  147. package/dist/vue-ui-wheel-BQM-dxTa.cjs +1 -0
  148. package/dist/vue-ui-word-cloud-Bam3-7P_.cjs +1 -0
  149. package/dist/{vue-ui-word-cloud-CcYtTXW6.js → vue-ui-word-cloud-CrILrx6m.js} +97 -94
  150. package/dist/{vue-ui-xy-DYzfiZnJ.js → vue-ui-xy-BuLymzS3.js} +179 -150
  151. package/dist/vue-ui-xy-CSmObuR7.cjs +3 -0
  152. package/dist/{vue-ui-xy-canvas-CkB7VDhF.cjs → vue-ui-xy-canvas-BQ0Lbxbd.cjs} +2 -2
  153. package/dist/{vue-ui-xy-canvas-DqnK_i0Q.js → vue-ui-xy-canvas-DPnb5mqS.js} +82 -81
  154. package/package.json +1 -1
  155. package/dist/Shape-BN3-_2DI.cjs +0 -1
  156. package/dist/Tooltip-DSPKrQcQ.cjs +0 -1
  157. package/dist/vue-ui-3d-bar-DEu24HHj.cjs +0 -19
  158. package/dist/vue-ui-age-pyramid-CRYYDXFo.cjs +0 -1
  159. package/dist/vue-ui-bullet-Dy71N3Jf.cjs +0 -34
  160. package/dist/vue-ui-candlestick-aZ1YN4hh.cjs +0 -2
  161. package/dist/vue-ui-chestnut-DuycsDaB.cjs +0 -6
  162. package/dist/vue-ui-circle-pack-BFF5_9Sm.cjs +0 -1
  163. package/dist/vue-ui-donut-BO6RWqZ6.cjs +0 -1
  164. package/dist/vue-ui-donut-evolution-BgJMw_a4.cjs +0 -1
  165. package/dist/vue-ui-dumbbell-BSXxNjyK.cjs +0 -9
  166. package/dist/vue-ui-flow-LNlNIRfb.cjs +0 -1
  167. package/dist/vue-ui-funnel-BhDmLkFj.cjs +0 -1
  168. package/dist/vue-ui-galaxy-BcwAAgUh.cjs +0 -1
  169. package/dist/vue-ui-gauge-BCf-2H4T.cjs +0 -1
  170. package/dist/vue-ui-heatmap-Bxhy4dCf.cjs +0 -1
  171. package/dist/vue-ui-history-plot-CTBCFIG0.cjs +0 -1
  172. package/dist/vue-ui-molecule-pTMJG_3k.cjs +0 -1
  173. package/dist/vue-ui-mood-radar-DXLYUXbX.cjs +0 -1
  174. package/dist/vue-ui-nested-donuts-yztsnsjM.cjs +0 -17
  175. package/dist/vue-ui-onion-BgbKMVNe.cjs +0 -5
  176. package/dist/vue-ui-parallel-coordinate-plot-Cha1Em8k.cjs +0 -8
  177. package/dist/vue-ui-quadrant-BzYnR_Hc.cjs +0 -1
  178. package/dist/vue-ui-quick-chart-BcW7URue.cjs +0 -15
  179. package/dist/vue-ui-radar-D-XPVXa9.cjs +0 -1
  180. package/dist/vue-ui-relation-circle-DfxnHEqR.cjs +0 -1
  181. package/dist/vue-ui-rings-C9NFME3F.cjs +0 -2
  182. package/dist/vue-ui-scatter-D0UloS1C.cjs +0 -1
  183. package/dist/vue-ui-sparkgauge-CBCbyOG2.cjs +0 -1
  184. package/dist/vue-ui-sparkhistogram-BstSpbti.cjs +0 -1
  185. package/dist/vue-ui-sparkline-DTRZ-_Qw.cjs +0 -1
  186. package/dist/vue-ui-sparkstackbar-CuU8Vpcv.cjs +0 -1
  187. package/dist/vue-ui-stackbar-B5uNBkxp.cjs +0 -6
  188. package/dist/vue-ui-strip-plot-7G7BAGQM.cjs +0 -1
  189. package/dist/vue-ui-thermometer-VnlcJh4G.cjs +0 -1
  190. package/dist/vue-ui-timer-Bh8RpM2u.cjs +0 -64
  191. package/dist/vue-ui-tiremarks-Ct96o_fd.cjs +0 -1
  192. package/dist/vue-ui-treemap-BfDk53pM.cjs +0 -1
  193. package/dist/vue-ui-vertical-bar-EIy7A0dV.cjs +0 -4
  194. package/dist/vue-ui-waffle-BB3l0zZU.cjs +0 -1
  195. package/dist/vue-ui-wheel-DfpXZJ8A.cjs +0 -1
  196. package/dist/vue-ui-word-cloud-DdaMzF2e.cjs +0 -1
  197. package/dist/vue-ui-xy-B4Mzyy81.cjs +0 -3
@@ -1,22 +1,23 @@
1
- import { computed as v, ref as s, watch as ke, onMounted as Ue, onBeforeUnmount as Xe, createElementBlock as u, openBlock as n, unref as i, normalizeStyle as B, normalizeClass as U, createBlock as C, createCommentVNode as f, createElementVNode as O, createVNode as we, createSlots as Ge, withCtx as g, renderSlot as h, normalizeProps as S, guardReactiveProps as F, Fragment as M, renderList as N, toDisplayString as P, createTextVNode as Ee, nextTick as He } from "vue";
2
- import { u as We, c as je, t as qe, p as $e, a as Je, b as Ke, o as Qe, e as K, d as Ze, X as et, f as R, i as Q, x as Ce, q as tt, r as at, y as lt } from "./index-B9qF6XbP.js";
3
- import { t as ot, u as rt } from "./useResponsive-BWapHhVH.js";
4
- import { _ as nt } from "./Title-D6h1gTvZ.js";
5
- import { u as st, U as ut } from "./usePrinter-DsiBLAy1.js";
6
- import { L as it } from "./Legend-BDyPoYfp.js";
7
- import { D as ct } from "./DataTable-CJN0sipt.js";
8
- import { _ as dt } from "./Tooltip-BonEVaob.js";
9
- import vt from "./vue-ui-skeleton-CHEZlRpn.js";
10
- import ht from "./vue-ui-accordion-DBmchkva.js";
11
- import { u as xe } from "./useNestedProp-g5oKzlVy.js";
12
- import { _ as ft } from "./PackageVersion-DqmHcoqz.js";
13
- import { P as gt } from "./PenAndPaper-6UYizrkQ.js";
14
- import { u as pt } from "./useUserOptionState-BIvW1Kz7.js";
15
- import { _ as yt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
16
- const mt = ["id"], bt = ["xmlns", "viewBox"], kt = ["width", "height"], wt = ["cx", "cy", "r", "stroke", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], $t = ["cx", "cy", "r", "stroke", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], Ct = ["id"], xt = ["stdDeviation"], Tt = ["filter"], _t = ["cx", "cy", "r", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], Ot = ["cx", "cy", "r", "stroke-width", "stroke-dasharray", "stroke-dashoffset", "onMouseenter"], Pt = { key: 2 }, At = ["onMouseenter"], It = ["x", "y", "font-size", "fill", "font-weight"], St = {
1
+ import { computed as v, ref as n, watch as ke, onMounted as Xe, onBeforeUnmount as Ge, createElementBlock as u, openBlock as s, unref as i, normalizeStyle as B, normalizeClass as U, createBlock as C, createCommentVNode as f, createElementVNode as O, createVNode as we, createSlots as Ee, withCtx as g, renderSlot as h, normalizeProps as S, guardReactiveProps as F, Fragment as M, renderList as N, toDisplayString as P, createTextVNode as He, nextTick as We } from "vue";
2
+ import { u as je, c as qe, t as Je, p as $e, a as Ke, b as Qe, o as Ze, e as K, d as et, X as tt, f as R, i as Q, x as Ce, q as at, r as lt, y as ot } from "./index-CZlI7PiS.js";
3
+ import { t as rt, u as st } from "./useResponsive-BWapHhVH.js";
4
+ import { _ as nt } from "./Title-DePxeqVl.js";
5
+ import { u as ut, U as it } from "./usePrinter-D-sSdR2l.js";
6
+ import { L as ct } from "./Legend-Oaw0MY8Y.js";
7
+ import { D as dt } from "./DataTable-D0-zzsJg.js";
8
+ import { _ as vt } from "./Tooltip-DRw9RoFp.js";
9
+ import ht from "./vue-ui-skeleton-D8r-yAkW.js";
10
+ import ft from "./vue-ui-accordion-DVtmOO3I.js";
11
+ import { u as xe } from "./useNestedProp-Cg0NIwr6.js";
12
+ import { _ as gt } from "./PackageVersion-J_USnljf.js";
13
+ import { P as pt } from "./PenAndPaper-CoEXEMcN.js";
14
+ import { u as yt } from "./useUserOptionState-BIvW1Kz7.js";
15
+ import { u as mt } from "./useChartAccessibility-BWojgys7.js";
16
+ import { _ as bt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
17
+ const kt = ["id"], wt = ["xmlns", "viewBox"], $t = ["width", "height"], Ct = ["cx", "cy", "r", "stroke", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], xt = ["cx", "cy", "r", "stroke", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], Tt = ["id"], _t = ["stdDeviation"], Ot = ["filter"], Pt = ["cx", "cy", "r", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], At = ["cx", "cy", "r", "stroke-width", "stroke-dasharray", "stroke-dashoffset", "onMouseenter"], It = { key: 2 }, St = ["onMouseenter"], Ft = ["x", "y", "font-size", "fill", "font-weight"], Mt = {
17
18
  key: 5,
18
19
  class: "vue-data-ui-watermark"
19
- }, Ft = ["onClick"], Mt = ["innerHTML"], Nt = {
20
+ }, Nt = ["onClick"], Rt = ["innerHTML"], Dt = {
20
21
  __name: "vue-ui-onion",
21
22
  props: {
22
23
  config: {
@@ -34,10 +35,10 @@ const mt = ["id"], bt = ["xmlns", "viewBox"], kt = ["width", "height"], wt = ["c
34
35
  },
35
36
  emits: ["selectLegend"],
36
37
  setup(Te, { expose: _e, emit: Oe }) {
37
- const { vue_ui_onion: Pe } = We(), w = Te, D = v(() => !!w.dataset && w.dataset.length), x = s(je()), Ae = s(null), Z = s(0), L = s(!1), X = s(""), y = s([]), T = s(null), ee = s(null), te = s(null), ae = s(null), le = s(null), oe = s(0), re = s(0), ne = s(0), e = v({
38
+ const { vue_ui_onion: Pe } = je(), w = Te, D = v(() => !!w.dataset && w.dataset.length), x = n(qe()), Ae = n(null), Z = n(0), L = n(!1), X = n(""), y = n([]), T = n(null), ee = n(null), te = n(null), ae = n(null), le = n(null), oe = n(0), re = n(0), se = n(0), e = v({
38
39
  get: () => ie(),
39
40
  set: (t) => t
40
- }), { userOptionsVisible: G, setUserOptionsVisibility: se, keepUserOptionState: ue } = pt({ config: e.value });
41
+ }), { userOptionsVisible: G, setUserOptionsVisibility: ne, keepUserOptionState: ue } = yt({ config: e.value }), { svgRef: Ie } = mt({ config: e.value.style.chart.title });
41
42
  function ie() {
42
43
  const t = xe({
43
44
  userConfig: w.config,
@@ -45,22 +46,22 @@ const mt = ["id"], bt = ["xmlns", "viewBox"], kt = ["width", "height"], wt = ["c
45
46
  });
46
47
  return t.theme ? {
47
48
  ...xe({
48
- userConfig: Je.vue_ui_onion[t.theme] || w.config,
49
+ userConfig: Ke.vue_ui_onion[t.theme] || w.config,
49
50
  defaultConfig: t
50
51
  }),
51
- customPalette: qe[t.theme] || $e
52
+ customPalette: Je[t.theme] || $e
52
53
  } : t;
53
54
  }
54
55
  ke(() => w.config, (t) => {
55
- e.value = ie(), G.value = !e.value.userOptions.showOnChartHover, fe(), oe.value += 1, re.value += 1, ne.value += 1, m.value.showTable = e.value.table.show, m.value.showTooltip = e.value.style.chart.tooltip.show;
56
+ e.value = ie(), G.value = !e.value.userOptions.showOnChartHover, fe(), oe.value += 1, re.value += 1, se.value += 1, m.value.showTable = e.value.table.show, m.value.showTooltip = e.value.style.chart.tooltip.show;
56
57
  }, { deep: !0 });
57
- const { isPrinting: ce, isImaging: de, generatePdf: ve, generateImage: he } = st({
58
+ const { isPrinting: ce, isImaging: de, generatePdf: ve, generateImage: he } = ut({
58
59
  elementId: `vue-ui-onion_${x.value}`,
59
60
  fileName: e.value.style.chart.title.text || "vue-ui-onion"
60
- }), Ie = v(() => e.value.userOptions.show && !e.value.style.chart.title.text), Se = v(() => Ke(e.value.customPalette)), m = s({
61
+ }), Se = v(() => e.value.userOptions.show && !e.value.style.chart.title.text), Fe = v(() => Qe(e.value.customPalette)), m = n({
61
62
  showTable: e.value.table.show,
62
63
  showTooltip: e.value.style.chart.tooltip.show
63
- }), r = s({
64
+ }), r = n({
64
65
  height: 512,
65
66
  width: 512,
66
67
  padding: {
@@ -70,17 +71,17 @@ const mt = ["id"], bt = ["xmlns", "viewBox"], kt = ["width", "height"], wt = ["c
70
71
  bottom: 64
71
72
  },
72
73
  minRadius: 64
73
- }), V = s(null);
74
- Ue(() => {
74
+ }), V = n(null);
75
+ Xe(() => {
75
76
  fe();
76
77
  });
77
78
  function fe() {
78
- if (Qe(w.dataset) && K({
79
+ if (Ze(w.dataset) && K({
79
80
  componentName: "VueUiOnion",
80
81
  type: "dataset"
81
82
  }), e.value.responsive) {
82
- const o = ot(() => {
83
- const { width: a, height: l } = rt({
83
+ const o = rt(() => {
84
+ const { width: a, height: l } = st({
84
85
  chart: T.value,
85
86
  title: e.value.style.chart.title.text ? ee.value : null,
86
87
  legend: e.value.style.chart.legend.show ? te.value : null,
@@ -94,7 +95,7 @@ const mt = ["id"], bt = ["xmlns", "viewBox"], kt = ["width", "height"], wt = ["c
94
95
  V.value = new ResizeObserver(o), V.value.observe(T.value.parentNode);
95
96
  }
96
97
  }
97
- Xe(() => {
98
+ Ge(() => {
98
99
  V.value && V.value.disconnect();
99
100
  });
100
101
  const c = v(() => ({
@@ -126,7 +127,7 @@ const mt = ["id"], bt = ["xmlns", "viewBox"], kt = ["width", "height"], wt = ["c
126
127
  ...t,
127
128
  percentage: t.percentage || 0,
128
129
  targetPercentage: t.percentage || 0,
129
- color: Ze(t.color) || Se.value[o] || $e[o],
130
+ color: et(t.color) || Fe.value[o] || $e[o],
130
131
  id: a,
131
132
  shape: "circle",
132
133
  opacity: y.value.includes(a) ? 0.5 : 1,
@@ -134,12 +135,12 @@ const mt = ["id"], bt = ["xmlns", "viewBox"], kt = ["width", "height"], wt = ["c
134
135
  segregate: () => ge(a),
135
136
  isSegregated: y.value.includes(a)
136
137
  };
137
- }))), A = s(d.value), Fe = v(() => e.value.useStartAnimation), Me = s(null), Ne = v(() => Math.max(...d.value.map((t) => t.percentage))), E = s(!1);
138
- ke(() => d.value, Re, { immediate: !0 });
139
- function Re() {
140
- if (Fe.value && !E.value) {
138
+ }))), A = n(d.value), Me = v(() => e.value.useStartAnimation), Ne = n(null), Re = v(() => Math.max(...d.value.map((t) => t.percentage))), E = n(!1);
139
+ ke(() => d.value, De, { immediate: !0 });
140
+ function De() {
141
+ if (Me.value && !E.value) {
141
142
  let o = function() {
142
- t >= Ne.value ? (cancelAnimationFrame(Me.value), A.value = d.value, E.value = !0) : (A.value = d.value.map((a) => ({
143
+ t >= Re.value ? (cancelAnimationFrame(Ne.value), A.value = d.value, E.value = !0) : (A.value = d.value.map((a) => ({
143
144
  ...a,
144
145
  percentage: t < a.targetPercentage ? t : a.targetPercentage
145
146
  })), t += 1, requestAnimationFrame(o), E.value = !0);
@@ -153,30 +154,30 @@ const mt = ["id"], bt = ["xmlns", "viewBox"], kt = ["width", "height"], wt = ["c
153
154
  } else
154
155
  A.value = d.value;
155
156
  }
156
- const De = v(() => ({
157
+ const Le = v(() => ({
157
158
  cy: "onion-div-legend",
158
159
  backgroundColor: e.value.style.chart.legend.backgroundColor,
159
160
  color: e.value.style.chart.legend.color,
160
161
  fontSize: e.value.style.chart.legend.fontSize,
161
162
  paddingBottom: 12,
162
163
  fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
163
- })), Le = v(() => d.value.filter((t) => !y.value.includes(t.id)).length), $ = v(() => {
164
+ })), Ve = v(() => d.value.filter((t) => !y.value.includes(t.id)).length), $ = v(() => {
164
165
  const t = Math.min(c.value.width, c.value.height) / 2 / d.value.length;
165
166
  return {
166
167
  gutter: (t > e.value.style.chart.layout.maxThickness ? e.value.style.chart.layout.maxThickness : t) * e.value.style.chart.layout.gutter.width,
167
168
  track: (t > e.value.style.chart.layout.maxThickness ? e.value.style.chart.layout.maxThickness : t) * e.value.style.chart.layout.track.width
168
169
  };
169
170
  }), b = v(() => A.value.filter((t) => !y.value.includes(t.id)).map((t, o) => {
170
- const a = (c.value.maxRadius - $.value.track) / Le.value / 2 * (1 + o), l = c.value.centerY - a;
171
+ const a = (c.value.maxRadius - $.value.track) / Ve.value / 2 * (1 + o), l = c.value.centerY - a;
171
172
  return {
172
173
  percentage: t.percentage || 0,
173
174
  ...t,
174
175
  labelY: l,
175
176
  radius: a,
176
- path: Ve(a, t.percentage || 0)
177
+ path: ze(a, t.percentage || 0)
177
178
  };
178
179
  }));
179
- function Ve(t, o) {
180
+ function ze(t, o) {
180
181
  const a = 2 * Math.PI * t, l = a * 0.75, p = `${l} ${a}`, I = l * (1 - o / 100);
181
182
  return {
182
183
  bgDashArray: `${l} ${a}`,
@@ -191,11 +192,11 @@ const mt = ["id"], bt = ["xmlns", "viewBox"], kt = ["width", "height"], wt = ["c
191
192
  `.trim()
192
193
  };
193
194
  }
194
- const ze = Oe;
195
+ const Ye = Oe;
195
196
  function ge(t) {
196
- y.value.includes(t) ? y.value = y.value.filter((o) => o !== t) : y.value.push(t), ze("selectLegend", b.value);
197
+ y.value.includes(t) ? y.value = y.value.filter((o) => o !== t) : y.value.push(t), Ye("selectLegend", b.value);
197
198
  }
198
- function Ye() {
199
+ function Be() {
199
200
  return b.value;
200
201
  }
201
202
  const H = v(() => {
@@ -226,16 +227,16 @@ const mt = ["id"], bt = ["xmlns", "viewBox"], kt = ["width", "height"], wt = ["c
226
227
  return { head: t, body: o, config: a, colNames: t };
227
228
  });
228
229
  function pe() {
229
- He(() => {
230
- const t = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], o = H.value.head, a = H.value.body, l = t.concat([o]).concat(a), p = tt(l);
231
- at({ csvContent: p, title: e.value.style.chart.title.text || "vue-ui-onion" });
230
+ We(() => {
231
+ const t = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], o = H.value.head, a = H.value.body, l = t.concat([o]).concat(a), p = at(l);
232
+ lt({ csvContent: p, title: e.value.style.chart.title.text || "vue-ui-onion" });
232
233
  });
233
234
  }
234
- const k = s(void 0), _ = s(!1);
235
- function Be(t) {
235
+ const k = n(void 0), _ = n(!1);
236
+ function Ue(t) {
236
237
  _.value = t, Z.value += 1;
237
238
  }
238
- const W = s(null);
239
+ const W = n(null);
239
240
  function ye({ datapoint: t, seriesIndex: o, show: a = !0 }) {
240
241
  const l = t.absoluteIndex;
241
242
  k.value = o, W.value = {
@@ -246,7 +247,7 @@ const mt = ["id"], bt = ["xmlns", "viewBox"], kt = ["width", "height"], wt = ["c
246
247
  }, L.value = a;
247
248
  let p = "";
248
249
  const I = e.value.style.chart.tooltip.customFormat;
249
- if (Ce(I) && lt(() => I({
250
+ if (Ce(I) && ot(() => I({
250
251
  seriesIndex: l,
251
252
  datapoint: t,
252
253
  series: d.value,
@@ -279,28 +280,28 @@ const mt = ["id"], bt = ["xmlns", "viewBox"], kt = ["width", "height"], wt = ["c
279
280
  function be() {
280
281
  m.value.showTooltip = !m.value.showTooltip;
281
282
  }
282
- const Y = s(!1);
283
+ const Y = n(!1);
283
284
  function j() {
284
285
  Y.value = !Y.value;
285
286
  }
286
287
  return _e({
287
- getData: Ye,
288
+ getData: Be,
288
289
  generatePdf: ve,
289
290
  generateCsv: pe,
290
291
  generateImage: he,
291
292
  toggleTable: me,
292
293
  toggleTooltip: be,
293
294
  toggleAnnotator: j
294
- }), (t, o) => (n(), u("div", {
295
+ }), (t, o) => (s(), u("div", {
295
296
  class: U(`vue-ui-onion ${_.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
296
297
  ref_key: "onionChart",
297
298
  ref: T,
298
299
  id: `vue-ui-onion_${x.value}`,
299
300
  style: B(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height: 100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
300
- onMouseenter: o[4] || (o[4] = () => i(se)(!0)),
301
- onMouseleave: o[5] || (o[5] = () => i(se)(!1))
301
+ onMouseenter: o[4] || (o[4] = () => i(ne)(!0)),
302
+ onMouseleave: o[5] || (o[5] = () => i(ne)(!1))
302
303
  }, [
303
- e.value.userOptions.buttons.annotator ? (n(), C(gt, {
304
+ e.value.userOptions.buttons.annotator ? (s(), C(pt, {
304
305
  key: 0,
305
306
  parent: T.value,
306
307
  backgroundColor: e.value.style.chart.backgroundColor,
@@ -308,20 +309,20 @@ const mt = ["id"], bt = ["xmlns", "viewBox"], kt = ["width", "height"], wt = ["c
308
309
  active: Y.value,
309
310
  onClose: j
310
311
  }, null, 8, ["parent", "backgroundColor", "color", "active"])) : f("", !0),
311
- Ie.value ? (n(), u("div", {
312
+ Se.value ? (s(), u("div", {
312
313
  key: 1,
313
314
  ref_key: "noTitle",
314
315
  ref: le,
315
316
  class: "vue-data-ui-no-title-space",
316
317
  style: "height:36px; width: 100%;background:transparent"
317
318
  }, null, 512)) : f("", !0),
318
- e.value.style.chart.title.text ? (n(), u("div", {
319
+ e.value.style.chart.title.text ? (s(), u("div", {
319
320
  key: 2,
320
321
  ref_key: "chartTitle",
321
322
  ref: ee,
322
323
  style: "width:100%;background:transparent"
323
324
  }, [
324
- (n(), C(nt, {
325
+ (s(), C(nt, {
325
326
  key: `title_${oe.value}`,
326
327
  config: {
327
328
  title: {
@@ -335,7 +336,7 @@ const mt = ["id"], bt = ["xmlns", "viewBox"], kt = ["width", "height"], wt = ["c
335
336
  }
336
337
  }, null, 8, ["config"]))
337
338
  ], 512)) : f("", !0),
338
- e.value.userOptions.show && D.value && (i(ue) || i(G)) ? (n(), C(ut, {
339
+ e.value.userOptions.show && D.value && (i(ue) || i(G)) ? (s(), C(it, {
339
340
  ref_key: "details",
340
341
  ref: Ae,
341
342
  key: `user_options${Z.value}`,
@@ -357,7 +358,7 @@ const mt = ["id"], bt = ["xmlns", "viewBox"], kt = ["width", "height"], wt = ["c
357
358
  position: e.value.userOptions.position,
358
359
  hasAnnotator: e.value.userOptions.buttons.annotator,
359
360
  isAnnotation: Y.value,
360
- onToggleFullscreen: Be,
361
+ onToggleFullscreen: Ue,
361
362
  onGeneratePdf: i(ve),
362
363
  onGenerateCsv: pe,
363
364
  onGenerateImage: i(he),
@@ -367,7 +368,7 @@ const mt = ["id"], bt = ["xmlns", "viewBox"], kt = ["width", "height"], wt = ["c
367
368
  style: B({
368
369
  visibility: i(ue) ? i(G) ? "visible" : "hidden" : "visible"
369
370
  })
370
- }, Ge({ _: 2 }, [
371
+ }, Ee({ _: 2 }, [
371
372
  t.$slots.optionTooltip ? {
372
373
  name: "optionTooltip",
373
374
  fn: g(() => [
@@ -418,15 +419,17 @@ const mt = ["id"], bt = ["xmlns", "viewBox"], kt = ["width", "height"], wt = ["c
418
419
  key: "6"
419
420
  } : void 0
420
421
  ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : f("", !0),
421
- D.value ? (n(), u("svg", {
422
+ D.value ? (s(), u("svg", {
422
423
  key: 4,
423
- xmlns: i(et),
424
+ ref_key: "svgRef",
425
+ ref: Ie,
426
+ xmlns: i(tt),
424
427
  class: U({ "vue-data-ui-fullscreen--on": _.value, "vue-data-ui-fulscreen--off": !_.value }),
425
428
  viewBox: `0 0 ${r.value.width <= 0 ? 10 : r.value.width} ${r.value.height <= 0 ? 10 : r.value.height}`,
426
429
  style: B(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
427
430
  }, [
428
- we(ft),
429
- t.$slots["chart-background"] ? (n(), u("foreignObject", {
431
+ we(gt),
432
+ t.$slots["chart-background"] ? (s(), u("foreignObject", {
430
433
  key: 0,
431
434
  x: 0,
432
435
  y: 0,
@@ -437,8 +440,8 @@ const mt = ["id"], bt = ["xmlns", "viewBox"], kt = ["width", "height"], wt = ["c
437
440
  }
438
441
  }, [
439
442
  h(t.$slots, "chart-background", {}, void 0, !0)
440
- ], 8, kt)) : f("", !0),
441
- (n(!0), u(M, null, N(b.value, (a, l) => (n(), u("circle", {
443
+ ], 8, $t)) : f("", !0),
444
+ (s(!0), u(M, null, N(b.value, (a, l) => (s(), u("circle", {
442
445
  cx: c.value.centerX,
443
446
  cy: c.value.centerY,
444
447
  r: a.radius <= 0 ? 1e-4 : a.radius,
@@ -450,8 +453,8 @@ const mt = ["id"], bt = ["xmlns", "viewBox"], kt = ["width", "height"], wt = ["c
450
453
  "stroke-linecap": "round",
451
454
  class: U({ "vue-ui-onion-path": !0, "vue-ui-onion-blur": e.value.useBlurOnHover && ![null, void 0].includes(k.value) && k.value !== l }),
452
455
  style: { transform: "rotate(-90deg)", "transform-origin": "50% 50%" }
453
- }, null, 10, wt))), 256)),
454
- (n(!0), u(M, null, N(b.value, (a, l) => (n(), u("circle", {
456
+ }, null, 10, Ct))), 256)),
457
+ (s(!0), u(M, null, N(b.value, (a, l) => (s(), u("circle", {
455
458
  cx: c.value.centerX,
456
459
  cy: c.value.centerY,
457
460
  r: a.radius < 0 ? 1e-4 : a.radius,
@@ -463,7 +466,7 @@ const mt = ["id"], bt = ["xmlns", "viewBox"], kt = ["width", "height"], wt = ["c
463
466
  class: U({ "vue-ui-onion-path": !0, "vue-ui-onion-blur": e.value.useBlurOnHover && ![null, void 0].includes(k.value) && k.value !== l }),
464
467
  "stroke-linecap": "round",
465
468
  style: { transform: "rotate(-90deg)", "transform-origin": "50% 50%" }
466
- }, null, 10, $t))), 256)),
469
+ }, null, 10, xt))), 256)),
467
470
  O("defs", null, [
468
471
  O("filter", {
469
472
  id: `blur_${x.value}`,
@@ -475,14 +478,14 @@ const mt = ["id"], bt = ["xmlns", "viewBox"], kt = ["width", "height"], wt = ["c
475
478
  O("feGaussianBlur", {
476
479
  in: "SourceGraphic",
477
480
  stdDeviation: 100 / e.value.style.chart.gradientIntensity
478
- }, null, 8, xt)
479
- ], 8, Ct)
481
+ }, null, 8, _t)
482
+ ], 8, Tt)
480
483
  ]),
481
- e.value.style.chart.useGradient ? (n(), u("g", {
484
+ e.value.style.chart.useGradient ? (s(), u("g", {
482
485
  key: 1,
483
486
  filter: `url(#blur_${x.value})`
484
487
  }, [
485
- (n(!0), u(M, null, N(b.value, (a, l) => (n(), u("circle", {
488
+ (s(!0), u(M, null, N(b.value, (a, l) => (s(), u("circle", {
486
489
  cx: c.value.centerX,
487
490
  cy: c.value.centerY,
488
491
  r: a.radius <= 0 ? 1e-4 : a.radius,
@@ -493,9 +496,9 @@ const mt = ["id"], bt = ["xmlns", "viewBox"], kt = ["width", "height"], wt = ["c
493
496
  "stroke-dasharray": a.path.dashArray,
494
497
  "stroke-dashoffset": a.path.dashOffset,
495
498
  style: { transform: "rotate(-90deg)", "transform-origin": "50% 50%" }
496
- }, null, 8, _t))), 256))
497
- ], 8, Tt)) : f("", !0),
498
- (n(!0), u(M, null, N(b.value, (a, l) => (n(), u("circle", {
499
+ }, null, 8, Pt))), 256))
500
+ ], 8, Ot)) : f("", !0),
501
+ (s(!0), u(M, null, N(b.value, (a, l) => (s(), u("circle", {
499
502
  cx: c.value.centerX,
500
503
  cy: c.value.centerY,
501
504
  r: a.radius <= 0 ? 1e-4 : a.radius,
@@ -515,9 +518,9 @@ const mt = ["id"], bt = ["xmlns", "viewBox"], kt = ["width", "height"], wt = ["c
515
518
  onMouseleave: o[0] || (o[0] = (p) => {
516
519
  k.value = void 0, L.value = !1;
517
520
  })
518
- }, null, 40, Ot))), 256)),
519
- e.value.style.chart.layout.labels.show ? (n(), u("g", Pt, [
520
- (n(!0), u(M, null, N(b.value, (a, l) => (n(), u("g", {
521
+ }, null, 40, At))), 256)),
522
+ e.value.style.chart.layout.labels.show ? (s(), u("g", It, [
523
+ (s(!0), u(M, null, N(b.value, (a, l) => (s(), u("g", {
521
524
  onMouseenter: (p) => ye({
522
525
  datapoint: a,
523
526
  show: !0,
@@ -527,7 +530,7 @@ const mt = ["id"], bt = ["xmlns", "viewBox"], kt = ["width", "height"], wt = ["c
527
530
  k.value = void 0, L.value = !1;
528
531
  })
529
532
  }, [
530
- y.value.includes(a.id) ? f("", !0) : (n(), u("text", {
533
+ y.value.includes(a.id) ? f("", !0) : (s(), u("text", {
531
534
  key: 0,
532
535
  x: r.value.width / 2 - $.value.gutter * 0.8 + e.value.style.chart.layout.labels.offsetX,
533
536
  y: a.labelY + e.value.style.chart.layout.labels.offsetY,
@@ -559,15 +562,15 @@ const mt = ["id"], bt = ["xmlns", "viewBox"], kt = ["width", "height"], wt = ["c
559
562
  r: e.value.style.chart.layout.labels.roundingValue
560
563
  }),
561
564
  { datapoint: a, seriesIndex: l }
562
- )})` : ""}`), 9, It))
563
- ], 40, At))), 256))
565
+ )})` : ""}`), 9, Ft))
566
+ ], 40, St))), 256))
564
567
  ])) : f("", !0),
565
568
  h(t.$slots, "svg", { svg: r.value }, void 0, !0)
566
- ], 14, bt)) : f("", !0),
567
- t.$slots.watermark ? (n(), u("div", St, [
569
+ ], 14, wt)) : f("", !0),
570
+ t.$slots.watermark ? (s(), u("div", Mt, [
568
571
  h(t.$slots, "watermark", S(F({ isPrinting: i(ce) || i(de) })), void 0, !0)
569
572
  ])) : f("", !0),
570
- D.value ? f("", !0) : (n(), C(vt, {
573
+ D.value ? f("", !0) : (s(), C(ht, {
571
574
  key: 6,
572
575
  config: {
573
576
  type: "onion",
@@ -583,10 +586,10 @@ const mt = ["id"], bt = ["xmlns", "viewBox"], kt = ["width", "height"], wt = ["c
583
586
  ref_key: "chartLegend",
584
587
  ref: te
585
588
  }, [
586
- e.value.style.chart.legend.show ? (n(), C(it, {
587
- key: `legend_${ne.value}`,
589
+ e.value.style.chart.legend.show ? (s(), C(ct, {
590
+ key: `legend_${se.value}`,
588
591
  legendSet: d.value,
589
- config: De.value,
592
+ config: Le.value,
590
593
  onClickMarker: o[2] || (o[2] = ({ legend: a }) => ge(a.id))
591
594
  }, {
592
595
  item: g(({ legend: a }) => [
@@ -594,7 +597,7 @@ const mt = ["id"], bt = ["xmlns", "viewBox"], kt = ["width", "height"], wt = ["c
594
597
  "data-cy-legend-item": "",
595
598
  onClick: (l) => a.segregate(),
596
599
  style: B(`opacity:${y.value.includes(a.id) ? 0.5 : 1}`)
597
- }, P(a.name ? a.name + ": " : "") + " " + P((a.percentage || 0).toFixed(e.value.style.chart.legend.roundingPercentage)) + "% ", 13, Ft)
600
+ }, P(a.name ? a.name + ": " : "") + " " + P((a.percentage || 0).toFixed(e.value.style.chart.legend.roundingPercentage)) + "% ", 13, Nt)
598
601
  ]),
599
602
  _: 1
600
603
  }, 8, ["legendSet", "config"])) : h(t.$slots, "legend", {
@@ -602,7 +605,7 @@ const mt = ["id"], bt = ["xmlns", "viewBox"], kt = ["width", "height"], wt = ["c
602
605
  legend: d.value
603
606
  }, void 0, !0)
604
607
  ], 512),
605
- t.$slots.source ? (n(), u("div", {
608
+ t.$slots.source ? (s(), u("div", {
606
609
  key: 7,
607
610
  ref_key: "source",
608
611
  ref: ae,
@@ -610,7 +613,7 @@ const mt = ["id"], bt = ["xmlns", "viewBox"], kt = ["width", "height"], wt = ["c
610
613
  }, [
611
614
  h(t.$slots, "source", {}, void 0, !0)
612
615
  ], 512)) : f("", !0),
613
- we(dt, {
616
+ we(vt, {
614
617
  show: m.value.showTooltip && L.value,
615
618
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
616
619
  color: e.value.style.chart.tooltip.color,
@@ -634,7 +637,7 @@ const mt = ["id"], bt = ["xmlns", "viewBox"], kt = ["width", "height"], wt = ["c
634
637
  ]),
635
638
  _: 3
636
639
  }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
637
- D.value ? (n(), C(ht, {
640
+ D.value ? (s(), C(ft, {
638
641
  key: 8,
639
642
  hideDetails: "",
640
643
  config: {
@@ -651,7 +654,7 @@ const mt = ["id"], bt = ["xmlns", "viewBox"], kt = ["width", "height"], wt = ["c
651
654
  }
652
655
  }, {
653
656
  content: g(() => [
654
- (n(), C(ct, {
657
+ (s(), C(dt, {
655
658
  key: `table_${re.value}`,
656
659
  colNames: z.value.colNames,
657
660
  head: z.value.head,
@@ -661,19 +664,19 @@ const mt = ["id"], bt = ["xmlns", "viewBox"], kt = ["width", "height"], wt = ["c
661
664
  onClose: o[3] || (o[3] = (a) => m.value.showTable = !1)
662
665
  }, {
663
666
  th: g(({ th: a }) => [
664
- Ee(P(a), 1)
667
+ He(P(a), 1)
665
668
  ]),
666
669
  td: g(({ td: a }) => [
667
- O("div", { innerHTML: a }, null, 8, Mt)
670
+ O("div", { innerHTML: a }, null, 8, Rt)
668
671
  ]),
669
672
  _: 1
670
673
  }, 8, ["colNames", "head", "body", "config", "title"]))
671
674
  ]),
672
675
  _: 1
673
676
  }, 8, ["config"])) : f("", !0)
674
- ], 46, mt));
677
+ ], 46, kt));
675
678
  }
676
- }, Jt = /* @__PURE__ */ yt(Nt, [["__scopeId", "data-v-3e7f7b99"]]);
679
+ }, Zt = /* @__PURE__ */ bt(Dt, [["__scopeId", "data-v-4407a21a"]]);
677
680
  export {
678
- Jt as default
681
+ Zt as default
679
682
  };
@@ -0,0 +1,5 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),u=require("./index-DD4PT0Pl.cjs"),le=require("./useResponsive-YQYQrAZ_.cjs"),$e=require("./Title-BQSh4ukk.cjs"),ae=require("./usePrinter-BtJq2wwh.cjs"),xe=require("./Legend-CEw2uq9s.cjs"),Be=require("./DataTable-CaD8j-SL.cjs"),Te=require("./Tooltip-DtqrGu-Q.cjs"),Se=require("./vue-ui-skeleton-Tk4j6G2D.cjs"),Pe=require("./vue-ui-accordion-2He8z0Sy.cjs"),oe=require("./useNestedProp-DU7JFxpL.cjs"),Oe=require("./PackageVersion-CCgJTyH9.cjs"),Ne=require("./PenAndPaper-DvNBHCpq.cjs"),_e=require("./useUserOptionState-BgepsfED.cjs"),Ve=require("./useChartAccessibility-Cm7nkzTG.cjs"),Ae=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Fe=["id"],Ee=["xmlns","viewBox"],Ie=["width","height"],Me=["cx","cy","r","stroke","stroke-width","stroke-dasharray","stroke-dashoffset"],Le=["cx","cy","r","stroke","stroke-width","stroke-dasharray","stroke-dashoffset"],Re=["id"],ze=["stdDeviation"],De=["filter"],qe=["cx","cy","r","stroke-width","stroke-dasharray","stroke-dashoffset"],Ue=["cx","cy","r","stroke-width","stroke-dasharray","stroke-dashoffset","onMouseenter"],Ye={key:2},Xe=["onMouseenter"],Ge=["x","y","font-size","fill","font-weight"],He={key:5,class:"vue-data-ui-watermark"},je=["onClick"],We=["innerHTML"],Je={__name:"vue-ui-onion",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend"],setup(re,{expose:ne,emit:ue}){const{vue_ui_onion:se}=u.useConfig(),f=re,C=e.computed(()=>!!f.dataset&&f.dataset.length),m=e.ref(u.createUid()),ie=e.ref(null),E=e.ref(0),$=e.ref(!1),S=e.ref(""),d=e.ref([]),y=e.ref(null),I=e.ref(null),M=e.ref(null),L=e.ref(null),R=e.ref(null),z=e.ref(0),D=e.ref(0),q=e.ref(0),t=e.computed({get:()=>X(),set:l=>l}),{userOptionsVisible:P,setUserOptionsVisibility:U,keepUserOptionState:Y}=_e.useUserOptionState({config:t.value}),{svgRef:ce}=Ve.useChartAccessibility({config:t.value.style.chart.title});function X(){const l=oe.useNestedProp({userConfig:f.config,defaultConfig:se});return l.theme?{...oe.useNestedProp({userConfig:u.themes.vue_ui_onion[l.theme]||f.config,defaultConfig:l}),customPalette:u.themePalettes[l.theme]||u.palette}:l}e.watch(()=>f.config,l=>{t.value=X(),P.value=!t.value.userOptions.showOnChartHover,J(),z.value+=1,D.value+=1,q.value+=1,v.value.showTable=t.value.table.show,v.value.showTooltip=t.value.style.chart.tooltip.show},{deep:!0});const{isPrinting:G,isImaging:H,generatePdf:j,generateImage:W}=ae.usePrinter({elementId:`vue-ui-onion_${m.value}`,fileName:t.value.style.chart.title.text||"vue-ui-onion"}),de=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),ve=e.computed(()=>u.convertCustomPalette(t.value.customPalette)),v=e.ref({showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show}),n=e.ref({height:512,width:512,padding:{top:64,left:64,right:64,bottom:64},minRadius:64}),x=e.ref(null);e.onMounted(()=>{J()});function J(){if(u.objectIsEmpty(f.dataset)&&u.error({componentName:"VueUiOnion",type:"dataset"}),t.value.responsive){const r=le.throttle(()=>{const{width:a,height:o}=le.useResponsive({chart:y.value,title:t.value.style.chart.title.text?I.value:null,legend:t.value.style.chart.legend.show?M.value:null,source:L.value,noTitle:R.value});requestAnimationFrame(()=>{n.value.width=a,n.value.height=o,n.value.padding.top=Math.max(a,o)*.125,n.value.padding.right=Math.max(a,o)*.125,n.value.padding.bottom=Math.max(a,o)*.125,n.value.padding.left=Math.max(a,o)*.125,n.value.minRadius=Math.min(a,o)*.125})});x.value=new ResizeObserver(r),x.value.observe(y.value.parentNode)}}e.onBeforeUnmount(()=>{x.value&&x.value.disconnect()});const s=e.computed(()=>({top:n.value.padding.top,left:n.value.padding.left,right:n.value.width-n.value.padding.right,bottom:n.value.height-n.value.padding.bottom,centerX:n.value.width/2,centerY:n.value.height/2,width:n.value.width-n.value.padding.right-n.value.padding.left,height:n.value.height-n.value.padding.bottom-n.value.padding.top,minRadius:n.value.minRadius,maxRadius:Math.min(n.value.width,n.value.height)-n.value.padding.top*2})),i=e.computed(()=>(f.dataset.forEach((l,r)=>{[null,void 0].includes(l.name)&&u.error({componentName:"VueUiOnion",type:"datasetSerieAttribute",property:"name",index:r}),[void 0].includes(l.percentage)&&u.error({componentName:"VueUiOnion",type:"datasetSerieAttribute",property:"percentage",index:r})}),f.dataset.map((l,r)=>{const a=`onion_serie_${r}_${m.value}`;return{...l,percentage:l.percentage||0,targetPercentage:l.percentage||0,color:u.convertColorToHex(l.color)||ve.value[r]||u.palette[r],id:a,shape:"circle",opacity:d.value.includes(a)?.5:1,absoluteIndex:r,segregate:()=>K(a),isSegregated:d.value.includes(a)}}))),k=e.ref(i.value),he=e.computed(()=>t.value.useStartAnimation),pe=e.ref(null),fe=e.computed(()=>Math.max(...i.value.map(l=>l.percentage))),O=e.ref(!1);e.watch(()=>i.value,ge,{immediate:!0});function ge(){if(he.value&&!O.value){let r=function(){l>=fe.value?(cancelAnimationFrame(pe.value),k.value=i.value,O.value=!0):(k.value=i.value.map(a=>({...a,percentage:l<a.targetPercentage?l:a.targetPercentage})),l+=1,requestAnimationFrame(r),O.value=!0)};k.value=i.value.map(a=>({...a,percentage:0}));let l=0;r()}else k.value=i.value}const me=e.computed(()=>({cy:"onion-div-legend",backgroundColor:t.value.style.chart.legend.backgroundColor,color:t.value.style.chart.legend.color,fontSize:t.value.style.chart.legend.fontSize,paddingBottom:12,fontWeight:t.value.style.chart.legend.bold?"bold":""})),ye=e.computed(()=>i.value.filter(l=>!d.value.includes(l.id)).length),g=e.computed(()=>{const l=Math.min(s.value.width,s.value.height)/2/i.value.length;return{gutter:(l>t.value.style.chart.layout.maxThickness?t.value.style.chart.layout.maxThickness:l)*t.value.style.chart.layout.gutter.width,track:(l>t.value.style.chart.layout.maxThickness?t.value.style.chart.layout.maxThickness:l)*t.value.style.chart.layout.track.width}}),h=e.computed(()=>k.value.filter(l=>!d.value.includes(l.id)).map((l,r)=>{const a=(s.value.maxRadius-g.value.track)/ye.value/2*(1+r),o=s.value.centerY-a;return{percentage:l.percentage||0,...l,labelY:o,radius:a,path:be(a,l.percentage||0)}}));function be(l,r){const a=2*Math.PI*l,o=a*.75,c=`${o} ${a}`,w=o*(1-r/100);return{bgDashArray:`${o} ${a}`,bgDashOffset:0,dashArray:c,dashOffset:w,fullOffset:0,active:`
2
+ M ${s.value.centerX},${s.value.centerY-l}
3
+ A ${l},${l} 0 1 1
4
+ ${s.value.centerX+l*Math.cos(Math.PI*3/4)},${s.value.centerY+l*Math.sin(Math.PI*3/4)}
5
+ `.trim()}}const ke=ue;function K(l){d.value.includes(l)?d.value=d.value.filter(r=>r!==l):d.value.push(l),ke("selectLegend",h.value)}function we(){return h.value}const N=e.computed(()=>{const l=[t.value.table.translations.serie,t.value.table.translations.percentage,t.value.table.translations.value],r=h.value.map(a=>[a.name,a.percentage,a.value]);return{head:l,body:r}}),B=e.computed(()=>{const l=N.value.head,r=h.value.map(o=>[`<span style="color:${o.color}">⬤</span> ${o.name}`,`${Number(o.percentage??0).toFixed(t.value.table.td.roundingPercentage).toLocaleString()}%`,`${o.prefix||""}${[null,void 0,NaN,"NaN"].includes(o.value)?"-":o.value.toFixed(t.value.table.td.roundingValue).toLocaleString()}${o.suffix||""}`]),a={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint};return{head:l,body:r,config:a,colNames:l}});function Q(){e.nextTick(()=>{const l=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[""]],r=N.value.head,a=N.value.body,o=l.concat([r]).concat(a),c=u.createCsvContent(o);u.downloadCsv({csvContent:c,title:t.value.style.chart.title.text||"vue-ui-onion"})})}const p=e.ref(void 0),b=e.ref(!1);function Ce(l){b.value=l,E.value+=1}const _=e.ref(null);function Z({datapoint:l,seriesIndex:r,show:a=!0}){const o=l.absoluteIndex;p.value=r,_.value={datapoint:l,seriesIndex:o,series:i.value,config:t.value},$.value=a;let c="";const w=t.value.style.chart.tooltip.customFormat;if(u.isFunction(w)&&u.functionReturnsString(()=>w({seriesIndex:o,datapoint:l,series:i.value,config:t.value})))S.value=w({seriesIndex:o,datapoint:l,series:i.value,config:t.value});else{const A=t.value.style.chart.tooltip.showPercentage,F=t.value.style.chart.tooltip.showValue;c+=`<div style="width: 100%; border-bottom: 1px solid ${t.value.style.chart.tooltip.borderColor}; padding-bottom: 6px;margin-bottom:3px;display:flex;flex-direction:row;gap:3px;align-items:center"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${l.color}"/></svg><span></span>${l.name}</span></div>`,c+=`<div style="width:100%;text-align:left;"><b>${A?u.dataLabel({p:"",v:l.percentage,s:"%",r:t.value.style.chart.tooltip.roundingPercentage}):""}</b> ${A&&F?"(":""}${F?u.applyDataLabel(t.value.style.chart.layout.labels.value.formatter,l.value,u.dataLabel({p:l.prefix||"",v:l.value,s:l.suffix||"",r:t.value.style.chart.tooltip.roundingValue}),{datapoint:l,seriesIndex:r}):""}${A&&F?")":""}</div>`,S.value=`<div>${c}</div>`}}function ee(){v.value.showTable=!v.value.showTable}function te(){v.value.showTooltip=!v.value.showTooltip}const T=e.ref(!1);function V(){T.value=!T.value}return ne({getData:we,generatePdf:j,generateCsv:Q,generateImage:W,toggleTable:ee,toggleTooltip:te,toggleAnnotator:V}),(l,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`vue-ui-onion ${b.value?"vue-data-ui-wrapper-fullscreen":""} ${t.value.useCssAnimation?"":"vue-ui-dna"}`),ref_key:"onionChart",ref:y,id:`vue-ui-onion_${m.value}`,style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; ${t.value.responsive?"height: 100%;":""} text-align:center;background:${t.value.style.chart.backgroundColor}`),onMouseenter:r[4]||(r[4]=()=>e.unref(U)(!0)),onMouseleave:r[5]||(r[5]=()=>e.unref(U)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(Ne.PenAndPaper,{key:0,parent:y.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:T.value,onClose:V},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),de.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:R,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:I,style:"width:100%;background:transparent"},[(e.openBlock(),e.createBlock($e._sfc_main,{key:`title_${z.value}`,config:{title:{cy:"onion-div-title",...t.value.style.chart.title},subtitle:{cy:"onion-div-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&C.value&&(e.unref(Y)||e.unref(P))?(e.openBlock(),e.createBlock(ae.UserOptions,{ref_key:"details",ref:ie,key:`user_options${E.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isImaging:e.unref(H),isPrinting:e.unref(G),uid:m.value,hasTooltip:t.value.userOptions.buttons.tooltip&&t.value.style.chart.tooltip.show,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasXls:t.value.userOptions.buttons.csv,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:b.value,isTooltip:v.value.showTooltip,titles:{...t.value.userOptions.buttonTitles},chartElement:y.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:T.value,onToggleFullscreen:Ce,onGeneratePdf:e.unref(j),onGenerateCsv:Q,onGenerateImage:e.unref(W),onToggleTable:ee,onToggleTooltip:te,onToggleAnnotator:V,style:e.normalizeStyle({visibility:e.unref(Y)?e.unref(P)?"visible":"hidden":"visible"})},e.createSlots({_:2},[l.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,l.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,l.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:a,isFullscreen:o})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:a,isFullscreen:o})),void 0,!0)]),key:"5"}:void 0,l.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:a,isAnnotator:o})=>[e.renderSlot(l.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:a,isAnnotator:o})),void 0,!0)]),key:"6"}:void 0]),1032,["backgroundColor","color","isImaging","isPrinting","uid","hasTooltip","hasPdf","hasImg","hasXls","hasTable","hasFullscreen","isFullscreen","isTooltip","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),C.value?(e.openBlock(),e.createElementBlock("svg",{key:4,ref_key:"svgRef",ref:ce,xmlns:e.unref(u.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":b.value,"vue-data-ui-fulscreen--off":!b.value}),viewBox:`0 0 ${n.value.width<=0?10:n.value.width} ${n.value.height<=0?10:n.value.height}`,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(Oe._sfc_main),l.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:0,y:0,width:n.value.width<=0?10:n.value.width,height:n.value.height<=0?10:n.value.height,style:{pointerEvents:"none"}},[e.renderSlot(l.$slots,"chart-background",{},void 0,!0)],8,Ie)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,(a,o)=>(e.openBlock(),e.createElementBlock("circle",{cx:s.value.centerX,cy:s.value.centerY,r:a.radius<=0?1e-4:a.radius,stroke:t.value.style.chart.layout.gutter.color,"stroke-width":g.value.gutter,fill:"none","stroke-dasharray":a.path.bgDashArray,"stroke-dashoffset":a.path.fullOffset,"stroke-linecap":"round",class:e.normalizeClass({"vue-ui-onion-path":!0,"vue-ui-onion-blur":t.value.useBlurOnHover&&![null,void 0].includes(p.value)&&p.value!==o}),style:{transform:"rotate(-90deg)","transform-origin":"50% 50%"}},null,10,Me))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,(a,o)=>(e.openBlock(),e.createElementBlock("circle",{cx:s.value.centerX,cy:s.value.centerY,r:a.radius<0?1e-4:a.radius,stroke:`${a.color}`,"stroke-width":g.value.track,fill:"none","stroke-dasharray":a.path.dashArray,"stroke-dashoffset":a.path.dashOffset,class:e.normalizeClass({"vue-ui-onion-path":!0,"vue-ui-onion-blur":t.value.useBlurOnHover&&![null,void 0].includes(p.value)&&p.value!==o}),"stroke-linecap":"round",style:{transform:"rotate(-90deg)","transform-origin":"50% 50%"}},null,10,Le))),256)),e.createElementVNode("defs",null,[e.createElementVNode("filter",{id:`blur_${m.value}`,x:"-50%",y:"-50%",width:"200%",height:"200%"},[e.createElementVNode("feGaussianBlur",{in:"SourceGraphic",stdDeviation:100/t.value.style.chart.gradientIntensity},null,8,ze)],8,Re)]),t.value.style.chart.useGradient?(e.openBlock(),e.createElementBlock("g",{key:1,filter:`url(#blur_${m.value})`},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,(a,o)=>(e.openBlock(),e.createElementBlock("circle",{cx:s.value.centerX,cy:s.value.centerY,r:a.radius<=0?1e-4:a.radius,stroke:"white","stroke-width":g.value.track/3,fill:"none","stroke-linecap":"round","stroke-dasharray":a.path.dashArray,"stroke-dashoffset":a.path.dashOffset,style:{transform:"rotate(-90deg)","transform-origin":"50% 50%"}},null,8,qe))),256))],8,De)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,(a,o)=>(e.openBlock(),e.createElementBlock("circle",{cx:s.value.centerX,cy:s.value.centerY,r:a.radius<=0?1e-4:a.radius,stroke:"transparent","stroke-width":Math.max(g.value.track,g.value.gutter),fill:"none","stroke-dasharray":a.path.bgDashArray,"stroke-dashoffset":a.path.fullOffset,"stroke-linecap":"round",class:"vue-ui-onion-path",style:{transform:"rotate(-90deg)","transform-origin":"50% 50%"},onMouseenter:c=>Z({datapoint:a,show:!0,seriesIndex:o}),onMouseleave:r[0]||(r[0]=c=>{p.value=void 0,$.value=!1})},null,40,Ue))),256)),t.value.style.chart.layout.labels.show?(e.openBlock(),e.createElementBlock("g",Ye,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,(a,o)=>(e.openBlock(),e.createElementBlock("g",{onMouseenter:c=>Z({datapoint:a,show:!0,seriesIndex:o}),onMouseleave:r[1]||(r[1]=c=>{p.value=void 0,$.value=!1})},[d.value.includes(a.id)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("text",{key:0,x:n.value.width/2-g.value.gutter*.8+t.value.style.chart.layout.labels.offsetX,y:a.labelY+t.value.style.chart.layout.labels.offsetY,"text-anchor":"end","font-size":t.value.style.chart.layout.labels.fontSize,fill:t.value.useBlurOnHover&&![null,void 0].includes(p.value)&&p.value===o?a.color:t.value.style.chart.layout.labels.color,"font-weight":t.value.style.chart.layout.labels.bold?"bold":"normal"},e.toDisplayString(a.name?a.name+": ":"")+" "+e.toDisplayString(t.value.style.chart.layout.labels.percentage.show?e.unref(u.dataLabel)({v:a.percentage,s:"%",r:t.value.style.chart.layout.labels.roundingPercentage}):"")+" "+e.toDisplayString(!t.value.style.chart.layout.labels.percentage.show&&t.value.style.chart.layout.labels.value.show?`: ${e.unref(u.applyDataLabel)(t.value.style.chart.layout.labels.value.formatter,a.value,e.unref(u.dataLabel)({p:a.prefix||"",v:a.value||0,s:a.suffix||"",r:t.value.style.chart.layout.labels.roundingValue}),{datapoint:a,seriesIndex:o})}`:`${t.value.style.chart.layout.labels.value.show&&a.value?`(${e.unref(u.applyDataLabel)(t.value.style.chart.layout.labels.value.formatter,a.value,e.unref(u.dataLabel)({p:a.prefix||"",v:a.value||0,s:a.suffix||"",r:t.value.style.chart.layout.labels.roundingValue}),{datapoint:a,seriesIndex:o})})`:""}`),9,Ge))],40,Xe))),256))])):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"svg",{svg:n.value},void 0,!0)],14,Ee)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",He,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(G)||e.unref(H)})),void 0,!0)])):e.createCommentVNode("",!0),C.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Se.default,{key:6,config:{type:"onion",style:{backgroundColor:t.value.style.chart.backgroundColor,onion:{color:t.value.style.chart.layout.gutter.color}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:M},[t.value.style.chart.legend.show?(e.openBlock(),e.createBlock(xe.Legend,{key:`legend_${q.value}`,legendSet:i.value,config:me.value,onClickMarker:r[2]||(r[2]=({legend:a})=>K(a.id))},{item:e.withCtx(({legend:a})=>[e.createElementVNode("div",{"data-cy-legend-item":"",onClick:o=>a.segregate(),style:e.normalizeStyle(`opacity:${d.value.includes(a.id)?.5:1}`)},e.toDisplayString(a.name?a.name+": ":"")+" "+e.toDisplayString((a.percentage||0).toFixed(t.value.style.chart.legend.roundingPercentage))+"% ",13,je)]),_:1},8,["legendSet","config"])):e.renderSlot(l.$slots,"legend",{key:1,legend:i.value},void 0,!0)],512),l.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:7,ref_key:"source",ref:L,dir:"auto"},[e.renderSlot(l.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createVNode(Te._sfc_main,{show:v.value.showTooltip&&$.value,backgroundColor:t.value.style.chart.tooltip.backgroundColor,color:t.value.style.chart.tooltip.color,borderRadius:t.value.style.chart.tooltip.borderRadius,borderColor:t.value.style.chart.tooltip.borderColor,borderWidth:t.value.style.chart.tooltip.borderWidth,fontSize:t.value.style.chart.tooltip.fontSize,backgroundOpacity:t.value.style.chart.tooltip.backgroundOpacity,position:t.value.style.chart.tooltip.position,offsetY:t.value.style.chart.tooltip.offsetY,parent:y.value,content:S.value,isFullscreen:b.value,isCustom:e.unref(u.isFunction)(t.value.style.chart.tooltip.customFormat)},{"tooltip-before":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({..._.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({..._.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","fontSize","backgroundOpacity","position","offsetY","parent","content","isFullscreen","isCustom"]),C.value?(e.openBlock(),e.createBlock(Pe.default,{key:8,hideDetails:"",config:{open:v.value.showTable,maxHeight:1e4,head:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color},body:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color}}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock(Be.DataTable,{key:`table_${D.value}`,colNames:B.value.colNames,head:B.value.head,body:B.value.body,config:B.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:r[3]||(r[3]=a=>v.value.showTable=!1)},{th:e.withCtx(({th:a})=>[e.createTextVNode(e.toDisplayString(a),1)]),td:e.withCtx(({td:a})=>[e.createElementVNode("div",{innerHTML:a},null,8,We)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],46,Fe))}},Ke=Ae._export_sfc(Je,[["__scopeId","data-v-4407a21a"]]);exports.default=Ke;