vue-data-ui 3.22.7 → 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 (201) hide show
  1. package/dist/{Arrow-DaGI9u-b.js → Arrow-DdymhUfY.js} +1 -1
  2. package/dist/{BaseDraggableDialog-1wwwdwV2.js → BaseDraggableDialog-DcfGlH8A.js} +2 -2
  3. package/dist/{BaseIcon-_-BX7be3.js → BaseIcon-C2qlyHc7.js} +1 -1
  4. package/dist/{BaseLegendToggle-CHnlKalt.js → BaseLegendToggle-DtQ8vyfr.js} +1 -1
  5. package/dist/{BaseZoomControls-C9bdZSCj.js → BaseZoomControls-C6zonwhr.js} +2 -2
  6. package/dist/{ColorPicker-TB3KhY3j.js → ColorPicker-CK2-h611.js} +2 -2
  7. package/dist/{DataTable-CVF7DoZn.js → DataTable-D9NvewTT.js} +2 -2
  8. package/dist/{Legend-kAr7Vqqu.js → Legend-ROt6ugzW.js} +2 -2
  9. package/dist/{NonSvgPenAndPaper-CEiv7_gM.js → NonSvgPenAndPaper-BHHNsVVP.js} +3 -3
  10. package/dist/{PackageVersion-Dse0n05o.js → PackageVersion-DW7zwRcm.js} +1 -1
  11. package/dist/{PenAndPaper-gaV1QPpP.js → PenAndPaper-pcgwlYr2.js} +3 -3
  12. package/dist/{Shape-CiQIxyyT.js → Shape-UpH0a4Ur.js} +3 -3
  13. package/dist/{Slicer-6FOtg9py.js → Slicer-BZ5VnOOS.js} +19 -19
  14. package/dist/{SlicerPreview-DUywypFu.js → SlicerPreview-BQFeCw0m.js} +351 -351
  15. package/dist/{SparkTooltip-B-qsPj68.js → SparkTooltip-BTLN-Kex.js} +6 -6
  16. package/dist/{Title-PiTKr6sp.js → Title-CcNiYzEo.js} +1 -1
  17. package/dist/{Tooltip-B8yYfISA.js → Tooltip-CxOrWlFy.js} +1 -1
  18. package/dist/{UserOptions-BL9VlHop.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-BZjYWNEg.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_abIg0o.js → img-DnP3eXuv.js} +1 -1
  92. package/dist/{labelUtils-CTDRZdP1.js → labelUtils-DBEh078l.js} +1 -1
  93. package/dist/{lib-EAmk-PgA.js → lib-JqW18y5I.js} +36 -30
  94. package/dist/{package-DeMimPej.js → package-gp9pYCfN.js} +1 -1
  95. package/dist/{pdf-B6qrdEqB.js → pdf-hj3gzrE7.js} +1 -1
  96. package/dist/{render-common-DMai0gHB.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-CyOGrdD_.js → useAutoSizeLabelsInsideViewbox-BGnDfZdg.js} +1 -1
  103. package/dist/{useNestedProp-D8XqxgOU.js → useNestedProp-DIuuzG1r.js} +1 -1
  104. package/dist/{usePrinter-DnGzpp6Q.js → usePrinter-CqqHmnBI.js} +2 -2
  105. package/dist/utils.js +24 -24
  106. package/dist/{vue-data-ui-D6qVWloL.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-B3HxJmDI.js +1757 -0
  109. package/dist/{vue-ui-accordion-Dzz8XhX3.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-DXZumSP8.js → vue-ui-annotator-CfJXeAOE.js} +67 -67
  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-RfWMGUD-.js +2010 -0
  117. package/dist/vue-ui-chord-Db1O_diJ.js +1391 -0
  118. package/dist/vue-ui-circle-pack-B4Ro7UuI.js +1608 -0
  119. package/dist/{vue-ui-cursor-DLJcFwRZ.js → vue-ui-cursor-DLP7wxsw.js} +61 -61
  120. package/dist/{vue-ui-dag-DemsIecS.js → vue-ui-dag-DL3zq0F2.js} +43 -43
  121. package/dist/{vue-ui-dashboard-DWHD_wNN.js → vue-ui-dashboard-C2ozZ-LI.js} +69 -69
  122. package/dist/{vue-ui-digits-sIKc85vS.js → vue-ui-digits-ThFVNO3l.js} +3 -3
  123. package/dist/{vue-ui-donut-Dp6GW0dw.js → vue-ui-donut-BuTd6dt4.js} +201 -201
  124. package/dist/{vue-ui-donut-CLheJPcO.js → vue-ui-donut-C3Rt6j-I.js} +592 -592
  125. package/dist/{vue-ui-donut-evolution-zmRPpJLj.js → vue-ui-donut-evolution-DY46UPF_.js} +442 -442
  126. package/dist/{vue-ui-dumbbell-bSbgHd0U.js → vue-ui-dumbbell-wK7vUB0x.js} +238 -238
  127. package/dist/{vue-ui-flow-q_M7O1BK.js → vue-ui-flow-BTUNfWb7.js} +119 -119
  128. package/dist/{vue-ui-funnel-BEZUEuuh.js → vue-ui-funnel-BhoHzyHa.js} +162 -162
  129. package/dist/{vue-ui-galaxy-DCCWmIyH.js → vue-ui-galaxy-DJ2uNYcN.js} +342 -342
  130. package/dist/{vue-ui-gauge-B1ljgfE1.js → vue-ui-gauge-Cf4NqvrO.js} +55 -55
  131. package/dist/{vue-ui-geo-CM59rpnj.js → vue-ui-geo-ovHu_Sc9.js} +14 -14
  132. package/dist/{vue-ui-gizmo-D2RL6IVp.js → vue-ui-gizmo-DDxEj-qe.js} +62 -62
  133. package/dist/{vue-ui-heatmap-BX6PQxML.js → vue-ui-heatmap-Npqnvb1r.js} +163 -163
  134. package/dist/{vue-ui-history-plot-DaHAeQph.js → vue-ui-history-plot-C3Kjy2tc.js} +371 -371
  135. package/dist/vue-ui-horizontal-bar-D1rCsgqt.js +1683 -0
  136. package/dist/{vue-ui-kpi-DLbP7lJR.js → vue-ui-kpi-BrlfYO-j.js} +4 -4
  137. package/dist/{vue-ui-mini-loader-DPHzHsM7.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-CCWaPr0P.js → vue-ui-mood-radar-DlVh6hwx.js} +45 -45
  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-DSp_cwU-.js +1416 -0
  143. package/dist/{vue-ui-quadrant-T_UmRAAy.js → vue-ui-quadrant-ByVg-NBs.js} +58 -58
  144. package/dist/vue-ui-quick-chart-WMzSJxGZ.js +2469 -0
  145. package/dist/{vue-ui-radar-CHjeGOMC.js → vue-ui-radar-DE-me6OC.js} +79 -79
  146. package/dist/vue-ui-rating-CzD3EQ3G.js +343 -0
  147. package/dist/{vue-ui-relation-circle-DRZGQ_UX.js → vue-ui-relation-circle-L7-dTqet.js} +167 -167
  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-Fmue6DAG.js → vue-ui-skeleton-CuFm4PtB.js} +58 -58
  152. package/dist/{vue-ui-smiley-BVMI5vUy.js → vue-ui-smiley-D4NnZ1mg.js} +16 -16
  153. package/dist/{vue-ui-spark-trend-DfZeLiWA.js → vue-ui-spark-trend-C38ysZ-c.js} +99 -99
  154. package/dist/{vue-ui-sparkbar-Cl1e49sw.js → vue-ui-sparkbar-B03ndcUe.js} +30 -30
  155. package/dist/{vue-ui-sparkgauge-DDNNBIdf.js → vue-ui-sparkgauge-DgPc4vPT.js} +48 -48
  156. package/dist/{vue-ui-sparkhistogram-ny_liYa6.js → vue-ui-sparkhistogram-D02ff7ZI.js} +72 -72
  157. package/dist/vue-ui-sparkline-DlTfNQj8.js +1547 -0
  158. package/dist/{vue-ui-sparkstackbar-BfF5-Wg2.js → vue-ui-sparkstackbar-DrmiWFlw.js} +110 -110
  159. package/dist/{vue-ui-stackbar-B-2Me3d-.js → vue-ui-stackbar-BVdApDnY.js} +82 -82
  160. package/dist/{vue-ui-stackline-CdvVPQUM.js → vue-ui-stackline-QzQQ7lTy.js} +636 -636
  161. package/dist/vue-ui-strip-plot-C-TFNvgz.js +1729 -0
  162. package/dist/{vue-ui-table-Dr1dK3d_.js → vue-ui-table-Q3brrivC.js} +62 -62
  163. package/dist/{vue-ui-table-heatmap-D-Qrm3oX.js → vue-ui-table-heatmap-D0pZbBOH.js} +14 -14
  164. package/dist/vue-ui-table-sparkline-Q6BHPKUn.js +712 -0
  165. package/dist/{vue-ui-thermometer-BUrtIfuo.js → vue-ui-thermometer-Bg0RR6m4.js} +115 -115
  166. package/dist/{vue-ui-timer-B5bkNNHS.js → vue-ui-timer-BdzKpoRj.js} +5 -5
  167. package/dist/{vue-ui-tiremarks-Bn8b-ZSz.js → vue-ui-tiremarks-DWb69ofh.js} +13 -13
  168. package/dist/{vue-ui-treemap-LMWiicop.js → vue-ui-treemap-uUz07Prw.js} +457 -457
  169. package/dist/vue-ui-waffle-Pi9e7Ae7.js +1362 -0
  170. package/dist/{vue-ui-wheel-CeVwXtEX.js → vue-ui-wheel-DTfvWYA7.js} +130 -130
  171. package/dist/{vue-ui-word-cloud-D81-qJLw.js → vue-ui-word-cloud-DqfljAqH.js} +27 -27
  172. package/dist/vue-ui-world-BtBrH92Z.js +3016 -0
  173. package/dist/{vue-ui-xy-C2p9H2IX.js → vue-ui-xy-Bvgy2do1.js} +714 -714
  174. package/dist/{vue-ui-xy-OhwS0kcZ.js → vue-ui-xy-D5KsuNR2.js} +116 -116
  175. package/dist/{vue-ui-xy-canvas-DLKDdH35.js → vue-ui-xy-canvas-BfgeE3TW.js} +58 -58
  176. package/package.json +1 -1
  177. package/dist/exposedLib-Be0ifkti.js +0 -19
  178. package/dist/vue-ui-3d-bar-CjNuWXoA.js +0 -1757
  179. package/dist/vue-ui-age-pyramid-CC7Dxli-.js +0 -1238
  180. package/dist/vue-ui-bullet-Dde6FhbR.js +0 -710
  181. package/dist/vue-ui-bump-C5pni1JV.js +0 -1249
  182. package/dist/vue-ui-candlestick-Ctw65O4_.js +0 -1829
  183. package/dist/vue-ui-carousel-table-BEUvhUH0.js +0 -455
  184. package/dist/vue-ui-chestnut-C3IbAdkQ.js +0 -2010
  185. package/dist/vue-ui-chord-5eCWG4br.js +0 -1391
  186. package/dist/vue-ui-circle-pack-Cq4lkmee.js +0 -1608
  187. package/dist/vue-ui-horizontal-bar-CTW6l4n3.js +0 -1683
  188. package/dist/vue-ui-molecule-aD0SMTiX.js +0 -925
  189. package/dist/vue-ui-nested-donuts--BCPWkl7.js +0 -1487
  190. package/dist/vue-ui-onion-s4iMCGAP.js +0 -1200
  191. package/dist/vue-ui-parallel-coordinate-plot-CfgvpyoC.js +0 -1416
  192. package/dist/vue-ui-quick-chart-D1OWBgQJ.js +0 -2469
  193. package/dist/vue-ui-rating-Bek8Tgr-.js +0 -343
  194. package/dist/vue-ui-ridgeline-DIODGiu8.js +0 -1622
  195. package/dist/vue-ui-rings-CcdUSXGG.js +0 -1246
  196. package/dist/vue-ui-scatter-CixnqLoi.js +0 -2413
  197. package/dist/vue-ui-sparkline-BNxdO-Bx.js +0 -1547
  198. package/dist/vue-ui-strip-plot-CRXPXA5V.js +0 -1729
  199. package/dist/vue-ui-table-sparkline-C31Q32My.js +0 -712
  200. package/dist/vue-ui-waffle-B_L3gkky.js +0 -1362
  201. package/dist/vue-ui-world-B7npRmTa.js +0 -14264
