vue-data-ui 2.4.90 → 2.5.1

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 (187) hide show
  1. package/README.md +8 -1
  2. package/dist/{Arrow-BSIvdfoj.cjs → Arrow-BYoqvFMN.cjs} +1 -1
  3. package/dist/{Arrow-ZO8Y9-1Q.js → Arrow-CNFYWYKd.js} +1 -1
  4. package/dist/{BaseIcon-BpofIJET.js → BaseIcon-CZ4uFxC7.js} +4 -3
  5. package/dist/{BaseIcon-UR3q41gQ.cjs → BaseIcon-WPy5Rb2H.cjs} +1 -1
  6. package/dist/{DataTable-DSxaFF3x.js → DataTable-BiaAVa_F.js} +2 -2
  7. package/dist/{DataTable-D-hda58J.cjs → DataTable-CdUbJy2R.cjs} +1 -1
  8. package/dist/{Legend-bHoLREZn.cjs → Legend-BnISukey.cjs} +1 -1
  9. package/dist/{Legend-DMkFFdOO.js → Legend-Dw8hyLSd.js} +2 -2
  10. package/dist/{PackageVersion-LxLDMXmr.js → PackageVersion-BFyYSHga.js} +1 -1
  11. package/dist/PackageVersion-DJECkV0A.cjs +1 -0
  12. package/dist/{PenAndPaper-C_SiTAbJ.js → PenAndPaper-1g9CCad-.js} +3 -3
  13. package/dist/{PenAndPaper-BO89xQwu.cjs → PenAndPaper-BLFX9yTF.cjs} +1 -1
  14. package/dist/{Shape-BysfkOzx.js → Shape-BSJQ7DnI.js} +1 -1
  15. package/dist/{Shape-tIX54tZo.cjs → Shape-DEgEDWnK.cjs} +1 -1
  16. package/dist/{Slicer-BxN9wDTW.cjs → Slicer-C0CDSZWe.cjs} +1 -1
  17. package/dist/{Slicer-Cguxp4_C.js → Slicer-CH4QNS2q.js} +2 -2
  18. package/dist/{Title-Dcy3qq8t.js → Title-BzUgxBMs.js} +1 -1
  19. package/dist/{Title-C7FKCxhh.cjs → Title-Cg-pVkpN.cjs} +1 -1
  20. package/dist/{Tooltip-HFiG7-b2.cjs → Tooltip-CFIkSHmH.cjs} +1 -1
  21. package/dist/{Tooltip-CRRn6Gtk.js → Tooltip-O0zo8BID.js} +1 -1
  22. package/dist/documentation/installation.md +2 -1
  23. package/dist/index-D6jkeYks.cjs +9 -0
  24. package/dist/{index-DD55onbf.js → index-DOp04QkH.js} +584 -417
  25. package/dist/style.css +1 -1
  26. package/dist/types/vue-data-ui.d.cts +1140 -384
  27. package/dist/types/vue-data-ui.d.ts +1140 -384
  28. package/dist/{useNestedProp-Cf4jge53.js → useNestedProp-Bcfi6on_.js} +1 -1
  29. package/dist/{useNestedProp-eByLWGIp.cjs → useNestedProp-rf0W8kVM.cjs} +1 -1
  30. package/dist/{usePrinter-C1cmAKZi.cjs → usePrinter-DX7QbYMt.cjs} +1 -1
  31. package/dist/{usePrinter-DWsOiNiW.js → usePrinter-SqbV_ohU.js} +1 -1
  32. package/dist/vue-data-ui-Ch3scsoz.cjs +9 -0
  33. package/dist/{vue-data-ui-Ckk3cZP3.js → vue-data-ui-DZklL9pZ.js} +68 -66
  34. package/dist/vue-data-ui.cjs +1 -1
  35. package/dist/vue-data-ui.js +59 -58
  36. package/dist/{vue-ui-3d-bar-CKUz-73_.js → vue-ui-3d-bar-B1W3tnaP.js} +41 -41
  37. package/dist/{vue-ui-3d-bar-vXOpY3Ff.cjs → vue-ui-3d-bar-VEHwaBcd.cjs} +11 -11
  38. package/dist/{vue-ui-accordion-DLLoQbUa.js → vue-ui-accordion-BXv_xEog.js} +3 -3
  39. package/dist/{vue-ui-accordion-Bd4pdW-K.cjs → vue-ui-accordion-CgkYT3Cq.cjs} +1 -1
  40. package/dist/{vue-ui-age-pyramid-Daa6G08e.js → vue-ui-age-pyramid-CBCTPthi.js} +12 -12
  41. package/dist/vue-ui-age-pyramid-D_IUZzvf.cjs +1 -0
  42. package/dist/{vue-ui-annotator-CroOFpE1.js → vue-ui-annotator-C34K5Ew0.js} +1 -1
  43. package/dist/{vue-ui-annotator-p9ayuN1-.cjs → vue-ui-annotator-CLIKuTqr.cjs} +1 -1
  44. package/dist/vue-ui-bullet-CzVEhFRG.cjs +34 -0
  45. package/dist/{vue-ui-bullet-D4_F7DfJ.js → vue-ui-bullet-Xk8xvqSf.js} +42 -42
  46. package/dist/{vue-ui-candlestick-C_CS8yoj.cjs → vue-ui-candlestick-Ba6yXyYj.cjs} +2 -2
  47. package/dist/{vue-ui-candlestick-DH5ZszpO.js → vue-ui-candlestick-CCMbT5ip.js} +13 -13
  48. package/dist/{vue-ui-carousel-table-KRMGBHRP.js → vue-ui-carousel-table-BsDjjayA.js} +26 -26
  49. package/dist/vue-ui-carousel-table-CkTMdwC2.cjs +1 -0
  50. package/dist/{vue-ui-chestnut-DlzGrBKE.js → vue-ui-chestnut-HkoXXqLL.js} +11 -11
  51. package/dist/{vue-ui-chestnut-GIMUpe9V.cjs → vue-ui-chestnut-gNeEA-fs.cjs} +2 -2
  52. package/dist/vue-ui-circle-pack-C7mESU9Q.js +639 -0
  53. package/dist/vue-ui-circle-pack-DDdvmNlI.cjs +1 -0
  54. package/dist/{vue-ui-cursor-Bzpat70I.js → vue-ui-cursor-DB82p9Hm.js} +2 -2
  55. package/dist/{vue-ui-cursor-CP_hLq_F.cjs → vue-ui-cursor-DWcza74W.cjs} +1 -1
  56. package/dist/{vue-ui-dashboard-CAxpWqdp.js → vue-ui-dashboard-C0BPKDja.js} +2 -2
  57. package/dist/{vue-ui-dashboard-Bl45zC_-.cjs → vue-ui-dashboard-C61sthvf.cjs} +1 -1
  58. package/dist/{vue-ui-digits-DBsciKvZ.js → vue-ui-digits-CbE1Mix-.js} +2 -2
  59. package/dist/{vue-ui-digits-BUj0U6ah.cjs → vue-ui-digits-CbTCX8mU.cjs} +1 -1
  60. package/dist/vue-ui-donut-C57Wdzm2.cjs +1 -0
  61. package/dist/{vue-ui-donut-BaivqlQ9.js → vue-ui-donut-Cb2buz06.js} +15 -15
  62. package/dist/{vue-ui-donut-evolution-DwMUeGj1.js → vue-ui-donut-evolution-DdFLbXi8.js} +42 -42
  63. package/dist/vue-ui-donut-evolution-zlYc16Ii.cjs +1 -0
  64. package/dist/vue-ui-dumbbell-BFZ3fbJv.cjs +9 -0
  65. package/dist/{vue-ui-dumbbell-BYHA7gmV.js → vue-ui-dumbbell-Chl4VHoW.js} +12 -12
  66. package/dist/vue-ui-flow-CbXKICkI.cjs +1 -0
  67. package/dist/{vue-ui-flow-DNunZt6t.js → vue-ui-flow-DMBCObQV.js} +11 -11
  68. package/dist/vue-ui-funnel-BfjCE1cI.cjs +1 -0
  69. package/dist/{vue-ui-funnel-C3HTyg1p.js → vue-ui-funnel-DgfiF2HU.js} +12 -12
  70. package/dist/{vue-ui-galaxy-DqJhMTWB.js → vue-ui-galaxy-Dn0bfQjf.js} +29 -29
  71. package/dist/vue-ui-galaxy-Dpy6zMBl.cjs +1 -0
  72. package/dist/{vue-ui-gauge-TkdVQL99.js → vue-ui-gauge-BOU_X96H.js} +29 -29
  73. package/dist/vue-ui-gauge-CHnLLES1.cjs +1 -0
  74. package/dist/{vue-ui-gizmo-B8hAT82V.js → vue-ui-gizmo-DnhuJcvj.js} +3 -3
  75. package/dist/{vue-ui-gizmo-DkSmQPnp.cjs → vue-ui-gizmo-wrxzscYI.cjs} +1 -1
  76. package/dist/{vue-ui-heatmap-CyoWZ7ce.js → vue-ui-heatmap-BAjPEZIs.js} +32 -32
  77. package/dist/vue-ui-heatmap-PD47EF73.cjs +1 -0
  78. package/dist/{vue-ui-history-plot-DCSjZE3t.js → vue-ui-history-plot--XkBi7LP.js} +33 -33
  79. package/dist/vue-ui-history-plot-AQOaXiMJ.cjs +1 -0
  80. package/dist/{vue-ui-kpi-DTIZqf1G.cjs → vue-ui-kpi-CFo8XLRM.cjs} +1 -1
  81. package/dist/{vue-ui-kpi-CEybiAoH.js → vue-ui-kpi-Di3Y0kcW.js} +3 -3
  82. package/dist/{vue-ui-mini-loader-DtmpAbXk.js → vue-ui-mini-loader-DZ-19Fy_.js} +2 -2
  83. package/dist/{vue-ui-mini-loader-vuKZGTDh.cjs → vue-ui-mini-loader-dxxljHLh.cjs} +1 -1
  84. package/dist/vue-ui-molecule-BJqx_dc3.cjs +1 -0
  85. package/dist/{vue-ui-molecule-CP3TR3uW.js → vue-ui-molecule-DJBnE_jH.js} +13 -13
  86. package/dist/vue-ui-mood-radar-CpwJ_cB8.cjs +1 -0
  87. package/dist/{vue-ui-mood-radar-Cl0h0D-W.js → vue-ui-mood-radar-DBiJFS62.js} +13 -13
  88. package/dist/{vue-ui-nested-donuts-Dt5rDxew.js → vue-ui-nested-donuts-C42pYQix.js} +14 -14
  89. package/dist/{vue-ui-nested-donuts-C0umA4ML.cjs → vue-ui-nested-donuts-CefKrEVc.cjs} +2 -2
  90. package/dist/{vue-ui-onion-Dd6TzYXX.js → vue-ui-onion-B3phYszo.js} +13 -13
  91. package/dist/{vue-ui-onion-iQwEuELC.cjs → vue-ui-onion-BeDt4Anf.cjs} +2 -2
  92. package/dist/{vue-ui-parallel-coordinate-plot-CDWIGek4.js → vue-ui-parallel-coordinate-plot-MZBn_QTf.js} +35 -35
  93. package/dist/{vue-ui-parallel-coordinate-plot-D3tglRgP.cjs → vue-ui-parallel-coordinate-plot-jXTfaR6Q.cjs} +2 -2
  94. package/dist/{vue-ui-quadrant-HQMcbIkL.js → vue-ui-quadrant-Bq9Uulba.js} +14 -14
  95. package/dist/vue-ui-quadrant-CEXW_YPr.cjs +1 -0
  96. package/dist/{vue-ui-quick-chart-BHN_uJBE.js → vue-ui-quick-chart-C2rS5ZpC.js} +9 -9
  97. package/dist/{vue-ui-quick-chart-Debf-SrU.cjs → vue-ui-quick-chart-CbjQYY94.cjs} +1 -1
  98. package/dist/{vue-ui-radar-2Ck9VBhT.js → vue-ui-radar-DJbTdhLl.js} +14 -14
  99. package/dist/vue-ui-radar-DNt9byAF.cjs +1 -0
  100. package/dist/{vue-ui-rating-l_ou-fwb.js → vue-ui-rating-D7jOrfpr.js} +2 -2
  101. package/dist/{vue-ui-rating-CFUtQBK8.cjs → vue-ui-rating-DwNJCpUJ.cjs} +1 -1
  102. package/dist/vue-ui-relation-circle-DFYrWmK5.cjs +1 -0
  103. package/dist/{vue-ui-relation-circle-Bz9PNnTk.js → vue-ui-relation-circle-WSXW7BVk.js} +37 -37
  104. package/dist/{vue-ui-rings-BHSDf_bS.js → vue-ui-rings-CT-GkKu3.js} +36 -36
  105. package/dist/{vue-ui-rings-B88wRjdq.cjs → vue-ui-rings-CrZBI8PB.cjs} +2 -2
  106. package/dist/vue-ui-scatter-C3W6efmF.cjs +1 -0
  107. package/dist/{vue-ui-scatter-CFf7Shno.js → vue-ui-scatter-Dj_6kLom.js} +14 -14
  108. package/dist/{vue-ui-screenshot-CDenayoD.js → vue-ui-screenshot-Bp2d4iA5.js} +1 -1
  109. package/dist/{vue-ui-screenshot-c_vhJ0-B.cjs → vue-ui-screenshot-DZr2dJ3_.cjs} +1 -1
  110. package/dist/{vue-ui-skeleton-CESQcfWL.js → vue-ui-skeleton-7EpMEisR.js} +457 -377
  111. package/dist/vue-ui-skeleton-D2fiHeQ-.cjs +41 -0
  112. package/dist/{vue-ui-smiley-D-VUvg62.js → vue-ui-smiley-BYMlfZJN.js} +2 -2
  113. package/dist/{vue-ui-smiley-DbELC5Y0.cjs → vue-ui-smiley-bp0yYHVC.cjs} +1 -1
  114. package/dist/{vue-ui-spark-trend-BdRhlsPm.cjs → vue-ui-spark-trend-BT3hC8YK.cjs} +1 -1
  115. package/dist/{vue-ui-spark-trend-DhPjPyRU.js → vue-ui-spark-trend-DxAKSS2H.js} +5 -5
  116. package/dist/{vue-ui-sparkbar-DNCM5xum.js → vue-ui-sparkbar-B4rPY-wi.js} +4 -4
  117. package/dist/{vue-ui-sparkbar-wgbRG59n.cjs → vue-ui-sparkbar-C5XBU4Se.cjs} +1 -1
  118. package/dist/{vue-ui-sparkgauge-1F6Unq-t.js → vue-ui-sparkgauge-BjWIBcyh.js} +4 -4
  119. package/dist/{vue-ui-sparkgauge-B-cPl2OP.cjs → vue-ui-sparkgauge-CqzU6lZq.cjs} +1 -1
  120. package/dist/{vue-ui-sparkhistogram-C69wU065.js → vue-ui-sparkhistogram-122mnka1.js} +5 -5
  121. package/dist/{vue-ui-sparkhistogram-Bf3Q8coy.cjs → vue-ui-sparkhistogram-w8GowxGd.cjs} +1 -1
  122. package/dist/{vue-ui-sparkline-BvxaN2GO.cjs → vue-ui-sparkline-DSVfpk0u.cjs} +1 -1
  123. package/dist/{vue-ui-sparkline-CrP5yEbF.js → vue-ui-sparkline-DnXzcZfe.js} +4 -4
  124. package/dist/{vue-ui-sparkstackbar-C-zgACDi.js → vue-ui-sparkstackbar-DgB1H3Qg.js} +5 -5
  125. package/dist/{vue-ui-sparkstackbar-BlzBOi83.cjs → vue-ui-sparkstackbar-o25sQU3T.cjs} +1 -1
  126. package/dist/{vue-ui-stackbar-C96Fxg66.cjs → vue-ui-stackbar-DcXPnNeB.cjs} +2 -2
  127. package/dist/{vue-ui-stackbar-BYmJkNhD.js → vue-ui-stackbar-rTEU1rP4.js} +15 -15
  128. package/dist/vue-ui-strip-plot-DeBGuBRO.cjs +1 -0
  129. package/dist/{vue-ui-strip-plot-BS7quLHn.js → vue-ui-strip-plot-Dsvur-Dh.js} +13 -13
  130. package/dist/{vue-ui-table-D4-lUGYK.js → vue-ui-table-DfD1dIuE.js} +1 -1
  131. package/dist/{vue-ui-table-heatmap-BNmWCrcY.js → vue-ui-table-heatmap-BmMSuXBl.js} +8 -8
  132. package/dist/vue-ui-table-heatmap-UzDfjh7W.cjs +1 -0
  133. package/dist/{vue-ui-table-DwwE3i4I.cjs → vue-ui-table-qCnANsjT.cjs} +1 -1
  134. package/dist/vue-ui-table-sparkline-BvNNMcbM.cjs +1 -0
  135. package/dist/{vue-ui-table-sparkline-CzVT74Bo.js → vue-ui-table-sparkline-KLjn68Pu.js} +8 -8
  136. package/dist/vue-ui-thermometer-DaYllSIU.cjs +1 -0
  137. package/dist/{vue-ui-thermometer-D6B1e-kE.js → vue-ui-thermometer-_OqrkIS5.js} +12 -12
  138. package/dist/{vue-ui-timer-Djy00gLF.js → vue-ui-timer-B3yM3Zsr.js} +5 -5
  139. package/dist/{vue-ui-timer-BVpkq0Eb.cjs → vue-ui-timer-BC7RuVRt.cjs} +1 -1
  140. package/dist/{vue-ui-tiremarks-BnFhNKNK.js → vue-ui-tiremarks-0PA75jsW.js} +9 -9
  141. package/dist/vue-ui-tiremarks-NeSNx9w7.cjs +1 -0
  142. package/dist/{vue-ui-treemap-qtGBTWTl.js → vue-ui-treemap-BX_X-IAg.js} +40 -40
  143. package/dist/vue-ui-treemap-Dwq5MOv6.cjs +1 -0
  144. package/dist/{vue-ui-vertical-bar-Bv6fmPmz.cjs → vue-ui-vertical-bar-BN4p2KaI.cjs} +2 -2
  145. package/dist/{vue-ui-vertical-bar-Djtyca8s.js → vue-ui-vertical-bar-DtVo0EiM.js} +36 -36
  146. package/dist/{vue-ui-waffle--GwDqms-.js → vue-ui-waffle-Cpyxl7iK.js} +40 -40
  147. package/dist/vue-ui-waffle-DyKaHK13.cjs +1 -0
  148. package/dist/vue-ui-wheel-CmhC8bdI.cjs +1 -0
  149. package/dist/{vue-ui-wheel-DuULgJzV.js → vue-ui-wheel-DBca990z.js} +18 -18
  150. package/dist/vue-ui-word-cloud-CiUkioYv.cjs +1 -0
  151. package/dist/{vue-ui-word-cloud-CSMNDZ9Y.js → vue-ui-word-cloud-DPkgBASF.js} +38 -38
  152. package/dist/{vue-ui-xy-C4WZl8Rn.cjs → vue-ui-xy-DKTy_ODO.cjs} +1 -1
  153. package/dist/{vue-ui-xy-Cy5OoDkY.js → vue-ui-xy-VNRWSrW0.js} +14 -14
  154. package/dist/{vue-ui-xy-canvas-D2OMF5vm.js → vue-ui-xy-canvas-ByWv8cWZ.js} +13 -13
  155. package/dist/{vue-ui-xy-canvas-DKyQkG9T.cjs → vue-ui-xy-canvas-CXCzXCTk.cjs} +3 -3
  156. package/package.json +3 -2
  157. package/dist/PackageVersion-C2d9irPH.cjs +0 -1
  158. package/dist/index-oJt6G-1X.cjs +0 -9
  159. package/dist/vue-data-ui-ClVi4qwu.cjs +0 -9
  160. package/dist/vue-ui-age-pyramid-DyOUxoA7.cjs +0 -1
  161. package/dist/vue-ui-bullet-B8ZrosoF.cjs +0 -34
  162. package/dist/vue-ui-carousel-table-BD4n--x5.cjs +0 -1
  163. package/dist/vue-ui-donut-evolution-T0q0AQpw.cjs +0 -1
  164. package/dist/vue-ui-donut-hlEvLIAG.cjs +0 -1
  165. package/dist/vue-ui-dumbbell-DeYS8Jqs.cjs +0 -9
  166. package/dist/vue-ui-flow-g2-DDXHU.cjs +0 -1
  167. package/dist/vue-ui-funnel-Dj7HoggX.cjs +0 -1
  168. package/dist/vue-ui-galaxy-DkKp1Fn6.cjs +0 -1
  169. package/dist/vue-ui-gauge-BzWGRR5d.cjs +0 -1
  170. package/dist/vue-ui-heatmap-BisHe3OP.cjs +0 -1
  171. package/dist/vue-ui-history-plot-BzyhAUsf.cjs +0 -1
  172. package/dist/vue-ui-molecule-BVwf_QS7.cjs +0 -1
  173. package/dist/vue-ui-mood-radar-CBtUbd5w.cjs +0 -1
  174. package/dist/vue-ui-quadrant-CuZcEJGS.cjs +0 -1
  175. package/dist/vue-ui-radar-DxZpBJtG.cjs +0 -1
  176. package/dist/vue-ui-relation-circle-Bo8oWyEB.cjs +0 -1
  177. package/dist/vue-ui-scatter-DwrvTcvG.cjs +0 -1
  178. package/dist/vue-ui-skeleton-Bl1lucUY.cjs +0 -41
  179. package/dist/vue-ui-strip-plot-BpLkljEL.cjs +0 -1
  180. package/dist/vue-ui-table-heatmap-CGb9QBzK.cjs +0 -1
  181. package/dist/vue-ui-table-sparkline-BtVDfdx6.cjs +0 -1
  182. package/dist/vue-ui-thermometer-C6psexEi.cjs +0 -1
  183. package/dist/vue-ui-tiremarks-DQkEWxQJ.cjs +0 -1
  184. package/dist/vue-ui-treemap-BX6nGwvZ.cjs +0 -1
  185. package/dist/vue-ui-waffle-BWAIIf1i.cjs +0 -1
  186. package/dist/vue-ui-wheel-CabI8YAt.cjs +0 -1
  187. package/dist/vue-ui-word-cloud-BJqrgirH.cjs +0 -1
