vue-data-ui 3.27.0 → 3.27.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 (531) hide show
  1. package/dist/A11yDataTable-DWNlWXzs.js +1 -0
  2. package/dist/Arrow-C2W0uGrq.js +1 -0
  3. package/dist/BaseDraggableDialog-D_tuHEjO.js +1 -0
  4. package/dist/BaseIcon-DdIyewwY.js +1 -0
  5. package/dist/BaseLegendToggle-Bq5FjyuI.js +1 -0
  6. package/dist/BaseScanner-8NdoBs7B.js +1 -0
  7. package/dist/BaseZoomControls-DoYifY2y.js +1 -0
  8. package/dist/ColorPicker-MLwiwxl5.js +1 -0
  9. package/dist/DataTable-WNecJMcY.js +1 -0
  10. package/dist/DefGrad-DKMq1REY.js +1 -0
  11. package/dist/HillActions-CHg1AQ3p.js +1 -0
  12. package/dist/Legend-D8YoT1RJ.js +1 -0
  13. package/dist/NonSvgPenAndPaper-CqtJpZKh.js +1 -0
  14. package/dist/PackageVersion-CdkxOy58.js +1 -0
  15. package/dist/PenAndPaper-IMw576MC.js +1 -0
  16. package/dist/RecursiveCircles-BftI1kwF.js +1 -0
  17. package/dist/RecursiveLabels-B0d04xSj.js +1 -0
  18. package/dist/RecursiveLinks-CZtG6uWg.js +1 -0
  19. package/dist/Shape-Bp9YNtPc.js +1 -0
  20. package/dist/SlicerPreview-CNUciSbY.js +1 -0
  21. package/dist/SparkTooltip-C5JMcBXT.js +1 -0
  22. package/dist/Title-BGYFqulv.js +1 -0
  23. package/dist/Tooltip-Cus2-XNQ.js +1 -0
  24. package/dist/UserOptions-DTxMeZv3.js +1 -0
  25. package/dist/_plugin-vue_export-helper-BDNMzG2s.js +1 -0
  26. package/dist/annotationSlots-BRR85CqJ.js +1 -0
  27. package/dist/chartImage-CIvU_04o.js +1 -0
  28. package/dist/components/arrow.js +1 -2
  29. package/dist/components/vue-ui-3d-bar.js +1 -2
  30. package/dist/components/vue-ui-accordion.js +1 -2
  31. package/dist/components/vue-ui-age-pyramid.js +1 -2
  32. package/dist/components/vue-ui-annotator.js +1 -2
  33. package/dist/components/vue-ui-bullet.js +1 -2
  34. package/dist/components/vue-ui-bump.js +1 -2
  35. package/dist/components/vue-ui-candlestick.js +1 -2
  36. package/dist/components/vue-ui-carousel-table.js +1 -2
  37. package/dist/components/vue-ui-chestnut.js +1 -2
  38. package/dist/components/vue-ui-chord.js +1 -2
  39. package/dist/components/vue-ui-circle-pack.js +1 -2
  40. package/dist/components/vue-ui-cursor.js +1 -2
  41. package/dist/components/vue-ui-dag.js +1 -2
  42. package/dist/components/vue-ui-dashboard.js +1 -2
  43. package/dist/components/vue-ui-digits.js +1 -2
  44. package/dist/components/vue-ui-donut-evolution.js +1 -2
  45. package/dist/components/vue-ui-donut.js +1 -2
  46. package/dist/components/vue-ui-dumbbell.js +1 -2
  47. package/dist/components/vue-ui-flow.js +1 -2
  48. package/dist/components/vue-ui-funnel.js +1 -2
  49. package/dist/components/vue-ui-galaxy.js +1 -2
  50. package/dist/components/vue-ui-gauge.js +1 -2
  51. package/dist/components/vue-ui-geo.js +1 -2
  52. package/dist/components/vue-ui-gizmo.js +1 -2
  53. package/dist/components/vue-ui-heatmap.js +1 -2
  54. package/dist/components/vue-ui-hill.js +1 -2
  55. package/dist/components/vue-ui-history-plot.js +1 -2
  56. package/dist/components/vue-ui-horizontal-bar.js +1 -2
  57. package/dist/components/vue-ui-icon.js +1 -2
  58. package/dist/components/vue-ui-kpi.js +1 -2
  59. package/dist/components/vue-ui-label.js +1 -2
  60. package/dist/components/vue-ui-mini-loader.js +1 -2
  61. package/dist/components/vue-ui-molecule.js +1 -2
  62. package/dist/components/vue-ui-mood-radar.js +1 -2
  63. package/dist/components/vue-ui-nested-donuts.js +1 -2
  64. package/dist/components/vue-ui-onion.js +1 -2
  65. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -2
  66. package/dist/components/vue-ui-pattern-seed.js +1 -2
  67. package/dist/components/vue-ui-pattern.js +1 -2
  68. package/dist/components/vue-ui-quadrant.js +1 -2
  69. package/dist/components/vue-ui-quick-chart.js +1 -2
  70. package/dist/components/vue-ui-radar.js +1 -2
  71. package/dist/components/vue-ui-rating.js +1 -2
  72. package/dist/components/vue-ui-relation-circle.js +1 -2
  73. package/dist/components/vue-ui-ridgeline.js +1 -2
  74. package/dist/components/vue-ui-rings.js +1 -2
  75. package/dist/components/vue-ui-scatter.js +1 -2
  76. package/dist/components/vue-ui-skeleton.js +1 -2
  77. package/dist/components/vue-ui-smiley.js +1 -2
  78. package/dist/components/vue-ui-spark-trend.js +1 -2
  79. package/dist/components/vue-ui-sparkbar.js +1 -2
  80. package/dist/components/vue-ui-sparkgauge.js +1 -2
  81. package/dist/components/vue-ui-sparkhistogram.js +1 -2
  82. package/dist/components/vue-ui-sparkline.js +1 -2
  83. package/dist/components/vue-ui-sparkstackbar.js +1 -2
  84. package/dist/components/vue-ui-stackbar.js +1 -2
  85. package/dist/components/vue-ui-stackline.js +1 -2
  86. package/dist/components/vue-ui-strip-plot.js +1 -2
  87. package/dist/components/vue-ui-table-heatmap.js +1 -2
  88. package/dist/components/vue-ui-table-sparkline.js +1 -2
  89. package/dist/components/vue-ui-table.js +1 -2
  90. package/dist/components/vue-ui-thermometer.js +1 -2
  91. package/dist/components/vue-ui-timer.js +1 -2
  92. package/dist/components/vue-ui-tiremarks.js +1 -2
  93. package/dist/components/vue-ui-treemap.js +1 -2
  94. package/dist/components/vue-ui-vertical-bar.js +1 -2
  95. package/dist/components/vue-ui-waffle.js +1 -2
  96. package/dist/components/vue-ui-wheel.js +1 -2
  97. package/dist/components/vue-ui-word-cloud.js +1 -2
  98. package/dist/components/vue-ui-world.js +1 -2
  99. package/dist/components/vue-ui-xy-canvas.js +1 -2
  100. package/dist/components/vue-ui-xy.js +1 -2
  101. package/dist/composables.js +1 -5
  102. package/dist/dom-to-png-D8t3Bm7s.js +3 -0
  103. package/dist/exposedLib-DHtyEc_G.js +1 -0
  104. package/dist/geoProjections-Bvj-eMvq.js +1 -0
  105. package/dist/img-DiT4ivZ5.js +1 -0
  106. package/dist/labelUtils-CG3uVXoZ.js +1 -0
  107. package/dist/lib-CV_IANZ6.js +12 -0
  108. package/dist/package-DE5cU1Rg.js +1 -0
  109. package/dist/patternUtils-_q3ArM3g.js +1 -0
  110. package/dist/pdf-BQSB1V3H.js +1 -0
  111. package/dist/render-common-BdZ5aRyn.js +1 -0
  112. package/dist/resolveChartConfig-DZg-korK.js +1 -0
  113. package/dist/rolldown-runtime-DK3Fl9T5.js +1 -0
  114. package/dist/ssr/vue-ui-donut.js +1 -2
  115. package/dist/ssr/vue-ui-xy.js +1 -2
  116. package/dist/ssr.js +1 -3
  117. package/dist/style.css +1 -1
  118. package/dist/tableIntegration-CNoJ1CIY.js +1 -0
  119. package/dist/types/composables.d.ts +12 -12
  120. package/dist/types/ssr.d.ts +84 -84
  121. package/dist/types/utils.d.ts +82 -73
  122. package/dist/types/vue-data-ui.d.ts +17961 -17958
  123. package/dist/types/vue-ui-3d-bar.d.ts +24 -91
  124. package/dist/types/vue-ui-accordion.d.ts +2 -10
  125. package/dist/types/vue-ui-age-pyramid.d.ts +27 -106
  126. package/dist/types/vue-ui-annotator.d.ts +12 -88
  127. package/dist/types/vue-ui-bullet.d.ts +21 -83
  128. package/dist/types/vue-ui-bump.d.ts +23 -90
  129. package/dist/types/vue-ui-candlestick.d.ts +27 -108
  130. package/dist/types/vue-ui-carousel-table.d.ts +11 -57
  131. package/dist/types/vue-ui-chestnut.d.ts +27 -96
  132. package/dist/types/vue-ui-chord.d.ts +31 -108
  133. package/dist/types/vue-ui-circle-pack.d.ts +30 -124
  134. package/dist/types/vue-ui-cursor.d.ts +2 -8
  135. package/dist/types/vue-ui-dag.d.ts +35 -125
  136. package/dist/types/vue-ui-dashboard.d.ts +18 -66
  137. package/dist/types/vue-ui-digits.d.ts +2 -11
  138. package/dist/types/vue-ui-donut-evolution.d.ts +31 -100
  139. package/dist/types/vue-ui-donut.d.ts +31 -121
  140. package/dist/types/vue-ui-dumbbell.d.ts +24 -92
  141. package/dist/types/vue-ui-flow.d.ts +28 -104
  142. package/dist/types/vue-ui-funnel.d.ts +18 -77
  143. package/dist/types/vue-ui-galaxy.d.ts +30 -112
  144. package/dist/types/vue-ui-gauge.d.ts +22 -87
  145. package/dist/types/vue-ui-geo.d.ts +22 -92
  146. package/dist/types/vue-ui-gizmo.d.ts +5 -20
  147. package/dist/types/vue-ui-heatmap.d.ts +25 -101
  148. package/dist/types/vue-ui-hill.d.ts +22 -88
  149. package/dist/types/vue-ui-history-plot.d.ts +30 -112
  150. package/dist/types/vue-ui-horizontal-bar.d.ts +30 -114
  151. package/dist/types/vue-ui-icon.d.ts +1 -13
  152. package/dist/types/vue-ui-kpi.d.ts +5 -23
  153. package/dist/types/vue-ui-label.d.ts +11 -48
  154. package/dist/types/vue-ui-mini-loader.d.ts +4 -13
  155. package/dist/types/vue-ui-molecule.d.ts +27 -110
  156. package/dist/types/vue-ui-mood-radar.d.ts +23 -90
  157. package/dist/types/vue-ui-nested-donuts.d.ts +28 -109
  158. package/dist/types/vue-ui-onion.d.ts +26 -104
  159. package/dist/types/vue-ui-parallel-coordinate-plot.d.ts +34 -123
  160. package/dist/types/vue-ui-pattern-seed.d.ts +1 -14
  161. package/dist/types/vue-ui-pattern.d.ts +1 -13
  162. package/dist/types/vue-ui-quadrant.d.ts +33 -123
  163. package/dist/types/vue-ui-quick-chart.d.ts +30 -110
  164. package/dist/types/vue-ui-radar.d.ts +31 -114
  165. package/dist/types/vue-ui-rating.d.ts +8 -40
  166. package/dist/types/vue-ui-relation-circle.d.ts +26 -90
  167. package/dist/types/vue-ui-ridgeline.d.ts +27 -104
  168. package/dist/types/vue-ui-rings.d.ts +21 -96
  169. package/dist/types/vue-ui-scatter.d.ts +22 -95
  170. package/dist/types/vue-ui-skeleton.d.ts +2 -10
  171. package/dist/types/vue-ui-smiley.d.ts +6 -26
  172. package/dist/types/vue-ui-spark-trend.d.ts +2 -18
  173. package/dist/types/vue-ui-sparkbar.d.ts +10 -47
  174. package/dist/types/vue-ui-sparkgauge.d.ts +5 -26
  175. package/dist/types/vue-ui-sparkhistogram.d.ts +12 -44
  176. package/dist/types/vue-ui-sparkline.d.ts +16 -61
  177. package/dist/types/vue-ui-sparkstackbar.d.ts +13 -58
  178. package/dist/types/vue-ui-stackbar.d.ts +36 -130
  179. package/dist/types/vue-ui-stackline.d.ts +29 -116
  180. package/dist/types/vue-ui-strip-plot.d.ts +22 -96
  181. package/dist/types/vue-ui-table-heatmap.d.ts +14 -60
  182. package/dist/types/vue-ui-table-sparkline.d.ts +12 -51
  183. package/dist/types/vue-ui-table.d.ts +9 -36
  184. package/dist/types/vue-ui-thermometer.d.ts +14 -68
  185. package/dist/types/vue-ui-timer.d.ts +10 -47
  186. package/dist/types/vue-ui-tiremarks.d.ts +14 -68
  187. package/dist/types/vue-ui-treemap.d.ts +26 -105
  188. package/dist/types/vue-ui-vertical-bar.d.ts +8 -19
  189. package/dist/types/vue-ui-waffle.d.ts +23 -99
  190. package/dist/types/vue-ui-wheel.d.ts +14 -68
  191. package/dist/types/vue-ui-word-cloud.d.ts +20 -95
  192. package/dist/types/vue-ui-world.d.ts +22 -96
  193. package/dist/types/vue-ui-xy-canvas.d.ts +24 -101
  194. package/dist/types/vue-ui-xy.d.ts +42 -146
  195. package/dist/unpackTheme-CNsFKCeq.js +1 -0
  196. package/dist/useAutoSizeLabelsInsideViewbox-AIRF0PlD.js +1 -0
  197. package/dist/useChartAccessibility-DOMuYJfm.js +1 -0
  198. package/dist/useChartExport-DtPNpc9M.js +1 -0
  199. package/dist/useConfig-CKdzPrcf.js +1 -0
  200. package/dist/useFitSvgText-C1QC4P5G.js +1 -0
  201. package/dist/useHints-BH9r_0Vd.js +6 -0
  202. package/dist/useNestedProp-CB186vF2.js +1 -0
  203. package/dist/useObjectBindings-Dse7YyAf.js +1 -0
  204. package/dist/usePanZoom-BdjP5Suc.js +1 -0
  205. package/dist/usePrefersMotion-XLHwega2.js +1 -0
  206. package/dist/usePrinter-hLW3cv4N.js +1 -0
  207. package/dist/useResponsive-D2CPcpda.js +1 -0
  208. package/dist/useStableElementSize-CegFbRlF.js +1 -0
  209. package/dist/useTableResponsive-uSz_qZOB.js +1 -0
  210. package/dist/useThemeCheck-BKNRbGeC.js +1 -0
  211. package/dist/useTimeLabelCollider-XQf_S7-z.js +1 -0
  212. package/dist/useTimeLabels-Das5O74F.js +1 -0
  213. package/dist/useTooltipPosition-aoV8pZZ9.js +1 -0
  214. package/dist/useTransitions-DfSHzsdz.js +1 -0
  215. package/dist/useUserOptionState-CXlFnwPv.js +1 -0
  216. package/dist/userOptionsSlots-DYuo-E5m.js +1 -0
  217. package/dist/utils.js +1 -30
  218. package/dist/vClickOutside-BxNzkY17.js +1 -0
  219. package/dist/vue-data-ui-DyYgLIZN.js +1 -0
  220. package/dist/vue-data-ui.js +1 -79
  221. package/dist/vue-ui-3d-bar-BZAoyWkc.js +19 -0
  222. package/dist/vue-ui-accordion-BNvevckx.js +1 -0
  223. package/dist/vue-ui-age-pyramid-DkA6vpU3.js +1 -0
  224. package/dist/vue-ui-annotator-DuQME4Hh.js +331 -0
  225. package/dist/vue-ui-bullet-BVs8JX8S.js +34 -0
  226. package/dist/vue-ui-bump-DYdm3EvF.js +10 -0
  227. package/dist/vue-ui-candlestick-DZgxl4mW.js +22 -0
  228. package/dist/vue-ui-carousel-table-BB7DsTUt.js +1 -0
  229. package/dist/vue-ui-chestnut-Bo1h5rBt.js +1 -0
  230. package/dist/vue-ui-chord-B6_veyvO.js +21 -0
  231. package/dist/vue-ui-circle-pack-Bm7e2YNh.js +13 -0
  232. package/dist/vue-ui-cursor-TidZDuSh.js +1 -0
  233. package/dist/vue-ui-dag-BiN_AnLo.js +9 -0
  234. package/dist/vue-ui-dashboard-zepAVN_W.js +1 -0
  235. package/dist/vue-ui-digits-CXKKmfGj.js +42 -0
  236. package/dist/vue-ui-donut-CKkBtyPK.js +22 -0
  237. package/dist/vue-ui-donut-DLDUpjDU.js +47 -0
  238. package/dist/vue-ui-donut-evolution-BxMTdE5G.js +2 -0
  239. package/dist/vue-ui-dumbbell-C8rNwdz0.js +9 -0
  240. package/dist/vue-ui-flow-Dru76A2O.js +3 -0
  241. package/dist/vue-ui-funnel-D_u1h5S9.js +1 -0
  242. package/dist/vue-ui-galaxy-sBEH18Xj.js +1 -0
  243. package/dist/vue-ui-gauge-Do3RN8ne.js +1 -0
  244. package/dist/vue-ui-geo-DDbtx_iJ.js +1 -0
  245. package/dist/vue-ui-gizmo-eic6xLjB.js +1 -0
  246. package/dist/vue-ui-heatmap-DlmJRsM8.js +1 -0
  247. package/dist/vue-ui-hill-C5oiuIXh.js +1 -0
  248. package/dist/vue-ui-history-plot-BJjnkWcT.js +2 -0
  249. package/dist/vue-ui-horizontal-bar-BRDBJEl1.js +4 -0
  250. package/dist/vue-ui-kpi-C-eed3jO.js +1 -0
  251. package/dist/vue-ui-label-B4pkXBxc.js +7 -0
  252. package/dist/vue-ui-mini-loader-CElmv_iF.js +1 -0
  253. package/dist/vue-ui-molecule-BeyQWZU9.js +1 -0
  254. package/dist/vue-ui-mood-radar-Bh0kHfiZ.js +1 -0
  255. package/dist/vue-ui-nested-donuts-FlnJfDaF.js +19 -0
  256. package/dist/vue-ui-onion-BjhSpjtW.js +5 -0
  257. package/dist/vue-ui-parallel-coordinate-plot-CHV6XDti.js +9 -0
  258. package/dist/vue-ui-pattern-DrPCu32G.js +1 -0
  259. package/dist/vue-ui-pattern-seed-B8YjAAEH.js +1 -0
  260. package/dist/vue-ui-quadrant-BaKSTJDv.js +2 -0
  261. package/dist/vue-ui-quick-chart-Nc2mVlle.js +17 -0
  262. package/dist/vue-ui-radar-BzUfkLlC.js +1 -0
  263. package/dist/vue-ui-rating-BwWXvbAg.js +1 -0
  264. package/dist/vue-ui-relation-circle-nAZEg-BL.js +1 -0
  265. package/dist/vue-ui-ridgeline-DxLZg1E2.js +2 -0
  266. package/dist/vue-ui-rings-BOti0NGb.js +1 -0
  267. package/dist/vue-ui-scatter-CCNMggyo.js +9 -0
  268. package/dist/vue-ui-skeleton-DI7pcimU.js +41 -0
  269. package/dist/vue-ui-smiley-D70sJZWl.js +1 -0
  270. package/dist/vue-ui-spark-trend-BVtfEalS.js +1 -0
  271. package/dist/vue-ui-sparkbar-CdsLI7Ke.js +1 -0
  272. package/dist/vue-ui-sparkgauge-wmj5Wnnp.js +1 -0
  273. package/dist/vue-ui-sparkhistogram-D8S_P_P4.js +1 -0
  274. package/dist/vue-ui-sparkline-BjsJnS_9.js +1 -0
  275. package/dist/vue-ui-sparkstackbar-ZN8LXzoV.js +1 -0
  276. package/dist/vue-ui-stackbar-Dx_EN3pT.js +29 -0
  277. package/dist/vue-ui-stackline-DW-oxJvA.js +39 -0
  278. package/dist/vue-ui-strip-plot-D7kjJ3Qh.js +2 -0
  279. package/dist/vue-ui-table-CaFVLHxE.js +14 -0
  280. package/dist/vue-ui-table-heatmap-Ctf7Rhqo.js +1 -0
  281. package/dist/vue-ui-table-sparkline-C0I0cXBS.js +1 -0
  282. package/dist/vue-ui-thermometer-B6og15Al.js +1 -0
  283. package/dist/vue-ui-timer-DgXvO2Q7.js +64 -0
  284. package/dist/vue-ui-tiremarks-Dh6fZ454.js +1 -0
  285. package/dist/vue-ui-treemap-7JuvN6P_.js +1 -0
  286. package/dist/vue-ui-waffle-BqvGzfse.js +1 -0
  287. package/dist/vue-ui-wheel-SdwJqKA7.js +1 -0
  288. package/dist/vue-ui-word-cloud-1WVV_k12.js +4 -0
  289. package/dist/vue-ui-world-DjMy_utm.js +19 -0
  290. package/dist/vue-ui-xy-DaozHMfg.js +31 -0
  291. package/dist/vue-ui-xy-canvas-CegvS9RR.js +9 -0
  292. package/dist/vue-ui-xy-rGHSI1am.js +24 -0
  293. package/dist/vue_ui_3d_bar-DmAve5Ri.js +1 -0
  294. package/dist/vue_ui_age_pyramid-CL0Ef8Ov.js +1 -0
  295. package/dist/vue_ui_bullet-CwVYkpjd.js +1 -0
  296. package/dist/vue_ui_bump-KJL9GYr4.js +1 -0
  297. package/dist/vue_ui_candlestick-DKvha_Ab.js +1 -0
  298. package/dist/vue_ui_chestnut-BxxivKN7.js +1 -0
  299. package/dist/vue_ui_chord-Fq6VBRT1.js +1 -0
  300. package/dist/vue_ui_circle_pack-CfXkXi7v.js +1 -0
  301. package/dist/vue_ui_dag-1b_dLSym.js +1 -0
  302. package/dist/vue_ui_donut-T5PeOqvf.js +1 -0
  303. package/dist/vue_ui_donut_evolution-CVoh3twl.js +1 -0
  304. package/dist/vue_ui_dumbbell-BMcxK0N3.js +1 -0
  305. package/dist/vue_ui_flow-kvV56Es9.js +1 -0
  306. package/dist/vue_ui_funnel-CaEV5hG7.js +1 -0
  307. package/dist/vue_ui_galaxy-B94QInxc.js +1 -0
  308. package/dist/vue_ui_gauge-BJhb6yqE.js +1 -0
  309. package/dist/vue_ui_geo-DL1SMQHp.js +1 -0
  310. package/dist/vue_ui_heatmap-kh5NMmwf.js +1 -0
  311. package/dist/vue_ui_hill-DQi4pQCG.js +1 -0
  312. package/dist/vue_ui_history_plot-soyqUW4Y.js +1 -0
  313. package/dist/vue_ui_horizontal_bar-C4ulIxeT.js +1 -0
  314. package/dist/vue_ui_label-dtPqyFsj.js +1 -0
  315. package/dist/vue_ui_molecule-Bw1UW1Na.js +1 -0
  316. package/dist/vue_ui_mood_radar-CXaBdJnv.js +1 -0
  317. package/dist/vue_ui_nested_donuts-CRtGsJcz.js +1 -0
  318. package/dist/vue_ui_onion-C9BedU_-.js +1 -0
  319. package/dist/vue_ui_parallel_coordinate_plot-Cs_xXAG5.js +1 -0
  320. package/dist/vue_ui_quadrant-BUv-SqzP.js +1 -0
  321. package/dist/vue_ui_quick_chart-BRfcRW6Z.js +1 -0
  322. package/dist/vue_ui_radar-68iK9Fam.js +1 -0
  323. package/dist/vue_ui_relation_circle-Dkv-cSB6.js +1 -0
  324. package/dist/vue_ui_ridgeline-Di26JtQu.js +1 -0
  325. package/dist/vue_ui_rings-BcDDXHpQ.js +1 -0
  326. package/dist/vue_ui_scatter-C50uFYQL.js +1 -0
  327. package/dist/vue_ui_spark_trend-BOM3zo64.js +1 -0
  328. package/dist/vue_ui_sparkbar-Bpx7QrFq.js +1 -0
  329. package/dist/vue_ui_sparkgauge-D2Hk6bvS.js +1 -0
  330. package/dist/vue_ui_sparkhistogram-ChwOkoMb.js +1 -0
  331. package/dist/vue_ui_sparkline-CvL_e9L8.js +1 -0
  332. package/dist/vue_ui_sparkstackbar-Chtog7hC.js +1 -0
  333. package/dist/vue_ui_stackbar-BkBIi_bL.js +1 -0
  334. package/dist/vue_ui_stackline-D7b63K84.js +1 -0
  335. package/dist/vue_ui_strip_plot-CwMowrhT.js +1 -0
  336. package/dist/vue_ui_table_heatmap-vfeY6r97.js +1 -0
  337. package/dist/vue_ui_table_sparkline-Dlfbza49.js +1 -0
  338. package/dist/vue_ui_thermometer-CRijq6H6.js +1 -0
  339. package/dist/vue_ui_tiremarks-8HFfABNF.js +1 -0
  340. package/dist/vue_ui_treemap-Bv4Rdl5_.js +1 -0
  341. package/dist/vue_ui_vertical_bar-BLyflvlz.js +1 -0
  342. package/dist/vue_ui_waffle-BbBLSluB.js +1 -0
  343. package/dist/vue_ui_wheel-C-479bvJ.js +1 -0
  344. package/dist/vue_ui_word_cloud-DBiJtSyL.js +1 -0
  345. package/dist/vue_ui_xy-CJBM9F6W.js +1 -0
  346. package/dist/vue_ui_xy_canvas-CT-FN9rU.js +1 -0
  347. package/package.json +2 -2
  348. package/dist/A11yDataTable-DdRsVULz.js +0 -45
  349. package/dist/Arrow-DKO1l8oR.js +0 -116
  350. package/dist/BaseDraggableDialog-C50TEJFv.js +0 -272
  351. package/dist/BaseIcon-Cx9FD751.js +0 -484
  352. package/dist/BaseLegendToggle-CP3sddwv.js +0 -56
  353. package/dist/BaseScanner-Dzc8VT3j.js +0 -30
  354. package/dist/BaseZoomControls-vNi8YykO.js +0 -111
  355. package/dist/ColorPicker-hmC2bvwS.js +0 -257
  356. package/dist/DataTable-CjF_An2h.js +0 -150
  357. package/dist/DefGrad-DVBqDjhO.js +0 -48
  358. package/dist/HillActions-DqqGB33u.js +0 -187
  359. package/dist/Legend-CulFgjUY.js +0 -156
  360. package/dist/NonSvgPenAndPaper-BK1v_MfW.js +0 -577
  361. package/dist/PackageVersion-D7H9nfK0.js +0 -12
  362. package/dist/PenAndPaper-CNiuGw6k.js +0 -906
  363. package/dist/RecursiveCircles-D6aDPmoe.js +0 -117
  364. package/dist/RecursiveLabels-D9rfID6q.js +0 -56
  365. package/dist/RecursiveLinks-BygcpDiT.js +0 -78
  366. package/dist/Shape-DSwamtmO.js +0 -143
  367. package/dist/SlicerPreview-k5YerMA9.js +0 -1730
  368. package/dist/SparkTooltip-D35KVv6N.js +0 -93
  369. package/dist/Title-BMCuINbv.js +0 -87
  370. package/dist/Tooltip-C4ZTwkLF.js +0 -312
  371. package/dist/UserOptions-CORYQiif.js +0 -1412
  372. package/dist/_plugin-vue_export-helper-B3ysoDQm.js +0 -8
  373. package/dist/dom-to-png-CBusMkua.js +0 -237
  374. package/dist/exposedLib-UNxZlnAS.js +0 -28
  375. package/dist/geoProjections-BYthUA8l.js +0 -302
  376. package/dist/img-Bb5rHcpO.js +0 -129
  377. package/dist/labelUtils-Ccn9kK7T.js +0 -19
  378. package/dist/lib-D4wK6ljP.js +0 -2146
  379. package/dist/package-DmQufM0G.js +0 -4
  380. package/dist/patternUtils-CS7hn6at.js +0 -258
  381. package/dist/pdf-BzIQHx-F.js +0 -90
  382. package/dist/render-common-BtfjXdkJ.js +0 -152
  383. package/dist/rolldown-runtime-Dy4uBu1J.js +0 -11
  384. package/dist/useAutoSizeLabelsInsideViewbox-DvDwcwi_.js +0 -122
  385. package/dist/useChartAccessibility-DYqac8yF.js +0 -12
  386. package/dist/useChartExport-iwOqiIWX.js +0 -803
  387. package/dist/useConfig-D_6ZrPMD.js +0 -8090
  388. package/dist/useFitSvgText-CXTzBplU.js +0 -65
  389. package/dist/useHints-Dq_w2E8B.js +0 -66
  390. package/dist/useNestedProp-DR_8JPol.js +0 -12
  391. package/dist/useObjectBindings-DvasYMGu.js +0 -191
  392. package/dist/usePanZoom-CYU3B4T3.js +0 -157
  393. package/dist/usePrefersMotion-BC-CsqR1.js +0 -15
  394. package/dist/usePrinter-DdW2GSm0.js +0 -49
  395. package/dist/useResponsive-ZtArZtUf.js +0 -97
  396. package/dist/useStableElementSize-C7KADDKj.js +0 -77
  397. package/dist/useTableResponsive-BAqJPR68.js +0 -25
  398. package/dist/useThemeCheck-C43Tcqmk.js +0 -24
  399. package/dist/useTimeLabelCollider-AEcY4Ioe.js +0 -57
  400. package/dist/useTimeLabels-d2f-W1L4.js +0 -270
  401. package/dist/useTooltipPosition-BCrtQa9H.js +0 -189
  402. package/dist/useTransitions-g_zBREk2.js +0 -39
  403. package/dist/useUserOptionState-DK-_1ddE.js +0 -15
  404. package/dist/vClickOutside-DUrZWttG.js +0 -13
  405. package/dist/vue-data-ui-Df7WV80w.js +0 -191
  406. package/dist/vue-ui-3d-bar-CJjNPwhG.js +0 -1831
  407. package/dist/vue-ui-accordion-CaoNWreI.js +0 -81
  408. package/dist/vue-ui-age-pyramid-BYcM0uIP.js +0 -1305
  409. package/dist/vue-ui-annotator-BmqjDjRF.js +0 -3325
  410. package/dist/vue-ui-bullet-DBOAvpBB.js +0 -702
  411. package/dist/vue-ui-bump-rPYwDJ4o.js +0 -1242
  412. package/dist/vue-ui-candlestick-WQHIQNv_.js +0 -2144
  413. package/dist/vue-ui-carousel-table-Dojcvt49.js +0 -467
  414. package/dist/vue-ui-chestnut-BdhEByUf.js +0 -2016
  415. package/dist/vue-ui-chord-MF4xF5az.js +0 -1347
  416. package/dist/vue-ui-circle-pack-BwDim7G8.js +0 -1647
  417. package/dist/vue-ui-cursor-w_5cbpSb.js +0 -283
  418. package/dist/vue-ui-dag-D2EUqeDN.js +0 -2931
  419. package/dist/vue-ui-dashboard-BLnVXosj.js +0 -522
  420. package/dist/vue-ui-digits-zSqwYWHm.js +0 -217
  421. package/dist/vue-ui-donut-ZYZfqIhi.js +0 -974
  422. package/dist/vue-ui-donut-evolution-DtLbWi3h.js +0 -1869
  423. package/dist/vue-ui-donut-nLDLZwig.js +0 -2427
  424. package/dist/vue-ui-dumbbell-Qgn3wRyI.js +0 -1533
  425. package/dist/vue-ui-flow-iSH6dyGw.js +0 -1229
  426. package/dist/vue-ui-funnel-Cc2z2zS5.js +0 -749
  427. package/dist/vue-ui-galaxy-GhuBSU0o.js +0 -1097
  428. package/dist/vue-ui-gauge-BAjBO13a.js +0 -934
  429. package/dist/vue-ui-geo-mwTtvIHY.js +0 -1495
  430. package/dist/vue-ui-gizmo-B5vOOrZX.js +0 -238
  431. package/dist/vue-ui-heatmap-fimkY1nN.js +0 -1613
  432. package/dist/vue-ui-hill-DPfTt3UE.js +0 -1747
  433. package/dist/vue-ui-history-plot-B1WgzqTb.js +0 -1710
  434. package/dist/vue-ui-horizontal-bar-Bkp5HQdt.js +0 -1723
  435. package/dist/vue-ui-kpi-D-p0CSQh.js +0 -104
  436. package/dist/vue-ui-label-r3-QloJL.js +0 -1451
  437. package/dist/vue-ui-mini-loader-CnrBGAtM.js +0 -133
  438. package/dist/vue-ui-molecule-BhdAYX_H.js +0 -941
  439. package/dist/vue-ui-mood-radar-CdlnPrQf.js +0 -1111
  440. package/dist/vue-ui-nested-donuts-DceVEyUc.js +0 -1515
  441. package/dist/vue-ui-onion-_L0uEATI.js +0 -1247
  442. package/dist/vue-ui-parallel-coordinate-plot-CbXwIM47.js +0 -1444
  443. package/dist/vue-ui-pattern-DKozfnVn.js +0 -154
  444. package/dist/vue-ui-pattern-seed-BB1honLm.js +0 -61
  445. package/dist/vue-ui-quadrant-CDDFLRcX.js +0 -1979
  446. package/dist/vue-ui-quick-chart-Dom257hl.js +0 -2775
  447. package/dist/vue-ui-radar-BLdri1bA.js +0 -1386
  448. package/dist/vue-ui-rating-C_iTttXB.js +0 -359
  449. package/dist/vue-ui-relation-circle-BmxTSgjd.js +0 -905
  450. package/dist/vue-ui-ridgeline-CsUrcVmL.js +0 -1630
  451. package/dist/vue-ui-rings-D_GPkgbD.js +0 -1264
  452. package/dist/vue-ui-scatter-D_C-IhnW.js +0 -2418
  453. package/dist/vue-ui-skeleton-t7e6KEZ2.js +0 -2567
  454. package/dist/vue-ui-smiley-Dl95YWVo.js +0 -376
  455. package/dist/vue-ui-spark-trend-pkZA7u5V.js +0 -457
  456. package/dist/vue-ui-sparkbar-Ds7OJjhG.js +0 -401
  457. package/dist/vue-ui-sparkgauge-US1M88qc.js +0 -268
  458. package/dist/vue-ui-sparkhistogram-FISVpSvv.js +0 -589
  459. package/dist/vue-ui-sparkline-DvE1dHcs.js +0 -2067
  460. package/dist/vue-ui-sparkstackbar-CWtF9eG-.js +0 -750
  461. package/dist/vue-ui-stackbar-fMgrHzZe.js +0 -3273
  462. package/dist/vue-ui-stackline-CSMuUup2.js +0 -2829
  463. package/dist/vue-ui-strip-plot-TGD2UFHS.js +0 -1752
  464. package/dist/vue-ui-table-BCEIbg8-.js +0 -1352
  465. package/dist/vue-ui-table-heatmap-CvUcFWMf.js +0 -363
  466. package/dist/vue-ui-table-sparkline-CoVQ1qGY.js +0 -738
  467. package/dist/vue-ui-thermometer-BYFAZCzh.js +0 -758
  468. package/dist/vue-ui-timer-BKr8RVnn.js +0 -451
  469. package/dist/vue-ui-tiremarks-BYu3cEoy.js +0 -540
  470. package/dist/vue-ui-treemap-BR3rX5_L.js +0 -1745
  471. package/dist/vue-ui-waffle-mP8g5aQk.js +0 -1633
  472. package/dist/vue-ui-wheel-CZsSO2R6.js +0 -873
  473. package/dist/vue-ui-word-cloud-CJ30onqy.js +0 -1723
  474. package/dist/vue-ui-world-BZ09DOiF.js +0 -3021
  475. package/dist/vue-ui-xy-C3h54loZ.js +0 -1387
  476. package/dist/vue-ui-xy-canvas-BwgK8drp.js +0 -2151
  477. package/dist/vue-ui-xy-jemv5dsf.js +0 -5777
  478. package/dist/vue_ui_3d_bar-C4R7o-yX.js +0 -185
  479. package/dist/vue_ui_age_pyramid-B2R66DgQ.js +0 -310
  480. package/dist/vue_ui_bullet-ClzdLoOv.js +0 -186
  481. package/dist/vue_ui_bump-Vl-zYAtG.js +0 -201
  482. package/dist/vue_ui_candlestick-BXSQY82k.js +0 -461
  483. package/dist/vue_ui_chestnut-D2oUhad6.js +0 -305
  484. package/dist/vue_ui_chord-DPfS1Umc.js +0 -275
  485. package/dist/vue_ui_circle_pack-DZC_rdfn.js +0 -172
  486. package/dist/vue_ui_dag-TsJ_azQq.js +0 -258
  487. package/dist/vue_ui_donut-BDGqG07h.js +0 -358
  488. package/dist/vue_ui_donut_evolution-C6951a2f.js +0 -745
  489. package/dist/vue_ui_dumbbell-Bfe_jFyi.js +0 -304
  490. package/dist/vue_ui_flow-BewZjjKG.js +0 -238
  491. package/dist/vue_ui_funnel-_Og4EEkO.js +0 -234
  492. package/dist/vue_ui_galaxy-Ig0cc1_h.js +0 -265
  493. package/dist/vue_ui_gauge-Cf1RZc9q.js +0 -178
  494. package/dist/vue_ui_geo-B8TODs-G.js +0 -248
  495. package/dist/vue_ui_heatmap-B2BBBSWG.js +0 -319
  496. package/dist/vue_ui_hill-dnltu0L-.js +0 -368
  497. package/dist/vue_ui_history_plot-CuN63VEc.js +0 -413
  498. package/dist/vue_ui_horizontal_bar-C4J4QzXf.js +0 -341
  499. package/dist/vue_ui_label-B0QoxQrJ.js +0 -115
  500. package/dist/vue_ui_molecule-CO9L59SF.js +0 -231
  501. package/dist/vue_ui_mood_radar-BA6LAKhk.js +0 -281
  502. package/dist/vue_ui_nested_donuts-B8csIoVO.js +0 -273
  503. package/dist/vue_ui_onion-1FTFFS46.js +0 -293
  504. package/dist/vue_ui_parallel_coordinate_plot-CBiOBira.js +0 -278
  505. package/dist/vue_ui_quadrant-CDSTKTJz.js +0 -428
  506. package/dist/vue_ui_quick_chart-DByCqSYE.js +0 -180
  507. package/dist/vue_ui_radar-jafTED5j.js +0 -306
  508. package/dist/vue_ui_relation_circle-D0p4mXmv.js +0 -98
  509. package/dist/vue_ui_ridgeline-VM8_mx4J.js +0 -767
  510. package/dist/vue_ui_rings-BVgD2aMn.js +0 -320
  511. package/dist/vue_ui_scatter-I0POnicu.js +0 -479
  512. package/dist/vue_ui_spark_trend-DxVmpkmC.js +0 -82
  513. package/dist/vue_ui_sparkbar-z6qO--Kf.js +0 -64
  514. package/dist/vue_ui_sparkgauge-BX1MS3bA.js +0 -90
  515. package/dist/vue_ui_sparkhistogram-BRgvKUH6.js +0 -123
  516. package/dist/vue_ui_sparkline-b9pEUyGF.js +0 -183
  517. package/dist/vue_ui_sparkstackbar-BOjuQnZd.js +0 -175
  518. package/dist/vue_ui_stackbar-yQyvT4Su.js +0 -537
  519. package/dist/vue_ui_stackline-Bh0RuInt.js +0 -539
  520. package/dist/vue_ui_strip_plot-BaHbnnwN.js +0 -308
  521. package/dist/vue_ui_table_heatmap-w8vx5k6f.js +0 -80
  522. package/dist/vue_ui_table_sparkline-DAbkUrNz.js +0 -124
  523. package/dist/vue_ui_thermometer-DxgqWKlE.js +0 -123
  524. package/dist/vue_ui_tiremarks-CdEPieWV.js +0 -122
  525. package/dist/vue_ui_treemap-DoEtkRN6.js +0 -328
  526. package/dist/vue_ui_vertical_bar-CP-MKz1j.js +0 -247
  527. package/dist/vue_ui_waffle-DE_DiSVP.js +0 -299
  528. package/dist/vue_ui_wheel-DZ_nR--t.js +0 -133
  529. package/dist/vue_ui_word_cloud-C-qIMNLu.js +0 -254
  530. package/dist/vue_ui_xy-CcJADijP.js +0 -614
  531. package/dist/vue_ui_xy_canvas-DrNSzYWq.js +0 -487
