vue-data-ui 3.17.13 → 3.18.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 (493) hide show
  1. package/README.md +1 -1
  2. package/dist/A11yDataTable-q2-8fSlJ.js +45 -0
  3. package/dist/Arrow-BU2Z7mfz.js +116 -0
  4. package/dist/BaseDraggableDialog-LE75fWYz.js +272 -0
  5. package/dist/BaseIcon-CL6Y7alf.js +499 -0
  6. package/dist/BaseLegendToggle-BvPOFMVZ.js +56 -0
  7. package/dist/BaseScanner-C7dmAref.js +27 -0
  8. package/dist/BaseZoomControls-DSwf4HhS.js +111 -0
  9. package/dist/ColorPicker-BGbMrtup.js +255 -0
  10. package/dist/DataTable-ZG4GX2Zg.js +150 -0
  11. package/dist/Legend-BPb8i4aC.js +114 -0
  12. package/dist/NonSvgPenAndPaper-BT3YMjgo.js +577 -0
  13. package/dist/PackageVersion-B1cPtZ3Q.js +11 -0
  14. package/dist/PenAndPaper-DxBCVZAx.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-Dbug7CtK.js +141 -0
  19. package/dist/Slicer-SEdaKYPX.js +1144 -0
  20. package/dist/SlicerPreview-BLlQTUI_.js +1523 -0
  21. package/dist/SparkTooltip-BaONR2nq.js +93 -0
  22. package/dist/Title-ByyzJzpc.js +87 -0
  23. package/dist/Tooltip-V6Z0Ko-1.js +307 -0
  24. package/dist/UserOptions-Gaw1761w.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-C9UOX1d2.js +237 -0
  99. package/dist/exposedLib-BQjH823l.js +19 -0
  100. package/dist/geoProjections-CQIkC70z.js +146 -0
  101. package/dist/img-NMY-_LiJ.js +74 -0
  102. package/dist/labelUtils-BiSegLOT.js +19 -0
  103. package/dist/lib-B83ZCydz.js +1879 -0
  104. package/dist/patternUtils-B7BWu5bV.js +258 -0
  105. package/dist/pdf-Ey2KFETK.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 +4766 -630
  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-De0rTecW.js +50 -0
  182. package/dist/useChartAccessibility-Do37qcw2.js +12 -0
  183. package/dist/useConfig-KnOLHtlJ.js +7419 -0
  184. package/dist/useFitSvgText-C-MEdAfe.js +63 -0
  185. package/dist/useNestedProp-CcxL1gUU.js +10 -0
  186. package/dist/useObjectBindings-Dc8Rf6Qy.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-CMLF900n.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-D1REqS_k.js +274 -0
  201. package/dist/vue-data-ui.js +76 -167
  202. package/dist/vue-ui-3d-bar-vO_kSCd6.js +1747 -0
  203. package/dist/vue-ui-accordion-Cf-jZELj.js +81 -0
  204. package/dist/vue-ui-age-pyramid-DHXhrP_3.js +1226 -0
  205. package/dist/vue-ui-annotator-B0o6czmF.js +2899 -0
  206. package/dist/vue-ui-bullet-C93-cf0H.js +700 -0
  207. package/dist/vue-ui-bump-C_Szk9AZ.js +1239 -0
  208. package/dist/vue-ui-candlestick-6JdMEJKO.js +1802 -0
  209. package/dist/vue-ui-carousel-table-CZ_HK0Iw.js +445 -0
  210. package/dist/vue-ui-chestnut-B8ixU585.js +2000 -0
  211. package/dist/vue-ui-chord-DC5sLapz.js +1381 -0
  212. package/dist/vue-ui-circle-pack-CsmSEwt3.js +1183 -0
  213. package/dist/vue-ui-cursor-B-QODIL3.js +283 -0
  214. package/dist/vue-ui-dag-C9LYfjS_.js +2899 -0
  215. package/dist/vue-ui-dashboard-D-f4ZaLi.js +503 -0
  216. package/dist/vue-ui-digits-CcB3odN7.js +209 -0
  217. package/dist/vue-ui-donut-DR0ngnZC.js +2396 -0
  218. package/dist/vue-ui-donut-evolution-BXpOscCe.js +1490 -0
  219. package/dist/vue-ui-dumbbell-CB_clJWA.js +1517 -0
  220. package/dist/vue-ui-flow-CUiOAEy1.js +1223 -0
  221. package/dist/vue-ui-funnel-BAlGDK0o.js +767 -0
  222. package/dist/vue-ui-galaxy-DbYNfSHb.js +1062 -0
  223. package/dist/vue-ui-gauge-Cie7jykM.js +910 -0
  224. package/dist/vue-ui-geo-Ce_gBRye.js +1504 -0
  225. package/dist/vue-ui-gizmo-B9POi_SN.js +225 -0
  226. package/dist/vue-ui-heatmap-DFfRSbnk.js +1556 -0
  227. package/dist/vue-ui-history-plot-DHp5WFgx.js +1551 -0
  228. package/dist/vue-ui-horizontal-bar-DI4yoARv.js +1669 -0
  229. package/dist/vue-ui-kpi-oUfso4UP.js +96 -0
  230. package/dist/vue-ui-mini-loader-aZMi1_uX.js +125 -0
  231. package/dist/vue-ui-molecule-D72kzel_.js +912 -0
  232. package/dist/vue-ui-mood-radar-Tw2ZFP7Y.js +1138 -0
  233. package/dist/vue-ui-nested-donuts-Bza1LczX.js +1472 -0
  234. package/dist/vue-ui-onion-BOuuib5d.js +1188 -0
  235. package/dist/vue-ui-parallel-coordinate-plot-BuQUq6-o.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-zNFIXNt9.js +1966 -0
  239. package/dist/vue-ui-quick-chart-B1a8QVUn.js +2459 -0
  240. package/dist/vue-ui-radar-VFn-YP_2.js +1214 -0
  241. package/dist/vue-ui-rating-Dxgn21FA.js +343 -0
  242. package/dist/vue-ui-relation-circle-B0sZaCgX.js +914 -0
  243. package/dist/vue-ui-ridgeline-BsBAbg5V.js +1612 -0
  244. package/dist/vue-ui-rings-CDwUzMF-.js +1231 -0
  245. package/dist/vue-ui-scatter-Du_b-zM8.js +2380 -0
  246. package/dist/vue-ui-skeleton-BAq6J_6G.js +2556 -0
  247. package/dist/vue-ui-smiley-CoHvkS0c.js +356 -0
  248. package/dist/vue-ui-spark-trend-BmCcJ17C.js +438 -0
  249. package/dist/vue-ui-sparkbar-9z05IMx8.js +393 -0
  250. package/dist/vue-ui-sparkgauge-BlWri9DP.js +255 -0
  251. package/dist/vue-ui-sparkhistogram-CHZTt8d8.js +560 -0
  252. package/dist/vue-ui-sparkline-DirLW9Nd.js +1503 -0
  253. package/dist/vue-ui-sparkstackbar-Dk6cEI2o.js +660 -0
  254. package/dist/vue-ui-stackbar-DNIrGHkt.js +2235 -0
  255. package/dist/vue-ui-stackline-HoWn_ur2.js +2362 -0
  256. package/dist/vue-ui-strip-plot-Bi8u_fLr.js +1328 -0
  257. package/dist/vue-ui-table-XLjOOfdI.js +1338 -0
  258. package/dist/vue-ui-table-heatmap-DvnFiveI.js +334 -0
  259. package/dist/vue-ui-table-sparkline-CSZf8XxP.js +697 -0
  260. package/dist/vue-ui-thermometer-7eUO_7CP.js +753 -0
  261. package/dist/vue-ui-timer-DCbxsREb.js +439 -0
  262. package/dist/vue-ui-tiremarks-p_sfTufv.js +542 -0
  263. package/dist/vue-ui-treemap-BdZOW7TM.js +1575 -0
  264. package/dist/vue-ui-waffle-Bf9dWWCM.js +1350 -0
  265. package/dist/vue-ui-wheel-CZrIiB0K.js +875 -0
  266. package/dist/vue-ui-word-cloud-BeLjxoRe.js +1644 -0
  267. package/dist/vue-ui-world-D9ahzEQ2.js +14252 -0
  268. package/dist/vue-ui-xy-DrvbVuHO.js +4063 -0
  269. package/dist/vue-ui-xy-canvas-DU7vFrQr.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
