vue-data-ui 3.17.13 → 3.18.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (493) hide show
  1. package/README.md +1 -1
  2. package/dist/A11yDataTable-q2-8fSlJ.js +45 -0
  3. package/dist/Arrow-Cj6W6Xbi.js +116 -0
  4. package/dist/BaseDraggableDialog-BQcmQAK5.js +272 -0
  5. package/dist/BaseIcon-CEmt3Ifx.js +499 -0
  6. package/dist/BaseLegendToggle-DUIqQmwM.js +56 -0
  7. package/dist/BaseScanner-C7dmAref.js +27 -0
  8. package/dist/BaseZoomControls-Ce1yqas1.js +111 -0
  9. package/dist/ColorPicker-DS_QkH3W.js +255 -0
  10. package/dist/DataTable-BvDJEAma.js +150 -0
  11. package/dist/Legend-Gg5Q4Clb.js +114 -0
  12. package/dist/NonSvgPenAndPaper-D4Gh7O43.js +577 -0
  13. package/dist/PackageVersion-DhDKg-ez.js +11 -0
  14. package/dist/PenAndPaper-DwpL8Z0l.js +461 -0
  15. package/dist/RecursiveCircles-DPpLel6f.js +117 -0
  16. package/dist/RecursiveLabels-DBMJf_to.js +56 -0
  17. package/dist/RecursiveLinks-D06dBL4a.js +78 -0
  18. package/dist/Shape-DEGOZ6GG.js +141 -0
  19. package/dist/Slicer-BlfyiHHD.js +1144 -0
  20. package/dist/SlicerPreview-BPS8mYO2.js +1523 -0
  21. package/dist/SparkTooltip-c2DL7gqD.js +93 -0
  22. package/dist/Title-__gWq2g6.js +87 -0
  23. package/dist/Tooltip-B7lmdbac.js +307 -0
  24. package/dist/UserOptions-DMw8EZEo.js +1407 -0
  25. package/dist/_plugin-vue_export-helper-Dq1MygBL.js +8 -0
  26. package/dist/canvas-lib-DTaADQOK.js +79 -0
  27. package/dist/components/arrow.js +2 -5
  28. package/dist/components/vue-ui-3d-bar.js +2 -5
  29. package/dist/components/vue-ui-accordion.js +2 -5
  30. package/dist/components/vue-ui-age-pyramid.js +2 -5
  31. package/dist/components/vue-ui-annotator.js +2 -5
  32. package/dist/components/vue-ui-bullet.js +2 -5
  33. package/dist/components/vue-ui-bump.js +2 -5
  34. package/dist/components/vue-ui-candlestick.js +2 -5
  35. package/dist/components/vue-ui-carousel-table.js +2 -5
  36. package/dist/components/vue-ui-chestnut.js +2 -5
  37. package/dist/components/vue-ui-chord.js +2 -5
  38. package/dist/components/vue-ui-circle-pack.js +2 -5
  39. package/dist/components/vue-ui-cursor.js +2 -5
  40. package/dist/components/vue-ui-dag.js +2 -5
  41. package/dist/components/vue-ui-dashboard.js +2 -5
  42. package/dist/components/vue-ui-digits.js +2 -5
  43. package/dist/components/vue-ui-donut-evolution.js +2 -5
  44. package/dist/components/vue-ui-donut.js +2 -5
  45. package/dist/components/vue-ui-dumbbell.js +2 -5
  46. package/dist/components/vue-ui-flow.js +2 -5
  47. package/dist/components/vue-ui-funnel.js +2 -5
  48. package/dist/components/vue-ui-galaxy.js +2 -5
  49. package/dist/components/vue-ui-gauge.js +2 -5
  50. package/dist/components/vue-ui-geo.js +2 -5
  51. package/dist/components/vue-ui-gizmo.js +2 -5
  52. package/dist/components/vue-ui-heatmap.js +2 -5
  53. package/dist/components/vue-ui-history-plot.js +2 -5
  54. package/dist/components/vue-ui-horizontal-bar.js +2 -5
  55. package/dist/components/vue-ui-icon.js +2 -5
  56. package/dist/components/vue-ui-kpi.js +2 -5
  57. package/dist/components/vue-ui-mini-loader.js +2 -5
  58. package/dist/components/vue-ui-molecule.js +2 -5
  59. package/dist/components/vue-ui-mood-radar.js +2 -5
  60. package/dist/components/vue-ui-nested-donuts.js +2 -5
  61. package/dist/components/vue-ui-onion.js +2 -5
  62. package/dist/components/vue-ui-parallel-coordinate-plot.js +2 -5
  63. package/dist/components/vue-ui-pattern-seed.js +2 -5
  64. package/dist/components/vue-ui-pattern.js +2 -5
  65. package/dist/components/vue-ui-quadrant.js +2 -5
  66. package/dist/components/vue-ui-quick-chart.js +2 -5
  67. package/dist/components/vue-ui-radar.js +2 -5
  68. package/dist/components/vue-ui-rating.js +2 -5
  69. package/dist/components/vue-ui-relation-circle.js +2 -5
  70. package/dist/components/vue-ui-ridgeline.js +2 -5
  71. package/dist/components/vue-ui-rings.js +2 -5
  72. package/dist/components/vue-ui-scatter.js +2 -5
  73. package/dist/components/vue-ui-skeleton.js +2 -5
  74. package/dist/components/vue-ui-smiley.js +2 -5
  75. package/dist/components/vue-ui-spark-trend.js +2 -5
  76. package/dist/components/vue-ui-sparkbar.js +2 -5
  77. package/dist/components/vue-ui-sparkgauge.js +2 -5
  78. package/dist/components/vue-ui-sparkhistogram.js +2 -5
  79. package/dist/components/vue-ui-sparkline.js +2 -5
  80. package/dist/components/vue-ui-sparkstackbar.js +2 -5
  81. package/dist/components/vue-ui-stackbar.js +2 -5
  82. package/dist/components/vue-ui-stackline.js +2 -5
  83. package/dist/components/vue-ui-strip-plot.js +2 -5
  84. package/dist/components/vue-ui-table-heatmap.js +2 -5
  85. package/dist/components/vue-ui-table-sparkline.js +2 -5
  86. package/dist/components/vue-ui-table.js +2 -5
  87. package/dist/components/vue-ui-thermometer.js +2 -5
  88. package/dist/components/vue-ui-timer.js +2 -5
  89. package/dist/components/vue-ui-tiremarks.js +2 -5
  90. package/dist/components/vue-ui-treemap.js +2 -5
  91. package/dist/components/vue-ui-vertical-bar.js +2 -5
  92. package/dist/components/vue-ui-waffle.js +2 -5
  93. package/dist/components/vue-ui-wheel.js +2 -5
  94. package/dist/components/vue-ui-word-cloud.js +2 -5
  95. package/dist/components/vue-ui-world.js +2 -5
  96. package/dist/components/vue-ui-xy-canvas.js +2 -5
  97. package/dist/components/vue-ui-xy.js +2 -5
  98. package/dist/dom-to-png-9WSt6hXe.js +237 -0
  99. package/dist/exposedLib-CwWU4zv-.js +19 -0
  100. package/dist/geoProjections-CQIkC70z.js +146 -0
  101. package/dist/img-BjOr008R.js +74 -0
  102. package/dist/labelUtils-Cr97N8E1.js +19 -0
  103. package/dist/lib-BkiwukKO.js +1879 -0
  104. package/dist/patternUtils-B7BWu5bV.js +258 -0
  105. package/dist/pdf-DSXSFUnK.js +90 -0
  106. package/dist/rolldown-runtime-CAFD8bLK.js +11 -0
  107. package/dist/style.css +2 -1
  108. package/dist/types/arrow.d.ts +1 -1
  109. package/dist/types/utils.d.ts +23 -0
  110. package/dist/types/vue-data-ui.d.ts +4775 -627
  111. package/dist/types/vue-ui-3d-bar.d.ts +64 -9
  112. package/dist/types/vue-ui-accordion.d.ts +4 -3
  113. package/dist/types/vue-ui-age-pyramid.d.ts +79 -9
  114. package/dist/types/vue-ui-annotator.d.ts +3 -5
  115. package/dist/types/vue-ui-bullet.d.ts +60 -9
  116. package/dist/types/vue-ui-bump.d.ts +65 -9
  117. package/dist/types/vue-ui-candlestick.d.ts +83 -9
  118. package/dist/types/vue-ui-carousel-table.d.ts +36 -6
  119. package/dist/types/vue-ui-chestnut.d.ts +66 -9
  120. package/dist/types/vue-ui-chord.d.ts +78 -9
  121. package/dist/types/vue-ui-circle-pack.d.ts +86 -9
  122. package/dist/types/vue-ui-cursor.d.ts +4 -2
  123. package/dist/types/vue-ui-dag.d.ts +92 -9
  124. package/dist/types/vue-ui-dashboard.d.ts +43 -6
  125. package/dist/types/vue-ui-digits.d.ts +4 -2
  126. package/dist/types/vue-ui-donut-evolution.d.ts +70 -9
  127. package/dist/types/vue-ui-donut.d.ts +92 -9
  128. package/dist/types/vue-ui-dumbbell.d.ts +65 -9
  129. package/dist/types/vue-ui-flow.d.ts +79 -9
  130. package/dist/types/vue-ui-funnel.d.ts +55 -9
  131. package/dist/types/vue-ui-galaxy.d.ts +83 -9
  132. package/dist/types/vue-ui-gauge.d.ts +64 -9
  133. package/dist/types/vue-ui-geo.d.ts +71 -9
  134. package/dist/types/vue-ui-gizmo.d.ts +17 -6
  135. package/dist/types/vue-ui-heatmap.d.ts +73 -9
  136. package/dist/types/vue-ui-history-plot.d.ts +82 -9
  137. package/dist/types/vue-ui-horizontal-bar.d.ts +84 -9
  138. package/dist/types/vue-ui-icon.d.ts +2 -2
  139. package/dist/types/vue-ui-kpi.d.ts +21 -7
  140. package/dist/types/vue-ui-mini-loader.d.ts +5 -3
  141. package/dist/types/vue-ui-molecule.d.ts +86 -9
  142. package/dist/types/vue-ui-mood-radar.d.ts +66 -9
  143. package/dist/types/vue-ui-nested-donuts.d.ts +80 -9
  144. package/dist/types/vue-ui-onion.d.ts +77 -9
  145. package/dist/types/vue-ui-parallel-coordinate-plot.d.ts +92 -9
  146. package/dist/types/vue-ui-pattern-seed.d.ts +1 -1
  147. package/dist/types/vue-ui-pattern.d.ts +2 -2
  148. package/dist/types/vue-ui-quadrant.d.ts +86 -9
  149. package/dist/types/vue-ui-quick-chart.d.ts +79 -9
  150. package/dist/types/vue-ui-radar.d.ts +83 -9
  151. package/dist/types/vue-ui-rating.d.ts +22 -6
  152. package/dist/types/vue-ui-relation-circle.d.ts +66 -9
  153. package/dist/types/vue-ui-ridgeline.d.ts +69 -9
  154. package/dist/types/vue-ui-rings.d.ts +70 -9
  155. package/dist/types/vue-ui-scatter.d.ts +67 -9
  156. package/dist/types/vue-ui-skeleton.d.ts +3 -2
  157. package/dist/types/vue-ui-smiley.d.ts +3 -2
  158. package/dist/types/vue-ui-spark-trend.d.ts +14 -6
  159. package/dist/types/vue-ui-sparkbar.d.ts +27 -6
  160. package/dist/types/vue-ui-sparkgauge.d.ts +20 -6
  161. package/dist/types/vue-ui-sparkhistogram.d.ts +24 -6
  162. package/dist/types/vue-ui-sparkline.d.ts +35 -6
  163. package/dist/types/vue-ui-sparkstackbar.d.ts +35 -6
  164. package/dist/types/vue-ui-stackbar.d.ts +85 -9
  165. package/dist/types/vue-ui-stackline.d.ts +81 -9
  166. package/dist/types/vue-ui-strip-plot.d.ts +66 -9
  167. package/dist/types/vue-ui-table-heatmap.d.ts +52 -6
  168. package/dist/types/vue-ui-table-sparkline.d.ts +30 -6
  169. package/dist/types/vue-ui-table.d.ts +10 -2
  170. package/dist/types/vue-ui-thermometer.d.ts +46 -9
  171. package/dist/types/vue-ui-timer.d.ts +31 -5
  172. package/dist/types/vue-ui-tiremarks.d.ts +46 -9
  173. package/dist/types/vue-ui-treemap.d.ts +73 -9
  174. package/dist/types/vue-ui-vertical-bar.d.ts +2 -2
  175. package/dist/types/vue-ui-waffle.d.ts +72 -9
  176. package/dist/types/vue-ui-wheel.d.ts +46 -9
  177. package/dist/types/vue-ui-word-cloud.d.ts +73 -9
  178. package/dist/types/vue-ui-world.d.ts +68 -9
  179. package/dist/types/vue-ui-xy-canvas.d.ts +75 -9
  180. package/dist/types/vue-ui-xy.d.ts +108 -10
  181. package/dist/useAutoSizeLabelsInsideViewbox-dp-3Gg97.js +50 -0
  182. package/dist/useChartAccessibility-Do37qcw2.js +12 -0
  183. package/dist/useConfig-BV0kTCnO.js +7431 -0
  184. package/dist/useFitSvgText-C-MEdAfe.js +63 -0
  185. package/dist/useNestedProp-Ck4hsrpu.js +10 -0
  186. package/dist/useObjectBindings-Ce_ZZk-f.js +189 -0
  187. package/dist/usePanZoom-B-4M_gmY.js +157 -0
  188. package/dist/usePrefersMotion-BywLbIko.js +15 -0
  189. package/dist/usePrinter-X0yWOynH.js +49 -0
  190. package/dist/useResponsive-CrAInupd.js +19 -0
  191. package/dist/useStableElementSize-0I1IpHPl.js +77 -0
  192. package/dist/useSvgExport-Dtu973wa.js +755 -0
  193. package/dist/useTableResponsive-DrM1xqII.js +24 -0
  194. package/dist/useThemeCheck-rFK9Zlb_.js +24 -0
  195. package/dist/useTimeLabelCollider-Dm55Emzg.js +57 -0
  196. package/dist/useTimeLabels-C0x7zUXP.js +272 -0
  197. package/dist/useUserOptionState-CjPJPTg2.js +15 -0
  198. package/dist/utils.js +27 -44
  199. package/dist/vClickOutside-CbX_bC9A.js +13 -0
  200. package/dist/vue-data-ui-DIh8ayZc.js +274 -0
  201. package/dist/vue-data-ui.js +76 -167
  202. package/dist/vue-ui-3d-bar-BZ8_6ylo.js +1747 -0
  203. package/dist/vue-ui-accordion-cVv18nTV.js +81 -0
  204. package/dist/vue-ui-age-pyramid-BR3i-CgS.js +1226 -0
  205. package/dist/vue-ui-annotator-B9mA_PlF.js +2899 -0
  206. package/dist/vue-ui-bullet-ByJdNLVf.js +700 -0
  207. package/dist/vue-ui-bump-Ps1gkA-F.js +1239 -0
  208. package/dist/vue-ui-candlestick-0C1QFoV4.js +1802 -0
  209. package/dist/vue-ui-carousel-table-1P28pCRK.js +445 -0
  210. package/dist/vue-ui-chestnut-CJOCGWwX.js +2000 -0
  211. package/dist/vue-ui-chord-BpiVJCCm.js +1381 -0
  212. package/dist/vue-ui-circle-pack-C3wvXz1f.js +1183 -0
  213. package/dist/vue-ui-cursor-CNn_3b24.js +283 -0
  214. package/dist/vue-ui-dag-DRVXVCJV.js +2899 -0
  215. package/dist/vue-ui-dashboard-gOXyms0o.js +503 -0
  216. package/dist/vue-ui-digits-DIKyN3z6.js +209 -0
  217. package/dist/vue-ui-donut-RogzKj0G.js +2396 -0
  218. package/dist/vue-ui-donut-evolution-Bxz06Qqf.js +1490 -0
  219. package/dist/vue-ui-dumbbell-D10T4gmB.js +1517 -0
  220. package/dist/vue-ui-flow-OK563Z46.js +1223 -0
  221. package/dist/vue-ui-funnel-nWmbiJu5.js +767 -0
  222. package/dist/vue-ui-galaxy-CtaTlHWZ.js +1062 -0
  223. package/dist/vue-ui-gauge-DWTEHJqX.js +910 -0
  224. package/dist/vue-ui-geo-DUpWvv5m.js +1504 -0
  225. package/dist/vue-ui-gizmo-vddzP4dM.js +225 -0
  226. package/dist/vue-ui-heatmap-CUE_zJQa.js +1556 -0
  227. package/dist/vue-ui-history-plot-CcRg_NgJ.js +1551 -0
  228. package/dist/vue-ui-horizontal-bar-DX5aZOEn.js +1669 -0
  229. package/dist/vue-ui-kpi-B74v84Hu.js +96 -0
  230. package/dist/vue-ui-mini-loader-BcCG6Yqb.js +125 -0
  231. package/dist/vue-ui-molecule-CVdB8rxf.js +912 -0
  232. package/dist/vue-ui-mood-radar-CWDVBOck.js +1138 -0
  233. package/dist/vue-ui-nested-donuts-Be8b5d81.js +1472 -0
  234. package/dist/vue-ui-onion-Cs90yQQZ.js +1188 -0
  235. package/dist/vue-ui-parallel-coordinate-plot-D-mZdTop.js +1413 -0
  236. package/dist/vue-ui-pattern-Bj-IPFr2.js +154 -0
  237. package/dist/vue-ui-pattern-seed-abRweCDE.js +61 -0
  238. package/dist/vue-ui-quadrant-DLD_ZR9M.js +1966 -0
  239. package/dist/vue-ui-quick-chart-UWjZdmzt.js +2459 -0
  240. package/dist/vue-ui-radar-Bxu07MOG.js +1214 -0
  241. package/dist/vue-ui-rating-DA9Bmfyb.js +343 -0
  242. package/dist/vue-ui-relation-circle-O5s1UJtt.js +914 -0
  243. package/dist/vue-ui-ridgeline-C3siN0d_.js +1612 -0
  244. package/dist/vue-ui-rings-DVVDtwhB.js +1231 -0
  245. package/dist/vue-ui-scatter-Cfvh06OC.js +2380 -0
  246. package/dist/vue-ui-skeleton-CxTmGCQp.js +2556 -0
  247. package/dist/vue-ui-smiley-B6nc7b71.js +356 -0
  248. package/dist/vue-ui-spark-trend--39vutfQ.js +438 -0
  249. package/dist/vue-ui-sparkbar-DhCRNOu4.js +393 -0
  250. package/dist/vue-ui-sparkgauge-6Igkqlqs.js +255 -0
  251. package/dist/vue-ui-sparkhistogram-BLEzZSZi.js +560 -0
  252. package/dist/vue-ui-sparkline-ppwKM4aO.js +1503 -0
  253. package/dist/vue-ui-sparkstackbar-uIzSq9Wh.js +660 -0
  254. package/dist/vue-ui-stackbar-CdOkMCbI.js +2235 -0
  255. package/dist/vue-ui-stackline-DifD9OXC.js +2362 -0
  256. package/dist/vue-ui-strip-plot-D1LjIVqK.js +1328 -0
  257. package/dist/vue-ui-table-WDkEyyQ0.js +1338 -0
  258. package/dist/vue-ui-table-heatmap-CfGJVzI3.js +334 -0
  259. package/dist/vue-ui-table-sparkline-BEWWP4Rq.js +697 -0
  260. package/dist/vue-ui-thermometer-CFWOAB8K.js +753 -0
  261. package/dist/vue-ui-timer-D1DQyf9i.js +439 -0
  262. package/dist/vue-ui-tiremarks-IeM3BlPW.js +542 -0
  263. package/dist/vue-ui-treemap-BGZM7ibv.js +1575 -0
  264. package/dist/vue-ui-waffle-a3dFVBk4.js +1350 -0
  265. package/dist/vue-ui-wheel-OnIRQJ8a.js +875 -0
  266. package/dist/vue-ui-word-cloud-C9SkyutR.js +1644 -0
  267. package/dist/vue-ui-world-CEevuFbk.js +14252 -0
  268. package/dist/vue-ui-xy-1hee-IEM.js +4114 -0
  269. package/dist/vue-ui-xy-canvas-D2f0d45c.js +1774 -0
  270. package/dist/vue_ui_3d_bar-CXKqO5Ej.js +185 -0
  271. package/dist/vue_ui_age_pyramid-BON8QI6X.js +301 -0
  272. package/dist/vue_ui_bullet-CE5sFT7u.js +186 -0
  273. package/dist/vue_ui_bump-frnXaXul.js +201 -0
  274. package/dist/vue_ui_candlestick-sY6UtOop.js +374 -0
  275. package/dist/vue_ui_chestnut-BiUZFv40.js +305 -0
  276. package/dist/vue_ui_chord-DpyR_b9A.js +275 -0
  277. package/dist/vue_ui_circle_pack-DBKz_Fi_.js +130 -0
  278. package/dist/vue_ui_dag-Ci_MOnvd.js +258 -0
  279. package/dist/vue_ui_donut-Cx2_BGcQ.js +358 -0
  280. package/dist/vue_ui_donut_evolution-CAJefrHs.js +717 -0
  281. package/dist/vue_ui_dumbbell-CClzAZTN.js +304 -0
  282. package/dist/vue_ui_flow-CCHO1Lo9.js +238 -0
  283. package/dist/vue_ui_funnel-h8q2mRpC.js +234 -0
  284. package/dist/vue_ui_galaxy-70vtkEBw.js +265 -0
  285. package/dist/vue_ui_gauge-C17CgfzN.js +178 -0
  286. package/dist/vue_ui_geo-C0UbQ0Lc.js +248 -0
  287. package/dist/vue_ui_heatmap-BqPP3J4M.js +319 -0
  288. package/dist/vue_ui_history_plot-C5nytDHh.js +413 -0
  289. package/dist/vue_ui_horizontal_bar-Bqxorkc_.js +341 -0
  290. package/dist/vue_ui_molecule-Dka4JBOp.js +231 -0
  291. package/dist/vue_ui_mood_radar-Dg4ijm53.js +281 -0
  292. package/dist/vue_ui_nested_donuts-BY9cOoHF.js +273 -0
  293. package/dist/vue_ui_onion-DTV9cup-.js +293 -0
  294. package/dist/vue_ui_parallel_coordinate_plot-CNWrDh96.js +278 -0
  295. package/dist/vue_ui_quadrant-3kjYvxpj.js +428 -0
  296. package/dist/vue_ui_quick_chart--VaYQuM4.js +139 -0
  297. package/dist/vue_ui_radar-Dxx9GJmj.js +306 -0
  298. package/dist/vue_ui_relation_circle-Cr0I2SoU.js +98 -0
  299. package/dist/vue_ui_ridgeline-CAtYca4b.js +767 -0
  300. package/dist/vue_ui_rings-DXC1VeX5.js +320 -0
  301. package/dist/vue_ui_scatter-D2S2j0ap.js +479 -0
  302. package/dist/vue_ui_spark_trend-BHMQ6_1p.js +82 -0
  303. package/dist/vue_ui_sparkbar-BR6hbuDE.js +64 -0
  304. package/dist/vue_ui_sparkgauge-xfPRHnMv.js +90 -0
  305. package/dist/vue_ui_sparkhistogram-CJRENZ1C.js +123 -0
  306. package/dist/vue_ui_sparkline-wgk7yO7E.js +151 -0
  307. package/dist/vue_ui_sparkstackbar-C5qZMmAl.js +175 -0
  308. package/dist/vue_ui_stackbar-BW_C3MXw.js +412 -0
  309. package/dist/vue_ui_stackline-DpI2LnjO.js +426 -0
  310. package/dist/vue_ui_strip_plot-8ZelqC5b.js +301 -0
  311. package/dist/vue_ui_table_heatmap-BGUjA0WA.js +80 -0
  312. package/dist/vue_ui_table_sparkline-i0Q-N_we.js +124 -0
  313. package/dist/vue_ui_thermometer-CuN7Gpez.js +123 -0
  314. package/dist/vue_ui_tiremarks-A6UHC0c3.js +122 -0
  315. package/dist/vue_ui_treemap-BQp06q-g.js +328 -0
  316. package/dist/vue_ui_vertical_bar-CJSD1FZS.js +247 -0
  317. package/dist/vue_ui_waffle-C_Ev4l7B.js +292 -0
  318. package/dist/vue_ui_wheel-DdkTPXJU.js +133 -0
  319. package/dist/vue_ui_word_cloud-B1PbsYPc.js +254 -0
  320. package/dist/vue_ui_xy-BYPqfYyx.js +482 -0
  321. package/dist/vue_ui_xy_canvas-CMHGNrLf.js +408 -0
  322. package/package.json +7 -7
  323. package/dist/A11yDataTable-BpmuNomI.js +0 -54
  324. package/dist/Arrow-dSvLFssU.js +0 -101
  325. package/dist/BaseDraggableDialog-Di8Hlru3.js +0 -249
  326. package/dist/BaseIcon-DX0hTWa-.js +0 -476
  327. package/dist/BaseLegendToggle-cMP8M2u0.js +0 -47
  328. package/dist/BaseScanner-C2j3TsSY.js +0 -36
  329. package/dist/BaseZoomControls-CVSC1-SU.js +0 -123
  330. package/dist/ColorPicker-bAxGcXK0.js +0 -271
  331. package/dist/DataTable-cMnb68Ik.js +0 -145
  332. package/dist/Legend-DGN5lY60.js +0 -104
  333. package/dist/NonSvgPenAndPaper-B6E0zEYe.js +0 -573
  334. package/dist/PackageVersion-BfrCAH6_.js +0 -10
  335. package/dist/PenAndPaper-CJDoB5H9.js +0 -527
  336. package/dist/RecursiveCircles-BE6GoMmo.js +0 -101
  337. package/dist/RecursiveLabels-BhQMS9Sm.js +0 -55
  338. package/dist/RecursiveLinks-BDwyYfP-.js +0 -83
  339. package/dist/Shape-CxJ5_Rre.js +0 -116
  340. package/dist/Slicer-D7UcO8sN.js +0 -1145
  341. package/dist/SlicerPreview-D_CgrN_7.js +0 -1580
  342. package/dist/SparkTooltip-D4bM-kfz.js +0 -68
  343. package/dist/Title-BbKoiBk2.js +0 -88
  344. package/dist/Tooltip-Cvt7Fi0Q.js +0 -299
  345. package/dist/UserOptions-DVduN6X7.js +0 -1474
  346. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
  347. package/dist/dom-to-png-DGvx6i5V.js +0 -262
  348. package/dist/exposedLib-sJvY1pST.js +0 -22
  349. package/dist/geoProjections-BFq2sOBY.js +0 -162
  350. package/dist/img-CjTQXS0U.js +0 -57
  351. package/dist/labelUtils-DX9oyq3C.js +0 -26
  352. package/dist/lib-DMzrGQHK.js +0 -2477
  353. package/dist/patternUtils-BINhU4Ky.js +0 -615
  354. package/dist/pdf-C4H4o1Cj.js +0 -88
  355. package/dist/useAutoSizeLabelsInsideViewbox-izlGDfwu.js +0 -55
  356. package/dist/useChartAccessibility-cp6XQtqi.js +0 -15
  357. package/dist/useConfig-CG4HT3wS.js +0 -7901
  358. package/dist/useFitSvgText-2crs6Fv5.js +0 -69
  359. package/dist/useNestedProp-DH0BEVVS.js +0 -13
  360. package/dist/useObjectBindings-Dixg-RIe.js +0 -228
  361. package/dist/usePanZoom-BbDhcKWf.js +0 -141
  362. package/dist/usePrefersMotion-Co0nj1eS.js +0 -17
  363. package/dist/usePrinter-C4t8DdQ-.js +0 -51
  364. package/dist/useResponsive-DfdjqQps.js +0 -195
  365. package/dist/useStableElementSize-C48ZVcZQ.js +0 -77
  366. package/dist/useSvgExport-BTG4hVPO.js +0 -870
  367. package/dist/useTableResponsive-BpfiEtzR.js +0 -26
  368. package/dist/useThemeCheck-C9Ccl7U9.js +0 -36
  369. package/dist/useTimeLabelCollider-D3JeJ6Ye.js +0 -86
  370. package/dist/useTimeLabels-Cv0tD9In.js +0 -307
  371. package/dist/useUserOptionState-B7Ej974k.js +0 -19
  372. package/dist/vClickOutside-C6WiFswA.js +0 -13
  373. package/dist/vue-data-ui-D1ZI7Y4l.js +0 -433
  374. package/dist/vue-ui-3d-bar-DEjKYzI5.js +0 -1824
  375. package/dist/vue-ui-accordion-DFtpH_16.js +0 -92
  376. package/dist/vue-ui-age-pyramid-LiC9hTjP.js +0 -1179
  377. package/dist/vue-ui-annotator-DrKnQoHf.js +0 -2991
  378. package/dist/vue-ui-bullet-DdxEINdq.js +0 -769
  379. package/dist/vue-ui-bump-CdgO1V7z.js +0 -1250
  380. package/dist/vue-ui-candlestick-DxJnPwto.js +0 -1775
  381. package/dist/vue-ui-carousel-table-CMefu5TI.js +0 -487
  382. package/dist/vue-ui-chestnut-BnGN72PO.js +0 -2001
  383. package/dist/vue-ui-chord-DWyar45U.js +0 -1457
  384. package/dist/vue-ui-circle-pack-CQ8vF2XH.js +0 -1076
  385. package/dist/vue-ui-cursor-HHOdkmyB.js +0 -260
  386. package/dist/vue-ui-dag-BDWPBElq.js +0 -3209
  387. package/dist/vue-ui-dashboard-Dg_I3X2a.js +0 -627
  388. package/dist/vue-ui-digits-CZmdir8V.js +0 -211
  389. package/dist/vue-ui-donut-BKegKHxj.js +0 -2608
  390. package/dist/vue-ui-donut-evolution-047dE4Lu.js +0 -1578
  391. package/dist/vue-ui-dumbbell-BL4ZMChj.js +0 -1552
  392. package/dist/vue-ui-flow-BAqtyunQ.js +0 -1279
  393. package/dist/vue-ui-funnel-Pl2sEOZs.js +0 -823
  394. package/dist/vue-ui-galaxy-CBF5Wsax.js +0 -1108
  395. package/dist/vue-ui-gauge-COV_S0Vp.js +0 -955
  396. package/dist/vue-ui-geo-CaPXElPf.js +0 -1510
  397. package/dist/vue-ui-gizmo-Csn7up96.js +0 -238
  398. package/dist/vue-ui-heatmap-Cpb0BYLa.js +0 -1694
  399. package/dist/vue-ui-history-plot-ZZEdzFCE.js +0 -1564
  400. package/dist/vue-ui-horizontal-bar-BonPYUZf.js +0 -1735
  401. package/dist/vue-ui-kpi-DoHhSsDK.js +0 -130
  402. package/dist/vue-ui-mini-loader-DOTBVCLE.js +0 -138
  403. package/dist/vue-ui-molecule-mVYnXouV.js +0 -945
  404. package/dist/vue-ui-mood-radar-DPvwnc3z.js +0 -1197
  405. package/dist/vue-ui-nested-donuts-C7E6TXrZ.js +0 -1702
  406. package/dist/vue-ui-onion-BGIlFhGB.js +0 -1207
  407. package/dist/vue-ui-parallel-coordinate-plot-C6G_A9ua.js +0 -1432
  408. package/dist/vue-ui-pattern-mXZW_pvA.js +0 -146
  409. package/dist/vue-ui-pattern-seed-BcNlxb2i.js +0 -36
  410. package/dist/vue-ui-quadrant-CVpIeYOB.js +0 -1918
  411. package/dist/vue-ui-quick-chart-CcV8qn9-.js +0 -2514
  412. package/dist/vue-ui-radar-G4AV1rBo.js +0 -1259
  413. package/dist/vue-ui-rating-CqPlP88P.js +0 -370
  414. package/dist/vue-ui-relation-circle-CkZ8oFVV.js +0 -856
  415. package/dist/vue-ui-ridgeline-CBTyYn6Q.js +0 -1737
  416. package/dist/vue-ui-rings-CSIOqFiP.js +0 -1256
  417. package/dist/vue-ui-scatter-AuC46ufT.js +0 -2345
  418. package/dist/vue-ui-skeleton-YD6rZjY_.js +0 -2475
  419. package/dist/vue-ui-smiley-CY0WFv2j.js +0 -391
  420. package/dist/vue-ui-spark-trend-D8KGIt-R.js +0 -423
  421. package/dist/vue-ui-sparkbar-BjWGJjzN.js +0 -424
  422. package/dist/vue-ui-sparkgauge-Dab5mss7.js +0 -285
  423. package/dist/vue-ui-sparkhistogram-D0rsmiPh.js +0 -559
  424. package/dist/vue-ui-sparkline-BCaauQuX.js +0 -1550
  425. package/dist/vue-ui-sparkstackbar-NT5yD6xA.js +0 -672
  426. package/dist/vue-ui-stackbar-ChBk_A1c.js +0 -2393
  427. package/dist/vue-ui-stackline-Cujamlze.js +0 -2490
  428. package/dist/vue-ui-strip-plot-CGBumG6I.js +0 -1293
  429. package/dist/vue-ui-table-BX2iMku4.js +0 -1726
  430. package/dist/vue-ui-table-heatmap-KXgXYVXm.js +0 -353
  431. package/dist/vue-ui-table-sparkline-C3NWnry0.js +0 -803
  432. package/dist/vue-ui-thermometer-DvdceZB1.js +0 -743
  433. package/dist/vue-ui-timer-XWAbvuAY.js +0 -504
  434. package/dist/vue-ui-tiremarks-B-YI1RlT.js +0 -578
  435. package/dist/vue-ui-treemap-AzorGfmd.js +0 -1757
  436. package/dist/vue-ui-waffle-CKtUvdTE.js +0 -1442
  437. package/dist/vue-ui-wheel-CnsLEArZ.js +0 -908
  438. package/dist/vue-ui-word-cloud-iAme2ihe.js +0 -1644
  439. package/dist/vue-ui-world-D5rrC9rw.js +0 -14452
  440. package/dist/vue-ui-xy-C_Q9chQe.js +0 -4468
  441. package/dist/vue-ui-xy-canvas-DG0299qE.js +0 -2107
  442. package/dist/vue_ui_3d_bar-CL0iX8Qi.js +0 -22
  443. package/dist/vue_ui_age_pyramid-8H8WSL7J.js +0 -22
  444. package/dist/vue_ui_bullet-Ckqieba5.js +0 -22
  445. package/dist/vue_ui_bump-CIht647H.js +0 -22
  446. package/dist/vue_ui_candlestick-BAMn-VGw.js +0 -22
  447. package/dist/vue_ui_chestnut-BloFvDuV.js +0 -22
  448. package/dist/vue_ui_chord-Bc1_ocwK.js +0 -22
  449. package/dist/vue_ui_circle_pack-CLmw8nHe.js +0 -22
  450. package/dist/vue_ui_dag-ZOwuDBZ8.js +0 -22
  451. package/dist/vue_ui_donut-CA4dgV8J.js +0 -22
  452. package/dist/vue_ui_donut_evolution-DFQU-rqE.js +0 -22
  453. package/dist/vue_ui_dumbbell-BCOHDiPk.js +0 -22
  454. package/dist/vue_ui_flow-BErINgox.js +0 -22
  455. package/dist/vue_ui_funnel-yuaMZ-yb.js +0 -22
  456. package/dist/vue_ui_galaxy-D95AN4FT.js +0 -22
  457. package/dist/vue_ui_gauge-BMEuRC4J.js +0 -22
  458. package/dist/vue_ui_geo--kg4VoVX.js +0 -22
  459. package/dist/vue_ui_heatmap-C9u993qE.js +0 -22
  460. package/dist/vue_ui_history_plot-BCKk1CrQ.js +0 -22
  461. package/dist/vue_ui_horizontal_bar-BEagrV0T.js +0 -22
  462. package/dist/vue_ui_molecule-BtvlINUh.js +0 -22
  463. package/dist/vue_ui_mood_radar-BUs6Fdn8.js +0 -22
  464. package/dist/vue_ui_nested_donuts-DvTrWT_C.js +0 -22
  465. package/dist/vue_ui_onion-CxWH9_OZ.js +0 -22
  466. package/dist/vue_ui_parallel_coordinate_plot-DH3cFJ3n.js +0 -22
  467. package/dist/vue_ui_quadrant-DjRs--Uz.js +0 -22
  468. package/dist/vue_ui_quick_chart-DMCjEjPe.js +0 -22
  469. package/dist/vue_ui_radar-DryGBOrz.js +0 -22
  470. package/dist/vue_ui_relation_circle-CCroen7h.js +0 -22
  471. package/dist/vue_ui_ridgeline-j4rVmpEp.js +0 -22
  472. package/dist/vue_ui_rings-CxOrekqA.js +0 -22
  473. package/dist/vue_ui_scatter-Bu1EAy9H.js +0 -22
  474. package/dist/vue_ui_spark_trend-3BjrSprO.js +0 -22
  475. package/dist/vue_ui_sparkbar-BsMzz5Um.js +0 -22
  476. package/dist/vue_ui_sparkgauge-KnjASOZs.js +0 -22
  477. package/dist/vue_ui_sparkhistogram-GBdzIVvS.js +0 -22
  478. package/dist/vue_ui_sparkline-CQ8DJVJx.js +0 -22
  479. package/dist/vue_ui_sparkstackbar-BSexvOuM.js +0 -22
  480. package/dist/vue_ui_stackbar-CuDC4O4b.js +0 -22
  481. package/dist/vue_ui_stackline-QTh-nuxE.js +0 -22
  482. package/dist/vue_ui_strip_plot-B9ypi_F3.js +0 -22
  483. package/dist/vue_ui_table_heatmap-CkvipPVy.js +0 -16
  484. package/dist/vue_ui_table_sparkline-yQdijcyJ.js +0 -22
  485. package/dist/vue_ui_thermometer-BTmjRBH8.js +0 -22
  486. package/dist/vue_ui_tiremarks-DBotWfi8.js +0 -22
  487. package/dist/vue_ui_treemap-D9-AIkT-.js +0 -22
  488. package/dist/vue_ui_vertical_bar-CELc39b8.js +0 -18
  489. package/dist/vue_ui_waffle-M2h-uJQ_.js +0 -22
  490. package/dist/vue_ui_wheel-LqBz3lv4.js +0 -22
  491. package/dist/vue_ui_word_cloud-mKAtBxHR.js +0 -22
  492. package/dist/vue_ui_xy-esktmpg-.js +0 -22
  493. package/dist/vue_ui_xy_canvas-6BBDSowT.js +0 -22
