vue-data-ui 3.17.13 → 3.18.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (493) hide show
  1. package/README.md +1 -1
  2. package/dist/A11yDataTable-q2-8fSlJ.js +45 -0
  3. package/dist/Arrow-Cj6W6Xbi.js +116 -0
  4. package/dist/BaseDraggableDialog-BQcmQAK5.js +272 -0
  5. package/dist/BaseIcon-CEmt3Ifx.js +499 -0
  6. package/dist/BaseLegendToggle-DUIqQmwM.js +56 -0
  7. package/dist/BaseScanner-C7dmAref.js +27 -0
  8. package/dist/BaseZoomControls-Ce1yqas1.js +111 -0
  9. package/dist/ColorPicker-DS_QkH3W.js +255 -0
  10. package/dist/DataTable-BvDJEAma.js +150 -0
  11. package/dist/Legend-Gg5Q4Clb.js +114 -0
  12. package/dist/NonSvgPenAndPaper-D4Gh7O43.js +577 -0
  13. package/dist/PackageVersion-DhDKg-ez.js +11 -0
  14. package/dist/PenAndPaper-DwpL8Z0l.js +461 -0
  15. package/dist/RecursiveCircles-DPpLel6f.js +117 -0
  16. package/dist/RecursiveLabels-DBMJf_to.js +56 -0
  17. package/dist/RecursiveLinks-D06dBL4a.js +78 -0
  18. package/dist/Shape-DEGOZ6GG.js +141 -0
  19. package/dist/Slicer-BlfyiHHD.js +1144 -0
  20. package/dist/SlicerPreview-BPS8mYO2.js +1523 -0
  21. package/dist/SparkTooltip-c2DL7gqD.js +93 -0
  22. package/dist/Title-__gWq2g6.js +87 -0
  23. package/dist/Tooltip-B7lmdbac.js +307 -0
  24. package/dist/UserOptions-DMw8EZEo.js +1407 -0
  25. package/dist/_plugin-vue_export-helper-Dq1MygBL.js +8 -0
  26. package/dist/canvas-lib-DTaADQOK.js +79 -0
  27. package/dist/components/arrow.js +2 -5
  28. package/dist/components/vue-ui-3d-bar.js +2 -5
  29. package/dist/components/vue-ui-accordion.js +2 -5
  30. package/dist/components/vue-ui-age-pyramid.js +2 -5
  31. package/dist/components/vue-ui-annotator.js +2 -5
  32. package/dist/components/vue-ui-bullet.js +2 -5
  33. package/dist/components/vue-ui-bump.js +2 -5
  34. package/dist/components/vue-ui-candlestick.js +2 -5
  35. package/dist/components/vue-ui-carousel-table.js +2 -5
  36. package/dist/components/vue-ui-chestnut.js +2 -5
  37. package/dist/components/vue-ui-chord.js +2 -5
  38. package/dist/components/vue-ui-circle-pack.js +2 -5
  39. package/dist/components/vue-ui-cursor.js +2 -5
  40. package/dist/components/vue-ui-dag.js +2 -5
  41. package/dist/components/vue-ui-dashboard.js +2 -5
  42. package/dist/components/vue-ui-digits.js +2 -5
  43. package/dist/components/vue-ui-donut-evolution.js +2 -5
  44. package/dist/components/vue-ui-donut.js +2 -5
  45. package/dist/components/vue-ui-dumbbell.js +2 -5
  46. package/dist/components/vue-ui-flow.js +2 -5
  47. package/dist/components/vue-ui-funnel.js +2 -5
  48. package/dist/components/vue-ui-galaxy.js +2 -5
  49. package/dist/components/vue-ui-gauge.js +2 -5
  50. package/dist/components/vue-ui-geo.js +2 -5
  51. package/dist/components/vue-ui-gizmo.js +2 -5
  52. package/dist/components/vue-ui-heatmap.js +2 -5
  53. package/dist/components/vue-ui-history-plot.js +2 -5
  54. package/dist/components/vue-ui-horizontal-bar.js +2 -5
  55. package/dist/components/vue-ui-icon.js +2 -5
  56. package/dist/components/vue-ui-kpi.js +2 -5
  57. package/dist/components/vue-ui-mini-loader.js +2 -5
  58. package/dist/components/vue-ui-molecule.js +2 -5
  59. package/dist/components/vue-ui-mood-radar.js +2 -5
  60. package/dist/components/vue-ui-nested-donuts.js +2 -5
  61. package/dist/components/vue-ui-onion.js +2 -5
  62. package/dist/components/vue-ui-parallel-coordinate-plot.js +2 -5
  63. package/dist/components/vue-ui-pattern-seed.js +2 -5
  64. package/dist/components/vue-ui-pattern.js +2 -5
  65. package/dist/components/vue-ui-quadrant.js +2 -5
  66. package/dist/components/vue-ui-quick-chart.js +2 -5
  67. package/dist/components/vue-ui-radar.js +2 -5
  68. package/dist/components/vue-ui-rating.js +2 -5
  69. package/dist/components/vue-ui-relation-circle.js +2 -5
  70. package/dist/components/vue-ui-ridgeline.js +2 -5
  71. package/dist/components/vue-ui-rings.js +2 -5
  72. package/dist/components/vue-ui-scatter.js +2 -5
  73. package/dist/components/vue-ui-skeleton.js +2 -5
  74. package/dist/components/vue-ui-smiley.js +2 -5
  75. package/dist/components/vue-ui-spark-trend.js +2 -5
  76. package/dist/components/vue-ui-sparkbar.js +2 -5
  77. package/dist/components/vue-ui-sparkgauge.js +2 -5
  78. package/dist/components/vue-ui-sparkhistogram.js +2 -5
  79. package/dist/components/vue-ui-sparkline.js +2 -5
  80. package/dist/components/vue-ui-sparkstackbar.js +2 -5
  81. package/dist/components/vue-ui-stackbar.js +2 -5
  82. package/dist/components/vue-ui-stackline.js +2 -5
  83. package/dist/components/vue-ui-strip-plot.js +2 -5
  84. package/dist/components/vue-ui-table-heatmap.js +2 -5
  85. package/dist/components/vue-ui-table-sparkline.js +2 -5
  86. package/dist/components/vue-ui-table.js +2 -5
  87. package/dist/components/vue-ui-thermometer.js +2 -5
  88. package/dist/components/vue-ui-timer.js +2 -5
  89. package/dist/components/vue-ui-tiremarks.js +2 -5
  90. package/dist/components/vue-ui-treemap.js +2 -5
  91. package/dist/components/vue-ui-vertical-bar.js +2 -5
  92. package/dist/components/vue-ui-waffle.js +2 -5
  93. package/dist/components/vue-ui-wheel.js +2 -5
  94. package/dist/components/vue-ui-word-cloud.js +2 -5
  95. package/dist/components/vue-ui-world.js +2 -5
  96. package/dist/components/vue-ui-xy-canvas.js +2 -5
  97. package/dist/components/vue-ui-xy.js +2 -5
  98. package/dist/dom-to-png-9WSt6hXe.js +237 -0
  99. package/dist/exposedLib-CwWU4zv-.js +19 -0
  100. package/dist/geoProjections-CQIkC70z.js +146 -0
  101. package/dist/img-BjOr008R.js +74 -0
  102. package/dist/labelUtils-Cr97N8E1.js +19 -0
  103. package/dist/lib-BkiwukKO.js +1879 -0
  104. package/dist/patternUtils-B7BWu5bV.js +258 -0
  105. package/dist/pdf-DSXSFUnK.js +90 -0
  106. package/dist/rolldown-runtime-CAFD8bLK.js +11 -0
  107. package/dist/style.css +2 -1
  108. package/dist/types/arrow.d.ts +1 -1
  109. package/dist/types/utils.d.ts +23 -0
  110. package/dist/types/vue-data-ui.d.ts +4775 -627
  111. package/dist/types/vue-ui-3d-bar.d.ts +64 -9
  112. package/dist/types/vue-ui-accordion.d.ts +4 -3
  113. package/dist/types/vue-ui-age-pyramid.d.ts +79 -9
  114. package/dist/types/vue-ui-annotator.d.ts +3 -5
  115. package/dist/types/vue-ui-bullet.d.ts +60 -9
  116. package/dist/types/vue-ui-bump.d.ts +65 -9
  117. package/dist/types/vue-ui-candlestick.d.ts +83 -9
  118. package/dist/types/vue-ui-carousel-table.d.ts +36 -6
  119. package/dist/types/vue-ui-chestnut.d.ts +66 -9
  120. package/dist/types/vue-ui-chord.d.ts +78 -9
  121. package/dist/types/vue-ui-circle-pack.d.ts +86 -9
  122. package/dist/types/vue-ui-cursor.d.ts +4 -2
  123. package/dist/types/vue-ui-dag.d.ts +92 -9
  124. package/dist/types/vue-ui-dashboard.d.ts +43 -6
  125. package/dist/types/vue-ui-digits.d.ts +4 -2
  126. package/dist/types/vue-ui-donut-evolution.d.ts +70 -9
  127. package/dist/types/vue-ui-donut.d.ts +92 -9
  128. package/dist/types/vue-ui-dumbbell.d.ts +65 -9
  129. package/dist/types/vue-ui-flow.d.ts +79 -9
  130. package/dist/types/vue-ui-funnel.d.ts +55 -9
  131. package/dist/types/vue-ui-galaxy.d.ts +83 -9
  132. package/dist/types/vue-ui-gauge.d.ts +64 -9
  133. package/dist/types/vue-ui-geo.d.ts +71 -9
  134. package/dist/types/vue-ui-gizmo.d.ts +17 -6
  135. package/dist/types/vue-ui-heatmap.d.ts +73 -9
  136. package/dist/types/vue-ui-history-plot.d.ts +82 -9
  137. package/dist/types/vue-ui-horizontal-bar.d.ts +84 -9
  138. package/dist/types/vue-ui-icon.d.ts +2 -2
  139. package/dist/types/vue-ui-kpi.d.ts +21 -7
  140. package/dist/types/vue-ui-mini-loader.d.ts +5 -3
  141. package/dist/types/vue-ui-molecule.d.ts +86 -9
  142. package/dist/types/vue-ui-mood-radar.d.ts +66 -9
  143. package/dist/types/vue-ui-nested-donuts.d.ts +80 -9
  144. package/dist/types/vue-ui-onion.d.ts +77 -9
  145. package/dist/types/vue-ui-parallel-coordinate-plot.d.ts +92 -9
  146. package/dist/types/vue-ui-pattern-seed.d.ts +1 -1
  147. package/dist/types/vue-ui-pattern.d.ts +2 -2
  148. package/dist/types/vue-ui-quadrant.d.ts +86 -9
  149. package/dist/types/vue-ui-quick-chart.d.ts +79 -9
  150. package/dist/types/vue-ui-radar.d.ts +83 -9
  151. package/dist/types/vue-ui-rating.d.ts +22 -6
  152. package/dist/types/vue-ui-relation-circle.d.ts +66 -9
  153. package/dist/types/vue-ui-ridgeline.d.ts +69 -9
  154. package/dist/types/vue-ui-rings.d.ts +70 -9
  155. package/dist/types/vue-ui-scatter.d.ts +67 -9
  156. package/dist/types/vue-ui-skeleton.d.ts +3 -2
  157. package/dist/types/vue-ui-smiley.d.ts +3 -2
  158. package/dist/types/vue-ui-spark-trend.d.ts +14 -6
  159. package/dist/types/vue-ui-sparkbar.d.ts +27 -6
  160. package/dist/types/vue-ui-sparkgauge.d.ts +20 -6
  161. package/dist/types/vue-ui-sparkhistogram.d.ts +24 -6
  162. package/dist/types/vue-ui-sparkline.d.ts +35 -6
  163. package/dist/types/vue-ui-sparkstackbar.d.ts +35 -6
  164. package/dist/types/vue-ui-stackbar.d.ts +85 -9
  165. package/dist/types/vue-ui-stackline.d.ts +81 -9
  166. package/dist/types/vue-ui-strip-plot.d.ts +66 -9
  167. package/dist/types/vue-ui-table-heatmap.d.ts +52 -6
  168. package/dist/types/vue-ui-table-sparkline.d.ts +30 -6
  169. package/dist/types/vue-ui-table.d.ts +10 -2
  170. package/dist/types/vue-ui-thermometer.d.ts +46 -9
  171. package/dist/types/vue-ui-timer.d.ts +31 -5
  172. package/dist/types/vue-ui-tiremarks.d.ts +46 -9
  173. package/dist/types/vue-ui-treemap.d.ts +73 -9
  174. package/dist/types/vue-ui-vertical-bar.d.ts +2 -2
  175. package/dist/types/vue-ui-waffle.d.ts +72 -9
  176. package/dist/types/vue-ui-wheel.d.ts +46 -9
  177. package/dist/types/vue-ui-word-cloud.d.ts +73 -9
  178. package/dist/types/vue-ui-world.d.ts +68 -9
  179. package/dist/types/vue-ui-xy-canvas.d.ts +75 -9
  180. package/dist/types/vue-ui-xy.d.ts +108 -10
  181. package/dist/useAutoSizeLabelsInsideViewbox-dp-3Gg97.js +50 -0
  182. package/dist/useChartAccessibility-Do37qcw2.js +12 -0
  183. package/dist/useConfig-BV0kTCnO.js +7431 -0
  184. package/dist/useFitSvgText-C-MEdAfe.js +63 -0
  185. package/dist/useNestedProp-Ck4hsrpu.js +10 -0
  186. package/dist/useObjectBindings-Ce_ZZk-f.js +189 -0
  187. package/dist/usePanZoom-B-4M_gmY.js +157 -0
  188. package/dist/usePrefersMotion-BywLbIko.js +15 -0
  189. package/dist/usePrinter-X0yWOynH.js +49 -0
  190. package/dist/useResponsive-CrAInupd.js +19 -0
  191. package/dist/useStableElementSize-0I1IpHPl.js +77 -0
  192. package/dist/useSvgExport-Dtu973wa.js +755 -0
  193. package/dist/useTableResponsive-DrM1xqII.js +24 -0
  194. package/dist/useThemeCheck-rFK9Zlb_.js +24 -0
  195. package/dist/useTimeLabelCollider-Dm55Emzg.js +57 -0
  196. package/dist/useTimeLabels-C0x7zUXP.js +272 -0
  197. package/dist/useUserOptionState-CjPJPTg2.js +15 -0
  198. package/dist/utils.js +27 -44
  199. package/dist/vClickOutside-CbX_bC9A.js +13 -0
  200. package/dist/vue-data-ui-DIh8ayZc.js +274 -0
  201. package/dist/vue-data-ui.js +76 -167
  202. package/dist/vue-ui-3d-bar-BZ8_6ylo.js +1747 -0
  203. package/dist/vue-ui-accordion-cVv18nTV.js +81 -0
  204. package/dist/vue-ui-age-pyramid-BR3i-CgS.js +1226 -0
  205. package/dist/vue-ui-annotator-B9mA_PlF.js +2899 -0
  206. package/dist/vue-ui-bullet-ByJdNLVf.js +700 -0
  207. package/dist/vue-ui-bump-Ps1gkA-F.js +1239 -0
  208. package/dist/vue-ui-candlestick-0C1QFoV4.js +1802 -0
  209. package/dist/vue-ui-carousel-table-1P28pCRK.js +445 -0
  210. package/dist/vue-ui-chestnut-CJOCGWwX.js +2000 -0
  211. package/dist/vue-ui-chord-BpiVJCCm.js +1381 -0
  212. package/dist/vue-ui-circle-pack-C3wvXz1f.js +1183 -0
  213. package/dist/vue-ui-cursor-CNn_3b24.js +283 -0
  214. package/dist/vue-ui-dag-DRVXVCJV.js +2899 -0
  215. package/dist/vue-ui-dashboard-gOXyms0o.js +503 -0
  216. package/dist/vue-ui-digits-DIKyN3z6.js +209 -0
  217. package/dist/vue-ui-donut-RogzKj0G.js +2396 -0
  218. package/dist/vue-ui-donut-evolution-Bxz06Qqf.js +1490 -0
  219. package/dist/vue-ui-dumbbell-D10T4gmB.js +1517 -0
  220. package/dist/vue-ui-flow-OK563Z46.js +1223 -0
  221. package/dist/vue-ui-funnel-nWmbiJu5.js +767 -0
  222. package/dist/vue-ui-galaxy-CtaTlHWZ.js +1062 -0
  223. package/dist/vue-ui-gauge-DWTEHJqX.js +910 -0
  224. package/dist/vue-ui-geo-DUpWvv5m.js +1504 -0
  225. package/dist/vue-ui-gizmo-vddzP4dM.js +225 -0
  226. package/dist/vue-ui-heatmap-CUE_zJQa.js +1556 -0
  227. package/dist/vue-ui-history-plot-CcRg_NgJ.js +1551 -0
  228. package/dist/vue-ui-horizontal-bar-DX5aZOEn.js +1669 -0
  229. package/dist/vue-ui-kpi-B74v84Hu.js +96 -0
  230. package/dist/vue-ui-mini-loader-BcCG6Yqb.js +125 -0
  231. package/dist/vue-ui-molecule-CVdB8rxf.js +912 -0
  232. package/dist/vue-ui-mood-radar-CWDVBOck.js +1138 -0
  233. package/dist/vue-ui-nested-donuts-Be8b5d81.js +1472 -0
  234. package/dist/vue-ui-onion-Cs90yQQZ.js +1188 -0
  235. package/dist/vue-ui-parallel-coordinate-plot-D-mZdTop.js +1413 -0
  236. package/dist/vue-ui-pattern-Bj-IPFr2.js +154 -0
  237. package/dist/vue-ui-pattern-seed-abRweCDE.js +61 -0
  238. package/dist/vue-ui-quadrant-DLD_ZR9M.js +1966 -0
  239. package/dist/vue-ui-quick-chart-UWjZdmzt.js +2459 -0
  240. package/dist/vue-ui-radar-Bxu07MOG.js +1214 -0
  241. package/dist/vue-ui-rating-DA9Bmfyb.js +343 -0
  242. package/dist/vue-ui-relation-circle-O5s1UJtt.js +914 -0
  243. package/dist/vue-ui-ridgeline-C3siN0d_.js +1612 -0
  244. package/dist/vue-ui-rings-DVVDtwhB.js +1231 -0
  245. package/dist/vue-ui-scatter-Cfvh06OC.js +2380 -0
  246. package/dist/vue-ui-skeleton-CxTmGCQp.js +2556 -0
  247. package/dist/vue-ui-smiley-B6nc7b71.js +356 -0
  248. package/dist/vue-ui-spark-trend--39vutfQ.js +438 -0
  249. package/dist/vue-ui-sparkbar-DhCRNOu4.js +393 -0
  250. package/dist/vue-ui-sparkgauge-6Igkqlqs.js +255 -0
  251. package/dist/vue-ui-sparkhistogram-BLEzZSZi.js +560 -0
  252. package/dist/vue-ui-sparkline-ppwKM4aO.js +1503 -0
  253. package/dist/vue-ui-sparkstackbar-uIzSq9Wh.js +660 -0
  254. package/dist/vue-ui-stackbar-CdOkMCbI.js +2235 -0
  255. package/dist/vue-ui-stackline-DifD9OXC.js +2362 -0
  256. package/dist/vue-ui-strip-plot-D1LjIVqK.js +1328 -0
  257. package/dist/vue-ui-table-WDkEyyQ0.js +1338 -0
  258. package/dist/vue-ui-table-heatmap-CfGJVzI3.js +334 -0
  259. package/dist/vue-ui-table-sparkline-BEWWP4Rq.js +697 -0
  260. package/dist/vue-ui-thermometer-CFWOAB8K.js +753 -0
  261. package/dist/vue-ui-timer-D1DQyf9i.js +439 -0
  262. package/dist/vue-ui-tiremarks-IeM3BlPW.js +542 -0
  263. package/dist/vue-ui-treemap-BGZM7ibv.js +1575 -0
  264. package/dist/vue-ui-waffle-a3dFVBk4.js +1350 -0
  265. package/dist/vue-ui-wheel-OnIRQJ8a.js +875 -0
  266. package/dist/vue-ui-word-cloud-C9SkyutR.js +1644 -0
  267. package/dist/vue-ui-world-CEevuFbk.js +14252 -0
  268. package/dist/vue-ui-xy-1hee-IEM.js +4114 -0
  269. package/dist/vue-ui-xy-canvas-D2f0d45c.js +1774 -0
  270. package/dist/vue_ui_3d_bar-CXKqO5Ej.js +185 -0
  271. package/dist/vue_ui_age_pyramid-BON8QI6X.js +301 -0
  272. package/dist/vue_ui_bullet-CE5sFT7u.js +186 -0
  273. package/dist/vue_ui_bump-frnXaXul.js +201 -0
  274. package/dist/vue_ui_candlestick-sY6UtOop.js +374 -0
  275. package/dist/vue_ui_chestnut-BiUZFv40.js +305 -0
  276. package/dist/vue_ui_chord-DpyR_b9A.js +275 -0
  277. package/dist/vue_ui_circle_pack-DBKz_Fi_.js +130 -0
  278. package/dist/vue_ui_dag-Ci_MOnvd.js +258 -0
  279. package/dist/vue_ui_donut-Cx2_BGcQ.js +358 -0
  280. package/dist/vue_ui_donut_evolution-CAJefrHs.js +717 -0
  281. package/dist/vue_ui_dumbbell-CClzAZTN.js +304 -0
  282. package/dist/vue_ui_flow-CCHO1Lo9.js +238 -0
  283. package/dist/vue_ui_funnel-h8q2mRpC.js +234 -0
  284. package/dist/vue_ui_galaxy-70vtkEBw.js +265 -0
  285. package/dist/vue_ui_gauge-C17CgfzN.js +178 -0
  286. package/dist/vue_ui_geo-C0UbQ0Lc.js +248 -0
  287. package/dist/vue_ui_heatmap-BqPP3J4M.js +319 -0
  288. package/dist/vue_ui_history_plot-C5nytDHh.js +413 -0
  289. package/dist/vue_ui_horizontal_bar-Bqxorkc_.js +341 -0
  290. package/dist/vue_ui_molecule-Dka4JBOp.js +231 -0
  291. package/dist/vue_ui_mood_radar-Dg4ijm53.js +281 -0
  292. package/dist/vue_ui_nested_donuts-BY9cOoHF.js +273 -0
  293. package/dist/vue_ui_onion-DTV9cup-.js +293 -0
  294. package/dist/vue_ui_parallel_coordinate_plot-CNWrDh96.js +278 -0
  295. package/dist/vue_ui_quadrant-3kjYvxpj.js +428 -0
  296. package/dist/vue_ui_quick_chart--VaYQuM4.js +139 -0
  297. package/dist/vue_ui_radar-Dxx9GJmj.js +306 -0
  298. package/dist/vue_ui_relation_circle-Cr0I2SoU.js +98 -0
  299. package/dist/vue_ui_ridgeline-CAtYca4b.js +767 -0
  300. package/dist/vue_ui_rings-DXC1VeX5.js +320 -0
  301. package/dist/vue_ui_scatter-D2S2j0ap.js +479 -0
  302. package/dist/vue_ui_spark_trend-BHMQ6_1p.js +82 -0
  303. package/dist/vue_ui_sparkbar-BR6hbuDE.js +64 -0
  304. package/dist/vue_ui_sparkgauge-xfPRHnMv.js +90 -0
  305. package/dist/vue_ui_sparkhistogram-CJRENZ1C.js +123 -0
  306. package/dist/vue_ui_sparkline-wgk7yO7E.js +151 -0
  307. package/dist/vue_ui_sparkstackbar-C5qZMmAl.js +175 -0
  308. package/dist/vue_ui_stackbar-BW_C3MXw.js +412 -0
  309. package/dist/vue_ui_stackline-DpI2LnjO.js +426 -0
  310. package/dist/vue_ui_strip_plot-8ZelqC5b.js +301 -0
  311. package/dist/vue_ui_table_heatmap-BGUjA0WA.js +80 -0
  312. package/dist/vue_ui_table_sparkline-i0Q-N_we.js +124 -0
  313. package/dist/vue_ui_thermometer-CuN7Gpez.js +123 -0
  314. package/dist/vue_ui_tiremarks-A6UHC0c3.js +122 -0
  315. package/dist/vue_ui_treemap-BQp06q-g.js +328 -0
  316. package/dist/vue_ui_vertical_bar-CJSD1FZS.js +247 -0
  317. package/dist/vue_ui_waffle-C_Ev4l7B.js +292 -0
  318. package/dist/vue_ui_wheel-DdkTPXJU.js +133 -0
  319. package/dist/vue_ui_word_cloud-B1PbsYPc.js +254 -0
  320. package/dist/vue_ui_xy-BYPqfYyx.js +482 -0
  321. package/dist/vue_ui_xy_canvas-CMHGNrLf.js +408 -0
  322. package/package.json +7 -7
  323. package/dist/A11yDataTable-BpmuNomI.js +0 -54
  324. package/dist/Arrow-dSvLFssU.js +0 -101
  325. package/dist/BaseDraggableDialog-Di8Hlru3.js +0 -249
  326. package/dist/BaseIcon-DX0hTWa-.js +0 -476
  327. package/dist/BaseLegendToggle-cMP8M2u0.js +0 -47
  328. package/dist/BaseScanner-C2j3TsSY.js +0 -36
  329. package/dist/BaseZoomControls-CVSC1-SU.js +0 -123
  330. package/dist/ColorPicker-bAxGcXK0.js +0 -271
  331. package/dist/DataTable-cMnb68Ik.js +0 -145
  332. package/dist/Legend-DGN5lY60.js +0 -104
  333. package/dist/NonSvgPenAndPaper-B6E0zEYe.js +0 -573
  334. package/dist/PackageVersion-BfrCAH6_.js +0 -10
  335. package/dist/PenAndPaper-CJDoB5H9.js +0 -527
  336. package/dist/RecursiveCircles-BE6GoMmo.js +0 -101
  337. package/dist/RecursiveLabels-BhQMS9Sm.js +0 -55
  338. package/dist/RecursiveLinks-BDwyYfP-.js +0 -83
  339. package/dist/Shape-CxJ5_Rre.js +0 -116
  340. package/dist/Slicer-D7UcO8sN.js +0 -1145
  341. package/dist/SlicerPreview-D_CgrN_7.js +0 -1580
  342. package/dist/SparkTooltip-D4bM-kfz.js +0 -68
  343. package/dist/Title-BbKoiBk2.js +0 -88
  344. package/dist/Tooltip-Cvt7Fi0Q.js +0 -299
  345. package/dist/UserOptions-DVduN6X7.js +0 -1474
  346. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
  347. package/dist/dom-to-png-DGvx6i5V.js +0 -262
  348. package/dist/exposedLib-sJvY1pST.js +0 -22
  349. package/dist/geoProjections-BFq2sOBY.js +0 -162
  350. package/dist/img-CjTQXS0U.js +0 -57
  351. package/dist/labelUtils-DX9oyq3C.js +0 -26
  352. package/dist/lib-DMzrGQHK.js +0 -2477
  353. package/dist/patternUtils-BINhU4Ky.js +0 -615
  354. package/dist/pdf-C4H4o1Cj.js +0 -88
  355. package/dist/useAutoSizeLabelsInsideViewbox-izlGDfwu.js +0 -55
  356. package/dist/useChartAccessibility-cp6XQtqi.js +0 -15
  357. package/dist/useConfig-CG4HT3wS.js +0 -7901
  358. package/dist/useFitSvgText-2crs6Fv5.js +0 -69
  359. package/dist/useNestedProp-DH0BEVVS.js +0 -13
  360. package/dist/useObjectBindings-Dixg-RIe.js +0 -228
  361. package/dist/usePanZoom-BbDhcKWf.js +0 -141
  362. package/dist/usePrefersMotion-Co0nj1eS.js +0 -17
  363. package/dist/usePrinter-C4t8DdQ-.js +0 -51
  364. package/dist/useResponsive-DfdjqQps.js +0 -195
  365. package/dist/useStableElementSize-C48ZVcZQ.js +0 -77
  366. package/dist/useSvgExport-BTG4hVPO.js +0 -870
  367. package/dist/useTableResponsive-BpfiEtzR.js +0 -26
  368. package/dist/useThemeCheck-C9Ccl7U9.js +0 -36
  369. package/dist/useTimeLabelCollider-D3JeJ6Ye.js +0 -86
  370. package/dist/useTimeLabels-Cv0tD9In.js +0 -307
  371. package/dist/useUserOptionState-B7Ej974k.js +0 -19
  372. package/dist/vClickOutside-C6WiFswA.js +0 -13
  373. package/dist/vue-data-ui-D1ZI7Y4l.js +0 -433
  374. package/dist/vue-ui-3d-bar-DEjKYzI5.js +0 -1824
  375. package/dist/vue-ui-accordion-DFtpH_16.js +0 -92
  376. package/dist/vue-ui-age-pyramid-LiC9hTjP.js +0 -1179
  377. package/dist/vue-ui-annotator-DrKnQoHf.js +0 -2991
  378. package/dist/vue-ui-bullet-DdxEINdq.js +0 -769
  379. package/dist/vue-ui-bump-CdgO1V7z.js +0 -1250
  380. package/dist/vue-ui-candlestick-DxJnPwto.js +0 -1775
  381. package/dist/vue-ui-carousel-table-CMefu5TI.js +0 -487
  382. package/dist/vue-ui-chestnut-BnGN72PO.js +0 -2001
  383. package/dist/vue-ui-chord-DWyar45U.js +0 -1457
  384. package/dist/vue-ui-circle-pack-CQ8vF2XH.js +0 -1076
  385. package/dist/vue-ui-cursor-HHOdkmyB.js +0 -260
  386. package/dist/vue-ui-dag-BDWPBElq.js +0 -3209
  387. package/dist/vue-ui-dashboard-Dg_I3X2a.js +0 -627
  388. package/dist/vue-ui-digits-CZmdir8V.js +0 -211
  389. package/dist/vue-ui-donut-BKegKHxj.js +0 -2608
  390. package/dist/vue-ui-donut-evolution-047dE4Lu.js +0 -1578
  391. package/dist/vue-ui-dumbbell-BL4ZMChj.js +0 -1552
  392. package/dist/vue-ui-flow-BAqtyunQ.js +0 -1279
  393. package/dist/vue-ui-funnel-Pl2sEOZs.js +0 -823
  394. package/dist/vue-ui-galaxy-CBF5Wsax.js +0 -1108
  395. package/dist/vue-ui-gauge-COV_S0Vp.js +0 -955
  396. package/dist/vue-ui-geo-CaPXElPf.js +0 -1510
  397. package/dist/vue-ui-gizmo-Csn7up96.js +0 -238
  398. package/dist/vue-ui-heatmap-Cpb0BYLa.js +0 -1694
  399. package/dist/vue-ui-history-plot-ZZEdzFCE.js +0 -1564
  400. package/dist/vue-ui-horizontal-bar-BonPYUZf.js +0 -1735
  401. package/dist/vue-ui-kpi-DoHhSsDK.js +0 -130
  402. package/dist/vue-ui-mini-loader-DOTBVCLE.js +0 -138
  403. package/dist/vue-ui-molecule-mVYnXouV.js +0 -945
  404. package/dist/vue-ui-mood-radar-DPvwnc3z.js +0 -1197
  405. package/dist/vue-ui-nested-donuts-C7E6TXrZ.js +0 -1702
  406. package/dist/vue-ui-onion-BGIlFhGB.js +0 -1207
  407. package/dist/vue-ui-parallel-coordinate-plot-C6G_A9ua.js +0 -1432
  408. package/dist/vue-ui-pattern-mXZW_pvA.js +0 -146
  409. package/dist/vue-ui-pattern-seed-BcNlxb2i.js +0 -36
  410. package/dist/vue-ui-quadrant-CVpIeYOB.js +0 -1918
  411. package/dist/vue-ui-quick-chart-CcV8qn9-.js +0 -2514
  412. package/dist/vue-ui-radar-G4AV1rBo.js +0 -1259
  413. package/dist/vue-ui-rating-CqPlP88P.js +0 -370
  414. package/dist/vue-ui-relation-circle-CkZ8oFVV.js +0 -856
  415. package/dist/vue-ui-ridgeline-CBTyYn6Q.js +0 -1737
  416. package/dist/vue-ui-rings-CSIOqFiP.js +0 -1256
  417. package/dist/vue-ui-scatter-AuC46ufT.js +0 -2345
  418. package/dist/vue-ui-skeleton-YD6rZjY_.js +0 -2475
  419. package/dist/vue-ui-smiley-CY0WFv2j.js +0 -391
  420. package/dist/vue-ui-spark-trend-D8KGIt-R.js +0 -423
  421. package/dist/vue-ui-sparkbar-BjWGJjzN.js +0 -424
  422. package/dist/vue-ui-sparkgauge-Dab5mss7.js +0 -285
  423. package/dist/vue-ui-sparkhistogram-D0rsmiPh.js +0 -559
  424. package/dist/vue-ui-sparkline-BCaauQuX.js +0 -1550
  425. package/dist/vue-ui-sparkstackbar-NT5yD6xA.js +0 -672
  426. package/dist/vue-ui-stackbar-ChBk_A1c.js +0 -2393
  427. package/dist/vue-ui-stackline-Cujamlze.js +0 -2490
  428. package/dist/vue-ui-strip-plot-CGBumG6I.js +0 -1293
  429. package/dist/vue-ui-table-BX2iMku4.js +0 -1726
  430. package/dist/vue-ui-table-heatmap-KXgXYVXm.js +0 -353
  431. package/dist/vue-ui-table-sparkline-C3NWnry0.js +0 -803
  432. package/dist/vue-ui-thermometer-DvdceZB1.js +0 -743
  433. package/dist/vue-ui-timer-XWAbvuAY.js +0 -504
  434. package/dist/vue-ui-tiremarks-B-YI1RlT.js +0 -578
  435. package/dist/vue-ui-treemap-AzorGfmd.js +0 -1757
  436. package/dist/vue-ui-waffle-CKtUvdTE.js +0 -1442
  437. package/dist/vue-ui-wheel-CnsLEArZ.js +0 -908
  438. package/dist/vue-ui-word-cloud-iAme2ihe.js +0 -1644
  439. package/dist/vue-ui-world-D5rrC9rw.js +0 -14452
  440. package/dist/vue-ui-xy-C_Q9chQe.js +0 -4468
  441. package/dist/vue-ui-xy-canvas-DG0299qE.js +0 -2107
  442. package/dist/vue_ui_3d_bar-CL0iX8Qi.js +0 -22
  443. package/dist/vue_ui_age_pyramid-8H8WSL7J.js +0 -22
  444. package/dist/vue_ui_bullet-Ckqieba5.js +0 -22
  445. package/dist/vue_ui_bump-CIht647H.js +0 -22
  446. package/dist/vue_ui_candlestick-BAMn-VGw.js +0 -22
  447. package/dist/vue_ui_chestnut-BloFvDuV.js +0 -22
  448. package/dist/vue_ui_chord-Bc1_ocwK.js +0 -22
  449. package/dist/vue_ui_circle_pack-CLmw8nHe.js +0 -22
  450. package/dist/vue_ui_dag-ZOwuDBZ8.js +0 -22
  451. package/dist/vue_ui_donut-CA4dgV8J.js +0 -22
  452. package/dist/vue_ui_donut_evolution-DFQU-rqE.js +0 -22
  453. package/dist/vue_ui_dumbbell-BCOHDiPk.js +0 -22
  454. package/dist/vue_ui_flow-BErINgox.js +0 -22
  455. package/dist/vue_ui_funnel-yuaMZ-yb.js +0 -22
  456. package/dist/vue_ui_galaxy-D95AN4FT.js +0 -22
  457. package/dist/vue_ui_gauge-BMEuRC4J.js +0 -22
  458. package/dist/vue_ui_geo--kg4VoVX.js +0 -22
  459. package/dist/vue_ui_heatmap-C9u993qE.js +0 -22
  460. package/dist/vue_ui_history_plot-BCKk1CrQ.js +0 -22
  461. package/dist/vue_ui_horizontal_bar-BEagrV0T.js +0 -22
  462. package/dist/vue_ui_molecule-BtvlINUh.js +0 -22
  463. package/dist/vue_ui_mood_radar-BUs6Fdn8.js +0 -22
  464. package/dist/vue_ui_nested_donuts-DvTrWT_C.js +0 -22
  465. package/dist/vue_ui_onion-CxWH9_OZ.js +0 -22
  466. package/dist/vue_ui_parallel_coordinate_plot-DH3cFJ3n.js +0 -22
  467. package/dist/vue_ui_quadrant-DjRs--Uz.js +0 -22
  468. package/dist/vue_ui_quick_chart-DMCjEjPe.js +0 -22
  469. package/dist/vue_ui_radar-DryGBOrz.js +0 -22
  470. package/dist/vue_ui_relation_circle-CCroen7h.js +0 -22
  471. package/dist/vue_ui_ridgeline-j4rVmpEp.js +0 -22
  472. package/dist/vue_ui_rings-CxOrekqA.js +0 -22
  473. package/dist/vue_ui_scatter-Bu1EAy9H.js +0 -22
  474. package/dist/vue_ui_spark_trend-3BjrSprO.js +0 -22
  475. package/dist/vue_ui_sparkbar-BsMzz5Um.js +0 -22
  476. package/dist/vue_ui_sparkgauge-KnjASOZs.js +0 -22
  477. package/dist/vue_ui_sparkhistogram-GBdzIVvS.js +0 -22
  478. package/dist/vue_ui_sparkline-CQ8DJVJx.js +0 -22
  479. package/dist/vue_ui_sparkstackbar-BSexvOuM.js +0 -22
  480. package/dist/vue_ui_stackbar-CuDC4O4b.js +0 -22
  481. package/dist/vue_ui_stackline-QTh-nuxE.js +0 -22
  482. package/dist/vue_ui_strip_plot-B9ypi_F3.js +0 -22
  483. package/dist/vue_ui_table_heatmap-CkvipPVy.js +0 -16
  484. package/dist/vue_ui_table_sparkline-yQdijcyJ.js +0 -22
  485. package/dist/vue_ui_thermometer-BTmjRBH8.js +0 -22
  486. package/dist/vue_ui_tiremarks-DBotWfi8.js +0 -22
  487. package/dist/vue_ui_treemap-D9-AIkT-.js +0 -22
  488. package/dist/vue_ui_vertical_bar-CELc39b8.js +0 -18
  489. package/dist/vue_ui_waffle-M2h-uJQ_.js +0 -22
  490. package/dist/vue_ui_wheel-LqBz3lv4.js +0 -22
  491. package/dist/vue_ui_word_cloud-mKAtBxHR.js +0 -22
  492. package/dist/vue_ui_xy-esktmpg-.js +0 -22
  493. package/dist/vue_ui_xy_canvas-6BBDSowT.js +0 -22
