vue-data-ui 3.0.0-next.28 → 3.0.0-next.29

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 (90) hide show
  1. package/dist/{Arrow-FEiXAF1f.js → Arrow-CiuwQF8m.js} +1 -1
  2. package/dist/{BaseDraggableDialog-B0E68Ss_.js → BaseDraggableDialog-Cu_9Wh21.js} +2 -2
  3. package/dist/{BaseIcon-CNk8ZQxC.js → BaseIcon-Ds5wm_lU.js} +1 -1
  4. package/dist/{ColorPicker-Bh0sQqJU.js → ColorPicker-BoUMEIs2.js} +2 -2
  5. package/dist/{DataTable-BtWOpycK.js → DataTable-BYNUm5Gf.js} +2 -2
  6. package/dist/{Legend-DTMU8MPG.js → Legend-BisCjbG2.js} +2 -2
  7. package/dist/{NonSvgPenAndPaper-DFdkMS2K.js → NonSvgPenAndPaper-CD5eBRSn.js} +3 -3
  8. package/dist/{PackageVersion-BcAEQLLi.js → PackageVersion-BzwYjMOW.js} +1 -1
  9. package/dist/{PenAndPaper-CmO7bEfi.js → PenAndPaper-DTcaSmnI.js} +3 -3
  10. package/dist/{Shape-CQVlnhqo.js → Shape-EL8kKFHT.js} +1 -1
  11. package/dist/{Slicer-DVW32UTi.js → Slicer-jLSY0Lnb.js} +2 -2
  12. package/dist/{SparkTooltip-BKSFRids.js → SparkTooltip-CZY7wxg6.js} +7 -7
  13. package/dist/{Title-CGN9QiYI.js → Title-DONRFCZQ.js} +1 -1
  14. package/dist/{Tooltip-mMwokTkO.js → Tooltip-cz9CUpDk.js} +1 -1
  15. package/dist/{UserOptions-DYn2297n.js → UserOptions-By5PgYu0.js} +2 -2
  16. package/dist/{dom-to-png-BVzHEl2w.js → dom-to-png-Ds-_cp6X.js} +1 -1
  17. package/dist/{img-ChuzqrF3.js → img-D3r3OOFG.js} +1 -1
  18. package/dist/{index-DwurWOmm.js → index-Drw6d_8M.js} +471 -446
  19. package/dist/{pdf-C9A0Wlta.js → pdf-CVT2uMk-.js} +1 -1
  20. package/dist/style.css +1 -1
  21. package/dist/types/vue-data-ui.d.cts +11 -1
  22. package/dist/types/vue-data-ui.d.ts +11 -1
  23. package/dist/{useNestedProp-CFAjw-uI.js → useNestedProp-DU20xu9g.js} +1 -1
  24. package/dist/{usePrinter-BvsDO5CU.js → usePrinter-QRK7y9fG.js} +2 -2
  25. package/dist/{vue-data-ui-DnH55d6o.js → vue-data-ui-DuuCpgPB.js} +64 -64
  26. package/dist/vue-data-ui.js +14 -14
  27. package/dist/{vue-ui-3d-bar-BIPJDf4a.js → vue-ui-3d-bar-CWlFg9DD.js} +6 -6
  28. package/dist/{vue-ui-accordion-C7ba8AVe.js → vue-ui-accordion-DFtpDmPO.js} +3 -3
  29. package/dist/{vue-ui-age-pyramid-CIg_Ehbq.js → vue-ui-age-pyramid-is2_9zCy.js} +6 -6
  30. package/dist/{vue-ui-annotator-C3nqKGzo.js → vue-ui-annotator-Do3nQwyq.js} +2 -2
  31. package/dist/{vue-ui-bullet-DK3bEHJG.js → vue-ui-bullet-BCcEWGfk.js} +7 -7
  32. package/dist/{vue-ui-candlestick-HXpLcsDU.js → vue-ui-candlestick-D75PUpAs.js} +368 -356
  33. package/dist/{vue-ui-carousel-table-BnplX7KO.js → vue-ui-carousel-table-293Ej8CA.js} +4 -4
  34. package/dist/{vue-ui-chestnut-sQskMYei.js → vue-ui-chestnut-CqevC3UI.js} +5 -5
  35. package/dist/{vue-ui-chord-CT-viUg5.js → vue-ui-chord-Rp3K6Lii.js} +8 -8
  36. package/dist/{vue-ui-circle-pack-BEjSuhTw.js → vue-ui-circle-pack-CXtlLhzT.js} +26 -26
  37. package/dist/{vue-ui-cursor-DP40Z3Pg.js → vue-ui-cursor-DMJ3qvUm.js} +2 -2
  38. package/dist/{vue-ui-dashboard-CoukhCPg.js → vue-ui-dashboard-CRBPcH6A.js} +62 -62
  39. package/dist/{vue-ui-digits-FLazCL03.js → vue-ui-digits-DH-Q4hVR.js} +2 -2
  40. package/dist/{vue-ui-donut-C_f5VCo9.js → vue-ui-donut-SfwmwqtT.js} +15 -15
  41. package/dist/{vue-ui-donut-evolution-C8eGM4Wc.js → vue-ui-donut-evolution-D0_XaBt0.js} +8 -8
  42. package/dist/{vue-ui-dumbbell-Bcy0H0ej.js → vue-ui-dumbbell-DstzNHet.js} +7 -7
  43. package/dist/{vue-ui-flow-PBHoj24k.js → vue-ui-flow-CINFQqZt.js} +7 -7
  44. package/dist/{vue-ui-funnel--s2L_i_f.js → vue-ui-funnel-BkiTiKQd.js} +6 -6
  45. package/dist/{vue-ui-galaxy-5iik4XcF.js → vue-ui-galaxy-DBFG7HdS.js} +5 -5
  46. package/dist/{vue-ui-gauge-Cc8XdZEO.js → vue-ui-gauge-CpitXRT_.js} +6 -6
  47. package/dist/{vue-ui-gizmo-D9YdWF0U.js → vue-ui-gizmo-qNDblGTz.js} +3 -3
  48. package/dist/{vue-ui-heatmap-CNuiN6e-.js → vue-ui-heatmap-B_oEnnp5.js} +7 -7
  49. package/dist/{vue-ui-history-plot-DTv_F82N.js → vue-ui-history-plot-C0u_r6yx.js} +7 -7
  50. package/dist/{vue-ui-kpi-pLPQLsiF.js → vue-ui-kpi-C3yPBtHe.js} +3 -3
  51. package/dist/{vue-ui-mini-loader-CDYKGa7j.js → vue-ui-mini-loader-DKo5mbDP.js} +2 -2
  52. package/dist/{vue-ui-molecule-BV9JjR8F.js → vue-ui-molecule-B2mjoO1f.js} +5 -5
  53. package/dist/{vue-ui-mood-radar-Cknw3hKt.js → vue-ui-mood-radar-Bz9hnSwG.js} +7 -7
  54. package/dist/{vue-ui-nested-donuts-C85ZFJ_q.js → vue-ui-nested-donuts-BG1-HO_j.js} +9 -9
  55. package/dist/{vue-ui-onion-C9cZNyC3.js → vue-ui-onion-Bd8kKYgU.js} +7 -7
  56. package/dist/{vue-ui-parallel-coordinate-plot-D7H2zhCF.js → vue-ui-parallel-coordinate-plot-AlccjyUy.js} +8 -8
  57. package/dist/{vue-ui-quadrant-Cfvu8-h1.js → vue-ui-quadrant-lwBwsQGQ.js} +8 -8
  58. package/dist/{vue-ui-quick-chart-B3d2FDBP.js → vue-ui-quick-chart-ptglu1rg.js} +6 -6
  59. package/dist/{vue-ui-radar-CQcjyxwQ.js → vue-ui-radar-CvfWH-X1.js} +7 -7
  60. package/dist/{vue-ui-rating-DEDPYi2F.js → vue-ui-rating-B62Mouk9.js} +2 -2
  61. package/dist/{vue-ui-relation-circle-swVQdvQX.js → vue-ui-relation-circle-Dz5xbuMA.js} +6 -6
  62. package/dist/{vue-ui-ridgeline-DU85JJKL.js → vue-ui-ridgeline-rihpGXpL.js} +8 -8
  63. package/dist/{vue-ui-rings-CwVJAUv8.js → vue-ui-rings-Bvkl_gGE.js} +8 -8
  64. package/dist/{vue-ui-scatter-Dqltdynp.js → vue-ui-scatter-iiBD78Rv.js} +8 -8
  65. package/dist/{vue-ui-skeleton-C8QYEKxX.js → vue-ui-skeleton-Nk3lNLyJ.js} +3 -3
  66. package/dist/{vue-ui-smiley-BiPXfmqf.js → vue-ui-smiley-DW9VJtj5.js} +2 -2
  67. package/dist/{vue-ui-spark-trend-DkyWiTg0.js → vue-ui-spark-trend-CGVoppzj.js} +3 -3
  68. package/dist/{vue-ui-sparkbar-CEjHYHRg.js → vue-ui-sparkbar-DmrLheol.js} +3 -3
  69. package/dist/{vue-ui-sparkgauge-CqsLMGbd.js → vue-ui-sparkgauge-CKperP9m.js} +3 -3
  70. package/dist/{vue-ui-sparkhistogram-BQeOmWdJ.js → vue-ui-sparkhistogram-EzDfHOa5.js} +4 -4
  71. package/dist/vue-ui-sparkline-B37Xfywa.js +489 -0
  72. package/dist/{vue-ui-sparkstackbar-WMpYFqmu.js → vue-ui-sparkstackbar-Cm6GOcMS.js} +3 -3
  73. package/dist/{vue-ui-stackbar-BvA1pWBy.js → vue-ui-stackbar-uwRm8VIN.js} +9 -9
  74. package/dist/{vue-ui-strip-plot-sPsAx0ly.js → vue-ui-strip-plot-Ct3KViHW.js} +7 -7
  75. package/dist/{vue-ui-table-DFIQk2V5.js → vue-ui-table-DK2l7UuW.js} +3 -3
  76. package/dist/{vue-ui-table-heatmap-DP9OWEX0.js → vue-ui-table-heatmap-ClNGX-vt.js} +5 -5
  77. package/dist/{vue-ui-table-sparkline-DQBQeejJ.js → vue-ui-table-sparkline-uOKEV4lQ.js} +4 -4
  78. package/dist/{vue-ui-thermometer-BfPYbE4s.js → vue-ui-thermometer-7P2C_tYI.js} +6 -6
  79. package/dist/{vue-ui-timer-B7vfnEvV.js → vue-ui-timer-91k48mL9.js} +5 -5
  80. package/dist/{vue-ui-tiremarks-BBSUpVrJ.js → vue-ui-tiremarks-Q7YTYW8d.js} +6 -6
  81. package/dist/{vue-ui-treemap-BKrRAwDR.js → vue-ui-treemap-Bec-ZUUL.js} +8 -8
  82. package/dist/{vue-ui-vertical-bar-BcaY2dnD.js → vue-ui-vertical-bar-BYuzy6qw.js} +9 -9
  83. package/dist/{vue-ui-waffle-CBPTLkE9.js → vue-ui-waffle-C2iKJKJU.js} +8 -8
  84. package/dist/{vue-ui-wheel-CzCd72Xa.js → vue-ui-wheel-qtyTFtKC.js} +6 -6
  85. package/dist/{vue-ui-word-cloud-DQrrAfUw.js → vue-ui-word-cloud-BKF4BkvX.js} +6 -6
  86. package/dist/{vue-ui-world-CSnvYru5.js → vue-ui-world-DfHQKtGj.js} +6 -6
  87. package/dist/{vue-ui-xy-D1ZyohhW.js → vue-ui-xy-Bq3enVyu.js} +8 -8
  88. package/dist/{vue-ui-xy-canvas-CQWhSrqq.js → vue-ui-xy-canvas-Cq0zmNY0.js} +8 -8
  89. package/package.json +1 -1
  90. package/dist/vue-ui-sparkline-BzskaXWk.js +0 -459
