vue-data-ui 3.17.13 → 3.18.1

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 (493) hide show
  1. package/README.md +1 -1
  2. package/dist/A11yDataTable-q2-8fSlJ.js +45 -0
  3. package/dist/Arrow-Cj6W6Xbi.js +116 -0
  4. package/dist/BaseDraggableDialog-BQcmQAK5.js +272 -0
  5. package/dist/BaseIcon-CEmt3Ifx.js +499 -0
  6. package/dist/BaseLegendToggle-DUIqQmwM.js +56 -0
  7. package/dist/BaseScanner-C7dmAref.js +27 -0
  8. package/dist/BaseZoomControls-Ce1yqas1.js +111 -0
  9. package/dist/ColorPicker-DS_QkH3W.js +255 -0
  10. package/dist/DataTable-BvDJEAma.js +150 -0
  11. package/dist/Legend-Gg5Q4Clb.js +114 -0
  12. package/dist/NonSvgPenAndPaper-D4Gh7O43.js +577 -0
  13. package/dist/PackageVersion-DhDKg-ez.js +11 -0
  14. package/dist/PenAndPaper-DwpL8Z0l.js +461 -0
  15. package/dist/RecursiveCircles-DPpLel6f.js +117 -0
  16. package/dist/RecursiveLabels-DBMJf_to.js +56 -0
  17. package/dist/RecursiveLinks-D06dBL4a.js +78 -0
  18. package/dist/Shape-DEGOZ6GG.js +141 -0
  19. package/dist/Slicer-BlfyiHHD.js +1144 -0
  20. package/dist/SlicerPreview-BPS8mYO2.js +1523 -0
  21. package/dist/SparkTooltip-c2DL7gqD.js +93 -0
  22. package/dist/Title-__gWq2g6.js +87 -0
  23. package/dist/Tooltip-B7lmdbac.js +307 -0
  24. package/dist/UserOptions-DMw8EZEo.js +1407 -0
  25. package/dist/_plugin-vue_export-helper-Dq1MygBL.js +8 -0
  26. package/dist/canvas-lib-DTaADQOK.js +79 -0
  27. package/dist/components/arrow.js +2 -5
  28. package/dist/components/vue-ui-3d-bar.js +2 -5
  29. package/dist/components/vue-ui-accordion.js +2 -5
  30. package/dist/components/vue-ui-age-pyramid.js +2 -5
  31. package/dist/components/vue-ui-annotator.js +2 -5
  32. package/dist/components/vue-ui-bullet.js +2 -5
  33. package/dist/components/vue-ui-bump.js +2 -5
  34. package/dist/components/vue-ui-candlestick.js +2 -5
  35. package/dist/components/vue-ui-carousel-table.js +2 -5
  36. package/dist/components/vue-ui-chestnut.js +2 -5
  37. package/dist/components/vue-ui-chord.js +2 -5
  38. package/dist/components/vue-ui-circle-pack.js +2 -5
  39. package/dist/components/vue-ui-cursor.js +2 -5
  40. package/dist/components/vue-ui-dag.js +2 -5
  41. package/dist/components/vue-ui-dashboard.js +2 -5
  42. package/dist/components/vue-ui-digits.js +2 -5
  43. package/dist/components/vue-ui-donut-evolution.js +2 -5
  44. package/dist/components/vue-ui-donut.js +2 -5
  45. package/dist/components/vue-ui-dumbbell.js +2 -5
  46. package/dist/components/vue-ui-flow.js +2 -5
  47. package/dist/components/vue-ui-funnel.js +2 -5
  48. package/dist/components/vue-ui-galaxy.js +2 -5
  49. package/dist/components/vue-ui-gauge.js +2 -5
  50. package/dist/components/vue-ui-geo.js +2 -5
  51. package/dist/components/vue-ui-gizmo.js +2 -5
  52. package/dist/components/vue-ui-heatmap.js +2 -5
  53. package/dist/components/vue-ui-history-plot.js +2 -5
  54. package/dist/components/vue-ui-horizontal-bar.js +2 -5
  55. package/dist/components/vue-ui-icon.js +2 -5
  56. package/dist/components/vue-ui-kpi.js +2 -5
  57. package/dist/components/vue-ui-mini-loader.js +2 -5
  58. package/dist/components/vue-ui-molecule.js +2 -5
  59. package/dist/components/vue-ui-mood-radar.js +2 -5
  60. package/dist/components/vue-ui-nested-donuts.js +2 -5
  61. package/dist/components/vue-ui-onion.js +2 -5
  62. package/dist/components/vue-ui-parallel-coordinate-plot.js +2 -5
  63. package/dist/components/vue-ui-pattern-seed.js +2 -5
  64. package/dist/components/vue-ui-pattern.js +2 -5
  65. package/dist/components/vue-ui-quadrant.js +2 -5
  66. package/dist/components/vue-ui-quick-chart.js +2 -5
  67. package/dist/components/vue-ui-radar.js +2 -5
  68. package/dist/components/vue-ui-rating.js +2 -5
  69. package/dist/components/vue-ui-relation-circle.js +2 -5
  70. package/dist/components/vue-ui-ridgeline.js +2 -5
  71. package/dist/components/vue-ui-rings.js +2 -5
  72. package/dist/components/vue-ui-scatter.js +2 -5
  73. package/dist/components/vue-ui-skeleton.js +2 -5
  74. package/dist/components/vue-ui-smiley.js +2 -5
  75. package/dist/components/vue-ui-spark-trend.js +2 -5
  76. package/dist/components/vue-ui-sparkbar.js +2 -5
  77. package/dist/components/vue-ui-sparkgauge.js +2 -5
  78. package/dist/components/vue-ui-sparkhistogram.js +2 -5
  79. package/dist/components/vue-ui-sparkline.js +2 -5
  80. package/dist/components/vue-ui-sparkstackbar.js +2 -5
  81. package/dist/components/vue-ui-stackbar.js +2 -5
  82. package/dist/components/vue-ui-stackline.js +2 -5
  83. package/dist/components/vue-ui-strip-plot.js +2 -5
  84. package/dist/components/vue-ui-table-heatmap.js +2 -5
  85. package/dist/components/vue-ui-table-sparkline.js +2 -5
  86. package/dist/components/vue-ui-table.js +2 -5
  87. package/dist/components/vue-ui-thermometer.js +2 -5
  88. package/dist/components/vue-ui-timer.js +2 -5
  89. package/dist/components/vue-ui-tiremarks.js +2 -5
  90. package/dist/components/vue-ui-treemap.js +2 -5
  91. package/dist/components/vue-ui-vertical-bar.js +2 -5
  92. package/dist/components/vue-ui-waffle.js +2 -5
  93. package/dist/components/vue-ui-wheel.js +2 -5
  94. package/dist/components/vue-ui-word-cloud.js +2 -5
  95. package/dist/components/vue-ui-world.js +2 -5
  96. package/dist/components/vue-ui-xy-canvas.js +2 -5
  97. package/dist/components/vue-ui-xy.js +2 -5
  98. package/dist/dom-to-png-9WSt6hXe.js +237 -0
  99. package/dist/exposedLib-CwWU4zv-.js +19 -0
  100. package/dist/geoProjections-CQIkC70z.js +146 -0
  101. package/dist/img-BjOr008R.js +74 -0
  102. package/dist/labelUtils-Cr97N8E1.js +19 -0
  103. package/dist/lib-BkiwukKO.js +1879 -0
  104. package/dist/patternUtils-B7BWu5bV.js +258 -0
  105. package/dist/pdf-DSXSFUnK.js +90 -0
  106. package/dist/rolldown-runtime-CAFD8bLK.js +11 -0
  107. package/dist/style.css +2 -1
  108. package/dist/types/arrow.d.ts +1 -1
  109. package/dist/types/utils.d.ts +23 -0
  110. package/dist/types/vue-data-ui.d.ts +4775 -627
  111. package/dist/types/vue-ui-3d-bar.d.ts +64 -9
  112. package/dist/types/vue-ui-accordion.d.ts +4 -3
  113. package/dist/types/vue-ui-age-pyramid.d.ts +79 -9
  114. package/dist/types/vue-ui-annotator.d.ts +3 -5
  115. package/dist/types/vue-ui-bullet.d.ts +60 -9
  116. package/dist/types/vue-ui-bump.d.ts +65 -9
  117. package/dist/types/vue-ui-candlestick.d.ts +83 -9
  118. package/dist/types/vue-ui-carousel-table.d.ts +36 -6
  119. package/dist/types/vue-ui-chestnut.d.ts +66 -9
  120. package/dist/types/vue-ui-chord.d.ts +78 -9
  121. package/dist/types/vue-ui-circle-pack.d.ts +86 -9
  122. package/dist/types/vue-ui-cursor.d.ts +4 -2
  123. package/dist/types/vue-ui-dag.d.ts +92 -9
  124. package/dist/types/vue-ui-dashboard.d.ts +43 -6
  125. package/dist/types/vue-ui-digits.d.ts +4 -2
  126. package/dist/types/vue-ui-donut-evolution.d.ts +70 -9
  127. package/dist/types/vue-ui-donut.d.ts +92 -9
  128. package/dist/types/vue-ui-dumbbell.d.ts +65 -9
  129. package/dist/types/vue-ui-flow.d.ts +79 -9
  130. package/dist/types/vue-ui-funnel.d.ts +55 -9
  131. package/dist/types/vue-ui-galaxy.d.ts +83 -9
  132. package/dist/types/vue-ui-gauge.d.ts +64 -9
  133. package/dist/types/vue-ui-geo.d.ts +71 -9
  134. package/dist/types/vue-ui-gizmo.d.ts +17 -6
  135. package/dist/types/vue-ui-heatmap.d.ts +73 -9
  136. package/dist/types/vue-ui-history-plot.d.ts +82 -9
  137. package/dist/types/vue-ui-horizontal-bar.d.ts +84 -9
  138. package/dist/types/vue-ui-icon.d.ts +2 -2
  139. package/dist/types/vue-ui-kpi.d.ts +21 -7
  140. package/dist/types/vue-ui-mini-loader.d.ts +5 -3
  141. package/dist/types/vue-ui-molecule.d.ts +86 -9
  142. package/dist/types/vue-ui-mood-radar.d.ts +66 -9
  143. package/dist/types/vue-ui-nested-donuts.d.ts +80 -9
  144. package/dist/types/vue-ui-onion.d.ts +77 -9
  145. package/dist/types/vue-ui-parallel-coordinate-plot.d.ts +92 -9
  146. package/dist/types/vue-ui-pattern-seed.d.ts +1 -1
  147. package/dist/types/vue-ui-pattern.d.ts +2 -2
  148. package/dist/types/vue-ui-quadrant.d.ts +86 -9
  149. package/dist/types/vue-ui-quick-chart.d.ts +79 -9
  150. package/dist/types/vue-ui-radar.d.ts +83 -9
  151. package/dist/types/vue-ui-rating.d.ts +22 -6
  152. package/dist/types/vue-ui-relation-circle.d.ts +66 -9
  153. package/dist/types/vue-ui-ridgeline.d.ts +69 -9
  154. package/dist/types/vue-ui-rings.d.ts +70 -9
  155. package/dist/types/vue-ui-scatter.d.ts +67 -9
  156. package/dist/types/vue-ui-skeleton.d.ts +3 -2
  157. package/dist/types/vue-ui-smiley.d.ts +3 -2
  158. package/dist/types/vue-ui-spark-trend.d.ts +14 -6
  159. package/dist/types/vue-ui-sparkbar.d.ts +27 -6
  160. package/dist/types/vue-ui-sparkgauge.d.ts +20 -6
  161. package/dist/types/vue-ui-sparkhistogram.d.ts +24 -6
  162. package/dist/types/vue-ui-sparkline.d.ts +35 -6
  163. package/dist/types/vue-ui-sparkstackbar.d.ts +35 -6
  164. package/dist/types/vue-ui-stackbar.d.ts +85 -9
  165. package/dist/types/vue-ui-stackline.d.ts +81 -9
  166. package/dist/types/vue-ui-strip-plot.d.ts +66 -9
  167. package/dist/types/vue-ui-table-heatmap.d.ts +52 -6
  168. package/dist/types/vue-ui-table-sparkline.d.ts +30 -6
  169. package/dist/types/vue-ui-table.d.ts +10 -2
  170. package/dist/types/vue-ui-thermometer.d.ts +46 -9
  171. package/dist/types/vue-ui-timer.d.ts +31 -5
  172. package/dist/types/vue-ui-tiremarks.d.ts +46 -9
  173. package/dist/types/vue-ui-treemap.d.ts +73 -9
  174. package/dist/types/vue-ui-vertical-bar.d.ts +2 -2
  175. package/dist/types/vue-ui-waffle.d.ts +72 -9
  176. package/dist/types/vue-ui-wheel.d.ts +46 -9
  177. package/dist/types/vue-ui-word-cloud.d.ts +73 -9
  178. package/dist/types/vue-ui-world.d.ts +68 -9
  179. package/dist/types/vue-ui-xy-canvas.d.ts +75 -9
  180. package/dist/types/vue-ui-xy.d.ts +108 -10
  181. package/dist/useAutoSizeLabelsInsideViewbox-dp-3Gg97.js +50 -0
  182. package/dist/useChartAccessibility-Do37qcw2.js +12 -0
  183. package/dist/useConfig-BV0kTCnO.js +7431 -0
  184. package/dist/useFitSvgText-C-MEdAfe.js +63 -0
  185. package/dist/useNestedProp-Ck4hsrpu.js +10 -0
  186. package/dist/useObjectBindings-Ce_ZZk-f.js +189 -0
  187. package/dist/usePanZoom-B-4M_gmY.js +157 -0
  188. package/dist/usePrefersMotion-BywLbIko.js +15 -0
  189. package/dist/usePrinter-X0yWOynH.js +49 -0
  190. package/dist/useResponsive-CrAInupd.js +19 -0
  191. package/dist/useStableElementSize-0I1IpHPl.js +77 -0
  192. package/dist/useSvgExport-Dtu973wa.js +755 -0
  193. package/dist/useTableResponsive-DrM1xqII.js +24 -0
  194. package/dist/useThemeCheck-rFK9Zlb_.js +24 -0
  195. package/dist/useTimeLabelCollider-Dm55Emzg.js +57 -0
  196. package/dist/useTimeLabels-C0x7zUXP.js +272 -0
  197. package/dist/useUserOptionState-CjPJPTg2.js +15 -0
  198. package/dist/utils.js +27 -44
  199. package/dist/vClickOutside-CbX_bC9A.js +13 -0
  200. package/dist/vue-data-ui-DIh8ayZc.js +274 -0
  201. package/dist/vue-data-ui.js +76 -167
  202. package/dist/vue-ui-3d-bar-BZ8_6ylo.js +1747 -0
  203. package/dist/vue-ui-accordion-cVv18nTV.js +81 -0
  204. package/dist/vue-ui-age-pyramid-BR3i-CgS.js +1226 -0
  205. package/dist/vue-ui-annotator-B9mA_PlF.js +2899 -0
  206. package/dist/vue-ui-bullet-ByJdNLVf.js +700 -0
  207. package/dist/vue-ui-bump-Ps1gkA-F.js +1239 -0
  208. package/dist/vue-ui-candlestick-0C1QFoV4.js +1802 -0
  209. package/dist/vue-ui-carousel-table-1P28pCRK.js +445 -0
  210. package/dist/vue-ui-chestnut-CJOCGWwX.js +2000 -0
  211. package/dist/vue-ui-chord-BpiVJCCm.js +1381 -0
  212. package/dist/vue-ui-circle-pack-C3wvXz1f.js +1183 -0
  213. package/dist/vue-ui-cursor-CNn_3b24.js +283 -0
  214. package/dist/vue-ui-dag-DRVXVCJV.js +2899 -0
  215. package/dist/vue-ui-dashboard-gOXyms0o.js +503 -0
  216. package/dist/vue-ui-digits-DIKyN3z6.js +209 -0
  217. package/dist/vue-ui-donut-RogzKj0G.js +2396 -0
  218. package/dist/vue-ui-donut-evolution-Bxz06Qqf.js +1490 -0
  219. package/dist/vue-ui-dumbbell-D10T4gmB.js +1517 -0
  220. package/dist/vue-ui-flow-OK563Z46.js +1223 -0
  221. package/dist/vue-ui-funnel-nWmbiJu5.js +767 -0
  222. package/dist/vue-ui-galaxy-CtaTlHWZ.js +1062 -0
  223. package/dist/vue-ui-gauge-DWTEHJqX.js +910 -0
  224. package/dist/vue-ui-geo-DUpWvv5m.js +1504 -0
  225. package/dist/vue-ui-gizmo-vddzP4dM.js +225 -0
  226. package/dist/vue-ui-heatmap-CUE_zJQa.js +1556 -0
  227. package/dist/vue-ui-history-plot-CcRg_NgJ.js +1551 -0
  228. package/dist/vue-ui-horizontal-bar-DX5aZOEn.js +1669 -0
  229. package/dist/vue-ui-kpi-B74v84Hu.js +96 -0
  230. package/dist/vue-ui-mini-loader-BcCG6Yqb.js +125 -0
  231. package/dist/vue-ui-molecule-CVdB8rxf.js +912 -0
  232. package/dist/vue-ui-mood-radar-CWDVBOck.js +1138 -0
  233. package/dist/vue-ui-nested-donuts-Be8b5d81.js +1472 -0
  234. package/dist/vue-ui-onion-Cs90yQQZ.js +1188 -0
  235. package/dist/vue-ui-parallel-coordinate-plot-D-mZdTop.js +1413 -0
  236. package/dist/vue-ui-pattern-Bj-IPFr2.js +154 -0
  237. package/dist/vue-ui-pattern-seed-abRweCDE.js +61 -0
  238. package/dist/vue-ui-quadrant-DLD_ZR9M.js +1966 -0
  239. package/dist/vue-ui-quick-chart-UWjZdmzt.js +2459 -0
  240. package/dist/vue-ui-radar-Bxu07MOG.js +1214 -0
  241. package/dist/vue-ui-rating-DA9Bmfyb.js +343 -0
  242. package/dist/vue-ui-relation-circle-O5s1UJtt.js +914 -0
  243. package/dist/vue-ui-ridgeline-C3siN0d_.js +1612 -0
  244. package/dist/vue-ui-rings-DVVDtwhB.js +1231 -0
  245. package/dist/vue-ui-scatter-Cfvh06OC.js +2380 -0
  246. package/dist/vue-ui-skeleton-CxTmGCQp.js +2556 -0
  247. package/dist/vue-ui-smiley-B6nc7b71.js +356 -0
  248. package/dist/vue-ui-spark-trend--39vutfQ.js +438 -0
  249. package/dist/vue-ui-sparkbar-DhCRNOu4.js +393 -0
  250. package/dist/vue-ui-sparkgauge-6Igkqlqs.js +255 -0
  251. package/dist/vue-ui-sparkhistogram-BLEzZSZi.js +560 -0
  252. package/dist/vue-ui-sparkline-ppwKM4aO.js +1503 -0
  253. package/dist/vue-ui-sparkstackbar-uIzSq9Wh.js +660 -0
  254. package/dist/vue-ui-stackbar-CdOkMCbI.js +2235 -0
  255. package/dist/vue-ui-stackline-DifD9OXC.js +2362 -0
  256. package/dist/vue-ui-strip-plot-D1LjIVqK.js +1328 -0
  257. package/dist/vue-ui-table-WDkEyyQ0.js +1338 -0
  258. package/dist/vue-ui-table-heatmap-CfGJVzI3.js +334 -0
  259. package/dist/vue-ui-table-sparkline-BEWWP4Rq.js +697 -0
  260. package/dist/vue-ui-thermometer-CFWOAB8K.js +753 -0
  261. package/dist/vue-ui-timer-D1DQyf9i.js +439 -0
  262. package/dist/vue-ui-tiremarks-IeM3BlPW.js +542 -0
  263. package/dist/vue-ui-treemap-BGZM7ibv.js +1575 -0
  264. package/dist/vue-ui-waffle-a3dFVBk4.js +1350 -0
  265. package/dist/vue-ui-wheel-OnIRQJ8a.js +875 -0
  266. package/dist/vue-ui-word-cloud-C9SkyutR.js +1644 -0
  267. package/dist/vue-ui-world-CEevuFbk.js +14252 -0
  268. package/dist/vue-ui-xy-1hee-IEM.js +4114 -0
  269. package/dist/vue-ui-xy-canvas-D2f0d45c.js +1774 -0
  270. package/dist/vue_ui_3d_bar-CXKqO5Ej.js +185 -0
  271. package/dist/vue_ui_age_pyramid-BON8QI6X.js +301 -0
  272. package/dist/vue_ui_bullet-CE5sFT7u.js +186 -0
  273. package/dist/vue_ui_bump-frnXaXul.js +201 -0
  274. package/dist/vue_ui_candlestick-sY6UtOop.js +374 -0
  275. package/dist/vue_ui_chestnut-BiUZFv40.js +305 -0
  276. package/dist/vue_ui_chord-DpyR_b9A.js +275 -0
  277. package/dist/vue_ui_circle_pack-DBKz_Fi_.js +130 -0
  278. package/dist/vue_ui_dag-Ci_MOnvd.js +258 -0
  279. package/dist/vue_ui_donut-Cx2_BGcQ.js +358 -0
  280. package/dist/vue_ui_donut_evolution-CAJefrHs.js +717 -0
  281. package/dist/vue_ui_dumbbell-CClzAZTN.js +304 -0
  282. package/dist/vue_ui_flow-CCHO1Lo9.js +238 -0
  283. package/dist/vue_ui_funnel-h8q2mRpC.js +234 -0
  284. package/dist/vue_ui_galaxy-70vtkEBw.js +265 -0
  285. package/dist/vue_ui_gauge-C17CgfzN.js +178 -0
  286. package/dist/vue_ui_geo-C0UbQ0Lc.js +248 -0
  287. package/dist/vue_ui_heatmap-BqPP3J4M.js +319 -0
  288. package/dist/vue_ui_history_plot-C5nytDHh.js +413 -0
  289. package/dist/vue_ui_horizontal_bar-Bqxorkc_.js +341 -0
  290. package/dist/vue_ui_molecule-Dka4JBOp.js +231 -0
  291. package/dist/vue_ui_mood_radar-Dg4ijm53.js +281 -0
  292. package/dist/vue_ui_nested_donuts-BY9cOoHF.js +273 -0
  293. package/dist/vue_ui_onion-DTV9cup-.js +293 -0
  294. package/dist/vue_ui_parallel_coordinate_plot-CNWrDh96.js +278 -0
  295. package/dist/vue_ui_quadrant-3kjYvxpj.js +428 -0
  296. package/dist/vue_ui_quick_chart--VaYQuM4.js +139 -0
  297. package/dist/vue_ui_radar-Dxx9GJmj.js +306 -0
  298. package/dist/vue_ui_relation_circle-Cr0I2SoU.js +98 -0
  299. package/dist/vue_ui_ridgeline-CAtYca4b.js +767 -0
  300. package/dist/vue_ui_rings-DXC1VeX5.js +320 -0
  301. package/dist/vue_ui_scatter-D2S2j0ap.js +479 -0
  302. package/dist/vue_ui_spark_trend-BHMQ6_1p.js +82 -0
  303. package/dist/vue_ui_sparkbar-BR6hbuDE.js +64 -0
  304. package/dist/vue_ui_sparkgauge-xfPRHnMv.js +90 -0
  305. package/dist/vue_ui_sparkhistogram-CJRENZ1C.js +123 -0
  306. package/dist/vue_ui_sparkline-wgk7yO7E.js +151 -0
  307. package/dist/vue_ui_sparkstackbar-C5qZMmAl.js +175 -0
  308. package/dist/vue_ui_stackbar-BW_C3MXw.js +412 -0
  309. package/dist/vue_ui_stackline-DpI2LnjO.js +426 -0
  310. package/dist/vue_ui_strip_plot-8ZelqC5b.js +301 -0
  311. package/dist/vue_ui_table_heatmap-BGUjA0WA.js +80 -0
  312. package/dist/vue_ui_table_sparkline-i0Q-N_we.js +124 -0
  313. package/dist/vue_ui_thermometer-CuN7Gpez.js +123 -0
  314. package/dist/vue_ui_tiremarks-A6UHC0c3.js +122 -0
  315. package/dist/vue_ui_treemap-BQp06q-g.js +328 -0
  316. package/dist/vue_ui_vertical_bar-CJSD1FZS.js +247 -0
  317. package/dist/vue_ui_waffle-C_Ev4l7B.js +292 -0
  318. package/dist/vue_ui_wheel-DdkTPXJU.js +133 -0
  319. package/dist/vue_ui_word_cloud-B1PbsYPc.js +254 -0
  320. package/dist/vue_ui_xy-BYPqfYyx.js +482 -0
  321. package/dist/vue_ui_xy_canvas-CMHGNrLf.js +408 -0
  322. package/package.json +7 -7
  323. package/dist/A11yDataTable-BpmuNomI.js +0 -54
  324. package/dist/Arrow-dSvLFssU.js +0 -101
  325. package/dist/BaseDraggableDialog-Di8Hlru3.js +0 -249
  326. package/dist/BaseIcon-DX0hTWa-.js +0 -476
  327. package/dist/BaseLegendToggle-cMP8M2u0.js +0 -47
  328. package/dist/BaseScanner-C2j3TsSY.js +0 -36
  329. package/dist/BaseZoomControls-CVSC1-SU.js +0 -123
  330. package/dist/ColorPicker-bAxGcXK0.js +0 -271
  331. package/dist/DataTable-cMnb68Ik.js +0 -145
  332. package/dist/Legend-DGN5lY60.js +0 -104
  333. package/dist/NonSvgPenAndPaper-B6E0zEYe.js +0 -573
  334. package/dist/PackageVersion-BfrCAH6_.js +0 -10
  335. package/dist/PenAndPaper-CJDoB5H9.js +0 -527
  336. package/dist/RecursiveCircles-BE6GoMmo.js +0 -101
  337. package/dist/RecursiveLabels-BhQMS9Sm.js +0 -55
  338. package/dist/RecursiveLinks-BDwyYfP-.js +0 -83
  339. package/dist/Shape-CxJ5_Rre.js +0 -116
  340. package/dist/Slicer-D7UcO8sN.js +0 -1145
  341. package/dist/SlicerPreview-D_CgrN_7.js +0 -1580
  342. package/dist/SparkTooltip-D4bM-kfz.js +0 -68
  343. package/dist/Title-BbKoiBk2.js +0 -88
  344. package/dist/Tooltip-Cvt7Fi0Q.js +0 -299
  345. package/dist/UserOptions-DVduN6X7.js +0 -1474
  346. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
  347. package/dist/dom-to-png-DGvx6i5V.js +0 -262
  348. package/dist/exposedLib-sJvY1pST.js +0 -22
  349. package/dist/geoProjections-BFq2sOBY.js +0 -162
  350. package/dist/img-CjTQXS0U.js +0 -57
  351. package/dist/labelUtils-DX9oyq3C.js +0 -26
  352. package/dist/lib-DMzrGQHK.js +0 -2477
  353. package/dist/patternUtils-BINhU4Ky.js +0 -615
  354. package/dist/pdf-C4H4o1Cj.js +0 -88
  355. package/dist/useAutoSizeLabelsInsideViewbox-izlGDfwu.js +0 -55
  356. package/dist/useChartAccessibility-cp6XQtqi.js +0 -15
  357. package/dist/useConfig-CG4HT3wS.js +0 -7901
  358. package/dist/useFitSvgText-2crs6Fv5.js +0 -69
  359. package/dist/useNestedProp-DH0BEVVS.js +0 -13
  360. package/dist/useObjectBindings-Dixg-RIe.js +0 -228
  361. package/dist/usePanZoom-BbDhcKWf.js +0 -141
  362. package/dist/usePrefersMotion-Co0nj1eS.js +0 -17
  363. package/dist/usePrinter-C4t8DdQ-.js +0 -51
  364. package/dist/useResponsive-DfdjqQps.js +0 -195
  365. package/dist/useStableElementSize-C48ZVcZQ.js +0 -77
  366. package/dist/useSvgExport-BTG4hVPO.js +0 -870
  367. package/dist/useTableResponsive-BpfiEtzR.js +0 -26
  368. package/dist/useThemeCheck-C9Ccl7U9.js +0 -36
  369. package/dist/useTimeLabelCollider-D3JeJ6Ye.js +0 -86
  370. package/dist/useTimeLabels-Cv0tD9In.js +0 -307
  371. package/dist/useUserOptionState-B7Ej974k.js +0 -19
  372. package/dist/vClickOutside-C6WiFswA.js +0 -13
  373. package/dist/vue-data-ui-D1ZI7Y4l.js +0 -433
  374. package/dist/vue-ui-3d-bar-DEjKYzI5.js +0 -1824
  375. package/dist/vue-ui-accordion-DFtpH_16.js +0 -92
  376. package/dist/vue-ui-age-pyramid-LiC9hTjP.js +0 -1179
  377. package/dist/vue-ui-annotator-DrKnQoHf.js +0 -2991
  378. package/dist/vue-ui-bullet-DdxEINdq.js +0 -769
  379. package/dist/vue-ui-bump-CdgO1V7z.js +0 -1250
  380. package/dist/vue-ui-candlestick-DxJnPwto.js +0 -1775
  381. package/dist/vue-ui-carousel-table-CMefu5TI.js +0 -487
  382. package/dist/vue-ui-chestnut-BnGN72PO.js +0 -2001
  383. package/dist/vue-ui-chord-DWyar45U.js +0 -1457
  384. package/dist/vue-ui-circle-pack-CQ8vF2XH.js +0 -1076
  385. package/dist/vue-ui-cursor-HHOdkmyB.js +0 -260
  386. package/dist/vue-ui-dag-BDWPBElq.js +0 -3209
  387. package/dist/vue-ui-dashboard-Dg_I3X2a.js +0 -627
  388. package/dist/vue-ui-digits-CZmdir8V.js +0 -211
  389. package/dist/vue-ui-donut-BKegKHxj.js +0 -2608
  390. package/dist/vue-ui-donut-evolution-047dE4Lu.js +0 -1578
  391. package/dist/vue-ui-dumbbell-BL4ZMChj.js +0 -1552
  392. package/dist/vue-ui-flow-BAqtyunQ.js +0 -1279
  393. package/dist/vue-ui-funnel-Pl2sEOZs.js +0 -823
  394. package/dist/vue-ui-galaxy-CBF5Wsax.js +0 -1108
  395. package/dist/vue-ui-gauge-COV_S0Vp.js +0 -955
  396. package/dist/vue-ui-geo-CaPXElPf.js +0 -1510
  397. package/dist/vue-ui-gizmo-Csn7up96.js +0 -238
  398. package/dist/vue-ui-heatmap-Cpb0BYLa.js +0 -1694
  399. package/dist/vue-ui-history-plot-ZZEdzFCE.js +0 -1564
  400. package/dist/vue-ui-horizontal-bar-BonPYUZf.js +0 -1735
  401. package/dist/vue-ui-kpi-DoHhSsDK.js +0 -130
  402. package/dist/vue-ui-mini-loader-DOTBVCLE.js +0 -138
  403. package/dist/vue-ui-molecule-mVYnXouV.js +0 -945
  404. package/dist/vue-ui-mood-radar-DPvwnc3z.js +0 -1197
  405. package/dist/vue-ui-nested-donuts-C7E6TXrZ.js +0 -1702
  406. package/dist/vue-ui-onion-BGIlFhGB.js +0 -1207
  407. package/dist/vue-ui-parallel-coordinate-plot-C6G_A9ua.js +0 -1432
  408. package/dist/vue-ui-pattern-mXZW_pvA.js +0 -146
  409. package/dist/vue-ui-pattern-seed-BcNlxb2i.js +0 -36
  410. package/dist/vue-ui-quadrant-CVpIeYOB.js +0 -1918
  411. package/dist/vue-ui-quick-chart-CcV8qn9-.js +0 -2514
  412. package/dist/vue-ui-radar-G4AV1rBo.js +0 -1259
  413. package/dist/vue-ui-rating-CqPlP88P.js +0 -370
  414. package/dist/vue-ui-relation-circle-CkZ8oFVV.js +0 -856
  415. package/dist/vue-ui-ridgeline-CBTyYn6Q.js +0 -1737
  416. package/dist/vue-ui-rings-CSIOqFiP.js +0 -1256
  417. package/dist/vue-ui-scatter-AuC46ufT.js +0 -2345
  418. package/dist/vue-ui-skeleton-YD6rZjY_.js +0 -2475
  419. package/dist/vue-ui-smiley-CY0WFv2j.js +0 -391
  420. package/dist/vue-ui-spark-trend-D8KGIt-R.js +0 -423
  421. package/dist/vue-ui-sparkbar-BjWGJjzN.js +0 -424
  422. package/dist/vue-ui-sparkgauge-Dab5mss7.js +0 -285
  423. package/dist/vue-ui-sparkhistogram-D0rsmiPh.js +0 -559
  424. package/dist/vue-ui-sparkline-BCaauQuX.js +0 -1550
  425. package/dist/vue-ui-sparkstackbar-NT5yD6xA.js +0 -672
  426. package/dist/vue-ui-stackbar-ChBk_A1c.js +0 -2393
  427. package/dist/vue-ui-stackline-Cujamlze.js +0 -2490
  428. package/dist/vue-ui-strip-plot-CGBumG6I.js +0 -1293
  429. package/dist/vue-ui-table-BX2iMku4.js +0 -1726
  430. package/dist/vue-ui-table-heatmap-KXgXYVXm.js +0 -353
  431. package/dist/vue-ui-table-sparkline-C3NWnry0.js +0 -803
  432. package/dist/vue-ui-thermometer-DvdceZB1.js +0 -743
  433. package/dist/vue-ui-timer-XWAbvuAY.js +0 -504
  434. package/dist/vue-ui-tiremarks-B-YI1RlT.js +0 -578
  435. package/dist/vue-ui-treemap-AzorGfmd.js +0 -1757
  436. package/dist/vue-ui-waffle-CKtUvdTE.js +0 -1442
  437. package/dist/vue-ui-wheel-CnsLEArZ.js +0 -908
  438. package/dist/vue-ui-word-cloud-iAme2ihe.js +0 -1644
  439. package/dist/vue-ui-world-D5rrC9rw.js +0 -14452
  440. package/dist/vue-ui-xy-C_Q9chQe.js +0 -4468
  441. package/dist/vue-ui-xy-canvas-DG0299qE.js +0 -2107
  442. package/dist/vue_ui_3d_bar-CL0iX8Qi.js +0 -22
  443. package/dist/vue_ui_age_pyramid-8H8WSL7J.js +0 -22
  444. package/dist/vue_ui_bullet-Ckqieba5.js +0 -22
  445. package/dist/vue_ui_bump-CIht647H.js +0 -22
  446. package/dist/vue_ui_candlestick-BAMn-VGw.js +0 -22
  447. package/dist/vue_ui_chestnut-BloFvDuV.js +0 -22
  448. package/dist/vue_ui_chord-Bc1_ocwK.js +0 -22
  449. package/dist/vue_ui_circle_pack-CLmw8nHe.js +0 -22
  450. package/dist/vue_ui_dag-ZOwuDBZ8.js +0 -22
  451. package/dist/vue_ui_donut-CA4dgV8J.js +0 -22
  452. package/dist/vue_ui_donut_evolution-DFQU-rqE.js +0 -22
  453. package/dist/vue_ui_dumbbell-BCOHDiPk.js +0 -22
  454. package/dist/vue_ui_flow-BErINgox.js +0 -22
  455. package/dist/vue_ui_funnel-yuaMZ-yb.js +0 -22
  456. package/dist/vue_ui_galaxy-D95AN4FT.js +0 -22
  457. package/dist/vue_ui_gauge-BMEuRC4J.js +0 -22
  458. package/dist/vue_ui_geo--kg4VoVX.js +0 -22
  459. package/dist/vue_ui_heatmap-C9u993qE.js +0 -22
  460. package/dist/vue_ui_history_plot-BCKk1CrQ.js +0 -22
  461. package/dist/vue_ui_horizontal_bar-BEagrV0T.js +0 -22
  462. package/dist/vue_ui_molecule-BtvlINUh.js +0 -22
  463. package/dist/vue_ui_mood_radar-BUs6Fdn8.js +0 -22
  464. package/dist/vue_ui_nested_donuts-DvTrWT_C.js +0 -22
  465. package/dist/vue_ui_onion-CxWH9_OZ.js +0 -22
  466. package/dist/vue_ui_parallel_coordinate_plot-DH3cFJ3n.js +0 -22
  467. package/dist/vue_ui_quadrant-DjRs--Uz.js +0 -22
  468. package/dist/vue_ui_quick_chart-DMCjEjPe.js +0 -22
  469. package/dist/vue_ui_radar-DryGBOrz.js +0 -22
  470. package/dist/vue_ui_relation_circle-CCroen7h.js +0 -22
  471. package/dist/vue_ui_ridgeline-j4rVmpEp.js +0 -22
  472. package/dist/vue_ui_rings-CxOrekqA.js +0 -22
  473. package/dist/vue_ui_scatter-Bu1EAy9H.js +0 -22
  474. package/dist/vue_ui_spark_trend-3BjrSprO.js +0 -22
  475. package/dist/vue_ui_sparkbar-BsMzz5Um.js +0 -22
  476. package/dist/vue_ui_sparkgauge-KnjASOZs.js +0 -22
  477. package/dist/vue_ui_sparkhistogram-GBdzIVvS.js +0 -22
  478. package/dist/vue_ui_sparkline-CQ8DJVJx.js +0 -22
  479. package/dist/vue_ui_sparkstackbar-BSexvOuM.js +0 -22
  480. package/dist/vue_ui_stackbar-CuDC4O4b.js +0 -22
  481. package/dist/vue_ui_stackline-QTh-nuxE.js +0 -22
  482. package/dist/vue_ui_strip_plot-B9ypi_F3.js +0 -22
  483. package/dist/vue_ui_table_heatmap-CkvipPVy.js +0 -16
  484. package/dist/vue_ui_table_sparkline-yQdijcyJ.js +0 -22
  485. package/dist/vue_ui_thermometer-BTmjRBH8.js +0 -22
  486. package/dist/vue_ui_tiremarks-DBotWfi8.js +0 -22
  487. package/dist/vue_ui_treemap-D9-AIkT-.js +0 -22
  488. package/dist/vue_ui_vertical_bar-CELc39b8.js +0 -18
  489. package/dist/vue_ui_waffle-M2h-uJQ_.js +0 -22
  490. package/dist/vue_ui_wheel-LqBz3lv4.js +0 -22
  491. package/dist/vue_ui_word_cloud-mKAtBxHR.js +0 -22
  492. package/dist/vue_ui_xy-esktmpg-.js +0 -22
  493. package/dist/vue_ui_xy_canvas-6BBDSowT.js +0 -22