@@ -1,1829 +0,0 @@
1
- import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { Gt as t, Lt as n, Ot as r, Q as i, Rt as a, W as o, Wt as s, X as c, at as l, ct as ee, h as te, q as u, s as ne, t as re, v as d, vt as ie, w as ae } from "./lib-EAmk-PgA.js";
3
- import { n as oe, r as se, t as ce } from "./useTimeLabels-BmBRv27Y.js";
4
- import { t as le } from "./useConfig-DYM3f6EI.js";
5
- import { t as ue } from "./usePrinter-DnGzpp6Q.js";
6
- import { n as de, t as fe } from "./BaseScanner-DZvpgOjM.js";
7
- import { t as pe } from "./useSvgExport-SVIsDot8.js";
8
- import { t as me } from "./useNestedProp-D8XqxgOU.js";
9
- import { t as he } from "./useThemeCheck-C43Tcqmk.js";
10
- import { t as ge } from "./useTimeLabelCollider-AEcY4Ioe.js";
11
- import { t as _e } from "./img-B_abIg0o.js";
12
- import { n as ve } from "./Title-PiTKr6sp.js";
13
- import { t as ye } from "./_plugin-vue_export-helper-B3ysoDQm.js";
14
- import { c as be } from "./canvas-lib-BOP_HS11.js";
15
- import { t as xe } from "./useResponsive-BfnK0KxU.js";
16
- import { t as Se } from "./SlicerPreview-DUywypFu.js";
17
- import { t as Ce } from "./A11yDataTable-DdRsVULz.js";
18
- import { t as we } from "./useUserOptionState-DK-_1ddE.js";
19
- import { t as Te } from "./useChartAccessibility-DYqac8yF.js";
20
- import { t as Ee } 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 De, createTextVNode as Oe, createVNode as ke, defineAsyncComponent as v, guardReactiveProps as y, mergeProps as Ae, nextTick as je, normalizeClass as b, normalizeProps as x, normalizeStyle as S, onBeforeUnmount as Me, onMounted as Ne, openBlock as C, ref as w, renderList as T, renderSlot as E, resolveDynamicComponent as Pe, shallowRef as Fe, toDisplayString as Ie, toRefs as Le, unref as D, watch as Re, watchEffect as ze, withCtx as O } from "vue";
22
- //#region src/components/vue-ui-candlestick.vue
23
- var Be = /* @__PURE__ */ e({ default: () => Ot }), Ve = ["id"], He = ["id"], Ue = { style: { position: "relative" } }, We = [
24
- "xmlns",
25
- "aria-describedby",
26
- "viewBox"
27
- ], Ge = [
28
- "x",
29
- "y",
30
- "width",
31
- "height"
32
- ], Ke = { key: 1 }, qe = ["id"], Je = ["stop-color"], Ye = ["stop-color"], Xe = ["stop-color"], Ze = ["id"], Qe = ["stop-color"], $e = ["stop-color"], et = ["stop-color"], tt = { key: 0 }, nt = [
33
- "x1",
34
- "x2",
35
- "y1",
36
- "y2",
37
- "stroke",
38
- "stroke-width"
39
- ], rt = [
40
- "x1",
41
- "x2",
42
- "y1",
43
- "y2",
44
- "stroke",
45
- "stroke-width"
46
- ], it = [
47
- "x1",
48
- "x2",
49
- "y1",
50
- "y2",
51
- "stroke",
52
- "stroke-width",
53
- "stroke-dasharray"
54
- ], at = [
55
- "x1",
56
- "x2",
57
- "y1",
58
- "y2",
59
- "stroke",
60
- "stroke-width",
61
- "stroke-dasharray"
62
- ], ot = [
63
- "x1",
64
- "x2",
65
- "y1",
66
- "y2",
67
- "stroke",
68
- "stroke-width"
69
- ], st = [
70
- "x1",
71
- "x2",
72
- "y1",
73
- "y2",
74
- "stroke",
75
- "stroke-width"
76
- ], ct = [
77
- "x",
78
- "y",
79
- "text-anchor",
80
- "font-size",
81
- "fill",
82
- "font-weight"
83
- ], lt = [
84
- "transform",
85
- "text-anchor",
86
- "font-size",
87
- "fill",
88
- "font-weight"
89
- ], ut = [
90
- "transform",
91
- "text-anchor",
92
- "font-size",
93
- "fill",
94
- "font-weight"
95
- ], dt = [
96
- "x",
97
- "y",
98
- "width",
99
- "height",
100
- "fill",
101
- "rx"
102
- ], ft = { key: 0 }, pt = [
103
- "cx",
104
- "cy",
105
- "r",
106
- "fill"
107
- ], mt = [
108
- "cx",
109
- "cy",
110
- "r",
111
- "fill"
112
- ], ht = { key: 1 }, gt = [
113
- "x",
114
- "y",
115
- "width",
116
- "height",
117
- "rx",
118
- "fill"
119
- ], _t = [
120
- "x",
121
- "y",
122
- "width",
123
- "height",
124
- "fill",
125
- "rx"
126
- ], vt = [
127
- "x",
128
- "y",
129
- "height",
130
- "width",
131
- "fill",
132
- "rx"
133
- ], yt = [
134
- "x",
135
- "y",
136
- "height",
137
- "width",
138
- "fill",
139
- "rx",
140
- "stroke",
141
- "stroke-width"
142
- ], bt = ["d", "stroke"], xt = [
143
- "x",
144
- "y",
145
- "height",
146
- "width",
147
- "fill",
148
- "onMouseover",
149
- "onMouseleave",
150
- "onClick"
151
- ], St = ["data-start", "data-end"], Ct = {
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
- }, wt = {
162
- key: 5,
163
- class: "vue-data-ui-watermark"
164
- }, Tt = ["d", "stroke"], Et = [
165
- "d",
166
- "stroke",
167
- "stroke-width"
168
- ], Dt = ["innerHTML"], Ot = /*#__PURE__*/ ye({
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: ye, emit: Be }) {
190
- let Ot = v(() => import("./BaseIcon-_-BX7be3.js").then((e) => e.n)), kt = v(() => import("./Tooltip-B8yYfISA.js")), At = v(() => import("./vue-ui-accordion-Dzz8XhX3.js").then((e) => e.n)), jt = v(() => import("./DataTable-CVF7DoZn.js")), Mt = v(() => import("./PenAndPaper-gaV1QPpP.js").then((e) => e.t)), Nt = v(() => import("./UserOptions-BL9VlHop.js").then((e) => e.n)), Pt = v(() => import("./PackageVersion-Dse0n05o.js").then((e) => e.t)), Ft = v(() => import("./BaseDraggableDialog-1wwwdwV2.js").then((e) => e.n)), { vue_ui_candlestick: It } = le(), { isThemeValid: Lt, warnInvalidTheme: Rt } = he(), k = e, zt = Be, Bt = p(() => !!k.dataset && k.dataset.length), A = w(!1), Vt = w(null), j = w(o()), Ht = w(!1), Ut = w(""), M = w(void 0), Wt = w(0), N = w(null), Gt = w(null), Kt = w(null), qt = w(null), Jt = w(null), Yt = w(null), Xt = w(0), Zt = w(0), Qt = w(0), $t = w(null), en = w(null), tn = w(null), nn = w(null), rn = w(null), an = w(!1), on = w(!1), P = w(null), sn = w({
191
- x: 0,
192
- y: 0
193
- }), cn = w("pointer"), ln = w(!1), F = w(vn()), un = p(() => F.value.userOptions.useCursorPointer), dn = p(() => t({
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: fn } = de({
232
- ...Le(k),
233
- FINAL_CONFIG: F,
234
- prepareConfig: vn,
235
- callback: () => {
236
- Promise.resolve().then(async () => {
237
- await fr();
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: t({
339
- defaultConfig: F.value,
340
- userConfig: dn.value
341
- })
342
- }), { userOptionsVisible: pn, setUserOptionsVisibility: mn, keepUserOptionState: hn } = we({ config: F.value }), { svgRef: R } = Te({ config: F.value.style.title });
343
- function gn() {
344
- mn(!0);
345
- }
346
- function _n() {
347
- mn(!1), zt("selectX", {
348
- seriesIndex: null,
349
- datapoint: null
350
- }), M.value = null;
351
- }
352
- function vn() {
353
- let e = me({
354
- userConfig: k.config,
355
- defaultConfig: It
356
- }), t = {}, n = e.theme;
357
- if (n) if (!Lt.value(e)) Rt(e), t = e;
358
- else {
359
- let r = me({
360
- userConfig: Ee[n] || k.config,
361
- defaultConfig: e
362
- });
363
- t = { ...me({
364
- userConfig: k.config,
365
- defaultConfig: r
366
- }) };
367
- }
368
- else t = e;
369
- return t;
370
- }
371
- Re(() => k.config, (e) => {
372
- I.value || (F.value = vn()), pn.value = !F.value.userOptions.showOnChartHover, bn(), Xt.value += 1, Qt.value += 1, Zt.value += 1, H.value.showTable = F.value.table.show, H.value.showTooltip = F.value.style.tooltip.show, Nn();
373
- }, { deep: !0 }), Re(() => k.dataset, (e) => {
374
- Array.isArray(e) && e.length > 0 && (fn.value = !1), cr();
375
- }, { deep: !0 });
376
- let z = w({
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), yn = Fe(null);
382
- Ne(() => {
383
- bn();
384
- });
385
- let V = p(() => !!F.value.debug);
386
- function bn() {
387
- if (r(k.dataset) && (i({
388
- componentName: "VueUiCandlestick",
389
- type: "dataset",
390
- debug: V.value
391
- }), fn.value = !0), r(k.dataset) || (fn.value = F.value.loading), setTimeout(() => {
392
- A.value = !0;
393
- }, 10), F.value.responsive) {
394
- let e = be(() => {
395
- A.value = !1;
396
- let { width: e, height: t } = xe({
397
- chart: N.value,
398
- title: F.value.style.title.text ? Gt.value : null,
399
- slicer: F.value.style.zoom.show && G.value > 6 ? qt.value.$el : null,
400
- legend: Kt.value,
401
- source: Jt.value,
402
- noTitle: Yt.value
403
- });
404
- requestAnimationFrame(() => {
405
- z.value.width = e, z.value.height = t - 12, F.value.responsiveProportionalSizing ? (z.value.xAxisFontSize = s({
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 = s({
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), Vt.value && clearTimeout(Vt.value), Vt.value = setTimeout(() => {
418
- A.value = !0;
419
- }, 10);
420
- });
421
- });
422
- B.value && (yn.value && B.value.unobserve(yn.value), B.value.disconnect()), B.value = new ResizeObserver(e), yn.value = N.value.parentNode, B.value.observe(yn.value);
423
- }
424
- fr();
425
- }
426
- Me(() => {
427
- B.value && (yn.value && B.value.unobserve(yn.value), B.value.disconnect());
428
- });
429
- let { isPrinting: xn, isImaging: Sn, generatePdf: Cn, generateImage: wn } = ue({
430
- elementId: `vue-ui-candlestick_${j.value}`,
431
- fileName: F.value.style.title.text || "vue-ui-candlestick",
432
- options: F.value.userOptions.print
433
- }), Tn = p(() => F.value.userOptions.show && !F.value.style.title.text), H = w({
434
- showTable: F.value.table.show,
435
- showTooltip: F.value.style.tooltip.show
436
- }), En = w(0), Dn = be((e) => {
437
- En.value = e;
438
- }, 100);
439
- ze((e) => {
440
- let t = en.value;
441
- if (!t) return;
442
- let n = new ResizeObserver((e) => {
443
- Dn(e[0].contentRect.height);
444
- });
445
- n.observe(t), e(() => n.disconnect());
446
- }), Me(() => {
447
- En.value = 0;
448
- });
449
- let On = p(() => {
450
- let e = 0;
451
- return en.value && (e = En.value + z.value.xAxisFontSize), e;
452
- }), U = p(() => F.value.style.layout.grid.yAxis.position === "right");
453
- function kn() {
454
- let e = F.value.style.layout.grid.yAxis.dataLabels.offsetX;
455
- $t.value && (e = Array.from($t.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 = kn();
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 - On.value,
475
- width: z.value.width - r - t - i.left - i.right,
476
- height: z.value.height - e - n - On.value - 12,
477
- scaleLabelsWidth: i.scaleLabelsWidth,
478
- yAxisNameWidth: i.yAxisNameWidth,
479
- crosshair: i.crosshair
480
- };
481
- }), An = 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 = w({
501
- start: 0,
502
- end: G.value
503
- }), q = w({
504
- start: 0,
505
- end: G.value
506
- }), jn = p(() => F.value.style.zoom.preview.enable && (q.value.start !== K.value.start || q.value.end !== K.value.end));
507
- function Mn(e, t) {
508
- q.value[e] = t;
509
- }
510
- function Nn() {
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, qt.value && (qt.value.setStartValue(e), qt.value.setEndValue(t));
513
- }
514
- let Pn = p(() => L.value.map((e, t) => ({
515
- ...e,
516
- absoluteIndex: t
517
- }))), Fn = p(() => Pn.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
- }), Fn.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
- })))), In = p(() => Pn.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 / Fn.value.length), Ln = 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(Ln.value.min, Ln.value.max, F.value.style.layout.grid.yAxis.dataLabels.steps));
575
- function Rn(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 = Rn(i.open, a, e.o, t.o), s = Rn(i.high, a, e.h, t.h), c = Rn(i.low, a, e.l, t.l), l = Rn(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 zn({ 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 Bn = p(() => ({ minimapH: e, unitW: t }) => In.value.map((n, r) => {
623
- let i = zn({
624
- item: n.open,
625
- index: r,
626
- minimapH: e,
627
- unitW: t
628
- }), a = zn({
629
- item: n.high,
630
- index: r,
631
- minimapH: e,
632
- unitW: t
633
- }), o = zn({
634
- item: n.low,
635
- index: r,
636
- minimapH: e,
637
- unitW: t
638
- }), s = zn({
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
- })), Vn = 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 Hn(e) {
661
- return d((e - X.value.min) / (X.value.max - X.value.min));
662
- }
663
- let Un = p(() => X.value.ticks.map((e) => ({
664
- y: W.value.bottom - W.value.height * Hn(e),
665
- value: d(e)
666
- }))), Wn = p(() => J.value.map((e) => e.period)), Q = w([]), Gn = w([]), Kn = 0;
667
- ze(() => {
668
- let e = ++Kn;
669
- (async () => {
670
- let t = await ce({
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 === Kn && (Q.value = t);
678
- })();
679
- });
680
- let qn = 0;
681
- ze(() => {
682
- let e = ++qn;
683
- (async () => {
684
- let t = await ce({
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 === qn && (Gn.value = t);
692
- })();
693
- });
694
- let Jn = 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
- }), Yn = w({
698
- months: [],
699
- shortMonths: [],
700
- days: [],
701
- shortDays: []
702
- }), Xn = 0;
703
- ze(() => {
704
- let e = ++Xn, t = F.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter;
705
- (async () => {
706
- let n = await se(t.locale).catch(() => se("en"));
707
- e === Xn && (Yn.value = n.data);
708
- })();
709
- });
710
- let Zn = p(() => {
711
- let e = F.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter, t = oe({
712
- useUTC: e.useUTC,
713
- locale: Yn.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
- }), Qn = p(() => (L.value.map((e) => e[0]) || []).map((e, t) => ({
721
- text: Zn.value(t, F.value.style.tooltip.timeFormat),
722
- absoluteIndex: t
723
- }))), $n = p(() => (L.value.map((e) => e[0]) || []).map((e, t) => ({
724
- text: Zn.value(t, F.value.style.zoom.timeFormat),
725
- absoluteIndex: t
726
- }))), er = p(() => {
727
- let e = F.value.style.layout.grid.xAxis.dataLabels, t = Q.value || [], n = Gn.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, Jn.value || 1), o, s, r, i, a);
729
- }), tr = 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
- }), nr = w(null);
736
- function rr(e, t) {
737
- F.value.events.datapointClick && F.value.events.datapointClick({
738
- datapoint: t,
739
- seriesIndex: e + K.value.start
740
- });
741
- }
742
- function ir(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, Ht.value = !1, P.value = null, cn.value = "pointer";
747
- }
748
- Re(() => 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 ar(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, cn.value = n, nr.value = {
761
- datapoint: t,
762
- seriesIndex: e,
763
- series: Z.value,
764
- config: F.value
765
- }, Nr({
766
- seriesIndex: e,
767
- datapoint: t
768
- });
769
- let r = F.value.style.tooltip.customFormat;
770
- if (ie(r) && l(() => r({
771
- seriesIndex: e,
772
- datapoint: t,
773
- series: Z.value,
774
- config: F.value
775
- }))) Ut.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 : Qn.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>", Ut.value = `<div style="text-align:right">${n}</div>`;
827
- }
828
- Ht.value = !0;
829
- }
830
- let or = w(null);
831
- function sr() {
832
- return new Promise((e) => requestAnimationFrame(() => requestAnimationFrame(() => e())));
833
- }
834
- Me(() => {
835
- or.value && cancelAnimationFrame(or.value);
836
- });
837
- async function cr() {
838
- fr(), await je(), or.value && cancelAnimationFrame(or.value), or.value = requestAnimationFrame(async () => {
839
- await sr(), fr();
840
- });
841
- }
842
- let lr = w(!1), ur = w(!1), dr = w(!1);
843
- function fr() {
844
- if (!lr.value) {
845
- lr.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(pr(t + 1), n);
848
- dr.value = !0, K.value.start = r, K.value.end = i, q.value.start = r, q.value.end = i, Nn(), ur.value = !0;
849
- } finally {
850
- queueMicrotask(() => {
851
- dr.value = !1;
852
- }), lr.value = !1;
853
- }
854
- }
855
- }
856
- function pr(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 mr(e = null) {
861
- je(() => {
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 = ae([
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 hr = 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
- }), $ = w(!1);
978
- function gr(e) {
979
- $.value = e, Wt.value += 1;
980
- }
981
- function _r() {
982
- H.value.showTable = !H.value.showTable;
983
- }
984
- function vr() {
985
- H.value.showTooltip = !H.value.showTooltip;
986
- }
987
- let yr = w(!1);
988
- function br() {
989
- yr.value = !yr.value;
990
- }
991
- async function xr({ scale: e = 2 } = {}) {
992
- if (!N.value) return;
993
- let { imageUri: t, base64: n } = await _e({
994
- domElement: N.value,
995
- base64: !0,
996
- img: !0,
997
- scale: e
998
- }), r = N.value.getBoundingClientRect(), i = {
999
- width: r.width,
1000
- height: r.height,
1001
- aspectRatio: r.height ? r.width / r.height : 0
1002
- }, a = await ee(t, e) ?? i;
1003
- return {
1004
- imageUri: t,
1005
- base64: n,
1006
- title: F.value.style.title.text,
1007
- ...a
1008
- };
1009
- }
1010
- let Sr = p(() => z.value.width), Cr = p(() => z.value.height);
1011
- ge({
1012
- timeLabelsEls: en,
1013
- timeLabels: Q,
1014
- slicer: K,
1015
- configRef: F,
1016
- rotationPath: [
1017
- "style",
1018
- "layout",
1019
- "grid",
1020
- "xAxis",
1021
- "dataLabels",
1022
- "rotation"
1023
- ],
1024
- autoRotatePath: [
1025
- "style",
1026
- "layout",
1027
- "grid",
1028
- "xAxis",
1029
- "dataLabels",
1030
- "autoRotate",
1031
- "enable"
1032
- ],
1033
- isAutoSize: !1,
1034
- rotation: F.value.style.layout.grid.xAxis.dataLabels.autoRotate.angle,
1035
- width: Sr,
1036
- height: Cr
1037
- }), Re(F, () => {
1038
- H.value = {
1039
- showTable: F.value.table.show,
1040
- showTooltip: F.value.style.tooltip.show
1041
- };
1042
- }, { immediate: !0 });
1043
- let wr = p(() => {
1044
- let e = F.value.table.useDialog && !F.value.table.show, t = H.value.showTable;
1045
- return {
1046
- component: e ? Ft : At,
1047
- title: `${F.value.style.title.text}${F.value.style.title.subtitle.text ? `: ${F.value.style.title.subtitle.text}` : ""}`,
1048
- props: e ? {
1049
- backgroundColor: F.value.table.th.backgroundColor,
1050
- color: F.value.table.th.color,
1051
- headerColor: F.value.table.th.color,
1052
- headerBg: F.value.table.th.backgroundColor,
1053
- isFullscreen: $.value,
1054
- fullscreenParent: N.value,
1055
- forcedWidth: Math.min(800, window.innerWidth * .8),
1056
- isCursorPointer: un.value
1057
- } : {
1058
- hideDetails: !0,
1059
- config: {
1060
- open: t,
1061
- maxHeight: 1e4,
1062
- body: {
1063
- backgroundColor: F.value.style.backgroundColor,
1064
- color: F.value.style.color
1065
- },
1066
- head: {
1067
- backgroundColor: F.value.style.backgroundColor,
1068
- color: F.value.style.color
1069
- }
1070
- }
1071
- }
1072
- };
1073
- });
1074
- Re(() => H.value.showTable, (e) => {
1075
- F.value.table.show || (e && F.value.table.useDialog && tn.value ? tn.value.open() : "close" in tn.value && tn.value.close());
1076
- });
1077
- function Tr() {
1078
- H.value.showTable = !1, nn.value && nn.value.setTableIconState(!1);
1079
- }
1080
- let Er = p(() => F.value.style.backgroundColor), { exportSvg: Dr, getSvg: Or } = pe({
1081
- svg: R,
1082
- title: p(() => F.value.style.title),
1083
- backgroundColor: Er
1084
- });
1085
- async function kr({ isCb: e }) {
1086
- on.value = !0, await je();
1087
- try {
1088
- if (e) {
1089
- let { blob: e, url: t, text: n, dataUrl: r } = await Or();
1090
- await Promise.resolve(F.value.userOptions.callbacks.svg({
1091
- blob: e,
1092
- url: t,
1093
- text: n,
1094
- dataUrl: r
1095
- }));
1096
- } else await Promise.resolve(Dr());
1097
- } finally {
1098
- on.value = !1;
1099
- }
1100
- }
1101
- function Ar(e) {
1102
- rn.value = e;
1103
- }
1104
- function jr(e) {
1105
- lr.value || dr.value || e !== K.value.start && (K.value.start = e, q.value.start = e, Nn());
1106
- }
1107
- function Mr(e) {
1108
- if (lr.value || dr.value) return;
1109
- let t = pr(e);
1110
- t !== K.value.end && (K.value.end = t, q.value.end = t, Nn());
1111
- }
1112
- function Nr({ seriesIndex: e, datapoint: t }) {
1113
- zt("selectX", {
1114
- dataset: t,
1115
- index: K.value.start + e,
1116
- indexLabel: ""
1117
- });
1118
- }
1119
- function Pr(e) {
1120
- if (e?.stage === "start") {
1121
- an.value = !0;
1122
- return;
1123
- }
1124
- if (e?.stage === "end") {
1125
- an.value = !1;
1126
- return;
1127
- }
1128
- wn();
1129
- }
1130
- async function Fr() {
1131
- if (zt("copyAlt", {
1132
- config: F.value,
1133
- dataset: Z.value
1134
- }), !F.value.userOptions.callbacks.altCopy) {
1135
- console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
1136
- return;
1137
- }
1138
- await Promise.resolve(F.value.userOptions.callbacks.altCopy({
1139
- config: F.value,
1140
- dataset: Z.value
1141
- }));
1142
- }
1143
- function Ir() {
1144
- P.value = null, ln.value = !0;
1145
- }
1146
- function Lr() {
1147
- P.value = null, cn.value = "pointer", Ht.value = !1, M.value = void 0, ln.value = !1;
1148
- }
1149
- function Rr(e) {
1150
- if (!R.value || yr.value || document.activeElement !== R.value || !Z.value.length) return;
1151
- let t = e.key === "ArrowLeft", n = e.key === "ArrowRight", r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
1152
- if (!t && !n && !r && !i) return;
1153
- if (e.preventDefault(), e.stopPropagation(), i) {
1154
- P.value = null, cn.value = "pointer", Ht.value = !1, M.value = void 0;
1155
- return;
1156
- }
1157
- if (r) {
1158
- if (P.value === null) return;
1159
- let e = Z.value[P.value];
1160
- if (!e) return;
1161
- rr(P.value, e);
1162
- return;
1163
- }
1164
- 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;
1165
- 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;
1166
- let l = Z.value[a];
1167
- l && (zr(a), ar(a, l, "keyboard"));
1168
- }
1169
- function zr(e) {
1170
- if (!Number.isFinite(e) || !R.value) return;
1171
- let t = W.value.left + Y.value * e + Y.value / 2, n = W.value.top + W.value.height / 2, r = R.value.getBoundingClientRect();
1172
- sn.value = {
1173
- x: r.left + t / z.value.width * r.width,
1174
- y: r.top + n / z.value.height * r.height
1175
- };
1176
- }
1177
- let Br = p(() => ({
1178
- headers: hr.value?.colNames ?? [],
1179
- rows: hr.value?.bodyA11y ?? []
1180
- }));
1181
- return ye({
1182
- getImage: xr,
1183
- generatePdf: Cn,
1184
- generateCsv: mr,
1185
- generateImage: wn,
1186
- generateSvg: kr,
1187
- toggleTable: _r,
1188
- toggleTooltip: vr,
1189
- toggleAnnotator: br,
1190
- toggleFullscreen: gr,
1191
- copyAlt: Fr
1192
- }), (e, t) => (C(), g("div", {
1193
- ref_key: "candlestickChart",
1194
- ref: N,
1195
- class: b(`vue-data-ui-component vue-ui-candlestick ${$.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${F.value.useCssAnimation ? "" : "vue-ui-dna"}`),
1196
- style: S(`position:relative;font-family:${F.value.style.fontFamily}; text-align:center;background:${F.value.style.backgroundColor}; ${F.value.responsive ? "height: 100%" : ""}`),
1197
- id: `vue-ui-candlestick_${j.value}`,
1198
- onMouseenter: gn,
1199
- onMouseleave: _n
1200
- }, [
1201
- _("div", {
1202
- id: `chart-instructions-${j.value}`,
1203
- class: "sr-only"
1204
- }, [_("p", null, Ie(F.value.a11y.translations.keyboardNavigation), 1)], 8, He),
1205
- Br.value?.rows?.length ? (C(), m(Ce, {
1206
- key: 0,
1207
- uid: j.value,
1208
- head: Br.value.headers,
1209
- body: Br.value.rows,
1210
- notice: F.value.a11y.translations.tableAvailable,
1211
- caption: F.value.a11y.translations.tableCaption
1212
- }, null, 8, [
1213
- "uid",
1214
- "head",
1215
- "body",
1216
- "notice",
1217
- "caption"
1218
- ])) : h("", !0),
1219
- F.value.userOptions.buttons.annotator ? (C(), m(D(Mt), {
1220
- key: 1,
1221
- svgRef: D(R),
1222
- backgroundColor: F.value.style.backgroundColor,
1223
- color: F.value.style.color,
1224
- active: yr.value,
1225
- isCursorPointer: un.value,
1226
- onClose: br
1227
- }, {
1228
- "annotator-action-close": O(() => [E(e.$slots, "annotator-action-close", {}, void 0, !0)]),
1229
- "annotator-action-color": O(({ color: t }) => [E(e.$slots, "annotator-action-color", x(y({ color: t })), void 0, !0)]),
1230
- "annotator-action-draw": O(({ mode: t }) => [E(e.$slots, "annotator-action-draw", x(y({ mode: t })), void 0, !0)]),
1231
- "annotator-action-undo": O(({ disabled: t }) => [E(e.$slots, "annotator-action-undo", x(y({ disabled: t })), void 0, !0)]),
1232
- "annotator-action-redo": O(({ disabled: t }) => [E(e.$slots, "annotator-action-redo", x(y({ disabled: t })), void 0, !0)]),
1233
- "annotator-action-delete": O(({ disabled: t }) => [E(e.$slots, "annotator-action-delete", x(y({ disabled: t })), void 0, !0)]),
1234
- _: 3
1235
- }, 8, [
1236
- "svgRef",
1237
- "backgroundColor",
1238
- "color",
1239
- "active",
1240
- "isCursorPointer"
1241
- ])) : h("", !0),
1242
- Tn.value ? (C(), g("div", {
1243
- key: 2,
1244
- ref_key: "noTitle",
1245
- ref: Yt,
1246
- class: "vue-data-ui-no-title-space",
1247
- style: "height:36px; width: 100%;background:transparent"
1248
- }, null, 512)) : h("", !0),
1249
- F.value.style.title.text ? (C(), g("div", {
1250
- key: 3,
1251
- ref_key: "chartTitle",
1252
- ref: Gt,
1253
- style: "width:100%;background:transparent"
1254
- }, [(C(), m(ve, {
1255
- key: `title_${Qt.value}`,
1256
- config: {
1257
- title: {
1258
- cy: "candlestick-div-title",
1259
- ...F.value.style.title
1260
- },
1261
- subtitle: {
1262
- cy: "candlestick-div-subtitle",
1263
- ...F.value.style.title.subtitle
1264
- }
1265
- }
1266
- }, null, 8, ["config"]))], 512)) : h("", !0),
1267
- F.value.userOptions.show && Bt.value && (D(hn) || D(pn)) ? (C(), m(D(Nt), {
1268
- ref_key: "userOptionsRef",
1269
- ref: nn,
1270
- key: `user_options_${Wt.value}`,
1271
- backgroundColor: F.value.style.backgroundColor,
1272
- color: F.value.style.color,
1273
- isImaging: D(Sn),
1274
- isPrinting: D(xn),
1275
- uid: j.value,
1276
- hasTooltip: F.value.userOptions.buttons.tooltip && F.value.style.tooltip.show,
1277
- hasPdf: F.value.userOptions.buttons.pdf,
1278
- hasImg: F.value.userOptions.buttons.img,
1279
- hasSvg: F.value.userOptions.buttons.svg,
1280
- hasXls: F.value.userOptions.buttons.csv,
1281
- hasTable: F.value.userOptions.buttons.table,
1282
- hasFullscreen: F.value.userOptions.buttons.fullscreen,
1283
- hasAltCopy: F.value.userOptions.buttons.altCopy,
1284
- isFullscreen: $.value,
1285
- isTooltip: H.value.showTooltip,
1286
- titles: { ...F.value.userOptions.buttonTitles },
1287
- chartElement: N.value,
1288
- position: F.value.userOptions.position,
1289
- hasAnnotator: F.value.userOptions.buttons.annotator,
1290
- isAnnotation: yr.value,
1291
- callbacks: F.value.userOptions.callbacks,
1292
- printScale: F.value.userOptions.print.scale,
1293
- tableDialog: F.value.table.useDialog,
1294
- isCursorPointer: un.value,
1295
- onToggleFullscreen: gr,
1296
- onGeneratePdf: D(Cn),
1297
- onGenerateCsv: mr,
1298
- onGenerateImage: Pr,
1299
- onGenerateSvg: kr,
1300
- onToggleTable: _r,
1301
- onToggleTooltip: vr,
1302
- onToggleAnnotator: br,
1303
- onCopyAlt: Fr,
1304
- style: S({ visibility: D(hn) ? D(pn) ? "visible" : "hidden" : "visible" })
1305
- }, De({ _: 2 }, [
1306
- e.$slots.menuIcon ? {
1307
- name: "menuIcon",
1308
- fn: O(({ isOpen: t, color: n }) => [E(e.$slots, "menuIcon", x(y({
1309
- isOpen: t,
1310
- color: n
1311
- })), void 0, !0)]),
1312
- key: "0"
1313
- } : void 0,
1314
- e.$slots.optionTooltip ? {
1315
- name: "optionTooltip",
1316
- fn: O(() => [E(e.$slots, "optionTooltip", {}, void 0, !0)]),
1317
- key: "1"
1318
- } : void 0,
1319
- e.$slots.optionPdf ? {
1320
- name: "optionPdf",
1321
- fn: O(() => [E(e.$slots, "optionPdf", {}, void 0, !0)]),
1322
- key: "2"
1323
- } : void 0,
1324
- e.$slots.optionCsv ? {
1325
- name: "optionCsv",
1326
- fn: O(() => [E(e.$slots, "optionCsv", {}, void 0, !0)]),
1327
- key: "3"
1328
- } : void 0,
1329
- e.$slots.optionImg ? {
1330
- name: "optionImg",
1331
- fn: O(() => [E(e.$slots, "optionImg", {}, void 0, !0)]),
1332
- key: "4"
1333
- } : void 0,
1334
- e.$slots.optionSvg ? {
1335
- name: "optionSvg",
1336
- fn: O(() => [E(e.$slots, "optionSvg", {}, void 0, !0)]),
1337
- key: "5"
1338
- } : void 0,
1339
- e.$slots.optionTable ? {
1340
- name: "optionTable",
1341
- fn: O(() => [E(e.$slots, "optionTable", {}, void 0, !0)]),
1342
- key: "6"
1343
- } : void 0,
1344
- e.$slots.optionFullscreen ? {
1345
- name: "optionFullscreen",
1346
- fn: O(({ toggleFullscreen: t, isFullscreen: n }) => [E(e.$slots, "optionFullscreen", x(y({
1347
- toggleFullscreen: t,
1348
- isFullscreen: n
1349
- })), void 0, !0)]),
1350
- key: "7"
1351
- } : void 0,
1352
- e.$slots.optionAnnotator ? {
1353
- name: "optionAnnotator",
1354
- fn: O(({ toggleAnnotator: t, isAnnotator: n }) => [E(e.$slots, "optionAnnotator", x(y({
1355
- toggleAnnotator: t,
1356
- isAnnotator: n
1357
- })), void 0, !0)]),
1358
- key: "8"
1359
- } : void 0,
1360
- e.$slots.optionAltCopy ? {
1361
- name: "optionAltCopy",
1362
- fn: O(({ altCopy: t }) => [E(e.$slots, "optionAltCopy", x(y({ altCopy: t })), void 0, !0)]),
1363
- key: "9"
1364
- } : void 0,
1365
- e.$slots["custom-menu-before"] ? {
1366
- name: "custom-menu-before",
1367
- fn: O(() => [E(e.$slots, "custom-menu-before", {}, void 0, !0)]),
1368
- key: "10"
1369
- } : void 0,
1370
- e.$slots["custom-menu-after"] ? {
1371
- name: "custom-menu-after",
1372
- fn: O(() => [E(e.$slots, "custom-menu-after", {}, void 0, !0)]),
1373
- key: "11"
1374
- } : void 0
1375
- ]), 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),
1376
- _("div", Ue, [(C(), g("svg", {
1377
- ref_key: "svgRef",
1378
- ref: R,
1379
- xmlns: D(re),
1380
- "aria-describedby": `chart-instructions-${j.value}`,
1381
- class: b({
1382
- "vue-data-ui-fullscreen--on": $.value,
1383
- "vue-data-ui-fulscreen--off": !$.value
1384
- }),
1385
- viewBox: `0 0 ${z.value.width <= 0 ? 10 : z.value.width} ${z.value.height <= 0 ? 10 : z.value.height}`,
1386
- style: S(`max-width:100%;overflow:visible;background:transparent;color:${F.value.style.color}`),
1387
- tabindex: "0",
1388
- onFocus: Ir,
1389
- onBlur: Lr,
1390
- onKeydown: Rr
1391
- }, [
1392
- ke(D(Pt)),
1393
- e.$slots["chart-background"] ? (C(), g("foreignObject", {
1394
- key: 0,
1395
- x: W.value.left,
1396
- y: W.value.top,
1397
- width: Math.max(.1, W.value.width),
1398
- height: Math.max(.1, W.value.height),
1399
- style: { pointerEvents: "none" }
1400
- }, [E(e.$slots, "chart-background", {}, void 0, !0)], 8, Ge)) : h("", !0),
1401
- Z.value.length > 0 ? (C(), g("g", Ke, [
1402
- _("defs", null, [_("linearGradient", {
1403
- id: `bearish_gradient_${j.value}`,
1404
- x2: "0%",
1405
- y2: "100%"
1406
- }, [
1407
- _("stop", {
1408
- offset: "0%",
1409
- "stop-color": F.value.style.layout.candle.colors.bearish
1410
- }, null, 8, Je),
1411
- _("stop", {
1412
- offset: "50%",
1413
- "stop-color": `${D(a)(F.value.style.layout.candle.colors.bearish, .02)}DE`
1414
- }, null, 8, Ye),
1415
- _("stop", {
1416
- offset: "100%",
1417
- "stop-color": `${D(a)(F.value.style.layout.candle.colors.bearish, .05)}66`
1418
- }, null, 8, Xe)
1419
- ], 8, qe), _("linearGradient", {
1420
- id: `bullish_gradient_${j.value}`,
1421
- x2: "0%",
1422
- y2: "100%"
1423
- }, [
1424
- _("stop", {
1425
- offset: "0%",
1426
- "stop-color": F.value.style.layout.candle.colors.bullish
1427
- }, null, 8, Qe),
1428
- _("stop", {
1429
- offset: "50%",
1430
- "stop-color": `${D(a)(F.value.style.layout.candle.colors.bullish, .02)}DE`
1431
- }, null, 8, $e),
1432
- _("stop", {
1433
- offset: "100%",
1434
- "stop-color": `${D(a)(F.value.style.layout.candle.colors.bullish, .05)}66`
1435
- }, null, 8, et)
1436
- ], 8, Ze)]),
1437
- F.value.style.layout.grid.show ? (C(), g("g", tt, [
1438
- _("line", {
1439
- x1: U.value ? W.value.right : W.value.left,
1440
- x2: U.value ? W.value.right : W.value.left,
1441
- y1: W.value.top,
1442
- y2: W.value.bottom,
1443
- stroke: F.value.style.layout.grid.stroke,
1444
- "stroke-width": F.value.style.layout.grid.strokeWidth,
1445
- "stroke-linecap": "round"
1446
- }, null, 8, nt),
1447
- _("line", {
1448
- x1: W.value.left,
1449
- x2: W.value.right,
1450
- y1: W.value.bottom,
1451
- y2: W.value.bottom,
1452
- stroke: F.value.style.layout.grid.stroke,
1453
- "stroke-width": F.value.style.layout.grid.strokeWidth,
1454
- "stroke-linecap": "round"
1455
- }, null, 8, rt),
1456
- F.value.style.layout.grid.horizontalLines.show ? (C(!0), g(f, { key: 0 }, T(Un.value, (e) => (C(), g("line", {
1457
- x1: W.value.left,
1458
- x2: W.value.right,
1459
- y1: e.y,
1460
- y2: e.y,
1461
- stroke: F.value.style.layout.grid.horizontalLines.stroke,
1462
- "stroke-width": F.value.style.layout.grid.horizontalLines.strokeWidth,
1463
- "stroke-dasharray": F.value.style.layout.grid.horizontalLines.strokeDasharray,
1464
- "stroke-linecap": "round"
1465
- }, null, 8, it))), 256)) : h("", !0),
1466
- F.value.style.layout.grid.verticalLines.show ? (C(!0), g(f, { key: 1 }, T(er.value, (e, t) => (C(), g("g", null, [e.text ? (C(), g("line", {
1467
- key: 0,
1468
- x1: W.value.left + Y.value * t + Y.value / 2,
1469
- x2: W.value.left + Y.value * t + Y.value / 2,
1470
- y1: W.value.top,
1471
- y2: W.value.bottom,
1472
- stroke: F.value.style.layout.grid.verticalLines.stroke,
1473
- "stroke-width": F.value.style.layout.grid.verticalLines.strokeWidth,
1474
- "stroke-dasharray": F.value.style.layout.grid.verticalLines.strokeDasharray,
1475
- "stroke-linecap": "round"
1476
- }, null, 8, at)) : h("", !0)]))), 256)) : h("", !0),
1477
- F.value.style.layout.grid.xAxis.ticks.show ? (C(!0), g(f, { key: 2 }, T(er.value, (e, t) => (C(), g("g", null, [e.text ? (C(), g("line", {
1478
- key: 0,
1479
- x1: W.value.left + Y.value * t + Y.value / 2,
1480
- x2: W.value.left + Y.value * t + Y.value / 2,
1481
- y1: W.value.bottom,
1482
- y2: W.value.bottom + 3,
1483
- stroke: F.value.style.layout.grid.stroke,
1484
- "stroke-width": F.value.style.layout.grid.strokeWidth,
1485
- "stroke-linecap": "round"
1486
- }, null, 8, ot)) : h("", !0)]))), 256)) : h("", !0)
1487
- ])) : h("", !0),
1488
- F.value.style.layout.grid.yAxis.dataLabels.show ? (C(), g("g", {
1489
- key: 1,
1490
- ref_key: "scaleLabels",
1491
- ref: $t
1492
- }, [(C(!0), g(f, null, T(Un.value, (e, t) => (C(), g("g", null, [e.value >= X.value.min && e.value <= X.value.max ? (C(), g("line", {
1493
- key: 0,
1494
- x1: U.value ? W.value.right : W.value.left,
1495
- x2: U.value ? W.value.right + 5 : W.value.left - 5,
1496
- y1: e.y,
1497
- y2: e.y,
1498
- stroke: F.value.style.layout.grid.stroke,
1499
- "stroke-width": F.value.style.layout.grid.strokeWidth,
1500
- "stroke-linecap": "round"
1501
- }, null, 8, st)) : h("", !0), e.value >= X.value.min && e.value <= X.value.max ? (C(), g("text", {
1502
- key: 1,
1503
- 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,
1504
- y: e.y + z.value.yAxisFontSize / 3,
1505
- "text-anchor": U.value ? "start" : "end",
1506
- "font-size": z.value.yAxisFontSize,
1507
- fill: F.value.style.layout.grid.yAxis.dataLabels.color,
1508
- "font-weight": F.value.style.layout.grid.yAxis.dataLabels.bold ? "bold" : "normal"
1509
- }, Ie(D(u)({
1510
- p: F.value.style.layout.grid.yAxis.dataLabels.prefix,
1511
- v: e.value,
1512
- s: F.value.style.layout.grid.yAxis.dataLabels.suffix,
1513
- r: F.value.style.layout.grid.yAxis.dataLabels.roundingValue
1514
- })), 9, ct)) : h("", !0)]))), 256))], 512)) : h("", !0),
1515
- F.value.style.layout.grid.xAxis.dataLabels.show && !F.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? (C(), g("g", {
1516
- key: 2,
1517
- ref_key: "timeLabelsEls",
1518
- ref: en
1519
- }, [(C(!0), g(f, null, T(Wn.value, (e, t) => (C(), g("g", null, [_("text", {
1520
- class: "vue-data-ui-time-label",
1521
- 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})`,
1522
- "text-anchor": F.value.style.layout.grid.xAxis.dataLabels.rotation > 0 ? "start" : F.value.style.layout.grid.xAxis.dataLabels.rotation < 0 ? "end" : "middle",
1523
- "font-size": z.value.xAxisFontSize,
1524
- fill: F.value.style.layout.grid.xAxis.dataLabels.color,
1525
- "font-weight": F.value.style.layout.grid.xAxis.dataLabels.bold ? "bold" : "normal"
1526
- }, Ie(e), 9, lt)]))), 256))], 512)) : h("", !0),
1527
- F.value.style.layout.grid.xAxis.dataLabels.show && F.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? (C(), g("g", {
1528
- key: 3,
1529
- ref_key: "timeLabelsEls",
1530
- ref: en
1531
- }, [(C(!0), g(f, null, T(er.value, (e, t) => (C(), g("g", null, [_("text", {
1532
- class: "vue-data-ui-time-label",
1533
- 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})`,
1534
- "text-anchor": F.value.style.layout.grid.xAxis.dataLabels.rotation > 0 ? "start" : F.value.style.layout.grid.xAxis.dataLabels.rotation < 0 ? "end" : "middle",
1535
- "font-size": z.value.xAxisFontSize,
1536
- fill: F.value.style.layout.grid.xAxis.dataLabels.color,
1537
- "font-weight": F.value.style.layout.grid.xAxis.dataLabels.bold ? "bold" : "normal"
1538
- }, Ie(e?.text ?? ""), 9, ut)]))), 256))], 512)) : h("", !0),
1539
- 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, [
1540
- _("rect", {
1541
- x: e.open.x - F.value.style.layout.wick.strokeWidth / 2,
1542
- y: e.high.y,
1543
- width: F.value.style.layout.wick.strokeWidth,
1544
- height: Math.abs(e.high.y - e.low.y),
1545
- fill: F.value.style.layout.wick.stroke,
1546
- stroke: "none",
1547
- rx: F.value.style.layout.wick.strokeWidth / 2,
1548
- class: b({ "vue-data-ui-transition": A.value && !D(I) })
1549
- }, null, 10, dt),
1550
- F.value.style.layout.wick.extremity.shape === "circle" ? (C(), g("g", ft, [_("circle", {
1551
- cx: e.high.x,
1552
- cy: e.high.y,
1553
- r: F.value.style.layout.wick.extremity.size === "auto" ? Y.value / 20 : F.value.style.layout.wick.extremity.size,
1554
- fill: F.value.style.layout.wick.extremity.color,
1555
- class: b({ "vue-data-ui-transition": A.value && !D(I) })
1556
- }, null, 10, pt), _("circle", {
1557
- cx: e.low.x,
1558
- cy: e.low.y,
1559
- r: F.value.style.layout.wick.extremity.size === "auto" ? Y.value / 20 : F.value.style.layout.wick.extremity.size,
1560
- fill: F.value.style.layout.wick.extremity.color,
1561
- class: b({ "vue-data-ui-transition": A.value && !D(I) })
1562
- }, null, 10, mt)])) : h("", !0),
1563
- F.value.style.layout.wick.extremity.shape === "line" ? (C(), g("g", ht, [_("rect", {
1564
- 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,
1565
- y: e.high.y - F.value.style.layout.wick.strokeWidth / 2,
1566
- 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)),
1567
- height: F.value.style.layout.wick.strokeWidth,
1568
- rx: F.value.style.layout.wick.strokeWidth / 2,
1569
- fill: F.value.style.layout.wick.extremity.color,
1570
- stroke: "none",
1571
- class: b({ "vue-data-ui-transition": A.value && !D(I) })
1572
- }, null, 10, gt), _("rect", {
1573
- 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,
1574
- y: e.low.y - F.value.style.layout.wick.strokeWidth / 2,
1575
- 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)),
1576
- height: F.value.style.layout.wick.strokeWidth,
1577
- fill: F.value.style.layout.wick.extremity.color,
1578
- stroke: "none",
1579
- rx: F.value.style.layout.wick.strokeWidth / 2,
1580
- class: b({ "vue-data-ui-transition": A.value && !D(I) })
1581
- }, null, 10, _t)])) : h("", !0)
1582
- ]))), 256))]), _("g", null, [(C(!0), g(f, null, T(Z.value, (e, t) => (C(), g("rect", {
1583
- x: e.open.x - Y.value / 2 + Y.value * (1 - F.value.style.layout.candle.widthRatio) / 2,
1584
- y: e.isBullish ? e.close.y : e.open.y,
1585
- height: Math.abs(e.close.y - e.open.y) <= 0 ? 1e-4 : Math.abs(e.close.y - e.open.y),
1586
- width: Y.value * F.value.style.layout.candle.widthRatio <= 0 ? 1e-4 : Y.value * F.value.style.layout.candle.widthRatio,
1587
- fill: F.value.style.layout.candle.gradient.underlayer,
1588
- rx: F.value.style.layout.candle.borderRadius,
1589
- stroke: "none",
1590
- class: b({ "vue-data-ui-transition": A.value && !D(I) })
1591
- }, null, 10, vt))), 256)), (C(!0), g(f, null, T(Z.value, (e, t) => (C(), g("rect", {
1592
- x: e.open.x - Y.value / 2 + Y.value * (1 - F.value.style.layout.candle.widthRatio) / 2,
1593
- y: e.isBullish ? e.close.y : e.open.y,
1594
- height: Math.abs(e.close.y - e.open.y) <= 0 ? 1e-4 : Math.abs(e.close.y - e.open.y),
1595
- width: Y.value * F.value.style.layout.candle.widthRatio <= 0 ? 1e-4 : Y.value * F.value.style.layout.candle.widthRatio,
1596
- 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,
1597
- rx: F.value.style.layout.candle.borderRadius,
1598
- stroke: F.value.style.layout.candle.stroke,
1599
- "stroke-width": F.value.style.layout.candle.strokeWidth,
1600
- "stroke-linecap": "round",
1601
- "stroke-linejoin": "round",
1602
- class: b({ "vue-data-ui-transition": A.value && !D(I) })
1603
- }, null, 10, yt))), 256))])], 64)) : h("", !0),
1604
- F.value.type === "ohlc" ? (C(!0), g(f, { key: 5 }, T(Z.value, (e, t) => (C(), g("g", null, [_("path", {
1605
- 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}`,
1606
- stroke: e.isBullish ? F.value.style.layout.candle.colors.bullish : F.value.style.layout.candle.colors.bearish,
1607
- "stroke-width": 1
1608
- }, null, 8, bt)]))), 256)) : h("", !0),
1609
- _("g", null, [(C(!0), g(f, null, T(Z.value, (e, t) => (C(), g("rect", {
1610
- x: W.value.left + t * Y.value,
1611
- y: W.value.top,
1612
- height: W.value.height <= 0 ? 1e-4 : W.value.height,
1613
- width: Y.value <= 0 ? 1e-4 : Y.value,
1614
- fill: M.value === t || rn.value === t ? D(n)(F.value.style.layout.selector.color, F.value.style.layout.selector.opacity) : "transparent",
1615
- onMouseover: () => ar(t, e, "pointer"),
1616
- onMouseleave: () => ir(t, e),
1617
- onClick: () => rr(t, e)
1618
- }, null, 40, xt))), 256))])
1619
- ])) : h("", !0),
1620
- jn.value ? (C(), g("rect", Ae({ key: 2 }, An.value, {
1621
- "data-start": K.value.start,
1622
- "data-end": K.value.end
1623
- }), null, 16, St)) : h("", !0),
1624
- E(e.$slots, "svg", { svg: {
1625
- ...z.value,
1626
- data: Z.value,
1627
- drawingArea: W.value,
1628
- isPrintingImg: D(xn) || D(Sn) || an.value,
1629
- isPrintingSvg: on.value
1630
- } }, void 0, !0)
1631
- ], 46, We)), e.$slots.hint ? (C(), g("div", Ct, [E(e.$slots, "hint", x(y({
1632
- hint: F.value.a11y.translations.keyboardNavigation,
1633
- isVisible: ln.value
1634
- })), void 0, !0)])) : h("", !0)]),
1635
- e.$slots.watermark ? (C(), g("div", wt, [E(e.$slots, "watermark", x(y({ isPrinting: D(xn) || D(Sn) || an.value || on.value })), void 0, !0)])) : h("", !0),
1636
- F.value.style.zoom.show && G.value > 6 && Bt.value && ur.value ? (C(), m(Se, {
1637
- key: 6,
1638
- ref_key: "chartSlicer",
1639
- ref: qt,
1640
- "data-dom-to-png-ignore-layout": "",
1641
- allMinimaps: Vn.value,
1642
- background: F.value.style.zoom.color,
1643
- borderColor: F.value.style.backgroundColor,
1644
- customFormat: F.value.style.zoom.customFormat,
1645
- cutNullValues: !1,
1646
- enableRangeHandles: F.value.style.zoom.enableRangeHandles,
1647
- enableSelectionDrag: F.value.style.zoom.enableSelectionDrag,
1648
- end: K.value.end,
1649
- focusOnDrag: F.value.style.zoom.focusOnDrag,
1650
- focusRangeRatio: F.value.style.zoom.focusRangeRatio,
1651
- fontSize: F.value.style.zoom.fontSize,
1652
- immediate: !F.value.style.zoom.preview.enable,
1653
- inputColor: F.value.style.zoom.color,
1654
- isPreview: jn.value,
1655
- labelLeft: tr.value.start || "",
1656
- labelRight: tr.value.end || "",
1657
- max: G.value,
1658
- min: 0,
1659
- minimap: F.value.style.zoom.minimap.show ? D(L).map((e) => e[2]) : [],
1660
- minimapCompact: F.value.style.zoom.minimap.compact,
1661
- minimapFrameColor: F.value.style.zoom.minimap.frameColor,
1662
- minimapIndicatorColor: F.value.style.zoom.minimap.indicatorColor,
1663
- minimapMerged: !1,
1664
- minimapSelectedColor: F.value.style.zoom.minimap.selectedColor,
1665
- minimapSelectedColorOpacity: F.value.style.zoom.minimap.selectedColorOpacity,
1666
- minimapSelectedIndex: M.value,
1667
- minimapSelectionRadius: 1,
1668
- preciseLabels: $n.value,
1669
- refreshEndPoint: F.value.style.zoom.endIndex === null ? G.value : F.value.style.zoom.endIndex + 1,
1670
- refreshStartPoint: F.value.style.zoom.startIndex === null ? 0 : F.value.style.zoom.startIndex,
1671
- selectColor: F.value.style.zoom.highlightColor,
1672
- selectedSeries: D(L),
1673
- smoothMinimap: !1,
1674
- start: K.value.start,
1675
- textColor: F.value.style.color,
1676
- timeLabels: Gn.value,
1677
- usePreciseLabels: F.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable && !F.value.style.zoom.useDefaultFormat,
1678
- useResetSlot: F.value.style.zoom.useResetSlot,
1679
- valueEnd: K.value.end,
1680
- valueStart: K.value.start,
1681
- verticalHandles: F.value.style.zoom.minimap.verticalHandles,
1682
- minScale: F.value.style.layout.grid.yAxis.scale.min,
1683
- maxScale: F.value.style.layout.grid.yAxis.scale.max,
1684
- maxWidth: F.value.style.zoom.maxWidth,
1685
- additionalMinimapHeight: F.value.style.zoom.minimap.additionalHeight,
1686
- handleType: F.value.style.zoom.minimap.handleType,
1687
- handleIconColor: F.value.style.zoom.minimap.handleIconColor,
1688
- handleBorderWidth: F.value.style.zoom.minimap.handleBorderWidth,
1689
- handleBorderColor: F.value.style.zoom.minimap.handleBorderColor,
1690
- handleFill: F.value.style.zoom.minimap.handleFill,
1691
- handleWidth: F.value.style.zoom.minimap.handleWidth,
1692
- "onUpdate:end": Mr,
1693
- "onUpdate:start": jr,
1694
- onTrapMouse: Ar,
1695
- onReset: cr,
1696
- onFutureEnd: t[0] ||= (e) => Mn("end", e),
1697
- onFutureStart: t[1] ||= (e) => Mn("start", e)
1698
- }, {
1699
- "reset-action": O(({ reset: t }) => [E(e.$slots, "reset-action", x(y({ reset: t })), void 0, !0)]),
1700
- slotMap: O(({ height: e, unitW: t }) => [(C(!0), g(f, null, T(Bn.value({
1701
- minimapH: e,
1702
- unitW: t
1703
- }), (e, n) => (C(), g("g", null, [_("path", {
1704
- d: `M ${e.high.x},${e.high.y} ${e.low.x},${e.low.y}`,
1705
- stroke: e.isBullish ? F.value.style.layout.candle.colors.bullish : F.value.style.layout.candle.colors.bearish,
1706
- "stroke-width": 1,
1707
- style: S({ opacity: n >= q.value.start && n <= q.value.end ? 1 : .6 })
1708
- }, null, 12, Tt), _("path", {
1709
- d: `M ${e.open.x},${e.open.y} ${e.close.x},${e.close.y}`,
1710
- stroke: e.isBullish ? F.value.style.layout.candle.colors.bullish : F.value.style.layout.candle.colors.bearish,
1711
- "stroke-width": Math.min(6, t / 1.5),
1712
- style: S({ opacity: n >= q.value.start && n <= q.value.end ? 1 : .6 })
1713
- }, null, 12, Et)]))), 256))]),
1714
- _: 3
1715
- }, 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),
1716
- _("div", {
1717
- ref_key: "chartLegend",
1718
- ref: Kt
1719
- }, [E(e.$slots, "legend", { legend: Z.value }, void 0, !0)], 512),
1720
- e.$slots.source ? (C(), g("div", {
1721
- key: 7,
1722
- ref_key: "source",
1723
- ref: Jt,
1724
- dir: "auto"
1725
- }, [E(e.$slots, "source", {}, void 0, !0)], 512)) : h("", !0),
1726
- ke(D(kt), {
1727
- teleportTo: F.value.style.tooltip.teleportTo,
1728
- show: H.value.showTooltip && Ht.value,
1729
- backgroundColor: F.value.style.tooltip.backgroundColor,
1730
- color: F.value.style.tooltip.color,
1731
- borderRadius: F.value.style.tooltip.borderRadius,
1732
- borderColor: F.value.style.tooltip.borderColor,
1733
- borderWidth: F.value.style.tooltip.borderWidth,
1734
- fontSize: F.value.style.tooltip.fontSize,
1735
- backgroundOpacity: F.value.style.tooltip.backgroundOpacity,
1736
- position: F.value.style.tooltip.position,
1737
- offsetX: F.value.style.tooltip.offsetX,
1738
- offsetY: F.value.style.tooltip.offsetY,
1739
- parent: N.value,
1740
- content: Ut.value,
1741
- isFullscreen: $.value,
1742
- isCustom: F.value.style.tooltip.customFormat && typeof F.value.style.tooltip.customFormat == "function",
1743
- smooth: F.value.style.tooltip.smooth,
1744
- backdropFilter: F.value.style.tooltip.backdropFilter,
1745
- smoothForce: F.value.style.tooltip.smoothForce,
1746
- smoothSnapThreshold: F.value.style.tooltip.smoothSnapThreshold,
1747
- isA11yMode: cn.value === "keyboard",
1748
- a11yPosition: sn.value
1749
- }, {
1750
- "tooltip-before": O(() => [E(e.$slots, "tooltip-before", x(y({ ...nr.value })), void 0, !0)]),
1751
- tooltip: O(() => [E(e.$slots, "tooltip", x(y({ ...nr.value })), void 0, !0)]),
1752
- "tooltip-after": O(() => [E(e.$slots, "tooltip-after", x(y({ ...nr.value })), void 0, !0)]),
1753
- _: 3
1754
- }, 8, [
1755
- "teleportTo",
1756
- "show",
1757
- "backgroundColor",
1758
- "color",
1759
- "borderRadius",
1760
- "borderColor",
1761
- "borderWidth",
1762
- "fontSize",
1763
- "backgroundOpacity",
1764
- "position",
1765
- "offsetX",
1766
- "offsetY",
1767
- "parent",
1768
- "content",
1769
- "isFullscreen",
1770
- "isCustom",
1771
- "smooth",
1772
- "backdropFilter",
1773
- "smoothForce",
1774
- "smoothSnapThreshold",
1775
- "isA11yMode",
1776
- "a11yPosition"
1777
- ]),
1778
- Bt.value && F.value.userOptions.buttons.table ? (C(), m(Pe(wr.value.component), Ae({ key: 8 }, wr.value.props, {
1779
- ref_key: "tableUnit",
1780
- ref: tn,
1781
- onClose: Tr
1782
- }), De({
1783
- content: O(() => [(C(), m(D(jt), {
1784
- key: `table_${Zt.value}`,
1785
- colNames: hr.value.colNames,
1786
- head: hr.value.head,
1787
- body: hr.value.body,
1788
- config: hr.value.config,
1789
- title: F.value.table.useDialog ? "" : wr.value.title,
1790
- withCloseButton: !F.value.table.useDialog,
1791
- isCursorPointer: un.value,
1792
- onClose: Tr
1793
- }, {
1794
- th: O(({ th: e }) => [Oe(Ie(e), 1)]),
1795
- td: O(({ td: e }) => [_("div", { innerHTML: e }, null, 8, Dt)]),
1796
- _: 1
1797
- }, 8, [
1798
- "colNames",
1799
- "head",
1800
- "body",
1801
- "config",
1802
- "title",
1803
- "withCloseButton",
1804
- "isCursorPointer"
1805
- ]))]),
1806
- _: 2
1807
- }, [F.value.table.useDialog ? {
1808
- name: "title",
1809
- fn: O(() => [Oe(Ie(wr.value.title), 1)]),
1810
- key: "0"
1811
- } : void 0, F.value.table.useDialog ? {
1812
- name: "actions",
1813
- fn: O(() => [_("button", {
1814
- tabindex: "0",
1815
- class: "vue-ui-user-options-button",
1816
- onClick: t[2] ||= (e) => mr(F.value.userOptions.callbacks.csv),
1817
- style: S({ cursor: un.value ? "pointer" : "default" })
1818
- }, [ke(D(Ot), {
1819
- name: "fileCsv",
1820
- stroke: wr.value.props.color
1821
- }, null, 8, ["stroke"])], 4)]),
1822
- key: "1"
1823
- } : void 0]), 1040)) : h("", !0),
1824
- E(e.$slots, "skeleton", {}, () => [D(I) ? (C(), m(fe, { key: 0 })) : h("", !0)], !0)
1825
- ], 46, Ve));
1826
- }
1827
- }, [["__scopeId", "data-v-732ff0a3"]]);
1828
- //#endregion
1829
- export { Be as n, Ot as t };