vue-data-ui 3.25.3 → 3.25.5

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 (200) hide show
  1. package/README.md +13 -13
  2. package/dist/{Arrow-Bvx4_tSN.js → Arrow-DLn-pcrh.js} +1 -1
  3. package/dist/{BaseDraggableDialog-BCQY4Tir.js → BaseDraggableDialog-BM_R41j8.js} +2 -2
  4. package/dist/{BaseIcon-CVrQHhw1.js → BaseIcon-t83PDe9k.js} +1 -1
  5. package/dist/{BaseLegendToggle-BF-thEu0.js → BaseLegendToggle-__JnV08B.js} +1 -1
  6. package/dist/{BaseZoomControls-BAHeLgV8.js → BaseZoomControls-Xo16vFa4.js} +2 -2
  7. package/dist/{ColorPicker-B0CMtFkc.js → ColorPicker-Bn3MY7eL.js} +103 -101
  8. package/dist/{DataTable-BBpTEQY5.js → DataTable-COIO9gi4.js} +2 -2
  9. package/dist/{HillActions-ChMsbYib.js → HillActions-Cl-dNBZR.js} +1 -1
  10. package/dist/{Legend-DmitJZi5.js → Legend-X4kF4PvW.js} +2 -2
  11. package/dist/{NonSvgPenAndPaper-DNIpZGOP.js → NonSvgPenAndPaper-KXRhcsxM.js} +12 -12
  12. package/dist/{PackageVersion-hRJtldYi.js → PackageVersion-M2Ws-VwJ.js} +1 -1
  13. package/dist/{PenAndPaper-DzM1vUXR.js → PenAndPaper-BgH3m_LP.js} +30 -14
  14. package/dist/{Shape-BBKymE00.js → Shape-CIqU-p2F.js} +1 -1
  15. package/dist/{SlicerPreview-W4PWXK69.js → SlicerPreview-GvsdvE-h.js} +27 -27
  16. package/dist/{SparkTooltip-9hXY74AD.js → SparkTooltip-C-Y-mDrc.js} +1 -1
  17. package/dist/{Title-DIf1lG-_.js → Title-CPHi-evi.js} +1 -1
  18. package/dist/{Tooltip-C3jBTIhR.js → Tooltip-hhrkQ3Lk.js} +1 -1
  19. package/dist/{UserOptions-m0uxKoiy.js → UserOptions-f3Q0nqrj.js} +2 -2
  20. package/dist/components/arrow.js +1 -1
  21. package/dist/components/vue-ui-3d-bar.js +1 -1
  22. package/dist/components/vue-ui-accordion.js +1 -1
  23. package/dist/components/vue-ui-age-pyramid.js +1 -1
  24. package/dist/components/vue-ui-annotator.js +1 -1
  25. package/dist/components/vue-ui-bullet.js +1 -1
  26. package/dist/components/vue-ui-bump.js +1 -1
  27. package/dist/components/vue-ui-candlestick.js +1 -1
  28. package/dist/components/vue-ui-carousel-table.js +1 -1
  29. package/dist/components/vue-ui-chestnut.js +1 -1
  30. package/dist/components/vue-ui-chord.js +1 -1
  31. package/dist/components/vue-ui-circle-pack.js +1 -1
  32. package/dist/components/vue-ui-cursor.js +1 -1
  33. package/dist/components/vue-ui-dag.js +1 -1
  34. package/dist/components/vue-ui-dashboard.js +1 -1
  35. package/dist/components/vue-ui-digits.js +1 -1
  36. package/dist/components/vue-ui-donut-evolution.js +1 -1
  37. package/dist/components/vue-ui-donut.js +1 -1
  38. package/dist/components/vue-ui-dumbbell.js +1 -1
  39. package/dist/components/vue-ui-flow.js +1 -1
  40. package/dist/components/vue-ui-funnel.js +1 -1
  41. package/dist/components/vue-ui-galaxy.js +1 -1
  42. package/dist/components/vue-ui-gauge.js +1 -1
  43. package/dist/components/vue-ui-geo.js +1 -1
  44. package/dist/components/vue-ui-gizmo.js +1 -1
  45. package/dist/components/vue-ui-heatmap.js +1 -1
  46. package/dist/components/vue-ui-hill.js +1 -1
  47. package/dist/components/vue-ui-history-plot.js +1 -1
  48. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  49. package/dist/components/vue-ui-icon.js +1 -1
  50. package/dist/components/vue-ui-kpi.js +1 -1
  51. package/dist/components/vue-ui-label.js +1 -1
  52. package/dist/components/vue-ui-mini-loader.js +1 -1
  53. package/dist/components/vue-ui-molecule.js +1 -1
  54. package/dist/components/vue-ui-mood-radar.js +1 -1
  55. package/dist/components/vue-ui-nested-donuts.js +1 -1
  56. package/dist/components/vue-ui-onion.js +1 -1
  57. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  58. package/dist/components/vue-ui-quadrant.js +1 -1
  59. package/dist/components/vue-ui-quick-chart.js +1 -1
  60. package/dist/components/vue-ui-radar.js +1 -1
  61. package/dist/components/vue-ui-rating.js +1 -1
  62. package/dist/components/vue-ui-relation-circle.js +1 -1
  63. package/dist/components/vue-ui-ridgeline.js +1 -1
  64. package/dist/components/vue-ui-rings.js +1 -1
  65. package/dist/components/vue-ui-scatter.js +1 -1
  66. package/dist/components/vue-ui-skeleton.js +1 -1
  67. package/dist/components/vue-ui-smiley.js +1 -1
  68. package/dist/components/vue-ui-spark-trend.js +1 -1
  69. package/dist/components/vue-ui-sparkbar.js +1 -1
  70. package/dist/components/vue-ui-sparkgauge.js +1 -1
  71. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  72. package/dist/components/vue-ui-sparkline.js +1 -1
  73. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  74. package/dist/components/vue-ui-stackbar.js +1 -1
  75. package/dist/components/vue-ui-stackline.js +1 -1
  76. package/dist/components/vue-ui-strip-plot.js +1 -1
  77. package/dist/components/vue-ui-table-heatmap.js +1 -1
  78. package/dist/components/vue-ui-table-sparkline.js +1 -1
  79. package/dist/components/vue-ui-table.js +1 -1
  80. package/dist/components/vue-ui-thermometer.js +1 -1
  81. package/dist/components/vue-ui-timer.js +1 -1
  82. package/dist/components/vue-ui-tiremarks.js +1 -1
  83. package/dist/components/vue-ui-treemap.js +1 -1
  84. package/dist/components/vue-ui-vertical-bar.js +1 -1
  85. package/dist/components/vue-ui-waffle.js +1 -1
  86. package/dist/components/vue-ui-wheel.js +1 -1
  87. package/dist/components/vue-ui-word-cloud.js +1 -1
  88. package/dist/components/vue-ui-world.js +1 -1
  89. package/dist/components/vue-ui-xy-canvas.js +1 -1
  90. package/dist/components/vue-ui-xy.js +1 -1
  91. package/dist/{dom-to-png-DPcw-QzB.js → dom-to-png-C6cQJ5Hq.js} +1 -1
  92. package/dist/{exposedLib-BGrCpxDo.js → exposedLib-CG3aXJ-v.js} +9 -9
  93. package/dist/{img-IjqD_xWl.js → img-DhGApYG0.js} +1 -1
  94. package/dist/{labelUtils-Bgt85NUY.js → labelUtils-BXX2NzRe.js} +1 -1
  95. package/dist/{lib-C7t_vY8w.js → lib-Dql7cqyA.js} +200 -177
  96. package/dist/{package-NccReU84.js → package-ta2JoIjx.js} +1 -1
  97. package/dist/{pdf-HBji623H.js → pdf-Di5yPEw9.js} +1 -1
  98. package/dist/{render-common-CHj9aLwI.js → render-common-bvOuxfN3.js} +2 -2
  99. package/dist/ssr/vue-ui-donut.js +1 -1
  100. package/dist/ssr/vue-ui-xy.js +1 -1
  101. package/dist/ssr.js +2 -2
  102. package/dist/style.css +1 -1
  103. package/dist/types/vue-data-ui.d.ts +70 -1
  104. package/dist/types/vue-ui-annotator.d.ts +58 -2
  105. package/dist/{useConfig-CyCVHo81.js → useConfig-C_mX5pOZ.js} +1329 -1313
  106. package/dist/{useNestedProp-BfTgFMXF.js → useNestedProp-Chvyfpl-.js} +1 -1
  107. package/dist/{useObjectBindings-ByORl1rV.js → useObjectBindings-uXpBcVyo.js} +1 -1
  108. package/dist/{usePrinter-VVTuFI6H.js → usePrinter-DISD7q5m.js} +2 -2
  109. package/dist/utils.js +3 -3
  110. package/dist/{vue-data-ui-xQI9KcZd.js → vue-data-ui-BjdCpsRV.js} +70 -70
  111. package/dist/vue-data-ui.js +74 -74
  112. package/dist/vue-ui-3d-bar-C0aLR6lw.js +1831 -0
  113. package/dist/{vue-ui-accordion-DuARUUdY.js → vue-ui-accordion-DRf3NQyH.js} +4 -4
  114. package/dist/{vue-ui-age-pyramid-D-ggLbES.js → vue-ui-age-pyramid-DUcB3lYs.js} +219 -217
  115. package/dist/vue-ui-annotator-DZ0O8Xa5.js +3325 -0
  116. package/dist/vue-ui-bullet-DIOCMF2H.js +702 -0
  117. package/dist/{vue-ui-bump-DiH9-DLV.js → vue-ui-bump-DoHnD1Xy.js} +59 -57
  118. package/dist/{vue-ui-candlestick-B486ChH8.js → vue-ui-candlestick-Cf8TYPl5.js} +453 -447
  119. package/dist/vue-ui-carousel-table-k1cBJ1i1.js +467 -0
  120. package/dist/{vue-ui-chestnut-DGESmviK.js → vue-ui-chestnut-BMAuaeif.js} +278 -276
  121. package/dist/{vue-ui-chord-DQJ7RuvS.js → vue-ui-chord-DCe2iPjk.js} +37 -35
  122. package/dist/{vue-ui-circle-pack-YXuSpTIB.js → vue-ui-circle-pack-Eb5hS_z3.js} +34 -32
  123. package/dist/{vue-ui-cursor-Dju_nWZh.js → vue-ui-cursor-CQWLyEx0.js} +4 -4
  124. package/dist/{vue-ui-dag-C2f1v-IC.js → vue-ui-dag-BqlsutMj.js} +80 -78
  125. package/dist/{vue-ui-dashboard-pNI0se0n.js → vue-ui-dashboard-Be3MmkgS.js} +77 -75
  126. package/dist/{vue-ui-digits-C5Z_lpSZ.js → vue-ui-digits-BqdfbcKX.js} +4 -4
  127. package/dist/vue-ui-donut-CuQVKuZa.js +2415 -0
  128. package/dist/{vue-ui-donut-evolution-DQn-87Ak.js → vue-ui-donut-evolution-DckruxZ9.js} +378 -376
  129. package/dist/{vue-ui-donut-DZXYGFJc.js → vue-ui-donut-gzGZ42uH.js} +102 -102
  130. package/dist/{vue-ui-dumbbell-CDtBLV2m.js → vue-ui-dumbbell-BYU-hh2E.js} +142 -140
  131. package/dist/{vue-ui-flow-B0L2gQ3k.js → vue-ui-flow-DLRcNDLc.js} +46 -44
  132. package/dist/vue-ui-funnel-DjoqNN1U.js +749 -0
  133. package/dist/{vue-ui-galaxy-yF4pKrlD.js → vue-ui-galaxy-BhR4IOra.js} +249 -247
  134. package/dist/vue-ui-gauge-Cq161Kwp.js +934 -0
  135. package/dist/{vue-ui-geo-CFz30xe0.js → vue-ui-geo-Ca8kPYr-.js} +41 -39
  136. package/dist/{vue-ui-gizmo-ys9jjs02.js → vue-ui-gizmo-wUqHJICb.js} +4 -4
  137. package/dist/{vue-ui-heatmap-qigx4Z5I.js → vue-ui-heatmap-Bl5ymvi9.js} +186 -184
  138. package/dist/{vue-ui-hill-K3JKKF1b.js → vue-ui-hill-D6Y9Xy2K.js} +14 -12
  139. package/dist/vue-ui-history-plot-CvVjsdCL.js +1698 -0
  140. package/dist/vue-ui-horizontal-bar-3on3-H3B.js +1711 -0
  141. package/dist/{vue-ui-kpi-0W2GpUBQ.js → vue-ui-kpi-CUpRRIUf.js} +4 -4
  142. package/dist/{vue-ui-label-CBM2b0Aq.js → vue-ui-label-DR2qUZOG.js} +65 -65
  143. package/dist/{vue-ui-mini-loader-C-2BQ3hi.js → vue-ui-mini-loader-D8W-fERs.js} +3 -3
  144. package/dist/vue-ui-molecule-BExVLLgE.js +929 -0
  145. package/dist/{vue-ui-mood-radar-VCVoA-i7.js → vue-ui-mood-radar-TW251icr.js} +205 -203
  146. package/dist/{vue-ui-nested-donuts-CFPhvIy3.js → vue-ui-nested-donuts-CWzJKr3S.js} +129 -127
  147. package/dist/{vue-ui-onion-BMucjktR.js → vue-ui-onion-VaYZQK5i.js} +124 -122
  148. package/dist/{vue-ui-parallel-coordinate-plot-BhahYf50.js → vue-ui-parallel-coordinate-plot-RM25bxtf.js} +380 -378
  149. package/dist/{vue-ui-quadrant-77idomwS.js → vue-ui-quadrant-Dmtwow7n.js} +51 -49
  150. package/dist/{vue-ui-quick-chart-CNKuNur5.js → vue-ui-quick-chart-Cswm3_eI.js} +190 -188
  151. package/dist/{vue-ui-radar-CuT1AXHF.js → vue-ui-radar-C3GYthqu.js} +315 -313
  152. package/dist/{vue-ui-rating-CTuSylET.js → vue-ui-rating-CBdDXL80.js} +3 -3
  153. package/dist/vue-ui-relation-circle-BA0qy0kp.js +905 -0
  154. package/dist/{vue-ui-ridgeline-CijnGJ6-.js → vue-ui-ridgeline-C5skjBTe.js} +353 -344
  155. package/dist/{vue-ui-rings-DDGKIiGT.js → vue-ui-rings-BJ8yEQMw.js} +332 -330
  156. package/dist/vue-ui-scatter-DXg8ESgr.js +2405 -0
  157. package/dist/{vue-ui-skeleton-Clzzx8hc.js → vue-ui-skeleton-D_u8EWeW.js} +60 -60
  158. package/dist/{vue-ui-smiley-DILPVI14.js → vue-ui-smiley-DQOp87rr.js} +3 -3
  159. package/dist/{vue-ui-spark-trend-CYIyrTQj.js → vue-ui-spark-trend-CjCufXof.js} +9 -9
  160. package/dist/{vue-ui-sparkbar-C2HcYmPm.js → vue-ui-sparkbar-BniEM15a.js} +142 -142
  161. package/dist/{vue-ui-sparkgauge-BLJ0mImj.js → vue-ui-sparkgauge-BtyCrqTQ.js} +33 -33
  162. package/dist/{vue-ui-sparkhistogram-1FYy_qM3.js → vue-ui-sparkhistogram-DQdn3PW1.js} +27 -27
  163. package/dist/{vue-ui-sparkline-C11KKbIn.js → vue-ui-sparkline-9qkNNZG6.js} +254 -254
  164. package/dist/vue-ui-sparkstackbar-BXQlOdOk.js +738 -0
  165. package/dist/vue-ui-stackbar-CkjicNDv.js +2355 -0
  166. package/dist/vue-ui-stackline-BB1IZta8.js +2469 -0
  167. package/dist/vue-ui-strip-plot-DGLGuH6e.js +1740 -0
  168. package/dist/vue-ui-table-BXz_HY2g.js +1352 -0
  169. package/dist/{vue-ui-table-heatmap-Dj06PSQK.js → vue-ui-table-heatmap-XmDK1aHJ.js} +10 -10
  170. package/dist/{vue-ui-table-sparkline-1h7A5F1N.js → vue-ui-table-sparkline-MTEw3imE.js} +14 -14
  171. package/dist/{vue-ui-thermometer-CVKlj7fU.js → vue-ui-thermometer-CLx3SPRv.js} +36 -34
  172. package/dist/{vue-ui-timer-BWz6K56E.js → vue-ui-timer-BDWUNb6t.js} +6 -6
  173. package/dist/{vue-ui-tiremarks-D26MLo5F.js → vue-ui-tiremarks-DoaypTC-.js} +11 -9
  174. package/dist/{vue-ui-treemap-33VL-HnF.js → vue-ui-treemap-Bv7PgpiC.js} +45 -43
  175. package/dist/vue-ui-waffle-z2DhvSAx.js +1621 -0
  176. package/dist/{vue-ui-wheel-BPbR_-t8.js → vue-ui-wheel-DYLBJuFb.js} +31 -29
  177. package/dist/{vue-ui-word-cloud-RFcpvswb.js → vue-ui-word-cloud-CbpEhSdL.js} +32 -30
  178. package/dist/{vue-ui-world-CseHQjz7.js → vue-ui-world-C2atz4Xm.js} +120 -118
  179. package/dist/{vue-ui-xy-D_biv7Wg.js → vue-ui-xy-B3DQ6t46.js} +1496 -1490
  180. package/dist/{vue-ui-xy-C3UI9YIM.js → vue-ui-xy-CpA0W6zM.js} +424 -423
  181. package/dist/{vue-ui-xy-canvas-R1I0sffy.js → vue-ui-xy-canvas-CJefORWc.js} +78 -78
  182. package/package.json +1 -1
  183. package/dist/vue-ui-3d-bar-Cf5mJEzr.js +0 -1829
  184. package/dist/vue-ui-annotator-MvDwnq7k.js +0 -2886
  185. package/dist/vue-ui-bullet-DWe51l3b.js +0 -700
  186. package/dist/vue-ui-carousel-table-BPNQQVsu.js +0 -467
  187. package/dist/vue-ui-donut-CaMaNvIF.js +0 -2413
  188. package/dist/vue-ui-funnel-G5nO77o5.js +0 -747
  189. package/dist/vue-ui-gauge-DA92q6HZ.js +0 -932
  190. package/dist/vue-ui-history-plot-DUoXwHLn.js +0 -1696
  191. package/dist/vue-ui-horizontal-bar-C51hv9PU.js +0 -1709
  192. package/dist/vue-ui-molecule-B1ChvZql.js +0 -929
  193. package/dist/vue-ui-relation-circle-DxONGvTM.js +0 -903
  194. package/dist/vue-ui-scatter-Cwlhv9y6.js +0 -2403
  195. package/dist/vue-ui-sparkstackbar-B4H_cgzW.js +0 -738
  196. package/dist/vue-ui-stackbar-CBOAAVtS.js +0 -2349
  197. package/dist/vue-ui-stackline-24PeB3yN.js +0 -2463
  198. package/dist/vue-ui-strip-plot-C3Q1lECl.js +0 -1738
  199. package/dist/vue-ui-table-DMJWplCT.js +0 -1352
  200. package/dist/vue-ui-waffle-DIFpyE2V.js +0 -1619
