vue-data-ui 2.4.1 → 2.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (218) hide show
  1. package/README.md +44 -44
  2. package/dist/{Arrow-BIs_9yK8.js → Arrow-C7lNL7sY.js} +1 -1
  3. package/dist/{Arrow-DpMf3yPs.cjs → Arrow-Dz6AomGr.cjs} +1 -1
  4. package/dist/{BaseIcon-CXDdkPfN.js → BaseIcon-BbvG1AlW.js} +7 -4
  5. package/dist/BaseIcon-uALK38Ov.cjs +1 -0
  6. package/dist/{DataTable-BTgMVOwp.cjs → DataTable-DTzynbND.cjs} +1 -1
  7. package/dist/{DataTable-DL2agEJ3.js → DataTable-DYqC2pqu.js} +2 -2
  8. package/dist/{Legend-Dj9KiaLv.cjs → Legend-Cgw4lO2O.cjs} +1 -1
  9. package/dist/{Legend-DXLiSLHd.js → Legend-DNgTCgEK.js} +1 -1
  10. package/dist/{PackageVersion-D4D0WicU.cjs → PackageVersion-DwI-KhXH.cjs} +1 -1
  11. package/dist/{PackageVersion-DtnhR89q.js → PackageVersion-VkaUzgmt.js} +1 -1
  12. package/dist/PenAndPaper-CDFVOo7X.cjs +1 -0
  13. package/dist/PenAndPaper-DAZYA8Ew.js +269 -0
  14. package/dist/{Shape-CO_Ak9Zm.js → Shape-Bwon0l0g.js} +1 -1
  15. package/dist/{Shape-7EC2UKDK.cjs → Shape-D2Dpshg1.cjs} +1 -1
  16. package/dist/{Slicer-BZfUZr1J.js → Slicer-TfpN2Cr4.js} +3 -3
  17. package/dist/{Slicer-CLAVjSQP.cjs → Slicer-uSjfNJjG.cjs} +1 -1
  18. package/dist/{Title-C-lm3Mkl.cjs → Title-0Tp4hZ4u.cjs} +1 -1
  19. package/dist/{Title-DYNLqCCT.js → Title-C5pIfQAz.js} +1 -1
  20. package/dist/{Tooltip-t-3mVhcz.cjs → Tooltip-9Tp2Yrd1.cjs} +1 -1
  21. package/dist/{Tooltip-CICAYyQj.js → Tooltip-Cz24YLfw.js} +1 -1
  22. package/dist/{index-DDXisDKy.js → index-Bya_q1J-.js} +883 -842
  23. package/dist/index-eFox7weK.cjs +9 -0
  24. package/dist/style.css +1 -1
  25. package/dist/types/vue-data-ui.d.cts +22 -17
  26. package/dist/types/vue-data-ui.d.ts +22 -17
  27. package/dist/{useNestedProp-S1UXxUgm.js → useNestedProp-B33hazbH.js} +1 -1
  28. package/dist/{useNestedProp-CC9zGr7C.cjs → useNestedProp-BkgEhTQY.cjs} +1 -1
  29. package/dist/usePrinter-CSRFnDBU.cjs +1 -0
  30. package/dist/{usePrinter-8ofTb2MJ.js → usePrinter-CiHd1FwD.js} +230 -185
  31. package/dist/useResponsive-BY8tgM1n.js +188 -0
  32. package/dist/useResponsive-CodiGUOE.cjs +1 -0
  33. package/dist/vue-data-ui-BTtxyUc3.cjs +9 -0
  34. package/dist/vue-data-ui-Bduq4f2p.js +261 -0
  35. package/dist/vue-data-ui.cjs +1 -1
  36. package/dist/vue-data-ui.js +1 -1
  37. package/dist/vue-ui-3d-bar-B-P7PMHs.cjs +19 -0
  38. package/dist/{vue-ui-3d-bar-DcF1nyGW.js → vue-ui-3d-bar-BUEq_VdY.js} +421 -390
  39. package/dist/{vue-ui-accordion-D_1fE5EF.js → vue-ui-accordion-DfUfL2dI.js} +3 -3
  40. package/dist/{vue-ui-accordion-Cc9958th.cjs → vue-ui-accordion-TEMpM1hO.cjs} +1 -1
  41. package/dist/{vue-ui-age-pyramid-Oe_yHDL0.js → vue-ui-age-pyramid-CH72tAMb.js} +255 -222
  42. package/dist/vue-ui-age-pyramid-DsbZ1qcQ.cjs +1 -0
  43. package/dist/{vue-ui-annotator-Dix6_Gm6.js → vue-ui-annotator-DPeJ2its.js} +1 -1
  44. package/dist/{vue-ui-annotator-Dbp6cWMr.cjs → vue-ui-annotator-DU_DJKCw.cjs} +1 -1
  45. package/dist/vue-ui-bullet-CtP3MlUT.js +464 -0
  46. package/dist/vue-ui-bullet-D8ks_rKr.cjs +34 -0
  47. package/dist/vue-ui-candlestick-D1jdr0bv.cjs +2 -0
  48. package/dist/{vue-ui-candlestick-CRwzWF6j.js → vue-ui-candlestick-DDil13a0.js} +278 -245
  49. package/dist/{vue-ui-carousel-table-BHeEbRKY.js → vue-ui-carousel-table-BaeIxyc0.js} +76 -69
  50. package/dist/vue-ui-carousel-table-C7SJIOG-.cjs +1 -0
  51. package/dist/{vue-ui-chestnut-CRk0RCB9.js → vue-ui-chestnut-BczSJF6S.js} +322 -291
  52. package/dist/vue-ui-chestnut-ih5r0Bj9.cjs +6 -0
  53. package/dist/{vue-ui-cursor-lU1rts1B.cjs → vue-ui-cursor-C2Pj_CI_.cjs} +1 -1
  54. package/dist/{vue-ui-cursor-y0kdr0uA.js → vue-ui-cursor-Dg_Dmww-.js} +2 -2
  55. package/dist/{vue-ui-dashboard-OyihaKdu.js → vue-ui-dashboard-Bul9dqx1.js} +2 -2
  56. package/dist/{vue-ui-dashboard-BfC0jS-X.cjs → vue-ui-dashboard-Cg020NiT.cjs} +1 -1
  57. package/dist/{vue-ui-digits-IKt4qT2-.js → vue-ui-digits-B8iAa4YZ.js} +2 -2
  58. package/dist/{vue-ui-digits-BJfcAiq_.cjs → vue-ui-digits-Ctgd84JR.cjs} +1 -1
  59. package/dist/vue-ui-donut-D7KT9EAp.cjs +1 -0
  60. package/dist/{vue-ui-donut-DFaGk4fI.js → vue-ui-donut-DUcp-fat.js} +376 -343
  61. package/dist/vue-ui-donut-evolution-CHtJ8iOK.cjs +1 -0
  62. package/dist/{vue-ui-donut-evolution-Dd4o37RP.js → vue-ui-donut-evolution-C_YMbTwq.js} +375 -344
  63. package/dist/vue-ui-dumbbell-B0dikuqO.cjs +9 -0
  64. package/dist/{vue-ui-dumbbell-B7j1_JoQ.js → vue-ui-dumbbell-Buwngz_V.js} +294 -261
  65. package/dist/vue-ui-flow-Bz3c0K5P.js +515 -0
  66. package/dist/vue-ui-flow-D6rc8J-8.cjs +1 -0
  67. package/dist/{vue-ui-galaxy-CH1BDtWl.js → vue-ui-galaxy-Cjh0XGTX.js} +212 -181
  68. package/dist/vue-ui-galaxy-CmTt0vBf.cjs +1 -0
  69. package/dist/vue-ui-gauge-B1UvGkQa.js +527 -0
  70. package/dist/vue-ui-gauge-B_TKuyM7.cjs +1 -0
  71. package/dist/{vue-ui-gizmo-DVwQaEH1.cjs → vue-ui-gizmo-DFW6HnHp.cjs} +1 -1
  72. package/dist/{vue-ui-gizmo-CKQcbe_7.js → vue-ui-gizmo-DUQ4t-At.js} +3 -3
  73. package/dist/{vue-ui-heatmap-B-zWMk0Y.js → vue-ui-heatmap-C-poazUw.js} +308 -277
  74. package/dist/vue-ui-heatmap-C2HlnqzO.cjs +1 -0
  75. package/dist/{vue-ui-kpi-CghbfSdM.js → vue-ui-kpi-DXe-vxAk.js} +3 -3
  76. package/dist/{vue-ui-kpi-CuY3xlVq.cjs → vue-ui-kpi-Z4Oi4raz.cjs} +1 -1
  77. package/dist/{vue-ui-mini-loader-C7roqZ4p.js → vue-ui-mini-loader-BVtHTqxS.js} +2 -2
  78. package/dist/{vue-ui-mini-loader-CH_PfeDc.cjs → vue-ui-mini-loader-MMvpm9pz.cjs} +1 -1
  79. package/dist/vue-ui-molecule-BaJpDZND.js +805 -0
  80. package/dist/vue-ui-molecule-BiYIcOKN.cjs +1 -0
  81. package/dist/{vue-ui-mood-radar-DSznHxLS.js → vue-ui-mood-radar-BUNDwsEI.js} +259 -228
  82. package/dist/vue-ui-mood-radar-C6jMyFkb.cjs +1 -0
  83. package/dist/vue-ui-nested-donuts-DKO2dFKo.cjs +17 -0
  84. package/dist/{vue-ui-nested-donuts-CiE4DdEQ.js → vue-ui-nested-donuts-mDy2hXa6.js} +371 -338
  85. package/dist/vue-ui-onion-DwFG3HAI.js +650 -0
  86. package/dist/vue-ui-onion-GWNoZRhw.cjs +5 -0
  87. package/dist/vue-ui-parallel-coordinate-plot-DODn4Ohf.cjs +8 -0
  88. package/dist/vue-ui-parallel-coordinate-plot-ImET_zeo.js +719 -0
  89. package/dist/{vue-ui-quadrant-Cs3A77us.js → vue-ui-quadrant-BeveRihK.js} +359 -326
  90. package/dist/vue-ui-quadrant-yuFAxV-5.cjs +1 -0
  91. package/dist/{vue-ui-quick-chart-CiiSUexi.js → vue-ui-quick-chart-DAhllTfa.js} +585 -552
  92. package/dist/vue-ui-quick-chart-DgFDBzjS.cjs +15 -0
  93. package/dist/vue-ui-radar-BJH5SE6-.cjs +1 -0
  94. package/dist/{vue-ui-radar-CNSpiNrM.js → vue-ui-radar-BllatzRa.js} +279 -246
  95. package/dist/{vue-ui-rating-GoUNDOdZ.cjs → vue-ui-rating-BoZo7caL.cjs} +1 -1
  96. package/dist/{vue-ui-rating-b_iYZWF8.js → vue-ui-rating-D1ykV4xO.js} +2 -2
  97. package/dist/vue-ui-relation-circle-CKmjOle7.cjs +1 -0
  98. package/dist/vue-ui-relation-circle-xv2l5Be9.js +358 -0
  99. package/dist/vue-ui-rings-B-ZcX6y1.js +602 -0
  100. package/dist/vue-ui-rings-DjH3CK23.cjs +2 -0
  101. package/dist/{vue-ui-scatter-CVuoW-cD.js → vue-ui-scatter-DG43ck1g.js} +440 -407
  102. package/dist/vue-ui-scatter-SBCXAl7q.cjs +1 -0
  103. package/dist/{vue-ui-screenshot-Co2o48d6.cjs → vue-ui-screenshot-C1JBP_N0.cjs} +1 -1
  104. package/dist/{vue-ui-screenshot-Csc0dQL9.js → vue-ui-screenshot-p3ca8cAl.js} +1 -1
  105. package/dist/{vue-ui-skeleton-B2sRnIXX.js → vue-ui-skeleton-BYssP0K4.js} +419 -379
  106. package/dist/vue-ui-skeleton-BqKzuhkB.cjs +41 -0
  107. package/dist/{vue-ui-smiley-Ci3uMgVh.cjs → vue-ui-smiley-BXKVpHl2.cjs} +1 -1
  108. package/dist/{vue-ui-smiley-D4s-AdIE.js → vue-ui-smiley-D7dDCdpq.js} +2 -2
  109. package/dist/vue-ui-spark-trend-9V60hM3Z.cjs +1 -0
  110. package/dist/{vue-ui-spark-trend-CHKQGMLs.js → vue-ui-spark-trend-GWFrO_0z.js} +86 -79
  111. package/dist/vue-ui-sparkbar-Bgn6AY0q.cjs +1 -0
  112. package/dist/{vue-ui-sparkbar-Bb1fq2GR.js → vue-ui-sparkbar-CwqlyAyv.js} +90 -83
  113. package/dist/vue-ui-sparkgauge-Dqntz2Zv.cjs +1 -0
  114. package/dist/{vue-ui-sparkgauge-DWuaAQbo.js → vue-ui-sparkgauge-F2XbiXyA.js} +57 -50
  115. package/dist/{vue-ui-sparkhistogram-CjeJ3ch1.js → vue-ui-sparkhistogram-DRIKK6Ym.js} +74 -67
  116. package/dist/vue-ui-sparkhistogram-DnY4-Sdn.cjs +1 -0
  117. package/dist/vue-ui-sparkline-CAEs-gtK.cjs +1 -0
  118. package/dist/{vue-ui-sparkline-DGJDBArr.js → vue-ui-sparkline-Cxtzdlhi.js} +134 -125
  119. package/dist/{vue-ui-sparkstackbar-B3ul3qUZ.js → vue-ui-sparkstackbar-0A1klq9s.js} +84 -77
  120. package/dist/vue-ui-sparkstackbar-D37ms1rx.cjs +1 -0
  121. package/dist/vue-ui-stackbar-ByOuJSdM.js +947 -0
  122. package/dist/vue-ui-stackbar-wun4S3C0.cjs +6 -0
  123. package/dist/{vue-ui-strip-plot-CIb2LSV8.js → vue-ui-strip-plot-CMD0MSqY.js} +297 -264
  124. package/dist/vue-ui-strip-plot-IQrypGvz.cjs +1 -0
  125. package/dist/{vue-ui-table-CmVi0nv2.js → vue-ui-table-B75DJ39t.js} +1 -1
  126. package/dist/{vue-ui-table-B_sFrAO9.cjs → vue-ui-table-aj0XZ7T5.cjs} +1 -1
  127. package/dist/{vue-ui-table-heatmap-CgFr38QT.js → vue-ui-table-heatmap-BO2ugWqD.js} +55 -48
  128. package/dist/vue-ui-table-heatmap-Ce93TyBF.cjs +1 -0
  129. package/dist/{vue-ui-table-sparkline-eg2Qd8ws.js → vue-ui-table-sparkline-CbjfAaj2.js} +88 -81
  130. package/dist/vue-ui-table-sparkline-D6KJjDnU.cjs +1 -0
  131. package/dist/vue-ui-thermometer-Pq4PvSIP.js +447 -0
  132. package/dist/vue-ui-thermometer-swmi4FmH.cjs +1 -0
  133. package/dist/{vue-ui-timer-DM1IStj1.cjs → vue-ui-timer-B6IB6yS6.cjs} +1 -1
  134. package/dist/{vue-ui-timer-COSI3Q5T.js → vue-ui-timer-Bk3BvB-B.js} +6 -6
  135. package/dist/vue-ui-tiremarks-CU9HJIqf.js +310 -0
  136. package/dist/vue-ui-tiremarks-Cn79uQH2.cjs +1 -0
  137. package/dist/vue-ui-treemap-BEMuKV7x.cjs +1 -0
  138. package/dist/vue-ui-treemap-DY-lRAhC.js +825 -0
  139. package/dist/vue-ui-vertical-bar-B1e2RxTv.cjs +4 -0
  140. package/dist/vue-ui-vertical-bar-CtnIKsM1.js +861 -0
  141. package/dist/vue-ui-waffle-BqP7Okgu.cjs +1 -0
  142. package/dist/vue-ui-waffle-reOsx-gJ.js +791 -0
  143. package/dist/vue-ui-wheel-BuWUGnkC.cjs +1 -0
  144. package/dist/vue-ui-wheel-kYxny3vn.js +291 -0
  145. package/dist/vue-ui-word-cloud-DbMqrHAf.js +607 -0
  146. package/dist/vue-ui-word-cloud-DwLY4QdB.cjs +1 -0
  147. package/dist/vue-ui-xy-CGWzriYn.cjs +3 -0
  148. package/dist/{vue-ui-xy-canvas-BYdTxzi6.js → vue-ui-xy-canvas-B0HTR7OV.js} +441 -408
  149. package/dist/vue-ui-xy-canvas-CgJd5FiT.cjs +9 -0
  150. package/dist/{vue-ui-xy-x8KEsGV-.js → vue-ui-xy-rbACig0h.js} +824 -791
  151. package/package.json +1 -1
  152. package/dist/BaseIcon-E7FmzMcY.cjs +0 -1
  153. package/dist/index-C7_6YjWN.cjs +0 -9
  154. package/dist/usePrinter-8EP4iaGm.cjs +0 -1
  155. package/dist/useResponsive-B3TrDDIG.cjs +0 -1
  156. package/dist/useResponsive-NZB-WLRF.js +0 -187
  157. package/dist/vue-data-ui-4Yd255Ia.cjs +0 -9
  158. package/dist/vue-data-ui-Cp7bO_tj.js +0 -258
  159. package/dist/vue-ui-3d-bar-BeR2aBgQ.cjs +0 -19
  160. package/dist/vue-ui-age-pyramid-R-C4P4mI.cjs +0 -1
  161. package/dist/vue-ui-bullet-CQKaC4wG.js +0 -409
  162. package/dist/vue-ui-bullet-DSZox236.cjs +0 -23
  163. package/dist/vue-ui-candlestick-Dilozp3V.cjs +0 -2
  164. package/dist/vue-ui-carousel-table-C0GDDSW9.cjs +0 -1
  165. package/dist/vue-ui-chestnut-DdEcEI04.cjs +0 -6
  166. package/dist/vue-ui-donut-DTSVlGMg.cjs +0 -1
  167. package/dist/vue-ui-donut-evolution-BuUafabD.cjs +0 -1
  168. package/dist/vue-ui-dumbbell-CVfgnyKi.cjs +0 -9
  169. package/dist/vue-ui-flow-C45dODaB.cjs +0 -1
  170. package/dist/vue-ui-flow-DkPTzNv9.js +0 -484
  171. package/dist/vue-ui-galaxy-DlPavMK0.cjs +0 -1
  172. package/dist/vue-ui-gauge-BXiy515T.js +0 -494
  173. package/dist/vue-ui-gauge-vMFUYHYH.cjs +0 -1
  174. package/dist/vue-ui-heatmap-CMQqQnxc.cjs +0 -1
  175. package/dist/vue-ui-molecule-BwmkMEVN.js +0 -774
  176. package/dist/vue-ui-molecule-nOuD0hR5.cjs +0 -1
  177. package/dist/vue-ui-mood-radar-Bof_C9Ae.cjs +0 -1
  178. package/dist/vue-ui-nested-donuts-DIb6YyWv.cjs +0 -17
  179. package/dist/vue-ui-onion-D9o6Rcgu.js +0 -617
  180. package/dist/vue-ui-onion-N3tRNc4u.cjs +0 -5
  181. package/dist/vue-ui-parallel-coordinate-plot-BcYrYXhG.js +0 -686
  182. package/dist/vue-ui-parallel-coordinate-plot-qKGk2bX6.cjs +0 -8
  183. package/dist/vue-ui-quadrant-Do48rGrX.cjs +0 -1
  184. package/dist/vue-ui-quick-chart-BxU4d-sJ.cjs +0 -15
  185. package/dist/vue-ui-radar-CooAvwPA.cjs +0 -1
  186. package/dist/vue-ui-relation-circle-nRf1pvD0.js +0 -325
  187. package/dist/vue-ui-relation-circle-uNgJni4x.cjs +0 -1
  188. package/dist/vue-ui-rings-BgRc1o4_.js +0 -569
  189. package/dist/vue-ui-rings-iIgQI9Ws.cjs +0 -2
  190. package/dist/vue-ui-scatter-CkrpmLxP.cjs +0 -1
  191. package/dist/vue-ui-skeleton-CGV1dEUD.cjs +0 -41
  192. package/dist/vue-ui-spark-trend-BfoEoJEy.cjs +0 -1
  193. package/dist/vue-ui-sparkbar-DB2DeXti.cjs +0 -1
  194. package/dist/vue-ui-sparkgauge-CJepIY2u.cjs +0 -1
  195. package/dist/vue-ui-sparkhistogram-B7B36LLT.cjs +0 -1
  196. package/dist/vue-ui-sparkline-BcqmwDAb.cjs +0 -1
  197. package/dist/vue-ui-sparkstackbar-DT3aKNeV.cjs +0 -1
  198. package/dist/vue-ui-stackbar-CRcUugkl.cjs +0 -6
  199. package/dist/vue-ui-stackbar-DNROvZII.js +0 -915
  200. package/dist/vue-ui-strip-plot-Ck9Fmt_b.cjs +0 -1
  201. package/dist/vue-ui-table-heatmap-Chvdf2Gi.cjs +0 -1
  202. package/dist/vue-ui-table-sparkline-DUUYQ5dH.cjs +0 -1
  203. package/dist/vue-ui-thermometer-BFfN4aat.cjs +0 -1
  204. package/dist/vue-ui-thermometer-BePmFiwy.js +0 -416
  205. package/dist/vue-ui-tiremarks-BkYXzU3R.cjs +0 -1
  206. package/dist/vue-ui-tiremarks-d6TmSHY7.js +0 -279
  207. package/dist/vue-ui-treemap-BgeZnbl3.cjs +0 -1
  208. package/dist/vue-ui-treemap-Qg0858o6.js +0 -792
  209. package/dist/vue-ui-vertical-bar-CieqHVD5.js +0 -828
  210. package/dist/vue-ui-vertical-bar-D3atbdvl.cjs +0 -4
  211. package/dist/vue-ui-waffle-CD7C9Lu4.cjs +0 -1
  212. package/dist/vue-ui-waffle-CjNhM-mV.js +0 -758
  213. package/dist/vue-ui-wheel-B8mbO6ht.js +0 -258
  214. package/dist/vue-ui-wheel-CYmM7J61.cjs +0 -1
  215. package/dist/vue-ui-word-cloud-DMXrUmX5.js +0 -574
  216. package/dist/vue-ui-word-cloud-Dm9yZ1zQ.cjs +0 -1
  217. package/dist/vue-ui-xy-DoWnidom.cjs +0 -3
  218. package/dist/vue-ui-xy-canvas-DHs5sb3t.cjs +0 -9