@@ -1,1702 +0,0 @@
1
- import { defineAsyncComponent as G, computed as $, ref as h, toRefs as Ol, watch as fe, onMounted as Fl, shallowRef as Ft, onBeforeUnmount as Dl, openBlock as u, createElementBlock as r, unref as v, normalizeStyle as pe, normalizeClass as Z, createElementVNode as g, toDisplayString as E, createBlock as V, createCommentVNode as A, withCtx as y, renderSlot as b, normalizeProps as P, guardReactiveProps as S, createSlots as Dt, createVNode as Ke, Fragment as T, renderList as _, withDirectives as Nt, vShow as Vt, Teleport as Nl, resolveDynamicComponent as Vl, mergeProps as Ml, createTextVNode as Mt, nextTick as Xe } from "vue";
2
- import { j as zl, t as zt, m as Bl, p as He, o as El, q as oe, n as Ul, a8 as Y, s as Rl, a4 as qe, k as Le, l as D, X as Gl, u as Yl, a as Bt, a6 as Et, a7 as xe, B as Ut, T as Rt, a0 as Wl, a1 as Kl, U as Xl, ai as Gt, K as je } from "./lib-DMzrGQHK.js";
3
- import { b as Hl } from "./labelUtils-DX9oyq3C.js";
4
- import { t as ql, u as jl } from "./useResponsive-DfdjqQps.js";
5
- import { u as Jl } from "./useConfig-CG4HT3wS.js";
6
- import { u as Ql, B as Zl } from "./BaseScanner-C2j3TsSY.js";
7
- import { u as ea } from "./usePrinter-C4t8DdQ-.js";
8
- import { u as ta } from "./useSvgExport-BTG4hVPO.js";
9
- import { u as Je } from "./useNestedProp-DH0BEVVS.js";
10
- import { u as la } from "./useThemeCheck-C9Ccl7U9.js";
11
- import { u as aa } from "./useUserOptionState-B7Ej974k.js";
12
- import { u as oa } from "./useChartAccessibility-cp6XQtqi.js";
13
- import sa from "./img-CjTQXS0U.js";
14
- import na from "./Title-BbKoiBk2.js";
15
- import ua from "./vue_ui_nested_donuts-DvTrWT_C.js";
16
- import ra from "./Legend-DGN5lY60.js";
17
- import { A as ia } from "./A11yDataTable-BpmuNomI.js";
18
- import { B as da } from "./BaseLegendToggle-cMP8M2u0.js";
19
- import { _ as ca } from "./_plugin-vue_export-helper-CHgC5LLL.js";
20
- const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative" } }, ga = ["xmlns", "aria-describedby", "viewBox"], ya = ["width", "height"], ba = ["id"], ma = ["offset", "stop-color"], wa = ["offset", "stop-opacity"], ka = ["id"], $a = ["id"], Ca = ["id"], Aa = ["flood-color"], La = ["id", "d"], xa = ["d", "fill", "stroke", "stroke-width", "filter"], Ta = ["d", "fill", "stroke", "stroke-width"], _a = { key: 1 }, Pa = ["d", "fill"], Sa = { key: 2 }, Ia = ["font-size", "font-weight", "fill", "dy"], Oa = ["href"], Fa = ["x", "y", "font-size", "font-weight", "fill"], Da = { key: 3 }, Na = ["filter"], Va = ["opacity", "text-anchor", "x", "y", "fill", "font-size", "font-weight"], Ma = ["opacity", "text-anchor", "x", "y", "fill", "font-size", "font-weight"], za = ["d", "fill", "onMouseenter", "onClick", "onMouseleave"], Ba = {
21
- key: 0,
22
- style: { position: "absolute", top: "100%", left: "0", width: "100%" },
23
- "data-dom-to-png-ignore": "",
24
- "aria-hidden": "true"
25
- }, Ea = {
26
- key: 5,
27
- class: "vue-data-ui-watermark"
28
- }, Ua = ["id"], Ra = {
29
- key: 0,
30
- class: "vue-ui-nested-donuts-legend-title"
31
- }, Ga = ["onClick"], Ya = ["innerHTML"], Wa = {
32
- __name: "vue-ui-nested-donuts",
33
- props: {
34
- config: {
35
- type: Object,
36
- default() {
37
- return {};
38
- }
39
- },
40
- dataset: {
41
- type: Array,
42
- default() {
43
- return [];
44
- }
45
- }
46
- },
47
- emits: ["selectLegend", "selectDatapoint", "copyAlt"],
48
- setup(Yt, { expose: Wt, emit: Kt }) {
49
- const Xt = G(() => import("./Tooltip-Cvt7Fi0Q.js")), Ht = G(() => import("./BaseIcon-DX0hTWa-.js")), qt = G(() => import("./vue-ui-accordion-DFtpH_16.js")), jt = G(() => import("./DataTable-cMnb68Ik.js")), Jt = G(
50
- () => import("./UserOptions-DVduN6X7.js")
51
- ), Qt = G(
52
- () => import("./PenAndPaper-CJDoB5H9.js")
53
- ), Zt = G(
54
- () => import("./PackageVersion-BfrCAH6_.js")
55
- ), el = G(
56
- () => import("./BaseDraggableDialog-Di8Hlru3.js")
57
- ), { vue_ui_nested_donuts: tl } = Jl(), { isThemeValid: ll, warnInvalidTheme: al } = la(), I = Yt, Te = $({
58
- get() {
59
- return !!I.dataset && I.dataset.length;
60
- },
61
- set(t) {
62
- return t;
63
- }
64
- }), f = h(zl()), se = h(!1), _e = h(""), ne = h(null), Qe = h(0), M = h(null), Ze = h(null), et = h(null), tt = h(null), lt = h(null), at = h(0), ot = h(0), st = h(0), W = h(!0), K = h([]), ue = h([]), nt = h(!1), re = h(null), Pe = h(null), ge = h(!1), ye = h(!1), N = h(null), ut = h({ x: 0, y: 0 }), ie = h("pointer"), Se = h(!1), X = h(!1);
65
- function rt(t) {
66
- X.value = t, Qe.value += 1;
67
- }
68
- const e = h(Fe()), H = $(
69
- () => e.value.userOptions.useCursorPointer
70
- ), it = {
71
- name: "",
72
- series: [
73
- {
74
- name: "",
75
- values: [3],
76
- color: "#BABABA"
77
- },
78
- {
79
- name: "",
80
- values: [2],
81
- color: "#AAAAAA"
82
- },
83
- {
84
- name: "",
85
- values: [1],
86
- color: "#CACACA"
87
- }
88
- ]
89
- }, ol = $(() => zt({
90
- defaultConfig: {
91
- useCssAnimation: !1,
92
- table: { show: !1 },
93
- startAnimation: { show: !1 },
94
- userOptions: { show: !1 },
95
- style: {
96
- chart: {
97
- backgroundColor: "#99999930",
98
- layout: {
99
- labels: {
100
- dataLabels: { show: !1 }
101
- }
102
- },
103
- legend: {
104
- backgroundColor: "transparent",
105
- showValue: !1,
106
- showPercentage: !1
107
- },
108
- title: {
109
- color: "#1A1A1A",
110
- subtitle: {
111
- color: "#5A5A5A"
112
- }
113
- }
114
- }
115
- }
116
- },
117
- userConfig: e.value.skeletonConfig ?? {}
118
- })), { loading: be, FINAL_DATASET: q, manualLoading: Ie } = Ql({
119
- ...Ol(I),
120
- FINAL_CONFIG: e,
121
- prepareConfig: Fe,
122
- callback: () => {
123
- Promise.resolve().then(async () => {
124
- await ht();
125
- });
126
- },
127
- skeletonDataset: I.config?.skeletonDataset ?? [it, it],
128
- skeletonConfig: zt({
129
- defaultConfig: e.value,
130
- userConfig: ol.value
131
- })
132
- }), { userOptionsVisible: Oe, setUserOptionsVisibility: dt, keepUserOptionState: ct } = aa({ config: e.value }), { svgRef: z } = oa({
133
- config: e.value.style.chart.title
134
- });
135
- function Fe() {
136
- const t = Je({
137
- userConfig: I.config,
138
- defaultConfig: tl
139
- });
140
- let s = {};
141
- const l = t.theme;
142
- if (l)
143
- if (!ll.value(t))
144
- al(t), s = t;
145
- else {
146
- const o = Je({
147
- userConfig: ua[l] || I.config,
148
- defaultConfig: t
149
- });
150
- s = {
151
- ...Je({
152
- userConfig: I.config,
153
- defaultConfig: o
154
- }),
155
- customPalette: t.customPalette.length ? t.customPalette : Bl[l] || He
156
- };
157
- }
158
- else
159
- s = t;
160
- return s;
161
- }
162
- fe(
163
- () => I.config,
164
- (t) => {
165
- be.value || (e.value = Fe()), Oe.value = !e.value.userOptions.showOnChartHover, ft(), at.value += 1, ot.value += 1, st.value += 1, L.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, L.value.showTable = e.value.table.show, L.value.showTooltip = e.value.style.chart.tooltip.show, p.value.width = e.value.style.chart.width, p.value.height = e.value.style.chart.height;
166
- },
167
- { deep: !0 }
168
- );
169
- const vt = $(() => {
170
- const { top: t, right: s, bottom: l, left: o } = e.value.style.chart.padding;
171
- return {
172
- css: `padding:${t}px ${s}px ${l}px ${o}px`,
173
- top: t,
174
- right: s,
175
- bottom: l,
176
- left: o
177
- };
178
- });
179
- function sl(t, s = 1e3, l = 50) {
180
- return new Promise((o) => {
181
- const a = t.length;
182
- K.value = Array(a).fill(0), ue.value = [];
183
- let n = 0;
184
- t.forEach((d, c) => {
185
- setTimeout(() => {
186
- const k = performance.now();
187
- function i(w) {
188
- const x = Math.min((w - k) / s, 1), ve = Gt(x), he = d * ve;
189
- K.value[c] = he, K.value = [...K.value];
190
- const Ce = [];
191
- let Ue = 0;
192
- I.dataset.forEach((Ae, Re) => {
193
- const _l = je(
194
- Ae.series.reduce(
195
- (Ye, We) => Ye + je(
196
- Y(We.values).reduce(
197
- (Sl, Il) => Sl + Il,
198
- 0
199
- )
200
- ),
201
- 0
202
- )
203
- ), Pl = je(
204
- K.value.slice(Ue, Ue + Ae.series.length).reduce((Ye, We) => Ye + We, 0)
205
- ), Ge = _l - Pl;
206
- Ge > Number.MIN_VALUE && Ce.push({
207
- name: "__ghost__",
208
- arcOf: Ae.name,
209
- arcOfId: `${f.value}_${Re}`,
210
- id: `ghost_${f.value}_${Re}`,
211
- seriesIndex: -1,
212
- datasetIndex: Re,
213
- color: "transparent",
214
- value: Ge,
215
- fullValue: Ge,
216
- absoluteValues: [],
217
- ghost: !0
218
- }), Ue += Ae.series.length;
219
- }), ue.value = Ce, x < 1 ? requestAnimationFrame(i) : (n += 1, n === a && o());
220
- }
221
- requestAnimationFrame(i);
222
- }, c * l);
223
- });
224
- });
225
- }
226
- async function ht() {
227
- if (e.value.startAnimation?.show) {
228
- const s = q.value.flatMap((l) => l.series).map(
229
- (l) => Y(l.values).reduce((o, a) => o + a, 0)
230
- );
231
- K.value = s.map(() => 0), W.value = !0, ue.value = q.value.map((l, o) => {
232
- const a = l.series.reduce(
233
- (n, d) => n + Y(d.values).reduce((c, k) => c + k, 0),
234
- 0
235
- );
236
- return {
237
- name: "__ghost__",
238
- arcOf: l.name,
239
- arcOfId: `${f.value}_${o}`,
240
- id: `ghost_${f.value}_${o}`,
241
- seriesIndex: -1,
242
- datasetIndex: o,
243
- color: "transparent",
244
- value: a,
245
- fullValue: a,
246
- absoluteValues: [],
247
- ghost: !0
248
- };
249
- }), await Xe(), sl(
250
- s,
251
- e.value.startAnimation.durationMs,
252
- e.value.startAnimation.staggerMs
253
- ).then(() => {
254
- W.value = !1, ue.value = [];
255
- });
256
- } else
257
- W.value = !1;
258
- }
259
- Fl(async () => {
260
- nt.value = !0, ft(), await ht();
261
- });
262
- const U = Ft(null), ee = Ft(null), te = $(() => !!e.value.debug);
263
- function ft() {
264
- if (El(I.dataset) ? (oe({
265
- componentName: "VueUiNestedDonuts",
266
- type: "dataset",
267
- debug: te.value
268
- }), Te.value = !1, Ie.value = !0) : Ie.value = e.value.loading, e.value.responsive) {
269
- const t = ql(() => {
270
- const { width: s, height: l } = jl({
271
- chart: M.value,
272
- title: e.value.style.chart.title.text ? Ze.value : null,
273
- legend: e.value.style.chart.legend.show ? et.value : null,
274
- source: tt.value,
275
- noTitle: lt.value,
276
- padding: vt.value
277
- });
278
- requestAnimationFrame(() => {
279
- p.value.width = s, p.value.height = l;
280
- });
281
- });
282
- U.value && (ee.value && U.value.unobserve(ee.value), U.value.disconnect()), U.value = new ResizeObserver(t), ee.value = M.value.parentNode, U.value.observe(ee.value);
283
- }
284
- }
285
- Dl(() => {
286
- U.value && (ee.value && U.value.unobserve(ee.value), U.value.disconnect());
287
- });
288
- const { isPrinting: De, isImaging: Ne, generatePdf: pt, generateImage: gt } = ea({
289
- elementId: `nested_donuts_${f.value}`,
290
- fileName: e.value.style.chart.title.text || "vue-ui-nested-donuts",
291
- options: e.value.userOptions.print
292
- }), nl = $(() => e.value.userOptions.show && !e.value.style.chart.title.text), ul = $(() => Ul(e.value.customPalette)), L = h({
293
- dataLabels: {
294
- show: e.value.style.chart.layout.labels.dataLabels.show
295
- },
296
- showTable: e.value.table.show,
297
- showTooltip: e.value.style.chart.tooltip.show
298
- });
299
- fe(
300
- e,
301
- () => {
302
- L.value = {
303
- dataLabels: {
304
- show: e.value.style.chart.layout.labels.dataLabels.show
305
- },
306
- showTable: e.value.table.show,
307
- showTooltip: e.value.style.chart.tooltip.show
308
- };
309
- },
310
- { immediate: !0 }
311
- );
312
- const p = h({
313
- width: e.value.style.chart.width,
314
- height: e.value.style.chart.height
315
- }), Ve = Kt;
316
- function yt({ datapoint: t, index: s, seriesIndex: l }) {
317
- e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: l }), Ve("selectDatapoint", { datapoint: t, index: s });
318
- }
319
- function bt({
320
- from: t,
321
- to: s,
322
- duration: l,
323
- onUpdate: o,
324
- onDone: a,
325
- easing: n = Gt
326
- }) {
327
- const d = performance.now();
328
- function c(k) {
329
- const i = Math.min((k - d) / l, 1), w = n(i), x = t + (s - t) * w;
330
- o(x, i), i < 1 ? requestAnimationFrame(c) : (o(s, 1), a && a());
331
- }
332
- requestAnimationFrame(c);
333
- }
334
- const m = h([]), O = $(() => {
335
- be.value, q.value.forEach((s, l) => {
336
- [null, void 0].includes(s.name) && oe({
337
- componentName: "VueUiNestedDonuts",
338
- type: "datasetSerieAttribute",
339
- property: "name",
340
- index: l,
341
- debug: te.value
342
- }), [null, void 0].includes(s.series) ? oe({
343
- componentName: "VueUiNestedDonuts",
344
- type: "datasetSerieAttribute",
345
- property: "series",
346
- index: l,
347
- debug: te.value
348
- }) : s.series.length === 0 ? oe({
349
- componentName: "VueUiNestedDonuts",
350
- type: "datasetAttributeEmpty",
351
- property: `series at index ${l}`,
352
- debug: te.value
353
- }) : s.series.forEach((o, a) => {
354
- [null, void 0].includes(o.name) && oe({
355
- componentName: "VueUiNestedDonuts",
356
- type: "datasetSerieAttribute",
357
- property: "name",
358
- index: a,
359
- key: "serie",
360
- debug: te.value
361
- }), [null, void 0].includes(o.values) && oe({
362
- componentName: "VueUiNestedDonuts",
363
- type: "datasetSerieAttribute",
364
- property: "values",
365
- index: a,
366
- key: "serie",
367
- debug: te.value
368
- });
369
- });
370
- });
371
- let t = 0;
372
- return q.value.map((s, l) => ({
373
- ...s,
374
- total: s.series.filter((o) => !m.value.includes(o.id)).map((o) => Y(o.values).reduce((a, n) => a + n, 0)).reduce((o, a) => o + a, 0),
375
- datasetIndex: l,
376
- id: `${f.value}_${l}`,
377
- series: s.series.map((o, a) => {
378
- const n = Y(o.values).reduce(
379
- (d, c) => d + c,
380
- 0
381
- );
382
- return {
383
- name: o.name,
384
- arcOf: s.name,
385
- arcOfId: `${f.value}_${l}`,
386
- id: `${f.value}_${l}_${a}`,
387
- seriesIndex: a,
388
- datasetIndex: l,
389
- color: Rl(o.color) || ul.value[a] || He[a % He.length],
390
- value: W.value ? K.value[t++] ?? 0 : n,
391
- absoluteValues: o.values || []
392
- };
393
- })
394
- }));
395
- });
396
- fe(
397
- () => I.dataset,
398
- (t) => {
399
- Array.isArray(t) && t.length > 0 && (Ie.value = !1);
400
- },
401
- { immediate: !0 }
402
- );
403
- const B = $(() => Math.min(p.value.height, p.value.width) * (e.value.style.chart.layout.donut.strokeWidth / 512)), mt = $(() => [...O.value].map((t, s) => {
404
- const l = t.series.filter((o) => !m.value.includes(o.id)).map((o) => o.value).reduce((o, a) => o + a, 0);
405
- return {
406
- ...t,
407
- total: l,
408
- series: t.series.filter((o) => !m.value.includes(o.id)).map((o) => ({
409
- ...o,
410
- proportion: o.value / l
411
- }))
412
- };
413
- }));
414
- function rl(t, s, l) {
415
- let o = 0;
416
- for (let a = 0; a < t.length; a += 1)
417
- l.includes(t[a]) && (o += 1);
418
- return o < s;
419
- }
420
- const C = h(mt.value);
421
- fe(
422
- () => mt.value,
423
- (t) => C.value = t
424
- );
425
- function il(t) {
426
- const s = t.map((l) => l.id);
427
- if (t.some((l) => m.value.includes(l.id))) {
428
- const l = new Set(s);
429
- m.value = m.value.filter((o) => !l.has(o));
430
- } else
431
- m.value.push(...s);
432
- }
433
- function j(t) {
434
- Ve("selectLegend", t);
435
- const s = I.dataset.flatMap(
436
- (i, w) => i.series.map((x, ve) => ({
437
- value: Y(x.values).reduce((he, Ce) => he + Ce, 0),
438
- id: `${f.value}_${w}_${ve}`,
439
- arcOfId: `${f.value}_${w}`
440
- }))
441
- ).find((i) => i.id === t.id);
442
- if (!s) return;
443
- const l = O.value.flatMap((i) => i.series).find((i) => i.id === t.id)?.value ?? 0, o = C.value.flatMap((i) => i.series).find((i) => i.id === t.id);
444
- let n = o ? o.value : 0;
445
- const d = O.value.find(
446
- (i) => i.id === s.arcOfId
447
- );
448
- if (!d) return;
449
- const c = d.series.map((i) => i.id), k = rl(
450
- c,
451
- c.length - 1,
452
- m.value
453
- );
454
- m.value.includes(t.id) ? (m.value = m.value.filter((i) => i !== t.id), e.value.serieToggleAnimation.show ? bt({
455
- from: n,
456
- to: l,
457
- duration: e.value.serieToggleAnimation.durationMs,
458
- onUpdate: (i) => {
459
- C.value = C.value.map((w) => ({
460
- ...w,
461
- series: w.series.map(
462
- (x) => x.id === t.id ? { ...x, value: i } : x
463
- )
464
- }));
465
- }
466
- }) : C.value = C.value.map((i) => ({
467
- ...i,
468
- series: i.series.map(
469
- (w) => w.id === t.id ? { ...w, value: l } : w
470
- )
471
- }))) : k && (e.value.serieToggleAnimation.show ? bt({
472
- from: n,
473
- to: 0,
474
- duration: e.value.serieToggleAnimation.durationMs,
475
- onUpdate: (i) => {
476
- C.value = C.value.map((w) => ({
477
- ...w,
478
- series: w.series.map(
479
- (x) => x.id === t.id ? { ...x, value: i } : x
480
- )
481
- }));
482
- },
483
- onDone: () => {
484
- m.value.push(t.id);
485
- }
486
- }) : (C.value = C.value.map((i) => ({
487
- ...i,
488
- series: i.series.map(
489
- (w) => w.id === t.id ? { ...w, value: 0 } : w
490
- )
491
- })), m.value.push(t.id)));
492
- }
493
- function wt(t) {
494
- if (!O.value.length)
495
- return e.value.debug && console.warn("VueUiNestedDonuts - There are no series to show."), null;
496
- const s = O.value.flatMap((l) => l.series).filter((l) => l.name === t);
497
- return s || (e.value.debug && console.warn(`VueUiNestedDonuts - Series name not found "${t}"`), null);
498
- }
499
- function dl(t) {
500
- const s = wt(t);
501
- s !== null && (Array.isArray(s) ? s.forEach((l) => {
502
- m.value.includes(l.id) && j({ id: l.id });
503
- }) : m.value.includes(s.id) && j({ id: s.id }));
504
- }
505
- function cl(t) {
506
- const s = wt(t);
507
- s !== null && (Array.isArray(s) ? s.forEach((l) => {
508
- m.value.includes(l.id) || j({ id: l.id });
509
- }) : m.value.includes(s.id) || j({ id: s.id }));
510
- }
511
- const me = $(() => B.value / O.value.length * e.value.style.chart.layout.donut.spacingRatio), kt = $(() => C.value.map((t, s) => B.value - s * B.value / O.value.length)), J = $(() => C.value.map((t, s) => {
512
- const l = Math.abs(t.series.map((k) => k.value).reduce((k, i) => k + i, 0)) > 0, o = B.value - s * B.value / C.value.length, a = W.value ? ue.value.find((k) => k.datasetIndex === s) : null, n = [...t.series, ...a ? [a] : []].map((k) => ({
513
- ...k,
514
- value: k.value < 1e-11 ? Number.MIN_VALUE : k.value
515
- })), d = qe(
516
- {
517
- series: [
518
- {
519
- name: "_",
520
- color: e.value.style.chart.layout.donut.emptyFill,
521
- value: 1
522
- }
523
- ]
524
- },
525
- p.value.width / 2,
526
- p.value.height / 2,
527
- o,
528
- o,
529
- 1.99999,
530
- 2,
531
- 1,
532
- 360,
533
- 105.25,
534
- me.value
535
- ), c = `M ${p.value.width / 2},${p.value.height / 2 + o}
536
- a ${o},${o} 0 1,1 0,${-2 * o}
537
- a ${o},${o} 0 1,1 0,${2 * o}`;
538
- return {
539
- ...t,
540
- hasData: l,
541
- radius: o,
542
- skeleton: d,
543
- fullCirclePath: c,
544
- donut: qe(
545
- { series: n },
546
- p.value.width / 2,
547
- p.value.height / 2,
548
- o,
549
- o,
550
- 1.99999,
551
- 2,
552
- 1,
553
- 360,
554
- 105.25,
555
- me.value
556
- )
557
- };
558
- })), $t = $(() => [...O.value].map((t, s) => {
559
- const l = s * B.value / O.value.length;
560
- return {
561
- sizeRatio: l,
562
- donut: qe(
563
- { series: [{ value: 1 }] },
564
- p.value.width / 2,
565
- p.value.height / 2,
566
- B.value - l,
567
- B.value - l,
568
- 1.99999,
569
- 2,
570
- 1,
571
- 360,
572
- 105.25,
573
- B.value / O.value.length * e.value.style.chart.layout.donut.spacingRatio
574
- )[0]
575
- };
576
- })), we = h(null), le = h(null), Q = h(null), ke = h(null);
577
- function vl({ datapoint: t, seriesIndex: s }) {
578
- e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: s }), se.value = !1, we.value = null, ne.value = null, le.value = null, Q.value = null, N.value = null, ie.value = "pointer";
579
- }
580
- function Ct({ val: t, percentage: s, showVal: l, showPercentage: o, config: a }) {
581
- return Hl({
582
- config: a,
583
- val: t,
584
- percentage: s,
585
- showVal: l,
586
- showPercentage: o
587
- });
588
- }
589
- function At({
590
- datapoint: t,
591
- _relativeIndex: s,
592
- seriesIndex: l,
593
- triggerMode: o = "pointer"
594
- }) {
595
- e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: l }), ie.value = o, N.value = l, we.value = t.arcOfId, le.value = t.id, Q.value = l, ne.value = t.id, ke.value = {
596
- datapoint: t,
597
- seriesIndex: l,
598
- series: C.value,
599
- config: e.value
600
- };
601
- const a = e.value.style.chart.tooltip.customFormat;
602
- if (Rt(a) && Xl(
603
- () => a({
604
- seriesIndex: l,
605
- datapoint: t,
606
- series: C.value,
607
- config: e.value
608
- })
609
- ))
610
- _e.value = a({
611
- seriesIndex: l,
612
- datapoint: t,
613
- series: C.value,
614
- config: e.value
615
- });
616
- else {
617
- let n = "";
618
- if (e.value.style.chart.tooltip.showAllItemsAtIndex && m.value.length === 0) {
619
- const d = C.value.map((c) => c.series.find((k) => k.seriesIndex === l));
620
- d.forEach((c, k) => {
621
- if (!c) return "";
622
- n += `
623
- <div style="display:flex; flex-direction: column; justify-content:flex-start; align-items:flex-start;padding:6px 0; ${k < d.length - 1 ? `border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor}` : ""}">
624
- <div style="display:flex; flex-direction: row; gap: 3px; justify-content:flex-start; align-items:center;">
625
- <svg viewBox="0 0 20 20" height="${e.value.style.chart.tooltip.fontSize}" width="${e.value.style.chart.tooltip.fontSize}">
626
- <circle cx="10" cy="10" r="10" fill="${c.color}"/>
627
- </svg>
628
- <span>
629
- ${c.arcOf ?? ""} - ${c.name}
630
- </span>
631
- </div>
632
- <span>
633
- <b>
634
- ${Ct({
635
- config: e.value.style.chart.tooltip,
636
- showVal: e.value.style.chart.tooltip.showValue,
637
- showPercentage: e.value.style.chart.tooltip.showPercentage,
638
- val: Le(
639
- e.value.style.chart.layout.labels.dataLabels.formatter,
640
- t.value,
641
- D({
642
- p: e.value.style.chart.layout.labels.dataLabels.prefix,
643
- v: t.value,
644
- s: e.value.style.chart.layout.labels.dataLabels.suffix,
645
- r: e.value.style.chart.tooltip.roundingValue
646
- }),
647
- { datapoint: t, seriesIndex: l }
648
- ),
649
- percentage: D({
650
- v: c.proportion * 100,
651
- s: "%",
652
- r: e.value.style.chart.tooltip.roundingPercentage
653
- })
654
- })}
655
- </b>
656
- </span>
657
- </div>
658
- `;
659
- });
660
- } else
661
- n += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${t.arcOf ?? ""} - ${t.name}</div>`, n += `<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="${t.color}"/></svg>`, e.value.style.chart.tooltip.showValue && (n += `<b>${Le(
662
- e.value.style.chart.layout.labels.dataLabels.formatter,
663
- t.value,
664
- D({
665
- p: e.value.style.chart.layout.labels.dataLabels.prefix,
666
- v: t.value,
667
- s: e.value.style.chart.layout.labels.dataLabels.suffix,
668
- r: e.value.style.chart.tooltip.roundingValue
669
- }),
670
- { datapoint: t, seriesIndex: l }
671
- )}</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? n += `<span>(${D({
672
- v: t.proportion * 100,
673
- s: "%",
674
- r: e.value.style.chart.tooltip.roundingPercentage
675
- })})</span></div>` : n += `<b>${D({
676
- v: t.proportion * 100,
677
- s: "%",
678
- r: e.value.style.chart.tooltip.roundingPercentage
679
- })}</b></div>`);
680
- _e.value = `<div style="font-size:${e.value.style.chart.tooltip.fontSize}px">${n}</div>`;
681
- }
682
- se.value = !0;
683
- }
684
- function Lt(t) {
685
- return t.proportion * 100 > e.value.style.chart.layout.labels.dataLabels.hideUnderValue;
686
- }
687
- function xt(t, s) {
688
- if (!e.value.useBlurOnHover)
689
- return "";
690
- if (e.value.style.chart.tooltip.showAllItemsAtIndex && m.value.length === 0)
691
- return [null, void 0].includes(Q.value) || Q.value === s ? "" : `url(#blur_${f.value})`;
692
- if (!e.value.style.chart.tooltip.showAllItemsAtIndex || m.value.length)
693
- return [null, void 0].includes(le.value) || le.value === t.id ? "" : `url(#blur_${f.value})`;
694
- }
695
- const $e = $(() => O.value.map((t, s) => {
696
- const l = t.series.filter(
697
- (a) => !m.value.includes(a.id)
698
- ), o = W.value ? l.map((a) => {
699
- const n = q.value[s].series.findIndex((d) => d.name === a.name);
700
- return Y(
701
- q.value[s].series[n].values
702
- ).reduce((d, c) => d + c, 0);
703
- }).reduce((a, n) => a + n, 0) : l.map((a) => a.value).reduce((a, n) => a + n, 0);
704
- return t.series.map((a, n) => {
705
- const d = Y(
706
- q.value[s].series[n].values
707
- ).reduce((ve, he) => ve + he, 0), c = W.value ? d : a.value, k = Le(
708
- e.value.style.chart.layout.labels.dataLabels.formatter,
709
- c,
710
- D({
711
- p: e.value.style.chart.layout.labels.dataLabels.prefix,
712
- v: c,
713
- s: e.value.style.chart.layout.labels.dataLabels.suffix,
714
- r: e.value.style.chart.legend.roundingValue
715
- }),
716
- { datapoint: a, seriesIndex: n }
717
- ), i = isNaN(c / o) || m.value.includes(a.id) ? "-" : D({
718
- v: c / o * 100,
719
- s: "%",
720
- r: e.value.style.chart.legend.roundingPercentage
721
- }), w = Ct({
722
- val: k,
723
- percentage: i,
724
- showVal: e.value.style.chart.legend.showValue,
725
- showPercentage: e.value.style.chart.legend.showPercentage,
726
- config: e.value.style.chart.legend
727
- }), x = `${a.name}${e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ": " : ""}${w}`;
728
- return {
729
- name: a.name,
730
- color: a.color,
731
- value: c,
732
- display: x,
733
- svgDisplay: `${a.arcOf ? `${a.arcOf} - ` : ""}${x}`,
734
- shape: "circle",
735
- arcOf: a.arcOf,
736
- id: a.id,
737
- seriesIndex: n,
738
- datasetIndex: s,
739
- total: o,
740
- opacity: m.value.includes(a.id) ? 0.5 : 1,
741
- segregate: () => j(a),
742
- isSegregated: m.value.includes(a.id)
743
- };
744
- });
745
- })), hl = $(() => ({
746
- cy: "nested-donuts-legend",
747
- backgroundColor: e.value.style.chart.legend.backgroundColor,
748
- color: e.value.style.chart.legend.color,
749
- fontSize: e.value.style.chart.legend.fontSize,
750
- paddingBottom: 12,
751
- fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
752
- })), R = $(() => {
753
- const t = C.value.flatMap((l) => l.series.map((o) => ({
754
- name: `${l.name} - ${o.name}`,
755
- color: o.color,
756
- total: l.total
757
- }))), s = C.value.flatMap((l) => l.series.map((o) => o.value));
758
- return { head: t, body: s };
759
- });
760
- function Me(t = null) {
761
- Xe(() => {
762
- const s = R.value.head.map((a, n) => [
763
- [a.name],
764
- [R.value.body[n]],
765
- [
766
- isNaN(R.value.body[n] / a.total) ? "-" : R.value.body[n] / a.total * 100
767
- ]
768
- ]), l = [
769
- [e.value.style.chart.title.text],
770
- [e.value.style.chart.title.subtitle.text],
771
- [[""], ["val"], ["%"]]
772
- ].concat(s), o = Wl(l);
773
- t ? t(o) : Kl({
774
- csvContent: o,
775
- title: e.value.style.chart.title.text || "vue-ui-nested-donuts"
776
- });
777
- });
778
- }
779
- const ae = $(() => {
780
- const t = [
781
- e.value.table.columnNames.series,
782
- e.value.table.columnNames.value,
783
- e.value.table.columnNames.percentage
784
- ], s = R.value.head.map((n, d) => {
785
- const c = D({
786
- p: e.value.style.chart.layout.labels.dataLabels.prefix,
787
- v: R.value.body[d],
788
- s: e.value.style.chart.layout.labels.dataLabels.suffix,
789
- r: e.value.table.td.roundingValue
790
- });
791
- return [
792
- {
793
- color: n.color,
794
- name: n.name
795
- },
796
- c,
797
- isNaN(R.value.body[d] / n.total) ? "-" : D({
798
- v: R.value.body[d] / n.total * 100,
799
- s: "%",
800
- r: e.value.table.td.roundingPercentage
801
- })
802
- ];
803
- }), l = s.map((n) => n.map((d, c) => c === 0 ? d.name : d)), o = {
804
- th: {
805
- backgroundColor: e.value.table.th.backgroundColor,
806
- color: e.value.table.th.color,
807
- outline: e.value.table.th.outline
808
- },
809
- td: {
810
- backgroundColor: e.value.table.td.backgroundColor,
811
- color: e.value.table.td.color,
812
- outline: e.value.table.td.outline
813
- },
814
- breakpoint: e.value.table.responsiveBreakpoint
815
- };
816
- return {
817
- colNames: [
818
- e.value.table.columnNames.series,
819
- e.value.table.columnNames.value,
820
- e.value.table.columnNames.percentage
821
- ],
822
- head: t,
823
- body: s,
824
- a11yBody: l,
825
- config: o
826
- };
827
- });
828
- function fl() {
829
- return O.value;
830
- }
831
- function Tt() {
832
- L.value.showTable = !L.value.showTable;
833
- }
834
- function _t() {
835
- L.value.dataLabels.show = !L.value.dataLabels.show;
836
- }
837
- function Pt() {
838
- L.value.showTooltip = !L.value.showTooltip;
839
- }
840
- const de = h(!1);
841
- function ze() {
842
- de.value = !de.value;
843
- }
844
- async function pl({ scale: t = 2 } = {}) {
845
- if (!M.value) return;
846
- const { width: s, height: l } = M.value.getBoundingClientRect(), o = s / l, { imageUri: a, base64: n } = await sa({
847
- domElement: M.value,
848
- base64: !0,
849
- img: !0,
850
- scale: t
851
- });
852
- return {
853
- imageUri: a,
854
- base64: n,
855
- title: e.value.style.chart.title.text,
856
- width: s,
857
- height: l,
858
- aspectRatio: o
859
- };
860
- }
861
- const Be = h(null);
862
- function gl() {
863
- if (!Be.value) return;
864
- const { x: t, y: s, width: l, height: o } = Be.value.getBBox();
865
- z.value && z.value.setAttribute(
866
- "viewBox",
867
- `${t} ${s} ${l + Math.min(0, t)} ${o + Math.min(0, s)}`
868
- );
869
- }
870
- const ce = $(() => {
871
- const t = e.value.table.useDialog && !e.value.table.show, s = L.value.showTable;
872
- return {
873
- component: t ? el : qt,
874
- title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
875
- props: t ? {
876
- backgroundColor: e.value.table.th.backgroundColor,
877
- color: e.value.table.th.color,
878
- headerColor: e.value.table.th.color,
879
- headerBg: e.value.table.th.backgroundColor,
880
- isFullscreen: X.value,
881
- fullscreenParent: M.value,
882
- forcedWidth: Math.min(800, window.innerWidth * 0.8),
883
- isCursorPointer: H.value
884
- } : {
885
- hideDetails: !0,
886
- config: {
887
- open: s,
888
- maxHeight: 1e4,
889
- body: {
890
- backgroundColor: e.value.style.chart.backgroundColor,
891
- color: e.value.style.chart.color
892
- },
893
- head: {
894
- backgroundColor: e.value.style.chart.backgroundColor,
895
- color: e.value.style.chart.color
896
- }
897
- }
898
- }
899
- };
900
- });
901
- fe(
902
- () => L.value.showTable,
903
- (t) => {
904
- e.value.table.show || (t && e.value.table.useDialog && re.value ? re.value.open() : "close" in re.value && re.value.close());
905
- }
906
- );
907
- function St() {
908
- L.value.showTable = !1, Pe.value && Pe.value.setTableIconState(!1);
909
- }
910
- const yl = $(() => e.value.style.chart.backgroundColor), bl = $(() => e.value.style.chart.legend), ml = $(() => e.value.style.chart.title), wl = $(
911
- () => $e.value.flat().map((t) => ({
912
- ...t,
913
- name: t.svgDisplay
914
- }))
915
- ), { exportSvg: kl, getSvg: $l } = ta({
916
- svg: z,
917
- title: ml,
918
- legend: bl,
919
- legendItems: wl,
920
- backgroundColor: yl
921
- });
922
- async function It({ isCb: t }) {
923
- ye.value = !0, await Xe();
924
- try {
925
- if (t) {
926
- const { blob: s, url: l, text: o, dataUrl: a } = await $l();
927
- await Promise.resolve(
928
- e.value.userOptions.callbacks.svg({
929
- blob: s,
930
- url: l,
931
- text: o,
932
- dataUrl: a
933
- })
934
- );
935
- } else
936
- await Promise.resolve(kl());
937
- } finally {
938
- ye.value = !1;
939
- }
940
- }
941
- function Cl(t) {
942
- if (t?.stage === "start") {
943
- ge.value = !0;
944
- return;
945
- }
946
- if (t?.stage === "end") {
947
- ge.value = !1;
948
- return;
949
- }
950
- gt();
951
- }
952
- async function Ot() {
953
- if (Ve("copyAlt", {
954
- config: e.value,
955
- dataset: C.value
956
- }), !e.value.userOptions.callbacks.altCopy) {
957
- console.warn(
958
- "Vue Data UI - A callback must be set for `altCopy` in userOptions."
959
- );
960
- return;
961
- }
962
- await Promise.resolve(
963
- e.value.userOptions.callbacks.altCopy({
964
- config: e.value,
965
- dataset: C.value
966
- })
967
- );
968
- }
969
- const F = $(() => J.value.flatMap((t) => t.donut.filter((s) => !s.ghost)));
970
- function Al() {
971
- N.value = null, Se.value = !0;
972
- }
973
- function Ll() {
974
- N.value = null, ie.value = "pointer", se.value = !1, we.value = null, ne.value = null, le.value = null, Q.value = null, Se.value = !1;
975
- }
976
- function xl(t) {
977
- if (!z.value || de.value || document.activeElement !== z.value || !F.value.length) return;
978
- const s = ["ArrowLeft", "ArrowUp"].includes(t.key), l = ["ArrowRight", "ArrowDown"].includes(t.key), o = t.key === "Enter" || t.key === " ", a = t.key === "Escape";
979
- if (!s && !l && !o && !a)
980
- return;
981
- if (t.preventDefault(), t.stopPropagation(), a) {
982
- N.value = null, ie.value = "pointer", se.value = !1, we.value = null, ne.value = null, le.value = null, Q.value = null;
983
- return;
984
- }
985
- if (o) {
986
- if (N.value === null) return;
987
- const w = F.value[N.value];
988
- if (!w) return;
989
- yt({
990
- datapoint: w,
991
- index: N.value,
992
- seriesIndex: w.seriesIndex
993
- });
994
- return;
995
- }
996
- let n = N.value;
997
- const d = Q.value, c = n !== null && n >= 0 && n < F.value.length, k = d !== null && d >= 0 && d < F.value.length;
998
- c ? l ? (n += 1, n >= F.value.length && (n = 0)) : s && (n -= 1, n < 0 && (n = F.value.length - 1)) : k ? (n = l ? d + 1 : d - 1, n >= F.value.length && (n = 0), n < 0 && (n = F.value.length - 1)) : l ? n = 0 : n = F.value.length - 1;
999
- const i = F.value[n];
1000
- i && (N.value = n, Tl(), At({
1001
- datapoint: i,
1002
- seriesIndex: i.seriesIndex,
1003
- triggerMode: "keyboard"
1004
- }));
1005
- }
1006
- function Tl() {
1007
- if (!z.value) return;
1008
- const t = z.value.getBoundingClientRect();
1009
- ut.value = {
1010
- x: t.left + t.width / 2,
1011
- y: t.top + t.height / 2
1012
- };
1013
- }
1014
- const Ee = $(() => {
1015
- const t = ae.value?.colNames ?? [], s = ae.value?.a11yBody ?? [];
1016
- return { headers: t, rows: s };
1017
- });
1018
- return Wt({
1019
- autoSize: gl,
1020
- getData: fl,
1021
- getImage: pl,
1022
- generatePdf: pt,
1023
- generateCsv: Me,
1024
- generateImage: gt,
1025
- generateSvg: It,
1026
- hideSeries: cl,
1027
- showSeries: dl,
1028
- toggleTable: Tt,
1029
- toggleLabels: _t,
1030
- toggleTooltip: Pt,
1031
- toggleAnnotator: ze,
1032
- toggleFullscreen: rt,
1033
- copyAlt: Ot
1034
- }), (t, s) => (u(), r("div", {
1035
- ref_key: "nestedDonutsChart",
1036
- ref: M,
1037
- class: Z(`vue-data-ui-component vue-ui-nested-donuts ${X.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
1038
- style: pe(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
1039
- id: `nested_donuts_${f.value}`,
1040
- onMouseenter: s[2] || (s[2] = () => v(dt)(!0)),
1041
- onMouseleave: s[3] || (s[3] = () => v(dt)(!1))
1042
- }, [
1043
- g("div", {
1044
- id: `chart-instructions-${f.value}`,
1045
- class: "sr-only"
1046
- }, [
1047
- g("p", null, E(e.value.a11y.translations.keyboardNavigation), 1)
1048
- ], 8, ha),
1049
- Ee.value?.rows?.length ? (u(), V(ia, {
1050
- key: 0,
1051
- uid: f.value,
1052
- head: Ee.value.headers,
1053
- body: Ee.value.rows,
1054
- notice: e.value.a11y.translations.tableAvailable,
1055
- caption: e.value.a11y.translations.tableCaption
1056
- }, null, 8, ["uid", "head", "body", "notice", "caption"])) : A("", !0),
1057
- e.value.userOptions.buttons.annotator ? (u(), V(v(Qt), {
1058
- key: 1,
1059
- svgRef: v(z),
1060
- backgroundColor: e.value.style.chart.backgroundColor,
1061
- color: e.value.style.chart.color,
1062
- active: de.value,
1063
- isCursorPointer: H.value,
1064
- onClose: ze
1065
- }, {
1066
- "annotator-action-close": y(() => [
1067
- b(t.$slots, "annotator-action-close", {}, void 0, !0)
1068
- ]),
1069
- "annotator-action-color": y(({ color: l }) => [
1070
- b(t.$slots, "annotator-action-color", P(S({ color: l })), void 0, !0)
1071
- ]),
1072
- "annotator-action-draw": y(({ mode: l }) => [
1073
- b(t.$slots, "annotator-action-draw", P(S({ mode: l })), void 0, !0)
1074
- ]),
1075
- "annotator-action-undo": y(({ disabled: l }) => [
1076
- b(t.$slots, "annotator-action-undo", P(S({ disabled: l })), void 0, !0)
1077
- ]),
1078
- "annotator-action-redo": y(({ disabled: l }) => [
1079
- b(t.$slots, "annotator-action-redo", P(S({ disabled: l })), void 0, !0)
1080
- ]),
1081
- "annotator-action-delete": y(({ disabled: l }) => [
1082
- b(t.$slots, "annotator-action-delete", P(S({ disabled: l })), void 0, !0)
1083
- ]),
1084
- _: 3
1085
- }, 8, ["svgRef", "backgroundColor", "color", "active", "isCursorPointer"])) : A("", !0),
1086
- nl.value ? (u(), r("div", {
1087
- key: 2,
1088
- ref_key: "noTitle",
1089
- ref: lt,
1090
- class: "vue-data-ui-no-title-space",
1091
- style: "height:36px; width: 100%;background:transparent"
1092
- }, null, 512)) : A("", !0),
1093
- e.value.style.chart.title.text ? (u(), r("div", {
1094
- key: 3,
1095
- ref_key: "chartTitle",
1096
- ref: Ze
1097
- }, [
1098
- (u(), V(na, {
1099
- key: `title_${at.value}`,
1100
- config: {
1101
- title: {
1102
- cy: "donut-div-title",
1103
- ...e.value.style.chart.title
1104
- },
1105
- subtitle: {
1106
- cy: "donut-div-subtitle",
1107
- ...e.value.style.chart.title.subtitle
1108
- }
1109
- }
1110
- }, null, 8, ["config"]))
1111
- ], 512)) : A("", !0),
1112
- g("div", {
1113
- id: `legend-top-${f.value}`
1114
- }, null, 8, fa),
1115
- e.value.userOptions.show && Te.value && (v(ct) || v(Oe)) ? (u(), V(v(Jt), {
1116
- ref_key: "userOptionsRef",
1117
- ref: Pe,
1118
- key: `user_option_${Qe.value}`,
1119
- backgroundColor: e.value.style.chart.backgroundColor,
1120
- color: e.value.style.chart.color,
1121
- isPrinting: v(De),
1122
- isImaging: v(Ne),
1123
- uid: f.value,
1124
- hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
1125
- hasPdf: e.value.userOptions.buttons.pdf,
1126
- hasXls: e.value.userOptions.buttons.csv,
1127
- hasImg: e.value.userOptions.buttons.img,
1128
- hasSvg: e.value.userOptions.buttons.svg,
1129
- hasTable: e.value.userOptions.buttons.table,
1130
- hasLabel: e.value.userOptions.buttons.labels,
1131
- hasFullscreen: e.value.userOptions.buttons.fullscreen,
1132
- hasAltCopy: e.value.userOptions.buttons.altCopy,
1133
- isFullscreen: X.value,
1134
- isTooltip: L.value.showTooltip,
1135
- titles: { ...e.value.userOptions.buttonTitles },
1136
- chartElement: M.value,
1137
- position: e.value.userOptions.position,
1138
- hasAnnotator: e.value.userOptions.buttons.annotator,
1139
- isAnnotation: de.value,
1140
- callbacks: e.value.userOptions.callbacks,
1141
- printScale: e.value.userOptions.print.scale,
1142
- tableDialog: e.value.table.useDialog,
1143
- isCursorPointer: H.value,
1144
- onToggleFullscreen: rt,
1145
- onGeneratePdf: v(pt),
1146
- onGenerateCsv: Me,
1147
- onGenerateImage: Cl,
1148
- onGenerateSvg: It,
1149
- onToggleTable: Tt,
1150
- onToggleLabels: _t,
1151
- onToggleTooltip: Pt,
1152
- onToggleAnnotator: ze,
1153
- onCopyAlt: Ot,
1154
- style: pe({
1155
- visibility: v(ct) ? v(Oe) ? "visible" : "hidden" : "visible"
1156
- })
1157
- }, Dt({ _: 2 }, [
1158
- t.$slots.menuIcon ? {
1159
- name: "menuIcon",
1160
- fn: y(({ isOpen: l, color: o }) => [
1161
- b(t.$slots, "menuIcon", P(S({ isOpen: l, color: o })), void 0, !0)
1162
- ]),
1163
- key: "0"
1164
- } : void 0,
1165
- t.$slots.optionTooltip ? {
1166
- name: "optionTooltip",
1167
- fn: y(() => [
1168
- b(t.$slots, "optionTooltip", {}, void 0, !0)
1169
- ]),
1170
- key: "1"
1171
- } : void 0,
1172
- t.$slots.optionPdf ? {
1173
- name: "optionPdf",
1174
- fn: y(() => [
1175
- b(t.$slots, "optionPdf", {}, void 0, !0)
1176
- ]),
1177
- key: "2"
1178
- } : void 0,
1179
- t.$slots.optionCsv ? {
1180
- name: "optionCsv",
1181
- fn: y(() => [
1182
- b(t.$slots, "optionCsv", {}, void 0, !0)
1183
- ]),
1184
- key: "3"
1185
- } : void 0,
1186
- t.$slots.optionImg ? {
1187
- name: "optionImg",
1188
- fn: y(() => [
1189
- b(t.$slots, "optionImg", {}, void 0, !0)
1190
- ]),
1191
- key: "4"
1192
- } : void 0,
1193
- t.$slots.optionSvg ? {
1194
- name: "optionSvg",
1195
- fn: y(() => [
1196
- b(t.$slots, "optionSvg", {}, void 0, !0)
1197
- ]),
1198
- key: "5"
1199
- } : void 0,
1200
- t.$slots.optionTable ? {
1201
- name: "optionTable",
1202
- fn: y(() => [
1203
- b(t.$slots, "optionTable", {}, void 0, !0)
1204
- ]),
1205
- key: "6"
1206
- } : void 0,
1207
- t.$slots.optionLabels ? {
1208
- name: "optionLabels",
1209
- fn: y(() => [
1210
- b(t.$slots, "optionLabels", {}, void 0, !0)
1211
- ]),
1212
- key: "7"
1213
- } : void 0,
1214
- t.$slots.optionFullscreen ? {
1215
- name: "optionFullscreen",
1216
- fn: y(({ toggleFullscreen: l, isFullscreen: o }) => [
1217
- b(t.$slots, "optionFullscreen", P(S({ toggleFullscreen: l, isFullscreen: o })), void 0, !0)
1218
- ]),
1219
- key: "8"
1220
- } : void 0,
1221
- t.$slots.optionAnnotator ? {
1222
- name: "optionAnnotator",
1223
- fn: y(({ toggleAnnotator: l, isAnnotator: o }) => [
1224
- b(t.$slots, "optionAnnotator", P(S({ toggleAnnotator: l, isAnnotator: o })), void 0, !0)
1225
- ]),
1226
- key: "9"
1227
- } : void 0,
1228
- t.$slots.optionAltCopy ? {
1229
- name: "optionAltCopy",
1230
- fn: y(({ altCopy: l }) => [
1231
- b(t.$slots, "optionAltCopy", P(S({ altCopy: l })), void 0, !0)
1232
- ]),
1233
- key: "10"
1234
- } : void 0
1235
- ]), 1032, ["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"])) : A("", !0),
1236
- g("div", pa, [
1237
- (u(), r("svg", {
1238
- ref_key: "svgRef",
1239
- ref: z,
1240
- xmlns: v(Gl),
1241
- "aria-describedby": `chart-instructions-${f.value}`,
1242
- class: Z({
1243
- "vue-data-ui-fullscreen--on": X.value,
1244
- "vue-data-ui-fulscreen--off": !X.value,
1245
- "vue-data-ui-svg": !0
1246
- }),
1247
- viewBox: `0 0 ${p.value.width <= 0 ? 1e-3 : p.value.width} ${p.value.height < 0 ? 1e-3 : p.value.height}`,
1248
- style: pe(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};${vt.value.css}`),
1249
- tabindex: "0",
1250
- onFocus: Al,
1251
- onBlur: Ll,
1252
- onKeydown: xl
1253
- }, [
1254
- g("g", {
1255
- ref_key: "G",
1256
- ref: Be,
1257
- class: "vue-data-ui-g"
1258
- }, [
1259
- Ke(v(Zt)),
1260
- t.$slots["chart-background"] ? (u(), r("foreignObject", {
1261
- key: 0,
1262
- x: 0,
1263
- y: 0,
1264
- width: p.value.width <= 0 ? 1e-3 : p.value.width,
1265
- height: p.value.height < 0 ? 1e-3 : p.value.height,
1266
- style: {
1267
- pointerEvents: "none"
1268
- }
1269
- }, [
1270
- b(t.$slots, "chart-background", {}, void 0, !0)
1271
- ], 8, ya)) : A("", !0),
1272
- g("defs", null, [
1273
- (u(!0), r(T, null, _($t.value, (l, o) => (u(), r("radialGradient", {
1274
- id: `radial_${f.value}_${o}`
1275
- }, [
1276
- s[4] || (s[4] = g("stop", {
1277
- offset: "0%",
1278
- "stop-color": "#FFFFFF",
1279
- "stop-opacity": "0"
1280
- }, null, -1)),
1281
- g("stop", {
1282
- offset: `${(1 - me.value / kt.value[o]) * 100}%`,
1283
- "stop-color": v(Yl)("#FFFFFF", 0),
1284
- "stop-opacity": "0"
1285
- }, null, 8, ma),
1286
- g("stop", {
1287
- offset: `${(1 - me.value / kt.value[o] / 2) * 100}%`,
1288
- "stop-color": "#FFFFFF",
1289
- "stop-opacity": e.value.style.chart.gradientIntensity / 100
1290
- }, null, 8, wa),
1291
- s[5] || (s[5] = g("stop", {
1292
- offset: "100%",
1293
- "stop-color": "#FFFFFF",
1294
- "stop-opacity": "0"
1295
- }, null, -1))
1296
- ], 8, ba))), 256))
1297
- ]),
1298
- g("defs", null, [
1299
- g("filter", {
1300
- id: `blur_${f.value}`,
1301
- x: "-50%",
1302
- y: "-50%",
1303
- width: "200%",
1304
- height: "200%"
1305
- }, [
1306
- g("feGaussianBlur", {
1307
- in: "SourceGraphic",
1308
- stdDeviation: 2,
1309
- id: `blur_std_${f.value}`
1310
- }, null, 8, $a),
1311
- s[6] || (s[6] = g("feColorMatrix", {
1312
- type: "saturate",
1313
- values: "0"
1314
- }, null, -1))
1315
- ], 8, ka),
1316
- g("filter", {
1317
- id: `shadow_${f.value}`,
1318
- "color-interpolation-filters": "sRGB"
1319
- }, [
1320
- g("feDropShadow", {
1321
- dx: "0",
1322
- dy: "0",
1323
- stdDeviation: "10",
1324
- "flood-opacity": "0.5",
1325
- "flood-color": e.value.style.chart.layout.donut.shadowColor
1326
- }, null, 8, Aa)
1327
- ], 8, Ca)
1328
- ]),
1329
- g("defs", null, [
1330
- (u(!0), r(T, null, _(J.value, (l, o) => (u(), r("path", {
1331
- key: `path-full-${o}`,
1332
- id: `path-full-${o}-${f.value}`,
1333
- d: l.fullCirclePath,
1334
- fill: "none"
1335
- }, null, 8, La))), 128))
1336
- ]),
1337
- (u(!0), r(T, null, _(J.value, (l, o) => (u(), r("g", null, [
1338
- l.hasData ? (u(!0), r(T, { key: 0 }, _(l.donut.filter(
1339
- (a) => !a.ghost
1340
- ), (a, n) => (u(), r("g", null, [
1341
- g("path", {
1342
- class: "vue-ui-donut-arc-path",
1343
- d: a.arcSlice,
1344
- fill: a.color,
1345
- stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
1346
- "stroke-width": e.value.style.chart.layout.donut.borderWidth,
1347
- filter: xt(a, n)
1348
- }, null, 8, xa)
1349
- ]))), 256)) : (u(!0), r(T, { key: 1 }, _(l.skeleton, (a, n) => (u(), r("g", null, [
1350
- g("path", {
1351
- class: "vue-ui-donut-arc-path",
1352
- d: a.arcSlice,
1353
- fill: a.color,
1354
- stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
1355
- "stroke-width": e.value.style.chart.layout.donut.borderWidth
1356
- }, null, 8, Ta)
1357
- ]))), 256))
1358
- ]))), 256)),
1359
- e.value.style.chart.useGradient ? (u(), r("g", _a, [
1360
- (u(!0), r(T, null, _($t.value, (l, o) => (u(), r("g", null, [
1361
- g("path", {
1362
- d: l.donut.arcSlice,
1363
- fill: `url(#radial_${f.value}_${o})`,
1364
- stroke: "transparent",
1365
- "stroke-width": "0"
1366
- }, null, 8, Pa)
1367
- ]))), 256))
1368
- ])) : A("", !0),
1369
- e.value.style.chart.layout.labels.dataLabels.showDonutName ? (u(), r("g", Sa, [
1370
- e.value.style.chart.layout.labels.dataLabels.curvedDonutName ? (u(!0), r(T, { key: 0 }, _(J.value, (l, o) => (u(), r("g", null, [
1371
- (u(!0), r(T, null, _(l.donut, (a, n) => (u(), r("g", null, [
1372
- n === 0 && p.value.width && p.value.height ? (u(), r("text", {
1373
- key: 0,
1374
- class: Z({
1375
- animated: e.value.useCssAnimation
1376
- }),
1377
- "text-anchor": "middle",
1378
- "font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
1379
- "font-weight": e.value.style.chart.layout.labels.dataLabels.boldDonutName ? "bold" : "normal",
1380
- fill: e.value.style.chart.layout.labels.dataLabels.color,
1381
- dy: e.value.style.chart.layout.labels.dataLabels.donutNameOffsetY
1382
- }, [
1383
- g("textPath", {
1384
- href: `#path-full-${o}-${f.value}`,
1385
- startOffset: "50%",
1386
- "text-anchor": "middle",
1387
- method: "align",
1388
- spacing: "auto"
1389
- }, E(e.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? v(Bt)({
1390
- source: l.name,
1391
- length: e.value.style.chart.layout.labels.dataLabels.donutNameMaxAbbreviationSize
1392
- }) : l.name), 9, Oa)
1393
- ], 10, Ia)) : A("", !0)
1394
- ]))), 256))
1395
- ]))), 256)) : (u(!0), r(T, { key: 1 }, _(J.value, (l, o) => (u(), r("g", null, [
1396
- (u(!0), r(T, null, _(l.donut, (a, n) => (u(), r("g", null, [
1397
- n === 0 && p.value.width && p.value.height ? (u(), r("text", {
1398
- key: 0,
1399
- class: Z({
1400
- animated: e.value.useCssAnimation
1401
- }),
1402
- x: p.value.width / 2,
1403
- y: a.startY - e.value.style.chart.layout.labels.dataLabels.fontSize + e.value.style.chart.layout.labels.dataLabels.donutNameOffsetY,
1404
- "text-anchor": "middle",
1405
- "font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
1406
- "font-weight": e.value.style.chart.layout.labels.dataLabels.boldDonutName ? "bold" : "normal",
1407
- fill: e.value.style.chart.layout.labels.dataLabels.color
1408
- }, E(e.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? v(Bt)({
1409
- source: l.name,
1410
- length: e.value.style.chart.layout.labels.dataLabels.donutNameMaxAbbreviationSize
1411
- }) : l.name), 11, Fa)) : A("", !0)
1412
- ]))), 256))
1413
- ]))), 256))
1414
- ])) : A("", !0),
1415
- e.value.style.chart.layout.labels.dataLabels.show ? (u(), r("g", Da, [
1416
- (u(!0), r(T, null, _(J.value, (l, o) => (u(), r("g", null, [
1417
- (u(!0), r(T, null, _(l.donut.filter(
1418
- (a) => !a.ghost
1419
- ), (a, n) => (u(), r("g", {
1420
- filter: xt(a, n)
1421
- }, [
1422
- Nt(g("text", {
1423
- class: Z({
1424
- animated: e.value.useCssAnimation
1425
- }),
1426
- opacity: Lt(a) ? 1 : 0,
1427
- "text-anchor": v(xe)(a, !0).anchor,
1428
- x: v(xe)(
1429
- a,
1430
- !1,
1431
- e.value.style.chart.layout.labels.dataLabels.offsetX
1432
- ).x || 0,
1433
- y: v(Et)(
1434
- a,
1435
- e.value.style.chart.layout.labels.dataLabels.offsetY,
1436
- e.value.style.chart.layout.labels.dataLabels.offsetY
1437
- ) + (e.value.style.chart.layout.labels.dataLabels.showValueFirst && e.value.style.chart.layout.labels.dataLabels.showValue ? e.value.style.chart.layout.labels.dataLabels.fontSize : 0),
1438
- fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? a.color : e.value.style.chart.layout.labels.dataLabels.color,
1439
- "font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
1440
- "font-weight": e.value.style.chart.layout.labels.dataLabels.boldPercentage ? "bold" : "normal"
1441
- }, E(v(Ut)(
1442
- v(D)({
1443
- v: a.proportion * 100,
1444
- s: "%",
1445
- r: e.value.style.chart.layout.labels.dataLabels.roundingPercentage
1446
- }),
1447
- e.value.style.chart.layout.labels.dataLabels.usePercentageParens ? "(" : "",
1448
- e.value.style.chart.layout.labels.dataLabels.usePercentageParens ? ")" : ""
1449
- )), 11, Va), [
1450
- [
1451
- Vt,
1452
- L.value.dataLabels.show && e.value.style.chart.layout.labels.dataLabels.showPercentage
1453
- ]
1454
- ]),
1455
- Nt(g("text", {
1456
- class: Z({
1457
- animated: e.value.useCssAnimation
1458
- }),
1459
- opacity: Lt(a) ? 1 : 0,
1460
- "text-anchor": v(xe)(a, !0).anchor,
1461
- x: v(xe)(
1462
- a,
1463
- !1,
1464
- e.value.style.chart.layout.labels.dataLabels.offsetX
1465
- ).x || 0,
1466
- y: v(Et)(
1467
- a,
1468
- e.value.style.chart.layout.labels.dataLabels.offsetY,
1469
- e.value.style.chart.layout.labels.dataLabels.offsetY
1470
- ) + (e.value.style.chart.layout.labels.dataLabels.showValueFirst || !e.value.style.chart.layout.labels.dataLabels.showPercentage ? 0 : e.value.style.chart.layout.labels.dataLabels.fontSize),
1471
- fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? a.color : e.value.style.chart.layout.labels.dataLabels.color,
1472
- "font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
1473
- "font-weight": e.value.style.chart.layout.labels.dataLabels.boldValue ? "bold" : "normal"
1474
- }, E(v(Ut)(
1475
- v(Le)(
1476
- e.value.style.chart.layout.labels.dataLabels.formatter,
1477
- a.value,
1478
- v(D)({
1479
- p: e.value.style.chart.layout.labels.dataLabels.prefix,
1480
- v: a.value,
1481
- s: e.value.style.chart.layout.labels.dataLabels.suffix,
1482
- r: e.value.style.chart.layout.labels.dataLabels.roundingValue
1483
- }),
1484
- {
1485
- datapoint: a,
1486
- seriesIndex: o,
1487
- datapointIndex: n
1488
- }
1489
- ),
1490
- e.value.style.chart.layout.labels.dataLabels.useValueParens ? "(" : "",
1491
- e.value.style.chart.layout.labels.dataLabels.useValueParens ? ")" : ""
1492
- )), 11, Ma), [
1493
- [
1494
- Vt,
1495
- L.value.dataLabels.show && e.value.style.chart.layout.labels.dataLabels.showValue
1496
- ]
1497
- ])
1498
- ], 8, Na))), 256))
1499
- ]))), 256))
1500
- ])) : A("", !0),
1501
- (u(!0), r(T, null, _(J.value, (l, o) => (u(), r("g", null, [
1502
- (u(!0), r(T, null, _(l.donut, (a, n) => (u(), r("g", null, [
1503
- g("path", {
1504
- d: a.arcSlice,
1505
- fill: ne.value === a.id ? e.value.style.chart.layout.donut.selectedColor : "transparent",
1506
- onMouseenter: (d) => At({
1507
- datapoint: a,
1508
- relativeIndex: F.value.findIndex(
1509
- (c) => c.id === a.id
1510
- ),
1511
- seriesIndex: a.seriesIndex
1512
- }),
1513
- onClick: (d) => yt({
1514
- datapoint: a,
1515
- index: n,
1516
- seriesIndex: a.seriesIndex
1517
- }),
1518
- onMouseleave: (d) => vl({
1519
- datapoint: a,
1520
- seriesIndex: a.seriesIndex
1521
- })
1522
- }, null, 40, za)
1523
- ]))), 256))
1524
- ]))), 256)),
1525
- b(t.$slots, "svg", {
1526
- svg: {
1527
- ...p.value,
1528
- isPrintingImg: v(De) | v(Ne) | ge.value,
1529
- isPrintingSvg: ye.value
1530
- }
1531
- }, void 0, !0)
1532
- ], 512)
1533
- ], 46, ga)),
1534
- t.$slots.hint ? (u(), r("div", Ba, [
1535
- b(t.$slots, "hint", P(S({
1536
- hint: e.value.a11y.translations.keyboardNavigation,
1537
- isVisible: Se.value
1538
- })), void 0, !0)
1539
- ])) : A("", !0)
1540
- ]),
1541
- t.$slots.watermark ? (u(), r("div", Ea, [
1542
- b(t.$slots, "watermark", P(S({
1543
- isPrinting: v(De) || v(Ne) || ge.value || ye.value
1544
- })), void 0, !0)
1545
- ])) : A("", !0),
1546
- Ke(v(Xt), {
1547
- teleportTo: e.value.style.chart.tooltip.teleportTo,
1548
- show: L.value.showTooltip && se.value,
1549
- backgroundColor: e.value.style.chart.tooltip.backgroundColor,
1550
- color: e.value.style.chart.tooltip.color,
1551
- borderRadius: e.value.style.chart.tooltip.borderRadius,
1552
- borderColor: e.value.style.chart.tooltip.borderColor,
1553
- borderWidth: e.value.style.chart.tooltip.borderWidth,
1554
- fontSize: e.value.style.chart.tooltip.fontSize,
1555
- backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
1556
- position: e.value.style.chart.tooltip.position,
1557
- offsetY: e.value.style.chart.tooltip.offsetY,
1558
- parent: M.value,
1559
- content: _e.value,
1560
- isFullscreen: X.value,
1561
- isCustom: v(Rt)(e.value.style.chart.tooltip.customFormat),
1562
- smooth: e.value.style.chart.tooltip.smooth,
1563
- backdropFilter: e.value.style.chart.tooltip.backdropFilter,
1564
- smoothForce: e.value.style.chart.tooltip.smoothForce,
1565
- smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold,
1566
- isA11yMode: ie.value === "keyboard",
1567
- a11yPosition: ut.value
1568
- }, {
1569
- "tooltip-before": y(() => [
1570
- b(t.$slots, "tooltip-before", P(S({ ...ke.value })), void 0, !0)
1571
- ]),
1572
- tooltip: y(() => [
1573
- b(t.$slots, "tooltip", P(S({ ...ke.value })), void 0, !0)
1574
- ]),
1575
- "tooltip-after": y(() => [
1576
- b(t.$slots, "tooltip-after", P(S({ ...ke.value })), void 0, !0)
1577
- ]),
1578
- _: 3
1579
- }, 8, ["teleportTo", "show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold", "isA11yMode", "a11yPosition"]),
1580
- g("div", {
1581
- id: `legend-bottom-${f.value}`
1582
- }, null, 8, Ua),
1583
- nt.value && (e.value.style.chart.legend.show || t.$slots.legend) ? (u(), V(Nl, {
1584
- key: 6,
1585
- to: e.value.style.chart.legend.position === "top" ? `#legend-top-${f.value}` : `#legend-bottom-${f.value}`
1586
- }, [
1587
- e.value.style.chart.legend.show ? (u(), r("div", {
1588
- key: 0,
1589
- ref_key: "chartLegend",
1590
- ref: et,
1591
- class: Z({
1592
- "vue-ui-nested-donuts-legend": $e.value.length > 1
1593
- })
1594
- }, [
1595
- b(t.$slots, "legend", { legend: $e.value }, () => [
1596
- (u(!0), r(T, null, _($e.value, (l, o) => (u(), V(ra, {
1597
- key: `legend_${o}_${st.value}`,
1598
- legendSet: l,
1599
- config: hl.value,
1600
- isCursorPointer: H.value,
1601
- onClickMarker: s[0] || (s[0] = ({ legend: a }) => j(a))
1602
- }, {
1603
- legendTitle: y(({ titleSet: a }) => [
1604
- a[0] && a[0].arcOf ? (u(), r("div", Ra, E(a[0].arcOf), 1)) : A("", !0)
1605
- ]),
1606
- item: y(({ legend: a, index: n }) => [
1607
- g("div", {
1608
- onClick: (d) => j(a),
1609
- style: pe(`opacity:${m.value.includes(a.id) ? 0.5 : 1}`)
1610
- }, E(a.display), 13, Ga)
1611
- ]),
1612
- legendToggle: y(() => [
1613
- l.length > 2 && e.value.style.chart.legend.selectAllToggle.show && !v(be) ? (u(), V(da, {
1614
- key: `toggle-${o}`,
1615
- backgroundColor: e.value.style.chart.legend.selectAllToggle.backgroundColor,
1616
- color: e.value.style.chart.legend.selectAllToggle.color,
1617
- fontSize: e.value.style.chart.legend.fontSize,
1618
- checked: l.some(
1619
- (a) => m.value.includes(a.id)
1620
- ),
1621
- isCursorPointer: H.value,
1622
- onToggle: (a) => il(l)
1623
- }, null, 8, ["backgroundColor", "color", "fontSize", "checked", "isCursorPointer", "onToggle"])) : A("", !0)
1624
- ]),
1625
- _: 2
1626
- }, 1032, ["legendSet", "config", "isCursorPointer"]))), 128))
1627
- ], !0)
1628
- ], 2)) : A("", !0)
1629
- ], 8, ["to"])) : A("", !0),
1630
- t.$slots.source ? (u(), r("div", {
1631
- key: 7,
1632
- ref_key: "source",
1633
- ref: tt,
1634
- dir: "auto"
1635
- }, [
1636
- b(t.$slots, "source", {}, void 0, !0)
1637
- ], 512)) : A("", !0),
1638
- Te.value && e.value.userOptions.buttons.table ? (u(), V(Vl(ce.value.component), Ml({ key: 8 }, ce.value.props, {
1639
- ref_key: "tableUnit",
1640
- ref: re,
1641
- onClose: St
1642
- }), Dt({
1643
- content: y(() => [
1644
- (u(), V(v(jt), {
1645
- key: `table_${ot.value}`,
1646
- colNames: ae.value.colNames,
1647
- head: ae.value.head,
1648
- body: ae.value.body,
1649
- config: ae.value.config,
1650
- title: e.value.table.useDialog ? "" : ce.value.title,
1651
- withCloseButton: !e.value.table.useDialog,
1652
- isCursorPointer: H.value,
1653
- onClose: St
1654
- }, {
1655
- th: y(({ th: l }) => [
1656
- g("div", {
1657
- innerHTML: l,
1658
- style: { display: "flex", "align-items": "center" }
1659
- }, null, 8, Ya)
1660
- ]),
1661
- td: y(({ td: l }) => [
1662
- Mt(E(l.name || l), 1)
1663
- ]),
1664
- _: 1
1665
- }, 8, ["colNames", "head", "body", "config", "title", "withCloseButton", "isCursorPointer"]))
1666
- ]),
1667
- _: 2
1668
- }, [
1669
- e.value.table.useDialog ? {
1670
- name: "title",
1671
- fn: y(() => [
1672
- Mt(E(ce.value.title), 1)
1673
- ]),
1674
- key: "0"
1675
- } : void 0,
1676
- e.value.table.useDialog ? {
1677
- name: "actions",
1678
- fn: y(() => [
1679
- g("button", {
1680
- tabindex: "0",
1681
- class: "vue-ui-user-options-button",
1682
- onClick: s[1] || (s[1] = (l) => Me(e.value.userOptions.callbacks.csv)),
1683
- style: pe({ cursor: H.value ? "pointer" : "default" })
1684
- }, [
1685
- Ke(v(Ht), {
1686
- name: "fileCsv",
1687
- stroke: ce.value.props.color
1688
- }, null, 8, ["stroke"])
1689
- ], 4)
1690
- ]),
1691
- key: "1"
1692
- } : void 0
1693
- ]), 1040)) : A("", !0),
1694
- b(t.$slots, "skeleton", {}, () => [
1695
- v(be) ? (u(), V(Zl, { key: 0 })) : A("", !0)
1696
- ], !0)
1697
- ], 46, va));
1698
- }
1699
- }, vo = /* @__PURE__ */ ca(Wa, [["__scopeId", "data-v-7f94932f"]]);
1700
- export {
1701
- vo as default
1702
- };