vue-data-ui 3.22.6 → 3.22.8

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 (203) hide show
  1. package/dist/{Arrow-Ds4xmpiQ.js → Arrow-DdymhUfY.js} +1 -1
  2. package/dist/{BaseDraggableDialog-VbypEaAa.js → BaseDraggableDialog-DcfGlH8A.js} +2 -2
  3. package/dist/{BaseIcon-DcUvOfxf.js → BaseIcon-C2qlyHc7.js} +1 -1
  4. package/dist/{BaseLegendToggle-DFwIY5bE.js → BaseLegendToggle-DtQ8vyfr.js} +1 -1
  5. package/dist/{BaseZoomControls-DwolSINF.js → BaseZoomControls-C6zonwhr.js} +2 -2
  6. package/dist/{ColorPicker-UVDPcrjE.js → ColorPicker-CK2-h611.js} +2 -2
  7. package/dist/{DataTable-CXfvIulC.js → DataTable-D9NvewTT.js} +2 -2
  8. package/dist/{Legend-D-635Kag.js → Legend-ROt6ugzW.js} +2 -2
  9. package/dist/{NonSvgPenAndPaper-pR_1qp3s.js → NonSvgPenAndPaper-BHHNsVVP.js} +29 -29
  10. package/dist/{PackageVersion-Da7hl-34.js → PackageVersion-DW7zwRcm.js} +1 -1
  11. package/dist/{PenAndPaper-Bk2-E7V4.js → PenAndPaper-pcgwlYr2.js} +18 -18
  12. package/dist/{Shape-BSetplwm.js → Shape-UpH0a4Ur.js} +3 -3
  13. package/dist/{Slicer-ClIGOuoX.js → Slicer-BZ5VnOOS.js} +19 -19
  14. package/dist/{SlicerPreview-D1n9AW39.js → SlicerPreview-BQFeCw0m.js} +351 -351
  15. package/dist/{SparkTooltip-CjDAyolg.js → SparkTooltip-BTLN-Kex.js} +6 -6
  16. package/dist/{Title-C-p0ilWB.js → Title-CcNiYzEo.js} +1 -1
  17. package/dist/{Tooltip-YabpoXo1.js → Tooltip-CxOrWlFy.js} +1 -1
  18. package/dist/{UserOptions-BO4VFL8O.js → UserOptions-16uF1ayB.js} +2 -2
  19. package/dist/components/arrow.js +1 -1
  20. package/dist/components/vue-ui-3d-bar.js +1 -1
  21. package/dist/components/vue-ui-accordion.js +1 -1
  22. package/dist/components/vue-ui-age-pyramid.js +1 -1
  23. package/dist/components/vue-ui-annotator.js +1 -1
  24. package/dist/components/vue-ui-bullet.js +1 -1
  25. package/dist/components/vue-ui-bump.js +1 -1
  26. package/dist/components/vue-ui-candlestick.js +1 -1
  27. package/dist/components/vue-ui-carousel-table.js +1 -1
  28. package/dist/components/vue-ui-chestnut.js +1 -1
  29. package/dist/components/vue-ui-chord.js +1 -1
  30. package/dist/components/vue-ui-circle-pack.js +1 -1
  31. package/dist/components/vue-ui-cursor.js +1 -1
  32. package/dist/components/vue-ui-dag.js +1 -1
  33. package/dist/components/vue-ui-dashboard.js +1 -1
  34. package/dist/components/vue-ui-digits.js +1 -1
  35. package/dist/components/vue-ui-donut-evolution.js +1 -1
  36. package/dist/components/vue-ui-donut.js +1 -1
  37. package/dist/components/vue-ui-dumbbell.js +1 -1
  38. package/dist/components/vue-ui-flow.js +1 -1
  39. package/dist/components/vue-ui-funnel.js +1 -1
  40. package/dist/components/vue-ui-galaxy.js +1 -1
  41. package/dist/components/vue-ui-gauge.js +1 -1
  42. package/dist/components/vue-ui-geo.js +1 -1
  43. package/dist/components/vue-ui-gizmo.js +1 -1
  44. package/dist/components/vue-ui-heatmap.js +1 -1
  45. package/dist/components/vue-ui-history-plot.js +1 -1
  46. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  47. package/dist/components/vue-ui-icon.js +1 -1
  48. package/dist/components/vue-ui-kpi.js +1 -1
  49. package/dist/components/vue-ui-mini-loader.js +1 -1
  50. package/dist/components/vue-ui-molecule.js +1 -1
  51. package/dist/components/vue-ui-mood-radar.js +1 -1
  52. package/dist/components/vue-ui-nested-donuts.js +1 -1
  53. package/dist/components/vue-ui-onion.js +1 -1
  54. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  55. package/dist/components/vue-ui-quadrant.js +1 -1
  56. package/dist/components/vue-ui-quick-chart.js +1 -1
  57. package/dist/components/vue-ui-radar.js +1 -1
  58. package/dist/components/vue-ui-rating.js +1 -1
  59. package/dist/components/vue-ui-relation-circle.js +1 -1
  60. package/dist/components/vue-ui-ridgeline.js +1 -1
  61. package/dist/components/vue-ui-rings.js +1 -1
  62. package/dist/components/vue-ui-scatter.js +1 -1
  63. package/dist/components/vue-ui-skeleton.js +1 -1
  64. package/dist/components/vue-ui-smiley.js +1 -1
  65. package/dist/components/vue-ui-spark-trend.js +1 -1
  66. package/dist/components/vue-ui-sparkbar.js +1 -1
  67. package/dist/components/vue-ui-sparkgauge.js +1 -1
  68. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  69. package/dist/components/vue-ui-sparkline.js +1 -1
  70. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  71. package/dist/components/vue-ui-stackbar.js +1 -1
  72. package/dist/components/vue-ui-stackline.js +1 -1
  73. package/dist/components/vue-ui-strip-plot.js +1 -1
  74. package/dist/components/vue-ui-table-heatmap.js +1 -1
  75. package/dist/components/vue-ui-table-sparkline.js +1 -1
  76. package/dist/components/vue-ui-table.js +1 -1
  77. package/dist/components/vue-ui-thermometer.js +1 -1
  78. package/dist/components/vue-ui-timer.js +1 -1
  79. package/dist/components/vue-ui-tiremarks.js +1 -1
  80. package/dist/components/vue-ui-treemap.js +1 -1
  81. package/dist/components/vue-ui-vertical-bar.js +1 -1
  82. package/dist/components/vue-ui-waffle.js +1 -1
  83. package/dist/components/vue-ui-wheel.js +1 -1
  84. package/dist/components/vue-ui-word-cloud.js +1 -1
  85. package/dist/components/vue-ui-world.js +1 -1
  86. package/dist/components/vue-ui-xy-canvas.js +1 -1
  87. package/dist/components/vue-ui-xy.js +1 -1
  88. package/dist/{dom-to-png-CVJfsfwL.js → dom-to-png-BbwhsRIr.js} +1 -1
  89. package/dist/exposedLib-VXFp3Z2c.js +19 -0
  90. package/dist/{geoProjections-Czak6Jn1.js → geoProjections-BbN7z57k.js} +172 -15
  91. package/dist/{img-B_y5qDdm.js → img-DnP3eXuv.js} +1 -1
  92. package/dist/{labelUtils-CyVwqXSh.js → labelUtils-DBEh078l.js} +1 -1
  93. package/dist/{lib-DRBJCmHW.js → lib-JqW18y5I.js} +49 -30
  94. package/dist/{package-DyQ_PQis.js → package-gp9pYCfN.js} +1 -1
  95. package/dist/{pdf-CG02qhAH.js → pdf-hj3gzrE7.js} +1 -1
  96. package/dist/{render-common-CUAlQvAQ.js → render-common-CLn1VXJ9.js} +20 -20
  97. package/dist/ssr/vue-ui-donut.js +1 -1
  98. package/dist/ssr/vue-ui-xy.js +1 -1
  99. package/dist/ssr.js +2 -2
  100. package/dist/style.css +1 -1
  101. package/dist/types/utils.d.ts +18 -0
  102. package/dist/{useAutoSizeLabelsInsideViewbox-DPMOys9n.js → useAutoSizeLabelsInsideViewbox-BGnDfZdg.js} +1 -1
  103. package/dist/{useNestedProp-BEo2N1Db.js → useNestedProp-DIuuzG1r.js} +1 -1
  104. package/dist/{usePrinter-CRp5IW3v.js → usePrinter-CqqHmnBI.js} +2 -2
  105. package/dist/utils.js +23 -23
  106. package/dist/{vue-data-ui-Bpu4kxlm.js → vue-data-ui-AZZ9Cq-4.js} +68 -68
  107. package/dist/vue-data-ui.js +77 -77
  108. package/dist/{vue-ui-3d-bar-BAH0jNtT.js → vue-ui-3d-bar-B3HxJmDI.js} +124 -124
  109. package/dist/{vue-ui-accordion-CfMrbDoq.js → vue-ui-accordion-YyosvEPo.js} +3 -3
  110. package/dist/vue-ui-age-pyramid-DTAOc7fn.js +1238 -0
  111. package/dist/{vue-ui-annotator-CG6rhFpy.js → vue-ui-annotator-CfJXeAOE.js} +6 -6
  112. package/dist/vue-ui-bullet-CCLnrOLm.js +710 -0
  113. package/dist/vue-ui-bump-Rq7efdoe.js +1249 -0
  114. package/dist/vue-ui-candlestick-D-Z9pEaA.js +1829 -0
  115. package/dist/vue-ui-carousel-table-Lx5Zk4dG.js +455 -0
  116. package/dist/{vue-ui-chestnut-Cx8T3NEl.js → vue-ui-chestnut-RfWMGUD-.js} +114 -114
  117. package/dist/{vue-ui-chord-B-sauvLo.js → vue-ui-chord-Db1O_diJ.js} +57 -57
  118. package/dist/vue-ui-circle-pack-B4Ro7UuI.js +1608 -0
  119. package/dist/{vue-ui-cursor-DVsEm_4l.js → vue-ui-cursor-DLP7wxsw.js} +61 -61
  120. package/dist/{vue-ui-dag-Cfi0b9qm.js → vue-ui-dag-DL3zq0F2.js} +37 -37
  121. package/dist/{vue-ui-dashboard-F_NZ1xoQ.js → vue-ui-dashboard-C2ozZ-LI.js} +69 -69
  122. package/dist/{vue-ui-digits-BfP1kbj3.js → vue-ui-digits-ThFVNO3l.js} +3 -3
  123. package/dist/{vue-ui-donut-DlVRnVr_.js → vue-ui-donut-BuTd6dt4.js} +224 -224
  124. package/dist/{vue-ui-donut-BwAyvV3-.js → vue-ui-donut-C3Rt6j-I.js} +458 -458
  125. package/dist/vue-ui-donut-evolution-DY46UPF_.js +1510 -0
  126. package/dist/vue-ui-dumbbell-wK7vUB0x.js +1530 -0
  127. package/dist/{vue-ui-flow-D_7Idmmw.js → vue-ui-flow-BTUNfWb7.js} +122 -122
  128. package/dist/vue-ui-funnel-BhoHzyHa.js +777 -0
  129. package/dist/{vue-ui-galaxy-Bjxbg5_B.js → vue-ui-galaxy-DJ2uNYcN.js} +263 -263
  130. package/dist/{vue-ui-gauge-Dt0H7DgC.js → vue-ui-gauge-Cf4NqvrO.js} +226 -226
  131. package/dist/{vue-ui-geo-89DEQb5l.js → vue-ui-geo-ovHu_Sc9.js} +21 -21
  132. package/dist/{vue-ui-gizmo-CQyLK18v.js → vue-ui-gizmo-DDxEj-qe.js} +7 -7
  133. package/dist/{vue-ui-heatmap-o6MvoxBK.js → vue-ui-heatmap-Npqnvb1r.js} +282 -282
  134. package/dist/vue-ui-history-plot-C3Kjy2tc.js +1715 -0
  135. package/dist/vue-ui-horizontal-bar-D1rCsgqt.js +1683 -0
  136. package/dist/{vue-ui-kpi-4C-j92D-.js → vue-ui-kpi-BrlfYO-j.js} +4 -4
  137. package/dist/{vue-ui-mini-loader-Bj4Wv-i8.js → vue-ui-mini-loader-D5we7V_W.js} +2 -2
  138. package/dist/vue-ui-molecule-CExCqZ08.js +925 -0
  139. package/dist/{vue-ui-mood-radar-B5W35Fvp.js → vue-ui-mood-radar-DlVh6hwx.js} +27 -27
  140. package/dist/vue-ui-nested-donuts-3TRV8pN-.js +1487 -0
  141. package/dist/vue-ui-onion-DwKK9DXn.js +1200 -0
  142. package/dist/{vue-ui-parallel-coordinate-plot-DBpHCFxa.js → vue-ui-parallel-coordinate-plot-DSp_cwU-.js} +57 -57
  143. package/dist/vue-ui-quadrant-ByVg-NBs.js +1978 -0
  144. package/dist/{vue-ui-quick-chart-so_8PzvS.js → vue-ui-quick-chart-WMzSJxGZ.js} +188 -188
  145. package/dist/{vue-ui-radar-5fQ5AAWD.js → vue-ui-radar-DE-me6OC.js} +64 -64
  146. package/dist/vue-ui-rating-CzD3EQ3G.js +343 -0
  147. package/dist/vue-ui-relation-circle-L7-dTqet.js +924 -0
  148. package/dist/vue-ui-ridgeline-Cp3YP0xe.js +1622 -0
  149. package/dist/vue-ui-rings-WzWiEo9W.js +1246 -0
  150. package/dist/vue-ui-scatter-DwrAydha.js +2413 -0
  151. package/dist/{vue-ui-skeleton-BkxB6Dik.js → vue-ui-skeleton-CuFm4PtB.js} +58 -58
  152. package/dist/{vue-ui-smiley-C4g0iaF7.js → vue-ui-smiley-D4NnZ1mg.js} +17 -17
  153. package/dist/{vue-ui-spark-trend-0FELlq4x.js → vue-ui-spark-trend-C38ysZ-c.js} +21 -21
  154. package/dist/{vue-ui-sparkbar-D-i_VLO6.js → vue-ui-sparkbar-B03ndcUe.js} +80 -80
  155. package/dist/{vue-ui-sparkgauge-CWw6w_ng.js → vue-ui-sparkgauge-DgPc4vPT.js} +7 -7
  156. package/dist/{vue-ui-sparkhistogram-DuGpkfma.js → vue-ui-sparkhistogram-D02ff7ZI.js} +115 -115
  157. package/dist/{vue-ui-sparkline-Bi06lHQd.js → vue-ui-sparkline-DlTfNQj8.js} +464 -464
  158. package/dist/vue-ui-sparkstackbar-DrmiWFlw.js +662 -0
  159. package/dist/vue-ui-stackbar-BVdApDnY.js +2332 -0
  160. package/dist/vue-ui-stackline-QzQQ7lTy.js +2419 -0
  161. package/dist/vue-ui-strip-plot-C-TFNvgz.js +1729 -0
  162. package/dist/{vue-ui-table-DBlZswRi.js → vue-ui-table-Q3brrivC.js} +68 -68
  163. package/dist/{vue-ui-table-heatmap-3xYIDKcP.js → vue-ui-table-heatmap-D0pZbBOH.js} +14 -14
  164. package/dist/{vue-ui-table-sparkline-BH5PzEnJ.js → vue-ui-table-sparkline-Q6BHPKUn.js} +199 -199
  165. package/dist/{vue-ui-thermometer-BxMzAqoT.js → vue-ui-thermometer-Bg0RR6m4.js} +26 -26
  166. package/dist/{vue-ui-timer-ONSitYDm.js → vue-ui-timer-BdzKpoRj.js} +29 -29
  167. package/dist/{vue-ui-tiremarks-DWXM-9nR.js → vue-ui-tiremarks-DWb69ofh.js} +17 -17
  168. package/dist/{vue-ui-treemap-B03c4RIy.js → vue-ui-treemap-uUz07Prw.js} +401 -401
  169. package/dist/vue-ui-waffle-Pi9e7Ae7.js +1362 -0
  170. package/dist/{vue-ui-wheel-DRP7X8S2.js → vue-ui-wheel-DTfvWYA7.js} +137 -137
  171. package/dist/{vue-ui-word-cloud-AKpMO97a.js → vue-ui-word-cloud-DqfljAqH.js} +40 -40
  172. package/dist/vue-ui-world-BtBrH92Z.js +3016 -0
  173. package/dist/{vue-ui-xy-Bmd11BxR.js → vue-ui-xy-Bvgy2do1.js} +1598 -1596
  174. package/dist/{vue-ui-xy-DJ8YKPgs.js → vue-ui-xy-D5KsuNR2.js} +259 -259
  175. package/dist/{vue-ui-xy-canvas-DO_PDGKf.js → vue-ui-xy-canvas-BfgeE3TW.js} +440 -437
  176. package/package.json +1 -1
  177. package/dist/exposedLib-CjwriUaG.js +0 -19
  178. package/dist/vue-ui-age-pyramid-BF5ZuuyI.js +0 -1238
  179. package/dist/vue-ui-bullet-C_oBS1cr.js +0 -710
  180. package/dist/vue-ui-bump-BZB1Na8h.js +0 -1249
  181. package/dist/vue-ui-candlestick-8d_1xO8X.js +0 -1826
  182. package/dist/vue-ui-carousel-table-BfZNcwmY.js +0 -455
  183. package/dist/vue-ui-circle-pack-BLh8HnGK.js +0 -1608
  184. package/dist/vue-ui-donut-evolution-D1k4u6cA.js +0 -1510
  185. package/dist/vue-ui-dumbbell-DgmvPpK2.js +0 -1530
  186. package/dist/vue-ui-funnel-BYCFV5TD.js +0 -777
  187. package/dist/vue-ui-history-plot-B7zuCfdg.js +0 -1715
  188. package/dist/vue-ui-horizontal-bar-CwB4sc6M.js +0 -1683
  189. package/dist/vue-ui-molecule-BDrRmwmm.js +0 -925
  190. package/dist/vue-ui-nested-donuts-wfesrzle.js +0 -1487
  191. package/dist/vue-ui-onion-B8-psLbF.js +0 -1200
  192. package/dist/vue-ui-quadrant-BzyGOJR2.js +0 -1978
  193. package/dist/vue-ui-rating-CKWHDKOT.js +0 -343
  194. package/dist/vue-ui-relation-circle-Bd_ONHCz.js +0 -924
  195. package/dist/vue-ui-ridgeline-DVbYznRz.js +0 -1622
  196. package/dist/vue-ui-rings-c-yLWFHr.js +0 -1246
  197. package/dist/vue-ui-scatter-QhmE7n1H.js +0 -2413
  198. package/dist/vue-ui-sparkstackbar-DrKgBUmt.js +0 -662
  199. package/dist/vue-ui-stackbar-DDvuDGQ_.js +0 -2329
  200. package/dist/vue-ui-stackline-C0NHBUaE.js +0 -2416
  201. package/dist/vue-ui-strip-plot-_6LL45i9.js +0 -1729
  202. package/dist/vue-ui-waffle-afa8HSxz.js +0 -1362
  203. package/dist/vue-ui-world-CqS-HhZl.js +0 -14264
