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