@@ -1,51 +1,51 @@
1
1
  import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { $ as t, D as n, Ht as r, Nt as i, St as a, Ut as o, X as s, Xt as c, Yt as l, _ as ee, b as u, c as te, ft as ne, lt as re, nt as d, q as ie, t as ae, yt as oe } from "./lib-C7t_vY8w.js";
3
- import { n as se, t as ce } from "./useHints-Dq_w2E8B.js";
4
- import { n as le, r as ue, t as de } from "./useTimeLabels-d2f-W1L4.js";
5
- import { t as fe } from "./useConfig-CyCVHo81.js";
6
- import { t as pe } from "./usePrinter-VVTuFI6H.js";
7
- import { n as me, t as he } from "./BaseScanner-DZvpgOjM.js";
8
- import { t as ge } from "./useNestedProp-BfTgFMXF.js";
9
- import { t as _e } from "./useThemeCheck-C43Tcqmk.js";
10
- import { t as ve } from "./useChartExport-iwOqiIWX.js";
11
- import { t as ye } from "./useTransitions-g_zBREk2.js";
12
- import { t as be } from "./useTimeLabelCollider-AEcY4Ioe.js";
13
- import { t as xe } from "./img-IjqD_xWl.js";
14
- import { n as Se } from "./Title-DIf1lG-_.js";
15
- import { t as Ce } from "./_plugin-vue_export-helper-B3ysoDQm.js";
16
- import { l as we, t as Te } from "./useResponsive-ZtArZtUf.js";
17
- import { t as Ee } from "./DefGrad-DVBqDjhO.js";
18
- import { t as De } from "./SlicerPreview-W4PWXK69.js";
19
- import { t as Oe } from "./A11yDataTable-DdRsVULz.js";
20
- import { t as ke } from "./useUserOptionState-DK-_1ddE.js";
21
- import { t as Ae } from "./useChartAccessibility-DYqac8yF.js";
22
- import { t as je } from "./vue_ui_candlestick-J8jmJvxP.js";
23
- import { Fragment as f, computed as p, createBlock as m, createCommentVNode as h, createElementBlock as g, createElementVNode as _, createSlots as Me, createTextVNode as Ne, createVNode as Pe, defineAsyncComponent as v, guardReactiveProps as y, mergeProps as Fe, nextTick as Ie, normalizeClass as b, normalizeProps as x, normalizeStyle as S, onBeforeUnmount as Le, onMounted as Re, openBlock as C, ref as w, renderList as T, renderSlot as E, resolveDynamicComponent as ze, shallowRef as Be, toDisplayString as Ve, toRefs as He, unref as D, watch as Ue, watchEffect as We, withCtx as O } from "vue";
2
+ import { $ as t, Ct as n, D as r, Pt as i, Ut as a, Wt as o, X as s, Xt as c, Zt as l, _ as ee, b as u, bt as te, c as ne, ft as re, lt as ie, nt as d, pt as ae, q as oe, t as se } from "./lib-Dql7cqyA.js";
3
+ import { n as ce, t as le } from "./useHints-Dq_w2E8B.js";
4
+ import { n as ue, r as de, t as fe } from "./useTimeLabels-d2f-W1L4.js";
5
+ import { t as pe } from "./useConfig-C_mX5pOZ.js";
6
+ import { t as me } from "./usePrinter-DISD7q5m.js";
7
+ import { n as he, t as ge } from "./BaseScanner-DZvpgOjM.js";
8
+ import { t as _e } from "./useNestedProp-Chvyfpl-.js";
9
+ import { t as ve } from "./useThemeCheck-C43Tcqmk.js";
10
+ import { t as ye } from "./useChartExport-iwOqiIWX.js";
11
+ import { t as be } from "./useTransitions-g_zBREk2.js";
12
+ import { t as xe } from "./useTimeLabelCollider-AEcY4Ioe.js";
13
+ import { t as Se } from "./img-DhGApYG0.js";
14
+ import { n as Ce } from "./Title-CPHi-evi.js";
15
+ import { t as we } from "./_plugin-vue_export-helper-B3ysoDQm.js";
16
+ import { l as Te, t as Ee } from "./useResponsive-ZtArZtUf.js";
17
+ import { t as De } from "./DefGrad-DVBqDjhO.js";
18
+ import { t as Oe } from "./SlicerPreview-GvsdvE-h.js";
19
+ import { t as ke } from "./A11yDataTable-DdRsVULz.js";
20
+ import { t as Ae } from "./useUserOptionState-DK-_1ddE.js";
21
+ import { t as je } from "./useChartAccessibility-DYqac8yF.js";
22
+ import { t as Me } from "./vue_ui_candlestick-J8jmJvxP.js";
23
+ import { Fragment as f, computed as p, createBlock as m, createCommentVNode as h, createElementBlock as g, createElementVNode as _, createSlots as Ne, createTextVNode as Pe, createVNode as Fe, defineAsyncComponent as v, guardReactiveProps as y, mergeProps as Ie, nextTick as Le, normalizeClass as b, normalizeProps as x, normalizeStyle as Re, onBeforeUnmount as ze, onMounted as Be, openBlock as S, ref as C, renderList as w, renderSlot as T, resolveDynamicComponent as Ve, shallowRef as He, toDisplayString as E, toRefs as Ue, unref as D, watch as We, watchEffect as Ge, withCtx as O } from "vue";
24
24
  //#region src/components/vue-ui-candlestick.vue
