vue-data-ui 3.0.0-next.0 → 3.0.0-next.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (98) hide show
  1. package/README.md +92 -66
  2. package/dist/{Arrow-CzFtSJ1v.js → Arrow-BKKETqRi.js} +1 -1
  3. package/dist/{BaseDraggableDialog-0S5xhs2P.js → BaseDraggableDialog-Duz4Bd3A.js} +2 -2
  4. package/dist/{BaseIcon-DoDjTdD5.js → BaseIcon-BAHAKjob.js} +1 -1
  5. package/dist/{ColorPicker-BGRchgqQ.js → ColorPicker-oPTO1J9Q.js} +2 -2
  6. package/dist/{DataTable-BBbOgI-a.js → DataTable-vByThHdN.js} +2 -2
  7. package/dist/{Legend-Q4bOb-Nf.js → Legend-CIElSUHU.js} +11 -11
  8. package/dist/{NonSvgPenAndPaper-DNKRvsBB.js → NonSvgPenAndPaper-CsY6Bf4e.js} +3 -3
  9. package/dist/{PackageVersion-D0VPY8-5.js → PackageVersion-B0wGS6pw.js} +1 -1
  10. package/dist/{PenAndPaper-DhBJsnob.js → PenAndPaper-7o0xS-d4.js} +32 -32
  11. package/dist/{Shape-DbsLJ-SE.js → Shape-Blrp5ZfP.js} +1 -1
  12. package/dist/{Slicer-DZEFp2GU.js → Slicer-CcM8hzCn.js} +2 -2
  13. package/dist/{SparkTooltip-CoOJR62O.js → SparkTooltip-iaouYun8.js} +1 -1
  14. package/dist/{Title-D29apS4l.js → Title-CWxjC3bE.js} +1 -1
  15. package/dist/{Tooltip-hVZUY_s5.js → Tooltip-Cq9HywcX.js} +1 -1
  16. package/dist/{UserOptions-Bdit7AWO.js → UserOptions-BEBaPSlU.js} +137 -129
  17. package/dist/{dom-to-png-BdPIrHOF.js → dom-to-png-CrAOuxmd.js} +1 -1
  18. package/dist/img-D3JvqNF8.js +33 -0
  19. package/dist/{index-DMqAxz7R.js → index-BSa4GlHG.js} +30 -8
  20. package/dist/pdf-DROWzopj.js +58 -0
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +1018 -166
  23. package/dist/types/vue-data-ui.d.ts +1018 -166
  24. package/dist/{useNestedProp-YgN3FV_8.js → useNestedProp-uR74_CFG.js} +1 -1
  25. package/dist/{usePrinter-COkTjv6C.js → usePrinter-j3g1L2nh.js} +2 -2
  26. package/dist/vue-data-ui-BzMRz9Un.js +314 -0
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-Ojgjl20n.js → vue-ui-3d-bar-BAOGEe-m.js} +261 -245
  29. package/dist/{vue-ui-accordion-P6eFHGQp.js → vue-ui-accordion-DzF-SPaZ.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-IcMpAhiw.js → vue-ui-age-pyramid-BRdQ44O4.js} +233 -217
  31. package/dist/{vue-ui-annotator-Bk7d86-x.js → vue-ui-annotator-mjIKrhYa.js} +2 -2
  32. package/dist/{vue-ui-bullet-DCvWbCPk.js → vue-ui-bullet-CLYmLvSB.js} +172 -156
  33. package/dist/{vue-ui-candlestick-DCf-88Yv.js → vue-ui-candlestick-BFLmoEEN.js} +271 -254
  34. package/dist/{vue-ui-carousel-table-DEsl0XUh.js → vue-ui-carousel-table-V89TMa5p.js} +17 -16
  35. package/dist/{vue-ui-chestnut-Cg10-3wu.js → vue-ui-chestnut-C7eNjkFo.js} +418 -402
  36. package/dist/{vue-ui-chord-BWYzR6vf.js → vue-ui-chord-BuYDLE7K.js} +256 -240
  37. package/dist/{vue-ui-circle-pack-CO2Ra2-5.js → vue-ui-circle-pack-CCMbsOpk.js} +234 -218
  38. package/dist/{vue-ui-cursor-BbYHJDbV.js → vue-ui-cursor-BrKIImfp.js} +2 -2
  39. package/dist/{vue-ui-dashboard-DkCnNuse.js → vue-ui-dashboard-WMKjx3iE.js} +62 -62
  40. package/dist/{vue-ui-digits-DRsphHt2.js → vue-ui-digits-BoYPIuXn.js} +2 -2
  41. package/dist/vue-ui-donut-DJVqqXEb.js +1338 -0
  42. package/dist/{vue-ui-donut-evolution-B5F2-0bh.js → vue-ui-donut-evolution-DSG8NUG0.js} +370 -357
  43. package/dist/{vue-ui-dumbbell-DqqSxoSh.js → vue-ui-dumbbell-BMveoLd_.js} +216 -200
  44. package/dist/{vue-ui-flow-CTIcUJgV.js → vue-ui-flow-Dnsik-8f.js} +217 -201
  45. package/dist/{vue-ui-funnel-k7KD7Xoc.js → vue-ui-funnel-CQ0nHCvy.js} +213 -197
  46. package/dist/{vue-ui-galaxy-C9EHaP4I.js → vue-ui-galaxy-D5L31IXm.js} +215 -202
  47. package/dist/{vue-ui-gauge-CBiM_1-n.js → vue-ui-gauge-BnuDe4Wj.js} +220 -204
  48. package/dist/{vue-ui-gizmo-CAc7b2oK.js → vue-ui-gizmo-DYYw-JEs.js} +3 -3
  49. package/dist/{vue-ui-heatmap-B3ubrP2v.js → vue-ui-heatmap-9KJYiKzE.js} +244 -224
  50. package/dist/{vue-ui-history-plot-XCqccO3b.js → vue-ui-history-plot-QOaVWh5L.js} +268 -252
  51. package/dist/{vue-ui-kpi-DTGMDjaZ.js → vue-ui-kpi-EtTBwHGS.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-Cn_7nvVq.js → vue-ui-mini-loader-CRnUCpsm.js} +2 -2
  53. package/dist/{vue-ui-molecule-BugMXFAK.js → vue-ui-molecule-Bfk3Vhbi.js} +204 -188
  54. package/dist/{vue-ui-mood-radar-Cv4dHZPL.js → vue-ui-mood-radar-BfRkWvgp.js} +206 -190
  55. package/dist/vue-ui-nested-donuts-Ck9Zm1UU.js +1177 -0
  56. package/dist/{vue-ui-onion-Bha2hRAb.js → vue-ui-onion-DF7Z21x-.js} +196 -180
  57. package/dist/{vue-ui-parallel-coordinate-plot-DWJ2DWx4.js → vue-ui-parallel-coordinate-plot-JVogg7k5.js} +194 -178
  58. package/dist/{vue-ui-quadrant-BKHZoTml.js → vue-ui-quadrant-DpFjMZoK.js} +321 -305
  59. package/dist/{vue-ui-quick-chart-D_k3lbU8.js → vue-ui-quick-chart-NfXEFkoL.js} +347 -331
  60. package/dist/{vue-ui-radar-Co4EOjSk.js → vue-ui-radar-Dg8UovnR.js} +193 -177
  61. package/dist/{vue-ui-rating-dtNN0EdX.js → vue-ui-rating-D3cpdLRt.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-CR4UpQzM.js → vue-ui-relation-circle-BZTTPLCi.js} +188 -172
  63. package/dist/{vue-ui-ridgeline-BKX97EnR.js → vue-ui-ridgeline-CtY_J3hk.js} +212 -196
  64. package/dist/{vue-ui-rings-EPTwyt6D.js → vue-ui-rings-BiA-bRgU.js} +223 -210
  65. package/dist/{vue-ui-scatter-BlxzblSR.js → vue-ui-scatter-C3sCChYD.js} +288 -273
  66. package/dist/{vue-ui-skeleton-CjN2ZdgT.js → vue-ui-skeleton-DY48gQ96.js} +3 -3
  67. package/dist/{vue-ui-smiley-DdF_ErYG.js → vue-ui-smiley-DopwmgcY.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-RdOlCuT9.js → vue-ui-spark-trend-DO7P-2x8.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-DWufRGcN.js → vue-ui-sparkbar-mqLbTvAg.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-IP1O3qyT.js → vue-ui-sparkgauge-CdfZYUAZ.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-Cnv9xZ8H.js → vue-ui-sparkhistogram-DAy--kFA.js} +4 -4
  72. package/dist/{vue-ui-sparkline-CYgeD5V3.js → vue-ui-sparkline-KkG0FnmI.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-BCwoK9xd.js → vue-ui-sparkstackbar-LDRannBB.js} +3 -3
  74. package/dist/{vue-ui-stackbar-CqFIvfrK.js → vue-ui-stackbar-Bys4yWs_.js} +497 -474
  75. package/dist/{vue-ui-strip-plot-Dq-kDRai.js → vue-ui-strip-plot-DUBqioS2.js} +241 -225
  76. package/dist/{vue-ui-table-vaIdQnPl.js → vue-ui-table-CPWgP-71.js} +3 -3
  77. package/dist/{vue-ui-table-heatmap-U_Td0cdh.js → vue-ui-table-heatmap-DfrMVDEE.js} +26 -25
  78. package/dist/{vue-ui-table-sparkline-DkOaHx5L.js → vue-ui-table-sparkline-CNC7Lp0t.js} +8 -7
  79. package/dist/{vue-ui-thermometer-CzckBZgs.js → vue-ui-thermometer-Bby5nWIi.js} +170 -154
  80. package/dist/{vue-ui-timer-DSdUshUs.js → vue-ui-timer-ym9etXUy.js} +5 -5
  81. package/dist/vue-ui-tiremarks-C0V_XedF.js +358 -0
  82. package/dist/vue-ui-treemap-B5k0NEO3.js +965 -0
  83. package/dist/{vue-ui-vertical-bar-Dd4sYeAC.js → vue-ui-vertical-bar-DRmHFEMu.js} +335 -319
  84. package/dist/{vue-ui-waffle-DusUVY6y.js → vue-ui-waffle-DrEQsTIO.js} +234 -221
  85. package/dist/vue-ui-wheel-BOTBLBOr.js +352 -0
  86. package/dist/{vue-ui-word-cloud-_7uYjJ5A.js → vue-ui-word-cloud-Btay9XOs.js} +249 -233
  87. package/dist/{vue-ui-world-COIyBHII.js → vue-ui-world-zBvIXrWH.js} +239 -223
  88. package/dist/{vue-ui-xy-C_OUyzTC.js → vue-ui-xy-C7uPPKm9.js} +700 -686
  89. package/dist/{vue-ui-xy-canvas-CuYRyub2.js → vue-ui-xy-canvas-CDjYeEkq.js} +447 -431
  90. package/package.json +1 -1
  91. package/dist/img-BeMVTwmF.js +0 -20
  92. package/dist/pdf-DPxOdzfi.js +0 -51
  93. package/dist/vue-data-ui-nceqWRts.js +0 -301
  94. package/dist/vue-ui-donut-DSE7ubVv.js +0 -1315
  95. package/dist/vue-ui-nested-donuts-CYe0Are_.js +0 -1154
  96. package/dist/vue-ui-tiremarks-B2WWklqG.js +0 -342
  97. package/dist/vue-ui-treemap-D1dgDhjG.js +0 -952
  98. package/dist/vue-ui-wheel-ClsKBh52.js +0 -336
