vue-data-ui 3.17.13 → 3.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (493) hide show
  1. package/README.md +1 -1
  2. package/dist/A11yDataTable-q2-8fSlJ.js +45 -0
  3. package/dist/Arrow-BU2Z7mfz.js +116 -0
  4. package/dist/BaseDraggableDialog-LE75fWYz.js +272 -0
  5. package/dist/BaseIcon-CL6Y7alf.js +499 -0
  6. package/dist/BaseLegendToggle-BvPOFMVZ.js +56 -0
  7. package/dist/BaseScanner-C7dmAref.js +27 -0
  8. package/dist/BaseZoomControls-DSwf4HhS.js +111 -0
  9. package/dist/ColorPicker-BGbMrtup.js +255 -0
  10. package/dist/DataTable-ZG4GX2Zg.js +150 -0
  11. package/dist/Legend-BPb8i4aC.js +114 -0
  12. package/dist/NonSvgPenAndPaper-BT3YMjgo.js +577 -0
  13. package/dist/PackageVersion-B1cPtZ3Q.js +11 -0
  14. package/dist/PenAndPaper-DxBCVZAx.js +461 -0
  15. package/dist/RecursiveCircles-DPpLel6f.js +117 -0
  16. package/dist/RecursiveLabels-DBMJf_to.js +56 -0
  17. package/dist/RecursiveLinks-D06dBL4a.js +78 -0
  18. package/dist/Shape-Dbug7CtK.js +141 -0
  19. package/dist/Slicer-SEdaKYPX.js +1144 -0
  20. package/dist/SlicerPreview-BLlQTUI_.js +1523 -0
  21. package/dist/SparkTooltip-BaONR2nq.js +93 -0
  22. package/dist/Title-ByyzJzpc.js +87 -0
  23. package/dist/Tooltip-V6Z0Ko-1.js +307 -0
  24. package/dist/UserOptions-Gaw1761w.js +1407 -0
  25. package/dist/_plugin-vue_export-helper-Dq1MygBL.js +8 -0
  26. package/dist/canvas-lib-DTaADQOK.js +79 -0
  27. package/dist/components/arrow.js +2 -5
  28. package/dist/components/vue-ui-3d-bar.js +2 -5
  29. package/dist/components/vue-ui-accordion.js +2 -5
  30. package/dist/components/vue-ui-age-pyramid.js +2 -5
  31. package/dist/components/vue-ui-annotator.js +2 -5
  32. package/dist/components/vue-ui-bullet.js +2 -5
  33. package/dist/components/vue-ui-bump.js +2 -5
  34. package/dist/components/vue-ui-candlestick.js +2 -5
  35. package/dist/components/vue-ui-carousel-table.js +2 -5
  36. package/dist/components/vue-ui-chestnut.js +2 -5
  37. package/dist/components/vue-ui-chord.js +2 -5
  38. package/dist/components/vue-ui-circle-pack.js +2 -5
  39. package/dist/components/vue-ui-cursor.js +2 -5
  40. package/dist/components/vue-ui-dag.js +2 -5
  41. package/dist/components/vue-ui-dashboard.js +2 -5
  42. package/dist/components/vue-ui-digits.js +2 -5
  43. package/dist/components/vue-ui-donut-evolution.js +2 -5
  44. package/dist/components/vue-ui-donut.js +2 -5
  45. package/dist/components/vue-ui-dumbbell.js +2 -5
  46. package/dist/components/vue-ui-flow.js +2 -5
  47. package/dist/components/vue-ui-funnel.js +2 -5
  48. package/dist/components/vue-ui-galaxy.js +2 -5
  49. package/dist/components/vue-ui-gauge.js +2 -5
  50. package/dist/components/vue-ui-geo.js +2 -5
  51. package/dist/components/vue-ui-gizmo.js +2 -5
  52. package/dist/components/vue-ui-heatmap.js +2 -5
  53. package/dist/components/vue-ui-history-plot.js +2 -5
  54. package/dist/components/vue-ui-horizontal-bar.js +2 -5
  55. package/dist/components/vue-ui-icon.js +2 -5
  56. package/dist/components/vue-ui-kpi.js +2 -5
  57. package/dist/components/vue-ui-mini-loader.js +2 -5
  58. package/dist/components/vue-ui-molecule.js +2 -5
  59. package/dist/components/vue-ui-mood-radar.js +2 -5
  60. package/dist/components/vue-ui-nested-donuts.js +2 -5
  61. package/dist/components/vue-ui-onion.js +2 -5
  62. package/dist/components/vue-ui-parallel-coordinate-plot.js +2 -5
  63. package/dist/components/vue-ui-pattern-seed.js +2 -5
  64. package/dist/components/vue-ui-pattern.js +2 -5
  65. package/dist/components/vue-ui-quadrant.js +2 -5
  66. package/dist/components/vue-ui-quick-chart.js +2 -5
  67. package/dist/components/vue-ui-radar.js +2 -5
  68. package/dist/components/vue-ui-rating.js +2 -5
  69. package/dist/components/vue-ui-relation-circle.js +2 -5
  70. package/dist/components/vue-ui-ridgeline.js +2 -5
  71. package/dist/components/vue-ui-rings.js +2 -5
  72. package/dist/components/vue-ui-scatter.js +2 -5
  73. package/dist/components/vue-ui-skeleton.js +2 -5
  74. package/dist/components/vue-ui-smiley.js +2 -5
  75. package/dist/components/vue-ui-spark-trend.js +2 -5
  76. package/dist/components/vue-ui-sparkbar.js +2 -5
  77. package/dist/components/vue-ui-sparkgauge.js +2 -5
  78. package/dist/components/vue-ui-sparkhistogram.js +2 -5
  79. package/dist/components/vue-ui-sparkline.js +2 -5
  80. package/dist/components/vue-ui-sparkstackbar.js +2 -5
  81. package/dist/components/vue-ui-stackbar.js +2 -5
  82. package/dist/components/vue-ui-stackline.js +2 -5
  83. package/dist/components/vue-ui-strip-plot.js +2 -5
  84. package/dist/components/vue-ui-table-heatmap.js +2 -5
  85. package/dist/components/vue-ui-table-sparkline.js +2 -5
  86. package/dist/components/vue-ui-table.js +2 -5
  87. package/dist/components/vue-ui-thermometer.js +2 -5
  88. package/dist/components/vue-ui-timer.js +2 -5
  89. package/dist/components/vue-ui-tiremarks.js +2 -5
  90. package/dist/components/vue-ui-treemap.js +2 -5
  91. package/dist/components/vue-ui-vertical-bar.js +2 -5
  92. package/dist/components/vue-ui-waffle.js +2 -5
  93. package/dist/components/vue-ui-wheel.js +2 -5
  94. package/dist/components/vue-ui-word-cloud.js +2 -5
  95. package/dist/components/vue-ui-world.js +2 -5
  96. package/dist/components/vue-ui-xy-canvas.js +2 -5
  97. package/dist/components/vue-ui-xy.js +2 -5
  98. package/dist/dom-to-png-C9UOX1d2.js +237 -0
  99. package/dist/exposedLib-BQjH823l.js +19 -0
  100. package/dist/geoProjections-CQIkC70z.js +146 -0
  101. package/dist/img-NMY-_LiJ.js +74 -0
  102. package/dist/labelUtils-BiSegLOT.js +19 -0
  103. package/dist/lib-B83ZCydz.js +1879 -0
  104. package/dist/patternUtils-B7BWu5bV.js +258 -0
  105. package/dist/pdf-Ey2KFETK.js +90 -0
  106. package/dist/rolldown-runtime-CAFD8bLK.js +11 -0
  107. package/dist/style.css +2 -1
  108. package/dist/types/arrow.d.ts +1 -1
  109. package/dist/types/utils.d.ts +23 -0
  110. package/dist/types/vue-data-ui.d.ts +4766 -630
  111. package/dist/types/vue-ui-3d-bar.d.ts +64 -9
  112. package/dist/types/vue-ui-accordion.d.ts +4 -3
  113. package/dist/types/vue-ui-age-pyramid.d.ts +79 -9
  114. package/dist/types/vue-ui-annotator.d.ts +3 -5
  115. package/dist/types/vue-ui-bullet.d.ts +60 -9
  116. package/dist/types/vue-ui-bump.d.ts +65 -9
  117. package/dist/types/vue-ui-candlestick.d.ts +83 -9
  118. package/dist/types/vue-ui-carousel-table.d.ts +36 -6
  119. package/dist/types/vue-ui-chestnut.d.ts +66 -9
  120. package/dist/types/vue-ui-chord.d.ts +78 -9
  121. package/dist/types/vue-ui-circle-pack.d.ts +86 -9
  122. package/dist/types/vue-ui-cursor.d.ts +4 -2
  123. package/dist/types/vue-ui-dag.d.ts +92 -9
  124. package/dist/types/vue-ui-dashboard.d.ts +43 -6
  125. package/dist/types/vue-ui-digits.d.ts +4 -2
  126. package/dist/types/vue-ui-donut-evolution.d.ts +70 -9
  127. package/dist/types/vue-ui-donut.d.ts +92 -9
  128. package/dist/types/vue-ui-dumbbell.d.ts +65 -9
  129. package/dist/types/vue-ui-flow.d.ts +79 -9
  130. package/dist/types/vue-ui-funnel.d.ts +55 -9
  131. package/dist/types/vue-ui-galaxy.d.ts +83 -9
  132. package/dist/types/vue-ui-gauge.d.ts +64 -9
  133. package/dist/types/vue-ui-geo.d.ts +71 -9
  134. package/dist/types/vue-ui-gizmo.d.ts +17 -6
  135. package/dist/types/vue-ui-heatmap.d.ts +73 -9
  136. package/dist/types/vue-ui-history-plot.d.ts +82 -9
  137. package/dist/types/vue-ui-horizontal-bar.d.ts +84 -9
  138. package/dist/types/vue-ui-icon.d.ts +2 -2
  139. package/dist/types/vue-ui-kpi.d.ts +21 -7
  140. package/dist/types/vue-ui-mini-loader.d.ts +5 -3
  141. package/dist/types/vue-ui-molecule.d.ts +86 -9
  142. package/dist/types/vue-ui-mood-radar.d.ts +66 -9
  143. package/dist/types/vue-ui-nested-donuts.d.ts +80 -9
  144. package/dist/types/vue-ui-onion.d.ts +77 -9
  145. package/dist/types/vue-ui-parallel-coordinate-plot.d.ts +92 -9
  146. package/dist/types/vue-ui-pattern-seed.d.ts +1 -1
  147. package/dist/types/vue-ui-pattern.d.ts +2 -2
  148. package/dist/types/vue-ui-quadrant.d.ts +86 -9
  149. package/dist/types/vue-ui-quick-chart.d.ts +79 -9
  150. package/dist/types/vue-ui-radar.d.ts +83 -9
  151. package/dist/types/vue-ui-rating.d.ts +22 -6
  152. package/dist/types/vue-ui-relation-circle.d.ts +66 -9
  153. package/dist/types/vue-ui-ridgeline.d.ts +69 -9
  154. package/dist/types/vue-ui-rings.d.ts +70 -9
  155. package/dist/types/vue-ui-scatter.d.ts +67 -9
  156. package/dist/types/vue-ui-skeleton.d.ts +3 -2
  157. package/dist/types/vue-ui-smiley.d.ts +3 -2
  158. package/dist/types/vue-ui-spark-trend.d.ts +14 -6
  159. package/dist/types/vue-ui-sparkbar.d.ts +27 -6
  160. package/dist/types/vue-ui-sparkgauge.d.ts +20 -6
  161. package/dist/types/vue-ui-sparkhistogram.d.ts +24 -6
  162. package/dist/types/vue-ui-sparkline.d.ts +35 -6
  163. package/dist/types/vue-ui-sparkstackbar.d.ts +35 -6
  164. package/dist/types/vue-ui-stackbar.d.ts +85 -9
  165. package/dist/types/vue-ui-stackline.d.ts +81 -9
  166. package/dist/types/vue-ui-strip-plot.d.ts +66 -9
  167. package/dist/types/vue-ui-table-heatmap.d.ts +52 -6
  168. package/dist/types/vue-ui-table-sparkline.d.ts +30 -6
  169. package/dist/types/vue-ui-table.d.ts +10 -2
  170. package/dist/types/vue-ui-thermometer.d.ts +46 -9
  171. package/dist/types/vue-ui-timer.d.ts +31 -5
  172. package/dist/types/vue-ui-tiremarks.d.ts +46 -9
  173. package/dist/types/vue-ui-treemap.d.ts +73 -9
  174. package/dist/types/vue-ui-vertical-bar.d.ts +2 -2
  175. package/dist/types/vue-ui-waffle.d.ts +72 -9
  176. package/dist/types/vue-ui-wheel.d.ts +46 -9
  177. package/dist/types/vue-ui-word-cloud.d.ts +73 -9
  178. package/dist/types/vue-ui-world.d.ts +68 -9
  179. package/dist/types/vue-ui-xy-canvas.d.ts +75 -9
  180. package/dist/types/vue-ui-xy.d.ts +108 -10
  181. package/dist/useAutoSizeLabelsInsideViewbox-De0rTecW.js +50 -0
  182. package/dist/useChartAccessibility-Do37qcw2.js +12 -0
  183. package/dist/useConfig-KnOLHtlJ.js +7419 -0
  184. package/dist/useFitSvgText-C-MEdAfe.js +63 -0
  185. package/dist/useNestedProp-CcxL1gUU.js +10 -0
  186. package/dist/useObjectBindings-Dc8Rf6Qy.js +189 -0
  187. package/dist/usePanZoom-B-4M_gmY.js +157 -0
  188. package/dist/usePrefersMotion-BywLbIko.js +15 -0
  189. package/dist/usePrinter-CMLF900n.js +49 -0
  190. package/dist/useResponsive-CrAInupd.js +19 -0
  191. package/dist/useStableElementSize-0I1IpHPl.js +77 -0
  192. package/dist/useSvgExport-Dtu973wa.js +755 -0
  193. package/dist/useTableResponsive-DrM1xqII.js +24 -0
  194. package/dist/useThemeCheck-rFK9Zlb_.js +24 -0
  195. package/dist/useTimeLabelCollider-Dm55Emzg.js +57 -0
  196. package/dist/useTimeLabels-C0x7zUXP.js +272 -0
  197. package/dist/useUserOptionState-CjPJPTg2.js +15 -0
  198. package/dist/utils.js +27 -44
  199. package/dist/vClickOutside-CbX_bC9A.js +13 -0
  200. package/dist/vue-data-ui-D1REqS_k.js +274 -0
  201. package/dist/vue-data-ui.js +76 -167
  202. package/dist/vue-ui-3d-bar-vO_kSCd6.js +1747 -0
  203. package/dist/vue-ui-accordion-Cf-jZELj.js +81 -0
  204. package/dist/vue-ui-age-pyramid-DHXhrP_3.js +1226 -0
  205. package/dist/vue-ui-annotator-B0o6czmF.js +2899 -0
  206. package/dist/vue-ui-bullet-C93-cf0H.js +700 -0
  207. package/dist/vue-ui-bump-C_Szk9AZ.js +1239 -0
  208. package/dist/vue-ui-candlestick-6JdMEJKO.js +1802 -0
  209. package/dist/vue-ui-carousel-table-CZ_HK0Iw.js +445 -0
  210. package/dist/vue-ui-chestnut-B8ixU585.js +2000 -0
  211. package/dist/vue-ui-chord-DC5sLapz.js +1381 -0
  212. package/dist/vue-ui-circle-pack-CsmSEwt3.js +1183 -0
  213. package/dist/vue-ui-cursor-B-QODIL3.js +283 -0
  214. package/dist/vue-ui-dag-C9LYfjS_.js +2899 -0
  215. package/dist/vue-ui-dashboard-D-f4ZaLi.js +503 -0
  216. package/dist/vue-ui-digits-CcB3odN7.js +209 -0
  217. package/dist/vue-ui-donut-DR0ngnZC.js +2396 -0
  218. package/dist/vue-ui-donut-evolution-BXpOscCe.js +1490 -0
  219. package/dist/vue-ui-dumbbell-CB_clJWA.js +1517 -0
  220. package/dist/vue-ui-flow-CUiOAEy1.js +1223 -0
  221. package/dist/vue-ui-funnel-BAlGDK0o.js +767 -0
  222. package/dist/vue-ui-galaxy-DbYNfSHb.js +1062 -0
  223. package/dist/vue-ui-gauge-Cie7jykM.js +910 -0
  224. package/dist/vue-ui-geo-Ce_gBRye.js +1504 -0
  225. package/dist/vue-ui-gizmo-B9POi_SN.js +225 -0
  226. package/dist/vue-ui-heatmap-DFfRSbnk.js +1556 -0
  227. package/dist/vue-ui-history-plot-DHp5WFgx.js +1551 -0
  228. package/dist/vue-ui-horizontal-bar-DI4yoARv.js +1669 -0
  229. package/dist/vue-ui-kpi-oUfso4UP.js +96 -0
  230. package/dist/vue-ui-mini-loader-aZMi1_uX.js +125 -0
  231. package/dist/vue-ui-molecule-D72kzel_.js +912 -0
  232. package/dist/vue-ui-mood-radar-Tw2ZFP7Y.js +1138 -0
  233. package/dist/vue-ui-nested-donuts-Bza1LczX.js +1472 -0
  234. package/dist/vue-ui-onion-BOuuib5d.js +1188 -0
  235. package/dist/vue-ui-parallel-coordinate-plot-BuQUq6-o.js +1413 -0
  236. package/dist/vue-ui-pattern-Bj-IPFr2.js +154 -0
  237. package/dist/vue-ui-pattern-seed-abRweCDE.js +61 -0
  238. package/dist/vue-ui-quadrant-zNFIXNt9.js +1966 -0
  239. package/dist/vue-ui-quick-chart-B1a8QVUn.js +2459 -0
  240. package/dist/vue-ui-radar-VFn-YP_2.js +1214 -0
  241. package/dist/vue-ui-rating-Dxgn21FA.js +343 -0
  242. package/dist/vue-ui-relation-circle-B0sZaCgX.js +914 -0
  243. package/dist/vue-ui-ridgeline-BsBAbg5V.js +1612 -0
  244. package/dist/vue-ui-rings-CDwUzMF-.js +1231 -0
  245. package/dist/vue-ui-scatter-Du_b-zM8.js +2380 -0
  246. package/dist/vue-ui-skeleton-BAq6J_6G.js +2556 -0
  247. package/dist/vue-ui-smiley-CoHvkS0c.js +356 -0
  248. package/dist/vue-ui-spark-trend-BmCcJ17C.js +438 -0
  249. package/dist/vue-ui-sparkbar-9z05IMx8.js +393 -0
  250. package/dist/vue-ui-sparkgauge-BlWri9DP.js +255 -0
  251. package/dist/vue-ui-sparkhistogram-CHZTt8d8.js +560 -0
  252. package/dist/vue-ui-sparkline-DirLW9Nd.js +1503 -0
  253. package/dist/vue-ui-sparkstackbar-Dk6cEI2o.js +660 -0
  254. package/dist/vue-ui-stackbar-DNIrGHkt.js +2235 -0
  255. package/dist/vue-ui-stackline-HoWn_ur2.js +2362 -0
  256. package/dist/vue-ui-strip-plot-Bi8u_fLr.js +1328 -0
  257. package/dist/vue-ui-table-XLjOOfdI.js +1338 -0
  258. package/dist/vue-ui-table-heatmap-DvnFiveI.js +334 -0
  259. package/dist/vue-ui-table-sparkline-CSZf8XxP.js +697 -0
  260. package/dist/vue-ui-thermometer-7eUO_7CP.js +753 -0
  261. package/dist/vue-ui-timer-DCbxsREb.js +439 -0
  262. package/dist/vue-ui-tiremarks-p_sfTufv.js +542 -0
  263. package/dist/vue-ui-treemap-BdZOW7TM.js +1575 -0
  264. package/dist/vue-ui-waffle-Bf9dWWCM.js +1350 -0
  265. package/dist/vue-ui-wheel-CZrIiB0K.js +875 -0
  266. package/dist/vue-ui-word-cloud-BeLjxoRe.js +1644 -0
  267. package/dist/vue-ui-world-D9ahzEQ2.js +14252 -0
  268. package/dist/vue-ui-xy-DrvbVuHO.js +4063 -0
  269. package/dist/vue-ui-xy-canvas-DU7vFrQr.js +1774 -0
  270. package/dist/vue_ui_3d_bar-CXKqO5Ej.js +185 -0
  271. package/dist/vue_ui_age_pyramid-BON8QI6X.js +301 -0
  272. package/dist/vue_ui_bullet-CE5sFT7u.js +186 -0
  273. package/dist/vue_ui_bump-frnXaXul.js +201 -0
  274. package/dist/vue_ui_candlestick-sY6UtOop.js +374 -0
  275. package/dist/vue_ui_chestnut-BiUZFv40.js +305 -0
  276. package/dist/vue_ui_chord-DpyR_b9A.js +275 -0
  277. package/dist/vue_ui_circle_pack-DBKz_Fi_.js +130 -0
  278. package/dist/vue_ui_dag-Ci_MOnvd.js +258 -0
  279. package/dist/vue_ui_donut-Cx2_BGcQ.js +358 -0
  280. package/dist/vue_ui_donut_evolution-CAJefrHs.js +717 -0
  281. package/dist/vue_ui_dumbbell-CClzAZTN.js +304 -0
  282. package/dist/vue_ui_flow-CCHO1Lo9.js +238 -0
  283. package/dist/vue_ui_funnel-h8q2mRpC.js +234 -0
  284. package/dist/vue_ui_galaxy-70vtkEBw.js +265 -0
  285. package/dist/vue_ui_gauge-C17CgfzN.js +178 -0
  286. package/dist/vue_ui_geo-C0UbQ0Lc.js +248 -0
  287. package/dist/vue_ui_heatmap-BqPP3J4M.js +319 -0
  288. package/dist/vue_ui_history_plot-C5nytDHh.js +413 -0
  289. package/dist/vue_ui_horizontal_bar-Bqxorkc_.js +341 -0
  290. package/dist/vue_ui_molecule-Dka4JBOp.js +231 -0
  291. package/dist/vue_ui_mood_radar-Dg4ijm53.js +281 -0
  292. package/dist/vue_ui_nested_donuts-BY9cOoHF.js +273 -0
  293. package/dist/vue_ui_onion-DTV9cup-.js +293 -0
  294. package/dist/vue_ui_parallel_coordinate_plot-CNWrDh96.js +278 -0
  295. package/dist/vue_ui_quadrant-3kjYvxpj.js +428 -0
  296. package/dist/vue_ui_quick_chart--VaYQuM4.js +139 -0
  297. package/dist/vue_ui_radar-Dxx9GJmj.js +306 -0
  298. package/dist/vue_ui_relation_circle-Cr0I2SoU.js +98 -0
  299. package/dist/vue_ui_ridgeline-CAtYca4b.js +767 -0
  300. package/dist/vue_ui_rings-DXC1VeX5.js +320 -0
  301. package/dist/vue_ui_scatter-D2S2j0ap.js +479 -0
  302. package/dist/vue_ui_spark_trend-BHMQ6_1p.js +82 -0
  303. package/dist/vue_ui_sparkbar-BR6hbuDE.js +64 -0
  304. package/dist/vue_ui_sparkgauge-xfPRHnMv.js +90 -0
  305. package/dist/vue_ui_sparkhistogram-CJRENZ1C.js +123 -0
  306. package/dist/vue_ui_sparkline-wgk7yO7E.js +151 -0
  307. package/dist/vue_ui_sparkstackbar-C5qZMmAl.js +175 -0
  308. package/dist/vue_ui_stackbar-BW_C3MXw.js +412 -0
  309. package/dist/vue_ui_stackline-DpI2LnjO.js +426 -0
  310. package/dist/vue_ui_strip_plot-8ZelqC5b.js +301 -0
  311. package/dist/vue_ui_table_heatmap-BGUjA0WA.js +80 -0
  312. package/dist/vue_ui_table_sparkline-i0Q-N_we.js +124 -0
  313. package/dist/vue_ui_thermometer-CuN7Gpez.js +123 -0
  314. package/dist/vue_ui_tiremarks-A6UHC0c3.js +122 -0
  315. package/dist/vue_ui_treemap-BQp06q-g.js +328 -0
  316. package/dist/vue_ui_vertical_bar-CJSD1FZS.js +247 -0
  317. package/dist/vue_ui_waffle-C_Ev4l7B.js +292 -0
  318. package/dist/vue_ui_wheel-DdkTPXJU.js +133 -0
  319. package/dist/vue_ui_word_cloud-B1PbsYPc.js +254 -0
  320. package/dist/vue_ui_xy-BYPqfYyx.js +482 -0
  321. package/dist/vue_ui_xy_canvas-CMHGNrLf.js +408 -0
  322. package/package.json +7 -7
  323. package/dist/A11yDataTable-BpmuNomI.js +0 -54
  324. package/dist/Arrow-dSvLFssU.js +0 -101
  325. package/dist/BaseDraggableDialog-Di8Hlru3.js +0 -249
  326. package/dist/BaseIcon-DX0hTWa-.js +0 -476
  327. package/dist/BaseLegendToggle-cMP8M2u0.js +0 -47
  328. package/dist/BaseScanner-C2j3TsSY.js +0 -36
  329. package/dist/BaseZoomControls-CVSC1-SU.js +0 -123
  330. package/dist/ColorPicker-bAxGcXK0.js +0 -271
  331. package/dist/DataTable-cMnb68Ik.js +0 -145
  332. package/dist/Legend-DGN5lY60.js +0 -104
  333. package/dist/NonSvgPenAndPaper-B6E0zEYe.js +0 -573
  334. package/dist/PackageVersion-BfrCAH6_.js +0 -10
  335. package/dist/PenAndPaper-CJDoB5H9.js +0 -527
  336. package/dist/RecursiveCircles-BE6GoMmo.js +0 -101
  337. package/dist/RecursiveLabels-BhQMS9Sm.js +0 -55
  338. package/dist/RecursiveLinks-BDwyYfP-.js +0 -83
  339. package/dist/Shape-CxJ5_Rre.js +0 -116
  340. package/dist/Slicer-D7UcO8sN.js +0 -1145
  341. package/dist/SlicerPreview-D_CgrN_7.js +0 -1580
  342. package/dist/SparkTooltip-D4bM-kfz.js +0 -68
  343. package/dist/Title-BbKoiBk2.js +0 -88
  344. package/dist/Tooltip-Cvt7Fi0Q.js +0 -299
  345. package/dist/UserOptions-DVduN6X7.js +0 -1474
  346. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
  347. package/dist/dom-to-png-DGvx6i5V.js +0 -262
  348. package/dist/exposedLib-sJvY1pST.js +0 -22
  349. package/dist/geoProjections-BFq2sOBY.js +0 -162
  350. package/dist/img-CjTQXS0U.js +0 -57
  351. package/dist/labelUtils-DX9oyq3C.js +0 -26
  352. package/dist/lib-DMzrGQHK.js +0 -2477
  353. package/dist/patternUtils-BINhU4Ky.js +0 -615
  354. package/dist/pdf-C4H4o1Cj.js +0 -88
  355. package/dist/useAutoSizeLabelsInsideViewbox-izlGDfwu.js +0 -55
  356. package/dist/useChartAccessibility-cp6XQtqi.js +0 -15
  357. package/dist/useConfig-CG4HT3wS.js +0 -7901
  358. package/dist/useFitSvgText-2crs6Fv5.js +0 -69
  359. package/dist/useNestedProp-DH0BEVVS.js +0 -13
  360. package/dist/useObjectBindings-Dixg-RIe.js +0 -228
  361. package/dist/usePanZoom-BbDhcKWf.js +0 -141
  362. package/dist/usePrefersMotion-Co0nj1eS.js +0 -17
  363. package/dist/usePrinter-C4t8DdQ-.js +0 -51
  364. package/dist/useResponsive-DfdjqQps.js +0 -195
  365. package/dist/useStableElementSize-C48ZVcZQ.js +0 -77
  366. package/dist/useSvgExport-BTG4hVPO.js +0 -870
  367. package/dist/useTableResponsive-BpfiEtzR.js +0 -26
  368. package/dist/useThemeCheck-C9Ccl7U9.js +0 -36
  369. package/dist/useTimeLabelCollider-D3JeJ6Ye.js +0 -86
  370. package/dist/useTimeLabels-Cv0tD9In.js +0 -307
  371. package/dist/useUserOptionState-B7Ej974k.js +0 -19
  372. package/dist/vClickOutside-C6WiFswA.js +0 -13
  373. package/dist/vue-data-ui-D1ZI7Y4l.js +0 -433
  374. package/dist/vue-ui-3d-bar-DEjKYzI5.js +0 -1824
  375. package/dist/vue-ui-accordion-DFtpH_16.js +0 -92
  376. package/dist/vue-ui-age-pyramid-LiC9hTjP.js +0 -1179
  377. package/dist/vue-ui-annotator-DrKnQoHf.js +0 -2991
  378. package/dist/vue-ui-bullet-DdxEINdq.js +0 -769
  379. package/dist/vue-ui-bump-CdgO1V7z.js +0 -1250
  380. package/dist/vue-ui-candlestick-DxJnPwto.js +0 -1775
  381. package/dist/vue-ui-carousel-table-CMefu5TI.js +0 -487
  382. package/dist/vue-ui-chestnut-BnGN72PO.js +0 -2001
  383. package/dist/vue-ui-chord-DWyar45U.js +0 -1457
  384. package/dist/vue-ui-circle-pack-CQ8vF2XH.js +0 -1076
  385. package/dist/vue-ui-cursor-HHOdkmyB.js +0 -260
  386. package/dist/vue-ui-dag-BDWPBElq.js +0 -3209
  387. package/dist/vue-ui-dashboard-Dg_I3X2a.js +0 -627
  388. package/dist/vue-ui-digits-CZmdir8V.js +0 -211
  389. package/dist/vue-ui-donut-BKegKHxj.js +0 -2608
  390. package/dist/vue-ui-donut-evolution-047dE4Lu.js +0 -1578
  391. package/dist/vue-ui-dumbbell-BL4ZMChj.js +0 -1552
  392. package/dist/vue-ui-flow-BAqtyunQ.js +0 -1279
  393. package/dist/vue-ui-funnel-Pl2sEOZs.js +0 -823
  394. package/dist/vue-ui-galaxy-CBF5Wsax.js +0 -1108
  395. package/dist/vue-ui-gauge-COV_S0Vp.js +0 -955
  396. package/dist/vue-ui-geo-CaPXElPf.js +0 -1510
  397. package/dist/vue-ui-gizmo-Csn7up96.js +0 -238
  398. package/dist/vue-ui-heatmap-Cpb0BYLa.js +0 -1694
  399. package/dist/vue-ui-history-plot-ZZEdzFCE.js +0 -1564
  400. package/dist/vue-ui-horizontal-bar-BonPYUZf.js +0 -1735
  401. package/dist/vue-ui-kpi-DoHhSsDK.js +0 -130
  402. package/dist/vue-ui-mini-loader-DOTBVCLE.js +0 -138
  403. package/dist/vue-ui-molecule-mVYnXouV.js +0 -945
  404. package/dist/vue-ui-mood-radar-DPvwnc3z.js +0 -1197
  405. package/dist/vue-ui-nested-donuts-C7E6TXrZ.js +0 -1702
  406. package/dist/vue-ui-onion-BGIlFhGB.js +0 -1207
  407. package/dist/vue-ui-parallel-coordinate-plot-C6G_A9ua.js +0 -1432
  408. package/dist/vue-ui-pattern-mXZW_pvA.js +0 -146
  409. package/dist/vue-ui-pattern-seed-BcNlxb2i.js +0 -36
  410. package/dist/vue-ui-quadrant-CVpIeYOB.js +0 -1918
  411. package/dist/vue-ui-quick-chart-CcV8qn9-.js +0 -2514
  412. package/dist/vue-ui-radar-G4AV1rBo.js +0 -1259
  413. package/dist/vue-ui-rating-CqPlP88P.js +0 -370
  414. package/dist/vue-ui-relation-circle-CkZ8oFVV.js +0 -856
  415. package/dist/vue-ui-ridgeline-CBTyYn6Q.js +0 -1737
  416. package/dist/vue-ui-rings-CSIOqFiP.js +0 -1256
  417. package/dist/vue-ui-scatter-AuC46ufT.js +0 -2345
  418. package/dist/vue-ui-skeleton-YD6rZjY_.js +0 -2475
  419. package/dist/vue-ui-smiley-CY0WFv2j.js +0 -391
  420. package/dist/vue-ui-spark-trend-D8KGIt-R.js +0 -423
  421. package/dist/vue-ui-sparkbar-BjWGJjzN.js +0 -424
  422. package/dist/vue-ui-sparkgauge-Dab5mss7.js +0 -285
  423. package/dist/vue-ui-sparkhistogram-D0rsmiPh.js +0 -559
  424. package/dist/vue-ui-sparkline-BCaauQuX.js +0 -1550
  425. package/dist/vue-ui-sparkstackbar-NT5yD6xA.js +0 -672
  426. package/dist/vue-ui-stackbar-ChBk_A1c.js +0 -2393
  427. package/dist/vue-ui-stackline-Cujamlze.js +0 -2490
  428. package/dist/vue-ui-strip-plot-CGBumG6I.js +0 -1293
  429. package/dist/vue-ui-table-BX2iMku4.js +0 -1726
  430. package/dist/vue-ui-table-heatmap-KXgXYVXm.js +0 -353
  431. package/dist/vue-ui-table-sparkline-C3NWnry0.js +0 -803
  432. package/dist/vue-ui-thermometer-DvdceZB1.js +0 -743
  433. package/dist/vue-ui-timer-XWAbvuAY.js +0 -504
  434. package/dist/vue-ui-tiremarks-B-YI1RlT.js +0 -578
  435. package/dist/vue-ui-treemap-AzorGfmd.js +0 -1757
  436. package/dist/vue-ui-waffle-CKtUvdTE.js +0 -1442
  437. package/dist/vue-ui-wheel-CnsLEArZ.js +0 -908
  438. package/dist/vue-ui-word-cloud-iAme2ihe.js +0 -1644
  439. package/dist/vue-ui-world-D5rrC9rw.js +0 -14452
  440. package/dist/vue-ui-xy-C_Q9chQe.js +0 -4468
  441. package/dist/vue-ui-xy-canvas-DG0299qE.js +0 -2107
  442. package/dist/vue_ui_3d_bar-CL0iX8Qi.js +0 -22
  443. package/dist/vue_ui_age_pyramid-8H8WSL7J.js +0 -22
  444. package/dist/vue_ui_bullet-Ckqieba5.js +0 -22
  445. package/dist/vue_ui_bump-CIht647H.js +0 -22
  446. package/dist/vue_ui_candlestick-BAMn-VGw.js +0 -22
  447. package/dist/vue_ui_chestnut-BloFvDuV.js +0 -22
  448. package/dist/vue_ui_chord-Bc1_ocwK.js +0 -22
  449. package/dist/vue_ui_circle_pack-CLmw8nHe.js +0 -22
  450. package/dist/vue_ui_dag-ZOwuDBZ8.js +0 -22
  451. package/dist/vue_ui_donut-CA4dgV8J.js +0 -22
  452. package/dist/vue_ui_donut_evolution-DFQU-rqE.js +0 -22
  453. package/dist/vue_ui_dumbbell-BCOHDiPk.js +0 -22
  454. package/dist/vue_ui_flow-BErINgox.js +0 -22
  455. package/dist/vue_ui_funnel-yuaMZ-yb.js +0 -22
  456. package/dist/vue_ui_galaxy-D95AN4FT.js +0 -22
  457. package/dist/vue_ui_gauge-BMEuRC4J.js +0 -22
  458. package/dist/vue_ui_geo--kg4VoVX.js +0 -22
  459. package/dist/vue_ui_heatmap-C9u993qE.js +0 -22
  460. package/dist/vue_ui_history_plot-BCKk1CrQ.js +0 -22
  461. package/dist/vue_ui_horizontal_bar-BEagrV0T.js +0 -22
  462. package/dist/vue_ui_molecule-BtvlINUh.js +0 -22
  463. package/dist/vue_ui_mood_radar-BUs6Fdn8.js +0 -22
  464. package/dist/vue_ui_nested_donuts-DvTrWT_C.js +0 -22
  465. package/dist/vue_ui_onion-CxWH9_OZ.js +0 -22
  466. package/dist/vue_ui_parallel_coordinate_plot-DH3cFJ3n.js +0 -22
  467. package/dist/vue_ui_quadrant-DjRs--Uz.js +0 -22
  468. package/dist/vue_ui_quick_chart-DMCjEjPe.js +0 -22
  469. package/dist/vue_ui_radar-DryGBOrz.js +0 -22
  470. package/dist/vue_ui_relation_circle-CCroen7h.js +0 -22
  471. package/dist/vue_ui_ridgeline-j4rVmpEp.js +0 -22
  472. package/dist/vue_ui_rings-CxOrekqA.js +0 -22
  473. package/dist/vue_ui_scatter-Bu1EAy9H.js +0 -22
  474. package/dist/vue_ui_spark_trend-3BjrSprO.js +0 -22
  475. package/dist/vue_ui_sparkbar-BsMzz5Um.js +0 -22
  476. package/dist/vue_ui_sparkgauge-KnjASOZs.js +0 -22
  477. package/dist/vue_ui_sparkhistogram-GBdzIVvS.js +0 -22
  478. package/dist/vue_ui_sparkline-CQ8DJVJx.js +0 -22
  479. package/dist/vue_ui_sparkstackbar-BSexvOuM.js +0 -22
  480. package/dist/vue_ui_stackbar-CuDC4O4b.js +0 -22
  481. package/dist/vue_ui_stackline-QTh-nuxE.js +0 -22
  482. package/dist/vue_ui_strip_plot-B9ypi_F3.js +0 -22
  483. package/dist/vue_ui_table_heatmap-CkvipPVy.js +0 -16
  484. package/dist/vue_ui_table_sparkline-yQdijcyJ.js +0 -22
  485. package/dist/vue_ui_thermometer-BTmjRBH8.js +0 -22
  486. package/dist/vue_ui_tiremarks-DBotWfi8.js +0 -22
  487. package/dist/vue_ui_treemap-D9-AIkT-.js +0 -22
  488. package/dist/vue_ui_vertical_bar-CELc39b8.js +0 -18
  489. package/dist/vue_ui_waffle-M2h-uJQ_.js +0 -22
  490. package/dist/vue_ui_wheel-LqBz3lv4.js +0 -22
  491. package/dist/vue_ui_word_cloud-mKAtBxHR.js +0 -22
  492. package/dist/vue_ui_xy-esktmpg-.js +0 -22
  493. package/dist/vue_ui_xy_canvas-6BBDSowT.js +0 -22
