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
@@ -0,0 +1,602 @@
1
+ import { ref as n, computed as d, watch as Me, onMounted as ze, onBeforeUnmount as Re, openBlock as u, createElementBlock as y, normalizeClass as W, normalizeStyle as F, createBlock as _, createCommentVNode as $, unref as i, createSlots as Ve, withCtx as p, renderSlot as h, normalizeProps as O, guardReactiveProps as M, createVNode as ge, createElementVNode as k, Fragment as fe, renderList as ye, createTextVNode as me, toDisplayString as E, nextTick as Be } from "vue";
2
+ import { u as De, c as be, t as Ue, a as We, p as x, o as Ee, e as Y, g as Ge, b as He, I as Xe, d as ke, f as N, X as je, s as Ye, w as qe, v as q, i as Ce, x as Je, y as Ke, q as Qe, r as Ze } from "./index-Bya_q1J-.js";
3
+ import { t as et, u as tt } from "./useResponsive-BY8tgM1n.js";
4
+ import { _ as lt } from "./Title-C5pIfQAz.js";
5
+ import { u as ot, U as at } from "./usePrinter-CiHd1FwD.js";
6
+ import { _ as st } from "./Tooltip-Cz24YLfw.js";
7
+ import { D as nt } from "./DataTable-DYqC2pqu.js";
8
+ import { L as rt } from "./Legend-DNgTCgEK.js";
9
+ import ut from "./vue-ui-skeleton-BYssP0K4.js";
10
+ import it from "./vue-ui-accordion-DfUfL2dI.js";
11
+ import { u as we } from "./useNestedProp-B33hazbH.js";
12
+ import { _ as vt } from "./PackageVersion-VkaUzgmt.js";
13
+ import { P as ct } from "./PenAndPaper-DAZYA8Ew.js";
14
+ import { _ as dt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
15
+ const pt = ["id"], ht = ["xmlns", "viewBox"], gt = ["id"], ft = ["stop-color"], yt = ["stop-color"], mt = ["stroke", "cx", "cy", "r", "fill"], bt = ["stroke", "stroke-width", "cx", "cy", "r", "fill"], kt = ["cx", "cy", "r", "onMouseenter"], Ct = {
16
+ key: 4,
17
+ class: "vue-data-ui-watermark"
18
+ }, wt = ["onClick"], $t = { key: 0 }, Tt = { key: 1 }, _t = ["innerHTML"], xt = {
19
+ __name: "vue-ui-rings",
20
+ props: {
21
+ config: {
22
+ type: Object,
23
+ default() {
24
+ return {};
25
+ }
26
+ },
27
+ dataset: {
28
+ type: Array,
29
+ default() {
30
+ return [];
31
+ }
32
+ }
33
+ },
34
+ emits: ["selectLegend"],
35
+ setup($e, { expose: Te, emit: _e }) {
36
+ const f = $e, { vue_ui_rings: xe } = De(), L = n(!1), z = d(() => !!f.dataset && f.dataset.length), S = n(be()), Ne = n(null), R = n(!1), G = n(""), T = n(null), J = n(0), P = n(null), K = n(null), Q = n(null), Z = n(null), ee = n(0), te = n(0), le = n(0), e = d({
37
+ get: () => oe(),
38
+ set: (t) => t
39
+ });
40
+ function oe() {
41
+ const t = we({
42
+ userConfig: f.config,
43
+ defaultConfig: xe
44
+ });
45
+ return t.theme ? {
46
+ ...we({
47
+ userConfig: Ue.vue_ui_rings[t.theme] || f.config,
48
+ defaultConfig: t
49
+ }),
50
+ customPalette: We[t.theme] || x
51
+ } : t;
52
+ }
53
+ Me(() => f.config, (t) => {
54
+ e.value = oe(), ae(), ee.value += 1, te.value += 1, le.value += 1;
55
+ }, { deep: !0 });
56
+ const V = n(null);
57
+ ze(() => {
58
+ ae();
59
+ });
60
+ function ae() {
61
+ if (Ee(f.dataset) ? Y({
62
+ componentName: "VueUiRings",
63
+ type: "dataset"
64
+ }) : f.dataset.forEach((t, o) => {
65
+ t.values.length || Y({
66
+ componentName: "VueUiRings",
67
+ type: "dataset"
68
+ }), Ge({
69
+ datasetObject: t,
70
+ requiredAttributes: ["name", "values"]
71
+ }).forEach((l) => {
72
+ Y({
73
+ componentName: "VueUiRings",
74
+ type: "datasetSerieAttribute",
75
+ property: l,
76
+ index: o
77
+ });
78
+ });
79
+ }), e.value.responsive) {
80
+ const t = et(() => {
81
+ const { width: o, height: l } = tt({
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
+ source: Z.value
86
+ });
87
+ r.value.width = o, r.value.height = l;
88
+ });
89
+ V.value = new ResizeObserver(t), V.value.observe(P.value.parentNode);
90
+ }
91
+ setTimeout(() => {
92
+ L.value = !0;
93
+ }, 600);
94
+ }
95
+ Re(() => {
96
+ V.value && V.value.disconnect();
97
+ });
98
+ const { isPrinting: se, isImaging: ne, generatePdf: re, generateImage: ue } = ot({
99
+ elementId: `rings_${S.value}`,
100
+ fileName: e.value.style.chart.title.text || "vue-ui-rings"
101
+ }), ie = d(() => He(e.value.customPalette)), C = n({
102
+ showTable: e.value.table.show,
103
+ showTooltip: e.value.style.chart.tooltip.show
104
+ }), r = n({
105
+ height: 360,
106
+ width: 360
107
+ }), Pe = d(() => Math.min(r.value.height, r.value.width)), v = n([]);
108
+ function H(t) {
109
+ v.value.includes(t) ? v.value = v.value.filter((o) => o !== t) : v.value.push(t), _e("selectLegend", c.value.map((o) => ({
110
+ name: o.name,
111
+ color: o.color,
112
+ value: o.value
113
+ })));
114
+ }
115
+ const Le = d(() => Math.max(
116
+ ...B.value.filter((t) => !v.value.includes(t.uid)).map(({ value: t }) => t)
117
+ ));
118
+ function ve(t) {
119
+ return t / Le.value;
120
+ }
121
+ const B = d(() => f.dataset.map(({ values: t, name: o, color: l = null }, a) => {
122
+ const s = Xe(t).reduce((b, I) => b + I, 0);
123
+ return {
124
+ name: o,
125
+ color: l || ke(l) || ie.value[a] || x[a] || x[a % x.length],
126
+ value: s,
127
+ proportion: s / f.dataset.map((b) => (b.values || []).reduce((I, Oe) => I + Oe, 0)).reduce((b, I) => b + I, 0),
128
+ uid: be()
129
+ };
130
+ })), ce = d(() => B.value.map((t) => ({
131
+ ...t,
132
+ shape: "circle",
133
+ opacity: v.value.includes(t.uid) ? 0.5 : 1,
134
+ segregate: () => H(t.uid),
135
+ isSegregated: v.value.includes(t.uid)
136
+ })).toSorted((t, o) => o.value - t.value)), Se = d(() => ({
137
+ cy: "rings-div-legend",
138
+ backgroundColor: e.value.style.chart.legend.backgroundColor,
139
+ color: e.value.style.chart.legend.color,
140
+ fontSize: e.value.style.chart.legend.fontSize,
141
+ paddingBottom: 12,
142
+ fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
143
+ })), m = d(() => B.value.filter((t) => !v.value.includes(t.uid)).map(({ value: t }) => t).reduce((t, o) => t + o, 0)), c = d(() => B.value.filter((t) => !v.value.includes(t.uid)).map(({ name: t, value: o, color: l = null, uid: a }, s) => ({
144
+ uid: a,
145
+ name: t,
146
+ color: l || ke(l) || ie.value[s] || x[s] || x[s % x.length],
147
+ value: o,
148
+ proportion: ve(o),
149
+ percentage: o / m.value * 100,
150
+ strokeWidth: e.value.style.chart.layout.rings.strokeWidth * ve(o)
151
+ })).toSorted((t, o) => o.value - t.value));
152
+ function Ae() {
153
+ return c.value.map(
154
+ ({ name: t, color: o, value: l, absoluteValues: a, percentage: s }) => ({
155
+ name: t,
156
+ color: o,
157
+ value: l,
158
+ absoluteValues: a,
159
+ percentage: s
160
+ })
161
+ );
162
+ }
163
+ const g = d(() => Pe.value - e.value.style.chart.layout.rings.strokeWidth * 2), X = n(null);
164
+ function Ie(t, o) {
165
+ if (v.value.length === f.dataset.length) return;
166
+ X.value = {
167
+ datapoint: o,
168
+ seriesIndex: t,
169
+ series: c.value,
170
+ config: e.value
171
+ }, T.value = t;
172
+ const l = c.value[t], a = e.value.style.chart.tooltip.customFormat;
173
+ if (Je(a) && Ke(() => a({
174
+ seriesIndex: t,
175
+ datapoint: o,
176
+ series: c.value,
177
+ config: e.value
178
+ })))
179
+ G.value = a({
180
+ seriesIndex: t,
181
+ datapoint: o,
182
+ series: c.value,
183
+ config: e.value
184
+ });
185
+ else {
186
+ let s = "";
187
+ s += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l.name}</div>`, s += `<div style="display:flex;flex-direction:row;gap:6px;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>`, e.value.style.chart.tooltip.showValue && (s += `<b>${Ce(
188
+ e.value.style.chart.layout.labels.dataLabels.formatter,
189
+ l.value,
190
+ N({
191
+ p: e.value.style.chart.layout.labels.dataLabels.prefix,
192
+ v: l.value,
193
+ s: e.value.style.chart.layout.labels.dataLabels.suffix,
194
+ r: e.value.style.chart.tooltip.roundingValue
195
+ }),
196
+ { datapoint: o, seriesIndex: t }
197
+ )}
198
+ </b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? s += `<span>(${N({
199
+ v: l.value / m.value * 100,
200
+ s: "%",
201
+ r: e.value.style.chart.tooltip.roundingPercentage
202
+ })})</span></div>` : s += `<b>${N({
203
+ v: l.value / m.value * 100,
204
+ s: "%",
205
+ r: e.value.style.chart.tooltip.roundingPercentage
206
+ })}</b></div>`), G.value = s;
207
+ }
208
+ R.value = !0;
209
+ }
210
+ const w = d(() => {
211
+ const t = c.value.map((l) => ({
212
+ name: l.name,
213
+ color: l.color
214
+ })), o = c.value.map((l) => l.value);
215
+ return { head: t, body: o };
216
+ }), D = d(() => {
217
+ const t = [
218
+ ' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>',
219
+ N({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: m.value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
220
+ "100%"
221
+ ], o = w.value.head.map((s, b) => [
222
+ {
223
+ color: s.color,
224
+ name: s.name
225
+ },
226
+ N({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: w.value.body[b], s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
227
+ isNaN(w.value.body[b] / m.value) ? "-" : (w.value.body[b] / m.value * 100).toFixed(e.value.table.td.roundingPercentage) + "%"
228
+ ]), l = {
229
+ th: {
230
+ backgroundColor: e.value.table.th.backgroundColor,
231
+ color: e.value.table.th.color,
232
+ outline: e.value.table.th.outline
233
+ },
234
+ td: {
235
+ backgroundColor: e.value.table.td.backgroundColor,
236
+ color: e.value.table.td.color,
237
+ outline: e.value.table.td.outline
238
+ },
239
+ breakpoint: e.value.table.responsiveBreakpoint
240
+ }, a = [
241
+ e.value.table.columnNames.series,
242
+ e.value.table.columnNames.value,
243
+ e.value.table.columnNames.percentage
244
+ ];
245
+ return {
246
+ head: t,
247
+ body: o,
248
+ config: l,
249
+ colNames: a
250
+ };
251
+ });
252
+ function de() {
253
+ Be(() => {
254
+ const t = w.value.head.map((a, s) => [[
255
+ a.name
256
+ ], [w.value.body[s]], [isNaN(w.value.body[s] / m.value) ? "-" : w.value.body[s] / m.value * 100]]), o = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(t), l = Qe(o);
257
+ Ze({ csvContent: l, title: e.value.style.chart.title.text || "vue-ui-rings" });
258
+ });
259
+ }
260
+ const A = n(!1);
261
+ function Fe(t) {
262
+ A.value = t, J.value += 1;
263
+ }
264
+ function pe() {
265
+ C.value.showTable = !C.value.showTable;
266
+ }
267
+ function he() {
268
+ C.value.showTooltip = !C.value.showTooltip;
269
+ }
270
+ const U = n(!1);
271
+ function j() {
272
+ U.value = !U.value;
273
+ }
274
+ return Te({
275
+ getData: Ae,
276
+ generatePdf: re,
277
+ generateCsv: de,
278
+ generateImage: ue,
279
+ toggleTable: pe,
280
+ toggleTooltip: he,
281
+ toggleAnnotator: j
282
+ }), (t, o) => (u(), y("div", {
283
+ ref_key: "ringsChart",
284
+ ref: P,
285
+ class: W(`vue-ui-rings ${A.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
286
+ style: F(`font-family:${e.value.style.fontFamily};text-align:center;width:100%;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
287
+ id: `rings_${S.value}`,
288
+ onMouseleave: o[3] || (o[3] = (l) => {
289
+ T.value = null, R.value = !1;
290
+ })
291
+ }, [
292
+ e.value.userOptions.buttons.annotator ? (u(), _(ct, {
293
+ key: 0,
294
+ parent: P.value,
295
+ backgroundColor: e.value.style.chart.backgroundColor,
296
+ color: e.value.style.chart.color,
297
+ active: U.value,
298
+ onClose: j
299
+ }, null, 8, ["parent", "backgroundColor", "color", "active"])) : $("", !0),
300
+ e.value.style.chart.title.text ? (u(), y("div", {
301
+ key: 1,
302
+ ref_key: "chartTitle",
303
+ ref: K,
304
+ style: "width:100%;background:transparent"
305
+ }, [
306
+ (u(), _(lt, {
307
+ key: `title_${ee.value}`,
308
+ config: {
309
+ title: {
310
+ cy: "rings-div-title",
311
+ ...e.value.style.chart.title
312
+ },
313
+ subtitle: {
314
+ cy: "rings-div-subtitle",
315
+ ...e.value.style.chart.title.subtitle
316
+ }
317
+ }
318
+ }, null, 8, ["config"]))
319
+ ], 512)) : $("", !0),
320
+ e.value.userOptions.show && z.value ? (u(), _(at, {
321
+ ref_key: "details",
322
+ ref: Ne,
323
+ key: `user_options_${J.value}`,
324
+ backgroundColor: e.value.style.chart.backgroundColor,
325
+ color: e.value.style.chart.color,
326
+ isPrinting: i(se),
327
+ isImaging: i(ne),
328
+ uid: S.value,
329
+ hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
330
+ hasPdf: e.value.userOptions.buttons.pdf,
331
+ hasXls: e.value.userOptions.buttons.csv,
332
+ hasImg: e.value.userOptions.buttons.img,
333
+ hasTable: e.value.userOptions.buttons.table,
334
+ hasFullscreen: e.value.userOptions.buttons.fullscreen,
335
+ isTooltip: C.value.showTooltip,
336
+ isFullscreen: A.value,
337
+ titles: { ...e.value.userOptions.buttonTitles },
338
+ chartElement: P.value,
339
+ position: e.value.userOptions.position,
340
+ hasAnnotator: e.value.userOptions.buttons.annotator,
341
+ isAnnotation: U.value,
342
+ onToggleFullscreen: Fe,
343
+ onGeneratePdf: i(re),
344
+ onGenerateCsv: de,
345
+ onGenerateImage: i(ue),
346
+ onToggleTable: pe,
347
+ onToggleTooltip: he,
348
+ onToggleAnnotator: j
349
+ }, Ve({ _: 2 }, [
350
+ t.$slots.optionTooltip ? {
351
+ name: "optionTooltip",
352
+ fn: p(() => [
353
+ h(t.$slots, "optionTooltip", {}, void 0, !0)
354
+ ]),
355
+ key: "0"
356
+ } : void 0,
357
+ t.$slots.optionPdf ? {
358
+ name: "optionPdf",
359
+ fn: p(() => [
360
+ h(t.$slots, "optionPdf", {}, void 0, !0)
361
+ ]),
362
+ key: "1"
363
+ } : void 0,
364
+ t.$slots.optionCsv ? {
365
+ name: "optionCsv",
366
+ fn: p(() => [
367
+ h(t.$slots, "optionCsv", {}, void 0, !0)
368
+ ]),
369
+ key: "2"
370
+ } : void 0,
371
+ t.$slots.optionImg ? {
372
+ name: "optionImg",
373
+ fn: p(() => [
374
+ h(t.$slots, "optionImg", {}, void 0, !0)
375
+ ]),
376
+ key: "3"
377
+ } : void 0,
378
+ t.$slots.optionTable ? {
379
+ name: "optionTable",
380
+ fn: p(() => [
381
+ h(t.$slots, "optionTable", {}, void 0, !0)
382
+ ]),
383
+ key: "4"
384
+ } : void 0,
385
+ t.$slots.optionFullscreen ? {
386
+ name: "optionFullscreen",
387
+ fn: p(({ toggleFullscreen: l, isFullscreen: a }) => [
388
+ h(t.$slots, "optionFullscreen", O(M({ toggleFullscreen: l, isFullscreen: a })), void 0, !0)
389
+ ]),
390
+ key: "5"
391
+ } : void 0,
392
+ t.$slots.optionAnnotator ? {
393
+ name: "optionAnnotator",
394
+ fn: p(({ toggleAnnotator: l, isAnnotator: a }) => [
395
+ h(t.$slots, "optionAnnotator", O(M({ toggleAnnotator: l, isAnnotator: a })), void 0, !0)
396
+ ]),
397
+ key: "6"
398
+ } : void 0
399
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage"])) : $("", !0),
400
+ z.value ? (u(), y("svg", {
401
+ key: 3,
402
+ xmlns: i(je),
403
+ class: W({ "vue-data-ui-fullscreen--on": A.value, "vue-data-ui-fulscreen--off": !A.value }),
404
+ viewBox: `0 0 ${r.value.width <= 0 ? 10 : r.value.width} ${r.value.height <= 0 ? 10 : r.value.height}`,
405
+ style: F(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
406
+ }, [
407
+ ge(vt),
408
+ k("defs", null, [
409
+ (u(!0), y(fe, null, ye(c.value, (l, a) => (u(), y("radialGradient", {
410
+ cx: "50%",
411
+ cy: "30%",
412
+ r: "50%",
413
+ fx: "50%",
414
+ fy: "50%",
415
+ id: `gradient_${S.value}_${a}`
416
+ }, [
417
+ k("stop", {
418
+ offset: "0%",
419
+ "stop-color": i(Ye)(i(qe)(l.color, 0.05), 100 - e.value.style.chart.layout.rings.gradient.intensity)
420
+ }, null, 8, ft),
421
+ k("stop", {
422
+ offset: "100%",
423
+ "stop-color": l.color
424
+ }, null, 8, yt)
425
+ ], 8, gt))), 256))
426
+ ]),
427
+ (u(!0), y(fe, null, ye(c.value, (l, a) => (u(), y("g", null, [
428
+ k("circle", {
429
+ class: W({
430
+ "vue-ui-rings-item": L.value && e.value.useCssAnimation,
431
+ "vue-rings-item-onload": !L.value && e.value.useCssAnimation,
432
+ "vue-ui-rings-opacity": T.value !== null && T.value !== a
433
+ }),
434
+ style: F(`animation-delay:${a * 100}ms`),
435
+ stroke: e.value.style.chart.layout.rings.stroke,
436
+ cx: r.value.width / 2,
437
+ cy: a === 0 ? r.value.height / 2 : r.value.height / 2 + g.value * c.value[0].proportion / 2 - g.value * l.proportion / 2 - 2 * (a + 1),
438
+ r: i(q)(g.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : g.value * l.proportion / 2 * 0.9),
439
+ fill: e.value.style.chart.layout.rings.gradient.underlayerColor
440
+ }, null, 14, mt),
441
+ k("circle", {
442
+ class: W({
443
+ "vue-ui-rings-item": L.value && e.value.useCssAnimation,
444
+ "vue-rings-item-onload": !L.value && e.value.useCssAnimation,
445
+ "vue-ui-rings-shadow": e.value.style.chart.layout.rings.useShadow,
446
+ "vue-ui-rings-blur": T.value !== null && T.value !== a
447
+ }),
448
+ style: F(`animation-delay:${a * 100}ms`),
449
+ stroke: e.value.style.chart.layout.rings.stroke,
450
+ "stroke-width": l.strokeWidth < 0.5 ? 0.5 : l.strokeWidth,
451
+ cx: r.value.width / 2,
452
+ cy: a === 0 ? r.value.height / 2 : r.value.height / 2 + g.value * c.value[0].proportion / 2 - g.value * l.proportion / 2 - 2 * (a + 1),
453
+ r: i(q)(g.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : g.value * l.proportion / 2 * 0.9),
454
+ fill: e.value.style.chart.layout.rings.gradient.show ? `url(#gradient_${S.value}_${a})` : l.color
455
+ }, null, 14, bt),
456
+ k("circle", {
457
+ "data-cy-trap": "",
458
+ stroke: "none",
459
+ cx: r.value.width / 2,
460
+ cy: a === 0 ? r.value.height / 2 : r.value.height / 2 + g.value * c.value[0].proportion / 2 - g.value * l.proportion / 2 - 2 * (a + 1),
461
+ r: i(q)(g.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : g.value * l.proportion / 2 * 0.9),
462
+ fill: "transparent",
463
+ onMouseenter: (s) => Ie(a, l),
464
+ onMouseleave: o[0] || (o[0] = (s) => {
465
+ T.value = null, R.value = !1;
466
+ })
467
+ }, null, 40, kt)
468
+ ]))), 256)),
469
+ h(t.$slots, "svg", { svg: r.value }, void 0, !0)
470
+ ], 14, ht)) : $("", !0),
471
+ t.$slots.watermark ? (u(), y("div", Ct, [
472
+ h(t.$slots, "watermark", O(M({ isPrinting: i(se) || i(ne) })), void 0, !0)
473
+ ])) : $("", !0),
474
+ z.value ? $("", !0) : (u(), _(ut, {
475
+ key: 5,
476
+ config: {
477
+ type: "rings",
478
+ style: {
479
+ backgroundColor: e.value.style.chart.backgroundColor,
480
+ rings: {
481
+ color: "#CCCCCC"
482
+ }
483
+ }
484
+ }
485
+ }, null, 8, ["config"])),
486
+ k("div", {
487
+ ref_key: "chartLegend",
488
+ ref: Q
489
+ }, [
490
+ e.value.style.chart.legend.show ? (u(), _(rt, {
491
+ key: `legend_${le.value}`,
492
+ legendSet: ce.value,
493
+ config: Se.value,
494
+ onClickMarker: o[1] || (o[1] = ({ legend: l }) => H(l.uid))
495
+ }, {
496
+ item: p(({ legend: l, index: a }) => [
497
+ k("div", {
498
+ "data-cy-legend-item": "",
499
+ onClick: (s) => H(l.uid),
500
+ style: F(`opacity:${v.value.includes(l.uid) ? 0.5 : 1}`)
501
+ }, [
502
+ me(E(l.name) + ": " + E(i(Ce)(
503
+ e.value.style.chart.layout.labels.dataLabels.formatter,
504
+ l.value,
505
+ i(N)({
506
+ p: e.value.style.chart.layout.labels.dataLabels.prefix,
507
+ v: l.value,
508
+ s: e.value.style.chart.layout.labels.dataLabels.suffix,
509
+ r: e.value.style.chart.legend.roundingValue
510
+ }),
511
+ { datapoint: l, seriesIndex: a }
512
+ )) + " ", 1),
513
+ v.value.includes(l.uid) ? (u(), y("span", Tt, " ( - % ) ")) : (u(), y("span", $t, " (" + E(isNaN(l.value / m.value) ? "-" : i(N)({
514
+ v: l.value / m.value * 100,
515
+ s: "%",
516
+ r: e.value.style.chart.legend.roundingPercentage
517
+ })) + ") ", 1))
518
+ ], 12, wt)
519
+ ]),
520
+ _: 1
521
+ }, 8, ["legendSet", "config"])) : h(t.$slots, "legend", {
522
+ key: 1,
523
+ legend: ce.value
524
+ }, void 0, !0)
525
+ ], 512),
526
+ t.$slots.source ? (u(), y("div", {
527
+ key: 6,
528
+ ref_key: "source",
529
+ ref: Z,
530
+ dir: "auto"
531
+ }, [
532
+ h(t.$slots, "source", {}, void 0, !0)
533
+ ], 512)) : $("", !0),
534
+ ge(st, {
535
+ show: C.value.showTooltip && R.value && v.value.length < f.dataset.length,
536
+ backgroundColor: e.value.style.chart.tooltip.backgroundColor,
537
+ color: e.value.style.chart.tooltip.color,
538
+ borderRadius: e.value.style.chart.tooltip.borderRadius,
539
+ borderColor: e.value.style.chart.tooltip.borderColor,
540
+ borderWidth: e.value.style.chart.tooltip.borderWidth,
541
+ fontSize: e.value.style.chart.tooltip.fontSize,
542
+ backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
543
+ position: e.value.style.chart.tooltip.position,
544
+ offsetY: e.value.style.chart.tooltip.offsetY,
545
+ parent: P.value,
546
+ content: G.value,
547
+ isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function"
548
+ }, {
549
+ "tooltip-before": p(() => [
550
+ h(t.$slots, "tooltip-before", O(M({ ...X.value })), void 0, !0)
551
+ ]),
552
+ "tooltip-after": p(() => [
553
+ h(t.$slots, "tooltip-after", O(M({ ...X.value })), void 0, !0)
554
+ ]),
555
+ _: 3
556
+ }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
557
+ z.value ? (u(), _(it, {
558
+ key: 7,
559
+ hideDetails: "",
560
+ config: {
561
+ open: C.value.showTable,
562
+ maxHeight: 1e4,
563
+ body: {
564
+ backgroundColor: e.value.style.chart.backgroundColor,
565
+ color: e.value.style.chart.color
566
+ },
567
+ head: {
568
+ backgroundColor: e.value.style.chart.backgroundColor,
569
+ color: e.value.style.chart.color
570
+ }
571
+ }
572
+ }, {
573
+ content: p(() => [
574
+ (u(), _(nt, {
575
+ key: `table_${te.value}`,
576
+ colNames: D.value.colNames,
577
+ head: D.value.head,
578
+ body: D.value.body,
579
+ config: D.value.config,
580
+ title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
581
+ onClose: o[2] || (o[2] = (l) => C.value.showTable = !1)
582
+ }, {
583
+ th: p(({ th: l }) => [
584
+ k("div", {
585
+ innerHTML: l,
586
+ style: { display: "flex", "align-items": "center" }
587
+ }, null, 8, _t)
588
+ ]),
589
+ td: p(({ td: l }) => [
590
+ me(E(l.name || l), 1)
591
+ ]),
592
+ _: 1
593
+ }, 8, ["colNames", "head", "body", "config", "title"]))
594
+ ]),
595
+ _: 1
596
+ }, 8, ["config"])) : $("", !0)
597
+ ], 46, pt));
598
+ }
599
+ }, Ut = /* @__PURE__ */ dt(xt, [["__scopeId", "data-v-eda91fd5"]]);
600
+ export {
601
+ Ut as default
602
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-eFox7weK.cjs"),Q=require("./useResponsive-CodiGUOE.cjs"),pe=require("./Title-0Tp4hZ4u.cjs"),Z=require("./usePrinter-CSRFnDBU.cjs"),he=require("./Tooltip-9Tp2Yrd1.cjs"),ge=require("./DataTable-DTzynbND.cjs"),fe=require("./Legend-Cgw4lO2O.cjs"),me=require("./vue-ui-skeleton-BqKzuhkB.cjs"),ye=require("./vue-ui-accordion-TEMpM1hO.cjs"),ee=require("./useNestedProp-BkgEhTQY.cjs"),be=require("./PackageVersion-DwI-KhXH.cjs"),ke=require("./PenAndPaper-CDFVOo7X.cjs"),Ce=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),we=["id"],Te=["xmlns","viewBox"],xe=["id"],Ne=["stop-color"],$e=["stop-color"],Se=["stroke","cx","cy","r","fill"],Be=["stroke","stroke-width","cx","cy","r","fill"],Pe=["cx","cy","r","onMouseenter"],_e={key:4,class:"vue-data-ui-watermark"},Le=["onClick"],Ve={key:0},Ee={key:1},Ae=["innerHTML"],ze={__name:"vue-ui-rings",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend"],setup(te,{expose:oe,emit:le}){const v=te,{vue_ui_rings:ae}=r.useConfig(),b=e.ref(!1),T=e.computed(()=>!!v.dataset&&v.dataset.length),k=e.ref(r.createUid()),re=e.ref(null),x=e.ref(!1),P=e.ref(""),m=e.ref(null),E=e.ref(0),y=e.ref(null),A=e.ref(null),z=e.ref(null),F=e.ref(null),O=e.ref(0),I=e.ref(0),R=e.ref(0),t=e.computed({get:()=>M(),set:o=>o});function M(){const o=ee.useNestedProp({userConfig:v.config,defaultConfig:ae});return o.theme?{...ee.useNestedProp({userConfig:r.themes.vue_ui_rings[o.theme]||v.config,defaultConfig:o}),customPalette:r.themePalettes[o.theme]||r.palette}:o}e.watch(()=>v.config,o=>{t.value=M(),q(),O.value+=1,I.value+=1,R.value+=1},{deep:!0});const N=e.ref(null);e.onMounted(()=>{q()});function q(){if(r.objectIsEmpty(v.dataset)?r.error({componentName:"VueUiRings",type:"dataset"}):v.dataset.forEach((o,a)=>{o.values.length||r.error({componentName:"VueUiRings",type:"dataset"}),r.getMissingDatasetAttributes({datasetObject:o,requiredAttributes:["name","values"]}).forEach(l=>{r.error({componentName:"VueUiRings",type:"datasetSerieAttribute",property:l,index:a})})}),t.value.responsive){const o=Q.throttle(()=>{const{width:a,height:l}=Q.useResponsive({chart:y.value,title:t.value.style.chart.title.text?A.value:null,legend:t.value.style.chart.legend.show?z.value:null,source:F.value});s.value.width=a,s.value.height=l});N.value=new ResizeObserver(o),N.value.observe(y.value.parentNode)}setTimeout(()=>{b.value=!0},600)}e.onBeforeUnmount(()=>{N.value&&N.value.disconnect()});const{isPrinting:D,isImaging:U,generatePdf:H,generateImage:W}=Z.usePrinter({elementId:`rings_${k.value}`,fileName:t.value.style.chart.title.text||"vue-ui-rings"}),G=e.computed(()=>r.convertCustomPalette(t.value.customPalette)),g=e.ref({showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show}),s=e.ref({height:360,width:360}),ne=e.computed(()=>Math.min(s.value.height,s.value.width)),i=e.ref([]);function _(o){i.value.includes(o)?i.value=i.value.filter(a=>a!==o):i.value.push(o),le("selectLegend",c.value.map(a=>({name:a.name,color:a.color,value:a.value})))}const ue=e.computed(()=>Math.max(...$.value.filter(o=>!i.value.includes(o.uid)).map(({value:o})=>o)));function j(o){return o/ue.value}const $=e.computed(()=>v.dataset.map(({values:o,name:a,color:l=null},n)=>{const u=r.sanitizeArray(o).reduce((h,w)=>h+w,0);return{name:a,color:l||r.convertColorToHex(l)||G.value[n]||r.palette[n]||r.palette[n%r.palette.length],value:u,proportion:u/v.dataset.map(h=>(h.values||[]).reduce((w,ve)=>w+ve,0)).reduce((h,w)=>h+w,0),uid:r.createUid()}})),X=e.computed(()=>$.value.map(o=>({...o,shape:"circle",opacity:i.value.includes(o.uid)?.5:1,segregate:()=>_(o.uid),isSegregated:i.value.includes(o.uid)})).toSorted((o,a)=>a.value-o.value)),se=e.computed(()=>({cy:"rings-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":""})),p=e.computed(()=>$.value.filter(o=>!i.value.includes(o.uid)).map(({value:o})=>o).reduce((o,a)=>o+a,0)),c=e.computed(()=>$.value.filter(o=>!i.value.includes(o.uid)).map(({name:o,value:a,color:l=null,uid:n},u)=>({uid:n,name:o,color:l||r.convertColorToHex(l)||G.value[u]||r.palette[u]||r.palette[u%r.palette.length],value:a,proportion:j(a),percentage:a/p.value*100,strokeWidth:t.value.style.chart.layout.rings.strokeWidth*j(a)})).toSorted((o,a)=>a.value-o.value));function ie(){return c.value.map(({name:o,color:a,value:l,absoluteValues:n,percentage:u})=>({name:o,color:a,value:l,absoluteValues:n,percentage:u}))}const d=e.computed(()=>ne.value-t.value.style.chart.layout.rings.strokeWidth*2),L=e.ref(null);function ce(o,a){if(i.value.length===v.dataset.length)return;L.value={datapoint:a,seriesIndex:o,series:c.value,config:t.value},m.value=o;const l=c.value[o],n=t.value.style.chart.tooltip.customFormat;if(r.isFunction(n)&&r.functionReturnsString(()=>n({seriesIndex:o,datapoint:a,series:c.value,config:t.value})))P.value=n({seriesIndex:o,datapoint:a,series:c.value,config:t.value});else{let u="";u+=`<div style="width:100%;text-align:center;border-bottom:1px solid ${t.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l.name}</div>`,u+=`<div style="display:flex;flex-direction:row;gap:6px;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>`,t.value.style.chart.tooltip.showValue&&(u+=`<b>${r.applyDataLabel(t.value.style.chart.layout.labels.dataLabels.formatter,l.value,r.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:l.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.tooltip.roundingValue}),{datapoint:a,seriesIndex:o})}
2
+ </b>`),t.value.style.chart.tooltip.showPercentage&&(t.value.style.chart.tooltip.showValue?u+=`<span>(${r.dataLabel({v:l.value/p.value*100,s:"%",r:t.value.style.chart.tooltip.roundingPercentage})})</span></div>`:u+=`<b>${r.dataLabel({v:l.value/p.value*100,s:"%",r:t.value.style.chart.tooltip.roundingPercentage})}</b></div>`),P.value=u}x.value=!0}const f=e.computed(()=>{const o=c.value.map(l=>({name:l.name,color:l.color})),a=c.value.map(l=>l.value);return{head:o,body:a}}),S=e.computed(()=>{const o=[' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>',r.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:p.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.table.td.roundingValue}),"100%"],a=f.value.head.map((u,h)=>[{color:u.color,name:u.name},r.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:f.value.body[h],s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.table.td.roundingValue}),isNaN(f.value.body[h]/p.value)?"-":(f.value.body[h]/p.value*100).toFixed(t.value.table.td.roundingPercentage)+"%"]),l={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint},n=[t.value.table.columnNames.series,t.value.table.columnNames.value,t.value.table.columnNames.percentage];return{head:o,body:a,config:l,colNames:n}});function Y(){e.nextTick(()=>{const o=f.value.head.map((n,u)=>[[n.name],[f.value.body[u]],[isNaN(f.value.body[u]/p.value)?"-":f.value.body[u]/p.value*100]]),a=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[""],["val"],["%"]]].concat(o),l=r.createCsvContent(a);r.downloadCsv({csvContent:l,title:t.value.style.chart.title.text||"vue-ui-rings"})})}const C=e.ref(!1);function de(o){C.value=o,E.value+=1}function J(){g.value.showTable=!g.value.showTable}function K(){g.value.showTooltip=!g.value.showTooltip}const B=e.ref(!1);function V(){B.value=!B.value}return oe({getData:ie,generatePdf:H,generateCsv:Y,generateImage:W,toggleTable:J,toggleTooltip:K,toggleAnnotator:V}),(o,a)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"ringsChart",ref:y,class:e.normalizeClass(`vue-ui-rings ${C.value?"vue-data-ui-wrapper-fullscreen":""} ${t.value.useCssAnimation?"":"vue-ui-dna"}`),style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};text-align:center;width:100%;background:${t.value.style.chart.backgroundColor};${t.value.responsive?"height: 100%":""}`),id:`rings_${k.value}`,onMouseleave:a[3]||(a[3]=l=>{m.value=null,x.value=!1})},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(ke.PenAndPaper,{key:0,parent:y.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:B.value,onClose:V},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"chartTitle",ref:A,style:"width:100%;background:transparent"},[(e.openBlock(),e.createBlock(pe._sfc_main,{key:`title_${O.value}`,config:{title:{cy:"rings-div-title",...t.value.style.chart.title},subtitle:{cy:"rings-div-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&T.value?(e.openBlock(),e.createBlock(Z.UserOptions,{ref_key:"details",ref:re,key:`user_options_${E.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(D),isImaging:e.unref(U),uid:k.value,hasTooltip:t.value.userOptions.buttons.tooltip&&t.value.style.chart.tooltip.show,hasPdf:t.value.userOptions.buttons.pdf,hasXls:t.value.userOptions.buttons.csv,hasImg:t.value.userOptions.buttons.img,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isTooltip:g.value.showTooltip,isFullscreen:C.value,titles:{...t.value.userOptions.buttonTitles},chartElement:y.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:B.value,onToggleFullscreen:de,onGeneratePdf:e.unref(H),onGenerateCsv:Y,onGenerateImage:e.unref(W),onToggleTable:J,onToggleTooltip:K,onToggleAnnotator:V},e.createSlots({_:2},[o.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,o.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,o.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,o.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,o.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,o.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:n})=>[e.renderSlot(o.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:n})),void 0,!0)]),key:"5"}:void 0,o.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:l,isAnnotator:n})=>[e.renderSlot(o.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:l,isAnnotator:n})),void 0,!0)]),key:"6"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasTooltip","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","isTooltip","isFullscreen","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),T.value?(e.openBlock(),e.createElementBlock("svg",{key:3,xmlns:e.unref(r.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":C.value,"vue-data-ui-fulscreen--off":!C.value}),viewBox:`0 0 ${s.value.width<=0?10:s.value.width} ${s.value.height<=0?10:s.value.height}`,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(be._sfc_main),e.createElementVNode("defs",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(l,n)=>(e.openBlock(),e.createElementBlock("radialGradient",{cx:"50%",cy:"30%",r:"50%",fx:"50%",fy:"50%",id:`gradient_${k.value}_${n}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(r.setOpacity)(e.unref(r.shiftHue)(l.color,.05),100-t.value.style.chart.layout.rings.gradient.intensity)},null,8,Ne),e.createElementVNode("stop",{offset:"100%","stop-color":l.color},null,8,$e)],8,xe))),256))]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(l,n)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("circle",{class:e.normalizeClass({"vue-ui-rings-item":b.value&&t.value.useCssAnimation,"vue-rings-item-onload":!b.value&&t.value.useCssAnimation,"vue-ui-rings-opacity":m.value!==null&&m.value!==n}),style:e.normalizeStyle(`animation-delay:${n*100}ms`),stroke:t.value.style.chart.layout.rings.stroke,cx:s.value.width/2,cy:n===0?s.value.height/2:s.value.height/2+d.value*c.value[0].proportion/2-d.value*l.proportion/2-2*(n+1),r:e.unref(r.checkNaN)(d.value*l.proportion/2*.9<=0?1e-4:d.value*l.proportion/2*.9),fill:t.value.style.chart.layout.rings.gradient.underlayerColor},null,14,Se),e.createElementVNode("circle",{class:e.normalizeClass({"vue-ui-rings-item":b.value&&t.value.useCssAnimation,"vue-rings-item-onload":!b.value&&t.value.useCssAnimation,"vue-ui-rings-shadow":t.value.style.chart.layout.rings.useShadow,"vue-ui-rings-blur":m.value!==null&&m.value!==n}),style:e.normalizeStyle(`animation-delay:${n*100}ms`),stroke:t.value.style.chart.layout.rings.stroke,"stroke-width":l.strokeWidth<.5?.5:l.strokeWidth,cx:s.value.width/2,cy:n===0?s.value.height/2:s.value.height/2+d.value*c.value[0].proportion/2-d.value*l.proportion/2-2*(n+1),r:e.unref(r.checkNaN)(d.value*l.proportion/2*.9<=0?1e-4:d.value*l.proportion/2*.9),fill:t.value.style.chart.layout.rings.gradient.show?`url(#gradient_${k.value}_${n})`:l.color},null,14,Be),e.createElementVNode("circle",{"data-cy-trap":"",stroke:"none",cx:s.value.width/2,cy:n===0?s.value.height/2:s.value.height/2+d.value*c.value[0].proportion/2-d.value*l.proportion/2-2*(n+1),r:e.unref(r.checkNaN)(d.value*l.proportion/2*.9<=0?1e-4:d.value*l.proportion/2*.9),fill:"transparent",onMouseenter:u=>ce(n,l),onMouseleave:a[0]||(a[0]=u=>{m.value=null,x.value=!1})},null,40,Pe)]))),256)),e.renderSlot(o.$slots,"svg",{svg:s.value},void 0,!0)],14,Te)):e.createCommentVNode("",!0),o.$slots.watermark?(e.openBlock(),e.createElementBlock("div",_e,[e.renderSlot(o.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(D)||e.unref(U)})),void 0,!0)])):e.createCommentVNode("",!0),T.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(me.default,{key:5,config:{type:"rings",style:{backgroundColor:t.value.style.chart.backgroundColor,rings:{color:"#CCCCCC"}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:z},[t.value.style.chart.legend.show?(e.openBlock(),e.createBlock(fe.Legend,{key:`legend_${R.value}`,legendSet:X.value,config:se.value,onClickMarker:a[1]||(a[1]=({legend:l})=>_(l.uid))},{item:e.withCtx(({legend:l,index:n})=>[e.createElementVNode("div",{"data-cy-legend-item":"",onClick:u=>_(l.uid),style:e.normalizeStyle(`opacity:${i.value.includes(l.uid)?.5:1}`)},[e.createTextVNode(e.toDisplayString(l.name)+": "+e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.chart.layout.labels.dataLabels.formatter,l.value,e.unref(r.dataLabel)({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:l.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.legend.roundingValue}),{datapoint:l,seriesIndex:n}))+" ",1),i.value.includes(l.uid)?(e.openBlock(),e.createElementBlock("span",Ee," ( - % ) ")):(e.openBlock(),e.createElementBlock("span",Ve," ("+e.toDisplayString(isNaN(l.value/p.value)?"-":e.unref(r.dataLabel)({v:l.value/p.value*100,s:"%",r:t.value.style.chart.legend.roundingPercentage}))+") ",1))],12,Le)]),_:1},8,["legendSet","config"])):e.renderSlot(o.$slots,"legend",{key:1,legend:X.value},void 0,!0)],512),o.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:6,ref_key:"source",ref:F,dir:"auto"},[e.renderSlot(o.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createVNode(he._sfc_main,{show:g.value.showTooltip&&x.value&&i.value.length<v.dataset.length,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:P.value,isCustom:t.value.style.chart.tooltip.customFormat&&typeof t.value.style.chart.tooltip.customFormat=="function"},{"tooltip-before":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...L.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...L.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","fontSize","backgroundOpacity","position","offsetY","parent","content","isCustom"]),T.value?(e.openBlock(),e.createBlock(ye.default,{key:7,hideDetails:"",config:{open:g.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(ge.DataTable,{key:`table_${I.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[2]||(a[2]=l=>g.value.showTable=!1)},{th:e.withCtx(({th:l})=>[e.createElementVNode("div",{innerHTML:l,style:{display:"flex","align-items":"center"}},null,8,Ae)]),td:e.withCtx(({td:l})=>[e.createTextVNode(e.toDisplayString(l.name||l),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],46,we))}},Fe=Ce._export_sfc(ze,[["__scopeId","data-v-eda91fd5"]]);exports.default=Fe;