@@ -1,18 +1,19 @@
1
- import { defineAsyncComponent as S, computed as f, ref as y, watch as Re, shallowRef as Oe, onMounted as ht, onBeforeUnmount as pt, nextTick as D, createElementBlock as u, openBlock as s, unref as r, normalizeStyle as ie, normalizeClass as Ne, createBlock as I, createCommentVNode as h, createElementVNode as v, createVNode as Pe, createSlots as ft, withCtx as x, renderSlot as g, normalizeProps as T, guardReactiveProps as L, Fragment as F, renderList as R, toDisplayString as q, createTextVNode as gt } from "vue";
2
- import { u as xt, c as mt, a as bt, C as J, o as kt, e as O, D as wt, v as W, f as $, X as _t, w as K, s as Ct, E as Ve, q as $t, r as At, x as zt, y as St } from "./index-DMqAxz7R.js";
3
- import { t as It, u as Tt } from "./useResponsive-DfdjqQps.js";
4
- import { u as Me } from "./useNestedProp-YgN3FV_8.js";
5
- import { u as Lt } from "./usePrinter-COkTjv6C.js";
6
- import { u as Ft } from "./useUserOptionState-BIvW1Kz7.js";
7
- import { u as Rt } from "./useChartAccessibility-9icAAmYg.js";
8
- import Ot from "./Title-D29apS4l.js";
9
- import { S as Nt } from "./Slicer-DZEFp2GU.js";
10
- import { u as Pt } from "./useTimeLabels-Mrr0jrpL.js";
11
- import { _ as Vt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
12
- const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"], Ut = { key: 1 }, Dt = ["id"], Wt = ["stop-color"], Gt = ["stop-color"], Ht = ["stop-color"], jt = ["id"], Xt = ["stop-color"], Yt = ["stop-color"], qt = ["stop-color"], Jt = { key: 0 }, Kt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Qt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Zt = { key: 1 }, el = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], tl = ["x", "y", "font-size", "fill", "font-weight"], ll = { key: 2 }, ol = ["transform", "text-anchor", "font-size", "fill", "font-weight"], al = { key: 3 }, sl = ["transform", "text-anchor", "font-size", "fill", "font-weight"], ul = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], il = { key: 0 }, nl = ["cx", "cy", "r", "fill"], rl = ["cx", "cy", "r", "fill"], dl = { key: 1 }, vl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], yl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], cl = ["x", "y", "height", "width", "fill", "rx"], hl = ["x", "y", "height", "width", "fill", "rx", "stroke", "stroke-width"], pl = ["x", "y", "height", "width", "fill", "onMouseover"], fl = {
1
+ import { defineAsyncComponent as I, computed as f, ref as y, watch as Oe, shallowRef as Ne, onMounted as pt, onBeforeUnmount as ft, nextTick as D, createElementBlock as u, openBlock as s, unref as r, normalizeStyle as ie, normalizeClass as Pe, createBlock as T, createCommentVNode as h, createElementVNode as v, createVNode as Ve, createSlots as gt, withCtx as m, renderSlot as g, normalizeProps as L, guardReactiveProps as F, Fragment as R, renderList as O, toDisplayString as q, createTextVNode as xt } from "vue";
2
+ import { u as mt, c as bt, a as kt, C as J, o as wt, e as N, D as _t, v as W, f as $, X as Ct, w as K, s as $t, E as Ee, q as At, r as zt, x as St, y as It } from "./index-BSa4GlHG.js";
3
+ import { t as Tt, u as Lt } from "./useResponsive-DfdjqQps.js";
4
+ import { u as Me } from "./useNestedProp-uR74_CFG.js";
5
+ import { u as Ft } from "./usePrinter-j3g1L2nh.js";
6
+ import { u as Rt } from "./useUserOptionState-BIvW1Kz7.js";
7
+ import { u as Ot } from "./useChartAccessibility-9icAAmYg.js";
8
+ import Nt from "./Title-CWxjC3bE.js";
9
+ import { S as Pt } from "./Slicer-CcM8hzCn.js";
10
+ import { u as Vt } from "./useTimeLabels-Mrr0jrpL.js";
11
+ import Et from "./img-D3JvqNF8.js";
12
+ import { _ as Mt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
+ const Bt = ["id"], Ut = ["xmlns", "aria-label", "viewBox"], Dt = ["x", "y", "width", "height"], Wt = { key: 1 }, Gt = ["id"], Ht = ["stop-color"], jt = ["stop-color"], Xt = ["stop-color"], Yt = ["id"], qt = ["stop-color"], Jt = ["stop-color"], Kt = ["stop-color"], Qt = { key: 0 }, Zt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], el = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], tl = { key: 1 }, ll = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], al = ["x", "y", "font-size", "fill", "font-weight"], ol = { key: 2 }, sl = ["transform", "text-anchor", "font-size", "fill", "font-weight"], ul = { key: 3 }, il = ["transform", "text-anchor", "font-size", "fill", "font-weight"], nl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], rl = { key: 0 }, dl = ["cx", "cy", "r", "fill"], vl = ["cx", "cy", "r", "fill"], yl = { key: 1 }, cl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], hl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], pl = ["x", "y", "height", "width", "fill", "rx"], fl = ["x", "y", "height", "width", "fill", "rx", "stroke", "stroke-width"], gl = ["x", "y", "height", "width", "fill", "onMouseover"], xl = {
13
14
  key: 5,
14
15
  class: "vue-data-ui-watermark"
15
- }, gl = ["innerHTML"], xl = {
16
+ }, ml = ["innerHTML"], bl = {
16
17
  __name: "vue-ui-candlestick",
17
18
  props: {
18
19
  config: {
@@ -28,27 +29,27 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
28
29
  }
29
30
  }
30
31
  },