@@ -0,0 +1,1490 @@
1
+ import { t as e } from "./rolldown-runtime-CAFD8bLK.js";
2
+ import { B as t, G as n, H as r, J as i, Lt as a, Pt as o, S as s, St as c, Tt as l, X as ee, _ as te, bt as ne, d as re, h as ie, ht as ae, i as oe, jt as se, kt as ce, ot as le, p as ue, q as de, t as fe, u as pe, x as me, y as he, zt as ge } from "./lib-B83ZCydz.js";
3
+ import { t as _e } from "./useTimeLabels-C0x7zUXP.js";
4
+ import { t as ve } from "./useConfig-KnOLHtlJ.js";
5
+ import { t as ye } from "./usePrinter-CMLF900n.js";
6
+ import { n as be, t as xe } from "./BaseScanner-C7dmAref.js";
7
+ import { t as Se } from "./useSvgExport-Dtu973wa.js";
8
+ import { t as Ce } from "./useNestedProp-CcxL1gUU.js";
9
+ import { t as we } from "./useThemeCheck-rFK9Zlb_.js";
10
+ import { t as Te } from "./useTimeLabelCollider-Dm55Emzg.js";
11
+ import { t as Ee } from "./img-NMY-_LiJ.js";
12
+ import { n as De } from "./Title-ByyzJzpc.js";
13
+ import { t as Oe } from "./_plugin-vue_export-helper-Dq1MygBL.js";
14
+ import { c as ke } from "./canvas-lib-DTaADQOK.js";
15
+ import { t as Ae } from "./useResponsive-CrAInupd.js";
16
+ import { t as je } from "./BaseLegendToggle-BvPOFMVZ.js";
17
+ import { t as Me } from "./A11yDataTable-q2-8fSlJ.js";
18
+ import { t as Ne } from "./useUserOptionState-CjPJPTg2.js";
19
+ import { t as Pe } from "./useChartAccessibility-Do37qcw2.js";
20
+ import { t as Fe } from "./Legend-BPb8i4aC.js";
21
+ import { t as Ie } from "./vue_ui_donut_evolution-CAJefrHs.js";
22
+ import { t as Le } from "./Slicer-SEdaKYPX.js";
23
+ import { Fragment as u, Teleport as Re, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createSlots as ze, createTextVNode as Be, createVNode as Ve, defineAsyncComponent as g, guardReactiveProps as _, mergeProps as He, nextTick as Ue, normalizeClass as v, normalizeProps as y, normalizeStyle as b, onBeforeUnmount as We, onMounted as Ge, openBlock as x, ref as S, renderList as C, renderSlot as w, resolveDynamicComponent as Ke, shallowRef as qe, toDisplayString as T, toRefs as Je, unref as E, watch as Ye, watchEffect as Xe, withCtx as D } from "vue";
24
+ //#region src/components/vue-ui-donut-evolution.vue
25
+ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et = ["id"], tt = { style: { position: "relative" } }, nt = [
26
+ "xmlns",
27
+ "aria-describedby",
28
+ "viewBox"
29
+ ], rt = [
30
+ "x",
31
+ "y",
32
+ "width",
33
+ "height"
34
+ ], it = ["id"], at = ["stop-color"], ot = ["stop-color"], st = ["id"], ct = ["stop-color"], lt = ["stop-color"], ut = ["stop-color"], dt = { key: 1 }, ft = [
35
+ "x1",
36
+ "x2",
37
+ "y1",
38
+ "y2",
39
+ "stroke",
40
+ "stroke-width"
41
+ ], pt = [
42
+ "x1",
43
+ "x2",
44
+ "y1",
45
+ "y2",
46
+ "stroke",
47
+ "stroke-width"
48
+ ], mt = { key: 0 }, ht = [
49
+ "x1",
50
+ "x2",
51
+ "y1",
52
+ "y2",
53
+ "stroke",
54
+ "stroke-width"
55
+ ], gt = [
56
+ "font-size",
57
+ "fill",
58
+ "transform"
59
+ ], _t = [
60
+ "x",
61
+ "y",
62
+ "font-size",
63
+ "fill"
64
+ ], vt = [
65
+ "x1",
66
+ "x2",
67
+ "y1",
68
+ "y2",
69
+ "stroke",
70
+ "stroke-width"
71
+ ], yt = [
72
+ "x",
73
+ "y",
74
+ "font-size",
75
+ "fill",
76
+ "font-weight"
77
+ ], bt = { key: 0 }, xt = [
78
+ "text-anchor",
79
+ "font-size",
80
+ "fill",
81
+ "transform"
82
+ ], St = [
83
+ "text-anchor",
84
+ "font-size",
85
+ "fill",
86
+ "transform",
87
+ "innerHTML"
88
+ ], Ct = [
89
+ "x1",
90
+ "y1",
91
+ "x2",
92
+ "y2",
93
+ "stroke",
94
+ "stroke-width"
95
+ ], wt = { key: 1 }, Tt = [
96
+ "cx",
97
+ "cy",
98
+ "r",
99
+ "fill"
100
+ ], Et = { key: 0 }, Dt = { key: 0 }, Ot = ["d", "stroke"], kt = [
101
+ "text-anchor",
102
+ "x",
103
+ "y",
104
+ "fill"
105
+ ], At = [
106
+ "cx",
107
+ "cy",
108
+ "r",
109
+ "fill"
110
+ ], jt = { key: 0 }, Mt = [
111
+ "cx",
112
+ "cy",
113
+ "fill"
114
+ ], Nt = { key: 1 }, Pt = [
115
+ "d",
116
+ "fill",
117
+ "stroke"
118
+ ], Ft = { key: 2 }, It = [
119
+ "d",
120
+ "fill",
121
+ "stroke"
122
+ ], Lt = [
123
+ "x",
124
+ "y",
125
+ "font-size",
126
+ "fill"
127
+ ], Rt = [
128
+ "x",
129
+ "y",
130
+ "width",
131
+ "height",
132
+ "fill"
133
+ ], zt = [
134
+ "x",
135
+ "y",
136
+ "width",
137
+ "height",
138
+ "onMouseenter",
139
+ "onMouseleave",
140
+ "onClick"
141
+ ], Bt = {
142
+ key: 0,
143
+ style: {
144
+ position: "absolute",
145
+ top: "100%",
146
+ left: "0",
147
+ width: "100%"
148
+ },
149
+ "data-dom-to-png-ignore": "",
150
+ "aria-hidden": "true"
151
+ }, Vt = {
152
+ key: 5,
153
+ class: "vue-data-ui-watermark"
154
+ }, Ht = ["id"], Ut = ["onClick"], Wt = { key: 0 }, Gt = { key: 1 }, Kt = /* @__PURE__ */ Oe({
155
+ __name: "vue-ui-donut-evolution",
156
+ props: {
157
+ config: {
158
+ type: Object,
159
+ default() {
160
+ return {};
161
+ }
162
+ },
163
+ dataset: {
164
+ type: Array,
165
+ default() {
166
+ return [];
167
+ }
168
+ }
169
+ },
170
+ emits: ["selectLegend", "copyAlt"],
171
+ setup(e, { expose: Oe, emit: Ze }) {
172
+ let Kt = g(() => import("./vue-ui-accordion-Cf-jZELj.js").then((e) => e.n)), qt = g(() => import("./BaseIcon-CL6Y7alf.js").then((e) => e.n)), Jt = g(() => import("./DataTable-ZG4GX2Zg.js")), Yt = g(() => import("./PackageVersion-B1cPtZ3Q.js").then((e) => e.t)), Xt = g(() => import("./PenAndPaper-DxBCVZAx.js").then((e) => e.t)), Zt = g(() => import("./UserOptions-Gaw1761w.js").then((e) => e.n)), Qt = g(() => import("./vue-ui-donut-DR0ngnZC.js").then((e) => e.n)), $t = g(() => import("./BaseDraggableDialog-LE75fWYz.js").then((e) => e.n)), { vue_ui_donut_evolution: en } = ve(), { isThemeValid: tn, warnInvalidTheme: nn } = we(), O = e, k = S(r()), A = S([]), j = S(null), M = S(null), rn = S(!1), N = S(null), P = S(null), an = S(null), on = S(0), sn = S(0), cn = S(0), ln = S(0), un = S(0), dn = S(null), fn = S(null), pn = S(null), mn = S(null), hn = S(!1), gn = S(null), _n = S(null), vn = S(!1), yn = S(!1), bn = S(null), xn = S(null), Sn = S(null), Cn = S(null), wn = S(null), Tn = S(!1), F = qe(null), En = qe(null), Dn = S(null), I = S(null), On = S(!1), kn = Ze, An = d(() => !!O.dataset && O.dataset.length);
173
+ Ge(() => {
174
+ hn.value = !0, Mn();
175
+ });
176
+ let jn = d(() => !!L.value.debug);
177
+ function Mn() {
178
+ if (c(O.dataset) ? (ee({
179
+ componentName: "VueUiDonutEvolution",
180
+ type: "dataset",
181
+ debug: jn.value
182
+ }), In.value = !0) : O.dataset.length && O.dataset.forEach((e, t) => {
183
+ le({
184
+ datasetObject: e,
185
+ requiredAttributes: ["name", "values"]
186
+ }).forEach((e) => {
187
+ ee({
188
+ componentName: "VueUiDonutEvolution",
189
+ type: "datasetSerieAttribute",
190
+ property: e,
191
+ index: t,
192
+ debug: jn.value
193
+ }), In.value = !0;
194
+ });
195
+ }), c(O.dataset) || (In.value = L.value.loading), setTimeout(() => {
196
+ Tn.value = !0;
197
+ }, 10), zn(), L.value.responsive) {
198
+ let e = ke(() => {
199
+ Tn.value = !1;
200
+ let { width: e, height: t } = Ae({
201
+ chart: P.value,
202
+ title: L.value.style.chart.title.text ? bn.value : null,
203
+ legend: L.value.style.chart.legend.show ? xn.value : null,
204
+ slicer: L.value.style.chart.zoom.show && Ln.value > 1 ? wn.value : null,
205
+ source: Sn.value
206
+ });
207
+ requestAnimationFrame(() => {
208
+ z.value.width = e, z.value.height = t - 12, clearTimeout(Dn.value), Dn.value = setTimeout(() => {
209
+ Tn.value = !0;
210
+ }, 10);
211
+ });
212
+ });
213
+ F.value && (En.value && F.value.unobserve(En.value), F.value.disconnect()), F.value = new ResizeObserver(e), En.value = P.value.parentNode, F.value.observe(En.value);
214
+ }
215
+ }
216
+ let L = S(Wn()), R = d(() => L.value.userOptions.useCursorPointer), Nn = d(() => ge({
217
+ defaultConfig: {
218
+ useCssAnimation: !1,
219
+ table: { show: !1 },
220
+ userOptions: { show: !1 },
221
+ style: { chart: {
222
+ backgroundColor: "#99999930",
223
+ layout: {
224
+ dataLabels: { show: !1 },
225
+ grid: {
226
+ stroke: "#6A6A6A",
227
+ axis: {
228
+ yLabel: "",
229
+ xLabel: ""
230
+ },
231
+ yAxis: {
232
+ scaleMin: null,
233
+ scaleMax: null,
234
+ autoScale: !1,
235
+ dataLabels: { show: !1 }
236
+ },
237
+ xAxis: { dataLabels: { show: !1 } }
238
+ },
239
+ line: { stroke: "#CACACA60" }
240
+ },
241
+ legend: {
242
+ backgroundColor: "transparent",
243
+ showValue: !1,
244
+ showPercentage: !1
245
+ },
246
+ zoom: {
247
+ show: !1,
248
+ startIndex: null,
249
+ endIndex: null
250
+ }
251
+ } }
252
+ },
253
+ userConfig: L.value.skeletonConfig ?? {}
254
+ })), { loading: Pn, FINAL_DATASET: Fn, manualLoading: In } = be({
255
+ ...Je(O),
256
+ FINAL_CONFIG: L,
257
+ prepareConfig: Wn,
258
+ callback: () => {
259
+ Promise.resolve().then(async () => {
260
+ await zn();
261
+ });
262
+ },
263
+ skeletonDataset: O.config?.skeletonDataset ?? [
264
+ {
265
+ name: "",
266
+ values: [
267
+ 1,
268
+ 2,
269
+ 3,
270
+ 5,
271
+ 8,
272
+ 13
273
+ ],
274
+ color: "#AAAAAA"
275
+ },
276
+ {
277
+ name: "",
278
+ values: [
279
+ 1,
280
+ 2,
281
+ 3,
282
+ 5,
283
+ 8,
284
+ 13
285
+ ],
286
+ color: "#BABABA"
287
+ },
288
+ {
289
+ name: "",
290
+ values: [
291
+ 1,
292
+ 2,
293
+ 3,
294
+ 5,
295
+ 8,
296
+ 13
297
+ ],
298
+ color: "#CACACA"
299
+ }
300
+ ],
301
+ skeletonConfig: ge({
302
+ defaultConfig: L.value,
303
+ userConfig: Nn.value
304
+ })
305
+ }), z = S({
306
+ width: L.value.style.chart.layout.width,
307
+ height: L.value.style.chart.layout.height
308
+ }), Ln = d(() => Math.max(...Fn.value.map((e) => e.values.length))), B = S({
309
+ start: 0,
310
+ end: Ln.value
311
+ });
312
+ function Rn() {
313
+ zn();
314
+ }
315
+ async function zn() {
316
+ await Ue(), await Ue();
317
+ let { startIndex: e, endIndex: t } = L.value.style.chart.zoom, n = Cn.value;
318
+ B.value = {
319
+ start: 0,
320
+ max: K.value
321
+ }, (e != null || t != null) && n ? (e == null ? (B.value.start = 0, n.setStartValue(0)) : n.setStartValue(e), t == null ? (B.value.end = K.value, n.setEndValue(K.value)) : n.setEndValue(Bn(t + 1))) : (B.value = {
322
+ start: 0,
323
+ end: K.value
324
+ }, sn.value += 1);
325
+ }
326
+ function Bn(e) {
327
+ let t = K.value;
328
+ return e > t ? t : e < 0 || L.value.style.chart.zoom.startIndex !== null && e < L.value.style.chart.zoom.startIndex ? L.value.style.chart.zoom.startIndex === null ? 1 : L.value.style.chart.zoom.startIndex + 1 : e;
329
+ }
330
+ let { userOptionsVisible: Vn, setUserOptionsVisibility: Hn, keepUserOptionState: Un } = Ne({ config: L.value }), { svgRef: V } = Pe({ config: L.value.style.chart.title });
331
+ function Wn() {
332
+ let e = Ce({
333
+ userConfig: O.config,
334
+ defaultConfig: en
335
+ }), t = {}, n = e.theme;
336
+ if (n) if (!tn.value(e)) nn(e), t = e;
337
+ else {
338
+ let r = Ce({
339
+ userConfig: Ie[n] || O.config,
340
+ defaultConfig: e
341
+ });
342
+ t = {
343
+ ...Ce({
344
+ userConfig: O.config,
345
+ defaultConfig: r
346
+ }),
347
+ customPalette: e.customPalette ? e.customPalette : a[n] || l
348
+ };
349
+ }
350
+ else t = e;
351
+ return t;
352
+ }
353
+ Ye(() => O.config, (e) => {
354
+ Pn.value || (L.value = Wn()), Vn.value = !L.value.userOptions.showOnChartHover, Mn(), cn.value += 1, ln.value += 1, un.value += 1, H.value.showTable = L.value.table.show;
355
+ }, { deep: !0 }), Ye(() => O.dataset, (e) => {
356
+ Array.isArray(e) && e.length > 0 && (In.value = !1), Rn();
357
+ }, { deep: !0 });
358
+ let { isPrinting: Gn, isImaging: Kn, generatePdf: qn, generateImage: Jn } = ye({
359
+ elementId: k.value,
360
+ fileName: L.value.style.chart.title.text || "vue-ui-donut-evolution",
361
+ options: L.value.userOptions.print
362
+ }), Yn = d(() => L.value.userOptions.show && !L.value.style.chart.title.text), Xn = d(() => me(L.value.customPalette)), H = S({ showTable: L.value.table.show });
363
+ Ye(L, () => {
364
+ H.value = { showTable: L.value.table.show };
365
+ }, { immediate: !0 });
366
+ let U = d(() => ({
367
+ top: L.value.style.chart.layout.padding.top,
368
+ right: L.value.style.chart.layout.padding.right,
369
+ bottom: L.value.style.chart.layout.padding.bottom,
370
+ left: L.value.style.chart.layout.padding.left
371
+ }));
372
+ function Zn() {
373
+ let e = 0;
374
+ dn.value && (e = Array.from(dn.value.querySelectorAll("text")).reduce((e, t) => {
375
+ let n = t.getComputedTextLength();
376
+ return n > e ? n : e;
377
+ }, 0));
378
+ let t = mn.value ? mn.value.getBoundingClientRect().width + L.value.style.chart.layout.grid.axis.yLabelOffsetX + L.value.style.chart.layout.grid.axis.fontSize : 0;
379
+ return e + t + 5;
380
+ }
381
+ let Qn = S(0), $n = ke((e) => {
382
+ Qn.value = e;
383
+ }, 100);
384
+ Xe((e) => {
385
+ let t = fn.value;
386
+ if (!t) return;
387
+ let n = new ResizeObserver((e) => {
388
+ $n(e[0].contentRect.height);
389
+ });
390
+ n.observe(t), e(() => n.disconnect());
391
+ }), We(() => {
392
+ Qn.value = 0;
393
+ });
394
+ let er = d(() => {
395
+ let e = 0;
396
+ pn.value && (e = pn.value.getBBox().height);
397
+ let t = 0;
398
+ return fn.value && (t = Qn.value), e + t + L.value.style.chart.layout.grid.axis.fontSize + L.value.style.chart.layout.grid.xAxis.dataLabels.offsetY;
399
+ }), W = d(() => {
400
+ let e = Zn(), t = L.value.style.chart.layout.dataLabels.fontSize * 3, n = z.value.width, r = z.value.height, i = U.value.left + e, a = n - U.value.right, o = n - i - U.value.right, s = r - U.value.top - U.value.bottom - t - er.value, c = U.value.top + t;
401
+ return {
402
+ top: c,
403
+ left: i,
404
+ right: a,
405
+ bottom: r - U.value.bottom - er.value,
406
+ absoluteHeight: r,
407
+ absoluteWidth: n,
408
+ centerX: i + Math.max(10, o) / 2,
409
+ centerY: c + Math.max(10, s) / 2,
410
+ width: Math.max(10, o),
411
+ height: Math.max(10, s)
412
+ };
413
+ }), G = d(() => (Fn.value.forEach((e, t) => {
414
+ [null, void 0].includes(e.name) && ee({
415
+ componentName: "VueUiDonutEvolution",
416
+ type: "datasetSerieAttribute",
417
+ property: "name",
418
+ index: t,
419
+ debug: jn.value
420
+ }), [null, void 0].includes(e.values) && ee({
421
+ componentName: "VueUiDonutEvolution",
422
+ type: "datasetSerieAttribute",
423
+ property: "values",
424
+ index: t,
425
+ debug: jn.value
426
+ });
427
+ }), Fn.value.map((e, t) => ({
428
+ ...e,
429
+ values: ce(e.values),
430
+ color: he(e.color) || Xn.value[t] || l[t] || l[t % l.length],
431
+ length: (e.values || []).length,
432
+ uid: r()
433
+ })))), tr = d(() => G.value.filter((e) => !A.value.includes(e.uid)).map((e) => ({
434
+ ...e,
435
+ values: e.values.filter((e, t) => t >= B.value.start && t <= B.value.end)
436
+ }))), K = d(() => Math.max(...G.value.map((e) => e.length))), q = S([]), nr = 0;
437
+ Xe(() => {
438
+ let e = ++nr;
439
+ (async () => {
440
+ let t = await _e({
441
+ values: L.value.style.chart.layout.grid.xAxis.dataLabels.values,
442
+ maxDatapoints: K.value,
443
+ formatter: L.value.style.chart.layout.grid.xAxis.dataLabels.datetimeFormatter,
444
+ start: B.value.start,
445
+ end: B.value.end
446
+ });
447
+ e === nr && (q.value = t);
448
+ })();
449
+ });
450
+ let J = d(() => W.value.width / (B.value.end - B.value.start)), rr = d(() => {
451
+ let e = [];
452
+ for (let t = 0; t < B.value.end - B.value.start; t += 1) {
453
+ let n = tr.value.map((e) => e.values[t] ?? null), r = n.filter((e) => [void 0, null].includes(e)).length === n.length, i = n.reduce((e, t) => e + t, 0), a = n.map((e) => e / i), o = W.value.left + J.value * t + J.value / 2;
454
+ e.push({
455
+ index: t,
456
+ percentages: a,
457
+ subtotal: r || i < 0 ? null : i,
458
+ values: n,
459
+ x: o
460
+ });
461
+ }
462
+ return e;
463
+ }), ir = d(() => {
464
+ let e = Math.max(...rr.value.map((e) => e.subtotal).filter((e) => ae(e))) ?? 1, t = Math.min(...rr.value.map((e) => e.subtotal).filter((e) => ae(e))) ?? 0, n = Math.max(L.value.style.chart.layout.grid.yAxis.scaleMax ?? 0, e), r;
465
+ return r = L.value.style.chart.layout.grid.yAxis.scaleMin == null ? 0 : Math.min(t, L.value.style.chart.layout.grid.yAxis.scaleMin), L.value.style.chart.layout.grid.yAxis.autoScale && (r = t, n = e), r === n && (r = n / 2, n *= 1.5), {
466
+ max: n,
467
+ min: r
468
+ };
469
+ }), Y = d(() => {
470
+ let e = rr.value.length === 1 ? ir.value.max * 2 : ir.value.max;
471
+ return ie(ir.value.min, e, L.value.style.chart.layout.grid.yAxis.dataLabels.steps);
472
+ });
473
+ function ar(e) {
474
+ return (e - Y.value.min) / (Y.value.max - Y.value.min);
475
+ }
476
+ let or = d(() => Y.value.ticks.map((e) => ({
477
+ y: W.value.bottom - W.value.height * ar(e),
478
+ value: e
479
+ }))), X = d(() => {
480
+ let e = rr.value, t = Math.max(...e.map((e) => e.subtotal));
481
+ return e.length === 1 && t * 2, e.map((t, n) => {
482
+ let r = Math.min(W.value.width / 24, J.value / 2 * .7), i = r > W.value.width / 16 ? W.value.width / 16 : r, a = j.value === t.index ? W.value.width / 16 : i, o = e.length > 4 ? r * 2 : r * 2 > J.value / 2 * .7 ? J.value / 2 * .7 : r * 2, s = W.value.bottom - W.value.height * ar(t.subtotal), c = tr.value.map((e) => ({
483
+ color: e.color,
484
+ name: e.name,
485
+ value: e.values[n] ?? 0
486
+ })).toSorted((e, t) => t.value - e.value);
487
+ return {
488
+ ...t,
489
+ y: s,
490
+ radius: i,
491
+ activeRadius: a,
492
+ hoverRadius: o,
493
+ donut: ne({ series: c }, t.x, s, i, i, 1.99999, 2, 1, 360, 105.25, i / 2),
494
+ donutHover: ne({ series: c }, t.x, s, o, o, 1.99999, 2, 1, 360, 105.25, o / 2),
495
+ donutFocus: ne({ series: c }, W.value.centerX, W.value.centerY, W.value.height / 3.6, W.value.height / 3.6, 1.99999, 2, 1, 360, 105.25, W.value.height / 6)
496
+ };
497
+ });
498
+ });
499
+ function sr(e, t, r) {
500
+ return oe(L.value.style.chart.layout.dataLabels.formatter, e, n({
501
+ p: L.value.style.chart.layout.dataLabels.prefix,
502
+ v: e,
503
+ s: L.value.style.chart.layout.dataLabels.suffix,
504
+ r: L.value.style.chart.layout.dataLabels.rounding
505
+ }), {
506
+ datapoint: t,
507
+ index: r
508
+ });
509
+ }
510
+ function cr(e, t) {
511
+ return isNaN(e.value / o(t, "value")) ? 0 : (e.value / o(t, "value") * 100).toFixed(0) + "%";
512
+ }
513
+ function lr(e) {
514
+ j.value = null, M.value = null, I.value = null, L.value.events.datapointLeave && L.value.events.datapointLeave({
515
+ datapoint: e,
516
+ seriesIndex: e.seriesIndex + B.value.start
517
+ });
518
+ }
519
+ function ur(e) {
520
+ L.value.events.datapointEnter && L.value.events.datapointEnter({
521
+ datapoint: e,
522
+ seriesIndex: e.index + B.value.start
523
+ }), j.value = e.index, M.value = e, I.value = e.index;
524
+ }
525
+ let Z = S(null);
526
+ function dr(e, t) {
527
+ L.value.events.datapointClick && L.value.events.datapointClick({
528
+ datapoint: e,
529
+ seriesIndex: e.index + B.value.start
530
+ }), !(!e.subtotal || !L.value.style.chart.dialog.show) && (M.value = null, j.value = null, rn.value = !0, N.value = e, Ar(e), [null, void 0].includes(t) || (Z.value = t));
531
+ }
532
+ let fr = d(() => G.value.map((e, t) => ({
533
+ name: e.name,
534
+ value: e.values.slice(B.value.start, B.value.end).reduce((e, t) => e + t, 0),
535
+ shape: "circle",
536
+ uid: e.uid,
537
+ color: e.color
538
+ })).sort((e, t) => t.value - e.value).map((e, t) => ({
539
+ ...e,
540
+ opacity: A.value.includes(e.uid) ? .5 : 1,
541
+ segregate: () => gr(e.uid),
542
+ isSegregated: A.value.includes(e.uid),
543
+ display: `${e.name}${L.value.style.chart.legend.showPercentage || L.value.style.chart.legend.showValue ? ": " : ""}${L.value.style.chart.legend.showValue ? oe(L.value.style.chart.layout.dataLabels.formatter, e.value, n({
544
+ p: L.value.style.chart.layout.dataLabels.prefix,
545
+ v: e.value,
546
+ s: L.value.style.chart.layout.dataLabels.suffix,
547
+ r: L.value.style.chart.legend.roundingValue
548
+ }), {
549
+ datapoint: e,
550
+ seriesIndex: t
551
+ }) : ""}${L.value.style.chart.legend.showPercentage ? A.value.includes(e.uid) ? `${L.value.style.chart.legend.showValue ? " (" : ""}- %${L.value.style.chart.legend.showValue ? ")" : ""}` : `${L.value.style.chart.legend.showValue ? " (" : ""}${isNaN(e.value / pr.value) ? "-" : n({
552
+ v: e.value / pr.value * 100,
553
+ s: "%",
554
+ r: L.value.style.chart.legend.roundingPercentage
555
+ })}${L.value.style.chart.legend.showValue ? ")" : ""}` : ""}`
556
+ }))), pr = d(() => X.value.map((e) => e.subtotal).reduce((e, t) => e + t, 0)), mr = d(() => ({
557
+ cy: "donut-div-legend",
558
+ backgroundColor: L.value.style.chart.legend.backgroundColor,
559
+ color: L.value.style.chart.legend.color,
560
+ fontSize: L.value.style.chart.legend.fontSize,
561
+ paddingBottom: 12,
562
+ fontWeight: L.value.style.chart.legend.bold ? "bold" : ""
563
+ }));
564
+ function hr() {
565
+ A.value.length ? A.value = [] : fr.value.forEach((e) => {
566
+ A.value.push(e.uid);
567
+ });
568
+ }
569
+ function gr(e) {
570
+ if (A.value.includes(e)) A.value = A.value.filter((t) => t !== e), kn("selectLegend", tr.value);
571
+ else {
572
+ if (A.value.length === G.value.length - 1) return;
573
+ A.value.push(e), kn("selectLegend", tr.value);
574
+ }
575
+ N.value && dr(X.value.find((e, t) => t === Z.value));
576
+ }
577
+ function _r(e) {
578
+ return G.value.length ? G.value.find((t) => t.name === e) || (L.value.debug && console.warn(`VueUiDonutEvolution - Series name not found "${e}"`), null) : (L.value.debug && console.warn("VueUiDonutEvolution - There are no series to show."), null);
579
+ }
580
+ function vr(e) {
581
+ let t = _r(e);
582
+ t !== null && A.value.includes(t.uid) && gr(t.uid);
583
+ }
584
+ function yr(e) {
585
+ let t = _r(e);
586
+ t !== null && (A.value.includes(t.uid) || gr(t.uid));
587
+ }
588
+ let Q = d(() => {
589
+ let e = [""].concat(G.value.filter((e) => !A.value.includes(e.uid)).map((e) => ({
590
+ name: e.name,
591
+ color: e.color
592
+ })), ["Σ"]), t = [];
593
+ for (let e = 0; e < K.value; e += 1) {
594
+ let n = G.value.filter((e) => !A.value.includes(e.uid)).map((t) => t.values[e] ?? 0).reduce((e, t) => e + t, 0);
595
+ t.push([q.value[e] ? q.value[e].text : "-"].concat(G.value.filter((e) => !A.value.includes(e.uid)).map((t) => ({
596
+ value: t.values[e] ?? 0,
597
+ percentage: t.values[e] ? t.values[e] / n * 100 : 0
598
+ })), [`${L.value.style.chart.layout.dataLabels.prefix}${Number(n.toFixed(L.value.table.td.roundingValue))}${L.value.style.chart.layout.dataLabels.suffix}`]));
599
+ }
600
+ return {
601
+ head: e,
602
+ body: t,
603
+ bodyA11y: t.map((e) => e.map((t, n) => n === 0 || n === e.length - 1 ? t : `${sr(t.value ?? 0, null, n)} (${t.percentage.toFixed(1)}%)`)),
604
+ config: {
605
+ th: {
606
+ backgroundColor: L.value.table.th.backgroundColor,
607
+ color: L.value.table.th.color,
608
+ outline: L.value.table.th.outline
609
+ },
610
+ td: {
611
+ backgroundColor: L.value.table.td.backgroundColor,
612
+ color: L.value.table.td.color,
613
+ outline: L.value.table.td.outline
614
+ },
615
+ breakpoint: L.value.table.responsiveBreakpoint
616
+ },
617
+ colNames: [L.value.table.columnNames.period].concat(G.value.filter((e) => !A.value.includes(e.uid)).map((e) => e.name), L.value.table.columnNames.total)
618
+ };
619
+ });
620
+ function br() {
621
+ return G.value;
622
+ }
623
+ function xr(e = null) {
624
+ Ue(() => {
625
+ let t = [
626
+ [L.value.style.chart.title.text],
627
+ [L.value.style.chart.title.subtitle.text],
628
+ [""]
629
+ ], n = [...Q.value.head.map((e) => e.name ?? e)], r = [...Q.value.body.map((e) => e.map((e) => e.value ?? e))], a = s(t.concat([n]).concat(r));
630
+ e ? e(a) : i({
631
+ csvContent: a,
632
+ title: L.value.style.chart.title.text || "vue-ui-donut-evolution"
633
+ });
634
+ });
635
+ }
636
+ let $ = S(!1);
637
+ function Sr(e) {
638
+ $.value = e, on.value += 1;
639
+ }
640
+ function Cr() {
641
+ H.value.showTable = !H.value.showTable;
642
+ }
643
+ let wr = S(!1);
644
+ function Tr() {
645
+ wr.value = !wr.value;
646
+ }
647
+ function Er(e) {
648
+ return e.proportion * 100 > L.value.style.chart.donuts.hover.hideLabelsUnderValue;
649
+ }
650
+ let Dr = S([]), Or = S({}), kr = S(null);
651
+ function Ar(e) {
652
+ Dr.value = e.donut.map((e) => ({
653
+ name: e.name,
654
+ values: [e.value],
655
+ color: e.color
656
+ })), Or.value = de({
657
+ ...L.value.style.chart.dialog.donutChart,
658
+ responsive: !0,
659
+ theme: L.value.theme
660
+ }), kr.value && kr.value.open();
661
+ }
662
+ async function jr({ scale: e = 2 } = {}) {
663
+ if (!P.value) return;
664
+ let { width: t, height: n } = P.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await Ee({
665
+ domElement: P.value,
666
+ base64: !0,
667
+ img: !0,
668
+ scale: e
669
+ });
670
+ return {
671
+ imageUri: i,
672
+ base64: a,
673
+ title: L.value.style.chart.title.text,
674
+ width: t,
675
+ height: n,
676
+ aspectRatio: r
677
+ };
678
+ }
679
+ Te({
680
+ timeLabelsEls: fn,
681
+ timeLabels: q,
682
+ slicer: B,
683
+ configRef: L,
684
+ rotationPath: [
685
+ "style",
686
+ "chart",
687
+ "layout",
688
+ "grid",
689
+ "xAxis",
690
+ "dataLabels",
691
+ "rotation"
692
+ ],
693
+ autoRotatePath: [
694
+ "style",
695
+ "chart",
696
+ "layout",
697
+ "grid",
698
+ "xAxis",
699
+ "dataLabels",
700
+ "autoRotate",
701
+ "enable"
702
+ ],
703
+ isAutoSize: !1,
704
+ width: d(() => z.value.width),
705
+ height: d(() => z.value.height),
706
+ rotation: L.value.style.chart.layout.grid.xAxis.dataLabels.autoRotate.angle
707
+ });
708
+ let Mr = d(() => {
709
+ let e = L.value.table.useDialog && !L.value.table.show, t = H.value.showTable;
710
+ return {
711
+ component: e ? $t : Kt,
712
+ title: `${L.value.style.chart.title.text}${L.value.style.chart.title.subtitle.text ? `: ${L.value.style.chart.title.subtitle.text}` : ""}`,
713
+ props: e ? {
714
+ backgroundColor: L.value.table.th.backgroundColor,
715
+ color: L.value.table.th.color,
716
+ headerColor: L.value.table.th.color,
717
+ headerBg: L.value.table.th.backgroundColor,
718
+ isFullscreen: $.value,
719
+ fullscreenParent: P.value,
720
+ forcedWidth: Math.min(800, window.innerWidth * .8),
721
+ isCursorPointer: R.value
722
+ } : {
723
+ hideDetails: !0,
724
+ config: {
725
+ open: t,
726
+ maxHeight: 1e4,
727
+ body: {
728
+ backgroundColor: L.value.style.chart.backgroundColor,
729
+ color: L.value.style.chart.color
730
+ },
731
+ head: {
732
+ backgroundColor: L.value.style.chart.backgroundColor,
733
+ color: L.value.style.chart.color
734
+ }
735
+ }
736
+ }
737
+ };
738
+ });
739
+ Ye(() => H.value.showTable, (e) => {
740
+ L.value.table.show || (e && L.value.table.useDialog && gn.value ? gn.value.open() : "close" in gn.value && gn.value.close());
741
+ });
742
+ function Nr() {
743
+ H.value.showTable = !1, _n.value && _n.value.setTableIconState(!1);
744
+ }
745
+ let Pr = d(() => fr.value.map((e) => ({
746
+ ...e,
747
+ name: e.display
748
+ }))), Fr = d(() => L.value.style.chart.backgroundColor), Ir = d(() => L.value.style.chart.legend), { exportSvg: Lr, getSvg: Rr } = Se({
749
+ svg: V,
750
+ title: d(() => L.value.style.chart.title),
751
+ legend: Ir,
752
+ legendItems: Pr,
753
+ backgroundColor: Fr
754
+ });
755
+ async function zr({ isCb: e }) {
756
+ yn.value = !0, await Ue();
757
+ try {
758
+ if (e) {
759
+ let { blob: e, url: t, text: n, dataUrl: r } = await Rr();
760
+ await Promise.resolve(L.value.userOptions.callbacks.svg({
761
+ blob: e,
762
+ url: t,
763
+ text: n,
764
+ dataUrl: r
765
+ }));
766
+ } else await Promise.resolve(Lr());
767
+ } finally {
768
+ yn.value = !1;
769
+ }
770
+ }
771
+ function Br(e) {
772
+ if (e?.stage === "start") {
773
+ vn.value = !0;
774
+ return;
775
+ }
776
+ if (e?.stage === "end") {
777
+ vn.value = !1;
778
+ return;
779
+ }
780
+ Jn();
781
+ }
782
+ async function Vr() {
783
+ if (kn("copyAlt", {
784
+ config: L.value,
785
+ dataset: X.value
786
+ }), !L.value.userOptions.callbacks.altCopy) {
787
+ console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
788
+ return;
789
+ }
790
+ await Promise.resolve(L.value.userOptions.callbacks.altCopy({
791
+ config: L.value,
792
+ dataset: X.value
793
+ }));
794
+ }
795
+ function Hr() {
796
+ I.value = null, On.value = !0;
797
+ }
798
+ function Ur() {
799
+ I.value = null, j.value = null, M.value = null, On.value = !1;
800
+ }
801
+ function Wr(e) {
802
+ if (!V.value || wr.value || document.activeElement !== V.value || !X.value.length) return;
803
+ let t = e.key === "ArrowLeft", n = e.key === "ArrowRight", r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
804
+ if (!t && !n && !r && !i) return;
805
+ if (e.preventDefault(), e.stopPropagation(), i) {
806
+ I.value = null, j.value = null, M.value = null;
807
+ return;
808
+ }
809
+ if (r) {
810
+ if (I.value === null) return;
811
+ let e = X.value[I.value];
812
+ if (!e) return;
813
+ dr(e, I.value);
814
+ return;
815
+ }
816
+ let a = I.value, o = j.value, s = a !== null && a >= 0 && a < X.value.length, c = o !== null && o >= 0 && o < X.value.length;
817
+ s ? n ? (a += 1, a >= X.value.length && (a = 0)) : t && (--a, a < 0 && (a = X.value.length - 1)) : c ? (a = n ? o + 1 : o - 1, a >= X.value.length && (a = 0), a < 0 && (a = X.value.length - 1)) : a = n ? 0 : X.value.length - 1;
818
+ let l = X.value[a];
819
+ l && ur(l);
820
+ }
821
+ let Gr = d(() => ({
822
+ headers: Q.value?.colNames ?? [],
823
+ rows: Q.value?.bodyA11y ?? []
824
+ }));
825
+ return Oe({
826
+ getData: br,
827
+ getImage: jr,
828
+ generatePdf: qn,
829
+ generateCsv: xr,
830
+ generateImage: Jn,
831
+ generateSvg: zr,
832
+ hideSeries: yr,
833
+ showSeries: vr,
834
+ toggleTable: Cr,
835
+ toggleAnnotator: Tr,
836
+ toggleFullscreen: Sr,
837
+ copyAlt: Vr
838
+ }), (e, r) => (x(), m("div", {
839
+ ref_key: "donutEvolutionChart",
840
+ ref: P,
841
+ class: v(`vue-data-ui-component vue-ui-donut-evolution ${$.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${L.value.useCssAnimation ? "" : "vue-ui-dna"}`),
842
+ style: b(`font-family:${L.value.style.fontFamily};width:100%; text-align:center;background:${L.value.style.chart.backgroundColor}`),
843
+ id: k.value,
844
+ onMouseenter: r[5] ||= () => E(Hn)(!0),
845
+ onMouseleave: r[6] ||= () => E(Hn)(!1)
846
+ }, [
847
+ h("div", {
848
+ id: `chart-instructions-${k.value}`,
849
+ class: "sr-only"
850
+ }, [h("p", null, T(L.value.a11y.translations.keyboardNavigation), 1)], 8, $e),
851
+ Gr.value?.rows?.length ? (x(), f(Me, {
852
+ key: 0,
853
+ uid: k.value,
854
+ head: Gr.value.headers,
855
+ body: Gr.value.rows,
856
+ notice: L.value.a11y.translations.tableAvailable,
857
+ caption: L.value.a11y.translations.tableCaption
858
+ }, null, 8, [
859
+ "uid",
860
+ "head",
861
+ "body",
862
+ "notice",
863
+ "caption"
864
+ ])) : p("", !0),
865
+ L.value.userOptions.buttons.annotator ? (x(), f(E(Xt), {
866
+ key: 1,
867
+ svgRef: E(V),
868
+ backgroundColor: L.value.style.chart.backgroundColor,
869
+ color: L.value.style.chart.color,
870
+ active: wr.value,
871
+ isCursorPointer: R.value,
872
+ onClose: Tr
873
+ }, {
874
+ "annotator-action-close": D(() => [w(e.$slots, "annotator-action-close", {}, void 0, !0)]),
875
+ "annotator-action-color": D(({ color: t }) => [w(e.$slots, "annotator-action-color", y(_({ color: t })), void 0, !0)]),
876
+ "annotator-action-draw": D(({ mode: t }) => [w(e.$slots, "annotator-action-draw", y(_({ mode: t })), void 0, !0)]),
877
+ "annotator-action-undo": D(({ disabled: t }) => [w(e.$slots, "annotator-action-undo", y(_({ disabled: t })), void 0, !0)]),
878
+ "annotator-action-redo": D(({ disabled: t }) => [w(e.$slots, "annotator-action-redo", y(_({ disabled: t })), void 0, !0)]),
879
+ "annotator-action-delete": D(({ disabled: t }) => [w(e.$slots, "annotator-action-delete", y(_({ disabled: t })), void 0, !0)]),
880
+ _: 3
881
+ }, 8, [
882
+ "svgRef",
883
+ "backgroundColor",
884
+ "color",
885
+ "active",
886
+ "isCursorPointer"
887
+ ])) : p("", !0),
888
+ Yn.value ? (x(), m("div", {
889
+ key: 2,
890
+ ref_key: "noTitle",
891
+ ref: an,
892
+ class: "vue-data-ui-no-title-space",
893
+ style: "height:36px; width: 100%;background:transparent"
894
+ }, null, 512)) : p("", !0),
895
+ L.value.style.chart.title.text ? (x(), m("div", {
896
+ key: 3,
897
+ ref_key: "chartTitle",
898
+ ref: bn,
899
+ style: "width:100%;background:transparent;padding-bottom:24px",
900
+ onMouseleave: lr
901
+ }, [(x(), f(De, {
902
+ key: `title_${cn.value}`,
903
+ config: {
904
+ title: {
905
+ cy: "donut-evolution-div-title",
906
+ ...L.value.style.chart.title
907
+ },
908
+ subtitle: {
909
+ cy: "donut-evolution-div-subtitle",
910
+ ...L.value.style.chart.title.subtitle
911
+ }
912
+ }
913
+ }, null, 8, ["config"]))], 544)) : p("", !0),
914
+ h("div", { id: `legend-top-${k.value}` }, null, 8, et),
915
+ L.value.userOptions.show && An.value && (E(Un) || E(Vn)) ? (x(), f(E(Zt), {
916
+ ref_key: "userOptionsRef",
917
+ ref: _n,
918
+ key: `user_options_${on.value}`,
919
+ backgroundColor: L.value.style.chart.backgroundColor,
920
+ color: L.value.style.chart.color,
921
+ isPrinting: E(Gn),
922
+ isImaging: E(Kn),
923
+ uid: k.value,
924
+ hasPdf: L.value.userOptions.buttons.pdf,
925
+ hasImg: L.value.userOptions.buttons.img,
926
+ hasSvg: L.value.userOptions.buttons.svg,
927
+ hasXls: L.value.userOptions.buttons.csv,
928
+ hasTable: L.value.userOptions.buttons.table,
929
+ hasFullscreen: L.value.userOptions.buttons.fullscreen,
930
+ hasAltCopy: L.value.userOptions.buttons.altCopy,
931
+ isFullscreen: $.value,
932
+ titles: { ...L.value.userOptions.buttonTitles },
933
+ chartElement: P.value,
934
+ position: L.value.userOptions.position,
935
+ hasAnnotator: L.value.userOptions.buttons.annotator,
936
+ isAnnotation: wr.value,
937
+ callbacks: L.value.userOptions.callbacks,
938
+ printScale: L.value.userOptions.print.scale,
939
+ tableDialog: L.value.table.useDialog,
940
+ isCursorPointer: R.value,
941
+ onToggleFullscreen: Sr,
942
+ onGeneratePdf: E(qn),
943
+ onGenerateCsv: xr,
944
+ onGenerateImage: Br,
945
+ onGenerateSvg: zr,
946
+ onToggleTable: Cr,
947
+ onToggleAnnotator: Tr,
948
+ onCopyAlt: Vr,
949
+ style: b({ visibility: E(Un) ? E(Vn) ? "visible" : "hidden" : "visible" })
950
+ }, ze({ _: 2 }, [
951
+ e.$slots.menuIcon ? {
952
+ name: "menuIcon",
953
+ fn: D(({ isOpen: t, color: n }) => [w(e.$slots, "menuIcon", y(_({
954
+ isOpen: t,
955
+ color: n
956
+ })), void 0, !0)]),
957
+ key: "0"
958
+ } : void 0,
959
+ e.$slots.optionPdf ? {
960
+ name: "optionPdf",
961
+ fn: D(() => [w(e.$slots, "optionPdf", {}, void 0, !0)]),
962
+ key: "1"
963
+ } : void 0,
964
+ e.$slots.optionCsv ? {
965
+ name: "optionCsv",
966
+ fn: D(() => [w(e.$slots, "optionCsv", {}, void 0, !0)]),
967
+ key: "2"
968
+ } : void 0,
969
+ e.$slots.optionImg ? {
970
+ name: "optionImg",
971
+ fn: D(() => [w(e.$slots, "optionImg", {}, void 0, !0)]),
972
+ key: "3"
973
+ } : void 0,
974
+ e.$slots.optionSvg ? {
975
+ name: "optionSvg",
976
+ fn: D(() => [w(e.$slots, "optionSvg", {}, void 0, !0)]),
977
+ key: "4"
978
+ } : void 0,
979
+ e.$slots.optionTable ? {
980
+ name: "optionTable",
981
+ fn: D(() => [w(e.$slots, "optionTable", {}, void 0, !0)]),
982
+ key: "5"
983
+ } : void 0,
984
+ e.$slots.optionFullscreen ? {
985
+ name: "optionFullscreen",
986
+ fn: D(({ toggleFullscreen: t, isFullscreen: n }) => [w(e.$slots, "optionFullscreen", y(_({
987
+ toggleFullscreen: t,
988
+ isFullscreen: n
989
+ })), void 0, !0)]),
990
+ key: "6"
991
+ } : void 0,
992
+ e.$slots.optionAnnotator ? {
993
+ name: "optionAnnotator",
994
+ fn: D(({ toggleAnnotator: t, isAnnotator: n }) => [w(e.$slots, "optionAnnotator", y(_({
995
+ toggleAnnotator: t,
996
+ isAnnotator: n
997
+ })), void 0, !0)]),
998
+ key: "7"
999
+ } : void 0,
1000
+ e.$slots.optionAltCopy ? {
1001
+ name: "optionAltCopy",
1002
+ fn: D(({ altCopy: t }) => [w(e.$slots, "optionAltCopy", y(_({ altCopy: t })), void 0, !0)]),
1003
+ key: "8"
1004
+ } : void 0
1005
+ ]), 1032, [
1006
+ "backgroundColor",
1007
+ "color",
1008
+ "isPrinting",
1009
+ "isImaging",
1010
+ "uid",
1011
+ "hasPdf",
1012
+ "hasImg",
1013
+ "hasSvg",
1014
+ "hasXls",
1015
+ "hasTable",
1016
+ "hasFullscreen",
1017
+ "hasAltCopy",
1018
+ "isFullscreen",
1019
+ "titles",
1020
+ "chartElement",
1021
+ "position",
1022
+ "hasAnnotator",
1023
+ "isAnnotation",
1024
+ "callbacks",
1025
+ "printScale",
1026
+ "tableDialog",
1027
+ "isCursorPointer",
1028
+ "onGeneratePdf",
1029
+ "style"
1030
+ ])) : p("", !0),
1031
+ h("div", tt, [(x(), m("svg", {
1032
+ ref_key: "svgRef",
1033
+ ref: V,
1034
+ xmlns: E(fe),
1035
+ "aria-describedby": `chart-instructions-${k.value}`,
1036
+ class: v({
1037
+ "vue-data-ui-fullscreen--on": $.value,
1038
+ "vue-data-ui-fulscreen--off": !$.value
1039
+ }),
1040
+ viewBox: `0 0 ${W.value.absoluteWidth} ${W.value.absoluteHeight}`,
1041
+ style: b(`max-width:100%; overflow: visible; background:transparent;color:${L.value.style.chart.color};`),
1042
+ tabindex: "0",
1043
+ onFocus: Hr,
1044
+ onBlur: Ur,
1045
+ onKeydown: Wr
1046
+ }, [
1047
+ Ve(E(Yt)),
1048
+ e.$slots["chart-background"] ? (x(), m("foreignObject", {
1049
+ key: 0,
1050
+ x: W.value.left,
1051
+ y: W.value.top,
1052
+ width: W.value.width,
1053
+ height: W.value.height,
1054
+ style: { pointerEvents: "none" }
1055
+ }, [w(e.$slots, "chart-background", {}, void 0, !0)], 8, rt)) : p("", !0),
1056
+ h("defs", null, [h("linearGradient", {
1057
+ id: `hover_${k.value}`,
1058
+ x1: "0%",
1059
+ y1: "0%",
1060
+ x2: "0%",
1061
+ y2: "100%"
1062
+ }, [h("stop", {
1063
+ offset: "0%",
1064
+ "stop-color": E(se)(L.value.style.chart.backgroundColor, L.value.style.chart.layout.highlighter.opacity)
1065
+ }, null, 8, at), h("stop", {
1066
+ offset: "100%",
1067
+ "stop-color": E(se)(L.value.style.chart.layout.highlighter.color, L.value.style.chart.layout.highlighter.opacity)
1068
+ }, null, 8, ot)], 8, it), h("radialGradient", { id: `focus_${k.value}` }, [
1069
+ h("stop", {
1070
+ offset: "0%",
1071
+ "stop-color": E(se)(E(he)(L.value.style.chart.backgroundColor), 0)
1072
+ }, null, 8, ct),
1073
+ h("stop", {
1074
+ offset: "77%",
1075
+ "stop-color": E(se)("#FFFFFF", 30)
1076
+ }, null, 8, lt),
1077
+ h("stop", {
1078
+ offset: "100%",
1079
+ "stop-color": E(se)(E(he)(L.value.style.chart.backgroundColor), 0)
1080
+ }, null, 8, ut)
1081
+ ], 8, st)]),
1082
+ L.value.style.chart.layout.grid.show ? (x(), m("g", dt, [
1083
+ h("line", {
1084
+ x1: W.value.left,
1085
+ x2: W.value.left,
1086
+ y1: W.value.top,
1087
+ y2: W.value.top + W.value.height,
1088
+ stroke: L.value.style.chart.layout.grid.stroke,
1089
+ "stroke-width": L.value.style.chart.layout.grid.strokeWidth,
1090
+ "stroke-linecap": "round"
1091
+ }, null, 8, ft),
1092
+ h("line", {
1093
+ x1: W.value.left,
1094
+ x2: W.value.right,
1095
+ y1: W.value.bottom,
1096
+ y2: W.value.bottom,
1097
+ stroke: L.value.style.chart.layout.grid.stroke,
1098
+ "stroke-width": L.value.style.chart.layout.grid.strokeWidth,
1099
+ "stroke-linecap": "round"
1100
+ }, null, 8, pt),
1101
+ L.value.style.chart.layout.grid.showVerticalLines ? (x(), m("g", mt, [(x(!0), m(u, null, C(B.value.end - B.value.start, (e, t) => (x(), m("line", {
1102
+ x1: W.value.left + (t + 1) * J.value,
1103
+ x2: W.value.left + (t + 1) * J.value,
1104
+ y1: W.value.top,
1105
+ y2: W.value.bottom,
1106
+ stroke: L.value.style.chart.layout.grid.stroke,
1107
+ "stroke-width": L.value.style.chart.layout.grid.strokeWidth,
1108
+ "stroke-linecap": "round"
1109
+ }, null, 8, ht))), 256))])) : p("", !0)
1110
+ ])) : p("", !0),
1111
+ h("g", null, [L.value.style.chart.layout.grid.axis.yLabel ? (x(), m("text", {
1112
+ key: 0,
1113
+ ref_key: "yAxisLabel",
1114
+ ref: mn,
1115
+ "font-size": L.value.style.chart.layout.grid.axis.fontSize,
1116
+ fill: L.value.style.chart.layout.grid.axis.color,
1117
+ transform: `translate(${L.value.style.chart.layout.grid.axis.fontSize}, ${W.value.top + W.value.height / 2}) rotate(-90)`,
1118
+ "text-anchor": "middle",
1119
+ style: { transition: "none" }
1120
+ }, T(L.value.style.chart.layout.grid.axis.yLabel), 9, gt)) : p("", !0), L.value.style.chart.layout.grid.axis.xLabel ? (x(), m("text", {
1121
+ key: 1,
1122
+ ref_key: "xAxisLabel",
1123
+ ref: pn,
1124
+ "text-anchor": "middle",
1125
+ x: W.value.absoluteWidth / 2,
1126
+ y: W.value.absoluteHeight - 3,
1127
+ "font-size": L.value.style.chart.layout.grid.axis.fontSize,
1128
+ fill: L.value.style.chart.layout.grid.axis.color
1129
+ }, T(L.value.style.chart.layout.grid.axis.xLabel), 9, _t)) : p("", !0)]),
1130
+ L.value.style.chart.layout.grid.yAxis.dataLabels.show ? (x(), m("g", {
1131
+ key: 2,
1132
+ ref_key: "scaleLabels",
1133
+ ref: dn,
1134
+ class: v({
1135
+ "donut-opacity": !0,
1136
+ "donut-behind": j.value !== null
1137
+ })
1138
+ }, [(x(!0), m(u, null, C(or.value, (e, t) => (x(), m("g", null, [e.value >= Y.value.min && e.value <= Y.value.max ? (x(), m("line", {
1139
+ key: 0,
1140
+ x1: W.value.left,
1141
+ x2: W.value.left - 5,
1142
+ y1: e.y,
1143
+ y2: e.y,
1144
+ stroke: L.value.style.chart.layout.grid.stroke,
1145
+ "stroke-width": L.value.style.chart.layout.grid.strokeWidth
1146
+ }, null, 8, vt)) : p("", !0), e.value >= Y.value.min && e.value <= Y.value.max ? (x(), m("text", {
1147
+ key: 1,
1148
+ x: W.value.left + L.value.style.chart.layout.grid.yAxis.dataLabels.offsetX - 7,
1149
+ y: e.y + L.value.style.chart.layout.grid.yAxis.dataLabels.fontSize / 3,
1150
+ "font-size": L.value.style.chart.layout.grid.yAxis.dataLabels.fontSize,
1151
+ "text-anchor": "end",
1152
+ fill: L.value.style.chart.layout.grid.yAxis.dataLabels.color,
1153
+ "font-weight": L.value.style.chart.layout.grid.yAxis.dataLabels.bold ? "bold" : "normal"
1154
+ }, T(E(te)(e.value) ? E(oe)(L.value.style.chart.layout.dataLabels.formatter, e.value, E(n)({
1155
+ p: L.value.style.chart.layout.dataLabels.prefix,
1156
+ v: e.value,
1157
+ s: L.value.style.chart.layout.dataLabels.suffix,
1158
+ r: L.value.style.chart.layout.grid.yAxis.dataLabels.roundingValue
1159
+ }), {
1160
+ datapoint: e,
1161
+ seriesIndex: t
1162
+ }) : ""), 9, yt)) : p("", !0)]))), 256))], 2)) : p("", !0),
1163
+ L.value.style.chart.layout.grid.xAxis.dataLabels.show ? (x(), m("g", {
1164
+ key: 3,
1165
+ ref_key: "timeLabelsEls",
1166
+ ref: fn,
1167
+ class: v({ "donut-opacity": !0 })
1168
+ }, [(x(!0), m(u, null, C(B.value.end - B.value.start, (e, n) => (x(), m("g", null, [(L.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast && (n === 0 || n === K.value - 1) || !L.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast) && q.value[n] && q.value[n].text ? (x(), m("g", bt, [String(q.value[n].text).includes("\n") ? (x(), m("text", {
1169
+ key: 1,
1170
+ class: "vue-data-ui-time-label",
1171
+ "text-anchor": L.value.style.chart.layout.grid.xAxis.dataLabels.rotation > 0 ? "start" : L.value.style.chart.layout.grid.xAxis.dataLabels.rotation < 0 ? "end" : "middle",
1172
+ "font-size": L.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,
1173
+ fill: L.value.style.chart.layout.grid.xAxis.dataLabels.color,
1174
+ transform: `translate(${W.value.left + J.value * n + J.value / 2}, ${W.value.bottom + L.value.style.chart.layout.grid.xAxis.dataLabels.fontSize + L.value.style.chart.layout.grid.xAxis.dataLabels.offsetY}), rotate(${L.value.style.chart.layout.grid.xAxis.dataLabels.rotation})`,
1175
+ innerHTML: E(t)({
1176
+ content: String(q.value[n].text),
1177
+ fontSize: L.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,
1178
+ fill: L.value.style.chart.layout.grid.xAxis.dataLabels.color,
1179
+ x: 0,
1180
+ y: 0
1181
+ })
1182
+ }, null, 8, St)) : (x(), m("text", {
1183
+ key: 0,
1184
+ class: "vue-data-ui-time-label",
1185
+ "text-anchor": L.value.style.chart.layout.grid.xAxis.dataLabels.rotation > 0 ? "start" : L.value.style.chart.layout.grid.xAxis.dataLabels.rotation < 0 ? "end" : "middle",
1186
+ "font-size": L.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,
1187
+ fill: L.value.style.chart.layout.grid.xAxis.dataLabels.color,
1188
+ transform: `translate(${W.value.left + J.value * n + J.value / 2}, ${W.value.bottom + L.value.style.chart.layout.grid.xAxis.dataLabels.fontSize + L.value.style.chart.layout.grid.xAxis.dataLabels.offsetY}), rotate(${L.value.style.chart.layout.grid.xAxis.dataLabels.rotation})`
1189
+ }, T(q.value[n].text || ""), 9, xt))])) : p("", !0)]))), 256))], 512)) : p("", !0),
1190
+ (x(!0), m(u, null, C(X.value, (e, t) => (x(), m("g", null, [L.value.style.chart.layout.line.show && t < X.value.length - 1 && ![e.subtotal, X.value[t + 1].subtotal].includes(null) ? (x(), m("line", {
1191
+ key: 0,
1192
+ class: v({
1193
+ "donut-opacity": !0,
1194
+ "donut-behind": j.value !== null
1195
+ }),
1196
+ x1: e.x,
1197
+ y1: e.y,
1198
+ x2: X.value[t + 1].x,
1199
+ y2: X.value[t + 1].y,
1200
+ stroke: L.value.style.chart.layout.line.stroke,
1201
+ "stroke-width": L.value.style.chart.layout.line.strokeWidth,
1202
+ "stroke-linecap": "round",
1203
+ "stroke-linejoin": "round"
1204
+ }, null, 10, Ct)) : p("", !0), e.subtotal === null ? p("", !0) : (x(), m("g", wt, [e.subtotal ? (x(), m("circle", {
1205
+ key: 0,
1206
+ cx: e.x,
1207
+ cy: e.y,
1208
+ r: e.activeRadius,
1209
+ fill: L.value.style.chart.backgroundColor
1210
+ }, null, 8, Tt)) : p("", !0)]))]))), 256)),
1211
+ (x(!0), m(u, null, C(X.value, (e, t) => (x(), m("g", { class: v({
1212
+ "donut-opacity": !0,
1213
+ "donut-behind": t !== j.value && j.value !== null
1214
+ }) }, [e.subtotal ? (x(), m("g", Et, [j.value !== null && j.value === t ? (x(), m("g", Dt, [
1215
+ (x(!0), m(u, null, C(e.donutHover, (t) => (x(), m("g", null, [Er(t) ? (x(), m("path", {
1216
+ key: 0,
1217
+ d: E(ue)(t, {
1218
+ x: t.center.endX,
1219
+ y: t.center.endY
1220
+ }, 12, 12, {
1221
+ x: e.x,
1222
+ y: e.y
1223
+ }, !1, 20),
1224
+ stroke: t.color,
1225
+ "stroke-width": "1",
1226
+ "stroke-linecap": "round",
1227
+ "stroke-linejoin": "round",
1228
+ fill: "none"
1229
+ }, null, 8, Ot)) : p("", !0)]))), 256)),
1230
+ (x(!0), m(u, null, C(e.donutHover, (t, n) => (x(), m("g", null, [Er(t) ? (x(), m("text", {
1231
+ key: 0,
1232
+ "data-cy-hover-label": "",
1233
+ "text-anchor": E(pe)(t, !0, 0).anchor,
1234
+ x: E(pe)(t, !0, 9).x,
1235
+ y: E(re)(t, 14, 10),
1236
+ fill: L.value.style.chart.layout.grid.yAxis.dataLabels.color,
1237
+ "font-size": 8,
1238
+ "font-weight": "bold"
1239
+ }, T(t.name) + ": " + T(cr(t, e.donut)) + " (" + T(t.value === null ? "-" : sr(t.value, t, n)) + ") ", 9, kt)) : p("", !0)]))), 256)),
1240
+ h("g", null, [h("circle", {
1241
+ cx: e.x,
1242
+ cy: e.y,
1243
+ r: e.hoverRadius,
1244
+ fill: L.value.style.chart.backgroundColor
1245
+ }, null, 8, At)])
1246
+ ])) : p("", !0)])) : p("", !0)], 2))), 256)),
1247
+ (x(!0), m(u, null, C(X.value, (e, t) => (x(), m("g", { class: v({
1248
+ "donut-opacity": !0,
1249
+ "donut-behind": t !== j.value && j.value !== null
1250
+ }) }, [e.subtotal === null ? p("", !0) : (x(), m("g", jt, [e.subtotal === 0 ? (x(), m("circle", {
1251
+ key: 0,
1252
+ cx: e.x,
1253
+ cy: e.y,
1254
+ r: 3,
1255
+ fill: L.value.style.chart.color
1256
+ }, null, 8, Mt)) : j.value !== null && j.value === t ? (x(), m("g", Nt, [(x(!0), m(u, null, C(e.donutHover, (e, t) => (x(), m("path", {
1257
+ d: e.arcSlice,
1258
+ fill: `${e.color}`,
1259
+ "stroke-width": 1,
1260
+ stroke: L.value.style.chart.backgroundColor
1261
+ }, null, 8, Pt))), 256))])) : (x(), m("g", Ft, [(x(!0), m(u, null, C(e.donut, (e, t) => (x(), m("path", {
1262
+ d: e.arcSlice,
1263
+ fill: `${e.color}`,
1264
+ "stroke-width": .5,
1265
+ stroke: L.value.style.chart.backgroundColor
1266
+ }, null, 8, It))), 256))]))]))], 2))), 256)),
1267
+ (x(!0), m(u, null, C(X.value, (e, t) => (x(), m("g", { class: v({
1268
+ "donut-opacity": !0,
1269
+ "donut-behind": t !== j.value && j.value !== null || rn.value && t !== N.value.index
1270
+ }) }, [e.subtotal !== null && L.value.style.chart.layout.dataLabels.show ? (x(), m("text", {
1271
+ key: 0,
1272
+ "text-anchor": "middle",
1273
+ x: e.x,
1274
+ y: j.value === e.index && e.subtotal ? e.y + L.value.style.chart.layout.dataLabels.fontSize / 3 : e.y - e.radius - L.value.style.chart.layout.dataLabels.fontSize + L.value.style.chart.layout.dataLabels.offsetY,
1275
+ "font-size": L.value.style.chart.layout.dataLabels.fontSize,
1276
+ "font-weight": "bold",
1277
+ fill: L.value.style.chart.layout.dataLabels.color
1278
+ }, T(sr(e.subtotal, e, t)), 9, Lt)) : p("", !0)], 2))), 256)),
1279
+ (x(!0), m(u, null, C(X.value, (e, t) => (x(), m("rect", {
1280
+ x: W.value.left + t * J.value,
1281
+ y: W.value.top,
1282
+ width: J.value,
1283
+ height: W.value.height,
1284
+ fill: [j.value, Z.value].includes(e.index) ? `url(#hover_${k.value})` : "transparent",
1285
+ class: v({ "donut-hover": R.value && e.subtotal && [j.value, Z.value].includes(e.index) }),
1286
+ style: { pointerEvents: "none" }
1287
+ }, null, 10, Rt))), 256)),
1288
+ (x(!0), m(u, null, C(X.value, (e, t) => (x(), m("rect", {
1289
+ "data-cy-trap": "",
1290
+ x: W.value.left + t * J.value,
1291
+ y: W.value.top,
1292
+ width: J.value,
1293
+ height: W.value.height,
1294
+ fill: "transparent",
1295
+ onMouseenter: (t) => ur(e),
1296
+ onMouseleave: (t) => lr(e),
1297
+ onClick: (n) => dr(e, t),
1298
+ class: v({ "donut-hover": R.value && j.value === e.index && e.subtotal })
1299
+ }, null, 42, zt))), 256)),
1300
+ w(e.$slots, "svg", { svg: {
1301
+ ...W.value,
1302
+ isPrintingImg: E(Gn) || E(Kn) || vn.value,
1303
+ isPrintingSvg: yn.value
1304
+ } }, void 0, !0)
1305
+ ], 46, nt)), e.$slots.hint ? (x(), m("div", Bt, [w(e.$slots, "hint", y(_({
1306
+ hint: L.value.a11y.translations.keyboardNavigation,
1307
+ isVisible: On.value
1308
+ })), void 0, !0)])) : p("", !0)]),
1309
+ e.$slots.watermark ? (x(), m("div", Vt, [w(e.$slots, "watermark", y(_({ isPrinting: E(Gn) || E(Kn) || vn.value || yn.value })), void 0, !0)])) : p("", !0),
1310
+ h("div", {
1311
+ ref_key: "chartSlicer",
1312
+ ref: wn,
1313
+ style: b(`width:100%;background:${L.value.style.chart.backgroundColor}`),
1314
+ "data-dom-to-png-ignore": ""
1315
+ }, [K.value > 1 && L.value.style.chart.zoom.show ? (x(), f(Le, {
1316
+ ref_key: "slicerComponent",
1317
+ ref: Cn,
1318
+ key: `slicer_${sn.value}`,
1319
+ background: L.value.style.chart.zoom.color,
1320
+ borderColor: L.value.style.chart.backgroundColor,
1321
+ fontSize: L.value.style.chart.zoom.fontSize,
1322
+ useResetSlot: L.value.style.chart.zoom.useResetSlot,
1323
+ labelLeft: q.value[0] ? q.value[0].text : "",
1324
+ labelRight: q.value.at(-1) ? q.value.at(-1).text : "",
1325
+ textColor: L.value.style.chart.color,
1326
+ inputColor: L.value.style.chart.zoom.color,
1327
+ selectColor: L.value.style.chart.zoom.highlightColor,
1328
+ max: K.value,
1329
+ min: 0,
1330
+ valueStart: B.value.start,
1331
+ valueEnd: B.value.end,
1332
+ start: B.value.start,
1333
+ "onUpdate:start": r[0] ||= (e) => B.value.start = e,
1334
+ end: B.value.end,
1335
+ "onUpdate:end": r[1] ||= (e) => B.value.end = e,
1336
+ refreshStartPoint: L.value.style.chart.zoom.startIndex === null ? 0 : L.value.style.chart.zoom.startIndex,
1337
+ refreshEndPoint: L.value.style.chart.zoom.endIndex === null ? K.value : L.value.style.chart.zoom.endIndex + 1,
1338
+ enableRangeHandles: L.value.style.chart.zoom.enableRangeHandles,
1339
+ enableSelectionDrag: L.value.style.chart.zoom.enableSelectionDrag,
1340
+ focusOnDrag: L.value.style.chart.zoom.focusOnDrag,
1341
+ focusRangeRatio: L.value.style.chart.zoom.focusRangeRatio,
1342
+ isCursorPointer: R.value,
1343
+ maxWidth: L.value.style.chart.zoom.maxWidth,
1344
+ onReset: Rn
1345
+ }, {
1346
+ "reset-action": D(({ reset: t }) => [w(e.$slots, "reset-action", y(_({ reset: t })), void 0, !0)]),
1347
+ _: 3
1348
+ }, 8, [
1349
+ "background",
1350
+ "borderColor",
1351
+ "fontSize",
1352
+ "useResetSlot",
1353
+ "labelLeft",
1354
+ "labelRight",
1355
+ "textColor",
1356
+ "inputColor",
1357
+ "selectColor",
1358
+ "max",
1359
+ "valueStart",
1360
+ "valueEnd",
1361
+ "start",
1362
+ "end",
1363
+ "refreshStartPoint",
1364
+ "refreshEndPoint",
1365
+ "enableRangeHandles",
1366
+ "enableSelectionDrag",
1367
+ "focusOnDrag",
1368
+ "focusRangeRatio",
1369
+ "isCursorPointer",
1370
+ "maxWidth"
1371
+ ])) : p("", !0)], 4),
1372
+ h("div", { id: `legend-bottom-${k.value}` }, null, 8, Ht),
1373
+ hn.value && (L.value.style.chart.legend.show || e.$slots.legend) ? (x(), f(Re, {
1374
+ key: 6,
1375
+ to: L.value.style.chart.legend.position === "top" ? `#legend-top-${k.value}` : `#legend-bottom-${k.value}`
1376
+ }, [h("div", {
1377
+ ref_key: "chartLegend",
1378
+ ref: xn
1379
+ }, [w(e.$slots, "legend", { legend: fr.value }, () => [L.value.style.chart.legend.show ? (x(), f(Fe, {
1380
+ key: `legend_${un.value}`,
1381
+ legendSet: fr.value,
1382
+ config: mr.value,
1383
+ onClickMarker: r[2] ||= ({ legend: e }) => gr(e.uid)
1384
+ }, {
1385
+ item: D(({ legend: e, index: t }) => [h("div", {
1386
+ onClick: (t) => gr(e.uid),
1387
+ style: b(`opacity:${A.value.includes(e.uid) ? .5 : 1}`)
1388
+ }, T(e.display), 13, Ut)]),
1389
+ legendToggle: D(() => [fr.value.length > 2 && L.value.style.chart.legend.selectAllToggle.show && !E(Pn) ? (x(), f(je, {
1390
+ key: 0,
1391
+ backgroundColor: L.value.style.chart.legend.selectAllToggle.backgroundColor,
1392
+ color: L.value.style.chart.legend.selectAllToggle.color,
1393
+ fontSize: L.value.style.chart.legend.fontSize,
1394
+ checked: A.value.length > 0,
1395
+ onToggle: hr
1396
+ }, null, 8, [
1397
+ "backgroundColor",
1398
+ "color",
1399
+ "fontSize",
1400
+ "checked"
1401
+ ])) : p("", !0)]),
1402
+ _: 1
1403
+ }, 8, ["legendSet", "config"])) : p("", !0)], !0)], 512)], 8, ["to"])) : p("", !0),
1404
+ e.$slots.source ? (x(), m("div", {
1405
+ key: 7,
1406
+ ref_key: "source",
1407
+ ref: Sn,
1408
+ dir: "auto"
1409
+ }, [w(e.$slots, "source", {}, void 0, !0)], 512)) : p("", !0),
1410
+ An.value && L.value.userOptions.buttons.table ? (x(), f(Ke(Mr.value.component), He({ key: 8 }, Mr.value.props, {
1411
+ ref_key: "tableUnit",
1412
+ ref: gn,
1413
+ onClose: Nr
1414
+ }), ze({
1415
+ content: D(() => [(x(), f(E(Jt), {
1416
+ key: `table_${ln.value}`,
1417
+ colNames: Q.value.colNames,
1418
+ head: Q.value.head,
1419
+ body: Q.value.body,
1420
+ config: Q.value.config,
1421
+ title: L.value.table.useDialog ? "" : Mr.value.title,
1422
+ withCloseButton: !L.value.table.useDialog,
1423
+ isCursorPointer: R.value,
1424
+ onClose: Nr
1425
+ }, {
1426
+ th: D(({ th: e }) => [Be(T(e.name ?? e), 1)]),
1427
+ td: D(({ td: e }) => [e.value === null ? (x(), m("span", Wt, "-")) : (x(), m("b", Gt, T(isNaN(e.value) ? "" : L.value.style.chart.layout.dataLabels.prefix) + T(!isNaN(e.value) && e.value !== null ? Number(e.value.toFixed(L.value.table.td.roundingValue)).toLocaleString() : e) + T(isNaN(e.value) ? "" : L.value.style.chart.layout.dataLabels.suffix), 1)), h("span", null, T(e.percentage && !isNaN(e.percentage) ? `(${Number(e.percentage.toFixed(L.value.table.td.roundingPercentage)).toLocaleString()}%)` : ""), 1)]),
1428
+ _: 1
1429
+ }, 8, [
1430
+ "colNames",
1431
+ "head",
1432
+ "body",
1433
+ "config",
1434
+ "title",
1435
+ "withCloseButton",
1436
+ "isCursorPointer"
1437
+ ]))]),
1438
+ _: 2
1439
+ }, [L.value.table.useDialog ? {
1440
+ name: "title",
1441
+ fn: D(() => [Be(T(Mr.value.title), 1)]),
1442
+ key: "0"
1443
+ } : void 0, L.value.table.useDialog ? {
1444
+ name: "actions",
1445
+ fn: D(() => [h("button", {
1446
+ tabindex: "0",
1447
+ class: "vue-ui-user-options-button",
1448
+ onClick: r[3] ||= (e) => xr(L.value.userOptions.callbacks.csv),
1449
+ style: b({ cursor: R.value ? "cursor" : "default" })
1450
+ }, [Ve(E(qt), {
1451
+ name: "fileCsv",
1452
+ stroke: Mr.value.props.color
1453
+ }, null, 8, ["stroke"])], 4)]),
1454
+ key: "1"
1455
+ } : void 0]), 1040)) : p("", !0),
1456
+ L.value.style.chart.dialog.show ? (x(), f(E($t), {
1457
+ key: 9,
1458
+ ref_key: "dialog",
1459
+ ref: kr,
1460
+ onClose: r[4] ||= (e) => {
1461
+ N.value = null, rn.value = !1, M.value = null, j.value = null, Z.value = null;
1462
+ },
1463
+ backgroundColor: L.value.style.chart.dialog.backgroundColor,
1464
+ color: L.value.style.chart.dialog.color,
1465
+ headerBg: L.value.style.chart.dialog.header.backgroundColor,
1466
+ headerColor: L.value.style.chart.dialog.header.color,
1467
+ isFullscreen: $.value,
1468
+ fullscreenParent: P.value
1469
+ }, {
1470
+ title: D(() => [Be(T(q.value[Number(N.value.index)] ? q.value[Number(N.value.index)].text : ""), 1)]),
1471
+ content: D(() => [N.value ? (x(), f(E(Qt), {
1472
+ key: 0,
1473
+ config: Or.value,
1474
+ dataset: Dr.value
1475
+ }, null, 8, ["config", "dataset"])) : p("", !0)]),
1476
+ _: 1
1477
+ }, 8, [
1478
+ "backgroundColor",
1479
+ "color",
1480
+ "headerBg",
1481
+ "headerColor",
1482
+ "isFullscreen",
1483
+ "fullscreenParent"
1484
+ ])) : p("", !0),
1485
+ E(Pn) ? (x(), f(xe, { key: 10 })) : p("", !0)
1486
+ ], 46, Qe));
1487
+ }
1488
+ }, [["__scopeId", "data-v-f8f6d1bc"]]);
1489
+ //#endregion
1490
+ export { Ze as n, Kt as t };