vue-data-ui 3.19.8 → 3.20.0

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 (329) hide show
  1. package/README.md +1 -1
  2. package/dist/{A11yDataTable-q2-8fSlJ.js → A11yDataTable-BCbtxMU6.js} +1 -1
  3. package/dist/{Arrow-Cj6W6Xbi.js → Arrow-D6j6ocXm.js} +1 -1
  4. package/dist/{BaseDraggableDialog-DUUu2E2Q.js → BaseDraggableDialog-4hDW-Rj2.js} +4 -4
  5. package/dist/{BaseIcon-DM1x8hQF.js → BaseIcon-DfLoHNUj.js} +3 -3
  6. package/dist/{BaseLegendToggle-CJTwLGXL.js → BaseLegendToggle-C_Db-y7s.js} +2 -2
  7. package/dist/{BaseScanner-C7dmAref.js → BaseScanner-Dr2a1Msy.js} +1 -1
  8. package/dist/{BaseZoomControls-BkajQ8q9.js → BaseZoomControls-CG7hI_1P.js} +3 -3
  9. package/dist/{ColorPicker-DTQeqKUV.js → ColorPicker-Bjwxnvfh.js} +4 -4
  10. package/dist/{DataTable-DmE8Oo4i.js → DataTable-B--IN22e.js} +3 -3
  11. package/dist/{Legend-Gg5Q4Clb.js → Legend-Cz2uQ5gs.js} +4 -4
  12. package/dist/{NonSvgPenAndPaper-tvWXeCsd.js → NonSvgPenAndPaper-gLNJ1Lmr.js} +28 -28
  13. package/dist/{PackageVersion-zJAUEmyB.js → PackageVersion-xcyrdRmY.js} +2 -2
  14. package/dist/{PenAndPaper-DNgm6y3l.js → PenAndPaper-DqrClVfb.js} +11 -11
  15. package/dist/{Shape-DEGOZ6GG.js → Shape-BPCJfphn.js} +1 -1
  16. package/dist/{Slicer-CPWGgGSp.js → Slicer-SHBj0VaV.js} +19 -19
  17. package/dist/{SlicerPreview-BU3ZeHjR.js → SlicerPreview-DdihbUSJ.js} +474 -361
  18. package/dist/{SparkTooltip-c2DL7gqD.js → SparkTooltip-CfE6yCad.js} +7 -7
  19. package/dist/{Title-__gWq2g6.js → Title-NWp4qB4K.js} +2 -2
  20. package/dist/{Tooltip-CuWEYGr3.js → Tooltip-BENq327o.js} +1 -1
  21. package/dist/{UserOptions-D7zR0tnR.js → UserOptions-C1NgoGu6.js} +5 -5
  22. package/dist/components/arrow.js +1 -1
  23. package/dist/components/vue-ui-3d-bar.js +1 -1
  24. package/dist/components/vue-ui-accordion.js +1 -1
  25. package/dist/components/vue-ui-age-pyramid.js +1 -1
  26. package/dist/components/vue-ui-annotator.js +1 -1
  27. package/dist/components/vue-ui-bullet.js +1 -1
  28. package/dist/components/vue-ui-bump.js +1 -1
  29. package/dist/components/vue-ui-candlestick.js +1 -1
  30. package/dist/components/vue-ui-carousel-table.js +1 -1
  31. package/dist/components/vue-ui-chestnut.js +1 -1
  32. package/dist/components/vue-ui-chord.js +1 -1
  33. package/dist/components/vue-ui-circle-pack.js +1 -1
  34. package/dist/components/vue-ui-cursor.js +1 -1
  35. package/dist/components/vue-ui-dag.js +1 -1
  36. package/dist/components/vue-ui-dashboard.js +1 -1
  37. package/dist/components/vue-ui-digits.js +1 -1
  38. package/dist/components/vue-ui-donut-evolution.js +1 -1
  39. package/dist/components/vue-ui-donut.js +1 -1
  40. package/dist/components/vue-ui-dumbbell.js +1 -1
  41. package/dist/components/vue-ui-flow.js +1 -1
  42. package/dist/components/vue-ui-funnel.js +1 -1
  43. package/dist/components/vue-ui-galaxy.js +1 -1
  44. package/dist/components/vue-ui-gauge.js +1 -1
  45. package/dist/components/vue-ui-geo.js +1 -1
  46. package/dist/components/vue-ui-gizmo.js +1 -1
  47. package/dist/components/vue-ui-heatmap.js +1 -1
  48. package/dist/components/vue-ui-history-plot.js +1 -1
  49. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  50. package/dist/components/vue-ui-icon.js +1 -1
  51. package/dist/components/vue-ui-kpi.js +1 -1
  52. package/dist/components/vue-ui-mini-loader.js +1 -1
  53. package/dist/components/vue-ui-molecule.js +1 -1
  54. package/dist/components/vue-ui-mood-radar.js +1 -1
  55. package/dist/components/vue-ui-nested-donuts.js +1 -1
  56. package/dist/components/vue-ui-onion.js +1 -1
  57. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  58. package/dist/components/vue-ui-pattern-seed.js +1 -1
  59. package/dist/components/vue-ui-pattern.js +1 -1
  60. package/dist/components/vue-ui-quadrant.js +1 -1
  61. package/dist/components/vue-ui-quick-chart.js +1 -1
  62. package/dist/components/vue-ui-radar.js +1 -1
  63. package/dist/components/vue-ui-rating.js +1 -1
  64. package/dist/components/vue-ui-relation-circle.js +1 -1
  65. package/dist/components/vue-ui-ridgeline.js +1 -1
  66. package/dist/components/vue-ui-rings.js +1 -1
  67. package/dist/components/vue-ui-scatter.js +1 -1
  68. package/dist/components/vue-ui-skeleton.js +1 -1
  69. package/dist/components/vue-ui-smiley.js +1 -1
  70. package/dist/components/vue-ui-spark-trend.js +1 -1
  71. package/dist/components/vue-ui-sparkbar.js +1 -1
  72. package/dist/components/vue-ui-sparkgauge.js +1 -1
  73. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  74. package/dist/components/vue-ui-sparkline.js +1 -1
  75. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  76. package/dist/components/vue-ui-stackbar.js +1 -1
  77. package/dist/components/vue-ui-stackline.js +1 -1
  78. package/dist/components/vue-ui-strip-plot.js +1 -1
  79. package/dist/components/vue-ui-table-heatmap.js +1 -1
  80. package/dist/components/vue-ui-table-sparkline.js +1 -1
  81. package/dist/components/vue-ui-table.js +1 -1
  82. package/dist/components/vue-ui-thermometer.js +1 -1
  83. package/dist/components/vue-ui-timer.js +1 -1
  84. package/dist/components/vue-ui-tiremarks.js +1 -1
  85. package/dist/components/vue-ui-treemap.js +1 -1
  86. package/dist/components/vue-ui-vertical-bar.js +1 -1
  87. package/dist/components/vue-ui-waffle.js +1 -1
  88. package/dist/components/vue-ui-wheel.js +1 -1
  89. package/dist/components/vue-ui-word-cloud.js +1 -1
  90. package/dist/components/vue-ui-world.js +1 -1
  91. package/dist/components/vue-ui-xy-canvas.js +1 -1
  92. package/dist/components/vue-ui-xy.js +1 -1
  93. package/dist/{dom-to-png-9WSt6hXe.js → dom-to-png-BYtB4BF3.js} +1 -1
  94. package/dist/exposedLib-CI8ji8G-.js +19 -0
  95. package/dist/{geoProjections-CQIkC70z.js → geoProjections-Czak6Jn1.js} +3 -4
  96. package/dist/{img-BjOr008R.js → img-1cKsci8e.js} +2 -2
  97. package/dist/{labelUtils-Cr97N8E1.js → labelUtils-CUctkYoA.js} +1 -1
  98. package/dist/{lib-BkiwukKO.js → lib-DUeYQsS0.js} +4 -1
  99. package/dist/{pdf-DSXSFUnK.js → pdf-D0eZ99cP.js} +1 -1
  100. package/dist/style.css +1 -1
  101. package/dist/types/vue-data-ui.d.ts +1557 -193
  102. package/dist/types/vue-ui-3d-bar.d.ts +16 -1
  103. package/dist/types/vue-ui-age-pyramid.d.ts +14 -1
  104. package/dist/types/vue-ui-annotator.d.ts +28 -6
  105. package/dist/types/vue-ui-bullet.d.ts +14 -1
  106. package/dist/types/vue-ui-bump.d.ts +16 -1
  107. package/dist/types/vue-ui-candlestick.d.ts +16 -3
  108. package/dist/types/vue-ui-carousel-table.d.ts +14 -1
  109. package/dist/types/vue-ui-chestnut.d.ts +20 -1
  110. package/dist/types/vue-ui-chord.d.ts +20 -1
  111. package/dist/types/vue-ui-circle-pack.d.ts +16 -1
  112. package/dist/types/vue-ui-dag.d.ts +22 -1
  113. package/dist/types/vue-ui-dashboard.d.ts +16 -1
  114. package/dist/types/vue-ui-donut-evolution.d.ts +16 -1
  115. package/dist/types/vue-ui-donut.d.ts +18 -1
  116. package/dist/types/vue-ui-dumbbell.d.ts +16 -1
  117. package/dist/types/vue-ui-flow.d.ts +14 -1
  118. package/dist/types/vue-ui-funnel.d.ts +14 -1
  119. package/dist/types/vue-ui-galaxy.d.ts +18 -1
  120. package/dist/types/vue-ui-gauge.d.ts +14 -1
  121. package/dist/types/vue-ui-geo.d.ts +14 -1
  122. package/dist/types/vue-ui-heatmap.d.ts +16 -1
  123. package/dist/types/vue-ui-history-plot.d.ts +18 -1
  124. package/dist/types/vue-ui-horizontal-bar.d.ts +18 -1
  125. package/dist/types/vue-ui-molecule.d.ts +16 -1
  126. package/dist/types/vue-ui-mood-radar.d.ts +14 -1
  127. package/dist/types/vue-ui-nested-donuts.d.ts +18 -1
  128. package/dist/types/vue-ui-onion.d.ts +16 -1
  129. package/dist/types/vue-ui-parallel-coordinate-plot.d.ts +18 -1
  130. package/dist/types/vue-ui-quadrant.d.ts +24 -1
  131. package/dist/types/vue-ui-quick-chart.d.ts +20 -1
  132. package/dist/types/vue-ui-radar.d.ts +16 -1
  133. package/dist/types/vue-ui-rating.d.ts +12 -1
  134. package/dist/types/vue-ui-relation-circle.d.ts +14 -1
  135. package/dist/types/vue-ui-ridgeline.d.ts +22 -1
  136. package/dist/types/vue-ui-rings.d.ts +16 -1
  137. package/dist/types/vue-ui-scatter.d.ts +16 -1
  138. package/dist/types/vue-ui-smiley.d.ts +22 -6
  139. package/dist/types/vue-ui-sparkbar.d.ts +14 -1
  140. package/dist/types/vue-ui-sparkhistogram.d.ts +14 -1
  141. package/dist/types/vue-ui-sparkline.d.ts +16 -1
  142. package/dist/types/vue-ui-sparkstackbar.d.ts +16 -1
  143. package/dist/types/vue-ui-stackbar.d.ts +22 -1
  144. package/dist/types/vue-ui-stackline.d.ts +22 -1
  145. package/dist/types/vue-ui-strip-plot.d.ts +16 -1
  146. package/dist/types/vue-ui-table-sparkline.d.ts +14 -1
  147. package/dist/types/vue-ui-table.d.ts +17 -4
  148. package/dist/types/vue-ui-thermometer.d.ts +14 -1
  149. package/dist/types/vue-ui-timer.d.ts +14 -1
  150. package/dist/types/vue-ui-tiremarks.d.ts +14 -1
  151. package/dist/types/vue-ui-treemap.d.ts +18 -1
  152. package/dist/types/vue-ui-waffle.d.ts +16 -1
  153. package/dist/types/vue-ui-wheel.d.ts +14 -1
  154. package/dist/types/vue-ui-word-cloud.d.ts +14 -1
  155. package/dist/types/vue-ui-world.d.ts +18 -1
  156. package/dist/types/vue-ui-xy-canvas.d.ts +18 -1
  157. package/dist/types/vue-ui-xy.d.ts +22 -1
  158. package/dist/{useAutoSizeLabelsInsideViewbox-dp-3Gg97.js → useAutoSizeLabelsInsideViewbox-BIVntRZp.js} +1 -1
  159. package/dist/{useConfig-ByaaSKhz.js → useConfig-DAyQk86L.js} +9 -1
  160. package/dist/{useNestedProp-Ck4hsrpu.js → useNestedProp-CNcoy38D.js} +2 -2
  161. package/dist/{useObjectBindings-BR1sGimd.js → useObjectBindings-BI7hP-BC.js} +53 -53
  162. package/dist/{usePrinter-X0yWOynH.js → usePrinter-C1Gqt_Sp.js} +2 -2
  163. package/dist/utils.js +4 -4
  164. package/dist/{vue-data-ui-Dv8MNDbS.js → vue-data-ui-qpQv-4uP.js} +69 -69
  165. package/dist/vue-data-ui.js +75 -75
  166. package/dist/{vue-ui-3d-bar-DVsF4qGd.js → vue-ui-3d-bar-C8cputoI.js} +312 -312
  167. package/dist/{vue-ui-accordion-BX9WL-QF.js → vue-ui-accordion-Dw4MHKVB.js} +6 -6
  168. package/dist/vue-ui-age-pyramid-Cv2Ndbb5.js +1238 -0
  169. package/dist/{vue-ui-annotator-Be3VpH8Z.js → vue-ui-annotator-DLPUAKlm.js} +66 -66
  170. package/dist/vue-ui-bullet-DLxmtMJ9.js +710 -0
  171. package/dist/{vue-ui-bump-C1w-a4ad.js → vue-ui-bump-DVaqtZbd.js} +260 -260
  172. package/dist/{vue-ui-candlestick-zO0Jmsen.js → vue-ui-candlestick-CkApimw1.js} +81 -81
  173. package/dist/vue-ui-carousel-table-CbfIBWl3.js +455 -0
  174. package/dist/vue-ui-chestnut-CQT4nCFL.js +2010 -0
  175. package/dist/vue-ui-chord-8IjSrg6f.js +1391 -0
  176. package/dist/{vue-ui-circle-pack-Dp5_ugXW.js → vue-ui-circle-pack-B1CpTtpw.js} +51 -51
  177. package/dist/{vue-ui-cursor-DBViygOD.js → vue-ui-cursor-NaTj5i2-.js} +6 -6
  178. package/dist/{vue-ui-dag-BA2vr2Ub.js → vue-ui-dag-DH4ocx0S.js} +46 -46
  179. package/dist/{vue-ui-dashboard-D11FCHnp.js → vue-ui-dashboard-Ckff1yim.js} +73 -73
  180. package/dist/{vue-ui-digits-CIXbRR97.js → vue-ui-digits-DwLlJqbW.js} +6 -6
  181. package/dist/vue-ui-donut-DQdIdwRU.js +2410 -0
  182. package/dist/vue-ui-donut-evolution-MfM5kK6w.js +1510 -0
  183. package/dist/vue-ui-dumbbell-B2T4vlK-.js +1530 -0
  184. package/dist/{vue-ui-flow-Dly7N0Nb.js → vue-ui-flow-CJh6f72m.js} +107 -107
  185. package/dist/vue-ui-funnel-C9gfXNCr.js +777 -0
  186. package/dist/vue-ui-galaxy-pBR_FESJ.js +1077 -0
  187. package/dist/vue-ui-gauge-CAemxCGl.js +920 -0
  188. package/dist/{vue-ui-geo-CV0FBeuB.js → vue-ui-geo-BDQqaukJ.js} +35 -35
  189. package/dist/{vue-ui-gizmo-5rdIvscj.js → vue-ui-gizmo-B1ppjqPj.js} +63 -63
  190. package/dist/{vue-ui-heatmap-kiQ6q3q4.js → vue-ui-heatmap-BiC9xp8L.js} +259 -259
  191. package/dist/vue-ui-history-plot-iAPjlOja.js +1554 -0
  192. package/dist/vue-ui-horizontal-bar-CcgClgLg.js +1681 -0
  193. package/dist/{vue-ui-kpi-Bz7QeCTV.js → vue-ui-kpi-CJ5oyYLS.js} +6 -6
  194. package/dist/{vue-ui-mini-loader-DDJUya9e.js → vue-ui-mini-loader-CyqBt2g4.js} +5 -5
  195. package/dist/vue-ui-molecule-Cg9ZHa6b.js +925 -0
  196. package/dist/{vue-ui-mood-radar-D0lanJ__.js → vue-ui-mood-radar-N8osOTFR.js} +36 -36
  197. package/dist/vue-ui-nested-donuts-CwH3wKgX.js +1487 -0
  198. package/dist/{vue-ui-onion-u9hGe4VA.js → vue-ui-onion-C56gFjO6.js} +296 -296
  199. package/dist/{vue-ui-parallel-coordinate-plot-BJ5OjYTH.js → vue-ui-parallel-coordinate-plot-C-jj819p.js} +203 -212
  200. package/dist/{vue-ui-pattern-seed-abRweCDE.js → vue-ui-pattern-seed-BB1honLm.js} +1 -1
  201. package/dist/{vue-ui-quadrant-BVFJ5Vur.js → vue-ui-quadrant-DYc9xZY3.js} +444 -444
  202. package/dist/vue-ui-quick-chart-BG7kK_-q.js +2469 -0
  203. package/dist/{vue-ui-radar-BsRGxgXN.js → vue-ui-radar-CgKog9Xw.js} +186 -183
  204. package/dist/{vue-ui-rating-D_QR_A3V.js → vue-ui-rating-BG4lf1z8.js} +41 -41
  205. package/dist/vue-ui-relation-circle-D-rUk-0P.js +924 -0
  206. package/dist/{vue-ui-ridgeline-BtNEP6ba.js → vue-ui-ridgeline-DPrlVJTW.js} +377 -377
  207. package/dist/{vue-ui-rings-Pj7yMeOV.js → vue-ui-rings-CIvvHHsF.js} +199 -196
  208. package/dist/vue-ui-scatter-CeBQJbGx.js +2413 -0
  209. package/dist/{vue-ui-skeleton-Cqv1KG4y.js → vue-ui-skeleton-BKoa_G6d.js} +44 -44
  210. package/dist/{vue-ui-smiley-rFdGxZK6.js → vue-ui-smiley-G89TxRU-.js} +14 -14
  211. package/dist/{vue-ui-spark-trend-eHleRq-z.js → vue-ui-spark-trend-DGOrPr9I.js} +121 -121
  212. package/dist/{vue-ui-sparkbar-BHJTG_on.js → vue-ui-sparkbar-BVumo-YD.js} +107 -107
  213. package/dist/{vue-ui-sparkgauge-DpAEwvLX.js → vue-ui-sparkgauge-BoCwdQcu.js} +56 -56
  214. package/dist/{vue-ui-sparkhistogram-BlMH_NJk.js → vue-ui-sparkhistogram-4qXY1LXW.js} +112 -112
  215. package/dist/vue-ui-sparkline-C0kzXrwI.js +1507 -0
  216. package/dist/{vue-ui-sparkstackbar-BI8zG-DG.js → vue-ui-sparkstackbar-DG7hz_KM.js} +137 -137
  217. package/dist/{vue-ui-stackbar-28FVVqVu.js → vue-ui-stackbar-Dnq4l5xs.js} +344 -341
  218. package/dist/vue-ui-stackline-CaNOHQYl.js +2398 -0
  219. package/dist/{vue-ui-strip-plot-DX36qFKk.js → vue-ui-strip-plot-D2CcJw_5.js} +79 -79
  220. package/dist/{vue-ui-table-DdZ_DkqT.js → vue-ui-table-NBQrkVnO.js} +84 -84
  221. package/dist/{vue-ui-table-heatmap-BFKyJTr1.js → vue-ui-table-heatmap-CCGjbSzQ.js} +22 -22
  222. package/dist/{vue-ui-table-sparkline-BSV1jn7r.js → vue-ui-table-sparkline-BZDkOEEl.js} +125 -125
  223. package/dist/vue-ui-thermometer-BXyHOQ7T.js +763 -0
  224. package/dist/{vue-ui-timer-BkdpZ-lw.js → vue-ui-timer-CcLK1wbi.js} +29 -29
  225. package/dist/{vue-ui-tiremarks-GC773Hw1.js → vue-ui-tiremarks-B6txvBg-.js} +25 -25
  226. package/dist/{vue-ui-treemap-C0dtbfbZ.js → vue-ui-treemap-O3SBpD3K.js} +241 -241
  227. package/dist/{vue-ui-waffle-BvzfNmJC.js → vue-ui-waffle-DN5zG3b0.js} +289 -289
  228. package/dist/{vue-ui-wheel-Dm9V8TAH.js → vue-ui-wheel-CxnJGXkX.js} +134 -134
  229. package/dist/{vue-ui-word-cloud-Ne_B9Elc.js → vue-ui-word-cloud-CM5yPCXb.js} +54 -54
  230. package/dist/{vue-ui-world-Bp38MZij.js → vue-ui-world-DCPgXKxh.js} +447 -447
  231. package/dist/{vue-ui-xy-canvas-B06Rit63.js → vue-ui-xy-canvas-BUPnRZ3C.js} +91 -90
  232. package/dist/vue-ui-xy-lfMIx0wK.js +4578 -0
  233. package/dist/{vue_ui_3d_bar-CXKqO5Ej.js → vue_ui_3d_bar-C4R7o-yX.js} +1 -1
  234. package/dist/{vue_ui_age_pyramid-BON8QI6X.js → vue_ui_age_pyramid-BY6c-oX_.js} +1 -1
  235. package/dist/{vue_ui_bullet-CE5sFT7u.js → vue_ui_bullet-ClzdLoOv.js} +1 -1
  236. package/dist/{vue_ui_bump-frnXaXul.js → vue_ui_bump-Vl-zYAtG.js} +1 -1
  237. package/dist/{vue_ui_candlestick-sY6UtOop.js → vue_ui_candlestick-J8jmJvxP.js} +1 -1
  238. package/dist/{vue_ui_chestnut-BiUZFv40.js → vue_ui_chestnut-D2oUhad6.js} +1 -1
  239. package/dist/{vue_ui_chord-DpyR_b9A.js → vue_ui_chord-DPfS1Umc.js} +1 -1
  240. package/dist/{vue_ui_circle_pack-FjH0ZQeb.js → vue_ui_circle_pack-DZC_rdfn.js} +1 -1
  241. package/dist/{vue_ui_dag-Ci_MOnvd.js → vue_ui_dag-TsJ_azQq.js} +1 -1
  242. package/dist/{vue_ui_donut-Cx2_BGcQ.js → vue_ui_donut-BDGqG07h.js} +1 -1
  243. package/dist/{vue_ui_donut_evolution-CAJefrHs.js → vue_ui_donut_evolution-D1yAAIHr.js} +1 -1
  244. package/dist/{vue_ui_dumbbell-CClzAZTN.js → vue_ui_dumbbell-Bfe_jFyi.js} +1 -1
  245. package/dist/{vue_ui_flow-CCHO1Lo9.js → vue_ui_flow-BewZjjKG.js} +1 -1
  246. package/dist/{vue_ui_funnel-h8q2mRpC.js → vue_ui_funnel-_Og4EEkO.js} +1 -1
  247. package/dist/{vue_ui_galaxy-70vtkEBw.js → vue_ui_galaxy-Ig0cc1_h.js} +1 -1
  248. package/dist/{vue_ui_gauge-C17CgfzN.js → vue_ui_gauge-Cf1RZc9q.js} +1 -1
  249. package/dist/{vue_ui_geo-C0UbQ0Lc.js → vue_ui_geo-B8TODs-G.js} +1 -1
  250. package/dist/{vue_ui_heatmap-BqPP3J4M.js → vue_ui_heatmap-B2BBBSWG.js} +1 -1
  251. package/dist/{vue_ui_history_plot-C5nytDHh.js → vue_ui_history_plot-CuN63VEc.js} +1 -1
  252. package/dist/{vue_ui_horizontal_bar-Bqxorkc_.js → vue_ui_horizontal_bar-C4J4QzXf.js} +1 -1
  253. package/dist/{vue_ui_molecule-Dka4JBOp.js → vue_ui_molecule-CO9L59SF.js} +1 -1
  254. package/dist/{vue_ui_mood_radar-Dg4ijm53.js → vue_ui_mood_radar-BA6LAKhk.js} +1 -1
  255. package/dist/{vue_ui_nested_donuts-BY9cOoHF.js → vue_ui_nested_donuts-B8csIoVO.js} +1 -1
  256. package/dist/{vue_ui_onion-DTV9cup-.js → vue_ui_onion-1FTFFS46.js} +1 -1
  257. package/dist/{vue_ui_parallel_coordinate_plot-CNWrDh96.js → vue_ui_parallel_coordinate_plot-CBiOBira.js} +1 -1
  258. package/dist/{vue_ui_quadrant-3kjYvxpj.js → vue_ui_quadrant-CDSTKTJz.js} +1 -1
  259. package/dist/{vue_ui_quick_chart--VaYQuM4.js → vue_ui_quick_chart-mZBdml3Z.js} +1 -1
  260. package/dist/{vue_ui_radar-Dxx9GJmj.js → vue_ui_radar-jafTED5j.js} +1 -1
  261. package/dist/{vue_ui_relation_circle-Cr0I2SoU.js → vue_ui_relation_circle-D0p4mXmv.js} +1 -1
  262. package/dist/{vue_ui_ridgeline-CAtYca4b.js → vue_ui_ridgeline-VM8_mx4J.js} +1 -1
  263. package/dist/{vue_ui_rings-DXC1VeX5.js → vue_ui_rings-BVgD2aMn.js} +1 -1
  264. package/dist/{vue_ui_scatter-D2S2j0ap.js → vue_ui_scatter-I0POnicu.js} +1 -1
  265. package/dist/{vue_ui_spark_trend-BHMQ6_1p.js → vue_ui_spark_trend-DxVmpkmC.js} +1 -1
  266. package/dist/{vue_ui_sparkbar-BR6hbuDE.js → vue_ui_sparkbar-z6qO--Kf.js} +1 -1
  267. package/dist/{vue_ui_sparkgauge-xfPRHnMv.js → vue_ui_sparkgauge-BX1MS3bA.js} +1 -1
  268. package/dist/{vue_ui_sparkhistogram-CJRENZ1C.js → vue_ui_sparkhistogram-BRgvKUH6.js} +1 -1
  269. package/dist/{vue_ui_sparkline-wgk7yO7E.js → vue_ui_sparkline-auZhap6Y.js} +1 -1
  270. package/dist/{vue_ui_sparkstackbar-C5qZMmAl.js → vue_ui_sparkstackbar-BOjuQnZd.js} +1 -1
  271. package/dist/{vue_ui_stackbar-BW_C3MXw.js → vue_ui_stackbar-COOrQQdK.js} +1 -1
  272. package/dist/{vue_ui_stackline-DXxzibUd.js → vue_ui_stackline-DQqKPA9z.js} +1 -1
  273. package/dist/{vue_ui_strip_plot-8ZelqC5b.js → vue_ui_strip_plot-CtJe8_gq.js} +1 -1
  274. package/dist/{vue_ui_table_heatmap-BGUjA0WA.js → vue_ui_table_heatmap-w8vx5k6f.js} +1 -1
  275. package/dist/{vue_ui_table_sparkline-i0Q-N_we.js → vue_ui_table_sparkline-DAbkUrNz.js} +1 -1
  276. package/dist/{vue_ui_thermometer-CuN7Gpez.js → vue_ui_thermometer-DxgqWKlE.js} +1 -1
  277. package/dist/{vue_ui_tiremarks-A6UHC0c3.js → vue_ui_tiremarks-CdEPieWV.js} +1 -1
  278. package/dist/{vue_ui_treemap-BQp06q-g.js → vue_ui_treemap-DoEtkRN6.js} +1 -1
  279. package/dist/{vue_ui_waffle-C_Ev4l7B.js → vue_ui_waffle-DIARFc7g.js} +1 -1
  280. package/dist/{vue_ui_wheel-DdkTPXJU.js → vue_ui_wheel-DZ_nR--t.js} +1 -1
  281. package/dist/{vue_ui_word_cloud-B1PbsYPc.js → vue_ui_word_cloud-C-qIMNLu.js} +1 -1
  282. package/dist/{vue_ui_xy-BYPqfYyx.js → vue_ui_xy-BLUkWEAm.js} +1 -1
  283. package/dist/{vue_ui_xy_canvas-CMHGNrLf.js → vue_ui_xy_canvas-Cb6dg3eK.js} +1 -1
  284. package/package.json +6 -6
  285. package/dist/exposedLib-CwWU4zv-.js +0 -19
  286. package/dist/vue-ui-age-pyramid-Bu3bocZx.js +0 -1238
  287. package/dist/vue-ui-bullet-COSSZ7RU.js +0 -710
  288. package/dist/vue-ui-carousel-table-Q2uTIELA.js +0 -455
  289. package/dist/vue-ui-chestnut-DdNKhXkN.js +0 -2010
  290. package/dist/vue-ui-chord-CYzGIRtA.js +0 -1391
  291. package/dist/vue-ui-donut-BSanYbqb.js +0 -2408
  292. package/dist/vue-ui-donut-evolution-BVttNIzH.js +0 -1510
  293. package/dist/vue-ui-dumbbell-D-KcBLOF.js +0 -1527
  294. package/dist/vue-ui-funnel-COwXzAbB.js +0 -777
  295. package/dist/vue-ui-galaxy-Cg9VStNF.js +0 -1074
  296. package/dist/vue-ui-gauge-DHWCS6jR.js +0 -920
  297. package/dist/vue-ui-history-plot-CgPjudHv.js +0 -1563
  298. package/dist/vue-ui-horizontal-bar-CpQCmBQD.js +0 -1681
  299. package/dist/vue-ui-molecule-CvfwMxYY.js +0 -925
  300. package/dist/vue-ui-nested-donuts-C-LWBXmg.js +0 -1484
  301. package/dist/vue-ui-quick-chart-Cd5lGyph.js +0 -2471
  302. package/dist/vue-ui-relation-circle-MxYh6hSt.js +0 -924
  303. package/dist/vue-ui-scatter-DrS1nrwL.js +0 -2413
  304. package/dist/vue-ui-sparkline-BAWc3ROJ.js +0 -1507
  305. package/dist/vue-ui-stackline-DwtlEdOE.js +0 -2395
  306. package/dist/vue-ui-thermometer-Io8LdW1o.js +0 -763
  307. package/dist/vue-ui-xy-BCeOqJYR.js +0 -4216
  308. /package/dist/{RecursiveCircles-DPpLel6f.js → RecursiveCircles-D6aDPmoe.js} +0 -0
  309. /package/dist/{RecursiveLabels-DBMJf_to.js → RecursiveLabels-D9rfID6q.js} +0 -0
  310. /package/dist/{RecursiveLinks-D06dBL4a.js → RecursiveLinks-BygcpDiT.js} +0 -0
  311. /package/dist/{_plugin-vue_export-helper-Dq1MygBL.js → _plugin-vue_export-helper-B3ysoDQm.js} +0 -0
  312. /package/dist/{canvas-lib-DTaADQOK.js → canvas-lib-BOP_HS11.js} +0 -0
  313. /package/dist/{patternUtils-B7BWu5bV.js → patternUtils-CS7hn6at.js} +0 -0
  314. /package/dist/{rolldown-runtime-CAFD8bLK.js → rolldown-runtime-Dy4uBu1J.js} +0 -0
  315. /package/dist/{useChartAccessibility-Do37qcw2.js → useChartAccessibility-DYqac8yF.js} +0 -0
  316. /package/dist/{useFitSvgText-C-MEdAfe.js → useFitSvgText-CT3nmlaS.js} +0 -0
  317. /package/dist/{usePanZoom-B-4M_gmY.js → usePanZoom-CYU3B4T3.js} +0 -0
  318. /package/dist/{usePrefersMotion-BywLbIko.js → usePrefersMotion-BC-CsqR1.js} +0 -0
  319. /package/dist/{useResponsive-CrAInupd.js → useResponsive-BfnK0KxU.js} +0 -0
  320. /package/dist/{useStableElementSize-0I1IpHPl.js → useStableElementSize-C7KADDKj.js} +0 -0
  321. /package/dist/{useSvgExport-Dtu973wa.js → useSvgExport-SVIsDot8.js} +0 -0
  322. /package/dist/{useTableResponsive-DrM1xqII.js → useTableResponsive-B24Uwt2E.js} +0 -0
  323. /package/dist/{useThemeCheck-rFK9Zlb_.js → useThemeCheck-C43Tcqmk.js} +0 -0
  324. /package/dist/{useTimeLabelCollider-Dm55Emzg.js → useTimeLabelCollider-AEcY4Ioe.js} +0 -0
  325. /package/dist/{useTimeLabels-C0x7zUXP.js → useTimeLabels-BmBRv27Y.js} +0 -0
  326. /package/dist/{useUserOptionState-CjPJPTg2.js → useUserOptionState-DK-_1ddE.js} +0 -0
  327. /package/dist/{vClickOutside-CbX_bC9A.js → vClickOutside-DUrZWttG.js} +0 -0
  328. /package/dist/{vue-ui-pattern-Bj-IPFr2.js → vue-ui-pattern-DKozfnVn.js} +0 -0
  329. /package/dist/{vue_ui_vertical_bar-CJSD1FZS.js → vue_ui_vertical_bar-CP-MKz1j.js} +0 -0