@@ -1,1250 +0,0 @@
1
- import { defineAsyncComponent as V, computed as y, ref as h, toRefs as aa, onMounted as la, watch as he, shallowRef as et, onBeforeUnmount as tt, watchEffect as at, openBlock as r, createElementBlock as c, normalizeStyle as x, normalizeClass as lt, createElementVNode as W, toDisplayString as B, createBlock as U, createCommentVNode as b, unref as d, withCtx as g, renderSlot as f, normalizeProps as $, guardReactiveProps as S, createSlots as ot, createVNode as Se, Fragment as L, renderList as T, mergeProps as Ae, resolveDynamicComponent as oa, createTextVNode as nt, nextTick as na } from "vue";
2
- import { j as st, t as ut, m as sa, p as de, n as ua, o as rt, q as it, r as ra, s as ct, k as ia, l as ca, W as vt, a9 as R, c as va, b as ha, I as da, X as ya, Z as Te, a0 as fa, a1 as pa } from "./lib-DMzrGQHK.js";
3
- import { t as ht, u as ma } from "./useResponsive-DfdjqQps.js";
4
- import { u as ga } from "./useConfig-CG4HT3wS.js";
5
- import { u as ba, B as ka } from "./BaseScanner-C2j3TsSY.js";
6
- import { u as Ca } from "./usePrinter-C4t8DdQ-.js";
7
- import { u as wa } from "./useSvgExport-BTG4hVPO.js";
8
- import { u as Me } from "./useNestedProp-DH0BEVVS.js";
9
- import { u as La } from "./useThemeCheck-C9Ccl7U9.js";
10
- import { u as xa } from "./useTimeLabels-Cv0tD9In.js";
11
- import { u as $a } from "./useUserOptionState-B7Ej974k.js";
12
- import { u as Sa } from "./useChartAccessibility-cp6XQtqi.js";
13
- import { u as Aa } from "./useTimeLabelCollider-D3JeJ6Ye.js";
14
- import Ta from "./vue_ui_bump-CIht647H.js";
15
- import Ma from "./Title-BbKoiBk2.js";
16
- import { A as Pa } from "./A11yDataTable-BpmuNomI.js";
17
- import Ia from "./BaseDraggableDialog-Di8Hlru3.js";
18
- import { _ as za } from "./_plugin-vue_export-helper-CHgC5LLL.js";
19
- const Oa = ["id"], Ra = ["id"], _a = { style: { position: "relative" } }, Da = ["xmlns", "aria-describedby", "viewBox"], Na = ["x", "y", "width", "height"], Ha = ["d", "stroke", "stroke-width", "onMouseenter"], Ea = ["d", "stroke", "stroke-width", "onMouseenter", "onMouseleave", "onClick"], Fa = ["cx", "cy", "r", "fill", "stroke", "stroke-width", "onMouseenter", "onMouseleave", "onClick"], Va = ["x", "y", "fill", "font-size"], Wa = ["onMouseenter", "onMouseleave", "onClick"], Ba = ["x", "y", "fill", "font-size"], Ua = ["x", "y", "fill", "font-size", "font--weight", "innerHTML", "onMouseenter", "onMouseleave", "onClick"], Xa = ["x", "y", "fill", "font-size", "font--weight", "innerHTML", "onMouseenter", "onMouseleave", "onClick"], Ya = { key: 0 }, ja = { key: 1 }, qa = ["text-anchor", "font-size", "font-weight", "fill", "transform"], Ga = ["text-anchor", "font-size", "fill", "transform", "innerHTML"], Ka = {
20
- key: 0,
21
- style: { position: "absolute", top: "100%", left: "0", width: "100%" },
22
- "data-dom-to-png-ignore": "",
23
- "aria-hidden": "true"
24
- }, Za = {
25
- key: 5,
26
- class: "vue-data-ui-watermark"
27
- }, Ja = ["innerHTML"], Qa = {
28
- __name: "vue-ui-bump",
29
- props: {
30
- config: {
31
- type: Object,
32
- default() {
33
- return {};
34
- }
35
- },
36
- dataset: {
37
- type: Array,
38
- default() {
39
- return [];
40
- }
41
- }
42
- },
43
- emits: ["copyAlt"],
44
- setup(dt, { expose: yt, emit: ft }) {
45
- const pt = V(() => import("./BaseIcon-DX0hTWa-.js")), mt = V(() => import("./vue-ui-accordion-DFtpH_16.js")), gt = V(() => import("./DataTable-cMnb68Ik.js")), bt = V(
46
- () => import("./PenAndPaper-CJDoB5H9.js")
47
- ), kt = V(
48
- () => import("./UserOptions-DVduN6X7.js")
49
- ), Ct = V(
50
- () => import("./PackageVersion-BfrCAH6_.js")
51
- ), { vue_ui_bump: wt } = ga(), { isThemeValid: Lt, warnInvalidTheme: xt } = La(), w = dt, $t = ft, le = y({
52
- get() {
53
- return !!w.dataset && w.dataset.length;
54
- },
55
- set(t) {
56
- return t;
57
- }
58
- }), M = h(null), N = h(st()), Pe = h(0), Ie = h(null), ze = h(null), Oe = h(null), oe = h(!1), ye = h(!1), Re = h(0), St = h(0), X = h(null), fe = h(null), _e = h(!1), ne = h(!1), se = h(!1), p = h(null), pe = h(null), me = h(null), ge = h(null), P = h(null), be = h(!1), e = h(ke()), Y = y(
59
- () => e.value.userOptions.useCursorPointer
60
- ), At = y(() => ut({
61
- defaultConfig: {
62
- userOptions: { show: !1 },
63
- style: {
64
- chart: {
65
- backgroundColor: "#99999930",
66
- layout: {
67
- timeLabels: { show: !1 },
68
- lines: {
69
- coatingColor: "#4A4A4A"
70
- },
71
- plots: {
72
- stroke: "#4A4A4A",
73
- labels: {
74
- show: !1,
75
- displayedValue: "rank"
76
- }
77
- },
78
- nameLabels: {
79
- useSerieColor: !0
80
- }
81
- }
82
- }
83
- }
84
- },
85
- userConfig: e.value.skeletonConfig ?? {}
86
- })), { loading: ue, FINAL_DATASET: Tt, manualLoading: re } = ba({
87
- ...aa(w),
88
- FINAL_CONFIG: e,
89
- prepareConfig: ke,
90
- skeletonDataset: w.config?.skeletonDataset ?? [
91
- {
92
- name: "————",
93
- values: [1, 1, 1, 2, 2, 2, 3, 3, 2, 2],
94
- color: "#4A4A4A"
95
- },
96
- {
97
- name: "————",
98
- values: [2, 2, 2, 1, 3, 3, 2, 2, 3, 3],
99
- color: "#6A6A6A"
100
- },
101
- {
102
- name: "————",
103
- values: [3, 3, 3, 3, 1, 1, 1, 1, 1, 1],
104
- color: "#8A8A8A"
105
- }
106
- ],
107
- skeletonConfig: ut({
108
- defaultConfig: e.value,
109
- userConfig: At.value
110
- })
111
- });
112
- la(We);
113
- function ke() {
114
- const t = Me({
115
- userConfig: w.config,
116
- defaultConfig: wt
117
- });
118
- let l = {};
119
- const a = t.theme;
120
- if (a)
121
- if (!Lt.value(t))
122
- xt(t), l = t;
123
- else {
124
- const o = Me({
125
- userConfig: Ta[a] || w.config,
126
- defaultConfig: t
127
- });
128
- l = {
129
- ...Me({
130
- userConfig: w.config,
131
- defaultConfig: o
132
- }),
133
- customPalette: t.customPalette.length ? t.customPalette : sa[a] || de
134
- };
135
- }
136
- else
137
- l = t;
138
- return l;
139
- }
140
- const { userOptionsVisible: Ce, setUserOptionsVisibility: De, keepUserOptionState: Ne } = $a({ config: e.value }), { svgRef: j } = Sa({
141
- config: e.value.style.chart.title
142
- });
143
- function Mt() {
144
- _e.value = !0, De(!0);
145
- }
146
- function Pt() {
147
- De(!1), _e.value = !1;
148
- }
149
- const _ = h({
150
- showTable: e.value.table.show
151
- });
152
- he(
153
- e,
154
- () => {
155
- _.value = {
156
- showTable: e.value.table.show
157
- };
158
- },
159
- { immediate: !0 }
160
- ), he(
161
- () => w.config,
162
- (t) => {
163
- ue.value || (e.value = ke()), Ce.value = !e.value.userOptions.showOnChartHover, We(), Re.value += 1, St.value += 1, _.value.showTable = e.value.table.show, A.value.width = e.value.style.chart.width, A.value.height = e.value.style.chart.height, A.value.paddingRatio = {
164
- top: e.value.style.chart.padding.top / e.value.style.chart.height,
165
- right: e.value.style.chart.padding.right / e.value.style.chart.width,
166
- bottom: e.value.style.chart.padding.bottom / e.value.style.chart.height,
167
- left: e.value.style.chart.padding.left / e.value.style.chart.width
168
- };
169
- }
170
- ), he(
171
- () => w.dataset,
172
- (t) => {
173
- Array.isArray(t) && t.length > 0 && (re.value = !1);
174
- },
175
- { deep: !0 }
176
- );
177
- const { isPrinting: we, isImaging: Le, generatePdf: He, generateImage: Ee } = Ca({
178
- elementId: `bump_${N.value}`,
179
- fileName: e.value.style.chart.title.text || "vue-ui-bump",
180
- options: e.value.userOptions.print
181
- }), It = y(() => e.value.userOptions.show && !e.value.style.chart.title.text), A = h({
182
- width: e.value.style.chart.width,
183
- height: e.value.style.chart.height,
184
- paddingRatio: {
185
- top: e.value.style.chart.padding.top / e.value.style.chart.height,
186
- right: e.value.style.chart.padding.right / e.value.style.chart.width,
187
- bottom: e.value.style.chart.padding.bottom / e.value.style.chart.height,
188
- left: e.value.style.chart.padding.left / e.value.style.chart.width
189
- }
190
- }), zt = y(() => ua(e.value.customPalette)), I = et(null), H = et(null), Fe = h(null), Ve = y(() => !!e.value.debug);
191
- function We() {
192
- if (rt(w.dataset) ? (it({
193
- componentName: "VueUiBump",
194
- type: "dataset",
195
- debug: Ve.value
196
- }), re.value = !0) : w.dataset.forEach((t, l) => {
197
- ra({
198
- datasetObject: t,
199
- requiredAttributes: ["name", "values"]
200
- }).forEach((a) => {
201
- le.value = !1, it({
202
- componentName: "VueUiBump",
203
- type: "datasetSerieAttribute",
204
- property: a,
205
- index: l,
206
- debug: Ve.value
207
- }), re.value = !0;
208
- });
209
- }), rt(w.dataset) || (re.value = e.value.loading), setTimeout(() => {
210
- ye.value = !0;
211
- }, 10), e.value.responsive) {
212
- const t = ht(() => {
213
- ye.value = !1;
214
- const { width: l, height: a } = ma({
215
- chart: M.value,
216
- noTitle: ze.value,
217
- title: e.value.style.chart.title.text ? Ie.value : null,
218
- legend: null,
219
- slicer: null,
220
- source: Oe.value
221
- });
222
- requestAnimationFrame(() => {
223
- A.value.width = l, A.value.height = a - 12, clearTimeout(Fe.value), Fe.value = setTimeout(() => {
224
- ye.value = !0;
225
- }, 10);
226
- });
227
- });
228
- I.value && (H.value && I.value.unobserve(H.value), I.value.disconnect()), I.value = new ResizeObserver(t), H.value = M.value.parentNode, I.value.observe(H.value);
229
- }
230
- }
231
- tt(() => {
232
- I.value && (H.value && I.value.unobserve(H.value), I.value.disconnect());
233
- });
234
- const ie = y(() => Tt.value.map((t, l) => {
235
- const a = ct(t.color) || zt.value[l] || de[l] || de[l % de.length];
236
- return {
237
- ...t,
238
- absoluteIndex: l,
239
- id: st(),
240
- color: a
241
- };
242
- })), E = y(
243
- () => Math.max(...ie.value.map((t) => t.values.length))
244
- );
245
- function Ot(t) {
246
- const l = t.map(() => Array(E.value).fill(null));
247
- for (let a = 0; a < E.value; a += 1) {
248
- const o = t.map((n, s) => ({
249
- seriesIndex: s,
250
- value: n.values?.[a],
251
- previousPosition: a > 0 ? l[s][a - 1] : s
252
- })).filter((n) => Number.isFinite(n.value));
253
- o.sort((n, s) => s.value !== n.value ? s.value - n.value : n.previousPosition - s.previousPosition);
254
- for (let n = 0; n < o.length; n += 1) {
255
- const s = o[n];
256
- l[s.seriesIndex][a] = n;
257
- }
258
- }
259
- return l;
260
- }
261
- function Rt() {
262
- let t = 0;
263
- return pe.value && (t = Array.from(pe.value.querySelectorAll("tspan")).reduce((a, o) => {
264
- const n = o.getComputedTextLength();
265
- return n > a ? n : a;
266
- }, 0)), t;
267
- }
268
- function _t() {
269
- let t = 0;
270
- return me.value && (t = Array.from(me.value.querySelectorAll("tspan")).reduce((a, o) => {
271
- const n = o.getComputedTextLength();
272
- return n > a ? n : a;
273
- }, 0)), t;
274
- }
275
- const Be = h(0), Dt = ht((t) => {
276
- Be.value = t;
277
- }, 100);
278
- at((t) => {
279
- const l = ge.value;
280
- if (!l) return;
281
- const a = new ResizeObserver((o) => {
282
- Dt(o[0].contentRect.height);
283
- });
284
- a.observe(l), t(() => a.disconnect());
285
- }), tt(() => {
286
- Be.value = 0;
287
- });
288
- const Nt = y(() => {
289
- const t = e.value.style.chart.layout.timeLabels;
290
- if (!t.show) return 0;
291
- const l = t.fontSize, a = t.rotation, o = Math.PI / 180 * a, n = q.value || [];
292
- if (!n.length) return 0;
293
- const s = n.reduce((te, ae) => {
294
- const ve = String(ae?.text ?? "").split(`
295
- `).length;
296
- return Math.max(te, ve);
297
- }, 1), u = n.reduce((te, ae) => {
298
- const Qt = String(ae?.text ?? "").split(`
299
- `).reduce(
300
- (ea, ta) => Math.max(ea, ta.length),
301
- 0
302
- );
303
- return Math.max(te, Qt);
304
- }, 0), v = l * 1.3, m = s * v, k = u * l * (u === 1 ? 1 : 0.6), O = Math.abs(Math.sin(o)) * k + Math.abs(Math.cos(o)) * m, ee = l * 0.3;
305
- return Math.max(
306
- 0,
307
- O + Math.abs(t.offsetY) + ee
308
- );
309
- }), i = y(() => {
310
- const { height: t, width: l } = A.value, { right: a, left: o } = A.value.paddingRatio;
311
- let n = Rt(), s = _t();
312
- const u = e.value.style.chart.padding.top, v = l - l * a - s, m = l * o + n, k = l - l * a - l * o - n - s, O = t - u - e.value.style.chart.padding.bottom - Nt.value, ee = u + O, te = u + O, ae = Math.max(0, t), ve = Math.max(0, l);
313
- return {
314
- chartHeight: te,
315
- chartWidth: ve,
316
- top: u,
317
- right: Math.max(0, v),
318
- bottom: Math.max(0, ee),
319
- left: Math.max(0, m),
320
- width: Math.max(0, k),
321
- height: Math.max(0, O),
322
- unitH: Math.max(0, O) / ie.value.length,
323
- unitW: Math.max(0, k) / E.value,
324
- svgHeight: ae
325
- };
326
- }), C = y(() => {
327
- if (!le.value && !ue.value) return [];
328
- const t = Ot(ie.value);
329
- return ie.value.map((l, a) => ({
330
- ...l,
331
- positions: t[a]
332
- })).map((l) => {
333
- const a = l.positions.map((s, u) => {
334
- const v = ia(
335
- e.value.style.chart.layout.plots.labels.formatter,
336
- l.values[u],
337
- ca({
338
- p: e.value.style.chart.layout.plots.labels.prefix,
339
- v: l.values[u],
340
- s: e.value.style.chart.layout.plots.labels.suffix,
341
- r: e.value.style.chart.layout.plots.labels.rounding
342
- })
343
- );
344
- return {
345
- name: l.name,
346
- id: l.id,
347
- x: i.value.left + u * i.value.unitW + i.value.unitW / 2,
348
- y: i.value.top + s * i.value.unitH + i.value.unitH / 2,
349
- value: l.values[u],
350
- displayValue: v,
351
- rank: l.positions[u] + 1,
352
- color: l.color,
353
- labelColor: e.value.style.chart.layout.plots.labels.color === "auto" ? vt(l.color) : ct(
354
- e.value.style.chart.layout.plots.labels.color
355
- ) ?? vt(l.color)
356
- };
357
- }), o = a.filter(
358
- (s) => R(s.value)
359
- ), n = e.value.style.chart.layout.lines.smooth ? va(o) : ha(o);
360
- return {
361
- ...l,
362
- coordinates: a,
363
- path: n
364
- };
365
- });
366
- });
367
- y(() => C.value.flatMap((t, l) => t.coordinates.map((a, o) => ({
368
- ...a,
369
- pointIndex: o,
370
- seriesIndex: l,
371
- seriesId: t.id,
372
- seriesName: t.name,
373
- pointId: `${t.id}_${o}`
374
- })).filter((a) => R(a.value))));
375
- function Ue(t, l, a, o) {
376
- const n = t.toSorted((u, v) => u.y - v.y);
377
- for (let u = 1; u < n.length; u += 1) {
378
- const v = n[u - 1], m = n[u];
379
- m.y < v.y + l && (m.y = v.y + l);
380
- }
381
- const s = n.length - 1;
382
- if (s >= 0 && n[s].y > o) {
383
- n[s].y = o;
384
- for (let u = s - 1; u >= 0; u -= 1) {
385
- const v = n[u + 1], m = n[u];
386
- m.y > v.y - l && (m.y = v.y - l);
387
- }
388
- }
389
- if (n.length && n[0].y < a) {
390
- const u = a - n[0].y;
391
- for (let v = 0; v < n.length; v += 1)
392
- n[v].y += u;
393
- }
394
- return n;
395
- }
396
- const Xe = y(() => {
397
- const t = [], l = [];
398
- C.value.forEach((m) => {
399
- const k = m.coordinates.filter(
400
- (ee) => Number.isFinite(ee.rank)
401
- );
402
- if (!k.length) return;
403
- t.push({ ...k[0] });
404
- const O = k[k.length - 1];
405
- l.push({ ...O });
406
- });
407
- const a = e.value.style.chart.layout.nameLabels.fontSize, o = a * 1.4, n = i.value.top + a, s = i.value.bottom - a, u = Ue(
408
- l,
409
- o,
410
- n,
411
- s
412
- );
413
- return {
414
- left: Ue(
415
- t,
416
- o,
417
- n,
418
- s
419
- ),
420
- right: u
421
- };
422
- });
423
- function Ht(t) {
424
- const l = e.value.style.chart.layout.plots.labels.fontSize * 0.4, a = t.displayValue, o = a.length * (e.value.style.chart.layout.plots.labels.fontSize * (a.length === 1 ? 1 : 0.6)), n = e.value.style.chart.layout.plots.labels.fontSize, s = o + l * 2, u = n + l * 2, v = t.x - s / 2, m = t.y - u / 2, k = e.value.style.chart.layout.plots.strokeWidth;
425
- return {
426
- x: v - k / 2,
427
- y: m - k / 2,
428
- width: s + k,
429
- height: u + k,
430
- fill: t.color,
431
- stroke: e.value.style.chart.layout.plots.stroke,
432
- "stroke-width": k,
433
- rx: u / 2
434
- };
435
- }
436
- const D = h([]);
437
- let Ye = 0;
438
- at(() => {
439
- const t = ++Ye, l = e.value.style.chart.layout.timeLabels, a = l.values, o = l.datetimeFormatter, n = E.value;
440
- if (!n || !Array.isArray(a) || a.length === 0) {
441
- D.value = [];
442
- return;
443
- }
444
- (async () => {
445
- const s = await xa({
446
- values: a,
447
- maxDatapoints: n,
448
- formatter: o,
449
- start: 0,
450
- end: n
451
- });
452
- t === Ye && (D.value = s);
453
- })();
454
- });
455
- const Et = y(() => {
456
- const t = e.value.style.chart.layout.timeLabels.modulo;
457
- return D.value.length ? Math.min(
458
- t,
459
- [...new Set(D.value.map((l) => l.text))].length
460
- ) : t;
461
- }), q = y(() => {
462
- const t = e.value.style.chart.layout.timeLabels, l = D.value || [], a = D.value || [], o = 0, n = null, s = E.value, u = l.map((m) => m?.text ?? ""), v = a.map((m) => m?.text ?? "");
463
- return da(
464
- !!t.showOnlyFirstAndLast,
465
- !!t.showOnlyAtModulo,
466
- Math.max(1, Et.value || 1),
467
- u,
468
- v,
469
- o,
470
- n,
471
- s
472
- );
473
- }), Ft = y(() => A.value.width), Vt = y(() => A.value.height), Wt = y(() => ({
474
- start: 0,
475
- end: E.value
476
- })), G = y(() => [...C.value].map((t) => {
477
- const l = [...t.coordinates].filter((a) => R(a.value)).at(-1);
478
- return {
479
- ...t,
480
- navigationRank: l?.rank ?? Number.POSITIVE_INFINITY
481
- };
482
- }).sort((t, l) => t.navigationRank - l.navigationRank));
483
- function Bt() {
484
- P.value = null, be.value = !0;
485
- }
486
- function Ut() {
487
- qe(), be.value = !1;
488
- }
489
- function je(t, l) {
490
- const a = G.value.length;
491
- return a ? t === null || t < 0 || t >= a ? 0 : l === "previous" ? (t - 1 + a) % a : (t + 1) % a : null;
492
- }
493
- function qe() {
494
- if (P.value !== null) {
495
- const t = G.value[P.value];
496
- t && F(t);
497
- }
498
- P.value = null, p.value = null;
499
- }
500
- function Xt(t) {
501
- if (!j.value || Z.value || document.activeElement !== j.value || !G.value.length) return;
502
- const l = ["ArrowLeft", "ArrowUp"].includes(t.key), a = ["ArrowRight", "ArrowDown"].includes(t.key), o = t.key === "Enter" || t.key === " ", n = t.key === "Escape";
503
- if (!l && !a && !o && !n)
504
- return;
505
- if (t.preventDefault(), t.stopPropagation(), n) {
506
- qe();
507
- return;
508
- }
509
- if (o) {
510
- if (P.value === null) return;
511
- const v = G.value[P.value];
512
- if (!v) return;
513
- ce(v);
514
- return;
515
- }
516
- let s = P.value;
517
- s === null ? s = 0 : l ? s = je(s, "previous") : a && (s = je(s, "next"));
518
- const u = G.value[s];
519
- u && (P.value = s, z(u, u));
520
- }
521
- const K = y(() => ({
522
- head: Q.value.head,
523
- body: C.value.map((t) => [
524
- t.name,
525
- ...t.coordinates.map((l) => R(l.value) ? `${l.displayValue} (${l.rank})` : "-")
526
- ]),
527
- caption: e.value.a11y.translations.tableCaption,
528
- notice: e.value.a11y.translations.tableAvailable
529
- }));
530
- Aa({
531
- timeLabelsEls: ge,
532
- timeLabels: D,
533
- slicer: Wt,
534
- configRef: e,
535
- rotationPath: ["style", "chart", "layout", "timeLabels", "rotation"],
536
- autoRotatePath: [
537
- "style",
538
- "chart",
539
- "layout",
540
- "timeLabels",
541
- "autoRotate",
542
- "enable"
543
- ],
544
- isAutoSize: !1,
545
- width: Ft,
546
- height: Vt,
547
- rotation: e.value.style.chart.layout.timeLabels.autoRotate.angle
548
- });
549
- const Z = h(!1);
550
- function xe() {
551
- Z.value = !Z.value;
552
- }
553
- function Ge(t) {
554
- oe.value = t, Pe.value += 1;
555
- }
556
- function Ke() {
557
- _.value.showTable = !_.value.showTable;
558
- }
559
- he(
560
- () => _.value.showTable,
561
- (t) => {
562
- e.value.table.show || (t && e.value.table.useDialog && X.value ? X.value.open() : "close" in X.value && X.value.close());
563
- }
564
- );
565
- function Ze() {
566
- _.value.showTable = !1, fe.value && fe.value.setTableIconState(!1);
567
- }
568
- function Yt() {
569
- return C.value;
570
- }
571
- function $e(t = null) {
572
- const l = [
573
- [e.value.style.chart.title.text],
574
- [e.value.style.chart.title.subtitle.text],
575
- [""]
576
- ], a = ["", ...q.value.map((v) => v?.text ?? "")], o = C.value.map((v) => [v.name, ...v.coordinates.map((m) => `${m.displayValue}`)]), n = C.value.map((v) => [v.name, ...v.coordinates.map((m) => `${m.rank}`)]), s = l.concat([[e.value.table.columnNames.values]]).concat([a]).concat(o).concat([[""], [e.value.table.columnNames.ranking], [a]]).concat(n), u = fa(s);
577
- t ? t(u) : pa({
578
- csvContent: u,
579
- title: e.value.style.chart.title.text || "vue-ui-bump"
580
- });
581
- }
582
- const J = y(() => {
583
- const t = e.value.table.useDialog && !e.value.table.show, l = _.value.showTable;
584
- return {
585
- component: t ? Ia : mt,
586
- title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
587
- props: t ? {
588
- backgroundColor: e.value.table.th.backgroundColor,
589
- color: e.value.table.th.color,
590
- headerColor: e.value.table.th.color,
591
- headerBg: e.value.table.th.backgroundColor,
592
- isFullscreen: oe.value,
593
- fullscreenParent: M.value,
594
- forcedWidth: Math.min(800, window.innerWidth * 0.8),
595
- isCursorPointer: Y.value
596
- } : {
597
- hideDetails: !0,
598
- config: {
599
- open: l,
600
- maxHeight: 1e4,
601
- body: {
602
- backgroundColor: e.value.style.chart.backgroundColor,
603
- color: e.value.style.chart.color
604
- },
605
- head: {
606
- backgroundColor: e.value.style.chart.backgroundColor,
607
- color: e.value.style.chart.color
608
- }
609
- }
610
- }
611
- };
612
- }), Q = y(() => {
613
- const t = [""].concat(q.value.map((n) => n.text)), l = C.value.map((n, s) => [
614
- n.name,
615
- ...n.coordinates.map((u) => `${u.displayValue} (${u.rank})`)
616
- ]), a = {
617
- th: {
618
- backgroundColor: e.value.table.th.backgroundColor,
619
- color: e.value.table.th.color,
620
- outline: e.value.table.th.outline
621
- },
622
- td: {
623
- backgroundColor: e.value.table.td.backgroundColor,
624
- color: e.value.table.td.color,
625
- outline: e.value.table.td.outline
626
- },
627
- breakpoint: e.value.table.responsiveBreakpoint
628
- }, o = [e.value.table.columnNames.series];
629
- return { head: t, body: l, config: a, colNames: o };
630
- }), jt = y(() => e.value.style.chart.backgroundColor), qt = y(() => e.value.style.chart.title), { exportSvg: Gt, getSvg: Kt } = wa({
631
- svg: j,
632
- title: qt,
633
- legend: null,
634
- legendItems: null,
635
- backgroundColor: jt
636
- });
637
- async function Je({ isCb: t }) {
638
- se.value = !0, await na();
639
- try {
640
- if (t) {
641
- const { blob: l, url: a, text: o, dataUrl: n } = await Kt();
642
- await Promise.resolve(
643
- e.value.userOptions.callbacks.svg({
644
- blob: l,
645
- url: a,
646
- text: o,
647
- dataUrl: n
648
- })
649
- );
650
- } else
651
- await Promise.resolve(Gt());
652
- } finally {
653
- se.value = !1;
654
- }
655
- }
656
- async function Zt({ scale: t = 2 } = {}) {
657
- if (!M.value) return;
658
- const { width: l, height: a } = M.value.getBoundingClientRect(), o = l / a, { imageUri: n, base64: s } = await img({
659
- domElement: M.value,
660
- base64: !0,
661
- img: !0,
662
- scale: t
663
- });
664
- return {
665
- imageUri: n,
666
- base64: s,
667
- title: e.value.style.chart.title.text,
668
- width: l,
669
- height: a,
670
- aspectRatio: o
671
- };
672
- }
673
- function z(t, l) {
674
- p.value = l.id, e.value.events.datapointEnter && e.value.events.datapointEnter({
675
- datapoint: t,
676
- seriesIndex: t?.pointIndex ?? null
677
- });
678
- }
679
- function F(t, l) {
680
- p.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({
681
- datapoint: t,
682
- seriesIndex: t?.pointIndex ?? null
683
- });
684
- }
685
- function ce(t, l) {
686
- e.value.events.datapointClick && e.value.events.datapointClick({
687
- datapoint: t,
688
- seriesIndex: t?.pointIndex ?? null
689
- });
690
- }
691
- function Jt(t) {
692
- if (t?.stage === "start") {
693
- ne.value = !0;
694
- return;
695
- }
696
- if (t?.stage === "end") {
697
- ne.value = !1;
698
- return;
699
- }
700
- Ee();
701
- }
702
- async function Qe() {
703
- if ($t("copyAlt", {
704
- config: e.value,
705
- dataset: C.value
706
- }), !e.value.userOptions.callbacks.altCopy) {
707
- console.warn(
708
- "Vue Data UI - A callback must be set for `altCopy` in userOptions."
709
- );
710
- return;
711
- }
712
- await Promise.resolve(
713
- e.value.userOptions.callbacks.altCopy({
714
- config: e.value,
715
- dataset: C.value
716
- })
717
- );
718
- }
719
- return yt({
720
- getData: Yt,
721
- getImage: Zt,
722
- generatePdf: He,
723
- generateCsv: $e,
724
- generateImage: Ee,
725
- generateSvg: Je,
726
- toggleTable: Ke,
727
- toggleAnnotator: xe,
728
- toggleFullscreen: Ge,
729
- copyAlt: Qe
730
- }), (t, l) => (r(), c("div", {
731
- id: `bump_${N.value}`,
732
- ref_key: "bumpChart",
733
- ref: M,
734
- class: lt({
735
- "vue-data-ui-component": !0,
736
- "vue-ui-bump": !0,
737
- "vue-data-ui-wrapper-fullscreen": oe.value
738
- }),
739
- style: x(`background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color};font-family:${e.value.style.fontFamily}; position: relative; ${e.value.responsive ? "height: 100%" : ""}`),
740
- onMouseenter: Mt,
741
- onMouseleave: Pt
742
- }, [
743
- W("p", {
744
- id: `chart-instructions-${N.value}`,
745
- class: "sr-only"
746
- }, B(e.value.a11y.translations.keyboardNavigation), 9, Ra),
747
- K.value.body.length ? (r(), U(Pa, {
748
- key: 0,
749
- uid: N.value,
750
- head: K.value.head,
751
- body: K.value.body,
752
- caption: K.value.caption,
753
- notice: K.value.notice
754
- }, null, 8, ["uid", "head", "body", "caption", "notice"])) : b("", !0),
755
- e.value.userOptions.buttons.annotator ? (r(), U(d(bt), {
756
- key: 1,
757
- svgRef: d(j),
758
- backgroundColor: e.value.style.chart.backgroundColor,
759
- color: e.value.style.chart.color,
760
- active: Z.value,
761
- isCursorPointer: Y.value,
762
- onClose: xe
763
- }, {
764
- "annotator-action-close": g(() => [
765
- f(t.$slots, "annotator-action-close", {}, void 0, !0)
766
- ]),
767
- "annotator-action-color": g(({ color: a }) => [
768
- f(t.$slots, "annotator-action-color", $(S({ color: a })), void 0, !0)
769
- ]),
770
- "annotator-action-draw": g(({ mode: a }) => [
771
- f(t.$slots, "annotator-action-draw", $(S({ mode: a })), void 0, !0)
772
- ]),
773
- "annotator-action-undo": g(({ disabled: a }) => [
774
- f(t.$slots, "annotator-action-undo", $(S({ disabled: a })), void 0, !0)
775
- ]),
776
- "annotator-action-redo": g(({ disabled: a }) => [
777
- f(t.$slots, "annotator-action-redo", $(S({ disabled: a })), void 0, !0)
778
- ]),
779
- "annotator-action-delete": g(({ disabled: a }) => [
780
- f(t.$slots, "annotator-action-delete", $(S({ disabled: a })), void 0, !0)
781
- ]),
782
- _: 3
783
- }, 8, ["svgRef", "backgroundColor", "color", "active", "isCursorPointer"])) : b("", !0),
784
- f(t.$slots, "userConfig", {}, void 0, !0),
785
- It.value ? (r(), c("div", {
786
- key: 2,
787
- ref_key: "noTitle",
788
- ref: ze,
789
- class: "vue-data-ui-no-title-space",
790
- style: "height:36px; width: 100%;background:transparent"
791
- }, null, 512)) : b("", !0),
792
- e.value.style.chart.title.text ? (r(), c("div", {
793
- key: 3,
794
- ref_key: "chartTitle",
795
- ref: Ie,
796
- style: "width:100%;background:transparent;"
797
- }, [
798
- (r(), U(Ma, {
799
- key: `title_${Re.value}`,
800
- config: {
801
- title: {
802
- cy: "bump-title",
803
- ...e.value.style.chart.title
804
- },
805
- subtitle: {
806
- cy: "bump-subtitle",
807
- ...e.value.style.chart.title.subtitle
808
- }
809
- }
810
- }, null, 8, ["config"]))
811
- ], 512)) : b("", !0),
812
- e.value.userOptions.show && le.value && (d(Ne) || d(Ce)) ? (r(), U(d(kt), {
813
- ref_key: "userOptionsRef",
814
- ref: fe,
815
- key: `user_option_${Pe.value}`,
816
- backgroundColor: e.value.style.chart.backgroundColor,
817
- color: e.value.style.chart.color,
818
- isPrinting: d(we),
819
- isImaging: d(Le),
820
- uid: N.value,
821
- hasTooltip: !1,
822
- hasPdf: e.value.userOptions.buttons.pdf,
823
- hasImg: e.value.userOptions.buttons.img,
824
- hasSvg: e.value.userOptions.buttons.svg,
825
- hasXls: e.value.userOptions.buttons.csv,
826
- hasTable: e.value.userOptions.buttons.table,
827
- hasLabel: !1,
828
- hasAltCopy: e.value.userOptions.buttons.altCopy,
829
- hasFullscreen: e.value.userOptions.buttons.fullscreen,
830
- isFullcreen: oe.value,
831
- chartElement: M.value,
832
- position: e.value.userOptions.position,
833
- titles: { ...e.value.userOptions.buttonTitles },
834
- hasAnnotator: e.value.userOptions.buttons.annotator,
835
- isAnnotation: Z.value,
836
- callbacks: e.value.userOptions.callbacks,
837
- printScale: e.value.userOptions.print.scale,
838
- tableDialog: e.value.table.useDialog,
839
- isCursorPointer: Y.value,
840
- onToggleFullscreen: Ge,
841
- onGeneratePdf: d(He),
842
- onGenerateCsv: $e,
843
- onGenerateImage: Jt,
844
- onGenerateSvg: Je,
845
- onToggleTable: Ke,
846
- onToggleAnnotator: xe,
847
- onCopyAlt: Qe,
848
- style: x({
849
- visibility: d(Ne) ? d(Ce) ? "visible" : "hidden" : "visible"
850
- })
851
- }, ot({ _: 2 }, [
852
- t.$slots.menuIcon ? {
853
- name: "menuIcon",
854
- fn: g(({ isOpen: a, color: o }) => [
855
- f(t.$slots, "menuIcon", $(S({ isOpen: a, color: o })), void 0, !0)
856
- ]),
857
- key: "0"
858
- } : void 0,
859
- t.$slots.optionPdf ? {
860
- name: "optionPdf",
861
- fn: g(() => [
862
- f(t.$slots, "optionPdf", {}, void 0, !0)
863
- ]),
864
- key: "1"
865
- } : void 0,
866
- t.$slots.optionCsv ? {
867
- name: "optionCsv",
868
- fn: g(() => [
869
- f(t.$slots, "optionCsv", {}, void 0, !0)
870
- ]),
871
- key: "2"
872
- } : void 0,
873
- t.$slots.optionImg ? {
874
- name: "optionImg",
875
- fn: g(() => [
876
- f(t.$slots, "optionImg", {}, void 0, !0)
877
- ]),
878
- key: "3"
879
- } : void 0,
880
- t.$slots.optionSvg ? {
881
- name: "optionSvg",
882
- fn: g(() => [
883
- f(t.$slots, "optionSvg", {}, void 0, !0)
884
- ]),
885
- key: "4"
886
- } : void 0,
887
- t.$slots.optionTable ? {
888
- name: "optionTable",
889
- fn: g(() => [
890
- f(t.$slots, "optionTable", {}, void 0, !0)
891
- ]),
892
- key: "5"
893
- } : void 0,
894
- t.$slots.optionFullscreen ? {
895
- name: "optionFullscreen",
896
- fn: g(({ toggleFullscreen: a, isFullscreen: o }) => [
897
- f(t.$slots, "optionFullscreen", $(S({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
898
- ]),
899
- key: "6"
900
- } : void 0,
901
- t.$slots.optionAnnotator ? {
902
- name: "optionAnnotator",
903
- fn: g(({ toggleAnnotator: a, isAnnotator: o }) => [
904
- f(t.$slots, "optionAnnotator", $(S({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
905
- ]),
906
- key: "7"
907
- } : void 0,
908
- t.$slots.optionAltCopy ? {
909
- name: "optionAltCopy",
910
- fn: g(({ altCopy: a }) => [
911
- f(t.$slots, "optionAltCopy", $(S({ altCopy: a })), void 0, !0)
912
- ]),
913
- key: "8"
914
- } : void 0
915
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasAltCopy", "hasFullscreen", "isFullcreen", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "isCursorPointer", "onGeneratePdf", "style"])) : b("", !0),
916
- W("div", _a, [
917
- (r(), c("svg", {
918
- ref_key: "svgRef",
919
- ref: j,
920
- xmlns: d(ya),
921
- "aria-describedby": `chart-instructions-${N.value}`,
922
- viewBox: `0 0 ${i.value.chartWidth <= 0 ? 10 : i.value.chartWidth} ${i.value.svgHeight <= 0 ? 10 : i.value.svgHeight}`,
923
- class: lt({
924
- "vue-data-ui-loading": d(ue),
925
- "no-transition": !e.value.useCssAnimation,
926
- "with-transition": e.value.useCssAnimation
927
- }),
928
- style: x(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`),
929
- role: "img",
930
- "aria-live": "polite",
931
- preserveAspectRatio: "xMidYMid",
932
- tabindex: "0",
933
- onFocus: Bt,
934
- onBlur: Ut,
935
- onKeydown: Xt
936
- }, [
937
- Se(d(Ct)),
938
- t.$slots["chart-background"] ? (r(), c("foreignObject", {
939
- key: 0,
940
- x: i.value.left,
941
- y: i.value.top,
942
- width: i.value.width <= 0 ? 10 : i.value.width,
943
- height: i.value.height <= 0 ? 10 : i.value.height,
944
- style: {
945
- pointerEvents: "none"
946
- }
947
- }, [
948
- f(t.$slots, "chart-background", {}, void 0, !0)
949
- ], 8, Na)) : b("", !0),
950
- (r(!0), c(L, null, T(C.value, (a) => (r(), c(L, null, [
951
- W("path", {
952
- class: "transition-opacity",
953
- d: `M${a.path}`,
954
- stroke: e.value.style.chart.layout.lines.coatingColor,
955
- "stroke-width": e.value.style.chart.layout.lines.strokeWidth + 2,
956
- "stroke-linecap": "round",
957
- "stroke-linejoin": "round",
958
- fill: "none",
959
- style: x({
960
- opacity: p.value == null || p.value === a.id ? 1 : 0.1
961
- }),
962
- onMouseenter: (o) => p.value = a.id,
963
- onMouseleave: l[0] || (l[0] = (o) => p.value = null)
964
- }, null, 44, Ha),
965
- W("path", {
966
- class: "transition-opacity",
967
- d: `M${a.path}`,
968
- stroke: a.color,
969
- "stroke-width": e.value.style.chart.layout.lines.strokeWidth,
970
- "stroke-linecap": "round",
971
- "stroke-linejoin": "round",
972
- fill: "none",
973
- style: x({
974
- opacity: p.value == null || p.value === a.id ? 1 : 0.1
975
- }),
976
- onMouseenter: (o) => z(a, a),
977
- onMouseleave: (o) => F(a),
978
- onClick: (o) => ce(a)
979
- }, null, 44, Ea)
980
- ], 64))), 256)),
981
- (r(!0), c(L, null, T(C.value, (a) => (r(), c(L, null, [
982
- e.value.style.chart.layout.plots.labels.displayedValue === "rank" ? (r(!0), c(L, { key: 0 }, T(a.coordinates, (o, n) => (r(), c("circle", {
983
- class: "transition-opacity",
984
- cx: o.x,
985
- cy: o.y,
986
- r: e.value.style.chart.layout.plots.radius,
987
- fill: a.color,
988
- stroke: e.value.style.chart.layout.plots.stroke,
989
- "stroke-width": e.value.style.chart.layout.plots.strokeWidth,
990
- style: x({
991
- opacity: p.value == null || p.value === a.id ? 1 : 0.1
992
- }),
993
- onMouseenter: (s) => z({ ...o, pointIndex: n }, a),
994
- onMouseleave: (s) => F({ ...o, pointIndex: n }),
995
- onClick: (s) => z({ ...o, pointIndex: n }, a)
996
- }, null, 44, Fa))), 256)) : b("", !0),
997
- e.value.style.chart.layout.plots.labels.show && e.value.style.chart.layout.plots.labels.displayedValue === "rank" ? (r(!0), c(L, { key: 1 }, T(a.coordinates, (o) => (r(), c("text", {
998
- class: "transition-opacity",
999
- x: o.x,
1000
- y: o.y + e.value.style.chart.layout.plots.labels.fontSize / 3,
1001
- fill: o.labelColor,
1002
- "font-size": e.value.style.chart.layout.plots.labels.fontSize,
1003
- "text-anchor": "middle",
1004
- style: x({
1005
- userSelect: "none",
1006
- pointerEvents: "none",
1007
- opacity: p.value == null || p.value === a.id ? 1 : 0.1
1008
- })
1009
- }, B(o.rank), 13, Va))), 256)) : b("", !0),
1010
- e.value.style.chart.layout.plots.labels.displayedValue === "value" ? (r(!0), c(L, { key: 2 }, T(a.coordinates, (o) => (r(), c(L, null, [
1011
- d(R)(o.value) ? (r(), c("rect", Ae({
1012
- key: 0,
1013
- class: "transition-opacity"
1014
- }, { ref_for: !0 }, Ht(o), {
1015
- style: {
1016
- opacity: p.value == null || p.value === a.id ? 1 : 0.1
1017
- },
1018
- onMouseenter: (n) => z(
1019
- { ...t.point, pointIndex: t.i },
1020
- a
1021
- ),
1022
- onMouseleave: (n) => F(
1023
- { ...t.point, pointIndex: t.i }
1024
- ),
1025
- onClick: (n) => z(
1026
- { ...t.point, pointIndex: t.i },
1027
- a
1028
- )
1029
- }), null, 16, Wa)) : b("", !0),
1030
- d(R)(o.value) && e.value.style.chart.layout.plots.labels.show ? (r(), c("text", {
1031
- key: 1,
1032
- class: "transition-opacity",
1033
- x: o.x,
1034
- y: o.y + e.value.style.chart.layout.plots.labels.fontSize / 3,
1035
- fill: o.labelColor,
1036
- "font-size": e.value.style.chart.layout.plots.labels.fontSize,
1037
- "text-anchor": "middle",
1038
- style: x({
1039
- userSelect: "none",
1040
- pointerEvents: "none",
1041
- opacity: p.value == null || p.value === a.id ? 1 : 0.1
1042
- })
1043
- }, B(o.displayValue), 13, Ba)) : b("", !0)
1044
- ], 64))), 256)) : b("", !0)
1045
- ], 64))), 256)),
1046
- e.value.style.chart.layout.nameLabels.leftLabels.show ? (r(), c("g", {
1047
- key: 1,
1048
- ref_key: "labelsLeft",
1049
- ref: pe
1050
- }, [
1051
- (r(!0), c(L, null, T(Xe.value.left.filter(
1052
- (a) => d(R)(a.value)
1053
- ), (a, o) => (r(), c("text", {
1054
- class: "transition-opacity",
1055
- x: i.value.left,
1056
- y: a.y + e.value.style.chart.layout.nameLabels.fontSize / 3,
1057
- fill: e.value.style.chart.layout.nameLabels.useSerieColor ? a.color : e.value.style.chart.layout.nameLabels.color,
1058
- "font-size": e.value.style.chart.layout.nameLabels.fontSize,
1059
- "font--weight": e.value.style.chart.layout.nameLabels.bold ? "bold" : "normal",
1060
- "text-anchor": "end",
1061
- innerHTML: d(Te)({
1062
- content: a.name,
1063
- fontSize: e.value.style.chart.layout.nameLabels.fontSize,
1064
- fill: e.value.style.chart.layout.nameLabels.useSerieColor ? a.color : e.value.style.chart.layout.nameLabels.color,
1065
- x: i.value.left - e.value.style.chart.layout.nameLabels.offsetX,
1066
- y: a.y + e.value.style.chart.layout.nameLabels.fontSize / 3,
1067
- translateY: !0
1068
- }),
1069
- style: x({
1070
- opacity: p.value == null || p.value === a.id ? 1 : 0.1
1071
- }),
1072
- onMouseenter: (n) => z(a, a),
1073
- onMouseleave: (n) => F(a),
1074
- onClick: (n) => ce(a)
1075
- }, null, 44, Ua))), 256))
1076
- ], 512)) : b("", !0),
1077
- e.value.style.chart.layout.nameLabels.rightLabels.show ? (r(), c("g", {
1078
- key: 2,
1079
- ref_key: "labelsRight",
1080
- ref: me
1081
- }, [
1082
- (r(!0), c(L, null, T(Xe.value.right.filter(
1083
- (a) => d(R)(a.value)
1084
- ), (a, o) => (r(), c("text", {
1085
- class: "transition-opacity",
1086
- x: i.value.right,
1087
- y: a.y + e.value.style.chart.layout.nameLabels.fontSize / 3,
1088
- fill: e.value.style.chart.layout.nameLabels.useSerieColor ? a.color : e.value.style.chart.layout.nameLabels.color,
1089
- "font-size": e.value.style.chart.layout.nameLabels.fontSize,
1090
- "font--weight": e.value.style.chart.layout.nameLabels.bold ? "bold" : "normal",
1091
- "text-anchor": "start",
1092
- innerHTML: d(Te)({
1093
- content: a.name,
1094
- fontSize: e.value.style.chart.layout.nameLabels.fontSize,
1095
- fill: e.value.style.chart.layout.nameLabels.useSerieColor ? a.color : e.value.style.chart.layout.nameLabels.color,
1096
- x: i.value.right + e.value.style.chart.layout.nameLabels.offsetX,
1097
- y: a.y + e.value.style.chart.layout.nameLabels.fontSize / 3,
1098
- translateY: !0
1099
- }),
1100
- style: x({
1101
- opacity: p.value == null || p.value === a.id ? 1 : 0.1
1102
- }),
1103
- onMouseenter: (n) => z(a, a),
1104
- onMouseleave: (n) => F(a),
1105
- onClick: (n) => ce(a)
1106
- }, null, 44, Xa))), 256))
1107
- ], 512)) : b("", !0),
1108
- e.value.style.chart.layout.timeLabels.show ? (r(), c("g", {
1109
- key: 3,
1110
- ref_key: "timeLabelsEls",
1111
- ref: ge
1112
- }, [
1113
- t.$slots["time-label"] ? (r(), c("g", Ya, [
1114
- (r(!0), c(L, null, T(q.value, (a, o) => (r(), c("g", null, [
1115
- f(t.$slots, "time-label", Ae({ ref_for: !0 }, {
1116
- x: i.value.unitW * o + i.value.unitW / 2 + i.value.left,
1117
- y: i.value.chartHeight + e.value.style.chart.layout.timeLabels.offsetY,
1118
- fontSize: e.value.style.chart.layout.timeLabels.fontSize,
1119
- fill: e.value.style.chart.layout.timeLabels.color,
1120
- transform: `translate(${i.value.unitW * o + i.value.unitW / 2 + i.value.left}, ${i.value.chartHeight + e.value.style.chart.layout.timeLabels.offsetY}), rotate(${e.value.style.chart.layout.timeLabels.rotation})`,
1121
- absoluteIndex: a.absoluteIndex,
1122
- content: a.text,
1123
- textAnchor: e.value.style.chart.layout.timeLabels.rotation > 0 ? "start" : e.value.style.chart.layout.timeLabels.rotation < 0 ? "end" : "middle",
1124
- show: !0
1125
- }), void 0, !0)
1126
- ]))), 256))
1127
- ])) : (r(), c("g", ja, [
1128
- (r(!0), c(L, null, T(q.value, (a, o) => (r(), c("g", null, [
1129
- String(a.text).includes(`
1130
- `) ? (r(), c("text", {
1131
- key: o + "-multi",
1132
- "text-anchor": e.value.style.chart.layout.timeLabels.rotation > 0 ? "start" : e.value.style.chart.layout.timeLabels.rotation < 0 ? "end" : "middle",
1133
- "font-size": e.value.style.chart.layout.timeLabels.fontSize,
1134
- fill: e.value.style.chart.layout.timeLabels.color,
1135
- transform: `
1136
- translate(
1137
- ${i.value.unitW * o + i.value.unitW / 2 + i.value.left},
1138
- ${i.value.chartHeight + e.value.style.chart.layout.timeLabels.fontSize * 1.3 + e.value.style.chart.layout.timeLabels.offsetY}
1139
- ),
1140
- rotate(${e.value.style.chart.layout.timeLabels.rotation})
1141
- `,
1142
- innerHTML: d(Te)({
1143
- content: String(a.text),
1144
- fontSize: e.value.style.chart.layout.timeLabels.fontSize,
1145
- fill: e.value.style.chart.layout.timeLabels.color,
1146
- x: 0,
1147
- y: 0
1148
- })
1149
- }, null, 8, Ga)) : (r(), c("text", {
1150
- class: "vue-data-ui-time-label",
1151
- key: o,
1152
- "text-anchor": e.value.style.chart.layout.timeLabels.rotation > 0 ? "start" : e.value.style.chart.layout.timeLabels.rotation < 0 ? "end" : "middle",
1153
- "font-size": e.value.style.chart.layout.timeLabels.fontSize,
1154
- "font-weight": e.value.style.chart.layout.timeLabels.bold ? "bold" : "normal",
1155
- fill: e.value.style.chart.layout.timeLabels.color,
1156
- transform: `translate(${i.value.unitW * o + i.value.unitW / 2 + i.value.left}, ${i.value.chartHeight + e.value.style.chart.layout.timeLabels.offsetY}), rotate(${e.value.style.chart.layout.timeLabels.rotation})`
1157
- }, B(a.text), 9, qa))
1158
- ]))), 256))
1159
- ]))
1160
- ], 512)) : b("", !0),
1161
- f(t.$slots, "svg", {
1162
- svg: {
1163
- drawingArea: i.value,
1164
- data: C.value,
1165
- isPrintingImg: d(we) | d(Le) | ne.value,
1166
- isPrintingSvg: se.value
1167
- }
1168
- }, void 0, !0)
1169
- ], 46, Da)),
1170
- t.$slots.hint ? (r(), c("div", Ka, [
1171
- f(t.$slots, "hint", $(S({
1172
- hint: e.value.a11y.translations.keyboardNavigation,
1173
- isVisible: be.value
1174
- })), void 0, !0)
1175
- ])) : b("", !0)
1176
- ]),
1177
- t.$slots.watermark ? (r(), c("div", Za, [
1178
- f(t.$slots, "watermark", $(S({
1179
- isPrinting: d(we) || d(Le) || ne.value || se.value
1180
- })), void 0, !0)
1181
- ])) : b("", !0),
1182
- le.value && e.value.userOptions.buttons.table ? (r(), U(oa(J.value.component), Ae({ key: 6 }, J.value.props, {
1183
- ref_key: "tableUnit",
1184
- ref: X,
1185
- onClose: Ze
1186
- }), ot({
1187
- content: g(() => [
1188
- Se(d(gt), {
1189
- colNames: Q.value.colNames,
1190
- head: Q.value.head,
1191
- body: Q.value.body,
1192
- config: Q.value.config,
1193
- title: e.value.table.useDialog ? "" : J.value.title,
1194
- withCloseButton: !e.value.table.useDialog,
1195
- isCursorPointer: Y.value,
1196
- onClose: Ze
1197
- }, {
1198
- th: g(({ th: a }) => [
1199
- W("div", { innerHTML: a }, null, 8, Ja)
1200
- ]),
1201
- td: g(({ td: a }) => [
1202
- nt(B(a), 1)
1203
- ]),
1204
- _: 1
1205
- }, 8, ["colNames", "head", "body", "config", "title", "withCloseButton", "isCursorPointer"])
1206
- ]),
1207
- _: 2
1208
- }, [
1209
- e.value.table.useDialog ? {
1210
- name: "title",
1211
- fn: g(() => [
1212
- nt(B(J.value.title), 1)
1213
- ]),
1214
- key: "0"
1215
- } : void 0,
1216
- e.value.table.useDialog ? {
1217
- name: "actions",
1218
- fn: g(() => [
1219
- W("button", {
1220
- tabindex: "0",
1221
- class: "vue-ui-user-options-button",
1222
- onClick: l[1] || (l[1] = (a) => $e(e.value.userOptions.callbacks.csv)),
1223
- style: x({ cursor: Y.value ? "pointer" : "default" })
1224
- }, [
1225
- Se(d(pt), {
1226
- name: "fileCsv",
1227
- stroke: J.value.props.color
1228
- }, null, 8, ["stroke"])
1229
- ], 4)
1230
- ]),
1231
- key: "1"
1232
- } : void 0
1233
- ]), 1040)) : b("", !0),
1234
- t.$slots.source ? (r(), c("div", {
1235
- key: 7,
1236
- ref_key: "source",
1237
- ref: Oe,
1238
- dir: "auto"
1239
- }, [
1240
- f(t.$slots, "source", {}, void 0, !0)
1241
- ], 512)) : b("", !0),
1242
- f(t.$slots, "skeleton", {}, () => [
1243
- d(ue) ? (r(), U(ka, { key: 0 })) : b("", !0)
1244
- ], !0)
1245
- ], 46, Oa));
1246
- }
1247
- }, gl = /* @__PURE__ */ za(Qa, [["__scopeId", "data-v-805819e2"]]);
1248
- export {
1249
- gl as default
1250
- };