@@ -0,0 +1,1612 @@
1
+ import { t as e } from "./rolldown-runtime-CAFD8bLK.js";
2
+ import { B as t, G as n, H as r, I as i, J as a, Lt as ee, Nt as o, O as te, S as s, St as ne, Tt as re, X as ie, ct as ae, i as c, k as oe, ot as se, q as ce, r as le, t as ue, x as de, y as fe, zt as pe } from "./lib-B83ZCydz.js";
3
+ import { t as me } from "./useTimeLabels-C0x7zUXP.js";
4
+ import { t as he } from "./useConfig-KnOLHtlJ.js";
5
+ import { t as ge } from "./usePrinter-CMLF900n.js";
6
+ import { n as _e, t as ve } from "./BaseScanner-C7dmAref.js";
7
+ import { t as ye } from "./useSvgExport-Dtu973wa.js";
8
+ import { t as be } from "./useNestedProp-CcxL1gUU.js";
9
+ import { t as xe } from "./useThemeCheck-rFK9Zlb_.js";
10
+ import { t as Se } from "./useTimeLabelCollider-Dm55Emzg.js";
11
+ import { t as Ce } from "./img-NMY-_LiJ.js";
12
+ import { n as we } from "./Title-ByyzJzpc.js";
13
+ import { t as Te } from "./Shape-Dbug7CtK.js";
14
+ import { t as Ee } from "./_plugin-vue_export-helper-Dq1MygBL.js";
15
+ import { c as De } from "./canvas-lib-DTaADQOK.js";
16
+ import { t as Oe } from "./useResponsive-CrAInupd.js";
17
+ import { t as ke } from "./BaseLegendToggle-BvPOFMVZ.js";
18
+ import { t as Ae } from "./A11yDataTable-q2-8fSlJ.js";
19
+ import { t as je } from "./useUserOptionState-CjPJPTg2.js";
20
+ import { t as Me } from "./useChartAccessibility-Do37qcw2.js";
21
+ import { t as Ne } from "./Legend-BPb8i4aC.js";
22
+ import { t as Pe } from "./vue_ui_ridgeline-CAtYca4b.js";
23
+ import { Fragment as l, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createSlots as Fe, createTextVNode as Ie, createVNode as Le, defineAsyncComponent as h, guardReactiveProps as g, mergeProps as Re, nextTick as ze, normalizeClass as Be, normalizeProps as _, normalizeStyle as v, onBeforeUnmount as Ve, openBlock as y, ref as b, renderList as x, renderSlot as S, resolveDynamicComponent as He, shallowRef as Ue, toDisplayString as C, toRefs as We, unref as w, watch as Ge, watchEffect as Ke, withCtx as T } from "vue";
24
+ //#region src/components/vue-ui-ridgeline.vue
25
+ var qe = /* @__PURE__ */ e({ default: () => Dt }), Je = ["id"], Ye = ["id"], Xe = { style: { position: "relative" } }, Ze = [
26
+ "xmlns",
27
+ "aria-describedby",
28
+ "viewBox"
29
+ ], Qe = ["id"], $e = ["stop-color"], et = ["stop-color"], tt = ["stop-color"], nt = ["stop-color"], rt = ["id"], it = ["stop-color"], at = ["stop-color"], ot = ["stop-color"], st = ["stop-color"], ct = { key: 0 }, lt = ["fill", "d"], ut = [
30
+ "stroke",
31
+ "stroke-width",
32
+ "d"
33
+ ], dt = ["fill", "d"], ft = [
34
+ "stroke",
35
+ "stroke-dasharray",
36
+ "stroke-width",
37
+ "d"
38
+ ], pt = [
39
+ "x1",
40
+ "y1",
41
+ "x2",
42
+ "y2",
43
+ "stroke",
44
+ "stroke-width",
45
+ "stroke-dasharray"
46
+ ], mt = [
47
+ "cx",
48
+ "cy",
49
+ "stroke",
50
+ "stroke-width",
51
+ "r",
52
+ "fill"
53
+ ], ht = [
54
+ "x",
55
+ "y",
56
+ "font-size",
57
+ "font-weight",
58
+ "fill",
59
+ "text-decoration",
60
+ "onMouseenter",
61
+ "onClick"
62
+ ], gt = { key: 0 }, _t = [
63
+ "font-size",
64
+ "fill",
65
+ "font-weight",
66
+ "transform",
67
+ "text-anchor"
68
+ ], vt = [
69
+ "font-size",
70
+ "fill",
71
+ "font-weight",
72
+ "transform",
73
+ "text-anchor",
74
+ "innerHTML"
75
+ ], yt = [
76
+ "x",
77
+ "y",
78
+ "width",
79
+ "height",
80
+ "onMouseenter",
81
+ "onMouseleave",
82
+ "onClick"
83
+ ], bt = [
84
+ "x1",
85
+ "x2",
86
+ "y1",
87
+ "y2",
88
+ "stroke",
89
+ "stroke-width",
90
+ "stroke-dasharray"
91
+ ], xt = [
92
+ "cx",
93
+ "cy",
94
+ "stroke",
95
+ "stroke-width",
96
+ "r",
97
+ "fill"
98
+ ], St = [
99
+ "x",
100
+ "y",
101
+ "text-anchor",
102
+ "font-size",
103
+ "fill"
104
+ ], Ct = {
105
+ key: 0,
106
+ style: {
107
+ position: "absolute",
108
+ top: "100%",
109
+ left: "0",
110
+ width: "100%"
111
+ },
112
+ "data-dom-to-png-ignore": "",
113
+ "aria-hidden": "true"
114
+ }, wt = {
115
+ key: 5,
116
+ class: "vue-data-ui-watermark"
117
+ }, Tt = ["onClick"], Et = ["innerHTML"], Dt = /* @__PURE__ */ Ee({
118
+ __name: "vue-ui-ridgeline",
119
+ props: {
120
+ config: {
121
+ type: Object,
122
+ default() {
123
+ return {};
124
+ }
125
+ },
126
+ dataset: {
127
+ type: Array,
128
+ default() {
129
+ return [];
130
+ }
131
+ }
132
+ },
133
+ emits: [
134
+ "selectLegend",
135
+ "selectDatapoint",
136
+ "selectX",
137
+ "copyAlt"
138
+ ],
139
+ setup(e, { expose: Ee, emit: qe }) {
140
+ let Dt = h(() => import("./vue-ui-xy-DrvbVuHO.js").then((e) => e.n)), Ot = h(() => import("./BaseIcon-CL6Y7alf.js").then((e) => e.n)), kt = h(() => import("./vue-ui-accordion-Cf-jZELj.js").then((e) => e.n)), At = h(() => import("./DataTable-ZG4GX2Zg.js")), jt = h(() => import("./PenAndPaper-DxBCVZAx.js").then((e) => e.t)), Mt = h(() => import("./UserOptions-Gaw1761w.js").then((e) => e.n)), Nt = h(() => import("./PackageVersion-B1cPtZ3Q.js").then((e) => e.t)), Pt = h(() => import("./BaseDraggableDialog-LE75fWYz.js").then((e) => e.n)), { vue_ui_ridgeline: Ft } = he(), { isThemeValid: It, warnInvalidTheme: Lt } = xe(), E = e, D = u({
141
+ get() {
142
+ return Array.isArray(z.value) && z.value.length > 0;
143
+ },
144
+ set(e) {
145
+ return e;
146
+ }
147
+ }), Rt = qe, O = b(null), zt = b(null), Bt = b(null), k = Ue(null), A = Ue(null), Vt = b(null), Ht = b(null), Ut = b(0), Wt = b(0), Gt = b(0), j = b(r()), Kt = b(0), qt = b(0), Jt = b(512), M = b(null), N = b(null), Yt = b(null), Xt = b(0), Zt = b(null), P = b(null), Qt = b(null), $t = b(!1), en = b(!1), F = b(null), tn = b(!1);
148
+ function nn() {
149
+ let e = be({
150
+ userConfig: E.config,
151
+ defaultConfig: Ft
152
+ }), t = e.theme;
153
+ if (!t) return e;
154
+ if (!It.value(e)) return Lt(e), e;
155
+ let n = be({
156
+ userConfig: Pe[t] || E.config,
157
+ defaultConfig: e
158
+ }), r = be({
159
+ userConfig: E.config,
160
+ defaultConfig: n
161
+ });
162
+ return {
163
+ ...r,
164
+ customPalette: r.customPalette.length ? r.customPalette : ee[t] || re
165
+ };
166
+ }
167
+ let I = b(nn()), L = u(() => I.value.userOptions.useCursorPointer), rn = u(() => pe({
168
+ defaultConfig: {
169
+ userOptions: { show: !1 },
170
+ table: { show: !1 },
171
+ style: { chart: {
172
+ backgroundColor: "#99999930",
173
+ areas: {
174
+ maxPoint: { show: !1 },
175
+ opacity: .9,
176
+ stroke: { useSerieColor: !0 }
177
+ },
178
+ legend: { backgroundColor: "transparent" },
179
+ padding: {
180
+ right: -24,
181
+ left: 0
182
+ },
183
+ xAxis: { labels: { values: [] } },
184
+ yAxis: { labels: { fontSize: 0 } },
185
+ zeroLine: { show: !1 }
186
+ } }
187
+ },
188
+ userConfig: I.value.skeletonConfig ?? {}
189
+ })), { loading: R, FINAL_DATASET: z, manualLoading: an } = _e({
190
+ ...We(E),
191
+ FINAL_CONFIG: I,
192
+ prepareConfig: nn,
193
+ skeletonDataset: E.config?.skeletonDataset ?? [
194
+ {
195
+ name: "_",
196
+ datapoints: [{
197
+ name: "__",
198
+ color: "#999999",
199
+ values: [
200
+ 28.639,
201
+ 32.04,
202
+ 41.134,
203
+ 44.525,
204
+ 21.151,
205
+ 2.436,
206
+ .218,
207
+ .024,
208
+ .002,
209
+ 0,
210
+ 0,
211
+ 0
212
+ ]
213
+ }, {
214
+ name: "_",
215
+ color: "#CACACA",
216
+ values: [
217
+ 13.253,
218
+ 15.621,
219
+ 23.36,
220
+ 33.698,
221
+ 29.935,
222
+ 10.874,
223
+ 2.364,
224
+ .561,
225
+ .107,
226
+ .02,
227
+ .006,
228
+ .004
229
+ ]
230
+ }]
231
+ },
232
+ {
233
+ name: "_",
234
+ datapoints: [{
235
+ name: "_",
236
+ color: "#999999",
237
+ values: [
238
+ 10.851,
239
+ 13.195,
240
+ 21.617,
241
+ 36.556,
242
+ 42.292,
243
+ 21.006,
244
+ 3.398,
245
+ .223,
246
+ .013,
247
+ .001,
248
+ 0,
249
+ 0
250
+ ]
251
+ }, {
252
+ name: "_",
253
+ color: "#CACACA",
254
+ values: [
255
+ 3.171,
256
+ 4.115,
257
+ 8.108,
258
+ 18.248,
259
+ 31.641,
260
+ 29.063,
261
+ 12.031,
262
+ 2.742,
263
+ .504,
264
+ .102,
265
+ .032,
266
+ .021
267
+ ]
268
+ }]
269
+ },
270
+ {
271
+ name: "_",
272
+ datapoints: [{
273
+ name: "_",
274
+ color: "#999999",
275
+ values: [
276
+ 1.731,
277
+ 2.334,
278
+ 5.125,
279
+ 13.626,
280
+ 29.911,
281
+ 38.524,
282
+ 24.168,
283
+ 7.646,
284
+ 1.575,
285
+ .317,
286
+ .097,
287
+ .063
288
+ ]
289
+ }, {
290
+ name: "_",
291
+ color: "#CACACA",
292
+ values: [
293
+ .25,
294
+ .367,
295
+ 1.026,
296
+ 3.944,
297
+ 13.635,
298
+ 28.891,
299
+ 30.149,
300
+ 15.419,
301
+ 4.714,
302
+ 1.246,
303
+ .442,
304
+ .299
305
+ ]
306
+ }]
307
+ },
308
+ {
309
+ name: "_",
310
+ datapoints: [{
311
+ name: "_",
312
+ color: "#999999",
313
+ values: [
314
+ .034,
315
+ .054,
316
+ .194,
317
+ 1.065,
318
+ 5.747,
319
+ 20.735,
320
+ 38.306,
321
+ 32.899,
322
+ 15.318,
323
+ 5.566,
324
+ 2.422,
325
+ 1.76
326
+ ]
327
+ }, {
328
+ name: "_",
329
+ color: "#CACACA",
330
+ values: [
331
+ .001,
332
+ .002,
333
+ .009,
334
+ .095,
335
+ 1.124,
336
+ 8.342,
337
+ 27.115,
338
+ 35.08,
339
+ 21.449,
340
+ 9.093,
341
+ 4.243,
342
+ 3.143
343
+ ]
344
+ }]
345
+ },
346
+ {
347
+ name: "_",
348
+ datapoints: [{
349
+ name: "_",
350
+ color: "#999999",
351
+ values: [
352
+ 0,
353
+ .001,
354
+ .004,
355
+ .051,
356
+ .567,
357
+ 3.322,
358
+ 14.215,
359
+ 44.783,
360
+ 40.351,
361
+ 20.377,
362
+ 9.866,
363
+ 7.378
364
+ ]
365
+ }, {
366
+ name: "_",
367
+ color: "#CACACA",
368
+ values: [
369
+ 0,
370
+ 0,
371
+ 0,
372
+ 0,
373
+ .001,
374
+ .11,
375
+ 4.136,
376
+ 27.498,
377
+ 43.24,
378
+ 29.807,
379
+ 17.345,
380
+ 13.678
381
+ ]
382
+ }]
383
+ },
384
+ {
385
+ name: "_",
386
+ datapoints: [{
387
+ name: "_",
388
+ color: "#999999",
389
+ values: [
390
+ 0,
391
+ 0,
392
+ 0,
393
+ 0,
394
+ .025,
395
+ .598,
396
+ 3.886,
397
+ 10.645,
398
+ 54.479,
399
+ 45.953,
400
+ 30.814,
401
+ 24.55
402
+ ]
403
+ }, {
404
+ name: "_",
405
+ color: "#CACACA",
406
+ values: [
407
+ 0,
408
+ 0,
409
+ 0,
410
+ 0,
411
+ 0,
412
+ 0,
413
+ .007,
414
+ 1.655,
415
+ 26.63,
416
+ 52.017,
417
+ 45.192,
418
+ 39.651
419
+ ]
420
+ }]
421
+ }
422
+ ],
423
+ skeletonConfig: pe({
424
+ defaultConfig: I.value,
425
+ userConfig: rn.value
426
+ })
427
+ }), B = b(Math.min(I.value.style.chart.areas.height, I.value.style.chart.areas.rowHeight)), { userOptionsVisible: on, setUserOptionsVisibility: sn, keepUserOptionState: cn } = je({ config: I.value }), { svgRef: V } = Me({ config: I.value.style.chart.title }), ln = u(() => !!I.value.debug);
428
+ function un() {
429
+ let e = z.value || [];
430
+ if (!Array.isArray(e) || e.length === 0) {
431
+ ie({
432
+ componentName: "VueUiRidgeline",
433
+ type: "dataset",
434
+ debug: ln.value
435
+ }), an.value = !0;
436
+ return;
437
+ }
438
+ if (e.forEach((e, t) => {
439
+ se({
440
+ datasetObject: e,
441
+ requiredAttributes: ["name", "datapoints"]
442
+ }).forEach((e) => {
443
+ D.value = !1, ie({
444
+ componentName: "VueUiRidgeline",
445
+ type: "datasetSerieAttribute",
446
+ property: e,
447
+ index: t,
448
+ debug: ln.value
449
+ });
450
+ }), Array.isArray(e.datapoints) && e.datapoints.length && e.datapoints.forEach((e, n) => {
451
+ se({
452
+ datasetObject: e,
453
+ requiredAttributes: ["name", "values"]
454
+ }).forEach((e) => {
455
+ D.value = !1, ie({
456
+ componentName: "VueUiRidgeline",
457
+ type: "datasetSerieAttribute",
458
+ property: `datapoint.${e}`,
459
+ index: `${t}-${n}`,
460
+ debug: ln.value
461
+ });
462
+ });
463
+ });
464
+ }), qt.value = e.length, B.value = Math.min(I.value.style.chart.areas.height, I.value.style.chart.areas.rowHeight), ne(E.dataset) || (an.value = I.value.loading), I.value.responsive) {
465
+ let t = De(() => {
466
+ let { width: t, height: n } = Oe({
467
+ chart: O.value,
468
+ title: I.value.style.chart.title.text ? zt.value : null,
469
+ legend: I.value.style.chart.legend.show ? Bt.value : null,
470
+ source: Vt.value,
471
+ noTitle: Ht.value,
472
+ padding: I.value.style.chart.padding
473
+ });
474
+ requestAnimationFrame(() => {
475
+ Jt.value = t, B.value = e.length ? n / e.length : 0, Xt.value = n - 12;
476
+ });
477
+ });
478
+ k.value && (A.value && k.value.unobserve(A.value), k.value.disconnect()), k.value = new ResizeObserver(t), A.value = O.value?.parentNode || null, A.value && k.value.observe(A.value);
479
+ }
480
+ }
481
+ Ve(() => {
482
+ k.value && (A.value && k.value.unobserve(A.value), k.value.disconnect());
483
+ });
484
+ let { isPrinting: dn, isImaging: fn, generatePdf: pn, generateImage: mn } = ge({
485
+ elementId: `vue-ui-ridgeline_${j.value}`,
486
+ fileName: I.value.style.chart.title.text || "vue-ui-ridgeline",
487
+ options: I.value.userOptions.print
488
+ }), hn = u(() => I.value.userOptions.show && !I.value.style.chart.title.text), gn = u(() => de(I.value.customPalette)), H = b({ showTable: I.value.table.show });
489
+ Ge(() => z.value, async (e) => {
490
+ Array.isArray(e) && e.length && (on.value = !I.value.userOptions.showOnChartHover, await ze(), un(), Ut.value += 1, Gt.value += 1, H.value.showTable = I.value.table.show);
491
+ }, {
492
+ deep: !0,
493
+ immediate: !0
494
+ }), Ge(() => E.dataset, (e) => {
495
+ Array.isArray(e) && e.length > 0 && (an.value = !1);
496
+ }, { deep: !0 }), Ge(() => R.value, async (e) => {
497
+ e || (await ze(), un());
498
+ }, { immediate: !0 }), Ge(() => E.config, () => {
499
+ I.value = nn(z.value || null), on.value = !I.value.userOptions.showOnChartHover, B.value = Math.min(I.value.style.chart.areas.height, I.value.style.chart.areas.rowHeight), H.value.showTable = I.value.table.show, Ut.value += 1, Gt.value += 1;
500
+ }, { deep: !0 });
501
+ let _n = u(() => I.value.style.chart.areas.height / I.value.style.chart.areas.rowHeight);
502
+ function vn() {
503
+ Y.value.length ? Y.value = [] : X.value.forEach((e) => {
504
+ Y.value.push(e.id);
505
+ });
506
+ }
507
+ function yn(e) {
508
+ Y.value.includes(e) ? Y.value = Y.value.filter((t) => t !== e) : Y.value.push(e), Rt("selectLegend", J.value);
509
+ }
510
+ function bn(e) {
511
+ return X.value.length ? X.value.find((t) => t.name === e) || (I.value.debug && console.warn(`VueUiRidgeline - Series name not found "${e}"`), null) : (I.value.debug && console.warn("VueUiRidgeline - There are no series to show."), null);
512
+ }
513
+ function xn(e) {
514
+ let t = bn(e);
515
+ t !== null && Y.value.includes(t.id) && yn(t.id);
516
+ }
517
+ function Sn(e) {
518
+ let t = bn(e);
519
+ t !== null && (Y.value.includes(t.id) || yn(t.id));
520
+ }
521
+ let U = u(() => D.value ? (z.value || []).map((e) => ({
522
+ ...e,
523
+ labelLen: In(e.name, I.value.style.chart.yAxis.labels.fontSize),
524
+ uid: r(),
525
+ datapoints: e.datapoints.map((e, t) => {
526
+ let n = e.color ? fe(e.color) : gn.value[t] || re[t] || re[t % re.length], r = o(e.name);
527
+ return {
528
+ ...e,
529
+ color: n,
530
+ id: r
531
+ };
532
+ })
533
+ })) : []), Cn = u(() => I.value.style.chart.padding.top + B.value * (z.value || []).length + B.value * _n.value + I.value.style.chart.padding.bottom), W = u(() => {
534
+ let e = I.value.style.chart.padding;
535
+ return {
536
+ width: Jt.value,
537
+ height: Cn.value,
538
+ padding: e
539
+ };
540
+ }), wn = u(() => W.value.width), Tn = u(() => W.value.height), En = b(0), Dn = De((e) => {
541
+ En.value = e;
542
+ }, 100);
543
+ Ke((e) => {
544
+ let t = Zt.value;
545
+ if (!t) return;
546
+ let n = new ResizeObserver((e) => {
547
+ Dn(e[0].contentRect.height);
548
+ });
549
+ n.observe(t), e(() => n.disconnect());
550
+ }), Ve(() => {
551
+ En.value = 0;
552
+ });
553
+ let G = u(() => ({
554
+ fullHeight: W.value.height + En.value,
555
+ top: W.value.padding.top,
556
+ left: W.value.padding.left,
557
+ right: W.value.width - W.value.padding.right,
558
+ bottom: W.value.height - I.value.style.chart.padding.bottom,
559
+ width: W.value.width - (W.value.padding.left + W.value.padding.right)
560
+ })), On = u(() => Math.max(...U.value.flatMap((e) => e.datapoints.map((e) => e.values.length)))), K = b([]), kn = 0;
561
+ Ke(() => {
562
+ let e = ++kn;
563
+ (async () => {
564
+ let t = await me({
565
+ values: I.value.style.chart.xAxis.labels.values,
566
+ maxDatapoints: On.value,
567
+ formatter: I.value.style.chart.xAxis.labels.datetimeFormatter,
568
+ start: 0,
569
+ end: I.value.style.chart.xAxis.labels.values.length
570
+ });
571
+ e === kn && (K.value = t);
572
+ })();
573
+ });
574
+ let q = u(() => {
575
+ let e = Math.max(...U.value.map((e) => e.labelLen)), t = W.value.padding.left + e + 16 + I.value.style.chart.yAxis.labels.offsetX, n = (G.value.width - t) / On.value, r = [];
576
+ for (let e = 0; e < On.value; e += 1) r.push({
577
+ selectorX: t + n * e,
578
+ x: t + n * e - n / 2,
579
+ y: G.value.top,
580
+ label: I.value.style.chart.xAxis.labels.values[e] ? K.value[e]?.text ?? "" : "",
581
+ index: e,
582
+ width: n,
583
+ height: Cn.value
584
+ });
585
+ return r;
586
+ });
587
+ function An(e) {
588
+ return U.value.map((t) => t.datapoints.map((t) => ({
589
+ dp: t,
590
+ selected: t.values[e.index]
591
+ })));
592
+ }
593
+ function jn(e) {
594
+ M.value = e;
595
+ let t = An(e);
596
+ I.value.events.datapointEnter && I.value.events.datapointEnter({
597
+ datapoint: t,
598
+ seriesIndex: e.index
599
+ });
600
+ }
601
+ function Mn(e) {
602
+ M.value = null;
603
+ let t = An(e);
604
+ I.value.events.datapointLeave && I.value.events.datapointLeave({
605
+ datapoint: t,
606
+ seriesIndex: e.index
607
+ });
608
+ }
609
+ function Nn(e) {
610
+ let t = An(e);
611
+ I.value.events.datapointClick && I.value.events.datapointClick({
612
+ datapoint: t,
613
+ seriesIndex: e.index
614
+ }), Rt("selectX", t);
615
+ }
616
+ function Pn(e, t) {
617
+ return e.length * t / 2 + t;
618
+ }
619
+ function Fn(e, t, n) {
620
+ return e + Pn(t, n) > G.value.right;
621
+ }
622
+ function In(e, t, n = "sans-serif") {
623
+ let r = document.createElement("canvas").getContext("2d");
624
+ return r.font = `${typeof t == "number" ? `${t}px` : t} ${n}`, r.measureText(e).width;
625
+ }
626
+ let J = u(() => {
627
+ B.value;
628
+ let e = Math.max(...U.value.map((e) => e.labelLen)), t = Math.max(...U.value.flatMap((e) => e.datapoints.flatMap((e) => e.values))), n = Math.min(...U.value.flatMap((e) => e.datapoints.flatMap((e) => e.values))), a = W.value.padding.left + e + 16 + I.value.style.chart.yAxis.labels.offsetX, ee = (G.value.width - a) / On.value, o = Math.abs(Math.min(n, 0)), s = t + o;
629
+ function ne(e) {
630
+ return isNaN(e / s) ? 0 : e / s;
631
+ }
632
+ return U.value.map((e, t) => {
633
+ let n = G.value.top + B.value * t, s = G.value.top + n + B.value * _n.value * (1 - ne(o));
634
+ return {
635
+ ...e,
636
+ label: {
637
+ x: a - I.value.style.chart.yAxis.labels.fontSize,
638
+ y: s
639
+ },
640
+ datapoints: e.datapoints.map((e) => {
641
+ let t = e.values.map((t, r) => {
642
+ let i = isNaN(t) || [
643
+ void 0,
644
+ null,
645
+ "NaN",
646
+ NaN,
647
+ Infinity,
648
+ -Infinity
649
+ ].includes(t) ? 0 : t || 0;
650
+ return {
651
+ x: a + ee * r,
652
+ y: G.value.top + n + B.value * _n.value * (1 - ne(i + o)),
653
+ value: t,
654
+ isMaxPoint: t === Math.max(...e.values),
655
+ zero: s
656
+ };
657
+ }), re = `${te(t, s, !1, !1)}`, ie = `M ${a},${s} ${i(t)} ${t.at(-1).x},${s}`, c = `M ${a},${s} ${t.at(-1).x},${s}`, se = `M ${oe(t)}`, ce = `M ${i(t)}`, le = ae(I.value.style.chart.areas.smooth ? se : ce);
658
+ return {
659
+ ...e,
660
+ uid: r(),
661
+ plots: t,
662
+ smoothPath: re,
663
+ straightPath: ie,
664
+ zeroPath: c,
665
+ pathLength: le,
666
+ smoothPathRidge: se,
667
+ straightPathRidge: ce
668
+ };
669
+ }).filter((e) => !Y.value.includes(e.id))
670
+ };
671
+ });
672
+ }), Y = b([]);
673
+ function Ln(e) {
674
+ let t = /* @__PURE__ */ new Map();
675
+ return e.forEach((e) => {
676
+ e.datapoints.forEach((e, n) => {
677
+ let r = o(e.name);
678
+ t.has(r) || t.set(r, {
679
+ id: r,
680
+ name: e.name,
681
+ color: e.color,
682
+ shape: "circle",
683
+ segregate: () => yn(r),
684
+ isSegregated: Y.value.includes(r),
685
+ opacity: Y.value.includes(r) ? .5 : 1
686
+ });
687
+ });
688
+ }), Array.from(t.values());
689
+ }
690
+ let X = u(() => Ln(U.value)), Rn = u(() => ({
691
+ cy: "donut-div-legend",
692
+ backgroundColor: I.value.style.chart.legend.backgroundColor,
693
+ color: I.value.style.chart.legend.color,
694
+ fontSize: I.value.style.chart.legend.fontSize,
695
+ paddingBottom: 12,
696
+ fontWeight: I.value.style.chart.legend.bold ? "bold" : ""
697
+ })), Z = b(!1);
698
+ function zn(e) {
699
+ Z.value = e, Kt.value += 1;
700
+ }
701
+ let Bn = b({}), Vn = b([]);
702
+ function Hn(e) {
703
+ Rt("selectDatapoint", e), I.value.style.chart.dialog.show && (Vn.value = e.datapoints.map((e) => ({
704
+ name: e.name,
705
+ color: e.color,
706
+ type: "line",
707
+ useArea: !0,
708
+ smooth: I.value.style.chart.areas.smooth,
709
+ series: e.values
710
+ })), N.value = e, Bn.value = ce({
711
+ ...I.value.style.chart.dialog.xyChart,
712
+ responsive: !0,
713
+ chart: {
714
+ ...I.value.style.chart.dialog.xyChart.chart,
715
+ grid: {
716
+ ...I.value.style.chart.dialog.xyChart.chart.grid,
717
+ labels: {
718
+ ...I.value.style.chart.dialog.xyChart.chart.grid.labels,
719
+ xAxisLabels: {
720
+ ...I.value.style.chart.dialog.xyChart.chart.grid.labels.xAxisLabels,
721
+ values: I.value.style.chart.xAxis.labels.values,
722
+ autoRotate: {
723
+ enable: !0,
724
+ angle: I.value.style.chart.dialog.xyChart.chart.grid.labels.xAxisLabels.autoRotate.angle
725
+ },
726
+ datetimeFormatter: I.value.style.chart.xAxis.labels.datetimeFormatter
727
+ }
728
+ }
729
+ },
730
+ tooltip: {
731
+ ...I.value.style.chart.dialog.xyChart.chart.tooltip,
732
+ showTimeLabel: I.value.style.chart.xAxis.labels.values.length > 0
733
+ },
734
+ userOptions: {
735
+ ...I.value.style.chart.dialog.xyChart.chart.userOptions,
736
+ buttons: {
737
+ ...I.value.style.chart.dialog.xyChart.chart.userOptions.buttons,
738
+ altCopy: I.value.userOptions.buttons.altCopy
739
+ },
740
+ callbacks: {
741
+ ...I.value.style.chart.dialog.xyChart.chart.userOptions.callbacks,
742
+ altCopy: () => {}
743
+ },
744
+ useCursorPointer: I.value.userOptions.useCursorPointer
745
+ }
746
+ }
747
+ }), Yt.value && Yt.value.open());
748
+ }
749
+ let Un = b(null);
750
+ function Wn(e) {
751
+ Un.value = e;
752
+ }
753
+ function Gn() {
754
+ Un.value = null;
755
+ }
756
+ let Kn = b(!1);
757
+ function qn() {
758
+ Kn.value = !Kn.value;
759
+ }
760
+ function Jn() {
761
+ H.value.showTable = !H.value.showTable;
762
+ }
763
+ let Yn = u(() => ({ body: J.value.flatMap((e) => e.datapoints.flatMap((t) => ({
764
+ ...t,
765
+ rowName: `${e.name}: ${t.name}`
766
+ }))).map((e) => [{
767
+ name: e.rowName,
768
+ color: e.color
769
+ }, ...e.values]) })), Q = u(() => {
770
+ let e = [I.value.table.columnNames.series, ...K.value.map((e) => e.text)], t = {
771
+ th: {
772
+ backgroundColor: I.value.table.th.backgroundColor,
773
+ color: I.value.table.th.color,
774
+ outline: I.value.table.th.outline
775
+ },
776
+ td: {
777
+ backgroundColor: I.value.table.td.backgroundColor,
778
+ color: I.value.table.td.color,
779
+ outline: I.value.table.td.outline
780
+ },
781
+ breakpoint: I.value.table.responsiveBreakpoint
782
+ };
783
+ return {
784
+ colNames: [I.value.table.columnNames.series, ...K.value.map((e) => e.text)],
785
+ head: e,
786
+ body: Yn.value.body,
787
+ config: t
788
+ };
789
+ });
790
+ function Xn(e = null) {
791
+ ze(() => {
792
+ let t = [[I.value.table.columnNames.series, ...K.map((e) => [e.text])], ...Yn.value.body.map((e, t) => [e[0].name, ...e.slice(1)])], n = s([[I.value.style.chart.title.text], [I.value.style.chart.title.subtitle.text]].concat(t));
793
+ e ? e(n) : a({
794
+ csvContent: n,
795
+ title: I.value.style.chart.title.text || "vue-ui-ridgeline"
796
+ });
797
+ });
798
+ }
799
+ function Zn() {
800
+ return J.value;
801
+ }
802
+ async function Qn({ scale: e = 2 } = {}) {
803
+ if (!O.value) return;
804
+ let { width: t, height: n } = O.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await Ce({
805
+ domElement: O.value,
806
+ base64: !0,
807
+ img: !0,
808
+ scale: e
809
+ });
810
+ return {
811
+ imageUri: i,
812
+ base64: a,
813
+ title: I.value.style.chart.title.text,
814
+ width: t,
815
+ height: n,
816
+ aspectRatio: r
817
+ };
818
+ }
819
+ Se({
820
+ timeLabelsEls: Zt,
821
+ timeLabels: K,
822
+ slicer: u(() => ({
823
+ min: 0,
824
+ max: On.value
825
+ })),
826
+ configRef: I,
827
+ rotationPath: [
828
+ "style",
829
+ "chart",
830
+ "xAxis",
831
+ "labels",
832
+ "rotation"
833
+ ],
834
+ autoRotatePath: [
835
+ "style",
836
+ "chart",
837
+ "xAxis",
838
+ "labels",
839
+ "autoRotate",
840
+ "enable"
841
+ ],
842
+ isAutoSize: !1,
843
+ width: wn,
844
+ height: Tn,
845
+ targetClass: ".vue-ui-ridgeline-x-axis-label",
846
+ angle: I.value.style.chart.xAxis.labels.autoRotate.angle
847
+ });
848
+ let $ = u(() => {
849
+ let e = I.value.table.useDialog && !I.value.table.show, t = H.value.showTable;
850
+ return {
851
+ component: e ? Pt : kt,
852
+ title: `${I.value.style.chart.title.text}${I.value.style.chart.title.subtitle.text ? `: ${I.value.style.chart.title.subtitle.text}` : ""}`,
853
+ props: e ? {
854
+ backgroundColor: I.value.table.th.backgroundColor,
855
+ color: I.value.table.th.color,
856
+ headerColor: I.value.table.th.color,
857
+ headerBg: I.value.table.th.backgroundColor,
858
+ isFullscreen: Z.value,
859
+ fullscreenParent: O.value,
860
+ forcedWidth: Math.min(800, window.innerWidth * .8),
861
+ isCursorPointer: L.value
862
+ } : {
863
+ hideDetails: !0,
864
+ config: {
865
+ open: t,
866
+ maxHeight: 1e4,
867
+ body: {
868
+ backgroundColor: I.value.style.chart.backgroundColor,
869
+ color: I.value.style.chart.color
870
+ },
871
+ head: {
872
+ backgroundColor: I.value.style.chart.backgroundColor,
873
+ color: I.value.style.chart.color
874
+ }
875
+ }
876
+ }
877
+ };
878
+ });
879
+ Ge(() => H.value.showTable, (e) => {
880
+ I.value.table.show || (e && I.value.table.useDialog && P.value ? P.value.open() : "close" in P.value && P.value.close());
881
+ });
882
+ function $n() {
883
+ H.value.showTable = !1, Qt.value && Qt.value.setTableIconState(!1);
884
+ }
885
+ let er = u(() => I.value.style.chart.backgroundColor), tr = u(() => ({
886
+ ...I.value.style.chart.legend,
887
+ position: "bottom"
888
+ })), { exportSvg: nr, getSvg: rr } = ye({
889
+ svg: V,
890
+ title: u(() => I.value.style.chart.title),
891
+ legend: tr,
892
+ legendItems: X,
893
+ backgroundColor: er
894
+ });
895
+ async function ir({ isCb: e }) {
896
+ en.value = !0, await ze();
897
+ try {
898
+ if (e) {
899
+ let { blob: e, url: t, text: n, dataUrl: r } = await rr();
900
+ await Promise.resolve(I.value.userOptions.callbacks.svg({
901
+ blob: e,
902
+ url: t,
903
+ text: n,
904
+ dataUrl: r
905
+ }));
906
+ } else await Promise.resolve(nr());
907
+ } finally {
908
+ en.value = !1;
909
+ }
910
+ }
911
+ function ar(e) {
912
+ if (e?.stage === "start") {
913
+ $t.value = !0;
914
+ return;
915
+ }
916
+ if (e?.stage === "end") {
917
+ $t.value = !1;
918
+ return;
919
+ }
920
+ mn();
921
+ }
922
+ function or(e) {
923
+ sr("xy-zoom", e.dataset, e.config);
924
+ }
925
+ async function sr(e = "main-chart", t = null, n = null) {
926
+ if (Rt("copyAlt", {
927
+ source: e,
928
+ config: e === "main-chart" ? I.value : Bn.value,
929
+ dataset: e === "main-chart" ? J.value : Vn.value
930
+ }), !I.value.userOptions.callbacks.altCopy) {
931
+ console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
932
+ return;
933
+ }
934
+ await Promise.resolve(I.value.userOptions.callbacks.altCopy({
935
+ source: e,
936
+ config: e === "main-chart" ? I.value : Bn.value,
937
+ dataset: e === "main-chart" ? J.value : Vn.value
938
+ }));
939
+ }
940
+ function cr() {
941
+ F.value = null, tn.value = !0;
942
+ }
943
+ function lr() {
944
+ pr(), tn.value = !1;
945
+ }
946
+ function ur(e) {
947
+ if (!V.value || Kn.value || document.activeElement !== V.value || !J.value.length) return;
948
+ let t = e.key === "ArrowUp", n = e.key === "ArrowDown", r = e.key === "ArrowLeft", i = e.key === "ArrowRight", a = e.key === "Enter" || e.key === " ", ee = e.key === "Escape";
949
+ if (!t && !n && !r && !i && !a && !ee) return;
950
+ if (e.preventDefault(), e.stopPropagation(), ee) {
951
+ pr();
952
+ return;
953
+ }
954
+ if (a) {
955
+ if (F.value !== null) {
956
+ let e = J.value[F.value];
957
+ e && Hn(e);
958
+ return;
959
+ }
960
+ M.value && Nn(M.value);
961
+ return;
962
+ }
963
+ if (t || n) {
964
+ let e = F.value;
965
+ e = e === null ? n ? 0 : J.value.length - 1 : dr(e + (n ? 1 : -1)), F.value = e, Un.value = e;
966
+ return;
967
+ }
968
+ if (!q.value.length) return;
969
+ let o = M.value?.index ?? null;
970
+ o = o === null ? i ? 0 : q.value.length - 1 : fr(o + (i ? 1 : -1));
971
+ let te = q.value[o];
972
+ te && jn(te);
973
+ }
974
+ function dr(e) {
975
+ let t = J.value.length;
976
+ return t ? (e % t + t) % t : null;
977
+ }
978
+ function fr(e) {
979
+ let t = q.value.length;
980
+ return t ? (e % t + t) % t : null;
981
+ }
982
+ function pr() {
983
+ F.value = null, Un.value = null, M.value ? Mn(M.value) : M.value = null;
984
+ }
985
+ let mr = u(() => ({
986
+ head: Q.value.head,
987
+ body: Q.value.body.map((e) => [e[0]?.name ?? "", ...e.slice(1)]),
988
+ caption: I.value.a11y.translations.tableCaption,
989
+ notice: I.value.a11y.translations.tableAvailable
990
+ }));
991
+ return Ee({
992
+ getData: Zn,
993
+ getImage: Qn,
994
+ generateImage: mn,
995
+ generateSvg: ir,
996
+ generatePdf: pn,
997
+ generateCsv: Xn,
998
+ hideSeries: Sn,
999
+ showSeries: xn,
1000
+ toggleAnnotator: qn,
1001
+ toggleTable: Jn,
1002
+ toggleFullscreen: zn,
1003
+ copyAlt: sr
1004
+ }), (e, r) => (y(), p("div", {
1005
+ ref_key: "ridgelineChart",
1006
+ ref: O,
1007
+ class: Be(`vue-data-ui-component vue-ui-ridgeline ${Z.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
1008
+ id: `vue-ui-ridgeline_${j.value}`,
1009
+ style: v({
1010
+ fontFamily: I.value.style.fontFamily,
1011
+ width: "100%",
1012
+ textAlign: "center",
1013
+ background: I.value.style.chart.backgroundColor,
1014
+ height: I.value.responsive ? "100%" : void 0
1015
+ }),
1016
+ onMouseenter: r[3] ||= () => w(sn)(!0),
1017
+ onMouseleave: r[4] ||= () => w(sn)(!1)
1018
+ }, [
1019
+ m("div", {
1020
+ id: `chart-instructions-${j.value}`,
1021
+ class: "sr-only"
1022
+ }, [m("p", null, C(I.value.a11y.translations.keyboardNavigation), 1)], 8, Ye),
1023
+ mr.value.body.length ? (y(), d(Ae, {
1024
+ key: 0,
1025
+ uid: j.value,
1026
+ head: mr.value.head,
1027
+ body: mr.value.body,
1028
+ caption: mr.value.caption,
1029
+ notice: mr.value.notice
1030
+ }, null, 8, [
1031
+ "uid",
1032
+ "head",
1033
+ "body",
1034
+ "caption",
1035
+ "notice"
1036
+ ])) : f("", !0),
1037
+ I.value.userOptions.buttons.annotator && w(V) ? (y(), d(w(jt), {
1038
+ key: 1,
1039
+ color: I.value.style.chart.color,
1040
+ backgroundColor: I.value.style.chart.backgroundColor,
1041
+ active: Kn.value,
1042
+ svgRef: w(V),
1043
+ isCursorPointer: L.value,
1044
+ onClose: qn
1045
+ }, {
1046
+ "annotator-action-close": T(() => [S(e.$slots, "annotator-action-close", {}, void 0, !0)]),
1047
+ "annotator-action-color": T(({ color: t }) => [S(e.$slots, "annotator-action-color", _(g({ color: t })), void 0, !0)]),
1048
+ "annotator-action-draw": T(({ mode: t }) => [S(e.$slots, "annotator-action-draw", _(g({ mode: t })), void 0, !0)]),
1049
+ "annotator-action-undo": T(({ disabled: t }) => [S(e.$slots, "annotator-action-undo", _(g({ disabled: t })), void 0, !0)]),
1050
+ "annotator-action-redo": T(({ disabled: t }) => [S(e.$slots, "annotator-action-redo", _(g({ disabled: t })), void 0, !0)]),
1051
+ "annotator-action-delete": T(({ disabled: t }) => [S(e.$slots, "annotator-action-delete", _(g({ disabled: t })), void 0, !0)]),
1052
+ _: 3
1053
+ }, 8, [
1054
+ "color",
1055
+ "backgroundColor",
1056
+ "active",
1057
+ "svgRef",
1058
+ "isCursorPointer"
1059
+ ])) : f("", !0),
1060
+ S(e.$slots, "userConfig", {}, void 0, !0),
1061
+ hn.value ? (y(), p("div", {
1062
+ key: 2,
1063
+ ref_key: "noTitle",
1064
+ ref: Ht,
1065
+ class: "vue-data-ui-no-title-space",
1066
+ style: "height:36px; width: 100%;background:transparent"
1067
+ }, null, 512)) : f("", !0),
1068
+ I.value.style.chart.title.text ? (y(), p("div", {
1069
+ key: 3,
1070
+ ref_key: "chartTitle",
1071
+ ref: zt,
1072
+ style: "width:100%;background:transparent;padding-bottom:24px"
1073
+ }, [(y(), d(we, {
1074
+ key: `title_${Ut.value}`,
1075
+ config: {
1076
+ title: {
1077
+ cy: "ridgeline-div-title",
1078
+ ...I.value.style.chart.title
1079
+ },
1080
+ subtitle: {
1081
+ cy: "ridgeline-div-subtitle",
1082
+ ...I.value.style.chart.title.subtitle
1083
+ }
1084
+ }
1085
+ }, null, 8, ["config"]))], 512)) : f("", !0),
1086
+ I.value.userOptions.show && D.value && (w(cn) || w(on)) ? (y(), d(w(Mt), {
1087
+ ref_key: "userOptionsRef",
1088
+ ref: Qt,
1089
+ key: `user_option_${Kt.value}`,
1090
+ backgroundColor: I.value.style.chart.backgroundColor,
1091
+ color: I.value.style.chart.color,
1092
+ isPrinting: w(dn),
1093
+ isImaging: w(fn),
1094
+ uid: j.value,
1095
+ hasTooltip: !1,
1096
+ callbacks: I.value.userOptions.callbacks,
1097
+ hasPdf: I.value.userOptions.buttons.pdf,
1098
+ hasImg: I.value.userOptions.buttons.img,
1099
+ hasSvg: I.value.userOptions.buttons.svg,
1100
+ hasXls: I.value.userOptions.buttons.csv,
1101
+ hasTable: I.value.userOptions.buttons.table,
1102
+ hasLabel: !1,
1103
+ hasFullscreen: I.value.userOptions.buttons.fullscreen,
1104
+ hasAltCopy: I.value.userOptions.buttons.altCopy,
1105
+ isFullscreen: Z.value,
1106
+ printScale: I.value.userOptions.print.scale,
1107
+ chartElement: O.value,
1108
+ position: I.value.userOptions.position,
1109
+ isTooltip: !1,
1110
+ titles: { ...I.value.userOptions.buttonTitles },
1111
+ hasAnnotator: I.value.userOptions.buttons.annotator,
1112
+ isAnnotation: Kn.value,
1113
+ tableDialog: I.value.table.useDialog,
1114
+ style: v({ visibility: w(cn) ? w(on) ? "visible" : "hidden" : "visible" }),
1115
+ isCursorPointer: L.value,
1116
+ onToggleFullscreen: zn,
1117
+ onGeneratePdf: w(pn),
1118
+ onGenerateCsv: Xn,
1119
+ onGenerateImage: ar,
1120
+ onGenerateSvg: ir,
1121
+ onToggleTable: Jn,
1122
+ onToggleAnnotator: qn,
1123
+ onCopyAlt: sr
1124
+ }, Fe({ _: 2 }, [
1125
+ e.$slots.menuIcon ? {
1126
+ name: "menuIcon",
1127
+ fn: T(({ isOpen: t, color: n }) => [S(e.$slots, "menuIcon", _(g({
1128
+ isOpen: t,
1129
+ color: n
1130
+ })), void 0, !0)]),
1131
+ key: "0"
1132
+ } : void 0,
1133
+ e.$slots.optionTooltip ? {
1134
+ name: "optionTooltip",
1135
+ fn: T(() => [S(e.$slots, "optionTooltip", {}, void 0, !0)]),
1136
+ key: "1"
1137
+ } : void 0,
1138
+ e.$slots.optionPdf ? {
1139
+ name: "optionPdf",
1140
+ fn: T(() => [S(e.$slots, "optionPdf", {}, void 0, !0)]),
1141
+ key: "2"
1142
+ } : void 0,
1143
+ e.$slots.optionCsv ? {
1144
+ name: "optionCsv",
1145
+ fn: T(() => [S(e.$slots, "optionCsv", {}, void 0, !0)]),
1146
+ key: "3"
1147
+ } : void 0,
1148
+ e.$slots.optionImg ? {
1149
+ name: "optionImg",
1150
+ fn: T(() => [S(e.$slots, "optionImg", {}, void 0, !0)]),
1151
+ key: "4"
1152
+ } : void 0,
1153
+ e.$slots.optionSvg ? {
1154
+ name: "optionSvg",
1155
+ fn: T(() => [S(e.$slots, "optionSvg", {}, void 0, !0)]),
1156
+ key: "5"
1157
+ } : void 0,
1158
+ e.$slots.optionTable ? {
1159
+ name: "optionTable",
1160
+ fn: T(() => [S(e.$slots, "optionTable", {}, void 0, !0)]),
1161
+ key: "6"
1162
+ } : void 0,
1163
+ e.$slots.optionFullscreen ? {
1164
+ name: "optionFullscreen",
1165
+ fn: T(({ toggleFullscreen: t, isFullscreen: n }) => [S(e.$slots, "optionFullscreen", _(g({
1166
+ toggleFullscreen: t,
1167
+ isFullscreen: n
1168
+ })), void 0, !0)]),
1169
+ key: "7"
1170
+ } : void 0,
1171
+ e.$slots.optionAnnotator ? {
1172
+ name: "optionAnnotator",
1173
+ fn: T(({ toggleAnnotator: t, isAnnotator: n }) => [S(e.$slots, "optionAnnotator", _(g({
1174
+ toggleAnnotator: t,
1175
+ isAnnotator: n
1176
+ })), void 0, !0)]),
1177
+ key: "8"
1178
+ } : void 0,
1179
+ e.$slots.optionAltCopy ? {
1180
+ name: "optionAltCopy",
1181
+ fn: T(({ altCopy: t }) => [S(e.$slots, "optionAltCopy", _(g({ altCopy: t })), void 0, !0)]),
1182
+ key: "9"
1183
+ } : void 0
1184
+ ]), 1032, [
1185
+ "backgroundColor",
1186
+ "color",
1187
+ "isPrinting",
1188
+ "isImaging",
1189
+ "uid",
1190
+ "callbacks",
1191
+ "hasPdf",
1192
+ "hasImg",
1193
+ "hasSvg",
1194
+ "hasXls",
1195
+ "hasTable",
1196
+ "hasFullscreen",
1197
+ "hasAltCopy",
1198
+ "isFullscreen",
1199
+ "printScale",
1200
+ "chartElement",
1201
+ "position",
1202
+ "titles",
1203
+ "hasAnnotator",
1204
+ "isAnnotation",
1205
+ "tableDialog",
1206
+ "style",
1207
+ "isCursorPointer",
1208
+ "onGeneratePdf"
1209
+ ])) : f("", !0),
1210
+ m("div", Xe, [(y(), p("svg", {
1211
+ ref_key: "svgRef",
1212
+ ref: V,
1213
+ xmlns: w(ue),
1214
+ "aria-describedby": `chart-instructions-${j.value}`,
1215
+ class: Be({
1216
+ "vue-data-ui-fullscreen--on": Z.value,
1217
+ "vue-data-ui-fulscreen--off": !Z.value
1218
+ }),
1219
+ viewBox: `0 0 ${W.value.width <= 0 ? 10 : W.value.width} ${G.value.fullHeight <= 0 ? 10 : G.value.fullHeight}`,
1220
+ style: v(`max-width:100%;overflow:visible;background:transparent;color:${I.value.style.chart.color};${I.value.responsive ? `height: ${Xt.value}px; width: 100%;` : ""}`),
1221
+ tabindex: "0",
1222
+ onFocus: cr,
1223
+ onBlur: lr,
1224
+ onKeydown: ur
1225
+ }, [
1226
+ Le(w(Nt)),
1227
+ m("defs", null, [(y(!0), p(l, null, x(X.value, (e, t) => (y(), p("linearGradient", {
1228
+ id: `gradient-${e.id}-${j.value}`,
1229
+ x1: "50%",
1230
+ y1: "0%",
1231
+ x2: "50%",
1232
+ y2: "100%"
1233
+ }, [
1234
+ m("stop", {
1235
+ offset: "0%",
1236
+ "stop-color": e.color,
1237
+ "stop-opacity": "1"
1238
+ }, null, 8, $e),
1239
+ m("stop", {
1240
+ offset: "30%",
1241
+ "stop-color": e.color,
1242
+ "stop-opacity": "0.7"
1243
+ }, null, 8, et),
1244
+ m("stop", {
1245
+ offset: "70%",
1246
+ "stop-color": e.color,
1247
+ "stop-opacity": "0.3"
1248
+ }, null, 8, tt),
1249
+ m("stop", {
1250
+ offset: "100%",
1251
+ "stop-color": e.color,
1252
+ "stop-opacity": "0.1"
1253
+ }, null, 8, nt)
1254
+ ], 8, Qe))), 256)), (y(!0), p(l, null, x(J.value, (e, t) => (y(), p(l, null, [(y(!0), p(l, null, x(e.datapoints, (e, t) => (y(), p("linearGradient", {
1255
+ key: `grad${e.id}`,
1256
+ id: `gradient-single-${j.value}-${e.uid}`,
1257
+ x1: "50%",
1258
+ y1: "0%",
1259
+ x2: "50%",
1260
+ y2: "100%"
1261
+ }, [
1262
+ m("stop", {
1263
+ offset: "0%",
1264
+ "stop-color": e.color,
1265
+ "stop-opacity": "1"
1266
+ }, null, 8, it),
1267
+ m("stop", {
1268
+ offset: "30%",
1269
+ "stop-color": e.color,
1270
+ "stop-opacity": "0.7"
1271
+ }, null, 8, at),
1272
+ m("stop", {
1273
+ offset: "70%",
1274
+ "stop-color": e.color,
1275
+ "stop-opacity": "0.3"
1276
+ }, null, 8, ot),
1277
+ m("stop", {
1278
+ offset: "100%",
1279
+ "stop-color": e.color,
1280
+ "stop-opacity": "0.1"
1281
+ }, null, 8, st)
1282
+ ], 8, rt))), 128))], 64))), 256))]),
1283
+ (y(!0), p(l, null, x(J.value, (t, n) => (y(), p("g", { key: `ds-${n}` }, [(y(!0), p(l, null, x(t.datapoints, (t, r) => (y(), p("g", { key: t.id }, [
1284
+ e.$slots.pattern ? (y(), p("g", ct, [m("defs", null, [S(e.$slots, "pattern", Re({ ref_for: !0 }, {
1285
+ datapointIndex: n,
1286
+ seriesIndex: r,
1287
+ patternId: `pattern_${j.value}_${t.uid}`
1288
+ }), void 0, !0)])])) : f("", !0),
1289
+ m("path", {
1290
+ fill: e.$slots.pattern ? `url(#pattern_${j.value}_${t.uid})` : I.value.style.chart.backgroundColor,
1291
+ stroke: "none",
1292
+ "stroke-linecap": "round",
1293
+ d: I.value.style.chart.areas.smooth ? t.smoothPath : t.straightPath,
1294
+ style: v({ opacity: I.value.style.chart.areas.opacity })
1295
+ }, null, 12, lt),
1296
+ m("path", {
1297
+ fill: "none",
1298
+ stroke: I.value.style.chart.areas.stroke.useSerieColor ? t.color : I.value.style.chart.areas.stroke.color,
1299
+ "stroke-width": I.value.style.chart.areas.strokeWidth,
1300
+ d: I.value.style.chart.areas.smooth ? t.smoothPathRidge : t.straightPathRidge,
1301
+ "stroke-linecap": "round",
1302
+ "stroke-linejoin": "round",
1303
+ class: Be({ "vue-ui-ridgeline-animate": I.value.useCssAnimation && !w(R) }),
1304
+ style: v({
1305
+ strokeDasharray: t.pathLength,
1306
+ strokeDashoffset: I.value.useCssAnimation ? t.pathLength : 0
1307
+ })
1308
+ }, null, 14, ut),
1309
+ m("path", {
1310
+ fill: I.value.style.chart.areas.useGradient ? I.value.style.chart.areas.useCommonColor ? `url(#gradient-${t.id}-${j.value})` : `url(#gradient-single-${j.value}-${t.uid})` : t.color,
1311
+ stroke: "none",
1312
+ d: I.value.style.chart.areas.smooth ? t.smoothPath : t.straightPath,
1313
+ "stroke-linecap": "round",
1314
+ "stroke-linejoin": "round",
1315
+ class: Be({ "vue-ui-ridgeline-animate": I.value.useCssAnimation && !w(R) }),
1316
+ style: v({
1317
+ strokeDasharray: t.pathLength,
1318
+ strokeDashoffset: I.value.useCssAnimation ? t.pathLength : 0
1319
+ })
1320
+ }, null, 14, dt),
1321
+ I.value.style.chart.zeroLine.show ? (y(), p("path", {
1322
+ key: 1,
1323
+ stroke: I.value.style.chart.zeroLine.useSerieColor ? t.color : I.value.style.chart.zeroLine.stroke,
1324
+ "stroke-dasharray": I.value.style.chart.zeroLine.strokeDasharray,
1325
+ "stroke-width": I.value.style.chart.zeroLine.strokeWidth,
1326
+ d: t.zeroPath,
1327
+ "stroke-linecap": "round"
1328
+ }, null, 8, ft)) : f("", !0),
1329
+ I.value.style.chart.areas.maxPoint.show && t.plots.length > 1 ? (y(!0), p(l, { key: 2 }, x(t.plots, (e) => (y(), p(l, null, [e.isMaxPoint ? (y(), p("line", {
1330
+ key: 0,
1331
+ x1: e.x,
1332
+ y1: e.y,
1333
+ x2: e.x,
1334
+ y2: e.zero,
1335
+ stroke: I.value.style.chart.areas.maxPoint.adaptStrokeToBackground ? w(le)(t.color) : I.value.style.chart.areas.maxPoint.stroke,
1336
+ "stroke-width": I.value.style.chart.areas.maxPoint.strokeWidth,
1337
+ "stroke-linecap": "round",
1338
+ "stroke-dasharray": I.value.style.chart.areas.maxPoint.strokeDasharray
1339
+ }, null, 8, pt)) : f("", !0)], 64))), 256)) : f("", !0),
1340
+ t.plots.length === 1 ? (y(), p("circle", {
1341
+ key: 3,
1342
+ cx: t.plots[0].x,
1343
+ cy: t.plots[0].y,
1344
+ stroke: I.value.style.chart.selector.dot.stroke,
1345
+ "stroke-width": I.value.style.chart.selector.dot.strokeWidth,
1346
+ r: I.value.style.chart.selector.dot.radius,
1347
+ fill: I.value.style.chart.selector.dot.useDatapointColor ? t.color : I.value.style.chart.selector.dot.fill,
1348
+ style: { pointerEvents: "none" }
1349
+ }, null, 8, mt)) : f("", !0)
1350
+ ]))), 128)), m("text", {
1351
+ x: t.label.x,
1352
+ y: t.label.y,
1353
+ "text-anchor": "end",
1354
+ "font-size": I.value.style.chart.yAxis.labels.fontSize,
1355
+ "font-weight": I.value.style.chart.yAxis.labels.bold ? "bold" : "normal",
1356
+ fill: I.value.style.chart.yAxis.labels.color,
1357
+ style: v({ cursor: I.value.style.chart.dialog.show && L.value ? "pointer" : "default" }),
1358
+ "text-decoration": I.value.style.chart.dialog.show && (Un.value === n || N.value && t.uid === N.value.uid || F.value === n) ? "underline" : "",
1359
+ onMouseenter: (e) => Wn(n),
1360
+ onMouseleave: Gn,
1361
+ onClick: (e) => Hn(t)
1362
+ }, C(t.name), 45, ht)]))), 128)),
1363
+ I.value.style.chart.xAxis.labels.values.length ? (y(), p("g", {
1364
+ key: 0,
1365
+ ref_key: "timeLabelsEls",
1366
+ ref: Zt
1367
+ }, [(y(!0), p(l, null, x(q.value, (n, r) => S(e.$slots, "time-label", Re({ ref_for: !0 }, {
1368
+ show: n && !I.value.style.chart.xAxis.labels.showOnlyFirstAndLast && !I.value.style.chart.xAxis.labels.showOnlyAtModulo || n && I.value.style.chart.xAxis.labels.showOnlyFirstAndLast && (r === 0 || r === q.value.length - 1) || n && M.value && M.value.index === r || n && !I.value.style.chart.xAxis.labels.showOnlyFirstAndLast && I.value.style.chart.xAxis.labels.showOnlyAtModulo && r % Math.floor(q.value.length / I.value.style.chart.xAxis.labels.modulo) === 0,
1369
+ fontSize: I.value.style.chart.xAxis.labels.fontSize,
1370
+ content: n.label,
1371
+ textAnchor: I.value.style.chart.xAxis.labels.rotation > 0 ? "start" : I.value.style.chart.xAxis.labels.rotation < 0 ? "end" : "middle",
1372
+ fill: I.value.style.chart.xAxis.labels.color,
1373
+ transform: `translate(${n.selectorX}, ${G.value.top + n.height + I.value.style.chart.xAxis.labels.offsetY}), rotate(${I.value.style.chart.xAxis.labels.rotation})`,
1374
+ x: n.selectorX,
1375
+ y: G.value.bottom + I.value.style.chart.xAxis.labels.offsetY
1376
+ }), () => [n && !I.value.style.chart.xAxis.labels.showOnlyFirstAndLast && !I.value.style.chart.xAxis.labels.showOnlyAtModulo || n && I.value.style.chart.xAxis.labels.showOnlyFirstAndLast && (r === 0 || r === q.value.length - 1) || n && M.value && M.value.index === r || n && !I.value.style.chart.xAxis.labels.showOnlyFirstAndLast && I.value.style.chart.xAxis.labels.showOnlyAtModulo && r % Math.floor(q.value.length / I.value.style.chart.xAxis.labels.modulo) === 0 ? (y(), p("g", gt, [String(n.label).includes("\n") ? (y(), p("text", {
1377
+ key: 1,
1378
+ class: "vue-ui-ridgeline-x-axis-label",
1379
+ "font-size": I.value.style.chart.xAxis.labels.fontSize,
1380
+ fill: I.value.style.chart.xAxis.labels.color,
1381
+ "font-weight": I.value.style.chart.xAxis.labels.bold ? "bold" : "normal",
1382
+ transform: `translate(${n.selectorX}, ${G.value.bottom + I.value.style.chart.xAxis.labels.offsetY}), rotate(${I.value.style.chart.xAxis.labels.rotation})`,
1383
+ "text-anchor": I.value.style.chart.xAxis.labels.rotation > 0 ? "start" : I.value.style.chart.xAxis.labels.rotation < 0 ? "end" : "middle",
1384
+ style: v({ opacity: M.value ? M.value.index === r ? 1 : .2 : 1 }),
1385
+ innerHTML: w(t)({
1386
+ content: String(n.label),
1387
+ fontSize: I.value.style.chart.xAxis.labels.fontSize,
1388
+ fill: I.value.style.chart.xAxis.labels.color,
1389
+ x: 0,
1390
+ y: 0
1391
+ })
1392
+ }, null, 12, vt)) : (y(), p("text", {
1393
+ key: 0,
1394
+ class: "vue-ui-ridgeline-x-axis-label",
1395
+ "font-size": I.value.style.chart.xAxis.labels.fontSize,
1396
+ fill: I.value.style.chart.xAxis.labels.color,
1397
+ "font-weight": I.value.style.chart.xAxis.labels.bold ? "bold" : "normal",
1398
+ transform: `translate(${n.selectorX}, ${G.value.bottom + I.value.style.chart.xAxis.labels.offsetY}), rotate(${I.value.style.chart.xAxis.labels.rotation})`,
1399
+ "text-anchor": I.value.style.chart.xAxis.labels.rotation > 0 ? "start" : I.value.style.chart.xAxis.labels.rotation < 0 ? "end" : "middle",
1400
+ style: v({ opacity: M.value ? M.value.index === r ? 1 : .2 : 1 })
1401
+ }, C(n.label), 13, _t))])) : f("", !0)], !0)), 256))], 512)) : f("", !0),
1402
+ m("g", null, [
1403
+ (y(!0), p(l, null, x(q.value, (e, t) => (y(), p("rect", {
1404
+ x: e.x,
1405
+ y: e.y,
1406
+ width: e.width < 0 ? .1 : e.width,
1407
+ height: e.height < 0 ? .1 : e.height,
1408
+ fill: "transparent",
1409
+ onMouseenter: (t) => jn(e),
1410
+ onMouseleave: (t) => Mn(e),
1411
+ onClick: () => Nn(e)
1412
+ }, null, 40, yt))), 256)),
1413
+ I.value.style.chart.selector.show && M.value ? (y(), p("line", {
1414
+ key: 0,
1415
+ x1: M.value.selectorX,
1416
+ x2: M.value.selectorX,
1417
+ y1: M.value.y,
1418
+ y2: M.value.y + M.value.height - B.value / 2,
1419
+ stroke: I.value.style.chart.selector.stroke,
1420
+ "stroke-width": I.value.style.chart.selector.strokeWidth,
1421
+ "stroke-dasharray": I.value.style.chart.selector.strokeDasharray,
1422
+ "stroke-linecap": "round",
1423
+ style: { pointerEvents: "none" }
1424
+ }, null, 8, bt)) : f("", !0),
1425
+ M.value ? (y(!0), p(l, { key: 1 }, x(J.value, (e) => (y(), p(l, null, [(y(!0), p(l, null, x(e.datapoints, (e) => (y(), p(l, null, [(y(!0), p(l, null, x(e.plots, (t, r) => (y(), p(l, null, [M.value && M.value.index === r ? (y(), p("circle", {
1426
+ key: 0,
1427
+ cx: t.x,
1428
+ cy: t.y,
1429
+ stroke: I.value.style.chart.selector.dot.stroke,
1430
+ "stroke-width": I.value.style.chart.selector.dot.strokeWidth,
1431
+ r: I.value.style.chart.selector.dot.radius,
1432
+ fill: I.value.style.chart.selector.dot.useDatapointColor ? e.color : I.value.style.chart.selector.dot.fill,
1433
+ style: { pointerEvents: "none" }
1434
+ }, null, 8, xt)) : f("", !0), M.value && M.value.index === r ? (y(), p("text", {
1435
+ key: 1,
1436
+ x: Fn(t.x, w(c)(I.value.style.chart.selector.labels.formatter, t.value, w(n)({
1437
+ p: I.value.style.chart.xAxis.labels.prefix,
1438
+ v: t.value,
1439
+ s: I.value.style.chart.xAxis.labels.suffix,
1440
+ r: I.value.style.chart.selector.labels.rounding
1441
+ })), I.value.style.chart.selector.labels.fontSize) ? t.x - I.value.style.chart.selector.labels.fontSize / 2 : t.x + I.value.style.chart.selector.labels.fontSize / 2,
1442
+ y: t.y + I.value.style.chart.selector.labels.fontSize / 3,
1443
+ "text-anchor": Fn(t.x, w(c)(I.value.style.chart.selector.labels.formatter, t.value, w(n)({
1444
+ p: I.value.style.chart.xAxis.labels.prefix,
1445
+ v: t.value,
1446
+ s: I.value.style.chart.xAxis.labels.suffix,
1447
+ r: I.value.style.chart.selector.labels.rounding
1448
+ })), I.value.style.chart.selector.labels.fontSize) ? "end" : "start",
1449
+ "font-size": I.value.style.chart.selector.labels.fontSize,
1450
+ fill: I.value.style.chart.selector.labels.color,
1451
+ style: { pointerEvents: "none" }
1452
+ }, C(w(c)(I.value.style.chart.selector.labels.formatter, t.value, w(n)({
1453
+ p: I.value.style.chart.xAxis.labels.prefix,
1454
+ v: t.value,
1455
+ s: I.value.style.chart.xAxis.labels.suffix,
1456
+ r: I.value.style.chart.selector.labels.rounding
1457
+ }))), 9, St)) : f("", !0)], 64))), 256))], 64))), 256))], 64))), 256)) : f("", !0)
1458
+ ]),
1459
+ S(e.$slots, "svg", { svg: {
1460
+ ...W.value,
1461
+ drawingArea: G.value,
1462
+ isPrintingImg: w(dn) || w(fn) || $t.value,
1463
+ isPrintingSvg: en.value
1464
+ } }, void 0, !0)
1465
+ ], 46, Ze)), e.$slots.hint ? (y(), p("div", Ct, [S(e.$slots, "hint", _(g({
1466
+ hint: I.value.a11y.translations.keyboardNavigation,
1467
+ isVisible: tn.value
1468
+ })), void 0, !0)])) : f("", !0)]),
1469
+ e.$slots.watermark ? (y(), p("div", wt, [S(e.$slots, "watermark", _(g({ isPrinting: w(dn) || w(fn) || $t.value || en.value })), void 0, !0)])) : f("", !0),
1470
+ m("div", {
1471
+ ref_key: "chartLegend",
1472
+ ref: Bt
1473
+ }, [S(e.$slots, "legend", { legend: X.value }, () => [I.value.style.chart.legend.show ? (y(), d(Ne, {
1474
+ key: `legend_${Gt.value}`,
1475
+ legendSet: X.value,
1476
+ config: Rn.value,
1477
+ isCursorPointer: L.value,
1478
+ onClickMarker: r[0] ||= ({ legend: e }) => yn(e.id)
1479
+ }, Fe({
1480
+ item: T(({ legend: e }) => [w(R) ? f("", !0) : (y(), p("div", {
1481
+ key: 0,
1482
+ style: v(`opacity:${Y.value.includes(e.id) ? .5 : 1}`),
1483
+ onClick: (t) => e.segregate()
1484
+ }, C(e.name), 13, Tt))]),
1485
+ legendToggle: T(() => [X.value.length > 2 && I.value.style.chart.legend.selectAllToggle.show && !w(R) ? (y(), d(ke, {
1486
+ key: 0,
1487
+ backgroundColor: I.value.style.chart.legend.selectAllToggle.backgroundColor,
1488
+ color: I.value.style.chart.legend.selectAllToggle.color,
1489
+ fontSize: I.value.style.chart.legend.fontSize,
1490
+ checked: Y.value.length > 0,
1491
+ isCursorPointer: L.value,
1492
+ onToggle: vn
1493
+ }, null, 8, [
1494
+ "backgroundColor",
1495
+ "color",
1496
+ "fontSize",
1497
+ "checked",
1498
+ "isCursorPointer"
1499
+ ])) : f("", !0)]),
1500
+ _: 2
1501
+ }, [e.$slots.pattern ? {
1502
+ name: "legend-pattern",
1503
+ fn: T(({ legend: e, index: t }) => [Le(Te, {
1504
+ shape: e.shape,
1505
+ radius: 30,
1506
+ stroke: "none",
1507
+ plot: {
1508
+ x: 30,
1509
+ y: 30
1510
+ },
1511
+ fill: `url(#pattern_${j.value}_${t})`
1512
+ }, null, 8, ["shape", "fill"])]),
1513
+ key: "0"
1514
+ } : void 0]), 1032, [
1515
+ "legendSet",
1516
+ "config",
1517
+ "isCursorPointer"
1518
+ ])) : f("", !0)], !0)], 512),
1519
+ e.$slots.source ? (y(), p("div", {
1520
+ key: 6,
1521
+ ref_key: "source",
1522
+ ref: Vt,
1523
+ dir: "auto"
1524
+ }, [S(e.$slots, "source", {}, void 0, !0)], 512)) : f("", !0),
1525
+ D.value && I.value.userOptions.buttons.table ? (y(), d(He($.value.component), Re({ key: 7 }, $.value.props, {
1526
+ ref_key: "tableUnit",
1527
+ ref: P,
1528
+ onClose: $n
1529
+ }), Fe({
1530
+ content: T(() => [(y(), d(w(At), {
1531
+ key: `table_${Wt.value}`,
1532
+ colNames: Q.value.colNames,
1533
+ head: Q.value.head,
1534
+ body: Q.value.body,
1535
+ config: Q.value.config,
1536
+ title: I.value.table.useDialog ? "" : $.value.title,
1537
+ withCloseButton: !I.value.table.useDialog,
1538
+ isCursorPointer: L.value,
1539
+ onClose: $n
1540
+ }, {
1541
+ th: T(({ th: e }) => [m("div", { innerHTML: e }, null, 8, Et)]),
1542
+ td: T(({ td: e }) => [Ie(C(e.name ? e.name : w(c)(I.value.style.chart.selector.labels.formatter, e, w(n)({
1543
+ p: I.value.style.chart.xAxis.labels.prefix,
1544
+ v: e,
1545
+ s: I.value.style.chart.xAxis.labels.suffix,
1546
+ r: I.value.table.td.roundingValue
1547
+ }))), 1)]),
1548
+ _: 1
1549
+ }, 8, [
1550
+ "colNames",
1551
+ "head",
1552
+ "body",
1553
+ "config",
1554
+ "title",
1555
+ "withCloseButton",
1556
+ "isCursorPointer"
1557
+ ]))]),
1558
+ _: 2
1559
+ }, [I.value.table.useDialog ? {
1560
+ name: "title",
1561
+ fn: T(() => [Ie(C($.value.title), 1)]),
1562
+ key: "0"
1563
+ } : void 0, I.value.table.useDialog ? {
1564
+ name: "actions",
1565
+ fn: T(() => [m("button", {
1566
+ tabindex: "0",
1567
+ class: "vue-ui-user-options-button",
1568
+ onClick: r[1] ||= (e) => Xn(I.value.userOptions.callbacks.csv),
1569
+ style: v({ cursor: L.value ? "pointer" : "default" })
1570
+ }, [Le(w(Ot), {
1571
+ name: "fileCsv",
1572
+ stroke: $.value.props.color
1573
+ }, null, 8, ["stroke"])], 4)]),
1574
+ key: "1"
1575
+ } : void 0]), 1040)) : f("", !0),
1576
+ I.value.style.chart.dialog.show ? (y(), d(w(Pt), {
1577
+ key: 8,
1578
+ ref_key: "dialog",
1579
+ ref: Yt,
1580
+ onClose: r[2] ||= (e) => N.value = null,
1581
+ backgroundColor: I.value.style.chart.dialog.backgroundColor,
1582
+ color: I.value.style.chart.dialog.color,
1583
+ headerBg: I.value.style.chart.dialog.header.backgroundColor,
1584
+ headerColor: I.value.style.chart.dialog.header.color,
1585
+ isFullscreen: Z.value,
1586
+ fullscreenParent: O.value,
1587
+ isCursorPointer: L.value,
1588
+ withPadding: ""
1589
+ }, {
1590
+ title: T(() => [Ie(C(N.value.name), 1)]),
1591
+ content: T(() => [N.value ? (y(), d(w(Dt), {
1592
+ key: 0,
1593
+ config: Bn.value,
1594
+ dataset: Vn.value,
1595
+ onCopyAlt: or
1596
+ }, null, 8, ["config", "dataset"])) : f("", !0)]),
1597
+ _: 1
1598
+ }, 8, [
1599
+ "backgroundColor",
1600
+ "color",
1601
+ "headerBg",
1602
+ "headerColor",
1603
+ "isFullscreen",
1604
+ "fullscreenParent",
1605
+ "isCursorPointer"
1606
+ ])) : f("", !0),
1607
+ S(e.$slots, "skeleton", {}, () => [w(R) ? (y(), d(ve, { key: 0 })) : f("", !0)], !0)
1608
+ ], 46, Je));
1609
+ }
1610
+ }, [["__scopeId", "data-v-a605d896"]]);
1611
+ //#endregion
1612
+ export { qe as n, Dt as t };