@@ -0,0 +1,2410 @@
1
+ import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
+ import { $ as t, Bt as n, Ct as r, E as i, Et as a, G as o, H as s, J as c, Mt as l, Nt as u, Rt as ee, S as te, V as ne, X as d, Y as re, d as f, et as p, i as m, o as ie, ot as ae, p as oe, pt as se, t as ce, u as h, v as le, wt as g, x as ue, xt as de, y as fe } from "./lib-DUeYQsS0.js";
3
+ import { t as pe } from "./useConfig-DAyQk86L.js";
4
+ import { t as me } from "./usePrinter-C1Gqt_Sp.js";
5
+ import { n as he, t as ge } from "./BaseScanner-Dr2a1Msy.js";
6
+ import { t as _e } from "./useSvgExport-SVIsDot8.js";
7
+ import { t as ve } from "./useNestedProp-CNcoy38D.js";
8
+ import { t as ye } from "./useThemeCheck-C43Tcqmk.js";
9
+ import { t as be } from "./img-1cKsci8e.js";
10
+ import { n as xe } from "./Title-NWp4qB4K.js";
11
+ import { t as Se } from "./Shape-BPCJfphn.js";
12
+ import { t as Ce } from "./_plugin-vue_export-helper-B3ysoDQm.js";
13
+ import { c as we } from "./canvas-lib-BOP_HS11.js";
14
+ import { t as Te } from "./useResponsive-BfnK0KxU.js";
15
+ import { t as Ee } from "./BaseLegendToggle-C_Db-y7s.js";
16
+ import { t as De } from "./A11yDataTable-BCbtxMU6.js";
17
+ import { t as Oe } from "./useUserOptionState-DK-_1ddE.js";
18
+ import { t as ke } from "./useChartAccessibility-DYqac8yF.js";
19
+ import { n as Ae, t as je } from "./labelUtils-CUctkYoA.js";
20
+ import { t as Me } from "./vue_ui_donut-BDGqG07h.js";
21
+ import { t as Ne } from "./Legend-Cz2uQ5gs.js";
22
+ import { Fragment as _, Teleport as Pe, computed as v, createBlock as Fe, createCommentVNode as y, createElementBlock as b, createElementVNode as x, createSlots as Ie, createTextVNode as Le, createVNode as Re, defineAsyncComponent as ze, guardReactiveProps as S, mergeProps as Be, nextTick as Ve, normalizeClass as He, normalizeProps as C, normalizeStyle as w, onBeforeUnmount as Ue, onMounted as We, openBlock as T, ref as E, renderList as D, renderSlot as O, resolveDynamicComponent as Ge, shallowRef as Ke, toDisplayString as qe, toRefs as Je, unref as k, useSlots as Ye, vShow as Xe, watch as Ze, withCtx as A, withDirectives as Qe } from "vue";
23
+ //#region src/useSmallArcLayouts.js
24
+ function $e(e) {
25
+ let { FINAL_CONFIG: t, noGhostDonut: n, svg: r, padding: i, labels_inline_fontSize: a, minSize: o, findArcMidpoint: s, calcMarkerOffsetX: c, calcMarkerOffsetY: l, animatingIndex: u, segregated: ee, isSmallArc: te } = e;
26
+ return { smallArcLayoutsClassic: v(() => {
27
+ if (t.value.type !== "classic") return {};
28
+ let e = {}, ne = n.value || [];
29
+ if (!ne.length) return e;
30
+ let d = r.value.width / 2, re = r.value.height / 2, f = i.value.top + 16, p = r.value.height - i.value.bottom - 16, m = a.value, ie = m / 3, ae = m * 1.5, oe = d - (o.value + 6), se = d + (o.value + 6), ce = !!t.value.style.chart.layout.curvedMarkers;
31
+ function h({ midX: e, midY: t, bandX: n, bandY: r }) {
32
+ if (!ce) return `M ${e} ${t} L ${e} ${r} L ${n} ${r}`;
33
+ let i = n < d ? -1 : 1, a = n - e, o = r - t, s = Math.sqrt(a * a + o * o) || 1, c = e - d, l = t - re, u = Math.sqrt(c * c + l * l) || 1, ee = c / u, te = l / u, ne = u + 9;
34
+ function f({ x: e, y: t }) {
35
+ let n = e - d, r = t - re, i = Math.sqrt(n * n + r * r) || 1;
36
+ if (i >= ne) return {
37
+ x: e,
38
+ y: t
39
+ };
40
+ let a = ne / i;
41
+ return {
42
+ x: d + n * a,
43
+ y: re + r * a
44
+ };
45
+ }
46
+ if (s < 56) {
47
+ let i = a / s, c = -(o / s), l = i, u = (e + n) * .5, ne = (t + r) * .5, p = u + c, m = ne + l, ie = (p - d) * (p - d) + (m - re) * (m - re), ae = u - c, oe = ne - l;
48
+ (ae - d) * (ae - d) + (oe - re) * (oe - re) > ie && (c = -c, l = -l);
49
+ let se = .78, ce = e + a * se, h = t + o * se, le = Math.max(0, Math.min(1, (s - 18) / 44)), g = le * le * (3 - 2 * le), ue = 2.5 + g * 4, de = 1 + g * 2.5;
50
+ ue *= .9;
51
+ let fe = f({
52
+ x: ce + c * ue + ee * de,
53
+ y: h + l * ue + te * de
54
+ });
55
+ return `M ${e} ${t} Q ${fe.x} ${fe.y} ${n} ${r}`;
56
+ }
57
+ let p = s * .34;
58
+ p < 20 && (p = 20), p > 46 && (p = 46);
59
+ let m = s * .46;
60
+ m < 22 && (m = 22), m > 70 && (m = 70);
61
+ let ie = {
62
+ x: e + ee * p,
63
+ y: t + te * p
64
+ }, ae = d + i * Math.max(Math.abs(n - d), ne), oe = {
65
+ x: n - i * Math.min(m, Math.abs(ae - n) * .75),
66
+ y: r
67
+ }, se = f(ie), h = f(oe);
68
+ return `M ${e} ${t} C ${se.x} ${se.y} ${h.x} ${h.y} ${n} ${r}`;
69
+ }
70
+ function le(e) {
71
+ let t = String(e ?? "").split(/\n/g);
72
+ return ae + Math.max(0, t.length - 1) * (m * 1.2);
73
+ }
74
+ function g({ arc: e, index: t }) {
75
+ let { x: n, y: r } = s(e.path);
76
+ return {
77
+ arc: e,
78
+ index: t,
79
+ midX: n,
80
+ midY: r,
81
+ inlineMarkerX: c(e).x,
82
+ inlineMarkerY: l(e) - 3.5,
83
+ labelHeight: le(e.name)
84
+ };
85
+ }
86
+ function ue(e) {
87
+ let { arc: t } = e, n = t.seriesIndex ?? 0;
88
+ return u.value === n || ee.value.includes(n) ? !1 : te(t, n);
89
+ }
90
+ function de(e) {
91
+ let t = e.inlineMarkerY < re, n = e.inlineMarkerX < d;
92
+ return t && n ? "TL" : t && !n ? "TR" : !t && n ? "BL" : "BR";
93
+ }
94
+ function fe(e, t) {
95
+ if (t.startsWith("T")) {
96
+ e.sort((e, t) => e.inlineMarkerY - t.inlineMarkerY || e.index - t.index);
97
+ return;
98
+ }
99
+ e.sort((e, t) => t.inlineMarkerY - e.inlineMarkerY || e.index - t.index);
100
+ }
101
+ function pe({ side: e, markerX: t, markerY: n, labelY: r, connectorPath: i }) {
102
+ return {
103
+ side: e,
104
+ labelX: e === "left" ? t - 8 : t + 8,
105
+ labelY: r + ie,
106
+ textAnchor: e === "left" ? "end" : "start",
107
+ markerX: t,
108
+ markerY: n,
109
+ connectorPath: i
110
+ };
111
+ }
112
+ function me({ candidateList: t, side: n, bandMarkerX: r, startY: i, direction: a }) {
113
+ let o = i;
114
+ t.forEach((t) => {
115
+ let { index: i, midX: s, midY: c, labelHeight: l } = t, u;
116
+ a === "down" ? (u = o, o += l) : (o -= l, u = o);
117
+ let ee = u, te = h({
118
+ midX: s,
119
+ midY: c,
120
+ bandX: r,
121
+ bandY: ee
122
+ });
123
+ e[i] = pe({
124
+ side: n,
125
+ markerX: r,
126
+ markerY: ee,
127
+ labelY: u,
128
+ connectorPath: te
129
+ });
130
+ });
131
+ }
132
+ let he = ne.map((e, t) => g({
133
+ arc: e,
134
+ index: t
135
+ })).filter(ue), ge = {
136
+ TL: [],
137
+ TR: [],
138
+ BL: [],
139
+ BR: []
140
+ };
141
+ return he.forEach((e) => {
142
+ ge[de(e)].push(e);
143
+ }), Object.keys(ge).forEach((e) => {
144
+ fe(ge[e], e);
145
+ }), me({
146
+ candidateList: ge.TL,
147
+ side: "left",
148
+ bandMarkerX: oe,
149
+ startY: f,
150
+ direction: "down"
151
+ }), me({
152
+ candidateList: ge.TR,
153
+ side: "right",
154
+ bandMarkerX: se,
155
+ startY: f,
156
+ direction: "down"
157
+ }), ge.BL.length > 1 && me({
158
+ candidateList: ge.BL,
159
+ side: "left",
160
+ bandMarkerX: oe,
161
+ startY: p,
162
+ direction: "up"
163
+ }), ge.BR.length > 1 && me({
164
+ candidateList: ge.BR,
165
+ side: "right",
166
+ bandMarkerX: se,
167
+ startY: p,
168
+ direction: "up"
169
+ }), e;
170
+ }) };
171
+ }
172
+ //#endregion
173
+ //#region src/components/vue-ui-donut.vue
174
+ var et = /* @__PURE__ */ e({ default: () => Sn }), tt = ["id"], nt = ["id"], rt = ["id"], it = { style: { position: "relative" } }, at = [
175
+ "xmlns",
176
+ "aria-describedby",
177
+ "viewBox"
178
+ ], ot = ["width", "height"], st = { key: 1 }, ct = ["id"], lt = ["stop-color"], ut = ["offset", "stop-color"], dt = ["offset", "stop-color"], ft = ["stop-color"], pt = { key: 2 }, mt = [
179
+ "id",
180
+ "cx",
181
+ "cy"
182
+ ], ht = ["stop-color", "stop-opacity"], gt = ["stop-color"], _t = ["id"], vt = ["id"], yt = ["id"], bt = ["flood-color"], xt = ["id"], St = ["flood-color"], Ct = [
183
+ "d",
184
+ "stroke",
185
+ "filter"
186
+ ], wt = [
187
+ "d",
188
+ "stroke",
189
+ "filter"
190
+ ], Tt = [
191
+ "cx",
192
+ "cy",
193
+ "r",
194
+ "fill",
195
+ "filter"
196
+ ], Et = { key: 6 }, Dt = ["stroke", "d"], Ot = [
197
+ "d",
198
+ "fill",
199
+ "stroke",
200
+ "stroke-width",
201
+ "filter"
202
+ ], kt = { key: 0 }, At = [
203
+ "d",
204
+ "fill",
205
+ "stroke",
206
+ "stroke-width",
207
+ "filter"
208
+ ], jt = { key: 0 }, Mt = ["stroke", "d"], Nt = { key: 0 }, Pt = [
209
+ "d",
210
+ "stroke",
211
+ "stroke-width",
212
+ "filter"
213
+ ], Ft = { key: 1 }, It = [
214
+ "d",
215
+ "fill",
216
+ "stroke",
217
+ "stroke-width",
218
+ "filter"
219
+ ], Lt = [
220
+ "d",
221
+ "fill",
222
+ "stroke",
223
+ "stroke-width",
224
+ "filter"
225
+ ], Rt = { key: 1 }, zt = [
226
+ "cx",
227
+ "cy",
228
+ "r",
229
+ "fill",
230
+ "stroke",
231
+ "stroke-width"
232
+ ], Bt = [
233
+ "cx",
234
+ "cy",
235
+ "r",
236
+ "fill",
237
+ "stroke",
238
+ "stroke-width"
239
+ ], Vt = { key: 0 }, Ht = [
240
+ "d",
241
+ "fill",
242
+ "stroke",
243
+ "stroke-width"
244
+ ], Ut = [
245
+ "cx",
246
+ "cy",
247
+ "r",
248
+ "stroke"
249
+ ], Wt = [
250
+ "cx",
251
+ "cy",
252
+ "r",
253
+ "fill"
254
+ ], Gt = [
255
+ "cx",
256
+ "cy",
257
+ "r"
258
+ ], Kt = { key: 0 }, qt = [
259
+ "d",
260
+ "stroke",
261
+ "fill",
262
+ "onMouseenter",
263
+ "onMouseleave",
264
+ "onClick"
265
+ ], Jt = { key: 1 }, Yt = [
266
+ "cx",
267
+ "cy",
268
+ "r"
269
+ ], Xt = [
270
+ "x",
271
+ "y",
272
+ "fill",
273
+ "font-size"
274
+ ], Zt = [
275
+ "x",
276
+ "y",
277
+ "fill",
278
+ "font-size"
279
+ ], Qt = [
280
+ "x",
281
+ "y",
282
+ "fill",
283
+ "font-size"
284
+ ], $t = [
285
+ "x",
286
+ "y",
287
+ "fill",
288
+ "font-size"
289
+ ], en = ["filter", "opacity"], tn = { key: 0 }, nn = ["x", "y"], rn = { key: 1 }, an = [
290
+ "cx",
291
+ "cy",
292
+ "fill",
293
+ "stroke",
294
+ "filter",
295
+ "onClick",
296
+ "onMouseenter",
297
+ "onMouseleave"
298
+ ], on = [
299
+ "text-anchor",
300
+ "x",
301
+ "y",
302
+ "onClick",
303
+ "onMouseenter",
304
+ "onMouseleave",
305
+ "innerHTML"
306
+ ], sn = [
307
+ "text-anchor",
308
+ "x",
309
+ "y",
310
+ "fill",
311
+ "font-size",
312
+ "onClick",
313
+ "onMouseenter",
314
+ "onMouseleave"
315
+ ], cn = [
316
+ "text-anchor",
317
+ "x",
318
+ "y",
319
+ "fill",
320
+ "font-size",
321
+ "onClick",
322
+ "onMouseenter",
323
+ "onMouseleave",
324
+ "innerHTML"
325
+ ], ln = [
326
+ "cx",
327
+ "cy",
328
+ "fill",
329
+ "stroke",
330
+ "filter",
331
+ "onClick",
332
+ "onMouseenter",
333
+ "onMouseleave"
334
+ ], un = [
335
+ "text-anchor",
336
+ "x",
337
+ "y",
338
+ "onClick",
339
+ "onMouseenter",
340
+ "onMouseleave",
341
+ "innerHTML"
342
+ ], dn = [
343
+ "text-anchor",
344
+ "x",
345
+ "y",
346
+ "fill",
347
+ "font-size",
348
+ "onClick",
349
+ "onMouseenter",
350
+ "onMouseleave"
351
+ ], fn = [
352
+ "text-anchor",
353
+ "x",
354
+ "y",
355
+ "fill",
356
+ "font-size",
357
+ "onClick",
358
+ "onMouseenter",
359
+ "onMouseleave",
360
+ "innerHTML"
361
+ ], pn = { key: 2 }, mn = [
362
+ "x",
363
+ "y",
364
+ "width"
365
+ ], hn = [
366
+ "x",
367
+ "y",
368
+ "width"
369
+ ], gn = {
370
+ key: 0,
371
+ style: {
372
+ position: "absolute",
373
+ top: "100%",
374
+ left: "0",
375
+ width: "100%"
376
+ },
377
+ "data-dom-to-png-ignore": "",
378
+ "aria-hidden": "true"
379
+ }, _n = {
380
+ key: 5,
381
+ class: "vue-data-ui-watermark"
382
+ }, vn = ["id"], yn = ["onClick"], bn = {
383
+ key: 8,
384
+ class: "vue-ui-donut-hollow"
385
+ }, xn = ["innerHTML"], Sn = /* @__PURE__ */ Ce({
386
+ __name: "vue-ui-donut",
387
+ props: {
388
+ config: {
389
+ type: Object,
390
+ default() {
391
+ return {};
392
+ }
393
+ },
394
+ dataset: {
395
+ type: Array,
396
+ default() {
397
+ return [];
398
+ }
399
+ }
400
+ },
401
+ emits: [
402
+ "selectLegend",
403
+ "selectDatapoint",
404
+ "copyAlt"
405
+ ],
406
+ setup(e, { expose: Ce, emit: et }) {
407
+ let Sn = ze(() => import("./Tooltip-BENq327o.js")), Cn = ze(() => import("./BaseIcon-DfLoHNUj.js").then((e) => e.n)), wn = ze(() => import("./vue-ui-accordion-Dw4MHKVB.js").then((e) => e.n)), Tn = ze(() => import("./DataTable-B--IN22e.js")), En = ze(() => import("./PenAndPaper-DqrClVfb.js").then((e) => e.t)), Dn = ze(() => import("./UserOptions-C1NgoGu6.js").then((e) => e.n)), On = ze(() => import("./PackageVersion-xcyrdRmY.js").then((e) => e.t)), kn = ze(() => import("./BaseDraggableDialog-4hDW-Rj2.js").then((e) => e.n)), { vue_ui_donut: An } = pe(), { isThemeValid: jn, warnInvalidTheme: Mn } = ye(), Nn = Ye(), j = e, Pn = v({
408
+ get() {
409
+ return !!j.dataset && j.dataset.length;
410
+ },
411
+ set(e) {
412
+ return e;
413
+ }
414
+ }), M = Ke(null), Fn = E(null), In = E(null), Ln = E(null), Rn = Ke(null), zn = Ke(null), Bn = Ke(null), Vn = Ke(null), Hn = Ke(null), Un = Ke(null), Wn = E(0), Gn = E(0), Kn = E(0), qn = E(!1), Jn = E(null), Yn = E(null), Xn = E(!1), Zn = E(!1), Qn = E(null), $n = E({
415
+ x: 0,
416
+ y: 0
417
+ }), er = E("pointer"), tr = E(!1), nr = v({
418
+ get: () => I.value.style.chart.layout.labels.percentage.fontSize,
419
+ set: (e) => e
420
+ }), N = v({
421
+ get: () => I.value.style.chart.layout.labels.name.fontSize,
422
+ set: (e) => e
423
+ }), rr = v({
424
+ get: () => I.value.style.chart.layout.labels.dataLabels.smallArcClusterFontSize,
425
+ set: (e) => e
426
+ }), ir = !1, ar = () => {
427
+ !I.value.autoSize || ir || (ir = !0, requestAnimationFrame(() => {
428
+ ir = !1;
429
+ let e = I.value, t = Fn.value, n = R.value;
430
+ if (!e.autoSize || !t || !n) return;
431
+ let [r, i, a, o] = n.getAttribute("viewBox").split(" ").map(Number), s = {
432
+ x: r,
433
+ y: i,
434
+ width: a,
435
+ height: o
436
+ }, c = [
437
+ {
438
+ selector: ".vue-data-ui-datalabel-value",
439
+ baseSize: e.style.chart.layout.labels.percentage.fontSize,
440
+ minSize: e.style.chart.layout.labels.percentage.minFontSize,
441
+ sizeRef: nr
442
+ },
443
+ {
444
+ selector: ".vue-data-ui-datalabel-name",
445
+ baseSize: e.style.chart.layout.labels.name.fontSize,
446
+ minSize: e.style.chart.layout.labels.name.minFontSize,
447
+ sizeRef: N
448
+ },
449
+ {
450
+ selector: ".vue-data-ui-datalabel-inline",
451
+ baseSize: e.style.chart.layout.labels.dataLabels.smallArcClusterFontSize,
452
+ minSize: e.style.chart.layout.labels.name.minFontSize,
453
+ sizeRef: rr
454
+ }
455
+ ];
456
+ c.map((e) => t.querySelectorAll(e.selector).length).reduce((e, t) => e + t, 0) !== 0 && c.forEach(({ selector: e, baseSize: n, minSize: r, sizeRef: i }) => {
457
+ t.querySelectorAll(e).forEach((e) => {
458
+ i.value = ie({
459
+ el: e,
460
+ bounds: s,
461
+ currentFontSize: n,
462
+ minFontSize: r,
463
+ attempts: 200,
464
+ padding: 1
465
+ });
466
+ });
467
+ });
468
+ }));
469
+ };
470
+ We(async () => {
471
+ qn.value = !0, cr(), requestAnimationFrame(ar);
472
+ });
473
+ let or;
474
+ We(() => {
475
+ M.value && (or = new ResizeObserver((e) => {
476
+ for (let t of e) {
477
+ let { width: e, height: n } = t.contentRect;
478
+ if (e > 0 && n > 0) {
479
+ ar();
480
+ break;
481
+ }
482
+ }
483
+ }), or.observe(M.value.parentElement));
484
+ }), Ue(() => {
485
+ or?.disconnect();
486
+ }), Ue(() => {
487
+ Bn.value && (Vn.value && Bn.value.unobserve(Vn.value), Bn.value.disconnect());
488
+ });
489
+ let sr = v(() => !!I.value.debug);
490
+ function cr() {
491
+ if (r(j.dataset) ? (d({
492
+ componentName: "VueUiDonut",
493
+ type: "dataset",
494
+ debug: sr.value
495
+ }), Pn.value = !1, _r.value = !0) : (j.dataset.forEach((e, t) => {
496
+ ae({
497
+ datasetObject: e,
498
+ requiredAttributes: ["name", "values"]
499
+ }).forEach((e) => {
500
+ d({
501
+ componentName: "VueUiDonut",
502
+ type: "datasetSerieAttribute",
503
+ property: e,
504
+ index: t,
505
+ debug: sr.value
506
+ }), Pn.value = !1, _r.value = !0;
507
+ });
508
+ }), j.dataset.forEach((e, t) => {
509
+ (!e.name || e.name === "") && d({
510
+ componentName: "VueUiDonut",
511
+ type: "datasetAttributeEmpty",
512
+ property: "name",
513
+ index: t,
514
+ debug: sr.value
515
+ });
516
+ })), r(j.dataset) || (_r.value = I.value.loading), I.value.responsive) {
517
+ let e = we(() => {
518
+ let { width: e, height: t } = Te({
519
+ chart: M.value,
520
+ title: I.value.style.chart.title.text ? Rn.value : null,
521
+ legend: I.value.style.chart.legend.show ? zn.value : null,
522
+ source: Hn.value,
523
+ noTitle: Un.value,
524
+ padding: I.value.autoSize ? void 0 : Or.value
525
+ });
526
+ requestAnimationFrame(() => {
527
+ B.value.width = e, B.value.height = t, ar();
528
+ });
529
+ });
530
+ Bn.value && (Vn.value && Bn.value.unobserve(Vn.value), Bn.value.disconnect()), Bn.value = new ResizeObserver(e), Vn.value = M.value.parentNode, Bn.value.observe(Vn.value);
531
+ }
532
+ }
533
+ let P = E(s()), lr = E(!1), ur = E(""), F = E(null), dr = E(0);
534
+ function fr() {
535
+ let e = ve({
536
+ userConfig: j.config,
537
+ defaultConfig: An
538
+ }), t = {}, n = e.theme;
539
+ if (!n) t = e;
540
+ else if (!jn.value(e)) Mn(e), t = e;
541
+ else {
542
+ let r = ve({
543
+ userConfig: Me[n] || j.config,
544
+ defaultConfig: e
545
+ });
546
+ t = {
547
+ ...ve({
548
+ userConfig: j.config,
549
+ defaultConfig: r
550
+ }),
551
+ customPalette: e.customPalette.length ? e.customPalette : ee[n] || a
552
+ };
553
+ }
554
+ return t;
555
+ }
556
+ let I = E(fr()), pr = v(() => I.value.userOptions.useCursorPointer), mr = v(() => n({
557
+ defaultConfig: {
558
+ useCssAnimation: !1,
559
+ table: { show: !1 },
560
+ startAnimation: { show: !1 },
561
+ userOptions: { show: !1 },
562
+ style: { chart: {
563
+ backgroundColor: "#99999930",
564
+ layout: { labels: {
565
+ dataLabels: { show: !1 },
566
+ hollow: {
567
+ average: { show: !1 },
568
+ total: { show: !1 }
569
+ },
570
+ value: { show: !1 }
571
+ } },
572
+ legend: {
573
+ backgroundColor: "transparent",
574
+ showValue: !1,
575
+ showPercentage: !1
576
+ },
577
+ title: {
578
+ color: "#1A1A1A",
579
+ subtitle: { color: "#5A5A5A" }
580
+ }
581
+ } }
582
+ },
583
+ userConfig: I.value.skeletonConfig ?? {}
584
+ })), { loading: hr, FINAL_DATASET: gr, manualLoading: _r, skeletonDataset: vr } = he({
585
+ ...Je(j),
586
+ FINAL_CONFIG: I,
587
+ prepareConfig: fr,
588
+ skeletonDataset: j.config?.skeletonDataset ?? [
589
+ {
590
+ name: "",
591
+ values: [3],
592
+ color: "#BABABA"
593
+ },
594
+ {
595
+ name: "",
596
+ values: [2],
597
+ color: "#AAAAAA"
598
+ },
599
+ {
600
+ name: "",
601
+ values: [1],
602
+ color: "#CACACA"
603
+ }
604
+ ],
605
+ skeletonConfig: n({
606
+ defaultConfig: I.value,
607
+ userConfig: mr.value
608
+ })
609
+ }), L = E(!0), yr = E(0), br = E(!1), xr = null;
610
+ function Sr(e = 1e3) {
611
+ return new Promise((t) => {
612
+ let n = performance.now();
613
+ function r(i) {
614
+ let a = i - n, o = Math.min(a / e, 1);
615
+ yr.value = re(o), o < 1 ? xr = requestAnimationFrame(r) : (yr.value = 1, xr = null, t());
616
+ }
617
+ xr !== null && cancelAnimationFrame(xr), yr.value = 0, xr = requestAnimationFrame(r);
618
+ });
619
+ }
620
+ Ze(() => hr.value, async (e) => {
621
+ if (e || br.value) return;
622
+ let t = gr.value === vr, n = I.value.startAnimation?.show;
623
+ !t && n ? (br.value = !0, await Sr(I.value.startAnimation.durationMs || 1e3)) : yr.value = 1, L.value = !1;
624
+ }, { immediate: !0 });
625
+ let { userOptionsVisible: Cr, setUserOptionsVisibility: wr, keepUserOptionState: Tr } = Oe({ config: I.value }), { svgRef: R } = ke({ config: I.value.style.chart.title });
626
+ function Er() {
627
+ wr(!0);
628
+ }
629
+ function Dr() {
630
+ wr(!1);
631
+ }
632
+ Ze(() => j.config, (e) => {
633
+ hr.value || (I.value = fr()), Cr.value = !I.value.userOptions.showOnChartHover, cr(), Wn.value += 1, Gn.value += 1, Kn.value += 1, z.value.dataLabels.show = I.value.style.chart.layout.labels.dataLabels.show, z.value.showTable = I.value.table.show, z.value.showTooltip = I.value.style.chart.tooltip.show, B.value.height = I.value.style.chart.height, B.value.width = I.value.style.chart.width;
634
+ }, { deep: !0 });
635
+ let Or = v(() => {
636
+ let { top: e, right: t, bottom: n, left: r } = I.value.style.chart.padding;
637
+ return {
638
+ css: `padding:${e}px ${t}px ${n}px ${r}px`,
639
+ top: e,
640
+ right: t,
641
+ bottom: n,
642
+ left: r
643
+ };
644
+ }), { isPrinting: kr, isImaging: Ar, generatePdf: jr, generateImage: Mr } = me({
645
+ elementId: `donut__${P.value}`,
646
+ fileName: I.value.style.chart.title.text || "vue-ui-donut",
647
+ options: I.value.userOptions.print
648
+ }), Nr = v(() => I.value.userOptions.show && !I.value.style.chart.title.text), Pr = v(() => ue(I.value.customPalette)), z = E({
649
+ dataLabels: { show: I.value.style.chart.layout.labels.dataLabels.show },
650
+ showTable: I.value.table.show,
651
+ showTooltip: I.value.style.chart.tooltip.show
652
+ });
653
+ Ze(I, () => {
654
+ z.value = {
655
+ dataLabels: { show: I.value.style.chart.layout.labels.dataLabels.show },
656
+ showTable: I.value.table.show,
657
+ showTooltip: I.value.style.chart.tooltip.show
658
+ };
659
+ }, { immediate: !0 });
660
+ let B = E({
661
+ height: I.value.style.chart.height,
662
+ width: I.value.style.chart.width
663
+ }), Fr = v(() => {
664
+ if (I.value.pie) return W.value;
665
+ let e = I.value.style.chart.layout.donut.strokeWidth / 512, t = Math.min(B.value.width, B.value.height) * e, n = t > W.value ? W.value : t;
666
+ return Math.max(n, 12 * (1 + e));
667
+ }), Ir = et, V = v(() => gr.value.sort((e, t) => {
668
+ let n = Array.isArray(e.values) ? e.values.reduce((e, t) => e + t, 0) : e.value ?? 0, r = Array.isArray(t.values) ? t.values.reduce((e, t) => e + t, 0) : t.value ?? 0;
669
+ return e.ghost && !t.ghost ? 1 : t.ghost && !e.ghost ? -1 : r - n;
670
+ }).map((e, t) => ({
671
+ name: e.name,
672
+ color: fe(e.color) || Pr.value[t] || a[t] || a[t % a.length],
673
+ value: le(e.values.reduce((e, t) => e + t, 0)),
674
+ absoluteValues: e.values,
675
+ comment: e.comment || "",
676
+ patternIndex: t,
677
+ seriesIndex: t,
678
+ ghost: !1,
679
+ pattern: `pattern_${P.value}_${t}`
680
+ })));
681
+ Ze(() => j.dataset, (e) => {
682
+ Array.isArray(e) && e.length > 0 && (_r.value = !1);
683
+ }, { immediate: !0 });
684
+ let H = Ke(V.value);
685
+ Ze(() => V.value, (e) => {
686
+ H.value = e, requestAnimationFrame(ar);
687
+ });
688
+ function Lr() {
689
+ return V.value.map((e) => ({
690
+ name: e.name,
691
+ color: e.color,
692
+ value: e.value
693
+ }));
694
+ }
695
+ let U = E([]), Rr = E(!1), zr = E(null);
696
+ function Br() {
697
+ Ir("selectLegend", Jr.value.map((e) => ({
698
+ name: e.name,
699
+ color: e.color,
700
+ value: e.value
701
+ })));
702
+ }
703
+ function Vr({ from: e, to: t, duration: n, onUpdate: r, onDone: i, easing: a = re }) {
704
+ let o = performance.now();
705
+ function s(c) {
706
+ let l = Math.min((c - o) / n, 1), u = a(l);
707
+ r(e + (t - e) * u, l), l < 1 ? requestAnimationFrame(s) : (r(t, 1), i && i());
708
+ }
709
+ requestAnimationFrame(s);
710
+ }
711
+ function Hr() {
712
+ U.value.length ? U.value = [] : Yr.value.forEach((e, t) => {
713
+ U.value.push(t);
714
+ }), Br();
715
+ }
716
+ function Ur(e) {
717
+ let t = V.value.find((t, n) => n === e), n = H.value.find((t, n) => n === e).value;
718
+ if (U.value.includes(e)) {
719
+ U.value = U.value.filter((t) => t !== e);
720
+ let r = t.value;
721
+ function i() {
722
+ H.value = H.value.map((t, n) => e === n ? {
723
+ ...t,
724
+ value: r
725
+ } : t), Br();
726
+ }
727
+ function a() {
728
+ Rr.value = !0, zr.value = e, Vr({
729
+ from: n,
730
+ to: r,
731
+ duration: I.value.serieToggleAnimation.durationMs,
732
+ onUpdate: (t, n) => {
733
+ H.value = H.value.map((n, r) => e === r ? {
734
+ ...n,
735
+ value: t
736
+ } : n), requestAnimationFrame(ar);
737
+ },
738
+ onDone: () => {
739
+ i(), Rr.value = !1, zr.value = null;
740
+ }
741
+ });
742
+ }
743
+ I.value.serieToggleAnimation.show && I.value.type === "classic" ? a() : (i(), requestAnimationFrame(ar));
744
+ } else if (U.value.length < V.value.length - 1) {
745
+ function t() {
746
+ U.value.push(e), H.value = H.value.map((t, n) => e === n ? {
747
+ ...t,
748
+ value: 0
749
+ } : t), Br();
750
+ }
751
+ function r() {
752
+ Rr.value = !0, zr.value = e, Vr({
753
+ from: n,
754
+ to: 0,
755
+ duration: I.value.serieToggleAnimation.durationMs,
756
+ onUpdate: (t, n) => {
757
+ H.value = H.value.map((n, r) => e === r ? {
758
+ ...n,
759
+ value: t
760
+ } : n), requestAnimationFrame(ar);
761
+ },
762
+ onDone: () => {
763
+ t(), requestAnimationFrame(ar), Rr.value = !1, zr.value = null;
764
+ }
765
+ });
766
+ }
767
+ I.value.serieToggleAnimation.show && I.value.type === "classic" ? r() : t();
768
+ }
769
+ }
770
+ function Wr(e) {
771
+ return V.value.length ? V.value.find((t) => t.name === e) || (I.value.debug && console.warn(`VueUiDonut - Series name not found "${e}"`), null) : (I.value.debug && console.warn("VueUiDonut - There are no series to show."), null);
772
+ }
773
+ function Gr(e) {
774
+ let t = Wr(e);
775
+ t !== null && U.value.includes(t.seriesIndex) && Ur(t.seriesIndex);
776
+ }
777
+ function Kr(e) {
778
+ let t = Wr(e);
779
+ t !== null && (U.value.includes(t.seriesIndex) || Ur(t.seriesIndex));
780
+ }
781
+ let qr = v(() => gr.value.reduce((e, t) => e + t.values.reduce((e, t) => e + t, 0), 0)), Jr = v(() => {
782
+ if (L.value && !hr.value) {
783
+ let e = yr.value, t = V.value.map((t) => ({
784
+ ...t,
785
+ value: t.value * e,
786
+ color: t.color,
787
+ ghost: !1
788
+ })), n = qr.value * (1 - e);
789
+ return n > 0 && t.push({
790
+ name: "__ghost__",
791
+ value: n,
792
+ color: "transparent",
793
+ ghost: !0
794
+ }), t;
795
+ } else return H.value.forEach((e) => {
796
+ if ([null, void 0].includes(e.values)) return {
797
+ ...e,
798
+ values: []
799
+ };
800
+ }), H.value.map((e, t) => ({
801
+ ...e,
802
+ seriesIndex: t
803
+ })).filter((e, t) => !U.value.includes(t));
804
+ }), Yr = v(() => gr.value.map((e, t) => {
805
+ let n = (e.values || []).reduce((e, t) => e + t, 0), r = n / gr.value.map((e) => (e.values || []).reduce((e, t) => e + t, 0)).reduce((e, t) => e + t, 0);
806
+ return {
807
+ name: e.name,
808
+ color: fe(e.color) || Pr.value[t] || a[t] || a[t % a.length],
809
+ value: n,
810
+ shape: "circle",
811
+ patternIndex: t,
812
+ proportion: r
813
+ };
814
+ }).map((e, t) => {
815
+ let n = m(I.value.style.chart.layout.labels.value.formatter, e.value, o({
816
+ p: I.value.style.chart.layout.labels.dataLabels.prefix,
817
+ v: e.value,
818
+ s: I.value.style.chart.layout.labels.dataLabels.suffix,
819
+ r: I.value.style.chart.legend.roundingValue
820
+ }), {
821
+ datapoint: e,
822
+ index: t
823
+ }), r = m(I.value.style.chart.layout.labels.percentage.formatter, oi(e), o({
824
+ v: oi(e),
825
+ s: "%",
826
+ r: I.value.style.chart.legend.roundingPercentage
827
+ })), i = xi({
828
+ val: n,
829
+ percentage: U.value.includes(t) ? `${bi(e.proportion * 100)}%` : r,
830
+ showVal: I.value.style.chart.legend.showValue,
831
+ showPercentage: I.value.style.chart.legend.showPercentage,
832
+ config: I.value.style.chart.legend
833
+ });
834
+ return {
835
+ ...e,
836
+ opacity: U.value.includes(t) ? .5 : 1,
837
+ segregate: () => !Rr.value && Ur(t),
838
+ isSegregated: U.value.includes(t),
839
+ display: `${e.name}${I.value.style.chart.legend.showPercentage || I.value.style.chart.legend.showValue ? ": " : ""}${i}`
840
+ };
841
+ })), Xr = v(() => ({
842
+ cy: "donut-div-legend",
843
+ backgroundColor: I.value.style.chart.legend.backgroundColor,
844
+ color: I.value.style.chart.legend.color,
845
+ fontSize: I.value.style.chart.legend.fontSize,
846
+ paddingBottom: 12,
847
+ fontWeight: I.value.style.chart.legend.bold ? "bold" : ""
848
+ })), W = v(() => {
849
+ let e = I.value.style.chart.layout.donut.radiusRatio, t = Math.max(.1, Math.min(.50001, e)), n = Math.min(B.value.width * t, B.value.height * t);
850
+ return Math.max(12, n);
851
+ }), G = v(() => de({ series: Jr.value }, B.value.width / 2, B.value.height / 2, W.value, W.value, 1.99999, 2, 1, 360, 105.25, Fr.value)), Zr = v(() => Math.abs(Jr.value.map((e) => e.value).reduce((e, t) => e + t, 0)) > 0), Qr = v(() => de({ series: [{
852
+ value: 1,
853
+ color: I.value.style.chart.layout.donut.emptyFill,
854
+ name: "_",
855
+ seriesIndex: 0,
856
+ patternIndex: -1,
857
+ ghost: !1,
858
+ absoluteValues: [1]
859
+ }] }, B.value.width / 2, B.value.height / 2, W.value, W.value, 1.99999, 2, 1, 360, 105.25, Fr.value)), K = v(() => G.value.filter((e) => !e.ghost)), q = v(() => {
860
+ let e = Math.max(...Jr.value.map((e) => e.value));
861
+ return i({
862
+ series: Jr.value.map((t) => t.value / e),
863
+ center: {
864
+ x: B.value.width / 2,
865
+ y: B.value.height / 2
866
+ },
867
+ maxRadius: Math.min(B.value.width, B.value.height) / 3,
868
+ hasGhost: L.value
869
+ });
870
+ });
871
+ function $r(e) {
872
+ return e.x > B.value.width / 2 + 6 ? "start" : e.x < B.value.width / 2 - 6 ? "end" : "middle";
873
+ }
874
+ function ei(e) {
875
+ return e.middlePoint.y > B.value.height / 2 ? g({
876
+ initX: e.middlePoint.x,
877
+ initY: e.middlePoint.y,
878
+ offset: 100,
879
+ centerX: B.value.width / 2,
880
+ centerY: B.value.height / 2
881
+ }).y : g({
882
+ initX: e.middlePoint.x,
883
+ initY: e.middlePoint.y,
884
+ offset: 0,
885
+ centerX: B.value.width / 2,
886
+ centerY: B.value.height / 2
887
+ }).y - 100;
888
+ }
889
+ function J(e) {
890
+ return e.proportion * 100 > I.value.style.chart.layout.labels.dataLabels.hideUnderValue;
891
+ }
892
+ function ti(e, t) {
893
+ let n = I.value.style.chart.layout.labels.dataLabels.hideUnderValue, r = I.value.style.chart.layout.labels.dataLabels.smallArcClusterThreshold, i = (ii.value[t] ?? e.proportion ?? 0) * 100;
894
+ return i > n && i <= r;
895
+ }
896
+ let { smallArcLayoutsClassic: Y } = $e({
897
+ FINAL_CONFIG: I,
898
+ noGhostDonut: K,
899
+ svg: B,
900
+ padding: Or,
901
+ labels_inline_fontSize: rr,
902
+ minSize: W,
903
+ findArcMidpoint: t,
904
+ calcMarkerOffsetX: h,
905
+ calcMarkerOffsetY: f,
906
+ animatingIndex: zr,
907
+ segregated: U,
908
+ isSmallArc: ti
909
+ });
910
+ function ni(e, t) {
911
+ let n = e.value / ri(t);
912
+ return isNaN(n) ? 0 : m(I.value.style.chart.layout.labels.percentage.formatter, n * 100, o({
913
+ v: n * 100,
914
+ s: "%",
915
+ r: I.value.style.chart.layout.labels.percentage.rounding
916
+ }), { datapoint: e });
917
+ }
918
+ function ri(e) {
919
+ return [...e].map((e) => e.value).reduce((e, t) => e + t, 0);
920
+ }
921
+ let X = v(() => Jr.value.map((e) => e.value).reduce((e, t) => e + t, 0)), ii = v(() => {
922
+ let e = V.value.reduce((e, t) => e + t.value, 0);
923
+ return e <= 0 ? [] : V.value.map((t) => t.value / e);
924
+ }), ai = v(() => X.value / Jr.value.length);
925
+ function oi(e) {
926
+ return Rr.value ? e.proportion * 100 : e.value / X.value * 100;
927
+ }
928
+ let si = E(null), ci = E(!1);
929
+ function Z({ datapoint: e, seriesIndex: t }) {
930
+ I.value.events.datapointLeave && I.value.events.datapointLeave({
931
+ datapoint: e,
932
+ seriesIndex: t
933
+ }), lr.value = !1, F.value = null, Qn.value = null, er.value = "pointer";
934
+ }
935
+ function Q({ datapoint: e, relativeIndex: t, seriesIndex: n, show: r = !1, triggerMode: i = "pointer" }) {
936
+ I.value.events.datapointEnter && I.value.events.datapointEnter({
937
+ datapoint: e,
938
+ seriesIndex: n
939
+ }), er.value = i, Qn.value = t, si.value = {
940
+ datapoint: e,
941
+ seriesIndex: n,
942
+ config: I.value,
943
+ series: V.value
944
+ }, lr.value = r, F.value = t;
945
+ let a = "", s = I.value.style.chart.tooltip.customFormat;
946
+ if (ci.value = !1, se(s)) try {
947
+ let t = s({
948
+ seriesIndex: n,
949
+ datapoint: e,
950
+ series: V.value,
951
+ config: I.value
952
+ });
953
+ typeof t == "string" && (ur.value = t, ci.value = !0);
954
+ } catch {
955
+ console.warn("Custom format cannot be applied."), ci.value = !1;
956
+ }
957
+ ci.value || (a += `<div style="width:100%;text-align:center;border-bottom:1px solid ${I.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${e.name}</div>`, a += `<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="${e.color}"/>${Nn.pattern ? `<circle cx="30" cy="30" r="30" stroke="none" fill="url(#pattern_${P.value}_${n})"/>` : ""}</svg>`, a += `<b>${xi({
958
+ showVal: I.value.style.chart.tooltip.showValue,
959
+ showPercentage: I.value.style.chart.tooltip.showPercentage,
960
+ val: `<span>${m(I.value.style.chart.layout.labels.value.formatter, e.value, o({
961
+ p: I.value.style.chart.layout.labels.dataLabels.prefix,
962
+ v: e.value,
963
+ s: I.value.style.chart.layout.labels.dataLabels.suffix,
964
+ r: I.value.style.chart.tooltip.roundingValue
965
+ }), {
966
+ datapoint: e,
967
+ relativeIndex: t,
968
+ seriesIndex: n
969
+ })}</span>`,
970
+ percentage: m(I.value.style.chart.layout.labels.percentage.formatter, e.proportion * 100, o({
971
+ v: e.proportion * 100,
972
+ s: "%",
973
+ r: I.value.style.chart.tooltip.roundingPercentage
974
+ }), {
975
+ datapoint: e,
976
+ relativeIndex: t,
977
+ seriesIndex: n
978
+ }),
979
+ config: I.value.style.chart.tooltip
980
+ })}</b></div>`, I.value.style.chart.comments.showInTooltip && e.comment && (a += `<div class="vue-data-ui-tooltip-comment" style="background:${e.color}20; padding: 6px; margin-bottom: 6px; margin-top:6px; border-left: 1px solid ${e.color}">${e.comment}</div>`), ur.value = `<div>${a}</div>`);
981
+ }
982
+ function li(e, t) {
983
+ let n = Y.value[t];
984
+ if (n) return {
985
+ textAnchor: n.textAnchor,
986
+ x: n.labelX,
987
+ y: n.labelY
988
+ };
989
+ let r = h(e, !0, 12);
990
+ return {
991
+ textAnchor: r.anchor,
992
+ x: r.x,
993
+ y: f(e)
994
+ };
995
+ }
996
+ function ui(e, t, n) {
997
+ let { textAnchor: r, x: i } = li(e, t), a = Si(e), o = `
998
+ <tspan
999
+ class="vue-data-ui-datalabel-inline"
1000
+ fill="${I.value.style.chart.layout.labels.percentage.color}"
1001
+ font-size="${n ? rr.value : nr.value}px"
1002
+ style="font-weight:${I.value.style.chart.layout.labels.percentage.bold ? "bold" : ""}"
1003
+ >${a}</tspan>
1004
+ `, s = String(e.name ?? "").split(/\n/g), c = "";
1005
+ return s.forEach((e, t) => {
1006
+ t === 0 ? c += `
1007
+ <tspan
1008
+ class="${n ? "vue-data-ui-datalabel-inline" : "vue-data-ui-datalabel-name"}"
1009
+ fill="${I.value.style.chart.layout.labels.name.color}"
1010
+ font-size="${n ? rr.value : N.value}px"
1011
+ style="font-weight:${I.value.style.chart.layout.labels.name.bold ? "bold" : ""}"
1012
+ >${e}</tspan>
1013
+ ` : c += `
1014
+ <tspan
1015
+ class="${n ? "vue-data-ui-datalabel-inline" : "vue-data-ui-datalabel-name"}"
1016
+ x="${i}"
1017
+ dy="${(n ? rr.value : N.value) * 1.2}"
1018
+ fill="${I.value.style.chart.layout.labels.name.color}"
1019
+ font-size="${n ? rr.value : N.value}px"
1020
+ style="font-weight:${I.value.style.chart.layout.labels.name.bold ? "bold" : ""}"
1021
+ >${e}</tspan>
1022
+ `;
1023
+ }), r === "end" ? `${I.value.style.chart.layout.labels.name.show ? c : ""}${o}` : `${o}${I.value.style.chart.layout.labels.name.show ? c : ""}`;
1024
+ }
1025
+ function di(e, t) {
1026
+ let n = q.value[t].middlePoint, r = $r(n), i = g({
1027
+ initX: n.x,
1028
+ initY: n.y,
1029
+ offset: 42,
1030
+ centerX: B.value.width / 2,
1031
+ centerY: B.value.height / 2
1032
+ }), a = i.x;
1033
+ i.y;
1034
+ let o = Si(e), s = `
1035
+ <tspan
1036
+ class="vue-data-ui-datalabel-value"
1037
+ fill="${I.value.style.chart.layout.labels.percentage.color}"
1038
+ font-size="${nr.value}px"
1039
+ style="font-weight:${I.value.style.chart.layout.labels.percentage.bold ? "bold" : "normal"}"
1040
+ >${o}</tspan>
1041
+ `, c = String(e.name ?? "").split(/\n/g), l = "";
1042
+ return c.forEach((e, t) => {
1043
+ t === 0 ? l += `
1044
+ <tspan
1045
+ class="vue-data-ui-datalabel-name"
1046
+ fill="${I.value.style.chart.layout.labels.name.color}"
1047
+ font-size="${N.value}px"
1048
+ style="font-weight:${I.value.style.chart.layout.labels.name.bold ? "bold" : "normal"}"
1049
+ >${e}</tspan>
1050
+ ` : l += `
1051
+ <tspan
1052
+ class="vue-data-ui-datalabel-name"
1053
+ x="${a}"
1054
+ dy="${N.value * 1.2}"
1055
+ fill="${I.value.style.chart.layout.labels.name.color}"
1056
+ font-size="${N.value}px"
1057
+ style="font-weight:${I.value.style.chart.layout.labels.name.bold ? "bold" : "normal"}"
1058
+ >${e}</tspan>
1059
+ `;
1060
+ }), r === "end" ? `${I.value.style.chart.layout.labels.name.show ? l : ""}${s}` : `${s}${I.value.style.chart.layout.labels.name.show ? l : ""}`;
1061
+ }
1062
+ function fi(e) {
1063
+ return I.value.useBlurOnHover && ![null, void 0].includes(F.value) && F.value !== e ? `url(#blur_${P.value})` : "";
1064
+ }
1065
+ function pi(e) {
1066
+ if (!Rr.value || zr.value === null || e.seriesIndex !== zr.value) return 1;
1067
+ let t = (e.proportion ?? 0) * 100, n = I.value.style.chart.layout.labels.dataLabels.hideUnderValue, r = I.value.style.chart.layout.labels.dataLabels.smallArcClusterThreshold + 2, i = n;
1068
+ return t >= r ? 1 : t <= i ? 0 : (t - i) / (r - i);
1069
+ }
1070
+ let mi = v(() => ({
1071
+ head: Jr.value.map((e) => ({
1072
+ name: e.name,
1073
+ color: e.color
1074
+ })),
1075
+ body: Jr.value.map((e) => e.value)
1076
+ }));
1077
+ function hi(e = null) {
1078
+ Ve(() => {
1079
+ let t = mi.value.head.map((e, t) => [
1080
+ [e.name],
1081
+ [mi.value.body[t]],
1082
+ [isNaN(mi.value.body[t] / X.value) ? "-" : mi.value.body[t] / X.value * 100]
1083
+ ]), n = te([
1084
+ [I.value.style.chart.title.text],
1085
+ [I.value.style.chart.title.subtitle.text],
1086
+ [
1087
+ [""],
1088
+ ["val"],
1089
+ ["%"]
1090
+ ]
1091
+ ].concat(t));
1092
+ e ? e(n) : c({
1093
+ csvContent: n,
1094
+ title: I.value.style.chart.title.text || "vue-ui-donut"
1095
+ });
1096
+ });
1097
+ }
1098
+ let gi = v(() => {
1099
+ let e = [
1100
+ " <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>",
1101
+ o({
1102
+ p: I.value.style.chart.layout.labels.dataLabels.prefix,
1103
+ v: X.value,
1104
+ s: I.value.style.chart.layout.labels.dataLabels.suffix,
1105
+ r: I.value.table.td.roundingValue
1106
+ }),
1107
+ "100%"
1108
+ ], t = mi.value.head.map((e, t) => [
1109
+ {
1110
+ color: e.color,
1111
+ name: e.name || "-"
1112
+ },
1113
+ mi.value.body[t],
1114
+ isNaN(mi.value.body[t] / X.value) ? "-" : (mi.value.body[t] / X.value * 100).toFixed(I.value.table.td.roundingPercentage) + "%"
1115
+ ]), n = t.map((e) => e.map((e, t) => t === 0 ? e.name : e)), r = {
1116
+ th: {
1117
+ backgroundColor: I.value.table.th.backgroundColor,
1118
+ color: I.value.table.th.color,
1119
+ outline: I.value.table.th.outline
1120
+ },
1121
+ td: {
1122
+ backgroundColor: I.value.table.td.backgroundColor,
1123
+ color: I.value.table.td.color,
1124
+ outline: I.value.table.td.outline
1125
+ },
1126
+ breakpoint: I.value.table.responsiveBreakpoint
1127
+ };
1128
+ return {
1129
+ colNames: [
1130
+ I.value.table.columnNames.series,
1131
+ I.value.table.columnNames.value,
1132
+ I.value.table.columnNames.percentage
1133
+ ],
1134
+ head: e,
1135
+ body: t,
1136
+ a11yBody: n,
1137
+ config: r
1138
+ };
1139
+ }), _i = E(!1);
1140
+ function vi(e) {
1141
+ _i.value = e, dr.value += 1;
1142
+ }
1143
+ let yi = v(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent));
1144
+ function bi(e) {
1145
+ return Ae({
1146
+ num: e,
1147
+ rounding: I.value.style.chart.legend.roundingPercentage
1148
+ });
1149
+ }
1150
+ function xi({ val: e, percentage: t, showVal: n, showPercentage: r, config: i }) {
1151
+ return je({
1152
+ config: i,
1153
+ val: e,
1154
+ percentage: t,
1155
+ showVal: n,
1156
+ showPercentage: r
1157
+ });
1158
+ }
1159
+ function Si(e) {
1160
+ return xi({
1161
+ val: m(I.value.style.chart.layout.labels.value.formatter, e.value, o({
1162
+ p: I.value.style.chart.layout.labels.dataLabels.prefix,
1163
+ v: e.value,
1164
+ s: I.value.style.chart.layout.labels.dataLabels.suffix,
1165
+ r: I.value.style.chart.layout.labels.value.rounding
1166
+ }), { datapoint: e }),
1167
+ percentage: ni(e, K.value),
1168
+ showVal: I.value.style.chart.layout.labels.value.show,
1169
+ showPercentage: I.value.style.chart.layout.labels.percentage.show,
1170
+ config: I.value.style.chart.layout.labels.dataLabels
1171
+ });
1172
+ }
1173
+ function $(e, t) {
1174
+ I.value.events.datapointClick && I.value.events.datapointClick({
1175
+ datapoint: e,
1176
+ seriesIndex: e.seriesIndex
1177
+ }), Ir("selectDatapoint", {
1178
+ datapoint: e,
1179
+ index: t
1180
+ });
1181
+ }
1182
+ function Ci() {
1183
+ z.value.showTable = !z.value.showTable;
1184
+ }
1185
+ function wi() {
1186
+ z.value.dataLabels.show = !z.value.dataLabels.show;
1187
+ }
1188
+ function Ti() {
1189
+ z.value.showTooltip = !z.value.showTooltip;
1190
+ }
1191
+ let Ei = E(!1);
1192
+ function Di() {
1193
+ Ei.value = !Ei.value;
1194
+ }
1195
+ async function Oi({ scale: e = 2 } = {}) {
1196
+ if (!M.value) return;
1197
+ let { width: t, height: n } = M.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await be({
1198
+ domElement: M.value,
1199
+ base64: !0,
1200
+ img: !0,
1201
+ scale: e
1202
+ });
1203
+ return {
1204
+ imageUri: i,
1205
+ base64: a,
1206
+ title: I.value.style.chart.title.text,
1207
+ width: t,
1208
+ height: n,
1209
+ aspectRatio: r
1210
+ };
1211
+ }
1212
+ function ki() {
1213
+ if (!Fn.value) return;
1214
+ let { x: e, y: t, width: n, height: r } = Fn.value.getBBox();
1215
+ R.value && R.value.setAttribute("viewBox", `${e} ${t} ${n + Math.min(0, e)} ${r + Math.min(0, t)}`);
1216
+ }
1217
+ let Ai = v(() => {
1218
+ let e = I.value.table.useDialog && !I.value.table.show, t = z.value.showTable;
1219
+ return {
1220
+ component: e ? kn : wn,
1221
+ title: `${I.value.style.chart.title.text}${I.value.style.chart.title.subtitle.text ? `: ${I.value.style.chart.title.subtitle.text}` : ""}`,
1222
+ props: e ? {
1223
+ backgroundColor: I.value.table.th.backgroundColor,
1224
+ color: I.value.table.th.color,
1225
+ headerColor: I.value.table.th.color,
1226
+ headerBg: I.value.table.th.backgroundColor,
1227
+ isFullscreen: _i.value,
1228
+ fullscreenParent: M.value,
1229
+ forcedWidth: Math.min(500, window.innerWidth * .8),
1230
+ isCursorPointer: pr.value
1231
+ } : {
1232
+ hideDetails: !0,
1233
+ config: {
1234
+ open: t,
1235
+ maxHeight: 1e4,
1236
+ body: {
1237
+ backgroundColor: I.value.style.chart.backgroundColor,
1238
+ color: I.value.style.chart.color
1239
+ },
1240
+ head: {
1241
+ backgroundColor: I.value.style.chart.backgroundColor,
1242
+ color: I.value.style.chart.color
1243
+ }
1244
+ }
1245
+ }
1246
+ };
1247
+ });
1248
+ Ze(() => z.value.showTable, (e) => {
1249
+ I.value.table.show || (e && I.value.table.useDialog && Jn.value ? Jn.value.open() : "close" in Jn.value && Jn.value.close());
1250
+ });
1251
+ function ji() {
1252
+ z.value.showTable = !1, Yn.value && Yn.value.setTableIconState(!1);
1253
+ }
1254
+ let Mi = v(() => Yr.value.map((e) => ({
1255
+ ...e,
1256
+ name: e.display
1257
+ }))), Ni = v(() => I.value.style.chart.backgroundColor), Pi = v(() => I.value.style.chart.legend), { exportSvg: Fi, getSvg: Ii } = _e({
1258
+ svg: R,
1259
+ title: v(() => I.value.style.chart.title),
1260
+ legend: Pi,
1261
+ legendItems: Mi,
1262
+ backgroundColor: Ni
1263
+ });
1264
+ async function Li({ isCb: e }) {
1265
+ Zn.value = !0, await Ve();
1266
+ try {
1267
+ if (e) {
1268
+ let { blob: e, url: t, text: n, dataUrl: r } = await Ii();
1269
+ await Promise.resolve(I.value.userOptions.callbacks.svg({
1270
+ blob: e,
1271
+ url: t,
1272
+ text: n,
1273
+ dataUrl: r
1274
+ }));
1275
+ } else await Promise.resolve(Fi());
1276
+ } finally {
1277
+ Zn.value = !1;
1278
+ }
1279
+ }
1280
+ function Ri(e) {
1281
+ if (e?.stage === "start") {
1282
+ Xn.value = !0;
1283
+ return;
1284
+ }
1285
+ if (e?.stage === "end") {
1286
+ Xn.value = !1;
1287
+ return;
1288
+ }
1289
+ Mr();
1290
+ }
1291
+ async function zi() {
1292
+ if (Ir("copyAlt", {
1293
+ config: I.value,
1294
+ dataset: H.value
1295
+ }), !I.value.userOptions.callbacks.altCopy) {
1296
+ console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
1297
+ return;
1298
+ }
1299
+ await Promise.resolve(I.value.userOptions.callbacks.altCopy({
1300
+ config: I.value,
1301
+ dataset: H.value
1302
+ }));
1303
+ }
1304
+ function Bi() {
1305
+ Qn.value = null, tr.value = !0;
1306
+ }
1307
+ function Vi() {
1308
+ Qn.value = null, er.value = "pointer", lr.value = !1, F.value = null, tr.value = !1;
1309
+ }
1310
+ function Hi(e) {
1311
+ if (!R.value || Ei.value || document.activeElement !== R.value || !K.value.length) return;
1312
+ let t = ["ArrowLeft", "ArrowUp"].includes(e.key), n = ["ArrowRight", "ArrowDown"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
1313
+ if (!t && !n && !r && !i) return;
1314
+ if (e.preventDefault(), e.stopPropagation(), i) {
1315
+ Qn.value = null, er.value = "pointer", lr.value = !1, F.value = null;
1316
+ return;
1317
+ }
1318
+ if (r) {
1319
+ if (Qn.value === null) return;
1320
+ let e = K.value[Qn.value];
1321
+ if (!e) return;
1322
+ $(e, Qn.value);
1323
+ return;
1324
+ }
1325
+ let a = Qn.value, o = F.value, s = a !== null && a >= 0 && a < K.value.length, c = o !== null && o >= 0 && o < K.value.length;
1326
+ s ? n ? (a += 1, a >= K.value.length && (a = 0)) : t && (--a, a < 0 && (a = K.value.length - 1)) : c ? (a = n ? o + 1 : o - 1, a >= K.value.length && (a = 0), a < 0 && (a = K.value.length - 1)) : a = n ? 0 : K.value.length - 1;
1327
+ let l = K.value[a];
1328
+ l && (Qn.value = a, Ui(a), Q({
1329
+ datapoint: l,
1330
+ relativeIndex: a,
1331
+ seriesIndex: l.seriesIndex,
1332
+ show: !0,
1333
+ triggerMode: "keyboard"
1334
+ }));
1335
+ }
1336
+ function Ui(e) {
1337
+ if (!Number.isFinite(e) || !R.value) return;
1338
+ let n = B.value.width / 2, r = B.value.height / 2;
1339
+ if (I.value.type === "classic") {
1340
+ let i = K.value[e];
1341
+ if (!i?.arcSlice) return;
1342
+ let a = t(i.arcSlice);
1343
+ if (!a) return;
1344
+ n = a.x, r = a.y;
1345
+ } else {
1346
+ let t = q.value[e]?.middlePoint;
1347
+ if (!t) return;
1348
+ n = t.x, r = t.y;
1349
+ }
1350
+ let i = R.value.getBoundingClientRect();
1351
+ $n.value = {
1352
+ x: i.left + n / B.value.width * i.width,
1353
+ y: i.top + r / B.value.height * i.height
1354
+ };
1355
+ }
1356
+ let Wi = v(() => ({
1357
+ headers: gi.value?.colNames ?? [],
1358
+ rows: gi.value?.a11yBody ?? []
1359
+ }));
1360
+ return Ce({
1361
+ autoSize: ki,
1362
+ getData: Lr,
1363
+ getImage: Oi,
1364
+ generatePdf: jr,
1365
+ generateCsv: hi,
1366
+ generateImage: Mr,
1367
+ generateSvg: Li,
1368
+ hideSeries: Kr,
1369
+ showSeries: Gr,
1370
+ toggleTable: Ci,
1371
+ toggleLabels: wi,
1372
+ toggleTooltip: Ti,
1373
+ toggleAnnotator: Di,
1374
+ toggleFullscreen: vi,
1375
+ copyAlt: zi
1376
+ }), (t, n) => (T(), b("div", {
1377
+ ref_key: "donutChart",
1378
+ ref: M,
1379
+ class: He(`vue-data-ui-component vue-ui-donut ${_i.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${I.value.useCssAnimation ? "" : "vue-ui-dna"}`),
1380
+ style: w(`font-family:${I.value.style.fontFamily};width:100%; ${I.value.responsive ? "height:100%;" : ""} text-align:center;background:${I.value.style.chart.backgroundColor}`),
1381
+ id: `donut__${P.value}`,
1382
+ onMouseenter: Er,
1383
+ onMouseleave: Dr
1384
+ }, [
1385
+ x("div", {
1386
+ id: `chart-instructions-${P.value}`,
1387
+ class: "sr-only"
1388
+ }, [x("p", null, qe(I.value.a11y.translations.keyboardNavigation), 1)], 8, nt),
1389
+ Wi.value?.rows?.length ? (T(), Fe(De, {
1390
+ key: 0,
1391
+ uid: P.value,
1392
+ head: Wi.value.headers,
1393
+ body: Wi.value.rows,
1394
+ notice: I.value.a11y.translations.tableAvailable,
1395
+ caption: I.value.a11y.translations.tableCaption
1396
+ }, null, 8, [
1397
+ "uid",
1398
+ "head",
1399
+ "body",
1400
+ "notice",
1401
+ "caption"
1402
+ ])) : y("", !0),
1403
+ I.value.userOptions.buttons.annotator && k(R) ? (T(), Fe(k(En), {
1404
+ key: 1,
1405
+ color: I.value.style.chart.color,
1406
+ backgroundColor: I.value.style.chart.backgroundColor,
1407
+ active: Ei.value,
1408
+ svgRef: k(R),
1409
+ isCursorPointer: pr.value,
1410
+ onClose: Di
1411
+ }, {
1412
+ "annotator-action-close": A(() => [O(t.$slots, "annotator-action-close", {}, void 0, !0)]),
1413
+ "annotator-action-color": A(({ color: e }) => [O(t.$slots, "annotator-action-color", C(S({ color: e })), void 0, !0)]),
1414
+ "annotator-action-draw": A(({ mode: e }) => [O(t.$slots, "annotator-action-draw", C(S({ mode: e })), void 0, !0)]),
1415
+ "annotator-action-undo": A(({ disabled: e }) => [O(t.$slots, "annotator-action-undo", C(S({ disabled: e })), void 0, !0)]),
1416
+ "annotator-action-redo": A(({ disabled: e }) => [O(t.$slots, "annotator-action-redo", C(S({ disabled: e })), void 0, !0)]),
1417
+ "annotator-action-delete": A(({ disabled: e }) => [O(t.$slots, "annotator-action-delete", C(S({ disabled: e })), void 0, !0)]),
1418
+ _: 3
1419
+ }, 8, [
1420
+ "color",
1421
+ "backgroundColor",
1422
+ "active",
1423
+ "svgRef",
1424
+ "isCursorPointer"
1425
+ ])) : y("", !0),
1426
+ O(t.$slots, "userConfig", {}, void 0, !0),
1427
+ Nr.value ? (T(), b("div", {
1428
+ key: 2,
1429
+ ref_key: "noTitle",
1430
+ ref: Un,
1431
+ class: "vue-data-ui-no-title-space",
1432
+ style: "height:36px; width: 100%;background:transparent"
1433
+ }, null, 512)) : y("", !0),
1434
+ I.value.style.chart.title.text ? (T(), b("div", {
1435
+ key: 3,
1436
+ ref_key: "chartTitle",
1437
+ ref: Rn,
1438
+ style: "width:100%;background:transparent;padding-bottom:24px"
1439
+ }, [(T(), Fe(xe, {
1440
+ key: `title_${Wn.value}`,
1441
+ config: {
1442
+ title: {
1443
+ cy: "donut-div-title",
1444
+ ...I.value.style.chart.title
1445
+ },
1446
+ subtitle: {
1447
+ cy: "donut-div-subtitle",
1448
+ ...I.value.style.chart.title.subtitle
1449
+ }
1450
+ }
1451
+ }, null, 8, ["config"]))], 512)) : y("", !0),
1452
+ x("div", { id: `legend-top-${P.value}` }, null, 8, rt),
1453
+ I.value.userOptions.show && Pn.value && (k(Tr) || k(Cr)) ? (T(), Fe(k(Dn), {
1454
+ ref_key: "userOptionsRef",
1455
+ ref: Yn,
1456
+ key: `user_option_${dr.value}`,
1457
+ backgroundColor: I.value.style.chart.backgroundColor,
1458
+ color: I.value.style.chart.color,
1459
+ isPrinting: k(kr),
1460
+ isImaging: k(Ar),
1461
+ uid: P.value,
1462
+ hasTooltip: I.value.style.chart.tooltip.show && I.value.userOptions.buttons.tooltip,
1463
+ hasPdf: I.value.userOptions.buttons.pdf,
1464
+ hasImg: I.value.userOptions.buttons.img,
1465
+ hasSvg: I.value.userOptions.buttons.svg,
1466
+ hasXls: I.value.userOptions.buttons.csv,
1467
+ hasTable: I.value.userOptions.buttons.table,
1468
+ hasLabel: I.value.userOptions.buttons.labels,
1469
+ hasFullscreen: I.value.userOptions.buttons.fullscreen,
1470
+ hasAltCopy: I.value.userOptions.buttons.altCopy,
1471
+ isFullscreen: _i.value,
1472
+ chartElement: M.value,
1473
+ position: I.value.userOptions.position,
1474
+ callbacks: I.value.userOptions.callbacks,
1475
+ isTooltip: z.value.showTooltip,
1476
+ titles: { ...I.value.userOptions.buttonTitles },
1477
+ hasAnnotator: I.value.userOptions.buttons.annotator,
1478
+ isAnnotation: Ei.value,
1479
+ printScale: I.value.userOptions.print.scale,
1480
+ tableDialog: I.value.table.useDialog,
1481
+ isCursorPointer: pr.value,
1482
+ onToggleFullscreen: vi,
1483
+ onGeneratePdf: k(jr),
1484
+ onGenerateCsv: hi,
1485
+ onGenerateImage: Ri,
1486
+ onGenerateSvg: Li,
1487
+ onToggleTable: Ci,
1488
+ onToggleLabels: wi,
1489
+ onToggleTooltip: Ti,
1490
+ onToggleAnnotator: Di,
1491
+ onCopyAlt: zi,
1492
+ style: w({ visibility: k(Tr) ? k(Cr) ? "visible" : "hidden" : "visible" })
1493
+ }, Ie({ _: 2 }, [
1494
+ t.$slots.menuIcon ? {
1495
+ name: "menuIcon",
1496
+ fn: A(({ isOpen: e, color: n }) => [O(t.$slots, "menuIcon", C(S({
1497
+ isOpen: e,
1498
+ color: n
1499
+ })), void 0, !0)]),
1500
+ key: "0"
1501
+ } : void 0,
1502
+ t.$slots.optionTooltip ? {
1503
+ name: "optionTooltip",
1504
+ fn: A(() => [O(t.$slots, "optionTooltip", {}, void 0, !0)]),
1505
+ key: "1"
1506
+ } : void 0,
1507
+ t.$slots.optionPdf ? {
1508
+ name: "optionPdf",
1509
+ fn: A(() => [O(t.$slots, "optionPdf", {}, void 0, !0)]),
1510
+ key: "2"
1511
+ } : void 0,
1512
+ t.$slots.optionCsv ? {
1513
+ name: "optionCsv",
1514
+ fn: A(() => [O(t.$slots, "optionCsv", {}, void 0, !0)]),
1515
+ key: "3"
1516
+ } : void 0,
1517
+ t.$slots.optionImg ? {
1518
+ name: "optionImg",
1519
+ fn: A(() => [O(t.$slots, "optionImg", {}, void 0, !0)]),
1520
+ key: "4"
1521
+ } : void 0,
1522
+ t.$slots.optionSvg ? {
1523
+ name: "optionSvg",
1524
+ fn: A(() => [O(t.$slots, "optionSvg", {}, void 0, !0)]),
1525
+ key: "5"
1526
+ } : void 0,
1527
+ t.$slots.optionTable ? {
1528
+ name: "optionTable",
1529
+ fn: A(() => [O(t.$slots, "optionTable", {}, void 0, !0)]),
1530
+ key: "6"
1531
+ } : void 0,
1532
+ t.$slots.optionLabels ? {
1533
+ name: "optionLabels",
1534
+ fn: A(() => [O(t.$slots, "optionLabels", {}, void 0, !0)]),
1535
+ key: "7"
1536
+ } : void 0,
1537
+ t.$slots.optionFullscreen ? {
1538
+ name: "optionFullscreen",
1539
+ fn: A(({ toggleFullscreen: e, isFullscreen: n }) => [O(t.$slots, "optionFullscreen", C(S({
1540
+ toggleFullscreen: e,
1541
+ isFullscreen: n
1542
+ })), void 0, !0)]),
1543
+ key: "8"
1544
+ } : void 0,
1545
+ t.$slots.optionAnnotator ? {
1546
+ name: "optionAnnotator",
1547
+ fn: A(({ toggleAnnotator: e, isAnnotator: n }) => [O(t.$slots, "optionAnnotator", C(S({
1548
+ toggleAnnotator: e,
1549
+ isAnnotator: n
1550
+ })), void 0, !0)]),
1551
+ key: "9"
1552
+ } : void 0,
1553
+ t.$slots.optionAltCopy ? {
1554
+ name: "optionAltCopy",
1555
+ fn: A(({ altCopy: e }) => [O(t.$slots, "optionAltCopy", C(S({ altCopy: e })), void 0, !0)]),
1556
+ key: "10"
1557
+ } : void 0,
1558
+ t.$slots["custom-menu-before"] ? {
1559
+ name: "custom-menu-before",
1560
+ fn: A(() => [O(t.$slots, "custom-menu-before", {}, void 0, !0)]),
1561
+ key: "11"
1562
+ } : void 0,
1563
+ t.$slots["custom-menu-after"] ? {
1564
+ name: "custom-menu-after",
1565
+ fn: A(() => [O(t.$slots, "custom-menu-after", {}, void 0, !0)]),
1566
+ key: "12"
1567
+ } : void 0
1568
+ ]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasImg.hasSvg.hasXls.hasTable.hasLabel.hasFullscreen.hasAltCopy.isFullscreen.chartElement.position.callbacks.isTooltip.titles.hasAnnotator.isAnnotation.printScale.tableDialog.isCursorPointer.onGeneratePdf.style".split("."))) : y("", !0),
1569
+ x("div", it, [(T(), b("svg", {
1570
+ ref_key: "svgRef",
1571
+ ref: R,
1572
+ xmlns: k(ce),
1573
+ "aria-describedby": `chart-instructions-${P.value}`,
1574
+ class: He({
1575
+ "vue-data-ui-fullscreen--on": _i.value,
1576
+ "vue-data-ui-fulscreen--off": !_i.value,
1577
+ "vue-data-ui-svg": !0
1578
+ }),
1579
+ viewBox: `0 0 ${B.value.width <= 0 ? 10 : B.value.width} ${B.value.height <= 0 ? 10 : B.value.height}`,
1580
+ style: w(`max-width:100%; overflow: visible; background:transparent;color:${I.value.style.chart.color};${Or.value.css}`),
1581
+ tabindex: "0",
1582
+ onFocus: Bi,
1583
+ onBlur: Vi,
1584
+ onKeydown: Hi
1585
+ }, [x("g", {
1586
+ ref_key: "G",
1587
+ ref: Fn,
1588
+ class: "vue-data-ui-g"
1589
+ }, [
1590
+ Re(k(On)),
1591
+ t.$slots["chart-background"] ? (T(), b("foreignObject", {
1592
+ key: 0,
1593
+ x: 0,
1594
+ y: 0,
1595
+ width: B.value.width <= 0 ? 10 : B.value.width,
1596
+ height: B.value.height <= 0 ? 10 : B.value.height,
1597
+ style: { pointerEvents: "none" }
1598
+ }, [O(t.$slots, "chart-background", {}, void 0, !0)], 8, ot)) : y("", !0),
1599
+ I.value.type === "classic" && !isNaN(Fr.value / W.value) ? (T(), b("defs", st, [I.value.style.chart.useGradient ? (T(), b("radialGradient", {
1600
+ key: 0,
1601
+ id: `gradient_${P.value}`
1602
+ }, [
1603
+ x("stop", {
1604
+ offset: "0%",
1605
+ "stop-color": k(l)(I.value.style.chart.backgroundColor, 0),
1606
+ "stop-opacity": "0"
1607
+ }, null, 8, lt),
1608
+ x("stop", {
1609
+ offset: `${(1 - Fr.value / W.value) * 100}%`,
1610
+ "stop-color": k(l)("#FFFFFF", 0),
1611
+ "stop-opacity": "0"
1612
+ }, null, 8, ut),
1613
+ x("stop", {
1614
+ offset: `${(1 - Fr.value / W.value / 2) * 100}%`,
1615
+ "stop-color": k(l)("#FFFFFF", I.value.style.chart.gradientIntensity)
1616
+ }, null, 8, dt),
1617
+ x("stop", {
1618
+ offset: "100%",
1619
+ "stop-color": k(l)(I.value.style.chart.backgroundColor, 0),
1620
+ "stop-opacity": "0"
1621
+ }, null, 8, ft)
1622
+ ], 8, ct)) : y("", !0)])) : y("", !0),
1623
+ I.value.type === "polar" ? (T(), b("defs", pt, [(T(!0), b(_, null, D(q.value, (e, t) => (T(), b("radialGradient", {
1624
+ id: `polar_gradient_${t}_${P.value}`,
1625
+ cx: (isNaN(e.middlePoint.x / B.value.width * 100) ? 0 : e.middlePoint.x / B.value.width * 100) + "%",
1626
+ cy: (isNaN(e.middlePoint.y / B.value.height * 100) ? 0 : e.middlePoint.y / B.value.height * 100) + "%",
1627
+ r: "62%"
1628
+ }, [x("stop", {
1629
+ offset: "0%",
1630
+ "stop-color": k(u)(G.value[t].color, .05),
1631
+ "stop-opacity": I.value.style.chart.gradientIntensity / 100
1632
+ }, null, 8, ht), x("stop", {
1633
+ offset: "100%",
1634
+ "stop-color": G.value[t].color
1635
+ }, null, 8, gt)], 8, mt))), 256))])) : y("", !0),
1636
+ x("defs", null, [
1637
+ x("filter", {
1638
+ id: `blur_${P.value}`,
1639
+ x: "-50%",
1640
+ y: "-50%",
1641
+ width: "200%",
1642
+ height: "200%"
1643
+ }, [x("feGaussianBlur", {
1644
+ in: "SourceGraphic",
1645
+ stdDeviation: 2,
1646
+ id: `blur_std_${P.value}`
1647
+ }, null, 8, vt), n[5] ||= x("feColorMatrix", {
1648
+ type: "saturate",
1649
+ values: "0"
1650
+ }, null, -1)], 8, _t),
1651
+ x("filter", {
1652
+ id: `shadow_${P.value}`,
1653
+ "color-interpolation-filters": "sRGB"
1654
+ }, [x("feDropShadow", {
1655
+ dx: "0",
1656
+ dy: "0",
1657
+ stdDeviation: "10",
1658
+ "flood-opacity": "0.5",
1659
+ "flood-color": I.value.style.chart.layout.donut.shadowColor
1660
+ }, null, 8, bt)], 8, yt),
1661
+ x("filter", {
1662
+ id: `drop_shadow_${P.value}`,
1663
+ "color-interpolation-filters": "sRGB",
1664
+ x: "-50%",
1665
+ y: "-50%",
1666
+ width: "200%",
1667
+ height: "200%"
1668
+ }, [x("feDropShadow", {
1669
+ dx: "0",
1670
+ dy: "0",
1671
+ stdDeviation: "3",
1672
+ "flood-opacity": "1",
1673
+ "flood-color": I.value.style.chart.layout.donut.shadowColor
1674
+ }, null, 8, St)], 8, xt)
1675
+ ]),
1676
+ I.value.type === "classic" ? (T(!0), b(_, { key: 3 }, D(G.value.filter((e) => !e.ghost), (e, t) => (T(), b("g", null, [J(e) && z.value.dataLabels.show ? (T(), b("path", {
1677
+ key: 0,
1678
+ d: k(Y)[t]?.connectorPath || k(oe)(e, {
1679
+ x: B.value.width / 2,
1680
+ y: B.value.height / 2
1681
+ }, 16, 16, !1, !1, Fr.value, 12, I.value.style.chart.layout.curvedMarkers),
1682
+ stroke: e.color,
1683
+ "stroke-width": "1",
1684
+ "stroke-linecap": "round",
1685
+ "stroke-linejoin": "round",
1686
+ fill: "none",
1687
+ filter: fi(t)
1688
+ }, null, 8, Ct)) : y("", !0)]))), 256)) : y("", !0),
1689
+ I.value.type === "polar" ? (T(!0), b(_, { key: 4 }, D(G.value.filter((e) => !e.ghost), (e, t) => (T(), b("g", null, [J(e) && z.value.dataLabels.show ? (T(), b("path", {
1690
+ key: 0,
1691
+ d: `M ${k(g)({
1692
+ initX: q.value[t].middlePoint.x,
1693
+ initY: q.value[t].middlePoint.y,
1694
+ offset: 24,
1695
+ centerX: B.value.width / 2,
1696
+ centerY: B.value.height / 2
1697
+ }).x},${k(g)({
1698
+ initX: q.value[t].middlePoint.x,
1699
+ initY: q.value[t].middlePoint.y,
1700
+ offset: 24,
1701
+ centerX: B.value.width / 2,
1702
+ centerY: B.value.height / 2
1703
+ }).y} ${q.value[t].middlePoint.x},${q.value[t].middlePoint.y}`,
1704
+ stroke: e.color,
1705
+ "stroke-width": "1",
1706
+ "stroke-linecap": "round",
1707
+ "stroke-linejoin": "round",
1708
+ fill: "none",
1709
+ filter: fi(t),
1710
+ style: w({ transition: L.value || !I.value.serieToggleAnimation.show ? "none" : `all ${I.value.serieToggleAnimation.durationMs}ms ease-in-out` })
1711
+ }, null, 12, wt)) : y("", !0)]))), 256)) : y("", !0),
1712
+ I.value.type === "classic" && I.value.style.chart.layout.donut.useShadow ? (T(), b("circle", {
1713
+ key: 5,
1714
+ cx: B.value.width / 2,
1715
+ cy: B.value.height / 2,
1716
+ r: W.value <= 0 ? 10 : W.value,
1717
+ fill: I.value.style.chart.backgroundColor,
1718
+ filter: `url(#shadow_${P.value})`
1719
+ }, null, 8, Tt)) : y("", !0),
1720
+ t.$slots.pattern ? (T(), b("g", Et, [(T(!0), b(_, null, D(e.dataset, (e, n) => (T(), b("defs", { key: `pattern-${e.patternIndex}` }, [O(t.$slots, "pattern", Be({ ref_for: !0 }, {
1721
+ seriesIndex: n,
1722
+ patternId: `pattern_${P.value}_${n}`
1723
+ }), void 0, !0)]))), 128))])) : y("", !0),
1724
+ X.value && I.value.type === "classic" ? (T(), b(_, { key: 7 }, [
1725
+ (T(!0), b(_, null, D(K.value, (e, t) => (T(), b("path", {
1726
+ stroke: I.value.style.chart.backgroundColor,
1727
+ d: e.arcSlice,
1728
+ fill: "#FFFFFF"
1729
+ }, null, 8, Dt))), 256)),
1730
+ (T(!0), b(_, null, D(K.value, (e, t) => (T(), b("path", {
1731
+ class: "vue-ui-donut-arc-path",
1732
+ d: e.arcSlice,
1733
+ fill: e.color,
1734
+ stroke: I.value.style.chart.layout.donut.borderColorAuto ? I.value.style.chart.backgroundColor : I.value.style.chart.layout.donut.borderColor,
1735
+ "stroke-width": I.value.style.chart.layout.donut.borderWidth,
1736
+ filter: fi(t)
1737
+ }, null, 8, Ot))), 256)),
1738
+ t.$slots.pattern ? (T(), b("g", kt, [(T(!0), b(_, null, D(K.value, (e, t) => (T(), b("path", {
1739
+ class: "vue-ui-donut-arc-path",
1740
+ d: e.arcSlice,
1741
+ fill: `url(#${e.pattern})`,
1742
+ stroke: I.value.style.chart.layout.donut.borderColorAuto ? I.value.style.chart.backgroundColor : I.value.style.chart.layout.donut.borderColor,
1743
+ "stroke-width": I.value.style.chart.layout.donut.borderWidth,
1744
+ filter: fi(t)
1745
+ }, null, 8, At))), 256))])) : y("", !0)
1746
+ ], 64)) : y("", !0),
1747
+ X.value && I.value.type === "polar" ? (T(), b(_, { key: 8 }, [G.value.length > 1 ? (T(), b("g", jt, [
1748
+ (T(!0), b(_, null, D(K.value, (e, t) => (T(), b("path", {
1749
+ stroke: I.value.style.chart.layout.donut.borderColorAuto ? I.value.style.chart.backgroundColor : I.value.style.chart.layout.donut.borderColor,
1750
+ d: q.value[t].path,
1751
+ fill: "#FFFFFF",
1752
+ style: w({ transition: L.value || !I.value.serieToggleAnimation.show ? "none" : `all ${I.value.serieToggleAnimation.durationMs}ms ease-in-out` })
1753
+ }, null, 12, Mt))), 256)),
1754
+ I.value.style.chart.layout.donut.useShadow ? (T(), b("g", Nt, [(T(!0), b(_, null, D(K.value, (e, t) => (T(), b("path", {
1755
+ class: "vue-ui-donut-arc-path",
1756
+ d: q.value[t].path,
1757
+ fill: "transparent",
1758
+ stroke: I.value.style.chart.layout.donut.borderColorAuto ? I.value.style.chart.backgroundColor : I.value.style.chart.layout.donut.borderColor,
1759
+ "stroke-width": I.value.style.chart.layout.donut.borderWidth,
1760
+ filter: `url(#drop_shadow_${P.value})`,
1761
+ style: w({ transition: L.value || !I.value.serieToggleAnimation.show ? "none" : `all ${I.value.serieToggleAnimation.durationMs}ms ease-in-out` })
1762
+ }, null, 12, Pt))), 256))])) : y("", !0),
1763
+ t.$slots.pattern ? (T(), b("g", Ft, [(T(!0), b(_, null, D(K.value, (e, t) => (T(), b("path", {
1764
+ class: "vue-ui-donut-arc-path",
1765
+ d: q.value[t].path,
1766
+ fill: `url(#${e.pattern})`,
1767
+ stroke: I.value.style.chart.layout.donut.borderColorAuto ? I.value.style.chart.backgroundColor : I.value.style.chart.layout.donut.borderColor,
1768
+ "stroke-width": I.value.style.chart.layout.donut.borderWidth,
1769
+ filter: fi(t),
1770
+ style: w({
1771
+ transition: L.value || !I.value.serieToggleAnimation.show ? "none" : `all ${I.value.serieToggleAnimation.durationMs}ms ease-in-out`,
1772
+ transformOrigin: "center"
1773
+ })
1774
+ }, null, 12, It))), 256))])) : y("", !0),
1775
+ (T(!0), b(_, null, D(K.value, (e, t) => (T(), b("path", {
1776
+ class: "vue-ui-donut-arc-path",
1777
+ d: q.value[t].path,
1778
+ fill: I.value.style.chart.useGradient ? `url(#polar_gradient_${t}_${P.value})` : e.color,
1779
+ stroke: I.value.style.chart.layout.donut.borderColorAuto ? I.value.style.chart.backgroundColor : I.value.style.chart.layout.donut.borderColor,
1780
+ "stroke-width": I.value.style.chart.layout.donut.borderWidth,
1781
+ filter: fi(t),
1782
+ style: w({ transition: L.value || !I.value.serieToggleAnimation.show ? "none" : `all ${I.value.serieToggleAnimation.durationMs}ms ease-in-out` })
1783
+ }, null, 12, Lt))), 256))
1784
+ ])) : (T(), b("g", Rt, [t.$slots.pattern ? (T(), b("circle", {
1785
+ key: 0,
1786
+ cx: B.value.width / 2,
1787
+ cy: B.value.height / 2,
1788
+ r: W.value,
1789
+ fill: `url(#pattern_${P.value}_${G.value[0].patternIndex})`,
1790
+ stroke: I.value.style.chart.backgroundColor,
1791
+ "stroke-width": I.value.style.chart.layout.donut.borderWidth
1792
+ }, null, 8, zt)) : y("", !0), x("circle", {
1793
+ cx: B.value.width / 2,
1794
+ cy: B.value.height / 2,
1795
+ r: W.value,
1796
+ fill: I.value.style.chart.useGradient ? `url(#polar_gradient_0_${P.value})` : G.value[0].color,
1797
+ stroke: I.value.style.chart.backgroundColor,
1798
+ "stroke-width": I.value.style.chart.layout.donut.borderWidth
1799
+ }, null, 8, Bt)]))], 64)) : (T(), b(_, { key: 9 }, [I.value.type === "classic" && !Zr.value ? (T(), b("g", Vt, [(T(!0), b(_, null, D(Qr.value, (e, t) => (T(), b("path", {
1800
+ class: "vue-ui-donut-arc-path",
1801
+ d: e.arcSlice,
1802
+ fill: e.color,
1803
+ stroke: I.value.style.chart.backgroundColor,
1804
+ "stroke-width": I.value.style.chart.layout.donut.borderWidth
1805
+ }, null, 8, Ht))), 256))])) : y("", !0), x("circle", {
1806
+ cx: B.value.width / 2,
1807
+ cy: B.value.height / 2,
1808
+ r: W.value <= 0 ? 10 : W.value,
1809
+ fill: "transparent",
1810
+ stroke: I.value.style.chart.backgroundColor
1811
+ }, null, 8, Ut)], 64)),
1812
+ I.value.style.chart.useGradient && I.value.type === "classic" ? (T(), b("circle", {
1813
+ key: 10,
1814
+ cx: B.value.width / 2,
1815
+ cy: B.value.height / 2,
1816
+ r: W.value <= 0 ? 10 : W.value,
1817
+ fill: `url(#gradient_${P.value})`
1818
+ }, null, 8, Wt)) : y("", !0),
1819
+ x("circle", {
1820
+ ref_key: "circle_hollow",
1821
+ ref: Ln,
1822
+ style: { pointerEvents: "none" },
1823
+ fill: "none",
1824
+ cx: B.value.width / 2,
1825
+ cy: B.value.height / 2,
1826
+ r: Math.max(.1, Fr.value * 1.7)
1827
+ }, null, 8, Gt),
1828
+ X.value ? (T(), b(_, { key: 11 }, [G.value.length > 1 || I.value.type === "classic" ? (T(), b("g", Kt, [(T(!0), b(_, null, D(G.value.filter((e) => !e.ghost), (e, t) => (T(), b("path", {
1829
+ d: I.value.type === "classic" ? e.arcSlice : q.value[t].path,
1830
+ stroke: I.value.style.chart.layout.donut.borderColorAuto ? I.value.style.chart.backgroundColor : I.value.style.chart.layout.donut.borderColor,
1831
+ fill: F.value === t ? I.value.style.chart.layout.donut.selectedColor : "transparent",
1832
+ onMouseenter: (n) => Q({
1833
+ datapoint: e,
1834
+ relativeIndex: t,
1835
+ seriesIndex: e.seriesIndex,
1836
+ show: !0
1837
+ }),
1838
+ onMouseleave: (t) => Z({
1839
+ datapoint: e,
1840
+ seriesIndex: e.seriesIndex
1841
+ }),
1842
+ onClick: (n) => $(e, t)
1843
+ }, null, 40, qt))), 256))])) : (T(), b("g", Jt, [x("circle", {
1844
+ cx: B.value.width / 2,
1845
+ cy: B.value.height / 2,
1846
+ r: W.value,
1847
+ fill: "transparent",
1848
+ onMouseenter: n[0] ||= (e) => Q({
1849
+ datapoint: G.value[0],
1850
+ relativeIndex: 0,
1851
+ seriesIndex: G.value[0].seriesIndex,
1852
+ show: !0
1853
+ }),
1854
+ onMouseleave: n[1] ||= (e) => Z({
1855
+ datapoint: G.value[0],
1856
+ seriesIndex: G.value[0].seriesIndex
1857
+ }),
1858
+ onClick: n[2] ||= (e) => $(G.value[0], t.i)
1859
+ }, null, 40, Yt)]))], 64)) : y("", !0),
1860
+ I.value.type === "classic" ? (T(), b("g", {
1861
+ key: 12,
1862
+ ref_key: "G_hollow",
1863
+ ref: In,
1864
+ class: "vue-data-ui-donut-hollow-labels"
1865
+ }, [
1866
+ I.value.style.chart.layout.labels.hollow.total.show ? (T(), b("text", {
1867
+ key: 0,
1868
+ "text-anchor": "middle",
1869
+ x: B.value.width / 2,
1870
+ y: B.value.height / 2 - (I.value.style.chart.layout.labels.hollow.average.show ? I.value.style.chart.layout.labels.hollow.total.fontSize : 0) + I.value.style.chart.layout.labels.hollow.total.offsetY,
1871
+ fill: I.value.style.chart.layout.labels.hollow.total.color,
1872
+ "font-size": I.value.style.chart.layout.labels.hollow.total.fontSize,
1873
+ style: w(`font-weight:${I.value.style.chart.layout.labels.hollow.total.bold ? "bold" : ""}`)
1874
+ }, qe(I.value.style.chart.layout.labels.hollow.total.text), 13, Xt)) : y("", !0),
1875
+ I.value.style.chart.layout.labels.hollow.total.show ? (T(), b("text", {
1876
+ key: 1,
1877
+ "text-anchor": "middle",
1878
+ x: B.value.width / 2,
1879
+ y: B.value.height / 2 + I.value.style.chart.layout.labels.hollow.total.fontSize - (I.value.style.chart.layout.labels.hollow.average.show ? I.value.style.chart.layout.labels.hollow.total.fontSize : 0) + I.value.style.chart.layout.labels.hollow.total.value.offsetY,
1880
+ fill: I.value.style.chart.layout.labels.hollow.total.value.color,
1881
+ "font-size": I.value.style.chart.layout.labels.hollow.total.value.fontSize,
1882
+ style: w(`font-weight:${I.value.style.chart.layout.labels.hollow.total.value.bold ? "bold" : ""}`)
1883
+ }, qe(k(m)(I.value.style.chart.layout.labels.hollow.total.value.formatter, X.value, k(o)({
1884
+ p: I.value.style.chart.layout.labels.hollow.total.value.prefix,
1885
+ v: X.value,
1886
+ s: I.value.style.chart.layout.labels.hollow.total.value.suffix
1887
+ }))), 13, Zt)) : y("", !0),
1888
+ I.value.style.chart.layout.labels.hollow.average.show ? (T(), b("text", {
1889
+ key: 2,
1890
+ "text-anchor": "middle",
1891
+ x: B.value.width / 2,
1892
+ y: B.value.height / 2 + (I.value.style.chart.layout.labels.hollow.total.show ? I.value.style.chart.layout.labels.hollow.average.fontSize : 0) + I.value.style.chart.layout.labels.hollow.average.offsetY,
1893
+ fill: I.value.style.chart.layout.labels.hollow.average.color,
1894
+ "font-size": I.value.style.chart.layout.labels.hollow.average.fontSize,
1895
+ style: w(`font-weight:${I.value.style.chart.layout.labels.hollow.average.bold ? "bold" : ""}`)
1896
+ }, qe(I.value.style.chart.layout.labels.hollow.average.text), 13, Qt)) : y("", !0),
1897
+ I.value.style.chart.layout.labels.hollow.average.show ? (T(), b("text", {
1898
+ key: 3,
1899
+ "text-anchor": "middle",
1900
+ x: B.value.width / 2,
1901
+ y: B.value.height / 2 + (I.value.style.chart.layout.labels.hollow.total.show ? I.value.style.chart.layout.labels.hollow.average.fontSize : 0) + I.value.style.chart.layout.labels.hollow.average.fontSize + I.value.style.chart.layout.labels.hollow.average.value.offsetY,
1902
+ fill: I.value.style.chart.layout.labels.hollow.average.value.color,
1903
+ "font-size": I.value.style.chart.layout.labels.hollow.average.value.fontSize,
1904
+ style: w(`font-weight:${I.value.style.chart.layout.labels.hollow.average.value.bold ? "bold" : ""}`)
1905
+ }, qe(Rr.value || L.value ? "--" : k(m)(I.value.style.chart.layout.labels.hollow.average.value.formatter, k(p)(ai.value), k(o)({
1906
+ p: I.value.style.chart.layout.labels.hollow.average.value.prefix,
1907
+ v: k(p)(ai.value),
1908
+ s: I.value.style.chart.layout.labels.hollow.average.value.suffix,
1909
+ r: I.value.style.chart.layout.labels.hollow.average.value.rounding
1910
+ }))), 13, $t)) : y("", !0)
1911
+ ], 512)) : y("", !0),
1912
+ (T(!0), b(_, null, D(K.value.filter((e) => !e.ghost), (e, n) => (T(), b("g", {
1913
+ filter: fi(n),
1914
+ class: He({ animated: I.value.useCssAnimation }),
1915
+ key: e.seriesIndex,
1916
+ opacity: pi(e)
1917
+ }, [I.value.style.chart.layout.labels.dataLabels.useLabelSlots ? (T(), b("g", tn, [(T(), b("foreignObject", {
1918
+ x: k(h)(e, !0).anchor === "end" ? k(h)(e).x - 120 : k(h)(e, !0).anchor === "middle" ? k(h)(e).x - 60 : k(h)(e).x,
1919
+ y: k(f)(e) - (yi.value ? 20 : 0),
1920
+ width: "120",
1921
+ height: "60",
1922
+ style: { overflow: "visible" }
1923
+ }, [x("div", null, [O(t.$slots, "dataLabel", Be({ ref_for: !0 }, {
1924
+ datapoint: e,
1925
+ isBlur: !I.value.useBlurOnHover || [null, void 0].includes(F.value) || F.value === n,
1926
+ isSafari: yi.value,
1927
+ isVisible: J(e) && z.value.dataLabels.show,
1928
+ textAlign: k(h)(e, !0, 16, !0).anchor,
1929
+ flexAlign: k(h)(e, !0, 16).anchor,
1930
+ percentage: ni(e, K.value)
1931
+ }), void 0, !0)])], 8, nn))])) : (T(), b("g", rn, [I.value.type === "classic" ? (T(), b(_, { key: 0 }, [J(e) && z.value.dataLabels.show ? (T(), b("circle", {
1932
+ key: 0,
1933
+ cx: k(Y)[n]?.markerX ?? k(h)(e).x,
1934
+ cy: k(Y)[n]?.markerY ?? k(f)(e) - 3.5,
1935
+ fill: e.color,
1936
+ stroke: I.value.style.chart.backgroundColor,
1937
+ "stroke-width": 1,
1938
+ r: 3,
1939
+ filter: !I.value.useBlurOnHover || [null, void 0].includes(F.value) || F.value === n ? "" : `url(#blur_${P.value})`,
1940
+ onClick: (t) => $(e, n),
1941
+ onMouseenter: (t) => Q({
1942
+ datapoint: e,
1943
+ relativeIndex: n,
1944
+ seriesIndex: e.seriesIndex,
1945
+ show: !0
1946
+ }),
1947
+ onMouseleave: (t) => Z({
1948
+ datapoint: e,
1949
+ seriesIndex: e.seriesIndex
1950
+ })
1951
+ }, null, 40, an)) : y("", !0), I.value.style.chart.layout.labels.dataLabels.oneLine || k(Y)[n] ? Qe((T(), b("text", {
1952
+ key: 1,
1953
+ class: "vue-data-ui-datalabel-inline",
1954
+ "text-anchor": k(Y)[n]?.textAnchor || k(h)(e, !0, 12).anchor,
1955
+ x: k(Y)[n]?.labelX ?? k(h)(e, !0, 12).x,
1956
+ y: k(Y)[n]?.labelY ?? k(f)(e),
1957
+ onClick: (t) => $(e, n),
1958
+ onMouseenter: (t) => Q({
1959
+ datapoint: e,
1960
+ relativeIndex: n,
1961
+ seriesIndex: e.seriesIndex,
1962
+ show: !0
1963
+ }),
1964
+ onMouseleave: (t) => Z({
1965
+ datapoint: e,
1966
+ seriesIndex: e.seriesIndex
1967
+ }),
1968
+ innerHTML: ui(e, n, !!k(Y)[n])
1969
+ }, null, 40, on)), [[Xe, J(e) && z.value.dataLabels.show]]) : (T(), b(_, { key: 2 }, [Qe(x("text", {
1970
+ class: "vue-data-ui-datalabel-value",
1971
+ "text-anchor": k(Y)[n]?.textAnchor || k(h)(e, !0, 12).anchor,
1972
+ x: k(Y)[n]?.labelX ?? k(h)(e, !0, 12).x,
1973
+ y: k(Y)[n]?.labelY ?? k(f)(e),
1974
+ fill: I.value.style.chart.layout.labels.percentage.color,
1975
+ "font-size": nr.value + "px",
1976
+ style: w(`font-weight:${I.value.style.chart.layout.labels.percentage.bold ? "bold" : ""}`),
1977
+ onClick: (t) => $(e, n),
1978
+ onMouseenter: (t) => Q({
1979
+ datapoint: e,
1980
+ relativeIndex: n,
1981
+ seriesIndex: e.seriesIndex,
1982
+ show: !0
1983
+ }),
1984
+ onMouseleave: (t) => Z({
1985
+ datapoint: e,
1986
+ seriesIndex: e.seriesIndex
1987
+ })
1988
+ }, qe(Si(e)), 45, sn), [[Xe, J(e) && z.value.dataLabels.show]]), Qe(x("text", {
1989
+ class: "vue-data-ui-datalabel-name",
1990
+ "text-anchor": k(Y)[n]?.textAnchor || k(h)(e).anchor,
1991
+ x: k(Y)[n]?.labelX ?? k(h)(e, !0, 12).x,
1992
+ y: (k(Y)[n]?.labelY ?? k(f)(e)) + N.value * 1.2,
1993
+ fill: I.value.style.chart.layout.labels.name.color,
1994
+ "font-size": N.value + "px",
1995
+ style: w(`font-weight:${I.value.style.chart.layout.labels.name.bold ? "bold" : ""}`),
1996
+ onClick: (t) => $(e, n),
1997
+ onMouseenter: (t) => Q({
1998
+ datapoint: e,
1999
+ relativeIndex: n,
2000
+ seriesIndex: e.seriesIndex,
2001
+ show: !0
2002
+ }),
2003
+ onMouseleave: (t) => Z({
2004
+ datapoint: e,
2005
+ seriesIndex: e.seriesIndex
2006
+ }),
2007
+ innerHTML: k(ne)({
2008
+ content: e.name,
2009
+ fontSize: N.value,
2010
+ fill: I.value.style.chart.layout.labels.name.color,
2011
+ x: k(Y)[n]?.labelX ?? k(h)(e, !0, 12).x,
2012
+ y: (k(Y)[n]?.labelY ?? k(f)(e)) + N.value
2013
+ })
2014
+ }, null, 44, cn), [[Xe, J(e, !0, 12) && z.value.dataLabels.show && I.value.style.chart.layout.labels.name.show]])], 64))], 64)) : y("", !0), I.value.type === "polar" ? (T(), b(_, { key: 1 }, [J(e) && z.value.dataLabels.show ? (T(), b("circle", {
2015
+ key: 0,
2016
+ cx: k(g)({
2017
+ initX: q.value[n].middlePoint.x,
2018
+ initY: q.value[n].middlePoint.y,
2019
+ offset: 24,
2020
+ centerX: B.value.width / 2,
2021
+ centerY: B.value.height / 2
2022
+ }).x,
2023
+ cy: k(g)({
2024
+ initX: q.value[n].middlePoint.x,
2025
+ initY: q.value[n].middlePoint.y,
2026
+ offset: 24,
2027
+ centerX: B.value.width / 2,
2028
+ centerY: B.value.height / 2
2029
+ }).y,
2030
+ fill: e.color,
2031
+ stroke: I.value.style.chart.backgroundColor,
2032
+ "stroke-width": 1,
2033
+ r: 3,
2034
+ filter: !I.value.useBlurOnHover || [null, void 0].includes(F.value) || F.value === n ? "" : `url(#blur_${P.value})`,
2035
+ onClick: (t) => $(e, n),
2036
+ onMouseenter: (t) => Q({
2037
+ datapoint: e,
2038
+ relativeIndex: n,
2039
+ seriesIndex: e.seriesIndex,
2040
+ show: !0
2041
+ }),
2042
+ onMouseleave: (t) => Z({
2043
+ datapoint: e,
2044
+ seriesIndex: e.seriesIndex
2045
+ }),
2046
+ style: w({ transition: L.value || !I.value.serieToggleAnimation.show ? "none" : `all ${I.value.serieToggleAnimation.durationMs}ms ease-in-out` })
2047
+ }, null, 44, ln)) : y("", !0), I.value.style.chart.layout.labels.dataLabels.oneLine ? Qe((T(), b("text", {
2048
+ key: 1,
2049
+ class: "vue-data-ui-datalabel-inline",
2050
+ "text-anchor": $r(q.value[n].middlePoint),
2051
+ x: k(g)({
2052
+ initX: q.value[n].middlePoint.x,
2053
+ initY: q.value[n].middlePoint.y,
2054
+ offset: 42,
2055
+ centerX: B.value.width / 2,
2056
+ centerY: B.value.height / 2
2057
+ }).x,
2058
+ y: k(g)({
2059
+ initX: q.value[n].middlePoint.x,
2060
+ initY: q.value[n].middlePoint.y,
2061
+ offset: 42,
2062
+ centerX: B.value.width / 2,
2063
+ centerY: B.value.height / 2
2064
+ }).y,
2065
+ style: w({ transition: L.value || !I.value.serieToggleAnimation.show ? "none" : `all ${I.value.serieToggleAnimation.durationMs}ms ease-in-out` }),
2066
+ onClick: (t) => $(e, n),
2067
+ onMouseenter: (t) => Q({
2068
+ datapoint: e,
2069
+ relativeIndex: n,
2070
+ seriesIndex: e.seriesIndex,
2071
+ show: !0
2072
+ }),
2073
+ onMouseleave: (t) => Z({
2074
+ datapoint: e,
2075
+ seriesIndex: e.seriesIndex
2076
+ }),
2077
+ innerHTML: di(e, n)
2078
+ }, null, 44, un)), [[Xe, J(e) && z.value.dataLabels.show]]) : (T(), b(_, { key: 2 }, [J(e) && z.value.dataLabels.show ? (T(), b("text", {
2079
+ key: 0,
2080
+ class: "vue-data-ui-datalabel-value",
2081
+ "text-anchor": $r(q.value[n].middlePoint),
2082
+ x: k(g)({
2083
+ initX: q.value[n].middlePoint.x,
2084
+ initY: q.value[n].middlePoint.y,
2085
+ offset: 42,
2086
+ centerX: B.value.width / 2,
2087
+ centerY: B.value.height / 2
2088
+ }).x,
2089
+ y: k(g)({
2090
+ initX: q.value[n].middlePoint.x,
2091
+ initY: q.value[n].middlePoint.y,
2092
+ offset: 42,
2093
+ centerX: B.value.width / 2,
2094
+ centerY: B.value.height / 2
2095
+ }).y,
2096
+ fill: I.value.style.chart.layout.labels.percentage.color,
2097
+ "font-size": nr.value,
2098
+ style: w({
2099
+ transition: L.value || !I.value.serieToggleAnimation.show ? "none" : `all ${I.value.serieToggleAnimation.durationMs}ms ease-in-out`,
2100
+ fontWeight: I.value.style.chart.layout.labels.percentage.bold ? "bold" : "normal"
2101
+ }),
2102
+ onClick: (t) => $(e, n),
2103
+ onMouseenter: (t) => Q({
2104
+ datapoint: e,
2105
+ relativeIndex: n,
2106
+ seriesIndex: e.seriesIndex,
2107
+ show: !0
2108
+ }),
2109
+ onMouseleave: (t) => Z({
2110
+ datapoint: e,
2111
+ seriesIndex: e.seriesIndex
2112
+ })
2113
+ }, qe(Si(e)), 45, dn)) : y("", !0), J(e, !0, 12) && z.value.dataLabels.show && I.value.style.chart.layout.labels.name.show ? (T(), b("text", {
2114
+ key: 1,
2115
+ class: "vue-data-ui-datalabel-name",
2116
+ "text-anchor": $r(q.value[n].middlePoint),
2117
+ x: k(g)({
2118
+ initX: q.value[n].middlePoint.x,
2119
+ initY: q.value[n].middlePoint.y,
2120
+ offset: 42,
2121
+ centerX: B.value.width / 2,
2122
+ centerY: B.value.height / 2
2123
+ }).x,
2124
+ y: k(g)({
2125
+ initX: q.value[n].middlePoint.x,
2126
+ initY: q.value[n].middlePoint.y,
2127
+ offset: 42,
2128
+ centerX: B.value.width / 2,
2129
+ centerY: B.value.height / 2
2130
+ }).y + N.value * 1.2,
2131
+ fill: I.value.style.chart.layout.labels.name.color,
2132
+ "font-size": N.value,
2133
+ style: w({
2134
+ transition: L.value || !I.value.serieToggleAnimation.show ? "none" : `all ${I.value.serieToggleAnimation.durationMs}ms ease-in-out`,
2135
+ fontWeight: I.value.style.chart.layout.labels.name.bold ? "bold" : "normal"
2136
+ }),
2137
+ onClick: (t) => $(e, n),
2138
+ onMouseenter: (t) => Q({
2139
+ datapoint: e,
2140
+ relativeIndex: n,
2141
+ seriesIndex: e.seriesIndex,
2142
+ show: !0
2143
+ }),
2144
+ onMouseleave: (t) => Z({
2145
+ datapoint: e,
2146
+ seriesIndex: e.seriesIndex
2147
+ }),
2148
+ innerHTML: k(ne)({
2149
+ content: e.name,
2150
+ fontSize: N.value,
2151
+ fill: I.value.style.chart.layout.labels.name.color,
2152
+ x: k(g)({
2153
+ initX: q.value[n].middlePoint.x,
2154
+ initY: q.value[n].middlePoint.y,
2155
+ offset: 42,
2156
+ centerX: B.value.width / 2,
2157
+ centerY: B.value.height / 2
2158
+ }).x,
2159
+ y: k(g)({
2160
+ initX: q.value[n].middlePoint.x,
2161
+ initY: q.value[n].middlePoint.y,
2162
+ offset: 42,
2163
+ centerX: B.value.width / 2,
2164
+ centerY: B.value.height / 2
2165
+ }).y + N.value * 1.2
2166
+ })
2167
+ }, null, 44, fn)) : y("", !0)], 64))], 64)) : y("", !0)])), z.value.dataLabels.show && I.value.style.chart.comments.show && e.comment ? (T(), b("g", pn, [J(e) && I.value.type === "classic" ? (T(), b("foreignObject", {
2168
+ key: 0,
2169
+ x: I.value.style.chart.comments.offsetX + (k(h)(e, !0).anchor === "end" ? k(h)(e).x - I.value.style.chart.comments.width : k(h)(e, !0).anchor === "middle" ? k(h)(e).x - I.value.style.chart.comments.width / 2 : k(h)(e).x),
2170
+ y: k(f)(e) + 24 + I.value.style.chart.comments.offsetY,
2171
+ width: I.value.style.chart.comments.width,
2172
+ height: "200",
2173
+ style: {
2174
+ overflow: "visible",
2175
+ "pointer-events": "none"
2176
+ }
2177
+ }, [x("div", null, [O(t.$slots, "plot-comment", { plot: {
2178
+ ...e,
2179
+ textAlign: k(h)(e, !0, 16, !0).anchor,
2180
+ flexAlign: k(h)(e, !0, 16).anchor,
2181
+ isFirstLoad: L.value
2182
+ } }, void 0, !0)])], 8, mn)) : y("", !0), J(e) && I.value.type === "polar" ? (T(), b("foreignObject", {
2183
+ key: 1,
2184
+ x: I.value.style.chart.comments.offsetX + ($r(q.value[n].middlePoint) === "end" ? k(g)({
2185
+ initX: q.value[n].middlePoint.x,
2186
+ initY: q.value[n].middlePoint.y,
2187
+ offset: 42,
2188
+ centerX: B.value.width / 2,
2189
+ centerY: B.value.height / 2
2190
+ }).x - I.value.style.chart.comments.width : $r(q.value[n].middlePoint) === "middle" ? k(g)({
2191
+ initX: q.value[n].middlePoint.x,
2192
+ initY: q.value[n].middlePoint.y,
2193
+ offset: 42,
2194
+ centerX: B.value.width / 2,
2195
+ centerY: B.value.height / 2
2196
+ }).x - I.value.style.chart.comments.width / 2 : k(g)({
2197
+ initX: q.value[n].middlePoint.x,
2198
+ initY: q.value[n].middlePoint.y,
2199
+ offset: 42,
2200
+ centerX: B.value.width / 2,
2201
+ centerY: B.value.height / 2
2202
+ }).x),
2203
+ y: ei(q.value[n]) + I.value.style.chart.comments.offsetY,
2204
+ width: I.value.style.chart.comments.width,
2205
+ height: "200",
2206
+ style: w({
2207
+ transition: L.value || !I.value.serieToggleAnimation.show ? "none" : `all ${I.value.serieToggleAnimation.durationMs}ms ease-in-out`,
2208
+ overflow: "visible",
2209
+ pointerEvents: "none"
2210
+ })
2211
+ }, [x("div", null, [O(t.$slots, "plot-comment", { plot: {
2212
+ ...e,
2213
+ textAlign: $r(q.value[n].middlePoint),
2214
+ flexAlign: $r(q.value[n].middlePoint),
2215
+ isFirstLoad: L.value
2216
+ } }, void 0, !0)])], 12, hn)) : y("", !0)])) : y("", !0)], 10, en))), 128)),
2217
+ O(t.$slots, "svg", { svg: {
2218
+ ...B.value,
2219
+ datapoints: G.value,
2220
+ isPrintingImg: k(kr) || k(Ar) || Xn.value,
2221
+ isPrintingSvg: Zn.value
2222
+ } }, void 0, !0)
2223
+ ], 512)], 46, at)), t.$slots.hint ? (T(), b("div", gn, [O(t.$slots, "hint", C(S({
2224
+ hint: I.value.a11y.translations.keyboardNavigation,
2225
+ isVisible: tr.value
2226
+ })), void 0, !0)])) : y("", !0)]),
2227
+ t.$slots.watermark ? (T(), b("div", _n, [O(t.$slots, "watermark", C(S({ isPrinting: k(kr) || k(Ar) || Xn.value || Zn.value })), void 0, !0)])) : y("", !0),
2228
+ x("div", { id: `legend-bottom-${P.value}` }, null, 8, vn),
2229
+ qn.value && (I.value.style.chart.legend.show || t.$slots.legend) ? (T(), Fe(Pe, {
2230
+ key: 6,
2231
+ to: I.value.style.chart.legend.position === "top" ? `#legend-top-${P.value}` : `#legend-bottom-${P.value}`
2232
+ }, [x("div", {
2233
+ ref_key: "chartLegend",
2234
+ ref: zn
2235
+ }, [O(t.$slots, "legend", { legend: Yr.value }, () => [I.value.style.chart.legend.show ? (T(), Fe(Ne, {
2236
+ key: `legend_${Kn.value}`,
2237
+ legendSet: Yr.value,
2238
+ config: Xr.value,
2239
+ onClickMarker: n[3] ||= ({ i: e }) => Ur(e),
2240
+ isCursorPointer: pr.value
2241
+ }, Ie({
2242
+ item: A(({ legend: e, index: t }) => [x("div", {
2243
+ style: w(`opacity:${U.value.includes(t) ? .5 : 1}`),
2244
+ onClick: (t) => e.segregate()
2245
+ }, qe(e.display), 13, yn)]),
2246
+ legendToggle: A(() => [Yr.value.length > 2 && I.value.style.chart.legend.selectAllToggle.show && !k(hr) ? (T(), Fe(Ee, {
2247
+ key: 0,
2248
+ backgroundColor: I.value.style.chart.legend.selectAllToggle.backgroundColor,
2249
+ color: I.value.style.chart.legend.selectAllToggle.color,
2250
+ fontSize: I.value.style.chart.legend.fontSize,
2251
+ checked: U.value.length > 0,
2252
+ isCursorPointer: pr.value,
2253
+ onToggle: Hr
2254
+ }, null, 8, [
2255
+ "backgroundColor",
2256
+ "color",
2257
+ "fontSize",
2258
+ "checked",
2259
+ "isCursorPointer"
2260
+ ])) : y("", !0)]),
2261
+ _: 2
2262
+ }, [t.$slots.pattern ? {
2263
+ name: "legend-pattern",
2264
+ fn: A(({ legend: e, index: t }) => [Re(Se, {
2265
+ shape: e.shape,
2266
+ radius: 30,
2267
+ stroke: "none",
2268
+ plot: {
2269
+ x: 30,
2270
+ y: 30
2271
+ },
2272
+ fill: `url(#pattern_${P.value}_${t})`
2273
+ }, null, 8, ["shape", "fill"])]),
2274
+ key: "0"
2275
+ } : void 0]), 1032, [
2276
+ "legendSet",
2277
+ "config",
2278
+ "isCursorPointer"
2279
+ ])) : y("", !0)], !0)], 512)], 8, ["to"])) : y("", !0),
2280
+ t.$slots.source ? (T(), b("div", {
2281
+ key: 7,
2282
+ ref_key: "source",
2283
+ ref: Hn,
2284
+ dir: "auto"
2285
+ }, [O(t.$slots, "source", {}, void 0, !0)], 512)) : y("", !0),
2286
+ t.$slots.hollow ? (T(), b("div", bn, [O(t.$slots, "hollow", C(S({
2287
+ total: X.value,
2288
+ average: ai.value,
2289
+ dataset: V.value,
2290
+ ...B.value
2291
+ })), void 0, !0)])) : y("", !0),
2292
+ Re(k(Sn), {
2293
+ teleportTo: I.value.style.chart.tooltip.teleportTo,
2294
+ show: z.value.showTooltip && lr.value,
2295
+ backgroundColor: I.value.style.chart.tooltip.backgroundColor,
2296
+ color: I.value.style.chart.tooltip.color,
2297
+ fontSize: I.value.style.chart.tooltip.fontSize,
2298
+ borderRadius: I.value.style.chart.tooltip.borderRadius,
2299
+ borderColor: I.value.style.chart.tooltip.borderColor,
2300
+ borderWidth: I.value.style.chart.tooltip.borderWidth,
2301
+ backgroundOpacity: I.value.style.chart.tooltip.backgroundOpacity,
2302
+ position: I.value.style.chart.tooltip.position,
2303
+ offsetX: I.value.style.chart.tooltip.offsetX,
2304
+ offsetY: I.value.style.chart.tooltip.offsetY,
2305
+ parent: M.value,
2306
+ content: ur.value,
2307
+ isCustom: ci.value,
2308
+ isFullscreen: _i.value,
2309
+ smooth: I.value.style.chart.tooltip.smooth,
2310
+ backdropFilter: I.value.style.chart.tooltip.backdropFilter,
2311
+ smoothForce: I.value.style.chart.tooltip.smoothForce,
2312
+ smoothSnapThreshold: I.value.style.chart.tooltip.smoothSnapThrehsold,
2313
+ isA11yMode: er.value === "keyboard",
2314
+ a11yPosition: $n.value
2315
+ }, {
2316
+ "tooltip-before": A(() => [O(t.$slots, "tooltip-before", C(S({ ...si.value })), void 0, !0)]),
2317
+ tooltip: A(() => [O(t.$slots, "tooltip", C(S({ ...si.value })), void 0, !0)]),
2318
+ "tooltip-after": A(() => [O(t.$slots, "tooltip-after", C(S({ ...si.value })), void 0, !0)]),
2319
+ _: 3
2320
+ }, 8, [
2321
+ "teleportTo",
2322
+ "show",
2323
+ "backgroundColor",
2324
+ "color",
2325
+ "fontSize",
2326
+ "borderRadius",
2327
+ "borderColor",
2328
+ "borderWidth",
2329
+ "backgroundOpacity",
2330
+ "position",
2331
+ "offsetX",
2332
+ "offsetY",
2333
+ "parent",
2334
+ "content",
2335
+ "isCustom",
2336
+ "isFullscreen",
2337
+ "smooth",
2338
+ "backdropFilter",
2339
+ "smoothForce",
2340
+ "smoothSnapThreshold",
2341
+ "isA11yMode",
2342
+ "a11yPosition"
2343
+ ]),
2344
+ Pn.value && I.value.userOptions.buttons.table ? (T(), Fe(Ge(Ai.value.component), Be({ key: 9 }, Ai.value.props, {
2345
+ ref_key: "tableUnit",
2346
+ ref: Jn,
2347
+ onClose: ji
2348
+ }), Ie({
2349
+ content: A(() => [(T(), Fe(k(Tn), {
2350
+ key: `table_${Gn.value}`,
2351
+ colNames: gi.value.colNames,
2352
+ head: gi.value.head,
2353
+ body: gi.value.body,
2354
+ config: gi.value.config,
2355
+ title: I.value.table.useDialog ? "" : Ai.value.title,
2356
+ withCloseButton: !I.value.table.useDialog,
2357
+ isCursorPointer: pr.value,
2358
+ onClose: ji
2359
+ }, {
2360
+ th: A(({ th: e }) => [x("div", {
2361
+ innerHTML: e,
2362
+ style: {
2363
+ display: "flex",
2364
+ "align-items": "center"
2365
+ }
2366
+ }, null, 8, xn)]),
2367
+ td: A(({ td: e }) => [Le(qe(e.name ? e.name : isNaN(Number(e)) ? e.includes("%") ? e : k(m)(I.value.style.chart.layout.labels.percentage.formatter, e, k(o)({
2368
+ v: e,
2369
+ s: "%",
2370
+ r: I.value.style.chart.layout.labels.percentage.rounding
2371
+ })) : k(m)(I.value.style.chart.layout.labels.value.formatter, e, k(o)({
2372
+ p: I.value.style.chart.layout.labels.dataLabels.prefix,
2373
+ v: e,
2374
+ s: I.value.style.chart.layout.labels.dataLabels.suffix,
2375
+ r: I.value.style.chart.layout.labels.value.rounding
2376
+ }))), 1)]),
2377
+ _: 1
2378
+ }, 8, [
2379
+ "colNames",
2380
+ "head",
2381
+ "body",
2382
+ "config",
2383
+ "title",
2384
+ "withCloseButton",
2385
+ "isCursorPointer"
2386
+ ]))]),
2387
+ _: 2
2388
+ }, [I.value.table.useDialog ? {
2389
+ name: "title",
2390
+ fn: A(() => [Le(qe(Ai.value.title), 1)]),
2391
+ key: "0"
2392
+ } : void 0, I.value.table.useDialog ? {
2393
+ name: "actions",
2394
+ fn: A(() => [x("button", {
2395
+ tabindex: "0",
2396
+ class: "vue-ui-user-options-button",
2397
+ onClick: n[4] ||= (e) => hi(I.value.userOptions.callbacks.csv),
2398
+ style: w({ cursor: pr.value ? "pointer" : "default" })
2399
+ }, [Re(k(Cn), {
2400
+ name: "fileCsv",
2401
+ stroke: Ai.value.props.color
2402
+ }, null, 8, ["stroke"])], 4)]),
2403
+ key: "1"
2404
+ } : void 0]), 1040)) : y("", !0),
2405
+ O(t.$slots, "skeleton", {}, () => [k(hr) ? (T(), Fe(ge, { key: 0 })) : y("", !0)], !0)
2406
+ ], 46, tt));
2407
+ }
2408
+ }, [["__scopeId", "data-v-568e9c77"]]);
2409
+ //#endregion
2410
+ export { et as n, Sn as t };