@@ -1,1826 +0,0 @@
1
- import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { Dt as t, It as n, Lt as r, Q as i, Ut as a, W as o, Wt as s, X as c, _t as l, at as ee, h as te, q as u, s as ne, t as re, v as d, w as ie } from "./lib-DRBJCmHW.js";
3
- import { n as ae, r as oe, t as se } from "./useTimeLabels-BmBRv27Y.js";
4
- import { t as ce } from "./useConfig-DYM3f6EI.js";
5
- import { t as le } from "./usePrinter-CRp5IW3v.js";
6
- import { n as ue, t as de } from "./BaseScanner-DZvpgOjM.js";
7
- import { t as fe } from "./useSvgExport-SVIsDot8.js";
8
- import { t as pe } from "./useNestedProp-BEo2N1Db.js";
9
- import { t as me } from "./useThemeCheck-C43Tcqmk.js";
10
- import { t as he } from "./useTimeLabelCollider-AEcY4Ioe.js";
11
- import { t as ge } from "./img-B_y5qDdm.js";
12
- import { n as _e } from "./Title-C-p0ilWB.js";
13
- import { t as ve } from "./_plugin-vue_export-helper-B3ysoDQm.js";
14
- import { c as ye } from "./canvas-lib-BOP_HS11.js";
15
- import { t as be } from "./useResponsive-BfnK0KxU.js";
16
- import { t as xe } from "./SlicerPreview-D1n9AW39.js";
17
- import { t as Se } from "./A11yDataTable-DdRsVULz.js";
18
- import { t as Ce } from "./useUserOptionState-DK-_1ddE.js";
19
- import { t as we } from "./useChartAccessibility-DYqac8yF.js";
20
- import { t as Te } from "./vue_ui_candlestick-J8jmJvxP.js";
21
- import { Fragment as f, computed as p, createBlock as m, createCommentVNode as h, createElementBlock as g, createElementVNode as _, createSlots as Ee, createTextVNode as De, createVNode as Oe, defineAsyncComponent as v, guardReactiveProps as y, mergeProps as ke, nextTick as Ae, normalizeClass as b, normalizeProps as x, normalizeStyle as je, onBeforeUnmount as Me, onMounted as Ne, openBlock as S, ref as C, renderList as w, renderSlot as T, resolveDynamicComponent as Pe, shallowRef as Fe, toDisplayString as E, toRefs as Ie, unref as D, watch as Le, watchEffect as Re, withCtx as O } from "vue";
22
- //#region src/components/vue-ui-candlestick.vue
23
- var ze = /* @__PURE__ */ e({ default: () => Dt }), Be = ["id"], Ve = ["id"], He = { style: { position: "relative" } }, Ue = [
24
- "xmlns",
25
- "aria-describedby",
26
- "viewBox"
27
- ], We = [
28
- "x",
29
- "y",
30
- "width",
31
- "height"
32
- ], Ge = { key: 1 }, Ke = ["id"], qe = ["stop-color"], Je = ["stop-color"], Ye = ["stop-color"], Xe = ["id"], Ze = ["stop-color"], Qe = ["stop-color"], $e = ["stop-color"], et = { key: 0 }, tt = [
33
- "x1",
34
- "x2",
35
- "y1",
36
- "y2",
37
- "stroke",
38
- "stroke-width"
39
- ], nt = [
40
- "x1",
41
- "x2",
42
- "y1",
43
- "y2",
44
- "stroke",
45
- "stroke-width"
46
- ], rt = [
47
- "x1",
48
- "x2",
49
- "y1",
50
- "y2",
51
- "stroke",
52
- "stroke-width",
53
- "stroke-dasharray"
54
- ], it = [
55
- "x1",
56
- "x2",
57
- "y1",
58
- "y2",
59
- "stroke",
60
- "stroke-width",
61
- "stroke-dasharray"
62
- ], at = [
63
- "x1",
64
- "x2",
65
- "y1",
66
- "y2",
67
- "stroke",
68
- "stroke-width"
69
- ], ot = [
70
- "x1",
71
- "x2",
72
- "y1",
73
- "y2",
74
- "stroke",
75
- "stroke-width"
76
- ], st = [
77
- "x",
78
- "y",
79
- "text-anchor",
80
- "font-size",
81
- "fill",
82
- "font-weight"
83
- ], ct = [
84
- "transform",
85
- "text-anchor",
86
- "font-size",
87
- "fill",
88
- "font-weight"
89
- ], lt = [
90
- "transform",
91
- "text-anchor",
92
- "font-size",
93
- "fill",
94
- "font-weight"
95
- ], ut = [
96
- "x",
97
- "y",
98
- "width",
99
- "height",
100
- "fill",
101
- "rx"
102
- ], dt = { key: 0 }, ft = [
103
- "cx",
104
- "cy",
105
- "r",
106
- "fill"
107
- ], pt = [
108
- "cx",
109
- "cy",
110
- "r",
111
- "fill"
112
- ], mt = { key: 1 }, ht = [
113
- "x",
114
- "y",
115
- "width",
116
- "height",
117
- "rx",
118
- "fill"
119
- ], gt = [
120
- "x",
121
- "y",
122
- "width",
123
- "height",
124
- "fill",
125
- "rx"
126
- ], _t = [
127
- "x",
128
- "y",
129
- "height",
130
- "width",
131
- "fill",
132
- "rx"
133
- ], vt = [
134
- "x",
135
- "y",
136
- "height",
137
- "width",
138
- "fill",
139
- "rx",
140
- "stroke",
141
- "stroke-width"
142
- ], yt = ["d", "stroke"], bt = [
143
- "x",
144
- "y",
145
- "height",
146
- "width",
147
- "fill",
148
- "onMouseover",
149
- "onMouseleave",
150
- "onClick"
151
- ], xt = ["data-start", "data-end"], St = {
152
- key: 0,
153
- style: {
154
- position: "absolute",
155
- top: "100%",
156
- left: "0",
157
- width: "100%"
158
- },
159
- "data-dom-to-png-ignore": "",
160
- "aria-hidden": "true"
161
- }, Ct = {
162
- key: 5,
163
- class: "vue-data-ui-watermark"
164
- }, wt = ["d", "stroke"], Tt = [
165
- "d",
166
- "stroke",
167
- "stroke-width"
168
- ], Et = ["innerHTML"], Dt = /*#__PURE__*/ ve({
169
- __name: "vue-ui-candlestick",
170
- props: {
171
- config: {
172
- type: Object,
173
- default() {
174
- return {};
175
- }
176
- },
177
- dataset: {
178
- type: Array,
179
- default() {
180
- return [];
181
- }
182
- },
183
- selectedXIndex: {
184
- type: Number,
185
- default: void 0
186
- }
187
- },
188
- emits: ["selectX", "copyAlt"],
189
- setup(e, { expose: ve, emit: ze }) {
190
- let Dt = v(() => import("./BaseIcon-DcUvOfxf.js").then((e) => e.n)), Ot = v(() => import("./Tooltip-YabpoXo1.js")), kt = v(() => import("./vue-ui-accordion-CfMrbDoq.js").then((e) => e.n)), At = v(() => import("./DataTable-CXfvIulC.js")), jt = v(() => import("./PenAndPaper-Bk2-E7V4.js").then((e) => e.t)), Mt = v(() => import("./UserOptions-BO4VFL8O.js").then((e) => e.n)), Nt = v(() => import("./PackageVersion-Da7hl-34.js").then((e) => e.t)), Pt = v(() => import("./BaseDraggableDialog-VbypEaAa.js").then((e) => e.n)), { vue_ui_candlestick: Ft } = ce(), { isThemeValid: It, warnInvalidTheme: Lt } = me(), k = e, Rt = ze, zt = p(() => !!k.dataset && k.dataset.length), A = C(!1), Bt = C(null), j = C(o()), Vt = C(!1), Ht = C(""), M = C(void 0), Ut = C(0), N = C(null), Wt = C(null), Gt = C(null), Kt = C(null), qt = C(null), Jt = C(null), Yt = C(0), Xt = C(0), Zt = C(0), Qt = C(null), $t = C(null), en = C(null), tn = C(null), nn = C(null), rn = C(!1), an = C(!1), P = C(null), on = C({
191
- x: 0,
192
- y: 0
193
- }), sn = C("pointer"), cn = C(!1), F = C(_n()), ln = p(() => F.value.userOptions.useCursorPointer), un = p(() => s({
194
- defaultConfig: {
195
- useCssAnimation: !1,
196
- userOptions: { show: !1 },
197
- table: { show: !1 },
198
- style: {
199
- backgroundColor: "#99999930",
200
- layout: {
201
- candle: { colors: {
202
- bearish: "#BABABA",
203
- bullish: "#CACACA"
204
- } },
205
- grid: {
206
- stroke: "#6A6A6A",
207
- verticalLines: { stroke: "#6A6A6A" },
208
- horizontalLines: { stroke: "#6A6A6A" },
209
- yAxis: {
210
- dataLabels: { show: !1 },
211
- scale: {
212
- min: null,
213
- max: null
214
- }
215
- }
216
- },
217
- wick: {
218
- stroke: "#6A6A6A",
219
- extremity: { color: "#6A6A6A" }
220
- }
221
- },
222
- tooltip: { show: !1 },
223
- zoom: {
224
- show: !1,
225
- startIndex: null,
226
- endIndex: null
227
- }
228
- }
229
- },
230
- userConfig: F.value.skeletonConfig ?? {}
231
- })), { loading: I, FINAL_DATASET: L, manualLoading: dn } = ue({
232
- ...Ie(k),
233
- FINAL_CONFIG: F,
234
- prepareConfig: _n,
235
- callback: () => {
236
- Promise.resolve().then(async () => {
237
- await dr();
238
- });
239
- },
240
- skeletonDataset: k.config?.skeletonDataset ?? [
241
- [
242
- 17040672e5,
243
- 10,
244
- 20,
245
- 2,
246
- 10,
247
- 30
248
- ],
249
- [
250
- 17067456e5,
251
- 10,
252
- 30,
253
- 5,
254
- 20,
255
- 50
256
- ],
257
- [
258
- 17092512e5,
259
- 20,
260
- 50,
261
- 10,
262
- 30,
263
- 80
264
- ],
265
- [
266
- 17119296e5,
267
- 30,
268
- 80,
269
- 20,
270
- 50,
271
- 130
272
- ],
273
- [
274
- 17145216e5,
275
- 50,
276
- 130,
277
- 30,
278
- 100,
279
- 210
280
- ],
281
- [
282
- 17172e8,
283
- 80,
284
- 210,
285
- 50,
286
- 150,
287
- 340
288
- ],
289
- [
290
- 1719792e6,
291
- 130,
292
- 340,
293
- 80,
294
- 280,
295
- 550
296
- ],
297
- [
298
- 17224704e5,
299
- 210,
300
- 550,
301
- 130,
302
- 450,
303
- 890
304
- ],
305
- [
306
- 17251488e5,
307
- 340,
308
- 890,
309
- 210,
310
- 750,
311
- 1440
312
- ],
313
- [
314
- 17277408e5,
315
- 550,
316
- 1440,
317
- 340,
318
- 1230,
319
- 2330
320
- ],
321
- [
322
- 17304192e5,
323
- 890,
324
- 2330,
325
- 550,
326
- 1950,
327
- 3770
328
- ],
329
- [
330
- 17330112e5,
331
- 1440,
332
- 3770,
333
- 890,
334
- 3200,
335
- 5100
336
- ]
337
- ],
338
- skeletonConfig: s({
339
- defaultConfig: F.value,
340
- userConfig: un.value
341
- })
342
- }), { userOptionsVisible: fn, setUserOptionsVisibility: pn, keepUserOptionState: mn } = Ce({ config: F.value }), { svgRef: R } = we({ config: F.value.style.title });
343
- function hn() {
344
- pn(!0);
345
- }
346
- function gn() {
347
- pn(!1), Rt("selectX", {
348
- seriesIndex: null,
349
- datapoint: null
350
- }), M.value = null;
351
- }
352
- function _n() {
353
- let e = pe({
354
- userConfig: k.config,
355
- defaultConfig: Ft
356
- }), t = {}, n = e.theme;
357
- if (n) if (!It.value(e)) Lt(e), t = e;
358
- else {
359
- let r = pe({
360
- userConfig: Te[n] || k.config,
361
- defaultConfig: e
362
- });
363
- t = { ...pe({
364
- userConfig: k.config,
365
- defaultConfig: r
366
- }) };
367
- }
368
- else t = e;
369
- return t;
370
- }
371
- Le(() => k.config, (e) => {
372
- I.value || (F.value = _n()), fn.value = !F.value.userOptions.showOnChartHover, yn(), Yt.value += 1, Zt.value += 1, Xt.value += 1, H.value.showTable = F.value.table.show, H.value.showTooltip = F.value.style.tooltip.show, Mn();
373
- }, { deep: !0 }), Le(() => k.dataset, (e) => {
374
- Array.isArray(e) && e.length > 0 && (dn.value = !1), sr();
375
- }, { deep: !0 });
376
- let z = C({
377
- height: F.value.style.height,
378
- width: F.value.style.width,
379
- xAxisFontSize: F.value.style.layout.grid.xAxis.dataLabels.fontSize,
380
- yAxisFontSize: F.value.style.layout.grid.yAxis.dataLabels.fontSize
381
- }), B = Fe(null), vn = Fe(null);
382
- Ne(() => {
383
- yn();
384
- });
385
- let V = p(() => !!F.value.debug);
386
- function yn() {
387
- if (t(k.dataset) && (i({
388
- componentName: "VueUiCandlestick",
389
- type: "dataset",
390
- debug: V.value
391
- }), dn.value = !0), t(k.dataset) || (dn.value = F.value.loading), setTimeout(() => {
392
- A.value = !0;
393
- }, 10), F.value.responsive) {
394
- let e = ye(() => {
395
- A.value = !1;
396
- let { width: e, height: t } = be({
397
- chart: N.value,
398
- title: F.value.style.title.text ? Wt.value : null,
399
- slicer: F.value.style.zoom.show && G.value > 6 ? Kt.value.$el : null,
400
- legend: Gt.value,
401
- source: qt.value,
402
- noTitle: Jt.value
403
- });
404
- requestAnimationFrame(() => {
405
- z.value.width = e, z.value.height = t - 12, F.value.responsiveProportionalSizing ? (z.value.xAxisFontSize = a({
406
- relator: Math.min(e, t),
407
- adjuster: F.value.style.width,
408
- source: F.value.style.layout.grid.xAxis.dataLabels.fontSize,
409
- threshold: 6,
410
- fallback: 6
411
- }), z.value.yAxisFontSize = a({
412
- relator: Math.min(e, t),
413
- adjuster: F.value.style.width,
414
- source: F.value.style.layout.grid.yAxis.dataLabels.fontSize,
415
- threshold: 6,
416
- fallback: 6
417
- })) : (z.value.xAxisFontSize = F.value.style.layout.grid.xAxis.dataLabels.fontSize, z.value.yAxisFontSize = F.value.style.layout.grid.yAxis.dataLabels.fontSize), Bt.value && clearTimeout(Bt.value), Bt.value = setTimeout(() => {
418
- A.value = !0;
419
- }, 10);
420
- });
421
- });
422
- B.value && (vn.value && B.value.unobserve(vn.value), B.value.disconnect()), B.value = new ResizeObserver(e), vn.value = N.value.parentNode, B.value.observe(vn.value);
423
- }
424
- dr();
425
- }
426
- Me(() => {
427
- B.value && (vn.value && B.value.unobserve(vn.value), B.value.disconnect());
428
- });
429
- let { isPrinting: bn, isImaging: xn, generatePdf: Sn, generateImage: Cn } = le({
430
- elementId: `vue-ui-candlestick_${j.value}`,
431
- fileName: F.value.style.title.text || "vue-ui-candlestick",
432
- options: F.value.userOptions.print
433
- }), wn = p(() => F.value.userOptions.show && !F.value.style.title.text), H = C({
434
- showTable: F.value.table.show,
435
- showTooltip: F.value.style.tooltip.show
436
- }), Tn = C(0), En = ye((e) => {
437
- Tn.value = e;
438
- }, 100);
439
- Re((e) => {
440
- let t = $t.value;
441
- if (!t) return;
442
- let n = new ResizeObserver((e) => {
443
- En(e[0].contentRect.height);
444
- });
445
- n.observe(t), e(() => n.disconnect());
446
- }), Me(() => {
447
- Tn.value = 0;
448
- });
449
- let Dn = p(() => {
450
- let e = 0;
451
- return $t.value && (e = Tn.value + z.value.xAxisFontSize), e;
452
- }), U = p(() => F.value.style.layout.grid.yAxis.position === "right");
453
- function On() {
454
- let e = F.value.style.layout.grid.yAxis.dataLabels.offsetX;
455
- Qt.value && (e = Array.from(Qt.value.querySelectorAll("text")).reduce((e, t) => {
456
- let n = t.getComputedTextLength();
457
- return n > e ? n : e;
458
- }, 0));
459
- let t = F.value.style.layout.grid.yAxis.axisName?.show ? F.value.style.layout.grid.yAxis.axisName.fontSize + F.value.style.layout.grid.yAxis.axisName.offsetX : 0, n = e + 13 + t;
460
- return {
461
- left: U.value ? 0 : n,
462
- right: U.value ? n : 0,
463
- scaleLabelsWidth: e,
464
- yAxisNameWidth: t,
465
- crosshair: 13
466
- };
467
- }
468
- let W = p(() => {
469
- let { top: e, right: t, bottom: n, left: r } = F.value.style.layout.padding, i = On();
470
- return {
471
- top: e + 12,
472
- right: z.value.width - t - i.right,
473
- left: r + i.left,
474
- bottom: z.value.height - n - Dn.value,
475
- width: z.value.width - r - t - i.left - i.right,
476
- height: z.value.height - e - n - Dn.value - 12,
477
- scaleLabelsWidth: i.scaleLabelsWidth,
478
- yAxisNameWidth: i.yAxisNameWidth,
479
- crosshair: i.crosshair
480
- };
481
- }), kn = p(() => {
482
- 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));
483
- return {
484
- x: e + l * o,
485
- y: t,
486
- width: (ee - l) * o,
487
- height: r,
488
- fill: F.value.style.zoom.preview.fill,
489
- stroke: F.value.style.zoom.preview.stroke,
490
- "stroke-width": F.value.style.zoom.preview.strokeWidth,
491
- "stroke-dasharray": F.value.style.zoom.preview.strokeDasharray,
492
- "stroke-linecap": "round",
493
- "stroke-linejoin": "round",
494
- style: {
495
- pointerEvents: "none",
496
- transition: "none !important",
497
- animation: "none !important"
498
- }
499
- };
500
- }), G = p(() => L.value.length), K = C({
501
- start: 0,
502
- end: G.value
503
- }), q = C({
504
- start: 0,
505
- end: G.value
506
- }), An = p(() => F.value.style.zoom.preview.enable && (q.value.start !== K.value.start || q.value.end !== K.value.end));
507
- function jn(e, t) {
508
- q.value[e] = t;
509
- }
510
- function Mn() {
511
- 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));
512
- (!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, Kt.value && (Kt.value.setStartValue(e), Kt.value.setEndValue(t));
513
- }
514
- let Nn = p(() => L.value.map((e, t) => ({
515
- ...e,
516
- absoluteIndex: t
517
- }))), Pn = p(() => Nn.value.slice(K.value.start, K.value.end)), J = p(() => (L.value.forEach((e, t) => {
518
- [null, void 0].includes(e[0]) && i({
519
- componentName: "VueUiCandlestick",
520
- type: "datasetAttribute",
521
- property: "period (index 0)",
522
- index: t,
523
- debug: V.value
524
- }), [null, void 0].includes(e[1]) && i({
525
- componentName: "VueUiCandlestick",
526
- type: "datasetAttribute",
527
- property: "open (index 1)",
528
- index: t,
529
- debug: V.value
530
- }), [null, void 0].includes(e[2]) && i({
531
- componentName: "VueUiCandlestick",
532
- type: "datasetAttribute",
533
- property: "high (index 2)",
534
- index: t,
535
- debug: V.value
536
- }), [null, void 0].includes(e[3]) && i({
537
- componentName: "VueUiCandlestick",
538
- type: "datasetAttribute",
539
- property: "low (index 3)",
540
- index: t,
541
- debug: V.value
542
- }), [null, void 0].includes(e[4]) && i({
543
- componentName: "VueUiCandlestick",
544
- type: "datasetAttribute",
545
- property: "close (index 4)",
546
- index: t,
547
- debug: V.value
548
- }), [null, void 0].includes(e[5]) && i({
549
- componentName: "VueUiCandlestick",
550
- type: "datasetAttribute",
551
- property: "volume (index 5)",
552
- index: t,
553
- debug: V.value
554
- });
555
- }), Pn.value.map((e) => ({
556
- absoluteIndex: e.absoluteIndex,
557
- period: e[0],
558
- open: e[1],
559
- high: e[2],
560
- low: e[3],
561
- close: e[4],
562
- volume: e[5]
563
- })))), Fn = p(() => Nn.value.map((e) => ({
564
- absoluteIndex: e.absoluteIndex,
565
- period: e[0],
566
- open: e[1],
567
- high: e[2],
568
- low: e[3],
569
- close: e[4],
570
- volume: e[5]
571
- }))), Y = p(() => W.value.width / Pn.value.length), In = p(() => ({
572
- 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,
573
- min: F.value.style.layout.grid.yAxis.scale.min === null ? 0 : F.value.style.layout.grid.yAxis.scale.min
574
- })), X = p(() => te(In.value.min, In.value.max, F.value.style.layout.grid.yAxis.dataLabels.steps));
575
- function Ln(e, t, n = null, r = null) {
576
- return {
577
- ...e,
578
- x: d(W.value.left + t * Y.value + Y.value / 2),
579
- y: d(W.value.top + (1 - (e - X.value.min) / (X.value.max - X.value.min)) * W.value.height),
580
- value: d(e),
581
- isMax: e === n,
582
- isMin: e === r
583
- };
584
- }
585
- let Z = p(() => {
586
- let e = {
587
- o: Math.max(...J.value.map((e) => e.open)),
588
- h: Math.max(...J.value.map((e) => e.high)),
589
- l: Math.max(...J.value.map((e) => e.low)),
590
- c: Math.max(...J.value.map((e) => e.low))
591
- }, t = {
592
- o: Math.min(...J.value.map((e) => e.open)),
593
- h: Math.min(...J.value.map((e) => e.high)),
594
- l: Math.min(...J.value.map((e) => e.low)),
595
- c: Math.min(...J.value.map((e) => e.low))
596
- }, n = Math.max(...J.value.map((e) => e.volume)), r = Math.min(...J.value.map((e) => e.volume));
597
- return J.value.map((i, a) => {
598
- let o = Ln(i.open, a, e.o, t.o), s = Ln(i.high, a, e.h, t.h), c = Ln(i.low, a, e.l, t.l), l = Ln(i.close, a, e.c, t.c), ee = i.close > i.open, te = i.volume === n, u = i.volume === r;
599
- return {
600
- period: i.period,
601
- open: o,
602
- high: s,
603
- low: c,
604
- close: l,
605
- volume: i.volume,
606
- isBullish: ee,
607
- absoluteIndex: i.absoluteIndex,
608
- isMaxVolume: te,
609
- isMinVolume: u
610
- };
611
- });
612
- });
613
- function Rn({ item: e, index: t, minimapH: n, unitW: r }) {
614
- 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]));
615
- return {
616
- ...e,
617
- x: d(t * r),
618
- y: d((1 - (e - i) / (a - i)) * n),
619
- value: d(e)
620
- };
621
- }
622
- let zn = p(() => ({ minimapH: e, unitW: t }) => Fn.value.map((n, r) => {
623
- let i = Rn({
624
- item: n.open,
625
- index: r,
626
- minimapH: e,
627
- unitW: t
628
- }), a = Rn({
629
- item: n.high,
630
- index: r,
631
- minimapH: e,
632
- unitW: t
633
- }), o = Rn({
634
- item: n.low,
635
- index: r,
636
- minimapH: e,
637
- unitW: t
638
- }), s = Rn({
639
- item: n.close,
640
- index: r,
641
- minimapH: e,
642
- unitW: t
643
- }), c = n.close > n.open;
644
- return {
645
- period: n.period,
646
- open: i,
647
- high: a,
648
- low: o,
649
- close: s,
650
- volume: n.volume,
651
- isBullish: c,
652
- absoluteIndex: n.absoluteIndex
653
- };
654
- })), Bn = p(() => F.value.style.zoom.minimap.show ? [{
655
- name: "",
656
- series: L.value.map((e) => e[2]),
657
- color: "#000000",
658
- isVisible: !0
659
- }] : []);
660
- function Vn(e) {
661
- return d((e - X.value.min) / (X.value.max - X.value.min));
662
- }
663
- let Hn = p(() => X.value.ticks.map((e) => ({
664
- y: W.value.bottom - W.value.height * Vn(e),
665
- value: d(e)
666
- }))), Un = p(() => J.value.map((e) => e.period)), Q = C([]), Wn = C([]), Gn = 0;
667
- Re(() => {
668
- let e = ++Gn;
669
- (async () => {
670
- let t = await se({
671
- values: L.value.map((e) => e[0]),
672
- maxDatapoints: L.value.length,
673
- formatter: F.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter,
674
- start: K.value.start,
675
- end: K.value.end
676
- });
677
- e === Gn && (Q.value = t);
678
- })();
679
- });
680
- let Kn = 0;
681
- Re(() => {
682
- let e = ++Kn;
683
- (async () => {
684
- let t = await se({
685
- values: L.value.map((e) => e[0]),
686
- maxDatapoints: L.value.length,
687
- formatter: F.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter,
688
- start: 0,
689
- end: G.value
690
- });
691
- e === Kn && (Wn.value = t);
692
- })();
693
- });
694
- let qn = p(() => {
695
- let e = F.value.style.layout.grid.xAxis.dataLabels.modulo;
696
- return Q.value.length ? Math.min(e, [...new Set(Q.value.map((e) => e.text))].length) : e;
697
- }), Jn = C({
698
- months: [],
699
- shortMonths: [],
700
- days: [],
701
- shortDays: []
702
- }), Yn = 0;
703
- Re(() => {
704
- let e = ++Yn, t = F.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter;
705
- (async () => {
706
- let n = await oe(t.locale).catch(() => oe("en"));
707
- e === Yn && (Jn.value = n.data);
708
- })();
709
- });
710
- let Xn = p(() => {
711
- let e = F.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter, t = ae({
712
- useUTC: e.useUTC,
713
- locale: Jn.value,
714
- januaryAsYear: e.januaryAsYear
715
- });
716
- return (e, n) => {
717
- let r = L.value.map((e) => e[0])?.[e];
718
- return r == null ? "" : t.formatDate(new Date(r), n);
719
- };
720
- }), Zn = p(() => (L.value.map((e) => e[0]) || []).map((e, t) => ({
721
- text: Xn.value(t, F.value.style.tooltip.timeFormat),
722
- absoluteIndex: t
723
- }))), Qn = p(() => (L.value.map((e) => e[0]) || []).map((e, t) => ({
724
- text: Xn.value(t, F.value.style.zoom.timeFormat),
725
- absoluteIndex: t
726
- }))), $n = p(() => {
727
- let e = F.value.style.layout.grid.xAxis.dataLabels, t = Q.value || [], n = Wn.value || [], r = K.value.start ?? 0, i = M.value, a = G.value, o = t.map((e) => e?.text ?? ""), s = n.map((e) => e?.text ?? "");
728
- return ne(!!e.showOnlyFirstAndLast, !!e.showOnlyAtModulo, Math.max(1, qn.value || 1), o, s, r, i, a);
729
- }), er = p(() => F.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? {
730
- start: Q.value.find((e) => e.absoluteIndex === K.value.start)?.text ?? "",
731
- end: Q.value.find((e) => e.absoluteIndex === K.value.end - 1)?.text ?? ""
732
- } : {
733
- start: L.value[K.value.start] ? L.value[K.value.start][0] : L.value[0][0],
734
- end: L.value[K.value.end - 1] ? L.value[K.value.end - 1][0] : L.value.at(-1)[0]
735
- }), tr = C(null);
736
- function nr(e, t) {
737
- F.value.events.datapointClick && F.value.events.datapointClick({
738
- datapoint: t,
739
- seriesIndex: e + K.value.start
740
- });
741
- }
742
- function rr(e, t) {
743
- F.value.events.datapointLeave && F.value.events.datapointLeave({
744
- datapoint: t,
745
- seriesIndex: e + K.value.start
746
- }), M.value = void 0, Vt.value = !1, P.value = null, sn.value = "pointer";
747
- }
748
- Le(() => k.selectedXIndex, (e) => {
749
- if ([null, void 0].includes(k.selectedXIndex)) {
750
- M.value = null;
751
- return;
752
- }
753
- let t = e - K.value.start;
754
- t < 0 || e >= K.value.end ? M.value = null : M.value = t ?? null;
755
- }, { immediate: !0 });
756
- function ir(e, t, n = "pointer") {
757
- F.value.events.datapointEnter && F.value.events.datapointEnter({
758
- datapoint: t,
759
- seriesIndex: e + K.value.start
760
- }), M.value = e, P.value = e, sn.value = n, tr.value = {
761
- datapoint: t,
762
- seriesIndex: e,
763
- series: Z.value,
764
- config: F.value
765
- }, Mr({
766
- seriesIndex: e,
767
- datapoint: t
768
- });
769
- let r = F.value.style.tooltip.customFormat;
770
- if (l(r) && ee(() => r({
771
- seriesIndex: e,
772
- datapoint: t,
773
- series: Z.value,
774
- config: F.value
775
- }))) Ht.value = r({
776
- seriesIndex: e,
777
- datapoint: t,
778
- series: Z.value,
779
- config: F.value
780
- });
781
- else if (F.value.style.tooltip.show) {
782
- let n = "", { period: r, open: i, high: a, low: o, close: s, volume: c, isBullish: l } = Z.value[e], { period: ee, 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 : Zn.value[e].text : r;
783
- 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}"
784
- fill="${F.value.style.layout.candle.gradient.show ? l ? `url(#bullish_gradient_${j.value})` : `url(#bearish_gradient_${j.value})` : l ? F.value.style.layout.candle.colors.bullish : F.value.style.layout.candle.colors.bearish}"/></svg>${ae}</div>`, n += `${ie} : <b>${isNaN(c) ? "-" : Number(c.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}">`;
785
- let oe = u({
786
- p: F.value.style.tooltip.prefix,
787
- v: i.value,
788
- s: F.value.style.tooltip.suffix,
789
- r: F.value.style.tooltip.roundingValue
790
- }), se = u({
791
- p: F.value.style.tooltip.prefix,
792
- v: a.value,
793
- s: F.value.style.tooltip.suffix,
794
- r: F.value.style.tooltip.roundingValue
795
- }), ce = u({
796
- p: F.value.style.tooltip.prefix,
797
- v: o.value,
798
- s: F.value.style.tooltip.suffix,
799
- r: F.value.style.tooltip.roundingValue
800
- }), le = u({
801
- p: F.value.style.tooltip.prefix,
802
- v: s.value,
803
- s: F.value.style.tooltip.suffix,
804
- r: F.value.style.tooltip.roundingValue
805
- });
806
- F.value.style.tooltip.showChart ? n += `<div style="width:100%;display:flex;align-items:center;justify-content:center;">
807
- <svg viewBox="0 0 100 100" width="100px" style="background: transparent; overflow: visible">
808
- <g>
809
- <line x1="50" x2="50" y1="20" y2="80" stroke="${t.isBullish ? F.value.style.layout.candle.colors.bullish : F.value.style.layout.candle.colors.bearish}" stroke-width="2" stroke-linecap="round" />
810
- ${t.isBullish ? `
811
- <line x1="45" x2="50" y1="65" y2="65" stroke="${F.value.style.layout.candle.colors.bullish}" stroke-width="1.5" stroke-linecap="round" />
812
- <line x1="50" x2="55" y1="35" y2="35" stroke="${F.value.style.layout.candle.colors.bullish}" stroke-width="1.5" stroke-linecap="round" />
813
- <text x="38" y="70" text-anchor="end" fill="${F.value.style.tooltip.color}">${oe}</text>
814
- <text x="62" y="40" text-anchor="start" fill="${F.value.style.tooltip.color}">${le}</text>
815
- ` : `
816
- <line x1="45" x2="50" y1="35" y2="35" stroke="${F.value.style.layout.candle.colors.bearish}" stroke-width="1.5" stroke-linecap="round" />
817
- <line x1="50" x2="55" y1="65" y2="65" stroke="${F.value.style.layout.candle.colors.bearish}" stroke-width="1.5" stroke-linecap="round" />
818
- <text x="40" y="40" text-anchor="end" fill="${F.value.style.tooltip.color}">${oe}</text>
819
- <text x="60" y="70" text-anchor="start" fill="${F.value.style.tooltip.color}">${le}</text>
820
- `}
821
- <text x="50" y="13" text-anchor="middle" fill="${F.value.style.tooltip.color}">${se}</text>
822
- <text x="50" y="97" text-anchor="middle" fill="${F.value.style.tooltip.color}">${ce}</text>
823
- <g>
824
- </svg>
825
- <div>
826
- ` : (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>", Ht.value = `<div style="text-align:right">${n}</div>`;
827
- }
828
- Vt.value = !0;
829
- }
830
- let ar = C(null);
831
- function or() {
832
- return new Promise((e) => requestAnimationFrame(() => requestAnimationFrame(() => e())));
833
- }
834
- Me(() => {
835
- ar.value && cancelAnimationFrame(ar.value);
836
- });
837
- async function sr() {
838
- dr(), await Ae(), ar.value && cancelAnimationFrame(ar.value), ar.value = requestAnimationFrame(async () => {
839
- await or(), dr();
840
- });
841
- }
842
- let cr = C(!1), lr = C(!1), ur = C(!1);
843
- function dr() {
844
- if (!cr.value) {
845
- cr.value = !0;
846
- try {
847
- let { startIndex: e, endIndex: t } = F.value.style.zoom, n = G.value, r = e ?? 0, i = t == null ? n : Math.min(fr(t + 1), n);
848
- ur.value = !0, K.value.start = r, K.value.end = i, q.value.start = r, q.value.end = i, Mn(), lr.value = !0;
849
- } finally {
850
- queueMicrotask(() => {
851
- ur.value = !1;
852
- }), cr.value = !1;
853
- }
854
- }
855
- }
856
- function fr(e) {
857
- let t = G.value;
858
- return e > t ? t : e < 0 || e < K.value.start ? F.value.style.zoom.startIndex === null ? 1 : F.value.style.zoom.startIndex + 1 : e;
859
- }
860
- function pr(e = null) {
861
- Ae(() => {
862
- let t = [
863
- F.value.translations.period,
864
- F.value.translations.open,
865
- F.value.translations.high,
866
- F.value.translations.low,
867
- F.value.translations.close,
868
- F.value.translations.volume
869
- ], n = Z.value.map((e, t) => [
870
- F.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? Q.value[t].text : e.period,
871
- e.open.value,
872
- e.high.value,
873
- e.low.value,
874
- e.close.value,
875
- e.volume
876
- ]), r = ie([
877
- [F.value.style.title.text],
878
- [F.value.style.title.subtitle.text],
879
- [
880
- [""],
881
- [""],
882
- [""]
883
- ],
884
- t
885
- ].concat(n));
886
- e ? e(r) : c({
887
- csvContent: r,
888
- title: F.value.style.title.text || "vue-ui-candlestick"
889
- });
890
- });
891
- }
892
- let mr = p(() => {
893
- let e = Z.value.map((e, t) => {
894
- let n = F.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? Q.value?.[t]?.text ?? "" : e.period, r = u({
895
- p: F.value.table.td.prefix,
896
- v: e.open.value,
897
- s: F.value.table.td.suffix,
898
- r: F.value.table.td.roundingValue
899
- }), i = u({
900
- p: F.value.table.td.prefix,
901
- v: e.high.value,
902
- s: F.value.table.td.suffix,
903
- r: F.value.table.td.roundingValue
904
- }), a = u({
905
- p: F.value.table.td.prefix,
906
- v: e.low.value,
907
- s: F.value.table.td.suffix,
908
- r: F.value.table.td.roundingValue
909
- }), o = u({
910
- p: F.value.table.td.prefix,
911
- v: e.close.value,
912
- s: F.value.table.td.suffix,
913
- r: F.value.table.td.roundingValue
914
- });
915
- return [
916
- `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 12" height="12" width="12" style="margin-right: 6px"><rect x="0" y="0" height="12" width="12" rx="${F.value.style.layout.candle.borderRadius * 3}" fill="${F.value.style.layout.candle.gradient.show ? e.isBullish ? `url(#bullish_gradient_${j.value}` : `url(#bearish_gradient_${j.value})` : e.isBullish ? F.value.style.layout.candle.colors.bullish : F.value.style.layout.candle.colors.bearish}"/></svg> ${n}`,
917
- r,
918
- i,
919
- a,
920
- o,
921
- `${isNaN(e.volume) ? "-" : e.volume.toLocaleString()}`
922
- ];
923
- }), t = Z.value.map((e, t) => [
924
- F.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? Q.value?.[t]?.text ?? "" : e.period,
925
- u({
926
- p: F.value.table.td.prefix,
927
- v: e.open.value,
928
- s: F.value.table.td.suffix,
929
- r: F.value.table.td.roundingValue
930
- }),
931
- u({
932
- p: F.value.table.td.prefix,
933
- v: e.high.value,
934
- s: F.value.table.td.suffix,
935
- r: F.value.table.td.roundingValue
936
- }),
937
- u({
938
- p: F.value.table.td.prefix,
939
- v: e.low.value,
940
- s: F.value.table.td.suffix,
941
- r: F.value.table.td.roundingValue
942
- }),
943
- u({
944
- p: F.value.table.td.prefix,
945
- v: e.close.value,
946
- s: F.value.table.td.suffix,
947
- r: F.value.table.td.roundingValue
948
- }),
949
- `${isNaN(e.volume) ? "-" : e.volume}`
950
- ]), n = {
951
- th: {
952
- backgroundColor: F.value.table.th.backgroundColor,
953
- color: F.value.table.th.color,
954
- outline: F.value.table.th.outline
955
- },
956
- td: {
957
- backgroundColor: F.value.table.td.backgroundColor,
958
- color: F.value.table.td.color,
959
- outline: F.value.table.td.outline
960
- },
961
- breakpoint: F.value.table.responsiveBreakpoint
962
- }, r = [
963
- F.value.translations.period,
964
- F.value.translations.open,
965
- F.value.translations.high,
966
- F.value.translations.low,
967
- F.value.translations.last,
968
- F.value.translations.volume
969
- ];
970
- return {
971
- head: r,
972
- body: e,
973
- bodyA11y: t,
974
- config: n,
975
- colNames: r
976
- };
977
- }), $ = C(!1);
978
- function hr(e) {
979
- $.value = e, Ut.value += 1;
980
- }
981
- function gr() {
982
- H.value.showTable = !H.value.showTable;
983
- }
984
- function _r() {
985
- H.value.showTooltip = !H.value.showTooltip;
986
- }
987
- let vr = C(!1);
988
- function yr() {
989
- vr.value = !vr.value;
990
- }
991
- async function br({ scale: e = 2 } = {}) {
992
- if (!N.value) return;
993
- let { width: t, height: n } = N.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await ge({
994
- domElement: N.value,
995
- base64: !0,
996
- img: !0,
997
- scale: e
998
- });
999
- return {
1000
- imageUri: i,
1001
- base64: a,
1002
- title: F.value.style.title.text,
1003
- width: t,
1004
- height: n,
1005
- aspectRatio: r
1006
- };
1007
- }
1008
- let xr = p(() => z.value.width), Sr = p(() => z.value.height);
1009
- he({
1010
- timeLabelsEls: $t,
1011
- timeLabels: Q,
1012
- slicer: K,
1013
- configRef: F,
1014
- rotationPath: [
1015
- "style",
1016
- "layout",
1017
- "grid",
1018
- "xAxis",
1019
- "dataLabels",
1020
- "rotation"
1021
- ],
1022
- autoRotatePath: [
1023
- "style",
1024
- "layout",
1025
- "grid",
1026
- "xAxis",
1027
- "dataLabels",
1028
- "autoRotate",
1029
- "enable"
1030
- ],
1031
- isAutoSize: !1,
1032
- rotation: F.value.style.layout.grid.xAxis.dataLabels.autoRotate.angle,
1033
- width: xr,
1034
- height: Sr
1035
- }), Le(F, () => {
1036
- H.value = {
1037
- showTable: F.value.table.show,
1038
- showTooltip: F.value.style.tooltip.show
1039
- };
1040
- }, { immediate: !0 });
1041
- let Cr = p(() => {
1042
- let e = F.value.table.useDialog && !F.value.table.show, t = H.value.showTable;
1043
- return {
1044
- component: e ? Pt : kt,
1045
- title: `${F.value.style.title.text}${F.value.style.title.subtitle.text ? `: ${F.value.style.title.subtitle.text}` : ""}`,
1046
- props: e ? {
1047
- backgroundColor: F.value.table.th.backgroundColor,
1048
- color: F.value.table.th.color,
1049
- headerColor: F.value.table.th.color,
1050
- headerBg: F.value.table.th.backgroundColor,
1051
- isFullscreen: $.value,
1052
- fullscreenParent: N.value,
1053
- forcedWidth: Math.min(800, window.innerWidth * .8),
1054
- isCursorPointer: ln.value
1055
- } : {
1056
- hideDetails: !0,
1057
- config: {
1058
- open: t,
1059
- maxHeight: 1e4,
1060
- body: {
1061
- backgroundColor: F.value.style.backgroundColor,
1062
- color: F.value.style.color
1063
- },
1064
- head: {
1065
- backgroundColor: F.value.style.backgroundColor,
1066
- color: F.value.style.color
1067
- }
1068
- }
1069
- }
1070
- };
1071
- });
1072
- Le(() => H.value.showTable, (e) => {
1073
- F.value.table.show || (e && F.value.table.useDialog && en.value ? en.value.open() : "close" in en.value && en.value.close());
1074
- });
1075
- function wr() {
1076
- H.value.showTable = !1, tn.value && tn.value.setTableIconState(!1);
1077
- }
1078
- let Tr = p(() => F.value.style.backgroundColor), { exportSvg: Er, getSvg: Dr } = fe({
1079
- svg: R,
1080
- title: p(() => F.value.style.title),
1081
- backgroundColor: Tr
1082
- });
1083
- async function Or({ isCb: e }) {
1084
- an.value = !0, await Ae();
1085
- try {
1086
- if (e) {
1087
- let { blob: e, url: t, text: n, dataUrl: r } = await Dr();
1088
- await Promise.resolve(F.value.userOptions.callbacks.svg({
1089
- blob: e,
1090
- url: t,
1091
- text: n,
1092
- dataUrl: r
1093
- }));
1094
- } else await Promise.resolve(Er());
1095
- } finally {
1096
- an.value = !1;
1097
- }
1098
- }
1099
- function kr(e) {
1100
- nn.value = e;
1101
- }
1102
- function Ar(e) {
1103
- cr.value || ur.value || e !== K.value.start && (K.value.start = e, q.value.start = e, Mn());
1104
- }
1105
- function jr(e) {
1106
- if (cr.value || ur.value) return;
1107
- let t = fr(e);
1108
- t !== K.value.end && (K.value.end = t, q.value.end = t, Mn());
1109
- }
1110
- function Mr({ seriesIndex: e, datapoint: t }) {
1111
- Rt("selectX", {
1112
- dataset: t,
1113
- index: K.value.start + e,
1114
- indexLabel: ""
1115
- });
1116
- }
1117
- function Nr(e) {
1118
- if (e?.stage === "start") {
1119
- rn.value = !0;
1120
- return;
1121
- }
1122
- if (e?.stage === "end") {
1123
- rn.value = !1;
1124
- return;
1125
- }
1126
- Cn();
1127
- }
1128
- async function Pr() {
1129
- if (Rt("copyAlt", {
1130
- config: F.value,
1131
- dataset: Z.value
1132
- }), !F.value.userOptions.callbacks.altCopy) {
1133
- console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
1134
- return;
1135
- }
1136
- await Promise.resolve(F.value.userOptions.callbacks.altCopy({
1137
- config: F.value,
1138
- dataset: Z.value
1139
- }));
1140
- }
1141
- function Fr() {
1142
- P.value = null, cn.value = !0;
1143
- }
1144
- function Ir() {
1145
- P.value = null, sn.value = "pointer", Vt.value = !1, M.value = void 0, cn.value = !1;
1146
- }
1147
- function Lr(e) {
1148
- if (!R.value || vr.value || document.activeElement !== R.value || !Z.value.length) return;
1149
- let t = e.key === "ArrowLeft", n = e.key === "ArrowRight", r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
1150
- if (!t && !n && !r && !i) return;
1151
- if (e.preventDefault(), e.stopPropagation(), i) {
1152
- P.value = null, sn.value = "pointer", Vt.value = !1, M.value = void 0;
1153
- return;
1154
- }
1155
- if (r) {
1156
- if (P.value === null) return;
1157
- let e = Z.value[P.value];
1158
- if (!e) return;
1159
- nr(P.value, e);
1160
- return;
1161
- }
1162
- 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;
1163
- 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;
1164
- let l = Z.value[a];
1165
- l && (Rr(a), ir(a, l, "keyboard"));
1166
- }
1167
- function Rr(e) {
1168
- if (!Number.isFinite(e) || !R.value) return;
1169
- let t = W.value.left + Y.value * e + Y.value / 2, n = W.value.top + W.value.height / 2, r = R.value.getBoundingClientRect();
1170
- on.value = {
1171
- x: r.left + t / z.value.width * r.width,
1172
- y: r.top + n / z.value.height * r.height
1173
- };
1174
- }
1175
- let zr = p(() => ({
1176
- headers: mr.value?.colNames ?? [],
1177
- rows: mr.value?.bodyA11y ?? []
1178
- }));
1179
- return ve({
1180
- getImage: br,
1181
- generatePdf: Sn,
1182
- generateCsv: pr,
1183
- generateImage: Cn,
1184
- generateSvg: Or,
1185
- toggleTable: gr,
1186
- toggleTooltip: _r,
1187
- toggleAnnotator: yr,
1188
- toggleFullscreen: hr,
1189
- copyAlt: Pr
1190
- }), (e, t) => (S(), g("div", {
1191
- ref_key: "candlestickChart",
1192
- ref: N,
1193
- class: b(`vue-data-ui-component vue-ui-candlestick ${$.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${F.value.useCssAnimation ? "" : "vue-ui-dna"}`),
1194
- style: je(`position:relative;font-family:${F.value.style.fontFamily}; text-align:center;background:${F.value.style.backgroundColor}; ${F.value.responsive ? "height: 100%" : ""}`),
1195
- id: `vue-ui-candlestick_${j.value}`,
1196
- onMouseenter: hn,
1197
- onMouseleave: gn
1198
- }, [
1199
- _("div", {
1200
- id: `chart-instructions-${j.value}`,
1201
- class: "sr-only"
1202
- }, [_("p", null, E(F.value.a11y.translations.keyboardNavigation), 1)], 8, Ve),
1203
- zr.value?.rows?.length ? (S(), m(Se, {
1204
- key: 0,
1205
- uid: j.value,
1206
- head: zr.value.headers,
1207
- body: zr.value.rows,
1208
- notice: F.value.a11y.translations.tableAvailable,
1209
- caption: F.value.a11y.translations.tableCaption
1210
- }, null, 8, [
1211
- "uid",
1212
- "head",
1213
- "body",
1214
- "notice",
1215
- "caption"
1216
- ])) : h("", !0),
1217
- F.value.userOptions.buttons.annotator ? (S(), m(D(jt), {
1218
- key: 1,
1219
- svgRef: D(R),
1220
- backgroundColor: F.value.style.backgroundColor,
1221
- color: F.value.style.color,
1222
- active: vr.value,
1223
- isCursorPointer: ln.value,
1224
- onClose: yr
1225
- }, {
1226
- "annotator-action-close": O(() => [T(e.$slots, "annotator-action-close", {}, void 0, !0)]),
1227
- "annotator-action-color": O(({ color: t }) => [T(e.$slots, "annotator-action-color", x(y({ color: t })), void 0, !0)]),
1228
- "annotator-action-draw": O(({ mode: t }) => [T(e.$slots, "annotator-action-draw", x(y({ mode: t })), void 0, !0)]),
1229
- "annotator-action-undo": O(({ disabled: t }) => [T(e.$slots, "annotator-action-undo", x(y({ disabled: t })), void 0, !0)]),
1230
- "annotator-action-redo": O(({ disabled: t }) => [T(e.$slots, "annotator-action-redo", x(y({ disabled: t })), void 0, !0)]),
1231
- "annotator-action-delete": O(({ disabled: t }) => [T(e.$slots, "annotator-action-delete", x(y({ disabled: t })), void 0, !0)]),
1232
- _: 3
1233
- }, 8, [
1234
- "svgRef",
1235
- "backgroundColor",
1236
- "color",
1237
- "active",
1238
- "isCursorPointer"
1239
- ])) : h("", !0),
1240
- wn.value ? (S(), g("div", {
1241
- key: 2,
1242
- ref_key: "noTitle",
1243
- ref: Jt,
1244
- class: "vue-data-ui-no-title-space",
1245
- style: "height:36px; width: 100%;background:transparent"
1246
- }, null, 512)) : h("", !0),
1247
- F.value.style.title.text ? (S(), g("div", {
1248
- key: 3,
1249
- ref_key: "chartTitle",
1250
- ref: Wt,
1251
- style: "width:100%;background:transparent"
1252
- }, [(S(), m(_e, {
1253
- key: `title_${Zt.value}`,
1254
- config: {
1255
- title: {
1256
- cy: "candlestick-div-title",
1257
- ...F.value.style.title
1258
- },
1259
- subtitle: {
1260
- cy: "candlestick-div-subtitle",
1261
- ...F.value.style.title.subtitle
1262
- }
1263
- }
1264
- }, null, 8, ["config"]))], 512)) : h("", !0),
1265
- F.value.userOptions.show && zt.value && (D(mn) || D(fn)) ? (S(), m(D(Mt), {
1266
- ref_key: "userOptionsRef",
1267
- ref: tn,
1268
- key: `user_options_${Ut.value}`,
1269
- backgroundColor: F.value.style.backgroundColor,
1270
- color: F.value.style.color,
1271
- isImaging: D(xn),
1272
- isPrinting: D(bn),
1273
- uid: j.value,
1274
- hasTooltip: F.value.userOptions.buttons.tooltip && F.value.style.tooltip.show,
1275
- hasPdf: F.value.userOptions.buttons.pdf,
1276
- hasImg: F.value.userOptions.buttons.img,
1277
- hasSvg: F.value.userOptions.buttons.svg,
1278
- hasXls: F.value.userOptions.buttons.csv,
1279
- hasTable: F.value.userOptions.buttons.table,
1280
- hasFullscreen: F.value.userOptions.buttons.fullscreen,
1281
- hasAltCopy: F.value.userOptions.buttons.altCopy,
1282
- isFullscreen: $.value,
1283
- isTooltip: H.value.showTooltip,
1284
- titles: { ...F.value.userOptions.buttonTitles },
1285
- chartElement: N.value,
1286
- position: F.value.userOptions.position,
1287
- hasAnnotator: F.value.userOptions.buttons.annotator,
1288
- isAnnotation: vr.value,
1289
- callbacks: F.value.userOptions.callbacks,
1290
- printScale: F.value.userOptions.print.scale,
1291
- tableDialog: F.value.table.useDialog,
1292
- isCursorPointer: ln.value,
1293
- onToggleFullscreen: hr,
1294
- onGeneratePdf: D(Sn),
1295
- onGenerateCsv: pr,
1296
- onGenerateImage: Nr,
1297
- onGenerateSvg: Or,
1298
- onToggleTable: gr,
1299
- onToggleTooltip: _r,
1300
- onToggleAnnotator: yr,
1301
- onCopyAlt: Pr,
1302
- style: je({ visibility: D(mn) ? D(fn) ? "visible" : "hidden" : "visible" })
1303
- }, Ee({ _: 2 }, [
1304
- e.$slots.menuIcon ? {
1305
- name: "menuIcon",
1306
- fn: O(({ isOpen: t, color: n }) => [T(e.$slots, "menuIcon", x(y({
1307
- isOpen: t,
1308
- color: n
1309
- })), void 0, !0)]),
1310
- key: "0"
1311
- } : void 0,
1312
- e.$slots.optionTooltip ? {
1313
- name: "optionTooltip",
1314
- fn: O(() => [T(e.$slots, "optionTooltip", {}, void 0, !0)]),
1315
- key: "1"
1316
- } : void 0,
1317
- e.$slots.optionPdf ? {
1318
- name: "optionPdf",
1319
- fn: O(() => [T(e.$slots, "optionPdf", {}, void 0, !0)]),
1320
- key: "2"
1321
- } : void 0,
1322
- e.$slots.optionCsv ? {
1323
- name: "optionCsv",
1324
- fn: O(() => [T(e.$slots, "optionCsv", {}, void 0, !0)]),
1325
- key: "3"
1326
- } : void 0,
1327
- e.$slots.optionImg ? {
1328
- name: "optionImg",
1329
- fn: O(() => [T(e.$slots, "optionImg", {}, void 0, !0)]),
1330
- key: "4"
1331
- } : void 0,
1332
- e.$slots.optionSvg ? {
1333
- name: "optionSvg",
1334
- fn: O(() => [T(e.$slots, "optionSvg", {}, void 0, !0)]),
1335
- key: "5"
1336
- } : void 0,
1337
- e.$slots.optionTable ? {
1338
- name: "optionTable",
1339
- fn: O(() => [T(e.$slots, "optionTable", {}, void 0, !0)]),
1340
- key: "6"
1341
- } : void 0,
1342
- e.$slots.optionFullscreen ? {
1343
- name: "optionFullscreen",
1344
- fn: O(({ toggleFullscreen: t, isFullscreen: n }) => [T(e.$slots, "optionFullscreen", x(y({
1345
- toggleFullscreen: t,
1346
- isFullscreen: n
1347
- })), void 0, !0)]),
1348
- key: "7"
1349
- } : void 0,
1350
- e.$slots.optionAnnotator ? {
1351
- name: "optionAnnotator",
1352
- fn: O(({ toggleAnnotator: t, isAnnotator: n }) => [T(e.$slots, "optionAnnotator", x(y({
1353
- toggleAnnotator: t,
1354
- isAnnotator: n
1355
- })), void 0, !0)]),
1356
- key: "8"
1357
- } : void 0,
1358
- e.$slots.optionAltCopy ? {
1359
- name: "optionAltCopy",
1360
- fn: O(({ altCopy: t }) => [T(e.$slots, "optionAltCopy", x(y({ altCopy: t })), void 0, !0)]),
1361
- key: "9"
1362
- } : void 0,
1363
- e.$slots["custom-menu-before"] ? {
1364
- name: "custom-menu-before",
1365
- fn: O(() => [T(e.$slots, "custom-menu-before", {}, void 0, !0)]),
1366
- key: "10"
1367
- } : void 0,
1368
- e.$slots["custom-menu-after"] ? {
1369
- name: "custom-menu-after",
1370
- fn: O(() => [T(e.$slots, "custom-menu-after", {}, void 0, !0)]),
1371
- key: "11"
1372
- } : void 0
1373
- ]), 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.style".split("."))) : h("", !0),
1374
- _("div", He, [(S(), g("svg", {
1375
- ref_key: "svgRef",
1376
- ref: R,
1377
- xmlns: D(re),
1378
- "aria-describedby": `chart-instructions-${j.value}`,
1379
- class: b({
1380
- "vue-data-ui-fullscreen--on": $.value,
1381
- "vue-data-ui-fulscreen--off": !$.value
1382
- }),
1383
- viewBox: `0 0 ${z.value.width <= 0 ? 10 : z.value.width} ${z.value.height <= 0 ? 10 : z.value.height}`,
1384
- style: je(`max-width:100%;overflow:visible;background:transparent;color:${F.value.style.color}`),
1385
- tabindex: "0",
1386
- onFocus: Fr,
1387
- onBlur: Ir,
1388
- onKeydown: Lr
1389
- }, [
1390
- Oe(D(Nt)),
1391
- e.$slots["chart-background"] ? (S(), g("foreignObject", {
1392
- key: 0,
1393
- x: W.value.left,
1394
- y: W.value.top,
1395
- width: Math.max(.1, W.value.width),
1396
- height: Math.max(.1, W.value.height),
1397
- style: { pointerEvents: "none" }
1398
- }, [T(e.$slots, "chart-background", {}, void 0, !0)], 8, We)) : h("", !0),
1399
- Z.value.length > 0 ? (S(), g("g", Ge, [
1400
- _("defs", null, [_("linearGradient", {
1401
- id: `bearish_gradient_${j.value}`,
1402
- x2: "0%",
1403
- y2: "100%"
1404
- }, [
1405
- _("stop", {
1406
- offset: "0%",
1407
- "stop-color": F.value.style.layout.candle.colors.bearish
1408
- }, null, 8, qe),
1409
- _("stop", {
1410
- offset: "50%",
1411
- "stop-color": `${D(r)(F.value.style.layout.candle.colors.bearish, .02)}DE`
1412
- }, null, 8, Je),
1413
- _("stop", {
1414
- offset: "100%",
1415
- "stop-color": `${D(r)(F.value.style.layout.candle.colors.bearish, .05)}66`
1416
- }, null, 8, Ye)
1417
- ], 8, Ke), _("linearGradient", {
1418
- id: `bullish_gradient_${j.value}`,
1419
- x2: "0%",
1420
- y2: "100%"
1421
- }, [
1422
- _("stop", {
1423
- offset: "0%",
1424
- "stop-color": F.value.style.layout.candle.colors.bullish
1425
- }, null, 8, Ze),
1426
- _("stop", {
1427
- offset: "50%",
1428
- "stop-color": `${D(r)(F.value.style.layout.candle.colors.bullish, .02)}DE`
1429
- }, null, 8, Qe),
1430
- _("stop", {
1431
- offset: "100%",
1432
- "stop-color": `${D(r)(F.value.style.layout.candle.colors.bullish, .05)}66`
1433
- }, null, 8, $e)
1434
- ], 8, Xe)]),
1435
- F.value.style.layout.grid.show ? (S(), g("g", et, [
1436
- _("line", {
1437
- x1: U.value ? W.value.right : W.value.left,
1438
- x2: U.value ? W.value.right : W.value.left,
1439
- y1: W.value.top,
1440
- y2: W.value.bottom,
1441
- stroke: F.value.style.layout.grid.stroke,
1442
- "stroke-width": F.value.style.layout.grid.strokeWidth,
1443
- "stroke-linecap": "round"
1444
- }, null, 8, tt),
1445
- _("line", {
1446
- x1: W.value.left,
1447
- x2: W.value.right,
1448
- y1: W.value.bottom,
1449
- y2: W.value.bottom,
1450
- stroke: F.value.style.layout.grid.stroke,
1451
- "stroke-width": F.value.style.layout.grid.strokeWidth,
1452
- "stroke-linecap": "round"
1453
- }, null, 8, nt),
1454
- F.value.style.layout.grid.horizontalLines.show ? (S(!0), g(f, { key: 0 }, w(Hn.value, (e) => (S(), g("line", {
1455
- x1: W.value.left,
1456
- x2: W.value.right,
1457
- y1: e.y,
1458
- y2: e.y,
1459
- stroke: F.value.style.layout.grid.horizontalLines.stroke,
1460
- "stroke-width": F.value.style.layout.grid.horizontalLines.strokeWidth,
1461
- "stroke-dasharray": F.value.style.layout.grid.horizontalLines.strokeDasharray,
1462
- "stroke-linecap": "round"
1463
- }, null, 8, rt))), 256)) : h("", !0),
1464
- F.value.style.layout.grid.verticalLines.show ? (S(!0), g(f, { key: 1 }, w($n.value, (e, t) => (S(), g("g", null, [e.text ? (S(), g("line", {
1465
- key: 0,
1466
- x1: W.value.left + Y.value * t + Y.value / 2,
1467
- x2: W.value.left + Y.value * t + Y.value / 2,
1468
- y1: W.value.top,
1469
- y2: W.value.bottom,
1470
- stroke: F.value.style.layout.grid.verticalLines.stroke,
1471
- "stroke-width": F.value.style.layout.grid.verticalLines.strokeWidth,
1472
- "stroke-dasharray": F.value.style.layout.grid.verticalLines.strokeDasharray,
1473
- "stroke-linecap": "round"
1474
- }, null, 8, it)) : h("", !0)]))), 256)) : h("", !0),
1475
- F.value.style.layout.grid.xAxis.ticks.show ? (S(!0), g(f, { key: 2 }, w($n.value, (e, t) => (S(), g("g", null, [e.text ? (S(), g("line", {
1476
- key: 0,
1477
- x1: W.value.left + Y.value * t + Y.value / 2,
1478
- x2: W.value.left + Y.value * t + Y.value / 2,
1479
- y1: W.value.bottom,
1480
- y2: W.value.bottom + 3,
1481
- stroke: F.value.style.layout.grid.stroke,
1482
- "stroke-width": F.value.style.layout.grid.strokeWidth,
1483
- "stroke-linecap": "round"
1484
- }, null, 8, at)) : h("", !0)]))), 256)) : h("", !0)
1485
- ])) : h("", !0),
1486
- F.value.style.layout.grid.yAxis.dataLabels.show ? (S(), g("g", {
1487
- key: 1,
1488
- ref_key: "scaleLabels",
1489
- ref: Qt
1490
- }, [(S(!0), g(f, null, w(Hn.value, (e, t) => (S(), g("g", null, [e.value >= X.value.min && e.value <= X.value.max ? (S(), g("line", {
1491
- key: 0,
1492
- x1: U.value ? W.value.right : W.value.left,
1493
- x2: U.value ? W.value.right + 5 : W.value.left - 5,
1494
- y1: e.y,
1495
- y2: e.y,
1496
- stroke: F.value.style.layout.grid.stroke,
1497
- "stroke-width": F.value.style.layout.grid.strokeWidth,
1498
- "stroke-linecap": "round"
1499
- }, null, 8, ot)) : h("", !0), e.value >= X.value.min && e.value <= X.value.max ? (S(), g("text", {
1500
- key: 1,
1501
- x: 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,
1502
- y: e.y + z.value.yAxisFontSize / 3,
1503
- "text-anchor": U.value ? "start" : "end",
1504
- "font-size": z.value.yAxisFontSize,
1505
- fill: F.value.style.layout.grid.yAxis.dataLabels.color,
1506
- "font-weight": F.value.style.layout.grid.yAxis.dataLabels.bold ? "bold" : "normal"
1507
- }, E(D(u)({
1508
- p: F.value.style.layout.grid.yAxis.dataLabels.prefix,
1509
- v: e.value,
1510
- s: F.value.style.layout.grid.yAxis.dataLabels.suffix,
1511
- r: F.value.style.layout.grid.yAxis.dataLabels.roundingValue
1512
- })), 9, st)) : h("", !0)]))), 256))], 512)) : h("", !0),
1513
- F.value.style.layout.grid.xAxis.dataLabels.show && !F.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? (S(), g("g", {
1514
- key: 2,
1515
- ref_key: "timeLabelsEls",
1516
- ref: $t
1517
- }, [(S(!0), g(f, null, w(Un.value, (e, t) => (S(), g("g", null, [_("text", {
1518
- class: "vue-data-ui-time-label",
1519
- 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})`,
1520
- "text-anchor": F.value.style.layout.grid.xAxis.dataLabels.rotation > 0 ? "start" : F.value.style.layout.grid.xAxis.dataLabels.rotation < 0 ? "end" : "middle",
1521
- "font-size": z.value.xAxisFontSize,
1522
- fill: F.value.style.layout.grid.xAxis.dataLabels.color,
1523
- "font-weight": F.value.style.layout.grid.xAxis.dataLabels.bold ? "bold" : "normal"
1524
- }, E(e), 9, ct)]))), 256))], 512)) : h("", !0),
1525
- F.value.style.layout.grid.xAxis.dataLabels.show && F.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? (S(), g("g", {
1526
- key: 3,
1527
- ref_key: "timeLabelsEls",
1528
- ref: $t
1529
- }, [(S(!0), g(f, null, w($n.value, (e, t) => (S(), g("g", null, [_("text", {
1530
- class: "vue-data-ui-time-label",
1531
- 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})`,
1532
- "text-anchor": F.value.style.layout.grid.xAxis.dataLabels.rotation > 0 ? "start" : F.value.style.layout.grid.xAxis.dataLabels.rotation < 0 ? "end" : "middle",
1533
- "font-size": z.value.xAxisFontSize,
1534
- fill: F.value.style.layout.grid.xAxis.dataLabels.color,
1535
- "font-weight": F.value.style.layout.grid.xAxis.dataLabels.bold ? "bold" : "normal"
1536
- }, E(e?.text ?? ""), 9, lt)]))), 256))], 512)) : h("", !0),
1537
- 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, [
1538
- _("rect", {
1539
- x: e.open.x - F.value.style.layout.wick.strokeWidth / 2,
1540
- y: e.high.y,
1541
- width: F.value.style.layout.wick.strokeWidth,
1542
- height: Math.abs(e.high.y - e.low.y),
1543
- fill: F.value.style.layout.wick.stroke,
1544
- stroke: "none",
1545
- rx: F.value.style.layout.wick.strokeWidth / 2,
1546
- class: b({ "vue-data-ui-transition": A.value && !D(I) })
1547
- }, null, 10, ut),
1548
- F.value.style.layout.wick.extremity.shape === "circle" ? (S(), g("g", dt, [_("circle", {
1549
- cx: e.high.x,
1550
- cy: e.high.y,
1551
- r: F.value.style.layout.wick.extremity.size === "auto" ? Y.value / 20 : F.value.style.layout.wick.extremity.size,
1552
- fill: F.value.style.layout.wick.extremity.color,
1553
- class: b({ "vue-data-ui-transition": A.value && !D(I) })
1554
- }, null, 10, ft), _("circle", {
1555
- cx: e.low.x,
1556
- cy: e.low.y,
1557
- r: F.value.style.layout.wick.extremity.size === "auto" ? Y.value / 20 : F.value.style.layout.wick.extremity.size,
1558
- fill: F.value.style.layout.wick.extremity.color,
1559
- class: b({ "vue-data-ui-transition": A.value && !D(I) })
1560
- }, null, 10, pt)])) : h("", !0),
1561
- F.value.style.layout.wick.extremity.shape === "line" ? (S(), g("g", mt, [_("rect", {
1562
- 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,
1563
- y: e.high.y - F.value.style.layout.wick.strokeWidth / 2,
1564
- 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)),
1565
- height: F.value.style.layout.wick.strokeWidth,
1566
- rx: F.value.style.layout.wick.strokeWidth / 2,
1567
- fill: F.value.style.layout.wick.extremity.color,
1568
- stroke: "none",
1569
- class: b({ "vue-data-ui-transition": A.value && !D(I) })
1570
- }, null, 10, ht), _("rect", {
1571
- 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,
1572
- y: e.low.y - F.value.style.layout.wick.strokeWidth / 2,
1573
- 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)),
1574
- height: F.value.style.layout.wick.strokeWidth,
1575
- fill: F.value.style.layout.wick.extremity.color,
1576
- stroke: "none",
1577
- rx: F.value.style.layout.wick.strokeWidth / 2,
1578
- class: b({ "vue-data-ui-transition": A.value && !D(I) })
1579
- }, null, 10, gt)])) : h("", !0)
1580
- ]))), 256))]), _("g", null, [(S(!0), g(f, null, w(Z.value, (e, t) => (S(), g("rect", {
1581
- x: e.open.x - Y.value / 2 + Y.value * (1 - F.value.style.layout.candle.widthRatio) / 2,
1582
- y: e.isBullish ? e.close.y : e.open.y,
1583
- height: Math.abs(e.close.y - e.open.y) <= 0 ? 1e-4 : Math.abs(e.close.y - e.open.y),
1584
- width: Y.value * F.value.style.layout.candle.widthRatio <= 0 ? 1e-4 : Y.value * F.value.style.layout.candle.widthRatio,
1585
- fill: F.value.style.layout.candle.gradient.underlayer,
1586
- rx: F.value.style.layout.candle.borderRadius,
1587
- stroke: "none",
1588
- class: b({ "vue-data-ui-transition": A.value && !D(I) })
1589
- }, null, 10, _t))), 256)), (S(!0), g(f, null, w(Z.value, (e, t) => (S(), g("rect", {
1590
- x: e.open.x - Y.value / 2 + Y.value * (1 - F.value.style.layout.candle.widthRatio) / 2,
1591
- y: e.isBullish ? e.close.y : e.open.y,
1592
- height: Math.abs(e.close.y - e.open.y) <= 0 ? 1e-4 : Math.abs(e.close.y - e.open.y),
1593
- width: Y.value * F.value.style.layout.candle.widthRatio <= 0 ? 1e-4 : Y.value * F.value.style.layout.candle.widthRatio,
1594
- fill: e.isBullish ? F.value.style.layout.candle.gradient.show ? `url(#bullish_gradient_${j.value})` : F.value.style.layout.candle.colors.bullish : F.value.style.layout.candle.gradient.show ? `url(#bearish_gradient_${j.value})` : F.value.style.layout.candle.colors.bearish,
1595
- rx: F.value.style.layout.candle.borderRadius,
1596
- stroke: F.value.style.layout.candle.stroke,
1597
- "stroke-width": F.value.style.layout.candle.strokeWidth,
1598
- "stroke-linecap": "round",
1599
- "stroke-linejoin": "round",
1600
- class: b({ "vue-data-ui-transition": A.value && !D(I) })
1601
- }, null, 10, vt))), 256))])], 64)) : h("", !0),
1602
- F.value.type === "ohlc" ? (S(!0), g(f, { key: 5 }, w(Z.value, (e, t) => (S(), g("g", null, [_("path", {
1603
- 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}`,
1604
- stroke: e.isBullish ? F.value.style.layout.candle.colors.bullish : F.value.style.layout.candle.colors.bearish,
1605
- "stroke-width": 1
1606
- }, null, 8, yt)]))), 256)) : h("", !0),
1607
- _("g", null, [(S(!0), g(f, null, w(Z.value, (e, t) => (S(), g("rect", {
1608
- x: W.value.left + t * Y.value,
1609
- y: W.value.top,
1610
- height: W.value.height <= 0 ? 1e-4 : W.value.height,
1611
- width: Y.value <= 0 ? 1e-4 : Y.value,
1612
- fill: M.value === t || nn.value === t ? D(n)(F.value.style.layout.selector.color, F.value.style.layout.selector.opacity) : "transparent",
1613
- onMouseover: () => ir(t, e, "pointer"),
1614
- onMouseleave: () => rr(t, e),
1615
- onClick: () => nr(t, e)
1616
- }, null, 40, bt))), 256))])
1617
- ])) : h("", !0),
1618
- An.value ? (S(), g("rect", ke({ key: 2 }, kn.value, {
1619
- "data-start": K.value.start,
1620
- "data-end": K.value.end
1621
- }), null, 16, xt)) : h("", !0),
1622
- T(e.$slots, "svg", { svg: {
1623
- ...z.value,
1624
- data: Z.value,
1625
- drawingArea: W.value,
1626
- isPrintingImg: D(bn) || D(xn) || rn.value,
1627
- isPrintingSvg: an.value
1628
- } }, void 0, !0)
1629
- ], 46, Ue)), e.$slots.hint ? (S(), g("div", St, [T(e.$slots, "hint", x(y({
1630
- hint: F.value.a11y.translations.keyboardNavigation,
1631
- isVisible: cn.value
1632
- })), void 0, !0)])) : h("", !0)]),
1633
- e.$slots.watermark ? (S(), g("div", Ct, [T(e.$slots, "watermark", x(y({ isPrinting: D(bn) || D(xn) || rn.value || an.value })), void 0, !0)])) : h("", !0),
1634
- F.value.style.zoom.show && G.value > 6 && zt.value && lr.value ? (S(), m(xe, {
1635
- key: 6,
1636
- ref_key: "chartSlicer",
1637
- ref: Kt,
1638
- allMinimaps: Bn.value,
1639
- background: F.value.style.zoom.color,
1640
- borderColor: F.value.style.backgroundColor,
1641
- customFormat: F.value.style.zoom.customFormat,
1642
- cutNullValues: !1,
1643
- enableRangeHandles: F.value.style.zoom.enableRangeHandles,
1644
- enableSelectionDrag: F.value.style.zoom.enableSelectionDrag,
1645
- end: K.value.end,
1646
- focusOnDrag: F.value.style.zoom.focusOnDrag,
1647
- focusRangeRatio: F.value.style.zoom.focusRangeRatio,
1648
- fontSize: F.value.style.zoom.fontSize,
1649
- immediate: !F.value.style.zoom.preview.enable,
1650
- inputColor: F.value.style.zoom.color,
1651
- isPreview: An.value,
1652
- labelLeft: er.value.start || "",
1653
- labelRight: er.value.end || "",
1654
- max: G.value,
1655
- min: 0,
1656
- minimap: F.value.style.zoom.minimap.show ? D(L).map((e) => e[2]) : [],
1657
- minimapCompact: F.value.style.zoom.minimap.compact,
1658
- minimapFrameColor: F.value.style.zoom.minimap.frameColor,
1659
- minimapIndicatorColor: F.value.style.zoom.minimap.indicatorColor,
1660
- minimapMerged: !1,
1661
- minimapSelectedColor: F.value.style.zoom.minimap.selectedColor,
1662
- minimapSelectedColorOpacity: F.value.style.zoom.minimap.selectedColorOpacity,
1663
- minimapSelectedIndex: M.value,
1664
- minimapSelectionRadius: 1,
1665
- preciseLabels: Qn.value,
1666
- refreshEndPoint: F.value.style.zoom.endIndex === null ? G.value : F.value.style.zoom.endIndex + 1,
1667
- refreshStartPoint: F.value.style.zoom.startIndex === null ? 0 : F.value.style.zoom.startIndex,
1668
- selectColor: F.value.style.zoom.highlightColor,
1669
- selectedSeries: D(L),
1670
- smoothMinimap: !1,
1671
- start: K.value.start,
1672
- textColor: F.value.style.color,
1673
- timeLabels: Wn.value,
1674
- usePreciseLabels: F.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable && !F.value.style.zoom.useDefaultFormat,
1675
- useResetSlot: F.value.style.zoom.useResetSlot,
1676
- valueEnd: K.value.end,
1677
- valueStart: K.value.start,
1678
- verticalHandles: F.value.style.zoom.minimap.verticalHandles,
1679
- minScale: F.value.style.layout.grid.yAxis.scale.min,
1680
- maxScale: F.value.style.layout.grid.yAxis.scale.max,
1681
- maxWidth: F.value.style.zoom.maxWidth,
1682
- additionalMinimapHeight: F.value.style.zoom.minimap.additionalHeight,
1683
- handleType: F.value.style.zoom.minimap.handleType,
1684
- handleIconColor: F.value.style.zoom.minimap.handleIconColor,
1685
- handleBorderWidth: F.value.style.zoom.minimap.handleBorderWidth,
1686
- handleBorderColor: F.value.style.zoom.minimap.handleBorderColor,
1687
- handleFill: F.value.style.zoom.minimap.handleFill,
1688
- handleWidth: F.value.style.zoom.minimap.handleWidth,
1689
- "onUpdate:end": jr,
1690
- "onUpdate:start": Ar,
1691
- onTrapMouse: kr,
1692
- onReset: sr,
1693
- onFutureEnd: t[0] ||= (e) => jn("end", e),
1694
- onFutureStart: t[1] ||= (e) => jn("start", e)
1695
- }, {
1696
- "reset-action": O(({ reset: t }) => [T(e.$slots, "reset-action", x(y({ reset: t })), void 0, !0)]),
1697
- slotMap: O(({ height: e, unitW: t }) => [(S(!0), g(f, null, w(zn.value({
1698
- minimapH: e,
1699
- unitW: t
1700
- }), (e, n) => (S(), g("g", null, [_("path", {
1701
- d: `M ${e.high.x},${e.high.y} ${e.low.x},${e.low.y}`,
1702
- stroke: e.isBullish ? F.value.style.layout.candle.colors.bullish : F.value.style.layout.candle.colors.bearish,
1703
- "stroke-width": 1,
1704
- style: je({ opacity: n >= q.value.start && n <= q.value.end ? 1 : .6 })
1705
- }, null, 12, wt), _("path", {
1706
- d: `M ${e.open.x},${e.open.y} ${e.close.x},${e.close.y}`,
1707
- stroke: e.isBullish ? F.value.style.layout.candle.colors.bullish : F.value.style.layout.candle.colors.bearish,
1708
- "stroke-width": Math.min(6, t / 1.5),
1709
- style: je({ opacity: n >= q.value.start && n <= q.value.end ? 1 : .6 })
1710
- }, null, 12, Tt)]))), 256))]),
1711
- _: 3
1712
- }, 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.additionalMinimapHeight.handleType.handleIconColor.handleBorderWidth.handleBorderColor.handleFill.handleWidth".split("."))) : h("", !0),
1713
- _("div", {
1714
- ref_key: "chartLegend",
1715
- ref: Gt
1716
- }, [T(e.$slots, "legend", { legend: Z.value }, void 0, !0)], 512),
1717
- e.$slots.source ? (S(), g("div", {
1718
- key: 7,
1719
- ref_key: "source",
1720
- ref: qt,
1721
- dir: "auto"
1722
- }, [T(e.$slots, "source", {}, void 0, !0)], 512)) : h("", !0),
1723
- Oe(D(Ot), {
1724
- teleportTo: F.value.style.tooltip.teleportTo,
1725
- show: H.value.showTooltip && Vt.value,
1726
- backgroundColor: F.value.style.tooltip.backgroundColor,
1727
- color: F.value.style.tooltip.color,
1728
- borderRadius: F.value.style.tooltip.borderRadius,
1729
- borderColor: F.value.style.tooltip.borderColor,
1730
- borderWidth: F.value.style.tooltip.borderWidth,
1731
- fontSize: F.value.style.tooltip.fontSize,
1732
- backgroundOpacity: F.value.style.tooltip.backgroundOpacity,
1733
- position: F.value.style.tooltip.position,
1734
- offsetX: F.value.style.tooltip.offsetX,
1735
- offsetY: F.value.style.tooltip.offsetY,
1736
- parent: N.value,
1737
- content: Ht.value,
1738
- isFullscreen: $.value,
1739
- isCustom: F.value.style.tooltip.customFormat && typeof F.value.style.tooltip.customFormat == "function",
1740
- smooth: F.value.style.tooltip.smooth,
1741
- backdropFilter: F.value.style.tooltip.backdropFilter,
1742
- smoothForce: F.value.style.tooltip.smoothForce,
1743
- smoothSnapThreshold: F.value.style.tooltip.smoothSnapThreshold,
1744
- isA11yMode: sn.value === "keyboard",
1745
- a11yPosition: on.value
1746
- }, {
1747
- "tooltip-before": O(() => [T(e.$slots, "tooltip-before", x(y({ ...tr.value })), void 0, !0)]),
1748
- tooltip: O(() => [T(e.$slots, "tooltip", x(y({ ...tr.value })), void 0, !0)]),
1749
- "tooltip-after": O(() => [T(e.$slots, "tooltip-after", x(y({ ...tr.value })), void 0, !0)]),
1750
- _: 3
1751
- }, 8, [
1752
- "teleportTo",
1753
- "show",
1754
- "backgroundColor",
1755
- "color",
1756
- "borderRadius",
1757
- "borderColor",
1758
- "borderWidth",
1759
- "fontSize",
1760
- "backgroundOpacity",
1761
- "position",
1762
- "offsetX",
1763
- "offsetY",
1764
- "parent",
1765
- "content",
1766
- "isFullscreen",
1767
- "isCustom",
1768
- "smooth",
1769
- "backdropFilter",
1770
- "smoothForce",
1771
- "smoothSnapThreshold",
1772
- "isA11yMode",
1773
- "a11yPosition"
1774
- ]),
1775
- zt.value && F.value.userOptions.buttons.table ? (S(), m(Pe(Cr.value.component), ke({ key: 8 }, Cr.value.props, {
1776
- ref_key: "tableUnit",
1777
- ref: en,
1778
- onClose: wr
1779
- }), Ee({
1780
- content: O(() => [(S(), m(D(At), {
1781
- key: `table_${Xt.value}`,
1782
- colNames: mr.value.colNames,
1783
- head: mr.value.head,
1784
- body: mr.value.body,
1785
- config: mr.value.config,
1786
- title: F.value.table.useDialog ? "" : Cr.value.title,
1787
- withCloseButton: !F.value.table.useDialog,
1788
- isCursorPointer: ln.value,
1789
- onClose: wr
1790
- }, {
1791
- th: O(({ th: e }) => [De(E(e), 1)]),
1792
- td: O(({ td: e }) => [_("div", { innerHTML: e }, null, 8, Et)]),
1793
- _: 1
1794
- }, 8, [
1795
- "colNames",
1796
- "head",
1797
- "body",
1798
- "config",
1799
- "title",
1800
- "withCloseButton",
1801
- "isCursorPointer"
1802
- ]))]),
1803
- _: 2
1804
- }, [F.value.table.useDialog ? {
1805
- name: "title",
1806
- fn: O(() => [De(E(Cr.value.title), 1)]),
1807
- key: "0"
1808
- } : void 0, F.value.table.useDialog ? {
1809
- name: "actions",
1810
- fn: O(() => [_("button", {
1811
- tabindex: "0",
1812
- class: "vue-ui-user-options-button",
1813
- onClick: t[2] ||= (e) => pr(F.value.userOptions.callbacks.csv),
1814
- style: je({ cursor: ln.value ? "pointer" : "default" })
1815
- }, [Oe(D(Dt), {
1816
- name: "fileCsv",
1817
- stroke: Cr.value.props.color
1818
- }, null, 8, ["stroke"])], 4)]),
1819
- key: "1"
1820
- } : void 0]), 1040)) : h("", !0),
1821
- T(e.$slots, "skeleton", {}, () => [D(I) ? (S(), m(de, { key: 0 })) : h("", !0)], !0)
1822
- ], 46, Be));
1823
- }
1824
- }, [["__scopeId", "data-v-6b89a6b9"]]);
1825
- //#endregion
1826
- export { ze as n, Dt as t };