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
@@ -0,0 +1,1487 @@
1
+ import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
+ import { At as t, Bt as n, Ct as r, Dt as i, Et as a, G as o, H as s, J as c, Mt as l, Rt as ee, S as te, X as u, Y as ne, d as re, i as ie, n as ae, nt as oe, pt as se, t as ce, u as le, v as ue, x as de, xt as fe, y as pe } from "./lib-DUeYQsS0.js";
3
+ import { t as me } from "./useConfig-DAyQk86L.js";
4
+ import { t as he } from "./usePrinter-C1Gqt_Sp.js";
5
+ import { n as ge, t as _e } from "./BaseScanner-Dr2a1Msy.js";
6
+ import { t as ve } from "./useSvgExport-SVIsDot8.js";
7
+ import { t as ye } from "./useNestedProp-CNcoy38D.js";
8
+ import { t as be } from "./useThemeCheck-C43Tcqmk.js";
9
+ import { t as xe } from "./img-1cKsci8e.js";
10
+ import { n as Se } from "./Title-NWp4qB4K.js";
11
+ import { t as Ce } from "./_plugin-vue_export-helper-B3ysoDQm.js";
12
+ import { c as we } from "./canvas-lib-BOP_HS11.js";
13
+ import { t as Te } from "./useResponsive-BfnK0KxU.js";
14
+ import { t as Ee } from "./BaseLegendToggle-C_Db-y7s.js";
15
+ import { t as De } from "./A11yDataTable-BCbtxMU6.js";
16
+ import { t as Oe } from "./useUserOptionState-DK-_1ddE.js";
17
+ import { t as ke } from "./useChartAccessibility-DYqac8yF.js";
18
+ import { t as Ae } from "./labelUtils-CUctkYoA.js";
19
+ import { t as je } from "./Legend-Cz2uQ5gs.js";
20
+ import { t as Me } from "./vue_ui_nested_donuts-B8csIoVO.js";
21
+ import { Fragment as d, Teleport as Ne, computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createSlots as Pe, createTextVNode as Fe, createVNode as Ie, defineAsyncComponent as _, guardReactiveProps as v, mergeProps as Le, nextTick as Re, normalizeClass as y, normalizeProps as b, normalizeStyle as ze, onBeforeUnmount as Be, onMounted as Ve, openBlock as x, ref as S, renderList as C, renderSlot as w, resolveDynamicComponent as He, shallowRef as Ue, toDisplayString as T, toRefs as We, unref as E, vShow as Ge, watch as Ke, withCtx as D, withDirectives as qe } from "vue";
22
+ //#region src/components/vue-ui-nested-donuts.vue
23
+ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze = ["id"], Qe = { style: { position: "relative" } }, $e = [
24
+ "xmlns",
25
+ "aria-describedby",
26
+ "viewBox"
27
+ ], et = ["width", "height"], tt = ["id"], nt = ["offset", "stop-color"], rt = ["offset", "stop-opacity"], it = ["id"], at = ["id"], ot = ["id"], st = ["flood-color"], ct = ["id", "d"], lt = [
28
+ "d",
29
+ "fill",
30
+ "stroke",
31
+ "stroke-width",
32
+ "filter"
33
+ ], ut = [
34
+ "d",
35
+ "fill",
36
+ "stroke",
37
+ "stroke-width"
38
+ ], dt = { key: 1 }, ft = ["d", "fill"], pt = { key: 2 }, mt = [
39
+ "font-size",
40
+ "font-weight",
41
+ "fill",
42
+ "dy"
43
+ ], ht = ["href"], gt = [
44
+ "x",
45
+ "y",
46
+ "font-size",
47
+ "font-weight",
48
+ "fill"
49
+ ], _t = { key: 3 }, vt = ["filter"], yt = [
50
+ "opacity",
51
+ "text-anchor",
52
+ "x",
53
+ "y",
54
+ "fill",
55
+ "font-size",
56
+ "font-weight"
57
+ ], bt = [
58
+ "opacity",
59
+ "text-anchor",
60
+ "x",
61
+ "y",
62
+ "fill",
63
+ "font-size",
64
+ "font-weight"
65
+ ], xt = [
66
+ "d",
67
+ "fill",
68
+ "onMouseenter",
69
+ "onClick",
70
+ "onMouseleave"
71
+ ], St = {
72
+ key: 0,
73
+ style: {
74
+ position: "absolute",
75
+ top: "100%",
76
+ left: "0",
77
+ width: "100%"
78
+ },
79
+ "data-dom-to-png-ignore": "",
80
+ "aria-hidden": "true"
81
+ }, Ct = {
82
+ key: 5,
83
+ class: "vue-data-ui-watermark"
84
+ }, wt = ["id"], Tt = {
85
+ key: 0,
86
+ class: "vue-ui-nested-donuts-legend-title"
87
+ }, Et = ["onClick"], Dt = ["innerHTML"], Ot = /* @__PURE__ */ Ce({
88
+ __name: "vue-ui-nested-donuts",
89
+ props: {
90
+ config: {
91
+ type: Object,
92
+ default() {
93
+ return {};
94
+ }
95
+ },
96
+ dataset: {
97
+ type: Array,
98
+ default() {
99
+ return [];
100
+ }
101
+ }
102
+ },
103
+ emits: [
104
+ "selectLegend",
105
+ "selectDatapoint",
106
+ "copyAlt"
107
+ ],
108
+ setup(e, { expose: Ce, emit: Je }) {
109
+ let Ot = _(() => import("./Tooltip-BENq327o.js")), kt = _(() => import("./BaseIcon-DfLoHNUj.js").then((e) => e.n)), At = _(() => import("./vue-ui-accordion-Dw4MHKVB.js").then((e) => e.n)), jt = _(() => import("./DataTable-B--IN22e.js")), Mt = _(() => import("./UserOptions-C1NgoGu6.js").then((e) => e.n)), Nt = _(() => import("./PenAndPaper-DqrClVfb.js").then((e) => e.t)), Pt = _(() => import("./PackageVersion-xcyrdRmY.js").then((e) => e.t)), Ft = _(() => import("./BaseDraggableDialog-4hDW-Rj2.js").then((e) => e.n)), { vue_ui_nested_donuts: It } = me(), { isThemeValid: Lt, warnInvalidTheme: Rt } = be(), O = e, zt = f({
110
+ get() {
111
+ return !!O.dataset && O.dataset.length;
112
+ },
113
+ set(e) {
114
+ return e;
115
+ }
116
+ }), k = S(s()), Bt = S(!1), Vt = S(""), Ht = S(null), Ut = S(0), A = S(null), Wt = S(null), Gt = S(null), Kt = S(null), qt = S(null), Jt = S(0), Yt = S(0), Xt = S(0), j = S(!0), M = S([]), Zt = S([]), Qt = S(!1), $t = S(null), en = S(null), tn = S(!1), nn = S(!1), N = S(null), rn = S({
117
+ x: 0,
118
+ y: 0
119
+ }), an = S("pointer"), on = S(!1), P = S(!1);
120
+ function sn(e) {
121
+ P.value = e, Ut.value += 1;
122
+ }
123
+ let F = S(hn()), I = f(() => F.value.userOptions.useCursorPointer), cn = {
124
+ name: "",
125
+ series: [
126
+ {
127
+ name: "",
128
+ values: [3],
129
+ color: "#BABABA"
130
+ },
131
+ {
132
+ name: "",
133
+ values: [2],
134
+ color: "#AAAAAA"
135
+ },
136
+ {
137
+ name: "",
138
+ values: [1],
139
+ color: "#CACACA"
140
+ }
141
+ ]
142
+ }, ln = f(() => n({
143
+ defaultConfig: {
144
+ useCssAnimation: !1,
145
+ table: { show: !1 },
146
+ startAnimation: { show: !1 },
147
+ userOptions: { show: !1 },
148
+ style: { chart: {
149
+ backgroundColor: "#99999930",
150
+ layout: { labels: { dataLabels: { show: !1 } } },
151
+ legend: {
152
+ backgroundColor: "transparent",
153
+ showValue: !1,
154
+ showPercentage: !1
155
+ },
156
+ title: {
157
+ color: "#1A1A1A",
158
+ subtitle: { color: "#5A5A5A" }
159
+ }
160
+ } }
161
+ },
162
+ userConfig: F.value.skeletonConfig ?? {}
163
+ })), { loading: un, FINAL_DATASET: L, manualLoading: dn } = ge({
164
+ ...We(O),
165
+ FINAL_CONFIG: F,
166
+ prepareConfig: hn,
167
+ callback: () => {
168
+ Promise.resolve().then(async () => {
169
+ await vn();
170
+ });
171
+ },
172
+ skeletonDataset: O.config?.skeletonDataset ?? [cn, cn],
173
+ skeletonConfig: n({
174
+ defaultConfig: F.value,
175
+ userConfig: ln.value
176
+ })
177
+ }), { userOptionsVisible: fn, setUserOptionsVisibility: pn, keepUserOptionState: mn } = Oe({ config: F.value }), { svgRef: R } = ke({ config: F.value.style.chart.title });
178
+ function hn() {
179
+ let e = ye({
180
+ userConfig: O.config,
181
+ defaultConfig: It
182
+ }), t = {}, n = e.theme;
183
+ if (n) if (!Lt.value(e)) Rt(e), t = e;
184
+ else {
185
+ let r = ye({
186
+ userConfig: Me[n] || O.config,
187
+ defaultConfig: e
188
+ });
189
+ t = {
190
+ ...ye({
191
+ userConfig: O.config,
192
+ defaultConfig: r
193
+ }),
194
+ customPalette: e.customPalette.length ? e.customPalette : ee[n] || a
195
+ };
196
+ }
197
+ else t = e;
198
+ return t;
199
+ }
200
+ Ke(() => O.config, (e) => {
201
+ un.value || (F.value = hn()), fn.value = !F.value.userOptions.showOnChartHover, xn(), Jt.value += 1, Yt.value += 1, Xt.value += 1, B.value.dataLabels.show = F.value.style.chart.layout.labels.dataLabels.show, B.value.showTable = F.value.table.show, B.value.showTooltip = F.value.style.chart.tooltip.show, V.value.width = F.value.style.chart.width, V.value.height = F.value.style.chart.height;
202
+ }, { deep: !0 });
203
+ let gn = f(() => {
204
+ let { top: e, right: t, bottom: n, left: r } = F.value.style.chart.padding;
205
+ return {
206
+ css: `padding:${e}px ${t}px ${n}px ${r}px`,
207
+ top: e,
208
+ right: t,
209
+ bottom: n,
210
+ left: r
211
+ };
212
+ });
213
+ function _n(e, n = 1e3, r = 50) {
214
+ return new Promise((i) => {
215
+ let a = e.length;
216
+ M.value = Array(a).fill(0), Zt.value = [];
217
+ let o = 0;
218
+ e.forEach((e, s) => {
219
+ setTimeout(() => {
220
+ let r = performance.now();
221
+ function c(l) {
222
+ let ee = Math.min((l - r) / n, 1), te = e * ne(ee);
223
+ M.value[s] = te, M.value = [...M.value];
224
+ let u = [], re = 0;
225
+ O.dataset.forEach((e, n) => {
226
+ let r = ue(e.series.reduce((e, n) => e + ue(t(n.values).reduce((e, t) => e + t, 0)), 0)) - ue(M.value.slice(re, re + e.series.length).reduce((e, t) => e + t, 0));
227
+ r > Number.MIN_VALUE && u.push({
228
+ name: "__ghost__",
229
+ arcOf: e.name,
230
+ arcOfId: `${k.value}_${n}`,
231
+ id: `ghost_${k.value}_${n}`,
232
+ seriesIndex: -1,
233
+ datasetIndex: n,
234
+ color: "transparent",
235
+ value: r,
236
+ fullValue: r,
237
+ absoluteValues: [],
238
+ ghost: !0
239
+ }), re += e.series.length;
240
+ }), Zt.value = u, ee < 1 ? requestAnimationFrame(c) : (o += 1, o === a && i());
241
+ }
242
+ requestAnimationFrame(c);
243
+ }, s * r);
244
+ });
245
+ });
246
+ }
247
+ async function vn() {
248
+ if (F.value.startAnimation?.show) {
249
+ let e = L.value.flatMap((e) => e.series).map((e) => t(e.values).reduce((e, t) => e + t, 0));
250
+ M.value = e.map(() => 0), j.value = !0, Zt.value = L.value.map((e, n) => {
251
+ let r = e.series.reduce((e, n) => e + t(n.values).reduce((e, t) => e + t, 0), 0);
252
+ return {
253
+ name: "__ghost__",
254
+ arcOf: e.name,
255
+ arcOfId: `${k.value}_${n}`,
256
+ id: `ghost_${k.value}_${n}`,
257
+ seriesIndex: -1,
258
+ datasetIndex: n,
259
+ color: "transparent",
260
+ value: r,
261
+ fullValue: r,
262
+ absoluteValues: [],
263
+ ghost: !0
264
+ };
265
+ }), await Re(), _n(e, F.value.startAnimation.durationMs, F.value.startAnimation.staggerMs).then(() => {
266
+ j.value = !1, Zt.value = [];
267
+ });
268
+ } else j.value = !1;
269
+ }
270
+ Ve(async () => {
271
+ Qt.value = !0, xn(), await vn();
272
+ });
273
+ let z = Ue(null), yn = Ue(null), bn = f(() => !!F.value.debug);
274
+ function xn() {
275
+ if (r(O.dataset) ? (u({
276
+ componentName: "VueUiNestedDonuts",
277
+ type: "dataset",
278
+ debug: bn.value
279
+ }), zt.value = !1, dn.value = !0) : dn.value = F.value.loading, F.value.responsive) {
280
+ let e = we(() => {
281
+ let { width: e, height: t } = Te({
282
+ chart: A.value,
283
+ title: F.value.style.chart.title.text ? Wt.value : null,
284
+ legend: F.value.style.chart.legend.show ? Gt.value : null,
285
+ source: Kt.value,
286
+ noTitle: qt.value,
287
+ padding: gn.value
288
+ });
289
+ requestAnimationFrame(() => {
290
+ V.value.width = e, V.value.height = t;
291
+ });
292
+ });
293
+ z.value && (yn.value && z.value.unobserve(yn.value), z.value.disconnect()), z.value = new ResizeObserver(e), yn.value = A.value.parentNode, z.value.observe(yn.value);
294
+ }
295
+ }
296
+ Be(() => {
297
+ z.value && (yn.value && z.value.unobserve(yn.value), z.value.disconnect());
298
+ });
299
+ let { isPrinting: Sn, isImaging: Cn, generatePdf: wn, generateImage: Tn } = he({
300
+ elementId: `nested_donuts_${k.value}`,
301
+ fileName: F.value.style.chart.title.text || "vue-ui-nested-donuts",
302
+ options: F.value.userOptions.print
303
+ }), En = f(() => F.value.userOptions.show && !F.value.style.chart.title.text), Dn = f(() => de(F.value.customPalette)), B = S({
304
+ dataLabels: { show: F.value.style.chart.layout.labels.dataLabels.show },
305
+ showTable: F.value.table.show,
306
+ showTooltip: F.value.style.chart.tooltip.show
307
+ });
308
+ Ke(F, () => {
309
+ B.value = {
310
+ dataLabels: { show: F.value.style.chart.layout.labels.dataLabels.show },
311
+ showTable: F.value.table.show,
312
+ showTooltip: F.value.style.chart.tooltip.show
313
+ };
314
+ }, { immediate: !0 });
315
+ let V = S({
316
+ width: F.value.style.chart.width,
317
+ height: F.value.style.chart.height
318
+ }), H = Je;
319
+ function On({ datapoint: e, index: t, seriesIndex: n }) {
320
+ F.value.events.datapointClick && F.value.events.datapointClick({
321
+ datapoint: e,
322
+ seriesIndex: n
323
+ }), H("selectDatapoint", {
324
+ datapoint: e,
325
+ index: t
326
+ });
327
+ }
328
+ function kn({ from: e, to: t, duration: n, onUpdate: r, onDone: i, easing: a = ne }) {
329
+ let o = performance.now();
330
+ function s(c) {
331
+ let l = Math.min((c - o) / n, 1), ee = a(l);
332
+ r(e + (t - e) * ee, l), l < 1 ? requestAnimationFrame(s) : (r(t, 1), i && i());
333
+ }
334
+ requestAnimationFrame(s);
335
+ }
336
+ let U = S([]), W = f(() => {
337
+ un.value, L.value.forEach((e, t) => {
338
+ [null, void 0].includes(e.name) && u({
339
+ componentName: "VueUiNestedDonuts",
340
+ type: "datasetSerieAttribute",
341
+ property: "name",
342
+ index: t,
343
+ debug: bn.value
344
+ }), [null, void 0].includes(e.series) ? u({
345
+ componentName: "VueUiNestedDonuts",
346
+ type: "datasetSerieAttribute",
347
+ property: "series",
348
+ index: t,
349
+ debug: bn.value
350
+ }) : e.series.length === 0 ? u({
351
+ componentName: "VueUiNestedDonuts",
352
+ type: "datasetAttributeEmpty",
353
+ property: `series at index ${t}`,
354
+ debug: bn.value
355
+ }) : e.series.forEach((e, t) => {
356
+ [null, void 0].includes(e.name) && u({
357
+ componentName: "VueUiNestedDonuts",
358
+ type: "datasetSerieAttribute",
359
+ property: "name",
360
+ index: t,
361
+ key: "serie",
362
+ debug: bn.value
363
+ }), [null, void 0].includes(e.values) && u({
364
+ componentName: "VueUiNestedDonuts",
365
+ type: "datasetSerieAttribute",
366
+ property: "values",
367
+ index: t,
368
+ key: "serie",
369
+ debug: bn.value
370
+ });
371
+ });
372
+ });
373
+ let e = 0;
374
+ return L.value.map((n, r) => ({
375
+ ...n,
376
+ total: n.series.filter((e) => !U.value.includes(e.id)).map((e) => t(e.values).reduce((e, t) => e + t, 0)).reduce((e, t) => e + t, 0),
377
+ datasetIndex: r,
378
+ id: `${k.value}_${r}`,
379
+ series: n.series.map((i, o) => {
380
+ let s = t(i.values).reduce((e, t) => e + t, 0);
381
+ return {
382
+ name: i.name,
383
+ arcOf: n.name,
384
+ arcOfId: `${k.value}_${r}`,
385
+ id: `${k.value}_${r}_${o}`,
386
+ seriesIndex: o,
387
+ datasetIndex: r,
388
+ color: pe(i.color) || Dn.value[o] || a[o % a.length],
389
+ value: j.value ? M.value[e++] ?? 0 : s,
390
+ absoluteValues: i.values || []
391
+ };
392
+ })
393
+ }));
394
+ });
395
+ Ke(() => O.dataset, (e) => {
396
+ Array.isArray(e) && e.length > 0 && (dn.value = !1);
397
+ }, { immediate: !0 });
398
+ let G = f(() => Math.min(V.value.height, V.value.width) * (F.value.style.chart.layout.donut.strokeWidth / 512)), K = f(() => [...W.value].map((e, t) => {
399
+ let n = e.series.filter((e) => !U.value.includes(e.id)).map((e) => e.value).reduce((e, t) => e + t, 0);
400
+ return {
401
+ ...e,
402
+ total: n,
403
+ series: e.series.filter((e) => !U.value.includes(e.id)).map((e) => ({
404
+ ...e,
405
+ proportion: e.value / n
406
+ }))
407
+ };
408
+ }));
409
+ function An(e, t, n) {
410
+ let r = 0;
411
+ for (let t = 0; t < e.length; t += 1) n.includes(e[t]) && (r += 1);
412
+ return r < t;
413
+ }
414
+ let q = S(K.value);
415
+ Ke(() => K.value, (e) => q.value = e);
416
+ function jn(e) {
417
+ let t = e.map((e) => e.id);
418
+ if (e.some((e) => U.value.includes(e.id))) {
419
+ let e = new Set(t);
420
+ U.value = U.value.filter((t) => !e.has(t));
421
+ } else U.value.push(...t);
422
+ H("selectLegend", K.value);
423
+ }
424
+ function J(e) {
425
+ let n = O.dataset.flatMap((e, n) => e.series.map((e, r) => ({
426
+ value: t(e.values).reduce((e, t) => e + t, 0),
427
+ id: `${k.value}_${n}_${r}`,
428
+ arcOfId: `${k.value}_${n}`
429
+ }))).find((t) => t.id === e.id);
430
+ if (!n) return;
431
+ let r = W.value.flatMap((e) => e.series).find((t) => t.id === e.id)?.value ?? 0, i = q.value.flatMap((e) => e.series).find((t) => t.id === e.id), a = i ? i.value : 0, o = W.value.find((e) => e.id === n.arcOfId);
432
+ if (!o) return;
433
+ let s = o.series.map((e) => e.id), c = An(s, s.length - 1, U.value);
434
+ U.value.includes(e.id) ? (U.value = U.value.filter((t) => t !== e.id), F.value.serieToggleAnimation.show ? kn({
435
+ from: a,
436
+ to: r,
437
+ duration: F.value.serieToggleAnimation.durationMs,
438
+ onUpdate: (t) => {
439
+ q.value = q.value.map((n) => ({
440
+ ...n,
441
+ series: n.series.map((n) => n.id === e.id ? {
442
+ ...n,
443
+ value: t
444
+ } : n)
445
+ }));
446
+ },
447
+ onDone: () => {
448
+ H("selectLegend", K.value);
449
+ }
450
+ }) : (q.value = q.value.map((t) => ({
451
+ ...t,
452
+ series: t.series.map((t) => t.id === e.id ? {
453
+ ...t,
454
+ value: r
455
+ } : t)
456
+ })), H("selectLegend", K.value))) : c && (F.value.serieToggleAnimation.show ? kn({
457
+ from: a,
458
+ to: 0,
459
+ duration: F.value.serieToggleAnimation.durationMs,
460
+ onUpdate: (t) => {
461
+ q.value = q.value.map((n) => ({
462
+ ...n,
463
+ series: n.series.map((n) => n.id === e.id ? {
464
+ ...n,
465
+ value: t
466
+ } : n)
467
+ }));
468
+ },
469
+ onDone: () => {
470
+ U.value.push(e.id), H("selectLegend", K.value);
471
+ }
472
+ }) : (q.value = q.value.map((t) => ({
473
+ ...t,
474
+ series: t.series.map((t) => t.id === e.id ? {
475
+ ...t,
476
+ value: 0
477
+ } : t)
478
+ })), U.value.push(e.id), H("selectLegend", K.value)));
479
+ }
480
+ function Mn(e) {
481
+ return W.value.length ? W.value.flatMap((e) => e.series).filter((t) => t.name === e) || (F.value.debug && console.warn(`VueUiNestedDonuts - Series name not found "${e}"`), null) : (F.value.debug && console.warn("VueUiNestedDonuts - There are no series to show."), null);
482
+ }
483
+ function Nn(e) {
484
+ let t = Mn(e);
485
+ t !== null && (Array.isArray(t) ? t.forEach((e) => {
486
+ U.value.includes(e.id) && J({ id: e.id });
487
+ }) : U.value.includes(t.id) && J({ id: t.id }));
488
+ }
489
+ function Pn(e) {
490
+ let t = Mn(e);
491
+ t !== null && (Array.isArray(t) ? t.forEach((e) => {
492
+ U.value.includes(e.id) || J({ id: e.id });
493
+ }) : U.value.includes(t.id) || J({ id: t.id }));
494
+ }
495
+ let Fn = f(() => G.value / W.value.length * F.value.style.chart.layout.donut.spacingRatio), In = f(() => q.value.map((e, t) => G.value - t * G.value / W.value.length)), Y = f(() => q.value.map((e, t) => {
496
+ let n = Math.abs(e.series.map((e) => e.value).reduce((e, t) => e + t, 0)) > 0, r = G.value - t * G.value / q.value.length, i = j.value ? Zt.value.find((e) => e.datasetIndex === t) : null, a = [...e.series, ...i ? [i] : []].map((e) => ({
497
+ ...e,
498
+ value: e.value < 1e-11 ? Number.MIN_VALUE : e.value
499
+ })), o = fe({ series: [{
500
+ name: "_",
501
+ color: F.value.style.chart.layout.donut.emptyFill,
502
+ value: 1
503
+ }] }, V.value.width / 2, V.value.height / 2, r, r, 1.99999, 2, 1, 360, 105.25, Fn.value), s = `M ${V.value.width / 2},${V.value.height / 2 + r}
504
+ a ${r},${r} 0 1,1 0,${-2 * r}
505
+ a ${r},${r} 0 1,1 0,${2 * r}`;
506
+ return {
507
+ ...e,
508
+ hasData: n,
509
+ radius: r,
510
+ skeleton: o,
511
+ fullCirclePath: s,
512
+ donut: fe({ series: a }, V.value.width / 2, V.value.height / 2, r, r, 1.99999, 2, 1, 360, 105.25, Fn.value)
513
+ };
514
+ })), Ln = f(() => [...W.value].map((e, t) => {
515
+ let n = t * G.value / W.value.length;
516
+ return {
517
+ sizeRatio: n,
518
+ donut: fe({ series: [{ value: 1 }] }, V.value.width / 2, V.value.height / 2, G.value - n, G.value - n, 1.99999, 2, 1, 360, 105.25, G.value / W.value.length * F.value.style.chart.layout.donut.spacingRatio)[0]
519
+ };
520
+ })), Rn = S(null), X = S(null), Z = S(null), zn = S(null);
521
+ function Bn({ datapoint: e, seriesIndex: t }) {
522
+ F.value.events.datapointLeave && F.value.events.datapointLeave({
523
+ datapoint: e,
524
+ seriesIndex: t
525
+ }), Bt.value = !1, Rn.value = null, Ht.value = null, X.value = null, Z.value = null, N.value = null, an.value = "pointer";
526
+ }
527
+ function Vn({ val: e, percentage: t, showVal: n, showPercentage: r, config: i }) {
528
+ return Ae({
529
+ config: i,
530
+ val: e,
531
+ percentage: t,
532
+ showVal: n,
533
+ showPercentage: r
534
+ });
535
+ }
536
+ function Hn({ datapoint: e, _relativeIndex: t, seriesIndex: n, triggerMode: r = "pointer" }) {
537
+ F.value.events.datapointEnter && F.value.events.datapointEnter({
538
+ datapoint: e,
539
+ seriesIndex: n
540
+ }), an.value = r, N.value = n, Rn.value = e.arcOfId, X.value = e.id, Z.value = n, Ht.value = e.id, zn.value = {
541
+ datapoint: e,
542
+ seriesIndex: n,
543
+ series: q.value,
544
+ config: F.value
545
+ };
546
+ let i = F.value.style.chart.tooltip.customFormat;
547
+ if (se(i) && oe(() => i({
548
+ seriesIndex: n,
549
+ datapoint: e,
550
+ series: q.value,
551
+ config: F.value
552
+ }))) Vt.value = i({
553
+ seriesIndex: n,
554
+ datapoint: e,
555
+ series: q.value,
556
+ config: F.value
557
+ });
558
+ else {
559
+ let t = "";
560
+ if (F.value.style.chart.tooltip.showAllItemsAtIndex && U.value.length === 0) {
561
+ let r = q.value.map((e) => e.series.find((e) => e.seriesIndex === n));
562
+ r.forEach((i, a) => {
563
+ if (!i) return "";
564
+ t += `
565
+ <div style="display:flex; flex-direction: column; justify-content:flex-start; align-items:flex-start;padding:6px 0; ${a < r.length - 1 ? `border-bottom:1px solid ${F.value.style.chart.tooltip.borderColor}` : ""}">
566
+ <div style="display:flex; flex-direction: row; gap: 3px; justify-content:flex-start; align-items:center;">
567
+ <svg viewBox="0 0 20 20" height="${F.value.style.chart.tooltip.fontSize}" width="${F.value.style.chart.tooltip.fontSize}">
568
+ <circle cx="10" cy="10" r="10" fill="${i.color}"/>
569
+ </svg>
570
+ <span>
571
+ ${i.arcOf ?? ""} - ${i.name}
572
+ </span>
573
+ </div>
574
+ <span>
575
+ <b>
576
+ ${Vn({
577
+ config: F.value.style.chart.tooltip,
578
+ showVal: F.value.style.chart.tooltip.showValue,
579
+ showPercentage: F.value.style.chart.tooltip.showPercentage,
580
+ val: ie(F.value.style.chart.layout.labels.dataLabels.formatter, e.value, o({
581
+ p: F.value.style.chart.layout.labels.dataLabels.prefix,
582
+ v: e.value,
583
+ s: F.value.style.chart.layout.labels.dataLabels.suffix,
584
+ r: F.value.style.chart.tooltip.roundingValue
585
+ }), {
586
+ datapoint: e,
587
+ seriesIndex: n
588
+ }),
589
+ percentage: o({
590
+ v: i.proportion * 100,
591
+ s: "%",
592
+ r: F.value.style.chart.tooltip.roundingPercentage
593
+ })
594
+ })}
595
+ </b>
596
+ </span>
597
+ </div>
598
+ `;
599
+ });
600
+ } else t += `<div style="width:100%;text-align:center;border-bottom:1px solid ${F.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${e.arcOf ?? ""} - ${e.name}</div>`, t += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${e.color}"/></svg>`, F.value.style.chart.tooltip.showValue && (t += `<b>${ie(F.value.style.chart.layout.labels.dataLabels.formatter, e.value, o({
601
+ p: F.value.style.chart.layout.labels.dataLabels.prefix,
602
+ v: e.value,
603
+ s: F.value.style.chart.layout.labels.dataLabels.suffix,
604
+ r: F.value.style.chart.tooltip.roundingValue
605
+ }), {
606
+ datapoint: e,
607
+ seriesIndex: n
608
+ })}</b>`), F.value.style.chart.tooltip.showPercentage && (F.value.style.chart.tooltip.showValue ? t += `<span>(${o({
609
+ v: e.proportion * 100,
610
+ s: "%",
611
+ r: F.value.style.chart.tooltip.roundingPercentage
612
+ })})</span></div>` : t += `<b>${o({
613
+ v: e.proportion * 100,
614
+ s: "%",
615
+ r: F.value.style.chart.tooltip.roundingPercentage
616
+ })}</b></div>`);
617
+ Vt.value = `<div style="font-size:${F.value.style.chart.tooltip.fontSize}px">${t}</div>`;
618
+ }
619
+ Bt.value = !0;
620
+ }
621
+ function Un(e) {
622
+ return e.proportion * 100 > F.value.style.chart.layout.labels.dataLabels.hideUnderValue;
623
+ }
624
+ function Wn(e, t) {
625
+ if (!F.value.useBlurOnHover) return "";
626
+ if (F.value.style.chart.tooltip.showAllItemsAtIndex && U.value.length === 0) return [null, void 0].includes(Z.value) || Z.value === t ? "" : `url(#blur_${k.value})`;
627
+ if (!F.value.style.chart.tooltip.showAllItemsAtIndex || U.value.length) return [null, void 0].includes(X.value) || X.value === e.id ? "" : `url(#blur_${k.value})`;
628
+ }
629
+ let Gn = f(() => W.value.map((e, n) => {
630
+ let r = e.series.filter((e) => !U.value.includes(e.id)), i = j.value ? r.map((e) => {
631
+ let r = L.value[n].series.findIndex((t) => t.name === e.name);
632
+ return t(L.value[n].series[r].values).reduce((e, t) => e + t, 0);
633
+ }).reduce((e, t) => e + t, 0) : r.map((e) => e.value).reduce((e, t) => e + t, 0);
634
+ return e.series.map((e, r) => {
635
+ let a = t(L.value[n].series[r].values).reduce((e, t) => e + t, 0), s = j.value ? a : e.value, c = Vn({
636
+ val: ie(F.value.style.chart.layout.labels.dataLabels.formatter, s, o({
637
+ p: F.value.style.chart.layout.labels.dataLabels.prefix,
638
+ v: s,
639
+ s: F.value.style.chart.layout.labels.dataLabels.suffix,
640
+ r: F.value.style.chart.legend.roundingValue
641
+ }), {
642
+ datapoint: e,
643
+ seriesIndex: r
644
+ }),
645
+ percentage: isNaN(s / i) || U.value.includes(e.id) ? "-" : o({
646
+ v: s / i * 100,
647
+ s: "%",
648
+ r: F.value.style.chart.legend.roundingPercentage
649
+ }),
650
+ showVal: F.value.style.chart.legend.showValue,
651
+ showPercentage: F.value.style.chart.legend.showPercentage,
652
+ config: F.value.style.chart.legend
653
+ }), l = `${e.name}${F.value.style.chart.legend.showPercentage || F.value.style.chart.legend.showValue ? ": " : ""}${c}`;
654
+ return {
655
+ name: e.name,
656
+ color: e.color,
657
+ value: s,
658
+ display: l,
659
+ svgDisplay: `${e.arcOf ? `${e.arcOf} - ` : ""}${l}`,
660
+ shape: "circle",
661
+ arcOf: e.arcOf,
662
+ id: e.id,
663
+ seriesIndex: r,
664
+ datasetIndex: n,
665
+ total: i,
666
+ opacity: U.value.includes(e.id) ? .5 : 1,
667
+ segregate: () => J(e),
668
+ isSegregated: U.value.includes(e.id)
669
+ };
670
+ });
671
+ })), Kn = f(() => ({
672
+ cy: "nested-donuts-legend",
673
+ backgroundColor: F.value.style.chart.legend.backgroundColor,
674
+ color: F.value.style.chart.legend.color,
675
+ fontSize: F.value.style.chart.legend.fontSize,
676
+ paddingBottom: 12,
677
+ fontWeight: F.value.style.chart.legend.bold ? "bold" : ""
678
+ })), Q = f(() => ({
679
+ head: q.value.flatMap((e) => e.series.map((t) => ({
680
+ name: `${e.name} - ${t.name}`,
681
+ color: t.color,
682
+ total: e.total
683
+ }))),
684
+ body: q.value.flatMap((e) => e.series.map((e) => e.value))
685
+ }));
686
+ function qn(e = null) {
687
+ Re(() => {
688
+ let t = Q.value.head.map((e, t) => [
689
+ [e.name],
690
+ [Q.value.body[t]],
691
+ [isNaN(Q.value.body[t] / e.total) ? "-" : Q.value.body[t] / e.total * 100]
692
+ ]), n = te([
693
+ [F.value.style.chart.title.text],
694
+ [F.value.style.chart.title.subtitle.text],
695
+ [
696
+ [""],
697
+ ["val"],
698
+ ["%"]
699
+ ]
700
+ ].concat(t));
701
+ e ? e(n) : c({
702
+ csvContent: n,
703
+ title: F.value.style.chart.title.text || "vue-ui-nested-donuts"
704
+ });
705
+ });
706
+ }
707
+ let Jn = f(() => {
708
+ let e = [
709
+ F.value.table.columnNames.series,
710
+ F.value.table.columnNames.value,
711
+ F.value.table.columnNames.percentage
712
+ ], t = Q.value.head.map((e, t) => {
713
+ let n = o({
714
+ p: F.value.style.chart.layout.labels.dataLabels.prefix,
715
+ v: Q.value.body[t],
716
+ s: F.value.style.chart.layout.labels.dataLabels.suffix,
717
+ r: F.value.table.td.roundingValue
718
+ });
719
+ return [
720
+ {
721
+ color: e.color,
722
+ name: e.name
723
+ },
724
+ n,
725
+ isNaN(Q.value.body[t] / e.total) ? "-" : o({
726
+ v: Q.value.body[t] / e.total * 100,
727
+ s: "%",
728
+ r: F.value.table.td.roundingPercentage
729
+ })
730
+ ];
731
+ }), n = t.map((e) => e.map((e, t) => t === 0 ? e.name : e)), r = {
732
+ th: {
733
+ backgroundColor: F.value.table.th.backgroundColor,
734
+ color: F.value.table.th.color,
735
+ outline: F.value.table.th.outline
736
+ },
737
+ td: {
738
+ backgroundColor: F.value.table.td.backgroundColor,
739
+ color: F.value.table.td.color,
740
+ outline: F.value.table.td.outline
741
+ },
742
+ breakpoint: F.value.table.responsiveBreakpoint
743
+ };
744
+ return {
745
+ colNames: [
746
+ F.value.table.columnNames.series,
747
+ F.value.table.columnNames.value,
748
+ F.value.table.columnNames.percentage
749
+ ],
750
+ head: e,
751
+ body: t,
752
+ a11yBody: n,
753
+ config: r
754
+ };
755
+ });
756
+ function Yn() {
757
+ return W.value;
758
+ }
759
+ function Xn() {
760
+ B.value.showTable = !B.value.showTable;
761
+ }
762
+ function Zn() {
763
+ B.value.dataLabels.show = !B.value.dataLabels.show;
764
+ }
765
+ function Qn() {
766
+ B.value.showTooltip = !B.value.showTooltip;
767
+ }
768
+ let $n = S(!1);
769
+ function er() {
770
+ $n.value = !$n.value;
771
+ }
772
+ async function tr({ scale: e = 2 } = {}) {
773
+ if (!A.value) return;
774
+ let { width: t, height: n } = A.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await xe({
775
+ domElement: A.value,
776
+ base64: !0,
777
+ img: !0,
778
+ scale: e
779
+ });
780
+ return {
781
+ imageUri: i,
782
+ base64: a,
783
+ title: F.value.style.chart.title.text,
784
+ width: t,
785
+ height: n,
786
+ aspectRatio: r
787
+ };
788
+ }
789
+ let nr = S(null);
790
+ function rr() {
791
+ if (!nr.value) return;
792
+ let { x: e, y: t, width: n, height: r } = nr.value.getBBox();
793
+ R.value && R.value.setAttribute("viewBox", `${e} ${t} ${n + Math.min(0, e)} ${r + Math.min(0, t)}`);
794
+ }
795
+ let ir = f(() => {
796
+ let e = F.value.table.useDialog && !F.value.table.show, t = B.value.showTable;
797
+ return {
798
+ component: e ? Ft : At,
799
+ title: `${F.value.style.chart.title.text}${F.value.style.chart.title.subtitle.text ? `: ${F.value.style.chart.title.subtitle.text}` : ""}`,
800
+ props: e ? {
801
+ backgroundColor: F.value.table.th.backgroundColor,
802
+ color: F.value.table.th.color,
803
+ headerColor: F.value.table.th.color,
804
+ headerBg: F.value.table.th.backgroundColor,
805
+ isFullscreen: P.value,
806
+ fullscreenParent: A.value,
807
+ forcedWidth: Math.min(800, window.innerWidth * .8),
808
+ isCursorPointer: I.value
809
+ } : {
810
+ hideDetails: !0,
811
+ config: {
812
+ open: t,
813
+ maxHeight: 1e4,
814
+ body: {
815
+ backgroundColor: F.value.style.chart.backgroundColor,
816
+ color: F.value.style.chart.color
817
+ },
818
+ head: {
819
+ backgroundColor: F.value.style.chart.backgroundColor,
820
+ color: F.value.style.chart.color
821
+ }
822
+ }
823
+ }
824
+ };
825
+ });
826
+ Ke(() => B.value.showTable, (e) => {
827
+ F.value.table.show || (e && F.value.table.useDialog && $t.value ? $t.value.open() : "close" in $t.value && $t.value.close());
828
+ });
829
+ function ar() {
830
+ B.value.showTable = !1, en.value && en.value.setTableIconState(!1);
831
+ }
832
+ let or = f(() => F.value.style.chart.backgroundColor), sr = f(() => F.value.style.chart.legend), { exportSvg: cr, getSvg: lr } = ve({
833
+ svg: R,
834
+ title: f(() => F.value.style.chart.title),
835
+ legend: sr,
836
+ legendItems: f(() => Gn.value.flat().map((e) => ({
837
+ ...e,
838
+ name: e.svgDisplay
839
+ }))),
840
+ backgroundColor: or
841
+ });
842
+ async function ur({ isCb: e }) {
843
+ nn.value = !0, await Re();
844
+ try {
845
+ if (e) {
846
+ let { blob: e, url: t, text: n, dataUrl: r } = await lr();
847
+ await Promise.resolve(F.value.userOptions.callbacks.svg({
848
+ blob: e,
849
+ url: t,
850
+ text: n,
851
+ dataUrl: r
852
+ }));
853
+ } else await Promise.resolve(cr());
854
+ } finally {
855
+ nn.value = !1;
856
+ }
857
+ }
858
+ function dr(e) {
859
+ if (e?.stage === "start") {
860
+ tn.value = !0;
861
+ return;
862
+ }
863
+ if (e?.stage === "end") {
864
+ tn.value = !1;
865
+ return;
866
+ }
867
+ Tn();
868
+ }
869
+ async function fr() {
870
+ if (H("copyAlt", {
871
+ config: F.value,
872
+ dataset: q.value
873
+ }), !F.value.userOptions.callbacks.altCopy) {
874
+ console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
875
+ return;
876
+ }
877
+ await Promise.resolve(F.value.userOptions.callbacks.altCopy({
878
+ config: F.value,
879
+ dataset: q.value
880
+ }));
881
+ }
882
+ let $ = f(() => Y.value.flatMap((e) => e.donut.filter((e) => !e.ghost)));
883
+ function pr() {
884
+ N.value = null, on.value = !0;
885
+ }
886
+ function mr() {
887
+ N.value = null, an.value = "pointer", Bt.value = !1, Rn.value = null, Ht.value = null, X.value = null, Z.value = null, on.value = !1;
888
+ }
889
+ function hr(e) {
890
+ if (!R.value || $n.value || document.activeElement !== R.value || !$.value.length) return;
891
+ let t = ["ArrowLeft", "ArrowUp"].includes(e.key), n = ["ArrowRight", "ArrowDown"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
892
+ if (!t && !n && !r && !i) return;
893
+ if (e.preventDefault(), e.stopPropagation(), i) {
894
+ N.value = null, an.value = "pointer", Bt.value = !1, Rn.value = null, Ht.value = null, X.value = null, Z.value = null;
895
+ return;
896
+ }
897
+ if (r) {
898
+ if (N.value === null) return;
899
+ let e = $.value[N.value];
900
+ if (!e) return;
901
+ On({
902
+ datapoint: e,
903
+ index: N.value,
904
+ seriesIndex: e.seriesIndex
905
+ });
906
+ return;
907
+ }
908
+ let a = N.value, o = Z.value, s = a !== null && a >= 0 && a < $.value.length, c = o !== null && o >= 0 && o < $.value.length;
909
+ s ? n ? (a += 1, a >= $.value.length && (a = 0)) : t && (--a, a < 0 && (a = $.value.length - 1)) : c ? (a = n ? o + 1 : o - 1, a >= $.value.length && (a = 0), a < 0 && (a = $.value.length - 1)) : a = n ? 0 : $.value.length - 1;
910
+ let l = $.value[a];
911
+ l && (N.value = a, gr(), Hn({
912
+ datapoint: l,
913
+ relativeIndex: a,
914
+ seriesIndex: l.seriesIndex,
915
+ show: !0,
916
+ triggerMode: "keyboard"
917
+ }));
918
+ }
919
+ function gr() {
920
+ if (!R.value) return;
921
+ let e = R.value.getBoundingClientRect();
922
+ rn.value = {
923
+ x: e.left + e.width / 2,
924
+ y: e.top + e.height / 2
925
+ };
926
+ }
927
+ let _r = f(() => ({
928
+ headers: Jn.value?.colNames ?? [],
929
+ rows: Jn.value?.a11yBody ?? []
930
+ }));
931
+ return Ce({
932
+ autoSize: rr,
933
+ getData: Yn,
934
+ getImage: tr,
935
+ generatePdf: wn,
936
+ generateCsv: qn,
937
+ generateImage: Tn,
938
+ generateSvg: ur,
939
+ hideSeries: Pn,
940
+ showSeries: Nn,
941
+ toggleTable: Xn,
942
+ toggleLabels: Zn,
943
+ toggleTooltip: Qn,
944
+ toggleAnnotator: er,
945
+ toggleFullscreen: sn,
946
+ copyAlt: fr
947
+ }), (e, t) => (x(), h("div", {
948
+ ref_key: "nestedDonutsChart",
949
+ ref: A,
950
+ class: y(`vue-data-ui-component vue-ui-nested-donuts ${P.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${F.value.useCssAnimation ? "" : "vue-ui-dna"}`),
951
+ style: ze(`font-family:${F.value.style.fontFamily};width:100%; text-align:center;background:${F.value.style.chart.backgroundColor}`),
952
+ id: `nested_donuts_${k.value}`,
953
+ onMouseenter: t[2] ||= () => E(pn)(!0),
954
+ onMouseleave: t[3] ||= () => E(pn)(!1)
955
+ }, [
956
+ g("div", {
957
+ id: `chart-instructions-${k.value}`,
958
+ class: "sr-only"
959
+ }, [g("p", null, T(F.value.a11y.translations.keyboardNavigation), 1)], 8, Xe),
960
+ _r.value?.rows?.length ? (x(), p(De, {
961
+ key: 0,
962
+ uid: k.value,
963
+ head: _r.value.headers,
964
+ body: _r.value.rows,
965
+ notice: F.value.a11y.translations.tableAvailable,
966
+ caption: F.value.a11y.translations.tableCaption
967
+ }, null, 8, [
968
+ "uid",
969
+ "head",
970
+ "body",
971
+ "notice",
972
+ "caption"
973
+ ])) : m("", !0),
974
+ F.value.userOptions.buttons.annotator ? (x(), p(E(Nt), {
975
+ key: 1,
976
+ svgRef: E(R),
977
+ backgroundColor: F.value.style.chart.backgroundColor,
978
+ color: F.value.style.chart.color,
979
+ active: $n.value,
980
+ isCursorPointer: I.value,
981
+ onClose: er
982
+ }, {
983
+ "annotator-action-close": D(() => [w(e.$slots, "annotator-action-close", {}, void 0, !0)]),
984
+ "annotator-action-color": D(({ color: t }) => [w(e.$slots, "annotator-action-color", b(v({ color: t })), void 0, !0)]),
985
+ "annotator-action-draw": D(({ mode: t }) => [w(e.$slots, "annotator-action-draw", b(v({ mode: t })), void 0, !0)]),
986
+ "annotator-action-undo": D(({ disabled: t }) => [w(e.$slots, "annotator-action-undo", b(v({ disabled: t })), void 0, !0)]),
987
+ "annotator-action-redo": D(({ disabled: t }) => [w(e.$slots, "annotator-action-redo", b(v({ disabled: t })), void 0, !0)]),
988
+ "annotator-action-delete": D(({ disabled: t }) => [w(e.$slots, "annotator-action-delete", b(v({ disabled: t })), void 0, !0)]),
989
+ _: 3
990
+ }, 8, [
991
+ "svgRef",
992
+ "backgroundColor",
993
+ "color",
994
+ "active",
995
+ "isCursorPointer"
996
+ ])) : m("", !0),
997
+ En.value ? (x(), h("div", {
998
+ key: 2,
999
+ ref_key: "noTitle",
1000
+ ref: qt,
1001
+ class: "vue-data-ui-no-title-space",
1002
+ style: "height:36px; width: 100%;background:transparent"
1003
+ }, null, 512)) : m("", !0),
1004
+ F.value.style.chart.title.text ? (x(), h("div", {
1005
+ key: 3,
1006
+ ref_key: "chartTitle",
1007
+ ref: Wt
1008
+ }, [(x(), p(Se, {
1009
+ key: `title_${Jt.value}`,
1010
+ config: {
1011
+ title: {
1012
+ cy: "donut-div-title",
1013
+ ...F.value.style.chart.title
1014
+ },
1015
+ subtitle: {
1016
+ cy: "donut-div-subtitle",
1017
+ ...F.value.style.chart.title.subtitle
1018
+ }
1019
+ }
1020
+ }, null, 8, ["config"]))], 512)) : m("", !0),
1021
+ g("div", { id: `legend-top-${k.value}` }, null, 8, Ze),
1022
+ F.value.userOptions.show && zt.value && (E(mn) || E(fn)) ? (x(), p(E(Mt), {
1023
+ ref_key: "userOptionsRef",
1024
+ ref: en,
1025
+ key: `user_option_${Ut.value}`,
1026
+ backgroundColor: F.value.style.chart.backgroundColor,
1027
+ color: F.value.style.chart.color,
1028
+ isPrinting: E(Sn),
1029
+ isImaging: E(Cn),
1030
+ uid: k.value,
1031
+ hasTooltip: F.value.userOptions.buttons.tooltip && F.value.style.chart.tooltip.show,
1032
+ hasPdf: F.value.userOptions.buttons.pdf,
1033
+ hasXls: F.value.userOptions.buttons.csv,
1034
+ hasImg: F.value.userOptions.buttons.img,
1035
+ hasSvg: F.value.userOptions.buttons.svg,
1036
+ hasTable: F.value.userOptions.buttons.table,
1037
+ hasLabel: F.value.userOptions.buttons.labels,
1038
+ hasFullscreen: F.value.userOptions.buttons.fullscreen,
1039
+ hasAltCopy: F.value.userOptions.buttons.altCopy,
1040
+ isFullscreen: P.value,
1041
+ isTooltip: B.value.showTooltip,
1042
+ titles: { ...F.value.userOptions.buttonTitles },
1043
+ chartElement: A.value,
1044
+ position: F.value.userOptions.position,
1045
+ hasAnnotator: F.value.userOptions.buttons.annotator,
1046
+ isAnnotation: $n.value,
1047
+ callbacks: F.value.userOptions.callbacks,
1048
+ printScale: F.value.userOptions.print.scale,
1049
+ tableDialog: F.value.table.useDialog,
1050
+ isCursorPointer: I.value,
1051
+ onToggleFullscreen: sn,
1052
+ onGeneratePdf: E(wn),
1053
+ onGenerateCsv: qn,
1054
+ onGenerateImage: dr,
1055
+ onGenerateSvg: ur,
1056
+ onToggleTable: Xn,
1057
+ onToggleLabels: Zn,
1058
+ onToggleTooltip: Qn,
1059
+ onToggleAnnotator: er,
1060
+ onCopyAlt: fr,
1061
+ style: ze({ visibility: E(mn) ? E(fn) ? "visible" : "hidden" : "visible" })
1062
+ }, Pe({ _: 2 }, [
1063
+ e.$slots.menuIcon ? {
1064
+ name: "menuIcon",
1065
+ fn: D(({ isOpen: t, color: n }) => [w(e.$slots, "menuIcon", b(v({
1066
+ isOpen: t,
1067
+ color: n
1068
+ })), void 0, !0)]),
1069
+ key: "0"
1070
+ } : void 0,
1071
+ e.$slots.optionTooltip ? {
1072
+ name: "optionTooltip",
1073
+ fn: D(() => [w(e.$slots, "optionTooltip", {}, void 0, !0)]),
1074
+ key: "1"
1075
+ } : void 0,
1076
+ e.$slots.optionPdf ? {
1077
+ name: "optionPdf",
1078
+ fn: D(() => [w(e.$slots, "optionPdf", {}, void 0, !0)]),
1079
+ key: "2"
1080
+ } : void 0,
1081
+ e.$slots.optionCsv ? {
1082
+ name: "optionCsv",
1083
+ fn: D(() => [w(e.$slots, "optionCsv", {}, void 0, !0)]),
1084
+ key: "3"
1085
+ } : void 0,
1086
+ e.$slots.optionImg ? {
1087
+ name: "optionImg",
1088
+ fn: D(() => [w(e.$slots, "optionImg", {}, void 0, !0)]),
1089
+ key: "4"
1090
+ } : void 0,
1091
+ e.$slots.optionSvg ? {
1092
+ name: "optionSvg",
1093
+ fn: D(() => [w(e.$slots, "optionSvg", {}, void 0, !0)]),
1094
+ key: "5"
1095
+ } : void 0,
1096
+ e.$slots.optionTable ? {
1097
+ name: "optionTable",
1098
+ fn: D(() => [w(e.$slots, "optionTable", {}, void 0, !0)]),
1099
+ key: "6"
1100
+ } : void 0,
1101
+ e.$slots.optionLabels ? {
1102
+ name: "optionLabels",
1103
+ fn: D(() => [w(e.$slots, "optionLabels", {}, void 0, !0)]),
1104
+ key: "7"
1105
+ } : void 0,
1106
+ e.$slots.optionFullscreen ? {
1107
+ name: "optionFullscreen",
1108
+ fn: D(({ toggleFullscreen: t, isFullscreen: n }) => [w(e.$slots, "optionFullscreen", b(v({
1109
+ toggleFullscreen: t,
1110
+ isFullscreen: n
1111
+ })), void 0, !0)]),
1112
+ key: "8"
1113
+ } : void 0,
1114
+ e.$slots.optionAnnotator ? {
1115
+ name: "optionAnnotator",
1116
+ fn: D(({ toggleAnnotator: t, isAnnotator: n }) => [w(e.$slots, "optionAnnotator", b(v({
1117
+ toggleAnnotator: t,
1118
+ isAnnotator: n
1119
+ })), void 0, !0)]),
1120
+ key: "9"
1121
+ } : void 0,
1122
+ e.$slots.optionAltCopy ? {
1123
+ name: "optionAltCopy",
1124
+ fn: D(({ altCopy: t }) => [w(e.$slots, "optionAltCopy", b(v({ altCopy: t })), void 0, !0)]),
1125
+ key: "10"
1126
+ } : void 0,
1127
+ e.$slots["custom-menu-before"] ? {
1128
+ name: "custom-menu-before",
1129
+ fn: D(() => [w(e.$slots, "custom-menu-before", {}, void 0, !0)]),
1130
+ key: "11"
1131
+ } : void 0,
1132
+ e.$slots["custom-menu-after"] ? {
1133
+ name: "custom-menu-after",
1134
+ fn: D(() => [w(e.$slots, "custom-menu-after", {}, void 0, !0)]),
1135
+ key: "12"
1136
+ } : void 0
1137
+ ]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasXls.hasImg.hasSvg.hasTable.hasLabel.hasFullscreen.hasAltCopy.isFullscreen.isTooltip.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.style".split("."))) : m("", !0),
1138
+ g("div", Qe, [(x(), h("svg", {
1139
+ ref_key: "svgRef",
1140
+ ref: R,
1141
+ xmlns: E(ce),
1142
+ "aria-describedby": `chart-instructions-${k.value}`,
1143
+ class: y({
1144
+ "vue-data-ui-fullscreen--on": P.value,
1145
+ "vue-data-ui-fulscreen--off": !P.value,
1146
+ "vue-data-ui-svg": !0
1147
+ }),
1148
+ viewBox: `0 0 ${V.value.width <= 0 ? .001 : V.value.width} ${V.value.height < 0 ? .001 : V.value.height}`,
1149
+ style: ze(`max-width:100%; overflow: visible; background:transparent;color:${F.value.style.chart.color};${gn.value.css}`),
1150
+ tabindex: "0",
1151
+ onFocus: pr,
1152
+ onBlur: mr,
1153
+ onKeydown: hr
1154
+ }, [g("g", {
1155
+ ref_key: "G",
1156
+ ref: nr,
1157
+ class: "vue-data-ui-g"
1158
+ }, [
1159
+ Ie(E(Pt)),
1160
+ e.$slots["chart-background"] ? (x(), h("foreignObject", {
1161
+ key: 0,
1162
+ x: 0,
1163
+ y: 0,
1164
+ width: V.value.width <= 0 ? .001 : V.value.width,
1165
+ height: V.value.height < 0 ? .001 : V.value.height,
1166
+ style: { pointerEvents: "none" }
1167
+ }, [w(e.$slots, "chart-background", {}, void 0, !0)], 8, et)) : m("", !0),
1168
+ g("defs", null, [(x(!0), h(d, null, C(Ln.value, (e, n) => (x(), h("radialGradient", { id: `radial_${k.value}_${n}` }, [
1169
+ t[4] ||= g("stop", {
1170
+ offset: "0%",
1171
+ "stop-color": "#FFFFFF",
1172
+ "stop-opacity": "0"
1173
+ }, null, -1),
1174
+ g("stop", {
1175
+ offset: `${(1 - Fn.value / In.value[n]) * 100}%`,
1176
+ "stop-color": E(l)("#FFFFFF", 0),
1177
+ "stop-opacity": "0"
1178
+ }, null, 8, nt),
1179
+ g("stop", {
1180
+ offset: `${(1 - Fn.value / In.value[n] / 2) * 100}%`,
1181
+ "stop-color": "#FFFFFF",
1182
+ "stop-opacity": F.value.style.chart.gradientIntensity / 100
1183
+ }, null, 8, rt),
1184
+ t[5] ||= g("stop", {
1185
+ offset: "100%",
1186
+ "stop-color": "#FFFFFF",
1187
+ "stop-opacity": "0"
1188
+ }, null, -1)
1189
+ ], 8, tt))), 256))]),
1190
+ g("defs", null, [g("filter", {
1191
+ id: `blur_${k.value}`,
1192
+ x: "-50%",
1193
+ y: "-50%",
1194
+ width: "200%",
1195
+ height: "200%"
1196
+ }, [g("feGaussianBlur", {
1197
+ in: "SourceGraphic",
1198
+ stdDeviation: 2,
1199
+ id: `blur_std_${k.value}`
1200
+ }, null, 8, at), t[6] ||= g("feColorMatrix", {
1201
+ type: "saturate",
1202
+ values: "0"
1203
+ }, null, -1)], 8, it), g("filter", {
1204
+ id: `shadow_${k.value}`,
1205
+ "color-interpolation-filters": "sRGB"
1206
+ }, [g("feDropShadow", {
1207
+ dx: "0",
1208
+ dy: "0",
1209
+ stdDeviation: "10",
1210
+ "flood-opacity": "0.5",
1211
+ "flood-color": F.value.style.chart.layout.donut.shadowColor
1212
+ }, null, 8, st)], 8, ot)]),
1213
+ g("defs", null, [(x(!0), h(d, null, C(Y.value, (e, t) => (x(), h("path", {
1214
+ key: `path-full-${t}`,
1215
+ id: `path-full-${t}-${k.value}`,
1216
+ d: e.fullCirclePath,
1217
+ fill: "none"
1218
+ }, null, 8, ct))), 128))]),
1219
+ (x(!0), h(d, null, C(Y.value, (e, t) => (x(), h("g", null, [e.hasData ? (x(!0), h(d, { key: 0 }, C(e.donut.filter((e) => !e.ghost), (e, t) => (x(), h("g", null, [g("path", {
1220
+ class: "vue-ui-donut-arc-path",
1221
+ d: e.arcSlice,
1222
+ fill: e.color,
1223
+ stroke: F.value.style.chart.layout.donut.borderColorAuto ? F.value.style.chart.backgroundColor : F.value.style.chart.layout.donut.borderColor,
1224
+ "stroke-width": F.value.style.chart.layout.donut.borderWidth,
1225
+ filter: Wn(e, t)
1226
+ }, null, 8, lt)]))), 256)) : (x(!0), h(d, { key: 1 }, C(e.skeleton, (e, t) => (x(), h("g", null, [g("path", {
1227
+ class: "vue-ui-donut-arc-path",
1228
+ d: e.arcSlice,
1229
+ fill: e.color,
1230
+ stroke: F.value.style.chart.layout.donut.borderColorAuto ? F.value.style.chart.backgroundColor : F.value.style.chart.layout.donut.borderColor,
1231
+ "stroke-width": F.value.style.chart.layout.donut.borderWidth
1232
+ }, null, 8, ut)]))), 256))]))), 256)),
1233
+ F.value.style.chart.useGradient ? (x(), h("g", dt, [(x(!0), h(d, null, C(Ln.value, (e, t) => (x(), h("g", null, [g("path", {
1234
+ d: e.donut.arcSlice,
1235
+ fill: `url(#radial_${k.value}_${t})`,
1236
+ stroke: "transparent",
1237
+ "stroke-width": "0"
1238
+ }, null, 8, ft)]))), 256))])) : m("", !0),
1239
+ F.value.style.chart.layout.labels.dataLabels.showDonutName ? (x(), h("g", pt, [F.value.style.chart.layout.labels.dataLabels.curvedDonutName ? (x(!0), h(d, { key: 0 }, C(Y.value, (e, t) => (x(), h("g", null, [(x(!0), h(d, null, C(e.donut, (n, r) => (x(), h("g", null, [r === 0 && V.value.width && V.value.height ? (x(), h("text", {
1240
+ key: 0,
1241
+ class: y({ animated: F.value.useCssAnimation }),
1242
+ "text-anchor": "middle",
1243
+ "font-size": F.value.style.chart.layout.labels.dataLabels.fontSize,
1244
+ "font-weight": F.value.style.chart.layout.labels.dataLabels.boldDonutName ? "bold" : "normal",
1245
+ fill: F.value.style.chart.layout.labels.dataLabels.color,
1246
+ dy: F.value.style.chart.layout.labels.dataLabels.donutNameOffsetY
1247
+ }, [g("textPath", {
1248
+ href: `#path-full-${t}-${k.value}`,
1249
+ startOffset: "50%",
1250
+ "text-anchor": "middle",
1251
+ method: "align",
1252
+ spacing: "auto"
1253
+ }, T(F.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? E(ae)({
1254
+ source: e.name,
1255
+ length: F.value.style.chart.layout.labels.dataLabels.donutNameMaxAbbreviationSize
1256
+ }) : e.name), 9, ht)], 10, mt)) : m("", !0)]))), 256))]))), 256)) : (x(!0), h(d, { key: 1 }, C(Y.value, (e, t) => (x(), h("g", null, [(x(!0), h(d, null, C(e.donut, (t, n) => (x(), h("g", null, [n === 0 && V.value.width && V.value.height ? (x(), h("text", {
1257
+ key: 0,
1258
+ class: y({ animated: F.value.useCssAnimation }),
1259
+ x: V.value.width / 2,
1260
+ y: t.startY - F.value.style.chart.layout.labels.dataLabels.fontSize + F.value.style.chart.layout.labels.dataLabels.donutNameOffsetY,
1261
+ "text-anchor": "middle",
1262
+ "font-size": F.value.style.chart.layout.labels.dataLabels.fontSize,
1263
+ "font-weight": F.value.style.chart.layout.labels.dataLabels.boldDonutName ? "bold" : "normal",
1264
+ fill: F.value.style.chart.layout.labels.dataLabels.color
1265
+ }, T(F.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? E(ae)({
1266
+ source: e.name,
1267
+ length: F.value.style.chart.layout.labels.dataLabels.donutNameMaxAbbreviationSize
1268
+ }) : e.name), 11, gt)) : m("", !0)]))), 256))]))), 256))])) : m("", !0),
1269
+ F.value.style.chart.layout.labels.dataLabels.show ? (x(), h("g", _t, [(x(!0), h(d, null, C(Y.value, (e, t) => (x(), h("g", null, [(x(!0), h(d, null, C(e.donut.filter((e) => !e.ghost), (e, n) => (x(), h("g", { filter: Wn(e, n) }, [qe(g("text", {
1270
+ class: y({ animated: F.value.useCssAnimation }),
1271
+ opacity: +!!Un(e),
1272
+ "text-anchor": E(le)(e, !0).anchor,
1273
+ x: E(le)(e, !1, F.value.style.chart.layout.labels.dataLabels.offsetX).x || 0,
1274
+ y: E(re)(e, F.value.style.chart.layout.labels.dataLabels.offsetY, F.value.style.chart.layout.labels.dataLabels.offsetY) + (F.value.style.chart.layout.labels.dataLabels.showValueFirst && F.value.style.chart.layout.labels.dataLabels.showValue ? F.value.style.chart.layout.labels.dataLabels.fontSize : 0),
1275
+ fill: F.value.style.chart.layout.labels.dataLabels.useSerieColor ? e.color : F.value.style.chart.layout.labels.dataLabels.color,
1276
+ "font-size": F.value.style.chart.layout.labels.dataLabels.fontSize,
1277
+ "font-weight": F.value.style.chart.layout.labels.dataLabels.boldPercentage ? "bold" : "normal"
1278
+ }, T(E(i)(E(o)({
1279
+ v: e.proportion * 100,
1280
+ s: "%",
1281
+ r: F.value.style.chart.layout.labels.dataLabels.roundingPercentage
1282
+ }), F.value.style.chart.layout.labels.dataLabels.usePercentageParens ? "(" : "", F.value.style.chart.layout.labels.dataLabels.usePercentageParens ? ")" : "")), 11, yt), [[Ge, B.value.dataLabels.show && F.value.style.chart.layout.labels.dataLabels.showPercentage]]), qe(g("text", {
1283
+ class: y({ animated: F.value.useCssAnimation }),
1284
+ opacity: +!!Un(e),
1285
+ "text-anchor": E(le)(e, !0).anchor,
1286
+ x: E(le)(e, !1, F.value.style.chart.layout.labels.dataLabels.offsetX).x || 0,
1287
+ y: E(re)(e, F.value.style.chart.layout.labels.dataLabels.offsetY, F.value.style.chart.layout.labels.dataLabels.offsetY) + (F.value.style.chart.layout.labels.dataLabels.showValueFirst || !F.value.style.chart.layout.labels.dataLabels.showPercentage ? 0 : F.value.style.chart.layout.labels.dataLabels.fontSize),
1288
+ fill: F.value.style.chart.layout.labels.dataLabels.useSerieColor ? e.color : F.value.style.chart.layout.labels.dataLabels.color,
1289
+ "font-size": F.value.style.chart.layout.labels.dataLabels.fontSize,
1290
+ "font-weight": F.value.style.chart.layout.labels.dataLabels.boldValue ? "bold" : "normal"
1291
+ }, T(E(i)(E(ie)(F.value.style.chart.layout.labels.dataLabels.formatter, e.value, E(o)({
1292
+ p: F.value.style.chart.layout.labels.dataLabels.prefix,
1293
+ v: e.value,
1294
+ s: F.value.style.chart.layout.labels.dataLabels.suffix,
1295
+ r: F.value.style.chart.layout.labels.dataLabels.roundingValue
1296
+ }), {
1297
+ datapoint: e,
1298
+ seriesIndex: t,
1299
+ datapointIndex: n
1300
+ }), F.value.style.chart.layout.labels.dataLabels.useValueParens ? "(" : "", F.value.style.chart.layout.labels.dataLabels.useValueParens ? ")" : "")), 11, bt), [[Ge, B.value.dataLabels.show && F.value.style.chart.layout.labels.dataLabels.showValue]])], 8, vt))), 256))]))), 256))])) : m("", !0),
1301
+ (x(!0), h(d, null, C(Y.value, (e, t) => (x(), h("g", null, [(x(!0), h(d, null, C(e.donut, (e, t) => (x(), h("g", null, [g("path", {
1302
+ d: e.arcSlice,
1303
+ fill: Ht.value === e.id ? F.value.style.chart.layout.donut.selectedColor : "transparent",
1304
+ onMouseenter: (t) => Hn({
1305
+ datapoint: e,
1306
+ relativeIndex: $.value.findIndex((t) => t.id === e.id),
1307
+ seriesIndex: e.seriesIndex
1308
+ }),
1309
+ onClick: (n) => On({
1310
+ datapoint: e,
1311
+ index: t,
1312
+ seriesIndex: e.seriesIndex
1313
+ }),
1314
+ onMouseleave: (t) => Bn({
1315
+ datapoint: e,
1316
+ seriesIndex: e.seriesIndex
1317
+ })
1318
+ }, null, 40, xt)]))), 256))]))), 256)),
1319
+ w(e.$slots, "svg", { svg: {
1320
+ ...V.value,
1321
+ isPrintingImg: E(Sn) || E(Cn) || tn.value,
1322
+ isPrintingSvg: nn.value
1323
+ } }, void 0, !0)
1324
+ ], 512)], 46, $e)), e.$slots.hint ? (x(), h("div", St, [w(e.$slots, "hint", b(v({
1325
+ hint: F.value.a11y.translations.keyboardNavigation,
1326
+ isVisible: on.value
1327
+ })), void 0, !0)])) : m("", !0)]),
1328
+ e.$slots.watermark ? (x(), h("div", Ct, [w(e.$slots, "watermark", b(v({ isPrinting: E(Sn) || E(Cn) || tn.value || nn.value })), void 0, !0)])) : m("", !0),
1329
+ Ie(E(Ot), {
1330
+ teleportTo: F.value.style.chart.tooltip.teleportTo,
1331
+ show: B.value.showTooltip && Bt.value,
1332
+ backgroundColor: F.value.style.chart.tooltip.backgroundColor,
1333
+ color: F.value.style.chart.tooltip.color,
1334
+ borderRadius: F.value.style.chart.tooltip.borderRadius,
1335
+ borderColor: F.value.style.chart.tooltip.borderColor,
1336
+ borderWidth: F.value.style.chart.tooltip.borderWidth,
1337
+ fontSize: F.value.style.chart.tooltip.fontSize,
1338
+ backgroundOpacity: F.value.style.chart.tooltip.backgroundOpacity,
1339
+ position: F.value.style.chart.tooltip.position,
1340
+ offsetX: F.value.style.chart.tooltip.offsetX,
1341
+ offsetY: F.value.style.chart.tooltip.offsetY,
1342
+ parent: A.value,
1343
+ content: Vt.value,
1344
+ isFullscreen: P.value,
1345
+ isCustom: E(se)(F.value.style.chart.tooltip.customFormat),
1346
+ smooth: F.value.style.chart.tooltip.smooth,
1347
+ backdropFilter: F.value.style.chart.tooltip.backdropFilter,
1348
+ smoothForce: F.value.style.chart.tooltip.smoothForce,
1349
+ smoothSnapThreshold: F.value.style.chart.tooltip.smoothSnapThreshold,
1350
+ isA11yMode: an.value === "keyboard",
1351
+ a11yPosition: rn.value
1352
+ }, {
1353
+ "tooltip-before": D(() => [w(e.$slots, "tooltip-before", b(v({ ...zn.value })), void 0, !0)]),
1354
+ tooltip: D(() => [w(e.$slots, "tooltip", b(v({ ...zn.value })), void 0, !0)]),
1355
+ "tooltip-after": D(() => [w(e.$slots, "tooltip-after", b(v({ ...zn.value })), void 0, !0)]),
1356
+ _: 3
1357
+ }, 8, [
1358
+ "teleportTo",
1359
+ "show",
1360
+ "backgroundColor",
1361
+ "color",
1362
+ "borderRadius",
1363
+ "borderColor",
1364
+ "borderWidth",
1365
+ "fontSize",
1366
+ "backgroundOpacity",
1367
+ "position",
1368
+ "offsetX",
1369
+ "offsetY",
1370
+ "parent",
1371
+ "content",
1372
+ "isFullscreen",
1373
+ "isCustom",
1374
+ "smooth",
1375
+ "backdropFilter",
1376
+ "smoothForce",
1377
+ "smoothSnapThreshold",
1378
+ "isA11yMode",
1379
+ "a11yPosition"
1380
+ ]),
1381
+ g("div", { id: `legend-bottom-${k.value}` }, null, 8, wt),
1382
+ Qt.value && (F.value.style.chart.legend.show || e.$slots.legend) ? (x(), p(Ne, {
1383
+ key: 6,
1384
+ to: F.value.style.chart.legend.position === "top" ? `#legend-top-${k.value}` : `#legend-bottom-${k.value}`
1385
+ }, [F.value.style.chart.legend.show ? (x(), h("div", {
1386
+ key: 0,
1387
+ ref_key: "chartLegend",
1388
+ ref: Gt,
1389
+ class: y({ "vue-ui-nested-donuts-legend": Gn.value.length > 1 })
1390
+ }, [w(e.$slots, "legend", { legend: Gn.value }, () => [(x(!0), h(d, null, C(Gn.value, (e, n) => (x(), p(je, {
1391
+ key: `legend_${n}_${Xt.value}`,
1392
+ legendSet: e,
1393
+ config: Kn.value,
1394
+ isCursorPointer: I.value,
1395
+ onClickMarker: t[0] ||= ({ legend: e }) => J(e)
1396
+ }, {
1397
+ legendTitle: D(({ titleSet: e }) => [e[0] && e[0].arcOf ? (x(), h("div", Tt, T(e[0].arcOf), 1)) : m("", !0)]),
1398
+ item: D(({ legend: e, index: t }) => [g("div", {
1399
+ onClick: (t) => J(e),
1400
+ style: ze(`opacity:${U.value.includes(e.id) ? .5 : 1}`)
1401
+ }, T(e.display), 13, Et)]),
1402
+ legendToggle: D(() => [e.length > 2 && F.value.style.chart.legend.selectAllToggle.show && !E(un) ? (x(), p(Ee, {
1403
+ key: `toggle-${n}`,
1404
+ backgroundColor: F.value.style.chart.legend.selectAllToggle.backgroundColor,
1405
+ color: F.value.style.chart.legend.selectAllToggle.color,
1406
+ fontSize: F.value.style.chart.legend.fontSize,
1407
+ checked: e.some((e) => U.value.includes(e.id)),
1408
+ isCursorPointer: I.value,
1409
+ onToggle: (t) => jn(e)
1410
+ }, null, 8, [
1411
+ "backgroundColor",
1412
+ "color",
1413
+ "fontSize",
1414
+ "checked",
1415
+ "isCursorPointer",
1416
+ "onToggle"
1417
+ ])) : m("", !0)]),
1418
+ _: 2
1419
+ }, 1032, [
1420
+ "legendSet",
1421
+ "config",
1422
+ "isCursorPointer"
1423
+ ]))), 128))], !0)], 2)) : m("", !0)], 8, ["to"])) : m("", !0),
1424
+ e.$slots.source ? (x(), h("div", {
1425
+ key: 7,
1426
+ ref_key: "source",
1427
+ ref: Kt,
1428
+ dir: "auto"
1429
+ }, [w(e.$slots, "source", {}, void 0, !0)], 512)) : m("", !0),
1430
+ zt.value && F.value.userOptions.buttons.table ? (x(), p(He(ir.value.component), Le({ key: 8 }, ir.value.props, {
1431
+ ref_key: "tableUnit",
1432
+ ref: $t,
1433
+ onClose: ar
1434
+ }), Pe({
1435
+ content: D(() => [(x(), p(E(jt), {
1436
+ key: `table_${Yt.value}`,
1437
+ colNames: Jn.value.colNames,
1438
+ head: Jn.value.head,
1439
+ body: Jn.value.body,
1440
+ config: Jn.value.config,
1441
+ title: F.value.table.useDialog ? "" : ir.value.title,
1442
+ withCloseButton: !F.value.table.useDialog,
1443
+ isCursorPointer: I.value,
1444
+ onClose: ar
1445
+ }, {
1446
+ th: D(({ th: e }) => [g("div", {
1447
+ innerHTML: e,
1448
+ style: {
1449
+ display: "flex",
1450
+ "align-items": "center"
1451
+ }
1452
+ }, null, 8, Dt)]),
1453
+ td: D(({ td: e }) => [Fe(T(e.name || e), 1)]),
1454
+ _: 1
1455
+ }, 8, [
1456
+ "colNames",
1457
+ "head",
1458
+ "body",
1459
+ "config",
1460
+ "title",
1461
+ "withCloseButton",
1462
+ "isCursorPointer"
1463
+ ]))]),
1464
+ _: 2
1465
+ }, [F.value.table.useDialog ? {
1466
+ name: "title",
1467
+ fn: D(() => [Fe(T(ir.value.title), 1)]),
1468
+ key: "0"
1469
+ } : void 0, F.value.table.useDialog ? {
1470
+ name: "actions",
1471
+ fn: D(() => [g("button", {
1472
+ tabindex: "0",
1473
+ class: "vue-ui-user-options-button",
1474
+ onClick: t[1] ||= (e) => qn(F.value.userOptions.callbacks.csv),
1475
+ style: ze({ cursor: I.value ? "pointer" : "default" })
1476
+ }, [Ie(E(kt), {
1477
+ name: "fileCsv",
1478
+ stroke: ir.value.props.color
1479
+ }, null, 8, ["stroke"])], 4)]),
1480
+ key: "1"
1481
+ } : void 0]), 1040)) : m("", !0),
1482
+ w(e.$slots, "skeleton", {}, () => [E(un) ? (x(), p(_e, { key: 0 })) : m("", !0)], !0)
1483
+ ], 46, Ye));
1484
+ }
1485
+ }, [["__scopeId", "data-v-42769637"]]);
1486
+ //#endregion
1487
+ export { Je as n, Ot as t };