vue-data-ui 2.6.6 → 2.6.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (197) hide show
  1. package/dist/{Arrow-DFWjAvCY.js → Arrow-BxUmDF04.js} +1 -1
  2. package/dist/{Arrow-BYqxz6UG.cjs → Arrow-PPbxds1Q.cjs} +1 -1
  3. package/dist/{BaseIcon-COe_H-UB.cjs → BaseIcon-BmVwfJg2.cjs} +1 -1
  4. package/dist/{BaseIcon-t20JEZNG.js → BaseIcon-CDx9pxUG.js} +1 -1
  5. package/dist/{DataTable-Du7nJ0TM.cjs → DataTable-Cv_TVAas.cjs} +1 -1
  6. package/dist/{DataTable-CJN0sipt.js → DataTable-TjJIVFlL.js} +2 -2
  7. package/dist/{Legend-CM7IGBC3.cjs → Legend-DunrYGuw.cjs} +1 -1
  8. package/dist/{Legend-BDyPoYfp.js → Legend-NKGwxkI7.js} +2 -2
  9. package/dist/{PackageVersion-qeLvq6l8.cjs → PackageVersion-DJKkRuOD.cjs} +1 -1
  10. package/dist/{PackageVersion-DqmHcoqz.js → PackageVersion-QRvxRYPv.js} +1 -1
  11. package/dist/{PenAndPaper-6UYizrkQ.js → PenAndPaper-CxC1lWGK.js} +3 -3
  12. package/dist/{PenAndPaper-BYqaxOpk.cjs → PenAndPaper-MTTJ3Gd9.cjs} +1 -1
  13. package/dist/{Shape-C_qIhG3J.js → Shape-58uyOuYc.js} +26 -23
  14. package/dist/Shape-D_1vUjCL.cjs +1 -0
  15. package/dist/{Slicer-DPae3p1M.cjs → Slicer-BGEieXKn.cjs} +1 -1
  16. package/dist/{Slicer-BQP3UIW-.js → Slicer-C7ormJRw.js} +2 -2
  17. package/dist/{Title-D6h1gTvZ.js → Title-BI8etrRU.js} +1 -1
  18. package/dist/{Title-BGiQdt7J.cjs → Title-Dk92HYMu.cjs} +1 -1
  19. package/dist/Tooltip-ClMeqejQ.cjs +1 -0
  20. package/dist/{Tooltip-BonEVaob.js → Tooltip-Cxc8c50d.js} +23 -20
  21. package/dist/{index-B9qF6XbP.js → index-9EeNZMz1.js} +1 -1
  22. package/dist/{index-kZKcQZM_.cjs → index-DEnRHTzk.cjs} +1 -1
  23. package/dist/style.css +1 -1
  24. package/dist/useChartAccessibility-BWojgys7.js +13 -0
  25. package/dist/useChartAccessibility-Cm7nkzTG.cjs +1 -0
  26. package/dist/{useNestedProp-D4Jn2Oxr.cjs → useNestedProp-BNT60LxO.cjs} +1 -1
  27. package/dist/{useNestedProp-g5oKzlVy.js → useNestedProp-df_bKQEI.js} +1 -1
  28. package/dist/{usePrinter-DR42gTOS.cjs → usePrinter-dyVny55M.cjs} +1 -1
  29. package/dist/{usePrinter-DsiBLAy1.js → usePrinter-ngrh00Ym.js} +1 -1
  30. package/dist/{vue-data-ui-DbhVASfn.cjs → vue-data-ui-BYX-I7HQ.cjs} +1 -1
  31. package/dist/{vue-data-ui-DB2kdhYH.js → vue-data-ui-CDD7JcMs.js} +61 -61
  32. package/dist/vue-data-ui.cjs +1 -1
  33. package/dist/vue-data-ui.js +1 -1
  34. package/dist/{vue-ui-3d-bar-DHeSFJ5z.js → vue-ui-3d-bar-BArLjlrc.js} +171 -168
  35. package/dist/vue-ui-3d-bar-DegdXf_S.cjs +19 -0
  36. package/dist/{vue-ui-accordion-BfDu7hTY.cjs → vue-ui-accordion-D2qxHGzp.cjs} +1 -1
  37. package/dist/{vue-ui-accordion-DBmchkva.js → vue-ui-accordion-Qo8JxnIN.js} +3 -3
  38. package/dist/{vue-ui-age-pyramid-CvUCPqxa.js → vue-ui-age-pyramid-Biz02m7c.js} +85 -82
  39. package/dist/vue-ui-age-pyramid-kpaaJ2Gx.cjs +1 -0
  40. package/dist/{vue-ui-annotator-BV9t6ro7.cjs → vue-ui-annotator-By6XNYm0.cjs} +1 -1
  41. package/dist/{vue-ui-annotator-Dr5PLrJx.js → vue-ui-annotator-MXs48Lua.js} +1 -1
  42. package/dist/{vue-ui-bullet-D7Uw9tez.js → vue-ui-bullet-CtBs_r3I.js} +92 -89
  43. package/dist/vue-ui-bullet-Dkz6vX0T.cjs +34 -0
  44. package/dist/vue-ui-candlestick-DiEUIuW8.cjs +2 -0
  45. package/dist/{vue-ui-candlestick-BFmh-zx1.js → vue-ui-candlestick-gPztmuJE.js} +155 -152
  46. package/dist/{vue-ui-carousel-table-C30Gvanv.cjs → vue-ui-carousel-table-CYeXP21y.cjs} +1 -1
  47. package/dist/{vue-ui-carousel-table-CUhkylz_.js → vue-ui-carousel-table-D9ckYNKZ.js} +4 -4
  48. package/dist/{vue-ui-chestnut-C53wdHmR.js → vue-ui-chestnut-DWjn-jcN.js} +186 -183
  49. package/dist/vue-ui-chestnut-oZtRERnV.cjs +6 -0
  50. package/dist/{vue-ui-circle-pack-Bj3sA7RV.js → vue-ui-circle-pack-Bz5yVvAM.js} +99 -96
  51. package/dist/vue-ui-circle-pack-DCJ6N00S.cjs +1 -0
  52. package/dist/{vue-ui-cursor-0GY46Ywr.js → vue-ui-cursor-BrrVDy1u.js} +2 -2
  53. package/dist/{vue-ui-cursor-ZBrt-jTo.cjs → vue-ui-cursor-DZhRygRy.cjs} +1 -1
  54. package/dist/{vue-ui-dashboard-BX787_or.js → vue-ui-dashboard-DEmGN8Js.js} +2 -2
  55. package/dist/{vue-ui-dashboard-pzZD8J2y.cjs → vue-ui-dashboard-o8Ju_cXW.cjs} +1 -1
  56. package/dist/{vue-ui-digits-Blb8fghV.cjs → vue-ui-digits-CgyYdrQ5.cjs} +1 -1
  57. package/dist/{vue-ui-digits-BvCMwL0L.js → vue-ui-digits-DbOrROu7.js} +2 -2
  58. package/dist/vue-ui-donut-9pWaRwf3.cjs +1 -0
  59. package/dist/{vue-ui-donut-yBjSgsTz.js → vue-ui-donut-CP5uWglM.js} +158 -155
  60. package/dist/{vue-ui-donut-evolution-DRfJVMrP.js → vue-ui-donut-evolution-BAMD1wQ5.js} +133 -131
  61. package/dist/vue-ui-donut-evolution-Ci_gIrkO.cjs +1 -0
  62. package/dist/{vue-ui-dumbbell-4-hWZn-o.js → vue-ui-dumbbell-CFYd-Ypn.js} +125 -122
  63. package/dist/vue-ui-dumbbell-DUNYoZxT.cjs +9 -0
  64. package/dist/{vue-ui-flow-aH6xSdwn.js → vue-ui-flow-CdvGWFzv.js} +96 -93
  65. package/dist/vue-ui-flow-W89ofPB-.cjs +1 -0
  66. package/dist/{vue-ui-funnel-BZy4SvlW.js → vue-ui-funnel-DYutKyoz.js} +88 -85
  67. package/dist/vue-ui-funnel-RvdVrhFu.cjs +1 -0
  68. package/dist/{vue-ui-galaxy-GDXdZqjm.js → vue-ui-galaxy-BCBRlYS1.js} +123 -120
  69. package/dist/vue-ui-galaxy-Djdx-ca8.cjs +1 -0
  70. package/dist/{vue-ui-gauge-CeyHdkuS.js → vue-ui-gauge-BNAAZt4F.js} +86 -83
  71. package/dist/vue-ui-gauge-BVVmf09x.cjs +1 -0
  72. package/dist/{vue-ui-gizmo-veFxjktw.js → vue-ui-gizmo-BFQ_KgLX.js} +3 -3
  73. package/dist/{vue-ui-gizmo-CRTzb1J_.cjs → vue-ui-gizmo-Ceh0oFY3.cjs} +1 -1
  74. package/dist/vue-ui-heatmap-CiZpI-tA.cjs +1 -0
  75. package/dist/{vue-ui-heatmap-BizLgjJ8.js → vue-ui-heatmap-Ct3qaBv7.js} +109 -106
  76. package/dist/vue-ui-history-plot-Ci8Y2EFg.cjs +1 -0
  77. package/dist/{vue-ui-history-plot-gzx5uGyY.js → vue-ui-history-plot-shn74MJ6.js} +130 -127
  78. package/dist/{vue-ui-kpi-MdyAQjdJ.js → vue-ui-kpi-B_pV-2JJ.js} +3 -3
  79. package/dist/{vue-ui-kpi-CP08PB51.cjs → vue-ui-kpi-DfYrbxlX.cjs} +1 -1
  80. package/dist/{vue-ui-mini-loader-CYVr1K6S.js → vue-ui-mini-loader-BFnWQs5p.js} +2 -2
  81. package/dist/{vue-ui-mini-loader-BRmtJ6az.cjs → vue-ui-mini-loader-LIqf62jk.cjs} +1 -1
  82. package/dist/vue-ui-molecule-D8YuYTKv.cjs +1 -0
  83. package/dist/{vue-ui-molecule-CJ05ddhf.js → vue-ui-molecule-DNz1m8XZ.js} +147 -144
  84. package/dist/{vue-ui-mood-radar-DG1pF6Ii.js → vue-ui-mood-radar-DiYB_zhM.js} +97 -94
  85. package/dist/vue-ui-mood-radar-uvH7qUHy.cjs +1 -0
  86. package/dist/{vue-ui-nested-donuts-CDjZ6KfI.js → vue-ui-nested-donuts-9hn-g4ir.js} +99 -96
  87. package/dist/vue-ui-nested-donuts-C7ikDjp7.cjs +17 -0
  88. package/dist/vue-ui-onion-5Rqvd4Fw.cjs +5 -0
  89. package/dist/{vue-ui-onion-DsskQUiP.js → vue-ui-onion-DCWfNTNu.js} +105 -102
  90. package/dist/{vue-ui-parallel-coordinate-plot-D7r71vdp.js → vue-ui-parallel-coordinate-plot-CaPFL9_1.js} +97 -94
  91. package/dist/vue-ui-parallel-coordinate-plot-tlgTbaNX.cjs +8 -0
  92. package/dist/vue-ui-quadrant-B0Sw5NGo.cjs +1 -0
  93. package/dist/{vue-ui-quadrant-DCHEhvMX.js → vue-ui-quadrant-BoQZ375K.js} +155 -152
  94. package/dist/vue-ui-quick-chart-D3zV1d7t.cjs +15 -0
  95. package/dist/{vue-ui-quick-chart-BB5b4AQ1.js → vue-ui-quick-chart-vfMN8F1q.js} +164 -161
  96. package/dist/{vue-ui-radar-CNEXWSEx.js → vue-ui-radar-CAuu6wkh.js} +105 -102
  97. package/dist/vue-ui-radar-CNMJCAwo.cjs +1 -0
  98. package/dist/{vue-ui-rating-DJLSl0-4.js → vue-ui-rating-Bm0HZ3du.js} +2 -2
  99. package/dist/{vue-ui-rating-ClvF4LPg.cjs → vue-ui-rating-dsRDRL98.cjs} +1 -1
  100. package/dist/{vue-ui-relation-circle-Hdzt7fOS.js → vue-ui-relation-circle-5OZMN9jR.js} +127 -124
  101. package/dist/vue-ui-relation-circle-iD7BufNH.cjs +1 -0
  102. package/dist/{vue-ui-rings-BAFkqjcL.js → vue-ui-rings-COefBaQT.js} +114 -111
  103. package/dist/vue-ui-rings-DC4WG4sK.cjs +2 -0
  104. package/dist/vue-ui-scatter-5ny76dmi.cjs +1 -0
  105. package/dist/{vue-ui-scatter-Ca67EOrI.js → vue-ui-scatter-DhO83TZZ.js} +157 -154
  106. package/dist/{vue-ui-screenshot-CFcvBOJm.cjs → vue-ui-screenshot-DABH_phE.cjs} +1 -1
  107. package/dist/{vue-ui-screenshot-CsdnwhSO.js → vue-ui-screenshot-brillPo5.js} +1 -1
  108. package/dist/{vue-ui-skeleton-CHEZlRpn.js → vue-ui-skeleton-BmJiYGtE.js} +3 -3
  109. package/dist/{vue-ui-skeleton-BBNX7lud.cjs → vue-ui-skeleton-_DN0U6W6.cjs} +1 -1
  110. package/dist/{vue-ui-smiley-EngC6Vc4.cjs → vue-ui-smiley-CW6714mb.cjs} +1 -1
  111. package/dist/{vue-ui-smiley-Dth6gRqg.js → vue-ui-smiley-D9NRimij.js} +2 -2
  112. package/dist/{vue-ui-spark-trend-33sBlF-n.js → vue-ui-spark-trend-BKZj03CQ.js} +5 -5
  113. package/dist/{vue-ui-spark-trend-DJ8yhFMx.cjs → vue-ui-spark-trend-expbkxgR.cjs} +1 -1
  114. package/dist/{vue-ui-sparkbar-mJu95295.js → vue-ui-sparkbar-CYRORE5i.js} +4 -4
  115. package/dist/{vue-ui-sparkbar-D9QLpB7G.cjs → vue-ui-sparkbar-Cr9FtevP.cjs} +1 -1
  116. package/dist/vue-ui-sparkgauge-BHXFhvTv.cjs +1 -0
  117. package/dist/{vue-ui-sparkgauge-nFFf8h-x.js → vue-ui-sparkgauge-JV4tYB7P.js} +56 -53
  118. package/dist/{vue-ui-sparkhistogram-Bh6R737O.js → vue-ui-sparkhistogram-DKINHX2q.js} +93 -90
  119. package/dist/vue-ui-sparkhistogram-T4a3DDck.cjs +1 -0
  120. package/dist/{vue-ui-sparkline-BfBiA1O5.js → vue-ui-sparkline-CbRTHtig.js} +109 -106
  121. package/dist/vue-ui-sparkline-Dc6Sf3n8.cjs +1 -0
  122. package/dist/{vue-ui-sparkstackbar-BNTFNUIA.js → vue-ui-sparkstackbar-6u9-2nG4.js} +59 -56
  123. package/dist/vue-ui-sparkstackbar-CV5SkdsP.cjs +1 -0
  124. package/dist/{vue-ui-stackbar-BbFUifMU.js → vue-ui-stackbar-CUppObfj.js} +136 -133
  125. package/dist/vue-ui-stackbar-CXB-nd71.cjs +6 -0
  126. package/dist/vue-ui-strip-plot-6IXF_U6-.cjs +1 -0
  127. package/dist/{vue-ui-strip-plot-wsxpyqrw.js → vue-ui-strip-plot-doaNZAW4.js} +127 -124
  128. package/dist/{vue-ui-table-CQYM4uPf.js → vue-ui-table-CZsNuDR5.js} +1 -1
  129. package/dist/{vue-ui-table-DUokotBj.cjs → vue-ui-table-S66UCskD.cjs} +1 -1
  130. package/dist/{vue-ui-table-heatmap-Brk58nK_.cjs → vue-ui-table-heatmap-BU9UU15H.cjs} +1 -1
  131. package/dist/{vue-ui-table-heatmap-OYQ9OOzo.js → vue-ui-table-heatmap-CjohHqDV.js} +4 -4
  132. package/dist/{vue-ui-table-sparkline-C9dOsIAB.cjs → vue-ui-table-sparkline-CHFFTD0a.cjs} +1 -1
  133. package/dist/{vue-ui-table-sparkline-DUjDhg8A.js → vue-ui-table-sparkline-ab2rwdKB.js} +5 -5
  134. package/dist/{vue-ui-thermometer-WSMSVcM_.js → vue-ui-thermometer-C72mHwUi.js} +84 -81
  135. package/dist/vue-ui-thermometer-Ccd6RGh8.cjs +1 -0
  136. package/dist/vue-ui-timer-C8Fn2B0b.cjs +64 -0
  137. package/dist/{vue-ui-timer-DBP_fRcm.js → vue-ui-timer-D-LNi6lz.js} +183 -180
  138. package/dist/{vue-ui-tiremarks-WWgS2mqw.js → vue-ui-tiremarks-Bo8EWsJ8.js} +59 -56
  139. package/dist/vue-ui-tiremarks-SOzvMOz4.cjs +1 -0
  140. package/dist/vue-ui-treemap-BqTTQrVh.cjs +1 -0
  141. package/dist/{vue-ui-treemap-CXoXEuSA.js → vue-ui-treemap-uj94elVB.js} +123 -120
  142. package/dist/{vue-ui-vertical-bar-COaAa4nz.js → vue-ui-vertical-bar-BUTOw-DK.js} +108 -105
  143. package/dist/vue-ui-vertical-bar-C4Sxun4Q.cjs +4 -0
  144. package/dist/{vue-ui-waffle-DD8pT7JN.js → vue-ui-waffle-CTWA1frT.js} +107 -104
  145. package/dist/vue-ui-waffle-DYWGRKdT.cjs +1 -0
  146. package/dist/{vue-ui-wheel-BLlKekiu.js → vue-ui-wheel-8K72ZKda.js} +75 -72
  147. package/dist/vue-ui-wheel-Cz5-0klT.cjs +1 -0
  148. package/dist/{vue-ui-word-cloud-CcYtTXW6.js → vue-ui-word-cloud-CSwBPDB8.js} +97 -94
  149. package/dist/vue-ui-word-cloud-D39riLZb.cjs +1 -0
  150. package/dist/vue-ui-xy-BbWXjajH.cjs +3 -0
  151. package/dist/{vue-ui-xy-DYzfiZnJ.js → vue-ui-xy-DpDKutd7.js} +65 -58
  152. package/dist/{vue-ui-xy-canvas-CkB7VDhF.cjs → vue-ui-xy-canvas-BCj0SCqe.cjs} +2 -2
  153. package/dist/{vue-ui-xy-canvas-DqnK_i0Q.js → vue-ui-xy-canvas-BQm9gah4.js} +82 -81
  154. package/package.json +1 -1
  155. package/dist/Shape-BN3-_2DI.cjs +0 -1
  156. package/dist/Tooltip-DSPKrQcQ.cjs +0 -1
  157. package/dist/vue-ui-3d-bar-DEu24HHj.cjs +0 -19
  158. package/dist/vue-ui-age-pyramid-CRYYDXFo.cjs +0 -1
  159. package/dist/vue-ui-bullet-Dy71N3Jf.cjs +0 -34
  160. package/dist/vue-ui-candlestick-aZ1YN4hh.cjs +0 -2
  161. package/dist/vue-ui-chestnut-DuycsDaB.cjs +0 -6
  162. package/dist/vue-ui-circle-pack-BFF5_9Sm.cjs +0 -1
  163. package/dist/vue-ui-donut-BO6RWqZ6.cjs +0 -1
  164. package/dist/vue-ui-donut-evolution-BgJMw_a4.cjs +0 -1
  165. package/dist/vue-ui-dumbbell-BSXxNjyK.cjs +0 -9
  166. package/dist/vue-ui-flow-LNlNIRfb.cjs +0 -1
  167. package/dist/vue-ui-funnel-BhDmLkFj.cjs +0 -1
  168. package/dist/vue-ui-galaxy-BcwAAgUh.cjs +0 -1
  169. package/dist/vue-ui-gauge-BCf-2H4T.cjs +0 -1
  170. package/dist/vue-ui-heatmap-Bxhy4dCf.cjs +0 -1
  171. package/dist/vue-ui-history-plot-CTBCFIG0.cjs +0 -1
  172. package/dist/vue-ui-molecule-pTMJG_3k.cjs +0 -1
  173. package/dist/vue-ui-mood-radar-DXLYUXbX.cjs +0 -1
  174. package/dist/vue-ui-nested-donuts-yztsnsjM.cjs +0 -17
  175. package/dist/vue-ui-onion-BgbKMVNe.cjs +0 -5
  176. package/dist/vue-ui-parallel-coordinate-plot-Cha1Em8k.cjs +0 -8
  177. package/dist/vue-ui-quadrant-BzYnR_Hc.cjs +0 -1
  178. package/dist/vue-ui-quick-chart-BcW7URue.cjs +0 -15
  179. package/dist/vue-ui-radar-D-XPVXa9.cjs +0 -1
  180. package/dist/vue-ui-relation-circle-DfxnHEqR.cjs +0 -1
  181. package/dist/vue-ui-rings-C9NFME3F.cjs +0 -2
  182. package/dist/vue-ui-scatter-D0UloS1C.cjs +0 -1
  183. package/dist/vue-ui-sparkgauge-CBCbyOG2.cjs +0 -1
  184. package/dist/vue-ui-sparkhistogram-BstSpbti.cjs +0 -1
  185. package/dist/vue-ui-sparkline-DTRZ-_Qw.cjs +0 -1
  186. package/dist/vue-ui-sparkstackbar-CuU8Vpcv.cjs +0 -1
  187. package/dist/vue-ui-stackbar-B5uNBkxp.cjs +0 -6
  188. package/dist/vue-ui-strip-plot-7G7BAGQM.cjs +0 -1
  189. package/dist/vue-ui-thermometer-VnlcJh4G.cjs +0 -1
  190. package/dist/vue-ui-timer-Bh8RpM2u.cjs +0 -64
  191. package/dist/vue-ui-tiremarks-Ct96o_fd.cjs +0 -1
  192. package/dist/vue-ui-treemap-BfDk53pM.cjs +0 -1
  193. package/dist/vue-ui-vertical-bar-EIy7A0dV.cjs +0 -4
  194. package/dist/vue-ui-waffle-BB3l0zZU.cjs +0 -1
  195. package/dist/vue-ui-wheel-DfpXZJ8A.cjs +0 -1
  196. package/dist/vue-ui-word-cloud-DdaMzF2e.cjs +0 -1
  197. package/dist/vue-ui-xy-B4Mzyy81.cjs +0 -3
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("./index-DEnRHTzk.cjs"),Z=require("./useResponsive-YQYQrAZ_.cjs"),Be=require("./Title-Dk92HYMu.cjs"),ee=require("./usePrinter-dyVny55M.cjs"),$e=require("./vue-ui-skeleton-_DN0U6W6.cjs"),te=require("./useNestedProp-BNT60LxO.cjs"),_e=require("./PackageVersion-DJKkRuOD.cjs"),Pe=require("./PenAndPaper-MTTJ3Gd9.cjs"),Le=require("./useUserOptionState-BgepsfED.cjs"),ze=require("./useChartAccessibility-Cm7nkzTG.cjs"),Oe=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Se=["id"],Ee=["xmlns","viewBox"],Ae=["width","height"],Ne=["cx","cy","r","stroke","stroke-width"],Ie={key:1},Ve=["stroke","d","stroke-width"],Fe={style:{"pointer-events":"none"}},Me=["cx","cy","fill","r","stroke"],Te=["x","y","fill","font-size"],Re={key:2},qe=["stroke","stroke-width","x1","x2","y1","y2"],je={style:{"pointer-events":"none"}},De=["cx","cy","fill","r","stroke"],Ue=["x","y","fill","font-size"],Ge=["text-anchor","transform","x","y","onClick","font-weight","font-size","fill"],We=["cx","cy","fill","stroke","onClick","r"],Ye={key:5,class:"vue-data-ui-watermark"},Xe={__name:"vue-ui-relation-circle",props:{dataset:{type:Array,default(){return[]}},config:{type:Object,default(){return{}}}},setup(le,{expose:re}){e.useCssVars(t=>({"1fee7ef0":ce.value,"394bce67":ue.value,"23e0d009":de.value}));const{vue_ui_relation_circle:ne}=o.useConfig(),y=le,$=e.computed(()=>!!y.dataset&&Object.keys(y.dataset).length),w=e.ref(o.createUid()),E=e.ref(0),x=e.ref(null),A=e.ref(null),N=e.ref(null),I=e.ref(null),V=e.ref(0),r=e.computed({get:()=>T(),set:t=>t}),{userOptionsVisible:_,setUserOptionsVisibility:F,keepUserOptionState:M}=Le.useUserOptionState({config:r.value}),{svgRef:oe}=ze.useChartAccessibility({config:r.value.style.title});function T(){const t=te.useNestedProp({userConfig:y.config,defaultConfig:ne});return t.theme?{...te.useNestedProp({userConfig:o.themes.vue_ui_relation_circle[t.theme]||y.config,defaultConfig:t}),customPalette:o.themePalettes[t.theme]||o.palette}:t}e.watch(()=>y.config,t=>{r.value=T(),_.value=!r.value.userOptions.showOnChartHover,Y(),V.value+=1},{deep:!0});const{isPrinting:R,isImaging:q,generatePdf:j,generateImage:D}=ee.usePrinter({elementId:`relation_circle_${w.value}`,fileName:r.value.style.title.text||"vue-ui-relation-circle"}),se=e.computed(()=>r.value.userOptions.show&&!r.value.style.title.text),U=e.computed(()=>o.convertCustomPalette(r.value.customPalette)),h=e.ref([]),d=e.ref([]),i=e.ref({}),v=e.ref([]),ae=e.ref(0),P=e.computed(()=>y.dataset.slice(0,r.value.style.limit)),k=e.ref(r.value.style.size),f=e.ref(r.value.style.weightLabels.size),G=e.ref(r.value.style.plot.radius),W=e.ref(r.value.style.labels.fontSize),a=e.ref({height:r.value.style.size,width:r.value.style.size}),m=e.computed({get(){return k.value*r.value.style.circle.radiusProportion},set(t){return t}}),ie=e.computed(()=>r.value.style.links.curved),ue=e.computed(()=>`${r.value.style.animation.speedMs}ms`),ce=e.computed(()=>m.value*2),de=e.computed(()=>m.value*4),b=e.ref(null);e.onMounted(()=>{Y(),document.getElementById(`relation_circle_${w.value}`).addEventListener("click",X)});function Y(){if(o.objectIsEmpty(y.dataset)?o.error({componentName:"VueUiRelationCircle",type:"dataset"}):y.dataset.forEach((t,n)=>{o.getMissingDatasetAttributes({datasetObject:t,requiredAttributes:["id","label","relations","weights"]}).forEach(l=>{o.error({componentName:"VueUiRelationCircle",type:"datasetSerieAttribute",property:l,index:n})})}),r.value.responsive){const t=Z.throttle(()=>{const{width:n,height:l}=Z.useResponsive({chart:x.value,title:r.value.style.title.text?A.value:null,source:N.value,noTitle:I.value});requestAnimationFrame(()=>{k.value=Math.min(n,l),a.value.width=n,a.value.height=l,m.value=k.value*r.value.style.circle.radiusProportion,h.value=[],d.value=[],H(),J(),f.value=o.translateSize({relator:k.value,adjuster:r.value.style.size,source:r.value.style.weightLabels.size,threshold:6,fallback:6}),G.value=o.translateSize({relator:k.value,adjuster:r.value.style.size,source:r.value.style.plot.radius,threshold:1,fallback:1}),W.value=o.translateSize({relator:k.value,adjuster:r.value.style.size,source:r.value.style.labels.fontSize,threshold:6,fallback:6})})});b.value=new ResizeObserver(t),b.value.observe(x.value.parentNode)}else h.value=[],d.value=[],H(),J()}e.onBeforeUnmount(()=>{document.getElementById(`relation_circle_${w.value}`).removeEventListener("click",X),b.value&&b.value.disconnect()});function X(t){const n=t.target;n&&Array.from(n.classList).includes("vue-ui-user-options")||n&&Array.from(n.classList).includes("vue-ui-user-options-summary")||n&&Array.from(n.classList).includes("vue-data-ui-button")||n&&Array.from(n.classList).includes("vue-ui-relation-circle-legend")||(i.value={},v.value=[])}function H(){const t=6.28319/P.value.length,n=360/P.value.length;let l=0,s=0;P.value.forEach((c,u)=>{const O=c.weights.reduce((be,Ce)=>be+Ce,0),S=m.value*Math.cos(l)+a.value.width/2,xe=m.value*Math.sin(l)+a.value.height/2+r.value.style.circle.offsetY;h.value.push({x:S,y:xe,...c,color:c.color?c.color:U.value[u]?U.value[u]:o.palette[u],regAngle:s,totalWeight:O}),l+=t,s+=n})}function ve(t,n){const l=(t.x+n.x)/2,s=(t.y+n.y)/2;return{x:l,y:s}}function J(){d.value=[],h.value.forEach(t=>{h.value.filter(l=>l.relations.includes(t.id)).forEach((l,s)=>{const c=l.relations.indexOf(t.id);d.value.push({weight:l.weights[c]?l.weights[c]:0,relationId:`${t.id}_${l.id}`,x1:t.x,y1:t.y,x2:l.x,y2:l.y,colorSource:t.color,colorTarget:l.color,midPointLine:ve({x:t.x,y:t.y},{x:l.x,y:l.y}),midPointBezier:fe({x1:t.x,x2:l.x,y1:t.y,y2:l.y}),...t})})})}function fe(t){const n={x:t.x1,y:t.y1},l={x:t.x2,y:t.y2},s={x:t.x1,y:t.y1},c={x:a.value.width/2,y:a.value.height/2+r.value.style.circle.offsetY},u=.5,O=Math.pow(1-u,3)*n.x+3*Math.pow(1-u,2)*u*s.x+3*(1-u)*Math.pow(u,2)*c.x+Math.pow(u,3)*l.x,S=Math.pow(1-u,3)*n.y+3*Math.pow(1-u,2)*u*s.y+3*(1-u)*Math.pow(u,2)*c.y+Math.pow(u,3)*l.y;return{x:O,y:S}}const ye=e.computed(()=>Math.max(...d.value.map(t=>t.weight)));function ge(t){return Object.hasOwn(i.value,"x")?v.value.includes(t.id)?"opacity:1":"opacity:0.1":"opacity:1"}function g(t){return t.colorSource}function K(t){return Object.hasOwn(i.value,"x")?v.value.includes(t.id)&&t.relationId===`${t.id}_${i.value.id}`||t.relationId===`${i.value.id}_${t.id}`?`opacity:1;stroke-width:${L(t)}`:"opacity: 0":"opacity: 1"}function p(t){return Object.hasOwn(i.value,"x")?!!(v.value.includes(t.id)&&t.relationId===`${t.id}_${i.value.id}`||t.relationId===`${i.value.id}_${t.id}`):!1}function he(t){return t.regAngle>90&&t.regAngle<270?"end":"start"}function me(t){return t.regAngle>90&&t.regAngle<270?t.x-5:t.x+5}function ke(t){return Object.hasOwn(i.value,"x")?i.value.id===t.id||v.value.includes(t.id)?"opacity:1":"opacity:0.2":"opacity:1"}function pe(t){return t.regAngle>90&&t.regAngle<270?`rotate(${t.regAngle+180},${t.x},${t.y})`:`rotate(${t.regAngle},${t.x},${t.y})`}function Q(t){ae.value=360-t.regAngle,i.value.id&&t.id===i.value.id?(i.value={},v.value=[]):(i.value=t,v.value=[...t.relations])}function L(t){const n=t.weight/ye.value*r.value.style.links.maxWidth;return Math.max(.3,n)}const C=e.ref(!1);function we(t){C.value=t,E.value+=1}const B=e.ref(!1);function z(){B.value=!B.value}return re({generatePdf:j,generateImage:D,toggleAnnotator:z}),(t,n)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"relationCircleChart",ref:x,class:"vue-ui-relation-circle",style:e.normalizeStyle(`width:100%;background:${r.value.style.backgroundColor};text-align:center;${r.value.responsive?"height: 100%":""}`),id:`relation_circle_${w.value}`,onMouseenter:n[0]||(n[0]=()=>e.unref(F)(!0)),onMouseleave:n[1]||(n[1]=()=>e.unref(F)(!1))},[r.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(Pe.PenAndPaper,{key:0,parent:x.value,backgroundColor:r.value.style.backgroundColor,color:r.value.style.color,active:B.value,onClose:z},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),se.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:I,class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},null,512)):e.createCommentVNode("",!0),r.value.style.title.text?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"chartTitle",ref:A,style:"width:100%;background:transparent"},[(e.openBlock(),e.createBlock(Be._sfc_main,{key:`title_${V.value}`,config:{title:{cy:"relation-div-title",...r.value.style.title},subtitle:{cy:"relation-div-subtitle",...r.value.style.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),r.value.userOptions.show&&$.value&&(e.unref(M)||e.unref(_))?(e.openBlock(),e.createBlock(ee.UserOptions,{ref:"details",key:`user_options_${E.value}`,backgroundColor:r.value.style.backgroundColor,color:r.value.style.color,isPrinting:e.unref(R),isImaging:e.unref(q),uid:w.value,hasPdf:r.value.userOptions.buttons.pdf,hasImg:r.value.userOptions.buttons.img,hasFullscreen:r.value.userOptions.buttons.img,hasXls:!1,isFullscreen:C.value,titles:{...r.value.userOptions.buttonTitles},chartElement:x.value,position:r.value.userOptions.position,hasAnnotator:r.value.userOptions.buttons.annotator,isAnnotation:B.value,onToggleFullscreen:we,onGeneratePdf:e.unref(j),onGenerateImage:e.unref(D),onToggleAnnotator:z,style:e.normalizeStyle({visibility:e.unref(M)?e.unref(_)?"visible":"hidden":"visible"})},e.createSlots({_:2},[t.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,t.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"optionImg",{},void 0,!0)]),key:"1"}:void 0,t.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:s})=>[e.renderSlot(t.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:s})),void 0,!0)]),key:"2"}:void 0,t.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:l,isAnnotator:s})=>[e.renderSlot(t.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:l,isAnnotator:s})),void 0,!0)]),key:"3"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasImg","hasFullscreen","isFullscreen","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),$.value?(e.openBlock(),e.createElementBlock("svg",{key:4,ref_key:"svgRef",ref:oe,xmlns:e.unref(o.XMLNS),class:e.normalizeClass([{"vue-data-ui-fullscreen--on":C.value,"vue-data-ui-fulscreen--off":!C.value},"relation-circle"]),viewBox:`0 0 ${a.value.width<=0?10:a.value.width} ${a.value.height<=0?10:a.value.height}`,width:"100%",style:"user-select:none; background:transparent"},[e.createVNode(_e._sfc_main),t.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:0,y:0,width:a.value.width<=0?10:a.value.width,height:a.value.height<=0?10:a.value.height,style:{pointerEvents:"none"}},[e.renderSlot(t.$slots,"chart-background",{},void 0,!0)],8,Ae)):e.createCommentVNode("",!0),e.createElementVNode("circle",{cx:(a.value.width<=0?1e-4:a.value.width)/2,cy:(a.value.height<=0?1e-4:a.value.height)/2+r.value.style.circle.offsetY,r:m.value<=0?1e-4:m.value,stroke:r.value.style.circle.stroke,"stroke-width":r.value.style.circle.strokeWidth,fill:"transparent",class:"main-circle"},null,8,Ne),ie.value?(e.openBlock(),e.createElementBlock("g",Ie,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(l,s)=>(e.openBlock(),e.createElementBlock("path",{key:`relation_${s}`,style:e.normalizeStyle(K(l)),stroke:g(l),class:e.normalizeClass(["relation",{"vue-ui-relation-circle-selected":i.value.hasOwnProperty("id")&&v.value.includes(l.id)}]),d:`M${l.x1},${l.y1} C${l.x1},${l.y1} ${a.value.width/2},${a.value.height/2+r.value.style.circle.offsetY} ${l.x2},${l.y2}`,fill:"none","stroke-width":L(l),"stroke-linecap":"round"},null,14,Ve))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(l,s)=>(e.openBlock(),e.createElementBlock("g",Fe,[p(l)?e.renderSlot(t.$slots,"dataLabel",e.mergeProps({key:0,ref_for:!0},{x:l.midPointBezier.x,y:l.midPointBezier.y,color:g(l),weight:l.weight,fontSize:f.value}),void 0,!0):e.createCommentVNode("",!0),p(l)&&!t.$slots.dataLabel?(e.openBlock(),e.createElementBlock("circle",{key:1,cx:l.midPointBezier.x,cy:l.midPointBezier.y,fill:g(l),r:f.value,stroke:r.value.style.backgroundColor,"stroke-width":"1"},null,8,Me)):e.createCommentVNode("",!0),p(l)&&!t.$slots.dataLabel?(e.openBlock(),e.createElementBlock("text",{key:2,x:l.midPointBezier.x,y:l.midPointBezier.y+f.value/3,fill:e.unref(o.adaptColorToBackground)(g(l)),"text-anchor":"middle","font-size":f.value},e.toDisplayString(e.unref(o.applyDataLabel)(r.value.style.weightLabels.formatter,l.weight,e.unref(o.dataLabel)({p:r.value.style.weightLabels.prefix,v:l.weight,s:r.value.style.weightLabels.suffix,r:r.value.style.weightLabels.rounding}),{...l})),9,Te)):e.createCommentVNode("",!0)]))),256))])):(e.openBlock(),e.createElementBlock("g",Re,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(l,s)=>(e.openBlock(),e.createElementBlock("line",{key:`relation_${s}`,stroke:g(l),"stroke-width":L(l),style:e.normalizeStyle(K(l)),x1:l.x1,x2:l.x2,y1:l.y1,y2:l.y2,class:e.normalizeClass({"vue-ui-relation-circle-selected":i.value.hasOwnProperty("id")&&v.value.includes(l.id)}),"stroke-linecap":"round"},null,14,qe))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(l,s)=>(e.openBlock(),e.createElementBlock("g",je,[p(l)?e.renderSlot(t.$slots,"dataLabel",e.mergeProps({key:0,ref_for:!0},{x:l.midPointLine.x,y:l.midPointLine.y,color:g(l),weight:l.weight,fontSize:f.value}),void 0,!0):e.createCommentVNode("",!0),p(l)&&!t.$slots.dataLabel&&r.value.style.weightLabels.show?(e.openBlock(),e.createElementBlock("circle",{key:1,cx:l.midPointLine.x,cy:l.midPointLine.y,fill:g(l),r:f.value,stroke:r.value.style.backgroundColor,"stroke-width":"1"},null,8,De)):e.createCommentVNode("",!0),p(l)&&!t.$slots.dataLabel&&r.value.style.weightLabels.show?(e.openBlock(),e.createElementBlock("text",{key:2,x:l.midPointLine.x,y:l.midPointLine.y+f.value/3,fill:e.unref(o.adaptColorToBackground)(g(l)),"text-anchor":"middle","font-size":f.value},e.toDisplayString(e.unref(o.applyDataLabel)(r.value.style.weightLabels.formatter,l.weight,e.unref(o.dataLabel)({p:r.value.style.weightLabels.prefix,v:l.weight,s:r.value.style.weightLabels.suffix,r:r.value.style.weightLabels.rounding}),{...l})),9,Ue)):e.createCommentVNode("",!0)]))),256))])),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,(l,s)=>(e.openBlock(),e.createElementBlock("text",{key:`plot_text_${s}`,"text-anchor":he(l),transform:pe(l),x:me(l),y:l.y+5,onClick:c=>Q(l),class:"vue-ui-relation-circle-legend","transform-origin":"start","font-weight":i.value.id===l.id?"900":"400",style:e.normalizeStyle(`font-family:${r.value.style.fontFamily};${ke(l)}`),"font-size":W.value,fill:r.value.style.labels.color},e.toDisplayString(l.label)+" ("+e.toDisplayString(e.unref(o.applyDataLabel)(r.value.style.weightLabels.formatter,l.totalWeight,e.unref(o.dataLabel)({p:r.value.style.weightLabels.prefix,v:l.totalWeight,s:r.value.style.weightLabels.suffix,r:r.value.style.weightLabels.rounding}),{...l}))+") ",13,Ge))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,(l,s)=>(e.openBlock(),e.createElementBlock("circle",{cx:l.x,cy:l.y,key:`plot_${s}`,style:e.normalizeStyle(ge(l)),class:"vue-ui-relation-circle-plot",fill:r.value.style.plot.useSerieColor?l.color:r.value.style.plot.color,stroke:r.value.style.backgroundColor,"stroke-width":"1",onClick:c=>Q(l),r:G.value},null,12,We))),128)),e.renderSlot(t.$slots,"svg",{svg:a.value},void 0,!0)],10,Ee)):e.createCommentVNode("",!0),t.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Ye,[e.renderSlot(t.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(R)||e.unref(q)})),void 0,!0)])):e.createCommentVNode("",!0),t.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:6,ref_key:"source",ref:N,dir:"auto"},[e.renderSlot(t.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),$.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock($e.default,{key:7,config:{type:"relationCircle",style:{backgroundColor:r.value.style.backgroundColor,relationCircle:{color:"#CCCCCC"}}}},null,8,["config"]))],44,Se))}},He=Oe._export_sfc(Xe,[["__scopeId","data-v-61459281"]]);exports.default=He;
@@ -1,23 +1,24 @@
1
- import { useSlots as Ee, ref as r, computed as h, watch as Ge, onMounted as He, onBeforeUnmount as je, createElementBlock as v, openBlock as n, unref as i, normalizeStyle as O, normalizeClass as L, createBlock as N, createCommentVNode as m, createElementVNode as _, createVNode as J, createSlots as we, withCtx as g, renderSlot as p, normalizeProps as M, guardReactiveProps as V, Fragment as K, renderList as Q, mergeProps as Xe, createTextVNode as $e, toDisplayString as E, nextTick as qe } from "vue";
2
- import { u as Ye, c as _e, t as Je, p as P, a as Ke, o as Qe, e as Z, g as Ze, b as et, J as tt, d as Te, f as I, X as lt, s as ot, w as at, v as G, i as xe, q as st, r as nt, x as ut, y as rt } from "./index-B9qF6XbP.js";
3
- import { t as it, u as vt } from "./useResponsive-BWapHhVH.js";
4
- import { _ as ct } from "./Title-D6h1gTvZ.js";
5
- import { u as dt, U as pt } from "./usePrinter-DsiBLAy1.js";
6
- import { _ as ht } from "./Tooltip-BonEVaob.js";
7
- import { D as gt } from "./DataTable-CJN0sipt.js";
8
- import { L as ft } from "./Legend-BDyPoYfp.js";
9
- import yt from "./vue-ui-skeleton-CHEZlRpn.js";
10
- import mt from "./vue-ui-accordion-DBmchkva.js";
11
- import { u as Oe } from "./useNestedProp-g5oKzlVy.js";
12
- import { _ as bt } from "./PackageVersion-DqmHcoqz.js";
13
- import { P as kt } from "./PenAndPaper-6UYizrkQ.js";
14
- import { u as Ct } from "./useUserOptionState-BIvW1Kz7.js";
15
- import { _ as wt } from "./Shape-C_qIhG3J.js";
16
- import { _ as $t } from "./_plugin-vue_export-helper-CHgC5LLL.js";
17
- const _t = ["id"], Tt = ["xmlns", "viewBox"], xt = ["width", "height"], Ot = ["id"], Nt = ["stop-color"], Pt = ["stop-color"], It = { key: 1 }, St = ["stroke", "cx", "cy", "r", "fill"], At = ["stroke", "stroke-width", "cx", "cy", "r", "fill"], Ft = ["stroke", "stroke-width", "cx", "cy", "r", "fill"], Lt = ["cx", "cy", "r", "onMouseenter"], Mt = {
1
+ import { useSlots as Ge, ref as u, computed as h, watch as He, onMounted as je, onBeforeUnmount as Xe, createElementBlock as v, openBlock as n, unref as i, normalizeStyle as O, normalizeClass as L, createBlock as N, createCommentVNode as m, createElementVNode as _, createVNode as J, createSlots as we, withCtx as g, renderSlot as p, normalizeProps as M, guardReactiveProps as R, Fragment as K, renderList as Q, mergeProps as qe, createTextVNode as $e, toDisplayString as E, nextTick as Ye } from "vue";
2
+ import { u as Je, c as _e, t as Ke, p as P, a as Qe, o as Ze, e as Z, g as et, b as tt, J as lt, d as Te, f as I, X as ot, s as at, w as st, v as G, i as xe, q as nt, r as rt, x as ut, y as it } from "./index-9EeNZMz1.js";
3
+ import { t as vt, u as ct } from "./useResponsive-BWapHhVH.js";
4
+ import { _ as dt } from "./Title-BI8etrRU.js";
5
+ import { u as pt, U as ht } from "./usePrinter-ngrh00Ym.js";
6
+ import { _ as gt } from "./Tooltip-Cxc8c50d.js";
7
+ import { D as ft } from "./DataTable-TjJIVFlL.js";
8
+ import { L as yt } from "./Legend-NKGwxkI7.js";
9
+ import mt from "./vue-ui-skeleton-BmJiYGtE.js";
10
+ import bt from "./vue-ui-accordion-Qo8JxnIN.js";
11
+ import { u as Oe } from "./useNestedProp-df_bKQEI.js";
12
+ import { _ as kt } from "./PackageVersion-QRvxRYPv.js";
13
+ import { P as Ct } from "./PenAndPaper-CxC1lWGK.js";
14
+ import { u as wt } from "./useUserOptionState-BIvW1Kz7.js";
15
+ import { _ as $t } from "./Shape-58uyOuYc.js";
16
+ import { u as _t } from "./useChartAccessibility-BWojgys7.js";
17
+ import { _ as Tt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
18
+ const xt = ["id"], Ot = ["xmlns", "viewBox"], Nt = ["width", "height"], Pt = ["id"], It = ["stop-color"], St = ["stop-color"], At = { key: 1 }, Ft = ["stroke", "cx", "cy", "r", "fill"], Lt = ["stroke", "stroke-width", "cx", "cy", "r", "fill"], Mt = ["stroke", "stroke-width", "cx", "cy", "r", "fill"], Rt = ["cx", "cy", "r", "onMouseenter"], Vt = {
18
19
  key: 5,
19
20
  class: "vue-data-ui-watermark"
20
- }, Vt = ["onClick"], zt = { key: 0 }, Rt = { key: 1 }, Ut = ["innerHTML"], Wt = {
21
+ }, zt = ["onClick"], Ut = { key: 0 }, Wt = { key: 1 }, Bt = ["innerHTML"], Dt = {
21
22
  __name: "vue-ui-rings",
22
23
  props: {
23
24
  config: {
@@ -35,10 +36,10 @@ const _t = ["id"], Tt = ["xmlns", "viewBox"], xt = ["width", "height"], Ot = ["i
35
36
  },
36
37
  emits: ["selectLegend"],
37
38
  setup(Ne, { expose: Pe, emit: Ie }) {
38
- const { vue_ui_rings: Se } = Ye(), Ae = Ee(), b = Ne, x = r(!1), z = h(() => !!b.dataset && b.dataset.length), w = r(_e()), Fe = r(null), R = r(!1), H = r(""), $ = r(null), ee = r(0), S = r(null), te = r(null), le = r(null), oe = r(null), ae = r(null), se = r(0), ne = r(0), ue = r(0), e = h({
39
+ const { vue_ui_rings: Se } = Je(), Ae = Ge(), b = Ne, x = u(!1), V = h(() => !!b.dataset && b.dataset.length), w = u(_e()), Fe = u(null), z = u(!1), H = u(""), $ = u(null), ee = u(0), S = u(null), te = u(null), le = u(null), oe = u(null), ae = u(null), se = u(0), ne = u(0), re = u(0), e = h({
39
40
  get: () => ve(),
40
41
  set: (t) => t
41
- }), { userOptionsVisible: j, setUserOptionsVisibility: re, keepUserOptionState: ie } = Ct({ config: e.value });
42
+ }), { userOptionsVisible: j, setUserOptionsVisibility: ue, keepUserOptionState: ie } = wt({ config: e.value }), { svgRef: Le } = _t({ config: e.value.style.chart.title });
42
43
  function ve() {
43
44
  const t = Oe({
44
45
  userConfig: b.config,
@@ -46,28 +47,28 @@ const _t = ["id"], Tt = ["xmlns", "viewBox"], xt = ["width", "height"], Ot = ["i
46
47
  });
47
48
  return t.theme ? {
48
49
  ...Oe({
49
- userConfig: Ke.vue_ui_rings[t.theme] || b.config,
50
+ userConfig: Qe.vue_ui_rings[t.theme] || b.config,
50
51
  defaultConfig: t
51
52
  }),
52
- customPalette: Je[t.theme] || P
53
+ customPalette: Ke[t.theme] || P
53
54
  } : t;
54
55
  }
55
- Ge(() => b.config, (t) => {
56
- e.value = ve(), j.value = !e.value.userOptions.showOnChartHover, ce(), se.value += 1, ne.value += 1, ue.value += 1, k.value.showTable = e.value.table.show, k.value.showTooltip = e.value.style.chart.tooltip.show;
56
+ He(() => b.config, (t) => {
57
+ e.value = ve(), j.value = !e.value.userOptions.showOnChartHover, ce(), se.value += 1, ne.value += 1, re.value += 1, k.value.showTable = e.value.table.show, k.value.showTooltip = e.value.style.chart.tooltip.show;
57
58
  }, { deep: !0 });
58
- const U = r(null);
59
- He(() => {
59
+ const U = u(null);
60
+ je(() => {
60
61
  ce();
61
62
  });
62
63
  function ce() {
63
- if (Qe(b.dataset) ? Z({
64
+ if (Ze(b.dataset) ? Z({
64
65
  componentName: "VueUiRings",
65
66
  type: "dataset"
66
67
  }) : b.dataset.forEach((t, o) => {
67
68
  t.values.length || Z({
68
69
  componentName: "VueUiRings",
69
70
  type: "dataset"
70
- }), Ze({
71
+ }), et({
71
72
  datasetObject: t,
72
73
  requiredAttributes: ["name", "values"]
73
74
  }).forEach((l) => {
@@ -79,8 +80,8 @@ const _t = ["id"], Tt = ["xmlns", "viewBox"], xt = ["width", "height"], Ot = ["i
79
80
  });
80
81
  });
81
82
  }), e.value.responsive) {
82
- const t = it(() => {
83
- const { width: o, height: l } = vt({
83
+ const t = vt(() => {
84
+ const { width: o, height: l } = ct({
84
85
  chart: S.value,
85
86
  title: e.value.style.chart.title.text ? te.value : null,
86
87
  legend: e.value.style.chart.legend.show ? le.value : null,
@@ -97,19 +98,19 @@ const _t = ["id"], Tt = ["xmlns", "viewBox"], xt = ["width", "height"], Ot = ["i
97
98
  x.value = !0;
98
99
  }, 600);
99
100
  }
100
- je(() => {
101
+ Xe(() => {
101
102
  U.value && U.value.disconnect();
102
103
  });
103
- const { isPrinting: de, isImaging: pe, generatePdf: he, generateImage: ge } = dt({
104
+ const { isPrinting: de, isImaging: pe, generatePdf: he, generateImage: ge } = pt({
104
105
  elementId: `rings_${w.value}`,
105
106
  fileName: e.value.style.chart.title.text || "vue-ui-rings"
106
- }), Le = h(() => e.value.userOptions.show && !e.value.style.chart.title.text), fe = h(() => et(e.value.customPalette)), k = r({
107
+ }), Me = h(() => e.value.userOptions.show && !e.value.style.chart.title.text), fe = h(() => tt(e.value.customPalette)), k = u({
107
108
  showTable: e.value.table.show,
108
109
  showTooltip: e.value.style.chart.tooltip.show
109
- }), s = r({
110
+ }), s = u({
110
111
  height: 360,
111
112
  width: 360
112
- }), Me = h(() => Math.min(s.value.height, s.value.width)), Ve = Ie, f = r([]);
113
+ }), Re = h(() => Math.min(s.value.height, s.value.width)), Ve = Ie, f = u([]);
113
114
  function X(t) {
114
115
  f.value.includes(t) ? f.value = f.value.filter((o) => o !== t) : f.value.push(t), Ve("selectLegend", d.value.map((o) => ({
115
116
  name: o.name,
@@ -124,12 +125,12 @@ const _t = ["id"], Tt = ["xmlns", "viewBox"], xt = ["width", "height"], Ot = ["i
124
125
  return t / ze.value;
125
126
  }
126
127
  const W = h(() => b.dataset.map(({ values: t, name: o, color: l = null }, a) => {
127
- const u = tt(t).reduce((y, F) => y + F, 0);
128
+ const r = lt(t).reduce((y, F) => y + F, 0);
128
129
  return {
129
130
  name: o,
130
131
  color: l || Te(l) || fe.value[a] || P[a] || P[a % P.length],
131
- value: u,
132
- proportion: u / b.dataset.map((y) => (y.values || []).reduce((F, De) => F + De, 0)).reduce((y, F) => y + F, 0),
132
+ value: r,
133
+ proportion: r / b.dataset.map((y) => (y.values || []).reduce((F, Ee) => F + Ee, 0)).reduce((y, F) => y + F, 0),
133
134
  uid: _e(),
134
135
  absoluteIndex: a
135
136
  };
@@ -139,15 +140,15 @@ const _t = ["id"], Tt = ["xmlns", "viewBox"], xt = ["width", "height"], Ot = ["i
139
140
  opacity: f.value.includes(t.uid) ? 0.5 : 1,
140
141
  segregate: () => X(t.uid),
141
142
  isSegregated: f.value.includes(t.uid)
142
- })).toSorted((t, o) => o.value - t.value)), Re = h(() => ({
143
+ })).toSorted((t, o) => o.value - t.value)), Ue = h(() => ({
143
144
  cy: "rings-div-legend",
144
145
  backgroundColor: e.value.style.chart.legend.backgroundColor,
145
146
  color: e.value.style.chart.legend.color,
146
147
  fontSize: e.value.style.chart.legend.fontSize,
147
148
  paddingBottom: 12,
148
149
  fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
149
- })), C = h(() => W.value.filter((t) => !f.value.includes(t.uid)).map(({ value: t }) => t).reduce((t, o) => t + o, 0)), d = h(() => W.value.filter((t) => !f.value.includes(t.uid)).map(({ name: t, value: o, color: l = null, uid: a, absoluteIndex: u }, y) => ({
150
- absoluteIndex: u,
150
+ })), C = h(() => W.value.filter((t) => !f.value.includes(t.uid)).map(({ value: t }) => t).reduce((t, o) => t + o, 0)), d = h(() => W.value.filter((t) => !f.value.includes(t.uid)).map(({ name: t, value: o, color: l = null, uid: a, absoluteIndex: r }, y) => ({
151
+ absoluteIndex: r,
151
152
  uid: a,
152
153
  name: t,
153
154
  color: l || Te(l) || fe.value[y] || P[y] || P[y % P.length],
@@ -156,19 +157,19 @@ const _t = ["id"], Tt = ["xmlns", "viewBox"], xt = ["width", "height"], Ot = ["i
156
157
  percentage: o / C.value * 100,
157
158
  strokeWidth: e.value.style.chart.layout.rings.strokeWidth * ye(o)
158
159
  })).toSorted((t, o) => o.value - t.value));
159
- function Ue() {
160
+ function We() {
160
161
  return d.value.map(
161
- ({ name: t, color: o, value: l, absoluteValues: a, percentage: u }) => ({
162
+ ({ name: t, color: o, value: l, absoluteValues: a, percentage: r }) => ({
162
163
  name: t,
163
164
  color: o,
164
165
  value: l,
165
166
  absoluteValues: a,
166
- percentage: u
167
+ percentage: r
167
168
  })
168
169
  );
169
170
  }
170
- const c = h(() => Me.value - e.value.style.chart.layout.rings.strokeWidth * 2), q = r(null);
171
- function We(t, o) {
171
+ const c = h(() => Re.value - e.value.style.chart.layout.rings.strokeWidth * 2), q = u(null);
172
+ function Be(t, o) {
172
173
  if (f.value.length === b.dataset.length) return;
173
174
  q.value = {
174
175
  datapoint: o,
@@ -177,7 +178,7 @@ const _t = ["id"], Tt = ["xmlns", "viewBox"], xt = ["width", "height"], Ot = ["i
177
178
  config: e.value
178
179
  }, $.value = t;
179
180
  const l = d.value[t], a = e.value.style.chart.tooltip.customFormat;
180
- if (ut(a) && rt(() => a({
181
+ if (ut(a) && it(() => a({
181
182
  seriesIndex: t,
182
183
  datapoint: o,
183
184
  series: d.value,
@@ -190,8 +191,8 @@ const _t = ["id"], Tt = ["xmlns", "viewBox"], xt = ["width", "height"], Ot = ["i
190
191
  config: e.value
191
192
  });
192
193
  else {
193
- let u = "";
194
- u += `<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>`, u += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><circle cx="30" cy="30" r="30" stroke="none" fill="${l.color}" />${Ae.pattern ? `<circle cx="30" cy="30" r="30" stroke="none" fill="url(#pattern_${w.value}_${o.absoluteIndex})" />` : ""}</svg>`, e.value.style.chart.tooltip.showValue && (u += `<b>${xe(
194
+ let r = "";
195
+ r += `<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>`, r += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><circle cx="30" cy="30" r="30" stroke="none" fill="${l.color}" />${Ae.pattern ? `<circle cx="30" cy="30" r="30" stroke="none" fill="url(#pattern_${w.value}_${o.absoluteIndex})" />` : ""}</svg>`, e.value.style.chart.tooltip.showValue && (r += `<b>${xe(
195
196
  e.value.style.chart.layout.labels.dataLabels.formatter,
196
197
  l.value,
197
198
  I({
@@ -202,17 +203,17 @@ const _t = ["id"], Tt = ["xmlns", "viewBox"], xt = ["width", "height"], Ot = ["i
202
203
  }),
203
204
  { datapoint: o, seriesIndex: t }
204
205
  )}
205
- </b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? u += `<span>(${I({
206
+ </b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? r += `<span>(${I({
206
207
  v: l.value / C.value * 100,
207
208
  s: "%",
208
209
  r: e.value.style.chart.tooltip.roundingPercentage
209
- })})</span></div>` : u += `<b>${I({
210
+ })})</span></div>` : r += `<b>${I({
210
211
  v: l.value / C.value * 100,
211
212
  s: "%",
212
213
  r: e.value.style.chart.tooltip.roundingPercentage
213
- })}</b></div>`), H.value = u;
214
+ })}</b></div>`), H.value = r;
214
215
  }
215
- R.value = !0;
216
+ z.value = !0;
216
217
  }
217
218
  const T = h(() => {
218
219
  const t = d.value.map((l) => ({
@@ -225,10 +226,10 @@ const _t = ["id"], Tt = ["xmlns", "viewBox"], xt = ["width", "height"], Ot = ["i
225
226
  ' <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>',
226
227
  I({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: C.value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
227
228
  "100%"
228
- ], o = T.value.head.map((u, y) => [
229
+ ], o = T.value.head.map((r, y) => [
229
230
  {
230
- color: u.color,
231
- name: u.name
231
+ color: r.color,
232
+ name: r.name
232
233
  },
233
234
  I({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: T.value.body[y], s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
234
235
  isNaN(T.value.body[y] / C.value) ? "-" : (T.value.body[y] / C.value * 100).toFixed(e.value.table.td.roundingPercentage) + "%"
@@ -257,15 +258,15 @@ const _t = ["id"], Tt = ["xmlns", "viewBox"], xt = ["width", "height"], Ot = ["i
257
258
  };
258
259
  });
259
260
  function be() {
260
- qe(() => {
261
- const t = T.value.head.map((a, u) => [[
261
+ Ye(() => {
262
+ const t = T.value.head.map((a, r) => [[
262
263
  a.name
263
- ], [T.value.body[u]], [isNaN(T.value.body[u] / C.value) ? "-" : T.value.body[u] / C.value * 100]]), o = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(t), l = st(o);
264
- nt({ csvContent: l, title: e.value.style.chart.title.text || "vue-ui-rings" });
264
+ ], [T.value.body[r]], [isNaN(T.value.body[r] / C.value) ? "-" : T.value.body[r] / C.value * 100]]), o = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(t), l = nt(o);
265
+ rt({ csvContent: l, title: e.value.style.chart.title.text || "vue-ui-rings" });
265
266
  });
266
267
  }
267
- const A = r(!1);
268
- function Be(t) {
268
+ const A = u(!1);
269
+ function De(t) {
269
270
  A.value = t, ee.value += 1;
270
271
  }
271
272
  function ke() {
@@ -274,12 +275,12 @@ const _t = ["id"], Tt = ["xmlns", "viewBox"], xt = ["width", "height"], Ot = ["i
274
275
  function Ce() {
275
276
  k.value.showTooltip = !k.value.showTooltip;
276
277
  }
277
- const D = r(!1);
278
+ const D = u(!1);
278
279
  function Y() {
279
280
  D.value = !D.value;
280
281
  }
281
282
  return Pe({
282
- getData: Ue,
283
+ getData: We,
283
284
  generatePdf: he,
284
285
  generateCsv: be,
285
286
  generateImage: ge,
@@ -293,11 +294,11 @@ const _t = ["id"], Tt = ["xmlns", "viewBox"], xt = ["width", "height"], Ot = ["i
293
294
  style: O(`font-family:${e.value.style.fontFamily};text-align:center;width:100%;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
294
295
  id: `rings_${w.value}`,
295
296
  onMouseleave: o[3] || (o[3] = (l) => {
296
- $.value = null, R.value = !1, i(re)(!1);
297
+ $.value = null, z.value = !1, i(ue)(!1);
297
298
  }),
298
- onMouseenter: o[4] || (o[4] = () => i(re)(!0))
299
+ onMouseenter: o[4] || (o[4] = () => i(ue)(!0))
299
300
  }, [
300
- e.value.userOptions.buttons.annotator ? (n(), N(kt, {
301
+ e.value.userOptions.buttons.annotator ? (n(), N(Ct, {
301
302
  key: 0,
302
303
  parent: S.value,
303
304
  backgroundColor: e.value.style.chart.backgroundColor,
@@ -305,7 +306,7 @@ const _t = ["id"], Tt = ["xmlns", "viewBox"], xt = ["width", "height"], Ot = ["i
305
306
  active: D.value,
306
307
  onClose: Y
307
308
  }, null, 8, ["parent", "backgroundColor", "color", "active"])) : m("", !0),
308
- Le.value ? (n(), v("div", {
309
+ Me.value ? (n(), v("div", {
309
310
  key: 1,
310
311
  ref_key: "noTitle",
311
312
  ref: ae,
@@ -318,7 +319,7 @@ const _t = ["id"], Tt = ["xmlns", "viewBox"], xt = ["width", "height"], Ot = ["i
318
319
  ref: te,
319
320
  style: "width:100%;background:transparent"
320
321
  }, [
321
- (n(), N(ct, {
322
+ (n(), N(dt, {
322
323
  key: `title_${se.value}`,
323
324
  config: {
324
325
  title: {
@@ -332,7 +333,7 @@ const _t = ["id"], Tt = ["xmlns", "viewBox"], xt = ["width", "height"], Ot = ["i
332
333
  }
333
334
  }, null, 8, ["config"]))
334
335
  ], 512)) : m("", !0),
335
- e.value.userOptions.show && z.value && (i(ie) || i(j)) ? (n(), N(pt, {
336
+ e.value.userOptions.show && V.value && (i(ie) || i(j)) ? (n(), N(ht, {
336
337
  ref_key: "details",
337
338
  ref: Fe,
338
339
  key: `user_options_${ee.value}`,
@@ -354,7 +355,7 @@ const _t = ["id"], Tt = ["xmlns", "viewBox"], xt = ["width", "height"], Ot = ["i
354
355
  position: e.value.userOptions.position,
355
356
  hasAnnotator: e.value.userOptions.buttons.annotator,
356
357
  isAnnotation: D.value,
357
- onToggleFullscreen: Be,
358
+ onToggleFullscreen: De,
358
359
  onGeneratePdf: i(he),
359
360
  onGenerateCsv: be,
360
361
  onGenerateImage: i(ge),
@@ -403,26 +404,28 @@ const _t = ["id"], Tt = ["xmlns", "viewBox"], xt = ["width", "height"], Ot = ["i
403
404
  t.$slots.optionFullscreen ? {
404
405
  name: "optionFullscreen",
405
406
  fn: g(({ toggleFullscreen: l, isFullscreen: a }) => [
406
- p(t.$slots, "optionFullscreen", M(V({ toggleFullscreen: l, isFullscreen: a })), void 0, !0)
407
+ p(t.$slots, "optionFullscreen", M(R({ toggleFullscreen: l, isFullscreen: a })), void 0, !0)
407
408
  ]),
408
409
  key: "5"
409
410
  } : void 0,
410
411
  t.$slots.optionAnnotator ? {
411
412
  name: "optionAnnotator",
412
413
  fn: g(({ toggleAnnotator: l, isAnnotator: a }) => [
413
- p(t.$slots, "optionAnnotator", M(V({ toggleAnnotator: l, isAnnotator: a })), void 0, !0)
414
+ p(t.$slots, "optionAnnotator", M(R({ toggleAnnotator: l, isAnnotator: a })), void 0, !0)
414
415
  ]),
415
416
  key: "6"
416
417
  } : void 0
417
418
  ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : m("", !0),
418
- z.value ? (n(), v("svg", {
419
+ V.value ? (n(), v("svg", {
419
420
  key: 4,
420
- xmlns: i(lt),
421
+ ref_key: "svgRef",
422
+ ref: Le,
423
+ xmlns: i(ot),
421
424
  class: L({ "vue-data-ui-fullscreen--on": A.value, "vue-data-ui-fulscreen--off": !A.value }),
422
425
  viewBox: `0 0 ${s.value.width <= 0 ? 10 : s.value.width} ${s.value.height <= 0 ? 10 : s.value.height}`,
423
426
  style: O(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
424
427
  }, [
425
- J(bt),
428
+ J(kt),
426
429
  t.$slots["chart-background"] ? (n(), v("foreignObject", {
427
430
  key: 0,
428
431
  x: 0,
@@ -434,7 +437,7 @@ const _t = ["id"], Tt = ["xmlns", "viewBox"], xt = ["width", "height"], Ot = ["i
434
437
  }
435
438
  }, [
436
439
  p(t.$slots, "chart-background", {}, void 0, !0)
437
- ], 8, xt)) : m("", !0),
440
+ ], 8, Nt)) : m("", !0),
438
441
  _("defs", null, [
439
442
  (n(!0), v(K, null, Q(d.value, (l, a) => (n(), v("radialGradient", {
440
443
  cx: "50%",
@@ -446,17 +449,17 @@ const _t = ["id"], Tt = ["xmlns", "viewBox"], xt = ["width", "height"], Ot = ["i
446
449
  }, [
447
450
  _("stop", {
448
451
  offset: "0%",
449
- "stop-color": i(ot)(i(at)(l.color, 0.05), 100 - e.value.style.chart.layout.rings.gradient.intensity)
450
- }, null, 8, Nt),
452
+ "stop-color": i(at)(i(st)(l.color, 0.05), 100 - e.value.style.chart.layout.rings.gradient.intensity)
453
+ }, null, 8, It),
451
454
  _("stop", {
452
455
  offset: "100%",
453
456
  "stop-color": l.color
454
- }, null, 8, Pt)
455
- ], 8, Ot))), 256))
457
+ }, null, 8, St)
458
+ ], 8, Pt))), 256))
456
459
  ]),
457
- t.$slots.pattern ? (n(), v("g", It, [
460
+ t.$slots.pattern ? (n(), v("g", At, [
458
461
  (n(!0), v(K, null, Q(d.value, (l) => (n(), v("defs", null, [
459
- p(t.$slots, "pattern", Xe({ ref_for: !0 }, { seriesIndex: l.absoluteIndex, patternId: `pattern_${w.value}_${l.absoluteIndex}` }), void 0, !0)
462
+ p(t.$slots, "pattern", qe({ ref_for: !0 }, { seriesIndex: l.absoluteIndex, patternId: `pattern_${w.value}_${l.absoluteIndex}` }), void 0, !0)
460
463
  ]))), 256))
461
464
  ])) : m("", !0),
462
465
  (n(!0), v(K, null, Q(d.value, (l, a) => (n(), v("g", null, [
@@ -472,7 +475,7 @@ const _t = ["id"], Tt = ["xmlns", "viewBox"], xt = ["width", "height"], Ot = ["i
472
475
  cy: a === 0 ? s.value.height / 2 : s.value.height / 2 + c.value * d.value[0].proportion / 2 - c.value * l.proportion / 2 - 2 * (a + 1),
473
476
  r: i(G)(c.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : c.value * l.proportion / 2 * 0.9),
474
477
  fill: e.value.style.chart.layout.rings.gradient.underlayerColor
475
- }, null, 14, St),
478
+ }, null, 14, Ft),
476
479
  _("circle", {
477
480
  class: L({
478
481
  "vue-ui-rings-item": x.value && e.value.useCssAnimation,
@@ -487,7 +490,7 @@ const _t = ["id"], Tt = ["xmlns", "viewBox"], xt = ["width", "height"], Ot = ["i
487
490
  cy: a === 0 ? s.value.height / 2 : s.value.height / 2 + c.value * d.value[0].proportion / 2 - c.value * l.proportion / 2 - 2 * (a + 1),
488
491
  r: i(G)(c.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : c.value * l.proportion / 2 * 0.9),
489
492
  fill: e.value.style.chart.layout.rings.gradient.show ? `url(#gradient_${w.value}_${a})` : l.color
490
- }, null, 14, At),
493
+ }, null, 14, Lt),
491
494
  t.$slots.pattern ? (n(), v("circle", {
492
495
  key: 0,
493
496
  class: L({
@@ -503,25 +506,25 @@ const _t = ["id"], Tt = ["xmlns", "viewBox"], xt = ["width", "height"], Ot = ["i
503
506
  cy: a === 0 ? s.value.height / 2 : s.value.height / 2 + c.value * d.value[0].proportion / 2 - c.value * l.proportion / 2 - 2 * (a + 1),
504
507
  r: i(G)(c.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : c.value * l.proportion / 2 * 0.9),
505
508
  fill: `url(#pattern_${w.value}_${l.absoluteIndex})`
506
- }, null, 14, Ft)) : m("", !0),
509
+ }, null, 14, Mt)) : m("", !0),
507
510
  _("circle", {
508
511
  stroke: "none",
509
512
  cx: s.value.width / 2,
510
513
  cy: a === 0 ? s.value.height / 2 : s.value.height / 2 + c.value * d.value[0].proportion / 2 - c.value * l.proportion / 2 - 2 * (a + 1),
511
514
  r: i(G)(c.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : c.value * l.proportion / 2 * 0.9),
512
515
  fill: "transparent",
513
- onMouseenter: (u) => We(a, l),
514
- onMouseleave: o[0] || (o[0] = (u) => {
515
- $.value = null, R.value = !1;
516
+ onMouseenter: (r) => Be(a, l),
517
+ onMouseleave: o[0] || (o[0] = (r) => {
518
+ $.value = null, z.value = !1;
516
519
  })
517
- }, null, 40, Lt)
520
+ }, null, 40, Rt)
518
521
  ]))), 256)),
519
522
  p(t.$slots, "svg", { svg: s.value }, void 0, !0)
520
- ], 14, Tt)) : m("", !0),
521
- t.$slots.watermark ? (n(), v("div", Mt, [
522
- p(t.$slots, "watermark", M(V({ isPrinting: i(de) || i(pe) })), void 0, !0)
523
+ ], 14, Ot)) : m("", !0),
524
+ t.$slots.watermark ? (n(), v("div", Vt, [
525
+ p(t.$slots, "watermark", M(R({ isPrinting: i(de) || i(pe) })), void 0, !0)
523
526
  ])) : m("", !0),
524
- z.value ? m("", !0) : (n(), N(yt, {
527
+ V.value ? m("", !0) : (n(), N(mt, {
525
528
  key: 6,
526
529
  config: {
527
530
  type: "rings",
@@ -537,15 +540,15 @@ const _t = ["id"], Tt = ["xmlns", "viewBox"], xt = ["width", "height"], Ot = ["i
537
540
  ref_key: "chartLegend",
538
541
  ref: le
539
542
  }, [
540
- e.value.style.chart.legend.show ? (n(), N(ft, {
541
- key: `legend_${ue.value}`,
543
+ e.value.style.chart.legend.show ? (n(), N(yt, {
544
+ key: `legend_${re.value}`,
542
545
  legendSet: me.value,
543
- config: Re.value,
546
+ config: Ue.value,
544
547
  onClickMarker: o[1] || (o[1] = ({ legend: l }) => X(l.uid))
545
548
  }, we({
546
549
  item: g(({ legend: l, index: a }) => [
547
550
  _("div", {
548
- onClick: (u) => X(l.uid),
551
+ onClick: (r) => X(l.uid),
549
552
  style: O(`opacity:${f.value.includes(l.uid) ? 0.5 : 1}`)
550
553
  }, [
551
554
  $e(E(l.name) + ": " + E(i(xe)(
@@ -559,19 +562,19 @@ const _t = ["id"], Tt = ["xmlns", "viewBox"], xt = ["width", "height"], Ot = ["i
559
562
  }),
560
563
  { datapoint: l, seriesIndex: a }
561
564
  )) + " ", 1),
562
- f.value.includes(l.uid) ? (n(), v("span", Rt, " ( - % ) ")) : (n(), v("span", zt, " (" + E(isNaN(l.value / C.value) ? "-" : i(I)({
565
+ f.value.includes(l.uid) ? (n(), v("span", Wt, " ( - % ) ")) : (n(), v("span", Ut, " (" + E(isNaN(l.value / C.value) ? "-" : i(I)({
563
566
  v: l.value / C.value * 100,
564
567
  s: "%",
565
568
  r: e.value.style.chart.legend.roundingPercentage
566
569
  })) + ") ", 1))
567
- ], 12, Vt)
570
+ ], 12, zt)
568
571
  ]),
569
572
  _: 2
570
573
  }, [
571
574
  t.$slots.pattern ? {
572
575
  name: "legend-pattern",
573
576
  fn: g(({ legend: l, index: a }) => [
574
- J(wt, {
577
+ J($t, {
575
578
  shape: l.shape,
576
579
  radius: 30,
577
580
  stroke: "none",
@@ -594,8 +597,8 @@ const _t = ["id"], Tt = ["xmlns", "viewBox"], xt = ["width", "height"], Ot = ["i
594
597
  }, [
595
598
  p(t.$slots, "source", {}, void 0, !0)
596
599
  ], 512)) : m("", !0),
597
- J(ht, {
598
- show: k.value.showTooltip && R.value && f.value.length < b.dataset.length,
600
+ J(gt, {
601
+ show: k.value.showTooltip && z.value && f.value.length < b.dataset.length,
599
602
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
600
603
  color: e.value.style.chart.tooltip.color,
601
604
  borderRadius: e.value.style.chart.tooltip.borderRadius,
@@ -611,14 +614,14 @@ const _t = ["id"], Tt = ["xmlns", "viewBox"], xt = ["width", "height"], Ot = ["i
611
614
  isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function"
612
615
  }, {
613
616
  "tooltip-before": g(() => [
614
- p(t.$slots, "tooltip-before", M(V({ ...q.value })), void 0, !0)
617
+ p(t.$slots, "tooltip-before", M(R({ ...q.value })), void 0, !0)
615
618
  ]),
616
619
  "tooltip-after": g(() => [
617
- p(t.$slots, "tooltip-after", M(V({ ...q.value })), void 0, !0)
620
+ p(t.$slots, "tooltip-after", M(R({ ...q.value })), void 0, !0)
618
621
  ]),
619
622
  _: 3
620
623
  }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
621
- z.value ? (n(), N(mt, {
624
+ V.value ? (n(), N(bt, {
622
625
  key: 8,
623
626
  hideDetails: "",
624
627
  config: {
@@ -635,7 +638,7 @@ const _t = ["id"], Tt = ["xmlns", "viewBox"], xt = ["width", "height"], Ot = ["i
635
638
  }
636
639
  }, {
637
640
  content: g(() => [
638
- (n(), N(gt, {
641
+ (n(), N(ft, {
639
642
  key: `table_${ne.value}`,
640
643
  colNames: B.value.colNames,
641
644
  head: B.value.head,
@@ -648,7 +651,7 @@ const _t = ["id"], Tt = ["xmlns", "viewBox"], xt = ["width", "height"], Ot = ["i
648
651
  _("div", {
649
652
  innerHTML: l,
650
653
  style: { display: "flex", "align-items": "center" }
651
- }, null, 8, Ut)
654
+ }, null, 8, Bt)
652
655
  ]),
653
656
  td: g(({ td: l }) => [
654
657
  $e(E(l.name || l), 1)
@@ -658,9 +661,9 @@ const _t = ["id"], Tt = ["xmlns", "viewBox"], xt = ["width", "height"], Ot = ["i
658
661
  ]),
659
662
  _: 1
660
663
  }, 8, ["config"])) : m("", !0)
661
- ], 46, _t));
664
+ ], 46, xt));
662
665
  }
663
- }, ol = /* @__PURE__ */ $t(Wt, [["__scopeId", "data-v-bbedb0f5"]]);
666
+ }, nl = /* @__PURE__ */ Tt(Dt, [["__scopeId", "data-v-f6a0352e"]]);
664
667
  export {
665
- ol as default
668
+ nl as default
666
669
  };