vue-data-ui 3.6.0 → 3.7.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 (199) hide show
  1. package/README.md +26 -26
  2. package/dist/{Arrow-BGVin3AS.js → Arrow-CWYIBV-7.js} +1 -1
  3. package/dist/{BaseDraggableDialog-DhKIof09.js → BaseDraggableDialog-CRF94NJQ.js} +2 -2
  4. package/dist/{BaseIcon-DLFL0M4-.js → BaseIcon-CofSxalQ.js} +1 -1
  5. package/dist/{ColorPicker-CjIJvLdc.js → ColorPicker-e1-OSGlQ.js} +10 -10
  6. package/dist/{DataTable-UCyd_BQI.js → DataTable-CHaOCmsE.js} +2 -2
  7. package/dist/{Legend-D9ZTJKjh.js → Legend-Web3GjlR.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-a2UzZL0y.js → NonSvgPenAndPaper-CjYFLlns.js} +3 -3
  9. package/dist/{PackageVersion-D_4Hr4S4.js → PackageVersion-C82JCJOX.js} +1 -1
  10. package/dist/{PenAndPaper-BJSMejV9.js → PenAndPaper-HCZQTkqi.js} +20 -20
  11. package/dist/{Shape-CNXKB8O0.js → Shape-DE6X_t31.js} +3 -3
  12. package/dist/{Slicer-CJfhtoVn.js → Slicer-BFBBG6xv.js} +23 -23
  13. package/dist/{SlicerPreview-wXjV4LWO.js → SlicerPreview-D76aSViW.js} +2 -2
  14. package/dist/{SparkTooltip-BEewz-_Q.js → SparkTooltip-B2rpVWE1.js} +6 -6
  15. package/dist/{Title-Bb1VWCtR.js → Title-DfFUb9hd.js} +1 -1
  16. package/dist/{Tooltip-oWCO1HKy.js → Tooltip-WD0Ros6G.js} +1 -1
  17. package/dist/{UserOptions-BqmUW9Kp.js → UserOptions-B3I-s3Lw.js} +2 -2
  18. package/dist/components/arrow.js +1 -1
  19. package/dist/components/vue-ui-3d-bar.js +3 -3
  20. package/dist/components/vue-ui-accordion.js +1 -1
  21. package/dist/components/vue-ui-age-pyramid.js +3 -3
  22. package/dist/components/vue-ui-annotator.js +1 -1
  23. package/dist/components/vue-ui-bullet.js +3 -3
  24. package/dist/components/vue-ui-candlestick.js +3 -3
  25. package/dist/components/vue-ui-carousel-table.js +1 -1
  26. package/dist/components/vue-ui-chestnut.js +3 -3
  27. package/dist/components/vue-ui-chord.js +3 -3
  28. package/dist/components/vue-ui-circle-pack.js +3 -3
  29. package/dist/components/vue-ui-cursor.js +1 -1
  30. package/dist/components/vue-ui-dashboard.js +1 -1
  31. package/dist/components/vue-ui-digits.js +1 -1
  32. package/dist/components/vue-ui-donut-evolution.js +2 -2
  33. package/dist/components/vue-ui-donut.js +3 -3
  34. package/dist/components/vue-ui-dumbbell.js +3 -3
  35. package/dist/components/vue-ui-flow.js +3 -3
  36. package/dist/components/vue-ui-funnel.js +2 -2
  37. package/dist/components/vue-ui-galaxy.js +1 -1
  38. package/dist/components/vue-ui-gauge.js +1 -1
  39. package/dist/components/vue-ui-gizmo.js +1 -1
  40. package/dist/components/vue-ui-heatmap.js +1 -1
  41. package/dist/components/vue-ui-history-plot.js +3 -3
  42. package/dist/components/vue-ui-horizontal-bar.js +3 -3
  43. package/dist/components/vue-ui-icon.js +1 -1
  44. package/dist/components/vue-ui-kpi.js +1 -1
  45. package/dist/components/vue-ui-mini-loader.js +1 -1
  46. package/dist/components/vue-ui-molecule.js +3 -3
  47. package/dist/components/vue-ui-mood-radar.js +3 -3
  48. package/dist/components/vue-ui-nested-donuts.js +2 -2
  49. package/dist/components/vue-ui-onion.js +3 -3
  50. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  51. package/dist/components/vue-ui-quadrant.js +3 -3
  52. package/dist/components/vue-ui-quick-chart.js +3 -3
  53. package/dist/components/vue-ui-radar.js +3 -3
  54. package/dist/components/vue-ui-rating.js +1 -1
  55. package/dist/components/vue-ui-relation-circle.js +3 -3
  56. package/dist/components/vue-ui-ridgeline.js +3 -3
  57. package/dist/components/vue-ui-rings.js +3 -3
  58. package/dist/components/vue-ui-scatter.js +3 -3
  59. package/dist/components/vue-ui-skeleton.js +1 -1
  60. package/dist/components/vue-ui-smiley.js +1 -1
  61. package/dist/components/vue-ui-spark-trend.js +1 -1
  62. package/dist/components/vue-ui-sparkbar.js +2 -2
  63. package/dist/components/vue-ui-sparkgauge.js +3 -3
  64. package/dist/components/vue-ui-sparkhistogram.js +3 -3
  65. package/dist/components/vue-ui-sparkline.js +3 -3
  66. package/dist/components/vue-ui-sparkstackbar.js +2 -2
  67. package/dist/components/vue-ui-stackbar.js +3 -3
  68. package/dist/components/vue-ui-stackline.js +1 -1
  69. package/dist/components/vue-ui-strip-plot.js +3 -3
  70. package/dist/components/vue-ui-table-heatmap.js +1 -1
  71. package/dist/components/vue-ui-table-sparkline.js +2 -2
  72. package/dist/components/vue-ui-table.js +1 -1
  73. package/dist/components/vue-ui-thermometer.js +3 -3
  74. package/dist/components/vue-ui-timer.js +1 -1
  75. package/dist/components/vue-ui-tiremarks.js +2 -2
  76. package/dist/components/vue-ui-treemap.js +3 -3
  77. package/dist/components/vue-ui-vertical-bar.js +1 -1
  78. package/dist/components/vue-ui-waffle.js +2 -2
  79. package/dist/components/vue-ui-wheel.js +1 -1
  80. package/dist/components/vue-ui-word-cloud.js +3 -3
  81. package/dist/components/vue-ui-world.js +1 -1
  82. package/dist/components/vue-ui-xy-canvas.js +3 -3
  83. package/dist/components/vue-ui-xy.js +3 -3
  84. package/dist/{dom-to-png--BNgrTZV.js → dom-to-png-CH2DfsJe.js} +1 -1
  85. package/dist/{img-BecE5qXd.js → img-DUzJeMlr.js} +1 -1
  86. package/dist/{lib-C_mNZmhD.js → lib-C5BH09_g.js} +111 -110
  87. package/dist/{pdf-DuG5j3Wv.js → pdf-BSWQncok.js} +1 -1
  88. package/dist/style.css +1 -1
  89. package/dist/types/vue-data-ui.d.ts +2 -0
  90. package/dist/{useAutoSizeLabelsInsideViewbox-BhzfwQ_k.js → useAutoSizeLabelsInsideViewbox-DOALwU4q.js} +7 -7
  91. package/dist/{useNestedProp-CIoDlpHu.js → useNestedProp-CWo6bftQ.js} +1 -1
  92. package/dist/{usePrinter-DTzqpYKF.js → usePrinter-DCJzEiS8.js} +2 -2
  93. package/dist/useThemeCheck-DGJ31Vi5.js +32 -0
  94. package/dist/{useTimeLabels-BGFjWgrv.js → useTimeLabels-C5qMhpbe.js} +50 -49
  95. package/dist/{vue-data-ui-BWuOXu_s.js → vue-data-ui-d-OXgGG3.js} +78 -78
  96. package/dist/vue-data-ui.js +225 -205
  97. package/dist/{vue-ui-3d-bar-BNQAuLqF.js → vue-ui-3d-bar-BLbSbx2V.js} +546 -517
  98. package/dist/{vue-ui-accordion-SSLXLlNz.js → vue-ui-accordion-DSdZUn2C.js} +3 -3
  99. package/dist/vue-ui-age-pyramid-DQ-xc-if.js +960 -0
  100. package/dist/{vue-ui-annotator-34Ld0u5M.js → vue-ui-annotator-DRaH8hXn.js} +7 -7
  101. package/dist/vue-ui-bullet-BvMdxLkK.js +657 -0
  102. package/dist/{vue-ui-candlestick-BcChw-8c.js → vue-ui-candlestick-DIWeygxV.js} +596 -561
  103. package/dist/{vue-ui-carousel-table-Cp_od0lI.js → vue-ui-carousel-table-DM2HJFMH.js} +48 -48
  104. package/dist/{vue-ui-chestnut-DTaIsP72.js → vue-ui-chestnut-DNOG6dqY.js} +534 -505
  105. package/dist/vue-ui-chord-D2wPt2JV.js +1182 -0
  106. package/dist/vue-ui-circle-pack-D_GDv7OV.js +832 -0
  107. package/dist/{vue-ui-cursor-lW-dVs_k.js → vue-ui-cursor-BMe8ZiV6.js} +2 -2
  108. package/dist/{vue-ui-dashboard-DIymn9Cx.js → vue-ui-dashboard-BMby447A.js} +140 -140
  109. package/dist/{vue-ui-digits-YHA3fA0j.js → vue-ui-digits-D382I0-w.js} +2 -2
  110. package/dist/{vue-ui-donut-BaDmbWLh.js → vue-ui-donut-BqiNPW3q.js} +634 -602
  111. package/dist/vue-ui-donut-evolution-BL7HtdsP.js +1243 -0
  112. package/dist/vue-ui-dumbbell-BlTDnM8L.js +1258 -0
  113. package/dist/vue-ui-flow-BxIv20FH.js +1026 -0
  114. package/dist/vue-ui-funnel-Tnjg4srR.js +743 -0
  115. package/dist/vue-ui-galaxy-CYDVXdNj.js +837 -0
  116. package/dist/vue-ui-gauge-DAcpazK7.js +864 -0
  117. package/dist/{vue-ui-gizmo-E33_xZte.js → vue-ui-gizmo-Bg2TpPwm.js} +3 -3
  118. package/dist/{vue-ui-heatmap-DJXMvFPp.js → vue-ui-heatmap-BPEE_cLi.js} +501 -466
  119. package/dist/vue-ui-history-plot-BhfbLer8.js +1239 -0
  120. package/dist/{vue-ui-kpi-C-XuLBVQ.js → vue-ui-kpi-CKMZDc3n.js} +3 -3
  121. package/dist/{vue-ui-mini-loader-DawncJvl.js → vue-ui-mini-loader-BN72OfS0.js} +2 -2
  122. package/dist/vue-ui-molecule-DnzXYuUi.js +782 -0
  123. package/dist/vue-ui-mood-radar-CXyQEfeM.js +930 -0
  124. package/dist/vue-ui-nested-donuts-Dq8JoU5d.js +1454 -0
  125. package/dist/vue-ui-onion-D0KUHi-Z.js +944 -0
  126. package/dist/vue-ui-parallel-coordinate-plot-DNc2L4Rg.js +1080 -0
  127. package/dist/{vue-ui-quadrant-B2bLWyCm.js → vue-ui-quadrant-Cp8loNVN.js} +510 -481
  128. package/dist/{vue-ui-quick-chart-J_RmCwI_.js → vue-ui-quick-chart-kuTdgAKG.js} +795 -758
  129. package/dist/vue-ui-radar-x2Ry_IGa.js +1013 -0
  130. package/dist/{vue-ui-rating-CBS8zaQd.js → vue-ui-rating-DtzmtJwF.js} +26 -26
  131. package/dist/vue-ui-relation-circle-DbYE9UHq.js +671 -0
  132. package/dist/vue-ui-ridgeline-yaMl8iIE.js +1302 -0
  133. package/dist/vue-ui-rings-BowsO9I8.js +884 -0
  134. package/dist/vue-ui-scatter-C_nz0A4x.js +1619 -0
  135. package/dist/{vue-ui-skeleton-DsrlMELy.js → vue-ui-skeleton-DdXq2gl1.js} +3 -3
  136. package/dist/{vue-ui-smiley-P_8WIBDD.js → vue-ui-smiley-OYyM-ukP.js} +2 -2
  137. package/dist/vue-ui-spark-trend-BLticwHl.js +364 -0
  138. package/dist/vue-ui-sparkbar-DC2sDr9_.js +381 -0
  139. package/dist/vue-ui-sparkgauge-BENUfyuR.js +260 -0
  140. package/dist/vue-ui-sparkhistogram-BY0jsNsc.js +411 -0
  141. package/dist/vue-ui-sparkline-fS36LGCB.js +549 -0
  142. package/dist/vue-ui-sparkstackbar-C59ocU83.js +470 -0
  143. package/dist/vue-ui-stackbar-BtWWtzDp.js +1867 -0
  144. package/dist/vue-ui-stackline-CsGEHOOr.js +1963 -0
  145. package/dist/{vue-ui-strip-plot-CTtivaxm.js → vue-ui-strip-plot-n_rEdwkM.js} +343 -314
  146. package/dist/{vue-ui-table-CHt3AQiq.js → vue-ui-table-Kv2YL5OU.js} +5 -5
  147. package/dist/vue-ui-table-heatmap-vQEFrjCX.js +307 -0
  148. package/dist/{vue-ui-table-sparkline-D5MckwMl.js → vue-ui-table-sparkline-B8CCAdco.js} +292 -263
  149. package/dist/vue-ui-thermometer-C1Hr_LrY.js +613 -0
  150. package/dist/{vue-ui-timer-B-Xa6ALH.js → vue-ui-timer-CmnO99_j.js} +25 -25
  151. package/dist/vue-ui-tiremarks-DbZbhw6Q.js +477 -0
  152. package/dist/vue-ui-treemap-BGMpUu5v.js +1359 -0
  153. package/dist/{vue-ui-vertical-bar-D9XQe_ud.js → vue-ui-vertical-bar-CWlGQoB3.js} +520 -485
  154. package/dist/{vue-ui-waffle-Bk98w86A.js → vue-ui-waffle-BVVrMghT.js} +376 -347
  155. package/dist/vue-ui-wheel-B2pFBeKR.js +690 -0
  156. package/dist/vue-ui-word-cloud-BqKSDn2J.js +904 -0
  157. package/dist/{vue-ui-world-xOY__pp8.js → vue-ui-world-glj9mQAg.js} +57 -57
  158. package/dist/vue-ui-xy-BdXV4naK.js +3455 -0
  159. package/dist/vue-ui-xy-canvas-Cr13t9M5.js +1599 -0
  160. package/dist/vue_ui_vertical_bar-CELc39b8.js +18 -0
  161. package/package.json +5 -5
  162. package/dist/themes-DH-N_ePR.js +0 -54
  163. package/dist/vue-ui-age-pyramid-DsOlpJBh.js +0 -933
  164. package/dist/vue-ui-bullet-Ci4lO4_W.js +0 -630
  165. package/dist/vue-ui-chord-BKC--Nbq.js +0 -1153
  166. package/dist/vue-ui-circle-pack-B3sfU0Vo.js +0 -803
  167. package/dist/vue-ui-donut-evolution-BqUzmyW2.js +0 -1208
  168. package/dist/vue-ui-dumbbell-CWKTrzsm.js +0 -1231
  169. package/dist/vue-ui-flow-SMbuDPdL.js +0 -991
  170. package/dist/vue-ui-funnel-3fRlMBzq.js +0 -716
  171. package/dist/vue-ui-galaxy-CFZ1xYD5.js +0 -808
  172. package/dist/vue-ui-gauge-DJpbjfpL.js +0 -835
  173. package/dist/vue-ui-history-plot-CvPMx5Lg.js +0 -1204
  174. package/dist/vue-ui-molecule-CasngKZI.js +0 -753
  175. package/dist/vue-ui-mood-radar-DGz2TQi4.js +0 -903
  176. package/dist/vue-ui-nested-donuts-Bjjz2sWG.js +0 -1419
  177. package/dist/vue-ui-onion-DwTIY6i1.js +0 -915
  178. package/dist/vue-ui-parallel-coordinate-plot-DedxvtPN.js +0 -1051
  179. package/dist/vue-ui-radar-D1rz2RnH.js +0 -984
  180. package/dist/vue-ui-relation-circle-DUfRwwo1.js +0 -641
  181. package/dist/vue-ui-ridgeline-DKPWMWRc.js +0 -1273
  182. package/dist/vue-ui-rings-BY0EQGLb.js +0 -855
  183. package/dist/vue-ui-scatter-ky9p5Pgh.js +0 -1590
  184. package/dist/vue-ui-spark-trend-DkJn_3FI.js +0 -337
  185. package/dist/vue-ui-sparkbar-qB1fmgej.js +0 -352
  186. package/dist/vue-ui-sparkgauge-BezFN_Rc.js +0 -233
  187. package/dist/vue-ui-sparkhistogram-DGt5b8FR.js +0 -384
  188. package/dist/vue-ui-sparkline-D7Wx1ejg.js +0 -514
  189. package/dist/vue-ui-sparkstackbar-DtO7-yim.js +0 -441
  190. package/dist/vue-ui-stackbar-Dr48I48D.js +0 -1832
  191. package/dist/vue-ui-stackline-Juns5Yh4.js +0 -1928
  192. package/dist/vue-ui-table-heatmap-Cn-56b5F.js +0 -282
  193. package/dist/vue-ui-thermometer-BOidpwAZ.js +0 -584
  194. package/dist/vue-ui-tiremarks-BsTyVS2P.js +0 -450
  195. package/dist/vue-ui-treemap-BWTaY91B.js +0 -1330
  196. package/dist/vue-ui-wheel-nj73b_Dc.js +0 -663
  197. package/dist/vue-ui-word-cloud-Dcaogr-D.js +0 -875
  198. package/dist/vue-ui-xy-BT67faLv.js +0 -3424
  199. package/dist/vue-ui-xy-canvas-BoB7-4QK.js +0 -1564