@@ -1,1775 +0,0 @@
1
- import { defineAsyncComponent as j, computed as y, ref as v, toRefs as jl, watch as me, shallowRef as Dt, onMounted as Gl, onBeforeUnmount as qe, watchEffect as Ae, nextTick as je, openBlock as i, createElementBlock as n, normalizeStyle as ae, normalizeClass as X, createElementVNode as m, toDisplayString as oe, createBlock as G, createCommentVNode as p, unref as h, withCtx as k, renderSlot as b, normalizeProps as _, guardReactiveProps as S, createSlots as Bt, createVNode as Ge, Fragment as M, renderList as B, mergeProps as Nt, resolveDynamicComponent as Kl, createTextVNode as Et } from "vue";
2
- import { j as Yl, t as Vt, o as Wt, q as Z, D as Jl, K, I as Ql, l as R, X as Zl, v as $e, u as ea, a0 as ta, a1 as la, T as aa, U as oa, a2 as Ut } from "./lib-DMzrGQHK.js";
3
- import { t as Ht, u as sa } from "./useResponsive-DfdjqQps.js";
4
- import { u as ua } from "./useConfig-CG4HT3wS.js";
5
- import { u as Xt, a as qt, b as ia } from "./useTimeLabels-Cv0tD9In.js";
6
- import { u as na } from "./usePrinter-C4t8DdQ-.js";
7
- import { u as ra, B as va } from "./BaseScanner-C2j3TsSY.js";
8
- import { u as da } from "./useSvgExport-BTG4hVPO.js";
9
- import { u as Ke } from "./useNestedProp-DH0BEVVS.js";
10
- import { u as ca } from "./useThemeCheck-C9Ccl7U9.js";
11
- import { u as ya } from "./useUserOptionState-B7Ej974k.js";
12
- import { u as ha } from "./useChartAccessibility-cp6XQtqi.js";
13
- import { u as ma } from "./useTimeLabelCollider-D3JeJ6Ye.js";
14
- import pa from "./img-CjTQXS0U.js";
15
- import fa from "./Title-BbKoiBk2.js";
16
- import ga from "./vue_ui_candlestick-BAMn-VGw.js";
17
- import { A as ba } from "./A11yDataTable-BpmuNomI.js";
18
- import { S as xa } from "./SlicerPreview-D_CgrN_7.js";
19
- import { _ as ka } from "./_plugin-vue_export-helper-CHgC5LLL.js";
20
- const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = ["xmlns", "aria-describedby", "viewBox"], _a = ["x", "y", "width", "height"], Sa = { key: 1 }, za = ["id"], La = ["stop-color"], Ta = ["stop-color"], Ia = ["stop-color"], Fa = ["id"], Ma = ["stop-color"], Ra = ["stop-color"], Pa = ["stop-color"], Oa = { key: 0 }, Da = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ba = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Na = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Ea = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Va = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Wa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ua = ["x", "y", "font-size", "fill", "font-weight"], Ha = ["transform", "text-anchor", "font-size", "fill", "font-weight"], Xa = ["transform", "text-anchor", "font-size", "fill", "font-weight"], qa = ["x", "y", "width", "height", "fill", "rx"], ja = { key: 0 }, Ga = ["cx", "cy", "r", "fill"], Ka = ["cx", "cy", "r", "fill"], Ya = { key: 1 }, Ja = ["x", "y", "width", "height", "rx", "fill"], Qa = ["x", "y", "width", "height", "fill", "rx"], Za = ["x", "y", "height", "width", "fill", "rx"], eo = ["x", "y", "height", "width", "fill", "rx", "stroke", "stroke-width"], to = ["d", "stroke"], lo = ["x", "y", "height", "width", "fill", "onMouseover", "onMouseleave", "onClick"], ao = ["data-start", "data-end"], oo = {
21
- key: 0,
22
- style: { position: "absolute", top: "100%", left: "0", width: "100%" },
23
- "data-dom-to-png-ignore": "",
24
- "aria-hidden": "true"
25
- }, so = {
26
- key: 5,
27
- class: "vue-data-ui-watermark"
28
- }, uo = ["d", "stroke"], io = ["d", "stroke", "stroke-width"], no = ["innerHTML"], ro = {
29
- __name: "vue-ui-candlestick",
30
- props: {
31
- config: {
32
- type: Object,
33
- default() {
34
- return {};
35
- }
36
- },
37
- dataset: {
38
- type: Array,
39
- default() {
40
- return [];
41
- }
42
- },
43
- selectedXIndex: {
44
- type: Number,
45
- default: void 0
46
- }
47
- },
48
- emits: ["selectX", "copyAlt"],
49
- setup(jt, { expose: Gt, emit: Kt }) {
50
- const Yt = j(() => import("./BaseIcon-DX0hTWa-.js")), Jt = j(() => import("./Tooltip-Cvt7Fi0Q.js")), Qt = j(() => import("./vue-ui-accordion-DFtpH_16.js")), Zt = j(() => import("./DataTable-cMnb68Ik.js")), el = j(
51
- () => import("./PenAndPaper-CJDoB5H9.js")
52
- ), tl = j(
53
- () => import("./UserOptions-DVduN6X7.js")
54
- ), ll = j(
55
- () => import("./PackageVersion-BfrCAH6_.js")
56
- ), al = j(
57
- () => import("./BaseDraggableDialog-Di8Hlru3.js")
58
- ), { vue_ui_candlestick: ol } = ua(), { isThemeValid: sl, warnInvalidTheme: ul } = ca(), I = jt, _e = Kt, Se = y(() => !!I.dataset && I.dataset.length), V = v(!1), ze = v(null), z = v(Yl()), se = v(!1), Le = v(""), P = v(void 0), Ye = v(0), W = v(null), Je = v(null), Qe = v(null), ue = v(null), Ze = v(null), et = v(null), il = v(0), tt = v(0), lt = v(0), Te = v(null), ie = v(null), ne = v(null), Ie = v(null), at = v(null), pe = v(!1), fe = v(!1), U = v(null), ot = v({ x: 0, y: 0 }), re = v("pointer"), Fe = v(!1), e = v(Pe()), ve = y(
59
- () => e.value.userOptions.useCursorPointer
60
- ), nl = y(() => Vt({
61
- defaultConfig: {
62
- useCssAnimation: !1,
63
- userOptions: { show: !1 },
64
- table: { show: !1 },
65
- style: {
66
- backgroundColor: "#99999930",
67
- layout: {
68
- candle: {
69
- colors: {
70
- bearish: "#BABABA",
71
- bullish: "#CACACA"
72
- }
73
- },
74
- grid: {
75
- stroke: "#6A6A6A",
76
- verticalLines: {
77
- stroke: "#6A6A6A"
78
- },
79
- horizontalLines: {
80
- stroke: "#6A6A6A"
81
- },
82
- yAxis: {
83
- dataLabels: { show: !1 },
84
- scale: {
85
- min: null,
86
- max: null
87
- }
88
- }
89
- },
90
- wick: {
91
- stroke: "#6A6A6A",
92
- extremity: {
93
- color: "#6A6A6A"
94
- }
95
- }
96
- },
97
- tooltip: { show: !1 },
98
- zoom: {
99
- show: !1,
100
- startIndex: null,
101
- endIndex: null
102
- }
103
- }
104
- },
105
- userConfig: e.value.skeletonConfig ?? {}
106
- })), { loading: H, FINAL_DATASET: w, manualLoading: Me } = ra({
107
- ...jl(I),
108
- FINAL_CONFIG: e,
109
- prepareConfig: Pe,
110
- callback: () => {
111
- Promise.resolve().then(async () => {
112
- await Ce();
113
- });
114
- },
115
- skeletonDataset: I.config?.skeletonDataset ?? [
116
- [17040672e5, 10, 20, 2, 10, 30],
117
- [17067456e5, 10, 30, 5, 20, 50],
118
- [17092512e5, 20, 50, 10, 30, 80],
119
- [17119296e5, 30, 80, 20, 50, 130],
120
- [17145216e5, 50, 130, 30, 100, 210],
121
- [17172e8, 80, 210, 50, 150, 340],
122
- [1719792e6, 130, 340, 80, 280, 550],
123
- [17224704e5, 210, 550, 130, 450, 890],
124
- [17251488e5, 340, 890, 210, 750, 1440],
125
- [17277408e5, 550, 1440, 340, 1230, 2330],
126
- [17304192e5, 890, 2330, 550, 1950, 3770],
127
- [17330112e5, 1440, 3770, 890, 3200, 5100]
128
- ],
129
- skeletonConfig: Vt({
130
- defaultConfig: e.value,
131
- userConfig: nl.value
132
- })
133
- }), { userOptionsVisible: Re, setUserOptionsVisibility: st, keepUserOptionState: ut } = ya({ config: e.value }), { svgRef: Y } = ha({
134
- config: e.value.style.title
135
- });
136
- function rl() {
137
- st(!0);
138
- }
139
- function vl() {
140
- st(!1), _e("selectX", { seriesIndex: null, datapoint: null }), P.value = null;
141
- }
142
- function Pe() {
143
- const t = Ke({
144
- userConfig: I.config,
145
- defaultConfig: ol
146
- });
147
- let a = {};
148
- const l = t.theme;
149
- if (l)
150
- if (!sl.value(t))
151
- ul(t), a = t;
152
- else {
153
- const s = Ke({
154
- userConfig: ga[l] || I.config,
155
- defaultConfig: t
156
- });
157
- a = {
158
- ...Ke({
159
- userConfig: I.config,
160
- defaultConfig: s
161
- })
162
- };
163
- }
164
- else
165
- a = t;
166
- return a;
167
- }
168
- me(
169
- () => I.config,
170
- (t) => {
171
- H.value || (e.value = Pe()), Re.value = !e.value.userOptions.showOnChartHover, it(), il.value += 1, lt.value += 1, tt.value += 1, O.value.showTable = e.value.table.show, O.value.showTooltip = e.value.style.tooltip.show, ge();
172
- },
173
- { deep: !0 }
174
- ), me(
175
- () => I.dataset,
176
- (t) => {
177
- Array.isArray(t) && t.length > 0 && (Me.value = !1), $t();
178
- },
179
- { deep: !0 }
180
- );
181
- const x = v({
182
- height: e.value.style.height,
183
- width: e.value.style.width,
184
- xAxisFontSize: e.value.style.layout.grid.xAxis.dataLabels.fontSize,
185
- yAxisFontSize: e.value.style.layout.grid.yAxis.dataLabels.fontSize
186
- }), q = Dt(null), ee = Dt(null);
187
- Gl(() => {
188
- it();
189
- });
190
- const J = y(() => !!e.value.debug);
191
- function it() {
192
- if (Wt(I.dataset) && (Z({
193
- componentName: "VueUiCandlestick",
194
- type: "dataset",
195
- debug: J.value
196
- }), Me.value = !0), Wt(I.dataset) || (Me.value = e.value.loading), setTimeout(() => {
197
- V.value = !0;
198
- }, 10), e.value.responsive) {
199
- const a = Ht(() => {
200
- V.value = !1;
201
- const { width: l, height: s } = sa({
202
- chart: W.value,
203
- title: e.value.style.title.text ? Je.value : null,
204
- slicer: e.value.style.zoom.show && L.value > 6 ? ue.value.$el : null,
205
- legend: Qe.value,
206
- source: Ze.value,
207
- noTitle: et.value
208
- });
209
- requestAnimationFrame(() => {
210
- x.value.width = l, x.value.height = s - 12, e.value.responsiveProportionalSizing ? (x.value.xAxisFontSize = Ut({
211
- relator: Math.min(l, s),
212
- adjuster: e.value.style.width,
213
- source: e.value.style.layout.grid.xAxis.dataLabels.fontSize,
214
- threshold: 6,
215
- fallback: 6
216
- }), x.value.yAxisFontSize = Ut({
217
- relator: Math.min(l, s),
218
- adjuster: e.value.style.width,
219
- source: e.value.style.layout.grid.yAxis.dataLabels.fontSize,
220
- threshold: 6,
221
- fallback: 6
222
- })) : (x.value.xAxisFontSize = e.value.style.layout.grid.xAxis.dataLabels.fontSize, x.value.yAxisFontSize = e.value.style.layout.grid.yAxis.dataLabels.fontSize), ze.value && clearTimeout(ze.value), ze.value = setTimeout(() => {
223
- V.value = !0;
224
- }, 10);
225
- });
226
- });
227
- q.value && (ee.value && q.value.unobserve(ee.value), q.value.disconnect()), q.value = new ResizeObserver(a), ee.value = W.value.parentNode, q.value.observe(ee.value);
228
- }
229
- Ce();
230
- }
231
- qe(() => {
232
- q.value && (ee.value && q.value.unobserve(ee.value), q.value.disconnect());
233
- });
234
- const { isPrinting: Oe, isImaging: De, generatePdf: nt, generateImage: rt } = na({
235
- elementId: `vue-ui-candlestick_${z.value}`,
236
- fileName: e.value.style.title.text || "vue-ui-candlestick",
237
- options: e.value.userOptions.print
238
- }), dl = y(() => e.value.userOptions.show && !e.value.style.title.text), O = v({
239
- showTable: e.value.table.show,
240
- showTooltip: e.value.style.tooltip.show
241
- }), Be = v(0), cl = Ht((t) => {
242
- Be.value = t;
243
- }, 100);
244
- Ae((t) => {
245
- const a = ie.value;
246
- if (!a) return;
247
- const l = new ResizeObserver((s) => {
248
- cl(s[0].contentRect.height);
249
- });
250
- l.observe(a), t(() => l.disconnect());
251
- }), qe(() => {
252
- Be.value = 0;
253
- });
254
- const vt = y(() => {
255
- let t = 0;
256
- return ie.value && (t = Be.value + x.value.xAxisFontSize), t;
257
- });
258
- function yl() {
259
- let t = e.value.style.layout.grid.yAxis.dataLabels.offsetX;
260
- return Te.value && (t = Array.from(Te.value.querySelectorAll("text")).reduce((s, o) => {
261
- const u = o.getComputedTextLength();
262
- return u > s ? u : s;
263
- }, 0)), t + 13;
264
- }
265
- const r = y(() => {
266
- const {
267
- top: t,
268
- right: a,
269
- bottom: l,
270
- left: s
271
- } = e.value.style.layout.padding, o = yl(), u = 12;
272
- return {
273
- top: t + u,
274
- right: x.value.width - a,
275
- left: s + o,
276
- bottom: x.value.height - l - vt.value,
277
- width: x.value.width - s - a - o,
278
- height: x.value.height - t - l - vt.value - u
279
- };
280
- }), hl = y(() => {
281
- const { left: t, top: a, width: l, height: s } = r.value, o = d.value.start, f = d.value.end - o, A = l / f, C = $.value.start - o, D = $.value.end - o, T = Math.max(0, Math.min(f, C)), le = Math.max(0, Math.min(f, D));
282
- return {
283
- x: t + T * A,
284
- y: a,
285
- width: (le - T) * A,
286
- height: s,
287
- fill: e.value.style.zoom.preview.fill,
288
- stroke: e.value.style.zoom.preview.stroke,
289
- "stroke-width": e.value.style.zoom.preview.strokeWidth,
290
- "stroke-dasharray": e.value.style.zoom.preview.strokeDasharray,
291
- "stroke-linecap": "round",
292
- "stroke-linejoin": "round",
293
- style: {
294
- pointerEvents: "none",
295
- transition: "none !important",
296
- animation: "none !important"
297
- }
298
- };
299
- }), L = y(() => w.value.length), d = v({
300
- start: 0,
301
- end: L.value
302
- }), $ = v({ start: 0, end: L.value }), dt = y(() => e.value.style.zoom.preview.enable && ($.value.start !== d.value.start || $.value.end !== d.value.end));
303
- function ct(t, a) {
304
- $.value[t] = a;
305
- }
306
- function ge() {
307
- let t = Math.max(0, Math.min(d.value.start ?? 0, L.value - 1)), a = Math.max(t + 1, Math.min(d.value.end ?? L.value, L.value));
308
- (!Number.isFinite(t) || !Number.isFinite(a) || a <= t) && (t = 0, a = L.value), d.value.start = t, d.value.end = a, $.value.start = t, $.value.end = a, ue.value && (ue.value.setStartValue(t), ue.value.setEndValue(a));
309
- }
310
- const yt = y(() => w.value.map((t, a) => ({
311
- ...t,
312
- absoluteIndex: a
313
- }))), ht = y(() => yt.value.slice(d.value.start, d.value.end)), F = y(() => (w.value.forEach((t, a) => {
314
- [null, void 0].includes(t[0]) && Z({
315
- componentName: "VueUiCandlestick",
316
- type: "datasetAttribute",
317
- property: "period (index 0)",
318
- index: a,
319
- debug: J.value
320
- }), [null, void 0].includes(t[1]) && Z({
321
- componentName: "VueUiCandlestick",
322
- type: "datasetAttribute",
323
- property: "open (index 1)",
324
- index: a,
325
- debug: J.value
326
- }), [null, void 0].includes(t[2]) && Z({
327
- componentName: "VueUiCandlestick",
328
- type: "datasetAttribute",
329
- property: "high (index 2)",
330
- index: a,
331
- debug: J.value
332
- }), [null, void 0].includes(t[3]) && Z({
333
- componentName: "VueUiCandlestick",
334
- type: "datasetAttribute",
335
- property: "low (index 3)",
336
- index: a,
337
- debug: J.value
338
- }), [null, void 0].includes(t[4]) && Z({
339
- componentName: "VueUiCandlestick",
340
- type: "datasetAttribute",
341
- property: "close (index 4)",
342
- index: a,
343
- debug: J.value
344
- }), [null, void 0].includes(t[5]) && Z({
345
- componentName: "VueUiCandlestick",
346
- type: "datasetAttribute",
347
- property: "volume (index 5)",
348
- index: a,
349
- debug: J.value
350
- });
351
- }), ht.value.map((t) => ({
352
- absoluteIndex: t.absoluteIndex,
353
- period: t[0],
354
- open: t[1],
355
- high: t[2],
356
- low: t[3],
357
- close: t[4],
358
- volume: t[5]
359
- })))), ml = y(() => yt.value.map((t) => ({
360
- absoluteIndex: t.absoluteIndex,
361
- period: t[0],
362
- open: t[1],
363
- high: t[2],
364
- low: t[3],
365
- close: t[4],
366
- volume: t[5]
367
- }))), c = y(() => r.value.width / ht.value.length), mt = y(() => {
368
- const t = e.value.style.layout.grid.yAxis.scale.max === null ? Math.max(...F.value.map((l) => l.high)) : e.value.style.layout.grid.yAxis.scale.max, a = e.value.style.layout.grid.yAxis.scale.min === null ? 0 : e.value.style.layout.grid.yAxis.scale.min;
369
- return {
370
- max: t,
371
- min: a
372
- };
373
- }), N = y(() => Jl(
374
- mt.value.min,
375
- mt.value.max,
376
- e.value.style.layout.grid.yAxis.dataLabels.steps
377
- ));
378
- function be(t, a, l = null, s = null) {
379
- return {
380
- ...t,
381
- x: K(
382
- r.value.left + a * c.value + c.value / 2
383
- ),
384
- y: K(
385
- r.value.top + (1 - (t - N.value.min) / (N.value.max - N.value.min)) * r.value.height
386
- ),
387
- value: K(t),
388
- isMax: t === l,
389
- isMin: t === s
390
- };
391
- }
392
- const g = y(() => {
393
- const t = {
394
- o: Math.max(...F.value.map((o) => o.open)),
395
- h: Math.max(...F.value.map((o) => o.high)),
396
- l: Math.max(...F.value.map((o) => o.low)),
397
- c: Math.max(...F.value.map((o) => o.low))
398
- }, a = {
399
- o: Math.min(...F.value.map((o) => o.open)),
400
- h: Math.min(...F.value.map((o) => o.high)),
401
- l: Math.min(...F.value.map((o) => o.low)),
402
- c: Math.min(...F.value.map((o) => o.low))
403
- }, l = Math.max(...F.value.map((o) => o.volume)), s = Math.min(...F.value.map((o) => o.volume));
404
- return F.value.map((o, u) => {
405
- const f = be(o.open, u, t.o, a.o), A = be(o.high, u, t.h, a.h), C = be(o.low, u, t.l, a.l), D = be(o.close, u, t.c, a.c), T = o.close > o.open, le = o.volume === l, Rt = o.volume === s;
406
- return {
407
- period: o.period,
408
- open: f,
409
- high: A,
410
- low: C,
411
- close: D,
412
- volume: o.volume,
413
- isBullish: T,
414
- absoluteIndex: o.absoluteIndex,
415
- isMaxVolume: le,
416
- isMinVolume: Rt
417
- };
418
- });
419
- });
420
- function xe({ item: t, index: a, minimapH: l, unitW: s }) {
421
- const o = e.value.style.layout.grid.yAxis.scale.min ?? 0, u = e.value.style.layout.grid.yAxis.scale.max ?? Math.max(...w.value.map((f) => f[2]));
422
- return {
423
- ...t,
424
- x: K(a * s),
425
- y: K((1 - (t - o) / (u - o)) * l),
426
- value: K(t)
427
- };
428
- }
429
- const pl = y(() => ({ minimapH: t, unitW: a }) => ml.value.map((l, s) => {
430
- const o = xe({
431
- item: l.open,
432
- index: s,
433
- minimapH: t,
434
- unitW: a
435
- }), u = xe({
436
- item: l.high,
437
- index: s,
438
- minimapH: t,
439
- unitW: a
440
- }), f = xe({
441
- item: l.low,
442
- index: s,
443
- minimapH: t,
444
- unitW: a
445
- }), A = xe({
446
- item: l.close,
447
- index: s,
448
- minimapH: t,
449
- unitW: a
450
- }), C = l.close > l.open;
451
- return {
452
- period: l.period,
453
- open: o,
454
- high: u,
455
- low: f,
456
- close: A,
457
- volume: l.volume,
458
- isBullish: C,
459
- absoluteIndex: l.absoluteIndex
460
- };
461
- })), fl = y(() => e.value.style.zoom.minimap.show ? [
462
- {
463
- name: "",
464
- series: w.value.map((t) => t[2]),
465
- color: "#000000",
466
- isVisible: !0
467
- }
468
- ] : []);
469
- function gl(t) {
470
- return K(
471
- (t - N.value.min) / (N.value.max - N.value.min)
472
- );
473
- }
474
- const pt = y(() => N.value.ticks.map((t) => ({
475
- y: r.value.bottom - r.value.height * gl(t),
476
- value: K(t)
477
- }))), bl = y(() => F.value.map((t) => t.period)), E = v([]), Ne = v([]);
478
- let ft = 0;
479
- Ae(() => {
480
- const t = ++ft;
481
- (async () => {
482
- const a = await Xt({
483
- values: w.value.map((l) => l[0]),
484
- maxDatapoints: w.value.length,
485
- formatter: e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter,
486
- start: d.value.start,
487
- end: d.value.end
488
- });
489
- t === ft && (E.value = a);
490
- })();
491
- });
492
- let gt = 0;
493
- Ae(() => {
494
- const t = ++gt;
495
- (async () => {
496
- const a = await Xt({
497
- values: w.value.map((l) => l[0]),
498
- maxDatapoints: w.value.length,
499
- formatter: e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter,
500
- start: 0,
501
- end: L.value
502
- });
503
- t === gt && (Ne.value = a);
504
- })();
505
- });
506
- const xl = y(() => {
507
- const t = e.value.style.layout.grid.xAxis.dataLabels.modulo;
508
- return E.value.length ? Math.min(
509
- t,
510
- [...new Set(E.value.map((a) => a.text))].length
511
- ) : t;
512
- }), bt = v({
513
- months: [],
514
- shortMonths: [],
515
- days: [],
516
- shortDays: []
517
- });
518
- let xt = 0;
519
- Ae(() => {
520
- const t = ++xt, a = e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter;
521
- (async () => {
522
- const l = await qt(a.locale).catch(
523
- () => qt("en")
524
- );
525
- t === xt && (bt.value = l.data);
526
- })();
527
- });
528
- const kt = y(() => {
529
- const t = e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter, a = ia({
530
- useUTC: t.useUTC,
531
- locale: bt.value,
532
- januaryAsYear: t.januaryAsYear
533
- });
534
- return (l, s) => {
535
- const u = w.value.map((f) => f[0])?.[l];
536
- return u == null ? "" : a.formatDate(new Date(u), s);
537
- };
538
- }), kl = y(() => (w.value.map((a) => a[0]) || []).map((a, l) => ({
539
- text: kt.value(
540
- l,
541
- e.value.style.tooltip.timeFormat
542
- ),
543
- absoluteIndex: l
544
- }))), wl = y(() => (w.value.map((a) => a[0]) || []).map((a, l) => ({
545
- text: kt.value(
546
- l,
547
- e.value.style.zoom.timeFormat
548
- ),
549
- absoluteIndex: l
550
- }))), Ee = y(() => {
551
- const t = e.value.style.layout.grid.xAxis.dataLabels, a = E.value || [], l = Ne.value || [], s = d.value.start ?? 0, o = P.value, u = L.value, f = a.map((C) => C?.text ?? ""), A = l.map((C) => C?.text ?? "");
552
- return Ql(
553
- !!t.showOnlyFirstAndLast,
554
- !!t.showOnlyAtModulo,
555
- Math.max(1, xl.value || 1),
556
- f,
557
- A,
558
- s,
559
- o,
560
- u
561
- );
562
- }), wt = y(() => e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? {
563
- start: E.value.find(
564
- (t) => t.absoluteIndex === d.value.start
565
- )?.text ?? "",
566
- end: E.value.find(
567
- (t) => t.absoluteIndex === d.value.end - 1
568
- )?.text ?? ""
569
- } : {
570
- start: w.value[d.value.start] ? w.value[d.value.start][0] : w.value[0][0],
571
- end: w.value[d.value.end - 1] ? w.value[d.value.end - 1][0] : w.value.at(-1)[0]
572
- }), ke = v(null);
573
- function Ct(t, a) {
574
- e.value.events.datapointClick && e.value.events.datapointClick({
575
- datapoint: a,
576
- seriesIndex: t + d.value.start
577
- });
578
- }
579
- function Cl(t, a) {
580
- e.value.events.datapointLeave && e.value.events.datapointLeave({
581
- datapoint: a,
582
- seriesIndex: t + d.value.start
583
- }), P.value = void 0, se.value = !1, U.value = null, re.value = "pointer";
584
- }
585
- me(
586
- () => I.selectedXIndex,
587
- (t) => {
588
- if ([null, void 0].includes(I.selectedXIndex)) {
589
- P.value = null;
590
- return;
591
- }
592
- const a = t - d.value.start;
593
- a < 0 || t >= d.value.end ? P.value = null : P.value = a ?? null;
594
- },
595
- { immediate: !0 }
596
- );
597
- function At(t, a, l = "pointer") {
598
- e.value.events.datapointEnter && e.value.events.datapointEnter({
599
- datapoint: a,
600
- seriesIndex: t + d.value.start
601
- }), P.value = t, U.value = t, re.value = l, ke.value = {
602
- datapoint: a,
603
- seriesIndex: t,
604
- series: g.value,
605
- config: e.value
606
- }, Pl({ seriesIndex: t, datapoint: a });
607
- const s = e.value.style.tooltip.customFormat;
608
- if (aa(s) && oa(
609
- () => s({
610
- seriesIndex: t,
611
- datapoint: a,
612
- series: g.value,
613
- config: e.value
614
- })
615
- ))
616
- Le.value = s({
617
- seriesIndex: t,
618
- datapoint: a,
619
- series: g.value,
620
- config: e.value
621
- });
622
- else if (e.value.style.tooltip.show) {
623
- let o = "";
624
- const { period: u, open: f, high: A, low: C, close: D, volume: T, isBullish: le } = g.value[t], {
625
- period: Rt,
626
- open: Vl,
627
- high: Wl,
628
- low: Ul,
629
- close: Hl,
630
- volume: Xl
631
- } = e.value.translations, ql = e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? e.value.style.tooltip.useDefaultTimeFormat ? E.value[t].text : kl.value[t].text : u;
632
- o += `<div><svg style="margin-right:6px" viewBox="0 0 12 12" height="12" width="12"><rect x="0" y="0" height="12" width="12" rx="${e.value.style.layout.candle.borderRadius * 3}" stroke="${e.value.style.layout.candle.stroke}" stroke-width="${e.value.style.layout.candle.strokeWidth}"
633
- fill="${e.value.style.layout.candle.gradient.show ? le ? `url(#bullish_gradient_${z.value})` : `url(#bearish_gradient_${z.value})` : le ? e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.colors.bearish}"/></svg>${ql}</div>`, o += `${Xl} : <b>${isNaN(T) ? "-" : Number(T.toFixed(e.value.style.tooltip.roundingValue)).toLocaleString()}</b>`, o += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${e.value.style.tooltip.borderColor}">`;
634
- const He = R({
635
- p: e.value.style.tooltip.prefix,
636
- v: f.value,
637
- s: e.value.style.tooltip.suffix,
638
- r: e.value.style.tooltip.roundingValue
639
- }), Pt = R({
640
- p: e.value.style.tooltip.prefix,
641
- v: A.value,
642
- s: e.value.style.tooltip.suffix,
643
- r: e.value.style.tooltip.roundingValue
644
- }), Ot = R({
645
- p: e.value.style.tooltip.prefix,
646
- v: C.value,
647
- s: e.value.style.tooltip.suffix,
648
- r: e.value.style.tooltip.roundingValue
649
- }), Xe = R({
650
- p: e.value.style.tooltip.prefix,
651
- v: D.value,
652
- s: e.value.style.tooltip.suffix,
653
- r: e.value.style.tooltip.roundingValue
654
- });
655
- e.value.style.tooltip.showChart ? o += `<div style="width:100%;display:flex;align-items:center;justify-content:center;">
656
- <svg viewBox="0 0 100 100" width="100px" style="background: transparent; overflow: visible">
657
- <g>
658
- <line x1="50" x2="50" y1="20" y2="80" stroke="${a.isBullish ? e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.colors.bearish}" stroke-width="2" stroke-linecap="round" />
659
- ${a.isBullish ? `
660
- <line x1="45" x2="50" y1="65" y2="65" stroke="${e.value.style.layout.candle.colors.bullish}" stroke-width="1.5" stroke-linecap="round" />
661
- <line x1="50" x2="55" y1="35" y2="35" stroke="${e.value.style.layout.candle.colors.bullish}" stroke-width="1.5" stroke-linecap="round" />
662
- <text x="38" y="70" text-anchor="end" fill="${e.value.style.tooltip.color}">${He}</text>
663
- <text x="62" y="40" text-anchor="start" fill="${e.value.style.tooltip.color}">${Xe}</text>
664
- ` : `
665
- <line x1="45" x2="50" y1="35" y2="35" stroke="${e.value.style.layout.candle.colors.bearish}" stroke-width="1.5" stroke-linecap="round" />
666
- <line x1="50" x2="55" y1="65" y2="65" stroke="${e.value.style.layout.candle.colors.bearish}" stroke-width="1.5" stroke-linecap="round" />
667
- <text x="40" y="40" text-anchor="end" fill="${e.value.style.tooltip.color}">${He}</text>
668
- <text x="60" y="70" text-anchor="start" fill="${e.value.style.tooltip.color}">${Xe}</text>
669
- `}
670
- <text x="50" y="13" text-anchor="middle" fill="${e.value.style.tooltip.color}">${Pt}</text>
671
- <text x="50" y="97" text-anchor="middle" fill="${e.value.style.tooltip.color}">${Ot}</text>
672
- <g>
673
- </svg>
674
- <div>
675
- ` : (o += `<div>${Vl}: <b>${He}</b></div>`, o += `<div>${Wl}: <b>${Pt}</b></div>`, o += `<div>${Ul}: <b>${Ot}</b></div>`, o += `<div>${Hl}: <b>${Xe}</b></div>`), o += "</div>", Le.value = `<div style="text-align:right">${o}</div>`;
676
- }
677
- se.value = !0;
678
- }
679
- const de = v(null);
680
- function Al() {
681
- return new Promise(
682
- (t) => requestAnimationFrame(() => requestAnimationFrame(() => t()))
683
- );
684
- }
685
- qe(() => {
686
- de.value && cancelAnimationFrame(de.value);
687
- });
688
- async function $t() {
689
- Ce(), await je(), de.value && cancelAnimationFrame(de.value), de.value = requestAnimationFrame(async () => {
690
- await Al(), Ce();
691
- });
692
- }
693
- const ce = v(!1), _t = v(!1), we = v(!1);
694
- function Ce() {
695
- if (!ce.value) {
696
- ce.value = !0;
697
- try {
698
- const { startIndex: t, endIndex: a } = e.value.style.zoom, l = L.value, s = t ?? 0, o = a != null ? Math.min(St(a + 1), l) : l;
699
- we.value = !0, d.value.start = s, d.value.end = o, $.value.start = s, $.value.end = o, ge(), _t.value = !0;
700
- } finally {
701
- queueMicrotask(() => {
702
- we.value = !1;
703
- }), ce.value = !1;
704
- }
705
- }
706
- }
707
- function St(t) {
708
- const a = L.value;
709
- return t > a ? a : t < 0 || t < d.value.start ? e.value.style.zoom.startIndex !== null ? e.value.style.zoom.startIndex + 1 : 1 : t;
710
- }
711
- function Ve(t = null) {
712
- je(() => {
713
- const a = [
714
- e.value.translations.period,
715
- e.value.translations.open,
716
- e.value.translations.high,
717
- e.value.translations.low,
718
- e.value.translations.close,
719
- e.value.translations.volume
720
- ], l = g.value.map((u, f) => [
721
- e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? E.value[f].text : u.period,
722
- u.open.value,
723
- u.high.value,
724
- u.low.value,
725
- u.close.value,
726
- u.volume
727
- ]), s = [
728
- [e.value.style.title.text],
729
- [e.value.style.title.subtitle.text],
730
- [[""], [""], [""]]
731
- ].concat([a]).concat(l), o = ta(s);
732
- t ? t(o) : la({
733
- csvContent: o,
734
- title: e.value.style.title.text || "vue-ui-candlestick"
735
- });
736
- });
737
- }
738
- const te = y(() => {
739
- const t = g.value.map((o, u) => {
740
- const f = e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? E.value?.[u]?.text ?? "" : o.period, A = R({
741
- p: e.value.table.td.prefix,
742
- v: o.open.value,
743
- s: e.value.table.td.suffix,
744
- r: e.value.table.td.roundingValue
745
- }), C = R({
746
- p: e.value.table.td.prefix,
747
- v: o.high.value,
748
- s: e.value.table.td.suffix,
749
- r: e.value.table.td.roundingValue
750
- }), D = R({
751
- p: e.value.table.td.prefix,
752
- v: o.low.value,
753
- s: e.value.table.td.suffix,
754
- r: e.value.table.td.roundingValue
755
- }), T = R({
756
- p: e.value.table.td.prefix,
757
- v: o.close.value,
758
- s: e.value.table.td.suffix,
759
- r: e.value.table.td.roundingValue
760
- });
761
- return [
762
- `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 12" height="12" width="12" style="margin-right: 6px"><rect x="0" y="0" height="12" width="12" rx="${e.value.style.layout.candle.borderRadius * 3}" fill="${e.value.style.layout.candle.gradient.show ? o.isBullish ? `url(#bullish_gradient_${z.value}` : `url(#bearish_gradient_${z.value})` : o.isBullish ? e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.colors.bearish}"/></svg> ${f}`,
763
- A,
764
- C,
765
- D,
766
- T,
767
- `${isNaN(o.volume) ? "-" : o.volume.toLocaleString()}`
768
- ];
769
- }), a = g.value.map((o, u) => {
770
- const f = e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? E.value?.[u]?.text ?? "" : o.period, A = R({
771
- p: e.value.table.td.prefix,
772
- v: o.open.value,
773
- s: e.value.table.td.suffix,
774
- r: e.value.table.td.roundingValue
775
- }), C = R({
776
- p: e.value.table.td.prefix,
777
- v: o.high.value,
778
- s: e.value.table.td.suffix,
779
- r: e.value.table.td.roundingValue
780
- }), D = R({
781
- p: e.value.table.td.prefix,
782
- v: o.low.value,
783
- s: e.value.table.td.suffix,
784
- r: e.value.table.td.roundingValue
785
- }), T = R({
786
- p: e.value.table.td.prefix,
787
- v: o.close.value,
788
- s: e.value.table.td.suffix,
789
- r: e.value.table.td.roundingValue
790
- });
791
- return [
792
- f,
793
- A,
794
- C,
795
- D,
796
- T,
797
- `${isNaN(o.volume) ? "-" : o.volume}`
798
- ];
799
- }), l = {
800
- th: {
801
- backgroundColor: e.value.table.th.backgroundColor,
802
- color: e.value.table.th.color,
803
- outline: e.value.table.th.outline
804
- },
805
- td: {
806
- backgroundColor: e.value.table.td.backgroundColor,
807
- color: e.value.table.td.color,
808
- outline: e.value.table.td.outline
809
- },
810
- breakpoint: e.value.table.responsiveBreakpoint
811
- }, s = [
812
- e.value.translations.period,
813
- e.value.translations.open,
814
- e.value.translations.high,
815
- e.value.translations.low,
816
- e.value.translations.last,
817
- e.value.translations.volume
818
- ];
819
- return { head: s, body: t, bodyA11y: a, config: l, colNames: s };
820
- }), Q = v(!1);
821
- function zt(t) {
822
- Q.value = t, Ye.value += 1;
823
- }
824
- function Lt() {
825
- O.value.showTable = !O.value.showTable;
826
- }
827
- function Tt() {
828
- O.value.showTooltip = !O.value.showTooltip;
829
- }
830
- const ye = v(!1);
831
- function We() {
832
- ye.value = !ye.value;
833
- }
834
- async function $l({ scale: t = 2 } = {}) {
835
- if (!W.value) return;
836
- const { width: a, height: l } = W.value.getBoundingClientRect(), s = a / l, { imageUri: o, base64: u } = await pa({
837
- domElement: W.value,
838
- base64: !0,
839
- img: !0,
840
- scale: t
841
- });
842
- return {
843
- imageUri: o,
844
- base64: u,
845
- title: e.value.style.title.text,
846
- width: a,
847
- height: l,
848
- aspectRatio: s
849
- };
850
- }
851
- const _l = y(() => x.value.width), Sl = y(() => x.value.height);
852
- ma({
853
- timeLabelsEls: ie,
854
- timeLabels: E,
855
- slicer: d,
856
- configRef: e,
857
- rotationPath: [
858
- "style",
859
- "layout",
860
- "grid",
861
- "xAxis",
862
- "dataLabels",
863
- "rotation"
864
- ],
865
- autoRotatePath: [
866
- "style",
867
- "layout",
868
- "grid",
869
- "xAxis",
870
- "dataLabels",
871
- "autoRotate",
872
- "enable"
873
- ],
874
- isAutoSize: !1,
875
- rotation: e.value.style.layout.grid.xAxis.dataLabels.autoRotate.angle,
876
- width: _l,
877
- height: Sl
878
- }), me(
879
- e,
880
- () => {
881
- O.value = {
882
- showTable: e.value.table.show,
883
- showTooltip: e.value.style.tooltip.show
884
- };
885
- },
886
- { immediate: !0 }
887
- );
888
- const he = y(() => {
889
- const t = e.value.table.useDialog && !e.value.table.show, a = O.value.showTable;
890
- return {
891
- component: t ? al : Qt,
892
- title: `${e.value.style.title.text}${e.value.style.title.subtitle.text ? `: ${e.value.style.title.subtitle.text}` : ""}`,
893
- props: t ? {
894
- backgroundColor: e.value.table.th.backgroundColor,
895
- color: e.value.table.th.color,
896
- headerColor: e.value.table.th.color,
897
- headerBg: e.value.table.th.backgroundColor,
898
- isFullscreen: Q.value,
899
- fullscreenParent: W.value,
900
- forcedWidth: Math.min(800, window.innerWidth * 0.8),
901
- isCursorPointer: ve.value
902
- } : {
903
- hideDetails: !0,
904
- config: {
905
- open: a,
906
- maxHeight: 1e4,
907
- body: {
908
- backgroundColor: e.value.style.backgroundColor,
909
- color: e.value.style.color
910
- },
911
- head: {
912
- backgroundColor: e.value.style.backgroundColor,
913
- color: e.value.style.color
914
- }
915
- }
916
- }
917
- };
918
- });
919
- me(
920
- () => O.value.showTable,
921
- (t) => {
922
- e.value.table.show || (t && e.value.table.useDialog && ne.value ? ne.value.open() : "close" in ne.value && ne.value.close());
923
- }
924
- );
925
- function It() {
926
- O.value.showTable = !1, Ie.value && Ie.value.setTableIconState(!1);
927
- }
928
- const zl = y(() => e.value.style.backgroundColor), Ll = y(() => e.value.style.title), { exportSvg: Tl, getSvg: Il } = da({
929
- svg: Y,
930
- title: Ll,
931
- backgroundColor: zl
932
- });
933
- async function Ft({ isCb: t }) {
934
- fe.value = !0, await je();
935
- try {
936
- if (t) {
937
- const { blob: a, url: l, text: s, dataUrl: o } = await Il();
938
- await Promise.resolve(
939
- e.value.userOptions.callbacks.svg({
940
- blob: a,
941
- url: l,
942
- text: s,
943
- dataUrl: o
944
- })
945
- );
946
- } else
947
- await Promise.resolve(Tl());
948
- } finally {
949
- fe.value = !1;
950
- }
951
- }
952
- function Fl(t) {
953
- at.value = t;
954
- }
955
- function Ml(t) {
956
- ce.value || we.value || t !== d.value.start && (d.value.start = t, $.value.start = t, ge());
957
- }
958
- function Rl(t) {
959
- if (ce.value || we.value) return;
960
- const a = St(t);
961
- a !== d.value.end && (d.value.end = a, $.value.end = a, ge());
962
- }
963
- function Pl({ seriesIndex: t, datapoint: a }) {
964
- const l = d.value.start + t;
965
- _e("selectX", {
966
- dataset: a,
967
- index: l,
968
- indexLabel: ""
969
- });
970
- }
971
- function Ol(t) {
972
- if (t?.stage === "start") {
973
- pe.value = !0;
974
- return;
975
- }
976
- if (t?.stage === "end") {
977
- pe.value = !1;
978
- return;
979
- }
980
- rt();
981
- }
982
- async function Mt() {
983
- if (_e("copyAlt", {
984
- config: e.value,
985
- dataset: g.value
986
- }), !e.value.userOptions.callbacks.altCopy) {
987
- console.warn(
988
- "Vue Data UI - A callback must be set for `altCopy` in userOptions."
989
- );
990
- return;
991
- }
992
- await Promise.resolve(
993
- e.value.userOptions.callbacks.altCopy({
994
- config: e.value,
995
- dataset: g.value
996
- })
997
- );
998
- }
999
- function Dl() {
1000
- U.value = null, Fe.value = !0;
1001
- }
1002
- function Bl() {
1003
- U.value = null, re.value = "pointer", se.value = !1, P.value = void 0, Fe.value = !1;
1004
- }
1005
- function Nl(t) {
1006
- if (!Y.value || ye.value || document.activeElement !== Y.value || !g.value.length) return;
1007
- const a = t.key === "ArrowLeft", l = t.key === "ArrowRight", s = t.key === "Enter" || t.key === " ", o = t.key === "Escape";
1008
- if (!a && !l && !s && !o)
1009
- return;
1010
- if (t.preventDefault(), t.stopPropagation(), o) {
1011
- U.value = null, re.value = "pointer", se.value = !1, P.value = void 0;
1012
- return;
1013
- }
1014
- if (s) {
1015
- if (U.value === null) return;
1016
- const T = g.value[U.value];
1017
- if (!T) return;
1018
- Ct(U.value, T);
1019
- return;
1020
- }
1021
- let u = U.value;
1022
- const f = P.value, A = u !== null && u >= 0 && u < g.value.length, C = f != null && f >= 0 && f < g.value.length;
1023
- A ? l ? (u += 1, u >= g.value.length && (u = 0)) : a && (u -= 1, u < 0 && (u = g.value.length - 1)) : C ? (u = l ? f + 1 : f - 1, u >= g.value.length && (u = 0), u < 0 && (u = g.value.length - 1)) : l ? u = 0 : u = g.value.length - 1;
1024
- const D = g.value[u];
1025
- D && (El(u), At(u, D, "keyboard"));
1026
- }
1027
- function El(t) {
1028
- if (!Number.isFinite(t) || !Y.value) return;
1029
- const a = r.value.left + c.value * t + c.value / 2, l = r.value.top + r.value.height / 2, s = Y.value.getBoundingClientRect();
1030
- ot.value = {
1031
- x: s.left + a / x.value.width * s.width,
1032
- y: s.top + l / x.value.height * s.height
1033
- };
1034
- }
1035
- const Ue = y(() => {
1036
- const t = te.value?.colNames ?? [], a = te.value?.bodyA11y ?? [];
1037
- return { headers: t, rows: a };
1038
- });
1039
- return Gt({
1040
- getImage: $l,
1041
- generatePdf: nt,
1042
- generateCsv: Ve,
1043
- generateImage: rt,
1044
- generateSvg: Ft,
1045
- toggleTable: Lt,
1046
- toggleTooltip: Tt,
1047
- toggleAnnotator: We,
1048
- toggleFullscreen: zt,
1049
- copyAlt: Mt
1050
- }), (t, a) => (i(), n("div", {
1051
- ref_key: "candlestickChart",
1052
- ref: W,
1053
- class: X(`vue-data-ui-component vue-ui-candlestick ${Q.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
1054
- style: ae(`position:relative;font-family:${e.value.style.fontFamily}; text-align:center;background:${e.value.style.backgroundColor}; ${e.value.responsive ? "height: 100%" : ""}`),
1055
- id: `vue-ui-candlestick_${z.value}`,
1056
- onMouseenter: rl,
1057
- onMouseleave: vl
1058
- }, [
1059
- m("div", {
1060
- id: `chart-instructions-${z.value}`,
1061
- class: "sr-only"
1062
- }, [
1063
- m("p", null, oe(e.value.a11y.translations.keyboardNavigation), 1)
1064
- ], 8, Ca),
1065
- Ue.value?.rows?.length ? (i(), G(ba, {
1066
- key: 0,
1067
- uid: z.value,
1068
- head: Ue.value.headers,
1069
- body: Ue.value.rows,
1070
- notice: e.value.a11y.translations.tableAvailable,
1071
- caption: e.value.a11y.translations.tableCaption
1072
- }, null, 8, ["uid", "head", "body", "notice", "caption"])) : p("", !0),
1073
- e.value.userOptions.buttons.annotator ? (i(), G(h(el), {
1074
- key: 1,
1075
- svgRef: h(Y),
1076
- backgroundColor: e.value.style.backgroundColor,
1077
- color: e.value.style.color,
1078
- active: ye.value,
1079
- isCursorPointer: ve.value,
1080
- onClose: We
1081
- }, {
1082
- "annotator-action-close": k(() => [
1083
- b(t.$slots, "annotator-action-close", {}, void 0, !0)
1084
- ]),
1085
- "annotator-action-color": k(({ color: l }) => [
1086
- b(t.$slots, "annotator-action-color", _(S({ color: l })), void 0, !0)
1087
- ]),
1088
- "annotator-action-draw": k(({ mode: l }) => [
1089
- b(t.$slots, "annotator-action-draw", _(S({ mode: l })), void 0, !0)
1090
- ]),
1091
- "annotator-action-undo": k(({ disabled: l }) => [
1092
- b(t.$slots, "annotator-action-undo", _(S({ disabled: l })), void 0, !0)
1093
- ]),
1094
- "annotator-action-redo": k(({ disabled: l }) => [
1095
- b(t.$slots, "annotator-action-redo", _(S({ disabled: l })), void 0, !0)
1096
- ]),
1097
- "annotator-action-delete": k(({ disabled: l }) => [
1098
- b(t.$slots, "annotator-action-delete", _(S({ disabled: l })), void 0, !0)
1099
- ]),
1100
- _: 3
1101
- }, 8, ["svgRef", "backgroundColor", "color", "active", "isCursorPointer"])) : p("", !0),
1102
- dl.value ? (i(), n("div", {
1103
- key: 2,
1104
- ref_key: "noTitle",
1105
- ref: et,
1106
- class: "vue-data-ui-no-title-space",
1107
- style: "height:36px; width: 100%;background:transparent"
1108
- }, null, 512)) : p("", !0),
1109
- e.value.style.title.text ? (i(), n("div", {
1110
- key: 3,
1111
- ref_key: "chartTitle",
1112
- ref: Je,
1113
- style: "width:100%;background:transparent"
1114
- }, [
1115
- (i(), G(fa, {
1116
- key: `title_${lt.value}`,
1117
- config: {
1118
- title: {
1119
- cy: "candlestick-div-title",
1120
- ...e.value.style.title
1121
- },
1122
- subtitle: {
1123
- cy: "candlestick-div-subtitle",
1124
- ...e.value.style.title.subtitle
1125
- }
1126
- }
1127
- }, null, 8, ["config"]))
1128
- ], 512)) : p("", !0),
1129
- e.value.userOptions.show && Se.value && (h(ut) || h(Re)) ? (i(), G(h(tl), {
1130
- ref_key: "userOptionsRef",
1131
- ref: Ie,
1132
- key: `user_options_${Ye.value}`,
1133
- backgroundColor: e.value.style.backgroundColor,
1134
- color: e.value.style.color,
1135
- isImaging: h(De),
1136
- isPrinting: h(Oe),
1137
- uid: z.value,
1138
- hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.tooltip.show,
1139
- hasPdf: e.value.userOptions.buttons.pdf,
1140
- hasImg: e.value.userOptions.buttons.img,
1141
- hasSvg: e.value.userOptions.buttons.svg,
1142
- hasXls: e.value.userOptions.buttons.csv,
1143
- hasTable: e.value.userOptions.buttons.table,
1144
- hasFullscreen: e.value.userOptions.buttons.fullscreen,
1145
- hasAltCopy: e.value.userOptions.buttons.altCopy,
1146
- isFullscreen: Q.value,
1147
- isTooltip: O.value.showTooltip,
1148
- titles: { ...e.value.userOptions.buttonTitles },
1149
- chartElement: W.value,
1150
- position: e.value.userOptions.position,
1151
- hasAnnotator: e.value.userOptions.buttons.annotator,
1152
- isAnnotation: ye.value,
1153
- callbacks: e.value.userOptions.callbacks,
1154
- printScale: e.value.userOptions.print.scale,
1155
- tableDialog: e.value.table.useDialog,
1156
- isCursorPointer: ve.value,
1157
- onToggleFullscreen: zt,
1158
- onGeneratePdf: h(nt),
1159
- onGenerateCsv: Ve,
1160
- onGenerateImage: Ol,
1161
- onGenerateSvg: Ft,
1162
- onToggleTable: Lt,
1163
- onToggleTooltip: Tt,
1164
- onToggleAnnotator: We,
1165
- onCopyAlt: Mt,
1166
- style: ae({
1167
- visibility: h(ut) ? h(Re) ? "visible" : "hidden" : "visible"
1168
- })
1169
- }, Bt({ _: 2 }, [
1170
- t.$slots.menuIcon ? {
1171
- name: "menuIcon",
1172
- fn: k(({ isOpen: l, color: s }) => [
1173
- b(t.$slots, "menuIcon", _(S({ isOpen: l, color: s })), void 0, !0)
1174
- ]),
1175
- key: "0"
1176
- } : void 0,
1177
- t.$slots.optionTooltip ? {
1178
- name: "optionTooltip",
1179
- fn: k(() => [
1180
- b(t.$slots, "optionTooltip", {}, void 0, !0)
1181
- ]),
1182
- key: "1"
1183
- } : void 0,
1184
- t.$slots.optionPdf ? {
1185
- name: "optionPdf",
1186
- fn: k(() => [
1187
- b(t.$slots, "optionPdf", {}, void 0, !0)
1188
- ]),
1189
- key: "2"
1190
- } : void 0,
1191
- t.$slots.optionCsv ? {
1192
- name: "optionCsv",
1193
- fn: k(() => [
1194
- b(t.$slots, "optionCsv", {}, void 0, !0)
1195
- ]),
1196
- key: "3"
1197
- } : void 0,
1198
- t.$slots.optionImg ? {
1199
- name: "optionImg",
1200
- fn: k(() => [
1201
- b(t.$slots, "optionImg", {}, void 0, !0)
1202
- ]),
1203
- key: "4"
1204
- } : void 0,
1205
- t.$slots.optionSvg ? {
1206
- name: "optionSvg",
1207
- fn: k(() => [
1208
- b(t.$slots, "optionSvg", {}, void 0, !0)
1209
- ]),
1210
- key: "5"
1211
- } : void 0,
1212
- t.$slots.optionTable ? {
1213
- name: "optionTable",
1214
- fn: k(() => [
1215
- b(t.$slots, "optionTable", {}, void 0, !0)
1216
- ]),
1217
- key: "6"
1218
- } : void 0,
1219
- t.$slots.optionFullscreen ? {
1220
- name: "optionFullscreen",
1221
- fn: k(({ toggleFullscreen: l, isFullscreen: s }) => [
1222
- b(t.$slots, "optionFullscreen", _(S({ toggleFullscreen: l, isFullscreen: s })), void 0, !0)
1223
- ]),
1224
- key: "7"
1225
- } : void 0,
1226
- t.$slots.optionAnnotator ? {
1227
- name: "optionAnnotator",
1228
- fn: k(({ toggleAnnotator: l, isAnnotator: s }) => [
1229
- b(t.$slots, "optionAnnotator", _(S({ toggleAnnotator: l, isAnnotator: s })), void 0, !0)
1230
- ]),
1231
- key: "8"
1232
- } : void 0,
1233
- t.$slots.optionAltCopy ? {
1234
- name: "optionAltCopy",
1235
- fn: k(({ altCopy: l }) => [
1236
- b(t.$slots, "optionAltCopy", _(S({ altCopy: l })), void 0, !0)
1237
- ]),
1238
- key: "9"
1239
- } : void 0
1240
- ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasFullscreen", "hasAltCopy", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "isCursorPointer", "onGeneratePdf", "style"])) : p("", !0),
1241
- m("div", Aa, [
1242
- (i(), n("svg", {
1243
- ref_key: "svgRef",
1244
- ref: Y,
1245
- xmlns: h(Zl),
1246
- "aria-describedby": `chart-instructions-${z.value}`,
1247
- class: X({
1248
- "vue-data-ui-fullscreen--on": Q.value,
1249
- "vue-data-ui-fulscreen--off": !Q.value
1250
- }),
1251
- viewBox: `0 0 ${x.value.width <= 0 ? 10 : x.value.width} ${x.value.height <= 0 ? 10 : x.value.height}`,
1252
- style: ae(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.color}`),
1253
- tabindex: "0",
1254
- onFocus: Dl,
1255
- onBlur: Bl,
1256
- onKeydown: Nl
1257
- }, [
1258
- Ge(h(ll)),
1259
- t.$slots["chart-background"] ? (i(), n("foreignObject", {
1260
- key: 0,
1261
- x: r.value.left,
1262
- y: r.value.top,
1263
- width: Math.max(0.1, r.value.width),
1264
- height: Math.max(0.1, r.value.height),
1265
- style: {
1266
- pointerEvents: "none"
1267
- }
1268
- }, [
1269
- b(t.$slots, "chart-background", {}, void 0, !0)
1270
- ], 8, _a)) : p("", !0),
1271
- g.value.length > 0 ? (i(), n("g", Sa, [
1272
- m("defs", null, [
1273
- m("linearGradient", {
1274
- id: `bearish_gradient_${z.value}`,
1275
- x2: "0%",
1276
- y2: "100%"
1277
- }, [
1278
- m("stop", {
1279
- offset: "0%",
1280
- "stop-color": e.value.style.layout.candle.colors.bearish
1281
- }, null, 8, La),
1282
- m("stop", {
1283
- offset: "50%",
1284
- "stop-color": `${h($e)(e.value.style.layout.candle.colors.bearish, 0.02)}DE`
1285
- }, null, 8, Ta),
1286
- m("stop", {
1287
- offset: "100%",
1288
- "stop-color": `${h($e)(e.value.style.layout.candle.colors.bearish, 0.05)}66`
1289
- }, null, 8, Ia)
1290
- ], 8, za),
1291
- m("linearGradient", {
1292
- id: `bullish_gradient_${z.value}`,
1293
- x2: "0%",
1294
- y2: "100%"
1295
- }, [
1296
- m("stop", {
1297
- offset: "0%",
1298
- "stop-color": e.value.style.layout.candle.colors.bullish
1299
- }, null, 8, Ma),
1300
- m("stop", {
1301
- offset: "50%",
1302
- "stop-color": `${h($e)(e.value.style.layout.candle.colors.bullish, 0.02)}DE`
1303
- }, null, 8, Ra),
1304
- m("stop", {
1305
- offset: "100%",
1306
- "stop-color": `${h($e)(e.value.style.layout.candle.colors.bullish, 0.05)}66`
1307
- }, null, 8, Pa)
1308
- ], 8, Fa)
1309
- ]),
1310
- e.value.style.layout.grid.show ? (i(), n("g", Oa, [
1311
- m("line", {
1312
- x1: r.value.left,
1313
- x2: r.value.left,
1314
- y1: r.value.top,
1315
- y2: r.value.bottom,
1316
- stroke: e.value.style.layout.grid.stroke,
1317
- "stroke-width": e.value.style.layout.grid.strokeWidth,
1318
- "stroke-linecap": "round"
1319
- }, null, 8, Da),
1320
- m("line", {
1321
- x1: r.value.left,
1322
- x2: r.value.right,
1323
- y1: r.value.bottom,
1324
- y2: r.value.bottom,
1325
- stroke: e.value.style.layout.grid.stroke,
1326
- "stroke-width": e.value.style.layout.grid.strokeWidth,
1327
- "stroke-linecap": "round"
1328
- }, null, 8, Ba),
1329
- e.value.style.layout.grid.horizontalLines.show ? (i(!0), n(M, { key: 0 }, B(pt.value, (l) => (i(), n("line", {
1330
- x1: r.value.left,
1331
- x2: r.value.right,
1332
- y1: l.y,
1333
- y2: l.y,
1334
- stroke: e.value.style.layout.grid.horizontalLines.stroke,
1335
- "stroke-width": e.value.style.layout.grid.horizontalLines.strokeWidth,
1336
- "stroke-dasharray": e.value.style.layout.grid.horizontalLines.strokeDasharray,
1337
- "stroke-linecap": "round"
1338
- }, null, 8, Na))), 256)) : p("", !0),
1339
- e.value.style.layout.grid.verticalLines.show ? (i(!0), n(M, { key: 1 }, B(Ee.value, (l, s) => (i(), n("g", null, [
1340
- l.text ? (i(), n("line", {
1341
- key: 0,
1342
- x1: r.value.left + c.value * s + c.value / 2,
1343
- x2: r.value.left + c.value * s + c.value / 2,
1344
- y1: r.value.top,
1345
- y2: r.value.bottom,
1346
- stroke: e.value.style.layout.grid.verticalLines.stroke,
1347
- "stroke-width": e.value.style.layout.grid.verticalLines.strokeWidth,
1348
- "stroke-dasharray": e.value.style.layout.grid.verticalLines.strokeDasharray,
1349
- "stroke-linecap": "round"
1350
- }, null, 8, Ea)) : p("", !0)
1351
- ]))), 256)) : p("", !0),
1352
- e.value.style.layout.grid.xAxis.ticks.show ? (i(!0), n(M, { key: 2 }, B(Ee.value, (l, s) => (i(), n("g", null, [
1353
- l.text ? (i(), n("line", {
1354
- key: 0,
1355
- x1: r.value.left + c.value * s + c.value / 2,
1356
- x2: r.value.left + c.value * s + c.value / 2,
1357
- y1: r.value.bottom,
1358
- y2: r.value.bottom + 3,
1359
- stroke: e.value.style.layout.grid.stroke,
1360
- "stroke-width": e.value.style.layout.grid.strokeWidth,
1361
- "stroke-linecap": "round"
1362
- }, null, 8, Va)) : p("", !0)
1363
- ]))), 256)) : p("", !0)
1364
- ])) : p("", !0),
1365
- e.value.style.layout.grid.yAxis.dataLabels.show ? (i(), n("g", {
1366
- key: 1,
1367
- ref_key: "scaleLabels",
1368
- ref: Te
1369
- }, [
1370
- (i(!0), n(M, null, B(pt.value, (l, s) => (i(), n("g", null, [
1371
- l.value >= N.value.min && l.value <= N.value.max ? (i(), n("line", {
1372
- key: 0,
1373
- x1: r.value.left,
1374
- x2: r.value.left - 5,
1375
- y1: l.y,
1376
- y2: l.y,
1377
- stroke: e.value.style.layout.grid.stroke,
1378
- "stroke-width": e.value.style.layout.grid.strokeWidth,
1379
- "stroke-linecap": "round"
1380
- }, null, 8, Wa)) : p("", !0),
1381
- l.value >= N.value.min && l.value <= N.value.max ? (i(), n("text", {
1382
- key: 1,
1383
- x: r.value.left - 8 + e.value.style.layout.grid.yAxis.dataLabels.offsetX,
1384
- y: l.y + x.value.yAxisFontSize / 3,
1385
- "font-size": x.value.yAxisFontSize,
1386
- "text-anchor": "end",
1387
- fill: e.value.style.layout.grid.yAxis.dataLabels.color,
1388
- "font-weight": e.value.style.layout.grid.yAxis.dataLabels.bold ? "bold" : "normal"
1389
- }, oe(h(R)({
1390
- p: e.value.style.layout.grid.yAxis.dataLabels.prefix,
1391
- v: l.value,
1392
- s: e.value.style.layout.grid.yAxis.dataLabels.suffix,
1393
- r: e.value.style.layout.grid.yAxis.dataLabels.roundingValue
1394
- })), 9, Ua)) : p("", !0)
1395
- ]))), 256))
1396
- ], 512)) : p("", !0),
1397
- e.value.style.layout.grid.xAxis.dataLabels.show && !e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? (i(), n("g", {
1398
- key: 2,
1399
- ref_key: "timeLabelsEls",
1400
- ref: ie
1401
- }, [
1402
- (i(!0), n(M, null, B(bl.value, (l, s) => (i(), n("g", null, [
1403
- m("text", {
1404
- class: "vue-data-ui-time-label",
1405
- transform: `translate(${r.value.left + c.value * s + c.value / 2}, ${r.value.bottom + x.value.xAxisFontSize * 1.5}), rotate(${e.value.style.layout.grid.xAxis.dataLabels.rotation})`,
1406
- "text-anchor": e.value.style.layout.grid.xAxis.dataLabels.rotation > 0 ? "start" : e.value.style.layout.grid.xAxis.dataLabels.rotation < 0 ? "end" : "middle",
1407
- "font-size": x.value.xAxisFontSize,
1408
- fill: e.value.style.layout.grid.xAxis.dataLabels.color,
1409
- "font-weight": e.value.style.layout.grid.xAxis.dataLabels.bold ? "bold" : "normal"
1410
- }, oe(l), 9, Ha)
1411
- ]))), 256))
1412
- ], 512)) : p("", !0),
1413
- e.value.style.layout.grid.xAxis.dataLabels.show && e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? (i(), n("g", {
1414
- key: 3,
1415
- ref_key: "timeLabelsEls",
1416
- ref: ie
1417
- }, [
1418
- (i(!0), n(M, null, B(Ee.value, (l, s) => (i(), n("g", null, [
1419
- m("text", {
1420
- class: "vue-data-ui-time-label",
1421
- transform: `translate(${r.value.left + c.value * s + c.value / 2}, ${r.value.bottom + x.value.xAxisFontSize * 1.5}), rotate(${e.value.style.layout.grid.xAxis.dataLabels.rotation})`,
1422
- "text-anchor": e.value.style.layout.grid.xAxis.dataLabels.rotation > 0 ? "start" : e.value.style.layout.grid.xAxis.dataLabels.rotation < 0 ? "end" : "middle",
1423
- "font-size": x.value.xAxisFontSize,
1424
- fill: e.value.style.layout.grid.xAxis.dataLabels.color,
1425
- "font-weight": e.value.style.layout.grid.xAxis.dataLabels.bold ? "bold" : "normal"
1426
- }, oe(l?.text ?? ""), 9, Xa)
1427
- ]))), 256))
1428
- ], 512)) : p("", !0),
1429
- e.value.type === "candlestick" ? (i(), n(M, { key: 4 }, [
1430
- m("g", null, [
1431
- (i(!0), n(M, null, B(g.value, (l, s) => (i(), n("g", null, [
1432
- m("rect", {
1433
- x: l.open.x - e.value.style.layout.wick.strokeWidth / 2,
1434
- y: l.high.y,
1435
- width: e.value.style.layout.wick.strokeWidth,
1436
- height: Math.abs(l.high.y - l.low.y),
1437
- fill: e.value.style.layout.wick.stroke,
1438
- stroke: "none",
1439
- rx: e.value.style.layout.wick.strokeWidth / 2,
1440
- class: X({
1441
- "vue-data-ui-transition": V.value && !h(H)
1442
- })
1443
- }, null, 10, qa),
1444
- e.value.style.layout.wick.extremity.shape === "circle" ? (i(), n("g", ja, [
1445
- m("circle", {
1446
- cx: l.high.x,
1447
- cy: l.high.y,
1448
- r: e.value.style.layout.wick.extremity.size === "auto" ? c.value / 20 : e.value.style.layout.wick.extremity.size,
1449
- fill: e.value.style.layout.wick.extremity.color,
1450
- class: X({
1451
- "vue-data-ui-transition": V.value && !h(H)
1452
- })
1453
- }, null, 10, Ga),
1454
- m("circle", {
1455
- cx: l.low.x,
1456
- cy: l.low.y,
1457
- r: e.value.style.layout.wick.extremity.size === "auto" ? c.value / 20 : e.value.style.layout.wick.extremity.size,
1458
- fill: e.value.style.layout.wick.extremity.color,
1459
- class: X({
1460
- "vue-data-ui-transition": V.value && !h(H)
1461
- })
1462
- }, null, 10, Ka)
1463
- ])) : p("", !0),
1464
- e.value.style.layout.wick.extremity.shape === "line" ? (i(), n("g", Ya, [
1465
- m("rect", {
1466
- x: l.high.x - (e.value.style.layout.wick.extremity.size === "auto" ? c.value * e.value.style.layout.candle.widthRatio : e.value.style.layout.wick.extremity.size) / 2,
1467
- y: l.high.y - e.value.style.layout.wick.strokeWidth / 2,
1468
- width: Math.abs(
1469
- l.high.x - (e.value.style.layout.wick.extremity.size === "auto" ? c.value * e.value.style.layout.candle.widthRatio : e.value.style.layout.wick.extremity.size) / 2 - (l.high.x + (e.value.style.layout.wick.extremity.size === "auto" ? c.value * e.value.style.layout.candle.widthRatio : e.value.style.layout.wick.extremity.size) / 2)
1470
- ),
1471
- height: e.value.style.layout.wick.strokeWidth,
1472
- rx: e.value.style.layout.wick.strokeWidth / 2,
1473
- fill: e.value.style.layout.wick.extremity.color,
1474
- stroke: "none",
1475
- class: X({
1476
- "vue-data-ui-transition": V.value && !h(H)
1477
- })
1478
- }, null, 10, Ja),
1479
- m("rect", {
1480
- x: l.low.x - (e.value.style.layout.wick.extremity.size === "auto" ? c.value * e.value.style.layout.candle.widthRatio : e.value.style.layout.wick.extremity.size) / 2,
1481
- y: l.low.y - e.value.style.layout.wick.strokeWidth / 2,
1482
- width: Math.abs(
1483
- l.low.x - (e.value.style.layout.wick.extremity.size === "auto" ? c.value * e.value.style.layout.candle.widthRatio : e.value.style.layout.wick.extremity.size) / 2 - (l.low.x + (e.value.style.layout.wick.extremity.size === "auto" ? c.value * e.value.style.layout.candle.widthRatio : e.value.style.layout.wick.extremity.size) / 2)
1484
- ),
1485
- height: e.value.style.layout.wick.strokeWidth,
1486
- fill: e.value.style.layout.wick.extremity.color,
1487
- stroke: "none",
1488
- rx: e.value.style.layout.wick.strokeWidth / 2,
1489
- class: X({
1490
- "vue-data-ui-transition": V.value && !h(H)
1491
- })
1492
- }, null, 10, Qa)
1493
- ])) : p("", !0)
1494
- ]))), 256))
1495
- ]),
1496
- m("g", null, [
1497
- (i(!0), n(M, null, B(g.value, (l, s) => (i(), n("rect", {
1498
- x: l.open.x - c.value / 2 + c.value * (1 - e.value.style.layout.candle.widthRatio) / 2,
1499
- y: l.isBullish ? l.close.y : l.open.y,
1500
- height: Math.abs(l.close.y - l.open.y) <= 0 ? 1e-4 : Math.abs(
1501
- l.close.y - l.open.y
1502
- ),
1503
- width: c.value * e.value.style.layout.candle.widthRatio <= 0 ? 1e-4 : c.value * e.value.style.layout.candle.widthRatio,
1504
- fill: e.value.style.layout.candle.gradient.underlayer,
1505
- rx: e.value.style.layout.candle.borderRadius,
1506
- stroke: "none",
1507
- class: X({
1508
- "vue-data-ui-transition": V.value && !h(H)
1509
- })
1510
- }, null, 10, Za))), 256)),
1511
- (i(!0), n(M, null, B(g.value, (l, s) => (i(), n("rect", {
1512
- x: l.open.x - c.value / 2 + c.value * (1 - e.value.style.layout.candle.widthRatio) / 2,
1513
- y: l.isBullish ? l.close.y : l.open.y,
1514
- height: Math.abs(l.close.y - l.open.y) <= 0 ? 1e-4 : Math.abs(
1515
- l.close.y - l.open.y
1516
- ),
1517
- width: c.value * e.value.style.layout.candle.widthRatio <= 0 ? 1e-4 : c.value * e.value.style.layout.candle.widthRatio,
1518
- fill: l.isBullish ? e.value.style.layout.candle.gradient.show ? `url(#bullish_gradient_${z.value})` : e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.gradient.show ? `url(#bearish_gradient_${z.value})` : e.value.style.layout.candle.colors.bearish,
1519
- rx: e.value.style.layout.candle.borderRadius,
1520
- stroke: e.value.style.layout.candle.stroke,
1521
- "stroke-width": e.value.style.layout.candle.strokeWidth,
1522
- "stroke-linecap": "round",
1523
- "stroke-linejoin": "round",
1524
- class: X({
1525
- "vue-data-ui-transition": V.value && !h(H)
1526
- })
1527
- }, null, 10, eo))), 256))
1528
- ])
1529
- ], 64)) : p("", !0),
1530
- e.value.type === "ohlc" ? (i(!0), n(M, { key: 5 }, B(g.value, (l, s) => (i(), n("g", null, [
1531
- m("path", {
1532
- d: `M ${l.high.x},${l.high.y} ${l.low.x},${l.low.y} M${l.open.x - Math.min(6, c.value / 3)},${l.open.y} ${l.open.x},${l.open.y} M${l.close.x},${l.close.y} ${l.close.x + Math.min(6, c.value / 3)},${l.close.y}`,
1533
- stroke: l.isBullish ? e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.colors.bearish,
1534
- "stroke-width": 1
1535
- }, null, 8, to)
1536
- ]))), 256)) : p("", !0),
1537
- m("g", null, [
1538
- (i(!0), n(M, null, B(g.value, (l, s) => (i(), n("rect", {
1539
- x: r.value.left + s * c.value,
1540
- y: r.value.top,
1541
- height: r.value.height <= 0 ? 1e-4 : r.value.height,
1542
- width: c.value <= 0 ? 1e-4 : c.value,
1543
- fill: P.value === s || at.value === s ? h(ea)(
1544
- e.value.style.layout.selector.color,
1545
- e.value.style.layout.selector.opacity
1546
- ) : "transparent",
1547
- onMouseover: () => At(s, l, "pointer"),
1548
- onMouseleave: () => Cl(s, l),
1549
- onClick: () => Ct(s, l)
1550
- }, null, 40, lo))), 256))
1551
- ])
1552
- ])) : p("", !0),
1553
- dt.value ? (i(), n("rect", Nt({ key: 2 }, hl.value, {
1554
- "data-start": d.value.start,
1555
- "data-end": d.value.end
1556
- }), null, 16, ao)) : p("", !0),
1557
- b(t.$slots, "svg", {
1558
- svg: {
1559
- ...x.value,
1560
- data: g.value,
1561
- drawingArea: r.value,
1562
- isPrintingImg: h(Oe) | h(De) | pe.value,
1563
- isPrintingSvg: fe.value
1564
- }
1565
- }, void 0, !0)
1566
- ], 46, $a)),
1567
- t.$slots.hint ? (i(), n("div", oo, [
1568
- b(t.$slots, "hint", _(S({
1569
- hint: e.value.a11y.translations.keyboardNavigation,
1570
- isVisible: Fe.value
1571
- })), void 0, !0)
1572
- ])) : p("", !0)
1573
- ]),
1574
- t.$slots.watermark ? (i(), n("div", so, [
1575
- b(t.$slots, "watermark", _(S({
1576
- isPrinting: h(Oe) || h(De) || pe.value || fe.value
1577
- })), void 0, !0)
1578
- ])) : p("", !0),
1579
- e.value.style.zoom.show && L.value > 6 && Se.value && _t.value ? (i(), G(xa, {
1580
- key: 6,
1581
- ref_key: "chartSlicer",
1582
- ref: ue,
1583
- allMinimaps: fl.value,
1584
- background: e.value.style.zoom.color,
1585
- borderColor: e.value.style.backgroundColor,
1586
- customFormat: e.value.style.zoom.customFormat,
1587
- cutNullValues: !1,
1588
- enableRangeHandles: e.value.style.zoom.enableRangeHandles,
1589
- enableSelectionDrag: e.value.style.zoom.enableSelectionDrag,
1590
- end: d.value.end,
1591
- focusOnDrag: e.value.style.zoom.focusOnDrag,
1592
- focusRangeRatio: e.value.style.zoom.focusRangeRatio,
1593
- fontSize: e.value.style.zoom.fontSize,
1594
- immediate: !e.value.style.zoom.preview.enable,
1595
- inputColor: e.value.style.zoom.color,
1596
- isPreview: dt.value,
1597
- labelLeft: wt.value.start || "",
1598
- labelRight: wt.value.end || "",
1599
- max: L.value,
1600
- min: 0,
1601
- minimap: e.value.style.zoom.minimap.show ? h(w).map((l) => l[2]) : [],
1602
- minimapCompact: e.value.style.zoom.minimap.compact,
1603
- minimapFrameColor: e.value.style.zoom.minimap.frameColor,
1604
- minimapIndicatorColor: e.value.style.zoom.minimap.indicatorColor,
1605
- minimapMerged: !1,
1606
- minimapSelectedColor: e.value.style.zoom.minimap.selectedColor,
1607
- minimapSelectedColorOpacity: e.value.style.zoom.minimap.selectedColorOpacity,
1608
- minimapSelectedIndex: P.value,
1609
- minimapSelectionRadius: 1,
1610
- preciseLabels: wl.value,
1611
- refreshEndPoint: e.value.style.zoom.endIndex !== null ? e.value.style.zoom.endIndex + 1 : L.value,
1612
- refreshStartPoint: e.value.style.zoom.startIndex !== null ? e.value.style.zoom.startIndex : 0,
1613
- selectColor: e.value.style.zoom.highlightColor,
1614
- selectedSeries: h(w),
1615
- smoothMinimap: !1,
1616
- start: d.value.start,
1617
- textColor: e.value.style.color,
1618
- timeLabels: Ne.value,
1619
- usePreciseLabels: e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable && !e.value.style.zoom.useDefaultFormat,
1620
- useResetSlot: e.value.style.zoom.useResetSlot,
1621
- valueEnd: d.value.end,
1622
- valueStart: d.value.start,
1623
- verticalHandles: e.value.style.zoom.minimap.verticalHandles,
1624
- minScale: e.value.style.layout.grid.yAxis.scale.min,
1625
- maxScale: e.value.style.layout.grid.yAxis.scale.max,
1626
- maxWidth: e.value.style.zoom.maxWidth,
1627
- additionalMinimapHeight: e.value.style.zoom.minimap.additionalHeight,
1628
- handleType: e.value.style.zoom.minimap.handleType,
1629
- handleIconColor: e.value.style.zoom.minimap.handleIconColor,
1630
- handleBorderWidth: e.value.style.zoom.minimap.handleBorderWidth,
1631
- handleBorderColor: e.value.style.zoom.minimap.handleBorderColor,
1632
- handleFill: e.value.style.zoom.minimap.handleFill,
1633
- handleWidth: e.value.style.zoom.minimap.handleWidth,
1634
- "onUpdate:end": Rl,
1635
- "onUpdate:start": Ml,
1636
- onTrapMouse: Fl,
1637
- onReset: $t,
1638
- onFutureEnd: a[0] || (a[0] = (l) => ct("end", l)),
1639
- onFutureStart: a[1] || (a[1] = (l) => ct("start", l))
1640
- }, {
1641
- "reset-action": k(({ reset: l }) => [
1642
- b(t.$slots, "reset-action", _(S({ reset: l })), void 0, !0)
1643
- ]),
1644
- slotMap: k(({ height: l, unitW: s }) => [
1645
- (i(!0), n(M, null, B(pl.value({ minimapH: l, unitW: s }), (o, u) => (i(), n("g", null, [
1646
- m("path", {
1647
- d: `M ${o.high.x},${o.high.y} ${o.low.x},${o.low.y}`,
1648
- stroke: o.isBullish ? e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.colors.bearish,
1649
- "stroke-width": 1,
1650
- style: ae({
1651
- opacity: u >= $.value.start && u <= $.value.end ? 1 : 0.6
1652
- })
1653
- }, null, 12, uo),
1654
- m("path", {
1655
- d: `M ${o.open.x},${o.open.y} ${o.close.x},${o.close.y}`,
1656
- stroke: o.isBullish ? e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.colors.bearish,
1657
- "stroke-width": Math.min(6, s / 1.5),
1658
- style: ae({
1659
- opacity: u >= $.value.start && u <= $.value.end ? 1 : 0.6
1660
- })
1661
- }, null, 12, io)
1662
- ]))), 256))
1663
- ]),
1664
- _: 3
1665
- }, 8, ["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", "useResetSlot", "valueEnd", "valueStart", "verticalHandles", "minScale", "maxScale", "maxWidth", "additionalMinimapHeight", "handleType", "handleIconColor", "handleBorderWidth", "handleBorderColor", "handleFill", "handleWidth"])) : p("", !0),
1666
- m("div", {
1667
- ref_key: "chartLegend",
1668
- ref: Qe
1669
- }, [
1670
- b(t.$slots, "legend", { legend: g.value }, void 0, !0)
1671
- ], 512),
1672
- t.$slots.source ? (i(), n("div", {
1673
- key: 7,
1674
- ref_key: "source",
1675
- ref: Ze,
1676
- dir: "auto"
1677
- }, [
1678
- b(t.$slots, "source", {}, void 0, !0)
1679
- ], 512)) : p("", !0),
1680
- Ge(h(Jt), {
1681
- teleportTo: e.value.style.tooltip.teleportTo,
1682
- show: O.value.showTooltip && se.value,
1683
- backgroundColor: e.value.style.tooltip.backgroundColor,
1684
- color: e.value.style.tooltip.color,
1685
- borderRadius: e.value.style.tooltip.borderRadius,
1686
- borderColor: e.value.style.tooltip.borderColor,
1687
- borderWidth: e.value.style.tooltip.borderWidth,
1688
- fontSize: e.value.style.tooltip.fontSize,
1689
- backgroundOpacity: e.value.style.tooltip.backgroundOpacity,
1690
- position: e.value.style.tooltip.position,
1691
- offsetY: e.value.style.tooltip.offsetY,
1692
- parent: W.value,
1693
- content: Le.value,
1694
- isFullscreen: Q.value,
1695
- isCustom: e.value.style.tooltip.customFormat && typeof e.value.style.tooltip.customFormat == "function",
1696
- smooth: e.value.style.tooltip.smooth,
1697
- backdropFilter: e.value.style.tooltip.backdropFilter,
1698
- smoothForce: e.value.style.tooltip.smoothForce,
1699
- smoothSnapThreshold: e.value.style.tooltip.smoothSnapThreshold,
1700
- isA11yMode: re.value === "keyboard",
1701
- a11yPosition: ot.value
1702
- }, {
1703
- "tooltip-before": k(() => [
1704
- b(t.$slots, "tooltip-before", _(S({ ...ke.value })), void 0, !0)
1705
- ]),
1706
- tooltip: k(() => [
1707
- b(t.$slots, "tooltip", _(S({ ...ke.value })), void 0, !0)
1708
- ]),
1709
- "tooltip-after": k(() => [
1710
- b(t.$slots, "tooltip-after", _(S({ ...ke.value })), void 0, !0)
1711
- ]),
1712
- _: 3
1713
- }, 8, ["teleportTo", "show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold", "isA11yMode", "a11yPosition"]),
1714
- Se.value && e.value.userOptions.buttons.table ? (i(), G(Kl(he.value.component), Nt({ key: 8 }, he.value.props, {
1715
- ref_key: "tableUnit",
1716
- ref: ne,
1717
- onClose: It
1718
- }), Bt({
1719
- content: k(() => [
1720
- (i(), G(h(Zt), {
1721
- key: `table_${tt.value}`,
1722
- colNames: te.value.colNames,
1723
- head: te.value.head,
1724
- body: te.value.body,
1725
- config: te.value.config,
1726
- title: e.value.table.useDialog ? "" : he.value.title,
1727
- withCloseButton: !e.value.table.useDialog,
1728
- isCursorPointer: ve.value,
1729
- onClose: It
1730
- }, {
1731
- th: k(({ th: l }) => [
1732
- Et(oe(l), 1)
1733
- ]),
1734
- td: k(({ td: l }) => [
1735
- m("div", { innerHTML: l }, null, 8, no)
1736
- ]),
1737
- _: 1
1738
- }, 8, ["colNames", "head", "body", "config", "title", "withCloseButton", "isCursorPointer"]))
1739
- ]),
1740
- _: 2
1741
- }, [
1742
- e.value.table.useDialog ? {
1743
- name: "title",
1744
- fn: k(() => [
1745
- Et(oe(he.value.title), 1)
1746
- ]),
1747
- key: "0"
1748
- } : void 0,
1749
- e.value.table.useDialog ? {
1750
- name: "actions",
1751
- fn: k(() => [
1752
- m("button", {
1753
- tabindex: "0",
1754
- class: "vue-ui-user-options-button",
1755
- onClick: a[2] || (a[2] = (l) => Ve(e.value.userOptions.callbacks.csv)),
1756
- style: ae({ cursor: ve.value ? "pointer" : "default" })
1757
- }, [
1758
- Ge(h(Yt), {
1759
- name: "fileCsv",
1760
- stroke: he.value.props.color
1761
- }, null, 8, ["stroke"])
1762
- ], 4)
1763
- ]),
1764
- key: "1"
1765
- } : void 0
1766
- ]), 1040)) : p("", !0),
1767
- b(t.$slots, "skeleton", {}, () => [
1768
- h(H) ? (i(), G(va, { key: 0 })) : p("", !0)
1769
- ], !0)
1770
- ], 46, wa));
1771
- }
1772
- }, To = /* @__PURE__ */ ka(ro, [["__scopeId", "data-v-8ef8a38a"]]);
1773
- export {
1774
- To as default
1775
- };