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,2362 @@
1
+ import { t as e } from "./rolldown-runtime-CAFD8bLK.js";
2
+ import { D as t, Ft as n, G as r, H as i, I as a, It as o, J as s, Lt as c, P as l, S as u, St as d, Tt as f, X as p, et as m, g as h, h as g, i as _, jt as ee, k as v, mt as te, nt as ne, ot as re, pt as ie, s as ae, t as oe, v as se, x as ce, y as le, yt as ue, zt as de } from "./lib-B83ZCydz.js";
3
+ import { n as fe, r as pe, 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 "./useStableElementSize-0I1IpHPl.js";
11
+ import { t as Ce } from "./useTimeLabelCollider-Dm55Emzg.js";
12
+ import { t as we } from "./img-NMY-_LiJ.js";
13
+ import { n as Te } from "./Title-ByyzJzpc.js";
14
+ import { t as Ee } from "./Shape-Dbug7CtK.js";
15
+ import { t as De } from "./_plugin-vue_export-helper-Dq1MygBL.js";
16
+ import { c as Oe } from "./canvas-lib-DTaADQOK.js";
17
+ import { t as ke } from "./useResponsive-CrAInupd.js";
18
+ import { t as Ae } from "./SlicerPreview-BLlQTUI_.js";
19
+ import { t as je } from "./BaseLegendToggle-BvPOFMVZ.js";
20
+ import { t as Me } from "./A11yDataTable-q2-8fSlJ.js";
21
+ import { t as Ne } from "./useUserOptionState-CjPJPTg2.js";
22
+ import { t as Pe } from "./useChartAccessibility-Do37qcw2.js";
23
+ import { t as Fe } from "./Legend-BPb8i4aC.js";
24
+ import { t as Ie } from "./vue_ui_stackline-DpI2LnjO.js";
25
+ import { Fragment as y, Teleport as Le, computed as b, createBlock as x, createCommentVNode as S, createElementBlock as C, createElementVNode as w, createSlots as Re, createTextVNode as ze, createVNode as Be, defineAsyncComponent as Ve, guardReactiveProps as T, mergeProps as He, nextTick as Ue, normalizeClass as We, normalizeProps as E, normalizeStyle as Ge, onBeforeUnmount as Ke, onMounted as qe, openBlock as D, ref as O, renderList as k, renderSlot as A, resolveDynamicComponent as Je, shallowRef as Ye, toDisplayString as j, toRefs as Xe, unref as M, useSlots as Ze, watch as Qe, watchEffect as $e, withCtx as N } from "vue";
26
+ //#region src/components/vue-ui-stackline.vue
27
+ var et = /* @__PURE__ */ e({ default: () => Bt }), tt = ["id"], nt = ["id"], rt = ["id"], it = { style: { position: "relative" } }, at = [
28
+ "aria-describedby",
29
+ "xmlns",
30
+ "viewBox"
31
+ ], ot = { key: 0 }, st = [
32
+ "x",
33
+ "y",
34
+ "width",
35
+ "height"
36
+ ], ct = { key: 1 }, lt = ["id"], ut = ["stop-color"], dt = ["stop-color"], ft = [
37
+ "x1",
38
+ "x2",
39
+ "y1",
40
+ "y2",
41
+ "stroke",
42
+ "stroke-width",
43
+ "stroke-dasharray"
44
+ ], pt = [
45
+ "x1",
46
+ "x2",
47
+ "y1",
48
+ "y2",
49
+ "stroke",
50
+ "stroke-width",
51
+ "stroke-dasharray"
52
+ ], mt = [
53
+ "x1",
54
+ "x2",
55
+ "y1",
56
+ "y2",
57
+ "stroke",
58
+ "stroke-width"
59
+ ], ht = [
60
+ "x1",
61
+ "x2",
62
+ "y1",
63
+ "y2",
64
+ "stroke",
65
+ "stroke-width"
66
+ ], gt = [
67
+ "x",
68
+ "y",
69
+ "font-size",
70
+ "fill",
71
+ "font-weight"
72
+ ], _t = [
73
+ "transform",
74
+ "font-size",
75
+ "fill",
76
+ "font-weight"
77
+ ], vt = [
78
+ "x",
79
+ "y",
80
+ "width",
81
+ "height",
82
+ "stroke",
83
+ "stroke-width",
84
+ "stroke-linecap",
85
+ "stroke-linejoin",
86
+ "stroke-dasharray"
87
+ ], yt = [
88
+ "d",
89
+ "fill",
90
+ "opacity"
91
+ ], bt = [
92
+ "d",
93
+ "stroke",
94
+ "stroke-width"
95
+ ], xt = [
96
+ "x1",
97
+ "x2",
98
+ "y1",
99
+ "y2",
100
+ "stroke"
101
+ ], St = [
102
+ "x",
103
+ "y",
104
+ "font-size",
105
+ "font-weight",
106
+ "fill"
107
+ ], Ct = { key: 0 }, wt = { key: 1 }, Tt = [
108
+ "text-anchor",
109
+ "font-size",
110
+ "font-weight",
111
+ "fill",
112
+ "transform",
113
+ "onClick"
114
+ ], Et = [
115
+ "text-anchor",
116
+ "font-size",
117
+ "fill",
118
+ "transform",
119
+ "innerHTML",
120
+ "onClick"
121
+ ], Dt = [
122
+ "x",
123
+ "y",
124
+ "height",
125
+ "width",
126
+ "fill"
127
+ ], Ot = { key: 0 }, kt = [
128
+ "x1",
129
+ "x2",
130
+ "y1",
131
+ "y2",
132
+ "stroke",
133
+ "stroke-width",
134
+ "stroke-dasharray"
135
+ ], At = { key: 0 }, jt = [
136
+ "x",
137
+ "y",
138
+ "font-size",
139
+ "fill",
140
+ "font-weight"
141
+ ], Mt = [
142
+ "x",
143
+ "y",
144
+ "font-size",
145
+ "font-weight",
146
+ "fill"
147
+ ], Nt = ["data-start", "data-end"], Pt = {
148
+ key: 0,
149
+ style: {
150
+ position: "absolute",
151
+ top: "100%",
152
+ left: "0",
153
+ width: "100%"
154
+ },
155
+ "data-dom-to-png-ignore": "",
156
+ "aria-hidden": "true"
157
+ }, Ft = {
158
+ key: 5,
159
+ class: "vue-data-ui-watermark"
160
+ }, It = ["onClick"], Lt = ["innerHTML"], Rt = ["innerHTML"], zt = ["id"], Bt = /* @__PURE__ */ De({
161
+ __name: "vue-ui-stackline",
162
+ props: {
163
+ config: {
164
+ type: Object,
165
+ default() {
166
+ return {};
167
+ }
168
+ },
169
+ dataset: {
170
+ type: Array,
171
+ default() {
172
+ return [];
173
+ }
174
+ },
175
+ selectedXIndex: {
176
+ type: Number,
177
+ default: void 0
178
+ }
179
+ },
180
+ emits: [
181
+ "selectDatapoint",
182
+ "selectLegend",
183
+ "selectTimeLabel",
184
+ "selectX",
185
+ "copyAlt"
186
+ ],
187
+ setup(e, { expose: De, emit: et }) {
188
+ let Bt = Ve(() => import("./Tooltip-V6Z0Ko-1.js")), Vt = Ve(() => import("./BaseIcon-CL6Y7alf.js").then((e) => e.n)), Ht = Ve(() => import("./vue-ui-accordion-Cf-jZELj.js").then((e) => e.n)), Ut = Ve(() => import("./DataTable-ZG4GX2Zg.js")), Wt = Ve(() => import("./PenAndPaper-DxBCVZAx.js").then((e) => e.t)), Gt = Ve(() => import("./UserOptions-Gaw1761w.js").then((e) => e.n)), Kt = Ve(() => import("./PackageVersion-B1cPtZ3Q.js").then((e) => e.t)), qt = Ve(() => import("./BaseDraggableDialog-LE75fWYz.js").then((e) => e.n)), { vue_ui_stackline: Jt } = he(), { isThemeValid: Yt, warnInvalidTheme: Xt } = xe(), Zt = Ze(), P = e, Qt = et, $t = b({
189
+ get() {
190
+ return !!P.dataset && P.dataset.length;
191
+ },
192
+ set(e) {
193
+ return e;
194
+ }
195
+ }), en = O(null), F = O(i()), tn = O(!1), I = O([]), nn = O(0), rn = O(null), an = O(null), on = O(null), sn = O(null), cn = O(null), ln = O(!1), un = O(!1), dn = O(0), fn = O(0), pn = O(0), mn = O(!1), hn = O(null), gn = O(null), _n = O(!1), vn = O(!1), yn = O(!1), bn = O(null), xn = O(null), Sn = O(null), Cn = O(null), wn = O(null), Tn = Ye(null), En = O(!1), Dn = O(0), On = O(0), L = O(null), kn = O({
196
+ x: 0,
197
+ y: 0
198
+ }), An = O("pointer"), jn = Se({
199
+ elementRef: Tn,
200
+ minimumWidth: 2,
201
+ minimumHeight: 2,
202
+ stableFramesRequired: 2,
203
+ once: !1,
204
+ onSizeAccepted: () => {
205
+ Pn();
206
+ }
207
+ });
208
+ function Mn() {
209
+ Tn.value = en.value?.parentNode ?? null;
210
+ }
211
+ function Nn() {
212
+ return new Promise((e) => {
213
+ requestAnimationFrame(() => {
214
+ requestAnimationFrame(e);
215
+ });
216
+ });
217
+ }
218
+ async function Pn() {
219
+ let e = ++On.value;
220
+ En.value = !1, await Ue(), await Nn(), await Nn(), e === On.value && (Dn.value += 1, En.value = !0);
221
+ }
222
+ let Fn = O(null), In = O(!1);
223
+ function Ln() {
224
+ In.value = !In.value;
225
+ }
226
+ qe(() => {
227
+ Mn(), jn.start(), mn.value = !0, ar(), Pn();
228
+ });
229
+ let R = O(Kn()), z = b(() => R.value.userOptions.useCursorPointer), Rn = b(() => de({
230
+ defaultConfig: {
231
+ userOptions: { show: !1 },
232
+ useCssAnimation: !1,
233
+ table: { show: !1 },
234
+ tooltip: { show: !1 },
235
+ style: { chart: {
236
+ backgroundColor: "#99999930",
237
+ lines: {
238
+ totalValues: { show: !1 },
239
+ dataLabels: { show: !1 }
240
+ },
241
+ grid: {
242
+ frame: { stroke: "#6A6A6A" },
243
+ scale: {
244
+ scaleMin: 0,
245
+ scaleMax: 144
246
+ },
247
+ x: {
248
+ axisColor: "#6A6A6A",
249
+ linesColor: "#6A6A6A",
250
+ axisName: { show: !1 },
251
+ timeLabels: { show: !1 }
252
+ },
253
+ y: {
254
+ axisColor: "#6A6A6A",
255
+ linesColor: "#6A6A6A",
256
+ axisName: { show: !1 },
257
+ axisLabels: { show: !1 }
258
+ }
259
+ },
260
+ legend: { backgroundColor: "transparent" },
261
+ padding: {
262
+ left: 24,
263
+ right: 24,
264
+ bottom: 12
265
+ },
266
+ zoom: {
267
+ show: !1,
268
+ startIndex: null,
269
+ endIndex: null
270
+ }
271
+ } }
272
+ },
273
+ userConfig: R.value.skeletonConfig ?? {}
274
+ })), { loading: B, FINAL_DATASET: zn, manualLoading: Bn } = _e({
275
+ ...Xe(P),
276
+ FINAL_CONFIG: R,
277
+ prepareConfig: Kn,
278
+ callback: () => {
279
+ Promise.resolve().then(async () => {
280
+ await Qr();
281
+ });
282
+ },
283
+ skeletonDataset: P.config?.skeletonDataset ?? [{
284
+ name: "",
285
+ series: [
286
+ 3,
287
+ 2,
288
+ 1,
289
+ 5,
290
+ 13,
291
+ 21,
292
+ 8,
293
+ 89,
294
+ 34,
295
+ 55
296
+ ],
297
+ color: "#8A8A8A"
298
+ }, {
299
+ name: "",
300
+ series: [
301
+ 1,
302
+ 2,
303
+ 3,
304
+ 5,
305
+ 8,
306
+ 13,
307
+ 21,
308
+ 34,
309
+ 55,
310
+ 89
311
+ ],
312
+ color: "#CACACA"
313
+ }],
314
+ skeletonConfig: de({
315
+ defaultConfig: R.value,
316
+ userConfig: Rn.value
317
+ })
318
+ }), { userOptionsVisible: Vn, setUserOptionsVisibility: Hn, keepUserOptionState: Un } = Ne({ config: R.value }), { svgRef: V } = Pe({ config: R.value.style.chart.title });
319
+ function Wn() {
320
+ _n.value = !0, Hn(!0);
321
+ }
322
+ function Gn() {
323
+ Hn(!1), _n.value = !1, L.value = null, An.value = "pointer", tn.value = !1, $.value = null, Qt("selectX", {
324
+ seriesIndex: null,
325
+ datapoint: null
326
+ });
327
+ }
328
+ function Kn() {
329
+ let e = be({
330
+ userConfig: P.config,
331
+ defaultConfig: Jt
332
+ }), t = {}, n = e.theme;
333
+ if (n) if (!Yt.value(e)) Xt(e), t = e;
334
+ else {
335
+ let r = be({
336
+ userConfig: Ie[n] || P.config,
337
+ defaultConfig: e
338
+ });
339
+ t = {
340
+ ...be({
341
+ userConfig: P.config,
342
+ defaultConfig: r
343
+ }),
344
+ customPalette: e.customPalette.length ? e.customPalette : c[n] || f
345
+ };
346
+ }
347
+ else t = e;
348
+ return t;
349
+ }
350
+ let qn = b(() => R.value.style.chart.lines.dataLabels.hideUnderValue !== null), Jn = b(() => R.value.style.chart.lines.dataLabels.hideUnderPercentage !== null);
351
+ Qe(() => P.config, (e) => {
352
+ B.value || (R.value = Kn()), Vn.value = !R.value.userOptions.showOnChartHover, ar(), dn.value += 1, fn.value += 1, pn.value += 1, H.value.dataLabels.show = R.value.style.chart.lines.dataLabels.show, H.value.showTable = R.value.table.show, H.value.showTooltip = R.value.style.chart.tooltip.show, U.value.width = R.value.style.chart.width, U.value.height = R.value.style.chart.height, U.value.paddingRatio = {
353
+ top: R.value.style.chart.padding.top / R.value.style.chart.height,
354
+ right: R.value.style.chart.padding.right / R.value.style.chart.width,
355
+ bottom: R.value.style.chart.padding.bottom / R.value.style.chart.height,
356
+ left: R.value.style.chart.padding.left / R.value.style.chart.width
357
+ }, Mn(), Pn(), br();
358
+ }, { deep: !0 }), Qe(() => P.dataset, (e) => {
359
+ Array.isArray(e) && e.length > 0 && (Bn.value = !1), Cr(), Mn(), Pn();
360
+ }, { deep: !0 });
361
+ let H = O({
362
+ dataLabels: { show: R.value.style.chart.lines.dataLabels.show },
363
+ showTable: R.value.table.show,
364
+ showTooltip: R.value.style.chart.tooltip.show
365
+ });
366
+ Qe(R, () => {
367
+ H.value = {
368
+ dataLabels: { show: R.value.style.chart.lines.dataLabels.show },
369
+ showTable: R.value.table.show,
370
+ showTooltip: R.value.style.chart.tooltip.show
371
+ };
372
+ }, { immediate: !0 });
373
+ let { isPrinting: Yn, isImaging: Xn, generatePdf: Zn, generateImage: Qn } = ge({
374
+ elementId: `stackline_${F.value}`,
375
+ fileName: R.value.style.chart.title.text || "vue-ui-stackline",
376
+ options: R.value.userOptions.print
377
+ }), $n = b(() => R.value.userOptions.show && !R.value.style.chart.title.text), U = O({
378
+ width: R.value.style.chart.width,
379
+ height: R.value.style.chart.height,
380
+ paddingRatio: {
381
+ top: R.value.style.chart.padding.top / R.value.style.chart.height,
382
+ right: R.value.style.chart.padding.right / R.value.style.chart.width,
383
+ bottom: R.value.style.chart.padding.bottom / R.value.style.chart.height,
384
+ left: R.value.style.chart.padding.left / R.value.style.chart.width
385
+ }
386
+ }), er = b(() => ce(R.value.customPalette)), tr = Ye(null), nr = Ye(null), rr = O(null), ir = b(() => !!R.value.debug);
387
+ function ar() {
388
+ if (d(P.dataset) ? (p({
389
+ componentName: "VueUiStackline",
390
+ type: "dataset",
391
+ debug: ir.value
392
+ }), Bn.value = !0) : P.dataset.forEach((e, t) => {
393
+ re({
394
+ datasetObject: e,
395
+ requiredAttributes: ["name", "series"]
396
+ }).forEach((e) => {
397
+ $t.value = !1, p({
398
+ componentName: "VueUiStackline",
399
+ type: "datasetSerieAttribute",
400
+ property: e,
401
+ index: t,
402
+ debug: ir.value
403
+ }), Bn.value = !0;
404
+ });
405
+ }), d(P.dataset) || (Bn.value = R.value.loading), setTimeout(() => {
406
+ un.value = !0;
407
+ }, 10), R.value.responsive) {
408
+ let e = Oe(() => {
409
+ un.value = !1;
410
+ let { width: e, height: t } = ke({
411
+ chart: en.value,
412
+ noTitle: sn.value,
413
+ title: R.value.style.chart.title.text ? rn.value : null,
414
+ legend: R.value.style.chart.legend.show ? an.value : null,
415
+ slicer: R.value.style.chart.zoom.show && K.value > 6 ? on.value.$el : null,
416
+ source: cn.value
417
+ });
418
+ requestAnimationFrame(() => {
419
+ U.value.width = e, U.value.height = t - 12, clearTimeout(rr.value), rr.value = setTimeout(() => {
420
+ un.value = !0;
421
+ }, 10);
422
+ });
423
+ });
424
+ tr.value && (nr.value && tr.value.unobserve(nr.value), tr.value.disconnect()), tr.value = new ResizeObserver(e), nr.value = en.value.parentNode, tr.value.observe(nr.value);
425
+ }
426
+ Qr();
427
+ }
428
+ Ke(() => {
429
+ jn.stop(), tr.value && (nr.value && tr.value.unobserve(nr.value), tr.value.disconnect());
430
+ });
431
+ function or() {
432
+ let e = 0;
433
+ Sn.value && (e = Array.from(Sn.value.querySelectorAll("text")).reduce((e, t) => {
434
+ let n = t.getComputedTextLength();
435
+ return n > e ? n : e;
436
+ }, 0));
437
+ let t = xn.value ? xn.value.getBoundingClientRect().width : 0;
438
+ return e + t + (t ? 24 : 0);
439
+ }
440
+ let sr = O(0), cr = O(0), lr = O(0);
441
+ function ur() {
442
+ let e = Cn.value;
443
+ if (!e) {
444
+ cr.value = 0;
445
+ return;
446
+ }
447
+ try {
448
+ let t = e.getBBox();
449
+ cr.value = Number.isFinite(t?.height) ? t.height : 0;
450
+ } catch {
451
+ cr.value = 0;
452
+ }
453
+ }
454
+ function dr() {
455
+ lr.value && cancelAnimationFrame(lr.value), lr.value = requestAnimationFrame(() => {
456
+ requestAnimationFrame(() => {
457
+ ur();
458
+ });
459
+ });
460
+ }
461
+ Ke(() => {
462
+ lr.value && cancelAnimationFrame(lr.value), cr.value = 0, sr.value = 0;
463
+ });
464
+ let fr = b(() => {
465
+ let e = 0;
466
+ if (bn.value) try {
467
+ e = bn.value.getBBox().height;
468
+ } catch {
469
+ e = 0;
470
+ }
471
+ let t = R.value.style.chart.grid.x.timeLabels.show ? cr.value : 0;
472
+ return e + t;
473
+ }), W = b(() => {
474
+ Dn.value;
475
+ let { height: e, width: t } = U.value, { right: n } = U.value.paddingRatio, r = R.value.style.chart.lines.totalValues.show && P.dataset && P.dataset.length > 1 ? R.value.style.chart.lines.totalValues.fontSize * 1.3 : 0, i = 0;
476
+ R.value.style.chart.grid.y.axisLabels.show && (i = or());
477
+ let a = R.value.style.chart.padding.top + r, o = t - t * n - sr.value, s = e - R.value.style.chart.padding.bottom - fr.value - r, c = R.value.style.chart.padding.left + i, l = t - c - t * n - sr.value, u = e - a - R.value.style.chart.padding.bottom - fr.value - r;
478
+ return {
479
+ chartHeight: Math.max(0, e),
480
+ chartWidth: Math.max(0, t),
481
+ top: a,
482
+ right: Math.max(0, o),
483
+ bottom: Math.max(0, s),
484
+ left: Math.max(0, c),
485
+ width: Math.max(0, l),
486
+ height: Math.max(0, u)
487
+ };
488
+ }), pr = b(() => {
489
+ let { left: e, top: t, width: n, height: r } = W.value, i = q.value.start, a = q.value.end, o = Math.max(1, a - i), s = Math.max(0, Math.min(o, (J.value.start ?? i) - i)), c = Math.max(0, Math.min(o, (J.value.end ?? a) - i)), l = Math.max(0, c - s), u = {
490
+ fill: R.value.style.chart.zoom.preview.fill,
491
+ stroke: R.value.style.chart.zoom.preview.stroke,
492
+ "stroke-width": R.value.style.chart.zoom.preview.strokeWidth,
493
+ "stroke-dasharray": R.value.style.chart.zoom.preview.strokeDasharray,
494
+ "stroke-linecap": "round",
495
+ "stroke-linejoin": "round",
496
+ style: {
497
+ pointerEvents: "none",
498
+ transition: "none !important",
499
+ animation: "none !important"
500
+ }
501
+ }, d = n / o;
502
+ return {
503
+ x: e + s * d,
504
+ y: t,
505
+ width: l * d,
506
+ height: r,
507
+ ...u
508
+ };
509
+ }), G = b(() => zn.value.map((e, t) => {
510
+ let n = le(e.color) || er.value[t] || f[t] || f[t % f.length];
511
+ return {
512
+ ...e,
513
+ shape: e.shape || "circle",
514
+ standalone: !!e.standalone,
515
+ series: JSON.parse(JSON.stringify(e.series)).map((e) => R.value.style.chart.lines.distributed ? Math.abs(e) : e),
516
+ seriesSource: e.series,
517
+ signedSeries: e.series.map((e) => e >= 0 ? 1 : -1),
518
+ absoluteIndex: t,
519
+ id: i(),
520
+ color: n
521
+ };
522
+ })), mr = b(() => G.value.filter((e) => !I.value.includes(e.id) && !e.standalone)), hr = b(() => G.value.filter((e) => !I.value.includes(e.id) && e.standalone)), K = b(() => {
523
+ let e = Math.max(...G.value.filter((e) => !I.value.includes(e.id)).map((e) => e.series.length));
524
+ return isFinite(e) ? e : Math.max(...G.value.map((e) => e.series.length));
525
+ });
526
+ function gr(e) {
527
+ Fn.value = e;
528
+ }
529
+ let q = O({
530
+ start: 0,
531
+ end: Math.max(...zn.value.map((e) => e.series.length))
532
+ }), J = O({
533
+ start: 0,
534
+ end: Math.max(...zn.value.map((e) => e.series.length))
535
+ });
536
+ function _r(e) {
537
+ return (q.value.start ?? 0) + (e ?? 0);
538
+ }
539
+ let vr = b(() => R.value.style.chart.zoom.preview.enable && (J.value.start !== q.value.start || J.value.end !== q.value.end));
540
+ function yr(e, t) {
541
+ J.value[e] = t;
542
+ }
543
+ function br() {
544
+ let e = K.value, t = Math.max(0, Math.min(q.value.start ?? 0, e - 1)), n = Math.max(t + 1, Math.min(q.value.end ?? e, e));
545
+ (!Number.isFinite(t) || !Number.isFinite(n) || n <= t) && (t = 0, n = e), q.value.start = t, q.value.end = n, J.value.start = t, J.value.end = n, on.value && (on.value.setStartValue(t), on.value.setEndValue(n));
546
+ }
547
+ let xr = O(null);
548
+ function Sr() {
549
+ return new Promise((e) => requestAnimationFrame(() => requestAnimationFrame(() => e())));
550
+ }
551
+ Ke(() => {
552
+ xr.value && cancelAnimationFrame(xr.value);
553
+ });
554
+ async function Cr() {
555
+ Qr(), await Ue(), xr.value && cancelAnimationFrame(xr.value), xr.value = requestAnimationFrame(async () => {
556
+ await Sr(), Qr();
557
+ });
558
+ }
559
+ let wr = b(() => Math.max(0, W.value.width / (q.value.end - q.value.start))), Tr = b(() => n(mr.value.map((e) => ({
560
+ ...e,
561
+ series: e.series.map((e) => e ?? 0)
562
+ }))).slice(q.value.start, q.value.end)), Er = b(() => I.value.length === G.value.length), Dr = b(() => {
563
+ if (!R.value.style.chart.zoom.minimap.show) return [];
564
+ let e = G.value.filter((e) => Er.value ? !0 : !I.value.includes(e.id) && !e.standalone);
565
+ if (e.length) return n(e.map((e) => ({
566
+ ...e,
567
+ series: (e.series || []).map((e) => e ?? 0)
568
+ })));
569
+ let t = hr.value;
570
+ if (!t.length) return [];
571
+ let r = Math.max(...t.map((e) => e.series.length || 0));
572
+ return Array.from({ length: r }, (e, n) => t.reduce((e, t) => e + Math.abs(t.series[n] ?? 0), 0));
573
+ }), Or = b(() => {
574
+ if (!R.value.style.chart.zoom.minimap.show) return [];
575
+ let e = G.value.filter((e) => Er.value ? !0 : !I.value.includes(e.id) && !e.standalone), t = hr.value, n = e.length ? [{
576
+ name: "",
577
+ series: Dr.value,
578
+ color: "#000000",
579
+ isVisible: !0
580
+ }] : [], r = t.map((e) => ({
581
+ name: e.name || "",
582
+ series: (e.series || []).map((e) => e ?? 0),
583
+ color: e.color,
584
+ isVisible: !0
585
+ }));
586
+ return n.concat(r);
587
+ }), kr = b(() => n(mr.value.filter((e) => !I.value.includes(e.id)).map((e) => ({
588
+ ...e,
589
+ series: e.series.map((t, n) => {
590
+ let r = t ?? 0;
591
+ return e.signedSeries[n] === -1 && r >= 0 ? -r : r;
592
+ })
593
+ }))).slice(q.value.start, q.value.end)), Ar = b(() => {
594
+ let e = mr.value.filter((e) => !I.value.includes(e.id));
595
+ return {
596
+ positive: n(e.map((e) => ({
597
+ ...e,
598
+ series: e.series.slice(q.value.start, q.value.end).map((e) => (e ?? 0) >= 0 ? e ?? 0 : 0)
599
+ }))),
600
+ negative: n(e.map((e) => ({
601
+ ...e,
602
+ series: e.series.slice(q.value.start, q.value.end).map((e) => (e ?? 0) < 0 ? e ?? 0 : 0)
603
+ })))
604
+ };
605
+ }), jr = b(() => {
606
+ let e = Math.max(0, q.value.end - q.value.start), t = Array(e).fill(0), n = Array(e).fill(0);
607
+ return hr.value.forEach((r) => {
608
+ for (let i = 0; i < e; i += 1) {
609
+ let e = r.series[q.value.start + i] ?? 0;
610
+ e > 0 && (t[i] = Math.max(t[i], e)), e < 0 && (n[i] = Math.min(n[i], e));
611
+ }
612
+ }), {
613
+ positive: t,
614
+ negative: n
615
+ };
616
+ }), Mr = b(() => kr.value.map((e, t) => ({
617
+ value: e,
618
+ sign: e >= 0 ? 1 : -1
619
+ })));
620
+ function Nr() {
621
+ return { y0: Fr.value?.[0]?.zero ?? W.value.bottom };
622
+ }
623
+ function Pr(e) {
624
+ let { y0: t } = Nr(), n = R.value.style.chart.lines.totalValues, r = Math.max(2, n.fontSize * 1.3 + n.offsetY), i = (e) => Math.min(Math.max(e, W.value.top - R.value.style.chart.lines.totalValues.fontSize * 1.3), W.value.bottom + R.value.style.chart.lines.totalValues.fontSize * 2);
625
+ if ((Mr.value?.[e]?.value ?? 0) >= 0 || R.value.style.chart.lines.distributed) {
626
+ let n = Infinity;
627
+ for (let t of Y.value || []) {
628
+ let r = t?.series?.[e], i = t?.topY?.[e];
629
+ (r ?? 0) > 0 && Number.isFinite(i) && i < n && (n = i);
630
+ }
631
+ return i((Number.isFinite(n) ? n : t) - r - R.value.style.chart.lines.totalValues.offsetY);
632
+ } else {
633
+ let a = -Infinity;
634
+ for (let t of Y.value || []) {
635
+ let n = t?.series?.[e], r = t?.topY?.[e];
636
+ (n ?? 0) < 0 && Number.isFinite(r) && r > a && (a = r);
637
+ }
638
+ return i((Number.isFinite(a) ? a : t) + r + n.fontSize * .7 + R.value.style.chart.lines.totalValues.offsetY);
639
+ }
640
+ }
641
+ let Fr = b(() => {
642
+ let e = Math.max(...Ar.value.positive, 0), t = Math.min(...Ar.value.negative, 0), n = Math.max(...jr.value.positive, 0), r = Math.min(...jr.value.negative, 0), i = Math.max(e, n), a = Math.min(t, r), o = [
643
+ -Infinity,
644
+ Infinity,
645
+ NaN,
646
+ void 0,
647
+ null
648
+ ].includes(a) ? 0 : a, s = R.value.style.chart.grid.scale.scaleMin, c = R.value.style.chart.grid.scale.scaleMax, l = !R.value.style.chart.lines.distributed && (s !== null || c !== null), u = s !== null && !R.value.style.chart.lines.distributed ? s : o > 0 ? 0 : o, d = c !== null && !R.value.style.chart.lines.distributed ? c : i < 0 ? 0 : i, f = l ? h(u, d, R.value.style.chart.grid.scale.ticks) : g(u, d, R.value.style.chart.grid.scale.ticks), p = Math.abs(Number(f.min) || 0), m = (Number(f.max) || 0) + p, _ = m === 0 || !Number.isFinite(m) ? 1 : m, ee = Array.isArray(f.ticks) && f.ticks.length ? f.ticks : [0], v = W.value.bottom - W.value.height * (p / _);
649
+ return ee.map((e) => {
650
+ let t = Number(e) || 0;
651
+ return {
652
+ zero: v,
653
+ y: W.value.bottom - W.value.height * ((t + p) / _),
654
+ x: X.value.left - 8,
655
+ value: t
656
+ };
657
+ });
658
+ }), Ir = O([]), Lr = O([]), Rr = 0;
659
+ $e(() => {
660
+ let e = ++Rr;
661
+ (async () => {
662
+ let t = await me({
663
+ values: R.value.style.chart.grid.x.timeLabels.values,
664
+ maxDatapoints: K.value,
665
+ formatter: R.value.style.chart.grid.x.timeLabels.datetimeFormatter,
666
+ start: q.value.start,
667
+ end: q.value.end
668
+ });
669
+ e === Rr && (Ir.value = t);
670
+ })();
671
+ });
672
+ let zr = 0;
673
+ $e(() => {
674
+ let e = ++zr;
675
+ (async () => {
676
+ let t = await me({
677
+ values: R.value.style.chart.grid.x.timeLabels.values,
678
+ maxDatapoints: K.value,
679
+ formatter: R.value.style.chart.grid.x.timeLabels.datetimeFormatter,
680
+ start: 0,
681
+ end: K.value
682
+ });
683
+ e === zr && (Lr.value = t);
684
+ })();
685
+ });
686
+ let Br = b(() => {
687
+ let e = R.value.style.chart.grid.x.timeLabels.modulo;
688
+ return Ir.value.length ? Math.min(e, [...new Set(Ir.value.map((e) => e.text))].length) : e;
689
+ }), Vr = b(() => {
690
+ let e = R.value.style.chart.grid.x.timeLabels, t = Ir.value || [], n = Lr.value || [], r = q.value.start ?? 0, i = $.value, a = K.value, o = t.map((e) => e?.text ?? ""), s = n.map((e) => e?.text ?? "");
691
+ return ae(!!e.showOnlyFirstAndLast, !!e.showOnlyAtModulo, Math.max(1, Br.value || 1), o, s, r, i, a);
692
+ });
693
+ $e(() => {
694
+ R.value.style.chart.grid.x.timeLabels.show, R.value.style.chart.grid.x.timeLabels.fontSize, R.value.style.chart.grid.x.timeLabels.rotation, R.value.style.chart.grid.x.timeLabels.offsetY, (Vr.value || []).map((e) => e?.text ?? "").join("|"), U.value.width, U.value.height, Cn.value, bn.value, dr();
695
+ }, { flush: "post" });
696
+ let Hr = O({
697
+ months: [],
698
+ shortMonths: [],
699
+ days: [],
700
+ shortDays: []
701
+ }), Ur = 0;
702
+ $e(() => {
703
+ let e = ++Ur, t = R.value.style.chart.grid.x.timeLabels.datetimeFormatter;
704
+ (async () => {
705
+ let n = await pe(t.locale).catch(() => pe("en"));
706
+ e === Ur && (Hr.value = n.data);
707
+ })();
708
+ });
709
+ let Wr = b(() => {
710
+ let e = R.value.style.chart.grid.x.timeLabels.datetimeFormatter, t = fe({
711
+ useUTC: e.useUTC,
712
+ locale: Hr.value,
713
+ januaryAsYear: e.januaryAsYear
714
+ });
715
+ return (e, n) => {
716
+ let r = R.value.style.chart.grid.x.timeLabels.values?.[e];
717
+ return r == null ? "" : t.formatDate(new Date(r), n);
718
+ };
719
+ }), Gr = b(() => (R.value.style.chart.grid.x.timeLabels.values || []).map((e, t) => ({
720
+ text: Wr.value(t, R.value.style.chart.zoom.timeFormat),
721
+ absoluteIndex: t
722
+ }))), Kr = b(() => (R.value.style.chart.grid.x.timeLabels.values || []).map((e, t) => ({
723
+ text: Wr.value(t, R.value.style.chart.tooltip.timeFormat),
724
+ absoluteIndex: t
725
+ }))), qr = b(() => {
726
+ if (!$t.value && !B.value) return [];
727
+ let e = W.value.height, t = Fr.value[0] ? Fr.value[0].zero : W.value.bottom, n = q.value.start ?? 0, r = q.value.end ?? 0, i = Math.max(1, r - n), a = Math.max(...Ar.value.positive, 0), o = Math.min(...Ar.value.negative, 0), s = Math.max(...jr.value.positive, 0), c = Math.min(...jr.value.negative, 0), l = Math.max(a, s), u = Math.min(o, c), { min: d, max: f } = !R.value.style.chart.lines.distributed && (R.value.style.chart.grid.scale.scaleMax !== null || R.value.style.chart.grid.scale.scaleMin !== null) ? h(R.value.style.chart.grid.scale.scaleMin === null ? u > 0 ? 0 : u : R.value.style.chart.grid.scale.scaleMin, R.value.style.chart.grid.scale.scaleMax === null ? l < 0 ? 0 : l : R.value.style.chart.grid.scale.scaleMax, R.value.style.chart.grid.scale.ticks) : g(R.value.style.chart.grid.scale.scaleMin === null ? u > 0 ? 0 : u : R.value.style.chart.grid.scale.scaleMin, R.value.style.chart.grid.scale.scaleMax === null ? l < 0 ? 0 : l : R.value.style.chart.grid.scale.scaleMax, R.value.style.chart.grid.scale.ticks), p = f + (d >= 0 ? 0 : Math.abs(d)) || 1, m = Array(i).fill(0), _ = Array(i).fill(0), ee = (e) => i <= 1 ? W.value.left + W.value.width / 2 : W.value.left + e / (i - 1) * W.value.width;
728
+ return G.value.filter((e) => !I.value.includes(e.id)).map((r) => {
729
+ let a = [], o = [], s = [], c = Array(i).fill(null), l = Array(i).fill(null);
730
+ for (let u = 0; u < i; u += 1) {
731
+ let i = n + u, d = r.series?.[i], f = r.signedSeries?.[i], h = d == null || Number.isNaN(d) ? 0 : d, g = r.standalone ? h / p : R.value.style.chart.lines.distributed ? h / (Tr.value[u] || 1) : h / p;
732
+ if (h >= 0) {
733
+ let n = e * Math.abs(g);
734
+ if (r.standalone) c[u] = t, l[u] = t - n;
735
+ else {
736
+ let e = m[u], r = e + n;
737
+ c[u] = t - e, l[u] = t - r, m[u] = r;
738
+ }
739
+ } else {
740
+ let n = e * Math.abs(g);
741
+ if (r.standalone) c[u] = t, l[u] = t + n;
742
+ else {
743
+ let e = _[u], r = e + n;
744
+ c[u] = t + e, l[u] = t + r, _[u] = r;
745
+ }
746
+ }
747
+ a.push(u), o.push(h), s.push(f ?? (h >= 0 ? 1 : -1));
748
+ }
749
+ let u = a.map((e) => ({
750
+ x: ee(e),
751
+ y: l[e]
752
+ })), d = u.map((e) => e.x), f = o.reduce((e, t) => e + Math.abs(t || 0), 0), h = f === 0 ? 1 : f, g = o.map((e, t) => {
753
+ if (R.value.style.chart.lines.distributed && !r.standalone) {
754
+ let n = a[t], r = Tr.value[n] || 1;
755
+ return (e || 0) / r;
756
+ }
757
+ return (e || 0) / h;
758
+ });
759
+ return {
760
+ ...r,
761
+ x: d,
762
+ points: u,
763
+ baseY: a.map((e) => c[e]),
764
+ topY: a.map((e) => l[e]),
765
+ series: o,
766
+ signedSeries: s,
767
+ proportions: g,
768
+ rel: a,
769
+ fullSeries: Array.isArray(r.fullSeries) ? r.fullSeries : r.series
770
+ };
771
+ });
772
+ }), Y = b(() => {
773
+ let e = (e) => typeof e == "string" ? e.replace(/^M\s*[-+]?[\d.]+(?:e[-+]?\d+)?\s*,?\s*[-+]?[\d.]+(?:e[-+]?\d+)?\s*/i, "").trim() : "", t = Math.max(...Ar.value.positive, 0), n = Math.min(...Ar.value.negative, 0), r = Math.max(...jr.value.positive, 0), i = Math.min(...jr.value.negative, 0), o = Math.max(t, r), s = Math.min(n, i), c = !R.value.style.chart.lines.distributed && (R.value.style.chart.grid.scale.scaleMax !== null || R.value.style.chart.grid.scale.scaleMin !== null) ? h(R.value.style.chart.grid.scale.scaleMin === null ? s > 0 ? 0 : s : R.value.style.chart.grid.scale.scaleMin, R.value.style.chart.grid.scale.scaleMax === null ? o < 0 ? 0 : o : R.value.style.chart.grid.scale.scaleMax, R.value.style.chart.grid.scale.ticks) : g(R.value.style.chart.grid.scale.scaleMin === null ? s > 0 ? 0 : s : R.value.style.chart.grid.scale.scaleMin, R.value.style.chart.grid.scale.scaleMax === null ? o < 0 ? 0 : o : R.value.style.chart.grid.scale.scaleMax, R.value.style.chart.grid.scale.ticks), l = Number(c.min) || 0, u = Number(c.max) || 0, d = Math.abs(l), f = u + d || 1, p = (e) => {
774
+ if (R.value.style.chart.lines.distributed) {
775
+ let t = Math.max(0, Math.min(1, e));
776
+ return minimapH - minimapH * t;
777
+ }
778
+ return clampY(minimapH - minimapH * (((e ?? 0) + d) / f));
779
+ };
780
+ return qr.value.map((t) => {
781
+ let n = t.x.length, r = Array.isArray(t.fullSeries) ? t.fullSeries : t.series, i = ({ left: e = 0, unitW: t }) => {
782
+ let n = r.length;
783
+ return !Number.isFinite(t) || t <= 0 || n <= 0 ? [] : n === 1 ? [e + t * .5] : r.map((n, r) => e + r * t);
784
+ }, o = ({ minimapH: e }) => !Number.isFinite(e) || e <= 0 ? [] : r.map((t) => p(t || 0, e)), s = ({ minimapH: e }) => {
785
+ if (!Number.isFinite(e) || e <= 0) return [];
786
+ let t = p(0, e);
787
+ return r.map(() => t);
788
+ };
789
+ if (n === 0) return {
790
+ ...t,
791
+ points: [],
792
+ smoothPath: "",
793
+ straightPath: "",
794
+ smoothArea: "",
795
+ straightArea: "",
796
+ xMinimap: i,
797
+ yMinimap: o,
798
+ yMinimapBase: s
799
+ };
800
+ let c = t.x.map((e, n) => ({
801
+ x: e,
802
+ y: t.topY[n]
803
+ })), l = t.x.map((e, n) => ({
804
+ x: e,
805
+ y: t.baseY[n]
806
+ })), u = n >= 2 ? v(c) : `M${c[0].x},${c[0].y}`, d = n >= 2 ? a(c) : `M${c[0].x},${c[0].y}`, f = n >= 2 ? `M${e(u)}` : u, m = n >= 2 ? `M${e(d)}` : d, h = "", g = "";
807
+ if (R.value.style.chart.lines.useArea && n >= 2) {
808
+ let t = v([...l].reverse()), n = a([...l].reverse()), r = l[l.length - 1];
809
+ h = `M${c[0].x},${c[0].y} ${e(u)} L${r.x},${r.y} ${e(t)} Z`, g = `M${c[0].x},${c[0].y} ${e(d)} L${r.x},${r.y} ${e(n)} Z`;
810
+ }
811
+ return {
812
+ ...t,
813
+ points: c,
814
+ smoothPath: f,
815
+ straightPath: m,
816
+ smoothArea: h,
817
+ straightArea: g,
818
+ xMinimap: i,
819
+ yMinimap: o,
820
+ yMinimapBase: s
821
+ };
822
+ });
823
+ }), Jr = b(() => $.value === null || $.value === void 0 ? null : {
824
+ timeLabel: fi($.value),
825
+ absoluteIndex: $.value + q.value.start,
826
+ seriesIndex: $.value,
827
+ datapoint: di.value,
828
+ series: Y.value,
829
+ config: R.value
830
+ }), Yr = O(!1), Xr = O(!1);
831
+ function Zr(e) {
832
+ let t = K.value;
833
+ return e > t ? t : e < 0 || e < q.value.start ? R.value.style.chart.zoom.startIndex === null ? 1 : q.value.start + 1 : e;
834
+ }
835
+ function Qr() {
836
+ if (!Yr.value) {
837
+ Yr.value = !0;
838
+ try {
839
+ let { startIndex: e, endIndex: t } = R.value.style.chart.zoom, n = K.value, r = e ?? 0, i = t == null ? n : Math.min(Zr(t + 1), n);
840
+ ti.value = !0, q.value.start = r, q.value.end = i, J.value.start = r, J.value.end = i, br(), Xr.value = !0;
841
+ } finally {
842
+ queueMicrotask(() => {
843
+ ti.value = !1;
844
+ }), Yr.value = !1;
845
+ }
846
+ }
847
+ }
848
+ function $r(e) {
849
+ Yr.value || ti.value || e !== q.value.start && (q.value.start = e, J.value.start = e, br());
850
+ }
851
+ function ei(e) {
852
+ if (Yr.value || ti.value) return;
853
+ let t = Zr(e);
854
+ t !== q.value.end && (q.value.end = t, J.value.end = t, br());
855
+ }
856
+ let X = b(() => ({
857
+ left: W.value.left,
858
+ right: W.value.right,
859
+ width: W.value.width
860
+ })), ti = O(!1);
861
+ Ce({
862
+ timeLabelsEls: Cn,
863
+ timeLabels: Ir,
864
+ slicer: q,
865
+ configRef: R,
866
+ rotationPath: [
867
+ "style",
868
+ "chart",
869
+ "grid",
870
+ "x",
871
+ "timeLabels",
872
+ "rotation"
873
+ ],
874
+ autoRotatePath: [
875
+ "style",
876
+ "chart",
877
+ "grid",
878
+ "x",
879
+ "timeLabels",
880
+ "autoRotate",
881
+ "enable"
882
+ ],
883
+ isAutoSize: !1,
884
+ width: b(() => U.value.width),
885
+ height: b(() => U.value.height),
886
+ rotation: R.value.style.chart.grid.x.timeLabels.autoRotate.angle
887
+ });
888
+ let ni = O(null);
889
+ function ri(e) {
890
+ let t = V.value;
891
+ if (!t) return null;
892
+ if (t.createSVGPoint && t.getScreenCTM) {
893
+ let n = t.createSVGPoint();
894
+ n.x = e.clientX, n.y = e.clientY;
895
+ let r = t.getScreenCTM();
896
+ if (r) {
897
+ let e = n.matrixTransform(r.inverse());
898
+ return {
899
+ x: e.x,
900
+ y: e.y,
901
+ ok: !0
902
+ };
903
+ }
904
+ }
905
+ let n = t.getBoundingClientRect(), r = t.viewBox?.baseVal || {
906
+ x: 0,
907
+ y: 0,
908
+ width: n.width,
909
+ height: n.height
910
+ }, i = Math.min(n.width / r.width, n.height / r.height), a = r.width * i, o = r.height * i, s = (n.width - a) / 2, c = (n.height - o) / 2;
911
+ return {
912
+ x: (e.clientX - n.left - s) / i + r.x,
913
+ y: (e.clientY - n.top - c) / i + r.y,
914
+ ok: !0
915
+ };
916
+ }
917
+ let ii = 0, Z = b(() => Math.max(1, q.value.end - q.value.start)), ai = b(() => Z.value > 1 ? W.value.width / (Z.value - 1) : 0);
918
+ function Q(e) {
919
+ return Z.value <= 1 ? W.value.left + W.value.width / 2 : W.value.left + e * ai.value;
920
+ }
921
+ function oi(e) {
922
+ if (Z.value <= 1) return {
923
+ x: W.value.left,
924
+ width: W.value.width
925
+ };
926
+ let t = e === 0 ? W.value.left : (Q(e - 1) + Q(e)) / 2, n = e === Z.value - 1 ? W.value.left + W.value.width : (Q(e) + Q(e + 1)) / 2;
927
+ return {
928
+ x: t,
929
+ width: Math.max(0, n - t)
930
+ };
931
+ }
932
+ function si(e) {
933
+ In.value || (ii && cancelAnimationFrame(ii), ii = requestAnimationFrame(() => {
934
+ ii = 0;
935
+ let t = ri(e);
936
+ if (!t || !V.value) {
937
+ ui();
938
+ return;
939
+ }
940
+ let { left: n, right: r, top: i, bottom: a } = W.value;
941
+ if (t.x < n || t.x > r || t.y < i || t.y > a) {
942
+ ui();
943
+ return;
944
+ }
945
+ let o = 0;
946
+ if (Z.value > 1) {
947
+ let e = (t.x - n) / ai.value;
948
+ o = Math.round(e);
949
+ } else o = 0;
950
+ o < 0 && (o = 0), o > Z.value - 1 && (o = Z.value - 1), ni.value !== o && (ni.value = o, mi(!0, o));
951
+ }));
952
+ }
953
+ function ci(e) {
954
+ let t = ri(e);
955
+ if (!t || !V.value) return;
956
+ let { left: n, right: r, top: i, bottom: a } = W.value;
957
+ if (t.x < n || t.x > r || t.y < i || t.y > a) return;
958
+ let o = 0;
959
+ if (Z.value > 1) {
960
+ let e = (t.x - n) / ai.value;
961
+ o = Math.round(e);
962
+ } else o = 0;
963
+ o < 0 && (o = 0), o > Z.value - 1 && (o = Z.value - 1), qi({
964
+ seriesIndex: o,
965
+ datapoint: zi(o)
966
+ }), li(o);
967
+ }
968
+ function li(e) {
969
+ let t = JSON.parse(JSON.stringify(Y.value)).map((t) => ({
970
+ name: t.name,
971
+ value: t.series[e] === 0 ? 0 : t.series[e] || null,
972
+ proportion: t.proportions[e] || null,
973
+ color: t.color,
974
+ id: t.id
975
+ }));
976
+ R.value.events.datapointClick && R.value.events.datapointClick({
977
+ datapoint: t,
978
+ seriesIndex: e + q.value.start
979
+ }), Qt("selectDatapoint", {
980
+ datapoint: t,
981
+ period: Ir.value[e]
982
+ });
983
+ }
984
+ Qe(() => [
985
+ q.value.start,
986
+ q.value.end,
987
+ Y.value.length
988
+ ], () => {
989
+ let e = Z.value;
990
+ if ($.value != null) {
991
+ if (e <= 0) {
992
+ $.value = null;
993
+ return;
994
+ }
995
+ $.value < 0 && ($.value = 0), $.value > e - 1 && ($.value = e - 1);
996
+ }
997
+ });
998
+ function ui() {
999
+ ii &&= (cancelAnimationFrame(ii), 0), ni.value = null, mi(!1, null);
1000
+ }
1001
+ let $ = O(null), di = b(() => {
1002
+ let e = $.value, t = e == null ? null : _r(e);
1003
+ return Y.value.map((n) => ({
1004
+ slotAbsoluteIndex: n.absoluteIndex,
1005
+ shape: n.shape || "circle",
1006
+ name: n.name,
1007
+ color: n.color,
1008
+ value: e == null ? null : n.series.find((t, n) => n === e),
1009
+ sourceValue: t == null ? null : n.seriesSource?.[t],
1010
+ comments: n.comments || [],
1011
+ id: n.id,
1012
+ standalone: !!n.standalone
1013
+ }));
1014
+ });
1015
+ function fi(e) {
1016
+ if (e == null || !R.value.style.chart.tooltip.showTimeLabel) return null;
1017
+ let t = Ir.value?.[e]?.text || null, n = Kr.value?.[e]?.text || null, r = Lr.value?.[e]?.text || null;
1018
+ return R.value.style.chart.tooltip.useDefaultTimeFormat ? t : n || r;
1019
+ }
1020
+ let pi = b(() => {
1021
+ let e = R.value.style.chart.tooltip.customFormat, n = [...di.value].reverse(), i = n.filter((e) => !e.standalone), a = n.filter((e) => e.standalone), o = i.map((e) => e.value).filter((e) => te(e) && e !== null).reduce((e, t) => Math.abs(e) + Math.abs(t), 0);
1022
+ if (ie(e) && ne(() => e({
1023
+ absoluteIndex: $.value + q.value.start,
1024
+ seriesIndex: $.value,
1025
+ datapoint: di.value,
1026
+ series: G.value,
1027
+ config: R.value
1028
+ }))) return e({
1029
+ absoluteIndex: $.value + q.value.start,
1030
+ seriesIndex: $.value,
1031
+ datapoint: di.value,
1032
+ series: G.value,
1033
+ config: R.value
1034
+ });
1035
+ let { showValue: s, showTotal: c, totalTranslation: u, showPercentage: d, borderColor: f, roundingValue: p, roundingPercentage: h } = R.value.style.chart.tooltip, g = (e) => !e.shape || ![
1036
+ "star",
1037
+ "triangle",
1038
+ "square",
1039
+ "diamond",
1040
+ "pentagon",
1041
+ "hexagon"
1042
+ ].includes(e.shape) ? `<svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="${R.value.style.chart.tooltip.backgroundColor}" stroke-width="1" fill="${e.color}" /></svg>` : e.shape === "star" ? `<svg viewBox="0 0 12 12" height="14" width="14"><polygon stroke="${R.value.style.chart.tooltip.backgroundColor}" stroke-width="1" fill="${e.color}" points="${l({
1043
+ plot: {
1044
+ x: 6,
1045
+ y: 6
1046
+ },
1047
+ radius: 5
1048
+ })}" /></svg>` : e.shape === "triangle" ? `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${t({
1049
+ plot: {
1050
+ x: 6,
1051
+ y: 6
1052
+ },
1053
+ radius: 6,
1054
+ sides: 3,
1055
+ rotation: .52
1056
+ }).path}" fill="${e.color}" stroke="${R.value.style.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>` : e.shape === "square" ? `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${t({
1057
+ plot: {
1058
+ x: 6,
1059
+ y: 6
1060
+ },
1061
+ radius: 6,
1062
+ sides: 4,
1063
+ rotation: .8
1064
+ }).path}" fill="${e.color}" stroke="${R.value.style.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>` : e.shape === "diamond" ? `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${t({
1065
+ plot: {
1066
+ x: 6,
1067
+ y: 6
1068
+ },
1069
+ radius: 5,
1070
+ sides: 4,
1071
+ rotation: 0
1072
+ }).path}" fill="${e.color}" stroke="${R.value.style.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>` : e.shape === "pentagon" ? `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${t({
1073
+ plot: {
1074
+ x: 6,
1075
+ y: 6
1076
+ },
1077
+ radius: 5,
1078
+ sides: 5,
1079
+ rotation: .95
1080
+ }).path}" fill="${e.color}" stroke="${R.value.style.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>` : `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${t({
1081
+ plot: {
1082
+ x: 6,
1083
+ y: 6
1084
+ },
1085
+ radius: 5,
1086
+ sides: 6,
1087
+ rotation: 0
1088
+ }).path}" fill="${e.color}" stroke="${R.value.style.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`, ee = (e, t) => {
1089
+ let n = t ? r({
1090
+ v: isNaN((e.value ?? 0) / (o || 1)) ? 0 : Math.abs(e.value ?? 0) / (o || 1) * 100,
1091
+ s: "%",
1092
+ r: h
1093
+ }) : "", i = s && t ? "(" : "", a = s && t ? ")" : "";
1094
+ return `
1095
+ <div style="display:flex;flex-direction:row;align-items:center;gap:4px">
1096
+ <div style="width:20px;height:20px;display:flex;align-items:center;justify-content:center;">${g(e)}</div>
1097
+ ${e.name}${s || t ? ":" : ""}
1098
+ ${s ? _(R.value.style.chart.lines.dataLabels.formatter, e.sourceValue, r({
1099
+ p: R.value.style.chart.lines.dataLabels.prefix,
1100
+ v: e.sourceValue,
1101
+ s: R.value.style.chart.lines.dataLabels.suffix,
1102
+ r: p
1103
+ }, { datapoint: e })) : ""} ${i}${n}${a}
1104
+ </div>
1105
+ `;
1106
+ }, v = "", re = fi($.value);
1107
+ return re && (v += `<div style="width:100%;text-align:center;border-bottom:1px solid ${f};padding-bottom:6px;margin-bottom:3px;">${re}</div>`), c && i.length > 1 && (v += `<div class="vue-data-ui-tooltip-total" style="display:flex;flex-direction:row;align-items:center;gap:4px">
1108
+ <span>${u}:</span>
1109
+ <span>${_(R.value.style.chart.lines.dataLabels.formatter, m(o), r({
1110
+ p: R.value.style.chart.lines.dataLabels.prefix,
1111
+ v: m(o),
1112
+ s: R.value.style.chart.lines.dataLabels.suffix,
1113
+ r: p
1114
+ }), { datapoint: {
1115
+ name: u,
1116
+ value: m(o)
1117
+ } })}</span>
1118
+ </div>`), i.forEach((e) => {
1119
+ v += ee(e, d);
1120
+ }), a.length && (v += `<div style="border-top:1px solid ${mr.value.length ? f : "transparent"}; margin:${mr.value.length ? "6px 0" : "0"};"></div>`, a.forEach((e) => {
1121
+ v += ee(e, !1);
1122
+ })), `<div>${v}</div>`;
1123
+ });
1124
+ function mi(e, t = null, n = "pointer") {
1125
+ if (Er.value) return;
1126
+ An.value = n, tn.value = e;
1127
+ let r = Y.value.map((e) => ({
1128
+ name: e.name,
1129
+ value: [
1130
+ null,
1131
+ void 0,
1132
+ NaN
1133
+ ].includes(e.series[t]) ? null : e.series[t],
1134
+ color: e.color
1135
+ }));
1136
+ e ? (L.value = t, $.value = t, qi({
1137
+ seriesIndex: t,
1138
+ datapoint: r
1139
+ }), R.value.events.datapointEnter && R.value.events.datapointEnter({
1140
+ datapoint: r,
1141
+ seriesIndex: t + q.value.start
1142
+ })) : (L.value = null, $.value = null, Qt("selectX", {
1143
+ seriesIndex: null,
1144
+ dataset: null,
1145
+ indexLabel: null
1146
+ }), R.value.events.datapointLeave && R.value.events.datapointLeave({
1147
+ datapoint: r,
1148
+ seriesIndex: t + q.value.start
1149
+ }));
1150
+ }
1151
+ function hi(e, t) {
1152
+ Qt("selectTimeLabel", {
1153
+ datapoint: JSON.parse(JSON.stringify(Y.value)).map((e) => ({
1154
+ name: e.name,
1155
+ value: e.series[t] === 0 ? 0 : (e.signedSeries[t] === -1 && e.series[t] >= 0 ? -e.series[t] : e.series[t]) || null,
1156
+ proportion: e.proportions[t] || null,
1157
+ color: e.color,
1158
+ id: e.id
1159
+ })),
1160
+ absoluteIndex: e.absoluteIndex,
1161
+ label: e.text
1162
+ });
1163
+ }
1164
+ function gi() {
1165
+ I.value.length ? I.value = [] : vi.value.forEach((e) => {
1166
+ I.value.push(e.id);
1167
+ });
1168
+ }
1169
+ function _i(e) {
1170
+ if (I.value.includes(e.id)) I.value = I.value.filter((t) => t !== e.id);
1171
+ else {
1172
+ if (I.value.length === G.value.length - 1) return;
1173
+ I.value.push(e.id);
1174
+ }
1175
+ Qt("selectLegend", Y.value);
1176
+ }
1177
+ let vi = b(() => G.value.map((e) => ({
1178
+ ...e,
1179
+ opacity: I.value.includes(e.id) ? .5 : 1,
1180
+ segregate: () => _i(e),
1181
+ isSegregated: I.value.includes(e.id)
1182
+ }))), yi = b(() => ({
1183
+ cy: "stackline-legend",
1184
+ backgroundColor: R.value.style.chart.legend.backgroundColor,
1185
+ color: R.value.style.chart.legend.color,
1186
+ fontSize: R.value.style.chart.legend.fontSize,
1187
+ paddingBottom: 12,
1188
+ fontWeight: R.value.style.chart.legend.bold ? "bold" : ""
1189
+ }));
1190
+ function bi(e) {
1191
+ return G.value.length ? G.value.find((t) => t.name === e) || (R.value.debug && console.warn(`VueUiStackline - Series name not found "${e}"`), null) : (R.value.debug && console.warn("VueUiStackline - There are no series to show."), null);
1192
+ }
1193
+ function xi(e) {
1194
+ let t = bi(e);
1195
+ t !== null && I.value.includes(t.id) && _i({ id: t.id });
1196
+ }
1197
+ function Si(e) {
1198
+ let t = bi(e);
1199
+ t !== null && (I.value.includes(t.id) || _i({ id: t.id }));
1200
+ }
1201
+ let Ci = b(() => {
1202
+ if (Y.value.length === 0) return {
1203
+ head: [],
1204
+ body: [],
1205
+ config: {},
1206
+ columnNames: []
1207
+ };
1208
+ let e = Y.value.map(({ name: e, color: t }) => ({
1209
+ label: e,
1210
+ color: t
1211
+ })), t = [];
1212
+ return Vr.value.forEach((e) => {
1213
+ let n = e.absoluteIndex, r = [R.value.style.chart.grid.x.timeLabels.values?.[n] ? e.text : n + 1];
1214
+ G.value.forEach((e) => {
1215
+ let t = e.series?.[n], i = Number((t ?? 0).toFixed(R.value.table.td.roundingValue));
1216
+ r.push(i);
1217
+ }), t.push(r);
1218
+ }), {
1219
+ head: e,
1220
+ body: t
1221
+ };
1222
+ });
1223
+ function wi(e = null) {
1224
+ let t = [
1225
+ [R.value.style.chart.title.text],
1226
+ [R.value.style.chart.title.subtitle.text],
1227
+ [""]
1228
+ ], n = ["", ...Ci.value.head.map((e) => e.label)], r = Ci.value.body, i = u(t.concat([n]).concat(r));
1229
+ e ? e(i) : s({
1230
+ csvContent: i,
1231
+ title: R.value.style.chart.title.text || "vue-ui-stackline"
1232
+ });
1233
+ }
1234
+ let Ti = b(() => {
1235
+ let e = [""].concat(Y.value.map((e) => e.name), " <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" stroke-width=\"1.5\" stroke=\"currentColor\" fill=\"none\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2\" /></svg>"), t = [], n = Math.max(0, q.value.end - q.value.start);
1236
+ for (let e = 0; e < n; e += 1) {
1237
+ let n = _r(e), r = R.value.style.chart.grid.x.timeLabels.values?.[n] ? Ir.value?.[e]?.text ?? n + 1 : n + 1, i = Y.value.map((t) => {
1238
+ let n = t.series?.[e] ?? 0;
1239
+ return Number(n.toFixed(R.value.table.td.roundingValue));
1240
+ }), a = Y.value.filter((e) => !e.standalone).map((t) => t.series?.[e] ?? 0).reduce((e, t) => e + t, 0);
1241
+ t.push([r].concat(i, Number(a.toFixed(R.value.table.td.roundingValue))));
1242
+ }
1243
+ return {
1244
+ head: e,
1245
+ body: t,
1246
+ config: {
1247
+ th: {
1248
+ backgroundColor: R.value.table.th.backgroundColor,
1249
+ color: R.value.table.th.color,
1250
+ outline: R.value.table.th.outline
1251
+ },
1252
+ td: {
1253
+ backgroundColor: R.value.table.td.backgroundColor,
1254
+ color: R.value.table.td.color,
1255
+ outline: R.value.table.td.outline
1256
+ },
1257
+ breakpoint: R.value.table.responsiveBreakpoint
1258
+ },
1259
+ colNames: [R.value.table.columnNames.period].concat(Y.value.map((e) => e.name), R.value.table.columnNames.total)
1260
+ };
1261
+ }), Ei = b(() => R.value.style.chart.backgroundColor), Di = b(() => R.value.style.chart.legend), { exportSvg: Oi, getSvg: ki } = ye({
1262
+ svg: V,
1263
+ title: b(() => R.value.style.chart.title),
1264
+ legend: Di,
1265
+ legendItems: vi,
1266
+ backgroundColor: Ei
1267
+ });
1268
+ async function Ai({ isCb: e }) {
1269
+ yn.value = !0, await Ue();
1270
+ try {
1271
+ if (e) {
1272
+ let { blob: e, url: t, text: n, dataUrl: r } = await ki();
1273
+ await Promise.resolve(R.value.userOptions.callbacks.svg({
1274
+ blob: e,
1275
+ url: t,
1276
+ text: n,
1277
+ dataUrl: r
1278
+ }));
1279
+ } else await Promise.resolve(Oi());
1280
+ } finally {
1281
+ yn.value = !1;
1282
+ }
1283
+ }
1284
+ async function ji({ scale: e = 2 } = {}) {
1285
+ if (!en.value) return;
1286
+ let { width: t, height: n } = en.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await we({
1287
+ domElement: en.value,
1288
+ base64: !0,
1289
+ img: !0,
1290
+ scale: e
1291
+ });
1292
+ return {
1293
+ imageUri: i,
1294
+ base64: a,
1295
+ title: R.value.style.chart.title.text,
1296
+ width: t,
1297
+ height: n,
1298
+ aspectRatio: r
1299
+ };
1300
+ }
1301
+ let Mi = b(() => {
1302
+ let e = R.value.table.useDialog && !R.value.table.show, t = H.value.showTable;
1303
+ return {
1304
+ component: e ? qt : Ht,
1305
+ title: `${R.value.style.chart.title.text}${R.value.style.chart.title.subtitle.text ? `: ${R.value.style.chart.title.subtitle.text}` : ""}`,
1306
+ props: e ? {
1307
+ backgroundColor: R.value.table.th.backgroundColor,
1308
+ color: R.value.table.th.color,
1309
+ headerColor: R.value.table.th.color,
1310
+ headerBg: R.value.table.th.backgroundColor,
1311
+ isFullscreen: ln.value,
1312
+ fullscreenParent: en.value,
1313
+ forcedWidth: Math.min(800, window.innerWidth * .8),
1314
+ isCursorPointer: z.value
1315
+ } : {
1316
+ hideDetails: !0,
1317
+ config: {
1318
+ open: t,
1319
+ maxHeight: 1e4,
1320
+ body: {
1321
+ backgroundColor: R.value.style.chart.backgroundColor,
1322
+ color: R.value.style.chart.color
1323
+ },
1324
+ head: {
1325
+ backgroundColor: R.value.style.chart.backgroundColor,
1326
+ color: R.value.style.chart.color
1327
+ }
1328
+ }
1329
+ }
1330
+ };
1331
+ });
1332
+ Qe(() => H.value.showTable, (e) => {
1333
+ R.value.table.show || (e && R.value.table.useDialog && hn.value ? hn.value.open() : "close" in hn.value && hn.value.close());
1334
+ });
1335
+ function Ni() {
1336
+ H.value.showTable = !1, gn.value && gn.value.setTableIconState(!1);
1337
+ }
1338
+ function Pi(e) {
1339
+ ln.value = e, nn.value += 1;
1340
+ }
1341
+ function Fi() {
1342
+ H.value.showTable = !H.value.showTable;
1343
+ }
1344
+ function Ii() {
1345
+ H.value.dataLabels.show = !H.value.dataLabels.show;
1346
+ }
1347
+ function Li() {
1348
+ H.value.showTooltip = !H.value.showTooltip;
1349
+ }
1350
+ function Ri() {
1351
+ return Y.value;
1352
+ }
1353
+ function zi(e) {
1354
+ let t = e ?? 0, n = _r(t);
1355
+ return JSON.parse(JSON.stringify(Y.value)).map((e) => {
1356
+ let r = e.series[t], i = e.signedSeries?.[t], a = r === 0 ? 0 : (i === -1 && r >= 0 ? -r : r) || null;
1357
+ return {
1358
+ name: e.name,
1359
+ absoluteIndex: e.absoluteIndex,
1360
+ value: a,
1361
+ proportion: e.proportions?.[t] || null,
1362
+ color: e.color,
1363
+ id: e.id,
1364
+ timeLabel: Lr.value?.[n] || null
1365
+ };
1366
+ });
1367
+ }
1368
+ let Bi = b(() => Array(K.value).fill(0).map((e, t) => zi(t)));
1369
+ Qe(() => P.selectedXIndex, (e) => {
1370
+ if ([null, void 0].includes(P.selectedXIndex)) {
1371
+ $.value = null;
1372
+ return;
1373
+ }
1374
+ let t = e - q.value.start;
1375
+ t < 0 || e >= q.value.end ? $.value = null : $.value = t ?? null;
1376
+ }, { immediate: !0 });
1377
+ let Vi = b(() => {
1378
+ if (R.value.style.chart.lines.distributed) return {
1379
+ min: -1,
1380
+ max: 1
1381
+ };
1382
+ let e = mr.value, t = hr.value, n = Math.max(1, ...[...e, ...t].map((e) => e.series?.length || 0)), r = Array(n).fill(0), i = Array(n).fill(0);
1383
+ e.forEach((e) => {
1384
+ for (let t = 0; t < n; t += 1) {
1385
+ let n = e.series[t] ?? 0;
1386
+ n >= 0 ? r[t] += n : i[t] += n;
1387
+ }
1388
+ });
1389
+ let a = Array(n).fill(0), o = Array(n).fill(0);
1390
+ t.forEach((e) => {
1391
+ for (let t = 0; t < n; t += 1) {
1392
+ let n = e.series[t] ?? 0;
1393
+ n > 0 && (a[t] = Math.max(a[t], n)), n < 0 && (o[t] = Math.min(o[t], n));
1394
+ }
1395
+ });
1396
+ let s = Math.max(0, ...r, ...a), c = Math.min(0, ...i, ...o), l = R.value.style.chart.grid.scale.scaleMin, u = R.value.style.chart.grid.scale.scaleMax, d = R.value.style.chart.grid.scale.ticks, f = !R.value.style.chart.lines.distributed && (l !== null || u !== null) ? h(l === null ? c > 0 ? 0 : c : l, u === null ? s < 0 ? 0 : s : u, d) : g(l === null ? c > 0 ? 0 : c : l, u === null ? s < 0 ? 0 : s : u, d);
1397
+ return {
1398
+ min: Number(f.min) || 0,
1399
+ max: Number(f.max) || 0
1400
+ };
1401
+ });
1402
+ function Hi({ minimapH: e, unitW: t }) {
1403
+ let n = (e) => typeof e == "string" ? e.replace(/^M\s*[-+]?[\d.]+(?:e[-+]?\d+)?\s*,?\s*[-+]?[\d.]+(?:e[-+]?\d+)?\s*/i, "").trim() : "";
1404
+ if (!Number.isFinite(e) || e <= 0 || !Number.isFinite(t) || t <= 0) return "";
1405
+ let r = Y.value.filter((e) => !e.standalone), i = Y.value.filter((e) => e.standalone), o = Math.max(0, ...Y.value.map((e) => Array.isArray(e.fullSeries) ? e.fullSeries.length : e.series.length));
1406
+ if (o <= 0) return "";
1407
+ let s = o === 1 ? [t * .5] : Array.from({ length: o }, (e, n) => n * t);
1408
+ if (R.value.style.chart.lines.distributed) {
1409
+ let t = Array.from({ length: o }, (e, t) => {
1410
+ let n = 0;
1411
+ return r.forEach((e) => {
1412
+ let r = (Array.isArray(e.fullSeries) ? e.fullSeries : e.series)?.[t];
1413
+ r != null && !Number.isNaN(r) && (n += Math.abs(r));
1414
+ }), n || 1;
1415
+ }), c = (t) => e - e * Math.max(0, Math.min(1, t || 0)), l = [], u = Array(o).fill(0);
1416
+ return r.forEach((e) => {
1417
+ let r = Array.isArray(e.fullSeries) ? e.fullSeries : e.series, i = Array(o), d = Array(o);
1418
+ for (let e = 0; e < o; e += 1) {
1419
+ let n = r?.[e], a = n == null || Number.isNaN(n) ? 0 : Math.abs(n) / t[e];
1420
+ d[e] = u[e], u[e] += a, i[e] = u[e];
1421
+ }
1422
+ let f = i.map(c), p = d.map(c), m = s.map((e, t) => ({
1423
+ x: e,
1424
+ y: f[t]
1425
+ })), h = s.map((e, t) => ({
1426
+ x: e,
1427
+ y: p[t]
1428
+ })), g = v(m), _ = v([...h].reverse()), ee = a(m), te = a([...h].reverse()), ne = h[h.length - 1];
1429
+ if (R.value.style.chart.lines.useArea) {
1430
+ let t = R.value.style.chart.lines.smooth ? `M${m[0].x},${m[0].y} ${n(g)} L${ne.x},${ne.y} ${n(_)} Z` : `M${m[0].x},${m[0].y} ${n(ee)} L${ne.x},${ne.y} ${n(te)} Z`;
1431
+ l.push(`<path d="${t}"
1432
+ fill="${Zt.pattern ? `url(#pattern_${F.value}_${e.absoluteIndex})` : (R.value.style.chart.lines.gradient.show, e.color)}"
1433
+ opacity="${R.value.style.chart.lines.areaOpacity}"
1434
+ stroke="none" />`);
1435
+ }
1436
+ let re = R.value.style.chart.lines.smooth ? `M${m[0].x},${m[0].y} ${n(g)}` : `M${m[0].x},${m[0].y} ${n(ee)}`;
1437
+ l.push(`<path d="${re}"
1438
+ fill="none"
1439
+ stroke="${e.color}"
1440
+ stroke-width="${R.value.style.chart.lines.strokeWidth}"
1441
+ stroke-linecap="round" />`);
1442
+ }), i.length && i.forEach((e) => {
1443
+ let r = Array.isArray(e.fullSeries) ? e.fullSeries : e.series, i = Array.from({ length: o }, (e, n) => c(Math.abs(r?.[n] ?? 0) / t[n])), u = s.map((e, t) => ({
1444
+ x: e,
1445
+ y: i[t]
1446
+ })), d = v(u), f = a(u), p = R.value.style.chart.lines.smooth ? `M${u[0].x},${u[0].y} ${n(d)}` : `M${u[0].x},${u[0].y} ${n(f)}`;
1447
+ l.push(`<path d="${p}"
1448
+ fill="none"
1449
+ stroke="${e.color}"
1450
+ stroke-width="${R.value.style.chart.lines.strokeWidth}"
1451
+ stroke-linecap="round" />`);
1452
+ }), l.join("");
1453
+ }
1454
+ let c = Vi.value.min, l = Vi.value.max, u = Math.abs(c), d = l + u || 1, f = (t) => Math.max(0, Math.min(e, t)), p = (t) => f(e - e * (((t ?? 0) + u) / d)), m = [];
1455
+ if (r.length) {
1456
+ let e = Array(o).fill(0), t = Array(o).fill(0);
1457
+ r.forEach((r) => {
1458
+ let i = Array.isArray(r.fullSeries) ? r.fullSeries : r.series, c = Array(o), l = Array(o);
1459
+ for (let n = 0; n < o; n += 1) {
1460
+ let r = i?.[n] ?? 0;
1461
+ r >= 0 ? (l[n] = e[n], e[n] += r, c[n] = e[n]) : (l[n] = t[n], t[n] += r, c[n] = t[n]);
1462
+ }
1463
+ let u = c.map(p), d = l.map(p), f = s.map((e, t) => ({
1464
+ x: e,
1465
+ y: u[t]
1466
+ })), h = s.map((e, t) => ({
1467
+ x: e,
1468
+ y: d[t]
1469
+ })), g = v(f), _ = v([...h].reverse()), ee = a(f), te = a([...h].reverse()), ne = h[h.length - 1];
1470
+ if (R.value.style.chart.lines.useArea) {
1471
+ let e = R.value.style.chart.lines.smooth ? `M${f[0].x},${f[0].y} ${n(g)} L${ne.x},${ne.y} ${n(_)} Z` : `M${f[0].x},${f[0].y} ${n(ee)} L${ne.x},${ne.y} ${n(te)} Z`;
1472
+ m.push(`<path d="${e}"
1473
+ fill="${Zt.pattern ? `url(#pattern_${F.value}_${r.absoluteIndex})` : (R.value.style.chart.lines.gradient.show, r.color)}"
1474
+ opacity="${R.value.style.chart.lines.areaOpacity}"
1475
+ stroke="none" />`);
1476
+ }
1477
+ let re = R.value.style.chart.lines.smooth ? `M${f[0].x},${f[0].y} ${n(g)}` : `M${f[0].x},${f[0].y} ${n(ee)}`;
1478
+ m.push(`<path d="${re}"
1479
+ fill="none"
1480
+ stroke="${r.color}"
1481
+ stroke-width="${R.value.style.chart.lines.strokeWidth}"
1482
+ stroke-linecap="round" />`);
1483
+ });
1484
+ }
1485
+ return i.length && i.forEach((e) => {
1486
+ let t = (Array.isArray(e.fullSeries) ? e.fullSeries : e.series).map(p), r = s.map((e, n) => ({
1487
+ x: e,
1488
+ y: t[n]
1489
+ })), i = v(r), o = a(r), c = R.value.style.chart.lines.smooth ? `M${r[0].x},${r[0].y} ${n(i)}` : `M${r[0].x},${r[0].y} ${n(o)}`;
1490
+ m.push(`<path d="${c}"
1491
+ fill="none"
1492
+ stroke="${e.color}"
1493
+ stroke-width="${R.value.style.chart.lines.strokeWidth}"
1494
+ stroke-linecap="round" />`);
1495
+ }), m.join("");
1496
+ }
1497
+ function Ui(e, t) {
1498
+ let n = R.value.style.chart.lines, r = n.dataLabels;
1499
+ return n.showDistributedPercentage && n.distributed ? Jn.value ? t === 0 ? !r.hideEmptyPercentages : Math.abs(t) * 100 >= r.hideUnderPercentage : r.hideEmptyPercentages ? Math.abs(t) > 0 : !0 : Jn.value ? (qn.value && ir.value && console.warn("Vue Data UI - VueUiStackline - You cannot set both dataLabels.hideUnderPercentage and dataLabels.hideUnderValue. Note that dataLabels.hideUnderPercentage takes precedence in this case."), Math.abs(e) > Wi.value * r.hideUnderPercentage / 100) : qn.value ? Math.abs(e) >= r.hideUnderValue : r.hideEmptyValues ? e !== 0 : !0;
1500
+ }
1501
+ let Wi = b(() => Math.max(...Y.value.flatMap((e) => e.series)));
1502
+ function Gi(e, t, n, i, a) {
1503
+ let o = a === -1 && e >= 0 ? -e : e;
1504
+ return _(R.value.style.chart.lines.dataLabels.formatter, o, r({
1505
+ p: R.value.style.chart.lines.dataLabels.prefix,
1506
+ v: o,
1507
+ s: R.value.style.chart.lines.dataLabels.suffix,
1508
+ r: R.value.style.chart.lines.dataLabels.rounding
1509
+ }), {
1510
+ datapoint: t,
1511
+ seriesIndex: n,
1512
+ datapointIndex: i
1513
+ });
1514
+ }
1515
+ function Ki(e, t, n, i) {
1516
+ return _(R.value.style.chart.lines.dataLabels.formatter, e, r({
1517
+ v: isNaN(e) ? 0 : e,
1518
+ s: "%",
1519
+ r: R.value.style.chart.lines.dataLabels.rounding
1520
+ }), {
1521
+ datapoint: t,
1522
+ seriesIndex: n,
1523
+ datapointIndex: i
1524
+ });
1525
+ }
1526
+ function qi({ seriesIndex: e, datapoint: t }) {
1527
+ let n = q.value.start + e;
1528
+ Qt("selectX", {
1529
+ dataset: t,
1530
+ index: n,
1531
+ indexLabel: R.value.style.chart.grid.x.timeLabels.values[n]
1532
+ });
1533
+ }
1534
+ function Ji(e) {
1535
+ if (e?.stage === "start") {
1536
+ vn.value = !0;
1537
+ return;
1538
+ }
1539
+ if (e?.stage === "end") {
1540
+ vn.value = !1;
1541
+ return;
1542
+ }
1543
+ Qn();
1544
+ }
1545
+ async function Yi() {
1546
+ if (Qt("copyAlt", {
1547
+ config: R.value,
1548
+ dataset: Y.value
1549
+ }), !R.value.userOptions.callbacks.altCopy) {
1550
+ console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
1551
+ return;
1552
+ }
1553
+ await Promise.resolve(R.value.userOptions.callbacks.altCopy({
1554
+ config: R.value,
1555
+ dataset: Y.value
1556
+ }));
1557
+ }
1558
+ let Xi = O(!1);
1559
+ function Zi() {
1560
+ L.value = null, Xi.value = !0;
1561
+ }
1562
+ function Qi() {
1563
+ L.value = null, An.value = "pointer", tn.value = !1, $.value = null, Qt("selectX", {
1564
+ seriesIndex: null,
1565
+ datapoint: null
1566
+ }), Xi.value = !1;
1567
+ }
1568
+ function $i(e) {
1569
+ if (!V.value || In.value || document.activeElement !== V.value || Er.value || !Z.value) return;
1570
+ let t = e.key === "ArrowLeft", n = e.key === "ArrowRight", r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
1571
+ if (!t && !n && !r && !i) return;
1572
+ if (e.preventDefault(), e.stopPropagation(), i) {
1573
+ L.value = null, An.value = "pointer", tn.value = !1, $.value = null, Qt("selectX", {
1574
+ seriesIndex: null,
1575
+ datapoint: null
1576
+ });
1577
+ return;
1578
+ }
1579
+ if (r) {
1580
+ if (L.value === null) return;
1581
+ li(L.value);
1582
+ return;
1583
+ }
1584
+ let a = L.value, o = ni.value, s = a !== null && a >= 0 && a < Z.value, c = o !== null && o >= 0 && o < Z.value;
1585
+ s ? n ? (a += 1, a >= Z.value && (a = 0)) : t && (--a, a < 0 && (a = Z.value - 1)) : c ? (a = n ? o + 1 : o - 1, a >= Z.value && (a = 0), a < 0 && (a = Z.value - 1)) : a = n ? 0 : Z.value - 1, L.value = a, ea(a), mi(!0, a, "keyboard");
1586
+ }
1587
+ function ea(e) {
1588
+ if (!Number.isFinite(e) || !V.value) return;
1589
+ let t = o(W.value.left + e * ai.value, W.value.top + W.value.height / 2, V.value);
1590
+ t && (kn.value = t);
1591
+ }
1592
+ let ta = b(() => ({
1593
+ headers: Ti.value?.colNames ?? [],
1594
+ rows: Ti.value?.body ?? []
1595
+ }));
1596
+ return De({
1597
+ getData: Ri,
1598
+ getImage: ji,
1599
+ generatePdf: Zn,
1600
+ generateCsv: wi,
1601
+ generateImage: Qn,
1602
+ generateSvg: Ai,
1603
+ hideSeries: Si,
1604
+ showSeries: xi,
1605
+ toggleTable: Fi,
1606
+ toggleLabels: Ii,
1607
+ toggleTooltip: Li,
1608
+ toggleAnnotator: Ln,
1609
+ toggleFullscreen: Pi,
1610
+ copyAlt: Yi
1611
+ }), (t, n) => (D(), C("div", {
1612
+ id: `stackline_${F.value}`,
1613
+ ref_key: "stacklineChart",
1614
+ ref: en,
1615
+ class: We({
1616
+ "vue-data-ui-component": !0,
1617
+ "vue-ui-stackline": !0,
1618
+ "vue-data-ui-wrapper-fullscreen": ln.value
1619
+ }),
1620
+ style: Ge(`background:${R.value.style.chart.backgroundColor};color:${R.value.style.chart.color};font-family:${R.value.style.fontFamily}; position: relative; ${R.value.responsive ? "height: 100%" : ""}`),
1621
+ onMouseenter: Wn,
1622
+ onMouseleave: Gn
1623
+ }, [
1624
+ w("div", {
1625
+ id: `chart-instructions-${F.value}`,
1626
+ class: "sr-only"
1627
+ }, [w("p", null, j(R.value.a11y.translations.keyboardNavigation), 1)], 8, nt),
1628
+ ta.value?.rows?.length ? (D(), x(Me, {
1629
+ key: 0,
1630
+ uid: F.value,
1631
+ head: ta.value.headers,
1632
+ body: ta.value.rows,
1633
+ notice: R.value.a11y.translations.tableAvailable,
1634
+ caption: R.value.a11y.translations.tableCaption
1635
+ }, null, 8, [
1636
+ "uid",
1637
+ "head",
1638
+ "body",
1639
+ "notice",
1640
+ "caption"
1641
+ ])) : S("", !0),
1642
+ R.value.userOptions.buttons.annotator ? (D(), x(M(Wt), {
1643
+ key: 1,
1644
+ svgRef: M(V),
1645
+ backgroundColor: R.value.style.chart.backgroundColor,
1646
+ color: R.value.style.chart.color,
1647
+ active: In.value,
1648
+ isCursorPointer: z.value,
1649
+ onClose: Ln
1650
+ }, {
1651
+ "annotator-action-close": N(() => [A(t.$slots, "annotator-action-close", {}, void 0, !0)]),
1652
+ "annotator-action-color": N(({ color: e }) => [A(t.$slots, "annotator-action-color", E(T({ color: e })), void 0, !0)]),
1653
+ "annotator-action-draw": N(({ mode: e }) => [A(t.$slots, "annotator-action-draw", E(T({ mode: e })), void 0, !0)]),
1654
+ "annotator-action-undo": N(({ disabled: e }) => [A(t.$slots, "annotator-action-undo", E(T({ disabled: e })), void 0, !0)]),
1655
+ "annotator-action-redo": N(({ disabled: e }) => [A(t.$slots, "annotator-action-redo", E(T({ disabled: e })), void 0, !0)]),
1656
+ "annotator-action-delete": N(({ disabled: e }) => [A(t.$slots, "annotator-action-delete", E(T({ disabled: e })), void 0, !0)]),
1657
+ _: 3
1658
+ }, 8, [
1659
+ "svgRef",
1660
+ "backgroundColor",
1661
+ "color",
1662
+ "active",
1663
+ "isCursorPointer"
1664
+ ])) : S("", !0),
1665
+ A(t.$slots, "userConfig", {}, void 0, !0),
1666
+ $n.value ? (D(), C("div", {
1667
+ key: 2,
1668
+ ref_key: "noTitle",
1669
+ ref: sn,
1670
+ class: "vue-data-ui-no-title-space",
1671
+ style: "height:36px; width: 100%;background:transparent"
1672
+ }, null, 512)) : S("", !0),
1673
+ R.value.style.chart.title.text ? (D(), C("div", {
1674
+ key: 3,
1675
+ ref_key: "chartTitle",
1676
+ ref: rn,
1677
+ style: "width:100%;background:transparent;"
1678
+ }, [(D(), x(Te, {
1679
+ key: `title_${dn.value}`,
1680
+ config: {
1681
+ title: {
1682
+ cy: "stackline-title",
1683
+ ...R.value.style.chart.title
1684
+ },
1685
+ subtitle: {
1686
+ cy: "stackline-subtitle",
1687
+ ...R.value.style.chart.title.subtitle
1688
+ }
1689
+ }
1690
+ }, null, 8, ["config"]))], 512)) : S("", !0),
1691
+ w("div", { id: `legend-top-${F.value}` }, null, 8, rt),
1692
+ R.value.userOptions.show && $t.value && (M(Un) || M(Vn)) ? (D(), x(M(Gt), {
1693
+ ref_key: "userOptionsRef",
1694
+ ref: gn,
1695
+ key: `user_option_${nn.value}`,
1696
+ backgroundColor: R.value.style.chart.backgroundColor,
1697
+ color: R.value.style.chart.color,
1698
+ isPrinting: M(Yn),
1699
+ isImaging: M(Xn),
1700
+ uid: F.value,
1701
+ hasTooltip: R.value.style.chart.tooltip.show && R.value.userOptions.buttons.tooltip,
1702
+ hasPdf: R.value.userOptions.buttons.pdf,
1703
+ hasImg: R.value.userOptions.buttons.img,
1704
+ hasSvg: R.value.userOptions.buttons.svg,
1705
+ hasXls: R.value.userOptions.buttons.csv,
1706
+ hasTable: R.value.userOptions.buttons.table,
1707
+ hasLabel: R.value.userOptions.buttons.labels,
1708
+ hasFullscreen: R.value.userOptions.buttons.fullscreen,
1709
+ hasAltCopy: R.value.userOptions.buttons.altCopy,
1710
+ isFullscreen: ln.value,
1711
+ chartElement: en.value,
1712
+ position: R.value.userOptions.position,
1713
+ isTooltip: H.value.showTooltip,
1714
+ titles: { ...R.value.userOptions.buttonTitles },
1715
+ hasAnnotator: R.value.userOptions.buttons.annotator,
1716
+ isAnnotation: In.value,
1717
+ callbacks: R.value.userOptions.callbacks,
1718
+ printScale: R.value.userOptions.print.scale,
1719
+ tableDialog: R.value.table.useDialog,
1720
+ isCursorPointer: z.value,
1721
+ onToggleFullscreen: Pi,
1722
+ onGeneratePdf: M(Zn),
1723
+ onGenerateCsv: wi,
1724
+ onGenerateImage: Ji,
1725
+ onGenerateSvg: Ai,
1726
+ onToggleTable: Fi,
1727
+ onToggleLabels: Ii,
1728
+ onToggleTooltip: Li,
1729
+ onToggleAnnotator: Ln,
1730
+ onCopyAlt: Yi,
1731
+ style: Ge({ visibility: M(Un) ? M(Vn) ? "visible" : "hidden" : "visible" })
1732
+ }, Re({ _: 2 }, [
1733
+ t.$slots.menuIcon ? {
1734
+ name: "menuIcon",
1735
+ fn: N(({ isOpen: e, color: n }) => [A(t.$slots, "menuIcon", E(T({
1736
+ isOpen: e,
1737
+ color: n
1738
+ })), void 0, !0)]),
1739
+ key: "0"
1740
+ } : void 0,
1741
+ t.$slots.optionTooltip ? {
1742
+ name: "optionTooltip",
1743
+ fn: N(() => [A(t.$slots, "optionTooltip", {}, void 0, !0)]),
1744
+ key: "1"
1745
+ } : void 0,
1746
+ t.$slots.optionPdf ? {
1747
+ name: "optionPdf",
1748
+ fn: N(() => [A(t.$slots, "optionPdf", {}, void 0, !0)]),
1749
+ key: "2"
1750
+ } : void 0,
1751
+ t.$slots.optionCsv ? {
1752
+ name: "optionCsv",
1753
+ fn: N(() => [A(t.$slots, "optionCsv", {}, void 0, !0)]),
1754
+ key: "3"
1755
+ } : void 0,
1756
+ t.$slots.optionImg ? {
1757
+ name: "optionImg",
1758
+ fn: N(() => [A(t.$slots, "optionImg", {}, void 0, !0)]),
1759
+ key: "4"
1760
+ } : void 0,
1761
+ t.$slots.optionSvg ? {
1762
+ name: "optionSvg",
1763
+ fn: N(() => [A(t.$slots, "optionSvg", {}, void 0, !0)]),
1764
+ key: "5"
1765
+ } : void 0,
1766
+ t.$slots.optionTable ? {
1767
+ name: "optionTable",
1768
+ fn: N(() => [A(t.$slots, "optionTable", {}, void 0, !0)]),
1769
+ key: "6"
1770
+ } : void 0,
1771
+ t.$slots.optionLabels ? {
1772
+ name: "optionLabels",
1773
+ fn: N(() => [A(t.$slots, "optionLabels", {}, void 0, !0)]),
1774
+ key: "7"
1775
+ } : void 0,
1776
+ t.$slots.optionFullscreen ? {
1777
+ name: "optionFullscreen",
1778
+ fn: N(({ toggleFullscreen: e, isFullscreen: n }) => [A(t.$slots, "optionFullscreen", E(T({
1779
+ toggleFullscreen: e,
1780
+ isFullscreen: n
1781
+ })), void 0, !0)]),
1782
+ key: "8"
1783
+ } : void 0,
1784
+ t.$slots.optionAnnotator ? {
1785
+ name: "optionAnnotator",
1786
+ fn: N(({ toggleAnnotator: e, isAnnotator: n }) => [A(t.$slots, "optionAnnotator", E(T({
1787
+ toggleAnnotator: e,
1788
+ isAnnotator: n
1789
+ })), void 0, !0)]),
1790
+ key: "9"
1791
+ } : void 0,
1792
+ t.$slots.optionAltCopy ? {
1793
+ name: "optionAltCopy",
1794
+ fn: N(({ altCopy: e }) => [A(t.$slots, "optionAltCopy", E(T({ altCopy: e })), void 0, !0)]),
1795
+ key: "10"
1796
+ } : void 0
1797
+ ]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasImg.hasSvg.hasXls.hasTable.hasLabel.hasFullscreen.hasAltCopy.isFullscreen.chartElement.position.isTooltip.titles.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.style".split("."))) : S("", !0),
1798
+ w("div", it, [(D(), C("svg", {
1799
+ ref_key: "svgRef",
1800
+ ref: V,
1801
+ "aria-describedby": `chart-instructions-${F.value}`,
1802
+ xmlns: M(oe),
1803
+ viewBox: `0 0 ${W.value.chartWidth <= 0 ? 10 : W.value.chartWidth} ${W.value.chartHeight <= 0 ? 10 : W.value.chartHeight}`,
1804
+ class: We({
1805
+ "vue-data-ui-loading": M(B),
1806
+ "no-transition": !R.value.useCssAnimation
1807
+ }),
1808
+ style: Ge(`max-width:100%;overflow:visible;background:transparent;color:${R.value.style.chart.color}`),
1809
+ role: "img",
1810
+ "aria-live": "polite",
1811
+ tabindex: "0",
1812
+ preserveAspectRatio: "xMidYMid",
1813
+ onMousemove: si,
1814
+ onMouseleave: ui,
1815
+ onClick: ci,
1816
+ onFocus: Zi,
1817
+ onBlur: Qi,
1818
+ onKeydown: $i
1819
+ }, [
1820
+ Be(M(Kt)),
1821
+ (D(!0), C(y, null, k(mr.value, (e) => (D(), C(y, null, [t.$slots.pattern ? (D(), C("defs", ot, [A(t.$slots, "pattern", He({ ref_for: !0 }, {
1822
+ seriesIndex: e.absoluteIndex,
1823
+ patternId: `pattern_${F.value}_${e.absoluteIndex}`
1824
+ }), void 0, !0)])) : S("", !0)], 64))), 256)),
1825
+ t.$slots["chart-background"] ? (D(), C("foreignObject", {
1826
+ key: 0,
1827
+ x: X.value.left,
1828
+ y: W.value.top,
1829
+ width: X.value.width,
1830
+ height: W.value.height,
1831
+ style: { pointerEvents: "none" }
1832
+ }, [A(t.$slots, "chart-background", {}, void 0, !0)], 8, st)) : S("", !0),
1833
+ R.value.style.chart.lines.gradient.show ? (D(), C("defs", ct, [(D(!0), C(y, null, k(Y.value, (e, t) => (D(), C("linearGradient", {
1834
+ id: `gradient_${e.id}`,
1835
+ x1: "0%",
1836
+ y1: "0%",
1837
+ x2: "0%",
1838
+ y2: "100%"
1839
+ }, [w("stop", {
1840
+ offset: "0%",
1841
+ "stop-color": e.color
1842
+ }, null, 8, ut), w("stop", {
1843
+ offset: "100%",
1844
+ "stop-color": M(ue)(e.color, R.value.style.chart.lines.gradient.intensity / 100)
1845
+ }, null, 8, dt)], 8, lt))), 256))])) : S("", !0),
1846
+ R.value.style.chart.grid.x.showHorizontalLines ? (D(!0), C(y, { key: 2 }, k(Fr.value, (e, t) => (D(), C("line", {
1847
+ x1: X.value.left,
1848
+ x2: X.value.right,
1849
+ y1: e.y,
1850
+ y2: e.y,
1851
+ stroke: R.value.style.chart.grid.x.linesColor,
1852
+ "stroke-width": R.value.style.chart.grid.x.linesThickness,
1853
+ "stroke-dasharray": R.value.style.chart.grid.x.linesStrokeDasharray,
1854
+ "stroke-linecap": "round"
1855
+ }, null, 8, ft))), 256)) : S("", !0),
1856
+ R.value.style.chart.grid.y.showVerticalLines ? (D(!0), C(y, { key: 3 }, k(q.value.end - q.value.start, (e, t) => (D(), C("line", {
1857
+ x1: Q(t),
1858
+ x2: Q(t),
1859
+ y1: W.value.top,
1860
+ y2: W.value.bottom,
1861
+ stroke: R.value.style.chart.grid.y.linesColor,
1862
+ "stroke-width": R.value.style.chart.grid.y.linesThickness,
1863
+ "stroke-dasharray": R.value.style.chart.grid.y.linesStrokeDasharray,
1864
+ "stroke-linecap": "round"
1865
+ }, null, 8, pt))), 256)) : S("", !0),
1866
+ R.value.style.chart.grid.x.showAxis ? (D(), C("line", {
1867
+ key: 4,
1868
+ x1: X.value.left,
1869
+ x2: X.value.right,
1870
+ y1: W.value.bottom,
1871
+ y2: W.value.bottom,
1872
+ stroke: R.value.style.chart.grid.x.axisColor,
1873
+ "stroke-width": R.value.style.chart.grid.x.axisThickness,
1874
+ "stroke-linecap": "round",
1875
+ "stroke-linejoin": "round"
1876
+ }, null, 8, mt)) : S("", !0),
1877
+ R.value.style.chart.grid.y.showAxis && !R.value.style.chart.lines.distributed ? (D(), C("line", {
1878
+ key: 5,
1879
+ x1: X.value.left,
1880
+ x2: X.value.left,
1881
+ y1: W.value.top,
1882
+ y2: W.value.bottom,
1883
+ stroke: R.value.style.chart.grid.y.axisColor,
1884
+ "stroke-width": R.value.style.chart.grid.y.axisThickness,
1885
+ "stroke-linecap": "round",
1886
+ "stroke-linejoin": "round"
1887
+ }, null, 8, ht)) : S("", !0),
1888
+ R.value.style.chart.grid.x.axisName.show && R.value.style.chart.grid.x.axisName.text ? (D(), C("text", {
1889
+ key: 6,
1890
+ ref_key: "xAxisLabel",
1891
+ ref: bn,
1892
+ x: W.value.left + W.value.width / 2,
1893
+ y: W.value.chartHeight - 3,
1894
+ "font-size": R.value.style.chart.grid.x.axisName.fontSize,
1895
+ fill: R.value.style.chart.grid.x.axisName.color,
1896
+ "font-weight": R.value.style.chart.grid.x.axisName.bold ? "bold" : "normal",
1897
+ "text-anchor": "middle"
1898
+ }, j(R.value.style.chart.grid.x.axisName.text), 9, gt)) : S("", !0),
1899
+ R.value.style.chart.grid.y.axisName.show && R.value.style.chart.grid.y.axisName.text ? (D(), C("text", {
1900
+ key: 7,
1901
+ ref_key: "yAxisLabel",
1902
+ ref: xn,
1903
+ transform: `translate(${R.value.style.chart.grid.y.axisName.fontSize}, ${W.value.top + W.value.height / 2}) rotate(-90)`,
1904
+ "font-size": R.value.style.chart.grid.y.axisName.fontSize,
1905
+ fill: R.value.style.chart.grid.y.axisName.color,
1906
+ "font-weight": R.value.style.chart.grid.y.axisName.bold ? "bold" : "normal",
1907
+ "text-anchor": "middle"
1908
+ }, j(R.value.style.chart.grid.y.axisName.text), 9, _t)) : S("", !0),
1909
+ R.value.style.chart.grid.frame.show ? (D(), C("rect", {
1910
+ key: 8,
1911
+ style: {
1912
+ pointerEvents: "none",
1913
+ transition: "none",
1914
+ animation: "none !important"
1915
+ },
1916
+ x: X.value.left,
1917
+ y: W.value.top,
1918
+ width: X.value.width,
1919
+ height: W.value.height,
1920
+ fill: "transparent",
1921
+ stroke: R.value.style.chart.grid.frame.stroke,
1922
+ "stroke-width": R.value.style.chart.grid.frame.strokeWidth,
1923
+ "stroke-linecap": R.value.style.chart.grid.frame.strokeLinecap,
1924
+ "stroke-linejoin": R.value.style.chart.grid.frame.strokeLinejoin,
1925
+ "stroke-dasharray": R.value.style.chart.grid.frame.strokeDasharray
1926
+ }, null, 8, vt)) : S("", !0),
1927
+ (D(!0), C(y, null, k(Y.value, (e) => (D(), C(y, null, [R.value.style.chart.lines.useArea && !e.standalone ? (D(), C("path", {
1928
+ key: 0,
1929
+ d: R.value.style.chart.lines.smooth ? e.smoothArea : e.straightArea,
1930
+ fill: t.$slots.pattern ? `url(#pattern_${F.value}_${e.absoluteIndex})` : R.value.style.chart.lines.gradient.show ? `url(#gradient_${e.id})` : e.color,
1931
+ opacity: R.value.style.chart.lines.areaOpacity,
1932
+ style: Ge({ transition: M(B) || !R.value.useCssAnimation ? void 0 : "all 0.3s ease-in-out" })
1933
+ }, null, 12, yt)) : S("", !0)], 64))), 256)),
1934
+ (D(!0), C(y, null, k(Y.value, (e) => (D(), C("path", {
1935
+ d: R.value.style.chart.lines.smooth ? e.smoothPath : e.straightPath,
1936
+ stroke: e.color,
1937
+ "stroke-width": R.value.style.chart.lines.strokeWidth,
1938
+ fill: "none",
1939
+ "stroke-linecap": "round",
1940
+ style: Ge({ transition: M(B) || !R.value.useCssAnimation ? void 0 : "all 0.3s ease-in-out" })
1941
+ }, null, 12, bt))), 256)),
1942
+ R.value.style.chart.grid.y.axisLabels.show && !R.value.style.chart.lines.distributed ? (D(), C("g", {
1943
+ key: 9,
1944
+ ref_key: "scaleLabels",
1945
+ ref: Sn
1946
+ }, [(D(!0), C(y, null, k(Fr.value, (e, t) => (D(), C("line", {
1947
+ x1: X.value.left,
1948
+ x2: X.value.left - 6,
1949
+ y1: e.y,
1950
+ y2: e.y,
1951
+ stroke: R.value.style.chart.grid.x.axisColor,
1952
+ "stroke-width": 1
1953
+ }, null, 8, xt))), 256)), (D(!0), C(y, null, k(Fr.value, (e, t) => (D(), C("text", {
1954
+ x: e.x,
1955
+ y: e.y + R.value.style.chart.grid.y.axisLabels.fontSize / 3,
1956
+ "font-size": R.value.style.chart.grid.y.axisLabels.fontSize,
1957
+ "font-weight": R.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
1958
+ fill: R.value.style.chart.grid.y.axisLabels.color,
1959
+ "text-anchor": "end"
1960
+ }, j(M(_)(R.value.style.chart.grid.y.axisLabels.formatter, e.value, M(r)({
1961
+ p: R.value.style.chart.lines.dataLabels.prefix,
1962
+ v: e.value,
1963
+ s: R.value.style.chart.lines.dataLabels.suffix,
1964
+ r: R.value.style.chart.grid.y.axisLabels.rounding
1965
+ }), { datapoint: e })), 9, St))), 256))], 512)) : S("", !0),
1966
+ R.value.style.chart.grid.x.timeLabels.show ? (D(), C("g", {
1967
+ key: 10,
1968
+ ref_key: "timeLabelsEls",
1969
+ ref: Cn
1970
+ }, [t.$slots["time-label"] ? (D(), C("g", Ct, [(D(!0), C(y, null, k(Vr.value, (e, n) => (D(), C("g", null, [A(t.$slots, "time-label", He({ ref_for: !0 }, {
1971
+ x: W.value.left + wr.value * n + wr.value / 2,
1972
+ y: W.value.bottom + R.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + R.value.style.chart.grid.x.timeLabels.offsetY,
1973
+ fontSize: R.value.style.chart.grid.x.timeLabels.fontSize,
1974
+ fill: R.value.style.chart.grid.x.timeLabels.color,
1975
+ transform: `translate(${W.value.left + wr.value * n + wr.value / 2}, ${W.value.bottom + R.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + R.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${R.value.style.chart.grid.x.timeLabels.rotation})`,
1976
+ absoluteIndex: e.absoluteIndex,
1977
+ content: e.text,
1978
+ textAnchor: R.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : R.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
1979
+ show: !0
1980
+ }), void 0, !0)]))), 256))])) : (D(), C("g", wt, [(D(!0), C(y, null, k(Vr.value, (e, n) => (D(), C("g", null, [String(e.text).includes("\n") ? (D(), C("text", {
1981
+ key: n + "-multi",
1982
+ "text-anchor": R.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : R.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
1983
+ "font-size": R.value.style.chart.grid.x.timeLabels.fontSize,
1984
+ fill: R.value.style.chart.grid.x.timeLabels.color,
1985
+ transform: `
1986
+ translate(
1987
+ ${Q(n)},
1988
+ ${W.value.bottom + R.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + R.value.style.chart.grid.x.timeLabels.offsetY}
1989
+ ),
1990
+ rotate(${R.value.style.chart.grid.x.timeLabels.rotation})
1991
+ `,
1992
+ style: Ge({ cursor: z.value ? "pointer" : "default" }),
1993
+ innerHTML: t.createTSpansFromLineBreaksOnX({
1994
+ content: String(e.text),
1995
+ fontSize: R.value.style.chart.grid.x.timeLabels.fontSize,
1996
+ fill: R.value.style.chart.grid.x.timeLabels.color,
1997
+ x: 0,
1998
+ y: 0
1999
+ }),
2000
+ onClick: () => hi(e, n)
2001
+ }, null, 12, Et)) : (D(), C("text", {
2002
+ class: "vue-data-ui-time-label",
2003
+ key: n,
2004
+ "text-anchor": R.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : R.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
2005
+ "font-size": R.value.style.chart.grid.x.timeLabels.fontSize,
2006
+ "font-weight": R.value.style.chart.grid.x.timeLabels.bold ? "bold" : "normal",
2007
+ fill: R.value.style.chart.grid.x.timeLabels.color,
2008
+ transform: `translate(${Q(n)}, ${W.value.bottom + R.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + R.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${R.value.style.chart.grid.x.timeLabels.rotation})`,
2009
+ style: Ge({ cursor: z.value ? "pointer" : "default" }),
2010
+ onClick: () => hi(e, n)
2011
+ }, j(e.text), 13, Tt))]))), 256))]))], 512)) : S("", !0),
2012
+ (_n.value || ![null, void 0].includes($.value)) && !R.value.style.chart.highlighter.useLine ? (D(!0), C(y, { key: 11 }, k(q.value.end - q.value.start, (e, t) => (D(), C("g", { key: `tooltip_trap_highlighter_${t}` }, [w("rect", {
2013
+ x: oi(t).x,
2014
+ y: W.value.top,
2015
+ height: W.value.height,
2016
+ width: oi(t).width,
2017
+ fill: [Fn.value, $.value].includes(t) ? M(ee)(R.value.style.chart.highlighter.color, R.value.style.chart.highlighter.opacity) : "transparent",
2018
+ style: {
2019
+ transition: "none !important",
2020
+ animation: "none !important"
2021
+ }
2022
+ }, null, 8, Dt)]))), 128)) : S("", !0),
2023
+ (_n.value || ![null, void 0].includes($.value)) && R.value.style.chart.highlighter.useLine ? (D(), C(y, { key: 12 }, [![null, void 0].includes($.value) || ![null, void 0].includes(Fn.value) ? (D(), C("g", Ot, [w("line", {
2024
+ x1: Q(($.value ?? Fn.value) || 0),
2025
+ x2: Q(($.value ?? Fn.value) || 0),
2026
+ y1: M(m)(W.value.top),
2027
+ y2: M(m)(W.value.bottom),
2028
+ stroke: R.value.style.chart.highlighter.color,
2029
+ "stroke-width": R.value.style.chart.highlighter.lineWidth,
2030
+ "stroke-dasharray": R.value.style.chart.highlighter.lineDasharray,
2031
+ "stroke-linecap": "round",
2032
+ style: {
2033
+ transition: "none !important",
2034
+ animation: "none !important",
2035
+ "pointer-events": "none"
2036
+ }
2037
+ }, null, 8, kt)])) : S("", !0)], 64)) : S("", !0),
2038
+ (D(!0), C(y, null, k(Y.value, (e) => (D(), C(y, null, [_n.value && q.value.end - q.value.start > R.value.style.chart.lines.dot.hideAboveMaxSerieLength ? (D(), C("g", At, [$.value == null ? S("", !0) : (D(), C(y, { key: 0 }, [e.rel.includes($.value) && e.fullSeries?.[q.value.start + $.value] != null && !Number.isNaN(e.fullSeries?.[q.value.start + $.value]) ? (D(), x(Ee, {
2039
+ key: 0,
2040
+ shape: [
2041
+ "triangle",
2042
+ "square",
2043
+ "diamond",
2044
+ "pentagon",
2045
+ "hexagon",
2046
+ "star"
2047
+ ].includes(e.shape) ? e.shape : "circle",
2048
+ color: R.value.style.chart.lines.dot.useSerieColor ? e.color : R.value.style.chart.lines.dot.fill,
2049
+ plot: {
2050
+ x: M(se)(e.points[e.rel.indexOf($.value)].x),
2051
+ y: M(se)(e.points[e.rel.indexOf($.value)].y)
2052
+ },
2053
+ radius: R.value.style.chart.lines.dot.radius * 1.3,
2054
+ stroke: R.value.style.chart.lines.dot.useSerieColor ? R.value.style.chart.backgroundColor : e.color,
2055
+ strokeWidth: R.value.style.chart.lines.dot.strokeWidth,
2056
+ transition: M(B) ? void 0 : `all ${R.value.style.chart.lines.transitionDurationMs}ms ease-in-out`
2057
+ }, null, 8, [
2058
+ "shape",
2059
+ "color",
2060
+ "plot",
2061
+ "radius",
2062
+ "stroke",
2063
+ "strokeWidth",
2064
+ "transition"
2065
+ ])) : S("", !0)], 64))])) : S("", !0)], 64))), 256)),
2066
+ (D(!0), C(y, null, k(Y.value, (e) => (D(), C(y, null, [q.value.end - q.value.start < R.value.style.chart.lines.dot.hideAboveMaxSerieLength ? (D(!0), C(y, { key: 0 }, k(e.points, (t, n) => (D(), C("g", { key: n }, [e.fullSeries?.[q.value.start + e.rel[n]] != null && !Number.isNaN(e.fullSeries?.[q.value.start + e.rel[n]]) ? (D(), x(Ee, {
2067
+ key: 0,
2068
+ shape: [
2069
+ "triangle",
2070
+ "square",
2071
+ "diamond",
2072
+ "pentagon",
2073
+ "hexagon",
2074
+ "star"
2075
+ ].includes(e.shape) ? e.shape : "circle",
2076
+ color: R.value.style.chart.lines.dot.useSerieColor ? e.color : R.value.style.chart.lines.dot.fill,
2077
+ plot: {
2078
+ x: t.x,
2079
+ y: t.y
2080
+ },
2081
+ radius: _n.value && $.value === e.rel[n] ? R.value.style.chart.lines.dot.radius * 1.3 : R.value.style.chart.lines.dot.radius,
2082
+ stroke: R.value.style.chart.lines.dot.useSerieColor ? R.value.style.chart.backgroundColor : e.color,
2083
+ strokeWidth: R.value.style.chart.lines.dot.strokeWidth,
2084
+ transition: M(B) ? void 0 : `all ${R.value.style.chart.lines.transitionDurationMs}ms ease-in-out`
2085
+ }, null, 8, [
2086
+ "shape",
2087
+ "color",
2088
+ "plot",
2089
+ "radius",
2090
+ "stroke",
2091
+ "strokeWidth",
2092
+ "transition"
2093
+ ])) : S("", !0)]))), 128)) : S("", !0)], 64))), 256)),
2094
+ H.value.dataLabels.show && R.value.style.chart.lines.dataLabels.hideAboveMaxSerieLength > q.value.end - q.value.start ? (D(), C(y, { key: 13 }, [(D(!0), C(y, null, k(Y.value, (e, t) => (D(), C("g", { key: t }, [(D(!0), C(y, null, k(e.points, (n, r) => (D(), C(y, { key: r }, [Ui(e.series[r], e.proportions[r]) ? (D(), C("text", {
2095
+ key: 0,
2096
+ x: n.x,
2097
+ y: n.y + (e.series[r] >= 0 ? -R.value.style.chart.lines.dataLabels.fontSize / 2 + R.value.style.chart.lines.dataLabels.offsetY : R.value.style.chart.lines.dataLabels.fontSize * 1.2 - R.value.style.chart.lines.dataLabels.offsetY),
2098
+ "font-size": R.value.style.chart.lines.dataLabels.fontSize,
2099
+ fill: R.value.style.chart.lines.dataLabels.color,
2100
+ "font-weight": R.value.style.chart.lines.dataLabels.bold ? "bold" : "normal",
2101
+ "text-anchor": "middle"
2102
+ }, j(R.value.style.chart.lines.showDistributedPercentage && R.value.style.chart.lines.distributed ? Ki(e.proportions[r] * 100, e, t, e.rel[r]) : Gi(e.series[r], e, t, e.rel[r], e.signedSeries[r])), 9, jt)) : S("", !0)], 64))), 128))]))), 128)), R.value.style.chart.lines.totalValues.show && Y.value.length > 1 ? (D(), C("g", {
2103
+ key: 0,
2104
+ ref_key: "sumTop",
2105
+ ref: wn
2106
+ }, [(D(!0), C(y, null, k(Mr.value, (e, t) => (D(), C(y, null, [!R.value.style.chart.lines.dataLabels.hideEmptyValues || e.value !== 0 ? (D(), C("text", {
2107
+ key: 0,
2108
+ x: Q(t),
2109
+ y: Pr(t),
2110
+ "text-anchor": "middle",
2111
+ "font-size": R.value.style.chart.lines.totalValues.fontSize,
2112
+ "font-weight": R.value.style.chart.lines.totalValues.bold ? "bold" : "normal",
2113
+ fill: R.value.style.chart.lines.totalValues.color
2114
+ }, j(Gi(e.value, e, t, t, e.sign)), 9, Mt)) : S("", !0)], 64))), 256))], 512)) : S("", !0)], 64)) : S("", !0),
2115
+ vr.value ? (D(), C("rect", He({ key: 14 }, pr.value, {
2116
+ "data-start": q.value.start,
2117
+ "data-end": q.value.end
2118
+ }), null, 16, Nt)) : S("", !0),
2119
+ A(t.$slots, "svg", { svg: {
2120
+ drawingArea: W.value,
2121
+ data: Y.value,
2122
+ isPrintingImg: M(Yn) || M(Xn) || vn.value,
2123
+ isPrintingSvg: yn.value
2124
+ } }, void 0, !0)
2125
+ ], 46, at)), t.$slots.hint ? (D(), C("div", Pt, [A(t.$slots, "hint", E(T({
2126
+ hint: R.value.a11y.translations.keyboardNavigation,
2127
+ isVisible: Xi.value
2128
+ })), void 0, !0)])) : S("", !0)]),
2129
+ t.$slots.watermark ? (D(), C("div", Ft, [A(t.$slots, "watermark", E(T({ isPrinting: M(Yn) || M(Xn) || vn.value || yn.value })), void 0, !0)])) : S("", !0),
2130
+ mn.value && (R.value.style.chart.legend.show || t.$slots.legend) ? (D(), x(Le, {
2131
+ key: 6,
2132
+ to: R.value.style.chart.legend.position === "top" ? `#legend-top-${F.value}` : `#legend-bottom-${F.value}`
2133
+ }, [w("div", {
2134
+ ref_key: "chartLegend",
2135
+ ref: an
2136
+ }, [A(t.$slots, "legend", { legend: vi.value }, () => [R.value.style.chart.legend.show ? (D(), x(Fe, {
2137
+ key: 0,
2138
+ legendSet: vi.value,
2139
+ config: yi.value,
2140
+ isCursorPointer: z.value,
2141
+ onClickMarker: n[0] ||= ({ legend: e }) => e.segregate()
2142
+ }, Re({
2143
+ item: N(({ legend: e }) => [M(B) ? S("", !0) : (D(), C("div", {
2144
+ key: 0,
2145
+ onClick: (t) => e.segregate(),
2146
+ style: Ge(`opacity:${I.value.includes(e.id) ? .5 : 1}`)
2147
+ }, j(e.name), 13, It))]),
2148
+ legendToggle: N(() => [vi.value.length > 2 && R.value.style.chart.legend.selectAllToggle.show && !M(B) ? (D(), x(je, {
2149
+ key: 0,
2150
+ backgroundColor: R.value.style.chart.legend.selectAllToggle.backgroundColor,
2151
+ color: R.value.style.chart.legend.selectAllToggle.color,
2152
+ fontSize: R.value.style.chart.legend.fontSize,
2153
+ checked: I.value.length > 0,
2154
+ isCursorPointer: z.value,
2155
+ onToggle: gi
2156
+ }, null, 8, [
2157
+ "backgroundColor",
2158
+ "color",
2159
+ "fontSize",
2160
+ "checked",
2161
+ "isCursorPointer"
2162
+ ])) : S("", !0)]),
2163
+ _: 2
2164
+ }, [t.$slots.pattern ? {
2165
+ name: "legend-pattern",
2166
+ fn: N(({ legend: e, index: t }) => [Be(Ee, {
2167
+ shape: e.shape,
2168
+ radius: 30,
2169
+ stroke: "none",
2170
+ plot: {
2171
+ x: 30,
2172
+ y: 30
2173
+ },
2174
+ fill: `url(#pattern_${F.value}_${t})`
2175
+ }, null, 8, ["shape", "fill"])]),
2176
+ key: "0"
2177
+ } : void 0]), 1032, [
2178
+ "legendSet",
2179
+ "config",
2180
+ "isCursorPointer"
2181
+ ])) : S("", !0)], !0)], 512)], 8, ["to"])) : S("", !0),
2182
+ $t.value && R.value.userOptions.buttons.table ? (D(), x(Je(Mi.value.component), He({ key: 7 }, Mi.value.props, {
2183
+ ref_key: "tableUnit",
2184
+ ref: hn,
2185
+ onClose: Ni
2186
+ }), Re({
2187
+ content: N(() => [Be(M(Ut), {
2188
+ colNames: Ti.value.colNames,
2189
+ head: Ti.value.head,
2190
+ body: Ti.value.body,
2191
+ config: Ti.value.config,
2192
+ title: R.value.table.useDialog ? "" : Mi.value.title,
2193
+ withCloseButton: !R.value.table.useDialog,
2194
+ isCursorPointer: z.value,
2195
+ onClose: Ni
2196
+ }, {
2197
+ th: N(({ th: e }) => [w("div", { innerHTML: e }, null, 8, Lt)]),
2198
+ td: N(({ td: e }) => [ze(j(isNaN(Number(e)) ? e : M(r)({
2199
+ p: R.value.style.chart.lines.dataLabels.prefix,
2200
+ v: e,
2201
+ s: R.value.style.chart.lines.dataLabels.suffix,
2202
+ r: R.value.table.td.roundingValue
2203
+ })), 1)]),
2204
+ _: 1
2205
+ }, 8, [
2206
+ "colNames",
2207
+ "head",
2208
+ "body",
2209
+ "config",
2210
+ "title",
2211
+ "withCloseButton",
2212
+ "isCursorPointer"
2213
+ ])]),
2214
+ _: 2
2215
+ }, [R.value.table.useDialog ? {
2216
+ name: "title",
2217
+ fn: N(() => [ze(j(Mi.value.title), 1)]),
2218
+ key: "0"
2219
+ } : void 0, R.value.table.useDialog ? {
2220
+ name: "actions",
2221
+ fn: N(() => [w("button", {
2222
+ tabindex: "0",
2223
+ class: "vue-ui-user-options-button",
2224
+ onClick: n[1] ||= (e) => wi(R.value.userOptions.callbacks.csv),
2225
+ style: Ge({ cursor: z.value ? "pointer" : "default" })
2226
+ }, [Be(M(Vt), {
2227
+ name: "fileCsv",
2228
+ stroke: Mi.value.props.color
2229
+ }, null, 8, ["stroke"])], 4)]),
2230
+ key: "1"
2231
+ } : void 0]), 1040)) : S("", !0),
2232
+ R.value.style.chart.zoom.show && $t.value && Xr.value && K.value > 6 ? (D(), x(Ae, {
2233
+ key: 8,
2234
+ ref_key: "chartSlicer",
2235
+ ref: on,
2236
+ allMinimaps: Or.value,
2237
+ background: R.value.style.chart.zoom.color,
2238
+ borderColor: R.value.style.chart.backgroundColor,
2239
+ customFormat: R.value.style.chart.zoom.customFormat,
2240
+ cutNullValues: !1,
2241
+ enableRangeHandles: R.value.style.chart.zoom.enableRangeHandles,
2242
+ enableSelectionDrag: R.value.style.chart.zoom.enableSelectionDrag,
2243
+ end: q.value.end,
2244
+ focusOnDrag: R.value.style.chart.zoom.focusOnDrag,
2245
+ focusRangeRatio: R.value.style.chart.zoom.focusRangeRatio,
2246
+ fontSize: R.value.style.chart.zoom.fontSize,
2247
+ immediate: !R.value.style.chart.zoom.preview.enable,
2248
+ inputColor: R.value.style.chart.zoom.color,
2249
+ isPreview: vr.value,
2250
+ labelLeft: R.value.style.chart.grid.x.timeLabels.values[q.value.start] ? Ir.value?.[0]?.text ?? "" : "",
2251
+ labelRight: R.value.style.chart.grid.x.timeLabels.values[q.value.end - 1] ? Ir.value?.at(-1)?.text ?? "" : "",
2252
+ max: Math.max(...e.dataset.map((e) => e.series.length)),
2253
+ min: 0,
2254
+ minimap: Dr.value,
2255
+ minimapCompact: R.value.style.chart.zoom.minimap.compact,
2256
+ minimapFrameColor: R.value.style.chart.zoom.minimap.frameColor,
2257
+ minimapIndicatorColor: R.value.style.chart.zoom.minimap.indicatorColor,
2258
+ minimapMerged: !1,
2259
+ minimapSelectedColor: R.value.style.chart.zoom.minimap.selectedColor,
2260
+ minimapSelectedColorOpacity: R.value.style.chart.zoom.minimap.selectedColorOpacity,
2261
+ minimapSelectedIndex: $.value,
2262
+ minimapSelectionRadius: 1,
2263
+ preciseLabels: Gr.value.length ? Gr.value : Lr.value,
2264
+ refreshEndPoint: R.value.style.chart.zoom.endIndex === null ? Math.max(...e.dataset.map((e) => e.series.length)) : R.value.style.chart.zoom.endIndex + 1,
2265
+ refreshStartPoint: R.value.style.chart.zoom.startIndex === null ? 0 : R.value.style.chart.zoom.startIndex,
2266
+ selectColor: R.value.style.chart.zoom.highlightColor,
2267
+ selectedSeries: Bi.value,
2268
+ smoothMinimap: !1,
2269
+ start: q.value.start,
2270
+ textColor: R.value.style.chart.color,
2271
+ timeLabels: Lr.value,
2272
+ usePreciseLabels: R.value.style.chart.grid.x.timeLabels.datetimeFormatter.enable && !R.value.style.chart.zoom.useDefaultFormat,
2273
+ valueEnd: q.value.end,
2274
+ valueStart: q.value.start,
2275
+ verticalHandles: R.value.style.chart.zoom.minimap.verticalHandles,
2276
+ maxWidth: R.value.style.chart.zoom.maxWidth,
2277
+ isCursorPointer: z.value,
2278
+ additionalMinimapHeight: R.value.style.chart.zoom.minimap.additionalHeight,
2279
+ handleType: R.value.style.chart.zoom.minimap.handleType,
2280
+ handleIconColor: R.value.style.chart.zoom.minimap.handleIconColor,
2281
+ handleBorderWidth: R.value.style.chart.zoom.minimap.handleBorderWidth,
2282
+ handleBorderColor: R.value.style.chart.zoom.minimap.handleBorderColor,
2283
+ handleFill: R.value.style.chart.zoom.minimap.handleFill,
2284
+ handleWidth: R.value.style.chart.zoom.minimap.handleWidth,
2285
+ "onUpdate:end": ei,
2286
+ "onUpdate:start": $r,
2287
+ onTrapMouse: gr,
2288
+ onReset: Cr,
2289
+ onFutureEnd: n[2] ||= (e) => yr("end", e),
2290
+ onFutureStart: n[3] ||= (e) => yr("start", e)
2291
+ }, {
2292
+ "reset-action": N(({ reset: e }) => [A(t.$slots, "reset-action", E(T({ reset: e })), void 0, !0)]),
2293
+ slotMap: N(({ width: e, height: t, unitW: n }) => [w("g", { innerHTML: Hi({
2294
+ minimapW: e,
2295
+ minimapH: t,
2296
+ unitW: n
2297
+ }) }, null, 8, Rt)]),
2298
+ _: 3
2299
+ }, 8, /* @__PURE__ */ "allMinimaps.background.borderColor.customFormat.enableRangeHandles.enableSelectionDrag.end.focusOnDrag.focusRangeRatio.fontSize.immediate.inputColor.isPreview.labelLeft.labelRight.max.minimap.minimapCompact.minimapFrameColor.minimapIndicatorColor.minimapSelectedColor.minimapSelectedColorOpacity.minimapSelectedIndex.preciseLabels.refreshEndPoint.refreshStartPoint.selectColor.selectedSeries.start.textColor.timeLabels.usePreciseLabels.valueEnd.valueStart.verticalHandles.maxWidth.isCursorPointer.additionalMinimapHeight.handleType.handleIconColor.handleBorderWidth.handleBorderColor.handleFill.handleWidth".split("."))) : S("", !0),
2300
+ w("div", { id: `legend-bottom-${F.value}` }, null, 8, zt),
2301
+ Be(M(Bt), {
2302
+ teleportTo: R.value.style.chart.tooltip.teleportTo,
2303
+ show: H.value.showTooltip && tn.value,
2304
+ backgroundColor: R.value.style.chart.tooltip.backgroundColor,
2305
+ color: R.value.style.chart.tooltip.color,
2306
+ fontSize: R.value.style.chart.tooltip.fontSize,
2307
+ borderRadius: R.value.style.chart.tooltip.borderRadius,
2308
+ borderColor: R.value.style.chart.tooltip.borderColor,
2309
+ borderWidth: R.value.style.chart.tooltip.borderWidth,
2310
+ backgroundOpacity: R.value.style.chart.tooltip.backgroundOpacity,
2311
+ position: R.value.style.chart.tooltip.position,
2312
+ offsetY: R.value.style.chart.tooltip.offsetY,
2313
+ parent: en.value,
2314
+ content: pi.value,
2315
+ isFullscreen: ln.value,
2316
+ isCustom: R.value.style.chart.tooltip.customFormat && typeof R.value.style.chart.tooltip.customFormat == "function",
2317
+ smooth: R.value.style.chart.tooltip.smooth,
2318
+ backdropFilter: R.value.style.chart.tooltip.backdropFilter,
2319
+ smoothForce: R.value.style.chart.tooltip.smoothForce,
2320
+ smoothSnapThreshold: R.value.style.chart.tooltip.smoothSnapThreshold,
2321
+ isA11yMode: An.value === "keyboard",
2322
+ a11yPosition: kn.value
2323
+ }, {
2324
+ "tooltip-before": N(() => [A(t.$slots, "tooltip-before", E(T({ ...Jr.value })), void 0, !0)]),
2325
+ tooltip: N(() => [A(t.$slots, "tooltip", E(T({ ...Jr.value })), void 0, !0)]),
2326
+ "tooltip-after": N(() => [A(t.$slots, "tooltip-after", E(T({ ...Jr.value })), void 0, !0)]),
2327
+ _: 3
2328
+ }, 8, [
2329
+ "teleportTo",
2330
+ "show",
2331
+ "backgroundColor",
2332
+ "color",
2333
+ "fontSize",
2334
+ "borderRadius",
2335
+ "borderColor",
2336
+ "borderWidth",
2337
+ "backgroundOpacity",
2338
+ "position",
2339
+ "offsetY",
2340
+ "parent",
2341
+ "content",
2342
+ "isFullscreen",
2343
+ "isCustom",
2344
+ "smooth",
2345
+ "backdropFilter",
2346
+ "smoothForce",
2347
+ "smoothSnapThreshold",
2348
+ "isA11yMode",
2349
+ "a11yPosition"
2350
+ ]),
2351
+ t.$slots.source ? (D(), C("div", {
2352
+ key: 9,
2353
+ ref_key: "source",
2354
+ ref: cn,
2355
+ dir: "auto"
2356
+ }, [A(t.$slots, "source", {}, void 0, !0)], 512)) : S("", !0),
2357
+ A(t.$slots, "skeleton", {}, () => [M(B) ? (D(), x(ve, { key: 0 })) : S("", !0)], !0)
2358
+ ], 46, tt));
2359
+ }
2360
+ }, [["__scopeId", "data-v-289a922b"]]);
2361
+ //#endregion
2362
+ export { et as n, Bt as t };