vue-data-ui 3.17.13 → 3.18.1

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