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