@@ -1,23 +1,40 @@
1
- import { defineAsyncComponent as H, computed as c, ref as y, toRefs as Al, watch as se, shallowRef as bt, onMounted as $l, onBeforeUnmount as De, watchEffect as Cl, nextTick as kt, createElementBlock as i, openBlock as u, normalizeStyle as ue, normalizeClass as V, createBlock as Q, createCommentVNode as m, createElementVNode as p, createVNode as Pe, unref as h, withCtx as g, renderSlot as b, normalizeProps as F, guardReactiveProps as I, createSlots as wt, Fragment as S, renderList as M, toDisplayString as ie, mergeProps as At, resolveDynamicComponent as _l, createTextVNode as $t } from "vue";
2
- import { c as zl, t as Sl, O as pe, o as Ct, f as J, m as Ll, x as G, v as Tl, d as U, X as Fl, i as fe, s as Il, R as _t, P as Ml, Q as Rl, G as Ol, H as Dl } from "./lib-C_mNZmhD.js";
3
- import { t as zt, u as Pl } from "./useResponsive-DfdjqQps.js";
4
- import { u as Bl, a as St } from "./useNestedProp-CIoDlpHu.js";
5
- import { u as Nl } from "./usePrinter-DTzqpYKF.js";
6
- import { u as El, B as Vl } from "./BaseScanner-BgWxam9d.js";
7
- import { u as Lt, a as Ul, l as Wl } from "./useTimeLabels-BGFjWgrv.js";
8
- import { u as Xl } from "./useSvgExport-DrjCWun4.js";
9
- import { u as Hl } from "./useUserOptionState-BIvW1Kz7.js";
10
- import { u as Gl } from "./useChartAccessibility-9icAAmYg.js";
11
- import { u as jl } from "./useTimeLabelCollider-CIsgDrl9.js";
12
- import ql from "./img-BecE5qXd.js";
13
- import Yl from "./Title-Bb1VWCtR.js";
14
- import { t as Ql } from "./themes-DH-N_ePR.js";
15
- import { S as Jl } from "./SlicerPreview-wXjV4LWO.js";
16
- import { _ as Kl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
17
- const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "width", "height"], la = { key: 1 }, aa = ["id"], oa = ["stop-color"], sa = ["stop-color"], ua = ["stop-color"], ia = ["id"], na = ["stop-color"], ra = ["stop-color"], va = ["stop-color"], da = { key: 0 }, ca = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ya = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ha = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], ma = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], pa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], fa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ga = ["x", "y", "font-size", "fill", "font-weight"], xa = ["transform", "text-anchor", "font-size", "fill", "font-weight"], ba = ["transform", "text-anchor", "font-size", "fill", "font-weight"], ka = ["x", "y", "width", "height", "fill", "rx"], wa = { key: 0 }, Aa = ["cx", "cy", "r", "fill"], $a = ["cx", "cy", "r", "fill"], Ca = { key: 1 }, _a = ["x", "y", "width", "height", "rx", "fill"], za = ["x", "y", "width", "height", "fill", "rx"], Sa = ["x", "y", "height", "width", "fill", "rx"], La = ["x", "y", "height", "width", "fill", "rx", "stroke", "stroke-width"], Ta = ["d", "stroke"], Fa = ["x", "y", "height", "width", "fill", "onMouseover", "onMouseleave", "onClick"], Ia = ["data-start", "data-end"], Ma = {
1
+ import { defineAsyncComponent as j, computed as d, ref as y, toRefs as Dl, watch as se, shallowRef as kt, onMounted as Ml, onBeforeUnmount as Ee, watchEffect as Il, nextTick as wt, createElementBlock as i, openBlock as u, normalizeStyle as ue, normalizeClass as V, createBlock as K, createCommentVNode as m, createElementVNode as g, createVNode as Re, unref as h, withCtx as b, renderSlot as x, normalizeProps as T, guardReactiveProps as D, createSlots as Ct, Fragment as z, renderList as M, toDisplayString as ie, mergeProps as At, resolveDynamicComponent as Bl, createTextVNode as $t } from "vue";
2
+ import { c as El, t as Rl, W as ge, o as Ft, g as J, F as Ol, M as H, K as Pl, d as U, X as Nl, h as fe, s as Vl, Y as _t, u as Ul, q as Wl, x as Xl, R as jl } from "./lib-C5BH09_g.js";
3
+ import { t as zt, u as Hl } from "./useResponsive-DfdjqQps.js";
4
+ import { u as Gl, a as Oe } from "./useNestedProp-CWo6bftQ.js";
5
+ import { u as ql } from "./usePrinter-DCJzEiS8.js";
6
+ import { u as Yl, B as Kl } from "./BaseScanner-BgWxam9d.js";
7
+ import { u as Lt, a as Jl, l as Ql } from "./useTimeLabels-C5qMhpbe.js";
8
+ import { u as Zl } from "./useSvgExport-DrjCWun4.js";
9
+ import { u as eo } from "./useThemeCheck-DGJ31Vi5.js";
10
+ import { u as to } from "./useUserOptionState-BIvW1Kz7.js";
11
+ import { u as lo } from "./useChartAccessibility-9icAAmYg.js";
12
+ import { u as oo } from "./useTimeLabelCollider-CIsgDrl9.js";
13
+ import ao from "./img-DUzJeMlr.js";
14
+ import so from "./Title-DfFUb9hd.js";
15
+ import { S as uo } from "./SlicerPreview-D76aSViW.js";
16
+ import { _ as io } from "./_plugin-vue_export-helper-CHgC5LLL.js";
17
+ const St = { style: { backgroundColor: "#1A1A1A", color: "#CCCCCC", layout: { selector: { color: "#CCCCCC" }, grid: { stroke: "#5A5A5A", xAxis: { dataLabels: { color: "#CCCCCC" } }, yAxis: { dataLabels: { color: "#CCCCCC" } } }, wick: { stroke: "#5A5A5A", extremity: { color: "#5A5A5A" } }, candle: { stroke: "#1A1A1A" } }, zoom: { color: "#4A4A4A", highlightColor: "#9A9A9A", minimap: { selectedColor: "#8A8A8A", lineColor: "#424242", indicatorColor: "#CCCCCC" } }, title: { color: "#CCCCCC", subtitle: { color: "#757575" } }, tooltip: { backgroundColor: "#1A1A1A", backgroundOpacity: 70, color: "#CCCCCC", borderColor: "#5A5A5A" } }, table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td: { backgroundColor: "#1A1A1A", color: "#CCCCCC" } } }, Tt = { style: { backgroundColor: "#FFF8E1", color: "#424242", layout: { selector: { color: "#424242" }, grid: { stroke: "#5D4037", xAxis: { dataLabels: { color: "#424242" } }, yAxis: { dataLabels: { color: "#424242" } } }, wick: { stroke: "#5D4037", extremity: { color: "#5D4037" } }, candle: { stroke: "#FFF8E1", colors: { bullish: "#D32F2F", bearish: "#F57C00" }, gradient: { show: !1 } } }, zoom: { color: "#5D4037", highlightColor: "#FF8A65" }, title: { color: "#424242", subtitle: { color: "#757575" } }, tooltip: { backgroundColor: "#FFECB3", backgroundOpacity: 30, color: "#424242", borderColor: "#FF8A65" } }, table: { th: { backgroundColor: "#FFF8E1", color: "#424242" }, td: { backgroundColor: "#FFF8E1", color: "#424242" } } }, Dt = { style: { backgroundColor: "#1E1E1E", color: "#BDBDBD", layout: { selector: { color: "#FFF8E1" }, grid: { stroke: "#5D4037", xAxis: { dataLabels: { color: "#BDBDBD" } }, yAxis: { dataLabels: { color: "#BDBDBD" } } }, wick: { stroke: "#BDBDBD", extremity: { color: "#BDBDBD" } }, candle: { stroke: "#1E1E1E", colors: { bullish: "#D32F2F", bearish: "#F57C00" }, gradient: { show: !1 } } }, zoom: { color: "#5D4037", highlightColor: "#FF8A65" }, title: { color: "#FFF8E1", subtitle: { color: "#BDBDBD" } }, tooltip: { backgroundColor: "#1E1E1E", backgroundOpacity: 30, color: "#FFF8E1", borderColor: "#FF8A65" } }, table: { th: { backgroundColor: "#1E1E1E", color: "#BDBDBD" }, td: { backgroundColor: "#1E1E1E", color: "#BDBDBD" } } }, Mt = { style: { backgroundColor: "#1A1A1A", color: "#99AA99", layout: { selector: { color: "#7DA9B5" }, grid: { stroke: "#334C33", xAxis: { dataLabels: { color: "#99CC99" } }, yAxis: { dataLabels: { color: "#99CC99" } } }, wick: { stroke: "#334C33", extremity: { color: "#334C33" } }, candle: { stroke: "#1A1A1A", colors: { bullish: "#00FF00", bearish: "#334C33" }, gradient: { show: !1 } } }, zoom: { color: "#5F6A5F", highlightColor: "#66CC66" }, title: { color: "#66CC66", subtitle: { color: "#99AA99" } }, tooltip: { backgroundColor: "#2A2F2A", color: "#AACCAA", borderColor: "#66CC66" } }, table: { th: { backgroundColor: "#1A1A1A", color: "#99AA99" }, td: { backgroundColor: "#1A1A1A", color: "#AACCAA" } } }, It = { style: { backgroundColor: "#fbfafa", color: "#8A9892", layout: { selector: { color: "#8F837A" }, grid: { stroke: "transparent", xAxis: { dataLabels: { color: "#8A9892" } }, yAxis: { dataLabels: { color: "#8A9892" } } }, wick: { stroke: "#D7E0D2", extremity: { shape: "circle", size: 2, color: "#C5B8A7" } }, candle: { stroke: "#fbfafa", colors: { bullish: "#A0AC94", bearish: "#C09E85" }, gradient: { show: !0 } } }, zoom: { color: "#E0CFC3", highlightColor: "#8F837A" }, title: { color: "#8A9892", subtitle: { color: "#99AA99" } }, tooltip: { backgroundColor: "#fbfafa", color: "#8A9892" } }, table: { th: { backgroundColor: "#fbfafa", color: "#8F837A" }, td: { backgroundColor: "#fbfafa", color: "#8F837A" } } }, Bt = { style: { backgroundColor: "#f6f6fb", color: "#50606C", layout: { selector: { color: "#7DA9B5" }, grid: { stroke: "#334C33", xAxis: { dataLabels: { color: "#61747E" } }, yAxis: { dataLabels: { color: "#61747E" } } }, wick: { stroke: "#61747E", extremity: { color: "#61747E" } }, candle: { stroke: "#1A1A1A", colors: { bullish: "#92B0AB", bearish: "#EFECEC" }, gradient: { show: !1 } } }, zoom: { color: "#92B0AB", highlightColor: "#50606C" }, title: { color: "#50606C", subtitle: { color: "#718890" } }, tooltip: { backgroundColor: "#f6f6fb", color: "#50606C" } }, table: { th: { backgroundColor: "#f6f6fb", color: "#50606C" }, td: { backgroundColor: "#f6f6fb", color: "#50606C" } } }, Et = {
18
+ default: {},
19
+ dark: St,
20
+ celebration: Tt,
21
+ celebrationNight: Dt,
22
+ hack: Mt,
23
+ zen: It,
24
+ concrete: Bt
25
+ }, va = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
26
+ __proto__: null,
27
+ celebration: Tt,
28
+ celebrationNight: Dt,
29
+ concrete: Bt,
30
+ dark: St,
31
+ default: Et,
32
+ hack: Mt,
33
+ zen: It
34
+ }, Symbol.toStringTag, { value: "Module" })), no = ["id"], ro = ["xmlns", "aria-label", "viewBox"], co = ["x", "y", "width", "height"], vo = { key: 1 }, yo = ["id"], ho = ["stop-color"], mo = ["stop-color"], go = ["stop-color"], fo = ["id"], po = ["stop-color"], bo = ["stop-color"], xo = ["stop-color"], ko = { key: 0 }, wo = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Co = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ao = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], $o = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Fo = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], _o = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], zo = ["x", "y", "font-size", "fill", "font-weight"], Lo = ["transform", "text-anchor", "font-size", "fill", "font-weight"], So = ["transform", "text-anchor", "font-size", "fill", "font-weight"], To = ["x", "y", "width", "height", "fill", "rx"], Do = { key: 0 }, Mo = ["cx", "cy", "r", "fill"], Io = ["cx", "cy", "r", "fill"], Bo = { key: 1 }, Eo = ["x", "y", "width", "height", "rx", "fill"], Ro = ["x", "y", "width", "height", "fill", "rx"], Oo = ["x", "y", "height", "width", "fill", "rx"], Po = ["x", "y", "height", "width", "fill", "rx", "stroke", "stroke-width"], No = ["d", "stroke"], Vo = ["x", "y", "height", "width", "fill", "onMouseover", "onMouseleave", "onClick"], Uo = ["data-start", "data-end"], Wo = {
18
35
  key: 4,
19
36
  class: "vue-data-ui-watermark"
20
- }, Ra = ["d", "stroke"], Oa = ["d", "stroke", "stroke-width"], Da = ["innerHTML"], Pa = {
37
+ }, Xo = ["d", "stroke"], jo = ["d", "stroke", "stroke-width"], Ho = ["innerHTML"], Go = {
21
38
  __name: "vue-ui-candlestick",
22
39
  props: {
23
40
  config: {
@@ -38,14 +55,14 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
38
55
  }
39
56
  },
40
57
  emits: ["selectX"],
41
- setup(Tt, { expose: Ft, emit: It }) {
42
- const Mt = H(() => import("./BaseIcon-DLFL0M4-.js")), Rt = H(() => import("./Tooltip-oWCO1HKy.js")), Ot = H(() => import("./vue-ui-accordion-SSLXLlNz.js")), Dt = H(() => import("./DataTable-UCyd_BQI.js")), Pt = H(() => import("./PenAndPaper-BJSMejV9.js")), Bt = H(() => import("./UserOptions-BqmUW9Kp.js")), Nt = H(() => import("./PackageVersion-D_4Hr4S4.js")), Et = H(() => import("./BaseDraggableDialog-DhKIof09.js")), { vue_ui_candlestick: Vt } = Bl(), x = Tt, Be = It, ge = c(() => !!x.dataset && x.dataset.length), D = y(!1), xe = y(null), R = y(zl()), be = y(!1), ke = y(""), P = y(void 0), Ne = y(0), B = y(null), Ee = y(null), Ve = y(null), Z = y(null), Ue = y(null), We = y(null), Ut = y(0), Xe = y(0), He = y(0), we = y(null), ee = y(null), te = y(null), Ae = y(null), Ge = y(null), e = y(ze()), { loading: N, FINAL_DATASET: k, manualLoading: $e } = El({
43
- ...Al(x),
58
+ setup(Rt, { expose: Ot, emit: Pt }) {
59
+ const Nt = j(() => import("./BaseIcon-CofSxalQ.js")), Vt = j(() => import("./Tooltip-WD0Ros6G.js")), Ut = j(() => import("./vue-ui-accordion-DSdZUn2C.js")), Wt = j(() => import("./DataTable-CHaOCmsE.js")), Xt = j(() => import("./PenAndPaper-HCZQTkqi.js")), jt = j(() => import("./UserOptions-B3I-s3Lw.js")), Ht = j(() => import("./PackageVersion-C82JCJOX.js")), Gt = j(() => import("./BaseDraggableDialog-CRF94NJQ.js")), { vue_ui_candlestick: qt } = Gl(), { isThemeValid: Yt, warnInvalidTheme: Kt } = eo(), f = Rt, Pe = Pt, pe = d(() => !!f.dataset && f.dataset.length), E = y(!1), be = y(null), I = y(El()), xe = y(!1), ke = y(""), R = y(void 0), Ne = y(0), O = y(null), Ve = y(null), Ue = y(null), Z = y(null), We = y(null), Xe = y(null), Jt = y(0), je = y(0), He = y(0), we = y(null), ee = y(null), te = y(null), Ce = y(null), Ge = y(null), e = y(_e()), { loading: P, FINAL_DATASET: k, manualLoading: Ae } = Yl({
60
+ ...Dl(f),
44
61
  FINAL_CONFIG: e,
45
- prepareConfig: ze,
62
+ prepareConfig: _e,
46
63
  callback: () => {
47
64
  Promise.resolve().then(async () => {
48
- await ce();
65
+ await de();
49
66
  });
50
67
  },
51
68
  skeletonDataset: [
@@ -62,7 +79,7 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
62
79
  [17304192e5, 890, 2330, 550, 1950, 3770],
63
80
  [17330112e5, 1440, 3770, 890, 3200, 5100]
64
81
  ],
65
- skeletonConfig: Sl({
82
+ skeletonConfig: Rl({
66
83
  defaultConfig: e.value,
67
84
  userConfig: {
68
85
  useCssAnimation: !1,
@@ -109,132 +126,145 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
109
126
  }
110
127
  }
111
128
  })
112
- }), { userOptionsVisible: Ce, setUserOptionsVisibility: je, keepUserOptionState: qe } = Hl({ config: e.value }), { svgRef: _e } = Gl({ config: e.value.style.title });
113
- function Wt() {
114
- je(!0);
129
+ }), { userOptionsVisible: $e, setUserOptionsVisibility: qe, keepUserOptionState: Ye } = to({ config: e.value }), { svgRef: Fe } = lo({ config: e.value.style.title });
130
+ function Qt() {
131
+ qe(!0);
115
132
  }
116
- function Xt() {
117
- je(!1), Be("selectX", { seriesIndex: null, datapoint: null }), P.value = null;
133
+ function Zt() {
134
+ qe(!1), Pe("selectX", { seriesIndex: null, datapoint: null }), R.value = null;
118
135
  }
119
- function ze() {
120
- const t = St({
121
- userConfig: x.config,
122
- defaultConfig: Vt
136
+ function _e() {
137
+ const t = Oe({
138
+ userConfig: f.config,
139
+ defaultConfig: qt
123
140
  });
124
- let a = {};
125
- return t.theme ? a = {
126
- ...St({
127
- userConfig: Ql.vue_ui_candlestick[t.theme] || x.config,
128
- defaultConfig: t
129
- })
130
- } : a = t, x.config && pe(x.config, "style.zoom.startIndex") ? a.style.zoom.startIndex = x.config.style.zoom.startIndex : a.style.zoom.startIndex = null, x.config && pe(x.config, "style.zoom.endIndex") ? a.style.zoom.endIndex = x.config.style.zoom.endIndex : a.style.zoom.endIndex = null, x.config && pe(x.config, "style.layout.grid.yAxis.scale.min") ? a.style.layout.grid.yAxis.scale.min = x.config.style.layout.grid.yAxis.scale.min : a.style.layout.grid.yAxis.scale.min = null, x.config && pe(x.config, "style.layout.grid.yAxis.scale.max") ? a.style.layout.grid.yAxis.scale.max = x.config.style.layout.grid.yAxis.scale.max : a.style.layout.grid.yAxis.scale.max = null, a;
141
+ let o = {};
142
+ const l = t.theme;
143
+ if (l)
144
+ if (!Yt.value(t))
145
+ Kt(t), o = t;
146
+ else {
147
+ const a = Oe({
148
+ userConfig: Et[l] || f.config,
149
+ defaultConfig: t
150
+ });
151
+ o = {
152
+ ...Oe({
153
+ userConfig: f.config,
154
+ defaultConfig: a
155
+ })
156
+ };
157
+ }
158
+ else
159
+ o = t;
160
+ return f.config && ge(f.config, "style.zoom.startIndex") ? o.style.zoom.startIndex = f.config.style.zoom.startIndex : o.style.zoom.startIndex = null, f.config && ge(f.config, "style.zoom.endIndex") ? o.style.zoom.endIndex = f.config.style.zoom.endIndex : o.style.zoom.endIndex = null, f.config && ge(f.config, "style.layout.grid.yAxis.scale.min") ? o.style.layout.grid.yAxis.scale.min = f.config.style.layout.grid.yAxis.scale.min : o.style.layout.grid.yAxis.scale.min = null, f.config && ge(f.config, "style.layout.grid.yAxis.scale.max") ? o.style.layout.grid.yAxis.scale.max = f.config.style.layout.grid.yAxis.scale.max : o.style.layout.grid.yAxis.scale.max = null, o;
131
161
  }
132
- se(() => x.config, (t) => {
133
- N.value || (e.value = ze()), Ce.value = !e.value.userOptions.showOnChartHover, Ye(), Ut.value += 1, He.value += 1, Xe.value += 1, L.value.showTable = e.value.table.show, L.value.showTooltip = e.value.style.tooltip.show, ne();
134
- }, { deep: !0 }), se(() => x.dataset, (t) => {
135
- Array.isArray(t) && t.length > 0 && ($e.value = !1), vt();
162
+ se(() => f.config, (t) => {
163
+ P.value || (e.value = _e()), $e.value = !e.value.userOptions.showOnChartHover, Ke(), Jt.value += 1, He.value += 1, je.value += 1, L.value.showTable = e.value.table.show, L.value.showTooltip = e.value.style.tooltip.show, ne();
164
+ }, { deep: !0 }), se(() => f.dataset, (t) => {
165
+ Array.isArray(t) && t.length > 0 && (Ae.value = !1), vt();
136
166
  }, { deep: !0 });
137
- const f = y({
167
+ const p = y({
138
168
  height: e.value.style.height,
139
169
  width: e.value.style.width,
140
170
  xAxisFontSize: e.value.style.layout.grid.xAxis.dataLabels.fontSize,
141
171
  yAxisFontSize: e.value.style.layout.grid.yAxis.dataLabels.fontSize
142
- }), W = bt(null), K = bt(null);
143
- $l(() => {
144
- Ye();
172
+ }), W = kt(null), Q = kt(null);
173
+ Ml(() => {
174
+ Ke();
145
175
  });
146
- const j = c(() => !!e.value.debug);
147
- function Ye() {
148
- if (Ct(x.dataset) && (J({
176
+ const G = d(() => !!e.value.debug);
177
+ function Ke() {
178
+ if (Ft(f.dataset) && (J({
149
179
  componentName: "VueUiCandlestick",
150
180
  type: "dataset",
151
- debug: j.value
152
- }), $e.value = !0), Ct(x.dataset) || ($e.value = e.value.loading), setTimeout(() => {
153
- D.value = !0;
181
+ debug: G.value
182
+ }), Ae.value = !0), Ft(f.dataset) || (Ae.value = e.value.loading), setTimeout(() => {
183
+ E.value = !0;
154
184
  }, 10), e.value.responsive) {
155
- const a = zt(() => {
156
- D.value = !1;
157
- const { width: l, height: o } = Pl({
158
- chart: B.value,
159
- title: e.value.style.title.text ? Ee.value : null,
160
- slicer: e.value.style.zoom.show && $.value > 6 ? Z.value.$el : null,
161
- legend: Ve.value,
162
- source: Ue.value,
163
- noTitle: We.value
185
+ const o = zt(() => {
186
+ E.value = !1;
187
+ const { width: l, height: a } = Hl({
188
+ chart: O.value,
189
+ title: e.value.style.title.text ? Ve.value : null,
190
+ slicer: e.value.style.zoom.show && A.value > 6 ? Z.value.$el : null,
191
+ legend: Ue.value,
192
+ source: We.value,
193
+ noTitle: Xe.value
164
194
  });
165
195
  requestAnimationFrame(() => {
166
- f.value.width = l, f.value.height = o - 12, e.value.responsiveProportionalSizing ? (f.value.xAxisFontSize = _t({
167
- relator: Math.min(l, o),
196
+ p.value.width = l, p.value.height = a - 12, e.value.responsiveProportionalSizing ? (p.value.xAxisFontSize = _t({
197
+ relator: Math.min(l, a),
168
198
  adjuster: e.value.style.width,
169
199
  source: e.value.style.layout.grid.xAxis.dataLabels.fontSize,
170
200
  threshold: 6,
171
201
  fallback: 6
172
- }), f.value.yAxisFontSize = _t({
173
- relator: Math.min(l, o),
202
+ }), p.value.yAxisFontSize = _t({
203
+ relator: Math.min(l, a),
174
204
  adjuster: e.value.style.width,
175
205
  source: e.value.style.layout.grid.yAxis.dataLabels.fontSize,
176
206
  threshold: 6,
177
207
  fallback: 6
178
- })) : (f.value.xAxisFontSize = e.value.style.layout.grid.xAxis.dataLabels.fontSize, f.value.yAxisFontSize = e.value.style.layout.grid.yAxis.dataLabels.fontSize), xe.value && clearTimeout(xe.value), xe.value = setTimeout(() => {
179
- D.value = !0;
208
+ })) : (p.value.xAxisFontSize = e.value.style.layout.grid.xAxis.dataLabels.fontSize, p.value.yAxisFontSize = e.value.style.layout.grid.yAxis.dataLabels.fontSize), be.value && clearTimeout(be.value), be.value = setTimeout(() => {
209
+ E.value = !0;
180
210
  }, 10);
181
211
  });
182
212
  });
183
- W.value && (K.value && W.value.unobserve(K.value), W.value.disconnect()), W.value = new ResizeObserver(a), K.value = B.value.parentNode, W.value.observe(K.value);
213
+ W.value && (Q.value && W.value.unobserve(Q.value), W.value.disconnect()), W.value = new ResizeObserver(o), Q.value = O.value.parentNode, W.value.observe(Q.value);
184
214
  }
185
- ce();
215
+ de();
186
216
  }
187
- De(() => {
188
- W.value && (K.value && W.value.unobserve(K.value), W.value.disconnect());
217
+ Ee(() => {
218
+ W.value && (Q.value && W.value.unobserve(Q.value), W.value.disconnect());
189
219
  });
190
- const { isPrinting: Qe, isImaging: Je, generatePdf: Ke, generateImage: Ze } = Nl({
191
- elementId: `vue-ui-candlestick_${R.value}`,
220
+ const { isPrinting: Je, isImaging: Qe, generatePdf: Ze, generateImage: et } = ql({
221
+ elementId: `vue-ui-candlestick_${I.value}`,
192
222
  fileName: e.value.style.title.text || "vue-ui-candlestick",
193
223
  options: e.value.userOptions.print
194
- }), Ht = c(() => e.value.userOptions.show && !e.value.style.title.text), L = y({
224
+ }), el = d(() => e.value.userOptions.show && !e.value.style.title.text), L = y({
195
225
  showTable: e.value.table.show,
196
226
  showTooltip: e.value.style.tooltip.show
197
- }), Se = y(0), Gt = zt((t) => {
198
- Se.value = t;
227
+ }), ze = y(0), tl = zt((t) => {
228
+ ze.value = t;
199
229
  }, 100);
200
- Cl((t) => {
201
- const a = ee.value;
202
- if (!a) return;
203
- const l = new ResizeObserver((o) => {
204
- Gt(o[0].contentRect.height);
230
+ Il((t) => {
231
+ const o = ee.value;
232
+ if (!o) return;
233
+ const l = new ResizeObserver((a) => {
234
+ tl(a[0].contentRect.height);
205
235
  });
206
- l.observe(a), t(() => l.disconnect());
207
- }), De(() => {
208
- Se.value = 0;
236
+ l.observe(o), t(() => l.disconnect());
237
+ }), Ee(() => {
238
+ ze.value = 0;
209
239
  });
210
- const et = c(() => {
240
+ const tt = d(() => {
211
241
  let t = 0;
212
- return ee.value && (t = Se.value + f.value.xAxisFontSize), t;
242
+ return ee.value && (t = ze.value + p.value.xAxisFontSize), t;
213
243
  });
214
- function jt() {
244
+ function ll() {
215
245
  let t = e.value.style.layout.grid.yAxis.dataLabels.offsetX;
216
- return we.value && (t = Array.from(we.value.querySelectorAll("text")).reduce((o, s) => {
217
- const v = s.getComputedTextLength();
218
- return v > o ? v : o;
246
+ return we.value && (t = Array.from(we.value.querySelectorAll("text")).reduce((a, s) => {
247
+ const c = s.getComputedTextLength();
248
+ return c > a ? c : a;
219
249
  }, 0)), t + 13;
220
250
  }
221
- const n = c(() => {
222
- const { top: t, right: a, bottom: l, left: o } = e.value.style.layout.padding, s = jt(), v = 12;
251
+ const n = d(() => {
252
+ const { top: t, right: o, bottom: l, left: a } = e.value.style.layout.padding, s = ll(), c = 12;
223
253
  return {
224
- top: t + v,
225
- right: f.value.width - a,
226
- left: o + s,
227
- bottom: f.value.height - l - et.value,
228
- width: f.value.width - o - a - s,
229
- height: f.value.height - t - l - et.value - v
254
+ top: t + c,
255
+ right: p.value.width - o,
256
+ left: a + s,
257
+ bottom: p.value.height - l - tt.value,
258
+ width: p.value.width - a - o - s,
259
+ height: p.value.height - t - l - tt.value - c
230
260
  };
231
- }), qt = c(() => {
232
- const { left: t, top: a, width: l, height: o } = n.value, s = r.value.start, w = r.value.end - s, T = l / w, z = A.value.start - s, X = A.value.end - s, Y = Math.max(0, Math.min(w, z)), me = Math.max(0, Math.min(w, X));
261
+ }), ol = d(() => {
262
+ const { left: t, top: o, width: l, height: a } = n.value, s = r.value.start, w = r.value.end - s, S = l / w, _ = C.value.start - s, X = C.value.end - s, Y = Math.max(0, Math.min(w, _)), me = Math.max(0, Math.min(w, X));
233
263
  return {
234
- x: t + Y * T,
235
- y: a,
236
- width: (me - Y) * T,
237
- height: o,
264
+ x: t + Y * S,
265
+ y: o,
266
+ width: (me - Y) * S,
267
+ height: a,
238
268
  fill: e.value.style.zoom.preview.fill,
239
269
  stroke: e.value.style.zoom.preview.stroke,
240
270
  "stroke-width": e.value.style.zoom.preview.strokeWidth,
@@ -247,59 +277,59 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
247
277
  animation: "none !important"
248
278
  }
249
279
  };
250
- }), $ = c(() => k.value.length), r = y({
280
+ }), A = d(() => k.value.length), r = y({
251
281
  start: 0,
252
- end: $.value
253
- }), A = y({ start: 0, end: $.value }), tt = c(() => e.value.style.zoom.preview.enable && (A.value.start !== r.value.start || A.value.end !== r.value.end));
254
- function lt(t, a) {
255
- A.value[t] = a;
282
+ end: A.value
283
+ }), C = y({ start: 0, end: A.value }), lt = d(() => e.value.style.zoom.preview.enable && (C.value.start !== r.value.start || C.value.end !== r.value.end));
284
+ function ot(t, o) {
285
+ C.value[t] = o;
256
286
  }
257
287
  function ne() {
258
- let t = Math.max(0, Math.min(r.value.start ?? 0, $.value - 1)), a = Math.max(t + 1, Math.min(r.value.end ?? $.value, $.value));
259
- (!Number.isFinite(t) || !Number.isFinite(a) || a <= t) && (t = 0, a = $.value), r.value.start = t, r.value.end = a, A.value.start = t, A.value.end = a, Z.value && (Z.value.setStartValue(t), Z.value.setEndValue(a));
288
+ let t = Math.max(0, Math.min(r.value.start ?? 0, A.value - 1)), o = Math.max(t + 1, Math.min(r.value.end ?? A.value, A.value));
289
+ (!Number.isFinite(t) || !Number.isFinite(o) || o <= t) && (t = 0, o = A.value), r.value.start = t, r.value.end = o, C.value.start = t, C.value.end = o, Z.value && (Z.value.setStartValue(t), Z.value.setEndValue(o));
260
290
  }
261
- const at = c(() => k.value.map((t, a) => ({
291
+ const at = d(() => k.value.map((t, o) => ({
262
292
  ...t,
263
- absoluteIndex: a
264
- }))), ot = c(() => at.value.slice(r.value.start, r.value.end)), _ = c(() => (k.value.forEach((t, a) => {
293
+ absoluteIndex: o
294
+ }))), st = d(() => at.value.slice(r.value.start, r.value.end)), F = d(() => (k.value.forEach((t, o) => {
265
295
  [null, void 0].includes(t[0]) && J({
266
296
  componentName: "VueUiCandlestick",
267
297
  type: "datasetAttribute",
268
298
  property: "period (index 0)",
269
- index: a,
270
- debug: j.value
299
+ index: o,
300
+ debug: G.value
271
301
  }), [null, void 0].includes(t[1]) && J({
272
302
  componentName: "VueUiCandlestick",
273
303
  type: "datasetAttribute",
274
304
  property: "open (index 1)",
275
- index: a,
276
- debug: j.value
305
+ index: o,
306
+ debug: G.value
277
307
  }), [null, void 0].includes(t[2]) && J({
278
308
  componentName: "VueUiCandlestick",
279
309
  type: "datasetAttribute",
280
310
  property: "high (index 2)",
281
- index: a,
282
- debug: j.value
311
+ index: o,
312
+ debug: G.value
283
313
  }), [null, void 0].includes(t[3]) && J({
284
314
  componentName: "VueUiCandlestick",
285
315
  type: "datasetAttribute",
286
316
  property: "low (index 3)",
287
- index: a,
288
- debug: j.value
317
+ index: o,
318
+ debug: G.value
289
319
  }), [null, void 0].includes(t[4]) && J({
290
320
  componentName: "VueUiCandlestick",
291
321
  type: "datasetAttribute",
292
322
  property: "close (index 4)",
293
- index: a,
294
- debug: j.value
323
+ index: o,
324
+ debug: G.value
295
325
  }), [null, void 0].includes(t[5]) && J({
296
326
  componentName: "VueUiCandlestick",
297
327
  type: "datasetAttribute",
298
328
  property: "volume (index 5)",
299
- index: a,
300
- debug: j.value
329
+ index: o,
330
+ debug: G.value
301
331
  });
302
- }), ot.value.map((t) => ({
332
+ }), st.value.map((t) => ({
303
333
  absoluteIndex: t.absoluteIndex,
304
334
  period: t[0],
305
335
  open: t[1],
@@ -307,7 +337,7 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
307
337
  low: t[3],
308
338
  close: t[4],
309
339
  volume: t[5]
310
- })))), Yt = c(() => at.value.map((t) => ({
340
+ })))), al = d(() => at.value.map((t) => ({
311
341
  absoluteIndex: t.absoluteIndex,
312
342
  period: t[0],
313
343
  open: t[1],
@@ -315,42 +345,42 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
315
345
  low: t[3],
316
346
  close: t[4],
317
347
  volume: t[5]
318
- }))), d = c(() => n.value.width / ot.value.length), st = c(() => {
319
- const t = e.value.style.layout.grid.yAxis.scale.max === null ? Math.max(..._.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;
348
+ }))), v = d(() => n.value.width / st.value.length), ut = d(() => {
349
+ 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, o = e.value.style.layout.grid.yAxis.scale.min === null ? 0 : e.value.style.layout.grid.yAxis.scale.min;
320
350
  return {
321
351
  max: t,
322
- min: a
352
+ min: o
323
353
  };
324
- }), O = c(() => Ll(st.value.min, st.value.max, e.value.style.layout.grid.yAxis.dataLabels.steps));
325
- function re(t, a, l = null, o = null) {
354
+ }), B = d(() => Ol(ut.value.min, ut.value.max, e.value.style.layout.grid.yAxis.dataLabels.steps));
355
+ function re(t, o, l = null, a = null) {
326
356
  return {
327
357
  ...t,
328
- x: G(n.value.left + a * d.value + d.value / 2),
329
- y: G(n.value.top + (1 - (t - O.value.min) / (O.value.max - O.value.min)) * n.value.height),
330
- value: G(t),
358
+ x: H(n.value.left + o * v.value + v.value / 2),
359
+ y: H(n.value.top + (1 - (t - B.value.min) / (B.value.max - B.value.min)) * n.value.height),
360
+ value: H(t),
331
361
  isMax: t === l,
332
- isMin: t === o
362
+ isMin: t === a
333
363
  };
334
364
  }
335
- const C = c(() => {
365
+ const $ = d(() => {
336
366
  const t = {
337
- o: Math.max(..._.value.map((s) => s.open)),
338
- h: Math.max(..._.value.map((s) => s.high)),
339
- l: Math.max(..._.value.map((s) => s.low)),
340
- c: Math.max(..._.value.map((s) => s.low))
341
- }, a = {
342
- o: Math.min(..._.value.map((s) => s.open)),
343
- h: Math.min(..._.value.map((s) => s.high)),
344
- l: Math.min(..._.value.map((s) => s.low)),
345
- c: Math.min(..._.value.map((s) => s.low))
346
- }, l = Math.max(..._.value.map((s) => s.volume)), o = Math.min(..._.value.map((s) => s.volume));
347
- return _.value.map((s, v) => {
348
- const w = re(s.open, v, t.o, a.o), T = re(s.high, v, t.h, a.h), z = re(s.low, v, t.l, a.l), X = re(s.close, v, t.c, a.c), Y = s.close > s.open, me = s.volume === l, Me = s.volume === o;
367
+ o: Math.max(...F.value.map((s) => s.open)),
368
+ h: Math.max(...F.value.map((s) => s.high)),
369
+ l: Math.max(...F.value.map((s) => s.low)),
370
+ c: Math.max(...F.value.map((s) => s.low))
371
+ }, o = {
372
+ o: Math.min(...F.value.map((s) => s.open)),
373
+ h: Math.min(...F.value.map((s) => s.high)),
374
+ l: Math.min(...F.value.map((s) => s.low)),
375
+ c: Math.min(...F.value.map((s) => s.low))
376
+ }, l = Math.max(...F.value.map((s) => s.volume)), a = Math.min(...F.value.map((s) => s.volume));
377
+ return F.value.map((s, c) => {
378
+ const w = re(s.open, c, t.o, o.o), S = re(s.high, c, t.h, o.h), _ = re(s.low, c, t.l, o.l), X = re(s.close, c, t.c, o.c), Y = s.close > s.open, me = s.volume === l, Me = s.volume === a;
349
379
  return {
350
380
  period: s.period,
351
381
  open: w,
352
- high: T,
353
- low: z,
382
+ high: S,
383
+ low: _,
354
384
  close: X,
355
385
  volume: s.volume,
356
386
  isBullish: Y,
@@ -360,250 +390,250 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
360
390
  };
361
391
  });
362
392
  });
363
- function ve({ item: t, index: a, minimapH: l, unitW: o }) {
364
- const s = e.value.style.layout.grid.yAxis.scale.min ?? 0, v = e.value.style.layout.grid.yAxis.scale.max ?? Math.max(...k.value.map((w) => w[2]));
393
+ function ce({ item: t, index: o, minimapH: l, unitW: a }) {
394
+ const s = e.value.style.layout.grid.yAxis.scale.min ?? 0, c = e.value.style.layout.grid.yAxis.scale.max ?? Math.max(...k.value.map((w) => w[2]));
365
395
  return {
366
396
  ...t,
367
- x: G(a * o),
368
- y: G((1 - (t - s) / (v - s)) * l),
369
- value: G(t)
397
+ x: H(o * a),
398
+ y: H((1 - (t - s) / (c - s)) * l),
399
+ value: H(t)
370
400
  };
371
401
  }
372
- const Qt = c(() => ({ minimapH: t, unitW: a }) => Yt.value.map((l, o) => {
373
- const s = ve({ item: l.open, index: o, minimapH: t, unitW: a }), v = ve({ item: l.high, index: o, minimapH: t, unitW: a }), w = ve({ item: l.low, index: o, minimapH: t, unitW: a }), T = ve({ item: l.close, index: o, minimapH: t, unitW: a }), z = l.close > l.open;
402
+ const sl = d(() => ({ minimapH: t, unitW: o }) => al.value.map((l, a) => {
403
+ const s = ce({ item: l.open, index: a, minimapH: t, unitW: o }), c = ce({ item: l.high, index: a, minimapH: t, unitW: o }), w = ce({ item: l.low, index: a, minimapH: t, unitW: o }), S = ce({ item: l.close, index: a, minimapH: t, unitW: o }), _ = l.close > l.open;
374
404
  return {
375
405
  period: l.period,
376
406
  open: s,
377
- high: v,
407
+ high: c,
378
408
  low: w,
379
- close: T,
409
+ close: S,
380
410
  volume: l.volume,
381
- isBullish: z,
411
+ isBullish: _,
382
412
  absoluteIndex: l.absoluteIndex
383
413
  };
384
- })), Jt = c(() => e.value.style.zoom.minimap.show ? [{
414
+ })), ul = d(() => e.value.style.zoom.minimap.show ? [{
385
415
  name: "",
386
416
  series: k.value.map((t) => t[2]),
387
417
  color: "#000000",
388
418
  isVisible: !0
389
419
  }] : []);
390
- function Kt(t) {
391
- return G((t - O.value.min) / (O.value.max - O.value.min));
420
+ function il(t) {
421
+ return H((t - B.value.min) / (B.value.max - B.value.min));
392
422
  }
393
- const ut = c(() => O.value.ticks.map((t) => ({
394
- y: n.value.bottom - n.value.height * Kt(t),
395
- value: G(t)
396
- }))), Zt = c(() => _.value.map((t) => t.period)), E = c(() => Lt({
423
+ const it = d(() => B.value.ticks.map((t) => ({
424
+ y: n.value.bottom - n.value.height * il(t),
425
+ value: H(t)
426
+ }))), nl = d(() => F.value.map((t) => t.period)), N = d(() => Lt({
397
427
  values: k.value.map((t) => t[0]),
398
428
  maxDatapoints: k.value.length,
399
429
  formatter: e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter,
400
430
  start: r.value.start,
401
431
  end: r.value.end
402
- })), it = c(() => Lt({
432
+ })), nt = d(() => Lt({
403
433
  values: k.value.map((t) => t[0]),
404
434
  maxDatapoints: k.value.length,
405
435
  formatter: e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter,
406
436
  start: 0,
407
- end: $.value
408
- })), el = c(() => {
437
+ end: A.value
438
+ })), rl = d(() => {
409
439
  const t = e.value.style.layout.grid.xAxis.dataLabels.modulo;
410
- return E.value.length ? Math.min(t, [...new Set(E.value.map((a) => a.text))].length) : t;
411
- }), nt = c(() => {
412
- const t = e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter, a = Ul({
440
+ return N.value.length ? Math.min(t, [...new Set(N.value.map((o) => o.text))].length) : t;
441
+ }), rt = d(() => {
442
+ const t = e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter, o = Jl({
413
443
  useUTC: t.useUTC,
414
- locale: Wl[t.locale] || { months: [], shortMonths: [], days: [], shortDays: [] },
444
+ locale: Ql[t.locale] || { months: [], shortMonths: [], days: [], shortDays: [] },
415
445
  januaryAsYear: t.januaryAsYear
416
446
  });
417
- return (l, o) => {
418
- const v = k.value.map((w) => w[0])?.[l];
419
- return v == null ? "" : a.formatDate(new Date(v), o);
447
+ return (l, a) => {
448
+ const c = k.value.map((w) => w[0])?.[l];
449
+ return c == null ? "" : o.formatDate(new Date(c), a);
420
450
  };
421
- }), tl = c(() => (k.value.map((a) => a[0]) || []).map((a, l) => ({
422
- text: nt.value(l, e.value.style.tooltip.timeFormat),
451
+ }), cl = d(() => (k.value.map((o) => o[0]) || []).map((o, l) => ({
452
+ text: rt.value(l, e.value.style.tooltip.timeFormat),
423
453
  absoluteIndex: l
424
- }))), ll = c(() => (k.value.map((a) => a[0]) || []).map((a, l) => ({
425
- text: nt.value(l, e.value.style.zoom.timeFormat),
454
+ }))), vl = d(() => (k.value.map((o) => o[0]) || []).map((o, l) => ({
455
+ text: rt.value(l, e.value.style.zoom.timeFormat),
426
456
  absoluteIndex: l
427
- }))), Le = c(() => {
428
- const t = e.value.style.layout.grid.xAxis.dataLabels, a = E.value || [], l = it.value || [], o = r.value.start ?? 0, s = P.value, v = $.value, w = a.map((z) => z?.text ?? ""), T = l.map((z) => z?.text ?? "");
429
- return Tl(
457
+ }))), Le = d(() => {
458
+ const t = e.value.style.layout.grid.xAxis.dataLabels, o = N.value || [], l = nt.value || [], a = r.value.start ?? 0, s = R.value, c = A.value, w = o.map((_) => _?.text ?? ""), S = l.map((_) => _?.text ?? "");
459
+ return Pl(
430
460
  !!t.showOnlyFirstAndLast,
431
461
  !!t.showOnlyAtModulo,
432
- Math.max(1, el.value || 1),
462
+ Math.max(1, rl.value || 1),
433
463
  w,
434
- T,
435
- o,
464
+ S,
465
+ a,
436
466
  s,
437
- v
467
+ c
438
468
  );
439
- }), rt = c(() => e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? {
440
- start: E.value.find((t) => t.absoluteIndex === r.value.start)?.text ?? "",
441
- end: E.value.find((t) => t.absoluteIndex === r.value.end - 1)?.text ?? ""
469
+ }), ct = d(() => e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? {
470
+ start: N.value.find((t) => t.absoluteIndex === r.value.start)?.text ?? "",
471
+ end: N.value.find((t) => t.absoluteIndex === r.value.end - 1)?.text ?? ""
442
472
  } : {
443
473
  start: k.value[r.value.start] ? k.value[r.value.start][0] : k.value[0][0],
444
474
  end: k.value[r.value.end - 1] ? k.value[r.value.end - 1][0] : k.value.at(-1)[0]
445
- }), Te = y(null);
446
- function al(t, a) {
447
- e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: a, seriesIndex: t + r.value.start });
475
+ }), Se = y(null);
476
+ function dl(t, o) {
477
+ e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: o, seriesIndex: t + r.value.start });
448
478
  }
449
- function ol(t, a) {
450
- e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: a, seriesIndex: t + r.value.start }), P.value = void 0, be.value = !1;
479
+ function yl(t, o) {
480
+ e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: o, seriesIndex: t + r.value.start }), R.value = void 0, xe.value = !1;
451
481
  }
452
- se(() => x.selectedXIndex, (t) => {
453
- if ([null, void 0].includes(x.selectedXIndex)) {
454
- P.value = null;
482
+ se(() => f.selectedXIndex, (t) => {
483
+ if ([null, void 0].includes(f.selectedXIndex)) {
484
+ R.value = null;
455
485
  return;
456
486
  }
457
- const a = t - r.value.start;
458
- a < 0 || t >= r.value.end ? P.value = null : P.value = a ?? null;
487
+ const o = t - r.value.start;
488
+ o < 0 || t >= r.value.end ? R.value = null : R.value = o ?? null;
459
489
  }, { immediate: !0 });
460
- function sl(t, a) {
461
- e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: a, seriesIndex: t + r.value.start }), P.value = t, Te.value = {
462
- datapoint: a,
490
+ function hl(t, o) {
491
+ e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: o, seriesIndex: t + r.value.start }), R.value = t, Se.value = {
492
+ datapoint: o,
463
493
  seriesIndex: t,
464
- series: C.value,
494
+ series: $.value,
465
495
  config: e.value
466
- }, fl({ seriesIndex: t, datapoint: a });
496
+ }, Fl({ seriesIndex: t, datapoint: o });
467
497
  const l = e.value.style.tooltip.customFormat;
468
- if (Ol(l) && Dl(() => l({
498
+ if (Xl(l) && jl(() => l({
469
499
  seriesIndex: t,
470
- datapoint: a,
471
- series: C.value,
500
+ datapoint: o,
501
+ series: $.value,
472
502
  config: e.value
473
503
  })))
474
504
  ke.value = l({
475
505
  seriesIndex: t,
476
- datapoint: a,
477
- series: C.value,
506
+ datapoint: o,
507
+ series: $.value,
478
508
  config: e.value
479
509
  });
480
510
  else if (e.value.style.tooltip.show) {
481
- let o = "";
482
- const { period: s, open: v, high: w, low: T, close: z, volume: X, isBullish: Y } = C.value[t], { period: me, open: Me, high: gl, low: xl, close: bl, volume: kl } = e.value.translations, wl = e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? e.value.style.tooltip.useDefaultTimeFormat ? E.value[t].text : tl.value[t].text : s;
483
- 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}"
484
- fill="${e.value.style.layout.candle.gradient.show ? Y ? `url(#bullish_gradient_${R.value})` : `url(#bearish_gradient_${R.value})` : Y ? e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.colors.bearish}"/></svg>${wl}</div>`, o += `${kl} : <b>${isNaN(X) ? "-" : Number(X.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}">`;
485
- const Re = U({
511
+ let a = "";
512
+ const { period: s, open: c, high: w, low: S, close: _, volume: X, isBullish: Y } = $.value[t], { period: me, open: Me, high: _l, low: zl, close: Ll, volume: Sl } = e.value.translations, Tl = e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? e.value.style.tooltip.useDefaultTimeFormat ? N.value[t].text : cl.value[t].text : s;
513
+ a += `<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}"
514
+ fill="${e.value.style.layout.candle.gradient.show ? Y ? `url(#bullish_gradient_${I.value})` : `url(#bearish_gradient_${I.value})` : Y ? e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.colors.bearish}"/></svg>${Tl}</div>`, a += `${Sl} : <b>${isNaN(X) ? "-" : Number(X.toFixed(e.value.style.tooltip.roundingValue)).toLocaleString()}</b>`, a += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${e.value.style.tooltip.borderColor}">`;
515
+ const Ie = U({
486
516
  p: e.value.style.tooltip.prefix,
487
- v: v.value,
517
+ v: c.value,
488
518
  s: e.value.style.tooltip.suffix,
489
519
  r: e.value.style.tooltip.roundingValue
490
- }), gt = U({
520
+ }), bt = U({
491
521
  p: e.value.style.tooltip.prefix,
492
522
  v: w.value,
493
523
  s: e.value.style.tooltip.suffix,
494
524
  r: e.value.style.tooltip.roundingValue
495
525
  }), xt = U({
496
526
  p: e.value.style.tooltip.prefix,
497
- v: T.value,
527
+ v: S.value,
498
528
  s: e.value.style.tooltip.suffix,
499
529
  r: e.value.style.tooltip.roundingValue
500
- }), Oe = U({
530
+ }), Be = U({
501
531
  p: e.value.style.tooltip.prefix,
502
- v: z.value,
532
+ v: _.value,
503
533
  s: e.value.style.tooltip.suffix,
504
534
  r: e.value.style.tooltip.roundingValue
505
535
  });
506
- e.value.style.tooltip.showChart ? o += `<div style="width:100%;display:flex;align-items:center;justify-content:center;">
536
+ e.value.style.tooltip.showChart ? a += `<div style="width:100%;display:flex;align-items:center;justify-content:center;">
507
537
  <svg viewBox="0 0 100 100" width="100px" style="background: transparent; overflow: visible">
508
538
  <g>
509
- <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" />
510
- ${a.isBullish ? `
539
+ <line x1="50" x2="50" y1="20" y2="80" stroke="${o.isBullish ? e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.colors.bearish}" stroke-width="2" stroke-linecap="round" />
540
+ ${o.isBullish ? `
511
541
  <line x1="45" x2="50" y1="65" y2="65" stroke="${e.value.style.layout.candle.colors.bullish}" stroke-width="1.5" stroke-linecap="round" />
512
542
  <line x1="50" x2="55" y1="35" y2="35" stroke="${e.value.style.layout.candle.colors.bullish}" stroke-width="1.5" stroke-linecap="round" />
513
- <text x="38" y="70" text-anchor="end" fill="${e.value.style.tooltip.color}">${Re}</text>
514
- <text x="62" y="40" text-anchor="start" fill="${e.value.style.tooltip.color}">${Oe}</text>
543
+ <text x="38" y="70" text-anchor="end" fill="${e.value.style.tooltip.color}">${Ie}</text>
544
+ <text x="62" y="40" text-anchor="start" fill="${e.value.style.tooltip.color}">${Be}</text>
515
545
  ` : `
516
546
  <line x1="45" x2="50" y1="35" y2="35" stroke="${e.value.style.layout.candle.colors.bearish}" stroke-width="1.5" stroke-linecap="round" />
517
547
  <line x1="50" x2="55" y1="65" y2="65" stroke="${e.value.style.layout.candle.colors.bearish}" stroke-width="1.5" stroke-linecap="round" />
518
- <text x="40" y="40" text-anchor="end" fill="${e.value.style.tooltip.color}">${Re}</text>
519
- <text x="60" y="70" text-anchor="start" fill="${e.value.style.tooltip.color}">${Oe}</text>
548
+ <text x="40" y="40" text-anchor="end" fill="${e.value.style.tooltip.color}">${Ie}</text>
549
+ <text x="60" y="70" text-anchor="start" fill="${e.value.style.tooltip.color}">${Be}</text>
520
550
  `}
521
- <text x="50" y="13" text-anchor="middle" fill="${e.value.style.tooltip.color}">${gt}</text>
551
+ <text x="50" y="13" text-anchor="middle" fill="${e.value.style.tooltip.color}">${bt}</text>
522
552
  <text x="50" y="97" text-anchor="middle" fill="${e.value.style.tooltip.color}">${xt}</text>
523
553
  <g>
524
554
  </svg>
525
555
  <div>
526
- ` : (o += `<div>${Me}: <b>${Re}</b></div>`, o += `<div>${gl}: <b>${gt}</b></div>`, o += `<div>${xl}: <b>${xt}</b></div>`, o += `<div>${bl}: <b>${Oe}</b></div>`), o += "</div>", ke.value = `<div style="text-align:right">${o}</div>`;
556
+ ` : (a += `<div>${Me}: <b>${Ie}</b></div>`, a += `<div>${_l}: <b>${bt}</b></div>`, a += `<div>${zl}: <b>${xt}</b></div>`, a += `<div>${Ll}: <b>${Be}</b></div>`), a += "</div>", ke.value = `<div style="text-align:right">${a}</div>`;
527
557
  }
528
- be.value = !0;
558
+ xe.value = !0;
529
559
  }
530
560
  const le = y(null);
531
- function ul() {
561
+ function ml() {
532
562
  return new Promise((t) => requestAnimationFrame(
533
563
  () => requestAnimationFrame(() => t())
534
564
  ));
535
565
  }
536
- De(() => {
566
+ Ee(() => {
537
567
  le.value && cancelAnimationFrame(le.value);
538
568
  });
539
569
  async function vt() {
540
- ce(), await kt(), le.value && cancelAnimationFrame(le.value), le.value = requestAnimationFrame(async () => {
541
- await ul(), ce();
570
+ de(), await wt(), le.value && cancelAnimationFrame(le.value), le.value = requestAnimationFrame(async () => {
571
+ await ml(), de();
542
572
  });
543
573
  }
544
- const ae = y(!1), dt = y(!1), de = y(!1);
545
- function ce() {
546
- if (!ae.value) {
547
- ae.value = !0;
574
+ const oe = y(!1), dt = y(!1), ve = y(!1);
575
+ function de() {
576
+ if (!oe.value) {
577
+ oe.value = !0;
548
578
  try {
549
- const { startIndex: t, endIndex: a } = e.value.style.zoom, l = $.value, o = t ?? 0, s = a != null ? Math.min(ct(a + 1), l) : l;
550
- de.value = !0, r.value.start = o, r.value.end = s, A.value.start = o, A.value.end = s, ne(), dt.value = !0;
579
+ const { startIndex: t, endIndex: o } = e.value.style.zoom, l = A.value, a = t ?? 0, s = o != null ? Math.min(yt(o + 1), l) : l;
580
+ ve.value = !0, r.value.start = a, r.value.end = s, C.value.start = a, C.value.end = s, ne(), dt.value = !0;
551
581
  } finally {
552
582
  queueMicrotask(() => {
553
- de.value = !1;
554
- }), ae.value = !1;
583
+ ve.value = !1;
584
+ }), oe.value = !1;
555
585
  }
556
586
  }
557
587
  }
558
- function ct(t) {
559
- const a = $.value;
560
- return t > a ? a : t < 0 || t < r.value.start ? e.value.style.zoom.startIndex !== null ? e.value.style.zoom.startIndex + 1 : 1 : t;
588
+ function yt(t) {
589
+ const o = A.value;
590
+ return t > o ? o : t < 0 || t < r.value.start ? e.value.style.zoom.startIndex !== null ? e.value.style.zoom.startIndex + 1 : 1 : t;
561
591
  }
562
- function Fe(t = null) {
563
- kt(() => {
564
- const a = [e.value.translations.period, e.value.translations.open, e.value.translations.high, e.value.translations.low, e.value.translations.close, e.value.translations.volume], l = C.value.map((v, w) => [
565
- e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? E.value[w].text : v.period,
566
- v.open.value,
567
- v.high.value,
568
- v.low.value,
569
- v.close.value,
570
- v.volume
571
- ]), o = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([a]).concat(l), s = Ml(o);
572
- t ? t(s) : Rl({ csvContent: s, title: e.value.style.title.text || "vue-ui-candlestick" });
592
+ function Te(t = null) {
593
+ wt(() => {
594
+ const o = [e.value.translations.period, e.value.translations.open, e.value.translations.high, e.value.translations.low, e.value.translations.close, e.value.translations.volume], l = $.value.map((c, w) => [
595
+ e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? N.value[w].text : c.period,
596
+ c.open.value,
597
+ c.high.value,
598
+ c.low.value,
599
+ c.close.value,
600
+ c.volume
601
+ ]), a = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([o]).concat(l), s = Ul(a);
602
+ t ? t(s) : Wl({ csvContent: s, title: e.value.style.title.text || "vue-ui-candlestick" });
573
603
  });
574
604
  }
575
- const ye = c(() => {
576
- const t = C.value.map((o, s) => {
577
- const v = e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? E.value[s].text : o.period, w = U({
605
+ const ye = d(() => {
606
+ const t = $.value.map((a, s) => {
607
+ const c = e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? N.value[s].text : a.period, w = U({
578
608
  p: e.value.table.td.prefix,
579
- v: o.open.value,
609
+ v: a.open.value,
580
610
  s: e.value.table.td.suffix,
581
611
  r: e.value.table.td.roundingValue
582
- }), T = U({
612
+ }), S = U({
583
613
  p: e.value.table.td.prefix,
584
- v: o.high.value,
614
+ v: a.high.value,
585
615
  s: e.value.table.td.suffix,
586
616
  r: e.value.table.td.roundingValue
587
- }), z = U({
617
+ }), _ = U({
588
618
  p: e.value.table.td.prefix,
589
- v: o.low.value,
619
+ v: a.low.value,
590
620
  s: e.value.table.td.suffix,
591
621
  r: e.value.table.td.roundingValue
592
622
  }), X = U({
593
623
  p: e.value.table.td.prefix,
594
- v: o.close.value,
624
+ v: a.close.value,
595
625
  s: e.value.table.td.suffix,
596
626
  r: e.value.table.td.roundingValue
597
627
  });
598
628
  return [
599
- `<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_${R.value}` : `url(#bearish_gradient_${R.value})` : o.isBullish ? e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.colors.bearish}"/></svg> ${v}`,
629
+ `<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 ? a.isBullish ? `url(#bullish_gradient_${I.value}` : `url(#bearish_gradient_${I.value})` : a.isBullish ? e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.colors.bearish}"/></svg> ${c}`,
600
630
  w,
601
- T,
602
- z,
631
+ S,
632
+ _,
603
633
  X,
604
- `${isNaN(o.volume) ? "-" : o.volume.toLocaleString()}`
634
+ `${isNaN(a.volume) ? "-" : a.volume.toLocaleString()}`
605
635
  ];
606
- }), a = {
636
+ }), o = {
607
637
  th: {
608
638
  backgroundColor: e.value.table.th.backgroundColor,
609
639
  color: e.value.table.th.color,
@@ -623,55 +653,55 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
623
653
  e.value.translations.last,
624
654
  e.value.translations.volume
625
655
  ];
626
- return { head: l, body: t, config: a, colNames: l };
656
+ return { head: l, body: t, config: o, colNames: l };
627
657
  }), q = y(!1);
628
- function yt(t) {
658
+ function ht(t) {
629
659
  q.value = t, Ne.value += 1;
630
660
  }
631
- function ht() {
661
+ function mt() {
632
662
  L.value.showTable = !L.value.showTable;
633
663
  }
634
- function mt() {
664
+ function gt() {
635
665
  L.value.showTooltip = !L.value.showTooltip;
636
666
  }
637
667
  const he = y(!1);
638
- function Ie() {
668
+ function De() {
639
669
  he.value = !he.value;
640
670
  }
641
- async function il({ scale: t = 2 } = {}) {
642
- if (!B.value) return;
643
- const { width: a, height: l } = B.value.getBoundingClientRect(), o = a / l, { imageUri: s, base64: v } = await ql({ domElement: B.value, base64: !0, img: !0, scale: t });
671
+ async function gl({ scale: t = 2 } = {}) {
672
+ if (!O.value) return;
673
+ const { width: o, height: l } = O.value.getBoundingClientRect(), a = o / l, { imageUri: s, base64: c } = await ao({ domElement: O.value, base64: !0, img: !0, scale: t });
644
674
  return {
645
675
  imageUri: s,
646
- base64: v,
676
+ base64: c,
647
677
  title: e.value.style.title.text,
648
- width: a,
678
+ width: o,
649
679
  height: l,
650
- aspectRatio: o
680
+ aspectRatio: a
651
681
  };
652
682
  }
653
- const nl = c(() => f.value.width), rl = c(() => f.value.height);
654
- jl({
683
+ const fl = d(() => p.value.width), pl = d(() => p.value.height);
684
+ oo({
655
685
  timeLabelsEls: ee,
656
- timeLabels: E,
686
+ timeLabels: N,
657
687
  slicer: r,
658
688
  configRef: e,
659
689
  rotationPath: ["style", "layout", "grid", "xAxis", "dataLabels", "rotation"],
660
690
  autoRotatePath: ["style", "layout", "grid", "xAxis", "dataLabels", "autoRotate", "enable"],
661
691
  isAutoSize: !1,
662
692
  rotation: e.value.style.layout.grid.xAxis.dataLabels.autoRotate.angle,
663
- width: nl,
664
- height: rl
693
+ width: fl,
694
+ height: pl
665
695
  }), se(e, () => {
666
696
  L.value = {
667
697
  showTable: e.value.table.show,
668
698
  showTooltip: e.value.style.tooltip.show
669
699
  };
670
700
  }, { immediate: !0 });
671
- const oe = c(() => {
672
- const t = e.value.table.useDialog && !e.value.table.show, a = L.value.showTable;
701
+ const ae = d(() => {
702
+ const t = e.value.table.useDialog && !e.value.table.show, o = L.value.showTable;
673
703
  return {
674
- component: t ? Et : Ot,
704
+ component: t ? Gt : Ut,
675
705
  title: `${e.value.style.title.text}${e.value.style.title.subtitle.text ? `: ${e.value.style.title.subtitle.text}` : ""}`,
676
706
  props: t ? {
677
707
  backgroundColor: e.value.table.th.backgroundColor,
@@ -679,12 +709,12 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
679
709
  headerColor: e.value.table.th.color,
680
710
  headerBg: e.value.table.th.backgroundColor,
681
711
  isFullscreen: q.value,
682
- fullscreenParent: B.value,
712
+ fullscreenParent: O.value,
683
713
  forcedWidth: Math.min(800, window.innerWidth * 0.8)
684
714
  } : {
685
715
  hideDetails: !0,
686
716
  config: {
687
- open: a,
717
+ open: o,
688
718
  maxHeight: 1e4,
689
719
  body: {
690
720
  backgroundColor: e.value.style.backgroundColor,
@@ -701,101 +731,101 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
701
731
  se(() => L.value.showTable, (t) => {
702
732
  e.value.table.show || (t && e.value.table.useDialog && te.value ? te.value.open() : "close" in te.value && te.value.close());
703
733
  });
704
- function pt() {
705
- L.value.showTable = !1, Ae.value && Ae.value.setTableIconState(!1);
734
+ function ft() {
735
+ L.value.showTable = !1, Ce.value && Ce.value.setTableIconState(!1);
706
736
  }
707
- const vl = c(() => e.value.style.backgroundColor), dl = c(() => e.value.style.title), { exportSvg: cl, getSvg: yl } = Xl({
708
- svg: _e,
709
- title: dl,
710
- backgroundColor: vl
737
+ const bl = d(() => e.value.style.backgroundColor), xl = d(() => e.value.style.title), { exportSvg: kl, getSvg: wl } = Zl({
738
+ svg: Fe,
739
+ title: xl,
740
+ backgroundColor: bl
711
741
  });
712
- async function ft({ isCb: t }) {
742
+ async function pt({ isCb: t }) {
713
743
  if (t) {
714
- const { blob: a, url: l, text: o, dataUrl: s } = await yl();
715
- e.value.userOptions.callbacks.svg({ blob: a, url: l, text: o, dataUrl: s });
744
+ const { blob: o, url: l, text: a, dataUrl: s } = await wl();
745
+ e.value.userOptions.callbacks.svg({ blob: o, url: l, text: a, dataUrl: s });
716
746
  } else
717
- cl();
747
+ kl();
718
748
  }
719
- function hl(t) {
749
+ function Cl(t) {
720
750
  Ge.value = t;
721
751
  }
722
- function ml(t) {
723
- ae.value || de.value || t !== r.value.start && (r.value.start = t, A.value.start = t, ne());
752
+ function Al(t) {
753
+ oe.value || ve.value || t !== r.value.start && (r.value.start = t, C.value.start = t, ne());
724
754
  }
725
- function pl(t) {
726
- if (ae.value || de.value) return;
727
- const a = ct(t);
728
- a !== r.value.end && (r.value.end = a, A.value.end = a, ne());
755
+ function $l(t) {
756
+ if (oe.value || ve.value) return;
757
+ const o = yt(t);
758
+ o !== r.value.end && (r.value.end = o, C.value.end = o, ne());
729
759
  }
730
- function fl({ seriesIndex: t, datapoint: a }) {
760
+ function Fl({ seriesIndex: t, datapoint: o }) {
731
761
  const l = r.value.start + t;
732
- Be("selectX", {
733
- dataset: a,
762
+ Pe("selectX", {
763
+ dataset: o,
734
764
  index: l,
735
765
  indexLabel: ""
736
766
  });
737
767
  }
738
- return Ft({
739
- getImage: il,
740
- generatePdf: Ke,
741
- generateCsv: Fe,
742
- generateImage: Ze,
743
- generateSvg: ft,
744
- toggleTable: ht,
745
- toggleTooltip: mt,
746
- toggleAnnotator: Ie,
747
- toggleFullscreen: yt
748
- }), (t, a) => (u(), i("div", {
768
+ return Ot({
769
+ getImage: gl,
770
+ generatePdf: Ze,
771
+ generateCsv: Te,
772
+ generateImage: et,
773
+ generateSvg: pt,
774
+ toggleTable: mt,
775
+ toggleTooltip: gt,
776
+ toggleAnnotator: De,
777
+ toggleFullscreen: ht
778
+ }), (t, o) => (u(), i("div", {
749
779
  ref_key: "candlestickChart",
750
- ref: B,
780
+ ref: O,
751
781
  class: V(`vue-data-ui-component vue-ui-candlestick ${q.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
752
782
  style: ue(`position:relative;font-family:${e.value.style.fontFamily}; text-align:center;background:${e.value.style.backgroundColor}; ${e.value.responsive ? "height: 100%" : ""}`),
753
- id: `vue-ui-candlestick_${R.value}`,
754
- onMouseenter: Wt,
755
- onMouseleave: Xt
783
+ id: `vue-ui-candlestick_${I.value}`,
784
+ onMouseenter: Qt,
785
+ onMouseleave: Zt
756
786
  }, [
757
- e.value.userOptions.buttons.annotator ? (u(), Q(h(Pt), {
787
+ e.value.userOptions.buttons.annotator ? (u(), K(h(Xt), {
758
788
  key: 0,
759
- svgRef: h(_e),
789
+ svgRef: h(Fe),
760
790
  backgroundColor: e.value.style.backgroundColor,
761
791
  color: e.value.style.color,
762
792
  active: he.value,
763
- onClose: Ie
793
+ onClose: De
764
794
  }, {
765
- "annotator-action-close": g(() => [
766
- b(t.$slots, "annotator-action-close", {}, void 0, !0)
795
+ "annotator-action-close": b(() => [
796
+ x(t.$slots, "annotator-action-close", {}, void 0, !0)
767
797
  ]),
768
- "annotator-action-color": g(({ color: l }) => [
769
- b(t.$slots, "annotator-action-color", F(I({ color: l })), void 0, !0)
798
+ "annotator-action-color": b(({ color: l }) => [
799
+ x(t.$slots, "annotator-action-color", T(D({ color: l })), void 0, !0)
770
800
  ]),
771
- "annotator-action-draw": g(({ mode: l }) => [
772
- b(t.$slots, "annotator-action-draw", F(I({ mode: l })), void 0, !0)
801
+ "annotator-action-draw": b(({ mode: l }) => [
802
+ x(t.$slots, "annotator-action-draw", T(D({ mode: l })), void 0, !0)
773
803
  ]),
774
- "annotator-action-undo": g(({ disabled: l }) => [
775
- b(t.$slots, "annotator-action-undo", F(I({ disabled: l })), void 0, !0)
804
+ "annotator-action-undo": b(({ disabled: l }) => [
805
+ x(t.$slots, "annotator-action-undo", T(D({ disabled: l })), void 0, !0)
776
806
  ]),
777
- "annotator-action-redo": g(({ disabled: l }) => [
778
- b(t.$slots, "annotator-action-redo", F(I({ disabled: l })), void 0, !0)
807
+ "annotator-action-redo": b(({ disabled: l }) => [
808
+ x(t.$slots, "annotator-action-redo", T(D({ disabled: l })), void 0, !0)
779
809
  ]),
780
- "annotator-action-delete": g(({ disabled: l }) => [
781
- b(t.$slots, "annotator-action-delete", F(I({ disabled: l })), void 0, !0)
810
+ "annotator-action-delete": b(({ disabled: l }) => [
811
+ x(t.$slots, "annotator-action-delete", T(D({ disabled: l })), void 0, !0)
782
812
  ]),
783
813
  _: 3
784
814
  }, 8, ["svgRef", "backgroundColor", "color", "active"])) : m("", !0),
785
- Ht.value ? (u(), i("div", {
815
+ el.value ? (u(), i("div", {
786
816
  key: 1,
787
817
  ref_key: "noTitle",
788
- ref: We,
818
+ ref: Xe,
789
819
  class: "vue-data-ui-no-title-space",
790
820
  style: "height:36px; width: 100%;background:transparent"
791
821
  }, null, 512)) : m("", !0),
792
822
  e.value.style.title.text ? (u(), i("div", {
793
823
  key: 2,
794
824
  ref_key: "chartTitle",
795
- ref: Ee,
825
+ ref: Ve,
796
826
  style: "width:100%;background:transparent"
797
827
  }, [
798
- (u(), Q(Yl, {
828
+ (u(), K(so, {
799
829
  key: `title_${He.value}`,
800
830
  config: {
801
831
  title: {
@@ -809,15 +839,15 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
809
839
  }
810
840
  }, null, 8, ["config"]))
811
841
  ], 512)) : m("", !0),
812
- e.value.userOptions.show && ge.value && (h(qe) || h(Ce)) ? (u(), Q(h(Bt), {
842
+ e.value.userOptions.show && pe.value && (h(Ye) || h($e)) ? (u(), K(h(jt), {
813
843
  ref_key: "userOptionsRef",
814
- ref: Ae,
844
+ ref: Ce,
815
845
  key: `user_options_${Ne.value}`,
816
846
  backgroundColor: e.value.style.backgroundColor,
817
847
  color: e.value.style.color,
818
- isImaging: h(Je),
819
- isPrinting: h(Qe),
820
- uid: R.value,
848
+ isImaging: h(Qe),
849
+ isPrinting: h(Je),
850
+ uid: I.value,
821
851
  hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.tooltip.show,
822
852
  hasPdf: e.value.userOptions.buttons.pdf,
823
853
  hasImg: e.value.userOptions.buttons.img,
@@ -828,99 +858,99 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
828
858
  isFullscreen: q.value,
829
859
  isTooltip: L.value.showTooltip,
830
860
  titles: { ...e.value.userOptions.buttonTitles },
831
- chartElement: B.value,
861
+ chartElement: O.value,
832
862
  position: e.value.userOptions.position,
833
863
  hasAnnotator: e.value.userOptions.buttons.annotator,
834
864
  isAnnotation: he.value,
835
865
  callbacks: e.value.userOptions.callbacks,
836
866
  printScale: e.value.userOptions.print.scale,
837
867
  tableDialog: e.value.table.useDialog,
838
- onToggleFullscreen: yt,
839
- onGeneratePdf: h(Ke),
840
- onGenerateCsv: Fe,
841
- onGenerateImage: h(Ze),
842
- onGenerateSvg: ft,
843
- onToggleTable: ht,
844
- onToggleTooltip: mt,
845
- onToggleAnnotator: Ie,
868
+ onToggleFullscreen: ht,
869
+ onGeneratePdf: h(Ze),
870
+ onGenerateCsv: Te,
871
+ onGenerateImage: h(et),
872
+ onGenerateSvg: pt,
873
+ onToggleTable: mt,
874
+ onToggleTooltip: gt,
875
+ onToggleAnnotator: De,
846
876
  style: ue({
847
- visibility: h(qe) ? h(Ce) ? "visible" : "hidden" : "visible"
877
+ visibility: h(Ye) ? h($e) ? "visible" : "hidden" : "visible"
848
878
  })
849
- }, wt({ _: 2 }, [
879
+ }, Ct({ _: 2 }, [
850
880
  t.$slots.menuIcon ? {
851
881
  name: "menuIcon",
852
- fn: g(({ isOpen: l, color: o }) => [
853
- b(t.$slots, "menuIcon", F(I({ isOpen: l, color: o })), void 0, !0)
882
+ fn: b(({ isOpen: l, color: a }) => [
883
+ x(t.$slots, "menuIcon", T(D({ isOpen: l, color: a })), void 0, !0)
854
884
  ]),
855
885
  key: "0"
856
886
  } : void 0,
857
887
  t.$slots.optionTooltip ? {
858
888
  name: "optionTooltip",
859
- fn: g(() => [
860
- b(t.$slots, "optionTooltip", {}, void 0, !0)
889
+ fn: b(() => [
890
+ x(t.$slots, "optionTooltip", {}, void 0, !0)
861
891
  ]),
862
892
  key: "1"
863
893
  } : void 0,
864
894
  t.$slots.optionPdf ? {
865
895
  name: "optionPdf",
866
- fn: g(() => [
867
- b(t.$slots, "optionPdf", {}, void 0, !0)
896
+ fn: b(() => [
897
+ x(t.$slots, "optionPdf", {}, void 0, !0)
868
898
  ]),
869
899
  key: "2"
870
900
  } : void 0,
871
901
  t.$slots.optionCsv ? {
872
902
  name: "optionCsv",
873
- fn: g(() => [
874
- b(t.$slots, "optionCsv", {}, void 0, !0)
903
+ fn: b(() => [
904
+ x(t.$slots, "optionCsv", {}, void 0, !0)
875
905
  ]),
876
906
  key: "3"
877
907
  } : void 0,
878
908
  t.$slots.optionImg ? {
879
909
  name: "optionImg",
880
- fn: g(() => [
881
- b(t.$slots, "optionImg", {}, void 0, !0)
910
+ fn: b(() => [
911
+ x(t.$slots, "optionImg", {}, void 0, !0)
882
912
  ]),
883
913
  key: "4"
884
914
  } : void 0,
885
915
  t.$slots.optionSvg ? {
886
916
  name: "optionSvg",
887
- fn: g(() => [
888
- b(t.$slots, "optionSvg", {}, void 0, !0)
917
+ fn: b(() => [
918
+ x(t.$slots, "optionSvg", {}, void 0, !0)
889
919
  ]),
890
920
  key: "5"
891
921
  } : void 0,
892
922
  t.$slots.optionTable ? {
893
923
  name: "optionTable",
894
- fn: g(() => [
895
- b(t.$slots, "optionTable", {}, void 0, !0)
924
+ fn: b(() => [
925
+ x(t.$slots, "optionTable", {}, void 0, !0)
896
926
  ]),
897
927
  key: "6"
898
928
  } : void 0,
899
929
  t.$slots.optionFullscreen ? {
900
930
  name: "optionFullscreen",
901
- fn: g(({ toggleFullscreen: l, isFullscreen: o }) => [
902
- b(t.$slots, "optionFullscreen", F(I({ toggleFullscreen: l, isFullscreen: o })), void 0, !0)
931
+ fn: b(({ toggleFullscreen: l, isFullscreen: a }) => [
932
+ x(t.$slots, "optionFullscreen", T(D({ toggleFullscreen: l, isFullscreen: a })), void 0, !0)
903
933
  ]),
904
934
  key: "7"
905
935
  } : void 0,
906
936
  t.$slots.optionAnnotator ? {
907
937
  name: "optionAnnotator",
908
- fn: g(({ toggleAnnotator: l, isAnnotator: o }) => [
909
- b(t.$slots, "optionAnnotator", F(I({ toggleAnnotator: l, isAnnotator: o })), void 0, !0)
938
+ fn: b(({ toggleAnnotator: l, isAnnotator: a }) => [
939
+ x(t.$slots, "optionAnnotator", T(D({ toggleAnnotator: l, isAnnotator: a })), void 0, !0)
910
940
  ]),
911
941
  key: "8"
912
942
  } : void 0
913
943
  ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : m("", !0),
914
944
  (u(), i("svg", {
915
945
  ref_key: "svgRef",
916
- ref: _e,
917
- xmlns: h(Fl),
946
+ ref: Fe,
947
+ xmlns: h(Nl),
918
948
  "aria-label": e.value.style.title.text || "candlestick chart",
919
949
  class: V({ "vue-data-ui-fullscreen--on": q.value, "vue-data-ui-fulscreen--off": !q.value }),
920
- viewBox: `0 0 ${f.value.width <= 0 ? 10 : f.value.width} ${f.value.height <= 0 ? 10 : f.value.height}`,
950
+ viewBox: `0 0 ${p.value.width <= 0 ? 10 : p.value.width} ${p.value.height <= 0 ? 10 : p.value.height}`,
921
951
  style: ue(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.color}`)
922
952
  }, [
923
- Pe(h(Nt)),
953
+ Re(h(Ht)),
924
954
  t.$slots["chart-background"] ? (u(), i("foreignObject", {
925
955
  key: 0,
926
956
  x: n.value.left,
@@ -931,49 +961,49 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
931
961
  pointerEvents: "none"
932
962
  }
933
963
  }, [
934
- b(t.$slots, "chart-background", {}, void 0, !0)
935
- ], 8, ta)) : m("", !0),
936
- C.value.length > 0 ? (u(), i("g", la, [
937
- p("defs", null, [
938
- p("linearGradient", {
939
- id: `bearish_gradient_${R.value}`,
964
+ x(t.$slots, "chart-background", {}, void 0, !0)
965
+ ], 8, co)) : m("", !0),
966
+ $.value.length > 0 ? (u(), i("g", vo, [
967
+ g("defs", null, [
968
+ g("linearGradient", {
969
+ id: `bearish_gradient_${I.value}`,
940
970
  x2: "0%",
941
971
  y2: "100%"
942
972
  }, [
943
- p("stop", {
973
+ g("stop", {
944
974
  offset: "0%",
945
975
  "stop-color": e.value.style.layout.candle.colors.bearish
946
- }, null, 8, oa),
947
- p("stop", {
976
+ }, null, 8, ho),
977
+ g("stop", {
948
978
  offset: "50%",
949
979
  "stop-color": `${h(fe)(e.value.style.layout.candle.colors.bearish, 0.02)}DE`
950
- }, null, 8, sa),
951
- p("stop", {
980
+ }, null, 8, mo),
981
+ g("stop", {
952
982
  offset: "100%",
953
983
  "stop-color": `${h(fe)(e.value.style.layout.candle.colors.bearish, 0.05)}66`
954
- }, null, 8, ua)
955
- ], 8, aa),
956
- p("linearGradient", {
957
- id: `bullish_gradient_${R.value}`,
984
+ }, null, 8, go)
985
+ ], 8, yo),
986
+ g("linearGradient", {
987
+ id: `bullish_gradient_${I.value}`,
958
988
  x2: "0%",
959
989
  y2: "100%"
960
990
  }, [
961
- p("stop", {
991
+ g("stop", {
962
992
  offset: "0%",
963
993
  "stop-color": e.value.style.layout.candle.colors.bullish
964
- }, null, 8, na),
965
- p("stop", {
994
+ }, null, 8, po),
995
+ g("stop", {
966
996
  offset: "50%",
967
997
  "stop-color": `${h(fe)(e.value.style.layout.candle.colors.bullish, 0.02)}DE`
968
- }, null, 8, ra),
969
- p("stop", {
998
+ }, null, 8, bo),
999
+ g("stop", {
970
1000
  offset: "100%",
971
1001
  "stop-color": `${h(fe)(e.value.style.layout.candle.colors.bullish, 0.05)}66`
972
- }, null, 8, va)
973
- ], 8, ia)
1002
+ }, null, 8, xo)
1003
+ ], 8, fo)
974
1004
  ]),
975
- e.value.style.layout.grid.show ? (u(), i("g", da, [
976
- p("line", {
1005
+ e.value.style.layout.grid.show ? (u(), i("g", ko, [
1006
+ g("line", {
977
1007
  x1: n.value.left,
978
1008
  x2: n.value.left,
979
1009
  y1: n.value.top,
@@ -981,8 +1011,8 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
981
1011
  stroke: e.value.style.layout.grid.stroke,
982
1012
  "stroke-width": e.value.style.layout.grid.strokeWidth,
983
1013
  "stroke-linecap": "round"
984
- }, null, 8, ca),
985
- p("line", {
1014
+ }, null, 8, wo),
1015
+ g("line", {
986
1016
  x1: n.value.left,
987
1017
  x2: n.value.right,
988
1018
  y1: n.value.bottom,
@@ -990,8 +1020,8 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
990
1020
  stroke: e.value.style.layout.grid.stroke,
991
1021
  "stroke-width": e.value.style.layout.grid.strokeWidth,
992
1022
  "stroke-linecap": "round"
993
- }, null, 8, ya),
994
- e.value.style.layout.grid.horizontalLines.show ? (u(!0), i(S, { key: 0 }, M(ut.value, (l) => (u(), i("line", {
1023
+ }, null, 8, Co),
1024
+ e.value.style.layout.grid.horizontalLines.show ? (u(!0), i(z, { key: 0 }, M(it.value, (l) => (u(), i("line", {
995
1025
  x1: n.value.left,
996
1026
  x2: n.value.right,
997
1027
  y1: l.y,
@@ -1000,31 +1030,31 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
1000
1030
  "stroke-width": e.value.style.layout.grid.horizontalLines.strokeWidth,
1001
1031
  "stroke-dasharray": e.value.style.layout.grid.horizontalLines.strokeDasharray,
1002
1032
  "stroke-linecap": "round"
1003
- }, null, 8, ha))), 256)) : m("", !0),
1004
- e.value.style.layout.grid.verticalLines.show ? (u(!0), i(S, { key: 1 }, M(Le.value, (l, o) => (u(), i("g", null, [
1033
+ }, null, 8, Ao))), 256)) : m("", !0),
1034
+ e.value.style.layout.grid.verticalLines.show ? (u(!0), i(z, { key: 1 }, M(Le.value, (l, a) => (u(), i("g", null, [
1005
1035
  l.text ? (u(), i("line", {
1006
1036
  key: 0,
1007
- x1: n.value.left + d.value * o + d.value / 2,
1008
- x2: n.value.left + d.value * o + d.value / 2,
1037
+ x1: n.value.left + v.value * a + v.value / 2,
1038
+ x2: n.value.left + v.value * a + v.value / 2,
1009
1039
  y1: n.value.top,
1010
1040
  y2: n.value.bottom,
1011
1041
  stroke: e.value.style.layout.grid.verticalLines.stroke,
1012
1042
  "stroke-width": e.value.style.layout.grid.verticalLines.strokeWidth,
1013
1043
  "stroke-dasharray": e.value.style.layout.grid.verticalLines.strokeDasharray,
1014
1044
  "stroke-linecap": "round"
1015
- }, null, 8, ma)) : m("", !0)
1045
+ }, null, 8, $o)) : m("", !0)
1016
1046
  ]))), 256)) : m("", !0),
1017
- e.value.style.layout.grid.xAxis.ticks.show ? (u(!0), i(S, { key: 2 }, M(Le.value, (l, o) => (u(), i("g", null, [
1047
+ e.value.style.layout.grid.xAxis.ticks.show ? (u(!0), i(z, { key: 2 }, M(Le.value, (l, a) => (u(), i("g", null, [
1018
1048
  l.text ? (u(), i("line", {
1019
1049
  key: 0,
1020
- x1: n.value.left + d.value * o + d.value / 2,
1021
- x2: n.value.left + d.value * o + d.value / 2,
1050
+ x1: n.value.left + v.value * a + v.value / 2,
1051
+ x2: n.value.left + v.value * a + v.value / 2,
1022
1052
  y1: n.value.bottom,
1023
1053
  y2: n.value.bottom + 3,
1024
1054
  stroke: e.value.style.layout.grid.stroke,
1025
1055
  "stroke-width": e.value.style.layout.grid.strokeWidth,
1026
1056
  "stroke-linecap": "round"
1027
- }, null, 8, pa)) : m("", !0)
1057
+ }, null, 8, Fo)) : m("", !0)
1028
1058
  ]))), 256)) : m("", !0)
1029
1059
  ])) : m("", !0),
1030
1060
  e.value.style.layout.grid.yAxis.dataLabels.show ? (u(), i("g", {
@@ -1032,8 +1062,8 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
1032
1062
  ref_key: "scaleLabels",
1033
1063
  ref: we
1034
1064
  }, [
1035
- (u(!0), i(S, null, M(ut.value, (l, o) => (u(), i("g", null, [
1036
- l.value >= O.value.min && l.value <= O.value.max ? (u(), i("line", {
1065
+ (u(!0), i(z, null, M(it.value, (l, a) => (u(), i("g", null, [
1066
+ l.value >= B.value.min && l.value <= B.value.max ? (u(), i("line", {
1037
1067
  key: 0,
1038
1068
  x1: n.value.left,
1039
1069
  x2: n.value.left - 5,
@@ -1042,12 +1072,12 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
1042
1072
  stroke: e.value.style.layout.grid.stroke,
1043
1073
  "stroke-width": e.value.style.layout.grid.strokeWidth,
1044
1074
  "stroke-linecap": "round"
1045
- }, null, 8, fa)) : m("", !0),
1046
- l.value >= O.value.min && l.value <= O.value.max ? (u(), i("text", {
1075
+ }, null, 8, _o)) : m("", !0),
1076
+ l.value >= B.value.min && l.value <= B.value.max ? (u(), i("text", {
1047
1077
  key: 1,
1048
1078
  x: n.value.left - 8 + e.value.style.layout.grid.yAxis.dataLabels.offsetX,
1049
- y: l.y + f.value.yAxisFontSize / 3,
1050
- "font-size": f.value.yAxisFontSize,
1079
+ y: l.y + p.value.yAxisFontSize / 3,
1080
+ "font-size": p.value.yAxisFontSize,
1051
1081
  "text-anchor": "end",
1052
1082
  fill: e.value.style.layout.grid.yAxis.dataLabels.color,
1053
1083
  "font-weight": e.value.style.layout.grid.yAxis.dataLabels.bold ? "bold" : "normal"
@@ -1056,7 +1086,7 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
1056
1086
  v: l.value,
1057
1087
  s: e.value.style.layout.grid.yAxis.dataLabels.suffix,
1058
1088
  r: e.value.style.layout.grid.yAxis.dataLabels.roundingValue
1059
- })), 9, ga)) : m("", !0)
1089
+ })), 9, zo)) : m("", !0)
1060
1090
  ]))), 256))
1061
1091
  ], 512)) : m("", !0),
1062
1092
  e.value.style.layout.grid.xAxis.dataLabels.show && !e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? (u(), i("g", {
@@ -1064,15 +1094,15 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
1064
1094
  ref_key: "timeLabelsEls",
1065
1095
  ref: ee
1066
1096
  }, [
1067
- (u(!0), i(S, null, M(Zt.value, (l, o) => (u(), i("g", null, [
1068
- p("text", {
1097
+ (u(!0), i(z, null, M(nl.value, (l, a) => (u(), i("g", null, [
1098
+ g("text", {
1069
1099
  class: "vue-data-ui-time-label",
1070
- transform: `translate(${n.value.left + d.value * o + d.value / 2}, ${n.value.bottom + f.value.xAxisFontSize * 1.5}), rotate(${e.value.style.layout.grid.xAxis.dataLabels.rotation})`,
1100
+ transform: `translate(${n.value.left + v.value * a + v.value / 2}, ${n.value.bottom + p.value.xAxisFontSize * 1.5}), rotate(${e.value.style.layout.grid.xAxis.dataLabels.rotation})`,
1071
1101
  "text-anchor": e.value.style.layout.grid.xAxis.dataLabels.rotation > 0 ? "start" : e.value.style.layout.grid.xAxis.dataLabels.rotation < 0 ? "end" : "middle",
1072
- "font-size": f.value.xAxisFontSize,
1102
+ "font-size": p.value.xAxisFontSize,
1073
1103
  fill: e.value.style.layout.grid.xAxis.dataLabels.color,
1074
1104
  "font-weight": e.value.style.layout.grid.xAxis.dataLabels.bold ? "bold" : "normal"
1075
- }, ie(l), 9, xa)
1105
+ }, ie(l), 9, Lo)
1076
1106
  ]))), 256))
1077
1107
  ], 512)) : m("", !0),
1078
1108
  e.value.style.layout.grid.xAxis.dataLabels.show && e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? (u(), i("g", {
@@ -1080,21 +1110,21 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
1080
1110
  ref_key: "timeLabelsEls",
1081
1111
  ref: ee
1082
1112
  }, [
1083
- (u(!0), i(S, null, M(Le.value, (l, o) => (u(), i("g", null, [
1084
- p("text", {
1113
+ (u(!0), i(z, null, M(Le.value, (l, a) => (u(), i("g", null, [
1114
+ g("text", {
1085
1115
  class: "vue-data-ui-time-label",
1086
- transform: `translate(${n.value.left + d.value * o + d.value / 2}, ${n.value.bottom + f.value.xAxisFontSize * 1.5}), rotate(${e.value.style.layout.grid.xAxis.dataLabels.rotation})`,
1116
+ transform: `translate(${n.value.left + v.value * a + v.value / 2}, ${n.value.bottom + p.value.xAxisFontSize * 1.5}), rotate(${e.value.style.layout.grid.xAxis.dataLabels.rotation})`,
1087
1117
  "text-anchor": e.value.style.layout.grid.xAxis.dataLabels.rotation > 0 ? "start" : e.value.style.layout.grid.xAxis.dataLabels.rotation < 0 ? "end" : "middle",
1088
- "font-size": f.value.xAxisFontSize,
1118
+ "font-size": p.value.xAxisFontSize,
1089
1119
  fill: e.value.style.layout.grid.xAxis.dataLabels.color,
1090
1120
  "font-weight": e.value.style.layout.grid.xAxis.dataLabels.bold ? "bold" : "normal"
1091
- }, ie(l.text), 9, ba)
1121
+ }, ie(l.text), 9, So)
1092
1122
  ]))), 256))
1093
1123
  ], 512)) : m("", !0),
1094
- e.value.type === "candlestick" ? (u(), i(S, { key: 4 }, [
1095
- p("g", null, [
1096
- (u(!0), i(S, null, M(C.value, (l, o) => (u(), i("g", null, [
1097
- p("rect", {
1124
+ e.value.type === "candlestick" ? (u(), i(z, { key: 4 }, [
1125
+ g("g", null, [
1126
+ (u(!0), i(z, null, M($.value, (l, a) => (u(), i("g", null, [
1127
+ g("rect", {
1098
1128
  x: l.open.x - e.value.style.layout.wick.strokeWidth / 2,
1099
1129
  y: l.high.y,
1100
1130
  width: e.value.style.layout.wick.strokeWidth,
@@ -1102,114 +1132,114 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
1102
1132
  fill: e.value.style.layout.wick.stroke,
1103
1133
  stroke: "none",
1104
1134
  rx: e.value.style.layout.wick.strokeWidth / 2,
1105
- class: V({ "vue-data-ui-transition": D.value && !h(N) })
1106
- }, null, 10, ka),
1107
- e.value.style.layout.wick.extremity.shape === "circle" ? (u(), i("g", wa, [
1108
- p("circle", {
1135
+ class: V({ "vue-data-ui-transition": E.value && !h(P) })
1136
+ }, null, 10, To),
1137
+ e.value.style.layout.wick.extremity.shape === "circle" ? (u(), i("g", Do, [
1138
+ g("circle", {
1109
1139
  cx: l.high.x,
1110
1140
  cy: l.high.y,
1111
- r: e.value.style.layout.wick.extremity.size === "auto" ? d.value / 20 : e.value.style.layout.wick.extremity.size,
1141
+ r: e.value.style.layout.wick.extremity.size === "auto" ? v.value / 20 : e.value.style.layout.wick.extremity.size,
1112
1142
  fill: e.value.style.layout.wick.extremity.color,
1113
- class: V({ "vue-data-ui-transition": D.value && !h(N) })
1114
- }, null, 10, Aa),
1115
- p("circle", {
1143
+ class: V({ "vue-data-ui-transition": E.value && !h(P) })
1144
+ }, null, 10, Mo),
1145
+ g("circle", {
1116
1146
  cx: l.low.x,
1117
1147
  cy: l.low.y,
1118
- r: e.value.style.layout.wick.extremity.size === "auto" ? d.value / 20 : e.value.style.layout.wick.extremity.size,
1148
+ r: e.value.style.layout.wick.extremity.size === "auto" ? v.value / 20 : e.value.style.layout.wick.extremity.size,
1119
1149
  fill: e.value.style.layout.wick.extremity.color,
1120
- class: V({ "vue-data-ui-transition": D.value && !h(N) })
1121
- }, null, 10, $a)
1150
+ class: V({ "vue-data-ui-transition": E.value && !h(P) })
1151
+ }, null, 10, Io)
1122
1152
  ])) : m("", !0),
1123
- e.value.style.layout.wick.extremity.shape === "line" ? (u(), i("g", Ca, [
1124
- p("rect", {
1125
- x: l.high.x - (e.value.style.layout.wick.extremity.size === "auto" ? d.value * e.value.style.layout.candle.widthRatio : e.value.style.layout.wick.extremity.size) / 2,
1153
+ e.value.style.layout.wick.extremity.shape === "line" ? (u(), i("g", Bo, [
1154
+ g("rect", {
1155
+ x: l.high.x - (e.value.style.layout.wick.extremity.size === "auto" ? v.value * e.value.style.layout.candle.widthRatio : e.value.style.layout.wick.extremity.size) / 2,
1126
1156
  y: l.high.y - e.value.style.layout.wick.strokeWidth / 2,
1127
- width: Math.abs(l.high.x - (e.value.style.layout.wick.extremity.size === "auto" ? d.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" ? d.value * e.value.style.layout.candle.widthRatio : e.value.style.layout.wick.extremity.size) / 2)),
1157
+ width: Math.abs(l.high.x - (e.value.style.layout.wick.extremity.size === "auto" ? v.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" ? v.value * e.value.style.layout.candle.widthRatio : e.value.style.layout.wick.extremity.size) / 2)),
1128
1158
  height: e.value.style.layout.wick.strokeWidth,
1129
1159
  rx: e.value.style.layout.wick.strokeWidth / 2,
1130
1160
  fill: e.value.style.layout.wick.extremity.color,
1131
1161
  stroke: "none",
1132
- class: V({ "vue-data-ui-transition": D.value && !h(N) })
1133
- }, null, 10, _a),
1134
- p("rect", {
1135
- x: l.low.x - (e.value.style.layout.wick.extremity.size === "auto" ? d.value * e.value.style.layout.candle.widthRatio : e.value.style.layout.wick.extremity.size) / 2,
1162
+ class: V({ "vue-data-ui-transition": E.value && !h(P) })
1163
+ }, null, 10, Eo),
1164
+ g("rect", {
1165
+ x: l.low.x - (e.value.style.layout.wick.extremity.size === "auto" ? v.value * e.value.style.layout.candle.widthRatio : e.value.style.layout.wick.extremity.size) / 2,
1136
1166
  y: l.low.y - e.value.style.layout.wick.strokeWidth / 2,
1137
- width: Math.abs(l.low.x - (e.value.style.layout.wick.extremity.size === "auto" ? d.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" ? d.value * e.value.style.layout.candle.widthRatio : e.value.style.layout.wick.extremity.size) / 2)),
1167
+ width: Math.abs(l.low.x - (e.value.style.layout.wick.extremity.size === "auto" ? v.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" ? v.value * e.value.style.layout.candle.widthRatio : e.value.style.layout.wick.extremity.size) / 2)),
1138
1168
  height: e.value.style.layout.wick.strokeWidth,
1139
1169
  fill: e.value.style.layout.wick.extremity.color,
1140
1170
  stroke: "none",
1141
1171
  rx: e.value.style.layout.wick.strokeWidth / 2,
1142
- class: V({ "vue-data-ui-transition": D.value && !h(N) })
1143
- }, null, 10, za)
1172
+ class: V({ "vue-data-ui-transition": E.value && !h(P) })
1173
+ }, null, 10, Ro)
1144
1174
  ])) : m("", !0)
1145
1175
  ]))), 256))
1146
1176
  ]),
1147
- p("g", null, [
1148
- (u(!0), i(S, null, M(C.value, (l, o) => (u(), i("rect", {
1149
- x: l.open.x - d.value / 2 + d.value * (1 - e.value.style.layout.candle.widthRatio) / 2,
1177
+ g("g", null, [
1178
+ (u(!0), i(z, null, M($.value, (l, a) => (u(), i("rect", {
1179
+ x: l.open.x - v.value / 2 + v.value * (1 - e.value.style.layout.candle.widthRatio) / 2,
1150
1180
  y: l.isBullish ? l.close.y : l.open.y,
1151
1181
  height: Math.abs(l.close.y - l.open.y) <= 0 ? 1e-4 : Math.abs(l.close.y - l.open.y),
1152
- width: d.value * e.value.style.layout.candle.widthRatio <= 0 ? 1e-4 : d.value * e.value.style.layout.candle.widthRatio,
1182
+ width: v.value * e.value.style.layout.candle.widthRatio <= 0 ? 1e-4 : v.value * e.value.style.layout.candle.widthRatio,
1153
1183
  fill: e.value.style.layout.candle.gradient.underlayer,
1154
1184
  rx: e.value.style.layout.candle.borderRadius,
1155
1185
  stroke: "none",
1156
- class: V({ "vue-data-ui-transition": D.value && !h(N) })
1157
- }, null, 10, Sa))), 256)),
1158
- (u(!0), i(S, null, M(C.value, (l, o) => (u(), i("rect", {
1159
- x: l.open.x - d.value / 2 + d.value * (1 - e.value.style.layout.candle.widthRatio) / 2,
1186
+ class: V({ "vue-data-ui-transition": E.value && !h(P) })
1187
+ }, null, 10, Oo))), 256)),
1188
+ (u(!0), i(z, null, M($.value, (l, a) => (u(), i("rect", {
1189
+ x: l.open.x - v.value / 2 + v.value * (1 - e.value.style.layout.candle.widthRatio) / 2,
1160
1190
  y: l.isBullish ? l.close.y : l.open.y,
1161
1191
  height: Math.abs(l.close.y - l.open.y) <= 0 ? 1e-4 : Math.abs(l.close.y - l.open.y),
1162
- width: d.value * e.value.style.layout.candle.widthRatio <= 0 ? 1e-4 : d.value * e.value.style.layout.candle.widthRatio,
1163
- fill: l.isBullish ? e.value.style.layout.candle.gradient.show ? `url(#bullish_gradient_${R.value})` : e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.gradient.show ? `url(#bearish_gradient_${R.value})` : e.value.style.layout.candle.colors.bearish,
1192
+ width: v.value * e.value.style.layout.candle.widthRatio <= 0 ? 1e-4 : v.value * e.value.style.layout.candle.widthRatio,
1193
+ fill: l.isBullish ? e.value.style.layout.candle.gradient.show ? `url(#bullish_gradient_${I.value})` : e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.gradient.show ? `url(#bearish_gradient_${I.value})` : e.value.style.layout.candle.colors.bearish,
1164
1194
  rx: e.value.style.layout.candle.borderRadius,
1165
1195
  stroke: e.value.style.layout.candle.stroke,
1166
1196
  "stroke-width": e.value.style.layout.candle.strokeWidth,
1167
1197
  "stroke-linecap": "round",
1168
1198
  "stroke-linejoin": "round",
1169
- class: V({ "vue-data-ui-transition": D.value && !h(N) })
1170
- }, null, 10, La))), 256))
1199
+ class: V({ "vue-data-ui-transition": E.value && !h(P) })
1200
+ }, null, 10, Po))), 256))
1171
1201
  ])
1172
1202
  ], 64)) : m("", !0),
1173
- e.value.type === "ohlc" ? (u(!0), i(S, { key: 5 }, M(C.value, (l, o) => (u(), i("g", null, [
1174
- p("path", {
1175
- d: `M ${l.high.x},${l.high.y} ${l.low.x},${l.low.y} M${l.open.x - Math.min(6, d.value / 3)},${l.open.y} ${l.open.x},${l.open.y} M${l.close.x},${l.close.y} ${l.close.x + Math.min(6, d.value / 3)},${l.close.y}`,
1203
+ e.value.type === "ohlc" ? (u(!0), i(z, { key: 5 }, M($.value, (l, a) => (u(), i("g", null, [
1204
+ g("path", {
1205
+ d: `M ${l.high.x},${l.high.y} ${l.low.x},${l.low.y} M${l.open.x - Math.min(6, v.value / 3)},${l.open.y} ${l.open.x},${l.open.y} M${l.close.x},${l.close.y} ${l.close.x + Math.min(6, v.value / 3)},${l.close.y}`,
1176
1206
  stroke: l.isBullish ? e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.colors.bearish,
1177
1207
  "stroke-width": 1
1178
- }, null, 8, Ta)
1208
+ }, null, 8, No)
1179
1209
  ]))), 256)) : m("", !0),
1180
- p("g", null, [
1181
- (u(!0), i(S, null, M(C.value, (l, o) => (u(), i("rect", {
1182
- x: n.value.left + o * d.value,
1210
+ g("g", null, [
1211
+ (u(!0), i(z, null, M($.value, (l, a) => (u(), i("rect", {
1212
+ x: n.value.left + a * v.value,
1183
1213
  y: n.value.top,
1184
1214
  height: n.value.height <= 0 ? 1e-4 : n.value.height,
1185
- width: d.value <= 0 ? 1e-4 : d.value,
1186
- fill: P.value === o || Ge.value === o ? h(Il)(e.value.style.layout.selector.color, e.value.style.layout.selector.opacity) : "transparent",
1187
- onMouseover: () => sl(o, l),
1188
- onMouseleave: () => ol(o, l),
1189
- onClick: () => al(o, l)
1190
- }, null, 40, Fa))), 256))
1215
+ width: v.value <= 0 ? 1e-4 : v.value,
1216
+ fill: R.value === a || Ge.value === a ? h(Vl)(e.value.style.layout.selector.color, e.value.style.layout.selector.opacity) : "transparent",
1217
+ onMouseover: () => hl(a, l),
1218
+ onMouseleave: () => yl(a, l),
1219
+ onClick: () => dl(a, l)
1220
+ }, null, 40, Vo))), 256))
1191
1221
  ])
1192
1222
  ])) : m("", !0),
1193
- tt.value ? (u(), i("rect", At({ key: 2 }, qt.value, {
1223
+ lt.value ? (u(), i("rect", At({ key: 2 }, ol.value, {
1194
1224
  "data-start": r.value.start,
1195
1225
  "data-end": r.value.end
1196
- }), null, 16, Ia)) : m("", !0),
1197
- b(t.$slots, "svg", {
1226
+ }), null, 16, Uo)) : m("", !0),
1227
+ x(t.$slots, "svg", {
1198
1228
  svg: {
1199
- ...f.value,
1200
- data: C.value,
1229
+ ...p.value,
1230
+ data: $.value,
1201
1231
  drawingArea: n.value
1202
1232
  }
1203
1233
  }, void 0, !0)
1204
- ], 14, ea)),
1205
- t.$slots.watermark ? (u(), i("div", Ma, [
1206
- b(t.$slots, "watermark", F(I({ isPrinting: h(Qe) || h(Je) })), void 0, !0)
1234
+ ], 14, ro)),
1235
+ t.$slots.watermark ? (u(), i("div", Wo, [
1236
+ x(t.$slots, "watermark", T(D({ isPrinting: h(Je) || h(Qe) })), void 0, !0)
1207
1237
  ])) : m("", !0),
1208
- e.value.style.zoom.show && $.value > 6 && ge.value && dt.value ? (u(), Q(Jl, {
1238
+ e.value.style.zoom.show && A.value > 6 && pe.value && dt.value ? (u(), K(uo, {
1209
1239
  key: 5,
1210
1240
  ref_key: "chartSlicer",
1211
1241
  ref: Z,
1212
- allMinimaps: Jt.value,
1242
+ allMinimaps: ul.value,
1213
1243
  background: e.value.style.zoom.color,
1214
1244
  borderColor: e.value.style.backgroundColor,
1215
1245
  customFormat: e.value.style.zoom.customFormat,
@@ -1222,10 +1252,10 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
1222
1252
  fontSize: e.value.style.zoom.fontSize,
1223
1253
  immediate: !e.value.style.zoom.preview.enable,
1224
1254
  inputColor: e.value.style.zoom.color,
1225
- isPreview: tt.value,
1226
- labelLeft: rt.value.start || "",
1227
- labelRight: rt.value.end || "",
1228
- max: $.value,
1255
+ isPreview: lt.value,
1256
+ labelLeft: ct.value.start || "",
1257
+ labelRight: ct.value.end || "",
1258
+ max: A.value,
1229
1259
  min: 0,
1230
1260
  minimap: e.value.style.zoom.minimap.show ? h(k).map((l) => l[2]) : [],
1231
1261
  minimapCompact: e.value.style.zoom.minimap.compact,
@@ -1234,70 +1264,70 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
1234
1264
  minimapMerged: !1,
1235
1265
  minimapSelectedColor: e.value.style.zoom.minimap.selectedColor,
1236
1266
  minimapSelectedColorOpacity: e.value.style.zoom.minimap.selectedColorOpacity,
1237
- minimapSelectedIndex: P.value,
1267
+ minimapSelectedIndex: R.value,
1238
1268
  minimapSelectionRadius: 1,
1239
- preciseLabels: ll.value,
1240
- refreshEndPoint: e.value.style.zoom.endIndex !== null ? e.value.style.zoom.endIndex + 1 : $.value,
1269
+ preciseLabels: vl.value,
1270
+ refreshEndPoint: e.value.style.zoom.endIndex !== null ? e.value.style.zoom.endIndex + 1 : A.value,
1241
1271
  refreshStartPoint: e.value.style.zoom.startIndex !== null ? e.value.style.zoom.startIndex : 0,
1242
1272
  selectColor: e.value.style.zoom.highlightColor,
1243
1273
  selectedSeries: h(k),
1244
1274
  smoothMinimap: !1,
1245
1275
  start: r.value.start,
1246
1276
  textColor: e.value.style.color,
1247
- timeLabels: it.value,
1277
+ timeLabels: nt.value,
1248
1278
  usePreciseLabels: e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable && !e.value.style.zoom.useDefaultFormat,
1249
1279
  useResetSlot: e.value.style.zoom.useResetSlot,
1250
1280
  valueEnd: r.value.end,
1251
1281
  valueStart: r.value.start,
1252
1282
  verticalHandles: e.value.style.zoom.minimap.verticalHandles,
1253
- "onUpdate:end": pl,
1254
- "onUpdate:start": ml,
1255
- onTrapMouse: hl,
1283
+ "onUpdate:end": $l,
1284
+ "onUpdate:start": Al,
1285
+ onTrapMouse: Cl,
1256
1286
  onReset: vt,
1257
- onFutureEnd: a[0] || (a[0] = (l) => lt("end", l)),
1258
- onFutureStart: a[1] || (a[1] = (l) => lt("start", l))
1287
+ onFutureEnd: o[0] || (o[0] = (l) => ot("end", l)),
1288
+ onFutureStart: o[1] || (o[1] = (l) => ot("start", l))
1259
1289
  }, {
1260
- "reset-action": g(({ reset: l }) => [
1261
- b(t.$slots, "reset-action", F(I({ reset: l })), void 0, !0)
1290
+ "reset-action": b(({ reset: l }) => [
1291
+ x(t.$slots, "reset-action", T(D({ reset: l })), void 0, !0)
1262
1292
  ]),
1263
- slotMap: g(({ height: l, unitW: o }) => [
1264
- (u(!0), i(S, null, M(Qt.value({ minimapH: l, unitW: o }), (s, v) => (u(), i("g", null, [
1265
- p("path", {
1293
+ slotMap: b(({ height: l, unitW: a }) => [
1294
+ (u(!0), i(z, null, M(sl.value({ minimapH: l, unitW: a }), (s, c) => (u(), i("g", null, [
1295
+ g("path", {
1266
1296
  d: `M ${s.high.x},${s.high.y} ${s.low.x},${s.low.y}`,
1267
1297
  stroke: s.isBullish ? e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.colors.bearish,
1268
1298
  "stroke-width": 1,
1269
1299
  style: ue({
1270
- opacity: v >= A.value.start && v <= A.value.end ? 1 : 0.6
1300
+ opacity: c >= C.value.start && c <= C.value.end ? 1 : 0.6
1271
1301
  })
1272
- }, null, 12, Ra),
1273
- p("path", {
1302
+ }, null, 12, Xo),
1303
+ g("path", {
1274
1304
  d: `M ${s.open.x},${s.open.y} ${s.close.x},${s.close.y}`,
1275
1305
  stroke: s.isBullish ? e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.colors.bearish,
1276
- "stroke-width": Math.min(6, o / 1.5),
1306
+ "stroke-width": Math.min(6, a / 1.5),
1277
1307
  style: ue({
1278
- opacity: v >= A.value.start && v <= A.value.end ? 1 : 0.6
1308
+ opacity: c >= C.value.start && c <= C.value.end ? 1 : 0.6
1279
1309
  })
1280
- }, null, 12, Oa)
1310
+ }, null, 12, jo)
1281
1311
  ]))), 256))
1282
1312
  ]),
1283
1313
  _: 3
1284
1314
  }, 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"])) : m("", !0),
1285
- p("div", {
1315
+ g("div", {
1286
1316
  ref_key: "chartLegend",
1287
- ref: Ve
1317
+ ref: Ue
1288
1318
  }, [
1289
- b(t.$slots, "legend", { legend: C.value }, void 0, !0)
1319
+ x(t.$slots, "legend", { legend: $.value }, void 0, !0)
1290
1320
  ], 512),
1291
1321
  t.$slots.source ? (u(), i("div", {
1292
1322
  key: 6,
1293
1323
  ref_key: "source",
1294
- ref: Ue,
1324
+ ref: We,
1295
1325
  dir: "auto"
1296
1326
  }, [
1297
- b(t.$slots, "source", {}, void 0, !0)
1327
+ x(t.$slots, "source", {}, void 0, !0)
1298
1328
  ], 512)) : m("", !0),
1299
- Pe(h(Rt), {
1300
- show: L.value.showTooltip && be.value,
1329
+ Re(h(Vt), {
1330
+ show: L.value.showTooltip && xe.value,
1301
1331
  backgroundColor: e.value.style.tooltip.backgroundColor,
1302
1332
  color: e.value.style.tooltip.color,
1303
1333
  borderRadius: e.value.style.tooltip.borderRadius,
@@ -1307,7 +1337,7 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
1307
1337
  backgroundOpacity: e.value.style.tooltip.backgroundOpacity,
1308
1338
  position: e.value.style.tooltip.position,
1309
1339
  offsetY: e.value.style.tooltip.offsetY,
1310
- parent: B.value,
1340
+ parent: O.value,
1311
1341
  content: ke.value,
1312
1342
  isFullscreen: q.value,
1313
1343
  isCustom: e.value.style.tooltip.customFormat && typeof e.value.style.tooltip.customFormat == "function",
@@ -1316,35 +1346,35 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
1316
1346
  smoothForce: e.value.style.tooltip.smoothForce,
1317
1347
  smoothSnapThreshold: e.value.style.tooltip.smoothSnapThreshold
1318
1348
  }, {
1319
- "tooltip-before": g(() => [
1320
- b(t.$slots, "tooltip-before", F(I({ ...Te.value })), void 0, !0)
1349
+ "tooltip-before": b(() => [
1350
+ x(t.$slots, "tooltip-before", T(D({ ...Se.value })), void 0, !0)
1321
1351
  ]),
1322
- "tooltip-after": g(() => [
1323
- b(t.$slots, "tooltip-after", F(I({ ...Te.value })), void 0, !0)
1352
+ "tooltip-after": b(() => [
1353
+ x(t.$slots, "tooltip-after", T(D({ ...Se.value })), void 0, !0)
1324
1354
  ]),
1325
1355
  _: 3
1326
1356
  }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
1327
- ge.value && e.value.userOptions.buttons.table ? (u(), Q(_l(oe.value.component), At({ key: 7 }, oe.value.props, {
1357
+ pe.value && e.value.userOptions.buttons.table ? (u(), K(Bl(ae.value.component), At({ key: 7 }, ae.value.props, {
1328
1358
  ref_key: "tableUnit",
1329
1359
  ref: te,
1330
- onClose: pt
1331
- }), wt({
1332
- content: g(() => [
1333
- (u(), Q(h(Dt), {
1334
- key: `table_${Xe.value}`,
1360
+ onClose: ft
1361
+ }), Ct({
1362
+ content: b(() => [
1363
+ (u(), K(h(Wt), {
1364
+ key: `table_${je.value}`,
1335
1365
  colNames: ye.value.colNames,
1336
1366
  head: ye.value.head,
1337
1367
  body: ye.value.body,
1338
1368
  config: ye.value.config,
1339
- title: e.value.table.useDialog ? "" : oe.value.title,
1369
+ title: e.value.table.useDialog ? "" : ae.value.title,
1340
1370
  withCloseButton: !e.value.table.useDialog,
1341
- onClose: pt
1371
+ onClose: ft
1342
1372
  }, {
1343
- th: g(({ th: l }) => [
1373
+ th: b(({ th: l }) => [
1344
1374
  $t(ie(l), 1)
1345
1375
  ]),
1346
- td: g(({ td: l }) => [
1347
- p("div", { innerHTML: l }, null, 8, Da)
1376
+ td: b(({ td: l }) => [
1377
+ g("div", { innerHTML: l }, null, 8, Ho)
1348
1378
  ]),
1349
1379
  _: 1
1350
1380
  }, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
@@ -1353,32 +1383,37 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
1353
1383
  }, [
1354
1384
  e.value.table.useDialog ? {
1355
1385
  name: "title",
1356
- fn: g(() => [
1357
- $t(ie(oe.value.title), 1)
1386
+ fn: b(() => [
1387
+ $t(ie(ae.value.title), 1)
1358
1388
  ]),
1359
1389
  key: "0"
1360
1390
  } : void 0,
1361
1391
  e.value.table.useDialog ? {
1362
1392
  name: "actions",
1363
- fn: g(() => [
1364
- p("button", {
1393
+ fn: b(() => [
1394
+ g("button", {
1365
1395
  tabindex: "0",
1366
1396
  class: "vue-ui-user-options-button",
1367
- onClick: a[2] || (a[2] = (l) => Fe(e.value.userOptions.callbacks.csv))
1397
+ onClick: o[2] || (o[2] = (l) => Te(e.value.userOptions.callbacks.csv))
1368
1398
  }, [
1369
- Pe(h(Mt), {
1399
+ Re(h(Nt), {
1370
1400
  name: "excel",
1371
- stroke: oe.value.props.color
1401
+ stroke: ae.value.props.color
1372
1402
  }, null, 8, ["stroke"])
1373
1403
  ])
1374
1404
  ]),
1375
1405
  key: "1"
1376
1406
  } : void 0
1377
1407
  ]), 1040)) : m("", !0),
1378
- h(N) ? (u(), Q(Vl, { key: 8 })) : m("", !0)
1379
- ], 46, Zl));
1408
+ h(P) ? (u(), K(Kl, { key: 8 })) : m("", !0)
1409
+ ], 46, no));
1380
1410
  }
1381
- }, eo = /* @__PURE__ */ Kl(Pa, [["__scopeId", "data-v-eec0be6e"]]);
1411
+ }, qo = /* @__PURE__ */ io(Go, [["__scopeId", "data-v-7a605f29"]]), da = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1412
+ __proto__: null,
1413
+ default: qo
1414
+ }, Symbol.toStringTag, { value: "Module" }));
1382
1415
  export {
1383
- eo as default
1416
+ va as a,
1417
+ da as b,
1418
+ qo as v
1384
1419
  };