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