vue-data-ui 2.6.5 → 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 (201) hide show
  1. package/dist/{Arrow-DfGZcZu4.js → Arrow-BxUmDF04.js} +1 -1
  2. package/dist/{Arrow-CyeGXbbD.cjs → Arrow-PPbxds1Q.cjs} +1 -1
  3. package/dist/{BaseIcon-B5DvqSYe.cjs → BaseIcon-BmVwfJg2.cjs} +1 -1
  4. package/dist/{BaseIcon-BzuvxztF.js → BaseIcon-CDx9pxUG.js} +1 -1
  5. package/dist/{DataTable-zpYtivMM.cjs → DataTable-Cv_TVAas.cjs} +1 -1
  6. package/dist/{DataTable-BCCBpyhr.js → DataTable-TjJIVFlL.js} +2 -2
  7. package/dist/{Legend-CJkkmRNE.cjs → Legend-DunrYGuw.cjs} +1 -1
  8. package/dist/{Legend-CyJrN721.js → Legend-NKGwxkI7.js} +2 -2
  9. package/dist/{PackageVersion-Dv25_ZxF.cjs → PackageVersion-DJKkRuOD.cjs} +1 -1
  10. package/dist/{PackageVersion-PZr4BkQ5.js → PackageVersion-QRvxRYPv.js} +1 -1
  11. package/dist/{PenAndPaper-Cniu2YEX.js → PenAndPaper-CxC1lWGK.js} +3 -3
  12. package/dist/{PenAndPaper-Cx3_Liuv.cjs → PenAndPaper-MTTJ3Gd9.cjs} +1 -1
  13. package/dist/{Shape-BXTmpde5.js → Shape-58uyOuYc.js} +26 -23
  14. package/dist/Shape-D_1vUjCL.cjs +1 -0
  15. package/dist/{Slicer-DzKrIvL0.cjs → Slicer-BGEieXKn.cjs} +1 -1
  16. package/dist/{Slicer-D3tEQT9Z.js → Slicer-C7ormJRw.js} +2 -2
  17. package/dist/{Title-CXBc1TH6.js → Title-BI8etrRU.js} +1 -1
  18. package/dist/{Title-DdUtciJN.cjs → Title-Dk92HYMu.cjs} +1 -1
  19. package/dist/Tooltip-ClMeqejQ.cjs +1 -0
  20. package/dist/{Tooltip-C9lPh5bN.js → Tooltip-Cxc8c50d.js} +23 -20
  21. package/dist/{index-DLCyjPV0.js → index-9EeNZMz1.js} +6 -1
  22. package/dist/index-DEnRHTzk.cjs +9 -0
  23. package/dist/style.css +1 -1
  24. package/dist/types/vue-data-ui.d.cts +89 -62
  25. package/dist/types/vue-data-ui.d.ts +89 -62
  26. package/dist/useChartAccessibility-BWojgys7.js +13 -0
  27. package/dist/useChartAccessibility-Cm7nkzTG.cjs +1 -0
  28. package/dist/{useNestedProp-BdTohsDJ.cjs → useNestedProp-BNT60LxO.cjs} +1 -1
  29. package/dist/{useNestedProp-q86V3_LA.js → useNestedProp-df_bKQEI.js} +1 -1
  30. package/dist/{usePrinter-CPqTP09H.cjs → usePrinter-dyVny55M.cjs} +1 -1
  31. package/dist/{usePrinter-CpHZjw3G.js → usePrinter-ngrh00Ym.js} +1 -1
  32. package/dist/{vue-data-ui-CR9Dof80.cjs → vue-data-ui-BYX-I7HQ.cjs} +1 -1
  33. package/dist/{vue-data-ui-CzqznXmA.js → vue-data-ui-CDD7JcMs.js} +61 -61
  34. package/dist/vue-data-ui.cjs +1 -1
  35. package/dist/vue-data-ui.js +1 -1
  36. package/dist/{vue-ui-3d-bar-DvHdA_uo.js → vue-ui-3d-bar-BArLjlrc.js} +171 -168
  37. package/dist/vue-ui-3d-bar-DegdXf_S.cjs +19 -0
  38. package/dist/{vue-ui-accordion-FM16tlk7.cjs → vue-ui-accordion-D2qxHGzp.cjs} +1 -1
  39. package/dist/{vue-ui-accordion-DR2qjfsa.js → vue-ui-accordion-Qo8JxnIN.js} +3 -3
  40. package/dist/{vue-ui-age-pyramid-BoXxK9_W.js → vue-ui-age-pyramid-Biz02m7c.js} +85 -82
  41. package/dist/vue-ui-age-pyramid-kpaaJ2Gx.cjs +1 -0
  42. package/dist/{vue-ui-annotator-5tI8NuFh.cjs → vue-ui-annotator-By6XNYm0.cjs} +1 -1
  43. package/dist/{vue-ui-annotator-D4kCCpAK.js → vue-ui-annotator-MXs48Lua.js} +1 -1
  44. package/dist/{vue-ui-bullet-X3Xa_OZ6.js → vue-ui-bullet-CtBs_r3I.js} +92 -89
  45. package/dist/vue-ui-bullet-Dkz6vX0T.cjs +34 -0
  46. package/dist/vue-ui-candlestick-DiEUIuW8.cjs +2 -0
  47. package/dist/{vue-ui-candlestick-BTW5toA5.js → vue-ui-candlestick-gPztmuJE.js} +155 -152
  48. package/dist/{vue-ui-carousel-table-Cmnwv9Y3.cjs → vue-ui-carousel-table-CYeXP21y.cjs} +1 -1
  49. package/dist/{vue-ui-carousel-table-D7s_SrJR.js → vue-ui-carousel-table-D9ckYNKZ.js} +4 -4
  50. package/dist/{vue-ui-chestnut-DN9EZShg.js → vue-ui-chestnut-DWjn-jcN.js} +186 -183
  51. package/dist/vue-ui-chestnut-oZtRERnV.cjs +6 -0
  52. package/dist/{vue-ui-circle-pack-ts3rurGX.js → vue-ui-circle-pack-Bz5yVvAM.js} +99 -96
  53. package/dist/vue-ui-circle-pack-DCJ6N00S.cjs +1 -0
  54. package/dist/{vue-ui-cursor-SW96fYT3.js → vue-ui-cursor-BrrVDy1u.js} +2 -2
  55. package/dist/{vue-ui-cursor-CpWkrHpR.cjs → vue-ui-cursor-DZhRygRy.cjs} +1 -1
  56. package/dist/{vue-ui-dashboard-BZcfgajg.js → vue-ui-dashboard-DEmGN8Js.js} +2 -2
  57. package/dist/{vue-ui-dashboard-Buh9xBz-.cjs → vue-ui-dashboard-o8Ju_cXW.cjs} +1 -1
  58. package/dist/{vue-ui-digits-rB78vJRR.cjs → vue-ui-digits-CgyYdrQ5.cjs} +1 -1
  59. package/dist/{vue-ui-digits-C00yOT24.js → vue-ui-digits-DbOrROu7.js} +2 -2
  60. package/dist/vue-ui-donut-9pWaRwf3.cjs +1 -0
  61. package/dist/{vue-ui-donut-BkGR2Q-_.js → vue-ui-donut-CP5uWglM.js} +158 -156
  62. package/dist/{vue-ui-donut-evolution-B7WrjiTO.js → vue-ui-donut-evolution-BAMD1wQ5.js} +133 -131
  63. package/dist/vue-ui-donut-evolution-Ci_gIrkO.cjs +1 -0
  64. package/dist/{vue-ui-dumbbell-gQadUH53.js → vue-ui-dumbbell-CFYd-Ypn.js} +125 -122
  65. package/dist/vue-ui-dumbbell-DUNYoZxT.cjs +9 -0
  66. package/dist/{vue-ui-flow-CqSTZbgP.js → vue-ui-flow-CdvGWFzv.js} +96 -93
  67. package/dist/vue-ui-flow-W89ofPB-.cjs +1 -0
  68. package/dist/{vue-ui-funnel-Jr9TMTsq.js → vue-ui-funnel-DYutKyoz.js} +88 -85
  69. package/dist/vue-ui-funnel-RvdVrhFu.cjs +1 -0
  70. package/dist/{vue-ui-galaxy-BrQ10tPo.js → vue-ui-galaxy-BCBRlYS1.js} +123 -120
  71. package/dist/vue-ui-galaxy-Djdx-ca8.cjs +1 -0
  72. package/dist/{vue-ui-gauge-DOMio6Mv.js → vue-ui-gauge-BNAAZt4F.js} +86 -83
  73. package/dist/vue-ui-gauge-BVVmf09x.cjs +1 -0
  74. package/dist/{vue-ui-gizmo-SKS1idHb.js → vue-ui-gizmo-BFQ_KgLX.js} +3 -3
  75. package/dist/{vue-ui-gizmo-C3NimqVM.cjs → vue-ui-gizmo-Ceh0oFY3.cjs} +1 -1
  76. package/dist/vue-ui-heatmap-CiZpI-tA.cjs +1 -0
  77. package/dist/{vue-ui-heatmap-l4vCjb6f.js → vue-ui-heatmap-Ct3qaBv7.js} +109 -106
  78. package/dist/vue-ui-history-plot-Ci8Y2EFg.cjs +1 -0
  79. package/dist/{vue-ui-history-plot-B05tJML1.js → vue-ui-history-plot-shn74MJ6.js} +130 -127
  80. package/dist/{vue-ui-kpi-DF4U5E1w.js → vue-ui-kpi-B_pV-2JJ.js} +3 -3
  81. package/dist/{vue-ui-kpi-DQJr571M.cjs → vue-ui-kpi-DfYrbxlX.cjs} +1 -1
  82. package/dist/{vue-ui-mini-loader-BMARnOW4.js → vue-ui-mini-loader-BFnWQs5p.js} +2 -2
  83. package/dist/{vue-ui-mini-loader-BZkVKkqn.cjs → vue-ui-mini-loader-LIqf62jk.cjs} +1 -1
  84. package/dist/vue-ui-molecule-D8YuYTKv.cjs +1 -0
  85. package/dist/{vue-ui-molecule-C1ycekVJ.js → vue-ui-molecule-DNz1m8XZ.js} +147 -144
  86. package/dist/{vue-ui-mood-radar-_Kd-Lhpm.js → vue-ui-mood-radar-DiYB_zhM.js} +97 -94
  87. package/dist/vue-ui-mood-radar-uvH7qUHy.cjs +1 -0
  88. package/dist/{vue-ui-nested-donuts-DIwRSn-O.js → vue-ui-nested-donuts-9hn-g4ir.js} +99 -96
  89. package/dist/vue-ui-nested-donuts-C7ikDjp7.cjs +17 -0
  90. package/dist/vue-ui-onion-5Rqvd4Fw.cjs +5 -0
  91. package/dist/{vue-ui-onion-Dqb0gwGl.js → vue-ui-onion-DCWfNTNu.js} +105 -102
  92. package/dist/{vue-ui-parallel-coordinate-plot-De-tYNNy.js → vue-ui-parallel-coordinate-plot-CaPFL9_1.js} +97 -94
  93. package/dist/vue-ui-parallel-coordinate-plot-tlgTbaNX.cjs +8 -0
  94. package/dist/vue-ui-quadrant-B0Sw5NGo.cjs +1 -0
  95. package/dist/{vue-ui-quadrant-BQ5maxJq.js → vue-ui-quadrant-BoQZ375K.js} +155 -153
  96. package/dist/vue-ui-quick-chart-D3zV1d7t.cjs +15 -0
  97. package/dist/{vue-ui-quick-chart-DF_510YT.js → vue-ui-quick-chart-vfMN8F1q.js} +164 -161
  98. package/dist/{vue-ui-radar-DDHd0AYs.js → vue-ui-radar-CAuu6wkh.js} +129 -127
  99. package/dist/vue-ui-radar-CNMJCAwo.cjs +1 -0
  100. package/dist/{vue-ui-rating-Chi3OOtp.js → vue-ui-rating-Bm0HZ3du.js} +2 -2
  101. package/dist/{vue-ui-rating-D9kQcY2a.cjs → vue-ui-rating-dsRDRL98.cjs} +1 -1
  102. package/dist/{vue-ui-relation-circle-CV1xQOok.js → vue-ui-relation-circle-5OZMN9jR.js} +127 -124
  103. package/dist/vue-ui-relation-circle-iD7BufNH.cjs +1 -0
  104. package/dist/{vue-ui-rings-D2ezwyae.js → vue-ui-rings-COefBaQT.js} +114 -112
  105. package/dist/vue-ui-rings-DC4WG4sK.cjs +2 -0
  106. package/dist/vue-ui-scatter-5ny76dmi.cjs +1 -0
  107. package/dist/{vue-ui-scatter-BxbUYPk1.js → vue-ui-scatter-DhO83TZZ.js} +157 -154
  108. package/dist/{vue-ui-screenshot-Bc7Lv1i8.cjs → vue-ui-screenshot-DABH_phE.cjs} +1 -1
  109. package/dist/{vue-ui-screenshot-cxDgcXJB.js → vue-ui-screenshot-brillPo5.js} +1 -1
  110. package/dist/{vue-ui-skeleton-D6ojufhb.js → vue-ui-skeleton-BmJiYGtE.js} +3 -3
  111. package/dist/{vue-ui-skeleton-DvdPnQbR.cjs → vue-ui-skeleton-_DN0U6W6.cjs} +1 -1
  112. package/dist/{vue-ui-smiley-DEJ6S-We.cjs → vue-ui-smiley-CW6714mb.cjs} +1 -1
  113. package/dist/{vue-ui-smiley-9nGRDSn7.js → vue-ui-smiley-D9NRimij.js} +2 -2
  114. package/dist/{vue-ui-spark-trend-DiNeAGXR.js → vue-ui-spark-trend-BKZj03CQ.js} +5 -5
  115. package/dist/{vue-ui-spark-trend-BosbwgVe.cjs → vue-ui-spark-trend-expbkxgR.cjs} +1 -1
  116. package/dist/{vue-ui-sparkbar-DNf_Majv.js → vue-ui-sparkbar-CYRORE5i.js} +4 -4
  117. package/dist/{vue-ui-sparkbar-DGFKrcg0.cjs → vue-ui-sparkbar-Cr9FtevP.cjs} +1 -1
  118. package/dist/vue-ui-sparkgauge-BHXFhvTv.cjs +1 -0
  119. package/dist/{vue-ui-sparkgauge-D89HjxSK.js → vue-ui-sparkgauge-JV4tYB7P.js} +56 -53
  120. package/dist/{vue-ui-sparkhistogram-CU1_P6AJ.js → vue-ui-sparkhistogram-DKINHX2q.js} +93 -90
  121. package/dist/vue-ui-sparkhistogram-T4a3DDck.cjs +1 -0
  122. package/dist/{vue-ui-sparkline-C2McLmh5.js → vue-ui-sparkline-CbRTHtig.js} +109 -106
  123. package/dist/vue-ui-sparkline-Dc6Sf3n8.cjs +1 -0
  124. package/dist/{vue-ui-sparkstackbar-Cu4aG9PB.js → vue-ui-sparkstackbar-6u9-2nG4.js} +59 -56
  125. package/dist/vue-ui-sparkstackbar-CV5SkdsP.cjs +1 -0
  126. package/dist/{vue-ui-stackbar-6m5CpvNM.js → vue-ui-stackbar-CUppObfj.js} +136 -133
  127. package/dist/vue-ui-stackbar-CXB-nd71.cjs +6 -0
  128. package/dist/vue-ui-strip-plot-6IXF_U6-.cjs +1 -0
  129. package/dist/{vue-ui-strip-plot-DlZ2Eez4.js → vue-ui-strip-plot-doaNZAW4.js} +127 -124
  130. package/dist/{vue-ui-table-U0_3I0fu.js → vue-ui-table-CZsNuDR5.js} +1 -1
  131. package/dist/{vue-ui-table-BjhcV9qB.cjs → vue-ui-table-S66UCskD.cjs} +1 -1
  132. package/dist/{vue-ui-table-heatmap-Bfqytiv5.cjs → vue-ui-table-heatmap-BU9UU15H.cjs} +1 -1
  133. package/dist/{vue-ui-table-heatmap-BrGkCaOG.js → vue-ui-table-heatmap-CjohHqDV.js} +4 -4
  134. package/dist/{vue-ui-table-sparkline-CXlnp8E3.cjs → vue-ui-table-sparkline-CHFFTD0a.cjs} +1 -1
  135. package/dist/{vue-ui-table-sparkline-C1wNBDqO.js → vue-ui-table-sparkline-ab2rwdKB.js} +5 -5
  136. package/dist/{vue-ui-thermometer-Bx2abW1B.js → vue-ui-thermometer-C72mHwUi.js} +84 -81
  137. package/dist/vue-ui-thermometer-Ccd6RGh8.cjs +1 -0
  138. package/dist/vue-ui-timer-C8Fn2B0b.cjs +64 -0
  139. package/dist/{vue-ui-timer-3UkgrtEj.js → vue-ui-timer-D-LNi6lz.js} +183 -180
  140. package/dist/{vue-ui-tiremarks-C_xuD4De.js → vue-ui-tiremarks-Bo8EWsJ8.js} +59 -56
  141. package/dist/vue-ui-tiremarks-SOzvMOz4.cjs +1 -0
  142. package/dist/vue-ui-treemap-BqTTQrVh.cjs +1 -0
  143. package/dist/{vue-ui-treemap-BjDSR72h.js → vue-ui-treemap-uj94elVB.js} +123 -120
  144. package/dist/{vue-ui-vertical-bar-DUhOoSNl.js → vue-ui-vertical-bar-BUTOw-DK.js} +108 -106
  145. package/dist/vue-ui-vertical-bar-C4Sxun4Q.cjs +4 -0
  146. package/dist/{vue-ui-waffle-Dpox5n5s.js → vue-ui-waffle-CTWA1frT.js} +107 -104
  147. package/dist/vue-ui-waffle-DYWGRKdT.cjs +1 -0
  148. package/dist/vue-ui-wheel-8K72ZKda.js +330 -0
  149. package/dist/vue-ui-wheel-Cz5-0klT.cjs +1 -0
  150. package/dist/{vue-ui-word-cloud-u5S86-Ft.js → vue-ui-word-cloud-CSwBPDB8.js} +97 -94
  151. package/dist/vue-ui-word-cloud-D39riLZb.cjs +1 -0
  152. package/dist/vue-ui-xy-BbWXjajH.cjs +3 -0
  153. package/dist/{vue-ui-xy-0nBQDwL2.js → vue-ui-xy-DpDKutd7.js} +65 -58
  154. package/dist/{vue-ui-xy-canvas-yQlThVu7.cjs → vue-ui-xy-canvas-BCj0SCqe.cjs} +2 -2
  155. package/dist/{vue-ui-xy-canvas-DI7LiD4U.js → vue-ui-xy-canvas-BQm9gah4.js} +82 -81
  156. package/package.json +1 -1
  157. package/dist/Shape-GAZUIBfN.cjs +0 -1
  158. package/dist/Tooltip-BlGVq6xj.cjs +0 -1
  159. package/dist/index-DSGAenF3.cjs +0 -9
  160. package/dist/vue-ui-3d-bar-vvpkf_bv.cjs +0 -19
  161. package/dist/vue-ui-age-pyramid-CMMnrI3R.cjs +0 -1
  162. package/dist/vue-ui-bullet-nXPlud-q.cjs +0 -34
  163. package/dist/vue-ui-candlestick-B6T0LhEG.cjs +0 -2
  164. package/dist/vue-ui-chestnut-D8Gq_i77.cjs +0 -6
  165. package/dist/vue-ui-circle-pack-DCz3OWlu.cjs +0 -1
  166. package/dist/vue-ui-donut-BpgK-I9o.cjs +0 -1
  167. package/dist/vue-ui-donut-evolution-BVJCDPQ2.cjs +0 -1
  168. package/dist/vue-ui-dumbbell-DRcemHVG.cjs +0 -9
  169. package/dist/vue-ui-flow-DdQsK5DR.cjs +0 -1
  170. package/dist/vue-ui-funnel-Bq4yoTfd.cjs +0 -1
  171. package/dist/vue-ui-galaxy-ia1UNlpc.cjs +0 -1
  172. package/dist/vue-ui-gauge-C3FbYOSi.cjs +0 -1
  173. package/dist/vue-ui-heatmap-BCau2Z3U.cjs +0 -1
  174. package/dist/vue-ui-history-plot-DL7VjOd0.cjs +0 -1
  175. package/dist/vue-ui-molecule-B5XDGmLx.cjs +0 -1
  176. package/dist/vue-ui-mood-radar-DyMCJKFb.cjs +0 -1
  177. package/dist/vue-ui-nested-donuts-B4Am-r6T.cjs +0 -17
  178. package/dist/vue-ui-onion-YeBdJrdx.cjs +0 -5
  179. package/dist/vue-ui-parallel-coordinate-plot-CoecETlm.cjs +0 -8
  180. package/dist/vue-ui-quadrant-Btzq3qNJ.cjs +0 -1
  181. package/dist/vue-ui-quick-chart-5cWjffLJ.cjs +0 -15
  182. package/dist/vue-ui-radar-t22bqFiQ.cjs +0 -1
  183. package/dist/vue-ui-relation-circle-CWgGPxDJ.cjs +0 -1
  184. package/dist/vue-ui-rings-CiLJkRwa.cjs +0 -2
  185. package/dist/vue-ui-scatter-B24gGA8q.cjs +0 -1
  186. package/dist/vue-ui-sparkgauge-DwK7dzdJ.cjs +0 -1
  187. package/dist/vue-ui-sparkhistogram-DKoI6_TT.cjs +0 -1
  188. package/dist/vue-ui-sparkline-Bp7GMRrA.cjs +0 -1
  189. package/dist/vue-ui-sparkstackbar-Dayxdcr7.cjs +0 -1
  190. package/dist/vue-ui-stackbar-C21xTVy9.cjs +0 -6
  191. package/dist/vue-ui-strip-plot-DAo8FMup.cjs +0 -1
  192. package/dist/vue-ui-thermometer-CBdAwYdC.cjs +0 -1
  193. package/dist/vue-ui-timer-CRDQbqJ_.cjs +0 -64
  194. package/dist/vue-ui-tiremarks-C78mfaBr.cjs +0 -1
  195. package/dist/vue-ui-treemap-CP__1pdb.cjs +0 -1
  196. package/dist/vue-ui-vertical-bar-DTB8r4LH.cjs +0 -4
  197. package/dist/vue-ui-waffle-CrVyCF7k.cjs +0 -1
  198. package/dist/vue-ui-wheel-DV2zgr4d.cjs +0 -1
  199. package/dist/vue-ui-wheel-ykD8OULJ.js +0 -319
  200. package/dist/vue-ui-word-cloud-DBkAo2uX.cjs +0 -1
  201. package/dist/vue-ui-xy-mEVVQr_U.cjs +0 -3