@@ -0,0 +1,639 @@
1
+ import { useCssVars as Qe, computed as y, ref as h, watch as Ie, onMounted as et, watchEffect as tt, openBlock as s, createElementBlock as i, normalizeClass as Fe, normalizeStyle as W, unref as c, createBlock as T, createCommentVNode as f, renderSlot as m, createSlots as lt, withCtx as C, normalizeProps as D, guardReactiveProps as L, createVNode as at, Fragment as O, renderList as se, createElementVNode as k, toDisplayString as G, createTextVNode as ot, nextTick as st } from "vue";
2
+ import { u as nt, c as Ne, t as rt, a as ne, p as P, o as ut, e as it, b as ct, d as Se, m as vt, h as Me, f as re, X as dt, l as ht, G as Y, i as _e, q as ft, r as yt } from "./index-DOp04QkH.js";
3
+ import { u as Ae } from "./useNestedProp-Bcfi6on_.js";
4
+ import { u as pt, U as mt } from "./usePrinter-SqbV_ohU.js";
5
+ import { _ as bt } from "./Title-BzUgxBMs.js";
6
+ import { P as gt } from "./PenAndPaper-1g9CCad-.js";
7
+ import { u as kt } from "./useUserOptionState-BIvW1Kz7.js";
8
+ import { _ as wt } from "./PackageVersion-BFyYSHga.js";
9
+ import xt from "./vue-ui-accordion-BXv_xEog.js";
10
+ import { D as Ct } from "./DataTable-BiaAVa_F.js";
11
+ import $t from "./vue-ui-skeleton-7EpMEisR.js";
12
+ import { _ as zt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
+ const Pt = ["id"], Tt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"], It = ["id"], Ft = ["stop-color"], Nt = ["stop-color"], St = ["stop-color"], Mt = { key: 0 }, _t = ["x", "y", "width", "height", "stroke", "stroke-width", "fill", "rx", "onMouseenter"], At = ["x", "y", "width", "height", "stroke", "stroke-width", "fill", "rx"], Et = ["opacity", "x", "y", "font-size", "fill", "font-weight"], Dt = ["opacity", "x", "y", "font-size", "fill", "font-weight"], Lt = ["d", "fill"], Gt = ["cx", "cy", "r", "opacity", "stroke", "fill"], Ut = {
14
+ key: 0,
15
+ style: { pointerEvents: "none" }
16
+ }, Bt = { key: 1 }, Vt = ["opacity", "x", "y", "font-size", "fill", "font-weight"], Ht = ["opacity", "x", "y", "font-size", "fill", "font-weight"], Rt = {
17
+ key: 6,
18
+ class: "vue-data-ui-watermark"
19
+ }, Xt = ["innerHTML"], Wt = {
20
+ __name: "vue-ui-circle-pack",
21
+ props: {
22
+ config: {
23
+ type: Object,
24
+ default() {
25
+ return {};
26
+ }
27
+ },
28
+ dataset: {
29
+ type: Array,
30
+ default() {
31
+ return [];
32
+ }
33
+ }
34
+ },
35
+ setup(Ee, { expose: De }) {
36
+ const $ = Ee;
37
+ Qe((t) => ({
38
+ "66ae9e59": N.value,
39
+ "871d16dc": K.value
40
+ }));
41
+ const { vue_ui_circle_pack: Le } = nt(), U = y(() => !!$.dataset && $.dataset.length), I = h(Ne()), j = h(null), Ge = h(null), Ue = h(null), ue = h(0), ie = h(0), ce = h(0), Be = h(null), e = y({
42
+ get: () => he(),
43
+ set: (t) => t
44
+ }), {
45
+ userOptionsVisible: q,
46
+ setUserOptionsVisibility: ve,
47
+ keepUserOptionState: de
48
+ } = kt({ config: e.value });
49
+ function he() {
50
+ const t = Ae({
51
+ userConfig: $.config,
52
+ defaultConfig: Le
53
+ });
54
+ return t.theme ? {
55
+ ...Ae({
56
+ userConfig: rt.vue_ui_circle_pack[t.theme] || $.config,
57
+ defaultConfig: t
58
+ }),
59
+ customPalette: ne[t.theme] || P
60
+ } : t;
61
+ }
62
+ Ie(() => $.config, (t) => {
63
+ e.value = he(), q.value = !e.value.userOptions.showOnChartHover, Z(), ue.value += 1, ie.value += 1, F.value.showTable = e.value.table.show;
64
+ }, { deep: !0 });
65
+ const { isPrinting: fe, isImaging: ye, generatePdf: pe, generateImage: me } = pt({
66
+ elementId: `vue-ui-circle-pack_${I.value}`,
67
+ fileName: e.value.style.chart.title.text || "vue-ui-circle-pack"
68
+ }), Ve = y(() => e.value.userOptions.show && !e.value.style.chart.title.text), F = h({
69
+ showTable: e.value.table.show
70
+ });
71
+ async function Z() {
72
+ ut($.dataset) && it({
73
+ componentName: "VueUiCirclePack",
74
+ type: "dataset"
75
+ }), await Xe();
76
+ }
77
+ et(Z), Ie(() => $.dataset, async (t) => {
78
+ await Z();
79
+ }, { deep: !0 });
80
+ const be = y(() => ct(e.value.customPalette));
81
+ function ge(t, a) {
82
+ return Math.hypot(a.x - t.x, a.y - t.y);
83
+ }
84
+ function ke(t, a) {
85
+ return a.some((l) => ge(t, l) < t.radius + l.radius);
86
+ }
87
+ function He(t, a, l, r) {
88
+ const v = a * 2;
89
+ for (let w of t)
90
+ for (let x = 0; x < 360; x += 30) {
91
+ let E = x * Math.PI / 180, u = w.x + v * Math.cos(E), o = w.y + v * Math.sin(E), b = { x: u, y: o, radius: a };
92
+ if (u - a >= 0 && u + a <= l && o - a >= 0 && o + a <= r && !ke(b, t))
93
+ return { x: u, y: o };
94
+ }
95
+ return null;
96
+ }
97
+ function Re(t, a, l, r, v = 0, w = 0) {
98
+ const x = Math.max(...t.map((b) => b.value)), u = t.map((b, d) => ({
99
+ ...b,
100
+ radius: b.value / x * r,
101
+ index: d
102
+ })).map((b, d) => ({ ...b, index: d })).toSorted((b, d) => d.radius - b.radius);
103
+ let o = [];
104
+ o.push({
105
+ ...u[0],
106
+ x: a / 2 + v,
107
+ y: l / 2 + w
108
+ });
109
+ for (let b of u.slice(1)) {
110
+ let { radius: d, ...$e } = b, ee = He(o, d, a, l);
111
+ if (ee)
112
+ o.push({ ...$e, x: ee.x, y: ee.y, radius: d });
113
+ else {
114
+ let te = null, ze = 1 / 0;
115
+ for (let R of o)
116
+ for (let le = 0; le < 360; le += 15) {
117
+ let Pe = le * Math.PI / 180, ae = R.x + (d + R.radius) * Math.cos(Pe), oe = R.y + (d + R.radius) * Math.sin(Pe), X = { ...$e, x: ae, y: oe, radius: d };
118
+ if (ae - d >= 0 && ae + d <= a && oe - d >= 0 && oe + d <= l && !ke(X, o)) {
119
+ let Te = o.reduce(
120
+ (Ke, Oe) => Ke + (ge(X, Oe) < X.radius + Oe.radius ? 1 : 0),
121
+ 0
122
+ );
123
+ Te < ze && (ze = Te, te = X);
124
+ }
125
+ }
126
+ te && o.push(te);
127
+ }
128
+ }
129
+ return o;
130
+ }
131
+ const J = y(() => $.dataset.map((t, a) => {
132
+ const l = Se(t.color) || be.value[a] || ne[e.value.theme][a % ne[e.value.theme].length] || P[a] || P[a % P.length];
133
+ return {
134
+ ...t,
135
+ id: Ne(),
136
+ color: l
137
+ };
138
+ }).filter((t) => ![null, void 0, 1 / 0, -1 / 0].includes(t.value))), g = h([]);
139
+ async function Xe() {
140
+ g.value = Re(
141
+ J.value,
142
+ // Huge plane size to place all datapoints
143
+ 1e4,
144
+ 1e4,
145
+ 32
146
+ );
147
+ }
148
+ const we = y(() => ({
149
+ width: 100,
150
+ height: 100
151
+ })), p = y(() => {
152
+ const t = g.value.reduce((u, o) => o.x - o.radius < u.x - u.radius ? o : u, g.value[0]), a = g.value.reduce((u, o) => o.y - o.radius < u.y - u.radius ? o : u, g.value[0]), l = g.value.reduce((u, o) => o.x + o.radius > u.x + u.radius ? o : u, g.value[0]), r = g.value.reduce((u, o) => o.y + o.radius > u.y + u.radius ? o : u, g.value[0]), v = (t == null ? void 0 : t.x) || 0, w = (l == null ? void 0 : l.x) || we.value.width, x = (a == null ? void 0 : a.y) || 0, E = (r == null ? void 0 : r.y) || we.value.height;
153
+ return {
154
+ maxX: w,
155
+ minX: v,
156
+ width: Math.abs(w - v) + (t ? t.radius : 0) + (l ? l.radius : 0) + e.value.style.chart.circles.strokeWidth * 4,
157
+ height: Math.abs(E - x) + (a ? a.radius : 0) + (r ? r.radius : 0) + e.value.style.chart.circles.strokeWidth * 4,
158
+ x: t ? (t == null ? void 0 : t.x) - (t == null ? void 0 : t.radius) - e.value.style.chart.circles.strokeWidth * 2 : 0,
159
+ y: a ? (a == null ? void 0 : a.y) - (a == null ? void 0 : a.radius) - e.value.style.chart.circles.strokeWidth * 2 : 0
160
+ };
161
+ }), We = y(() => g.value.map((t) => {
162
+ if (t.breakdown)
163
+ return vt(
164
+ { series: t.breakdown.map((a, l) => ({
165
+ ...a,
166
+ color: Se(a.color) || be.value[l] || P[l] || P[l % P.length]
167
+ })) },
168
+ t.x,
169
+ t.y,
170
+ t.radius,
171
+ t.radius,
172
+ 1.99999,
173
+ 2,
174
+ 1,
175
+ 360,
176
+ 105.25,
177
+ t.radius / 2
178
+ );
179
+ })), n = h(null);
180
+ function Ye(t) {
181
+ e.value.style.chart.circles.zoom.show && (n.value = t);
182
+ }
183
+ const N = y(() => n.value ? n.value.radius : 0), K = y(() => n.value ? n.value.radius > p.value.width / 6 * e.value.style.chart.circles.zoom.zoomRatio ? n.value.radius : p.value.width / 6 * e.value.style.chart.circles.zoom.zoomRatio : 0), z = h(0), je = y(() => ({
184
+ pointerEvents: "none",
185
+ opacity: z.value,
186
+ filter: `drop-shadow(0px 0px 6px ${Me(n.value.color, e.value.style.chart.circles.zoom.shadowForce)})`
187
+ })), S = h(N.value);
188
+ tt(() => {
189
+ S.value = N.value, z.value = 0;
190
+ let t = null;
191
+ function a(l) {
192
+ t || (t = l);
193
+ const r = (l - t) / e.value.style.chart.circles.zoom.animationFrameMs;
194
+ r < 1 ? (S.value = N.value + (K.value - N.value) * r, z.value = 0 + e.value.style.chart.circles.zoom.opacity * r, requestAnimationFrame(a)) : (S.value = K.value, z.value = e.value.style.chart.circles.zoom.opacity);
195
+ }
196
+ requestAnimationFrame(a);
197
+ });
198
+ const M = y(() => ({
199
+ name: e.value.style.chart.circles.zoom.label.name.fontSize * p.value.width / 300,
200
+ value: e.value.style.chart.circles.zoom.label.value.fontSize * p.value.width / 300
201
+ }));
202
+ function _(t) {
203
+ return _e(
204
+ e.value.style.chart.circles.labels.value.formatter,
205
+ t.value,
206
+ re({
207
+ p: e.value.style.chart.circles.labels.value.prefix,
208
+ v: t.value,
209
+ s: e.value.style.chart.circles.labels.value.suffix,
210
+ r: e.value.style.chart.circles.labels.value.rounding
211
+ })
212
+ );
213
+ }
214
+ function qe() {
215
+ return _e(
216
+ e.value.style.chart.circles.zoom.label.value.formatter,
217
+ n.value.value,
218
+ re({
219
+ p: e.value.style.chart.circles.zoom.label.value.prefix,
220
+ v: n.value.value,
221
+ s: e.value.style.chart.circles.zoom.label.value.suffix,
222
+ r: e.value.style.chart.circles.zoom.label.rounding
223
+ })
224
+ );
225
+ }
226
+ const A = h(!1);
227
+ function Ze(t) {
228
+ A.value = t, ce.value += 1;
229
+ }
230
+ const B = h(!1);
231
+ function Q() {
232
+ B.value = !B.value;
233
+ }
234
+ const V = y(() => {
235
+ const t = J.value.map((l) => ({
236
+ name: l.name,
237
+ value: l.value,
238
+ color: l.color
239
+ })).toSorted((l, r) => r.value - l.value), a = t.map((l) => l.value);
240
+ return { head: t, body: a };
241
+ });
242
+ function xe() {
243
+ st(() => {
244
+ const t = V.value.head.map((r, v) => [[
245
+ r.name
246
+ ], [V.value.body[v]]]), a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], [e.value.table.columnNames.value]]].concat(t), l = ft(a);
247
+ yt({ csvContent: l, title: e.value.style.chart.title.text || "vue-ui-circle-pack" });
248
+ });
249
+ }
250
+ const H = y(() => {
251
+ const t = [
252
+ e.value.table.columnNames.datapoint,
253
+ e.value.table.columnNames.value
254
+ ], a = V.value.head.map((v, w) => {
255
+ const x = re({
256
+ p: e.value.style.chart.circles.labels.value.prefix,
257
+ v: V.value.body[w],
258
+ s: e.value.style.chart.circles.labels.value.suffix,
259
+ r: e.value.style.chart.circles.labels.value.rounding
260
+ });
261
+ return [
262
+ {
263
+ color: v.color,
264
+ name: v.name
265
+ },
266
+ x
267
+ ];
268
+ }), l = {
269
+ th: {
270
+ backgroundColor: e.value.table.th.backgroundColor,
271
+ color: e.value.table.th.color,
272
+ outline: e.value.table.th.outline
273
+ },
274
+ td: {
275
+ backgroundColor: e.value.table.td.backgroundColor,
276
+ color: e.value.table.td.color,
277
+ outline: e.value.table.td.outline
278
+ },
279
+ breakpoint: e.value.table.responsiveBreakpoint
280
+ };
281
+ return {
282
+ colNames: [
283
+ e.value.table.columnNames.datapoint,
284
+ e.value.table.columnNames.value
285
+ ],
286
+ head: t,
287
+ body: a,
288
+ config: l
289
+ };
290
+ });
291
+ function Ce() {
292
+ F.value.showTable = !F.value.showTable;
293
+ }
294
+ function Je() {
295
+ return J.value;
296
+ }
297
+ return De({
298
+ getData: Je,
299
+ generateCsv: xe,
300
+ generatePdf: pe,
301
+ generateImage: me,
302
+ toggleTable: Ce,
303
+ toggleAnnotator: Q
304
+ }), (t, a) => (s(), i("div", {
305
+ id: `vue-ui-circle-pack_${I.value}`,
306
+ class: Fe(`vue-ui-circle-pack ${A.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
307
+ ref_key: "circlePackChart",
308
+ ref: j,
309
+ style: W(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
310
+ onMouseenter: a[2] || (a[2] = () => c(ve)(!0)),
311
+ onMouseleave: a[3] || (a[3] = () => c(ve)(!1))
312
+ }, [
313
+ e.value.userOptions.buttons.annotator ? (s(), T(gt, {
314
+ key: 0,
315
+ parent: j.value,
316
+ backgroundColor: e.value.style.chart.backgroundColor,
317
+ color: e.value.style.chart.color,
318
+ active: B.value,
319
+ onClose: Q
320
+ }, null, 8, ["parent", "backgroundColor", "color", "active"])) : f("", !0),
321
+ m(t.$slots, "userConfig", {}, void 0, !0),
322
+ Ve.value ? (s(), i("div", {
323
+ key: 1,
324
+ ref_key: "noTitle",
325
+ ref: Ue,
326
+ class: "vue-data-ui-no-title-space",
327
+ style: "height:36px; width: 100%;background:transparent"
328
+ }, null, 512)) : f("", !0),
329
+ e.value.style.chart.title.text ? (s(), i("div", {
330
+ key: 2,
331
+ ref_key: "chartTitle",
332
+ ref: Ge,
333
+ style: "width:100%;background:transparent;padding-bottom:12px"
334
+ }, [
335
+ (s(), T(bt, {
336
+ key: `title_${ue.value}`,
337
+ config: {
338
+ title: {
339
+ cy: "donut-div-title",
340
+ ...e.value.style.chart.title
341
+ },
342
+ subtitle: {
343
+ cy: "donut-div-subtitle",
344
+ ...e.value.style.chart.title.subtitle
345
+ }
346
+ }
347
+ }, null, 8, ["config"]))
348
+ ], 512)) : f("", !0),
349
+ e.value.userOptions.show && U.value && (c(de) || c(q)) ? (s(), T(mt, {
350
+ ref: "details",
351
+ key: `user_option_${ce.value}`,
352
+ backgroundColor: e.value.style.chart.backgroundColor,
353
+ color: e.value.style.chart.color,
354
+ isPrinting: c(fe),
355
+ isImaging: c(ye),
356
+ uid: I.value,
357
+ hasTooltip: !1,
358
+ hasLabel: !1,
359
+ hasPdf: e.value.userOptions.buttons.pdf,
360
+ hasImg: e.value.userOptions.buttons.img,
361
+ hasXls: e.value.userOptions.buttons.csv,
362
+ hasTable: e.value.userOptions.buttons.table,
363
+ hasFullscreen: e.value.userOptions.buttons.fullscreen,
364
+ isFullscreen: A.value,
365
+ chartElement: j.value,
366
+ position: e.value.userOptions.position,
367
+ titles: { ...e.value.userOptions.buttonTitles },
368
+ hasAnnotator: e.value.userOptions.buttons.annotator,
369
+ isAnnotation: B.value,
370
+ onToggleFullscreen: Ze,
371
+ onGeneratePdf: c(pe),
372
+ onGenerateCsv: xe,
373
+ onGenerateImage: c(me),
374
+ onToggleTable: Ce,
375
+ onToggleAnnotator: Q,
376
+ style: W({
377
+ visibility: c(de) ? c(q) ? "visible" : "hidden" : "visible"
378
+ })
379
+ }, lt({ _: 2 }, [
380
+ t.$slots.optionPdf ? {
381
+ name: "optionPdf",
382
+ fn: C(() => [
383
+ m(t.$slots, "optionPdf", {}, void 0, !0)
384
+ ]),
385
+ key: "0"
386
+ } : void 0,
387
+ t.$slots.optionCsv ? {
388
+ name: "optionCsv",
389
+ fn: C(() => [
390
+ m(t.$slots, "optionCsv", {}, void 0, !0)
391
+ ]),
392
+ key: "1"
393
+ } : void 0,
394
+ t.$slots.optionImg ? {
395
+ name: "optionImg",
396
+ fn: C(() => [
397
+ m(t.$slots, "optionImg", {}, void 0, !0)
398
+ ]),
399
+ key: "2"
400
+ } : void 0,
401
+ t.$slots.optionTable ? {
402
+ name: "optionTable",
403
+ fn: C(() => [
404
+ m(t.$slots, "optionTable", {}, void 0, !0)
405
+ ]),
406
+ key: "3"
407
+ } : void 0,
408
+ t.$slots.optionFullscreen ? {
409
+ name: "optionFullscreen",
410
+ fn: C(({ toggleFullscreen: l, isFullscreen: r }) => [
411
+ m(t.$slots, "optionFullscreen", D(L({ toggleFullscreen: l, isFullscreen: r })), void 0, !0)
412
+ ]),
413
+ key: "4"
414
+ } : void 0,
415
+ t.$slots.optionAnnotator ? {
416
+ name: "optionAnnotator",
417
+ fn: C(({ toggleAnnotator: l, isAnnotator: r }) => [
418
+ m(t.$slots, "optionAnnotator", D(L({ toggleAnnotator: l, isAnnotator: r })), void 0, !0)
419
+ ]),
420
+ key: "5"
421
+ } : void 0
422
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : f("", !0),
423
+ U.value ? (s(), i("svg", {
424
+ key: 4,
425
+ xmlns: c(dt),
426
+ viewBox: `${p.value.x} ${p.value.y} ${p.value.width} ${p.value.height}`,
427
+ width: "100%",
428
+ class: Fe({ "vue-data-ui-fullscreen--on": A.value, "vue-data-ui-fulscreen--off": !A.value }),
429
+ style: W(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color};`)
430
+ }, [
431
+ at(wt),
432
+ t.$slots["chart-background"] ? (s(), i("foreignObject", {
433
+ key: 0,
434
+ x: p.value.x,
435
+ y: p.value.y,
436
+ width: p.value.width,
437
+ height: p.value.height,
438
+ style: {
439
+ pointerEvents: "none"
440
+ }
441
+ }, [
442
+ m(t.$slots, "chart-background", {}, void 0, !0)
443
+ ], 8, Ot)) : f("", !0),
444
+ (s(!0), i(O, null, se(g.value, (l) => (s(), i(O, null, [
445
+ k("defs", null, [
446
+ k("radialGradient", {
447
+ id: l.id,
448
+ fy: "30%"
449
+ }, [
450
+ k("stop", {
451
+ offset: "10%",
452
+ "stop-color": c(ht)(l.color, e.value.style.chart.circles.gradient.intensity / 100)
453
+ }, null, 8, Ft),
454
+ k("stop", {
455
+ offset: "90%",
456
+ "stop-color": c(Me)(l.color, 0.1)
457
+ }, null, 8, Nt),
458
+ k("stop", {
459
+ offset: "100%",
460
+ "stop-color": l.color
461
+ }, null, 8, St)
462
+ ], 8, It)
463
+ ]),
464
+ t.$slots.pattern ? (s(), i("g", Mt, [
465
+ k("defs", null, [
466
+ m(t.$slots, "pattern", D(L({ ...l, patternId: `pattern_${I.value}_${l.id}` })), void 0, !0)
467
+ ])
468
+ ])) : f("", !0),
469
+ k("rect", {
470
+ x: l.x - l.radius,
471
+ y: l.y - l.radius,
472
+ width: l.radius * 2,
473
+ height: l.radius * 2,
474
+ stroke: e.value.style.chart.circles.stroke,
475
+ "stroke-width": e.value.style.chart.circles.strokeWidth,
476
+ fill: e.value.style.chart.circles.gradient.show ? `url(#${l.id})` : l.color,
477
+ rx: l.radius,
478
+ onMouseenter: () => Ye(l),
479
+ onMouseout: a[0] || (a[0] = (r) => n.value = null)
480
+ }, null, 40, _t),
481
+ t.$slots.pattern ? (s(), i("rect", {
482
+ key: 1,
483
+ x: l.x - l.radius,
484
+ y: l.y - l.radius,
485
+ width: l.radius * 2,
486
+ height: l.radius * 2,
487
+ stroke: e.value.style.chart.circles.stroke,
488
+ "stroke-width": e.value.style.chart.circles.strokeWidth,
489
+ fill: `url(#pattern_${I.value}_${l.id})`,
490
+ rx: l.radius,
491
+ style: {
492
+ pointerEvents: "none"
493
+ }
494
+ }, null, 8, At)) : f("", !0),
495
+ e.value.style.chart.circles.labels.name.show && l.name ? (s(), i("text", {
496
+ key: 2,
497
+ style: {
498
+ pointerEvents: "none",
499
+ transition: "opacity 0.2s ease-in-out"
500
+ },
501
+ opacity: n.value ? 0.2 : 1,
502
+ x: l.x,
503
+ y: l.y - l.radius / 2.5 + e.value.style.chart.circles.labels.name.offsetY,
504
+ "font-size": l.radius / l.name.length * 2,
505
+ fill: e.value.style.chart.circles.labels.name.color ? e.value.style.chart.circles.labels.name.color : c(Y)(l.color),
506
+ "font-weight": e.value.style.chart.circles.labels.name.bold ? "bold" : "normal",
507
+ "text-anchor": "middle"
508
+ }, G(l.name), 9, Et)) : f("", !0),
509
+ e.value.style.chart.circles.labels.value.show ? (s(), i("text", {
510
+ key: 3,
511
+ style: {
512
+ pointerEvents: "none",
513
+ transition: "opacity 0.2s ease-in-out"
514
+ },
515
+ opacity: n.value ? 0.2 : 1,
516
+ x: l.x,
517
+ y: l.y + l.radius / _(l).length * (_(l).length === 1 ? 1 : 2) / 2 + e.value.style.chart.circles.labels.value.offsetY,
518
+ "font-size": l.radius / _(l).length * (_(l).length === 1 ? 1 : 2),
519
+ fill: e.value.style.chart.circles.labels.value.color ? e.value.style.chart.circles.labels.value.color : c(Y)(l.color),
520
+ "font-weight": e.value.style.chart.circles.labels.value.bold ? "bold" : "normal",
521
+ "text-anchor": "middle"
522
+ }, G(_(l)), 9, Dt)) : f("", !0),
523
+ (s(!0), i(O, null, se(We.value, (r) => (s(), i(O, null, [
524
+ (s(!0), i(O, null, se(r, (v) => (s(), i("path", {
525
+ d: v.arcSlice,
526
+ fill: v.color,
527
+ stroke: "black"
528
+ }, null, 8, Lt))), 256))
529
+ ], 64))), 256))
530
+ ], 64))), 256)),
531
+ n.value && e.value.style.chart.circles.zoom.show ? (s(), i(O, { key: 1 }, [
532
+ k("circle", {
533
+ style: W(je.value),
534
+ cx: n.value.x,
535
+ cy: n.value.y,
536
+ r: S.value,
537
+ opacity: z.value,
538
+ stroke: e.value.style.chart.circles.stroke,
539
+ fill: e.value.style.chart.circles.gradient.show ? `url(#${n.value.id})` : n.value.color
540
+ }, null, 12, Gt),
541
+ t.$slots["zoom-label"] ? (s(), i("g", Ut, [
542
+ m(t.$slots, "zoom-label", D(L({ ...n.value, zoomOpacity: z.value, currentRadius: S.value, fontSize: M.value })), void 0, !0)
543
+ ])) : (s(), i("g", Bt, [
544
+ k("text", {
545
+ style: {
546
+ pointerEvents: "none"
547
+ },
548
+ opacity: z.value,
549
+ x: n.value.x,
550
+ y: n.value.y + e.value.style.chart.circles.zoom.label.name.offsetY - M.value.name / 4,
551
+ "text-anchor": "middle",
552
+ "font-size": M.value.name,
553
+ fill: e.value.style.chart.circles.zoom.label.name.color ? e.value.style.chart.circles.zoom.label.name.color : c(Y)(n.value.color),
554
+ "font-weight": e.value.style.chart.circles.zoom.label.name.bold ? "bold" : "normal"
555
+ }, G(n.value.name), 9, Vt),
556
+ k("text", {
557
+ style: {
558
+ pointerEvents: "none"
559
+ },
560
+ opacity: z.value,
561
+ x: n.value.x,
562
+ y: n.value.y + M.value.value + e.value.style.chart.circles.zoom.label.value.offsetY,
563
+ "text-anchor": "middle",
564
+ "font-size": M.value.value,
565
+ fill: e.value.style.chart.circles.zoom.label.value.color ? e.value.style.chart.circles.zoom.label.value.color : c(Y)(n.value.color),
566
+ "font-weight": e.value.style.chart.circles.zoom.label.value.bold ? "bold" : "normal"
567
+ }, G(qe()), 9, Ht)
568
+ ]))
569
+ ], 64)) : f("", !0),
570
+ m(t.$slots, "svg", {
571
+ svg: { ...p.value }
572
+ }, void 0, !0)
573
+ ], 14, Tt)) : f("", !0),
574
+ U.value ? f("", !0) : (s(), T($t, {
575
+ key: 5,
576
+ config: {
577
+ type: "circlePack",
578
+ style: {
579
+ color: "#CCCCCC"
580
+ }
581
+ }
582
+ })),
583
+ t.$slots.watermark ? (s(), i("div", Rt, [
584
+ m(t.$slots, "watermark", D(L({ isPrinting: c(fe) || c(ye) })), void 0, !0)
585
+ ])) : f("", !0),
586
+ t.$slots.source ? (s(), i("div", {
587
+ key: 7,
588
+ ref_key: "source",
589
+ ref: Be,
590
+ dir: "auto"
591
+ }, [
592
+ m(t.$slots, "source", {}, void 0, !0)
593
+ ], 512)) : f("", !0),
594
+ U.value ? (s(), T(xt, {
595
+ key: 8,
596
+ hideDetails: "",
597
+ config: {
598
+ open: F.value.showTable,
599
+ maxHeight: 1e4,
600
+ body: {
601
+ backgroundColor: e.value.style.chart.backgroundColor,
602
+ color: e.value.style.chart.color
603
+ },
604
+ head: {
605
+ backgroundColor: e.value.style.chart.backgroundColor,
606
+ color: e.value.style.chart.color
607
+ }
608
+ }
609
+ }, {
610
+ content: C(() => [
611
+ (s(), T(Ct, {
612
+ key: `table_${ie.value}`,
613
+ colNames: H.value.colNames,
614
+ head: H.value.head,
615
+ body: H.value.body,
616
+ config: H.value.config,
617
+ title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
618
+ onClose: a[1] || (a[1] = (l) => F.value.showTable = !1)
619
+ }, {
620
+ th: C(({ th: l }) => [
621
+ k("div", {
622
+ innerHTML: l,
623
+ style: { display: "flex", "align-items": "center" }
624
+ }, null, 8, Xt)
625
+ ]),
626
+ td: C(({ td: l }) => [
627
+ ot(G(l.name || l), 1)
628
+ ]),
629
+ _: 1
630
+ }, 8, ["colNames", "head", "body", "config", "title"]))
631
+ ]),
632
+ _: 1
633
+ }, 8, ["config"])) : f("", !0)
634
+ ], 46, Pt));
635
+ }
636
+ }, sl = /* @__PURE__ */ zt(Wt, [["__scopeId", "data-v-b3280cbf"]]);
637
+ export {
638
+ sl as default
639
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-D6jkeYks.cjs"),de=require("./useNestedProp-rf0W8kVM.cjs"),ve=require("./usePrinter-DX7QbYMt.cjs"),Se=require("./Title-Cg-pVkpN.cjs"),Te=require("./PenAndPaper-BLFX9yTF.cjs"),Ve=require("./useUserOptionState-BgepsfED.cjs"),Oe=require("./PackageVersion-DJECkV0A.cjs"),Fe=require("./vue-ui-accordion-CgkYT3Cq.cjs"),Ie=require("./DataTable-CdUbJy2R.cjs"),Me=require("./vue-ui-skeleton-D2fiHeQ-.cjs"),_e=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Ae=["id"],De=["xmlns","viewBox"],Le=["x","y","width","height"],qe=["id"],Ue=["stop-color"],Re=["stop-color"],He=["stop-color"],Ge={key:0},We=["x","y","width","height","stroke","stroke-width","fill","rx","onMouseenter"],Xe=["x","y","width","height","stroke","stroke-width","fill","rx"],Ye=["opacity","x","y","font-size","fill","font-weight"],je=["opacity","x","y","font-size","fill","font-weight"],Ze=["d","fill"],Je=["cx","cy","r","opacity","stroke","fill"],Ke={key:0,style:{pointerEvents:"none"}},Qe={key:1},et=["opacity","x","y","font-size","fill","font-weight"],tt=["opacity","x","y","font-size","fill","font-weight"],lt={key:6,class:"vue-data-ui-watermark"},ot=["innerHTML"],at={__name:"vue-ui-circle-pack",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},setup(he,{expose:me}){const y=he;e.useCssVars(l=>({"66ae9e59":C.value,"871d16dc":_.value}));const{vue_ui_circle_pack:pe}=r.useConfig(),P=e.computed(()=>!!y.dataset&&y.dataset.length),k=e.ref(r.createUid()),O=e.ref(null),fe=e.ref(null),ye=e.ref(null),H=e.ref(0),G=e.ref(0),W=e.ref(0),ge=e.ref(null),t=e.computed({get:()=>j(),set:l=>l}),{userOptionsVisible:F,setUserOptionsVisibility:X,keepUserOptionState:Y}=Ve.useUserOptionState({config:t.value});function j(){const l=de.useNestedProp({userConfig:y.config,defaultConfig:pe});return l.theme?{...de.useNestedProp({userConfig:r.themes.vue_ui_circle_pack[l.theme]||y.config,defaultConfig:l}),customPalette:r.themePalettes[l.theme]||r.palette}:l}e.watch(()=>y.config,l=>{t.value=j(),F.value=!t.value.userOptions.showOnChartHover,I(),H.value+=1,G.value+=1,b.value.showTable=t.value.table.show},{deep:!0});const{isPrinting:Z,isImaging:J,generatePdf:K,generateImage:Q}=ve.usePrinter({elementId:`vue-ui-circle-pack_${k.value}`,fileName:t.value.style.chart.title.text||"vue-ui-circle-pack"}),ke=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),b=e.ref({showTable:t.value.table.show});async function I(){r.objectIsEmpty(y.dataset)&&r.error({componentName:"VueUiCirclePack",type:"dataset"}),await xe()}e.onMounted(I),e.watch(()=>y.dataset,async l=>{await I()},{deep:!0});const ee=e.computed(()=>r.convertCustomPalette(t.value.customPalette));function te(l,a){return Math.hypot(a.x-l.x,a.y-l.y)}function le(l,a){return a.some(o=>te(l,o)<l.radius+o.radius)}function be(l,a,o,u){const c=a*2;for(let p of l)for(let f=0;f<360;f+=30){let $=f*Math.PI/180,i=p.x+c*Math.cos($),n=p.y+c*Math.sin($),h={x:i,y:n,radius:a};if(i-a>=0&&i+a<=o&&n-a>=0&&n+a<=u&&!le(h,l))return{x:i,y:n}}return null}function Ce(l,a,o,u,c=0,p=0){const f=Math.max(...l.map(h=>h.value)),i=l.map((h,d)=>({...h,radius:h.value/f*u,index:d})).map((h,d)=>({...h,index:d})).toSorted((h,d)=>d.radius-h.radius);let n=[];n.push({...i[0],x:a/2+c,y:o/2+p});for(let h of i.slice(1)){let{radius:d,...ne}=h,D=be(n,d,a,o);if(D)n.push({...ne,x:D.x,y:D.y,radius:d});else{let L=null,se=1/0;for(let T of n)for(let q=0;q<360;q+=15){let ue=q*Math.PI/180,U=T.x+(d+T.radius)*Math.cos(ue),R=T.y+(d+T.radius)*Math.sin(ue),V={...ne,x:U,y:R,radius:d};if(U-d>=0&&U+d<=a&&R-d>=0&&R+d<=o&&!le(V,n)){let ie=n.reduce((Ee,ce)=>Ee+(te(V,ce)<V.radius+ce.radius?1:0),0);ie<se&&(se=ie,L=V)}}L&&n.push(L)}}return n}const M=e.computed(()=>y.dataset.map((l,a)=>{const o=r.convertColorToHex(l.color)||ee.value[a]||r.themePalettes[t.value.theme][a%r.themePalettes[t.value.theme].length]||r.palette[a]||r.palette[a%r.palette.length];return{...l,id:r.createUid(),color:o}}).filter(l=>![null,void 0,1/0,-1/0].includes(l.value))),m=e.ref([]);async function xe(){m.value=Ce(M.value,1e4,1e4,32)}const oe=e.computed(()=>({width:100,height:100})),v=e.computed(()=>{const l=m.value.reduce((i,n)=>n.x-n.radius<i.x-i.radius?n:i,m.value[0]),a=m.value.reduce((i,n)=>n.y-n.radius<i.y-i.radius?n:i,m.value[0]),o=m.value.reduce((i,n)=>n.x+n.radius>i.x+i.radius?n:i,m.value[0]),u=m.value.reduce((i,n)=>n.y+n.radius>i.y+i.radius?n:i,m.value[0]),c=(l==null?void 0:l.x)||0,p=(o==null?void 0:o.x)||oe.value.width,f=(a==null?void 0:a.y)||0,$=(u==null?void 0:u.y)||oe.value.height;return{maxX:p,minX:c,width:Math.abs(p-c)+(l?l.radius:0)+(o?o.radius:0)+t.value.style.chart.circles.strokeWidth*4,height:Math.abs($-f)+(a?a.radius:0)+(u?u.radius:0)+t.value.style.chart.circles.strokeWidth*4,x:l?(l==null?void 0:l.x)-(l==null?void 0:l.radius)-t.value.style.chart.circles.strokeWidth*2:0,y:a?(a==null?void 0:a.y)-(a==null?void 0:a.radius)-t.value.style.chart.circles.strokeWidth*2:0}}),we=e.computed(()=>m.value.map(l=>{if(l.breakdown)return r.makeDonut({series:l.breakdown.map((a,o)=>({...a,color:r.convertColorToHex(a.color)||ee.value[o]||r.palette[o]||r.palette[o%r.palette.length]}))},l.x,l.y,l.radius,l.radius,1.99999,2,1,360,105.25,l.radius/2)})),s=e.ref(null);function Be(l){t.value.style.chart.circles.zoom.show&&(s.value=l)}const C=e.computed(()=>s.value?s.value.radius:0),_=e.computed(()=>s.value?s.value.radius>v.value.width/6*t.value.style.chart.circles.zoom.zoomRatio?s.value.radius:v.value.width/6*t.value.style.chart.circles.zoom.zoomRatio:0),g=e.ref(0),ze=e.computed(()=>({pointerEvents:"none",opacity:g.value,filter:`drop-shadow(0px 0px 6px ${r.darkenHexColor(s.value.color,t.value.style.chart.circles.zoom.shadowForce)})`})),x=e.ref(C.value);e.watchEffect(()=>{x.value=C.value,g.value=0;let l=null;function a(o){l||(l=o);const u=(o-l)/t.value.style.chart.circles.zoom.animationFrameMs;u<1?(x.value=C.value+(_.value-C.value)*u,g.value=0+t.value.style.chart.circles.zoom.opacity*u,requestAnimationFrame(a)):(x.value=_.value,g.value=t.value.style.chart.circles.zoom.opacity)}requestAnimationFrame(a)});const w=e.computed(()=>({name:t.value.style.chart.circles.zoom.label.name.fontSize*v.value.width/300,value:t.value.style.chart.circles.zoom.label.value.fontSize*v.value.width/300}));function B(l){return r.applyDataLabel(t.value.style.chart.circles.labels.value.formatter,l.value,r.dataLabel({p:t.value.style.chart.circles.labels.value.prefix,v:l.value,s:t.value.style.chart.circles.labels.value.suffix,r:t.value.style.chart.circles.labels.value.rounding}))}function $e(){return r.applyDataLabel(t.value.style.chart.circles.zoom.label.value.formatter,s.value.value,r.dataLabel({p:t.value.style.chart.circles.zoom.label.value.prefix,v:s.value.value,s:t.value.style.chart.circles.zoom.label.value.suffix,r:t.value.style.chart.circles.zoom.label.rounding}))}const z=e.ref(!1);function Pe(l){z.value=l,W.value+=1}const N=e.ref(!1);function A(){N.value=!N.value}const E=e.computed(()=>{const l=M.value.map(o=>({name:o.name,value:o.value,color:o.color})).toSorted((o,u)=>u.value-o.value),a=l.map(o=>o.value);return{head:l,body:a}});function ae(){e.nextTick(()=>{const l=E.value.head.map((u,c)=>[[u.name],[E.value.body[c]]]),a=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[""],[t.value.table.columnNames.value]]].concat(l),o=r.createCsvContent(a);r.downloadCsv({csvContent:o,title:t.value.style.chart.title.text||"vue-ui-circle-pack"})})}const S=e.computed(()=>{const l=[t.value.table.columnNames.datapoint,t.value.table.columnNames.value],a=E.value.head.map((c,p)=>{const f=r.dataLabel({p:t.value.style.chart.circles.labels.value.prefix,v:E.value.body[p],s:t.value.style.chart.circles.labels.value.suffix,r:t.value.style.chart.circles.labels.value.rounding});return[{color:c.color,name:c.name},f]}),o={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.datapoint,t.value.table.columnNames.value],head:l,body:a,config:o}});function re(){b.value.showTable=!b.value.showTable}function Ne(){return M.value}return me({getData:Ne,generateCsv:ae,generatePdf:K,generateImage:Q,toggleTable:re,toggleAnnotator:A}),(l,a)=>(e.openBlock(),e.createElementBlock("div",{id:`vue-ui-circle-pack_${k.value}`,class:e.normalizeClass(`vue-ui-circle-pack ${z.value?"vue-data-ui-wrapper-fullscreen":""}`),ref_key:"circlePackChart",ref:O,style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;background:${t.value.style.chart.backgroundColor}`),onMouseenter:a[2]||(a[2]=()=>e.unref(X)(!0)),onMouseleave:a[3]||(a[3]=()=>e.unref(X)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(Te.PenAndPaper,{key:0,parent:O.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:N.value,onClose:A},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"userConfig",{},void 0,!0),ke.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:ye,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:fe,style:"width:100%;background:transparent;padding-bottom:12px"},[(e.openBlock(),e.createBlock(Se._sfc_main,{key:`title_${H.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&&P.value&&(e.unref(Y)||e.unref(F))?(e.openBlock(),e.createBlock(ve.UserOptions,{ref:"details",key:`user_option_${W.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(Z),isImaging:e.unref(J),uid:k.value,hasTooltip:!1,hasLabel:!1,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:z.value,chartElement:O.value,position:t.value.userOptions.position,titles:{...t.value.userOptions.buttonTitles},hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:N.value,onToggleFullscreen:Pe,onGeneratePdf:e.unref(K),onGenerateCsv:ae,onGenerateImage:e.unref(Q),onToggleTable:re,onToggleAnnotator:A,style:e.normalizeStyle({visibility:e.unref(Y)?e.unref(F)?"visible":"hidden":"visible"})},e.createSlots({_:2},[l.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,l.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionCsv",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"2"}:void 0,l.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTable",{},void 0,!0)]),key:"3"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:o,isFullscreen:u})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:o,isFullscreen:u})),void 0,!0)]),key:"4"}:void 0,l.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:o,isAnnotator:u})=>[e.renderSlot(l.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:o,isAnnotator:u})),void 0,!0)]),key:"5"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasImg","hasXls","hasTable","hasFullscreen","isFullscreen","chartElement","position","titles","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),P.value?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(r.XMLNS),viewBox:`${v.value.x} ${v.value.y} ${v.value.width} ${v.value.height}`,width:"100%",class:e.normalizeClass({"vue-data-ui-fullscreen--on":z.value,"vue-data-ui-fulscreen--off":!z.value}),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:v.value.x,y:v.value.y,width:v.value.width,height:v.value.height,style:{pointerEvents:"none"}},[e.renderSlot(l.$slots,"chart-background",{},void 0,!0)],8,Le)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,o=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",{id:o.id,fy:"30%"},[e.createElementVNode("stop",{offset:"10%","stop-color":e.unref(r.lightenHexColor)(o.color,t.value.style.chart.circles.gradient.intensity/100)},null,8,Ue),e.createElementVNode("stop",{offset:"90%","stop-color":e.unref(r.darkenHexColor)(o.color,.1)},null,8,Re),e.createElementVNode("stop",{offset:"100%","stop-color":o.color},null,8,He)],8,qe)]),l.$slots.pattern?(e.openBlock(),e.createElementBlock("g",Ge,[e.createElementVNode("defs",null,[e.renderSlot(l.$slots,"pattern",e.normalizeProps(e.guardReactiveProps({...o,patternId:`pattern_${k.value}_${o.id}`})),void 0,!0)])])):e.createCommentVNode("",!0),e.createElementVNode("rect",{x:o.x-o.radius,y:o.y-o.radius,width:o.radius*2,height:o.radius*2,stroke:t.value.style.chart.circles.stroke,"stroke-width":t.value.style.chart.circles.strokeWidth,fill:t.value.style.chart.circles.gradient.show?`url(#${o.id})`:o.color,rx:o.radius,onMouseenter:()=>Be(o),onMouseout:a[0]||(a[0]=u=>s.value=null)},null,40,We),l.$slots.pattern?(e.openBlock(),e.createElementBlock("rect",{key:1,x:o.x-o.radius,y:o.y-o.radius,width:o.radius*2,height:o.radius*2,stroke:t.value.style.chart.circles.stroke,"stroke-width":t.value.style.chart.circles.strokeWidth,fill:`url(#pattern_${k.value}_${o.id})`,rx:o.radius,style:{pointerEvents:"none"}},null,8,Xe)):e.createCommentVNode("",!0),t.value.style.chart.circles.labels.name.show&&o.name?(e.openBlock(),e.createElementBlock("text",{key:2,style:{pointerEvents:"none",transition:"opacity 0.2s ease-in-out"},opacity:s.value?.2:1,x:o.x,y:o.y-o.radius/2.5+t.value.style.chart.circles.labels.name.offsetY,"font-size":o.radius/o.name.length*2,fill:t.value.style.chart.circles.labels.name.color?t.value.style.chart.circles.labels.name.color:e.unref(r.adaptColorToBackground)(o.color),"font-weight":t.value.style.chart.circles.labels.name.bold?"bold":"normal","text-anchor":"middle"},e.toDisplayString(o.name),9,Ye)):e.createCommentVNode("",!0),t.value.style.chart.circles.labels.value.show?(e.openBlock(),e.createElementBlock("text",{key:3,style:{pointerEvents:"none",transition:"opacity 0.2s ease-in-out"},opacity:s.value?.2:1,x:o.x,y:o.y+o.radius/B(o).length*(B(o).length===1?1:2)/2+t.value.style.chart.circles.labels.value.offsetY,"font-size":o.radius/B(o).length*(B(o).length===1?1:2),fill:t.value.style.chart.circles.labels.value.color?t.value.style.chart.circles.labels.value.color:e.unref(r.adaptColorToBackground)(o.color),"font-weight":t.value.style.chart.circles.labels.value.bold?"bold":"normal","text-anchor":"middle"},e.toDisplayString(B(o)),9,je)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(we.value,u=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u,c=>(e.openBlock(),e.createElementBlock("path",{d:c.arcSlice,fill:c.color,stroke:"black"},null,8,Ze))),256))],64))),256))],64))),256)),s.value&&t.value.style.chart.circles.zoom.show?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("circle",{style:e.normalizeStyle(ze.value),cx:s.value.x,cy:s.value.y,r:x.value,opacity:g.value,stroke:t.value.style.chart.circles.stroke,fill:t.value.style.chart.circles.gradient.show?`url(#${s.value.id})`:s.value.color},null,12,Je),l.$slots["zoom-label"]?(e.openBlock(),e.createElementBlock("g",Ke,[e.renderSlot(l.$slots,"zoom-label",e.normalizeProps(e.guardReactiveProps({...s.value,zoomOpacity:g.value,currentRadius:x.value,fontSize:w.value})),void 0,!0)])):(e.openBlock(),e.createElementBlock("g",Qe,[e.createElementVNode("text",{style:{pointerEvents:"none"},opacity:g.value,x:s.value.x,y:s.value.y+t.value.style.chart.circles.zoom.label.name.offsetY-w.value.name/4,"text-anchor":"middle","font-size":w.value.name,fill:t.value.style.chart.circles.zoom.label.name.color?t.value.style.chart.circles.zoom.label.name.color:e.unref(r.adaptColorToBackground)(s.value.color),"font-weight":t.value.style.chart.circles.zoom.label.name.bold?"bold":"normal"},e.toDisplayString(s.value.name),9,et),e.createElementVNode("text",{style:{pointerEvents:"none"},opacity:g.value,x:s.value.x,y:s.value.y+w.value.value+t.value.style.chart.circles.zoom.label.value.offsetY,"text-anchor":"middle","font-size":w.value.value,fill:t.value.style.chart.circles.zoom.label.value.color?t.value.style.chart.circles.zoom.label.value.color:e.unref(r.adaptColorToBackground)(s.value.color),"font-weight":t.value.style.chart.circles.zoom.label.value.bold?"bold":"normal"},e.toDisplayString($e()),9,tt)]))],64)):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"svg",{svg:{...v.value}},void 0,!0)],14,De)):e.createCommentVNode("",!0),P.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Me.default,{key:5,config:{type:"circlePack",style:{color:"#CCCCCC"}}})),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",lt,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(Z)||e.unref(J)})),void 0,!0)])):e.createCommentVNode("",!0),l.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:7,ref_key:"source",ref:ge,dir:"auto"},[e.renderSlot(l.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),P.value?(e.openBlock(),e.createBlock(Fe.default,{key:8,hideDetails:"",config:{open:b.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(Ie.DataTable,{key:`table_${G.value}`,colNames:S.value.colNames,head:S.value.head,body:S.value.body,config:S.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:a[1]||(a[1]=o=>b.value.showTable=!1)},{th:e.withCtx(({th:o})=>[e.createElementVNode("div",{innerHTML:o,style:{display:"flex","align-items":"center"}},null,8,ot)]),td:e.withCtx(({td:o})=>[e.createTextVNode(e.toDisplayString(o.name||o),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],46,Ae))}},rt=_e._export_sfc(at,[["__scopeId","data-v-b3280cbf"]]);exports.default=rt;