31
- setup(Ee, { expose: Be }) {
32
- const Ue = S(() => import("./vue-ui-accordion-P6eFHGQp.js")), De = S(() => import("./DataTable-BBbOgI-a.js")), We = S(() => import("./PackageVersion-D0VPY8-5.js")), Ge = S(() => import("./PenAndPaper-DhBJsnob.js")), He = S(() => import("./vue-ui-skeleton-CjN2ZdgT.js")), je = S(() => import("./Tooltip-hVZUY_s5.js")), Xe = S(() => import("./UserOptions-Bdit7AWO.js")), { vue_ui_candlestick: Ye } = xt(), i = Ee, E = f(() => !!i.dataset && i.dataset.length), k = y(mt()), qe = y(null), Q = y(!1), Z = y(""), ee = y(void 0), ne = y(0), B = y(null), re = y(null), de = y(null), ve = y(null), ye = y(null), ce = y(null), G = y(0), he = y(0), pe = y(0), e = f({
32
+ setup(Be, { expose: Ue }) {
33
+ const De = I(() => import("./vue-ui-accordion-DzF-SPaZ.js")), We = I(() => import("./DataTable-vByThHdN.js")), Ge = I(() => import("./PackageVersion-B0wGS6pw.js")), He = I(() => import("./PenAndPaper-7o0xS-d4.js")), je = I(() => import("./vue-ui-skeleton-DY48gQ96.js")), Xe = I(() => import("./Tooltip-Cq9HywcX.js")), Ye = I(() => import("./UserOptions-BEBaPSlU.js")), { vue_ui_candlestick: qe } = mt(), i = Be, B = f(() => !!i.dataset && i.dataset.length), w = y(bt()), Je = y(null), Q = y(!1), Z = y(""), ee = y(void 0), ne = y(0), A = y(null), re = y(null), de = y(null), ve = y(null), ye = y(null), ce = y(null), G = y(0), he = y(0), pe = y(0), e = f({
33
34
  get: () => me(),
34
35
  set: (t) => t
35
- }), { userOptionsVisible: te, setUserOptionsVisibility: fe, keepUserOptionState: ge } = Ft({ config: e.value }), { svgRef: xe } = Rt({ config: e.value.style.title });
36
+ }), { userOptionsVisible: te, setUserOptionsVisibility: fe, keepUserOptionState: ge } = Rt({ config: e.value }), { svgRef: xe } = Ot({ config: e.value.style.title });
36
37
  function me() {
37
38
  const t = Me({
38
39
  userConfig: i.config,
39
- defaultConfig: Ye
40
+ defaultConfig: qe
40
41
  });
41
- let o = {};
42
- return t.theme ? o = {
42
+ let a = {};
43
+ return t.theme ? a = {
43
44
  ...Me({
44
- userConfig: bt.vue_ui_candlestick[t.theme] || i.config,
45
+ userConfig: kt.vue_ui_candlestick[t.theme] || i.config,
45
46
  defaultConfig: t
46
47
  })
47
- } : o = t, i.config && J(i.config, "style.zoom.startIndex") ? o.style.zoom.startIndex = i.config.style.zoom.startIndex : o.style.zoom.startIndex = null, i.config && J(i.config, "style.zoom.endIndex") ? o.style.zoom.endIndex = i.config.style.zoom.endIndex : o.style.zoom.endIndex = null, i.config && J(i.config, "style.layout.grid.yAxis.scale.min") ? o.style.layout.grid.yAxis.scale.min = i.config.style.layout.grid.yAxis.scale.min : o.style.layout.grid.yAxis.scale.min = null, i.config && J(i.config, "style.layout.grid.yAxis.scale.max") ? o.style.layout.grid.yAxis.scale.max = i.config.style.layout.grid.yAxis.scale.max : o.style.layout.grid.yAxis.scale.max = null, o;
48
+ } : a = t, i.config && J(i.config, "style.zoom.startIndex") ? a.style.zoom.startIndex = i.config.style.zoom.startIndex : a.style.zoom.startIndex = null, i.config && J(i.config, "style.zoom.endIndex") ? a.style.zoom.endIndex = i.config.style.zoom.endIndex : a.style.zoom.endIndex = null, i.config && J(i.config, "style.layout.grid.yAxis.scale.min") ? a.style.layout.grid.yAxis.scale.min = i.config.style.layout.grid.yAxis.scale.min : a.style.layout.grid.yAxis.scale.min = null, i.config && J(i.config, "style.layout.grid.yAxis.scale.max") ? a.style.layout.grid.yAxis.scale.max = i.config.style.layout.grid.yAxis.scale.max : a.style.layout.grid.yAxis.scale.max = null, a;
48
49
  }
49
- Re(() => i.config, (t) => {
50
- e.value = me(), te.value = !e.value.userOptions.showOnChartHover, be(), G.value += 1, pe.value += 1, he.value += 1, _.value.showTable = e.value.table.show, _.value.showTooltip = e.value.style.tooltip.show;
51
- }, { deep: !0 }), Re(() => i.dataset, (t) => {
50
+ Oe(() => i.config, (t) => {
51
+ e.value = me(), te.value = !e.value.userOptions.showOnChartHover, be(), G.value += 1, pe.value += 1, he.value += 1, C.value.showTable = e.value.table.show, C.value.showTooltip = e.value.style.tooltip.show;
52
+ }, { deep: !0 }), Oe(() => i.dataset, (t) => {
52
53
  p.value.start = 0, p.value.end = t.length, G.value += 1;
53
54
  }, { deep: !0 });
54
55
  const c = y({
@@ -56,18 +57,18 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
56
57
  width: e.value.style.width,
57
58
  xAxisFontSize: e.value.style.layout.grid.xAxis.dataLabels.fontSize,
58
59
  yAxisFontSize: e.value.style.layout.grid.yAxis.dataLabels.fontSize
59
- }), A = Oe(null), N = Oe(null);
60
- ht(() => {
60
+ }), z = Ne(null), P = Ne(null);
61
+ pt(() => {
61
62
  be();
62
63
  });
63
64
  function be() {
64
- if (kt(i.dataset) && O({
65
+ if (wt(i.dataset) && N({
65
66
  componentName: "VueUiCandlestick",
66
67
  type: "dataset"
67
68
  }), e.value.responsive) {
68
- const t = It(() => {
69
- const { width: o, height: l } = Tt({
70
- chart: B.value,
69
+ const t = Tt(() => {
70
+ const { width: a, height: l } = Lt({
71
+ chart: A.value,
71
72
  title: e.value.style.title.text ? re.value : null,
72
73
  slicer: ve.value,
73
74
  legend: de.value,
@@ -75,14 +76,14 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
75
76
  noTitle: ce.value
76
77
  });
77
78
  requestAnimationFrame(() => {
78
- c.value.width = o, c.value.height = l, e.value.responsiveProportionalSizing ? (c.value.xAxisFontSize = Ve({
79
- relator: Math.min(o, l),
79
+ c.value.width = a, c.value.height = l, e.value.responsiveProportionalSizing ? (c.value.xAxisFontSize = Ee({
80
+ relator: Math.min(a, l),
80
81
  adjuster: e.value.style.width,
81
82
  source: e.value.style.layout.grid.xAxis.dataLabels.fontSize,
82
83
  threshold: 6,
83
84
  fallback: 6
84
- }), c.value.yAxisFontSize = Ve({
85
- relator: Math.min(o, l),
85
+ }), c.value.yAxisFontSize = Ee({
86
+ relator: Math.min(a, l),
86
87
  adjuster: e.value.style.width,
87
88
  source: e.value.style.layout.grid.yAxis.dataLabels.fontSize,
88
89
  threshold: 6,
@@ -90,67 +91,67 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
90
91
  })) : (c.value.xAxisFontSize = e.value.style.layout.grid.xAxis.dataLabels.fontSize, c.value.yAxisFontSize = e.value.style.layout.grid.yAxis.dataLabels.fontSize);
91
92
  });
92
93
  });
93
- A.value && (N.value && A.value.unobserve(N.value), A.value.disconnect()), A.value = new ResizeObserver(t), N.value = B.value.parentNode, A.value.observe(N.value);
94
+ z.value && (P.value && z.value.unobserve(P.value), z.value.disconnect()), z.value = new ResizeObserver(t), P.value = A.value.parentNode, z.value.observe(P.value);
94
95
  }
95
96
  Se();
96
97
  }
97
- pt(() => {
98
- A.value && (N.value && A.value.unobserve(N.value), A.value.disconnect());
98
+ ft(() => {
99
+ z.value && (P.value && z.value.unobserve(P.value), z.value.disconnect());
99
100
  });
100
- const { isPrinting: ke, isImaging: we, generatePdf: _e, generateImage: Ce } = Lt({
101
- elementId: `vue-ui-candlestick_${k.value}`,
101
+ const { isPrinting: ke, isImaging: we, generatePdf: _e, generateImage: Ce } = Ft({
102
+ elementId: `vue-ui-candlestick_${w.value}`,
102
103
  fileName: e.value.style.title.text || "vue-ui-candlestick",
103
104
  options: e.value.userOptions.print
104
- }), Je = f(() => e.value.userOptions.show && !e.value.style.title.text), _ = y({
105
+ }), Ke = f(() => e.value.userOptions.show && !e.value.style.title.text), C = y({
105
106
  showTable: e.value.table.show,
106
107
  showTooltip: e.value.style.tooltip.show
107
108
  }), n = f(() => {
108
- const { top: t, right: o, bottom: l, left: a } = e.value.style.layout.padding;
109
+ const { top: t, right: a, bottom: l, left: o } = e.value.style.layout.padding;
109
110
  return {
110
111
  top: t,
111
- right: c.value.width - o,
112
- left: a,
112
+ right: c.value.width - a,
113
+ left: o,
113
114
  bottom: c.value.height - l,
114
- width: c.value.width - a - o,
115
+ width: c.value.width - o - a,
115
116
  height: c.value.height - t - l
116
117
  };
117
118
  }), U = f(() => i.dataset.length), p = y({
118
119
  start: 0,
119
120
  end: U.value
120
- }), $e = f(() => i.dataset.map((t, o) => ({
121
+ }), $e = f(() => i.dataset.map((t, a) => ({
121
122
  ...t,
122
- absoluteIndex: o
123
- })).slice(p.value.start, p.value.end)), le = f(() => (i.dataset.forEach((t, o) => {
124
- [null, void 0].includes(t[0]) && O({
123
+ absoluteIndex: a
124
+ })).slice(p.value.start, p.value.end)), le = f(() => (i.dataset.forEach((t, a) => {
125
+ [null, void 0].includes(t[0]) && N({
125
126
  componentName: "VueUiCandlestick",
126
127
  type: "datasetAttribute",
127
128
  property: "period (index 0)",
128
- index: o
129
- }), [null, void 0].includes(t[1]) && O({
129
+ index: a
130
+ }), [null, void 0].includes(t[1]) && N({
130
131
  componentName: "VueUiCandlestick",
131
132
  type: "datasetAttribute",
132
133
  property: "open (index 1)",
133
- index: o
134
- }), [null, void 0].includes(t[2]) && O({
134
+ index: a
135
+ }), [null, void 0].includes(t[2]) && N({
135
136
  componentName: "VueUiCandlestick",
136
137
  type: "datasetAttribute",
137
138
  property: "high (index 2)",
138
- index: o
139
- }), [null, void 0].includes(t[3]) && O({
139
+ index: a
140
+ }), [null, void 0].includes(t[3]) && N({
140
141
  componentName: "VueUiCandlestick",
141
142
  type: "datasetAttribute",
142
143
  property: "low (index 3)",
143
- index: o
144
- }), [null, void 0].includes(t[4]) && O({
144
+ index: a
145
+ }), [null, void 0].includes(t[4]) && N({
145
146
  componentName: "VueUiCandlestick",
146
147
  type: "datasetAttribute",
147
148
  property: "last (index 4)",
148
- index: o
149
- }), [null, void 0].includes(t[5]) && O({
149
+ index: a
150
+ }), [null, void 0].includes(t[5]) && N({
150
151
  componentName: "VueUiCandlestick",
151
152
  type: "datasetAttribute",
152
153
  property: "volume (index 5)",
153
- index: o
154
+ index: a
154
155
  });
155
156
  }), $e.value.map((t) => ({
156
157
  absoluteIndex: t.absoluteIndex,
@@ -161,167 +162,167 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
161
162
  last: t[4],
162
163
  volume: t[5]
163
164
  })))), d = f(() => n.value.width / $e.value.length), Ae = f(() => {
164
- const t = e.value.style.layout.grid.yAxis.scale.max === null ? Math.max(...le.value.map((l) => l.high)) : e.value.style.layout.grid.yAxis.scale.max, o = e.value.style.layout.grid.yAxis.scale.min === null ? 0 : e.value.style.layout.grid.yAxis.scale.min;
165
+ const t = e.value.style.layout.grid.yAxis.scale.max === null ? Math.max(...le.value.map((l) => l.high)) : e.value.style.layout.grid.yAxis.scale.max, a = e.value.style.layout.grid.yAxis.scale.min === null ? 0 : e.value.style.layout.grid.yAxis.scale.min;
165
166
  return {
166
167
  max: t,
167
- min: o
168
+ min: a
168
169
  };
169
- }), w = f(() => wt(Ae.value.min, Ae.value.max, e.value.style.layout.grid.yAxis.dataLabels.steps));
170
- function H(t, o) {
170
+ }), _ = f(() => _t(Ae.value.min, Ae.value.max, e.value.style.layout.grid.yAxis.dataLabels.steps));
171
+ function H(t, a) {
171
172
  return {
172
173
  ...t,
173
- x: W(n.value.left + o * d.value + d.value / 2),
174
- y: W(n.value.top + (1 - (t - w.value.min) / (w.value.max - w.value.min)) * n.value.height),
174
+ x: W(n.value.left + a * d.value + d.value / 2),
175
+ y: W(n.value.top + (1 - (t - _.value.min) / (_.value.max - _.value.min)) * n.value.height),
175
176
  value: W(t)
176
177
  };
177
178
  }
178
- const m = f(() => le.value.map((t, o) => {
179
- const l = H(t.open, o), a = H(t.high, o), C = H(t.low, o), b = H(t.last, o), z = t.last > t.open;
179
+ const b = f(() => le.value.map((t, a) => {
180
+ const l = H(t.open, a), o = H(t.high, a), k = H(t.low, a), x = H(t.last, a), S = t.last > t.open;
180
181
  return {
181
182
  period: t.period,
182
183
  open: l,
183
- high: a,
184
- low: C,
185
- last: b,
184
+ high: o,
185
+ low: k,
186
+ last: x,
186
187
  volume: t.volume,
187
- isBullish: z,
188
+ isBullish: S,
188
189
  absoluteIndex: t.absoluteIndex
189
190
  };
190
191
  }));
191
- function Ke(t) {
192
- return W((t - w.value.min) / (w.value.max - w.value.min));
192
+ function Qe(t) {
193
+ return W((t - _.value.min) / (_.value.max - _.value.min));
193
194
  }
194
- const Qe = f(() => w.value.ticks.map((t) => ({
195
- y: n.value.bottom - n.value.height * Ke(t),
195
+ const Ze = f(() => _.value.ticks.map((t) => ({
196
+ y: n.value.bottom - n.value.height * Qe(t),
196
197
  value: W(t)
197
- }))), Ze = f(() => le.value.map((t) => t.period)), P = f(() => Pt({
198
+ }))), et = f(() => le.value.map((t) => t.period)), V = f(() => Vt({
198
199
  values: i.dataset.map((t) => t[0]),
199
200
  maxDatapoints: i.dataset.length,
200
201
  formatter: e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter,
201
202
  start: p.value.start,
202
203
  end: p.value.end
203
204
  })), ze = f(() => e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? {
204
- start: P.value.find((t) => t.absoluteIndex === p.value.start).text,
205
- end: P.value.find((t) => t.absoluteIndex === p.value.end - 1).text
205
+ start: V.value.find((t) => t.absoluteIndex === p.value.start).text,
206
+ end: V.value.find((t) => t.absoluteIndex === p.value.end - 1).text
206
207
  } : {
207
208
  start: i.dataset[p.value.start] ? i.dataset[p.value.start][0] : i.dataset[0][0],
208
209
  end: i.dataset[p.value.end - 1] ? i.dataset[p.value.end - 1][0] : i.dataset.at(-1)[0]
209
- }), oe = y(null);
210
- function et(t, o) {
211
- ee.value = t, oe.value = {
212
- datapoint: o,
210
+ }), ae = y(null);
211
+ function tt(t, a) {
212
+ ee.value = t, ae.value = {
213
+ datapoint: a,
213
214
  seriesIndex: t,
214
- series: m.value,
215
+ series: b.value,
215
216
  config: e.value
216
217
  };
217
218
  const l = e.value.style.tooltip.customFormat;
218
- if (zt(l) && St(() => l({
219
+ if (St(l) && It(() => l({
219
220
  seriesIndex: t,
220
- datapoint: o,
221
- series: m.value,
221
+ datapoint: a,
222
+ series: b.value,
222
223
  config: e.value
223
224
  })))
224
225
  Z.value = l({
225
226
  seriesIndex: t,
226
- datapoint: o,
227
- series: m.value,
227
+ datapoint: a,
228
+ series: b.value,
228
229
  config: e.value
229
230
  });
230
231
  else if (e.value.style.tooltip.show) {
231
- let a = "";
232
- const { period: C, open: b, high: z, low: se, last: ue, volume: Y, isBullish: Fe } = m.value[t], { period: ml, open: at, high: st, low: ut, last: it, volume: nt } = e.value.translations, rt = e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? P.value[t].text : C;
233
- a += `<div><svg style="margin-right:6px" viewBox="0 0 12 12" height="12" width="12"><rect x="0" y="0" height="12" width="12" rx="${e.value.style.layout.candle.borderRadius * 3}" stroke="${e.value.style.layout.candle.stroke}" stroke-width="${e.value.style.layout.candle.strokeWidth}"
234
- fill="${e.value.style.layout.candle.gradient.show ? Fe ? `url(#bullish_gradient_${k.value})` : `url(#bearish_gradient_${k.value})` : Fe ? e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.colors.bearish}"/></svg>${rt}</div>`, a += `${nt} : <b>${isNaN(Y) ? "-" : Number(Y.toFixed(e.value.style.tooltip.roundingValue)).toLocaleString()}</b>`, a += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${e.value.style.tooltip.borderColor}">`;
235
- const dt = $({
232
+ let o = "";
233
+ const { period: k, open: x, high: S, low: se, last: ue, volume: Y, isBullish: Re } = b.value[t], { period: kl, open: st, high: ut, low: it, last: nt, volume: rt } = e.value.translations, dt = e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? V.value[t].text : k;
234
+ o += `<div><svg style="margin-right:6px" viewBox="0 0 12 12" height="12" width="12"><rect x="0" y="0" height="12" width="12" rx="${e.value.style.layout.candle.borderRadius * 3}" stroke="${e.value.style.layout.candle.stroke}" stroke-width="${e.value.style.layout.candle.strokeWidth}"
235
+ fill="${e.value.style.layout.candle.gradient.show ? Re ? `url(#bullish_gradient_${w.value})` : `url(#bearish_gradient_${w.value})` : Re ? e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.colors.bearish}"/></svg>${dt}</div>`, o += `${rt} : <b>${isNaN(Y) ? "-" : Number(Y.toFixed(e.value.style.tooltip.roundingValue)).toLocaleString()}</b>`, o += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${e.value.style.tooltip.borderColor}">`;
236
+ const vt = $({
236
237
  p: e.value.style.tooltip.prefix,
237
- v: b.value,
238
+ v: x.value,
238
239
  s: e.value.style.tooltip.suffix,
239
240
  r: e.value.style.tooltip.roundingValue
240
241
  });
241
- a += `<div>${at}: <b>${dt}</b></div>`;
242
- const vt = $({
242
+ o += `<div>${st}: <b>${vt}</b></div>`;
243
+ const yt = $({
243
244
  p: e.value.style.tooltip.prefix,
244
- v: z.value,
245
+ v: S.value,
245
246
  s: e.value.style.tooltip.suffix,
246
247
  r: e.value.style.tooltip.roundingValue
247
248
  });
248
- a += `<div>${st}: <b>${vt}</b></div>`;
249
- const yt = $({
249
+ o += `<div>${ut}: <b>${yt}</b></div>`;
250
+ const ct = $({
250
251
  p: e.value.style.tooltip.prefix,
251
252
  v: se.value,
252
253
  s: e.value.style.tooltip.suffix,
253
254
  r: e.value.style.tooltip.roundingValue
254
255
  });
255
- a += `<div>${ut}: <b>${yt}</b></div>`;
256
- const ct = $({
256
+ o += `<div>${it}: <b>${ct}</b></div>`;
257
+ const ht = $({
257
258
  p: e.value.style.tooltip.prefix,
258
259
  v: ue.value,
259
260
  s: e.value.style.tooltip.suffix,
260
261
  r: e.value.style.tooltip.roundingValue
261
262
  });
262
- a += `<div>${it}: <b>${ct}</b></div>`, a += "</div>", Z.value = `<div style="text-align:right">${a}</div>`;
263
+ o += `<div>${nt}: <b>${ht}</b></div>`, o += "</div>", Z.value = `<div style="text-align:right">${o}</div>`;
263
264
  }
264
265
  Q.value = !0;
265
266
  }
266
- function tt() {
267
+ function lt() {
267
268
  Se();
268
269
  }
269
- const V = y(null);
270
+ const E = y(null);
270
271
  async function Se() {
271
- (e.value.style.zoom.startIndex !== null || e.value.style.zoom.endIndex !== null) && V.value ? (e.value.style.zoom.startIndex !== null && (await D(), await D(), V.value && V.value.setStartValue(e.value.style.zoom.startIndex)), e.value.style.zoom.endIndex !== null && (await D(), await D(), V.value && V.value.setEndValue(lt(e.value.style.zoom.endIndex + 1)))) : (p.value = {
272
+ (e.value.style.zoom.startIndex !== null || e.value.style.zoom.endIndex !== null) && E.value ? (e.value.style.zoom.startIndex !== null && (await D(), await D(), E.value && E.value.setStartValue(e.value.style.zoom.startIndex)), e.value.style.zoom.endIndex !== null && (await D(), await D(), E.value && E.value.setEndValue(at(e.value.style.zoom.endIndex + 1)))) : (p.value = {
272
273
  start: 0,
273
274
  end: U.value
274
275
  }, G.value += 1);
275
276
  }
276
- function lt(t) {
277
- const o = U.value;
278
- return t > o ? o : t < 0 || e.value.style.zoom.startIndex !== null && t < e.value.style.zoom.startIndex ? e.value.style.zoom.startIndex !== null ? e.value.style.zoom.startIndex + 1 : 1 : t;
277
+ function at(t) {
278
+ const a = U.value;
279
+ return t > a ? a : t < 0 || e.value.style.zoom.startIndex !== null && t < e.value.style.zoom.startIndex ? e.value.style.zoom.startIndex !== null ? e.value.style.zoom.startIndex + 1 : 1 : t;
279
280
  }
280
281
  function Ie(t = null) {
281
282
  D(() => {
282
- const o = [e.value.translations.period, e.value.translations.open, e.value.translations.high, e.value.translations.low, e.value.translations.last, e.value.translations.volume], l = m.value.map((b, z) => [
283
- e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? P.value[z].text : b.period,
284
- b.open.value,
285
- b.high.value,
286
- b.low.value,
287
- b.last.value,
288
- b.volume
289
- ]), a = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([o]).concat(l), C = $t(a);
290
- t ? t(C) : At({ csvContent: C, title: e.value.style.title.text || "vue-ui-candlestick" });
283
+ const a = [e.value.translations.period, e.value.translations.open, e.value.translations.high, e.value.translations.low, e.value.translations.last, e.value.translations.volume], l = b.value.map((x, S) => [
284
+ e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? V.value[S].text : x.period,
285
+ x.open.value,
286
+ x.high.value,
287
+ x.low.value,
288
+ x.last.value,
289
+ x.volume
290
+ ]), o = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([a]).concat(l), k = At(o);
291
+ t ? t(k) : zt({ csvContent: k, title: e.value.style.title.text || "vue-ui-candlestick" });
291
292
  });
292
293
  }
293
294
  const j = f(() => {
294
- const t = m.value.map((a, C) => {
295
- const b = e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? P.value[C].text : a.period, z = $({
295
+ const t = b.value.map((o, k) => {
296
+ const x = e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? V.value[k].text : o.period, S = $({
296
297
  p: e.value.table.td.prefix,
297
- v: a.open.value,
298
+ v: o.open.value,
298
299
  s: e.value.table.td.suffix,
299
300
  r: e.value.table.td.roundingValue
300
301
  }), se = $({
301
302
  p: e.value.table.td.prefix,
302
- v: a.high.value,
303
+ v: o.high.value,
303
304
  s: e.value.table.td.suffix,
304
305
  r: e.value.table.td.roundingValue
305
306
  }), ue = $({
306
307
  p: e.value.table.td.prefix,
307
- v: a.low.value,
308
+ v: o.low.value,
308
309
  s: e.value.table.td.suffix,
309
310
  r: e.value.table.td.roundingValue
310
311
  }), Y = $({
311
312
  p: e.value.table.td.prefix,
312
- v: a.last.value,
313
+ v: o.last.value,
313
314
  s: e.value.table.td.suffix,
314
315
  r: e.value.table.td.roundingValue
315
316
  });
316
317
  return [
317
- `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 12" height="12" width="12" style="margin-right: 6px"><rect x="0" y="0" height="12" width="12" :rx="${e.value.style.layout.candle.borderRadius * 3}" fill="${e.value.style.layout.candle.gradient.show ? a.isBullish ? `url(#bullish_gradient_${k.value}` : `url(#bearish_gradient_${k.value})` : a.isBullish ? e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.colors.bearish}"/></svg> ${b}`,
318
- z,
318
+ `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 12" height="12" width="12" style="margin-right: 6px"><rect x="0" y="0" height="12" width="12" rx="${e.value.style.layout.candle.borderRadius * 3}" fill="${e.value.style.layout.candle.gradient.show ? o.isBullish ? `url(#bullish_gradient_${w.value}` : `url(#bearish_gradient_${w.value})` : o.isBullish ? e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.colors.bearish}"/></svg> ${x}`,
319
+ S,
319
320
  se,
320
321
  ue,
321
322
  Y,
322
- `${isNaN(a.volume) ? "-" : a.volume.toLocaleString()}`
323
+ `${isNaN(o.volume) ? "-" : o.volume.toLocaleString()}`
323
324
  ];
324
- }), o = {
325
+ }), a = {
325
326
  th: {
326
327
  backgroundColor: e.value.table.th.backgroundColor,
327
328
  color: e.value.table.th.color,
@@ -341,46 +342,60 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
341
342
  e.value.translations.last,
342
343
  e.value.translations.volume
343
344
  ];
344
- return { head: l, body: t, config: o, colNames: l };
345
+ return { head: l, body: t, config: a, colNames: l };
345
346
  }), M = y(!1);
346
- function ot(t) {
347
+ function Te(t) {
347
348
  M.value = t, ne.value += 1;
348
349
  }
349
- function Te() {
350
- _.value.showTable = !_.value.showTable;
351
- }
352
350
  function Le() {
353
- _.value.showTooltip = !_.value.showTooltip;
351
+ C.value.showTable = !C.value.showTable;
352
+ }
353
+ function Fe() {
354
+ C.value.showTooltip = !C.value.showTooltip;
354
355
  }
355
356
  const X = y(!1);
356
- function ae() {
357
+ function oe() {
357
358
  X.value = !X.value;
358
359
  }
359
- return Be({
360
+ async function ot({ scale: t = 2 } = {}) {
361
+ if (!A.value) return;
362
+ const { width: a, height: l } = A.value.getBoundingClientRect(), o = a / l, { imageUri: k, base64: x } = await Et({ domElement: A.value, base64: !0, img: !0, scale: t });
363
+ return {
364
+ imageUri: k,
365
+ base64: x,
366
+ title: e.value.style.title.text,
367
+ width: a,
368
+ height: l,
369
+ aspectRatio: o
370
+ };
371
+ }
372
+ return Ue({
373
+ getImage: ot,
360
374
  generatePdf: _e,
361
375
  generateCsv: Ie,
362
376
  generateImage: Ce,
363
- toggleTable: Te,
364
- toggleTooltip: Le,
365
- toggleAnnotator: ae
366
- }), (t, o) => (s(), u("div", {
377
+ toggleTable: Le,
378
+ toggleTooltip: Fe,
379
+ toggleAnnotator: oe,
380
+ toggleFullscreen: Te
381
+ }), (t, a) => (s(), u("div", {
367
382
  ref_key: "candlestickChart",
368
- ref: B,
369
- class: Ne(`vue-ui-candlestick ${M.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
383
+ ref: A,
384
+ class: Pe(`vue-ui-candlestick ${M.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
370
385
  style: ie(`position:relative;font-family:${e.value.style.fontFamily}; text-align:center;background:${e.value.style.backgroundColor}; ${e.value.responsive ? "height: 100%" : ""}`),
371
- id: `vue-ui-candlestick_${k.value}`,
372
- onMouseenter: o[4] || (o[4] = () => r(fe)(!0)),
373
- onMouseleave: o[5] || (o[5] = () => r(fe)(!1))
386
+ id: `vue-ui-candlestick_${w.value}`,
387
+ onMouseenter: a[4] || (a[4] = () => r(fe)(!0)),
388
+ onMouseleave: a[5] || (a[5] = () => r(fe)(!1))
374
389
  }, [
375
- e.value.userOptions.buttons.annotator ? (s(), I(r(Ge), {
390
+ e.value.userOptions.buttons.annotator ? (s(), T(r(He), {
376
391
  key: 0,
377
392
  svgRef: r(xe),
378
393
  backgroundColor: e.value.style.backgroundColor,
379
394
  color: e.value.style.color,
380
395
  active: X.value,
381
- onClose: ae
396
+ onClose: oe
382
397
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : h("", !0),
383
- Je.value ? (s(), u("div", {
398
+ Ke.value ? (s(), u("div", {
384
399
  key: 1,
385
400
  ref_key: "noTitle",
386
401
  ref: ce,
@@ -393,7 +408,7 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
393
408
  ref: re,
394
409
  style: "width:100%;background:transparent"
395
410
  }, [
396
- (s(), I(Ot, {
411
+ (s(), T(Nt, {
397
412
  key: `title_${pe.value}`,
398
413
  config: {
399
414
  title: {
@@ -407,15 +422,15 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
407
422
  }
408
423
  }, null, 8, ["config"]))
409
424
  ], 512)) : h("", !0),
410
- e.value.userOptions.show && E.value && (r(ge) || r(te)) ? (s(), I(r(Xe), {
425
+ e.value.userOptions.show && B.value && (r(ge) || r(te)) ? (s(), T(r(Ye), {
411
426
  ref_key: "details",
412
- ref: qe,
427
+ ref: Je,
413
428
  key: `user_options_${ne.value}`,
414
429
  backgroundColor: e.value.style.backgroundColor,
415
430
  color: e.value.style.color,
416
431
  isImaging: r(we),
417
432
  isPrinting: r(ke),
418
- uid: k.value,
433
+ uid: w.value,
419
434
  hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.tooltip.show,
420
435
  hasPdf: e.value.userOptions.buttons.pdf,
421
436
  hasImg: e.value.userOptions.buttons.img,
@@ -423,91 +438,93 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
423
438
  hasTable: e.value.userOptions.buttons.table,
424
439
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
425
440
  isFullscreen: M.value,
426
- isTooltip: _.value.showTooltip,
441
+ isTooltip: C.value.showTooltip,
427
442
  titles: { ...e.value.userOptions.buttonTitles },
428
- chartElement: B.value,
443
+ chartElement: A.value,
429
444
  position: e.value.userOptions.position,
430
445
  hasAnnotator: e.value.userOptions.buttons.annotator,
431
446
  isAnnotation: X.value,
432
447
  callbacks: e.value.userOptions.callbacks,
433
- onToggleFullscreen: ot,
448
+ printScale: e.value.userOptions.print.scale,
449
+ onToggleFullscreen: Te,
434
450
  onGeneratePdf: r(_e),
435
451
  onGenerateCsv: Ie,
436
452
  onGenerateImage: r(Ce),
437
- onToggleTable: Te,
438
- onToggleTooltip: Le,
439
- onToggleAnnotator: ae,
453
+ onToggleTable: Le,
454
+ onToggleTooltip: Fe,
455
+ onToggleAnnotator: oe,
440
456
  style: ie({
441
457
  visibility: r(ge) ? r(te) ? "visible" : "hidden" : "visible"
442
458
  })
443
- }, ft({ _: 2 }, [
459
+ }, gt({ _: 2 }, [
444
460
  t.$slots.menuIcon ? {
445
461
  name: "menuIcon",
446
- fn: x(({ isOpen: l, color: a }) => [
447
- g(t.$slots, "menuIcon", T(L({ isOpen: l, color: a })), void 0, !0)
462
+ fn: m(({ isOpen: l, color: o }) => [
463
+ g(t.$slots, "menuIcon", L(F({ isOpen: l, color: o })), void 0, !0)
448
464
  ]),
449
465
  key: "0"
450
466
  } : void 0,
451
467
  t.$slots.optionTooltip ? {
452
468
  name: "optionTooltip",
453
- fn: x(() => [
469
+ fn: m(() => [
454
470
  g(t.$slots, "optionTooltip", {}, void 0, !0)
455
471
  ]),
456
472
  key: "1"
457
473
  } : void 0,
458
474
  t.$slots.optionPdf ? {
459
475
  name: "optionPdf",
460
- fn: x(() => [
476
+ fn: m(() => [
461
477
  g(t.$slots, "optionPdf", {}, void 0, !0)
462
478
  ]),
463
479
  key: "2"
464
480
  } : void 0,
465
481
  t.$slots.optionCsv ? {
466
482
  name: "optionCsv",
467
- fn: x(() => [
483
+ fn: m(() => [
468
484
  g(t.$slots, "optionCsv", {}, void 0, !0)
469
485
  ]),
470
486
  key: "3"
471
487
  } : void 0,
472
488
  t.$slots.optionImg ? {
473
489
  name: "optionImg",
474
- fn: x(() => [
490
+ fn: m(() => [
475
491
  g(t.$slots, "optionImg", {}, void 0, !0)
476
492
  ]),
477
493
  key: "4"
478
494
  } : void 0,
479
495
  t.$slots.optionTable ? {
480
496
  name: "optionTable",
481
- fn: x(() => [
497
+ fn: m(() => [
482
498
  g(t.$slots, "optionTable", {}, void 0, !0)
483
499
  ]),
484
500
  key: "5"
485
501
  } : void 0,
486
502
  t.$slots.optionFullscreen ? {
487
503
  name: "optionFullscreen",
488
- fn: x(({ toggleFullscreen: l, isFullscreen: a }) => [
489
- g(t.$slots, "optionFullscreen", T(L({ toggleFullscreen: l, isFullscreen: a })), void 0, !0)
504
+ fn: m(({ toggleFullscreen: l, isFullscreen: o }) => [
505
+ g(t.$slots, "optionFullscreen", L(F({ toggleFullscreen: l, isFullscreen: o })), void 0, !0)
490
506
  ]),
491
507
  key: "6"
492
508
  } : void 0,
493
509
  t.$slots.optionAnnotator ? {
494
510
  name: "optionAnnotator",
495
- fn: x(({ toggleAnnotator: l, isAnnotator: a }) => [
496
- g(t.$slots, "optionAnnotator", T(L({ toggleAnnotator: l, isAnnotator: a })), void 0, !0)
511
+ fn: m(({ toggleAnnotator: l, isAnnotator: o }) => [
512
+ g(t.$slots, "optionAnnotator", L(F({ toggleAnnotator: l, isAnnotator: o })), void 0, !0)
497
513
  ]),
498
514
  key: "7"
499
515
  } : void 0
500
- ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) : h("", !0),
501
- E.value ? (s(), u("svg", {
516
+ ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : h("", !0),
517
+ B.value ? (s(), u("svg", {
502
518
  key: 4,
503
519
  ref_key: "svgRef",
504
520
  ref: xe,
505
- xmlns: r(_t),
506
- class: Ne({ "vue-data-ui-fullscreen--on": M.value, "vue-data-ui-fulscreen--off": !M.value }),
521
+ xmlns: r(Ct),
522
+ "aria-label": e.value.style.title.text || "candlestick chart",
523
+ class: Pe({ "vue-data-ui-fullscreen--on": M.value, "vue-data-ui-fulscreen--off": !M.value }),
507
524
  viewBox: `0 0 ${c.value.width <= 0 ? 10 : c.value.width} ${c.value.height <= 0 ? 10 : c.value.height}`,
508
525
  style: ie(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.color}`)
509
526
  }, [
510
- Pe(r(We)),
527
+ Ve(r(Ge)),
511
528
  t.$slots["chart-background"] ? (s(), u("foreignObject", {
512
529
  key: 0,
513
530
  x: n.value.left,
@@ -519,47 +536,47 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
519
536
  }
520
537
  }, [
521
538
  g(t.$slots, "chart-background", {}, void 0, !0)
522
- ], 8, Bt)) : h("", !0),
523
- m.value.length > 0 ? (s(), u("g", Ut, [
539
+ ], 8, Dt)) : h("", !0),
540
+ b.value.length > 0 ? (s(), u("g", Wt, [
524
541
  v("defs", null, [
525
542
  v("linearGradient", {
526
- id: `bearish_gradient_${k.value}`,
543
+ id: `bearish_gradient_${w.value}`,
527
544
  x2: "0%",
528
545
  y2: "100%"
529
546
  }, [
530
547
  v("stop", {
531
548
  offset: "0%",
532
549
  "stop-color": e.value.style.layout.candle.colors.bearish
533
- }, null, 8, Wt),
550
+ }, null, 8, Ht),
534
551
  v("stop", {
535
552
  offset: "50%",
536
553
  "stop-color": `${r(K)(e.value.style.layout.candle.colors.bearish, 0.02)}DE`
537
- }, null, 8, Gt),
554
+ }, null, 8, jt),
538
555
  v("stop", {
539
556
  offset: "100%",
540
557
  "stop-color": `${r(K)(e.value.style.layout.candle.colors.bearish, 0.05)}66`
541
- }, null, 8, Ht)
542
- ], 8, Dt),
558
+ }, null, 8, Xt)
559
+ ], 8, Gt),
543
560
  v("linearGradient", {
544
- id: `bullish_gradient_${k.value}`,
561
+ id: `bullish_gradient_${w.value}`,
545
562
  x2: "0%",
546
563
  y2: "100%"
547
564
  }, [
548
565
  v("stop", {
549
566
  offset: "0%",
550
567
  "stop-color": e.value.style.layout.candle.colors.bullish
551
- }, null, 8, Xt),
568
+ }, null, 8, qt),
552
569
  v("stop", {
553
570
  offset: "50%",
554
571
  "stop-color": `${r(K)(e.value.style.layout.candle.colors.bullish, 0.02)}DE`
555
- }, null, 8, Yt),
572
+ }, null, 8, Jt),
556
573
  v("stop", {
557
574
  offset: "100%",
558
575
  "stop-color": `${r(K)(e.value.style.layout.candle.colors.bullish, 0.05)}66`
559
- }, null, 8, qt)
560
- ], 8, jt)
576
+ }, null, 8, Kt)
577
+ ], 8, Yt)
561
578
  ]),
562
- e.value.style.layout.grid.show ? (s(), u("g", Jt, [
579
+ e.value.style.layout.grid.show ? (s(), u("g", Qt, [
563
580
  v("line", {
564
581
  x1: n.value.left,
565
582
  x2: n.value.left,
@@ -568,7 +585,7 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
568
585
  stroke: e.value.style.layout.grid.stroke,
569
586
  "stroke-width": e.value.style.layout.grid.strokeWidth,
570
587
  "stroke-linecap": "round"
571
- }, null, 8, Kt),
588
+ }, null, 8, Zt),
572
589
  v("line", {
573
590
  x1: n.value.left,
574
591
  x2: n.value.right,
@@ -577,11 +594,11 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
577
594
  stroke: e.value.style.layout.grid.stroke,
578
595
  "stroke-width": e.value.style.layout.grid.strokeWidth,
579
596
  "stroke-linecap": "round"
580
- }, null, 8, Qt)
597
+ }, null, 8, el)
581
598
  ])) : h("", !0),
582
- e.value.style.layout.grid.yAxis.dataLabels.show ? (s(), u("g", Zt, [
583
- (s(!0), u(F, null, R(Qe.value, (l, a) => (s(), u("g", null, [
584
- l.value >= w.value.min && l.value <= w.value.max ? (s(), u("line", {
599
+ e.value.style.layout.grid.yAxis.dataLabels.show ? (s(), u("g", tl, [
600
+ (s(!0), u(R, null, O(Ze.value, (l, o) => (s(), u("g", null, [
601
+ l.value >= _.value.min && l.value <= _.value.max ? (s(), u("line", {
585
602
  key: 0,
586
603
  x1: n.value.left,
587
604
  x2: n.value.left - 5,
@@ -590,8 +607,8 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
590
607
  stroke: e.value.style.layout.grid.stroke,
591
608
  "stroke-width": e.value.style.layout.grid.strokeWidth,
592
609
  "stroke-linecap": "round"
593
- }, null, 8, el)) : h("", !0),
594
- l.value >= w.value.min && l.value <= w.value.max ? (s(), u("text", {
610
+ }, null, 8, ll)) : h("", !0),
611
+ l.value >= _.value.min && l.value <= _.value.max ? (s(), u("text", {
595
612
  key: 1,
596
613
  x: n.value.left - 8 + e.value.style.layout.grid.yAxis.dataLabels.offsetX,
597
614
  y: l.y + c.value.yAxisFontSize / 3,
@@ -604,33 +621,33 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
604
621
  v: l.value,
605
622
  s: e.value.style.layout.grid.yAxis.dataLabels.suffix,
606
623
  r: e.value.style.layout.grid.yAxis.dataLabels.roundingValue
607
- })), 9, tl)) : h("", !0)
624
+ })), 9, al)) : h("", !0)
608
625
  ]))), 256))
609
626
  ])) : h("", !0),
610
- e.value.style.layout.grid.xAxis.dataLabels.show && !e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? (s(), u("g", ll, [
611
- (s(!0), u(F, null, R(Ze.value, (l, a) => (s(), u("g", null, [
627
+ e.value.style.layout.grid.xAxis.dataLabels.show && !e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? (s(), u("g", ol, [
628
+ (s(!0), u(R, null, O(et.value, (l, o) => (s(), u("g", null, [
612
629
  v("text", {
613
- transform: `translate(${n.value.left + d.value * a + d.value / 2}, ${n.value.bottom + c.value.xAxisFontSize * 2 + e.value.style.layout.grid.xAxis.dataLabels.offsetY}), rotate(${e.value.style.layout.grid.xAxis.dataLabels.rotation})`,
630
+ transform: `translate(${n.value.left + d.value * o + d.value / 2}, ${n.value.bottom + c.value.xAxisFontSize * 2 + e.value.style.layout.grid.xAxis.dataLabels.offsetY}), rotate(${e.value.style.layout.grid.xAxis.dataLabels.rotation})`,
614
631
  "text-anchor": e.value.style.layout.grid.xAxis.dataLabels.rotation > 0 ? "start" : e.value.style.layout.grid.xAxis.dataLabels.rotation < 0 ? "end" : "middle",
615
632
  "font-size": c.value.xAxisFontSize,
616
633
  fill: e.value.style.layout.grid.xAxis.dataLabels.color,
617
634
  "font-weight": e.value.style.layout.grid.xAxis.dataLabels.bold ? "bold" : "normal"
618
- }, q(l), 9, ol)
635
+ }, q(l), 9, sl)
619
636
  ]))), 256))
620
637
  ])) : h("", !0),
621
- e.value.style.layout.grid.xAxis.dataLabels.show && e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? (s(), u("g", al, [
622
- (s(!0), u(F, null, R(P.value, (l, a) => (s(), u("g", null, [
638
+ e.value.style.layout.grid.xAxis.dataLabels.show && e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? (s(), u("g", ul, [
639
+ (s(!0), u(R, null, O(V.value, (l, o) => (s(), u("g", null, [
623
640
  v("text", {
624
- transform: `translate(${n.value.left + d.value * a + d.value / 2}, ${n.value.bottom + c.value.xAxisFontSize * 2 + e.value.style.layout.grid.xAxis.dataLabels.offsetY}), rotate(${e.value.style.layout.grid.xAxis.dataLabels.rotation})`,
641
+ transform: `translate(${n.value.left + d.value * o + d.value / 2}, ${n.value.bottom + c.value.xAxisFontSize * 2 + e.value.style.layout.grid.xAxis.dataLabels.offsetY}), rotate(${e.value.style.layout.grid.xAxis.dataLabels.rotation})`,
625
642
  "text-anchor": e.value.style.layout.grid.xAxis.dataLabels.rotation > 0 ? "start" : e.value.style.layout.grid.xAxis.dataLabels.rotation < 0 ? "end" : "middle",
626
643
  "font-size": c.value.xAxisFontSize,
627
644
  fill: e.value.style.layout.grid.xAxis.dataLabels.color,
628
645
  "font-weight": e.value.style.layout.grid.xAxis.dataLabels.bold ? "bold" : "normal"
629
- }, q(l.text), 9, sl)
646
+ }, q(l.text), 9, il)
630
647
  ]))), 256))
631
648
  ])) : h("", !0),
632
649
  v("g", null, [
633
- (s(!0), u(F, null, R(m.value, (l, a) => (s(), u("g", null, [
650
+ (s(!0), u(R, null, O(b.value, (l, o) => (s(), u("g", null, [
634
651
  v("line", {
635
652
  x1: l.open.x,
636
653
  x2: l.open.x,
@@ -639,22 +656,22 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
639
656
  stroke: e.value.style.layout.wick.stroke,
640
657
  "stroke-width": e.value.style.layout.wick.strokeWidth,
641
658
  "stroke-linecap": "round"
642
- }, null, 8, ul),
643
- e.value.style.layout.wick.extremity.shape === "circle" ? (s(), u("g", il, [
659
+ }, null, 8, nl),
660
+ e.value.style.layout.wick.extremity.shape === "circle" ? (s(), u("g", rl, [
644
661
  v("circle", {
645
662
  cx: l.high.x,
646
663
  cy: l.high.y,
647
664
  r: e.value.style.layout.wick.extremity.size === "auto" ? d.value / 20 : e.value.style.layout.wick.extremity.size,
648
665
  fill: e.value.style.layout.wick.extremity.color
649
- }, null, 8, nl),
666
+ }, null, 8, dl),
650
667
  v("circle", {
651
668
  cx: l.low.x,
652
669
  cy: l.low.y,
653
670
  r: e.value.style.layout.wick.extremity.size === "auto" ? d.value / 20 : e.value.style.layout.wick.extremity.size,
654
671
  fill: e.value.style.layout.wick.extremity.color
655
- }, null, 8, rl)
672
+ }, null, 8, vl)
656
673
  ])) : h("", !0),
657
- e.value.style.layout.wick.extremity.shape === "line" ? (s(), u("g", dl, [
674
+ e.value.style.layout.wick.extremity.shape === "line" ? (s(), u("g", yl, [
658
675
  v("line", {
659
676
  x1: l.high.x - (e.value.style.layout.wick.extremity.size === "auto" ? d.value * e.value.style.layout.candle.widthRatio : e.value.style.layout.wick.extremity.size) / 2,
660
677
  x2: l.high.x + (e.value.style.layout.wick.extremity.size === "auto" ? d.value * e.value.style.layout.candle.widthRatio : e.value.style.layout.wick.extremity.size) / 2,
@@ -663,7 +680,7 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
663
680
  stroke: e.value.style.layout.wick.extremity.color,
664
681
  "stroke-width": e.value.style.layout.wick.strokeWidth,
665
682
  "stroke-linecap": "round"
666
- }, null, 8, vl),
683
+ }, null, 8, cl),
667
684
  v("line", {
668
685
  x1: l.low.x - (e.value.style.layout.wick.extremity.size === "auto" ? d.value * e.value.style.layout.candle.widthRatio : e.value.style.layout.wick.extremity.size) / 2,
669
686
  x2: l.low.x + (e.value.style.layout.wick.extremity.size === "auto" ? d.value * e.value.style.layout.candle.widthRatio : e.value.style.layout.wick.extremity.size) / 2,
@@ -672,12 +689,12 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
672
689
  stroke: e.value.style.layout.wick.extremity.color,
673
690
  "stroke-width": e.value.style.layout.wick.strokeWidth,
674
691
  "stroke-linecap": "round"
675
- }, null, 8, yl)
692
+ }, null, 8, hl)
676
693
  ])) : h("", !0)
677
694
  ]))), 256))
678
695
  ]),
679
696
  v("g", null, [
680
- (s(!0), u(F, null, R(m.value, (l, a) => (s(), u("rect", {
697
+ (s(!0), u(R, null, O(b.value, (l, o) => (s(), u("rect", {
681
698
  x: l.open.x - d.value / 2 + d.value * (1 - e.value.style.layout.candle.widthRatio) / 2,
682
699
  y: l.isBullish ? l.last.y : l.open.y,
683
700
  height: Math.abs(l.last.y - l.open.y) <= 0 ? 1e-4 : Math.abs(l.last.y - l.open.y),
@@ -685,40 +702,40 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
685
702
  fill: e.value.style.layout.candle.gradient.underlayer,
686
703
  rx: e.value.style.layout.candle.borderRadius,
687
704
  stroke: "none"
688
- }, null, 8, cl))), 256)),
689
- (s(!0), u(F, null, R(m.value, (l, a) => (s(), u("rect", {
705
+ }, null, 8, pl))), 256)),
706
+ (s(!0), u(R, null, O(b.value, (l, o) => (s(), u("rect", {
690
707
  x: l.open.x - d.value / 2 + d.value * (1 - e.value.style.layout.candle.widthRatio) / 2,
691
708
  y: l.isBullish ? l.last.y : l.open.y,
692
709
  height: Math.abs(l.last.y - l.open.y) <= 0 ? 1e-4 : Math.abs(l.last.y - l.open.y),
693
710
  width: d.value * e.value.style.layout.candle.widthRatio <= 0 ? 1e-4 : d.value * e.value.style.layout.candle.widthRatio,
694
- fill: l.isBullish ? e.value.style.layout.candle.gradient.show ? `url(#bullish_gradient_${k.value})` : e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.gradient.show ? `url(#bearish_gradient_${k.value})` : e.value.style.layout.candle.colors.bearish,
711
+ fill: l.isBullish ? e.value.style.layout.candle.gradient.show ? `url(#bullish_gradient_${w.value})` : e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.gradient.show ? `url(#bearish_gradient_${w.value})` : e.value.style.layout.candle.colors.bearish,
695
712
  rx: e.value.style.layout.candle.borderRadius,
696
713
  stroke: e.value.style.layout.candle.stroke,
697
714
  "stroke-width": e.value.style.layout.candle.strokeWidth,
698
715
  "stroke-linecap": "round",
699
716
  "stroke-linejoin": "round"
700
- }, null, 8, hl))), 256))
717
+ }, null, 8, fl))), 256))
701
718
  ]),
702
719
  v("g", null, [
703
- (s(!0), u(F, null, R(m.value, (l, a) => (s(), u("rect", {
704
- x: n.value.left + a * d.value,
720
+ (s(!0), u(R, null, O(b.value, (l, o) => (s(), u("rect", {
721
+ x: n.value.left + o * d.value,
705
722
  y: n.value.top,
706
723
  height: n.value.height <= 0 ? 1e-4 : n.value.height,
707
724
  width: d.value <= 0 ? 1e-4 : d.value,
708
- fill: ee.value === a ? r(Ct)(e.value.style.layout.selector.color, e.value.style.layout.selector.opacity) : "transparent",
709
- onMouseover: (C) => et(a, l),
710
- onMouseleave: o[0] || (o[0] = (C) => {
725
+ fill: ee.value === o ? r($t)(e.value.style.layout.selector.color, e.value.style.layout.selector.opacity) : "transparent",
726
+ onMouseover: (k) => tt(o, l),
727
+ onMouseleave: a[0] || (a[0] = (k) => {
711
728
  ee.value = void 0, Q.value = !1;
712
729
  })
713
- }, null, 40, pl))), 256))
730
+ }, null, 40, gl))), 256))
714
731
  ])
715
732
  ])) : h("", !0),
716
733
  g(t.$slots, "svg", { svg: c.value }, void 0, !0)
717
- ], 14, Et)) : h("", !0),
718
- t.$slots.watermark ? (s(), u("div", fl, [
719
- g(t.$slots, "watermark", T(L({ isPrinting: r(ke) || r(we) })), void 0, !0)
734
+ ], 14, Ut)) : h("", !0),
735
+ t.$slots.watermark ? (s(), u("div", xl, [
736
+ g(t.$slots, "watermark", L(F({ isPrinting: r(ke) || r(we) })), void 0, !0)
720
737
  ])) : h("", !0),
721
- E.value ? h("", !0) : (s(), I(r(He), {
738
+ B.value ? h("", !0) : (s(), T(r(je), {
722
739
  key: 6,
723
740
  config: {
724
741
  type: "candlesticks",
@@ -735,14 +752,14 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
735
752
  }
736
753
  }
737
754
  }, null, 8, ["config"])),
738
- e.value.style.zoom.show && E.value ? (s(), u("div", {
755
+ e.value.style.zoom.show && B.value ? (s(), u("div", {
739
756
  key: 7,
740
757
  ref_key: "chartSlicer",
741
758
  ref: ve
742
759
  }, [
743
- (s(), I(Nt, {
760
+ (s(), T(Pt, {
744
761
  ref_key: "slicerComponent",
745
- ref: V,
762
+ ref: E,
746
763
  key: `slicer_${G.value}`,
747
764
  background: e.value.style.zoom.color,
748
765
  borderColor: e.value.style.backgroundColor,
@@ -758,17 +775,17 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
758
775
  valueStart: p.value.start,
759
776
  valueEnd: p.value.end,
760
777
  start: p.value.start,
761
- "onUpdate:start": o[1] || (o[1] = (l) => p.value.start = l),
778
+ "onUpdate:start": a[1] || (a[1] = (l) => p.value.start = l),
762
779
  end: p.value.end,
763
- "onUpdate:end": o[2] || (o[2] = (l) => p.value.end = l),
780
+ "onUpdate:end": a[2] || (a[2] = (l) => p.value.end = l),
764
781
  refreshStartPoint: e.value.style.zoom.startIndex !== null ? e.value.style.zoom.startIndex : 0,
765
782
  refreshEndPoint: e.value.style.zoom.endIndex !== null ? e.value.style.zoom.endIndex + 1 : U.value,
766
783
  enableRangeHandles: e.value.style.zoom.enableRangeHandles,
767
784
  enableSelectionDrag: e.value.style.zoom.enableSelectionDrag,
768
- onReset: tt
785
+ onReset: lt
769
786
  }, {
770
- "reset-action": x(({ reset: l }) => [
771
- g(t.$slots, "reset-action", T(L({ reset: l })), void 0, !0)
787
+ "reset-action": m(({ reset: l }) => [
788
+ g(t.$slots, "reset-action", L(F({ reset: l })), void 0, !0)
772
789
  ]),
773
790
  _: 3
774
791
  }, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"]))
@@ -777,7 +794,7 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
777
794
  ref_key: "chartLegend",
778
795
  ref: de
779
796
  }, [
780
- g(t.$slots, "legend", { legend: m.value }, void 0, !0)
797
+ g(t.$slots, "legend", { legend: b.value }, void 0, !0)
781
798
  ], 512),
782
799
  t.$slots.source ? (s(), u("div", {
783
800
  key: 8,
@@ -787,8 +804,8 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
787
804
  }, [
788
805
  g(t.$slots, "source", {}, void 0, !0)
789
806
  ], 512)) : h("", !0),
790
- Pe(r(je), {
791
- show: _.value.showTooltip && Q.value,
807
+ Ve(r(Xe), {
808
+ show: C.value.showTooltip && Q.value,
792
809
  backgroundColor: e.value.style.tooltip.backgroundColor,
793
810
  color: e.value.style.tooltip.color,
794
811
  borderRadius: e.value.style.tooltip.borderRadius,
@@ -798,24 +815,24 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
798
815
  backgroundOpacity: e.value.style.tooltip.backgroundOpacity,
799
816
  position: e.value.style.tooltip.position,
800
817
  offsetY: e.value.style.tooltip.offsetY,
801
- parent: B.value,
818
+ parent: A.value,
802
819
  content: Z.value,
803
820
  isFullscreen: M.value,
804
821
  isCustom: e.value.style.tooltip.customFormat && typeof e.value.style.tooltip.customFormat == "function"
805
822
  }, {
806
- "tooltip-before": x(() => [
807
- g(t.$slots, "tooltip-before", T(L({ ...oe.value })), void 0, !0)
823
+ "tooltip-before": m(() => [
824
+ g(t.$slots, "tooltip-before", L(F({ ...ae.value })), void 0, !0)
808
825
  ]),
809
- "tooltip-after": x(() => [
810
- g(t.$slots, "tooltip-after", T(L({ ...oe.value })), void 0, !0)
826
+ "tooltip-after": m(() => [
827
+ g(t.$slots, "tooltip-after", L(F({ ...ae.value })), void 0, !0)
811
828
  ]),
812
829
  _: 3
813
830
  }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
814
- E.value ? (s(), I(r(Ue), {
831
+ B.value ? (s(), T(r(De), {
815
832
  key: 9,
816
833
  hideDetails: "",
817
834
  config: {
818
- open: _.value.showTable,
835
+ open: C.value.showTable,
819
836
  maxHeight: 1e4,
820
837
  body: {
821
838
  backgroundColor: e.value.style.backgroundColor,
@@ -827,30 +844,30 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
827
844
  }
828
845
  }
829
846
  }, {
830
- content: x(() => [
831
- (s(), I(r(De), {
847
+ content: m(() => [
848
+ (s(), T(r(We), {
832
849
  key: `table_${he.value}`,
833
850
  colNames: j.value.colNames,
834
851
  head: j.value.head,
835
852
  body: j.value.body,
836
853
  config: j.value.config,
837
854
  title: `${e.value.style.title.text}${e.value.style.title.subtitle.text ? ` : ${e.value.style.title.subtitle.text}` : ""}`,
838
- onClose: o[3] || (o[3] = (l) => _.value.showTable = !1)
855
+ onClose: a[3] || (a[3] = (l) => C.value.showTable = !1)
839
856
  }, {
840
- th: x(({ th: l }) => [
841
- gt(q(l), 1)
857
+ th: m(({ th: l }) => [
858
+ xt(q(l), 1)
842
859
  ]),
843
- td: x(({ td: l }) => [
844
- v("div", { innerHTML: l }, null, 8, gl)
860
+ td: m(({ td: l }) => [
861
+ v("div", { innerHTML: l }, null, 8, ml)
845
862
  ]),
846
863
  _: 1
847
864
  }, 8, ["colNames", "head", "body", "config", "title"]))
848
865
  ]),
849
866
  _: 1
850
867
  }, 8, ["config"])) : h("", !0)
851
- ], 46, Mt));
868
+ ], 46, Bt));
852
869
  }
853
- }, Ll = /* @__PURE__ */ Vt(xl, [["__scopeId", "data-v-7e73d8b0"]]);
870
+ }, Ol = /* @__PURE__ */ Mt(bl, [["__scopeId", "data-v-57696154"]]);
854
871
  export {
855
- Ll as default
872
+ Ol as default
856
873
  };