@@ -1,21 +1,21 @@
1
- import { defineAsyncComponent as M, computed as b, ref as r, toRefs as zt, watch as ce, shallowRef as He, onMounted as St, onBeforeUnmount as We, watchEffect as Lt, nextTick as he, createElementBlock as u, openBlock as s, unref as n, normalizeStyle as fe, normalizeClass as Ge, createBlock as F, createCommentVNode as g, createElementVNode as d, createVNode as Xe, createSlots as Tt, withCtx as x, renderSlot as m, normalizeProps as R, guardReactiveProps as O, Fragment as N, renderList as P, toDisplayString as q, createTextVNode as It } from "vue";
2
- import { u as Ft, c as Rt, A as Ot, a as Nt, C as J, o as je, e as V, D as Pt, v as H, f as $, X as Vt, w as K, s as Et, E as Ye, q as Bt, r as Mt, x as Ut, y as Dt } from "./index-DwurWOmm.js";
3
- import { t as qe, u as Ht } from "./useResponsive-DfdjqQps.js";
4
- import { u as Je } from "./useNestedProp-CFAjw-uI.js";
5
- import { u as Wt } from "./usePrinter-BvsDO5CU.js";
6
- import { u as Gt } from "./useUserOptionState-BIvW1Kz7.js";
7
- import { u as Xt } from "./useChartAccessibility-9icAAmYg.js";
8
- import { u as jt, B as Yt } from "./BaseScanner-DIK2NTdp.js";
9
- import qt from "./Title-CGN9QiYI.js";
10
- import { S as Jt } from "./Slicer-DVW32UTi.js";
11
- import { u as Kt } from "./useTimeLabels-DFkUfjfs.js";
12
- import Qt from "./img-ChuzqrF3.js";
13
- import { u as Zt } from "./useTimeLabelCollider-V7AOiPLB.js";
14
- import { _ as el } from "./_plugin-vue_export-helper-CHgC5LLL.js";
15
- const tl = ["id"], ll = ["xmlns", "aria-label", "viewBox"], al = ["x", "y", "width", "height"], ol = { key: 1 }, sl = ["id"], ul = ["stop-color"], il = ["stop-color"], nl = ["stop-color"], rl = ["id"], vl = ["stop-color"], dl = ["stop-color"], yl = ["stop-color"], cl = { key: 0 }, hl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], fl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], gl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], pl = ["x", "y", "font-size", "fill", "font-weight"], bl = ["transform", "text-anchor", "font-size", "fill", "font-weight"], ml = ["transform", "text-anchor", "font-size", "fill", "font-weight"], xl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], kl = { key: 0 }, wl = ["cx", "cy", "r", "fill"], Al = ["cx", "cy", "r", "fill"], _l = { key: 1 }, Cl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], $l = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], zl = ["x", "y", "height", "width", "fill", "rx"], Sl = ["x", "y", "height", "width", "fill", "rx", "stroke", "stroke-width"], Ll = ["x", "y", "height", "width", "fill", "onMouseover"], Tl = {
1
+ import { defineAsyncComponent as D, computed as b, ref as r, toRefs as Lt, watch as pe, shallowRef as Xe, onMounted as Tt, onBeforeUnmount as je, watchEffect as It, nextTick as be, createElementBlock as i, openBlock as s, unref as u, normalizeStyle as me, normalizeClass as S, createBlock as N, createCommentVNode as g, createElementVNode as d, createVNode as Ye, createSlots as Ft, withCtx as x, renderSlot as m, normalizeProps as P, guardReactiveProps as V, Fragment as E, renderList as B, toDisplayString as Q, createTextVNode as Rt } from "vue";
2
+ import { u as Ot, c as Nt, A as Pt, a as Vt, C as Z, o as qe, e as M, D as Et, v as X, f as L, X as Bt, w as ee, s as Mt, E as Je, q as Ut, r as Wt, x as Dt, y as Ht } from "./index-Drw6d_8M.js";
3
+ import { t as Ke, u as Gt } from "./useResponsive-DfdjqQps.js";
4
+ import { u as Qe } from "./useNestedProp-DU20xu9g.js";
5
+ import { u as Xt } from "./usePrinter-QRK7y9fG.js";
6
+ import { u as jt } from "./useUserOptionState-BIvW1Kz7.js";
7
+ import { u as Yt } from "./useChartAccessibility-9icAAmYg.js";
8
+ import { u as qt, B as Jt } from "./BaseScanner-DIK2NTdp.js";
9
+ import Kt from "./Title-DONRFCZQ.js";
10
+ import { S as Qt } from "./Slicer-jLSY0Lnb.js";
11
+ import { u as Zt } from "./useTimeLabels-DFkUfjfs.js";
12
+ import el from "./img-D3r3OOFG.js";
13
+ import { u as tl } from "./useTimeLabelCollider-V7AOiPLB.js";
14
+ import { _ as ll } from "./_plugin-vue_export-helper-CHgC5LLL.js";
15
+ const al = ["id"], ol = ["xmlns", "aria-label", "viewBox"], sl = ["x", "y", "width", "height"], ul = { key: 1 }, il = ["id"], nl = ["stop-color"], rl = ["stop-color"], vl = ["stop-color"], dl = ["id"], yl = ["stop-color"], cl = ["stop-color"], hl = ["stop-color"], fl = { key: 0 }, gl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], pl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], bl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ml = ["x", "y", "font-size", "fill", "font-weight"], xl = ["transform", "text-anchor", "font-size", "fill", "font-weight"], kl = ["transform", "text-anchor", "font-size", "fill", "font-weight"], wl = ["x", "y", "width", "height", "fill", "rx"], Al = { key: 0 }, _l = ["cx", "cy", "r", "fill"], Cl = ["cx", "cy", "r", "fill"], $l = { key: 1 }, zl = ["x", "y", "width", "height", "rx", "fill"], Sl = ["x", "y", "width", "height", "fill", "rx"], Ll = ["x", "y", "height", "width", "fill", "rx"], Tl = ["x", "y", "height", "width", "fill", "rx", "stroke", "stroke-width"], Il = ["x", "y", "height", "width", "fill", "onMouseover"], Fl = {
16
16
  key: 4,
17
17
  class: "vue-data-ui-watermark"
18
- }, Il = ["innerHTML"], Fl = {
18
+ }, Rl = ["innerHTML"], Ol = {
19
19
  __name: "vue-ui-candlestick",
20
20
  props: {
21
21
  config: {
@@ -31,14 +31,14 @@ const tl = ["id"], ll = ["xmlns", "aria-label", "viewBox"], al = ["x", "y", "wid
31
31
  }
32
32
  }
33
33
  },
34
- setup(Ke, { expose: Qe }) {
35
- const Ze = M(() => import("./vue-ui-accordion-C7ba8AVe.js")), et = M(() => import("./DataTable-BtWOpycK.js")), tt = M(() => import("./PackageVersion-BcAEQLLi.js")), lt = M(() => import("./PenAndPaper-CmO7bEfi.js")), at = M(() => import("./Tooltip-mMwokTkO.js")), ot = M(() => import("./UserOptions-DYn2297n.js")), { vue_ui_candlestick: st } = Ft(), c = Ke, Q = b(() => !!c.dataset && c.dataset.length), w = r(Rt()), ut = r(null), Z = r(!1), ee = r(""), te = r(void 0), ge = r(0), z = r(null), pe = r(null), be = r(null), me = r(null), xe = r(null), ke = r(null), W = r(0), we = r(0), Ae = r(0), le = r(null), U = r(null), e = r(se()), { loading: _e, FINAL_DATASET: A, manualLoading: ae } = jt({
36
- ...zt(c),
34
+ setup(Ze, { expose: et }) {
35
+ const tt = D(() => import("./vue-ui-accordion-DFtpDmPO.js")), lt = D(() => import("./DataTable-BYNUm5Gf.js")), at = D(() => import("./PackageVersion-BzwYjMOW.js")), ot = D(() => import("./PenAndPaper-DTcaSmnI.js")), st = D(() => import("./Tooltip-cz9CUpDk.js")), ut = D(() => import("./UserOptions-By5PgYu0.js")), { vue_ui_candlestick: it } = Ot(), c = Ze, te = b(() => !!c.dataset && c.dataset.length), $ = r(!1), le = r(null), w = r(Nt()), nt = r(null), ae = r(!1), oe = r(""), se = r(void 0), xe = r(0), T = r(null), ke = r(null), we = r(null), Ae = r(null), _e = r(null), Ce = r(null), j = r(0), $e = r(0), ze = r(0), ue = r(null), H = r(null), e = r(re()), { loading: z, FINAL_DATASET: A, manualLoading: ie } = qt({
36
+ ...Lt(c),
37
37
  FINAL_CONFIG: e,
38
- prepareConfig: se,
38
+ prepareConfig: re,
39
39
  callback: () => {
40
40
  Promise.resolve().then(async () => {
41
- await re();
41
+ await ce();
42
42
  });
43
43
  },
44
44
  skeletonDataset: [
@@ -49,13 +49,13 @@ const tl = ["id"], ll = ["xmlns", "aria-label", "viewBox"], al = ["x", "y", "wid
49
49
  [17145216e5, 50, 130, 30, 100, 210],
50
50
  [17172e8, 80, 210, 50, 150, 340],
51
51
  [1719792e6, 130, 340, 80, 280, 550],
52
- [17224704e5, 210, 550, 130, 50, 890],
52
+ [17224704e5, 210, 550, 130, 450, 890],
53
53
  [17251488e5, 340, 890, 210, 750, 1440],
54
54
  [17277408e5, 550, 1440, 340, 1230, 2330],
55
55
  [17304192e5, 890, 2330, 550, 1950, 3770],
56
56
  [17330112e5, 1440, 3770, 890, 3200, 5100]
57
57
  ],
58
- skeletonConfig: Ot({
58
+ skeletonConfig: Pt({
59
59
  defaultConfig: e.value,
60
60
  userConfig: {
61
61
  useCssAnimation: !1,
@@ -96,159 +96,164 @@ const tl = ["id"], ll = ["xmlns", "aria-label", "viewBox"], al = ["x", "y", "wid
96
96
  }
97
97
  }
98
98
  })
99
- }), { userOptionsVisible: oe, setUserOptionsVisibility: Ce, keepUserOptionState: $e } = Gt({ config: e.value }), { svgRef: ze } = Xt({ config: e.value.style.title });
100
- function se() {
101
- const t = Je({
99
+ }), { userOptionsVisible: ne, setUserOptionsVisibility: Se, keepUserOptionState: Le } = jt({ config: e.value }), { svgRef: Te } = Yt({ config: e.value.style.title });
100
+ function re() {
101
+ const t = Qe({
102
102
  userConfig: c.config,
103
- defaultConfig: st
103
+ defaultConfig: it
104
104
  });
105
105
  let a = {};
106
106
  return t.theme ? a = {
107
- ...Je({
108
- userConfig: Nt.vue_ui_candlestick[t.theme] || c.config,
107
+ ...Qe({
108
+ userConfig: Vt.vue_ui_candlestick[t.theme] || c.config,
109
109
  defaultConfig: t
110
110
  })
111
- } : a = t, c.config && J(c.config, "style.zoom.startIndex") ? a.style.zoom.startIndex = c.config.style.zoom.startIndex : a.style.zoom.startIndex = null, c.config && J(c.config, "style.zoom.endIndex") ? a.style.zoom.endIndex = c.config.style.zoom.endIndex : a.style.zoom.endIndex = null, c.config && J(c.config, "style.layout.grid.yAxis.scale.min") ? a.style.layout.grid.yAxis.scale.min = c.config.style.layout.grid.yAxis.scale.min : a.style.layout.grid.yAxis.scale.min = null, c.config && J(c.config, "style.layout.grid.yAxis.scale.max") ? a.style.layout.grid.yAxis.scale.max = c.config.style.layout.grid.yAxis.scale.max : a.style.layout.grid.yAxis.scale.max = null, a;
111
+ } : a = t, c.config && Z(c.config, "style.zoom.startIndex") ? a.style.zoom.startIndex = c.config.style.zoom.startIndex : a.style.zoom.startIndex = null, c.config && Z(c.config, "style.zoom.endIndex") ? a.style.zoom.endIndex = c.config.style.zoom.endIndex : a.style.zoom.endIndex = null, c.config && Z(c.config, "style.layout.grid.yAxis.scale.min") ? a.style.layout.grid.yAxis.scale.min = c.config.style.layout.grid.yAxis.scale.min : a.style.layout.grid.yAxis.scale.min = null, c.config && Z(c.config, "style.layout.grid.yAxis.scale.max") ? a.style.layout.grid.yAxis.scale.max = c.config.style.layout.grid.yAxis.scale.max : a.style.layout.grid.yAxis.scale.max = null, a;
112
112
  }
113
- ce(() => c.config, (t) => {
114
- _e.value || (e.value = se()), oe.value = !e.value.userOptions.showOnChartHover, Se(), W.value += 1, Ae.value += 1, we.value += 1, _.value.showTable = e.value.table.show, _.value.showTooltip = e.value.style.tooltip.show;
115
- }, { deep: !0 }), ce(() => c.dataset, (t) => {
116
- Array.isArray(t) && t.length > 0 && (ae.value = !1), h.value.start = 0, h.value.end = t.length, W.value += 1;
113
+ pe(() => c.config, (t) => {
114
+ z.value || (e.value = re()), ne.value = !e.value.userOptions.showOnChartHover, Ie(), j.value += 1, ze.value += 1, $e.value += 1, _.value.showTable = e.value.table.show, _.value.showTooltip = e.value.style.tooltip.show;
115
+ }, { deep: !0 }), pe(() => c.dataset, (t) => {
116
+ Array.isArray(t) && t.length > 0 && (ie.value = !1), h.value.start = 0, h.value.end = t.length, j.value += 1;
117
117
  }, { deep: !0 });
118
118
  const y = r({
119
119
  height: e.value.style.height,
120
120
  width: e.value.style.width,
121
121
  xAxisFontSize: e.value.style.layout.grid.xAxis.dataLabels.fontSize,
122
122
  yAxisFontSize: e.value.style.layout.grid.yAxis.dataLabels.fontSize
123
- }), S = He(null), E = He(null);
124
- St(() => {
125
- Se();
123
+ }), I = Xe(null), U = Xe(null);
124
+ Tt(() => {
125
+ Ie();
126
126
  });
127
- const L = b(() => !!e.value.debug);
128
- function Se() {
129
- if (je(c.dataset) && (V({
127
+ const F = b(() => !!e.value.debug);
128
+ function Ie() {
129
+ if (qe(c.dataset) && (M({
130
130
  componentName: "VueUiCandlestick",
131
131
  type: "dataset",
132
- debug: L.value
133
- }), ae.value = !0), je(c.dataset) || (ae.value = e.value.loading), e.value.responsive) {
134
- const a = qe(() => {
135
- const { width: l, height: o } = Ht({
136
- chart: z.value,
137
- title: e.value.style.title.text ? pe.value : null,
138
- slicer: me.value,
139
- legend: be.value,
140
- source: xe.value,
141
- noTitle: ke.value
132
+ debug: F.value
133
+ }), ie.value = !0), qe(c.dataset) || (ie.value = e.value.loading), setTimeout(() => {
134
+ $.value = !0;
135
+ }, 10), e.value.responsive) {
136
+ const a = Ke(() => {
137
+ $.value = !1;
138
+ const { width: l, height: o } = Gt({
139
+ chart: T.value,
140
+ title: e.value.style.title.text ? ke.value : null,
141
+ slicer: Ae.value,
142
+ legend: we.value,
143
+ source: _e.value,
144
+ noTitle: Ce.value
142
145
  });
143
146
  requestAnimationFrame(() => {
144
- y.value.width = l, y.value.height = o - 12, e.value.responsiveProportionalSizing ? (y.value.xAxisFontSize = Ye({
147
+ y.value.width = l, y.value.height = o - 12, e.value.responsiveProportionalSizing ? (y.value.xAxisFontSize = Je({
145
148
  relator: Math.min(l, o),
146
149
  adjuster: e.value.style.width,
147
150
  source: e.value.style.layout.grid.xAxis.dataLabels.fontSize,
148
151
  threshold: 6,
149
152
  fallback: 6
150
- }), y.value.yAxisFontSize = Ye({
153
+ }), y.value.yAxisFontSize = Je({
151
154
  relator: Math.min(l, o),
152
155
  adjuster: e.value.style.width,
153
156
  source: e.value.style.layout.grid.yAxis.dataLabels.fontSize,
154
157
  threshold: 6,
155
158
  fallback: 6
156
- })) : (y.value.xAxisFontSize = e.value.style.layout.grid.xAxis.dataLabels.fontSize, y.value.yAxisFontSize = e.value.style.layout.grid.yAxis.dataLabels.fontSize);
159
+ })) : (y.value.xAxisFontSize = e.value.style.layout.grid.xAxis.dataLabels.fontSize, y.value.yAxisFontSize = e.value.style.layout.grid.yAxis.dataLabels.fontSize), le.value && clearTimeout(le.value), le.value = setTimeout(() => {
160
+ $.value = !0;
161
+ }, 10);
157
162
  });
158
163
  });
159
- S.value && (E.value && S.value.unobserve(E.value), S.value.disconnect()), S.value = new ResizeObserver(a), E.value = z.value.parentNode, S.value.observe(E.value);
164
+ I.value && (U.value && I.value.unobserve(U.value), I.value.disconnect()), I.value = new ResizeObserver(a), U.value = T.value.parentNode, I.value.observe(U.value);
160
165
  }
161
- re();
166
+ ce();
162
167
  }
163
- We(() => {
164
- S.value && (E.value && S.value.unobserve(E.value), S.value.disconnect());
168
+ je(() => {
169
+ I.value && (U.value && I.value.unobserve(U.value), I.value.disconnect());
165
170
  });
166
- const { isPrinting: Le, isImaging: Te, generatePdf: Ie, generateImage: Fe } = Wt({
171
+ const { isPrinting: Fe, isImaging: Re, generatePdf: Oe, generateImage: Ne } = Xt({
167
172
  elementId: `vue-ui-candlestick_${w.value}`,
168
173
  fileName: e.value.style.title.text || "vue-ui-candlestick",
169
174
  options: e.value.userOptions.print
170
- }), it = b(() => e.value.userOptions.show && !e.value.style.title.text), _ = r({
175
+ }), rt = b(() => e.value.userOptions.show && !e.value.style.title.text), _ = r({
171
176
  showTable: e.value.table.show,
172
177
  showTooltip: e.value.style.tooltip.show
173
- }), ue = r(0), nt = qe((t) => {
174
- ue.value = t;
178
+ }), ve = r(0), vt = Ke((t) => {
179
+ ve.value = t;
175
180
  }, 100);
176
- Lt((t) => {
177
- const a = U.value;
181
+ It((t) => {
182
+ const a = H.value;
178
183
  if (!a) return;
179
184
  const l = new ResizeObserver((o) => {
180
- nt(o[0].contentRect.height);
185
+ vt(o[0].contentRect.height);
181
186
  });
182
187
  l.observe(a), t(() => l.disconnect());
183
- }), We(() => {
184
- ue.value = 0;
188
+ }), je(() => {
189
+ ve.value = 0;
185
190
  });
186
- const Re = b(() => {
191
+ const Pe = b(() => {
187
192
  let t = 0;
188
- return U.value && (t = ue.value + y.value.xAxisFontSize), t;
193
+ return H.value && (t = ve.value + y.value.xAxisFontSize), t;
189
194
  });
190
- function rt() {
195
+ function dt() {
191
196
  let t = e.value.style.layout.grid.yAxis.dataLabels.offsetX;
192
- return le.value && (t = Array.from(le.value.querySelectorAll("text")).reduce((o, p) => {
197
+ return ue.value && (t = Array.from(ue.value.querySelectorAll("text")).reduce((o, p) => {
193
198
  const f = p.getComputedTextLength();
194
199
  return f > o ? f : o;
195
200
  }, 0)), t + 13;
196
201
  }
197
- const i = b(() => {
198
- const { top: t, right: a, bottom: l, left: o } = e.value.style.layout.padding, p = rt(), f = 12;
202
+ const n = b(() => {
203
+ const { top: t, right: a, bottom: l, left: o } = e.value.style.layout.padding, p = dt(), f = 12;
199
204
  return {
200
205
  top: t + f,
201
206
  right: y.value.width - a,
202
207
  left: o + p,
203
- bottom: y.value.height - l - Re.value,
208
+ bottom: y.value.height - l - Pe.value,
204
209
  width: y.value.width - o - a - p,
205
- height: y.value.height - t - l - Re.value - f
210
+ height: y.value.height - t - l - Pe.value - f
206
211
  };
207
- }), D = b(() => A.value.length), h = r({
212
+ }), G = b(() => A.value.length), h = r({
208
213
  start: 0,
209
- end: D.value
210
- }), Oe = b(() => A.value.map((t, a) => ({
214
+ end: G.value
215
+ }), Ve = b(() => A.value.map((t, a) => ({
211
216
  ...t,
212
217
  absoluteIndex: a
213
- })).slice(h.value.start, h.value.end)), ie = b(() => (A.value.forEach((t, a) => {
214
- [null, void 0].includes(t[0]) && V({
218
+ })).slice(h.value.start, h.value.end)), de = b(() => (A.value.forEach((t, a) => {
219
+ [null, void 0].includes(t[0]) && M({
215
220
  componentName: "VueUiCandlestick",
216
221
  type: "datasetAttribute",
217
222
  property: "period (index 0)",
218
223
  index: a,
219
- debug: L.value
220
- }), [null, void 0].includes(t[1]) && V({
224
+ debug: F.value
225
+ }), [null, void 0].includes(t[1]) && M({
221
226
  componentName: "VueUiCandlestick",
222
227
  type: "datasetAttribute",
223
228
  property: "open (index 1)",
224
229
  index: a,
225
- debug: L.value
226
- }), [null, void 0].includes(t[2]) && V({
230
+ debug: F.value
231
+ }), [null, void 0].includes(t[2]) && M({
227
232
  componentName: "VueUiCandlestick",
228
233
  type: "datasetAttribute",
229
234
  property: "high (index 2)",
230
235
  index: a,
231
- debug: L.value
232
- }), [null, void 0].includes(t[3]) && V({
236
+ debug: F.value
237
+ }), [null, void 0].includes(t[3]) && M({
233
238
  componentName: "VueUiCandlestick",
234
239
  type: "datasetAttribute",
235
240
  property: "low (index 3)",
236
241
  index: a,
237
- debug: L.value
238
- }), [null, void 0].includes(t[4]) && V({
242
+ debug: F.value
243
+ }), [null, void 0].includes(t[4]) && M({
239
244
  componentName: "VueUiCandlestick",
240
245
  type: "datasetAttribute",
241
246
  property: "last (index 4)",
242
247
  index: a,
243
- debug: L.value
244
- }), [null, void 0].includes(t[5]) && V({
248
+ debug: F.value
249
+ }), [null, void 0].includes(t[5]) && M({
245
250
  componentName: "VueUiCandlestick",
246
251
  type: "datasetAttribute",
247
252
  property: "volume (index 5)",
248
253
  index: a,
249
- debug: L.value
254
+ debug: F.value
250
255
  });
251
- }), Oe.value.map((t) => ({
256
+ }), Ve.value.map((t) => ({
252
257
  absoluteIndex: t.absoluteIndex,
253
258
  period: t[0],
254
259
  open: t[1],
@@ -256,23 +261,23 @@ const tl = ["id"], ll = ["xmlns", "aria-label", "viewBox"], al = ["x", "y", "wid
256
261
  low: t[3],
257
262
  last: t[4],
258
263
  volume: t[5]
259
- })))), v = b(() => i.value.width / Oe.value.length), Ne = b(() => {
260
- const t = e.value.style.layout.grid.yAxis.scale.max === null ? Math.max(...ie.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;
264
+ })))), v = b(() => n.value.width / Ve.value.length), Ee = b(() => {
265
+ const t = e.value.style.layout.grid.yAxis.scale.max === null ? Math.max(...de.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;
261
266
  return {
262
267
  max: t,
263
268
  min: a
264
269
  };
265
- }), C = b(() => Pt(Ne.value.min, Ne.value.max, e.value.style.layout.grid.yAxis.dataLabels.steps));
266
- function G(t, a) {
270
+ }), C = b(() => Et(Ee.value.min, Ee.value.max, e.value.style.layout.grid.yAxis.dataLabels.steps));
271
+ function Y(t, a) {
267
272
  return {
268
273
  ...t,
269
- x: H(i.value.left + a * v.value + v.value / 2),
270
- y: H(i.value.top + (1 - (t - C.value.min) / (C.value.max - C.value.min)) * i.value.height),
271
- value: H(t)
274
+ x: X(n.value.left + a * v.value + v.value / 2),
275
+ y: X(n.value.top + (1 - (t - C.value.min) / (C.value.max - C.value.min)) * n.value.height),
276
+ value: X(t)
272
277
  };
273
278
  }
274
- const k = b(() => ie.value.map((t, a) => {
275
- const l = G(t.open, a), o = G(t.high, a), p = G(t.low, a), f = G(t.last, a), I = t.last > t.open;
279
+ const k = b(() => de.value.map((t, a) => {
280
+ const l = Y(t.open, a), o = Y(t.high, a), p = Y(t.low, a), f = Y(t.last, a), O = t.last > t.open;
276
281
  return {
277
282
  period: t.period,
278
283
  open: l,
@@ -280,44 +285,44 @@ const tl = ["id"], ll = ["xmlns", "aria-label", "viewBox"], al = ["x", "y", "wid
280
285
  low: p,
281
286
  last: f,
282
287
  volume: t.volume,
283
- isBullish: I,
288
+ isBullish: O,
284
289
  absoluteIndex: t.absoluteIndex
285
290
  };
286
291
  }));
287
- function vt(t) {
288
- return H((t - C.value.min) / (C.value.max - C.value.min));
292
+ function yt(t) {
293
+ return X((t - C.value.min) / (C.value.max - C.value.min));
289
294
  }
290
- const dt = b(() => C.value.ticks.map((t) => ({
291
- y: i.value.bottom - i.value.height * vt(t),
292
- value: H(t)
293
- }))), yt = b(() => ie.value.map((t) => t.period)), T = b(() => Kt({
295
+ const ct = b(() => C.value.ticks.map((t) => ({
296
+ y: n.value.bottom - n.value.height * yt(t),
297
+ value: X(t)
298
+ }))), ht = b(() => de.value.map((t) => t.period)), R = b(() => Zt({
294
299
  values: A.value.map((t) => t[0]),
295
300
  maxDatapoints: A.value.length,
296
301
  formatter: e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter,
297
302
  start: h.value.start,
298
303
  end: h.value.end
299
- })), Pe = b(() => e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? {
300
- start: T.value.find((t) => t.absoluteIndex === h.value.start).text,
301
- end: T.value.find((t) => t.absoluteIndex === h.value.end - 1).text
304
+ })), Be = b(() => e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? {
305
+ start: R.value.find((t) => t.absoluteIndex === h.value.start).text,
306
+ end: R.value.find((t) => t.absoluteIndex === h.value.end - 1).text
302
307
  } : {
303
308
  start: A.value[h.value.start] ? A.value[h.value.start][0] : A.value[0][0],
304
309
  end: A.value[h.value.end - 1] ? A.value[h.value.end - 1][0] : A.value.at(-1)[0]
305
- }), ne = r(null);
306
- function ct(t, a) {
307
- te.value = t, ne.value = {
310
+ }), ye = r(null);
311
+ function ft(t, a) {
312
+ se.value = t, ye.value = {
308
313
  datapoint: a,
309
314
  seriesIndex: t,
310
315
  series: k.value,
311
316
  config: e.value
312
317
  };
313
318
  const l = e.value.style.tooltip.customFormat;
314
- if (Ut(l) && Dt(() => l({
319
+ if (Dt(l) && Ht(() => l({
315
320
  seriesIndex: t,
316
321
  datapoint: a,
317
322
  series: k.value,
318
323
  config: e.value
319
324
  })))
320
- ee.value = l({
325
+ oe.value = l({
321
326
  seriesIndex: t,
322
327
  datapoint: a,
323
328
  series: k.value,
@@ -325,84 +330,84 @@ const tl = ["id"], ll = ["xmlns", "aria-label", "viewBox"], al = ["x", "y", "wid
325
330
  });
326
331
  else if (e.value.style.tooltip.show) {
327
332
  let o = "";
328
- const { period: p, open: f, high: I, low: de, last: ye, volume: Y, isBullish: De } = k.value[t], { period: Rl, open: pt, high: bt, low: mt, last: xt, volume: kt } = e.value.translations, wt = e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? T.value[t].text : p;
333
+ const { period: p, open: f, high: O, low: fe, last: ge, volume: K, isBullish: Ge } = k.value[t], { period: Nl, open: mt, high: xt, low: kt, last: wt, volume: At } = e.value.translations, _t = e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? R.value[t].text : p;
329
334
  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}"
330
- fill="${e.value.style.layout.candle.gradient.show ? De ? `url(#bullish_gradient_${w.value})` : `url(#bearish_gradient_${w.value})` : De ? e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.colors.bearish}"/></svg>${wt}</div>`, o += `${kt} : <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}">`;
331
- const At = $({
335
+ fill="${e.value.style.layout.candle.gradient.show ? Ge ? `url(#bullish_gradient_${w.value})` : `url(#bearish_gradient_${w.value})` : Ge ? e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.colors.bearish}"/></svg>${_t}</div>`, o += `${At} : <b>${isNaN(K) ? "-" : Number(K.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}">`;
336
+ const Ct = L({
332
337
  p: e.value.style.tooltip.prefix,
333
338
  v: f.value,
334
339
  s: e.value.style.tooltip.suffix,
335
340
  r: e.value.style.tooltip.roundingValue
336
341
  });
337
- o += `<div>${pt}: <b>${At}</b></div>`;
338
- const _t = $({
342
+ o += `<div>${mt}: <b>${Ct}</b></div>`;
343
+ const $t = L({
339
344
  p: e.value.style.tooltip.prefix,
340
- v: I.value,
345
+ v: O.value,
341
346
  s: e.value.style.tooltip.suffix,
342
347
  r: e.value.style.tooltip.roundingValue
343
348
  });
344
- o += `<div>${bt}: <b>${_t}</b></div>`;
345
- const Ct = $({
349
+ o += `<div>${xt}: <b>${$t}</b></div>`;
350
+ const zt = L({
346
351
  p: e.value.style.tooltip.prefix,
347
- v: de.value,
352
+ v: fe.value,
348
353
  s: e.value.style.tooltip.suffix,
349
354
  r: e.value.style.tooltip.roundingValue
350
355
  });
351
- o += `<div>${mt}: <b>${Ct}</b></div>`;
352
- const $t = $({
356
+ o += `<div>${kt}: <b>${zt}</b></div>`;
357
+ const St = L({
353
358
  p: e.value.style.tooltip.prefix,
354
- v: ye.value,
359
+ v: ge.value,
355
360
  s: e.value.style.tooltip.suffix,
356
361
  r: e.value.style.tooltip.roundingValue
357
362
  });
358
- o += `<div>${xt}: <b>${$t}</b></div>`, o += "</div>", ee.value = `<div style="text-align:right">${o}</div>`;
363
+ o += `<div>${wt}: <b>${St}</b></div>`, o += "</div>", oe.value = `<div style="text-align:right">${o}</div>`;
359
364
  }
360
- Z.value = !0;
365
+ ae.value = !0;
361
366
  }
362
- function ht() {
363
- re();
367
+ function gt() {
368
+ ce();
364
369
  }
365
- const Ve = r(null);
366
- async function re() {
367
- await he(), await he();
368
- const { startIndex: t, endIndex: a } = e.value.style.zoom, l = Ve.value, o = D.value;
369
- (t != null || a != null) && l ? (t != null && l.setStartValue(t), a != null && l.setEndValue(ft(a + 1))) : (h.value = { start: 0, end: o }, W.value += 1);
370
+ const Me = r(null);
371
+ async function ce() {
372
+ await be(), await be();
373
+ const { startIndex: t, endIndex: a } = e.value.style.zoom, l = Me.value, o = G.value;
374
+ (t != null || a != null) && l ? (t != null && l.setStartValue(t), a != null && l.setEndValue(pt(a + 1))) : (h.value = { start: 0, end: o }, j.value += 1);
370
375
  }
371
- function ft(t) {
372
- const a = D.value;
376
+ function pt(t) {
377
+ const a = G.value;
373
378
  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;
374
379
  }
375
- function Ee(t = null) {
376
- he(() => {
377
- 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 = k.value.map((f, I) => [
378
- e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? T.value[I].text : f.period,
380
+ function Ue(t = null) {
381
+ be(() => {
382
+ 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 = k.value.map((f, O) => [
383
+ e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? R.value[O].text : f.period,
379
384
  f.open.value,
380
385
  f.high.value,
381
386
  f.low.value,
382
387
  f.last.value,
383
388
  f.volume
384
- ]), o = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([a]).concat(l), p = Bt(o);
385
- t ? t(p) : Mt({ csvContent: p, title: e.value.style.title.text || "vue-ui-candlestick" });
389
+ ]), o = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([a]).concat(l), p = Ut(o);
390
+ t ? t(p) : Wt({ csvContent: p, title: e.value.style.title.text || "vue-ui-candlestick" });
386
391
  });
387
392
  }
388
- const X = b(() => {
393
+ const q = b(() => {
389
394
  const t = k.value.map((o, p) => {
390
- const f = e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? T.value[p].text : o.period, I = $({
395
+ const f = e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? R.value[p].text : o.period, O = L({
391
396
  p: e.value.table.td.prefix,
392
397
  v: o.open.value,
393
398
  s: e.value.table.td.suffix,
394
399
  r: e.value.table.td.roundingValue
395
- }), de = $({
400
+ }), fe = L({
396
401
  p: e.value.table.td.prefix,
397
402
  v: o.high.value,
398
403
  s: e.value.table.td.suffix,
399
404
  r: e.value.table.td.roundingValue
400
- }), ye = $({
405
+ }), ge = L({
401
406
  p: e.value.table.td.prefix,
402
407
  v: o.low.value,
403
408
  s: e.value.table.td.suffix,
404
409
  r: e.value.table.td.roundingValue
405
- }), Y = $({
410
+ }), K = L({
406
411
  p: e.value.table.td.prefix,
407
412
  v: o.last.value,
408
413
  s: e.value.table.td.suffix,
@@ -410,10 +415,10 @@ const tl = ["id"], ll = ["xmlns", "aria-label", "viewBox"], al = ["x", "y", "wid
410
415
  });
411
416
  return [
412
417
  `<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> ${f}`,
413
- I,
414
- de,
415
- ye,
416
- Y,
418
+ O,
419
+ fe,
420
+ ge,
421
+ K,
417
422
  `${isNaN(o.volume) ? "-" : o.volume.toLocaleString()}`
418
423
  ];
419
424
  }), a = {
@@ -437,23 +442,23 @@ const tl = ["id"], ll = ["xmlns", "aria-label", "viewBox"], al = ["x", "y", "wid
437
442
  e.value.translations.volume
438
443
  ];
439
444
  return { head: l, body: t, config: a, colNames: l };
440
- }), B = r(!1);
441
- function Be(t) {
442
- B.value = t, ge.value += 1;
445
+ }), W = r(!1);
446
+ function We(t) {
447
+ W.value = t, xe.value += 1;
443
448
  }
444
- function Me() {
449
+ function De() {
445
450
  _.value.showTable = !_.value.showTable;
446
451
  }
447
- function Ue() {
452
+ function He() {
448
453
  _.value.showTooltip = !_.value.showTooltip;
449
454
  }
450
- const j = r(!1);
451
- function ve() {
452
- j.value = !j.value;
455
+ const J = r(!1);
456
+ function he() {
457
+ J.value = !J.value;
453
458
  }
454
- async function gt({ scale: t = 2 } = {}) {
455
- if (!z.value) return;
456
- const { width: a, height: l } = z.value.getBoundingClientRect(), o = a / l, { imageUri: p, base64: f } = await Qt({ domElement: z.value, base64: !0, img: !0, scale: t });
459
+ async function bt({ scale: t = 2 } = {}) {
460
+ if (!T.value) return;
461
+ const { width: a, height: l } = T.value.getBoundingClientRect(), o = a / l, { imageUri: p, base64: f } = await el({ domElement: T.value, base64: !0, img: !0, scale: t });
457
462
  return {
458
463
  imageUri: p,
459
464
  base64: f,
@@ -463,60 +468,60 @@ const tl = ["id"], ll = ["xmlns", "aria-label", "viewBox"], al = ["x", "y", "wid
463
468
  aspectRatio: o
464
469
  };
465
470
  }
466
- return Zt({
467
- timeLabelsEls: U,
468
- timeLabels: T,
471
+ return tl({
472
+ timeLabelsEls: H,
473
+ timeLabels: R,
469
474
  slicer: h,
470
475
  configRef: e,
471
476
  rotationPath: ["style", "layout", "grid", "xAxis", "dataLabels", "rotation"],
472
477
  autoRotatePath: ["style", "layout", "grid", "xAxis", "dataLabels", "autoRotate"],
473
478
  isAutoSize: !1
474
- }), ce(e, () => {
479
+ }), pe(e, () => {
475
480
  _.value = {
476
481
  showTable: e.value.table.show,
477
482
  showTooltip: e.value.style.tooltip.show
478
483
  };
479
- }, { immediate: !0 }), Qe({
480
- getImage: gt,
481
- generatePdf: Ie,
482
- generateCsv: Ee,
483
- generateImage: Fe,
484
- toggleTable: Me,
485
- toggleTooltip: Ue,
486
- toggleAnnotator: ve,
487
- toggleFullscreen: Be
488
- }), (t, a) => (s(), u("div", {
484
+ }, { immediate: !0 }), et({
485
+ getImage: bt,
486
+ generatePdf: Oe,
487
+ generateCsv: Ue,
488
+ generateImage: Ne,
489
+ toggleTable: De,
490
+ toggleTooltip: He,
491
+ toggleAnnotator: he,
492
+ toggleFullscreen: We
493
+ }), (t, a) => (s(), i("div", {
489
494
  ref_key: "candlestickChart",
490
- ref: z,
491
- class: Ge(`vue-ui-candlestick ${B.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
492
- style: fe(`position:relative;font-family:${e.value.style.fontFamily}; text-align:center;background:${e.value.style.backgroundColor}; ${e.value.responsive ? "height: 100%" : ""}`),
495
+ ref: T,
496
+ class: S(`vue-ui-candlestick ${W.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
497
+ style: me(`position:relative;font-family:${e.value.style.fontFamily}; text-align:center;background:${e.value.style.backgroundColor}; ${e.value.responsive ? "height: 100%" : ""}`),
493
498
  id: `vue-ui-candlestick_${w.value}`,
494
- onMouseenter: a[4] || (a[4] = () => n(Ce)(!0)),
495
- onMouseleave: a[5] || (a[5] = () => n(Ce)(!1))
499
+ onMouseenter: a[4] || (a[4] = () => u(Se)(!0)),
500
+ onMouseleave: a[5] || (a[5] = () => u(Se)(!1))
496
501
  }, [
497
- e.value.userOptions.buttons.annotator ? (s(), F(n(lt), {
502
+ e.value.userOptions.buttons.annotator ? (s(), N(u(ot), {
498
503
  key: 0,
499
- svgRef: n(ze),
504
+ svgRef: u(Te),
500
505
  backgroundColor: e.value.style.backgroundColor,
501
506
  color: e.value.style.color,
502
- active: j.value,
503
- onClose: ve
507
+ active: J.value,
508
+ onClose: he
504
509
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : g("", !0),
505
- it.value ? (s(), u("div", {
510
+ rt.value ? (s(), i("div", {
506
511
  key: 1,
507
512
  ref_key: "noTitle",
508
- ref: ke,
513
+ ref: Ce,
509
514
  class: "vue-data-ui-no-title-space",
510
515
  style: "height:36px; width: 100%;background:transparent"
511
516
  }, null, 512)) : g("", !0),
512
- e.value.style.title.text ? (s(), u("div", {
517
+ e.value.style.title.text ? (s(), i("div", {
513
518
  key: 2,
514
519
  ref_key: "chartTitle",
515
- ref: pe,
520
+ ref: ke,
516
521
  style: "width:100%;background:transparent"
517
522
  }, [
518
- (s(), F(qt, {
519
- key: `title_${Ae.value}`,
523
+ (s(), N(Kt, {
524
+ key: `title_${ze.value}`,
520
525
  config: {
521
526
  title: {
522
527
  cy: "candlestick-div-title",
@@ -529,14 +534,14 @@ const tl = ["id"], ll = ["xmlns", "aria-label", "viewBox"], al = ["x", "y", "wid
529
534
  }
530
535
  }, null, 8, ["config"]))
531
536
  ], 512)) : g("", !0),
532
- e.value.userOptions.show && Q.value && (n($e) || n(oe)) ? (s(), F(n(ot), {
537
+ e.value.userOptions.show && te.value && (u(Le) || u(ne)) ? (s(), N(u(ut), {
533
538
  ref_key: "details",
534
- ref: ut,
535
- key: `user_options_${ge.value}`,
539
+ ref: nt,
540
+ key: `user_options_${xe.value}`,
536
541
  backgroundColor: e.value.style.backgroundColor,
537
542
  color: e.value.style.color,
538
- isImaging: n(Te),
539
- isPrinting: n(Le),
543
+ isImaging: u(Re),
544
+ isPrinting: u(Fe),
540
545
  uid: w.value,
541
546
  hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.tooltip.show,
542
547
  hasPdf: e.value.userOptions.buttons.pdf,
@@ -544,30 +549,30 @@ const tl = ["id"], ll = ["xmlns", "aria-label", "viewBox"], al = ["x", "y", "wid
544
549
  hasXls: e.value.userOptions.buttons.csv,
545
550
  hasTable: e.value.userOptions.buttons.table,
546
551
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
547
- isFullscreen: B.value,
552
+ isFullscreen: W.value,
548
553
  isTooltip: _.value.showTooltip,
549
554
  titles: { ...e.value.userOptions.buttonTitles },
550
- chartElement: z.value,
555
+ chartElement: T.value,
551
556
  position: e.value.userOptions.position,
552
557
  hasAnnotator: e.value.userOptions.buttons.annotator,
553
- isAnnotation: j.value,
558
+ isAnnotation: J.value,
554
559
  callbacks: e.value.userOptions.callbacks,
555
560
  printScale: e.value.userOptions.print.scale,
556
- onToggleFullscreen: Be,
557
- onGeneratePdf: n(Ie),
558
- onGenerateCsv: Ee,
559
- onGenerateImage: n(Fe),
560
- onToggleTable: Me,
561
- onToggleTooltip: Ue,
562
- onToggleAnnotator: ve,
563
- style: fe({
564
- visibility: n($e) ? n(oe) ? "visible" : "hidden" : "visible"
561
+ onToggleFullscreen: We,
562
+ onGeneratePdf: u(Oe),
563
+ onGenerateCsv: Ue,
564
+ onGenerateImage: u(Ne),
565
+ onToggleTable: De,
566
+ onToggleTooltip: He,
567
+ onToggleAnnotator: he,
568
+ style: me({
569
+ visibility: u(Le) ? u(ne) ? "visible" : "hidden" : "visible"
565
570
  })
566
- }, Tt({ _: 2 }, [
571
+ }, Ft({ _: 2 }, [
567
572
  t.$slots.menuIcon ? {
568
573
  name: "menuIcon",
569
574
  fn: x(({ isOpen: l, color: o }) => [
570
- m(t.$slots, "menuIcon", R(O({ isOpen: l, color: o })), void 0, !0)
575
+ m(t.$slots, "menuIcon", P(V({ isOpen: l, color: o })), void 0, !0)
571
576
  ]),
572
577
  key: "0"
573
578
  } : void 0,
@@ -609,41 +614,41 @@ const tl = ["id"], ll = ["xmlns", "aria-label", "viewBox"], al = ["x", "y", "wid
609
614
  t.$slots.optionFullscreen ? {
610
615
  name: "optionFullscreen",
611
616
  fn: x(({ toggleFullscreen: l, isFullscreen: o }) => [
612
- m(t.$slots, "optionFullscreen", R(O({ toggleFullscreen: l, isFullscreen: o })), void 0, !0)
617
+ m(t.$slots, "optionFullscreen", P(V({ toggleFullscreen: l, isFullscreen: o })), void 0, !0)
613
618
  ]),
614
619
  key: "6"
615
620
  } : void 0,
616
621
  t.$slots.optionAnnotator ? {
617
622
  name: "optionAnnotator",
618
623
  fn: x(({ toggleAnnotator: l, isAnnotator: o }) => [
619
- m(t.$slots, "optionAnnotator", R(O({ toggleAnnotator: l, isAnnotator: o })), void 0, !0)
624
+ m(t.$slots, "optionAnnotator", P(V({ toggleAnnotator: l, isAnnotator: o })), void 0, !0)
620
625
  ]),
621
626
  key: "7"
622
627
  } : void 0
623
628
  ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : g("", !0),
624
- (s(), u("svg", {
629
+ (s(), i("svg", {
625
630
  ref_key: "svgRef",
626
- ref: ze,
627
- xmlns: n(Vt),
631
+ ref: Te,
632
+ xmlns: u(Bt),
628
633
  "aria-label": e.value.style.title.text || "candlestick chart",
629
- class: Ge({ "vue-data-ui-fullscreen--on": B.value, "vue-data-ui-fulscreen--off": !B.value }),
634
+ class: S({ "vue-data-ui-fullscreen--on": W.value, "vue-data-ui-fulscreen--off": !W.value }),
630
635
  viewBox: `0 0 ${y.value.width <= 0 ? 10 : y.value.width} ${y.value.height <= 0 ? 10 : y.value.height}`,
631
- style: fe(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.color}`)
636
+ style: me(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.color}`)
632
637
  }, [
633
- Xe(n(tt)),
634
- t.$slots["chart-background"] ? (s(), u("foreignObject", {
638
+ Ye(u(at)),
639
+ t.$slots["chart-background"] ? (s(), i("foreignObject", {
635
640
  key: 0,
636
- x: i.value.left,
637
- y: i.value.top,
638
- width: Math.max(0.1, i.value.width),
639
- height: Math.max(0.1, i.value.height),
641
+ x: n.value.left,
642
+ y: n.value.top,
643
+ width: Math.max(0.1, n.value.width),
644
+ height: Math.max(0.1, n.value.height),
640
645
  style: {
641
646
  pointerEvents: "none"
642
647
  }
643
648
  }, [
644
649
  m(t.$slots, "chart-background", {}, void 0, !0)
645
- ], 8, al)) : g("", !0),
646
- k.value.length > 0 ? (s(), u("g", ol, [
650
+ ], 8, sl)) : g("", !0),
651
+ k.value.length > 0 ? (s(), i("g", ul, [
647
652
  d("defs", null, [
648
653
  d("linearGradient", {
649
654
  id: `bearish_gradient_${w.value}`,
@@ -653,16 +658,16 @@ const tl = ["id"], ll = ["xmlns", "aria-label", "viewBox"], al = ["x", "y", "wid
653
658
  d("stop", {
654
659
  offset: "0%",
655
660
  "stop-color": e.value.style.layout.candle.colors.bearish
656
- }, null, 8, ul),
661
+ }, null, 8, nl),
657
662
  d("stop", {
658
663
  offset: "50%",
659
- "stop-color": `${n(K)(e.value.style.layout.candle.colors.bearish, 0.02)}DE`
660
- }, null, 8, il),
664
+ "stop-color": `${u(ee)(e.value.style.layout.candle.colors.bearish, 0.02)}DE`
665
+ }, null, 8, rl),
661
666
  d("stop", {
662
667
  offset: "100%",
663
- "stop-color": `${n(K)(e.value.style.layout.candle.colors.bearish, 0.05)}66`
664
- }, null, 8, nl)
665
- ], 8, sl),
668
+ "stop-color": `${u(ee)(e.value.style.layout.candle.colors.bearish, 0.05)}66`
669
+ }, null, 8, vl)
670
+ ], 8, il),
666
671
  d("linearGradient", {
667
672
  id: `bullish_gradient_${w.value}`,
668
673
  x2: "0%",
@@ -671,159 +676,165 @@ const tl = ["id"], ll = ["xmlns", "aria-label", "viewBox"], al = ["x", "y", "wid
671
676
  d("stop", {
672
677
  offset: "0%",
673
678
  "stop-color": e.value.style.layout.candle.colors.bullish
674
- }, null, 8, vl),
679
+ }, null, 8, yl),
675
680
  d("stop", {
676
681
  offset: "50%",
677
- "stop-color": `${n(K)(e.value.style.layout.candle.colors.bullish, 0.02)}DE`
678
- }, null, 8, dl),
682
+ "stop-color": `${u(ee)(e.value.style.layout.candle.colors.bullish, 0.02)}DE`
683
+ }, null, 8, cl),
679
684
  d("stop", {
680
685
  offset: "100%",
681
- "stop-color": `${n(K)(e.value.style.layout.candle.colors.bullish, 0.05)}66`
682
- }, null, 8, yl)
683
- ], 8, rl)
686
+ "stop-color": `${u(ee)(e.value.style.layout.candle.colors.bullish, 0.05)}66`
687
+ }, null, 8, hl)
688
+ ], 8, dl)
684
689
  ]),
685
- e.value.style.layout.grid.show ? (s(), u("g", cl, [
690
+ e.value.style.layout.grid.show ? (s(), i("g", fl, [
686
691
  d("line", {
687
- x1: i.value.left,
688
- x2: i.value.left,
689
- y1: i.value.top,
690
- y2: i.value.bottom,
692
+ x1: n.value.left,
693
+ x2: n.value.left,
694
+ y1: n.value.top,
695
+ y2: n.value.bottom,
691
696
  stroke: e.value.style.layout.grid.stroke,
692
697
  "stroke-width": e.value.style.layout.grid.strokeWidth,
693
698
  "stroke-linecap": "round"
694
- }, null, 8, hl),
699
+ }, null, 8, gl),
695
700
  d("line", {
696
- x1: i.value.left,
697
- x2: i.value.right,
698
- y1: i.value.bottom,
699
- y2: i.value.bottom,
701
+ x1: n.value.left,
702
+ x2: n.value.right,
703
+ y1: n.value.bottom,
704
+ y2: n.value.bottom,
700
705
  stroke: e.value.style.layout.grid.stroke,
701
706
  "stroke-width": e.value.style.layout.grid.strokeWidth,
702
707
  "stroke-linecap": "round"
703
- }, null, 8, fl)
708
+ }, null, 8, pl)
704
709
  ])) : g("", !0),
705
- e.value.style.layout.grid.yAxis.dataLabels.show ? (s(), u("g", {
710
+ e.value.style.layout.grid.yAxis.dataLabels.show ? (s(), i("g", {
706
711
  key: 1,
707
712
  ref_key: "scaleLabels",
708
- ref: le
713
+ ref: ue
709
714
  }, [
710
- (s(!0), u(N, null, P(dt.value, (l, o) => (s(), u("g", null, [
711
- l.value >= C.value.min && l.value <= C.value.max ? (s(), u("line", {
715
+ (s(!0), i(E, null, B(ct.value, (l, o) => (s(), i("g", null, [
716
+ l.value >= C.value.min && l.value <= C.value.max ? (s(), i("line", {
712
717
  key: 0,
713
- x1: i.value.left,
714
- x2: i.value.left - 5,
718
+ x1: n.value.left,
719
+ x2: n.value.left - 5,
715
720
  y1: l.y,
716
721
  y2: l.y,
717
722
  stroke: e.value.style.layout.grid.stroke,
718
723
  "stroke-width": e.value.style.layout.grid.strokeWidth,
719
724
  "stroke-linecap": "round"
720
- }, null, 8, gl)) : g("", !0),
721
- l.value >= C.value.min && l.value <= C.value.max ? (s(), u("text", {
725
+ }, null, 8, bl)) : g("", !0),
726
+ l.value >= C.value.min && l.value <= C.value.max ? (s(), i("text", {
722
727
  key: 1,
723
- x: i.value.left - 8 + e.value.style.layout.grid.yAxis.dataLabels.offsetX,
728
+ x: n.value.left - 8 + e.value.style.layout.grid.yAxis.dataLabels.offsetX,
724
729
  y: l.y + y.value.yAxisFontSize / 3,
725
730
  "font-size": y.value.yAxisFontSize,
726
731
  "text-anchor": "end",
727
732
  fill: e.value.style.layout.grid.yAxis.dataLabels.color,
728
733
  "font-weight": e.value.style.layout.grid.yAxis.dataLabels.bold ? "bold" : "normal"
729
- }, q(n($)({
734
+ }, Q(u(L)({
730
735
  p: e.value.style.layout.grid.yAxis.dataLabels.prefix,
731
736
  v: l.value,
732
737
  s: e.value.style.layout.grid.yAxis.dataLabels.suffix,
733
738
  r: e.value.style.layout.grid.yAxis.dataLabels.roundingValue
734
- })), 9, pl)) : g("", !0)
739
+ })), 9, ml)) : g("", !0)
735
740
  ]))), 256))
736
741
  ], 512)) : g("", !0),
737
- e.value.style.layout.grid.xAxis.dataLabels.show && !e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? (s(), u("g", {
742
+ e.value.style.layout.grid.xAxis.dataLabels.show && !e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? (s(), i("g", {
738
743
  key: 2,
739
744
  ref_key: "timeLabelsEls",
740
- ref: U
745
+ ref: H
741
746
  }, [
742
- (s(!0), u(N, null, P(yt.value, (l, o) => (s(), u("g", null, [
747
+ (s(!0), i(E, null, B(ht.value, (l, o) => (s(), i("g", null, [
743
748
  d("text", {
744
749
  class: "vue-data-ui-time-label",
745
- transform: `translate(${i.value.left + v.value * o + v.value / 2}, ${i.value.bottom + y.value.xAxisFontSize * 1.5}), rotate(${e.value.style.layout.grid.xAxis.dataLabels.rotation})`,
750
+ transform: `translate(${n.value.left + v.value * o + v.value / 2}, ${n.value.bottom + y.value.xAxisFontSize * 1.5}), rotate(${e.value.style.layout.grid.xAxis.dataLabels.rotation})`,
746
751
  "text-anchor": e.value.style.layout.grid.xAxis.dataLabels.rotation > 0 ? "start" : e.value.style.layout.grid.xAxis.dataLabels.rotation < 0 ? "end" : "middle",
747
752
  "font-size": y.value.xAxisFontSize,
748
753
  fill: e.value.style.layout.grid.xAxis.dataLabels.color,
749
754
  "font-weight": e.value.style.layout.grid.xAxis.dataLabels.bold ? "bold" : "normal"
750
- }, q(l), 9, bl)
755
+ }, Q(l), 9, xl)
751
756
  ]))), 256))
752
757
  ], 512)) : g("", !0),
753
- e.value.style.layout.grid.xAxis.dataLabels.show && e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? (s(), u("g", {
758
+ e.value.style.layout.grid.xAxis.dataLabels.show && e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? (s(), i("g", {
754
759
  key: 3,
755
760
  ref_key: "timeLabelsEls",
756
- ref: U
761
+ ref: H
757
762
  }, [
758
- (s(!0), u(N, null, P(T.value, (l, o) => (s(), u("g", null, [
763
+ (s(!0), i(E, null, B(R.value, (l, o) => (s(), i("g", null, [
759
764
  d("text", {
760
765
  class: "vue-data-ui-time-label",
761
- transform: `translate(${i.value.left + v.value * o + v.value / 2}, ${i.value.bottom + y.value.xAxisFontSize * 1.5}), rotate(${e.value.style.layout.grid.xAxis.dataLabels.rotation})`,
766
+ transform: `translate(${n.value.left + v.value * o + v.value / 2}, ${n.value.bottom + y.value.xAxisFontSize * 1.5}), rotate(${e.value.style.layout.grid.xAxis.dataLabels.rotation})`,
762
767
  "text-anchor": e.value.style.layout.grid.xAxis.dataLabels.rotation > 0 ? "start" : e.value.style.layout.grid.xAxis.dataLabels.rotation < 0 ? "end" : "middle",
763
768
  "font-size": y.value.xAxisFontSize,
764
769
  fill: e.value.style.layout.grid.xAxis.dataLabels.color,
765
770
  "font-weight": e.value.style.layout.grid.xAxis.dataLabels.bold ? "bold" : "normal"
766
- }, q(l.text), 9, ml)
771
+ }, Q(l.text), 9, kl)
767
772
  ]))), 256))
768
773
  ], 512)) : g("", !0),
769
774
  d("g", null, [
770
- (s(!0), u(N, null, P(k.value, (l, o) => (s(), u("g", null, [
771
- d("line", {
772
- x1: l.open.x,
773
- x2: l.open.x,
774
- y1: l.high.y,
775
- y2: l.low.y,
776
- stroke: e.value.style.layout.wick.stroke,
777
- "stroke-width": e.value.style.layout.wick.strokeWidth,
778
- "stroke-linecap": "round"
779
- }, null, 8, xl),
780
- e.value.style.layout.wick.extremity.shape === "circle" ? (s(), u("g", kl, [
775
+ (s(!0), i(E, null, B(k.value, (l, o) => (s(), i("g", null, [
776
+ d("rect", {
777
+ x: l.open.x - e.value.style.layout.wick.strokeWidth / 2,
778
+ y: l.high.y,
779
+ width: e.value.style.layout.wick.strokeWidth,
780
+ height: Math.abs(l.high.y - l.low.y),
781
+ fill: e.value.style.layout.wick.stroke,
782
+ stroke: "none",
783
+ rx: e.value.style.layout.wick.strokeWidth / 2,
784
+ class: S({ "vue-data-ui-transition": $.value && !u(z) })
785
+ }, null, 10, wl),
786
+ e.value.style.layout.wick.extremity.shape === "circle" ? (s(), i("g", Al, [
781
787
  d("circle", {
782
788
  cx: l.high.x,
783
789
  cy: l.high.y,
784
790
  r: e.value.style.layout.wick.extremity.size === "auto" ? v.value / 20 : e.value.style.layout.wick.extremity.size,
785
- fill: e.value.style.layout.wick.extremity.color
786
- }, null, 8, wl),
791
+ fill: e.value.style.layout.wick.extremity.color,
792
+ class: S({ "vue-data-ui-transition": $.value && !u(z) })
793
+ }, null, 10, _l),
787
794
  d("circle", {
788
795
  cx: l.low.x,
789
796
  cy: l.low.y,
790
797
  r: e.value.style.layout.wick.extremity.size === "auto" ? v.value / 20 : e.value.style.layout.wick.extremity.size,
791
- fill: e.value.style.layout.wick.extremity.color
792
- }, null, 8, Al)
798
+ fill: e.value.style.layout.wick.extremity.color,
799
+ class: S({ "vue-data-ui-transition": $.value && !u(z) })
800
+ }, null, 10, Cl)
793
801
  ])) : g("", !0),
794
- e.value.style.layout.wick.extremity.shape === "line" ? (s(), u("g", _l, [
795
- d("line", {
796
- x1: l.high.x - (e.value.style.layout.wick.extremity.size === "auto" ? v.value * e.value.style.layout.candle.widthRatio : e.value.style.layout.wick.extremity.size) / 2,
797
- x2: l.high.x + (e.value.style.layout.wick.extremity.size === "auto" ? v.value * e.value.style.layout.candle.widthRatio : e.value.style.layout.wick.extremity.size) / 2,
798
- y1: l.high.y,
799
- y2: l.high.y,
800
- stroke: e.value.style.layout.wick.extremity.color,
801
- "stroke-width": e.value.style.layout.wick.strokeWidth,
802
- "stroke-linecap": "round"
803
- }, null, 8, Cl),
804
- d("line", {
805
- x1: l.low.x - (e.value.style.layout.wick.extremity.size === "auto" ? v.value * e.value.style.layout.candle.widthRatio : e.value.style.layout.wick.extremity.size) / 2,
806
- x2: l.low.x + (e.value.style.layout.wick.extremity.size === "auto" ? v.value * e.value.style.layout.candle.widthRatio : e.value.style.layout.wick.extremity.size) / 2,
807
- y1: l.low.y,
808
- y2: l.low.y,
809
- stroke: e.value.style.layout.wick.extremity.color,
810
- "stroke-width": e.value.style.layout.wick.strokeWidth,
811
- "stroke-linecap": "round"
812
- }, null, 8, $l)
802
+ e.value.style.layout.wick.extremity.shape === "line" ? (s(), i("g", $l, [
803
+ d("rect", {
804
+ x: l.high.x - (e.value.style.layout.wick.extremity.size === "auto" ? v.value * e.value.style.layout.candle.widthRatio : e.value.style.layout.wick.extremity.size) / 2,
805
+ y: l.high.y - e.value.style.layout.wick.strokeWidth / 2,
806
+ width: Math.abs(l.high.x - (e.value.style.layout.wick.extremity.size === "auto" ? v.value * e.value.style.layout.candle.widthRatio : e.value.style.layout.wick.extremity.size) / 2 - (l.high.x + (e.value.style.layout.wick.extremity.size === "auto" ? v.value * e.value.style.layout.candle.widthRatio : e.value.style.layout.wick.extremity.size) / 2)),
807
+ height: e.value.style.layout.wick.strokeWidth,
808
+ rx: e.value.style.layout.wick.strokeWidth / 2,
809
+ fill: e.value.style.layout.wick.extremity.color,
810
+ stroke: "none",
811
+ class: S({ "vue-data-ui-transition": $.value && !u(z) })
812
+ }, null, 10, zl),
813
+ d("rect", {
814
+ x: l.low.x - (e.value.style.layout.wick.extremity.size === "auto" ? v.value * e.value.style.layout.candle.widthRatio : e.value.style.layout.wick.extremity.size) / 2,
815
+ y: l.low.y - e.value.style.layout.wick.strokeWidth / 2,
816
+ width: Math.abs(l.low.x - (e.value.style.layout.wick.extremity.size === "auto" ? v.value * e.value.style.layout.candle.widthRatio : e.value.style.layout.wick.extremity.size) / 2 - (l.low.x + (e.value.style.layout.wick.extremity.size === "auto" ? v.value * e.value.style.layout.candle.widthRatio : e.value.style.layout.wick.extremity.size) / 2)),
817
+ height: e.value.style.layout.wick.strokeWidth,
818
+ fill: e.value.style.layout.wick.extremity.color,
819
+ stroke: "none",
820
+ rx: e.value.style.layout.wick.strokeWidth / 2,
821
+ class: S({ "vue-data-ui-transition": $.value && !u(z) })
822
+ }, null, 10, Sl)
813
823
  ])) : g("", !0)
814
824
  ]))), 256))
815
825
  ]),
816
826
  d("g", null, [
817
- (s(!0), u(N, null, P(k.value, (l, o) => (s(), u("rect", {
827
+ (s(!0), i(E, null, B(k.value, (l, o) => (s(), i("rect", {
818
828
  x: l.open.x - v.value / 2 + v.value * (1 - e.value.style.layout.candle.widthRatio) / 2,
819
829
  y: l.isBullish ? l.last.y : l.open.y,
820
830
  height: Math.abs(l.last.y - l.open.y) <= 0 ? 1e-4 : Math.abs(l.last.y - l.open.y),
821
831
  width: v.value * e.value.style.layout.candle.widthRatio <= 0 ? 1e-4 : v.value * e.value.style.layout.candle.widthRatio,
822
832
  fill: e.value.style.layout.candle.gradient.underlayer,
823
833
  rx: e.value.style.layout.candle.borderRadius,
824
- stroke: "none"
825
- }, null, 8, zl))), 256)),
826
- (s(!0), u(N, null, P(k.value, (l, o) => (s(), u("rect", {
834
+ stroke: "none",
835
+ class: S({ "vue-data-ui-transition": $.value && !u(z) })
836
+ }, null, 10, Ll))), 256)),
837
+ (s(!0), i(E, null, B(k.value, (l, o) => (s(), i("rect", {
827
838
  x: l.open.x - v.value / 2 + v.value * (1 - e.value.style.layout.candle.widthRatio) / 2,
828
839
  y: l.isBullish ? l.last.y : l.open.y,
829
840
  height: Math.abs(l.last.y - l.open.y) <= 0 ? 1e-4 : Math.abs(l.last.y - l.open.y),
@@ -833,47 +844,48 @@ const tl = ["id"], ll = ["xmlns", "aria-label", "viewBox"], al = ["x", "y", "wid
833
844
  stroke: e.value.style.layout.candle.stroke,
834
845
  "stroke-width": e.value.style.layout.candle.strokeWidth,
835
846
  "stroke-linecap": "round",
836
- "stroke-linejoin": "round"
837
- }, null, 8, Sl))), 256))
847
+ "stroke-linejoin": "round",
848
+ class: S({ "vue-data-ui-transition": $.value && !u(z) })
849
+ }, null, 10, Tl))), 256))
838
850
  ]),
839
851
  d("g", null, [
840
- (s(!0), u(N, null, P(k.value, (l, o) => (s(), u("rect", {
841
- x: i.value.left + o * v.value,
842
- y: i.value.top,
843
- height: i.value.height <= 0 ? 1e-4 : i.value.height,
852
+ (s(!0), i(E, null, B(k.value, (l, o) => (s(), i("rect", {
853
+ x: n.value.left + o * v.value,
854
+ y: n.value.top,
855
+ height: n.value.height <= 0 ? 1e-4 : n.value.height,
844
856
  width: v.value <= 0 ? 1e-4 : v.value,
845
- fill: te.value === o ? n(Et)(e.value.style.layout.selector.color, e.value.style.layout.selector.opacity) : "transparent",
846
- onMouseover: (p) => ct(o, l),
857
+ fill: se.value === o ? u(Mt)(e.value.style.layout.selector.color, e.value.style.layout.selector.opacity) : "transparent",
858
+ onMouseover: (p) => ft(o, l),
847
859
  onMouseleave: a[0] || (a[0] = (p) => {
848
- te.value = void 0, Z.value = !1;
860
+ se.value = void 0, ae.value = !1;
849
861
  })
850
- }, null, 40, Ll))), 256))
862
+ }, null, 40, Il))), 256))
851
863
  ])
852
864
  ])) : g("", !0),
853
865
  m(t.$slots, "svg", { svg: y.value }, void 0, !0)
854
- ], 14, ll)),
855
- t.$slots.watermark ? (s(), u("div", Tl, [
856
- m(t.$slots, "watermark", R(O({ isPrinting: n(Le) || n(Te) })), void 0, !0)
866
+ ], 14, ol)),
867
+ t.$slots.watermark ? (s(), i("div", Fl, [
868
+ m(t.$slots, "watermark", P(V({ isPrinting: u(Fe) || u(Re) })), void 0, !0)
857
869
  ])) : g("", !0),
858
- e.value.style.zoom.show && Q.value ? (s(), u("div", {
870
+ e.value.style.zoom.show && te.value ? (s(), i("div", {
859
871
  key: 5,
860
872
  ref_key: "chartSlicer",
861
- ref: me
873
+ ref: Ae
862
874
  }, [
863
- (s(), F(Jt, {
875
+ (s(), N(Qt, {
864
876
  ref_key: "slicerComponent",
865
- ref: Ve,
866
- key: `slicer_${W.value}`,
877
+ ref: Me,
878
+ key: `slicer_${j.value}`,
867
879
  background: e.value.style.zoom.color,
868
880
  borderColor: e.value.style.backgroundColor,
869
881
  fontSize: e.value.style.zoom.fontSize,
870
882
  useResetSlot: e.value.style.zoom.useResetSlot,
871
- labelLeft: Pe.value.start,
872
- labelRight: Pe.value.end,
883
+ labelLeft: Be.value.start,
884
+ labelRight: Be.value.end,
873
885
  textColor: e.value.style.color,
874
886
  inputColor: e.value.style.zoom.color,
875
887
  selectColor: e.value.style.zoom.highlightColor,
876
- max: D.value,
888
+ max: G.value,
877
889
  min: 0,
878
890
  valueStart: h.value.start,
879
891
  valueEnd: h.value.end,
@@ -882,33 +894,33 @@ const tl = ["id"], ll = ["xmlns", "aria-label", "viewBox"], al = ["x", "y", "wid
882
894
  end: h.value.end,
883
895
  "onUpdate:end": a[2] || (a[2] = (l) => h.value.end = l),
884
896
  refreshStartPoint: e.value.style.zoom.startIndex !== null ? e.value.style.zoom.startIndex : 0,
885
- refreshEndPoint: e.value.style.zoom.endIndex !== null ? e.value.style.zoom.endIndex + 1 : D.value,
897
+ refreshEndPoint: e.value.style.zoom.endIndex !== null ? e.value.style.zoom.endIndex + 1 : G.value,
886
898
  enableRangeHandles: e.value.style.zoom.enableRangeHandles,
887
899
  enableSelectionDrag: e.value.style.zoom.enableSelectionDrag,
888
- onReset: ht
900
+ onReset: gt
889
901
  }, {
890
902
  "reset-action": x(({ reset: l }) => [
891
- m(t.$slots, "reset-action", R(O({ reset: l })), void 0, !0)
903
+ m(t.$slots, "reset-action", P(V({ reset: l })), void 0, !0)
892
904
  ]),
893
905
  _: 3
894
906
  }, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"]))
895
907
  ], 512)) : g("", !0),
896
908
  d("div", {
897
909
  ref_key: "chartLegend",
898
- ref: be
910
+ ref: we
899
911
  }, [
900
912
  m(t.$slots, "legend", { legend: k.value }, void 0, !0)
901
913
  ], 512),
902
- t.$slots.source ? (s(), u("div", {
914
+ t.$slots.source ? (s(), i("div", {
903
915
  key: 6,
904
916
  ref_key: "source",
905
- ref: xe,
917
+ ref: _e,
906
918
  dir: "auto"
907
919
  }, [
908
920
  m(t.$slots, "source", {}, void 0, !0)
909
921
  ], 512)) : g("", !0),
910
- Xe(n(at), {
911
- show: _.value.showTooltip && Z.value,
922
+ Ye(u(st), {
923
+ show: _.value.showTooltip && ae.value,
912
924
  backgroundColor: e.value.style.tooltip.backgroundColor,
913
925
  color: e.value.style.tooltip.color,
914
926
  borderRadius: e.value.style.tooltip.borderRadius,
@@ -918,20 +930,20 @@ const tl = ["id"], ll = ["xmlns", "aria-label", "viewBox"], al = ["x", "y", "wid
918
930
  backgroundOpacity: e.value.style.tooltip.backgroundOpacity,
919
931
  position: e.value.style.tooltip.position,
920
932
  offsetY: e.value.style.tooltip.offsetY,
921
- parent: z.value,
922
- content: ee.value,
923
- isFullscreen: B.value,
933
+ parent: T.value,
934
+ content: oe.value,
935
+ isFullscreen: W.value,
924
936
  isCustom: e.value.style.tooltip.customFormat && typeof e.value.style.tooltip.customFormat == "function"
925
937
  }, {
926
938
  "tooltip-before": x(() => [
927
- m(t.$slots, "tooltip-before", R(O({ ...ne.value })), void 0, !0)
939
+ m(t.$slots, "tooltip-before", P(V({ ...ye.value })), void 0, !0)
928
940
  ]),
929
941
  "tooltip-after": x(() => [
930
- m(t.$slots, "tooltip-after", R(O({ ...ne.value })), void 0, !0)
942
+ m(t.$slots, "tooltip-after", P(V({ ...ye.value })), void 0, !0)
931
943
  ]),
932
944
  _: 3
933
945
  }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
934
- Q.value ? (s(), F(n(Ze), {
946
+ te.value ? (s(), N(u(tt), {
935
947
  key: 7,
936
948
  hideDetails: "",
937
949
  config: {
@@ -948,30 +960,30 @@ const tl = ["id"], ll = ["xmlns", "aria-label", "viewBox"], al = ["x", "y", "wid
948
960
  }
949
961
  }, {
950
962
  content: x(() => [
951
- (s(), F(n(et), {
952
- key: `table_${we.value}`,
953
- colNames: X.value.colNames,
954
- head: X.value.head,
955
- body: X.value.body,
956
- config: X.value.config,
963
+ (s(), N(u(lt), {
964
+ key: `table_${$e.value}`,
965
+ colNames: q.value.colNames,
966
+ head: q.value.head,
967
+ body: q.value.body,
968
+ config: q.value.config,
957
969
  title: `${e.value.style.title.text}${e.value.style.title.subtitle.text ? ` : ${e.value.style.title.subtitle.text}` : ""}`,
958
970
  onClose: a[3] || (a[3] = (l) => _.value.showTable = !1)
959
971
  }, {
960
972
  th: x(({ th: l }) => [
961
- It(q(l), 1)
973
+ Rt(Q(l), 1)
962
974
  ]),
963
975
  td: x(({ td: l }) => [
964
- d("div", { innerHTML: l }, null, 8, Il)
976
+ d("div", { innerHTML: l }, null, 8, Rl)
965
977
  ]),
966
978
  _: 1
967
979
  }, 8, ["colNames", "head", "body", "config", "title"]))
968
980
  ]),
969
981
  _: 1
970
982
  }, 8, ["config"])) : g("", !0),
971
- n(_e) ? (s(), F(Yt, { key: 8 })) : g("", !0)
972
- ], 46, tl));
983
+ u(z) ? (s(), N(Jt, { key: 8 })) : g("", !0)
984
+ ], 46, al));
973
985
  }
974
- }, Yl = /* @__PURE__ */ el(Fl, [["__scopeId", "data-v-84693509"]]);
986
+ }, Jl = /* @__PURE__ */ ll(Ol, [["__scopeId", "data-v-85d19459"]]);
975
987
  export {
976
- Yl as default
988
+ Jl as default
977
989
  };