@@ -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-DLCyjPV0.js";
3
- import { t as it, u as vt } from "./useResponsive-BWapHhVH.js";
4
- import { _ as ct } from "./Title-CXBc1TH6.js";
5
- import { u as dt, U as pt } from "./usePrinter-CpHZjw3G.js";
6
- import { _ as ht } from "./Tooltip-C9lPh5bN.js";
7
- import { D as gt } from "./DataTable-BCCBpyhr.js";
8
- import { L as ft } from "./Legend-CyJrN721.js";
9
- import yt from "./vue-ui-skeleton-D6ojufhb.js";
10
- import mt from "./vue-ui-accordion-DR2qjfsa.js";
11
- import { u as Oe } from "./useNestedProp-q86V3_LA.js";
12
- import { _ as bt } from "./PackageVersion-PZr4BkQ5.js";
13
- import { P as kt } from "./PenAndPaper-Cniu2YEX.js";
14
- import { u as Ct } from "./useUserOptionState-BIvW1Kz7.js";
15
- import { _ as wt } from "./Shape-BXTmpde5.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,16 +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
- "data-cy-legend-item": "",
549
- onClick: (u) => X(l.uid),
551
+ onClick: (r) => X(l.uid),
550
552
  style: O(`opacity:${f.value.includes(l.uid) ? 0.5 : 1}`)