@@ -1,617 +0,0 @@
1
- import { computed as d, ref as n, watch as he, onMounted as Ne, onBeforeUnmount as Re, openBlock as s, createElementBlock as u, normalizeClass as z, normalizeStyle as W, createBlock as C, createCommentVNode as b, unref as v, createSlots as Ae, withCtx as h, renderSlot as g, normalizeProps as Y, guardReactiveProps as B, createVNode as fe, Fragment as M, renderList as F, createElementVNode as _, toDisplayString as T, createTextVNode as De, nextTick as Le } from "vue";
2
- import { u as ze, c as Ye, t as Be, a as Ve, p as ge, b as Xe, o as Ge, e as j, d as Ue, X as Ee, f as N, i as q, x as pe, q as He, r as We, y as je } from "./index-DDXisDKy.js";
3
- import { t as qe, u as Je } from "./useResponsive-NZB-WLRF.js";
4
- import { _ as Ke } from "./Title-DYNLqCCT.js";
5
- import { u as Qe, U as Ze } from "./usePrinter-8ofTb2MJ.js";
6
- import { L as et } from "./Legend-DXLiSLHd.js";
7
- import { D as tt } from "./DataTable-DL2agEJ3.js";
8
- import { _ as at } from "./Tooltip-CICAYyQj.js";
9
- import lt from "./vue-ui-skeleton-B2sRnIXX.js";
10
- import ot from "./vue-ui-accordion-D_1fE5EF.js";
11
- import { u as ye } from "./useNestedProp-S1UXxUgm.js";
12
- import { _ as rt } from "./PackageVersion-DtnhR89q.js";
13
- import { _ as st } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
- const nt = ["id"], ut = ["xmlns", "viewBox"], it = ["cx", "cy", "r", "stroke", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], ct = ["cx", "cy", "r", "stroke", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], dt = ["id"], vt = ["stdDeviation"], ht = ["filter"], ft = ["cx", "cy", "r", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], gt = ["cx", "cy", "r", "stroke-width", "stroke-dasharray", "stroke-dashoffset", "onMouseenter"], pt = { key: 1 }, yt = ["onMouseenter"], mt = ["x", "y", "font-size", "fill", "font-weight"], bt = {
15
- key: 3,
16
- class: "vue-data-ui-watermark"
17
- }, kt = ["onClick"], $t = ["innerHTML"], wt = {
18
- __name: "vue-ui-onion",
19
- props: {
20
- config: {
21
- type: Object,
22
- default() {
23
- return {};
24
- }
25
- },
26
- dataset: {
27
- type: Array,
28
- default() {
29
- return [];
30
- }
31
- }
32
- },
33
- emits: ["selectLegend"],
34
- setup(me, { expose: be, emit: ke }) {
35
- const k = me, { vue_ui_onion: $e } = ze(), R = d(() => !!k.dataset && k.dataset.length), x = n(Ye()), we = n(null), J = n(0), A = n(!1), V = n(""), p = n([]), P = n(null), K = n(null), Q = n(null), Z = n(0), ee = n(0), te = n(0), e = d({
36
- get: () => ae(),
37
- set: (a) => a
38
- });
39
- function ae() {
40
- const a = ye({
41
- userConfig: k.config,
42
- defaultConfig: $e
43
- });
44
- return a.theme ? {
45
- ...ye({
46
- userConfig: Be.vue_ui_onion[a.theme] || k.config,
47
- defaultConfig: a
48
- }),
49
- customPalette: Ve[a.theme] || ge
50
- } : a;
51
- }
52
- he(() => k.config, (a) => {
53
- e.value = ae(), ne(), Z.value += 1, ee.value += 1, te.value += 1;
54
- }, { deep: !0 });
55
- const { isPrinting: le, isImaging: oe, generatePdf: re, generateImage: se } = Qe({
56
- elementId: `vue-ui-onion_${x.value}`,
57
- fileName: e.value.style.chart.title.text || "vue-ui-onion"
58
- }), xe = d(() => Xe(e.value.customPalette)), $ = n({
59
- showTable: e.value.table.show,
60
- showTooltip: e.value.style.chart.tooltip.show
61
- }), r = n({
62
- height: 512,
63
- width: 512,
64
- padding: {
65
- top: 64,
66
- left: 64,
67
- right: 64,
68
- bottom: 64
69
- },
70
- minRadius: 64
71
- }), D = n(null);
72
- Ne(() => {
73
- ne();
74
- });
75
- function ne() {
76
- if (Ge(k.dataset) && j({
77
- componentName: "VueUiOnion",
78
- type: "dataset"
79
- }), e.value.responsive) {
80
- const o = qe(() => {
81
- const { width: t, height: l } = Je({
82
- chart: P.value,
83
- title: e.value.style.chart.title.text ? K.value : null,
84
- legend: e.value.style.chart.legend.show ? Q.value : null
85
- });
86
- r.value.width = t, r.value.height = l, r.value.padding.top = Math.max(t, l) * 0.125, r.value.padding.right = Math.max(t, l) * 0.125, r.value.padding.bottom = Math.max(t, l) * 0.125, r.value.padding.left = Math.max(t, l) * 0.125, r.value.minRadius = Math.min(t, l) * 0.125;
87
- });
88
- D.value = new ResizeObserver(o), D.value.observe(P.value.parentNode);
89
- }
90
- }
91
- Re(() => {
92
- D.value && D.value.disconnect();
93
- });
94
- const i = d(() => ({
95
- top: r.value.padding.top,
96
- left: r.value.padding.left,
97
- right: r.value.width - r.value.padding.right,
98
- bottom: r.value.height - r.value.padding.bottom,
99
- centerX: r.value.width / 2,
100
- centerY: r.value.height / 2,
101
- width: r.value.width - r.value.padding.right - r.value.padding.left,
102
- height: r.value.height - r.value.padding.bottom - r.value.padding.top,
103
- minRadius: r.value.minRadius,
104
- maxRadius: Math.min(r.value.width, r.value.height) - r.value.padding.top * 2
105
- })), c = d(() => (k.dataset.forEach((a, o) => {
106
- [null, void 0].includes(a.name) && j({
107
- componentName: "VueUiOnion",
108
- type: "datasetSerieAttribute",
109
- property: "name",
110
- index: o
111
- }), [void 0].includes(a.percentage) && j({
112
- componentName: "VueUiOnion",
113
- type: "datasetSerieAttribute",
114
- property: "percentage",
115
- index: o
116
- });
117
- }), k.dataset.map((a, o) => {
118
- const t = `onion_serie_${o}_${x.value}`;
119
- return {
120
- ...a,
121
- percentage: a.percentage || 0,
122
- targetPercentage: a.percentage || 0,
123
- color: Ue(a.color) || xe.value[o] || ge[o],
124
- id: t,
125
- shape: "circle",
126
- opacity: p.value.includes(t) ? 0.5 : 1,
127
- absoluteIndex: o,
128
- segregate: () => ue(t),
129
- isSegregated: p.value.includes(t)
130
- };
131
- }))), O = n(c.value), Ce = d(() => e.value.useStartAnimation), _e = n(null), Te = d(() => Math.max(...c.value.map((a) => a.percentage))), X = n(!1);
132
- he(() => c.value, Pe, { immediate: !0 });
133
- function Pe() {
134
- if (Ce.value && !X.value) {
135
- let o = function() {
136
- a >= Te.value ? (cancelAnimationFrame(_e.value), O.value = c.value, X.value = !0) : (O.value = c.value.map((t) => ({
137
- ...t,
138
- percentage: a < t.targetPercentage ? a : t.targetPercentage
139
- })), a += 1, requestAnimationFrame(o), X.value = !0);
140
- };
141
- O.value = c.value.map((t) => ({
142
- ...t,
143
- percentage: 0
144
- }));
145
- let a = 0;
146
- o();
147
- } else
148
- O.value = c.value;
149
- }
150
- const Oe = d(() => ({
151
- cy: "onion-div-legend",
152
- backgroundColor: e.value.style.chart.legend.backgroundColor,
153
- color: e.value.style.chart.legend.color,
154
- fontSize: e.value.style.chart.legend.fontSize,
155
- paddingBottom: 12,
156
- fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
157
- })), Ie = d(() => c.value.filter((a) => !p.value.includes(a.id)).length), w = d(() => {
158
- const a = Math.min(i.value.width, i.value.height) / 2 / c.value.length;
159
- return {
160
- gutter: (a > e.value.style.chart.layout.maxThickness ? e.value.style.chart.layout.maxThickness : a) * e.value.style.chart.layout.gutter.width,
161
- track: (a > e.value.style.chart.layout.maxThickness ? e.value.style.chart.layout.maxThickness : a) * e.value.style.chart.layout.track.width
162
- };
163
- }), y = d(() => O.value.filter((a) => !p.value.includes(a.id)).map((a, o) => {
164
- const t = (i.value.maxRadius - w.value.track) / Ie.value / 2 * (1 + o), l = i.value.centerY - t;
165
- return {
166
- percentage: a.percentage || 0,
167
- ...a,
168
- labelY: l,
169
- radius: t,
170
- path: Se(t, a.percentage || 0)
171
- };
172
- }));
173
- function Se(a, o) {
174
- const t = 2 * Math.PI * a, l = t * 0.75, f = `${l} ${t}`, S = l * (1 - o / 100);
175
- return {
176
- bgDashArray: `${l} ${t}`,
177
- bgDashOffset: 0,
178
- dashArray: f,
179
- dashOffset: S,
180
- fullOffset: 0,
181
- active: `
182
- M ${i.value.centerX},${i.value.centerY - a}
183
- A ${a},${a} 0 1 1
184
- ${i.value.centerX + a * Math.cos(Math.PI * 3 / 4)},${i.value.centerY + a * Math.sin(Math.PI * 3 / 4)}
185
- `.trim()
186
- };
187
- }
188
- function ue(a) {
189
- p.value.includes(a) ? p.value = p.value.filter((o) => o !== a) : p.value.push(a), ke("selectLegend", y.value);
190
- }
191
- function Me() {
192
- return y.value;
193
- }
194
- const G = d(() => {
195
- const a = [e.value.table.translations.serie, e.value.table.translations.percentage, e.value.table.translations.value], o = y.value.map((t) => [
196
- t.name,
197
- t.percentage,
198
- t.value
199
- ]);
200
- return { head: a, body: o };
201
- }), L = d(() => {
202
- const a = G.value.head, o = y.value.map((l) => [
203
- `<span style="color:${l.color}">⬤</span> ${l.name}`,
204
- `${Number(l.percentage ?? 0).toFixed(e.value.table.td.roundingPercentage).toLocaleString()}%`,
205
- `${l.prefix || ""}${[null, void 0, NaN, "NaN"].includes(l.value) ? "-" : l.value.toFixed(e.value.table.td.roundingValue).toLocaleString()}${l.suffix || ""}`
206
- ]), t = {
207
- th: {
208
- backgroundColor: e.value.table.th.backgroundColor,
209
- color: e.value.table.th.color,
210
- outline: e.value.table.th.outline
211
- },
212
- td: {
213
- backgroundColor: e.value.table.td.backgroundColor,
214
- color: e.value.table.td.color,
215
- outline: e.value.table.td.outline
216
- },
217
- breakpoint: e.value.table.responsiveBreakpoint
218
- };
219
- return { head: a, body: o, config: t, colNames: a };
220
- });
221
- function ie() {
222
- Le(() => {
223
- const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], o = G.value.head, t = G.value.body, l = a.concat([o]).concat(t), f = He(l);
224
- We({ csvContent: f, title: e.value.style.chart.title.text || "vue-ui-onion" });
225
- });
226
- }
227
- const m = n(void 0), I = n(!1);
228
- function Fe(a) {
229
- I.value = a, J.value += 1;
230
- }
231
- const U = n(null);
232
- function ce({ datapoint: a, seriesIndex: o, show: t = !0 }) {
233
- const l = a.absoluteIndex;
234
- m.value = o, U.value = {
235
- datapoint: a,
236
- seriesIndex: l,
237
- series: c.value,
238
- config: e.value
239
- }, A.value = t;
240
- let f = "";
241
- const S = e.value.style.chart.tooltip.customFormat;
242
- if (pe(S) && je(() => S({
243
- seriesIndex: l,
244
- datapoint: a,
245
- series: c.value,
246
- config: e.value
247
- })))
248
- V.value = S({
249
- seriesIndex: l,
250
- datapoint: a,
251
- series: c.value,
252
- config: e.value
253
- });
254
- else {
255
- const E = e.value.style.chart.tooltip.showPercentage, H = e.value.style.chart.tooltip.showValue;
256
- f += `<div style="width: 100%; border-bottom: 1px solid ${e.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="${a.color}"/></svg><span></span>${a.name}</span></div>`, f += `<div style="width:100%;text-align:left;"><b>${E ? N({ p: "", v: a.percentage, s: "%", r: e.value.style.chart.tooltip.roundingPercentage }) : ""}</b> ${E && H ? "(" : ""}${H ? q(
257
- e.value.style.chart.layout.labels.value.formatter,
258
- a.value,
259
- N({
260
- p: a.prefix || "",
261
- v: a.value,
262
- s: a.suffix || "",
263
- r: e.value.style.chart.tooltip.roundingValue
264
- }),
265
- { datapoint: a, seriesIndex: o }
266
- ) : ""}${E && H ? ")" : ""}</div>`, V.value = `<div>${f}</div>`;
267
- }
268
- }
269
- function de() {
270
- $.value.showTable = !$.value.showTable;
271
- }
272
- function ve() {
273
- $.value.showTooltip = !$.value.showTooltip;
274
- }
275
- return be({
276
- getData: Me,
277
- generatePdf: re,
278
- generateCsv: ie,
279
- generateImage: se,
280
- toggleTable: de,
281
- toggleTooltip: ve
282
- }), (a, o) => (s(), u("div", {
283
- class: z(`vue-ui-onion ${I.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
284
- ref_key: "onionChart",
285
- ref: P,
286
- id: `vue-ui-onion_${x.value}`,
287
- style: W(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height: 100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`)
288
- }, [
289
- e.value.style.chart.title.text ? (s(), u("div", {
290
- key: 0,
291
- ref_key: "chartTitle",
292
- ref: K,
293
- style: "width:100%;background:transparent"
294
- }, [
295
- (s(), C(Ke, {
296
- key: `title_${Z.value}`,
297
- config: {
298
- title: {
299
- cy: "onion-div-title",
300
- ...e.value.style.chart.title
301
- },
302
- subtitle: {
303
- cy: "onion-div-subtitle",
304
- ...e.value.style.chart.title.subtitle
305
- }
306
- }
307
- }, null, 8, ["config"]))
308
- ], 512)) : b("", !0),
309
- e.value.userOptions.show && R.value ? (s(), C(Ze, {
310
- ref_key: "details",
311
- ref: we,
312
- key: `user_options${J.value}`,
313
- backgroundColor: e.value.style.chart.backgroundColor,
314
- color: e.value.style.chart.color,
315
- isImaging: v(oe),
316
- isPrinting: v(le),
317
- uid: x.value,
318
- hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
319
- hasPdf: e.value.userOptions.buttons.pdf,
320
- hasImg: e.value.userOptions.buttons.img,
321
- hasXls: e.value.userOptions.buttons.csv,
322
- hasTable: e.value.userOptions.buttons.table,
323
- hasFullscreen: e.value.userOptions.buttons.fullscreen,
324
- isFullscreen: I.value,
325
- isTooltip: $.value.showTooltip,
326
- titles: { ...e.value.userOptions.buttonTitles },
327
- chartElement: P.value,
328
- position: e.value.userOptions.position,
329
- onToggleFullscreen: Fe,
330
- onGeneratePdf: v(re),
331
- onGenerateCsv: ie,
332
- onGenerateImage: v(se),
333
- onToggleTable: de,
334
- onToggleTooltip: ve
335
- }, Ae({ _: 2 }, [
336
- a.$slots.optionTooltip ? {
337
- name: "optionTooltip",
338
- fn: h(() => [
339
- g(a.$slots, "optionTooltip", {}, void 0, !0)
340
- ]),
341
- key: "0"
342
- } : void 0,
343
- a.$slots.optionPdf ? {
344
- name: "optionPdf",
345
- fn: h(() => [
346
- g(a.$slots, "optionPdf", {}, void 0, !0)
347
- ]),
348
- key: "1"
349
- } : void 0,
350
- a.$slots.optionCsv ? {
351
- name: "optionCsv",
352
- fn: h(() => [
353
- g(a.$slots, "optionCsv", {}, void 0, !0)
354
- ]),
355
- key: "2"
356
- } : void 0,
357
- a.$slots.optionImg ? {
358
- name: "optionImg",
359
- fn: h(() => [
360
- g(a.$slots, "optionImg", {}, void 0, !0)
361
- ]),
362
- key: "3"
363
- } : void 0,
364
- a.$slots.optionTable ? {
365
- name: "optionTable",
366
- fn: h(() => [
367
- g(a.$slots, "optionTable", {}, void 0, !0)
368
- ]),
369
- key: "4"
370
- } : void 0,
371
- a.$slots.optionFullscreen ? {
372
- name: "optionFullscreen",
373
- fn: h(({ toggleFullscreen: t, isFullscreen: l }) => [
374
- g(a.$slots, "optionFullscreen", Y(B({ toggleFullscreen: t, isFullscreen: l })), void 0, !0)
375
- ]),
376
- key: "5"
377
- } : void 0
378
- ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "onGeneratePdf", "onGenerateImage"])) : b("", !0),
379
- R.value ? (s(), u("svg", {
380
- key: 2,
381
- xmlns: v(Ee),
382
- class: z({ "vue-data-ui-fullscreen--on": I.value, "vue-data-ui-fulscreen--off": !I.value }),
383
- viewBox: `0 0 ${r.value.width <= 0 ? 1e-4 : r.value.width} ${r.value.height <= 0 ? 1e-4 : r.value.height}`,
384
- style: W(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
385
- }, [
386
- fe(rt),
387
- (s(!0), u(M, null, F(y.value, (t, l) => (s(), u("circle", {
388
- cx: i.value.centerX,
389
- cy: i.value.centerY,
390
- r: t.radius <= 0 ? 1e-4 : t.radius,
391
- stroke: e.value.style.chart.layout.gutter.color,
392
- "stroke-width": w.value.gutter,
393
- fill: "none",
394
- "stroke-dasharray": t.path.bgDashArray,
395
- "stroke-dashoffset": t.path.fullOffset,
396
- "stroke-linecap": "round",
397
- class: z({ "vue-ui-onion-path": !0, "vue-ui-onion-blur": e.value.useBlurOnHover && ![null, void 0].includes(m.value) && m.value !== l }),
398
- style: { transform: "rotate(-90deg)", "transform-origin": "50% 50%" }
399
- }, null, 10, it))), 256)),
400
- (s(!0), u(M, null, F(y.value, (t, l) => (s(), u("circle", {
401
- cx: i.value.centerX,
402
- cy: i.value.centerY,
403
- r: t.radius < 0 ? 1e-4 : t.radius,
404
- stroke: `${t.color}`,
405
- "stroke-width": w.value.track,
406
- fill: "none",
407
- "stroke-dasharray": t.path.dashArray,
408
- "stroke-dashoffset": t.path.dashOffset,
409
- class: z({ "vue-ui-onion-path": !0, "vue-ui-onion-blur": e.value.useBlurOnHover && ![null, void 0].includes(m.value) && m.value !== l }),
410
- "stroke-linecap": "round",
411
- style: { transform: "rotate(-90deg)", "transform-origin": "50% 50%" }
412
- }, null, 10, ct))), 256)),
413
- _("defs", null, [
414
- _("filter", {
415
- id: `blur_${x.value}`,
416
- x: "-50%",
417
- y: "-50%",
418
- width: "200%",
419
- height: "200%"
420
- }, [
421
- _("feGaussianBlur", {
422
- in: "SourceGraphic",
423
- stdDeviation: 100 / e.value.style.chart.gradientIntensity
424
- }, null, 8, vt)
425
- ], 8, dt)
426
- ]),
427
- e.value.style.chart.useGradient ? (s(), u("g", {
428
- key: 0,
429
- filter: `url(#blur_${x.value})`
430
- }, [
431
- (s(!0), u(M, null, F(y.value, (t, l) => (s(), u("circle", {
432
- cx: i.value.centerX,
433
- cy: i.value.centerY,
434
- r: t.radius <= 0 ? 1e-4 : t.radius,
435
- stroke: "white",
436
- "stroke-width": w.value.track / 3,
437
- fill: "none",
438
- "stroke-linecap": "round",
439
- "stroke-dasharray": t.path.dashArray,
440
- "stroke-dashoffset": t.path.dashOffset,
441
- style: { transform: "rotate(-90deg)", "transform-origin": "50% 50%" }
442
- }, null, 8, ft))), 256))
443
- ], 8, ht)) : b("", !0),
444
- (s(!0), u(M, null, F(y.value, (t, l) => (s(), u("circle", {
445
- "data-cy-trap": "",
446
- cx: i.value.centerX,
447
- cy: i.value.centerY,
448
- r: t.radius <= 0 ? 1e-4 : t.radius,
449
- stroke: "transparent",
450
- "stroke-width": Math.max(w.value.track, w.value.gutter),
451
- fill: "none",
452
- "stroke-dasharray": t.path.bgDashArray,
453
- "stroke-dashoffset": t.path.fullOffset,
454
- "stroke-linecap": "round",
455
- class: "vue-ui-onion-path",
456
- style: { transform: "rotate(-90deg)", "transform-origin": "50% 50%" },
457
- onMouseenter: (f) => ce({
458
- datapoint: t,
459
- show: !0,
460
- seriesIndex: l
461
- }),
462
- onMouseleave: o[0] || (o[0] = (f) => {
463
- m.value = void 0, A.value = !1;
464
- })
465
- }, null, 40, gt))), 256)),
466
- e.value.style.chart.layout.labels.show ? (s(), u("g", pt, [
467
- (s(!0), u(M, null, F(y.value, (t, l) => (s(), u("g", {
468
- onMouseenter: (f) => ce({
469
- datapoint: t,
470
- show: !0,
471
- seriesIndex: l
472
- }),
473
- onMouseleave: o[1] || (o[1] = (f) => {
474
- m.value = void 0, A.value = !1;
475
- })
476
- }, [
477
- p.value.includes(t.id) ? b("", !0) : (s(), u("text", {
478
- key: 0,
479
- x: r.value.width / 2 - w.value.gutter * 0.8 + e.value.style.chart.layout.labels.offsetX,
480
- y: t.labelY + e.value.style.chart.layout.labels.offsetY,
481
- "text-anchor": "end",
482
- "font-size": e.value.style.chart.layout.labels.fontSize,
483
- fill: e.value.useBlurOnHover && ![null, void 0].includes(m.value) && m.value === l ? t.color : e.value.style.chart.layout.labels.color,
484
- "font-weight": e.value.style.chart.layout.labels.bold ? "bold" : "normal"
485
- }, T(t.name ? t.name + ": " : "") + " " + T(e.value.style.chart.layout.labels.percentage.show ? v(N)({
486
- v: t.percentage,
487
- s: "%",
488
- r: e.value.style.chart.layout.labels.roundingPercentage
489
- }) : "") + " " + T(!e.value.style.chart.layout.labels.percentage.show && e.value.style.chart.layout.labels.value.show ? `: ${v(q)(
490
- e.value.style.chart.layout.labels.value.formatter,
491
- t.value,
492
- v(N)({
493
- p: t.prefix || "",
494
- v: t.value || 0,
495
- s: t.suffix || "",
496
- r: e.value.style.chart.layout.labels.roundingValue
497
- }),
498
- { datapoint: t, seriesIndex: l }
499
- )}` : `${e.value.style.chart.layout.labels.value.show && t.value ? `(${v(q)(
500
- e.value.style.chart.layout.labels.value.formatter,
501
- t.value,
502
- v(N)({
503
- p: t.prefix || "",
504
- v: t.value || 0,
505
- s: t.suffix || "",
506
- r: e.value.style.chart.layout.labels.roundingValue
507
- }),
508
- { datapoint: t, seriesIndex: l }
509
- )})` : ""}`), 9, mt))
510
- ], 40, yt))), 256))
511
- ])) : b("", !0),
512
- g(a.$slots, "svg", { svg: r.value }, void 0, !0)
513
- ], 14, ut)) : b("", !0),
514
- a.$slots.watermark ? (s(), u("div", bt, [
515
- g(a.$slots, "watermark", Y(B({ isPrinting: v(le) || v(oe) })), void 0, !0)
516
- ])) : b("", !0),
517
- R.value ? b("", !0) : (s(), C(lt, {
518
- key: 4,
519
- config: {
520
- type: "onion",
521
- style: {
522
- backgroundColor: e.value.style.chart.backgroundColor,
523
- onion: {
524
- color: e.value.style.chart.layout.gutter.color
525
- }
526
- }
527
- }
528
- }, null, 8, ["config"])),
529
- _("div", {
530
- ref_key: "chartLegend",
531
- ref: Q
532
- }, [
533
- e.value.style.chart.legend.show ? (s(), C(et, {
534
- key: `legend_${te.value}`,
535
- legendSet: c.value,
536
- config: Oe.value,
537
- onClickMarker: o[2] || (o[2] = ({ legend: t }) => ue(t.id))
538
- }, {
539
- item: h(({ legend: t }) => [
540
- _("div", {
541
- "data-cy-legend-item": "",
542
- onClick: (l) => t.segregate(),
543
- style: W(`opacity:${p.value.includes(t.id) ? 0.5 : 1}`)
544
- }, T(t.name ? t.name + ": " : "") + " " + T((t.percentage || 0).toFixed(e.value.style.chart.legend.roundingPercentage)) + "% ", 13, kt)
545
- ]),
546
- _: 1
547
- }, 8, ["legendSet", "config"])) : g(a.$slots, "legend", {
548
- key: 1,
549
- legend: c.value
550
- }, void 0, !0)
551
- ], 512),
552
- fe(at, {
553
- show: $.value.showTooltip && A.value,
554
- backgroundColor: e.value.style.chart.tooltip.backgroundColor,
555
- color: e.value.style.chart.tooltip.color,
556
- borderRadius: e.value.style.chart.tooltip.borderRadius,
557
- borderColor: e.value.style.chart.tooltip.borderColor,
558
- borderWidth: e.value.style.chart.tooltip.borderWidth,
559
- fontSize: e.value.style.chart.tooltip.fontSize,
560
- backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
561
- position: e.value.style.chart.tooltip.position,
562
- offsetY: e.value.style.chart.tooltip.offsetY,
563
- parent: P.value,
564
- content: V.value,
565
- isCustom: v(pe)(e.value.style.chart.tooltip.customFormat)
566
- }, {
567
- "tooltip-before": h(() => [
568
- g(a.$slots, "tooltip-before", Y(B({ ...U.value })), void 0, !0)
569
- ]),
570
- "tooltip-after": h(() => [
571
- g(a.$slots, "tooltip-after", Y(B({ ...U.value })), void 0, !0)
572
- ]),
573
- _: 3
574
- }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
575
- R.value ? (s(), C(ot, {
576
- key: 5,
577
- hideDetails: "",
578
- config: {
579
- open: $.value.showTable,
580
- maxHeight: 1e4,
581
- head: {
582
- backgroundColor: e.value.style.chart.backgroundColor,
583
- color: e.value.style.chart.color
584
- },
585
- body: {
586
- backgroundColor: e.value.style.chart.backgroundColor,
587
- color: e.value.style.chart.color
588
- }
589
- }
590
- }, {
591
- content: h(() => [
592
- (s(), C(tt, {
593
- key: `table_${ee.value}`,
594
- colNames: L.value.colNames,
595
- head: L.value.head,
596
- body: L.value.body,
597
- config: L.value.config,
598
- title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
599
- onClose: o[3] || (o[3] = (t) => $.value.showTable = !1)
600
- }, {
601
- th: h(({ th: t }) => [
602
- De(T(t), 1)
603
- ]),
604
- td: h(({ td: t }) => [
605
- _("div", { innerHTML: t }, null, 8, $t)
606
- ]),
607
- _: 1
608
- }, 8, ["colNames", "head", "body", "config", "title"]))
609
- ]),
610
- _: 1
611
- }, 8, ["config"])) : b("", !0)
612
- ], 14, nt));
613
- }
614
- }, Dt = /* @__PURE__ */ st(wt, [["__scopeId", "data-v-3e9f72db"]]);
615
- export {
616
- Dt as default
617
- };
@@ -1,5 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),u=require("./index-C7_6YjWN.cjs"),j=require("./useResponsive-B3TrDDIG.cjs"),he=require("./Title-C-lm3Mkl.cjs"),J=require("./usePrinter-8EP4iaGm.cjs"),pe=require("./Legend-Dj9KiaLv.cjs"),fe=require("./DataTable-BTgMVOwp.cjs"),ge=require("./Tooltip-t-3mVhcz.cjs"),me=require("./vue-ui-skeleton-CGV1dEUD.cjs"),ye=require("./vue-ui-accordion-Cc9958th.cjs"),K=require("./useNestedProp-CC9zGr7C.cjs"),be=require("./PackageVersion-D4D0WicU.cjs"),ke=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),we=["id"],Ce=["xmlns","viewBox"],xe=["cx","cy","r","stroke","stroke-width","stroke-dasharray","stroke-dashoffset"],$e=["cx","cy","r","stroke","stroke-width","stroke-dasharray","stroke-dashoffset"],Be=["id"],Te=["stdDeviation"],_e=["filter"],Se=["cx","cy","r","stroke-width","stroke-dasharray","stroke-dashoffset"],Pe=["cx","cy","r","stroke-width","stroke-dasharray","stroke-dashoffset","onMouseenter"],Ne={key:1},Oe=["onMouseenter"],Fe=["x","y","font-size","fill","font-weight"],Ie={key:3,class:"vue-data-ui-watermark"},Ve=["onClick"],Ee=["innerHTML"],Le={__name:"vue-ui-onion",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend"],setup(Q,{expose:Z,emit:ee}){const p=Q,{vue_ui_onion:te}=u.useConfig(),C=e.computed(()=>!!p.dataset&&p.dataset.length),m=e.ref(u.createUid()),ae=e.ref(null),F=e.ref(0),x=e.ref(!1),T=e.ref(""),d=e.ref([]),y=e.ref(null),I=e.ref(null),V=e.ref(null),E=e.ref(0),L=e.ref(0),M=e.ref(0),t=e.computed({get:()=>D(),set:l=>l});function D(){const l=K.useNestedProp({userConfig:p.config,defaultConfig:te});return l.theme?{...K.useNestedProp({userConfig:u.themes.vue_ui_onion[l.theme]||p.config,defaultConfig:l}),customPalette:u.themePalettes[l.theme]||u.palette}:l}e.watch(()=>p.config,l=>{t.value=D(),Y(),E.value+=1,L.value+=1,M.value+=1},{deep:!0});const{isPrinting:R,isImaging:z,generatePdf:A,generateImage:q}=J.usePrinter({elementId:`vue-ui-onion_${m.value}`,fileName:t.value.style.chart.title.text||"vue-ui-onion"}),le=e.computed(()=>u.convertCustomPalette(t.value.customPalette)),f=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}),$=e.ref(null);e.onMounted(()=>{Y()});function Y(){if(u.objectIsEmpty(p.dataset)&&u.error({componentName:"VueUiOnion",type:"dataset"}),t.value.responsive){const r=j.throttle(()=>{const{width:a,height:o}=j.useResponsive({chart:y.value,title:t.value.style.chart.title.text?I.value:null,legend:t.value.style.chart.legend.show?V.value:null});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});$.value=new ResizeObserver(r),$.value.observe(y.value.parentNode)}}e.onBeforeUnmount(()=>{$.value&&$.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(()=>(p.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})}),p.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)||le.value[r]||u.palette[r],id:a,shape:"circle",opacity:d.value.includes(a)?.5:1,absoluteIndex:r,segregate:()=>X(a),isSegregated:d.value.includes(a)}}))),b=e.ref(i.value),oe=e.computed(()=>t.value.useStartAnimation),re=e.ref(null),ne=e.computed(()=>Math.max(...i.value.map(l=>l.percentage))),_=e.ref(!1);e.watch(()=>i.value,ue,{immediate:!0});function ue(){if(oe.value&&!_.value){let r=function(){l>=ne.value?(cancelAnimationFrame(re.value),b.value=i.value,_.value=!0):(b.value=i.value.map(a=>({...a,percentage:l<a.targetPercentage?l:a.targetPercentage})),l+=1,requestAnimationFrame(r),_.value=!0)};b.value=i.value.map(a=>({...a,percentage:0}));let l=0;r()}else b.value=i.value}const se=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":""})),ie=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}}),v=e.computed(()=>b.value.filter(l=>!d.value.includes(l.id)).map((l,r)=>{const a=(s.value.maxRadius-g.value.track)/ie.value/2*(1+r),o=s.value.centerY-a;return{percentage:l.percentage||0,...l,labelY:o,radius:a,path:ce(a,l.percentage||0)}}));function ce(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()}}function X(l){d.value.includes(l)?d.value=d.value.filter(r=>r!==l):d.value.push(l),ee("selectLegend",v.value)}function de(){return v.value}const S=e.computed(()=>{const l=[t.value.table.translations.serie,t.value.table.translations.percentage,t.value.table.translations.value],r=v.value.map(a=>[a.name,a.percentage,a.value]);return{head:l,body:r}}),B=e.computed(()=>{const l=S.value.head,r=v.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 U(){e.nextTick(()=>{const l=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[""]],r=S.value.head,a=S.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 h=e.ref(void 0),k=e.ref(!1);function ve(l){k.value=l,F.value+=1}const P=e.ref(null);function G({datapoint:l,seriesIndex:r,show:a=!0}){const o=l.absoluteIndex;h.value=r,P.value={datapoint:l,seriesIndex:o,series:i.value,config:t.value},x.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})))T.value=w({seriesIndex:o,datapoint:l,series:i.value,config:t.value});else{const N=t.value.style.chart.tooltip.showPercentage,O=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>${N?u.dataLabel({p:"",v:l.percentage,s:"%",r:t.value.style.chart.tooltip.roundingPercentage}):""}</b> ${N&&O?"(":""}${O?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}):""}${N&&O?")":""}</div>`,T.value=`<div>${c}</div>`}}function H(){f.value.showTable=!f.value.showTable}function W(){f.value.showTooltip=!f.value.showTooltip}return Z({getData:de,generatePdf:A,generateCsv:U,generateImage:q,toggleTable:H,toggleTooltip:W}),(l,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`vue-ui-onion ${k.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}`)},[t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"chartTitle",ref:I,style:"width:100%;background:transparent"},[(e.openBlock(),e.createBlock(he._sfc_main,{key:`title_${E.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.openBlock(),e.createBlock(J.UserOptions,{ref_key:"details",ref:ae,key:`user_options${F.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isImaging:e.unref(z),isPrinting:e.unref(R),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:k.value,isTooltip:f.value.showTooltip,titles:{...t.value.userOptions.buttonTitles},chartElement:y.value,position:t.value.userOptions.position,onToggleFullscreen:ve,onGeneratePdf:e.unref(A),onGenerateCsv:U,onGenerateImage:e.unref(q),onToggleTable:H,onToggleTooltip:W},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]),1032,["backgroundColor","color","isImaging","isPrinting","uid","hasTooltip","hasPdf","hasImg","hasXls","hasTable","hasFullscreen","isFullscreen","isTooltip","titles","chartElement","position","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),C.value?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(u.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":k.value,"vue-data-ui-fulscreen--off":!k.value}),viewBox:`0 0 ${n.value.width<=0?1e-4:n.value.width} ${n.value.height<=0?1e-4:n.value.height}`,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(be._sfc_main),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.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(h.value)&&h.value!==o}),style:{transform:"rotate(-90deg)","transform-origin":"50% 50%"}},null,10,xe))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.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(h.value)&&h.value!==o}),"stroke-linecap":"round",style:{transform:"rotate(-90deg)","transform-origin":"50% 50%"}},null,10,$e))),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,Te)],8,Be)]),t.value.style.chart.useGradient?(e.openBlock(),e.createElementBlock("g",{key:0,filter:`url(#blur_${m.value})`},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.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,Se))),256))],8,_e)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(a,o)=>(e.openBlock(),e.createElementBlock("circle",{"data-cy-trap":"",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=>G({datapoint:a,show:!0,seriesIndex:o}),onMouseleave:r[0]||(r[0]=c=>{h.value=void 0,x.value=!1})},null,40,Pe))),256)),t.value.style.chart.layout.labels.show?(e.openBlock(),e.createElementBlock("g",Ne,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(a,o)=>(e.openBlock(),e.createElementBlock("g",{onMouseenter:c=>G({datapoint:a,show:!0,seriesIndex:o}),onMouseleave:r[1]||(r[1]=c=>{h.value=void 0,x.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(h.value)&&h.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,Fe))],40,Oe))),256))])):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"svg",{svg:n.value},void 0,!0)],14,Ce)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Ie,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(R)||e.unref(z)})),void 0,!0)])):e.createCommentVNode("",!0),C.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(me.default,{key:4,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:V},[t.value.style.chart.legend.show?(e.openBlock(),e.createBlock(pe.Legend,{key:`legend_${M.value}`,legendSet:i.value,config:se.value,onClickMarker:r[2]||(r[2]=({legend:a})=>X(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,Ve)]),_:1},8,["legendSet","config"])):e.renderSlot(l.$slots,"legend",{key:1,legend:i.value},void 0,!0)],512),e.createVNode(ge._sfc_main,{show:f.value.showTooltip&&x.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:T.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({...P.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...P.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","fontSize","backgroundOpacity","position","offsetY","parent","content","isCustom"]),C.value?(e.openBlock(),e.createBlock(ye.default,{key:5,hideDetails:"",config:{open:f.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(fe.DataTable,{key:`table_${L.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=>f.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,Ee)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],14,we))}},Me=ke._export_sfc(Le,[["__scopeId","data-v-3e9f72db"]]);exports.default=Me;