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,1737 +0,0 @@
1
- import { defineAsyncComponent as X, computed as d, ref as i, shallowRef as Ct, toRefs as Oa, onBeforeUnmount as At, watch as ie, nextTick as pe, watchEffect as wt, openBlock as n, createElementBlock as r, unref as u, normalizeStyle as _, normalizeClass as me, createElementVNode as g, toDisplayString as B, createBlock as P, createCommentVNode as h, withCtx as f, renderSlot as y, normalizeProps as S, guardReactiveProps as T, createSlots as Ee, createVNode as Xe, Fragment as m, renderList as O, mergeProps as Be, resolveDynamicComponent as La, createTextVNode as He } from "vue";
2
- import { j as Ue, t as $t, n as Ma, s as za, p as be, at as _t, P as Da, b as Pt, c as Ia, aj as Na, X as Ra, W as Fa, Z as Ea, k as xe, l as ke, m as Xa, q as Ve, r as St, o as Ba, a0 as Ha, a1 as Ua, ac as Va } from "./lib-DMzrGQHK.js";
3
- import { t as Tt, u as Wa } from "./useResponsive-DfdjqQps.js";
4
- import { u as Ga } from "./useConfig-CG4HT3wS.js";
5
- import { u as ja, B as Ka } from "./BaseScanner-C2j3TsSY.js";
6
- import { u as Ya } from "./usePrinter-C4t8DdQ-.js";
7
- import { u as qa } from "./useSvgExport-BTG4hVPO.js";
8
- import { u as We } from "./useNestedProp-DH0BEVVS.js";
9
- import { u as Za } from "./useTimeLabels-Cv0tD9In.js";
10
- import { u as Ja } from "./useThemeCheck-C9Ccl7U9.js";
11
- import { u as Qa } from "./useUserOptionState-B7Ej974k.js";
12
- import { u as el } from "./useChartAccessibility-cp6XQtqi.js";
13
- import { u as tl } from "./useTimeLabelCollider-D3JeJ6Ye.js";
14
- import al from "./vue_ui_ridgeline-j4rVmpEp.js";
15
- import ll from "./Legend-DGN5lY60.js";
16
- import ol from "./Title-BbKoiBk2.js";
17
- import { _ as sl } from "./Shape-CxJ5_Rre.js";
18
- import nl from "./img-CjTQXS0U.js";
19
- import { A as rl } from "./A11yDataTable-BpmuNomI.js";
20
- import { B as ul } from "./BaseLegendToggle-cMP8M2u0.js";
21
- import { _ as il } from "./_plugin-vue_export-helper-CHgC5LLL.js";
22
- const cl = ["id"], vl = ["id"], dl = { style: { position: "relative" } }, hl = ["xmlns", "aria-describedby", "viewBox"], fl = ["id"], yl = ["stop-color"], gl = ["stop-color"], pl = ["stop-color"], ml = ["stop-color"], bl = ["id"], xl = ["stop-color"], kl = ["stop-color"], Cl = ["stop-color"], Al = ["stop-color"], wl = { key: 0 }, $l = ["fill", "d"], _l = ["stroke", "stroke-width", "d"], Pl = ["fill", "d"], Sl = ["stroke", "stroke-dasharray", "stroke-width", "d"], Tl = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], Ol = ["cx", "cy", "stroke", "stroke-width", "r", "fill"], Ll = ["x", "y", "font-size", "font-weight", "fill", "text-decoration", "onMouseenter", "onClick"], Ml = { key: 0 }, zl = ["font-size", "fill", "font-weight", "transform", "text-anchor"], Dl = ["font-size", "fill", "font-weight", "transform", "text-anchor", "innerHTML"], Il = ["x", "y", "width", "height", "onMouseenter", "onMouseleave", "onClick"], Nl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Rl = ["cx", "cy", "stroke", "stroke-width", "r", "fill"], Fl = ["x", "y", "text-anchor", "font-size", "fill"], El = {
23
- key: 0,
24
- style: { position: "absolute", top: "100%", left: "0", width: "100%" },
25
- "data-dom-to-png-ignore": "",
26
- "aria-hidden": "true"
27
- }, Xl = {
28
- key: 5,
29
- class: "vue-data-ui-watermark"
30
- }, Bl = ["onClick"], Hl = ["innerHTML"], Ul = {
31
- __name: "vue-ui-ridgeline",
32
- props: {
33
- config: {
34
- type: Object,
35
- default() {
36
- return {};
37
- }
38
- },
39
- dataset: {
40
- type: Array,
41
- default() {
42
- return [];
43
- }
44
- }
45
- },
46
- emits: [
47
- "selectLegend",
48
- "selectDatapoint",
49
- "selectX",
50
- "copyAlt"
51
- ],
52
- setup(Ot, { expose: Lt, emit: Mt }) {
53
- const zt = X(() => import("./vue-ui-xy-C_Q9chQe.js")), Dt = X(() => import("./BaseIcon-DX0hTWa-.js")), It = X(() => import("./vue-ui-accordion-DFtpH_16.js")), Nt = X(() => import("./DataTable-cMnb68Ik.js")), Rt = X(
54
- () => import("./PenAndPaper-CJDoB5H9.js")
55
- ), Ft = X(
56
- () => import("./UserOptions-DVduN6X7.js")
57
- ), Et = X(
58
- () => import("./PackageVersion-BfrCAH6_.js")
59
- ), Ge = X(
60
- () => import("./BaseDraggableDialog-Di8Hlru3.js")
61
- ), { vue_ui_ridgeline: Xt } = Ga(), { isThemeValid: Bt, warnInvalidTheme: Ht } = Ja(), I = Ot, ee = d({
62
- get() {
63
- return Array.isArray(V.value) && V.value.length > 0;
64
- },
65
- set(t) {
66
- return t;
67
- }
68
- }), ce = Mt, z = i(null), je = i(null), Ke = i(null), N = Ct(null), H = Ct(null), Ye = i(null), qe = i(null), Ce = i(0), Ut = i(0), Ae = i(0), C = i(Ue()), Ze = i(0), Vt = i(0), Je = i(512), c = i(null), Y = i(null), we = i(null), Qe = i(0), $e = i(null), te = i(null), _e = i(null), ve = i(!1), de = i(!1), U = i(null), Pe = i(!1);
69
- function Se() {
70
- const t = We({
71
- userConfig: I.config,
72
- defaultConfig: Xt
73
- }), l = t.theme;
74
- if (!l) return t;
75
- if (!Bt.value(t))
76
- return Ht(t), t;
77
- const a = We({
78
- userConfig: al[l] || I.config,
79
- defaultConfig: t
80
- }), s = We({
81
- userConfig: I.config,
82
- defaultConfig: a
83
- });
84
- return {
85
- ...s,
86
- customPalette: s.customPalette.length ? s.customPalette : Xa[l] || be
87
- };
88
- }
89
- const e = i(Se()), D = d(
90
- () => e.value.userOptions.useCursorPointer
91
- ), Wt = d(() => $t({
92
- defaultConfig: {
93
- userOptions: { show: !1 },
94
- table: { show: !1 },
95
- style: {
96
- chart: {
97
- backgroundColor: "#99999930",
98
- areas: {
99
- maxPoint: {
100
- show: !1
101
- },
102
- opacity: 0.9,
103
- stroke: {
104
- useSerieColor: !0
105
- }
106
- },
107
- legend: {
108
- backgroundColor: "transparent"
109
- },
110
- padding: {
111
- right: -24,
112
- left: 0
113
- },
114
- xAxis: {
115
- labels: {
116
- values: []
117
- }
118
- },
119
- yAxis: {
120
- labels: {
121
- fontSize: 0
122
- }
123
- },
124
- zeroLine: { show: !1 }
125
- }
126
- }
127
- },
128
- userConfig: e.value.skeletonConfig ?? {}
129
- })), { loading: q, FINAL_DATASET: V, manualLoading: Te } = ja({
130
- ...Oa(I),
131
- FINAL_CONFIG: e,
132
- prepareConfig: Se,
133
- skeletonDataset: I.config?.skeletonDataset ?? [
134
- {
135
- name: "_",
136
- datapoints: [
137
- {
138
- name: "__",
139
- color: "#999999",
140
- values: [
141
- 28.639,
142
- 32.04,
143
- 41.134,
144
- 44.525,
145
- 21.151,
146
- 2.436,
147
- 0.218,
148
- 0.024,
149
- 2e-3,
150
- 0,
151
- 0,
152
- 0
153
- ]
154
- },
155
- {
156
- name: "_",
157
- color: "#CACACA",
158
- values: [
159
- 13.253,
160
- 15.621,
161
- 23.36,
162
- 33.698,
163
- 29.935,
164
- 10.874,
165
- 2.364,
166
- 0.561,
167
- 0.107,
168
- 0.02,
169
- 6e-3,
170
- 4e-3
171
- ]
172
- }
173
- ]
174
- },
175
- {
176
- name: "_",
177
- datapoints: [
178
- {
179
- name: "_",
180
- color: "#999999",
181
- values: [
182
- 10.851,
183
- 13.195,
184
- 21.617,
185
- 36.556,
186
- 42.292,
187
- 21.006,
188
- 3.398,
189
- 0.223,
190
- 0.013,
191
- 1e-3,
192
- 0,
193
- 0
194
- ]
195
- },
196
- {
197
- name: "_",
198
- color: "#CACACA",
199
- values: [
200
- 3.171,
201
- 4.115,
202
- 8.108,
203
- 18.248,
204
- 31.641,
205
- 29.063,
206
- 12.031,
207
- 2.742,
208
- 0.504,
209
- 0.102,
210
- 0.032,
211
- 0.021
212
- ]
213
- }
214
- ]
215
- },
216
- {
217
- name: "_",
218
- datapoints: [
219
- {
220
- name: "_",
221
- color: "#999999",
222
- values: [
223
- 1.731,
224
- 2.334,
225
- 5.125,
226
- 13.626,
227
- 29.911,
228
- 38.524,
229
- 24.168,
230
- 7.646,
231
- 1.575,
232
- 0.317,
233
- 0.097,
234
- 0.063
235
- ]
236
- },
237
- {
238
- name: "_",
239
- color: "#CACACA",
240
- values: [
241
- 0.25,
242
- 0.367,
243
- 1.026,
244
- 3.944,
245
- 13.635,
246
- 28.891,
247
- 30.149,
248
- 15.419,
249
- 4.714,
250
- 1.246,
251
- 0.442,
252
- 0.299
253
- ]
254
- }
255
- ]
256
- },
257
- {
258
- name: "_",
259
- datapoints: [
260
- {
261
- name: "_",
262
- color: "#999999",
263
- values: [
264
- 0.034,
265
- 0.054,
266
- 0.194,
267
- 1.065,
268
- 5.747,
269
- 20.735,
270
- 38.306,
271
- 32.899,
272
- 15.318,
273
- 5.566,
274
- 2.422,
275
- 1.76
276
- ]
277
- },
278
- {
279
- name: "_",
280
- color: "#CACACA",
281
- values: [
282
- 1e-3,
283
- 2e-3,
284
- 9e-3,
285
- 0.095,
286
- 1.124,
287
- 8.342,
288
- 27.115,
289
- 35.08,
290
- 21.449,
291
- 9.093,
292
- 4.243,
293
- 3.143
294
- ]
295
- }
296
- ]
297
- },
298
- {
299
- name: "_",
300
- datapoints: [
301
- {
302
- name: "_",
303
- color: "#999999",
304
- values: [
305
- 0,
306
- 1e-3,
307
- 4e-3,
308
- 0.051,
309
- 0.567,
310
- 3.322,
311
- 14.215,
312
- 44.783,
313
- 40.351,
314
- 20.377,
315
- 9.866,
316
- 7.378
317
- ]
318
- },
319
- {
320
- name: "_",
321
- color: "#CACACA",
322
- values: [
323
- 0,
324
- 0,
325
- 0,
326
- 0,
327
- 1e-3,
328
- 0.11,
329
- 4.136,
330
- 27.498,
331
- 43.24,
332
- 29.807,
333
- 17.345,
334
- 13.678
335
- ]
336
- }
337
- ]
338
- },
339
- {
340
- name: "_",
341
- datapoints: [
342
- {
343
- name: "_",
344
- color: "#999999",
345
- values: [
346
- 0,
347
- 0,
348
- 0,
349
- 0,
350
- 0.025,
351
- 0.598,
352
- 3.886,
353
- 10.645,
354
- 54.479,
355
- 45.953,
356
- 30.814,
357
- 24.55
358
- ]
359
- },
360
- {
361
- name: "_",
362
- color: "#CACACA",
363
- values: [
364
- 0,
365
- 0,
366
- 0,
367
- 0,
368
- 0,
369
- 0,
370
- 7e-3,
371
- 1.655,
372
- 26.63,
373
- 52.017,
374
- 45.192,
375
- 39.651
376
- ]
377
- }
378
- ]
379
- }
380
- ],
381
- skeletonConfig: $t({
382
- defaultConfig: e.value,
383
- userConfig: Wt.value
384
- })
385
- }), L = i(
386
- Math.min(
387
- e.value.style.chart.areas.height,
388
- e.value.style.chart.areas.rowHeight
389
- )
390
- ), { userOptionsVisible: he, setUserOptionsVisibility: et, keepUserOptionState: tt } = Qa({ config: e.value }), { svgRef: Z } = el({
391
- config: e.value.style.chart.title
392
- }), Oe = d(() => !!e.value.debug);
393
- function at() {
394
- const t = V.value || [];
395
- if (!Array.isArray(t) || t.length === 0) {
396
- Ve({
397
- componentName: "VueUiRidgeline",
398
- type: "dataset",
399
- debug: Oe.value
400
- }), Te.value = !0;
401
- return;
402
- }
403
- if (t.forEach((l, a) => {
404
- St({
405
- datasetObject: l,
406
- requiredAttributes: ["name", "datapoints"]
407
- }).forEach((s) => {
408
- ee.value = !1, Ve({
409
- componentName: "VueUiRidgeline",
410
- type: "datasetSerieAttribute",
411
- property: s,
412
- index: a,
413
- debug: Oe.value
414
- });
415
- }), Array.isArray(l.datapoints) && l.datapoints.length && l.datapoints.forEach((s, o) => {
416
- St({
417
- datasetObject: s,
418
- requiredAttributes: ["name", "values"]
419
- }).forEach((v) => {
420
- ee.value = !1, Ve({
421
- componentName: "VueUiRidgeline",
422
- type: "datasetSerieAttribute",
423
- property: `datapoint.${v}`,
424
- index: `${a}-${o}`,
425
- debug: Oe.value
426
- });
427
- });
428
- });
429
- }), Vt.value = t.length, L.value = Math.min(
430
- e.value.style.chart.areas.height,
431
- e.value.style.chart.areas.rowHeight
432
- ), Ba(I.dataset) || (Te.value = e.value.loading), e.value.responsive) {
433
- const l = Tt(() => {
434
- const { width: a, height: s } = Wa({
435
- chart: z.value,
436
- title: e.value.style.chart.title.text ? je.value : null,
437
- legend: e.value.style.chart.legend.show ? Ke.value : null,
438
- source: Ye.value,
439
- noTitle: qe.value,
440
- padding: e.value.style.chart.padding
441
- });
442
- requestAnimationFrame(() => {
443
- Je.value = a, L.value = t.length ? s / t.length : 0, Qe.value = s - 12;
444
- });
445
- });
446
- N.value && (H.value && N.value.unobserve(H.value), N.value.disconnect()), N.value = new ResizeObserver(l), H.value = z.value?.parentNode || null, H.value && N.value.observe(H.value);
447
- }
448
- }
449
- At(() => {
450
- N.value && (H.value && N.value.unobserve(H.value), N.value.disconnect());
451
- });
452
- const { isPrinting: Le, isImaging: Me, generatePdf: lt, generateImage: ot } = Ya({
453
- elementId: `vue-ui-ridgeline_${C.value}`,
454
- fileName: e.value.style.chart.title.text || "vue-ui-ridgeline",
455
- options: e.value.userOptions.print
456
- }), Gt = d(() => e.value.userOptions.show && !e.value.style.chart.title.text), jt = d(() => Ma(e.value.customPalette)), W = i({
457
- showTable: e.value.table.show
458
- });
459
- ie(
460
- () => V.value,
461
- async (t) => {
462
- Array.isArray(t) && t.length && (he.value = !e.value.userOptions.showOnChartHover, await pe(), at(), Ce.value += 1, Ae.value += 1, W.value.showTable = e.value.table.show);
463
- },
464
- { deep: !0, immediate: !0 }
465
- ), ie(
466
- () => I.dataset,
467
- (t) => {
468
- Array.isArray(t) && t.length > 0 && (Te.value = !1);
469
- },
470
- { deep: !0 }
471
- ), ie(
472
- () => q.value,
473
- async (t) => {
474
- t || (await pe(), at());
475
- },
476
- { immediate: !0 }
477
- ), ie(
478
- () => I.config,
479
- () => {
480
- e.value = Se(V.value || null), he.value = !e.value.userOptions.showOnChartHover, L.value = Math.min(
481
- e.value.style.chart.areas.height,
482
- e.value.style.chart.areas.rowHeight
483
- ), W.value.showTable = e.value.table.show, Ce.value += 1, Ae.value += 1;
484
- },
485
- { deep: !0 }
486
- );
487
- const ze = d(() => e.value.style.chart.areas.height / e.value.style.chart.areas.rowHeight);
488
- function Kt() {
489
- x.value.length ? x.value = [] : F.value.forEach((t) => {
490
- x.value.push(t.id);
491
- });
492
- }
493
- function fe(t) {
494
- x.value.includes(t) ? x.value = x.value.filter((l) => l !== t) : x.value.push(t), ce("selectLegend", w.value);
495
- }
496
- function st(t) {
497
- if (!F.value.length)
498
- return e.value.debug && console.warn("VueUiRidgeline - There are no series to show."), null;
499
- const l = F.value.find((a) => a.name === t);
500
- return l || (e.value.debug && console.warn(`VueUiRidgeline - Series name not found "${t}"`), null);
501
- }
502
- function Yt(t) {
503
- const l = st(t);
504
- l !== null && x.value.includes(l.id) && fe(l.id);
505
- }
506
- function qt(t) {
507
- const l = st(t);
508
- l !== null && (x.value.includes(l.id) || fe(l.id));
509
- }
510
- const R = d(() => ee.value ? (V.value || []).map((t) => ({
511
- ...t,
512
- labelLen: ta(
513
- t.name,
514
- e.value.style.chart.yAxis.labels.fontSize
515
- ),
516
- uid: Ue(),
517
- datapoints: t.datapoints.map((l, a) => {
518
- const s = l.color ? za(l.color) : jt.value[a] || be[a] || be[a % be.length], o = _t(l.name);
519
- return { ...l, color: s, id: o };
520
- })
521
- })) : []), nt = d(() => e.value.style.chart.padding.top + L.value * (V.value || []).length + L.value * ze.value + e.value.style.chart.padding.bottom), p = d(() => {
522
- const t = e.value.style.chart.padding;
523
- return {
524
- width: Je.value,
525
- height: nt.value,
526
- padding: t
527
- };
528
- }), Zt = d(() => p.value.width), Jt = d(() => p.value.height), De = i(0), Qt = Tt((t) => {
529
- De.value = t;
530
- }, 100);
531
- wt((t) => {
532
- const l = $e.value;
533
- if (!l) return;
534
- const a = new ResizeObserver((s) => {
535
- Qt(s[0].contentRect.height);
536
- });
537
- a.observe(l), t(() => a.disconnect());
538
- }), At(() => {
539
- De.value = 0;
540
- });
541
- const A = d(() => ({
542
- fullHeight: p.value.height + De.value,
543
- top: p.value.padding.top,
544
- left: p.value.padding.left,
545
- right: p.value.width - p.value.padding.right,
546
- bottom: p.value.height - e.value.style.chart.padding.bottom,
547
- width: p.value.width - (p.value.padding.left + p.value.padding.right)
548
- })), ae = d(() => Math.max(
549
- ...R.value.flatMap(
550
- (t) => t.datapoints.map((l) => l.values.length)
551
- )
552
- )), J = i([]);
553
- let rt = 0;
554
- wt(() => {
555
- const t = ++rt;
556
- (async () => {
557
- const l = await Za({
558
- values: e.value.style.chart.xAxis.labels.values,
559
- maxDatapoints: ae.value,
560
- formatter: e.value.style.chart.xAxis.labels.datetimeFormatter,
561
- start: 0,
562
- end: e.value.style.chart.xAxis.labels.values.length
563
- });
564
- t === rt && (J.value = l);
565
- })();
566
- });
567
- const M = d(() => {
568
- const t = Math.max(
569
- ...R.value.map((o) => o.labelLen)
570
- ), l = p.value.padding.left + t + 16 + e.value.style.chart.yAxis.labels.offsetX, a = (A.value.width - l) / ae.value, s = [];
571
- for (let o = 0; o < ae.value; o += 1)
572
- s.push({
573
- selectorX: l + a * o,
574
- x: l + a * o - a / 2,
575
- y: A.value.top,
576
- label: e.value.style.chart.xAxis.labels.values[o] ? J.value[o]?.text ?? "" : "",
577
- index: o,
578
- width: a,
579
- height: nt.value
580
- });
581
- return s;
582
- });
583
- function Ie(t) {
584
- return R.value.map((l) => l.datapoints.map((a) => ({
585
- dp: a,
586
- selected: a.values[t.index]
587
- })));
588
- }
589
- function ut(t) {
590
- c.value = t;
591
- const l = Ie(t);
592
- e.value.events.datapointEnter && e.value.events.datapointEnter({
593
- datapoint: l,
594
- seriesIndex: t.index
595
- });
596
- }
597
- function it(t) {
598
- c.value = null;
599
- const l = Ie(t);
600
- e.value.events.datapointLeave && e.value.events.datapointLeave({
601
- datapoint: l,
602
- seriesIndex: t.index
603
- });
604
- }
605
- function ct(t) {
606
- const l = Ie(t);
607
- e.value.events.datapointClick && e.value.events.datapointClick({
608
- datapoint: l,
609
- seriesIndex: t.index
610
- }), ce("selectX", l);
611
- }
612
- function ea(t, l) {
613
- return t.length * l / 2 + l;
614
- }
615
- function vt(t, l, a) {
616
- const s = ea(l, a);
617
- return t + s > A.value.right;
618
- }
619
- function ta(t, l, a = "sans-serif") {
620
- const o = document.createElement("canvas").getContext("2d"), v = typeof l == "number" ? `${l}px` : l;
621
- return o.font = `${v} ${a}`, o.measureText(t).width;
622
- }
623
- const w = d(() => {
624
- L.value;
625
- const t = Math.max(
626
- ...R.value.map((k) => k.labelLen)
627
- ), l = Math.max(
628
- ...R.value.flatMap(
629
- (k) => k.datapoints.flatMap((b) => b.values)
630
- )
631
- ), a = Math.min(
632
- ...R.value.flatMap(
633
- (k) => k.datapoints.flatMap((b) => b.values)
634
- )
635
- ), s = p.value.padding.left + t + 16 + e.value.style.chart.yAxis.labels.offsetX, o = (A.value.width - s) / ae.value, v = Math.abs(Math.min(a, 0)), $ = l + v;
636
- function E(k) {
637
- return isNaN(k / $) ? 0 : k / $;
638
- }
639
- return R.value.map((k, b) => {
640
- const bt = A.value.top + L.value * b, j = A.value.top + bt + L.value * ze.value * (1 - E(v));
641
- return {
642
- ...k,
643
- label: {
644
- x: s - e.value.style.chart.yAxis.labels.fontSize,
645
- y: j
646
- },
647
- datapoints: k.datapoints.map((re) => {
648
- const K = re.values.map((ue, $a) => {
649
- const _a = isNaN(ue) || [
650
- void 0,
651
- null,
652
- "NaN",
653
- NaN,
654
- 1 / 0,
655
- -1 / 0
656
- ].includes(ue) ? 0 : ue || 0, Pa = s + o * $a, Sa = A.value.top + bt + L.value * ze.value * (1 - E(_a + v)), Ta = ue === Math.max(...re.values);
657
- return {
658
- x: Pa,
659
- y: Sa,
660
- value: ue,
661
- isMaxPoint: Ta,
662
- zero: j
663
- };
664
- }), ka = `${Da(K, j, !1, !1)}`, Ca = `M ${s},${j} ${Pt(K)} ${K.at(-1).x},${j}`, Aa = `M ${s},${j} ${K.at(-1).x},${j}`, xt = `M ${Ia(K)}`, kt = `M ${Pt(K)}`, wa = Na(
665
- e.value.style.chart.areas.smooth ? xt : kt
666
- );
667
- return {
668
- ...re,
669
- uid: Ue(),
670
- plots: K,
671
- smoothPath: ka,
672
- straightPath: Ca,
673
- zeroPath: Aa,
674
- pathLength: wa,
675
- smoothPathRidge: xt,
676
- straightPathRidge: kt
677
- };
678
- }).filter((re) => !x.value.includes(re.id))
679
- };
680
- });
681
- }), x = i([]);
682
- function aa(t) {
683
- const l = /* @__PURE__ */ new Map();
684
- return t.forEach((a) => {
685
- a.datapoints.forEach((s, o) => {
686
- const v = _t(s.name);
687
- l.has(v) || l.set(v, {
688
- id: v,
689
- name: s.name,
690
- color: s.color,
691
- shape: "circle",
692
- segregate: () => fe(v),
693
- isSegregated: x.value.includes(v),
694
- opacity: x.value.includes(v) ? 0.5 : 1
695
- });
696
- });
697
- }), Array.from(l.values());
698
- }
699
- const F = d(() => aa(R.value)), la = d(() => ({
700
- cy: "donut-div-legend",
701
- backgroundColor: e.value.style.chart.legend.backgroundColor,
702
- color: e.value.style.chart.legend.color,
703
- fontSize: e.value.style.chart.legend.fontSize,
704
- paddingBottom: 12,
705
- fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
706
- })), G = i(!1);
707
- function dt(t) {
708
- G.value = t, Ze.value += 1;
709
- }
710
- const ye = i({}), ge = i([]);
711
- function ht(t) {
712
- ce("selectDatapoint", t), e.value.style.chart.dialog.show && (ge.value = t.datapoints.map((l) => ({
713
- name: l.name,
714
- color: l.color,
715
- type: "line",
716
- useArea: !0,
717
- smooth: e.value.style.chart.areas.smooth,
718
- series: l.values
719
- })), Y.value = t, ye.value = Va({
720
- ...e.value.style.chart.dialog.xyChart,
721
- responsive: !0,
722
- // Overriding
723
- chart: {
724
- ...e.value.style.chart.dialog.xyChart.chart,
725
- grid: {
726
- ...e.value.style.chart.dialog.xyChart.chart.grid,
727
- labels: {
728
- ...e.value.style.chart.dialog.xyChart.chart.grid.labels,
729
- xAxisLabels: {
730
- ...e.value.style.chart.dialog.xyChart.chart.grid.labels.xAxisLabels,
731
- values: e.value.style.chart.xAxis.labels.values,
732
- // Overriding
733
- autoRotate: {
734
- enable: !0,
735
- angle: e.value.style.chart.dialog.xyChart.chart.grid.labels.xAxisLabels.autoRotate.angle
736
- },
737
- // overriding
738
- datetimeFormatter: e.value.style.chart.xAxis.labels.datetimeFormatter
739
- // Overriding
740
- }
741
- }
742
- },
743
- tooltip: {
744
- ...e.value.style.chart.dialog.xyChart.chart.tooltip,
745
- showTimeLabel: e.value.style.chart.xAxis.labels.values.length > 0
746
- // Overriding
747
- },
748
- userOptions: {
749
- ...e.value.style.chart.dialog.xyChart.chart.userOptions,
750
- buttons: {
751
- ...e.value.style.chart.dialog.xyChart.chart.userOptions.buttons,
752
- altCopy: e.value.userOptions.buttons.altCopy
753
- },
754
- callbacks: {
755
- ...e.value.style.chart.dialog.xyChart.chart.userOptions.callbacks,
756
- altCopy: () => {
757
- }
758
- },
759
- useCursorPointer: e.value.userOptions.useCursorPointer
760
- // Overriding
761
- }
762
- }
763
- }), we.value && we.value.open());
764
- }
765
- const le = i(null);
766
- function oa(t) {
767
- le.value = t;
768
- }
769
- function sa() {
770
- le.value = null;
771
- }
772
- const oe = i(!1);
773
- function Ne() {
774
- oe.value = !oe.value;
775
- }
776
- function ft() {
777
- W.value.showTable = !W.value.showTable;
778
- }
779
- const yt = d(() => ({ body: w.value.flatMap((a) => a.datapoints.flatMap((s) => ({
780
- ...s,
781
- rowName: `${a.name}: ${s.name}`
782
- }))).map((a) => [
783
- {
784
- name: a.rowName,
785
- color: a.color
786
- },
787
- ...a.values
788
- ]) })), Q = d(() => {
789
- const t = [
790
- e.value.table.columnNames.series,
791
- ...J.value.map((s) => s.text)
792
- ], l = {
793
- th: {
794
- backgroundColor: e.value.table.th.backgroundColor,
795
- color: e.value.table.th.color,
796
- outline: e.value.table.th.outline
797
- },
798
- td: {
799
- backgroundColor: e.value.table.td.backgroundColor,
800
- color: e.value.table.td.color,
801
- outline: e.value.table.td.outline
802
- },
803
- breakpoint: e.value.table.responsiveBreakpoint
804
- };
805
- return {
806
- colNames: [
807
- e.value.table.columnNames.series,
808
- ...J.value.map((s) => s.text)
809
- ],
810
- head: t,
811
- body: yt.value.body,
812
- config: l
813
- };
814
- });
815
- function Re(t = null) {
816
- pe(() => {
817
- const l = [
818
- [
819
- e.value.table.columnNames.series,
820
- ...J.map((o) => [o.text])
821
- ],
822
- ...yt.value.body.map((o, v) => [o[0].name, ...o.slice(1)])
823
- ], a = [
824
- [e.value.style.chart.title.text],
825
- [e.value.style.chart.title.subtitle.text]
826
- ].concat(l), s = Ha(a);
827
- t ? t(s) : Ua({
828
- csvContent: s,
829
- title: e.value.style.chart.title.text || "vue-ui-ridgeline"
830
- });
831
- });
832
- }
833
- function na() {
834
- return w.value;
835
- }
836
- async function ra({ scale: t = 2 } = {}) {
837
- if (!z.value) return;
838
- const { width: l, height: a } = z.value.getBoundingClientRect(), s = l / a, { imageUri: o, base64: v } = await nl({
839
- domElement: z.value,
840
- base64: !0,
841
- img: !0,
842
- scale: t
843
- });
844
- return {
845
- imageUri: o,
846
- base64: v,
847
- title: e.value.style.chart.title.text,
848
- width: l,
849
- height: a,
850
- aspectRatio: s
851
- };
852
- }
853
- const ua = d(() => ({ min: 0, max: ae.value }));
854
- tl({
855
- timeLabelsEls: $e,
856
- timeLabels: J,
857
- slicer: ua,
858
- configRef: e,
859
- rotationPath: ["style", "chart", "xAxis", "labels", "rotation"],
860
- autoRotatePath: [
861
- "style",
862
- "chart",
863
- "xAxis",
864
- "labels",
865
- "autoRotate",
866
- "enable"
867
- ],
868
- isAutoSize: !1,
869
- width: Zt,
870
- height: Jt,
871
- targetClass: ".vue-ui-ridgeline-x-axis-label",
872
- angle: e.value.style.chart.xAxis.labels.autoRotate.angle
873
- });
874
- const se = d(() => {
875
- const t = e.value.table.useDialog && !e.value.table.show, l = W.value.showTable;
876
- return {
877
- component: t ? Ge : It,
878
- title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
879
- props: t ? {
880
- backgroundColor: e.value.table.th.backgroundColor,
881
- color: e.value.table.th.color,
882
- headerColor: e.value.table.th.color,
883
- headerBg: e.value.table.th.backgroundColor,
884
- isFullscreen: G.value,
885
- fullscreenParent: z.value,
886
- forcedWidth: Math.min(800, window.innerWidth * 0.8),
887
- isCursorPointer: D.value
888
- } : {
889
- hideDetails: !0,
890
- config: {
891
- open: l,
892
- maxHeight: 1e4,
893
- body: {
894
- backgroundColor: e.value.style.chart.backgroundColor,
895
- color: e.value.style.chart.color
896
- },
897
- head: {
898
- backgroundColor: e.value.style.chart.backgroundColor,
899
- color: e.value.style.chart.color
900
- }
901
- }
902
- }
903
- };
904
- });
905
- ie(
906
- () => W.value.showTable,
907
- (t) => {
908
- e.value.table.show || (t && e.value.table.useDialog && te.value ? te.value.open() : "close" in te.value && te.value.close());
909
- }
910
- );
911
- function gt() {
912
- W.value.showTable = !1, _e.value && _e.value.setTableIconState(!1);
913
- }
914
- const ia = d(() => e.value.style.chart.backgroundColor), ca = d(() => ({
915
- ...e.value.style.chart.legend,
916
- position: "bottom"
917
- })), va = d(() => e.value.style.chart.title), { exportSvg: da, getSvg: ha } = qa({
918
- svg: Z,
919
- title: va,
920
- legend: ca,
921
- legendItems: F,
922
- backgroundColor: ia
923
- });
924
- async function pt({ isCb: t }) {
925
- de.value = !0, await pe();
926
- try {
927
- if (t) {
928
- const { blob: l, url: a, text: s, dataUrl: o } = await ha();
929
- await Promise.resolve(
930
- e.value.userOptions.callbacks.svg({
931
- blob: l,
932
- url: a,
933
- text: s,
934
- dataUrl: o
935
- })
936
- );
937
- } else
938
- await Promise.resolve(da());
939
- } finally {
940
- de.value = !1;
941
- }
942
- }
943
- function fa(t) {
944
- if (t?.stage === "start") {
945
- ve.value = !0;
946
- return;
947
- }
948
- if (t?.stage === "end") {
949
- ve.value = !1;
950
- return;
951
- }
952
- ot();
953
- }
954
- function ya(t) {
955
- Fe("xy-zoom", t.dataset, t.config);
956
- }
957
- async function Fe(t = "main-chart", l = null, a = null) {
958
- if (ce("copyAlt", {
959
- source: t,
960
- config: t === "main-chart" ? e.value : ye.value,
961
- dataset: t === "main-chart" ? w.value : ge.value
962
- }), !e.value.userOptions.callbacks.altCopy) {
963
- console.warn(
964
- "Vue Data UI - A callback must be set for `altCopy` in userOptions."
965
- );
966
- return;
967
- }
968
- await Promise.resolve(
969
- e.value.userOptions.callbacks.altCopy({
970
- source: t,
971
- config: t === "main-chart" ? e.value : ye.value,
972
- dataset: t === "main-chart" ? w.value : ge.value
973
- })
974
- );
975
- }
976
- function ga() {
977
- U.value = null, Pe.value = !0;
978
- }
979
- function pa() {
980
- mt(), Pe.value = !1;
981
- }
982
- function ma(t) {
983
- if (!Z.value || oe.value || document.activeElement !== Z.value || !w.value.length) return;
984
- const l = t.key === "ArrowUp", a = t.key === "ArrowDown", s = t.key === "ArrowLeft", o = t.key === "ArrowRight", v = t.key === "Enter" || t.key === " ", $ = t.key === "Escape";
985
- if (!l && !a && !s && !o && !v && !$)
986
- return;
987
- if (t.preventDefault(), t.stopPropagation(), $) {
988
- mt();
989
- return;
990
- }
991
- if (v) {
992
- if (U.value !== null) {
993
- const b = w.value[U.value];
994
- b && ht(b);
995
- return;
996
- }
997
- c.value && ct(c.value);
998
- return;
999
- }
1000
- if (l || a) {
1001
- let b = U.value;
1002
- b === null ? b = a ? 0 : w.value.length - 1 : b = ba(
1003
- b + (a ? 1 : -1)
1004
- ), U.value = b, le.value = b;
1005
- return;
1006
- }
1007
- if (!M.value.length) return;
1008
- let E = c.value?.index ?? null;
1009
- E === null ? E = o ? 0 : M.value.length - 1 : E = xa(E + (o ? 1 : -1));
1010
- const k = M.value[E];
1011
- k && ut(k);
1012
- }
1013
- function ba(t) {
1014
- const l = w.value.length;
1015
- return l ? (t % l + l) % l : null;
1016
- }
1017
- function xa(t) {
1018
- const l = M.value.length;
1019
- return l ? (t % l + l) % l : null;
1020
- }
1021
- function mt() {
1022
- U.value = null, le.value = null, c.value ? it(c.value) : c.value = null;
1023
- }
1024
- const ne = d(() => ({
1025
- head: Q.value.head,
1026
- body: Q.value.body.map((t) => [t[0]?.name ?? "", ...t.slice(1)]),
1027
- caption: e.value.a11y.translations.tableCaption,
1028
- notice: e.value.a11y.translations.tableAvailable
1029
- }));
1030
- return Lt({
1031
- getData: na,
1032
- getImage: ra,
1033
- generateImage: ot,
1034
- generateSvg: pt,
1035
- generatePdf: lt,
1036
- generateCsv: Re,
1037
- hideSeries: qt,
1038
- showSeries: Yt,
1039
- toggleAnnotator: Ne,
1040
- toggleTable: ft,
1041
- toggleFullscreen: dt,
1042
- copyAlt: Fe
1043
- }), (t, l) => (n(), r("div", {
1044
- ref_key: "ridgelineChart",
1045
- ref: z,
1046
- class: me(`vue-data-ui-component vue-ui-ridgeline ${G.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
1047
- id: `vue-ui-ridgeline_${C.value}`,
1048
- style: _({
1049
- fontFamily: e.value.style.fontFamily,
1050
- width: "100%",
1051
- textAlign: "center",
1052
- background: e.value.style.chart.backgroundColor,
1053
- height: e.value.responsive ? "100%" : void 0
1054
- }),
1055
- onMouseenter: l[3] || (l[3] = () => u(et)(!0)),
1056
- onMouseleave: l[4] || (l[4] = () => u(et)(!1))
1057
- }, [
1058
- g("div", {
1059
- id: `chart-instructions-${C.value}`,
1060
- class: "sr-only"
1061
- }, [
1062
- g("p", null, B(e.value.a11y.translations.keyboardNavigation), 1)
1063
- ], 8, vl),
1064
- ne.value.body.length ? (n(), P(rl, {
1065
- key: 0,
1066
- uid: C.value,
1067
- head: ne.value.head,
1068
- body: ne.value.body,
1069
- caption: ne.value.caption,
1070
- notice: ne.value.notice
1071
- }, null, 8, ["uid", "head", "body", "caption", "notice"])) : h("", !0),
1072
- e.value.userOptions.buttons.annotator && u(Z) ? (n(), P(u(Rt), {
1073
- key: 1,
1074
- color: e.value.style.chart.color,
1075
- backgroundColor: e.value.style.chart.backgroundColor,
1076
- active: oe.value,
1077
- svgRef: u(Z),
1078
- isCursorPointer: D.value,
1079
- onClose: Ne
1080
- }, {
1081
- "annotator-action-close": f(() => [
1082
- y(t.$slots, "annotator-action-close", {}, void 0, !0)
1083
- ]),
1084
- "annotator-action-color": f(({ color: a }) => [
1085
- y(t.$slots, "annotator-action-color", S(T({ color: a })), void 0, !0)
1086
- ]),
1087
- "annotator-action-draw": f(({ mode: a }) => [
1088
- y(t.$slots, "annotator-action-draw", S(T({ mode: a })), void 0, !0)
1089
- ]),
1090
- "annotator-action-undo": f(({ disabled: a }) => [
1091
- y(t.$slots, "annotator-action-undo", S(T({ disabled: a })), void 0, !0)
1092
- ]),
1093
- "annotator-action-redo": f(({ disabled: a }) => [
1094
- y(t.$slots, "annotator-action-redo", S(T({ disabled: a })), void 0, !0)
1095
- ]),
1096
- "annotator-action-delete": f(({ disabled: a }) => [
1097
- y(t.$slots, "annotator-action-delete", S(T({ disabled: a })), void 0, !0)
1098
- ]),
1099
- _: 3
1100
- }, 8, ["color", "backgroundColor", "active", "svgRef", "isCursorPointer"])) : h("", !0),
1101
- y(t.$slots, "userConfig", {}, void 0, !0),
1102
- Gt.value ? (n(), r("div", {
1103
- key: 2,
1104
- ref_key: "noTitle",
1105
- ref: qe,
1106
- class: "vue-data-ui-no-title-space",
1107
- style: "height:36px; width: 100%;background:transparent"
1108
- }, null, 512)) : h("", !0),
1109
- e.value.style.chart.title.text ? (n(), r("div", {
1110
- key: 3,
1111
- ref_key: "chartTitle",
1112
- ref: je,
1113
- style: "width:100%;background:transparent;padding-bottom:24px"
1114
- }, [
1115
- (n(), P(ol, {
1116
- key: `title_${Ce.value}`,
1117
- config: {
1118
- title: {
1119
- cy: "ridgeline-div-title",
1120
- ...e.value.style.chart.title
1121
- },
1122
- subtitle: {
1123
- cy: "ridgeline-div-subtitle",
1124
- ...e.value.style.chart.title.subtitle
1125
- }
1126
- }
1127
- }, null, 8, ["config"]))
1128
- ], 512)) : h("", !0),
1129
- e.value.userOptions.show && ee.value && (u(tt) || u(he)) ? (n(), P(u(Ft), {
1130
- ref_key: "userOptionsRef",
1131
- ref: _e,
1132
- key: `user_option_${Ze.value}`,
1133
- backgroundColor: e.value.style.chart.backgroundColor,
1134
- color: e.value.style.chart.color,
1135
- isPrinting: u(Le),
1136
- isImaging: u(Me),
1137
- uid: C.value,
1138
- hasTooltip: !1,
1139
- callbacks: e.value.userOptions.callbacks,
1140
- hasPdf: e.value.userOptions.buttons.pdf,
1141
- hasImg: e.value.userOptions.buttons.img,
1142
- hasSvg: e.value.userOptions.buttons.svg,
1143
- hasXls: e.value.userOptions.buttons.csv,
1144
- hasTable: e.value.userOptions.buttons.table,
1145
- hasLabel: !1,
1146
- hasFullscreen: e.value.userOptions.buttons.fullscreen,
1147
- hasAltCopy: e.value.userOptions.buttons.altCopy,
1148
- isFullscreen: G.value,
1149
- printScale: e.value.userOptions.print.scale,
1150
- chartElement: z.value,
1151
- position: e.value.userOptions.position,
1152
- isTooltip: !1,
1153
- titles: { ...e.value.userOptions.buttonTitles },
1154
- hasAnnotator: e.value.userOptions.buttons.annotator,
1155
- isAnnotation: oe.value,
1156
- tableDialog: e.value.table.useDialog,
1157
- style: _({
1158
- visibility: u(tt) ? u(he) ? "visible" : "hidden" : "visible"
1159
- }),
1160
- isCursorPointer: D.value,
1161
- onToggleFullscreen: dt,
1162
- onGeneratePdf: u(lt),
1163
- onGenerateCsv: Re,
1164
- onGenerateImage: fa,
1165
- onGenerateSvg: pt,
1166
- onToggleTable: ft,
1167
- onToggleAnnotator: Ne,
1168
- onCopyAlt: Fe
1169
- }, Ee({ _: 2 }, [
1170
- t.$slots.menuIcon ? {
1171
- name: "menuIcon",
1172
- fn: f(({ isOpen: a, color: s }) => [
1173
- y(t.$slots, "menuIcon", S(T({ isOpen: a, color: s })), void 0, !0)
1174
- ]),
1175
- key: "0"
1176
- } : void 0,
1177
- t.$slots.optionTooltip ? {
1178
- name: "optionTooltip",
1179
- fn: f(() => [
1180
- y(t.$slots, "optionTooltip", {}, void 0, !0)
1181
- ]),
1182
- key: "1"
1183
- } : void 0,
1184
- t.$slots.optionPdf ? {
1185
- name: "optionPdf",
1186
- fn: f(() => [
1187
- y(t.$slots, "optionPdf", {}, void 0, !0)
1188
- ]),
1189
- key: "2"
1190
- } : void 0,
1191
- t.$slots.optionCsv ? {
1192
- name: "optionCsv",
1193
- fn: f(() => [
1194
- y(t.$slots, "optionCsv", {}, void 0, !0)
1195
- ]),
1196
- key: "3"
1197
- } : void 0,
1198
- t.$slots.optionImg ? {
1199
- name: "optionImg",
1200
- fn: f(() => [
1201
- y(t.$slots, "optionImg", {}, void 0, !0)
1202
- ]),
1203
- key: "4"
1204
- } : void 0,
1205
- t.$slots.optionSvg ? {
1206
- name: "optionSvg",
1207
- fn: f(() => [
1208
- y(t.$slots, "optionSvg", {}, void 0, !0)
1209
- ]),
1210
- key: "5"
1211
- } : void 0,
1212
- t.$slots.optionTable ? {
1213
- name: "optionTable",
1214
- fn: f(() => [
1215
- y(t.$slots, "optionTable", {}, void 0, !0)
1216
- ]),
1217
- key: "6"
1218
- } : void 0,
1219
- t.$slots.optionFullscreen ? {
1220
- name: "optionFullscreen",
1221
- fn: f(({ toggleFullscreen: a, isFullscreen: s }) => [
1222
- y(t.$slots, "optionFullscreen", S(T({ toggleFullscreen: a, isFullscreen: s })), void 0, !0)
1223
- ]),
1224
- key: "7"
1225
- } : void 0,
1226
- t.$slots.optionAnnotator ? {
1227
- name: "optionAnnotator",
1228
- fn: f(({ toggleAnnotator: a, isAnnotator: s }) => [
1229
- y(t.$slots, "optionAnnotator", S(T({ toggleAnnotator: a, isAnnotator: s })), void 0, !0)
1230
- ]),
1231
- key: "8"
1232
- } : void 0,
1233
- t.$slots.optionAltCopy ? {
1234
- name: "optionAltCopy",
1235
- fn: f(({ altCopy: a }) => [
1236
- y(t.$slots, "optionAltCopy", S(T({ altCopy: a })), void 0, !0)
1237
- ]),
1238
- key: "9"
1239
- } : void 0
1240
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "callbacks", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasFullscreen", "hasAltCopy", "isFullscreen", "printScale", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "tableDialog", "style", "isCursorPointer", "onGeneratePdf"])) : h("", !0),
1241
- g("div", dl, [
1242
- (n(), r("svg", {
1243
- ref_key: "svgRef",
1244
- ref: Z,
1245
- xmlns: u(Ra),
1246
- "aria-describedby": `chart-instructions-${C.value}`,
1247
- class: me({
1248
- "vue-data-ui-fullscreen--on": G.value,
1249
- "vue-data-ui-fulscreen--off": !G.value
1250
- }),
1251
- viewBox: `0 0 ${p.value.width <= 0 ? 10 : p.value.width} ${A.value.fullHeight <= 0 ? 10 : A.value.fullHeight}`,
1252
- style: _(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color};${e.value.responsive ? `height: ${Qe.value}px; width: 100%;` : ""}`),
1253
- tabindex: "0",
1254
- onFocus: ga,
1255
- onBlur: pa,
1256
- onKeydown: ma
1257
- }, [
1258
- Xe(u(Et)),
1259
- g("defs", null, [
1260
- (n(!0), r(m, null, O(F.value, (a, s) => (n(), r("linearGradient", {
1261
- id: `gradient-${a.id}-${C.value}`,
1262
- x1: "50%",
1263
- y1: "0%",
1264
- x2: "50%",
1265
- y2: "100%"
1266
- }, [
1267
- g("stop", {
1268
- offset: "0%",
1269
- "stop-color": a.color,
1270
- "stop-opacity": "1"
1271
- }, null, 8, yl),
1272
- g("stop", {
1273
- offset: "30%",
1274
- "stop-color": a.color,
1275
- "stop-opacity": "0.7"
1276
- }, null, 8, gl),
1277
- g("stop", {
1278
- offset: "70%",
1279
- "stop-color": a.color,
1280
- "stop-opacity": "0.3"
1281
- }, null, 8, pl),
1282
- g("stop", {
1283
- offset: "100%",
1284
- "stop-color": a.color,
1285
- "stop-opacity": "0.1"
1286
- }, null, 8, ml)
1287
- ], 8, fl))), 256)),
1288
- (n(!0), r(m, null, O(w.value, (a, s) => (n(), r(m, null, [
1289
- (n(!0), r(m, null, O(a.datapoints, (o, v) => (n(), r("linearGradient", {
1290
- key: `grad${o.id}`,
1291
- id: `gradient-single-${C.value}-${o.uid}`,
1292
- x1: "50%",
1293
- y1: "0%",
1294
- x2: "50%",
1295
- y2: "100%"
1296
- }, [
1297
- g("stop", {
1298
- offset: "0%",
1299
- "stop-color": o.color,
1300
- "stop-opacity": "1"
1301
- }, null, 8, xl),
1302
- g("stop", {
1303
- offset: "30%",
1304
- "stop-color": o.color,
1305
- "stop-opacity": "0.7"
1306
- }, null, 8, kl),
1307
- g("stop", {
1308
- offset: "70%",
1309
- "stop-color": o.color,
1310
- "stop-opacity": "0.3"
1311
- }, null, 8, Cl),
1312
- g("stop", {
1313
- offset: "100%",
1314
- "stop-color": o.color,
1315
- "stop-opacity": "0.1"
1316
- }, null, 8, Al)
1317
- ], 8, bl))), 128))
1318
- ], 64))), 256))
1319
- ]),
1320
- (n(!0), r(m, null, O(w.value, (a, s) => (n(), r("g", {
1321
- key: `ds-${s}`
1322
- }, [
1323
- (n(!0), r(m, null, O(a.datapoints, (o, v) => (n(), r("g", {
1324
- key: o.id
1325
- }, [
1326
- t.$slots.pattern ? (n(), r("g", wl, [
1327
- g("defs", null, [
1328
- y(t.$slots, "pattern", Be({ ref_for: !0 }, {
1329
- datapointIndex: s,
1330
- seriesIndex: v,
1331
- patternId: `pattern_${C.value}_${o.uid}`
1332
- }), void 0, !0)
1333
- ])
1334
- ])) : h("", !0),
1335
- g("path", {
1336
- fill: t.$slots.pattern ? `url(#pattern_${C.value}_${o.uid})` : e.value.style.chart.backgroundColor,
1337
- stroke: "none",
1338
- "stroke-linecap": "round",
1339
- d: e.value.style.chart.areas.smooth ? o.smoothPath : o.straightPath,
1340
- style: _({
1341
- opacity: e.value.style.chart.areas.opacity
1342
- })
1343
- }, null, 12, $l),
1344
- g("path", {
1345
- fill: "none",
1346
- stroke: e.value.style.chart.areas.stroke.useSerieColor ? o.color : e.value.style.chart.areas.stroke.color,
1347
- "stroke-width": e.value.style.chart.areas.strokeWidth,
1348
- d: e.value.style.chart.areas.smooth ? o.smoothPathRidge : o.straightPathRidge,
1349
- "stroke-linecap": "round",
1350
- "stroke-linejoin": "round",
1351
- class: me({
1352
- "vue-ui-ridgeline-animate": e.value.useCssAnimation && !u(q)
1353
- }),
1354
- style: _({
1355
- strokeDasharray: o.pathLength,
1356
- strokeDashoffset: e.value.useCssAnimation ? o.pathLength : 0
1357
- })
1358
- }, null, 14, _l),
1359
- g("path", {
1360
- fill: e.value.style.chart.areas.useGradient ? e.value.style.chart.areas.useCommonColor ? `url(#gradient-${o.id}-${C.value})` : `url(#gradient-single-${C.value}-${o.uid})` : o.color,
1361
- stroke: "none",
1362
- d: e.value.style.chart.areas.smooth ? o.smoothPath : o.straightPath,
1363
- "stroke-linecap": "round",
1364
- "stroke-linejoin": "round",
1365
- class: me({
1366
- "vue-ui-ridgeline-animate": e.value.useCssAnimation && !u(q)
1367
- }),
1368
- style: _({
1369
- strokeDasharray: o.pathLength,
1370
- strokeDashoffset: e.value.useCssAnimation ? o.pathLength : 0
1371
- })
1372
- }, null, 14, Pl),
1373
- e.value.style.chart.zeroLine.show ? (n(), r("path", {
1374
- key: 1,
1375
- stroke: e.value.style.chart.zeroLine.useSerieColor ? o.color : e.value.style.chart.zeroLine.stroke,
1376
- "stroke-dasharray": e.value.style.chart.zeroLine.strokeDasharray,
1377
- "stroke-width": e.value.style.chart.zeroLine.strokeWidth,
1378
- d: o.zeroPath,
1379
- "stroke-linecap": "round"
1380
- }, null, 8, Sl)) : h("", !0),
1381
- e.value.style.chart.areas.maxPoint.show && o.plots.length > 1 ? (n(!0), r(m, { key: 2 }, O(o.plots, ($) => (n(), r(m, null, [
1382
- $.isMaxPoint ? (n(), r("line", {
1383
- key: 0,
1384
- x1: $.x,
1385
- y1: $.y,
1386
- x2: $.x,
1387
- y2: $.zero,
1388
- stroke: e.value.style.chart.areas.maxPoint.adaptStrokeToBackground ? u(Fa)(o.color) : e.value.style.chart.areas.maxPoint.stroke,
1389
- "stroke-width": e.value.style.chart.areas.maxPoint.strokeWidth,
1390
- "stroke-linecap": "round",
1391
- "stroke-dasharray": e.value.style.chart.areas.maxPoint.strokeDasharray
1392
- }, null, 8, Tl)) : h("", !0)
1393
- ], 64))), 256)) : h("", !0),
1394
- o.plots.length === 1 ? (n(), r("circle", {
1395
- key: 3,
1396
- cx: o.plots[0].x,
1397
- cy: o.plots[0].y,
1398
- stroke: e.value.style.chart.selector.dot.stroke,
1399
- "stroke-width": e.value.style.chart.selector.dot.strokeWidth,
1400
- r: e.value.style.chart.selector.dot.radius,
1401
- fill: e.value.style.chart.selector.dot.useDatapointColor ? o.color : e.value.style.chart.selector.dot.fill,
1402
- style: {
1403
- pointerEvents: "none"
1404
- }
1405
- }, null, 8, Ol)) : h("", !0)
1406
- ]))), 128)),
1407
- g("text", {
1408
- x: a.label.x,
1409
- y: a.label.y,
1410
- "text-anchor": "end",
1411
- "font-size": e.value.style.chart.yAxis.labels.fontSize,
1412
- "font-weight": e.value.style.chart.yAxis.labels.bold ? "bold" : "normal",
1413
- fill: e.value.style.chart.yAxis.labels.color,
1414
- style: _({
1415
- cursor: e.value.style.chart.dialog.show && D.value ? "pointer" : "default"
1416
- }),
1417
- "text-decoration": e.value.style.chart.dialog.show && (le.value === s || Y.value && a.uid === Y.value.uid || U.value === s) ? "underline" : "",
1418
- onMouseenter: (o) => oa(s),
1419
- onMouseleave: sa,
1420
- onClick: (o) => ht(a)
1421
- }, B(a.name), 45, Ll)
1422
- ]))), 128)),
1423
- e.value.style.chart.xAxis.labels.values.length ? (n(), r("g", {
1424
- key: 0,
1425
- ref_key: "timeLabelsEls",
1426
- ref: $e
1427
- }, [
1428
- (n(!0), r(m, null, O(M.value, (a, s) => y(t.$slots, "time-label", Be({ ref_for: !0 }, {
1429
- show: a && !e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && !e.value.style.chart.xAxis.labels.showOnlyAtModulo || a && e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && (s === 0 || s === M.value.length - 1) || a && c.value && c.value.index === s || a && !e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && e.value.style.chart.xAxis.labels.showOnlyAtModulo && s % Math.floor(
1430
- M.value.length / e.value.style.chart.xAxis.labels.modulo
1431
- ) === 0,
1432
- fontSize: e.value.style.chart.xAxis.labels.fontSize,
1433
- content: a.label,
1434
- textAnchor: e.value.style.chart.xAxis.labels.rotation > 0 ? "start" : e.value.style.chart.xAxis.labels.rotation < 0 ? "end" : "middle",
1435
- fill: e.value.style.chart.xAxis.labels.color,
1436
- transform: `translate(${a.selectorX}, ${A.value.top + a.height + e.value.style.chart.xAxis.labels.offsetY}), rotate(${e.value.style.chart.xAxis.labels.rotation})`,
1437
- x: a.selectorX,
1438
- y: A.value.bottom + e.value.style.chart.xAxis.labels.offsetY
1439
- }), () => [
1440
- a && !e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && !e.value.style.chart.xAxis.labels.showOnlyAtModulo || a && e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && (s === 0 || s === M.value.length - 1) || a && c.value && c.value.index === s || a && !e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && e.value.style.chart.xAxis.labels.showOnlyAtModulo && s % Math.floor(
1441
- M.value.length / e.value.style.chart.xAxis.labels.modulo
1442
- ) === 0 ? (n(), r("g", Ml, [
1443
- String(a.label).includes(`
1444
- `) ? (n(), r("text", {
1445
- key: 1,
1446
- class: "vue-ui-ridgeline-x-axis-label",
1447
- "font-size": e.value.style.chart.xAxis.labels.fontSize,
1448
- fill: e.value.style.chart.xAxis.labels.color,
1449
- "font-weight": e.value.style.chart.xAxis.labels.bold ? "bold" : "normal",
1450
- transform: `translate(${a.selectorX}, ${A.value.bottom + e.value.style.chart.xAxis.labels.offsetY}), rotate(${e.value.style.chart.xAxis.labels.rotation})`,
1451
- "text-anchor": e.value.style.chart.xAxis.labels.rotation > 0 ? "start" : e.value.style.chart.xAxis.labels.rotation < 0 ? "end" : "middle",
1452
- style: _({
1453
- opacity: c.value ? c.value.index === s ? 1 : 0.2 : 1
1454
- }),
1455
- innerHTML: u(Ea)({
1456
- content: String(a.label),
1457
- fontSize: e.value.style.chart.xAxis.labels.fontSize,
1458
- fill: e.value.style.chart.xAxis.labels.color,
1459
- x: 0,
1460
- y: 0
1461
- })
1462
- }, null, 12, Dl)) : (n(), r("text", {
1463
- key: 0,
1464
- class: "vue-ui-ridgeline-x-axis-label",
1465
- "font-size": e.value.style.chart.xAxis.labels.fontSize,
1466
- fill: e.value.style.chart.xAxis.labels.color,
1467
- "font-weight": e.value.style.chart.xAxis.labels.bold ? "bold" : "normal",
1468
- transform: `translate(${a.selectorX}, ${A.value.bottom + e.value.style.chart.xAxis.labels.offsetY}), rotate(${e.value.style.chart.xAxis.labels.rotation})`,
1469
- "text-anchor": e.value.style.chart.xAxis.labels.rotation > 0 ? "start" : e.value.style.chart.xAxis.labels.rotation < 0 ? "end" : "middle",
1470
- style: _({
1471
- opacity: c.value ? c.value.index === s ? 1 : 0.2 : 1
1472
- })
1473
- }, B(a.label), 13, zl))
1474
- ])) : h("", !0)
1475
- ], !0)), 256))
1476
- ], 512)) : h("", !0),
1477
- g("g", null, [
1478
- (n(!0), r(m, null, O(M.value, (a, s) => (n(), r("rect", {
1479
- x: a.x,
1480
- y: a.y,
1481
- width: a.width < 0 ? 0.1 : a.width,
1482
- height: a.height < 0 ? 0.1 : a.height,
1483
- fill: "transparent",
1484
- onMouseenter: (o) => ut(a),
1485
- onMouseleave: (o) => it(a),
1486
- onClick: () => ct(a)
1487
- }, null, 40, Il))), 256)),
1488
- e.value.style.chart.selector.show && c.value ? (n(), r("line", {
1489
- key: 0,
1490
- x1: c.value.selectorX,
1491
- x2: c.value.selectorX,
1492
- y1: c.value.y,
1493
- y2: c.value.y + c.value.height - L.value / 2,
1494
- stroke: e.value.style.chart.selector.stroke,
1495
- "stroke-width": e.value.style.chart.selector.strokeWidth,
1496
- "stroke-dasharray": e.value.style.chart.selector.strokeDasharray,
1497
- "stroke-linecap": "round",
1498
- style: { pointerEvents: "none" }
1499
- }, null, 8, Nl)) : h("", !0),
1500
- c.value ? (n(!0), r(m, { key: 1 }, O(w.value, (a) => (n(), r(m, null, [
1501
- (n(!0), r(m, null, O(a.datapoints, (s) => (n(), r(m, null, [
1502
- (n(!0), r(m, null, O(s.plots, (o, v) => (n(), r(m, null, [
1503
- c.value && c.value.index === v ? (n(), r("circle", {
1504
- key: 0,
1505
- cx: o.x,
1506
- cy: o.y,
1507
- stroke: e.value.style.chart.selector.dot.stroke,
1508
- "stroke-width": e.value.style.chart.selector.dot.strokeWidth,
1509
- r: e.value.style.chart.selector.dot.radius,
1510
- fill: e.value.style.chart.selector.dot.useDatapointColor ? s.color : e.value.style.chart.selector.dot.fill,
1511
- style: {
1512
- pointerEvents: "none"
1513
- }
1514
- }, null, 8, Rl)) : h("", !0),
1515
- c.value && c.value.index === v ? (n(), r("text", {
1516
- key: 1,
1517
- x: vt(
1518
- o.x,
1519
- u(xe)(
1520
- e.value.style.chart.selector.labels.formatter,
1521
- o.value,
1522
- u(ke)({
1523
- p: e.value.style.chart.xAxis.labels.prefix,
1524
- v: o.value,
1525
- s: e.value.style.chart.xAxis.labels.suffix,
1526
- r: e.value.style.chart.selector.labels.rounding
1527
- })
1528
- ),
1529
- e.value.style.chart.selector.labels.fontSize
1530
- ) ? o.x - e.value.style.chart.selector.labels.fontSize / 2 : o.x + e.value.style.chart.selector.labels.fontSize / 2,
1531
- y: o.y + e.value.style.chart.selector.labels.fontSize / 3,
1532
- "text-anchor": vt(
1533
- o.x,
1534
- u(xe)(
1535
- e.value.style.chart.selector.labels.formatter,
1536
- o.value,
1537
- u(ke)({
1538
- p: e.value.style.chart.xAxis.labels.prefix,
1539
- v: o.value,
1540
- s: e.value.style.chart.xAxis.labels.suffix,
1541
- r: e.value.style.chart.selector.labels.rounding
1542
- })
1543
- ),
1544
- e.value.style.chart.selector.labels.fontSize
1545
- ) ? "end" : "start",
1546
- "font-size": e.value.style.chart.selector.labels.fontSize,
1547
- fill: e.value.style.chart.selector.labels.color,
1548
- style: {
1549
- pointerEvents: "none"
1550
- }
1551
- }, B(u(xe)(
1552
- e.value.style.chart.selector.labels.formatter,
1553
- o.value,
1554
- u(ke)({
1555
- p: e.value.style.chart.xAxis.labels.prefix,
1556
- v: o.value,
1557
- s: e.value.style.chart.xAxis.labels.suffix,
1558
- r: e.value.style.chart.selector.labels.rounding
1559
- })
1560
- )), 9, Fl)) : h("", !0)
1561
- ], 64))), 256))
1562
- ], 64))), 256))
1563
- ], 64))), 256)) : h("", !0)
1564
- ]),
1565
- y(t.$slots, "svg", {
1566
- svg: {
1567
- ...p.value,
1568
- isPrintingImg: u(Le) | u(Me) | ve.value,
1569
- isPrintingSvg: de.value
1570
- }
1571
- }, void 0, !0)
1572
- ], 46, hl)),
1573
- t.$slots.hint ? (n(), r("div", El, [
1574
- y(t.$slots, "hint", S(T({
1575
- hint: e.value.a11y.translations.keyboardNavigation,
1576
- isVisible: Pe.value
1577
- })), void 0, !0)
1578
- ])) : h("", !0)
1579
- ]),
1580
- t.$slots.watermark ? (n(), r("div", Xl, [
1581
- y(t.$slots, "watermark", S(T({
1582
- isPrinting: u(Le) || u(Me) || ve.value || de.value
1583
- })), void 0, !0)
1584
- ])) : h("", !0),
1585
- g("div", {
1586
- ref_key: "chartLegend",
1587
- ref: Ke
1588
- }, [
1589
- e.value.style.chart.legend.show ? (n(), P(ll, {
1590
- key: `legend_${Ae.value}`,
1591
- legendSet: F.value,
1592
- config: la.value,
1593
- isCursorPointer: D.value,
1594
- onClickMarker: l[0] || (l[0] = ({ legend: a }) => fe(a.id))
1595
- }, Ee({
1596
- item: f(({ legend: a }) => [
1597
- u(q) ? h("", !0) : (n(), r("div", {
1598
- key: 0,
1599
- style: _(`opacity:${x.value.includes(a.id) ? 0.5 : 1}`),
1600
- onClick: (s) => a.segregate()
1601
- }, B(a.name), 13, Bl))
1602
- ]),
1603
- legendToggle: f(() => [
1604
- F.value.length > 2 && e.value.style.chart.legend.selectAllToggle.show && !u(q) ? (n(), P(ul, {
1605
- key: 0,
1606
- backgroundColor: e.value.style.chart.legend.selectAllToggle.backgroundColor,
1607
- color: e.value.style.chart.legend.selectAllToggle.color,
1608
- fontSize: e.value.style.chart.legend.fontSize,
1609
- checked: x.value.length > 0,
1610
- isCursorPointer: D.value,
1611
- onToggle: Kt
1612
- }, null, 8, ["backgroundColor", "color", "fontSize", "checked", "isCursorPointer"])) : h("", !0)
1613
- ]),
1614
- _: 2
1615
- }, [
1616
- t.$slots.pattern ? {
1617
- name: "legend-pattern",
1618
- fn: f(({ legend: a, index: s }) => [
1619
- Xe(sl, {
1620
- shape: a.shape,
1621
- radius: 30,
1622
- stroke: "none",
1623
- plot: { x: 30, y: 30 },
1624
- fill: `url(#pattern_${C.value}_${s})`
1625
- }, null, 8, ["shape", "fill"])
1626
- ]),
1627
- key: "0"
1628
- } : void 0
1629
- ]), 1032, ["legendSet", "config", "isCursorPointer"])) : h("", !0),
1630
- y(t.$slots, "legend", { legend: F.value }, void 0, !0)
1631
- ], 512),
1632
- t.$slots.source ? (n(), r("div", {
1633
- key: 6,
1634
- ref_key: "source",
1635
- ref: Ye,
1636
- dir: "auto"
1637
- }, [
1638
- y(t.$slots, "source", {}, void 0, !0)
1639
- ], 512)) : h("", !0),
1640
- ee.value && e.value.userOptions.buttons.table ? (n(), P(La(se.value.component), Be({ key: 7 }, se.value.props, {
1641
- ref_key: "tableUnit",
1642
- ref: te,
1643
- onClose: gt
1644
- }), Ee({
1645
- content: f(() => [
1646
- (n(), P(u(Nt), {
1647
- key: `table_${Ut.value}`,
1648
- colNames: Q.value.colNames,
1649
- head: Q.value.head,
1650
- body: Q.value.body,
1651
- config: Q.value.config,
1652
- title: e.value.table.useDialog ? "" : se.value.title,
1653
- withCloseButton: !e.value.table.useDialog,
1654
- isCursorPointer: D.value,
1655
- onClose: gt
1656
- }, {
1657
- th: f(({ th: a }) => [
1658
- g("div", { innerHTML: a }, null, 8, Hl)
1659
- ]),
1660
- td: f(({ td: a }) => [
1661
- He(B(a.name ? a.name : u(xe)(
1662
- e.value.style.chart.selector.labels.formatter,
1663
- a,
1664
- u(ke)({
1665
- p: e.value.style.chart.xAxis.labels.prefix,
1666
- v: a,
1667
- s: e.value.style.chart.xAxis.labels.suffix,
1668
- r: e.value.table.td.roundingValue
1669
- })
1670
- )), 1)
1671
- ]),
1672
- _: 1
1673
- }, 8, ["colNames", "head", "body", "config", "title", "withCloseButton", "isCursorPointer"]))
1674
- ]),
1675
- _: 2
1676
- }, [
1677
- e.value.table.useDialog ? {
1678
- name: "title",
1679
- fn: f(() => [
1680
- He(B(se.value.title), 1)
1681
- ]),
1682
- key: "0"
1683
- } : void 0,
1684
- e.value.table.useDialog ? {
1685
- name: "actions",
1686
- fn: f(() => [
1687
- g("button", {
1688
- tabindex: "0",
1689
- class: "vue-ui-user-options-button",
1690
- onClick: l[1] || (l[1] = (a) => Re(e.value.userOptions.callbacks.csv)),
1691
- style: _({ cursor: D.value ? "pointer" : "default" })
1692
- }, [
1693
- Xe(u(Dt), {
1694
- name: "fileCsv",
1695
- stroke: se.value.props.color
1696
- }, null, 8, ["stroke"])
1697
- ], 4)
1698
- ]),
1699
- key: "1"
1700
- } : void 0
1701
- ]), 1040)) : h("", !0),
1702
- e.value.style.chart.dialog.show ? (n(), P(u(Ge), {
1703
- key: 8,
1704
- ref_key: "dialog",
1705
- ref: we,
1706
- onClose: l[2] || (l[2] = (a) => Y.value = null),
1707
- backgroundColor: e.value.style.chart.dialog.backgroundColor,
1708
- color: e.value.style.chart.dialog.color,
1709
- headerBg: e.value.style.chart.dialog.header.backgroundColor,
1710
- headerColor: e.value.style.chart.dialog.header.color,
1711
- isFullscreen: G.value,
1712
- fullscreenParent: z.value,
1713
- isCursorPointer: D.value,
1714
- withPadding: ""
1715
- }, {
1716
- title: f(() => [
1717
- He(B(Y.value.name), 1)
1718
- ]),
1719
- content: f(() => [
1720
- Y.value ? (n(), P(u(zt), {
1721
- key: 0,
1722
- config: ye.value,
1723
- dataset: ge.value,
1724
- onCopyAlt: ya
1725
- }, null, 8, ["config", "dataset"])) : h("", !0)
1726
- ]),
1727
- _: 1
1728
- }, 8, ["backgroundColor", "color", "headerBg", "headerColor", "isFullscreen", "fullscreenParent", "isCursorPointer"])) : h("", !0),
1729
- y(t.$slots, "skeleton", {}, () => [
1730
- u(q) ? (n(), P(Ka, { key: 0 })) : h("", !0)
1731
- ], !0)
1732
- ], 46, cl));
1733
- }
1734
- }, vo = /* @__PURE__ */ il(Ul, [["__scopeId", "data-v-0073d09e"]]);
1735
- export {
1736
- vo as default
1737
- };