551
553
  }, [
552
554
  $e(E(l.name) + ": " + E(i(xe)(
@@ -560,19 +562,19 @@ const _t = ["id"], Tt = ["xmlns", "viewBox"], xt = ["width", "height"], Ot = ["i
560
562
  }),
561
563
  { datapoint: l, seriesIndex: a }
562
564
  )) + " ", 1),
563
- 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)({
564
566
  v: l.value / C.value * 100,
565
567
  s: "%",
566
568
  r: e.value.style.chart.legend.roundingPercentage
567
569
  })) + ") ", 1))
568
- ], 12, Vt)
570
+ ], 12, zt)
569
571
  ]),
570
572
  _: 2
571
573
  }, [
572
574
  t.$slots.pattern ? {
573
575
  name: "legend-pattern",
574
576
  fn: g(({ legend: l, index: a }) => [
575
- J(wt, {
577
+ J($t, {
576
578
  shape: l.shape,
577
579
  radius: 30,
578
580
  stroke: "none",
@@ -595,8 +597,8 @@ const _t = ["id"], Tt = ["xmlns", "viewBox"], xt = ["width", "height"], Ot = ["i
595
597
  }, [
596
598
  p(t.$slots, "source", {}, void 0, !0)
597
599
  ], 512)) : m("", !0),
598
- J(ht, {
599
- 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,
600
602
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
601
603
  color: e.value.style.chart.tooltip.color,
602
604
  borderRadius: e.value.style.chart.tooltip.borderRadius,
@@ -612,14 +614,14 @@ const _t = ["id"], Tt = ["xmlns", "viewBox"], xt = ["width", "height"], Ot = ["i
612
614
  isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function"
613
615
  }, {
614
616
  "tooltip-before": g(() => [
615
- 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)
616
618
  ]),
617
619
  "tooltip-after": g(() => [
618
- 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)
619
621
  ]),
620
622
  _: 3
621
623
  }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
622
- z.value ? (n(), N(mt, {
624
+ V.value ? (n(), N(bt, {
623
625
  key: 8,
624
626
  hideDetails: "",
625
627
  config: {
@@ -636,7 +638,7 @@ const _t = ["id"], Tt = ["xmlns", "viewBox"], xt = ["width", "height"], Ot = ["i
636
638
  }
637
639
  }, {
638
640
  content: g(() => [
639
- (n(), N(gt, {
641
+ (n(), N(ft, {
640
642
  key: `table_${ne.value}`,
641
643
  colNames: B.value.colNames,
642
644
  head: B.value.head,
@@ -649,7 +651,7 @@ const _t = ["id"], Tt = ["xmlns", "viewBox"], xt = ["width", "height"], Ot = ["i
649
651
  _("div", {
650
652
  innerHTML: l,
651
653
  style: { display: "flex", "align-items": "center" }
652
- }, null, 8, Ut)
654
+ }, null, 8, Bt)
653
655
  ]),
654
656
  td: g(({ td: l }) => [
655
657
  $e(E(l.name || l), 1)
@@ -659,9 +661,9 @@ const _t = ["id"], Tt = ["xmlns", "viewBox"], xt = ["width", "height"], Ot = ["i
659
661
  ]),
660
662
  _: 1
661
663
  }, 8, ["config"])) : m("", !0)
662
- ], 46, _t));
664
+ ], 46, xt));
663
665
  }
664
- }, ol = /* @__PURE__ */ $t(Wt, [["__scopeId", "data-v-8eabb6d8"]]);
666
+ }, nl = /* @__PURE__ */ Tt(Dt, [["__scopeId", "data-v-f6a0352e"]]);
665
667
  export {
666
- ol as default
668
+ nl as default
667
669
  };
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index-DEnRHTzk.cjs"),le=require("./useResponsive-YQYQrAZ_.cjs"),Ce=require("./Title-Dk92HYMu.cjs"),oe=require("./usePrinter-dyVny55M.cjs"),we=require("./Tooltip-ClMeqejQ.cjs"),$e=require("./DataTable-Cv_TVAas.cjs"),xe=require("./Legend-DunrYGuw.cjs"),Ne=require("./vue-ui-skeleton-_DN0U6W6.cjs"),Te=require("./vue-ui-accordion-D2qxHGzp.cjs"),ae=require("./useNestedProp-BNT60LxO.cjs"),Se=require("./PackageVersion-DJKkRuOD.cjs"),Be=require("./PenAndPaper-MTTJ3Gd9.cjs"),_e=require("./useUserOptionState-BgepsfED.cjs"),Pe=require("./Shape-D_1vUjCL.cjs"),Ve=require("./useChartAccessibility-Cm7nkzTG.cjs"),Le=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Ee=["id"],Oe=["xmlns","viewBox"],Ae=["width","height"],Ie=["id"],ze=["stop-color"],Fe=["stop-color"],Re={key:1},qe=["stroke","cx","cy","r","fill"],Me=["stroke","stroke-width","cx","cy","r","fill"],Ue=["stroke","stroke-width","cx","cy","r","fill"],De=["cx","cy","r","onMouseenter"],We={key:5,class:"vue-data-ui-watermark"},He=["onClick"],Ge={key:0},je={key:1},Xe=["innerHTML"],Ye={__name:"vue-ui-rings",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend"],setup(re,{expose:ne,emit:se}){const{vue_ui_rings:ue}=n.useConfig(),ie=e.useSlots(),p=re,b=e.ref(!1),$=e.computed(()=>!!p.dataset&&p.dataset.length),g=e.ref(n.createUid()),ce=e.ref(null),x=e.ref(!1),_=e.ref(""),m=e.ref(null),O=e.ref(0),k=e.ref(null),A=e.ref(null),I=e.ref(null),z=e.ref(null),F=e.ref(null),R=e.ref(0),q=e.ref(0),M=e.ref(0),t=e.computed({get:()=>W(),set:l=>l}),{userOptionsVisible:P,setUserOptionsVisibility:U,keepUserOptionState:D}=_e.useUserOptionState({config:t.value}),{svgRef:de}=Ve.useChartAccessibility({config:t.value.style.chart.title});function W(){const l=ae.useNestedProp({userConfig:p.config,defaultConfig:ue});return l.theme?{...ae.useNestedProp({userConfig:n.themes.vue_ui_rings[l.theme]||p.config,defaultConfig:l}),customPalette:n.themePalettes[l.theme]||n.palette}:l}e.watch(()=>p.config,l=>{t.value=W(),P.value=!t.value.userOptions.showOnChartHover,H(),R.value+=1,q.value+=1,M.value+=1,h.value.showTable=t.value.table.show,h.value.showTooltip=t.value.style.chart.tooltip.show},{deep:!0});const N=e.ref(null);e.onMounted(()=>{H()});function H(){if(n.objectIsEmpty(p.dataset)?n.error({componentName:"VueUiRings",type:"dataset"}):p.dataset.forEach((l,a)=>{l.values.length||n.error({componentName:"VueUiRings",type:"dataset"}),n.getMissingDatasetAttributes({datasetObject:l,requiredAttributes:["name","values"]}).forEach(o=>{n.error({componentName:"VueUiRings",type:"datasetSerieAttribute",property:o,index:a})})}),t.value.responsive){const l=le.throttle(()=>{const{width:a,height:o}=le.useResponsive({chart:k.value,title:t.value.style.chart.title.text?A.value:null,legend:t.value.style.chart.legend.show?I.value:null,source:z.value,noTitle:F.value});requestAnimationFrame(()=>{s.value.width=a,s.value.height=o})});N.value=new ResizeObserver(l),N.value.observe(k.value.parentNode)}setTimeout(()=>{b.value=!0},600)}e.onBeforeUnmount(()=>{N.value&&N.value.disconnect()});const{isPrinting:G,isImaging:j,generatePdf:X,generateImage:Y}=oe.usePrinter({elementId:`rings_${g.value}`,fileName:t.value.style.chart.title.text||"vue-ui-rings"}),ve=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),J=e.computed(()=>n.convertCustomPalette(t.value.customPalette)),h=e.ref({showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show}),s=e.ref({height:360,width:360}),pe=e.computed(()=>Math.min(s.value.height,s.value.width)),he=se,d=e.ref([]);function V(l){d.value.includes(l)?d.value=d.value.filter(a=>a!==l):d.value.push(l),he("selectLegend",c.value.map(a=>({name:a.name,color:a.color,value:a.value})))}const fe=e.computed(()=>Math.max(...T.value.filter(l=>!d.value.includes(l.uid)).map(({value:l})=>l)));function K(l){return l/fe.value}const T=e.computed(()=>p.dataset.map(({values:l,name:a,color:o=null},r)=>{const u=n.sanitizeArray(l).reduce((v,w)=>v+w,0);return{name:a,color:o||n.convertColorToHex(o)||J.value[r]||n.palette[r]||n.palette[r%n.palette.length],value:u,proportion:u/p.dataset.map(v=>(v.values||[]).reduce((w,ke)=>w+ke,0)).reduce((v,w)=>v+w,0),uid:n.createUid(),absoluteIndex:r}})),Q=e.computed(()=>T.value.map(l=>({...l,shape:"circle",opacity:d.value.includes(l.uid)?.5:1,segregate:()=>V(l.uid),isSegregated:d.value.includes(l.uid)})).toSorted((l,a)=>a.value-l.value)),ge=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":""})),f=e.computed(()=>T.value.filter(l=>!d.value.includes(l.uid)).map(({value:l})=>l).reduce((l,a)=>l+a,0)),c=e.computed(()=>T.value.filter(l=>!d.value.includes(l.uid)).map(({name:l,value:a,color:o=null,uid:r,absoluteIndex:u},v)=>({absoluteIndex:u,uid:r,name:l,color:o||n.convertColorToHex(o)||J.value[v]||n.palette[v]||n.palette[v%n.palette.length],value:a,proportion:K(a),percentage:a/f.value*100,strokeWidth:t.value.style.chart.layout.rings.strokeWidth*K(a)})).toSorted((l,a)=>a.value-l.value));function me(){return c.value.map(({name:l,color:a,value:o,absoluteValues:r,percentage:u})=>({name:l,color:a,value:o,absoluteValues:r,percentage:u}))}const i=e.computed(()=>pe.value-t.value.style.chart.layout.rings.strokeWidth*2),L=e.ref(null);function ye(l,a){if(d.value.length===p.dataset.length)return;L.value={datapoint:a,seriesIndex:l,series:c.value,config:t.value},m.value=l;const o=c.value[l],r=t.value.style.chart.tooltip.customFormat;if(n.isFunction(r)&&n.functionReturnsString(()=>r({seriesIndex:l,datapoint:a,series:c.value,config:t.value})))_.value=r({seriesIndex:l,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;">${o.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="${o.color}" />${ie.pattern?`<circle cx="30" cy="30" r="30" stroke="none" fill="url(#pattern_${g.value}_${a.absoluteIndex})" />`:""}</svg>`,t.value.style.chart.tooltip.showValue&&(u+=`<b>${n.applyDataLabel(t.value.style.chart.layout.labels.dataLabels.formatter,o.value,n.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:o.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.tooltip.roundingValue}),{datapoint:a,seriesIndex:l})}
2
+ </b>`),t.value.style.chart.tooltip.showPercentage&&(t.value.style.chart.tooltip.showValue?u+=`<span>(${n.dataLabel({v:o.value/f.value*100,s:"%",r:t.value.style.chart.tooltip.roundingPercentage})})</span></div>`:u+=`<b>${n.dataLabel({v:o.value/f.value*100,s:"%",r:t.value.style.chart.tooltip.roundingPercentage})}</b></div>`),_.value=u}x.value=!0}const y=e.computed(()=>{const l=c.value.map(o=>({name:o.name,color:o.color})),a=c.value.map(o=>o.value);return{head:l,body:a}}),S=e.computed(()=>{const l=[' <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>',n.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:f.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.table.td.roundingValue}),"100%"],a=y.value.head.map((u,v)=>[{color:u.color,name:u.name},n.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:y.value.body[v],s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.table.td.roundingValue}),isNaN(y.value.body[v]/f.value)?"-":(y.value.body[v]/f.value*100).toFixed(t.value.table.td.roundingPercentage)+"%"]),o={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint},r=[t.value.table.columnNames.series,t.value.table.columnNames.value,t.value.table.columnNames.percentage];return{head:l,body:a,config:o,colNames:r}});function Z(){e.nextTick(()=>{const l=y.value.head.map((r,u)=>[[r.name],[y.value.body[u]],[isNaN(y.value.body[u]/f.value)?"-":y.value.body[u]/f.value*100]]),a=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[""],["val"],["%"]]].concat(l),o=n.createCsvContent(a);n.downloadCsv({csvContent:o,title:t.value.style.chart.title.text||"vue-ui-rings"})})}const C=e.ref(!1);function be(l){C.value=l,O.value+=1}function ee(){h.value.showTable=!h.value.showTable}function te(){h.value.showTooltip=!h.value.showTooltip}const B=e.ref(!1);function E(){B.value=!B.value}return ne({getData:me,generatePdf:X,generateCsv:Z,generateImage:Y,toggleTable:ee,toggleTooltip:te,toggleAnnotator:E}),(l,a)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"ringsChart",ref:k,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_${g.value}`,onMouseleave:a[3]||(a[3]=o=>{m.value=null,x.value=!1,e.unref(U)(!1)}),onMouseenter:a[4]||(a[4]=()=>e.unref(U)(!0))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(Be.PenAndPaper,{key:0,parent:k.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:B.value,onClose:E},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),ve.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:F,class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},null,512)):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"chartTitle",ref:A,style:"width:100%;background:transparent"},[(e.openBlock(),e.createBlock(Ce._sfc_main,{key:`title_${R.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&&$.value&&(e.unref(D)||e.unref(P))?(e.openBlock(),e.createBlock(oe.UserOptions,{ref_key:"details",ref:ce,key:`user_options_${O.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(G),isImaging:e.unref(j),uid:g.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:h.value.showTooltip,isFullscreen:C.value,titles:{...t.value.userOptions.buttonTitles},chartElement:k.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:B.value,onToggleFullscreen:be,onGeneratePdf:e.unref(X),onGenerateCsv:Z,onGenerateImage:e.unref(Y),onToggleTable:ee,onToggleTooltip:te,onToggleAnnotator:E,style:e.normalizeStyle({visibility:e.unref(D)?e.unref(P)?"visible":"hidden":"visible"})},e.createSlots({_:2},[l.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,l.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,l.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:o,isFullscreen:r})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:o,isFullscreen:r})),void 0,!0)]),key:"5"}:void 0,l.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:o,isAnnotator:r})=>[e.renderSlot(l.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:o,isAnnotator:r})),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","style"])):e.createCommentVNode("",!0),$.value?(e.openBlock(),e.createElementBlock("svg",{key:4,ref_key:"svgRef",ref:de,xmlns:e.unref(n.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(Se._sfc_main),l.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:0,y:0,width:s.value.width<=0?10:s.value.width,height:s.value.height<=0?10:s.value.height,style:{pointerEvents:"none"}},[e.renderSlot(l.$slots,"chart-background",{},void 0,!0)],8,Ae)):e.createCommentVNode("",!0),e.createElementVNode("defs",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(o,r)=>(e.openBlock(),e.createElementBlock("radialGradient",{cx:"50%",cy:"30%",r:"50%",fx:"50%",fy:"50%",id:`gradient_${g.value}_${r}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(n.setOpacity)(e.unref(n.shiftHue)(o.color,.05),100-t.value.style.chart.layout.rings.gradient.intensity)},null,8,ze),e.createElementVNode("stop",{offset:"100%","stop-color":o.color},null,8,Fe)],8,Ie))),256))]),l.$slots.pattern?(e.openBlock(),e.createElementBlock("g",Re,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,o=>(e.openBlock(),e.createElementBlock("defs",null,[e.renderSlot(l.$slots,"pattern",e.mergeProps({ref_for:!0},{seriesIndex:o.absoluteIndex,patternId:`pattern_${g.value}_${o.absoluteIndex}`}),void 0,!0)]))),256))])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(o,r)=>(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!==r}),style:e.normalizeStyle(`animation-delay:${r*100}ms`),stroke:t.value.style.chart.layout.rings.stroke,cx:s.value.width/2,cy:r===0?s.value.height/2:s.value.height/2+i.value*c.value[0].proportion/2-i.value*o.proportion/2-2*(r+1),r:e.unref(n.checkNaN)(i.value*o.proportion/2*.9<=0?1e-4:i.value*o.proportion/2*.9),fill:t.value.style.chart.layout.rings.gradient.underlayerColor},null,14,qe),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!==r}),style:e.normalizeStyle(`animation-delay:${r*100}ms`),stroke:t.value.style.chart.layout.rings.stroke,"stroke-width":o.strokeWidth<.5?.5:o.strokeWidth,cx:s.value.width/2,cy:r===0?s.value.height/2:s.value.height/2+i.value*c.value[0].proportion/2-i.value*o.proportion/2-2*(r+1),r:e.unref(n.checkNaN)(i.value*o.proportion/2*.9<=0?1e-4:i.value*o.proportion/2*.9),fill:t.value.style.chart.layout.rings.gradient.show?`url(#gradient_${g.value}_${r})`:o.color},null,14,Me),l.$slots.pattern?(e.openBlock(),e.createElementBlock("circle",{key:0,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!==r}),style:e.normalizeStyle(`animation-delay:${r*100}ms`),stroke:t.value.style.chart.layout.rings.stroke,"stroke-width":o.strokeWidth<.5?.5:o.strokeWidth,cx:s.value.width/2,cy:r===0?s.value.height/2:s.value.height/2+i.value*c.value[0].proportion/2-i.value*o.proportion/2-2*(r+1),r:e.unref(n.checkNaN)(i.value*o.proportion/2*.9<=0?1e-4:i.value*o.proportion/2*.9),fill:`url(#pattern_${g.value}_${o.absoluteIndex})`},null,14,Ue)):e.createCommentVNode("",!0),e.createElementVNode("circle",{stroke:"none",cx:s.value.width/2,cy:r===0?s.value.height/2:s.value.height/2+i.value*c.value[0].proportion/2-i.value*o.proportion/2-2*(r+1),r:e.unref(n.checkNaN)(i.value*o.proportion/2*.9<=0?1e-4:i.value*o.proportion/2*.9),fill:"transparent",onMouseenter:u=>ye(r,o),onMouseleave:a[0]||(a[0]=u=>{m.value=null,x.value=!1})},null,40,De)]))),256)),e.renderSlot(l.$slots,"svg",{svg:s.value},void 0,!0)],14,Oe)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",We,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(G)||e.unref(j)})),void 0,!0)])):e.createCommentVNode("",!0),$.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Ne.default,{key:6,config:{type:"rings",style:{backgroundColor:t.value.style.chart.backgroundColor,rings:{color:"#CCCCCC"}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:I},[t.value.style.chart.legend.show?(e.openBlock(),e.createBlock(xe.Legend,{key:`legend_${M.value}`,legendSet:Q.value,config:ge.value,onClickMarker:a[1]||(a[1]=({legend:o})=>V(o.uid))},e.createSlots({item:e.withCtx(({legend:o,index:r})=>[e.createElementVNode("div",{onClick:u=>V(o.uid),style:e.normalizeStyle(`opacity:${d.value.includes(o.uid)?.5:1}`)},[e.createTextVNode(e.toDisplayString(o.name)+": "+e.toDisplayString(e.unref(n.applyDataLabel)(t.value.style.chart.layout.labels.dataLabels.formatter,o.value,e.unref(n.dataLabel)({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:o.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.legend.roundingValue}),{datapoint:o,seriesIndex:r}))+" ",1),d.value.includes(o.uid)?(e.openBlock(),e.createElementBlock("span",je," ( - % ) ")):(e.openBlock(),e.createElementBlock("span",Ge," ("+e.toDisplayString(isNaN(o.value/f.value)?"-":e.unref(n.dataLabel)({v:o.value/f.value*100,s:"%",r:t.value.style.chart.legend.roundingPercentage}))+") ",1))],12,He)]),_:2},[l.$slots.pattern?{name:"legend-pattern",fn:e.withCtx(({legend:o,index:r})=>[e.createVNode(Pe._sfc_main,{shape:o.shape,radius:30,stroke:"none",plot:{x:30,y:30},fill:`url(#pattern_${g.value}_${r})`},null,8,["shape","fill"])]),key:"0"}:void 0]),1032,["legendSet","config"])):e.renderSlot(l.$slots,"legend",{key:1,legend:Q.value},void 0,!0)],512),l.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:7,ref_key:"source",ref:z,dir:"auto"},[e.renderSlot(l.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createVNode(we._sfc_main,{show:h.value.showTooltip&&x.value&&d.value.length<p.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:k.value,content:_.value,isFullscreen:C.value,isCustom:t.value.style.chart.tooltip.customFormat&&typeof t.value.style.chart.tooltip.customFormat=="function"},{"tooltip-before":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...L.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(l.$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","isFullscreen","isCustom"]),$.value?(e.openBlock(),e.createBlock(Te.default,{key:8,hideDetails:"",config:{open:h.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($e.DataTable,{key:`table_${q.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]=o=>h.value.showTable=!1)},{th:e.withCtx(({th:o})=>[e.createElementVNode("div",{innerHTML:o,style:{display:"flex","align-items":"center"}},null,8,Xe)]),td:e.withCtx(({td:o})=>[e.createTextVNode(e.toDisplayString(o.name||o),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],46,Ee))}},Je=Le._export_sfc(Ye,[["__scopeId","data-v-f6a0352e"]]);exports.default=Je;