@@ -1,1247 +0,0 @@
1
- import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { $ as t, D as n, Dt as r, Ht as i, S as a, X as o, at as s, en as ee, et as te, i as ne, nn as re, nt as ie, pt as ae, t as oe, w as se, zt as ce } from "./lib-D4wK6ljP.js";
3
- import { n as le, t as ue } from "./useHints-Dq_w2E8B.js";
4
- import { t as de } from "./useConfig-D_6ZrPMD.js";
5
- import { t as fe } from "./usePrinter-DdW2GSm0.js";
6
- import { n as pe, t as me } from "./BaseScanner-Dzc8VT3j.js";
7
- import { t as he } from "./useNestedProp-DR_8JPol.js";
8
- import { t as ge } from "./useThemeCheck-C43Tcqmk.js";
9
- import { t as _e } from "./useChartExport-iwOqiIWX.js";
10
- import { t as ve } from "./useTransitions-g_zBREk2.js";
11
- import { t as ye } from "./img-Bb5rHcpO.js";
12
- import { n as be } from "./Title-BMCuINbv.js";
13
- import { t as xe } from "./_plugin-vue_export-helper-B3ysoDQm.js";
14
- import { l as Se, t as Ce } from "./useResponsive-ZtArZtUf.js";
15
- import { t as we } from "./BaseLegendToggle-CP3sddwv.js";
16
- import { t as Te } from "./A11yDataTable-DdRsVULz.js";
17
- import { t as Ee } from "./useUserOptionState-DK-_1ddE.js";
18
- import { t as De } from "./useChartAccessibility-DYqac8yF.js";
19
- import { t as Oe } from "./labelUtils-Ccn9kK7T.js";
20
- import { t as ke } from "./Legend-CulFgjUY.js";
21
- import { t as Ae } from "./useAutoSizeLabelsInsideViewbox-DvDwcwi_.js";
22
- import { t as je } from "./vue_ui_onion-1FTFFS46.js";
23
- import { Fragment as Me, Teleport as Ne, computed as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createSlots as Pe, createTextVNode as Fe, createVNode as Ie, defineAsyncComponent as p, guardReactiveProps as m, mergeProps as Le, nextTick as Re, normalizeClass as h, normalizeProps as g, normalizeStyle as _, onBeforeUnmount as ze, onMounted as Be, openBlock as v, ref as y, renderList as b, renderSlot as x, resolveDynamicComponent as Ve, shallowRef as He, toDisplayString as S, toRefs as Ue, unref as C, watch as We, withCtx as w } from "vue";
24
- //#region src/components/vue-ui-onion.vue
25
- var Ge = /* @__PURE__ */ e({ default: () => pt }), Ke = ["id"], qe = ["id"], Je = ["id"], Ye = { style: { position: "relative" } }, Xe = [
26
- "xmlns",
27
- "aria-describedby",
28
- "viewBox"
29
- ], Ze = ["width", "height"], Qe = [
30
- "cx",
31
- "cy",
32
- "r",
33
- "stroke",
34
- "stroke-width",
35
- "stroke-dasharray",
36
- "stroke-dashoffset"
37
- ], $e = [
38
- "cx",
39
- "cy",
40
- "r",
41
- "stroke",
42
- "stroke-width",
43
- "stroke-dasharray",
44
- "stroke-dashoffset"
45
- ], et = ["id"], tt = ["stdDeviation"], nt = ["filter"], rt = [
46
- "cx",
47
- "cy",
48
- "r",
49
- "stroke-width",
50
- "stroke-dasharray",
51
- "stroke-dashoffset"
52
- ], it = [
53
- "cx",
54
- "cy",
55
- "r",
56
- "stroke-width",
57
- "stroke-dasharray",
58
- "stroke-dashoffset",
59
- "onMouseenter",
60
- "onMouseleave",
61
- "onClick"
62
- ], at = { key: 2 }, ot = [
63
- "onMouseenter",
64
- "onMouseleave",
65
- "onClick"
66
- ], st = [
67
- "transform",
68
- "font-size",
69
- "fill",
70
- "font-weight"
71
- ], ct = {
72
- key: 0,
73
- style: {
74
- position: "absolute",
75
- top: "100%",
76
- left: "0",
77
- width: "100%"
78
- },
79
- "data-dom-to-png-ignore": "",
80
- "aria-hidden": "true"
81
- }, lt = {
82
- key: 5,
83
- class: "vue-data-ui-watermark"
84
- }, ut = ["id"], dt = ["onClick"], ft = ["innerHTML"], pt = /*#__PURE__*/ xe({
85
- __name: "vue-ui-onion",
86
- props: {
87
- config: {
88
- type: Object,
89
- default() {
90
- return {};
91
- }
92
- },
93
- dataset: {
94
- type: Array,
95
- default() {
96
- return [];
97
- }
98
- }
99
- },
100
- emits: ["selectLegend", "copyAlt"],
101
- setup(e, { expose: xe, emit: Ge }) {
102
- let pt = p(() => import("./Tooltip-C4ZTwkLF.js")), mt = p(() => import("./BaseIcon-Cx9FD751.js").then((e) => e.n)), ht = p(() => import("./vue-ui-accordion-CaoNWreI.js").then((e) => e.n)), gt = p(() => import("./DataTable-CjF_An2h.js")), _t = p(() => import("./UserOptions-CORYQiif.js").then((e) => e.n)), vt = p(() => import("./PenAndPaper-CNiuGw6k.js").then((e) => e.t)), yt = p(() => import("./PackageVersion-D7H9nfK0.js").then((e) => e.t)), bt = p(() => import("./BaseDraggableDialog-C50TEJFv.js").then((e) => e.n)), { vue_ui_onion: xt } = de(), { isThemeValid: St, warnInvalidTheme: Ct } = ge(), T = e, wt = c(() => !!T.dataset && T.dataset.length), E = y(o()), Tt = y(null), Et = y(0), Dt = y(!1), Ot = y(""), D = y([]), O = y(null), kt = y(null), At = y(null), jt = y(null), Mt = y(null), Nt = y(0), Pt = y(0), Ft = y(0), k = y(!1), It = y(!1), A = y(null), j = y(null), Lt = y({
103
- x: 0,
104
- y: 0
105
- }), Rt = y("pointer"), zt = y(!1), M = y(Kt()), N = c(() => M.value.userOptions), P = c(() => M.value.style.chart.layout.labels), F = c(() => M.value.style.chart.layout), I = c(() => M.value.style.chart.tooltip), L = c(() => M.value.style.chart);
106
- le({
107
- config: () => M.value,
108
- dataset: () => T.dataset,
109
- component: "VueUiOnion",
110
- rules: [ue.emptyArray, {
111
- test: (e) => e.length > 8,
112
- message: [
113
- "👀 The number of series is > 8. Consider:",
114
- "",
115
- "▶️ Grouping small values dynamically into a single \"Other\" series.",
116
- "",
117
- "▶️ Using filters to let users choose a maximum number of series to display.",
118
- "",
119
- "▶️ Using VueUiHorizontalBar instead to make the dataset breakdown easier to read."
120
- ]
121
- }]
122
- });
123
- let { transitionEnabled: R } = ve({
124
- config: () => M.value.transitions,
125
- dataset: () => T.dataset
126
- }), z = c(() => M.value.userOptions.useCursorPointer), Bt = c(() => re({
127
- defaultConfig: {
128
- userOptions: { show: !1 },
129
- table: { show: !1 },
130
- style: { chart: {
131
- backgroundColor: "#99999930",
132
- layout: {
133
- gutter: { color: "#99999950" },
134
- labels: { show: !1 }
135
- },
136
- legend: { backgroundColor: "transparent" }
137
- } }
138
- },
139
- userConfig: M.value.skeletonConfig ?? {}
140
- })), { loading: B, FINAL_DATASET: Vt, manualLoading: Ht } = pe({
141
- ...Ue(T),
142
- FINAL_CONFIG: M,
143
- prepareConfig: Kt,
144
- callback: () => {
145
- Promise.resolve().then(async () => {
146
- await Re(), yn();
147
- });
148
- },
149
- skeletonDataset: T.config?.skeletonDataset ?? [
150
- {
151
- name: "_",
152
- percentage: 50,
153
- value: 1,
154
- color: "#DBDBDB"
155
- },
156
- {
157
- name: "_",
158
- percentage: 50,
159
- value: 1,
160
- color: "#C4C4C4"
161
- },
162
- {
163
- name: "_",
164
- percentage: 50,
165
- value: 1,
166
- color: "#ADADAD"
167
- },
168
- {
169
- name: "_",
170
- percentage: 50,
171
- value: 1,
172
- color: "#969696"
173
- }
174
- ],
175
- skeletonConfig: re({
176
- defaultConfig: M.value,
177
- userConfig: Bt.value
178
- })
179
- }), { userOptionsVisible: Ut, setUserOptionsVisibility: Wt, keepUserOptionState: Gt } = Ee({ config: M.value }), { svgRef: V } = De({ config: L.value.title });
180
- function Kt() {
181
- let e = he({
182
- userConfig: T.config,
183
- defaultConfig: xt
184
- }), t = e.theme;
185
- if (!t) return e;
186
- if (!St.value(e)) return Ct(e), e;
187
- let n = he({
188
- userConfig: je[t] || T.config,
189
- defaultConfig: e
190
- }), r = he({
191
- userConfig: T.config,
192
- defaultConfig: n
193
- });
194
- return {
195
- ...r,
196
- customPalette: r.customPalette.length ? r.customPalette : ee[t] || i
197
- };
198
- }
199
- function qt(e) {
200
- let t = te(e);
201
- return t?.style?.chart && delete t.style.chart.tooltip, JSON.stringify(t);
202
- }
203
- let Jt = qt(T.config);
204
- We(() => T.config, (e, t) => {
205
- let n = qt(e), r = n !== Jt;
206
- Jt = n;
207
- let i = Kt();
208
- if (!r) {
209
- M.value.style.chart.tooltip = i.style.chart.tooltip, H.value.showTooltip = M.value.style.chart.tooltip.show;
210
- return;
211
- }
212
- B.value || (M.value = i), Ut.value = !M.value.userOptions.showOnChartHover, fn(), Nt.value += 1, Pt.value += 1, Ft.value += 1, H.value.showTable = M.value.table.show, H.value.showTooltip = I.value.show;
213
- }, { deep: !0 });
214
- let { isPrinting: Yt, isImaging: Xt, generatePdf: Zt, generateImage: Qt } = fe({
215
- elementId: `vue-ui-onion_${E.value}`,
216
- fileName: L.value.title.text || "vue-ui-onion",
217
- options: M.value.userOptions.print
218
- }), $t = c(() => M.value.userOptions.show && !L.value.title.text), en = c(() => se(M.value.customPalette)), H = y({
219
- showTable: M.value.table.show,
220
- showTooltip: I.value.show
221
- });
222
- We(M, () => {
223
- H.value = {
224
- showTable: M.value.table.show,
225
- showTooltip: I.value.show
226
- };
227
- }, { immediate: !0 });
228
- let U = y({
229
- height: 512,
230
- width: 512,
231
- padding: {
232
- top: 64,
233
- left: 64,
234
- right: 64,
235
- bottom: 64
236
- },
237
- minRadius: 64
238
- }), W = He(null), G = He(null);
239
- Be(() => {
240
- It.value = !0, fn();
241
- });
242
- let { autoSizeLabels: tn } = Ae({
243
- svgRef: V,
244
- fontSize: () => P.value.fontSize,
245
- minFontSize: () => P.value.minFontSize,
246
- labelClass: ".vue-ui-onion-label"
247
- }), K = null, nn = null, rn = 0;
248
- function an() {
249
- K !== null && (cancelAnimationFrame(K), K = null), nn !== null && (clearTimeout(nn), nn = null);
250
- }
251
- function on(e) {
252
- return String(e).split(",").map((e) => {
253
- let t = e.trim(), n = Number.parseFloat(t);
254
- return Number.isFinite(n) ? t.endsWith("ms") ? n : n * 1e3 : 0;
255
- });
256
- }
257
- function sn() {
258
- return typeof window > "u" || !R.value || k.value || B.value || !V.value ? 0 : Array.from(V.value.querySelectorAll(".vue-ui-onion-label.vue-data-ui-transition")).reduce((e, t) => {
259
- let n = window.getComputedStyle(t);
260
- if (n.transitionProperty === "none") return e;
261
- let r = on(n.transitionDuration), i = on(n.transitionDelay), a = Math.max(r.length, i.length), o = Array.from({ length: a }, (e, t) => (r[t % r.length] ?? 0) + (i[t % i.length] ?? 0)).reduce((e, t) => Math.max(e, t), 0);
262
- return Math.max(e, o);
263
- }, 0);
264
- }
265
- function cn() {
266
- typeof window < "u" && (K = requestAnimationFrame(() => {
267
- K = null, tn();
268
- }));
269
- }
270
- function ln() {
271
- if (typeof window > "u") return;
272
- let e = ++rn;
273
- an(), Re(() => {
274
- e === rn && (K = requestAnimationFrame(() => {
275
- if (K = null, e !== rn) return;
276
- let t = sn();
277
- if (t <= 0) {
278
- cn();
279
- return;
280
- }
281
- nn = setTimeout(() => {
282
- nn = null, e === rn && cn();
283
- }, t + 34);
284
- }));
285
- });
286
- }
287
- let un = c(() => M.value.debug), dn = null;
288
- function fn() {
289
- if (ce(T.dataset) && (s({
290
- componentName: "VueUiOnion",
291
- type: "dataset",
292
- debug: un.value
293
- }), Ht.value = !0), ce(T.dataset) || (Ht.value = M.value.loading), M.value.responsive) {
294
- let e = 64 / 512, t = Se(() => {
295
- dn && clearTimeout(dn), k.value = !0;
296
- let { width: t, height: n } = Ce({
297
- chart: O.value,
298
- title: L.value.title.text ? kt.value : null,
299
- legend: L.value.legend.show ? At.value : null,
300
- source: jt.value,
301
- noTitle: Mt.value
302
- });
303
- n -= 12, requestAnimationFrame(async () => {
304
- U.value.width = t, U.value.height = n, U.value.padding.top = Math.max(t, n) * e, U.value.padding.right = Math.max(t, n) * e, U.value.padding.bottom = Math.max(t, n) * e, U.value.padding.left = Math.max(t, n) * e, U.value.minRadius = Math.min(t, n) * e, dn = setTimeout(() => {
305
- k.value = !1, ln();
306
- }, 0);
307
- });
308
- });
309
- W.value && (G.value && W.value.unobserve(G.value), W.value.disconnect()), W.value = new ResizeObserver(t), G.value = O.value.parentNode, W.value.observe(G.value);
310
- }
311
- ln();
312
- }
313
- ze(() => {
314
- rn += 1, an(), W.value && (G.value && W.value.unobserve(G.value), W.value.disconnect());
315
- });
316
- let q = c(() => ({
317
- top: U.value.padding.top,
318
- left: U.value.padding.left,
319
- right: U.value.width - U.value.padding.right,
320
- bottom: U.value.height - U.value.padding.bottom,
321
- centerX: U.value.width / 2,
322
- centerY: U.value.height / 2,
323
- width: U.value.width - U.value.padding.right - U.value.padding.left,
324
- height: U.value.height - U.value.padding.bottom - U.value.padding.top,
325
- minRadius: U.value.minRadius,
326
- maxRadius: Math.min(U.value.width, U.value.height) - U.value.padding.top * 2
327
- })), J = c(() => (un.value && Vt.value.forEach((e, t) => {
328
- [null, void 0].includes(e.name) && s({
329
- componentName: "VueUiOnion",
330
- type: "datasetSerieAttribute",
331
- property: "name",
332
- index: t
333
- }), [void 0].includes(e.percentage) && s({
334
- componentName: "VueUiOnion",
335
- type: "datasetSerieAttribute",
336
- property: "percentage",
337
- index: t
338
- });
339
- }), Vt.value.map((e, t) => {
340
- let n = `onion_serie_${t}_${E.value}`;
341
- return {
342
- ...e,
343
- percentage: e.percentage || 0,
344
- targetPercentage: e.percentage || 0,
345
- color: a(e.color) || en.value[t] || i[t],
346
- id: n,
347
- shape: "circle",
348
- opacity: D.value.includes(n) ? .5 : 1,
349
- absoluteIndex: t,
350
- segregate: () => Tn(n),
351
- isSegregated: D.value.includes(n)
352
- };
353
- }))), pn = c(() => J.value.map((e, n) => {
354
- let r = L.value.legend.showValue, i = L.value.legend.showPercentage, a = Fn({
355
- showVal: r,
356
- showPercentage: i,
357
- val: ne(P.value.value.formatter, e.value, t({
358
- p: e.prefix || "",
359
- v: e.value,
360
- s: e.suffix || "",
361
- r: L.value.legend.roundingValue
362
- })),
363
- percentage: t({
364
- v: e.percentage ?? 0,
365
- s: "%",
366
- r: L.value.legend.roundingPercentage
367
- }),
368
- config: L.value.legend
369
- });
370
- return {
371
- ...e,
372
- display: `${e.name}${r || i ? ": " : ""}${a}`
373
- };
374
- })), mn = y(J.value), hn = c(() => M.value.useStartAnimation), gn = y(null), _n = c(() => Math.max(...J.value.map((e) => e.percentage))), vn = y(!1);
375
- We(() => J.value, yn, {
376
- immediate: !0,
377
- deep: !0
378
- }), We(() => T.dataset, (e) => {
379
- Array.isArray(e) && e.length > 0 && (Ht.value = !1), ln();
380
- }, {
381
- deep: !0,
382
- flush: "post"
383
- });
384
- function yn() {
385
- if (hn.value && !vn.value && !B.value) {
386
- mn.value = J.value.map((e) => ({
387
- ...e,
388
- percentage: 0
389
- }));
390
- let e = 0;
391
- function t() {
392
- e >= _n.value ? (cancelAnimationFrame(gn.value), mn.value = J.value, vn.value = !0) : (mn.value = J.value.map((t) => ({
393
- ...t,
394
- percentage: e < t.targetPercentage ? e : t.targetPercentage
395
- })), e += 1, requestAnimationFrame(t), vn.value = !0);
396
- }
397
- t();
398
- } else mn.value = J.value;
399
- }
400
- let bn = c(() => ({
401
- cy: "onion-div-legend",
402
- backgroundColor: L.value.legend.backgroundColor,
403
- color: L.value.legend.color,
404
- fontSize: L.value.legend.fontSize,
405
- paddingBottom: 12,
406
- fontWeight: L.value.legend.bold ? "bold" : ""
407
- })), xn = c(() => J.value.filter((e) => !D.value.includes(e.id)).length), Y = c(() => {
408
- let e = Math.min(q.value.width, q.value.height) / 2 / J.value.length;
409
- return {
410
- gutter: (e > F.value.maxThickness ? F.value.maxThickness : e) * F.value.gutter.width,
411
- track: (e > F.value.maxThickness ? F.value.maxThickness : e) * F.value.track.width
412
- };
413
- }), X = c(() => mn.value.filter((e) => !D.value.includes(e.id)).map((e, t) => {
414
- let n = (q.value.maxRadius - Y.value.track) / xn.value / 2 * (1 + t), r = q.value.centerY - n;
415
- return {
416
- percentage: e.percentage || 0,
417
- ...e,
418
- labelY: r,
419
- radius: n,
420
- path: Sn(n, e.percentage || 0)
421
- };
422
- }));
423
- function Sn(e, t) {
424
- let n = 2 * Math.PI * e, r = n * .75, i = `${r} ${n}`, a = r * (1 - t / 100);
425
- return {
426
- bgDashArray: `${r} ${n}`,
427
- bgDashOffset: 0,
428
- dashArray: i,
429
- dashOffset: a,
430
- fullOffset: 0,
431
- active: `
432
- M ${q.value.centerX},${q.value.centerY - e}
433
- A ${e},${e} 0 1 1
434
- ${q.value.centerX + e * Math.cos(Math.PI * 3 / 4)},${q.value.centerY + e * Math.sin(Math.PI * 3 / 4)}
435
- `.trim()
436
- };
437
- }
438
- let Cn = Ge;
439
- function wn() {
440
- D.value.length ? D.value = [] : pn.value.forEach((e) => {
441
- D.value.push(e.id);
442
- }), ln(), Cn("selectLegend", X.value);
443
- }
444
- function Tn(e) {
445
- if (D.value.includes(e)) D.value = D.value.filter((t) => t !== e);
446
- else {
447
- if (D.value.length === J.value.length - 1) return;
448
- D.value.push(e);
449
- }
450
- ln(), Cn("selectLegend", X.value);
451
- }
452
- function En(e) {
453
- return J.value.length ? J.value.find((t) => t.name === e) || (un.value && console.warn(`VueUiOnion - Series name not found "${e}"`), null) : (un.value && console.warn("VueUiOnion - There are no series to show."), null);
454
- }
455
- function Dn(e) {
456
- let t = En(e);
457
- t !== null && D.value.includes(t.id) && Tn(t.id);
458
- }
459
- function On(e) {
460
- let t = En(e);
461
- t !== null && (D.value.includes(t.id) || Tn(t.id));
462
- }
463
- function kn() {
464
- return X.value;
465
- }
466
- let An = c(() => ({
467
- head: [
468
- M.value.table.translations.serie,
469
- M.value.table.translations.percentage,
470
- M.value.table.translations.value
471
- ],
472
- body: X.value.map((e) => [
473
- e.name,
474
- e.percentage,
475
- e.value
476
- ])
477
- })), Z = c(() => {
478
- let e = An.value.head;
479
- return {
480
- head: e,
481
- body: X.value.map((e) => [
482
- `<span style="color:${e.color}" aria-hidden="true">⬤</span> ${e.name}`,
483
- `${Number(e.percentage ?? 0).toFixed(M.value.table.td.roundingPercentage).toLocaleString()}%`,
484
- `${e.prefix || ""}${[
485
- null,
486
- void 0,
487
- NaN,
488
- "NaN"
489
- ].includes(e.value) ? "-" : e.value.toFixed(M.value.table.td.roundingValue).toLocaleString()}${e.suffix || ""}`
490
- ]),
491
- config: {
492
- th: {
493
- backgroundColor: M.value.table.th.backgroundColor,
494
- color: M.value.table.th.color,
495
- outline: M.value.table.th.outline
496
- },
497
- td: {
498
- backgroundColor: M.value.table.td.backgroundColor,
499
- color: M.value.table.td.color,
500
- outline: M.value.table.td.outline
501
- },
502
- breakpoint: M.value.table.responsiveBreakpoint
503
- },
504
- colNames: e
505
- };
506
- });
507
- function jn(e = null) {
508
- Re(() => {
509
- let t = [
510
- [L.value.title.text],
511
- [L.value.title.subtitle.text],
512
- [""]
513
- ], r = An.value.head, i = An.value.body, a = t.concat([r]).concat(i), o = n(a);
514
- e ? e(o) : ie({
515
- csvContent: o,
516
- title: L.value.title.text || "vue-ui-onion"
517
- });
518
- });
519
- }
520
- let Q = y(void 0), $ = y(!1);
521
- function Mn(e) {
522
- $.value = e, Et.value += 1;
523
- }
524
- function Nn({ datapoint: e }) {
525
- M.value.events.datapointClick && M.value.events.datapointClick({
526
- datapoint: e,
527
- seriesIndex: e.absoluteIndex
528
- });
529
- }
530
- function Pn({ datapoint: e }) {
531
- Q.value = void 0, Dt.value = !1, j.value = null, Rt.value = "pointer", M.value.events.datapointLeave && M.value.events.datapointLeave({
532
- datapoint: e,
533
- seriesIndex: e.absoluteIndex
534
- });
535
- }
536
- function Fn({ val: e, percentage: t, showVal: n, showPercentage: r, config: i }) {
537
- return Oe({
538
- config: i,
539
- val: e,
540
- percentage: t,
541
- showVal: n,
542
- showPercentage: r
543
- });
544
- }
545
- function In(e, n) {
546
- let r = P.value.value.show, i = P.value.percentage.show, a = Fn({
547
- config: P.value,
548
- showVal: r,
549
- showPercentage: i,
550
- val: ne(P.value.value.formatter, e.value, t({
551
- p: e.prefix || "",
552
- v: e.value || 0,
553
- s: e.suffix || "",
554
- r: P.value.roundingValue
555
- }), {
556
- datapoint: e,
557
- seriesIndex: n
558
- }),
559
- percentage: t({
560
- v: e.percentage,
561
- s: "%",
562
- r: P.value.roundingPercentage
563
- })
564
- });
565
- return `${e.name}${r || i ? ": " : ""}${a}`;
566
- }
567
- let Ln = y(null);
568
- function Rn({ datapoint: e, seriesIndex: n, show: i = !0, triggerMode: a = "pointer" }) {
569
- M.value.events.datapointEnter && M.value.events.datapointEnter({
570
- datapoint: e,
571
- seriesIndex: e.absoluteIndex
572
- }), Rt.value = a, j.value = n;
573
- let o = e.absoluteIndex;
574
- Q.value = n, Ln.value = {
575
- datapoint: e,
576
- seriesIndex: o,
577
- series: J.value,
578
- config: M.value
579
- }, Dt.value = i;
580
- let s = "", ee = I.value.customFormat;
581
- if (r(ee) && ae(() => ee({
582
- seriesIndex: o,
583
- datapoint: e,
584
- series: J.value,
585
- config: M.value
586
- }))) Ot.value = ee({
587
- seriesIndex: o,
588
- datapoint: e,
589
- series: J.value,
590
- config: M.value
591
- });
592
- else {
593
- let r = I.value.showPercentage, i = I.value.showValue;
594
- s += `<div style="width:100%;text-align:center;border-bottom:1px solid ${I.value.borderColor};padding-bottom:6px;margin-bottom:3px;">${e.name}</div>`, s += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><circle cx="30" cy="30" r="30" stroke="none" fill="${e.color}"/></svg>`, s += `<b>${Fn({
595
- config: I.value,
596
- showVal: i,
597
- showPercentage: r,
598
- val: `<span>${ne(P.value.value.formatter, e.value, t({
599
- p: e.prefix || "",
600
- v: e.value,
601
- s: e.suffix || "",
602
- r: I.value.roundingValue
603
- }), {
604
- datapoint: e,
605
- seriesIndex: n
606
- })}</span>`,
607
- percentage: t({
608
- v: e.percentage,
609
- s: "%",
610
- r: I.value.roundingPercentage
611
- })
612
- })}</b></div>`, Ot.value = `<div>${s}</div>`;
613
- }
614
- }
615
- function zn() {
616
- H.value.showTable = !H.value.showTable;
617
- }
618
- function Bn() {
619
- H.value.showTooltip = !H.value.showTooltip;
620
- }
621
- let Vn = y(!1);
622
- function Hn() {
623
- Vn.value = !Vn.value;
624
- }
625
- async function Un({ scale: e = 2 } = {}) {
626
- if (!O.value) return;
627
- let { width: t, height: n } = O.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await ye({
628
- domElement: O.value,
629
- base64: !0,
630
- img: !0,
631
- scale: e
632
- });
633
- return {
634
- imageUri: i,
635
- base64: a,
636
- title: L.value.title.text,
637
- width: t,
638
- height: n,
639
- aspectRatio: r
640
- };
641
- }
642
- let Wn = c(() => {
643
- let e = M.value.table.useDialog && !M.value.table.show, t = H.value.showTable;
644
- return {
645
- component: e ? bt : ht,
646
- title: `${L.value.title.text}${L.value.title.subtitle.text ? `: ${L.value.title.subtitle.text}` : ""}`,
647
- props: e ? {
648
- backgroundColor: M.value.table.th.backgroundColor,
649
- color: M.value.table.th.color,
650
- headerColor: M.value.table.th.color,
651
- headerBg: M.value.table.th.backgroundColor,
652
- isFullscreen: $.value,
653
- fullscreenParent: O.value,
654
- forcedWidth: Math.min(600, window.innerWidth * .8),
655
- isCursorPointer: z.value
656
- } : {
657
- hideDetails: !0,
658
- config: {
659
- open: t,
660
- maxHeight: 1e4,
661
- body: {
662
- backgroundColor: L.value.backgroundColor,
663
- color: L.value.color
664
- },
665
- head: {
666
- backgroundColor: L.value.backgroundColor,
667
- color: L.value.color
668
- }
669
- }
670
- }
671
- };
672
- });
673
- We(() => H.value.showTable, (e) => {
674
- M.value.table.show || (e && M.value.table.useDialog && A.value ? A.value.open() : "close" in A.value && A.value.close());
675
- });
676
- let Gn = c(() => pn.value.map((e) => ({
677
- ...e,
678
- name: e.display
679
- }))), Kn = c(() => L.value.backgroundColor), qn = c(() => L.value.legend), Jn = c(() => L.value.title), { isCallbackImaging: Yn, isCallbackSvg: Xn, generateSvg: Zn, onGenerateImage: Qn } = _e({
680
- svg: V,
681
- title: Jn,
682
- legend: qn,
683
- legendItems: Gn,
684
- backgroundColor: Kn,
685
- getSvgCallback: () => M.value.userOptions.callbacks.svg,
686
- generateImage: Qt
687
- });
688
- async function $n() {
689
- if (Cn("copyAlt", {
690
- config: M.value,
691
- dataset: X.value
692
- }), !M.value.userOptions.callbacks.altCopy) {
693
- console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
694
- return;
695
- }
696
- await Promise.resolve(M.value.userOptions.callbacks.altCopy({
697
- config: M.value,
698
- dataset: X.value
699
- }));
700
- }
701
- function er() {
702
- j.value = null, zt.value = !0;
703
- }
704
- function tr() {
705
- j.value = null, Rt.value = "pointer", Dt.value = !1, Q.value = void 0, zt.value = !1;
706
- }
707
- function nr(e) {
708
- if (!V.value || Vn.value || document.activeElement !== V.value || !X.value.length) return;
709
- let t = ["ArrowLeft", "ArrowDown"].includes(e.key), n = ["ArrowRight", "ArrowUp"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
710
- if (!t && !n && !r && !i) return;
711
- if (e.preventDefault(), e.stopPropagation(), i) {
712
- j.value = null, Rt.value = "pointer", Dt.value = !1, Q.value = void 0;
713
- return;
714
- }
715
- if (r) {
716
- if (j.value === null) return;
717
- let e = X.value[j.value];
718
- if (!e) return;
719
- Nn({ datapoint: e });
720
- return;
721
- }
722
- let a = j.value;
723
- a === null || a < 0 || a >= X.value.length ? a = n ? 0 : X.value.length - 1 : n ? (a += 1, a >= X.value.length && (a = 0)) : t && (--a, a < 0 && (a = X.value.length - 1));
724
- let o = X.value[a];
725
- o && (rr(a), Rn({
726
- datapoint: o,
727
- seriesIndex: a,
728
- show: !0,
729
- triggerMode: "keyboard"
730
- }));
731
- }
732
- function rr(e) {
733
- if (!Number.isFinite(e) || !V.value) return;
734
- let t = X.value[e];
735
- if (!t) return;
736
- let n = t.radius, r = Math.PI * 7 / 4, i = q.value.centerX + n * Math.cos(r), a = q.value.centerY + n * Math.sin(r), o = V.value.getBoundingClientRect();
737
- Lt.value = {
738
- x: o.left + i / U.value.width * o.width,
739
- y: o.top + a / U.value.height * o.height
740
- };
741
- }
742
- let ir = c(() => ({
743
- headers: Z.value?.colNames ?? [],
744
- rows: Z.value?.body ?? []
745
- }));
746
- return xe({
747
- getData: kn,
748
- getImage: Un,
749
- generatePdf: Zt,
750
- generateCsv: jn,
751
- generateImage: Qt,
752
- generateSvg: Zn,
753
- hideSeries: On,
754
- showSeries: Dn,
755
- toggleTable: zn,
756
- toggleTooltip: Bn,
757
- toggleAnnotator: Hn,
758
- toggleFullscreen: Mn,
759
- copyAlt: $n
760
- }), (e, t) => (v(), d("div", {
761
- class: h(`vue-data-ui-component vue-ui-onion ${$.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${M.value.useCssAnimation ? "" : "vue-ui-dna"}`),
762
- ref_key: "onionChart",
763
- ref: O,
764
- id: `vue-ui-onion_${E.value}`,
765
- style: _(`font-family:${M.value.style.fontFamily};width:100%; ${M.value.responsive ? "height: 100%;" : ""} text-align:center;background:${L.value.backgroundColor}`),
766
- onMouseenter: t[4] ||= () => C(Wt)(!0),
767
- onMouseleave: t[5] ||= () => C(Wt)(!1)
768
- }, [
769
- f("div", {
770
- id: `chart-instructions-${E.value}`,
771
- class: "sr-only"
772
- }, [f("p", null, S(M.value.a11y.translations.keyboardNavigation), 1)], 8, qe),
773
- ir.value?.rows?.length ? (v(), l(Te, {
774
- key: 0,
775
- uid: E.value,
776
- head: ir.value.headers,
777
- body: ir.value.rows,
778
- notice: M.value.a11y.translations.tableAvailable,
779
- caption: M.value.a11y.translations.tableCaption
780
- }, null, 8, [
781
- "uid",
782
- "head",
783
- "body",
784
- "notice",
785
- "caption"
786
- ])) : u("", !0),
787
- N.value.buttons.annotator ? (v(), l(C(vt), {
788
- key: 1,
789
- svgRef: C(V),
790
- backgroundColor: L.value.backgroundColor,
791
- color: L.value.color,
792
- active: Vn.value,
793
- isCursorPointer: z.value,
794
- palette: N.value.annotatorPalette,
795
- onClose: Hn
796
- }, {
797
- "annotator-action-close": w(() => [x(e.$slots, "annotator-action-close", {}, void 0, !0)]),
798
- "annotator-action-color": w(({ color: t }) => [x(e.$slots, "annotator-action-color", g(m({ color: t })), void 0, !0)]),
799
- "annotator-action-draw": w(({ mode: t }) => [x(e.$slots, "annotator-action-draw", g(m({ mode: t })), void 0, !0)]),
800
- "annotator-action-undo": w(({ disabled: t }) => [x(e.$slots, "annotator-action-undo", g(m({ disabled: t })), void 0, !0)]),
801
- "annotator-action-redo": w(({ disabled: t }) => [x(e.$slots, "annotator-action-redo", g(m({ disabled: t })), void 0, !0)]),
802
- "annotator-action-delete": w(({ disabled: t }) => [x(e.$slots, "annotator-action-delete", g(m({ disabled: t })), void 0, !0)]),
803
- _: 3
804
- }, 8, [
805
- "svgRef",
806
- "backgroundColor",
807
- "color",
808
- "active",
809
- "isCursorPointer",
810
- "palette"
811
- ])) : u("", !0),
812
- $t.value ? (v(), d("div", {
813
- key: 2,
814
- ref_key: "noTitle",
815
- ref: Mt,
816
- class: "vue-data-ui-no-title-space",
817
- style: "height:36px; width: 100%;background:transparent"
818
- }, null, 512)) : u("", !0),
819
- L.value.title.text ? (v(), d("div", {
820
- key: 3,
821
- ref_key: "chartTitle",
822
- ref: kt,
823
- style: "width:100%;background:transparent"
824
- }, [(v(), l(be, {
825
- key: `title_${Nt.value}`,
826
- config: {
827
- title: {
828
- cy: "onion-div-title",
829
- ...L.value.title
830
- },
831
- subtitle: {
832
- cy: "onion-div-subtitle",
833
- ...L.value.title.subtitle
834
- }
835
- }
836
- }, null, 8, ["config"]))], 512)) : u("", !0),
837
- f("div", { id: `legend-top-${E.value}` }, null, 8, Je),
838
- N.value.show && wt.value && (C(Gt) || C(Ut)) ? (v(), l(C(_t), {
839
- ref_key: "details",
840
- ref: Tt,
841
- key: `user_options${Et.value}`,
842
- backgroundColor: L.value.backgroundColor,
843
- color: L.value.color,
844
- isImaging: C(Xt),
845
- isPrinting: C(Yt),
846
- uid: E.value,
847
- hasTooltip: N.value.buttons.tooltip && I.value.show,
848
- hasPdf: N.value.buttons.pdf,
849
- hasImg: N.value.buttons.img,
850
- hasSvg: N.value.buttons.svg,
851
- hasXls: N.value.buttons.csv,
852
- hasTable: N.value.buttons.table,
853
- hasFullscreen: N.value.buttons.fullscreen,
854
- hasAltCopy: N.value.buttons.altCopy,
855
- isFullscreen: $.value,
856
- isTooltip: H.value.showTooltip,
857
- titles: { ...N.value.buttonTitles },
858
- chartElement: O.value,
859
- position: N.value.position,
860
- hasAnnotator: N.value.buttons.annotator,
861
- isAnnotation: Vn.value,
862
- callbacks: N.value.callbacks,
863
- printScale: N.value.print.scale,
864
- tableDialog: M.value.table.useDialog,
865
- isCursorPointer: z.value,
866
- onToggleFullscreen: Mn,
867
- onGeneratePdf: C(Zt),
868
- onGenerateCsv: jn,
869
- onGenerateImage: C(Qn),
870
- onGenerateSvg: C(Zn),
871
- onToggleTable: zn,
872
- onToggleTooltip: Bn,
873
- onToggleAnnotator: Hn,
874
- onCopyAlt: $n,
875
- style: _({ visibility: C(Gt) ? C(Ut) ? "visible" : "hidden" : "visible" })
876
- }, Pe({ _: 2 }, [
877
- e.$slots.menuIcon ? {
878
- name: "menuIcon",
879
- fn: w(({ isOpen: t, color: n }) => [x(e.$slots, "menuIcon", g(m({
880
- isOpen: t,
881
- color: n
882
- })), void 0, !0)]),
883
- key: "0"
884
- } : void 0,
885
- e.$slots.optionTooltip ? {
886
- name: "optionTooltip",
887
- fn: w(() => [x(e.$slots, "optionTooltip", {}, void 0, !0)]),
888
- key: "1"
889
- } : void 0,
890
- e.$slots.optionPdf ? {
891
- name: "optionPdf",
892
- fn: w(() => [x(e.$slots, "optionPdf", {}, void 0, !0)]),
893
- key: "2"
894
- } : void 0,
895
- e.$slots.optionCsv ? {
896
- name: "optionCsv",
897
- fn: w(() => [x(e.$slots, "optionCsv", {}, void 0, !0)]),
898
- key: "3"
899
- } : void 0,
900
- e.$slots.optionImg ? {
901
- name: "optionImg",
902
- fn: w(() => [x(e.$slots, "optionImg", {}, void 0, !0)]),
903
- key: "4"
904
- } : void 0,
905
- e.$slots.optionSvg ? {
906
- name: "optionSvg",
907
- fn: w(() => [x(e.$slots, "optionSvg", {}, void 0, !0)]),
908
- key: "5"
909
- } : void 0,
910
- e.$slots.optionTable ? {
911
- name: "optionTable",
912
- fn: w(() => [x(e.$slots, "optionTable", {}, void 0, !0)]),
913
- key: "6"
914
- } : void 0,
915
- e.$slots.optionFullscreen ? {
916
- name: "optionFullscreen",
917
- fn: w(({ toggleFullscreen: t, isFullscreen: n }) => [x(e.$slots, "optionFullscreen", g(m({
918
- toggleFullscreen: t,
919
- isFullscreen: n
920
- })), void 0, !0)]),
921
- key: "7"
922
- } : void 0,
923
- e.$slots.optionAnnotator ? {
924
- name: "optionAnnotator",
925
- fn: w(({ toggleAnnotator: t, isAnnotator: n }) => [x(e.$slots, "optionAnnotator", g(m({
926
- toggleAnnotator: t,
927
- isAnnotator: n
928
- })), void 0, !0)]),
929
- key: "8"
930
- } : void 0,
931
- e.$slots.optionAltCopy ? {
932
- name: "optionAltCopy",
933
- fn: w(({ altCopy: t }) => [x(e.$slots, "optionAltCopy", g(m({ altCopy: t })), void 0, !0)]),
934
- key: "9"
935
- } : void 0,
936
- e.$slots["custom-menu-before"] ? {
937
- name: "custom-menu-before",
938
- fn: w(() => [x(e.$slots, "custom-menu-before", {}, void 0, !0)]),
939
- key: "10"
940
- } : void 0,
941
- e.$slots["custom-menu-after"] ? {
942
- name: "custom-menu-after",
943
- fn: w(() => [x(e.$slots, "custom-menu-after", {}, void 0, !0)]),
944
- key: "11"
945
- } : void 0
946
- ]), 1032, /* @__PURE__ */ "backgroundColor.color.isImaging.isPrinting.uid.hasTooltip.hasPdf.hasImg.hasSvg.hasXls.hasTable.hasFullscreen.hasAltCopy.isFullscreen.isTooltip.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.onGenerateImage.onGenerateSvg.style".split("."))) : u("", !0),
947
- f("div", Ye, [(v(), d("svg", {
948
- ref_key: "svgRef",
949
- ref: V,
950
- xmlns: C(oe),
951
- "aria-describedby": `chart-instructions-${E.value}`,
952
- class: h({
953
- "vue-data-ui-fullscreen--on": $.value,
954
- "vue-data-ui-fulscreen--off": !$.value,
955
- resizing: k.value,
956
- "vue-data-ui-no-transition": !C(R) || k.value || C(B)
957
- }),
958
- viewBox: `0 0 ${U.value.width <= 0 ? 10 : U.value.width} ${U.value.height <= 0 ? 10 : U.value.height}`,
959
- style: _(`max-width:100%;overflow:visible;background:transparent;color:${L.value.color}`),
960
- tabindex: "0",
961
- onFocus: er,
962
- onBlur: tr,
963
- onKeydown: nr
964
- }, [
965
- Ie(C(yt)),
966
- e.$slots["chart-background"] ? (v(), d("foreignObject", {
967
- key: 0,
968
- x: 0,
969
- y: 0,
970
- width: U.value.width <= 0 ? 10 : U.value.width,
971
- height: U.value.height <= 0 ? 10 : U.value.height,
972
- style: { pointerEvents: "none" }
973
- }, [x(e.$slots, "chart-background", {}, void 0, !0)], 8, Ze)) : u("", !0),
974
- (v(!0), d(Me, null, b(X.value, (e, t) => (v(), d("circle", {
975
- cx: q.value.centerX,
976
- cy: q.value.centerY,
977
- r: e.radius <= 0 ? 1e-4 : e.radius,
978
- stroke: F.value.gutter.color,
979
- "stroke-width": Y.value.gutter,
980
- fill: "none",
981
- "stroke-dasharray": e.path.bgDashArray,
982
- "stroke-dashoffset": e.path.fullOffset,
983
- "stroke-linecap": "round",
984
- class: h({
985
- "vue-ui-onion-path": !0,
986
- "vue-ui-onion-blur": M.value.useBlurOnHover && ![null, void 0].includes(Q.value) && Q.value !== t,
987
- "vue-data-ui-transition": C(R)
988
- }),
989
- style: {
990
- transform: "rotate(-90deg)",
991
- transformOrigin: "50% 50%"
992
- }
993
- }, null, 10, Qe))), 256)),
994
- (v(!0), d(Me, null, b(X.value, (e, t) => (v(), d("circle", {
995
- cx: q.value.centerX,
996
- cy: q.value.centerY,
997
- r: e.radius < 0 ? 1e-4 : e.radius,
998
- stroke: `${e.color}`,
999
- "stroke-width": Y.value.track,
1000
- fill: "none",
1001
- "stroke-dasharray": e.path.dashArray,
1002
- "stroke-dashoffset": e.path.dashOffset,
1003
- class: h({
1004
- "vue-ui-onion-path": !0,
1005
- "vue-ui-onion-blur": M.value.useBlurOnHover && ![null, void 0].includes(Q.value) && Q.value !== t,
1006
- "vue-data-ui-transition": C(R)
1007
- }),
1008
- "stroke-linecap": "round",
1009
- style: {
1010
- transform: "rotate(-90deg)",
1011
- transformOrigin: "50% 50%"
1012
- }
1013
- }, null, 10, $e))), 256)),
1014
- f("defs", null, [f("filter", {
1015
- id: `blur_${E.value}`,
1016
- x: "-50%",
1017
- y: "-50%",
1018
- width: "200%",
1019
- height: "200%"
1020
- }, [f("feGaussianBlur", {
1021
- in: "SourceGraphic",
1022
- stdDeviation: 100 / L.value.gradientIntensity
1023
- }, null, 8, tt)], 8, et)]),
1024
- L.value.useGradient ? (v(), d("g", {
1025
- key: 1,
1026
- filter: `url(#blur_${E.value})`
1027
- }, [(v(!0), d(Me, null, b(X.value, (e, t) => (v(), d("circle", {
1028
- cx: q.value.centerX,
1029
- cy: q.value.centerY,
1030
- r: e.radius <= 0 ? 1e-4 : e.radius,
1031
- stroke: "white",
1032
- "stroke-width": Y.value.track / 3,
1033
- fill: "none",
1034
- "stroke-linecap": "round",
1035
- "stroke-dasharray": e.path.dashArray,
1036
- "stroke-dashoffset": e.path.dashOffset,
1037
- style: {
1038
- transform: "rotate(-90deg)",
1039
- transformOrigin: "50% 50%"
1040
- },
1041
- class: h({ "vue-data-ui-transition": C(R) })
1042
- }, null, 10, rt))), 256))], 8, nt)) : u("", !0),
1043
- (v(!0), d(Me, null, b(X.value, (e, t) => (v(), d("circle", {
1044
- cx: q.value.centerX,
1045
- cy: q.value.centerY,
1046
- r: e.radius <= 0 ? 1e-4 : e.radius,
1047
- stroke: "transparent",
1048
- "stroke-width": Math.max(Y.value.track, Y.value.gutter),
1049
- fill: "none",
1050
- "stroke-dasharray": e.path.bgDashArray,
1051
- "stroke-dashoffset": e.path.fullOffset,
1052
- "stroke-linecap": "round",
1053
- class: "vue-ui-onion-path",
1054
- style: {
1055
- transform: "rotate(-90deg)",
1056
- transformOrigin: "50% 50%"
1057
- },
1058
- onMouseenter: (n) => Rn({
1059
- datapoint: e,
1060
- show: !0,
1061
- seriesIndex: t,
1062
- triggerMode: "pointer"
1063
- }),
1064
- onMouseleave: (t) => Pn({ datapoint: e }),
1065
- onClick: (t) => Nn({ datapoint: e })
1066
- }, null, 40, it))), 256)),
1067
- P.value.show ? (v(), d("g", at, [(v(!0), d(Me, null, b(X.value, (e, t) => (v(), d("g", {
1068
- key: `dl_${e.id}`,
1069
- onMouseenter: (n) => Rn({
1070
- datapoint: e,
1071
- show: !0,
1072
- seriesIndex: t,
1073
- triggerMode: "pointer"
1074
- }),
1075
- onMouseleave: (t) => Pn({ datapoint: e }),
1076
- onClick: (t) => Nn({ datapoint: e })
1077
- }, [D.value.includes(e.id) ? u("", !0) : (v(), d("text", {
1078
- key: 0,
1079
- class: h(["vue-ui-onion-label", { "vue-data-ui-transition": C(R) }]),
1080
- transform: `translate(${U.value.width / 2 - Y.value.gutter * .8 + P.value.offsetX},${e.labelY + P.value.offsetY})`,
1081
- "text-anchor": "end",
1082
- "font-size": P.value.fontSize,
1083
- fill: M.value.useBlurOnHover && ![null, void 0].includes(Q.value) && Q.value === t ? e.color : P.value.color,
1084
- "font-weight": P.value.bold ? "bold" : "normal"
1085
- }, S(In(e, t)), 11, st))], 40, ot))), 128))])) : u("", !0),
1086
- x(e.$slots, "svg", { svg: {
1087
- ...U.value,
1088
- drawingArea: q.value,
1089
- isPrintingImg: C(Yt) || C(Xt) || C(Yn),
1090
- isPrintingSvg: C(Xn)
1091
- } }, void 0, !0)
1092
- ], 46, Xe)), e.$slots.hint ? (v(), d("div", ct, [x(e.$slots, "hint", g(m({
1093
- hint: M.value.a11y.translations.keyboardNavigation,
1094
- isVisible: zt.value
1095
- })), void 0, !0)])) : u("", !0)]),
1096
- e.$slots.watermark ? (v(), d("div", lt, [x(e.$slots, "watermark", g(m({ isPrinting: C(Yt) || C(Xt) || C(Yn) || C(Xn) })), void 0, !0)])) : u("", !0),
1097
- f("div", { id: `legend-bottom-${E.value}` }, null, 8, ut),
1098
- It.value && (L.value.legend.show || e.$slots.legend) ? (v(), l(Ne, {
1099
- key: 6,
1100
- to: L.value.legend.position === "top" ? `#legend-top-${E.value}` : `#legend-bottom-${E.value}`
1101
- }, [f("div", {
1102
- ref_key: "chartLegend",
1103
- ref: At
1104
- }, [x(e.$slots, "legend", { legend: pn.value }, () => [L.value.legend.show ? (v(), l(ke, {
1105
- key: `legend_${Ft.value}`,
1106
- legendSet: pn.value,
1107
- config: bn.value,
1108
- isCursorPointer: z.value,
1109
- onClickMarker: t[0] ||= ({ legend: e }) => Tn(e.id)
1110
- }, {
1111
- item: w(({ legend: e }) => [C(B) ? u("", !0) : (v(), d("div", {
1112
- key: 0,
1113
- "data-cy-legend-item": "",
1114
- onClick: (t) => e.segregate(),
1115
- style: _(`opacity:${D.value.includes(e.id) ? .5 : 1}`)
1116
- }, S(e.display), 13, dt))]),
1117
- legendToggle: w(() => [pn.value.length > 2 && L.value.legend.selectAllToggle.show && !C(B) ? (v(), l(we, {
1118
- key: 0,
1119
- backgroundColor: L.value.legend.selectAllToggle.backgroundColor,
1120
- color: L.value.legend.selectAllToggle.color,
1121
- fontSize: L.value.legend.fontSize,
1122
- checked: D.value.length > 0,
1123
- isCursorPointer: z.value,
1124
- onToggle: wn
1125
- }, null, 8, [
1126
- "backgroundColor",
1127
- "color",
1128
- "fontSize",
1129
- "checked",
1130
- "isCursorPointer"
1131
- ])) : u("", !0)]),
1132
- _: 1
1133
- }, 8, [
1134
- "legendSet",
1135
- "config",
1136
- "isCursorPointer"
1137
- ])) : u("", !0)], !0)], 512)], 8, ["to"])) : u("", !0),
1138
- e.$slots.source ? (v(), d("div", {
1139
- key: 7,
1140
- ref_key: "source",
1141
- ref: jt,
1142
- dir: "auto"
1143
- }, [x(e.$slots, "source", {}, void 0, !0)], 512)) : u("", !0),
1144
- Ie(C(pt), {
1145
- teleportTo: I.value.teleportTo,
1146
- show: H.value.showTooltip && Dt.value,
1147
- backgroundColor: I.value.backgroundColor,
1148
- color: I.value.color,
1149
- borderRadius: I.value.borderRadius,
1150
- borderColor: I.value.borderColor,
1151
- borderWidth: I.value.borderWidth,
1152
- fontSize: I.value.fontSize,
1153
- backgroundOpacity: I.value.backgroundOpacity,
1154
- position: I.value.position,
1155
- offsetX: I.value.offsetX,
1156
- offsetY: I.value.offsetY,
1157
- parent: O.value,
1158
- content: Ot.value,
1159
- isFullscreen: $.value,
1160
- isCustom: C(r)(I.value.customFormat),
1161
- smooth: I.value.smooth,
1162
- backdropFilter: I.value.backdropFilter,
1163
- smoothForce: I.value.smoothForce,
1164
- smoothSnapThreshold: I.value.smoothSnapThreshold,
1165
- isA11yMode: Rt.value === "keyboard",
1166
- a11yPosition: Lt.value
1167
- }, {
1168
- "tooltip-before": w(() => [x(e.$slots, "tooltip-before", g(m({ ...Ln.value })), void 0, !0)]),
1169
- tooltip: w(() => [x(e.$slots, "tooltip", g(m({ ...Ln.value })), void 0, !0)]),
1170
- "tooltip-after": w(() => [x(e.$slots, "tooltip-after", g(m({ ...Ln.value })), void 0, !0)]),
1171
- _: 3
1172
- }, 8, [
1173
- "teleportTo",
1174
- "show",
1175
- "backgroundColor",
1176
- "color",
1177
- "borderRadius",
1178
- "borderColor",
1179
- "borderWidth",
1180
- "fontSize",
1181
- "backgroundOpacity",
1182
- "position",
1183
- "offsetX",
1184
- "offsetY",
1185
- "parent",
1186
- "content",
1187
- "isFullscreen",
1188
- "isCustom",
1189
- "smooth",
1190
- "backdropFilter",
1191
- "smoothForce",
1192
- "smoothSnapThreshold",
1193
- "isA11yMode",
1194
- "a11yPosition"
1195
- ]),
1196
- wt.value && N.value.buttons.table ? (v(), l(Ve(Wn.value.component), Le({ key: 8 }, Wn.value.props, {
1197
- ref_key: "tableUnit",
1198
- ref: A,
1199
- onClose: t[3] ||= (e) => H.value.showTable = !1
1200
- }), Pe({
1201
- content: w(() => [(v(), l(C(gt), {
1202
- key: `table_${Pt.value}`,
1203
- colNames: Z.value.colNames,
1204
- head: Z.value.head,
1205
- body: Z.value.body,
1206
- config: Z.value.config,
1207
- title: M.value.table.useDialog ? "" : Wn.value.title,
1208
- withCloseButton: !M.value.table.useDialog,
1209
- isCursorPointer: z.value,
1210
- onClose: t[2] ||= (e) => H.value.showTable = !1
1211
- }, {
1212
- th: w(({ th: e }) => [Fe(S(e), 1)]),
1213
- td: w(({ td: e }) => [f("div", { innerHTML: e }, null, 8, ft)]),
1214
- _: 1
1215
- }, 8, [
1216
- "colNames",
1217
- "head",
1218
- "body",
1219
- "config",
1220
- "title",
1221
- "withCloseButton",
1222
- "isCursorPointer"
1223
- ]))]),
1224
- _: 2
1225
- }, [M.value.table.useDialog ? {
1226
- name: "title",
1227
- fn: w(() => [Fe(S(Wn.value.title), 1)]),
1228
- key: "0"
1229
- } : void 0, M.value.table.useDialog ? {
1230
- name: "actions",
1231
- fn: w(() => [f("button", {
1232
- tabindex: "0",
1233
- class: "vue-ui-user-options-button",
1234
- onClick: t[1] ||= (e) => jn(N.value.callbacks.csv),
1235
- style: _({ cursor: z.value ? "pointer" : "default" })
1236
- }, [Ie(C(mt), {
1237
- name: "fileCsv",
1238
- stroke: Wn.value.props.color
1239
- }, null, 8, ["stroke"])], 4)]),
1240
- key: "1"
1241
- } : void 0]), 1040)) : u("", !0),
1242
- x(e.$slots, "skeleton", {}, () => [C(B) ? (v(), l(me, { key: 0 })) : u("", !0)], !0)
1243
- ], 46, Ke));
1244
- }
1245
- }, [["__scopeId", "data-v-bf80dd33"]]);
1246
- //#endregion
1247
- export { Ge as n, pt as t };