25
- var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je = { style: { position: "relative" } }, Ye = [
25
+ var Ke = /* @__PURE__ */ e({ default: () => Et }), qe = ["id"], Je = ["id"], Ye = { style: { position: "relative" } }, Xe = [
26
26
  "xmlns",
27
27
  "aria-describedby",
28
28
  "viewBox"
29
- ], Xe = [
29
+ ], Ze = [
30
30
  "x",
31
31
  "y",
32
32
  "width",
33
33
  "height"
34
- ], Ze = { key: 1 }, Qe = { key: 0 }, $e = [
34
+ ], Qe = { key: 1 }, $e = { key: 0 }, et = [
35
35
  "x1",
36
36
  "x2",
37
37
  "y1",
38
38
  "y2",
39
39
  "stroke",
40
40
  "stroke-width"
41
- ], et = [
41
+ ], tt = [
42
42
  "x1",
43
43
  "x2",
44
44
  "y1",
45
45
  "y2",
46
46
  "stroke",
47
47
  "stroke-width"
48
- ], tt = [
48
+ ], nt = [
49
49
  "x1",
50
50
  "x2",
51
51
  "y1",
@@ -53,7 +53,7 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
53
53
  "stroke",
54
54
  "stroke-width",
55
55
  "stroke-dasharray"
56
- ], nt = [
56
+ ], rt = [
57
57
  "x1",
58
58
  "x2",
59
59
  "y1",
@@ -61,78 +61,78 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
61
61
  "stroke",
62
62
  "stroke-width",
63
63
  "stroke-dasharray"
64
- ], rt = [
64
+ ], it = [
65
65
  "x1",
66
66
  "x2",
67
67
  "y1",
68
68
  "y2",
69
69
  "stroke",
70
70
  "stroke-width"
71
- ], it = [
71
+ ], at = [
72
72
  "x1",
73
73
  "x2",
74
74
  "y1",
75
75
  "y2",
76
76
  "stroke",
77
77
  "stroke-width"
78
- ], at = [
78
+ ], ot = [
79
79
  "transform",
80
80
  "text-anchor",
81
81
  "font-size",
82
82
  "fill",
83
83
  "font-weight"
84
- ], ot = [
84
+ ], st = [
85
85
  "transform",
86
86
  "text-anchor",
87
87
  "font-size",
88
88
  "fill",
89
89
  "font-weight"
90
- ], st = [
90
+ ], ct = [
91
91
  "transform",
92
92
  "text-anchor",
93
93
  "font-size",
94
94
  "fill",
95
95
  "stroke",
96
96
  "font-weight"
97
- ], ct = [
97
+ ], lt = [
98
98
  "x",
99
99
  "y",
100
100
  "width",
101
101
  "height",
102
102
  "fill",
103
103
  "rx"
104
- ], lt = { key: 0 }, ut = [
104
+ ], ut = { key: 0 }, dt = [
105
105
  "cx",
106
106
  "cy",
107
107
  "r",
108
108
  "fill"
109
- ], dt = [
109
+ ], ft = [
110
110
  "cx",
111
111
  "cy",
112
112
  "r",
113
113
  "fill"
114
- ], ft = { key: 1 }, pt = [
114
+ ], pt = { key: 1 }, mt = [
115
115
  "x",
116
116
  "y",
117
117
  "width",
118
118
  "height",
119
119
  "rx",
120
120
  "fill"
121
- ], mt = [
121
+ ], ht = [
122
122
  "x",
123
123
  "y",
124
124
  "width",
125
125
  "height",
126
126
  "fill",
127
127
  "rx"
128
- ], ht = [
128
+ ], gt = [
129
129
  "x",
130
130
  "y",
131
131
  "height",
132
132
  "width",
133
133
  "fill",
134
134
  "rx"
135
- ], gt = [
135
+ ], _t = [
136
136
  "x",
137
137
  "y",
138
138
  "height",
@@ -141,7 +141,7 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
141
141
  "rx",
142
142
  "stroke",
143
143
  "stroke-width"
144
- ], _t = ["d", "stroke"], vt = [
144
+ ], vt = ["d", "stroke"], yt = [
145
145
  "x",
146
146
  "y",
147
147
  "height",
@@ -150,7 +150,7 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
150
150
  "onMouseover",
151
151
  "onMouseleave",
152
152
  "onClick"
153
- ], yt = ["data-start", "data-end"], bt = {
153
+ ], bt = ["data-start", "data-end"], xt = {
154
154
  key: 0,
155
155
  style: {
156
156
  position: "absolute",
@@ -160,14 +160,14 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
160
160
  },
161
161
  "data-dom-to-png-ignore": "",
162
162
  "aria-hidden": "true"
163
- }, xt = {
163
+ }, St = {
164
164
  key: 5,
165
165
  class: "vue-data-ui-watermark"
166
- }, St = ["d", "stroke"], Ct = [
166
+ }, Ct = ["d", "stroke"], wt = [
167
167
  "d",
168
168
  "stroke",
169
169
  "stroke-width"
170
- ], wt = ["innerHTML"], Tt = /*#__PURE__*/ Ce({
170
+ ], Tt = ["innerHTML"], Et = /*#__PURE__*/ we({
171
171
  __name: "vue-ui-candlestick",
172
172
  props: {
173
173
  config: {
@@ -188,16 +188,16 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
188
188
  }
189
189
  },
190
190
  emits: ["selectX", "copyAlt"],
191
- setup(e, { expose: Ce, emit: Ge }) {
192
- let Tt = v(() => import("./BaseIcon-CVrQHhw1.js").then((e) => e.n)), Et = v(() => import("./Tooltip-C3jBTIhR.js")), Dt = v(() => import("./vue-ui-accordion-DuARUUdY.js").then((e) => e.n)), Ot = v(() => import("./DataTable-BBpTEQY5.js")), kt = v(() => import("./PenAndPaper-DzM1vUXR.js").then((e) => e.t)), At = v(() => import("./UserOptions-m0uxKoiy.js").then((e) => e.n)), jt = v(() => import("./PackageVersion-hRJtldYi.js").then((e) => e.t)), Mt = v(() => import("./BaseDraggableDialog-BCQY4Tir.js").then((e) => e.n)), { vue_ui_candlestick: Nt } = fe(), { isThemeValid: Pt, warnInvalidTheme: Ft } = _e(), k = e, It = Ge, Lt = p(() => !!k.dataset && k.dataset.length), A = w(!1), Rt = w(null), j = w(ie()), zt = w(!1), Bt = w(""), M = w(void 0), Vt = w(0), N = w(null), Ht = w(null), Ut = w(null), Wt = w(null), Gt = w(null), Kt = w(null), qt = w(0), Jt = w(0), Yt = w(0), Xt = w(null), Zt = w(null), Qt = w(null), $t = w(null), en = w(null), P = w(null), tn = w({
191
+ setup(e, { expose: we, emit: Ke }) {
192
+ let Et = v(() => import("./BaseIcon-t83PDe9k.js").then((e) => e.n)), Dt = v(() => import("./Tooltip-hhrkQ3Lk.js")), Ot = v(() => import("./vue-ui-accordion-DRf3NQyH.js").then((e) => e.n)), kt = v(() => import("./DataTable-COIO9gi4.js")), At = v(() => import("./PenAndPaper-BgH3m_LP.js").then((e) => e.t)), jt = v(() => import("./UserOptions-f3Q0nqrj.js").then((e) => e.n)), Mt = v(() => import("./PackageVersion-M2Ws-VwJ.js").then((e) => e.t)), Nt = v(() => import("./BaseDraggableDialog-BM_R41j8.js").then((e) => e.n)), { vue_ui_candlestick: Pt } = pe(), { isThemeValid: Ft, warnInvalidTheme: It } = ve(), k = e, Lt = Ke, Rt = p(() => !!k.dataset && k.dataset.length), A = C(!1), zt = C(null), j = C(oe()), Bt = C(!1), Vt = C(""), M = C(void 0), Ht = C(0), N = C(null), Ut = C(null), Wt = C(null), Gt = C(null), Kt = C(null), qt = C(null), Jt = C(0), Yt = C(0), Xt = C(0), Zt = C(null), Qt = C(null), $t = C(null), en = C(null), tn = C(null), P = C(null), nn = C({
193
193
  x: 0,
194
194
  y: 0
195
- }), nn = w("pointer"), rn = w(!1), F = w(mn());
196
- se({
195
+ }), rn = C("pointer"), an = C(!1), F = C(hn());
196
+ ce({
197
197
  config: () => F.value,
198
198
  dataset: () => k.dataset,
199
199
  component: "VueUiCandlestick",
200
- rules: [ce.emptyArray, {
200
+ rules: [le.emptyArray, {
201
201
  test: (e) => e.length > 200,
202
202
  message: [
203
203
  "👀 Dataset has > 200 points, which can cause performance issues. Consider:",
@@ -208,10 +208,10 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
208
208
  ]
209
209
  }]
210
210
  });
211
- let { transitionEnabled: an } = ye({
211
+ let { transitionEnabled: on } = be({
212
212
  config: () => F.value.transitions,
213
213
  dataset: () => k.dataset
214
- }), on = p(() => F.value.userOptions.useCursorPointer), sn = p(() => c({
214
+ }), sn = p(() => F.value.userOptions.useCursorPointer), cn = p(() => l({
215
215
  defaultConfig: {
216
216
  useCssAnimation: !1,
217
217
  userOptions: { show: !1 },
@@ -249,13 +249,13 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
249
249
  }
250
250
  },
251
251
  userConfig: F.value.skeletonConfig ?? {}
252
- })), { loading: I, FINAL_DATASET: L, manualLoading: cn } = me({
253
- ...He(k),
252
+ })), { loading: I, FINAL_DATASET: L, manualLoading: ln } = he({
253
+ ...Ue(k),
254
254
  FINAL_CONFIG: F,
255
- prepareConfig: mn,
255
+ prepareConfig: hn,
256
256
  callback: () => {
257
257
  Promise.resolve().then(async () => {
258
- await cr();
258
+ await lr();
259
259
  });
260
260
  },
261
261
  skeletonDataset: k.config?.skeletonDataset ?? [
@@ -356,35 +356,35 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
356
356
  5100
357
357
  ]
358
358
  ],
359
- skeletonConfig: c({
359
+ skeletonConfig: l({
360
360
  defaultConfig: F.value,
361
- userConfig: sn.value
361
+ userConfig: cn.value
362
362
  })
363
- }), { userOptionsVisible: ln, setUserOptionsVisibility: un, keepUserOptionState: dn } = ke({ config: F.value }), { svgRef: R } = Ae({ config: F.value.style.title });
364
- function fn() {
365
- un(!0);
366
- }
363
+ }), { userOptionsVisible: un, setUserOptionsVisibility: dn, keepUserOptionState: fn } = Ae({ config: F.value }), { svgRef: R } = je({ config: F.value.style.title });
367
364
  function pn() {
368
- un(!1), It("selectX", {
365
+ dn(!0);
366
+ }
367
+ function mn() {
368
+ dn(!1), Lt("selectX", {
369
369
  seriesIndex: null,
370
370
  datapoint: null
371
371
  }), M.value = null;
372
372
  }
373
- function mn() {
374
- let e = ge({
373
+ function hn() {
374
+ let e = _e({
375
375
  userConfig: k.config,
376
- defaultConfig: Nt
376
+ defaultConfig: Pt
377
377
  }), t = {};
378
- k.config && oe(k.config, "style.layout.grid.xAxis.dataLabels.showFirstAndLast") && (e.style.layout.grid.xAxis.dataLabels.showFirstAndLast = !!k.config.style.layout.grid.xAxis.dataLabels.showFirstAndLast);
378
+ k.config && te(k.config, "style.layout.grid.xAxis.dataLabels.showFirstAndLast") && (e.style.layout.grid.xAxis.dataLabels.showFirstAndLast = !!k.config.style.layout.grid.xAxis.dataLabels.showFirstAndLast);
379
379
  let n = e.theme;
380
380
  if (n) {
381
- if (!Pt.value(e)) Ft(e), t = e;
381
+ if (!Ft.value(e)) It(e), t = e;
382
382
  else {
383
- let r = ge({
384
- userConfig: je[n] || k.config,
383
+ let r = _e({
384
+ userConfig: Me[n] || k.config,
385
385
  defaultConfig: e
386
386
  });
387
- t = { ...ge({
387
+ t = { ..._e({
388
388
  userConfig: k.config,
389
389
  defaultConfig: r
390
390
  }) };
@@ -392,91 +392,91 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
392
392
  } else t = e;
393
393
  return t;
394
394
  }
395
- Ue(() => k.config, (e) => {
396
- I.value || (F.value = mn()), ln.value = !F.value.userOptions.showOnChartHover, gn(), qt.value += 1, Yt.value += 1, Jt.value += 1, H.value.showTable = F.value.table.show, H.value.showTooltip = F.value.style.tooltip.show, kn();
397
- }, { deep: !0 }), Ue(() => k.dataset, (e) => {
398
- Array.isArray(e) && e.length > 0 && (cn.value = !1), ir();
395
+ We(() => k.config, (e) => {
396
+ I.value || (F.value = hn()), un.value = !F.value.userOptions.showOnChartHover, _n(), Jt.value += 1, Xt.value += 1, Yt.value += 1, H.value.showTable = F.value.table.show, H.value.showTooltip = F.value.style.tooltip.show, An();
397
+ }, { deep: !0 }), We(() => k.dataset, (e) => {
398
+ Array.isArray(e) && e.length > 0 && (ln.value = !1), ar();
399
399
  }, { deep: !0 });
400
- let z = w({
400
+ let z = C({
401
401
  height: F.value.style.height,
402
402
  width: F.value.style.width,
403
403
  xAxisFontSize: F.value.style.layout.grid.xAxis.dataLabels.fontSize,
404
404
  yAxisFontSize: F.value.style.layout.grid.yAxis.dataLabels.fontSize
405
- }), B = Be(null), V = Be(null);
406
- Re(() => {
407
- gn();
405
+ }), B = He(null), V = He(null);
406
+ Be(() => {
407
+ _n();
408
408
  });
409
- let hn = p(() => F.value.debug);
410
- function gn() {
409
+ let gn = p(() => F.value.debug);
410
+ function _n() {
411
411
  if (i(k.dataset) && (d({
412
412
  componentName: "VueUiCandlestick",
413
413
  type: "dataset",
414
- debug: hn.value
415
- }), cn.value = !0), i(k.dataset) || (cn.value = F.value.loading), setTimeout(() => {
414
+ debug: gn.value
415
+ }), ln.value = !0), i(k.dataset) || (ln.value = F.value.loading), setTimeout(() => {
416
416
  A.value = !0;
417
417
  }, 10), F.value.responsive) {
418
- let e = we(() => {
418
+ let e = Te(() => {
419
419
  A.value = !1;
420
- let { width: e, height: t } = Te({
420
+ let { width: e, height: t } = Ee({
421
421
  chart: N.value,
422
- title: F.value.style.title.text ? Ht.value : null,
423
- slicer: F.value.style.zoom.show && G.value > 6 ? Wt.value.$el : null,
424
- legend: Ut.value,
425
- source: Gt.value,
426
- noTitle: Kt.value
422
+ title: F.value.style.title.text ? Ut.value : null,
423
+ slicer: F.value.style.zoom.show && G.value > 6 ? Gt.value.$el : null,
424
+ legend: Wt.value,
425
+ source: Kt.value,
426
+ noTitle: qt.value
427
427
  });
428
428
  requestAnimationFrame(() => {
429
- z.value.width = e, z.value.height = t - 12, F.value.responsiveProportionalSizing ? (z.value.xAxisFontSize = l({
429
+ z.value.width = e, z.value.height = t - 12, F.value.responsiveProportionalSizing ? (z.value.xAxisFontSize = c({
430
430
  relator: Math.min(e, t),
431
431
  adjuster: F.value.style.width,
432
432
  source: F.value.style.layout.grid.xAxis.dataLabels.fontSize,
433
433
  threshold: 6,
434
434
  fallback: 6
435
- }), z.value.yAxisFontSize = l({
435
+ }), z.value.yAxisFontSize = c({
436
436
  relator: Math.min(e, t),
437
437
  adjuster: F.value.style.width,
438
438
  source: F.value.style.layout.grid.yAxis.dataLabels.fontSize,
439
439
  threshold: 6,
440
440
  fallback: 6
441
- })) : (z.value.xAxisFontSize = F.value.style.layout.grid.xAxis.dataLabels.fontSize, z.value.yAxisFontSize = F.value.style.layout.grid.yAxis.dataLabels.fontSize), Rt.value && clearTimeout(Rt.value), Rt.value = setTimeout(() => {
441
+ })) : (z.value.xAxisFontSize = F.value.style.layout.grid.xAxis.dataLabels.fontSize, z.value.yAxisFontSize = F.value.style.layout.grid.yAxis.dataLabels.fontSize), zt.value && clearTimeout(zt.value), zt.value = setTimeout(() => {
442
442
  A.value = !0;
443
443
  }, 10);
444
444
  });
445
445
  });
446
446
  B.value && (V.value && B.value.unobserve(V.value), B.value.disconnect()), B.value = new ResizeObserver(e), V.value = N.value.parentNode, B.value.observe(V.value);
447
447
  }
448
- cr();
448
+ lr();
449
449
  }
450
- Le(() => {
450
+ ze(() => {
451
451
  B.value && (V.value && B.value.unobserve(V.value), B.value.disconnect());
452
452
  });
453
- let { isPrinting: _n, isImaging: vn, generatePdf: yn, generateImage: bn } = pe({
453
+ let { isPrinting: vn, isImaging: yn, generatePdf: bn, generateImage: xn } = me({
454
454
  elementId: `vue-ui-candlestick_${j.value}`,
455
455
  fileName: F.value.style.title.text || "vue-ui-candlestick",
456
456
  options: F.value.userOptions.print
457
- }), xn = p(() => F.value.userOptions.show && !F.value.style.title.text), H = w({
457
+ }), Sn = p(() => F.value.userOptions.show && !F.value.style.title.text), H = C({
458
458
  showTable: F.value.table.show,
459
459
  showTooltip: F.value.style.tooltip.show
460
- }), Sn = w(0), Cn = we((e) => {
461
- Sn.value = e;
460
+ }), Cn = C(0), wn = Te((e) => {
461
+ Cn.value = e;
462
462
  }, 100);
463
- We((e) => {
464
- let t = Zt.value;
463
+ Ge((e) => {
464
+ let t = Qt.value;
465
465
  if (!t) return;
466
466
  let n = new ResizeObserver((e) => {
467
- Cn(e[0].contentRect.height);
467
+ wn(e[0].contentRect.height);
468
468
  });
469
469
  n.observe(t), e(() => n.disconnect());
470
- }), Le(() => {
471
- Sn.value = 0;
470
+ }), ze(() => {
471
+ Cn.value = 0;
472
472
  });
473
- let wn = p(() => {
473
+ let Tn = p(() => {
474
474
  let e = 0;
475
- return Zt.value && (e = Sn.value + z.value.xAxisFontSize), e;
475
+ return Qt.value && (e = Cn.value + z.value.xAxisFontSize), e;
476
476
  }), U = p(() => F.value.style.layout.grid.yAxis.position === "right");
477
- function Tn() {
477
+ function En() {
478
478
  let e = F.value.style.layout.grid.yAxis.dataLabels.offsetX;
479
- Xt.value && (e = Array.from(Xt.value.querySelectorAll("text")).reduce((e, t) => {
479
+ Zt.value && (e = Array.from(Zt.value.querySelectorAll("text")).reduce((e, t) => {
480
480
  let n = t.getComputedTextLength();
481
481
  return n > e ? n : e;
482
482
  }, 0));
@@ -490,19 +490,19 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
490
490
  };
491
491
  }
492
492
  let W = p(() => {
493
- let { top: e, right: t, bottom: n, left: r } = F.value.style.layout.padding, i = Tn();
493
+ let { top: e, right: t, bottom: n, left: r } = F.value.style.layout.padding, i = En();
494
494
  return {
495
495
  top: e + 12,
496
496
  right: z.value.width - t - i.right,
497
497
  left: r + i.left,
498
- bottom: z.value.height - n - wn.value,
498
+ bottom: z.value.height - n - Tn.value,
499
499
  width: z.value.width - r - t - i.left - i.right,
500
- height: z.value.height - e - n - wn.value - 12,
500
+ height: z.value.height - e - n - Tn.value - 12,
501
501
  scaleLabelsWidth: i.scaleLabelsWidth,
502
502
  yAxisNameWidth: i.yAxisNameWidth,
503
503
  crosshair: i.crosshair
504
504
  };
505
- }), En = p(() => {
505
+ }), Dn = p(() => {
506
506
  let { left: e, top: t, width: n, height: r } = W.value, i = K.value.start, a = K.value.end - i, o = n / a, s = q.value.start - i, c = q.value.end - i, l = Math.max(0, Math.min(a, s)), ee = Math.max(0, Math.min(a, c));
507
507
  return {
508
508
  x: e + l * o,
@@ -521,24 +521,24 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
521
521
  animation: "none !important"
522
522
  }
523
523
  };
524
- }), G = p(() => L.value.length), K = w({
524
+ }), G = p(() => L.value.length), K = C({
525
525
  start: 0,
526
526
  end: G.value
527
- }), q = w({
527
+ }), q = C({
528
528
  start: 0,
529
529
  end: G.value
530
- }), Dn = p(() => F.value.style.zoom.preview.enable && (q.value.start !== K.value.start || q.value.end !== K.value.end));
531
- function On(e, t) {
530
+ }), On = p(() => F.value.style.zoom.preview.enable && (q.value.start !== K.value.start || q.value.end !== K.value.end));
531
+ function kn(e, t) {
532
532
  q.value[e] = t;
533
533
  }
534
- function kn() {
534
+ function An() {
535
535
  let e = Math.max(0, Math.min(K.value.start ?? 0, G.value - 1)), t = Math.max(e + 1, Math.min(K.value.end ?? G.value, G.value));
536
- (!Number.isFinite(e) || !Number.isFinite(t) || t <= e) && (e = 0, t = G.value), K.value.start = e, K.value.end = t, q.value.start = e, q.value.end = t, Wt.value && (Wt.value.setStartValue(e), Wt.value.setEndValue(t));
536
+ (!Number.isFinite(e) || !Number.isFinite(t) || t <= e) && (e = 0, t = G.value), K.value.start = e, K.value.end = t, q.value.start = e, q.value.end = t, Gt.value && (Gt.value.setStartValue(e), Gt.value.setEndValue(t));
537
537
  }
538
- let An = p(() => L.value.map((e, t) => ({
538
+ let jn = p(() => L.value.map((e, t) => ({
539
539
  ...e,
540
540
  absoluteIndex: t
541
- }))), jn = p(() => An.value.slice(K.value.start, K.value.end)), J = p(() => (hn.value && L.value.forEach((e, t) => {
541
+ }))), Mn = p(() => jn.value.slice(K.value.start, K.value.end)), J = p(() => (gn.value && L.value.forEach((e, t) => {
542
542
  [null, void 0].includes(e[0]) && d({
543
543
  componentName: "VueUiCandlestick",
544
544
  type: "datasetAttribute",
@@ -570,7 +570,7 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
570
570
  property: "volume (index 5)",
571
571
  index: t
572
572
  });
573
- }), jn.value.map((e) => ({
573
+ }), Mn.value.map((e) => ({
574
574
  absoluteIndex: e.absoluteIndex,
575
575
  period: e[0],
576
576
  open: e[1],
@@ -578,7 +578,7 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
578
578
  low: e[3],
579
579
  close: e[4],
580
580
  volume: e[5]
581
- })))), Mn = p(() => An.value.map((e) => ({
581
+ })))), Nn = p(() => jn.value.map((e) => ({
582
582
  absoluteIndex: e.absoluteIndex,
583
583
  period: e[0],
584
584
  open: e[1],
@@ -586,11 +586,11 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
586
586
  low: e[3],
587
587
  close: e[4],
588
588
  volume: e[5]
589
- }))), Y = p(() => W.value.width / jn.value.length), Nn = p(() => ({
589
+ }))), Y = p(() => W.value.width / Mn.value.length), Pn = p(() => ({
590
590
  max: F.value.style.layout.grid.yAxis.scale.max === null ? Math.max(...J.value.map((e) => e.high)) : F.value.style.layout.grid.yAxis.scale.max,
591
591
  min: F.value.style.layout.grid.yAxis.scale.min === null ? 0 : F.value.style.layout.grid.yAxis.scale.min
592
- })), X = p(() => ee(Nn.value.min, Nn.value.max, F.value.style.layout.grid.yAxis.dataLabels.steps));
593
- function Pn(e, t, n = null, r = null) {
592
+ })), X = p(() => ee(Pn.value.min, Pn.value.max, F.value.style.layout.grid.yAxis.dataLabels.steps));
593
+ function Fn(e, t, n = null, r = null) {
594
594
  return {
595
595
  ...e,
596
596
  x: u(W.value.left + t * Y.value + Y.value / 2),
@@ -613,7 +613,7 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
613
613
  c: Math.min(...J.value.map((e) => e.low))
614
614
  }, n = Math.max(...J.value.map((e) => e.volume)), r = Math.min(...J.value.map((e) => e.volume));
615
615
  return J.value.map((i, a) => {
616
- let o = Pn(i.open, a, e.o, t.o), s = Pn(i.high, a, e.h, t.h), c = Pn(i.low, a, e.l, t.l), l = Pn(i.close, a, e.c, t.c), ee = i.close > i.open, u = i.volume === n, te = i.volume === r;
616
+ let o = Fn(i.open, a, e.o, t.o), s = Fn(i.high, a, e.h, t.h), c = Fn(i.low, a, e.l, t.l), l = Fn(i.close, a, e.c, t.c), ee = i.close > i.open, u = i.volume === n, te = i.volume === r;
617
617
  return {
618
618
  period: i.period,
619
619
  open: o,
@@ -628,7 +628,7 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
628
628
  };
629
629
  });
630
630
  });
631
- function Fn({ item: e, index: t, minimapH: n, unitW: r }) {
631
+ function In({ item: e, index: t, minimapH: n, unitW: r }) {
632
632
  let i = F.value.style.layout.grid.yAxis.scale.min ?? 0, a = F.value.style.layout.grid.yAxis.scale.max ?? Math.max(...L.value.map((e) => e[2]));
633
633
  return {
634
634
  ...e,
@@ -637,23 +637,23 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
637
637
  value: u(e)
638
638
  };
639
639
  }
640
- let In = p(() => ({ minimapH: e, unitW: t }) => Mn.value.map((n, r) => {
641
- let i = Fn({
640
+ let Ln = p(() => ({ minimapH: e, unitW: t }) => Nn.value.map((n, r) => {
641
+ let i = In({
642
642
  item: n.open,
643
643
  index: r,
644
644
  minimapH: e,
645
645
  unitW: t
646
- }), a = Fn({
646
+ }), a = In({
647
647
  item: n.high,
648
648
  index: r,
649
649
  minimapH: e,
650
650
  unitW: t
651
- }), o = Fn({
651
+ }), o = In({
652
652
  item: n.low,
653
653
  index: r,
654
654
  minimapH: e,
655
655
  unitW: t
656
- }), s = Fn({
656
+ }), s = In({
657
657
  item: n.close,
658
658
  index: r,
659
659
  minimapH: e,
@@ -669,108 +669,112 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
669
669
  isBullish: c,
670
670
  absoluteIndex: n.absoluteIndex
671
671
  };
672
- })), Ln = p(() => F.value.style.zoom.minimap.show ? [{
672
+ })), Rn = p(() => F.value.style.zoom.minimap.show ? [{
673
673
  name: "",
674
674
  series: L.value.map((e) => e[2]),
675
675
  color: "#000000",
676
676
  isVisible: !0
677
677
  }] : []);
678
- function Rn(e) {
678
+ function zn(e) {
679
679
  return u((e - X.value.min) / (X.value.max - X.value.min));
680
680
  }
681
- let zn = p(() => X.value.ticks.map((e) => ({
682
- y: W.value.bottom - W.value.height * Rn(e),
681
+ let Bn = p(() => X.value.ticks.map((e) => ({
682
+ y: W.value.bottom - W.value.height * zn(e),
683
683
  value: u(e)
684
- }))), Bn = p(() => J.value.map((e) => e.period)), Q = w([]), Vn = w([]), Hn = 0;
685
- We(() => {
686
- let e = ++Hn;
684
+ }))), Vn = p(() => J.value.map((e) => e.period)), Q = C([]), Hn = C([]), Un = 0;
685
+ Ge(() => {
686
+ let e = ++Un;
687
687
  (async () => {
688
- let t = await de({
688
+ let t = await fe({
689
689
  values: L.value.map((e) => e[0]),
690
690
  maxDatapoints: L.value.length,
691
691
  formatter: F.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter,
692
692
  start: K.value.start,
693
693
  end: K.value.end
694
694
  });
695
- e === Hn && (Q.value = t);
695
+ e === Un && (Q.value = t);
696
696
  })();
697
697
  });
698
- let Un = 0;
699
- We(() => {
700
- let e = ++Un;
698
+ let Wn = 0;
699
+ Ge(() => {
700
+ let e = ++Wn;
701
701
  (async () => {
702
- let t = await de({
702
+ let t = await fe({
703
703
  values: L.value.map((e) => e[0]),
704
704
  maxDatapoints: L.value.length,
705
705
  formatter: F.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter,
706
706
  start: 0,
707
707
  end: G.value
708
708
  });
709
- e === Un && (Vn.value = t);
709
+ e === Wn && (Hn.value = t);
710
710
  })();
711
711
  });
712
- let Wn = w({
712
+ let Gn = C({
713
713
  months: [],
714
714
  shortMonths: [],
715
715
  days: [],
716
716
  shortDays: []
717
- }), Gn = 0;
718
- We(() => {
719
- let e = ++Gn, t = F.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter;
717
+ }), Kn = 0;
718
+ Ge(() => {
719
+ let e = ++Kn, t = F.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter;
720
720
  (async () => {
721
- let n = await ue(t.locale).catch(() => ue("en"));
722
- e === Gn && (Wn.value = n.data);
721
+ let n = await de(t.locale).catch(() => de("en"));
722
+ e === Kn && (Gn.value = n.data);
723
723
  })();
724
724
  });
725
- let Kn = p(() => {
726
- let e = F.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter, t = le({
725
+ let qn = p(() => {
726
+ let e = F.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter, t = ue({
727
727
  useUTC: e.useUTC,
728
- locale: Wn.value,
728
+ locale: Gn.value,
729
729
  januaryAsYear: e.januaryAsYear
730
730
  });
731
731
  return (e, n) => {
732
732
  let r = L.value.map((e) => e[0])?.[e];
733
733
  return r == null ? "" : t.formatDate(new Date(r), n);
734
734
  };
735
- }), qn = p(() => (L.value.map((e) => e[0]) || []).map((e, t) => ({
736
- text: Kn.value(t, F.value.style.tooltip.timeFormat),
735
+ }), Jn = p(() => (L.value.map((e) => e[0]) || []).map((e, t) => ({
736
+ text: qn.value(t, F.value.style.tooltip.timeFormat),
737
737
  absoluteIndex: t
738
- }))), Jn = p(() => (L.value.map((e) => e[0]) || []).map((e, t) => ({
739
- text: Kn.value(t, F.value.style.zoom.timeFormat),
738
+ }))), Yn = p(() => (L.value.map((e) => e[0]) || []).map((e, t) => ({
739
+ text: qn.value(t, F.value.style.zoom.timeFormat),
740
740
  absoluteIndex: t
741
- }))), Yn = p(() => {
742
- let e = Math.max(1, Math.floor(Number(F.value.style.layout.grid.xAxis.dataLabels.modulo) || 1)), t = Vn.value.length, n = Q.value.length;
743
- if (!t || !n) return e;
744
- let r = Math.max(1, Math.ceil(t / e));
745
- return Math.max(1, Math.round(n / r));
746
- }), Xn = p(() => {
747
- let e = F.value.style.layout.grid.xAxis.dataLabels, t = Q.value || [], n = Vn.value || [], r = K.value.start ?? 0, i = M.value, a = G.value, o = t.map((e) => e?.text ?? ""), s = n.map((e) => e?.text ?? ""), c = te(!!e.showOnlyFirstAndLast, !!e.showOnlyAtModulo, Yn.value, o, s, r, i, a);
748
- if (!e.showFirstAndLast || !e.showOnlyAtModulo || e.showOnlyFirstAndLast || !c.length) return c;
741
+ }))), Xn = p(() => {
742
+ let e = Math.max(1, Math.floor(Number(F.value.style.layout.grid.xAxis.dataLabels.modulo) || 1)), t = (Q.value || []).map((e) => e?.text ?? ""), n = (Hn.value || []).map((e) => e?.text ?? ""), r = K.value.start ?? 0, i = r > 0 || t.length < n.length;
743
+ return re({
744
+ configuredModulo: e,
745
+ visibleTexts: t,
746
+ allTexts: n,
747
+ startAbs: r,
748
+ isZoomed: i
749
+ });
750
+ }), Zn = p(() => {
751
+ let e = F.value.style.layout.grid.xAxis.dataLabels, t = Q.value || [], n = Hn.value || [], r = K.value.start ?? 0, i = M.value, a = G.value, o = t.map((e) => e?.text ?? ""), s = n.map((e) => e?.text ?? ""), c = ne(!!e.showOnlyFirstAndLast, !!e.showOnlyAtModulo, Xn.value, o, s, r, i, a);
752
+ if (!e.showFirstAndLast || e.showOnlyFirstAndLast || !c.length) return c;
749
753
  let l = c.length - 1;
750
754
  return c.map((e, t) => t !== 0 && t !== l ? e : {
751
755
  ...e,
752
756
  text: o[t] ?? ""
753
757
  });
754
- }), Zn = p(() => F.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? {
758
+ }), Qn = p(() => F.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? {
755
759
  start: Q.value.find((e) => e.absoluteIndex === K.value.start)?.text ?? "",
756
760
  end: Q.value.find((e) => e.absoluteIndex === K.value.end - 1)?.text ?? ""
757
761
  } : {
758
762
  start: L.value[K.value.start] ? L.value[K.value.start][0] : L.value[0][0],
759
763
  end: L.value[K.value.end - 1] ? L.value[K.value.end - 1][0] : L.value.at(-1)[0]
760
- }), Qn = w(null);
761
- function $n(e, t) {
764
+ }), $n = C(null);
765
+ function er(e, t) {
762
766
  F.value.events.datapointClick && F.value.events.datapointClick({
763
767
  datapoint: t,
764
768
  seriesIndex: e + K.value.start
765
769
  });
766
770
  }
767
- function er(e, t) {
771
+ function tr(e, t) {
768
772
  F.value.events.datapointLeave && F.value.events.datapointLeave({
769
773
  datapoint: t,
770
774
  seriesIndex: e + K.value.start
771
- }), M.value = void 0, zt.value = !1, P.value = null, nn.value = "pointer";
775
+ }), M.value = void 0, Bt.value = !1, P.value = null, rn.value = "pointer";
772
776
  }
773
- Ue(() => k.selectedXIndex, (e) => {
777
+ We(() => k.selectedXIndex, (e) => {
774
778
  if ([null, void 0].includes(k.selectedXIndex)) {
775
779
  M.value = null;
776
780
  return;
@@ -778,35 +782,35 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
778
782
  let t = e - K.value.start;
779
783
  t < 0 || e >= K.value.end ? M.value = null : M.value = t ?? null;
780
784
  }, { immediate: !0 });
781
- function tr(e, t, n = "pointer") {
785
+ function nr(e, t, r = "pointer") {
782
786
  F.value.events.datapointEnter && F.value.events.datapointEnter({
783
787
  datapoint: t,
784
788
  seriesIndex: e + K.value.start
785
- }), M.value = e, P.value = e, nn.value = n, Qn.value = {
789
+ }), M.value = e, P.value = e, rn.value = r, $n.value = {
786
790
  datapoint: t,
787
791
  seriesIndex: e,
788
792
  series: Z.value,
789
793
  config: F.value
790
- }, jr({
794
+ }, Mr({
791
795
  seriesIndex: e,
792
796
  datapoint: t
793
797
  });
794
- let r = F.value.style.tooltip.customFormat;
795
- if (a(r) && re(() => r({
798
+ let i = F.value.style.tooltip.customFormat;
799
+ if (n(i) && ie(() => i({
796
800
  seriesIndex: e,
797
801
  datapoint: t,
798
802
  series: Z.value,
799
803
  config: F.value
800
- }))) Bt.value = r({
804
+ }))) Vt.value = i({
801
805
  seriesIndex: e,
802
806
  datapoint: t,
803
807
  series: Z.value,
804
808
  config: F.value
805
809
  });
806
810
  else if (F.value.style.tooltip.show) {
807
- let n = "", { period: r, open: i, high: a, low: o, close: c, volume: l, isBullish: ee } = Z.value[e], { period: u, open: te, high: ne, low: re, close: d, volume: ie } = F.value.translations, ae = F.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? F.value.style.tooltip.useDefaultTimeFormat ? Q.value[e].text : qn.value[e].text : r;
811
+ let n = "", { period: r, open: i, high: a, low: o, close: c, volume: l, isBullish: ee } = Z.value[e], { period: u, open: te, high: ne, low: re, close: ie, volume: d } = F.value.translations, ae = F.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? F.value.style.tooltip.useDefaultTimeFormat ? Q.value[e].text : Jn.value[e].text : r;
808
812
  n += `<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="${F.value.style.layout.candle.borderRadius * 3}" stroke="${F.value.style.layout.candle.stroke}" stroke-width="${F.value.style.layout.candle.strokeWidth}"
809
- fill="${F.value.style.layout.candle.gradient.show ? ee ? `url(#bullish_gradient_${j.value})` : `url(#bearish_gradient_${j.value})` : ee ? F.value.style.layout.candle.colors.bullish : F.value.style.layout.candle.colors.bearish}"/></svg>${ae}</div>`, n += `${ie} : <b>${isNaN(l) ? "-" : Number(l.toFixed(F.value.style.tooltip.roundingValue)).toLocaleString()}</b>`, n += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${F.value.style.tooltip.borderColor}">`;
813
+ fill="${F.value.style.layout.candle.gradient.show ? ee ? `url(#bullish_gradient_${j.value})` : `url(#bearish_gradient_${j.value})` : ee ? F.value.style.layout.candle.colors.bullish : F.value.style.layout.candle.colors.bearish}"/></svg>${ae}</div>`, n += `${d} : <b>${isNaN(l) ? "-" : Number(l.toFixed(F.value.style.tooltip.roundingValue)).toLocaleString()}</b>`, n += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${F.value.style.tooltip.borderColor}">`;
810
814
  let oe = s({
811
815
  p: F.value.style.tooltip.prefix,
812
816
  v: i.value,
@@ -848,43 +852,43 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
848
852
  <g>
849
853
  </svg>
850
854
  <div>
851
- ` : (n += `<div>${te}: <b>${oe}</b></div>`, n += `<div>${ne}: <b>${se}</b></div>`, n += `<div>${re}: <b>${ce}</b></div>`, n += `<div>${d}: <b>${le}</b></div>`), n += "</div>", Bt.value = `<div style="text-align:right">${n}</div>`;
855
+ ` : (n += `<div>${te}: <b>${oe}</b></div>`, n += `<div>${ne}: <b>${se}</b></div>`, n += `<div>${re}: <b>${ce}</b></div>`, n += `<div>${ie}: <b>${le}</b></div>`), n += "</div>", Vt.value = `<div style="text-align:right">${n}</div>`;
852
856
  }
853
- zt.value = !0;
857
+ Bt.value = !0;
854
858
  }
855
- let nr = w(null);
856
- function rr() {
859
+ let rr = C(null);
860
+ function ir() {
857
861
  return new Promise((e) => requestAnimationFrame(() => requestAnimationFrame(() => e())));
858
862
  }
859
- Le(() => {
860
- nr.value && cancelAnimationFrame(nr.value);
863
+ ze(() => {
864
+ rr.value && cancelAnimationFrame(rr.value);
861
865
  });
862
- async function ir() {
863
- cr(), await Ie(), nr.value && cancelAnimationFrame(nr.value), nr.value = requestAnimationFrame(async () => {
864
- await rr(), cr();
866
+ async function ar() {
867
+ lr(), await Le(), rr.value && cancelAnimationFrame(rr.value), rr.value = requestAnimationFrame(async () => {
868
+ await ir(), lr();
865
869
  });
866
870
  }
867
- let ar = w(!1), or = w(!1), sr = w(!1);
868
- function cr() {
869
- if (!ar.value) {
870
- ar.value = !0;
871
+ let or = C(!1), sr = C(!1), cr = C(!1);
872
+ function lr() {
873
+ if (!or.value) {
874
+ or.value = !0;
871
875
  try {
872
- let { startIndex: e, endIndex: t } = F.value.style.zoom, n = G.value, r = e ?? 0, i = t == null ? n : Math.min(lr(t + 1), n);
873
- sr.value = !0, K.value.start = r, K.value.end = i, q.value.start = r, q.value.end = i, kn(), or.value = !0;
876
+ let { startIndex: e, endIndex: t } = F.value.style.zoom, n = G.value, r = e ?? 0, i = t == null ? n : Math.min(ur(t + 1), n);
877
+ cr.value = !0, K.value.start = r, K.value.end = i, q.value.start = r, q.value.end = i, An(), sr.value = !0;
874
878
  } finally {
875
879
  queueMicrotask(() => {
876
- sr.value = !1;
877
- }), ar.value = !1;
880
+ cr.value = !1;
881
+ }), or.value = !1;
878
882
  }
879
883
  }
880
884
  }
881
- function lr(e) {
885
+ function ur(e) {
882
886
  let t = G.value;
883
887
  return e > t ? t : e < 0 || e < K.value.start ? F.value.style.zoom.startIndex === null ? 1 : F.value.style.zoom.startIndex + 1 : e;
884
888
  }
885
- function ur(e = null) {
886
- Ie(() => {
887
- let r = [
889
+ function dr(e = null) {
890
+ Le(() => {
891
+ let n = [
888
892
  F.value.translations.period,
889
893
  F.value.translations.open,
890
894
  F.value.translations.high,
@@ -906,15 +910,15 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
906
910
  [""],
907
911
  [""]
908
912
  ],
909
- r
910
- ].concat(i), o = n(a);
913
+ n
914
+ ].concat(i), o = r(a);
911
915
  e ? e(o) : t({
912
916
  csvContent: o,
913
917
  title: F.value.style.title.text || "vue-ui-candlestick"
914
918
  });
915
919
  });
916
920
  }
917
- let dr = p(() => {
921
+ let fr = p(() => {
918
922
  let e = Z.value.map((e, t) => {
919
923
  let n = F.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? Q.value?.[t]?.text ?? "" : e.period, r = s({
920
924
  p: F.value.table.td.prefix,
@@ -999,23 +1003,23 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
999
1003
  config: n,
1000
1004
  colNames: r
1001
1005
  };
1002
- }), $ = w(!1);
1003
- function fr(e) {
1004
- $.value = e, Vt.value += 1;
1006
+ }), $ = C(!1);
1007
+ function pr(e) {
1008
+ $.value = e, Ht.value += 1;
1005
1009
  }
1006
- function pr() {
1010
+ function mr() {
1007
1011
  H.value.showTable = !H.value.showTable;
1008
1012
  }
1009
- function mr() {
1013
+ function hr() {
1010
1014
  H.value.showTooltip = !H.value.showTooltip;
1011
1015
  }
1012
- let hr = w(!1);
1013
- function gr() {
1014
- hr.value = !hr.value;
1016
+ let gr = C(!1);
1017
+ function _r() {
1018
+ gr.value = !gr.value;
1015
1019
  }
1016
- async function _r({ scale: e = 2 } = {}) {
1020
+ async function vr({ scale: e = 2 } = {}) {
1017
1021
  if (!N.value) return;
1018
- let { imageUri: t, base64: n } = await xe({
1022
+ let { imageUri: t, base64: n } = await Se({
1019
1023
  domElement: N.value,
1020
1024
  base64: !0,
1021
1025
  img: !0,
@@ -1024,7 +1028,7 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
1024
1028
  width: r.width,
1025
1029
  height: r.height,
1026
1030
  aspectRatio: r.height ? r.width / r.height : 0
1027
- }, a = await ne(t, e) ?? i;
1031
+ }, a = await ae(t, e) ?? i;
1028
1032
  return {
1029
1033
  imageUri: t,
1030
1034
  base64: n,
@@ -1032,9 +1036,9 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
1032
1036
  ...a
1033
1037
  };
1034
1038
  }
1035
- let vr = p(() => z.value.width), yr = p(() => z.value.height);
1036
- be({
1037
- timeLabelsEls: Zt,
1039
+ let yr = p(() => z.value.width), br = p(() => z.value.height);
1040
+ xe({
1041
+ timeLabelsEls: Qt,
1038
1042
  timeLabels: Q,
1039
1043
  slicer: K,
1040
1044
  configRef: F,
@@ -1057,18 +1061,18 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
1057
1061
  ],
1058
1062
  isAutoSize: !1,
1059
1063
  rotation: F.value.style.layout.grid.xAxis.dataLabels.autoRotate.angle,
1060
- width: vr,
1061
- height: yr
1062
- }), Ue(F, () => {
1064
+ width: yr,
1065
+ height: br
1066
+ }), We(F, () => {
1063
1067
  H.value = {
1064
1068
  showTable: F.value.table.show,
1065
1069
  showTooltip: F.value.style.tooltip.show
1066
1070
  };
1067
1071
  }, { immediate: !0 });
1068
- let br = p(() => {
1072
+ let xr = p(() => {
1069
1073
  let e = F.value.table.useDialog && !F.value.table.show, t = H.value.showTable;
1070
1074
  return {
1071
- component: e ? Mt : Dt,
1075
+ component: e ? Nt : Ot,
1072
1076
  title: `${F.value.style.title.text}${F.value.style.title.subtitle.text ? `: ${F.value.style.title.subtitle.text}` : ""}`,
1073
1077
  props: e ? {
1074
1078
  backgroundColor: F.value.table.th.backgroundColor,
@@ -1078,7 +1082,7 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
1078
1082
  isFullscreen: $.value,
1079
1083
  fullscreenParent: N.value,
1080
1084
  forcedWidth: Math.min(800, window.innerWidth * .8),
1081
- isCursorPointer: on.value
1085
+ isCursorPointer: sn.value
1082
1086
  } : {
1083
1087
  hideDetails: !0,
1084
1088
  config: {
@@ -1096,42 +1100,42 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
1096
1100
  }
1097
1101
  };
1098
1102
  });
1099
- Ue(() => H.value.showTable, (e) => {
1100
- F.value.table.show || (e && F.value.table.useDialog && Qt.value ? Qt.value.open() : "close" in Qt.value && Qt.value.close());
1103
+ We(() => H.value.showTable, (e) => {
1104
+ F.value.table.show || (e && F.value.table.useDialog && $t.value ? $t.value.open() : "close" in $t.value && $t.value.close());
1101
1105
  });
1102
- function xr() {
1103
- H.value.showTable = !1, $t.value && $t.value.setTableIconState(!1);
1106
+ function Sr() {
1107
+ H.value.showTable = !1, en.value && en.value.setTableIconState(!1);
1104
1108
  }
1105
- let Sr = p(() => F.value.style.backgroundColor), Cr = p(() => F.value.style.title), { isCallbackImaging: wr, isCallbackSvg: Tr, generateSvg: Er, onGenerateImage: Dr } = ve({
1109
+ let Cr = p(() => F.value.style.backgroundColor), wr = p(() => F.value.style.title), { isCallbackImaging: Tr, isCallbackSvg: Er, generateSvg: Dr, onGenerateImage: Or } = ye({
1106
1110
  svg: R,
1107
- title: Cr,
1111
+ title: wr,
1108
1112
  legend: null,
1109
1113
  legendItems: null,
1110
- backgroundColor: Sr,
1114
+ backgroundColor: Cr,
1111
1115
  getSvgCallback: () => F.value.userOptions.callbacks.svg,
1112
- generateImage: bn
1116
+ generateImage: xn
1113
1117
  });
1114
- function Or(e) {
1115
- en.value = e;
1116
- }
1117
1118
  function kr(e) {
1118
- ar.value || sr.value || e !== K.value.start && (K.value.start = e, q.value.start = e, kn());
1119
+ tn.value = e;
1119
1120
  }
1120
1121
  function Ar(e) {
1121
- if (ar.value || sr.value) return;
1122
- let t = lr(e);
1123
- t !== K.value.end && (K.value.end = t, q.value.end = t, kn());
1122
+ or.value || cr.value || e !== K.value.start && (K.value.start = e, q.value.start = e, An());
1123
+ }
1124
+ function jr(e) {
1125
+ if (or.value || cr.value) return;
1126
+ let t = ur(e);
1127
+ t !== K.value.end && (K.value.end = t, q.value.end = t, An());
1124
1128
  }
1125
- function jr({ seriesIndex: e, datapoint: t }) {
1129
+ function Mr({ seriesIndex: e, datapoint: t }) {
1126
1130
  let n = K.value.start + e;
1127
- It("selectX", {
1131
+ Lt("selectX", {
1128
1132
  dataset: t,
1129
1133
  index: n,
1130
1134
  indexLabel: ""
1131
1135
  });
1132
1136
  }
1133
- async function Mr() {
1134
- if (It("copyAlt", {
1137
+ async function Nr() {
1138
+ if (Lt("copyAlt", {
1135
1139
  config: F.value,
1136
1140
  dataset: Z.value
1137
1141
  }), !F.value.userOptions.callbacks.altCopy) {
@@ -1143,73 +1147,73 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
1143
1147
  dataset: Z.value
1144
1148
  }));
1145
1149
  }
1146
- function Nr() {
1147
- P.value = null, rn.value = !0;
1148
- }
1149
1150
  function Pr() {
1150
- P.value = null, nn.value = "pointer", zt.value = !1, M.value = void 0, rn.value = !1;
1151
+ P.value = null, an.value = !0;
1152
+ }
1153
+ function Fr() {
1154
+ P.value = null, rn.value = "pointer", Bt.value = !1, M.value = void 0, an.value = !1;
1151
1155
  }
1152
- function Fr(e) {
1153
- if (!R.value || hr.value || document.activeElement !== R.value || !Z.value.length) return;
1156
+ function Ir(e) {
1157
+ if (!R.value || gr.value || document.activeElement !== R.value || !Z.value.length) return;
1154
1158
  let t = e.key === "ArrowLeft", n = e.key === "ArrowRight", r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
1155
1159
  if (!t && !n && !r && !i) return;
1156
1160
  if (e.preventDefault(), e.stopPropagation(), i) {
1157
- P.value = null, nn.value = "pointer", zt.value = !1, M.value = void 0;
1161
+ P.value = null, rn.value = "pointer", Bt.value = !1, M.value = void 0;
1158
1162
  return;
1159
1163
  }
1160
1164
  if (r) {
1161
1165
  if (P.value === null) return;
1162
1166
  let e = Z.value[P.value];
1163
1167
  if (!e) return;
1164
- $n(P.value, e);
1168
+ er(P.value, e);
1165
1169
  return;
1166
1170
  }
1167
1171
  let a = P.value, o = M.value, s = a !== null && a >= 0 && a < Z.value.length, c = o != null && o >= 0 && o < Z.value.length;
1168
1172
  s ? n ? (a += 1, a >= Z.value.length && (a = 0)) : t && (--a, a < 0 && (a = Z.value.length - 1)) : c ? (a = n ? o + 1 : o - 1, a >= Z.value.length && (a = 0), a < 0 && (a = Z.value.length - 1)) : a = n ? 0 : Z.value.length - 1;
1169
1173
  let l = Z.value[a];
1170
- l && (Ir(a), tr(a, l, "keyboard"));
1174
+ l && (Lr(a), nr(a, l, "keyboard"));
1171
1175
  }
1172
- function Ir(e) {
1176
+ function Lr(e) {
1173
1177
  if (!Number.isFinite(e) || !R.value) return;
1174
1178
  let t = W.value.left + Y.value * e + Y.value / 2, n = W.value.top + W.value.height / 2, r = R.value.getBoundingClientRect();
1175
- tn.value = {
1179
+ nn.value = {
1176
1180
  x: r.left + t / z.value.width * r.width,
1177
1181
  y: r.top + n / z.value.height * r.height
1178
1182
  };
1179
1183
  }
1180
- let Lr = p(() => ({
1181
- headers: dr.value?.colNames ?? [],
1182
- rows: dr.value?.bodyA11y ?? []
1184
+ let Rr = p(() => ({
1185
+ headers: fr.value?.colNames ?? [],
1186
+ rows: fr.value?.bodyA11y ?? []
1183
1187
  }));
1184
- return Ce({
1185
- getImage: _r,
1186
- generatePdf: yn,
1187
- generateCsv: ur,
1188
- generateImage: bn,
1189
- generateSvg: Er,
1190
- toggleTable: pr,
1191
- toggleTooltip: mr,
1192
- toggleAnnotator: gr,
1193
- toggleFullscreen: fr,
1194
- copyAlt: Mr
1195
- }), (e, t) => (C(), g("div", {
1188
+ return we({
1189
+ getImage: vr,
1190
+ generatePdf: bn,
1191
+ generateCsv: dr,
1192
+ generateImage: xn,
1193
+ generateSvg: Dr,
1194
+ toggleTable: mr,
1195
+ toggleTooltip: hr,
1196
+ toggleAnnotator: _r,
1197
+ toggleFullscreen: pr,
1198
+ copyAlt: Nr
1199
+ }), (e, t) => (S(), g("div", {
1196
1200
  ref_key: "candlestickChart",
1197
1201
  ref: N,
1198
1202
  class: b(`vue-data-ui-component vue-ui-candlestick ${$.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${F.value.useCssAnimation ? "" : "vue-ui-dna"}`),
1199
- style: S(`position:relative;font-family:${F.value.style.fontFamily}; text-align:center;background:${F.value.style.backgroundColor}; ${F.value.responsive ? "height: 100%" : ""}`),
1203
+ style: Re(`position:relative;font-family:${F.value.style.fontFamily}; text-align:center;background:${F.value.style.backgroundColor}; ${F.value.responsive ? "height: 100%" : ""}`),
1200
1204
  id: `vue-ui-candlestick_${j.value}`,
1201
- onMouseenter: fn,
1202
- onMouseleave: pn
1205
+ onMouseenter: pn,
1206
+ onMouseleave: mn
1203
1207
  }, [
1204
1208
  _("div", {
1205
1209
  id: `chart-instructions-${j.value}`,
1206
1210
  class: "sr-only"
1207
- }, [_("p", null, Ve(F.value.a11y.translations.keyboardNavigation), 1)], 8, qe),
1208
- Lr.value?.rows?.length ? (C(), m(Oe, {
1211
+ }, [_("p", null, E(F.value.a11y.translations.keyboardNavigation), 1)], 8, Je),
1212
+ Rr.value?.rows?.length ? (S(), m(ke, {
1209
1213
  key: 0,
1210
1214
  uid: j.value,
1211
- head: Lr.value.headers,
1212
- body: Lr.value.rows,
1215
+ head: Rr.value.headers,
1216
+ body: Rr.value.rows,
1213
1217
  notice: F.value.a11y.translations.tableAvailable,
1214
1218
  caption: F.value.a11y.translations.tableCaption
1215
1219
  }, null, 8, [
@@ -1219,43 +1223,45 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
1219
1223
  "notice",
1220
1224
  "caption"
1221
1225
  ])) : h("", !0),
1222
- F.value.userOptions.buttons.annotator ? (C(), m(D(kt), {
1226
+ F.value.userOptions.buttons.annotator ? (S(), m(D(At), {
1223
1227
  key: 1,
1224
1228
  svgRef: D(R),
1225
1229
  backgroundColor: F.value.style.backgroundColor,
1226
1230
  color: F.value.style.color,
1227
- active: hr.value,
1228
- isCursorPointer: on.value,
1229
- onClose: gr
1231
+ active: gr.value,
1232
+ isCursorPointer: sn.value,
1233
+ palette: F.value.userOptions.annotatorPalette,
1234
+ onClose: _r
1230
1235
  }, {
1231
- "annotator-action-close": O(() => [E(e.$slots, "annotator-action-close", {}, void 0, !0)]),
1232
- "annotator-action-color": O(({ color: t }) => [E(e.$slots, "annotator-action-color", x(y({ color: t })), void 0, !0)]),
1233
- "annotator-action-draw": O(({ mode: t }) => [E(e.$slots, "annotator-action-draw", x(y({ mode: t })), void 0, !0)]),
1234
- "annotator-action-undo": O(({ disabled: t }) => [E(e.$slots, "annotator-action-undo", x(y({ disabled: t })), void 0, !0)]),
1235
- "annotator-action-redo": O(({ disabled: t }) => [E(e.$slots, "annotator-action-redo", x(y({ disabled: t })), void 0, !0)]),
1236
- "annotator-action-delete": O(({ disabled: t }) => [E(e.$slots, "annotator-action-delete", x(y({ disabled: t })), void 0, !0)]),
1236
+ "annotator-action-close": O(() => [T(e.$slots, "annotator-action-close", {}, void 0, !0)]),
1237
+ "annotator-action-color": O(({ color: t }) => [T(e.$slots, "annotator-action-color", x(y({ color: t })), void 0, !0)]),
1238
+ "annotator-action-draw": O(({ mode: t }) => [T(e.$slots, "annotator-action-draw", x(y({ mode: t })), void 0, !0)]),
1239
+ "annotator-action-undo": O(({ disabled: t }) => [T(e.$slots, "annotator-action-undo", x(y({ disabled: t })), void 0, !0)]),
1240
+ "annotator-action-redo": O(({ disabled: t }) => [T(e.$slots, "annotator-action-redo", x(y({ disabled: t })), void 0, !0)]),
1241
+ "annotator-action-delete": O(({ disabled: t }) => [T(e.$slots, "annotator-action-delete", x(y({ disabled: t })), void 0, !0)]),
1237
1242
  _: 3
1238
1243
  }, 8, [
1239
1244
  "svgRef",
1240
1245
  "backgroundColor",
1241
1246
  "color",
1242
1247
  "active",
1243
- "isCursorPointer"
1248
+ "isCursorPointer",
1249
+ "palette"
1244
1250
  ])) : h("", !0),
1245
- xn.value ? (C(), g("div", {
1251
+ Sn.value ? (S(), g("div", {
1246
1252
  key: 2,
1247
1253
  ref_key: "noTitle",
1248
- ref: Kt,
1254
+ ref: qt,
1249
1255
  class: "vue-data-ui-no-title-space",
1250
1256
  style: "height:36px; width: 100%;background:transparent"
1251
1257
  }, null, 512)) : h("", !0),
1252
- F.value.style.title.text ? (C(), g("div", {
1258
+ F.value.style.title.text ? (S(), g("div", {
1253
1259
  key: 3,
1254
1260
  ref_key: "chartTitle",
1255
- ref: Ht,
1261
+ ref: Ut,
1256
1262
  style: "width:100%;background:transparent"
1257
- }, [(C(), m(Se, {
1258
- key: `title_${Yt.value}`,
1263
+ }, [(S(), m(Ce, {
1264
+ key: `title_${Xt.value}`,
1259
1265
  config: {
1260
1266
  title: {
1261
1267
  cy: "candlestick-div-title",
@@ -1267,14 +1273,14 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
1267
1273
  }
1268
1274
  }
1269
1275
  }, null, 8, ["config"]))], 512)) : h("", !0),
1270
- F.value.userOptions.show && Lt.value && (D(dn) || D(ln)) ? (C(), m(D(At), {
1276
+ F.value.userOptions.show && Rt.value && (D(fn) || D(un)) ? (S(), m(D(jt), {
1271
1277
  ref_key: "userOptionsRef",
1272
- ref: $t,
1273
- key: `user_options_${Vt.value}`,
1278
+ ref: en,
1279
+ key: `user_options_${Ht.value}`,
1274
1280
  backgroundColor: F.value.style.backgroundColor,
1275
1281
  color: F.value.style.color,
1276
- isImaging: D(vn),
1277
- isPrinting: D(_n),
1282
+ isImaging: D(yn),
1283
+ isPrinting: D(vn),
1278
1284
  uid: j.value,
1279
1285
  hasTooltip: F.value.userOptions.buttons.tooltip && F.value.style.tooltip.show,
1280
1286
  hasPdf: F.value.userOptions.buttons.pdf,
@@ -1290,25 +1296,25 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
1290
1296
  chartElement: N.value,
1291
1297
  position: F.value.userOptions.position,
1292
1298
  hasAnnotator: F.value.userOptions.buttons.annotator,
1293
- isAnnotation: hr.value,
1299
+ isAnnotation: gr.value,
1294
1300
  callbacks: F.value.userOptions.callbacks,
1295
1301
  printScale: F.value.userOptions.print.scale,
1296
1302
  tableDialog: F.value.table.useDialog,
1297
- isCursorPointer: on.value,
1298
- onToggleFullscreen: fr,
1299
- onGeneratePdf: D(yn),
1300
- onGenerateCsv: ur,
1301
- onGenerateImage: D(Dr),
1302
- onGenerateSvg: D(Er),
1303
- onToggleTable: pr,
1304
- onToggleTooltip: mr,
1305
- onToggleAnnotator: gr,
1306
- onCopyAlt: Mr,
1307
- style: S({ visibility: D(dn) ? D(ln) ? "visible" : "hidden" : "visible" })
1308
- }, Me({ _: 2 }, [
1303
+ isCursorPointer: sn.value,
1304
+ onToggleFullscreen: pr,
1305
+ onGeneratePdf: D(bn),
1306
+ onGenerateCsv: dr,
1307
+ onGenerateImage: D(Or),
1308
+ onGenerateSvg: D(Dr),
1309
+ onToggleTable: mr,
1310
+ onToggleTooltip: hr,
1311
+ onToggleAnnotator: _r,
1312
+ onCopyAlt: Nr,
1313
+ style: Re({ visibility: D(fn) ? D(un) ? "visible" : "hidden" : "visible" })
1314
+ }, Ne({ _: 2 }, [
1309
1315
  e.$slots.menuIcon ? {
1310
1316
  name: "menuIcon",
1311
- fn: O(({ isOpen: t, color: n }) => [E(e.$slots, "menuIcon", x(y({
1317
+ fn: O(({ isOpen: t, color: n }) => [T(e.$slots, "menuIcon", x(y({
1312
1318
  isOpen: t,
1313
1319
  color: n
1314
1320
  })), void 0, !0)]),
@@ -1316,37 +1322,37 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
1316
1322
  } : void 0,
1317
1323
  e.$slots.optionTooltip ? {
1318
1324
  name: "optionTooltip",
1319
- fn: O(() => [E(e.$slots, "optionTooltip", {}, void 0, !0)]),
1325
+ fn: O(() => [T(e.$slots, "optionTooltip", {}, void 0, !0)]),
1320
1326
  key: "1"
1321
1327
  } : void 0,
1322
1328
  e.$slots.optionPdf ? {
1323
1329
  name: "optionPdf",
1324
- fn: O(() => [E(e.$slots, "optionPdf", {}, void 0, !0)]),
1330
+ fn: O(() => [T(e.$slots, "optionPdf", {}, void 0, !0)]),
1325
1331
  key: "2"
1326
1332
  } : void 0,
1327
1333
  e.$slots.optionCsv ? {
1328
1334
  name: "optionCsv",
1329
- fn: O(() => [E(e.$slots, "optionCsv", {}, void 0, !0)]),
1335
+ fn: O(() => [T(e.$slots, "optionCsv", {}, void 0, !0)]),
1330
1336
  key: "3"
1331
1337
  } : void 0,
1332
1338
  e.$slots.optionImg ? {
1333
1339
  name: "optionImg",
1334
- fn: O(() => [E(e.$slots, "optionImg", {}, void 0, !0)]),
1340
+ fn: O(() => [T(e.$slots, "optionImg", {}, void 0, !0)]),
1335
1341
  key: "4"
1336
1342
  } : void 0,
1337
1343
  e.$slots.optionSvg ? {
1338
1344
  name: "optionSvg",
1339
- fn: O(() => [E(e.$slots, "optionSvg", {}, void 0, !0)]),
1345
+ fn: O(() => [T(e.$slots, "optionSvg", {}, void 0, !0)]),
1340
1346
  key: "5"
1341
1347
  } : void 0,
1342
1348
  e.$slots.optionTable ? {
1343
1349
  name: "optionTable",
1344
- fn: O(() => [E(e.$slots, "optionTable", {}, void 0, !0)]),
1350
+ fn: O(() => [T(e.$slots, "optionTable", {}, void 0, !0)]),
1345
1351
  key: "6"
1346
1352
  } : void 0,
1347
1353
  e.$slots.optionFullscreen ? {
1348
1354
  name: "optionFullscreen",
1349
- fn: O(({ toggleFullscreen: t, isFullscreen: n }) => [E(e.$slots, "optionFullscreen", x(y({
1355
+ fn: O(({ toggleFullscreen: t, isFullscreen: n }) => [T(e.$slots, "optionFullscreen", x(y({
1350
1356
  toggleFullscreen: t,
1351
1357
  isFullscreen: n
1352
1358
  })), void 0, !0)]),
@@ -1354,7 +1360,7 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
1354
1360
  } : void 0,
1355
1361
  e.$slots.optionAnnotator ? {
1356
1362
  name: "optionAnnotator",
1357
- fn: O(({ toggleAnnotator: t, isAnnotator: n }) => [E(e.$slots, "optionAnnotator", x(y({
1363
+ fn: O(({ toggleAnnotator: t, isAnnotator: n }) => [T(e.$slots, "optionAnnotator", x(y({
1358
1364
  toggleAnnotator: t,
1359
1365
  isAnnotator: n
1360
1366
  })), void 0, !0)]),
@@ -1362,48 +1368,48 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
1362
1368
  } : void 0,
1363
1369
  e.$slots.optionAltCopy ? {
1364
1370
  name: "optionAltCopy",
1365
- fn: O(({ altCopy: t }) => [E(e.$slots, "optionAltCopy", x(y({ altCopy: t })), void 0, !0)]),
1371
+ fn: O(({ altCopy: t }) => [T(e.$slots, "optionAltCopy", x(y({ altCopy: t })), void 0, !0)]),
1366
1372
  key: "9"
1367
1373
  } : void 0,
1368
1374
  e.$slots["custom-menu-before"] ? {
1369
1375
  name: "custom-menu-before",
1370
- fn: O(() => [E(e.$slots, "custom-menu-before", {}, void 0, !0)]),
1376
+ fn: O(() => [T(e.$slots, "custom-menu-before", {}, void 0, !0)]),
1371
1377
  key: "10"
1372
1378
  } : void 0,
1373
1379
  e.$slots["custom-menu-after"] ? {
1374
1380
  name: "custom-menu-after",
1375
- fn: O(() => [E(e.$slots, "custom-menu-after", {}, void 0, !0)]),
1381
+ fn: O(() => [T(e.$slots, "custom-menu-after", {}, void 0, !0)]),
1376
1382
  key: "11"
1377
1383
  } : void 0
1378
1384
  ]), 1032, /* @__PURE__ */ "backgroundColor.color.isImaging.isPrinting.uid.hasTooltip.hasPdf.hasImg.hasSvg.hasXls.hasTable.hasFullscreen.hasAltCopy.isFullscreen.isTooltip.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.onGenerateImage.onGenerateSvg.style".split("."))) : h("", !0),
1379
- _("div", Je, [(C(), g("svg", {
1385
+ _("div", Ye, [(S(), g("svg", {
1380
1386
  ref_key: "svgRef",
1381
1387
  ref: R,
1382
- xmlns: D(ae),
1388
+ xmlns: D(se),
1383
1389
  "aria-describedby": `chart-instructions-${j.value}`,
1384
1390
  class: b({
1385
1391
  "vue-data-ui-fullscreen--on": $.value,
1386
1392
  "vue-data-ui-fulscreen--off": !$.value,
1387
- "vue-data-ui-no-transition": !D(an)
1393
+ "vue-data-ui-no-transition": !D(on)
1388
1394
  }),
1389
1395
  viewBox: `0 0 ${z.value.width <= 0 ? 10 : z.value.width} ${z.value.height <= 0 ? 10 : z.value.height}`,
1390
- style: S(`max-width:100%;overflow:visible;background:transparent;color:${F.value.style.color}`),
1396
+ style: Re(`max-width:100%;overflow:visible;background:transparent;color:${F.value.style.color}`),
1391
1397
  tabindex: "0",
1392
- onFocus: Nr,
1393
- onBlur: Pr,
1394
- onKeydown: Fr
1398
+ onFocus: Pr,
1399
+ onBlur: Fr,
1400
+ onKeydown: Ir
1395
1401
  }, [
1396
- Pe(D(jt)),
1397
- e.$slots["chart-background"] ? (C(), g("foreignObject", {
1402
+ Fe(D(Mt)),
1403
+ e.$slots["chart-background"] ? (S(), g("foreignObject", {
1398
1404
  key: 0,
1399
1405
  x: W.value.left,
1400
1406
  y: W.value.top,
1401
1407
  width: Math.max(.1, W.value.width),
1402
1408
  height: Math.max(.1, W.value.height),
1403
1409
  style: { pointerEvents: "none" }
1404
- }, [E(e.$slots, "chart-background", {}, void 0, !0)], 8, Xe)) : h("", !0),
1405
- Z.value.length > 0 ? (C(), g("g", Ze, [
1406
- _("defs", null, [Pe(Ee, {
1410
+ }, [T(e.$slots, "chart-background", {}, void 0, !0)], 8, Ze)) : h("", !0),
1411
+ Z.value.length > 0 ? (S(), g("g", Qe, [
1412
+ _("defs", null, [Fe(De, {
1407
1413
  t: "linear",
1408
1414
  id: `bearish_gradient_${j.value}`,
1409
1415
  x2: "0%",
@@ -1425,7 +1431,7 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
1425
1431
  .4
1426
1432
  ]
1427
1433
  ]
1428
- }, null, 8, ["id", "stops"]), Pe(Ee, {
1434
+ }, null, 8, ["id", "stops"]), Fe(De, {
1429
1435
  t: "linear",
1430
1436
  id: `bullish_gradient_${j.value}`,
1431
1437
  x2: "0%",
@@ -1448,7 +1454,7 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
1448
1454
  ]
1449
1455
  ]
1450
1456
  }, null, 8, ["id", "stops"])]),
1451
- F.value.style.layout.grid.show ? (C(), g("g", Qe, [
1457
+ F.value.style.layout.grid.show ? (S(), g("g", $e, [
1452
1458
  _("line", {
1453
1459
  x1: U.value ? W.value.right : W.value.left,
1454
1460
  x2: U.value ? W.value.right : W.value.left,
@@ -1457,7 +1463,7 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
1457
1463
  stroke: F.value.style.layout.grid.stroke,
1458
1464
  "stroke-width": F.value.style.layout.grid.strokeWidth,
1459
1465
  "stroke-linecap": "round"
1460
- }, null, 8, $e),
1466
+ }, null, 8, et),
1461
1467
  _("line", {
1462
1468
  x1: W.value.left,
1463
1469
  x2: W.value.right,
@@ -1466,8 +1472,8 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
1466
1472
  stroke: F.value.style.layout.grid.stroke,
1467
1473
  "stroke-width": F.value.style.layout.grid.strokeWidth,
1468
1474
  "stroke-linecap": "round"
1469
- }, null, 8, et),
1470
- F.value.style.layout.grid.horizontalLines.show ? (C(!0), g(f, { key: 0 }, T(zn.value, (e) => (C(), g("line", {
1475
+ }, null, 8, tt),
1476
+ F.value.style.layout.grid.horizontalLines.show ? (S(!0), g(f, { key: 0 }, w(Bn.value, (e) => (S(), g("line", {
1471
1477
  x1: W.value.left,
1472
1478
  x2: W.value.right,
1473
1479
  y1: e.y,
@@ -1476,8 +1482,8 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
1476
1482
  "stroke-width": F.value.style.layout.grid.horizontalLines.strokeWidth,
1477
1483
  "stroke-dasharray": F.value.style.layout.grid.horizontalLines.strokeDasharray,
1478
1484
  "stroke-linecap": "round"
1479
- }, null, 8, tt))), 256)) : h("", !0),
1480
- F.value.style.layout.grid.verticalLines.show ? (C(!0), g(f, { key: 1 }, T(Xn.value, (e, t) => (C(), g("g", null, [e.text ? (C(), g("line", {
1485
+ }, null, 8, nt))), 256)) : h("", !0),
1486
+ F.value.style.layout.grid.verticalLines.show ? (S(!0), g(f, { key: 1 }, w(Zn.value, (e, t) => (S(), g("g", null, [e.text ? (S(), g("line", {
1481
1487
  key: 0,
1482
1488
  x1: W.value.left + Y.value * t + Y.value / 2,
1483
1489
  x2: W.value.left + Y.value * t + Y.value / 2,
@@ -1487,8 +1493,8 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
1487
1493
  "stroke-width": F.value.style.layout.grid.verticalLines.strokeWidth,
1488
1494
  "stroke-dasharray": F.value.style.layout.grid.verticalLines.strokeDasharray,
1489
1495
  "stroke-linecap": "round"
1490
- }, null, 8, nt)) : h("", !0)]))), 256)) : h("", !0),
1491
- F.value.style.layout.grid.xAxis.ticks.show ? (C(!0), g(f, { key: 2 }, T(Xn.value, (e, t) => (C(), g("g", null, [e.text ? (C(), g("line", {
1496
+ }, null, 8, rt)) : h("", !0)]))), 256)) : h("", !0),
1497
+ F.value.style.layout.grid.xAxis.ticks.show ? (S(!0), g(f, { key: 2 }, w(Zn.value, (e, t) => (S(), g("g", null, [e.text ? (S(), g("line", {
1492
1498
  key: 0,
1493
1499
  x1: W.value.left + Y.value * t + Y.value / 2,
1494
1500
  x2: W.value.left + Y.value * t + Y.value / 2,
@@ -1497,13 +1503,13 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
1497
1503
  stroke: F.value.style.layout.grid.stroke,
1498
1504
  "stroke-width": F.value.style.layout.grid.strokeWidth,
1499
1505
  "stroke-linecap": "round"
1500
- }, null, 8, rt)) : h("", !0)]))), 256)) : h("", !0)
1506
+ }, null, 8, it)) : h("", !0)]))), 256)) : h("", !0)
1501
1507
  ])) : h("", !0),
1502
- F.value.style.layout.grid.yAxis.dataLabels.show ? (C(), g("g", {
1508
+ F.value.style.layout.grid.yAxis.dataLabels.show ? (S(), g("g", {
1503
1509
  key: 1,
1504
1510
  ref_key: "scaleLabels",
1505
- ref: Xt
1506
- }, [(C(!0), g(f, null, T(zn.value, (e, t) => (C(), g("g", { key: `sl_${t}` }, [e.value >= X.value.min && e.value <= X.value.max ? (C(), g("line", {
1511
+ ref: Zt
1512
+ }, [(S(!0), g(f, null, w(Bn.value, (e, t) => (S(), g("g", { key: `sl_${t}` }, [e.value >= X.value.min && e.value <= X.value.max ? (S(), g("line", {
1507
1513
  key: 0,
1508
1514
  x1: U.value ? W.value.right : W.value.left,
1509
1515
  x2: U.value ? W.value.right + 5 : W.value.left - 5,
@@ -1512,37 +1518,37 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
1512
1518
  stroke: F.value.style.layout.grid.stroke,
1513
1519
  "stroke-width": F.value.style.layout.grid.strokeWidth,
1514
1520
  "stroke-linecap": "round"
1515
- }, null, 8, it)) : h("", !0), e.value >= X.value.min && e.value <= X.value.max ? (C(), g("text", {
1521
+ }, null, 8, at)) : h("", !0), e.value >= X.value.min && e.value <= X.value.max ? (S(), g("text", {
1516
1522
  key: 1,
1517
- class: b({ "vue-data-ui-transition": D(an) }),
1523
+ class: b({ "vue-data-ui-transition": D(on) }),
1518
1524
  transform: `translate(${U.value ? W.value.right + 8 + F.value.style.layout.grid.yAxis.dataLabels.offsetX : W.value.left - 8 + F.value.style.layout.grid.yAxis.dataLabels.offsetX}, ${e.y + z.value.yAxisFontSize / 3})`,
1519
1525
  "text-anchor": U.value ? "start" : "end",
1520
1526
  "font-size": z.value.yAxisFontSize,
1521
1527
  fill: F.value.style.layout.grid.yAxis.dataLabels.color,
1522
1528
  "font-weight": F.value.style.layout.grid.yAxis.dataLabels.bold ? "bold" : "normal"
1523
- }, Ve(D(s)({
1529
+ }, E(D(s)({
1524
1530
  p: F.value.style.layout.grid.yAxis.dataLabels.prefix,
1525
1531
  v: e.value,
1526
1532
  s: F.value.style.layout.grid.yAxis.dataLabels.suffix,
1527
1533
  r: F.value.style.layout.grid.yAxis.dataLabels.roundingValue
1528
- })), 11, at)) : h("", !0)]))), 128))], 512)) : h("", !0),
1529
- F.value.style.layout.grid.xAxis.dataLabels.show && !F.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? (C(), g("g", {
1534
+ })), 11, ot)) : h("", !0)]))), 128))], 512)) : h("", !0),
1535
+ F.value.style.layout.grid.xAxis.dataLabels.show && !F.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? (S(), g("g", {
1530
1536
  key: 2,
1531
1537
  ref_key: "timeLabelsEls",
1532
- ref: Zt
1533
- }, [(C(!0), g(f, null, T(Bn.value, (e, t) => (C(), g("g", null, [_("text", {
1538
+ ref: Qt
1539
+ }, [(S(!0), g(f, null, w(Vn.value, (e, t) => (S(), g("g", null, [_("text", {
1534
1540
  class: "vue-data-ui-time-label",
1535
1541
  transform: `translate(${W.value.left + Y.value * t + Y.value / 2}, ${W.value.bottom + z.value.xAxisFontSize * 1.5}), rotate(${F.value.style.layout.grid.xAxis.dataLabels.rotation})`,
1536
1542
  "text-anchor": F.value.style.layout.grid.xAxis.dataLabels.rotation > 0 ? "start" : F.value.style.layout.grid.xAxis.dataLabels.rotation < 0 ? "end" : "middle",
1537
1543
  "font-size": z.value.xAxisFontSize,
1538
1544
  fill: F.value.style.layout.grid.xAxis.dataLabels.color,
1539
1545
  "font-weight": F.value.style.layout.grid.xAxis.dataLabels.bold ? "bold" : "normal"
1540
- }, Ve(e), 9, ot)]))), 256))], 512)) : h("", !0),
1541
- F.value.style.layout.grid.xAxis.dataLabels.show && F.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? (C(), g("g", {
1546
+ }, E(e), 9, st)]))), 256))], 512)) : h("", !0),
1547
+ F.value.style.layout.grid.xAxis.dataLabels.show && F.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? (S(), g("g", {
1542
1548
  key: 3,
1543
1549
  ref_key: "timeLabelsEls",
1544
- ref: Zt
1545
- }, [(C(!0), g(f, null, T(Xn.value, (e, t) => (C(), g("g", null, [_("text", {
1550
+ ref: Qt
1551
+ }, [(S(!0), g(f, null, w(Zn.value, (e, t) => (S(), g("g", null, [_("text", {
1546
1552
  class: "vue-data-ui-time-label",
1547
1553
  transform: `translate(${W.value.left + Y.value * t + Y.value / 2}, ${W.value.bottom + z.value.xAxisFontSize * 1.5}), rotate(${F.value.style.layout.grid.xAxis.dataLabels.rotation})`,
1548
1554
  "text-anchor": F.value.style.layout.grid.xAxis.dataLabels.rotation > 0 ? "start" : F.value.style.layout.grid.xAxis.dataLabels.rotation < 0 ? "end" : "middle",
@@ -1554,8 +1560,8 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
1554
1560
  "stroke-linejoin": "round",
1555
1561
  "paint-order": "stroke fill",
1556
1562
  "font-weight": F.value.style.layout.grid.xAxis.dataLabels.bold ? "bold" : "normal"
1557
- }, Ve(e?.text ?? ""), 9, st)]))), 256))], 512)) : h("", !0),
1558
- F.value.type === "candlestick" ? (C(), g(f, { key: 4 }, [_("g", null, [(C(!0), g(f, null, T(Z.value, (e, t) => (C(), g("g", null, [
1563
+ }, E(e?.text ?? ""), 9, ct)]))), 256))], 512)) : h("", !0),
1564
+ F.value.type === "candlestick" ? (S(), g(f, { key: 4 }, [_("g", null, [(S(!0), g(f, null, w(Z.value, (e, t) => (S(), g("g", null, [
1559
1565
  _("rect", {
1560
1566
  x: e.open.x - F.value.style.layout.wick.strokeWidth / 2,
1561
1567
  y: e.high.y,
@@ -1565,21 +1571,21 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
1565
1571
  stroke: "none",
1566
1572
  rx: F.value.style.layout.wick.strokeWidth / 2,
1567
1573
  class: b({ "vue-data-ui-transition": A.value && !D(I) })
1568
- }, null, 10, ct),
1569
- F.value.style.layout.wick.extremity.shape === "circle" ? (C(), g("g", lt, [_("circle", {
1574
+ }, null, 10, lt),
1575
+ F.value.style.layout.wick.extremity.shape === "circle" ? (S(), g("g", ut, [_("circle", {
1570
1576
  cx: e.high.x,
1571
1577
  cy: e.high.y,
1572
1578
  r: F.value.style.layout.wick.extremity.size === "auto" ? Y.value / 20 : F.value.style.layout.wick.extremity.size,
1573
1579
  fill: F.value.style.layout.wick.extremity.color,
1574
1580
  class: b({ "vue-data-ui-transition": A.value && !D(I) })
1575
- }, null, 10, ut), _("circle", {
1581
+ }, null, 10, dt), _("circle", {
1576
1582
  cx: e.low.x,
1577
1583
  cy: e.low.y,
1578
1584
  r: F.value.style.layout.wick.extremity.size === "auto" ? Y.value / 20 : F.value.style.layout.wick.extremity.size,
1579
1585
  fill: F.value.style.layout.wick.extremity.color,
1580
1586
  class: b({ "vue-data-ui-transition": A.value && !D(I) })
1581
- }, null, 10, dt)])) : h("", !0),
1582
- F.value.style.layout.wick.extremity.shape === "line" ? (C(), g("g", ft, [_("rect", {
1587
+ }, null, 10, ft)])) : h("", !0),
1588
+ F.value.style.layout.wick.extremity.shape === "line" ? (S(), g("g", pt, [_("rect", {
1583
1589
  x: e.high.x - (F.value.style.layout.wick.extremity.size === "auto" ? Y.value * F.value.style.layout.candle.widthRatio : F.value.style.layout.wick.extremity.size) / 2,
1584
1590
  y: e.high.y - F.value.style.layout.wick.strokeWidth / 2,
1585
1591
  width: Math.abs(e.high.x - (F.value.style.layout.wick.extremity.size === "auto" ? Y.value * F.value.style.layout.candle.widthRatio : F.value.style.layout.wick.extremity.size) / 2 - (e.high.x + (F.value.style.layout.wick.extremity.size === "auto" ? Y.value * F.value.style.layout.candle.widthRatio : F.value.style.layout.wick.extremity.size) / 2)),
@@ -1588,7 +1594,7 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
1588
1594
  fill: F.value.style.layout.wick.extremity.color,
1589
1595
  stroke: "none",
1590
1596
  class: b({ "vue-data-ui-transition": A.value && !D(I) })
1591
- }, null, 10, pt), _("rect", {
1597
+ }, null, 10, mt), _("rect", {
1592
1598
  x: e.low.x - (F.value.style.layout.wick.extremity.size === "auto" ? Y.value * F.value.style.layout.candle.widthRatio : F.value.style.layout.wick.extremity.size) / 2,
1593
1599
  y: e.low.y - F.value.style.layout.wick.strokeWidth / 2,
1594
1600
  width: Math.abs(e.low.x - (F.value.style.layout.wick.extremity.size === "auto" ? Y.value * F.value.style.layout.candle.widthRatio : F.value.style.layout.wick.extremity.size) / 2 - (e.low.x + (F.value.style.layout.wick.extremity.size === "auto" ? Y.value * F.value.style.layout.candle.widthRatio : F.value.style.layout.wick.extremity.size) / 2)),
@@ -1597,8 +1603,8 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
1597
1603
  stroke: "none",
1598
1604
  rx: F.value.style.layout.wick.strokeWidth / 2,
1599
1605
  class: b({ "vue-data-ui-transition": A.value && !D(I) })
1600
- }, null, 10, mt)])) : h("", !0)
1601
- ]))), 256))]), _("g", null, [(C(!0), g(f, null, T(Z.value, (e, t) => (C(), g("rect", {
1606
+ }, null, 10, ht)])) : h("", !0)
1607
+ ]))), 256))]), _("g", null, [(S(!0), g(f, null, w(Z.value, (e, t) => (S(), g("rect", {
1602
1608
  x: e.open.x - Y.value / 2 + Y.value * (1 - F.value.style.layout.candle.widthRatio) / 2,
1603
1609
  y: e.isBullish ? e.close.y : e.open.y,
1604
1610
  height: Math.abs(e.close.y - e.open.y) <= 0 ? 1e-4 : Math.abs(e.close.y - e.open.y),
@@ -1607,7 +1613,7 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
1607
1613
  rx: F.value.style.layout.candle.borderRadius,
1608
1614
  stroke: "none",
1609
1615
  class: b({ "vue-data-ui-transition": A.value && !D(I) })
1610
- }, null, 10, ht))), 256)), (C(!0), g(f, null, T(Z.value, (e, t) => (C(), g("rect", {
1616
+ }, null, 10, gt))), 256)), (S(!0), g(f, null, w(Z.value, (e, t) => (S(), g("rect", {
1611
1617
  x: e.open.x - Y.value / 2 + Y.value * (1 - F.value.style.layout.candle.widthRatio) / 2,
1612
1618
  y: e.isBullish ? e.close.y : e.open.y,
1613
1619
  height: Math.abs(e.close.y - e.open.y) <= 0 ? 1e-4 : Math.abs(e.close.y - e.open.y),
@@ -1619,48 +1625,48 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
1619
1625
  "stroke-linecap": "round",
1620
1626
  "stroke-linejoin": "round",
1621
1627
  class: b({ "vue-data-ui-transition": A.value && !D(I) })
1622
- }, null, 10, gt))), 256))])], 64)) : h("", !0),
1623
- F.value.type === "ohlc" ? (C(!0), g(f, { key: 5 }, T(Z.value, (e, t) => (C(), g("g", { key: `ohlc_${e.absoluteIndex}` }, [_("path", {
1628
+ }, null, 10, _t))), 256))])], 64)) : h("", !0),
1629
+ F.value.type === "ohlc" ? (S(!0), g(f, { key: 5 }, w(Z.value, (e, t) => (S(), g("g", { key: `ohlc_${e.absoluteIndex}` }, [_("path", {
1624
1630
  d: `M ${e.high.x},${e.high.y} ${e.low.x},${e.low.y} M${e.open.x - Math.min(6, Y.value / 3)},${e.open.y} ${e.open.x},${e.open.y} M${e.close.x},${e.close.y} ${e.close.x + Math.min(6, Y.value / 3)},${e.close.y}`,
1625
1631
  stroke: e.isBullish ? F.value.style.layout.candle.colors.bullish : F.value.style.layout.candle.colors.bearish,
1626
1632
  "stroke-width": 1,
1627
- class: b({ "vue-data-ui-transition": D(an) }),
1633
+ class: b({ "vue-data-ui-transition": D(on) }),
1628
1634
  "stroke-linecap": "round",
1629
1635
  "stroke-linejoin": "round"
1630
- }, null, 10, _t)]))), 128)) : h("", !0),
1631
- _("g", null, [(C(!0), g(f, null, T(Z.value, (e, t) => (C(), g("rect", {
1636
+ }, null, 10, vt)]))), 128)) : h("", !0),
1637
+ _("g", null, [(S(!0), g(f, null, w(Z.value, (e, t) => (S(), g("rect", {
1632
1638
  x: W.value.left + t * Y.value,
1633
1639
  y: W.value.top,
1634
1640
  height: W.value.height <= 0 ? 1e-4 : W.value.height,
1635
1641
  width: Y.value <= 0 ? 1e-4 : Y.value,
1636
- fill: M.value === t || en.value === t ? D(r)(F.value.style.layout.selector.color, F.value.style.layout.selector.opacity) : "transparent",
1637
- onMouseover: () => tr(t, e, "pointer"),
1638
- onMouseleave: () => er(t, e),
1639
- onClick: () => $n(t, e)
1640
- }, null, 40, vt))), 256))])
1642
+ fill: M.value === t || tn.value === t ? D(a)(F.value.style.layout.selector.color, F.value.style.layout.selector.opacity) : "transparent",
1643
+ onMouseover: () => nr(t, e, "pointer"),
1644
+ onMouseleave: () => tr(t, e),
1645
+ onClick: () => er(t, e)
1646
+ }, null, 40, yt))), 256))])
1641
1647
  ])) : h("", !0),
1642
- Dn.value ? (C(), g("rect", Fe({ key: 2 }, En.value, {
1648
+ On.value ? (S(), g("rect", Ie({ key: 2 }, Dn.value, {
1643
1649
  "data-start": K.value.start,
1644
1650
  "data-end": K.value.end
1645
- }), null, 16, yt)) : h("", !0),
1646
- E(e.$slots, "svg", { svg: {
1651
+ }), null, 16, bt)) : h("", !0),
1652
+ T(e.$slots, "svg", { svg: {
1647
1653
  ...z.value,
1648
1654
  data: Z.value,
1649
1655
  drawingArea: W.value,
1650
- isPrintingImg: D(_n) || D(vn) || D(wr),
1651
- isPrintingSvg: D(Tr)
1656
+ isPrintingImg: D(vn) || D(yn) || D(Tr),
1657
+ isPrintingSvg: D(Er)
1652
1658
  } }, void 0, !0)
1653
- ], 46, Ye)), e.$slots.hint ? (C(), g("div", bt, [E(e.$slots, "hint", x(y({
1659
+ ], 46, Xe)), e.$slots.hint ? (S(), g("div", xt, [T(e.$slots, "hint", x(y({
1654
1660
  hint: F.value.a11y.translations.keyboardNavigation,
1655
- isVisible: rn.value
1661
+ isVisible: an.value
1656
1662
  })), void 0, !0)])) : h("", !0)]),
1657
- e.$slots.watermark ? (C(), g("div", xt, [E(e.$slots, "watermark", x(y({ isPrinting: D(_n) || D(vn) || D(wr) || D(Tr) })), void 0, !0)])) : h("", !0),
1658
- F.value.style.zoom.show && G.value > 6 && Lt.value && or.value ? (C(), m(De, {
1663
+ e.$slots.watermark ? (S(), g("div", St, [T(e.$slots, "watermark", x(y({ isPrinting: D(vn) || D(yn) || D(Tr) || D(Er) })), void 0, !0)])) : h("", !0),
1664
+ F.value.style.zoom.show && G.value > 6 && Rt.value && sr.value ? (S(), m(Oe, {
1659
1665
  key: 6,
1660
1666
  ref_key: "chartSlicer",
1661
- ref: Wt,
1667
+ ref: Gt,
1662
1668
  "data-dom-to-png-ignore-layout": "",
1663
- allMinimaps: Ln.value,
1669
+ allMinimaps: Rn.value,
1664
1670
  background: F.value.style.zoom.color,
1665
1671
  borderColor: F.value.style.backgroundColor,
1666
1672
  customFormat: F.value.style.zoom.customFormat,
@@ -1673,9 +1679,9 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
1673
1679
  fontSize: F.value.style.zoom.fontSize,
1674
1680
  immediate: !F.value.style.zoom.preview.enable,
1675
1681
  inputColor: F.value.style.zoom.color,
1676
- isPreview: Dn.value,
1677
- labelLeft: Zn.value.start || "",
1678
- labelRight: Zn.value.end || "",
1682
+ isPreview: On.value,
1683
+ labelLeft: Qn.value.start || "",
1684
+ labelRight: Qn.value.end || "",
1679
1685
  max: G.value,
1680
1686
  min: 0,
1681
1687
  minimap: F.value.style.zoom.minimap.show ? D(L).map((e) => e[2]) : [],
@@ -1687,7 +1693,7 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
1687
1693
  minimapSelectedColorOpacity: F.value.style.zoom.minimap.selectedColorOpacity,
1688
1694
  minimapSelectedIndex: M.value,
1689
1695
  minimapSelectionRadius: 1,
1690
- preciseLabels: Jn.value,
1696
+ preciseLabels: Yn.value,
1691
1697
  refreshEndPoint: F.value.style.zoom.endIndex === null ? G.value : F.value.style.zoom.endIndex + 1,
1692
1698
  refreshStartPoint: F.value.style.zoom.startIndex === null ? 0 : F.value.style.zoom.startIndex,
1693
1699
  selectColor: F.value.style.zoom.highlightColor,
@@ -1695,7 +1701,7 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
1695
1701
  smoothMinimap: !1,
1696
1702
  start: K.value.start,
1697
1703
  textColor: F.value.style.color,
1698
- timeLabels: Vn.value,
1704
+ timeLabels: Hn.value,
1699
1705
  usePreciseLabels: F.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable && !F.value.style.zoom.useDefaultFormat,
1700
1706
  useResetSlot: F.value.style.zoom.useResetSlot,
1701
1707
  valueEnd: K.value.end,
@@ -1713,43 +1719,43 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
1713
1719
  handleBorderColor: F.value.style.zoom.minimap.handleBorderColor,
1714
1720
  handleFill: F.value.style.zoom.minimap.handleFill,
1715
1721
  handleWidth: F.value.style.zoom.minimap.handleWidth,
1716
- "onUpdate:end": Ar,
1717
- "onUpdate:start": kr,
1718
- onTrapMouse: Or,
1719
- onReset: ir,
1720
- onFutureEnd: t[0] ||= (e) => On("end", e),
1721
- onFutureStart: t[1] ||= (e) => On("start", e)
1722
+ "onUpdate:end": jr,
1723
+ "onUpdate:start": Ar,
1724
+ onTrapMouse: kr,
1725
+ onReset: ar,
1726
+ onFutureEnd: t[0] ||= (e) => kn("end", e),
1727
+ onFutureStart: t[1] ||= (e) => kn("start", e)
1722
1728
  }, {
1723
- "reset-action": O(({ reset: t }) => [E(e.$slots, "reset-action", x(y({ reset: t })), void 0, !0)]),
1724
- slotMap: O(({ height: e, unitW: t }) => [(C(!0), g(f, null, T(In.value({
1729
+ "reset-action": O(({ reset: t }) => [T(e.$slots, "reset-action", x(y({ reset: t })), void 0, !0)]),
1730
+ slotMap: O(({ height: e, unitW: t }) => [(S(!0), g(f, null, w(Ln.value({
1725
1731
  minimapH: e,
1726
1732
  unitW: t
1727
- }), (e, n) => (C(), g("g", null, [_("path", {
1733
+ }), (e, n) => (S(), g("g", null, [_("path", {
1728
1734
  d: `M ${e.high.x},${e.high.y} ${e.low.x},${e.low.y}`,
1729
1735
  stroke: e.isBullish ? F.value.style.layout.candle.colors.bullish : F.value.style.layout.candle.colors.bearish,
1730
1736
  "stroke-width": 1,
1731
- style: S({ opacity: n >= q.value.start && n <= q.value.end ? 1 : .6 })
1732
- }, null, 12, St), _("path", {
1737
+ style: Re({ opacity: n >= q.value.start && n <= q.value.end ? 1 : .6 })
1738
+ }, null, 12, Ct), _("path", {
1733
1739
  d: `M ${e.open.x},${e.open.y} ${e.close.x},${e.close.y}`,
1734
1740
  stroke: e.isBullish ? F.value.style.layout.candle.colors.bullish : F.value.style.layout.candle.colors.bearish,
1735
1741
  "stroke-width": Math.min(6, t / 1.5),
1736
- style: S({ opacity: n >= q.value.start && n <= q.value.end ? 1 : .6 })
1737
- }, null, 12, Ct)]))), 256))]),
1742
+ style: Re({ opacity: n >= q.value.start && n <= q.value.end ? 1 : .6 })
1743
+ }, null, 12, wt)]))), 256))]),
1738
1744
  _: 3
1739
1745
  }, 8, /* @__PURE__ */ "allMinimaps.background.borderColor.customFormat.enableRangeHandles.enableSelectionDrag.end.focusOnDrag.focusRangeRatio.fontSize.immediate.inputColor.isPreview.labelLeft.labelRight.max.minimap.minimapCompact.minimapFrameColor.minimapIndicatorColor.minimapSelectedColor.minimapSelectedColorOpacity.minimapSelectedIndex.preciseLabels.refreshEndPoint.refreshStartPoint.selectColor.selectedSeries.start.textColor.timeLabels.usePreciseLabels.useResetSlot.valueEnd.valueStart.verticalHandles.minScale.maxScale.maxWidth.minimapLeftInsetRatio.minimapRightInsetRatio.additionalMinimapHeight.handleType.handleIconColor.handleBorderWidth.handleBorderColor.handleFill.handleWidth".split("."))) : h("", !0),
1740
1746
  _("div", {
1741
1747
  ref_key: "chartLegend",
1742
- ref: Ut
1743
- }, [E(e.$slots, "legend", { legend: Z.value }, void 0, !0)], 512),
1744
- e.$slots.source ? (C(), g("div", {
1748
+ ref: Wt
1749
+ }, [T(e.$slots, "legend", { legend: Z.value }, void 0, !0)], 512),
1750
+ e.$slots.source ? (S(), g("div", {
1745
1751
  key: 7,
1746
1752
  ref_key: "source",
1747
- ref: Gt,
1753
+ ref: Kt,
1748
1754
  dir: "auto"
1749
- }, [E(e.$slots, "source", {}, void 0, !0)], 512)) : h("", !0),
1750
- Pe(D(Et), {
1755
+ }, [T(e.$slots, "source", {}, void 0, !0)], 512)) : h("", !0),
1756
+ Fe(D(Dt), {
1751
1757
  teleportTo: F.value.style.tooltip.teleportTo,
1752
- show: H.value.showTooltip && zt.value,
1758
+ show: H.value.showTooltip && Bt.value,
1753
1759
  backgroundColor: F.value.style.tooltip.backgroundColor,
1754
1760
  color: F.value.style.tooltip.color,
1755
1761
  borderRadius: F.value.style.tooltip.borderRadius,
@@ -1761,19 +1767,19 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
1761
1767
  offsetX: F.value.style.tooltip.offsetX,
1762
1768
  offsetY: F.value.style.tooltip.offsetY,
1763
1769
  parent: N.value,
1764
- content: Bt.value,
1770
+ content: Vt.value,
1765
1771
  isFullscreen: $.value,
1766
1772
  isCustom: F.value.style.tooltip.customFormat && typeof F.value.style.tooltip.customFormat == "function",
1767
1773
  smooth: F.value.style.tooltip.smooth,
1768
1774
  backdropFilter: F.value.style.tooltip.backdropFilter,
1769
1775
  smoothForce: F.value.style.tooltip.smoothForce,
1770
1776
  smoothSnapThreshold: F.value.style.tooltip.smoothSnapThreshold,
1771
- isA11yMode: nn.value === "keyboard",
1772
- a11yPosition: tn.value
1777
+ isA11yMode: rn.value === "keyboard",
1778
+ a11yPosition: nn.value
1773
1779
  }, {
1774
- "tooltip-before": O(() => [E(e.$slots, "tooltip-before", x(y({ ...Qn.value })), void 0, !0)]),
1775
- tooltip: O(() => [E(e.$slots, "tooltip", x(y({ ...Qn.value })), void 0, !0)]),
1776
- "tooltip-after": O(() => [E(e.$slots, "tooltip-after", x(y({ ...Qn.value })), void 0, !0)]),
1780
+ "tooltip-before": O(() => [T(e.$slots, "tooltip-before", x(y({ ...$n.value })), void 0, !0)]),
1781
+ tooltip: O(() => [T(e.$slots, "tooltip", x(y({ ...$n.value })), void 0, !0)]),
1782
+ "tooltip-after": O(() => [T(e.$slots, "tooltip-after", x(y({ ...$n.value })), void 0, !0)]),
1777
1783
  _: 3
1778
1784
  }, 8, [
1779
1785
  "teleportTo",
@@ -1799,24 +1805,24 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
1799
1805
  "isA11yMode",
1800
1806
  "a11yPosition"
1801
1807
  ]),
1802
- Lt.value && F.value.userOptions.buttons.table ? (C(), m(ze(br.value.component), Fe({ key: 8 }, br.value.props, {
1808
+ Rt.value && F.value.userOptions.buttons.table ? (S(), m(Ve(xr.value.component), Ie({ key: 8 }, xr.value.props, {
1803
1809
  ref_key: "tableUnit",
1804
- ref: Qt,
1805
- onClose: xr
1806
- }), Me({
1807
- content: O(() => [(C(), m(D(Ot), {
1808
- key: `table_${Jt.value}`,
1809
- colNames: dr.value.colNames,
1810
- head: dr.value.head,
1811
- body: dr.value.body,
1812
- config: dr.value.config,
1813
- title: F.value.table.useDialog ? "" : br.value.title,
1810
+ ref: $t,
1811
+ onClose: Sr
1812
+ }), Ne({
1813
+ content: O(() => [(S(), m(D(kt), {
1814
+ key: `table_${Yt.value}`,
1815
+ colNames: fr.value.colNames,
1816
+ head: fr.value.head,
1817
+ body: fr.value.body,
1818
+ config: fr.value.config,
1819
+ title: F.value.table.useDialog ? "" : xr.value.title,
1814
1820
  withCloseButton: !F.value.table.useDialog,
1815
- isCursorPointer: on.value,
1816
- onClose: xr
1821
+ isCursorPointer: sn.value,
1822
+ onClose: Sr
1817
1823
  }, {
1818
- th: O(({ th: e }) => [Ne(Ve(e), 1)]),
1819
- td: O(({ td: e }) => [_("div", { innerHTML: e }, null, 8, wt)]),
1824
+ th: O(({ th: e }) => [Pe(E(e), 1)]),
1825
+ td: O(({ td: e }) => [_("div", { innerHTML: e }, null, 8, Tt)]),
1820
1826
  _: 1
1821
1827
  }, 8, [
1822
1828
  "colNames",
@@ -1830,24 +1836,24 @@ var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je
1830
1836
  _: 2
1831
1837
  }, [F.value.table.useDialog ? {
1832
1838
  name: "title",
1833
- fn: O(() => [Ne(Ve(br.value.title), 1)]),
1839
+ fn: O(() => [Pe(E(xr.value.title), 1)]),
1834
1840
  key: "0"
1835
1841
  } : void 0, F.value.table.useDialog ? {
1836
1842
  name: "actions",
1837
1843
  fn: O(() => [_("button", {
1838
1844
  tabindex: "0",
1839
1845
  class: "vue-ui-user-options-button",
1840
- onClick: t[2] ||= (e) => ur(F.value.userOptions.callbacks.csv),
1841
- style: S({ cursor: on.value ? "pointer" : "default" })
1842
- }, [Pe(D(Tt), {
1846
+ onClick: t[2] ||= (e) => dr(F.value.userOptions.callbacks.csv),
1847
+ style: Re({ cursor: sn.value ? "pointer" : "default" })
1848
+ }, [Fe(D(Et), {
1843
1849
  name: "fileCsv",
1844
- stroke: br.value.props.color
1850
+ stroke: xr.value.props.color
1845
1851
  }, null, 8, ["stroke"])], 4)]),
1846
1852
  key: "1"
1847
1853
  } : void 0]), 1040)) : h("", !0),
1848
- E(e.$slots, "skeleton", {}, () => [D(I) ? (C(), m(he, { key: 0 })) : h("", !0)], !0)
1849
- ], 46, Ke));
1854
+ T(e.$slots, "skeleton", {}, () => [D(I) ? (S(), m(ge, { key: 0 })) : h("", !0)], !0)
1855
+ ], 46, qe));
1850
1856
  }
1851
- }, [["__scopeId", "data-v-c8d6c74c"]]);
1857
+ }, [["__scopeId", "data-v-a373c9bb"]]);
1852
1858
  //#endregion
1853
- export { Ge as n, Tt as t };
1859
+ export { Ke as n, Et as t };