vue-data-ui 2.16.5 → 2.17.0

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 (92) hide show
  1. package/README.md +85 -55
  2. package/dist/{Arrow-D9B36pfx.js → Arrow-BAEkZGzL.js} +1 -1
  3. package/dist/{BaseDraggableDialog-DloHiD4h.js → BaseDraggableDialog-ChCkcmj_.js} +2 -2
  4. package/dist/{BaseIcon-DJab5OQD.js → BaseIcon-naqtCxVi.js} +1 -1
  5. package/dist/{ColorPicker-Br0rMnNb.js → ColorPicker-CfIPgxcj.js} +2 -2
  6. package/dist/{DataTable-B6MXw9cG.js → DataTable-D0VYDhfx.js} +2 -2
  7. package/dist/{Legend-DoxQwq_u.js → Legend-Bxlv67uY.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-DhbyLXKW.js → NonSvgPenAndPaper-b_oVy-Dd.js} +3 -3
  9. package/dist/{PackageVersion-DCreTQN4.js → PackageVersion-5TR4ocqp.js} +1 -1
  10. package/dist/{PenAndPaper-BS60tkQN.js → PenAndPaper-D6AqipIO.js} +32 -32
  11. package/dist/{Shape-CrstrfQ9.js → Shape-DtFT5EJa.js} +1 -1
  12. package/dist/{Slicer-Bd0AkciG.js → Slicer-CL6-MRI6.js} +2 -2
  13. package/dist/{SparkTooltip-B4j_rvhG.js → SparkTooltip-Bcv1aoA5.js} +1 -1
  14. package/dist/{Title-BQLtfM0P.js → Title-B-2bV0SW.js} +1 -1
  15. package/dist/{Tooltip-5JmGL7sR.js → Tooltip-CoQnTnr-.js} +1 -1
  16. package/dist/{UserOptions-DMGkAAIO.js → UserOptions-Dd34lEKb.js} +137 -129
  17. package/dist/{dom-to-png-g3Q8kjna.js → dom-to-png-2AA0wHlX.js} +1 -1
  18. package/dist/img-Y_hYz-ZC.js +27 -0
  19. package/dist/{index-CZNLCg7T.js → index-pPGk-uhD.js} +1 -1
  20. package/dist/{pdf-DJVOD0cz.js → pdf-yfk3d1is.js} +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +1098 -162
  23. package/dist/types/vue-data-ui.d.ts +1098 -162
  24. package/dist/{useNestedProp-BcPDA6Xr.js → useNestedProp-DjACxgdZ.js} +1 -1
  25. package/dist/{usePrinter-ButWuZVm.js → usePrinter-DDHcrl0A.js} +2 -2
  26. package/dist/vue-data-ui-CIWxgKjd.js +312 -0
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-o8P0DCbz.js → vue-ui-3d-bar-D5Wpdqfk.js} +244 -235
  29. package/dist/{vue-ui-accordion-CO4hmfuX.js → vue-ui-accordion-CVnA550V.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-C9T5bAEl.js → vue-ui-age-pyramid-BuAl-zC5.js} +167 -158
  31. package/dist/{vue-ui-annotator-CyOygaxE.js → vue-ui-annotator-gl2A20m3.js} +2 -2
  32. package/dist/{vue-ui-bullet-CPT1jdcz.js → vue-ui-bullet-D-VMKpwe.js} +131 -122
  33. package/dist/{vue-ui-candlestick-BfZTMGE0.js → vue-ui-candlestick-1r6YwiUV.js} +248 -239
  34. package/dist/{vue-ui-carousel-table-Bam9qqkj.js → vue-ui-carousel-table-B6UJoNtP.js} +17 -16
  35. package/dist/{vue-ui-chestnut-BAIMBFaQ.js → vue-ui-chestnut-DnlBYpC5.js} +257 -248
  36. package/dist/{vue-ui-chord-92E1yKdu.js → vue-ui-chord-D3kpzYjp.js} +229 -220
  37. package/dist/{vue-ui-circle-pack-DxXPqA7Z.js → vue-ui-circle-pack-CHgdpoYu.js} +200 -191
  38. package/dist/{vue-ui-cursor-Bvy_o8wb.js → vue-ui-cursor-63EAvElT.js} +2 -2
  39. package/dist/{vue-ui-dashboard--QRCkp7q.js → vue-ui-dashboard-Da6CPET-.js} +62 -62
  40. package/dist/{vue-ui-digits-Dl8RHLvt.js → vue-ui-digits-CA8pUKej.js} +2 -2
  41. package/dist/{vue-ui-donut-BxSTOFDt.js → vue-ui-donut-CKa7nFjt.js} +352 -343
  42. package/dist/{vue-ui-donut-evolution-DNzTtWnJ.js → vue-ui-donut-evolution-qeBEA4W8.js} +267 -258
  43. package/dist/{vue-ui-dumbbell-D01p3t3P.js → vue-ui-dumbbell-Bm0PvAKT.js} +146 -137
  44. package/dist/{vue-ui-flow-BMvaRn7E.js → vue-ui-flow-C2dqXvrU.js} +171 -162
  45. package/dist/{vue-ui-funnel-Bd_3wouw.js → vue-ui-funnel-Dvy5rRld.js} +134 -125
  46. package/dist/{vue-ui-galaxy-D4HJH1qq.js → vue-ui-galaxy-Y8LYp5n2.js} +181 -172
  47. package/dist/{vue-ui-gauge-CgIlk2pu.js → vue-ui-gauge-BBo0jWAP.js} +166 -157
  48. package/dist/{vue-ui-gizmo-C1-QYvsn.js → vue-ui-gizmo-DjXfTOWn.js} +3 -3
  49. package/dist/{vue-ui-heatmap-tUn_BlSp.js → vue-ui-heatmap-BbxRpltP.js} +242 -229
  50. package/dist/{vue-ui-history-plot-TfVRzyIK.js → vue-ui-history-plot-ChYf3Nvc.js} +218 -209
  51. package/dist/{vue-ui-kpi-BuL8MAMD.js → vue-ui-kpi-Vfc5-JnE.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-DIeG36P8.js → vue-ui-mini-loader-C0-Nsz8K.js} +2 -2
  53. package/dist/{vue-ui-molecule-8RJNzWIw.js → vue-ui-molecule-B7Yu7vzF.js} +155 -146
  54. package/dist/{vue-ui-mood-radar-DftzG_Bi.js → vue-ui-mood-radar-C8JUTwNw.js} +130 -121
  55. package/dist/{vue-ui-nested-donuts-B9JC_0xK.js → vue-ui-nested-donuts-D0RgFifU.js} +255 -246
  56. package/dist/{vue-ui-onion-DTjaH-Bu.js → vue-ui-onion-D4U7TL_N.js} +150 -141
  57. package/dist/{vue-ui-parallel-coordinate-plot-DwqfVqFB.js → vue-ui-parallel-coordinate-plot-CXMT7Rjr.js} +194 -185
  58. package/dist/{vue-ui-quadrant-Cv3VWA6d.js → vue-ui-quadrant-B13pTVVZ.js} +248 -239
  59. package/dist/{vue-ui-quick-chart-imc0KrbF.js → vue-ui-quick-chart-C0UL4o63.js} +328 -319
  60. package/dist/{vue-ui-radar-kNySclk1.js → vue-ui-radar-XpdiXnhz.js} +165 -156
  61. package/dist/{vue-ui-rating-DBhEbgwD.js → vue-ui-rating-CM8ZrUb1.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-BJQhS0aG.js → vue-ui-relation-circle-CYoFNekk.js} +145 -136
  63. package/dist/{vue-ui-ridgeline-Bhd1Uwm8.js → vue-ui-ridgeline-QUquE6ck.js} +198 -189
  64. package/dist/{vue-ui-rings-C_IT2mi0.js → vue-ui-rings-DwT0IfOh.js} +136 -127
  65. package/dist/{vue-ui-scatter-i8XZreWa.js → vue-ui-scatter-zDpy1udm.js} +207 -199
  66. package/dist/{vue-ui-skeleton-D9B8DY_k.js → vue-ui-skeleton-DJPjyNYn.js} +3 -3
  67. package/dist/{vue-ui-smiley-gmdnUWcW.js → vue-ui-smiley-DoDXl6k0.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-DOF3vl8_.js → vue-ui-spark-trend-CniV6Cpr.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-BVOVq3dA.js → vue-ui-sparkbar-Ds2ITgwn.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-DVO2Z0Rg.js → vue-ui-sparkgauge-CosfK-kw.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-CbV86a2i.js → vue-ui-sparkhistogram-C7O1wPAJ.js} +4 -4
  72. package/dist/{vue-ui-sparkline-jDNAVZu-.js → vue-ui-sparkline-B_iUj3F2.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-auT8CUXm.js → vue-ui-sparkstackbar-DBhWrysr.js} +3 -3
  74. package/dist/{vue-ui-stackbar-DmO02We2.js → vue-ui-stackbar-C3aV4IcL.js} +242 -233
  75. package/dist/{vue-ui-strip-plot-B25s87lj.js → vue-ui-strip-plot-Bvr1GAzH.js} +204 -195
  76. package/dist/{vue-ui-table-B4xbQdK_.js → vue-ui-table-DQKKRgyo.js} +3 -3
  77. package/dist/{vue-ui-table-heatmap-DI57VcvH.js → vue-ui-table-heatmap-Dyqj5XJC.js} +26 -25
  78. package/dist/{vue-ui-table-sparkline-DRgsZztN.js → vue-ui-table-sparkline-D4RubyLj.js} +8 -7
  79. package/dist/{vue-ui-thermometer-DkeT5DV_.js → vue-ui-thermometer-B0FKI5cG.js} +149 -140
  80. package/dist/{vue-ui-timer-uon_DLeH.js → vue-ui-timer-DUCBRIl-.js} +5 -5
  81. package/dist/{vue-ui-tiremarks-BV0qXRF2.js → vue-ui-tiremarks-CRt4UQZD.js} +114 -105
  82. package/dist/{vue-ui-treemap-DzJsjtz7.js → vue-ui-treemap-CWP5nYDx.js} +298 -289
  83. package/dist/{vue-ui-vertical-bar-CkLS_DGb.js → vue-ui-vertical-bar-C5fPYltO.js} +294 -285
  84. package/dist/{vue-ui-waffle-B2XiLGQx.js → vue-ui-waffle-BpWLlfpg.js} +190 -181
  85. package/dist/{vue-ui-wheel-BR1DDpKU.js → vue-ui-wheel-CTzuCroy.js} +96 -87
  86. package/dist/{vue-ui-word-cloud-BvOT6hu2.js → vue-ui-word-cloud-BPokdaP1.js} +212 -203
  87. package/dist/{vue-ui-world-BeP91MNX.js → vue-ui-world-CS6k-oil.js} +201 -192
  88. package/dist/{vue-ui-xy-BaR-ZDba.js → vue-ui-xy-CQ425kLR.js} +517 -510
  89. package/dist/{vue-ui-xy-canvas-B4ZmECCK.js → vue-ui-xy-canvas-D2IFwAr7.js} +364 -355
  90. package/package.json +1 -1
  91. package/dist/img-CTC5DLKL.js +0 -20
  92. package/dist/vue-data-ui-BB8Upnjm.js +0 -301
@@ -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-CZNLCg7T.js";
3
- import { t as It, u as Tt } from "./useResponsive-DfdjqQps.js";
4
- import { u as Me } from "./useNestedProp-BcPDA6Xr.js";
5
- import { u as Lt } from "./usePrinter-ButWuZVm.js";
6
- import { u as Ft } from "./useUserOptionState-BIvW1Kz7.js";
7
- import { u as Rt } from "./useChartAccessibility-9icAAmYg.js";
8
- import Ot from "./Title-BQLtfM0P.js";
9
- import { S as Nt } from "./Slicer-Bd0AkciG.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 mt } from "vue";
2
+ import { u as xt, 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-pPGk-uhD.js";
3
+ import { t as Tt, u as Lt } from "./useResponsive-DfdjqQps.js";
4
+ import { u as Me } from "./useNestedProp-DjACxgdZ.js";
5
+ import { u as Ft } from "./usePrinter-DDHcrl0A.js";
6
+ import { u as Rt } from "./useUserOptionState-BIvW1Kz7.js";
7
+ import { u as Ot } from "./useChartAccessibility-9icAAmYg.js";
8
+ import Nt from "./Title-B-2bV0SW.js";
9
+ import { S as Pt } from "./Slicer-CL6-MRI6.js";
10
+ import { u as Vt } from "./useTimeLabels-Mrr0jrpL.js";
11
+ import Et from "./img-Y_hYz-ZC.js";
12
+ import { _ as Mt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
+ const Ut = ["id"], Bt = ["xmlns", "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"], ml = {
13
14
  key: 5,
14
15
  class: "vue-data-ui-watermark"
15
- }, gl = ["innerHTML"], xl = {
16
+ }, xl = ["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-CO4hmfuX.js")), De = S(() => import("./DataTable-B6MXw9cG.js")), We = S(() => import("./PackageVersion-DCreTQN4.js")), Ge = S(() => import("./PenAndPaper-BS60tkQN.js")), He = S(() => import("./vue-ui-skeleton-D9B8DY_k.js")), je = S(() => import("./Tooltip-5JmGL7sR.js")), Xe = S(() => import("./UserOptions-DMGkAAIO.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({
33
- get: () => me(),
32
+ setup(Ue, { expose: Be }) {
33
+ const De = I(() => import("./vue-ui-accordion-CVnA550V.js")), We = I(() => import("./DataTable-D0VYDhfx.js")), Ge = I(() => import("./PackageVersion-5TR4ocqp.js")), He = I(() => import("./PenAndPaper-D6AqipIO.js")), je = I(() => import("./vue-ui-skeleton-DJPjyNYn.js")), Xe = I(() => import("./Tooltip-CoQnTnr-.js")), Ye = I(() => import("./UserOptions-Dd34lEKb.js")), { vue_ui_candlestick: qe } = xt(), i = Ue, U = f(() => !!i.dataset && i.dataset.length), k = y(bt()), Je = y(null), Q = y(!1), Z = y(""), ee = y(void 0), ne = y(0), z = 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({
34
+ get: () => xe(),
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
- function me() {
36
+ }), { userOptionsVisible: te, setUserOptionsVisibility: fe, keepUserOptionState: ge } = Rt({ config: e.value }), { svgRef: me } = Ot({ config: e.value.style.title });
37
+ function xe() {
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 = xe(), 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;
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
+ }), A = 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: z.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
+ A.value && (P.value && A.value.unobserve(P.value), A.value.disconnect()), A.value = new ResizeObserver(t), P.value = z.value.parentNode, A.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
+ A.value && (P.value && A.value.unobserve(P.value), A.value.disconnect());
99
100
  });
100
- const { isPrinting: ke, isImaging: we, generatePdf: _e, generateImage: Ce } = Lt({
101
+ const { isPrinting: ke, isImaging: we, generatePdf: _e, generateImage: Ce } = Ft({
101
102
  elementId: `vue-ui-candlestick_${k.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), _ = 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
- }), U = f(() => i.dataset.length), p = y({
118
+ }), B = f(() => i.dataset.length), p = y({
118
119
  start: 0,
119
- end: U.value
120
- }), $e = f(() => i.dataset.map((t, o) => ({
120
+ end: B.value
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
+ }), w = 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
+ x: W(n.value.left + a * d.value + d.value / 2),
174
175
  y: W(n.value.top + (1 - (t - w.value.min) / (w.value.max - w.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 x = f(() => le.value.map((t, a) => {
180
+ const l = H(t.open, a), o = H(t.high, a), C = H(t.low, a), b = 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
+ high: o,
184
185
  low: C,
185
186
  last: b,
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
+ function Qe(t) {
192
193
  return W((t - w.value.min) / (w.value.max - w.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(() => w.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: x.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: x.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: x.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: C, open: b, high: S, low: se, last: ue, volume: Y, isBullish: Re } = x.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 : C;
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_${k.value})` : `url(#bearish_gradient_${k.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
238
  v: b.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
- end: U.value
274
+ end: B.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 = B.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,
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 = x.value.map((b, S) => [
284
+ e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? V.value[S].text : b.period,
284
285
  b.open.value,
285
286
  b.high.value,
286
287
  b.low.value,
287
288
  b.last.value,
288
289
  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" });
290
+ ]), o = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([a]).concat(l), C = At(o);
291
+ t ? t(C) : zt({ csvContent: C, 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 = x.value.map((o, C) => {
296
+ const b = e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? V.value[C].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_${k.value}` : `url(#bearish_gradient_${k.value})` : o.isBullish ? e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.colors.bearish}"/></svg> ${b}`,
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,53 @@ 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
+ function Le() {
350
351
  _.value.showTable = !_.value.showTable;
351
352
  }
352
- function Le() {
353
+ function Fe() {
353
354
  _.value.showTooltip = !_.value.showTooltip;
354
355
  }
355
356
  const X = y(!1);
356
- function ae() {
357
+ function oe() {
357
358
  X.value = !X.value;
358
359
  }
360
+ async function ot({ scale: t = 2 } = {}) {
361
+ if (!z.value) return;
362
+ const { imageUri: a, base64: l } = await Et({ domElement: z.value, base64: !0, img: !0, scale: t });
363
+ return { imageUri: a, base64: l };
364
+ }
359
365
  return Be({
366
+ getImage: ot,
360
367
  generatePdf: _e,
361
368
  generateCsv: Ie,
362
369
  generateImage: Ce,
363
- toggleTable: Te,
364
- toggleTooltip: Le,
365
- toggleAnnotator: ae
366
- }), (t, o) => (s(), u("div", {
370
+ toggleTable: Le,
371
+ toggleTooltip: Fe,
372
+ toggleAnnotator: oe,
373
+ toggleFullscreen: Te
374
+ }), (t, a) => (s(), u("div", {
367
375
  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"}`),
376
+ ref: z,
377
+ class: Pe(`vue-ui-candlestick ${M.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
370
378
  style: ie(`position:relative;font-family:${e.value.style.fontFamily}; text-align:center;background:${e.value.style.backgroundColor}; ${e.value.responsive ? "height: 100%" : ""}`),
371
379
  id: `vue-ui-candlestick_${k.value}`,
372
- onMouseenter: o[4] || (o[4] = () => r(fe)(!0)),
373
- onMouseleave: o[5] || (o[5] = () => r(fe)(!1))
380
+ onMouseenter: a[4] || (a[4] = () => r(fe)(!0)),
381
+ onMouseleave: a[5] || (a[5] = () => r(fe)(!1))
374
382
  }, [
375
- e.value.userOptions.buttons.annotator ? (s(), I(r(Ge), {
383
+ e.value.userOptions.buttons.annotator ? (s(), T(r(He), {
376
384
  key: 0,
377
- svgRef: r(xe),
385
+ svgRef: r(me),
378
386
  backgroundColor: e.value.style.backgroundColor,
379
387
  color: e.value.style.color,
380
388
  active: X.value,
381
- onClose: ae
389
+ onClose: oe
382
390
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : h("", !0),
383
- Je.value ? (s(), u("div", {
391
+ Ke.value ? (s(), u("div", {
384
392
  key: 1,
385
393
  ref_key: "noTitle",
386
394
  ref: ce,
@@ -393,7 +401,7 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
393
401
  ref: re,
394
402
  style: "width:100%;background:transparent"
395
403
  }, [
396
- (s(), I(Ot, {
404
+ (s(), T(Nt, {
397
405
  key: `title_${pe.value}`,
398
406
  config: {
399
407
  title: {
@@ -407,9 +415,9 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
407
415
  }
408
416
  }, null, 8, ["config"]))
409
417
  ], 512)) : h("", !0),
410
- e.value.userOptions.show && E.value && (r(ge) || r(te)) ? (s(), I(r(Xe), {
418
+ e.value.userOptions.show && U.value && (r(ge) || r(te)) ? (s(), T(r(Ye), {
411
419
  ref_key: "details",
412
- ref: qe,
420
+ ref: Je,
413
421
  key: `user_options_${ne.value}`,
414
422
  backgroundColor: e.value.style.backgroundColor,
415
423
  color: e.value.style.color,
@@ -425,89 +433,90 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
425
433
  isFullscreen: M.value,
426
434
  isTooltip: _.value.showTooltip,
427
435
  titles: { ...e.value.userOptions.buttonTitles },
428
- chartElement: B.value,
436
+ chartElement: z.value,
429
437
  position: e.value.userOptions.position,
430
438
  hasAnnotator: e.value.userOptions.buttons.annotator,
431
439
  isAnnotation: X.value,
432
440
  callbacks: e.value.userOptions.callbacks,
433
- onToggleFullscreen: ot,
441
+ printScale: e.value.userOptions.print.scale,
442
+ onToggleFullscreen: Te,
434
443
  onGeneratePdf: r(_e),
435
444
  onGenerateCsv: Ie,
436
445
  onGenerateImage: r(Ce),
437
- onToggleTable: Te,
438
- onToggleTooltip: Le,
439
- onToggleAnnotator: ae,
446
+ onToggleTable: Le,
447
+ onToggleTooltip: Fe,
448
+ onToggleAnnotator: oe,
440
449
  style: ie({
441
450
  visibility: r(ge) ? r(te) ? "visible" : "hidden" : "visible"
442
451
  })
443
- }, ft({ _: 2 }, [
452
+ }, gt({ _: 2 }, [
444
453
  t.$slots.menuIcon ? {
445
454
  name: "menuIcon",
446
- fn: x(({ isOpen: l, color: a }) => [
447
- g(t.$slots, "menuIcon", T(L({ isOpen: l, color: a })), void 0, !0)
455
+ fn: m(({ isOpen: l, color: o }) => [
456
+ g(t.$slots, "menuIcon", L(F({ isOpen: l, color: o })), void 0, !0)
448
457
  ]),
449
458
  key: "0"
450
459
  } : void 0,
451
460
  t.$slots.optionTooltip ? {
452
461
  name: "optionTooltip",
453
- fn: x(() => [
462
+ fn: m(() => [
454
463
  g(t.$slots, "optionTooltip", {}, void 0, !0)
455
464
  ]),
456
465
  key: "1"
457
466
  } : void 0,
458
467
  t.$slots.optionPdf ? {
459
468
  name: "optionPdf",
460
- fn: x(() => [
469
+ fn: m(() => [
461
470
  g(t.$slots, "optionPdf", {}, void 0, !0)
462
471
  ]),
463
472
  key: "2"
464
473
  } : void 0,
465
474
  t.$slots.optionCsv ? {
466
475
  name: "optionCsv",
467
- fn: x(() => [
476
+ fn: m(() => [
468
477
  g(t.$slots, "optionCsv", {}, void 0, !0)
469
478
  ]),
470
479
  key: "3"
471
480
  } : void 0,
472
481
  t.$slots.optionImg ? {
473
482
  name: "optionImg",
474
- fn: x(() => [
483
+ fn: m(() => [
475
484
  g(t.$slots, "optionImg", {}, void 0, !0)
476
485
  ]),
477
486
  key: "4"
478
487
  } : void 0,
479
488
  t.$slots.optionTable ? {
480
489
  name: "optionTable",
481
- fn: x(() => [
490
+ fn: m(() => [
482
491
  g(t.$slots, "optionTable", {}, void 0, !0)
483
492
  ]),
484
493
  key: "5"
485
494
  } : void 0,
486
495
  t.$slots.optionFullscreen ? {
487
496
  name: "optionFullscreen",
488
- fn: x(({ toggleFullscreen: l, isFullscreen: a }) => [
489
- g(t.$slots, "optionFullscreen", T(L({ toggleFullscreen: l, isFullscreen: a })), void 0, !0)
497
+ fn: m(({ toggleFullscreen: l, isFullscreen: o }) => [
498
+ g(t.$slots, "optionFullscreen", L(F({ toggleFullscreen: l, isFullscreen: o })), void 0, !0)
490
499
  ]),
491
500
  key: "6"
492
501
  } : void 0,
493
502
  t.$slots.optionAnnotator ? {
494
503
  name: "optionAnnotator",
495
- fn: x(({ toggleAnnotator: l, isAnnotator: a }) => [
496
- g(t.$slots, "optionAnnotator", T(L({ toggleAnnotator: l, isAnnotator: a })), void 0, !0)
504
+ fn: m(({ toggleAnnotator: l, isAnnotator: o }) => [
505
+ g(t.$slots, "optionAnnotator", L(F({ toggleAnnotator: l, isAnnotator: o })), void 0, !0)
497
506
  ]),
498
507
  key: "7"
499
508
  } : 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", {
509
+ ]), 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),
510
+ U.value ? (s(), u("svg", {
502
511
  key: 4,
503
512
  ref_key: "svgRef",
504
- ref: xe,
505
- xmlns: r(_t),
506
- class: Ne({ "vue-data-ui-fullscreen--on": M.value, "vue-data-ui-fulscreen--off": !M.value }),
513
+ ref: me,
514
+ xmlns: r(Ct),
515
+ class: Pe({ "vue-data-ui-fullscreen--on": M.value, "vue-data-ui-fulscreen--off": !M.value }),
507
516
  viewBox: `0 0 ${c.value.width <= 0 ? 10 : c.value.width} ${c.value.height <= 0 ? 10 : c.value.height}`,
508
517
  style: ie(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.color}`)
509
518
  }, [
510
- Pe(r(We)),
519
+ Ve(r(Ge)),
511
520
  t.$slots["chart-background"] ? (s(), u("foreignObject", {
512
521
  key: 0,
513
522
  x: n.value.left,
@@ -519,8 +528,8 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
519
528
  }
520
529
  }, [
521
530
  g(t.$slots, "chart-background", {}, void 0, !0)
522
- ], 8, Bt)) : h("", !0),
523
- m.value.length > 0 ? (s(), u("g", Ut, [
531
+ ], 8, Dt)) : h("", !0),
532
+ x.value.length > 0 ? (s(), u("g", Wt, [
524
533
  v("defs", null, [
525
534
  v("linearGradient", {
526
535
  id: `bearish_gradient_${k.value}`,
@@ -530,16 +539,16 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
530
539
  v("stop", {
531
540
  offset: "0%",
532
541
  "stop-color": e.value.style.layout.candle.colors.bearish
533
- }, null, 8, Wt),
542
+ }, null, 8, Ht),
534
543
  v("stop", {
535
544
  offset: "50%",
536
545
  "stop-color": `${r(K)(e.value.style.layout.candle.colors.bearish, 0.02)}DE`
537
- }, null, 8, Gt),
546
+ }, null, 8, jt),
538
547
  v("stop", {
539
548
  offset: "100%",
540
549
  "stop-color": `${r(K)(e.value.style.layout.candle.colors.bearish, 0.05)}66`
541
- }, null, 8, Ht)
542
- ], 8, Dt),
550
+ }, null, 8, Xt)
551
+ ], 8, Gt),
543
552
  v("linearGradient", {
544
553
  id: `bullish_gradient_${k.value}`,
545
554
  x2: "0%",
@@ -548,18 +557,18 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
548
557
  v("stop", {
549
558
  offset: "0%",
550
559
  "stop-color": e.value.style.layout.candle.colors.bullish
551
- }, null, 8, Xt),
560
+ }, null, 8, qt),
552
561
  v("stop", {
553
562
  offset: "50%",
554
563
  "stop-color": `${r(K)(e.value.style.layout.candle.colors.bullish, 0.02)}DE`
555
- }, null, 8, Yt),
564
+ }, null, 8, Jt),
556
565
  v("stop", {
557
566
  offset: "100%",
558
567
  "stop-color": `${r(K)(e.value.style.layout.candle.colors.bullish, 0.05)}66`
559
- }, null, 8, qt)
560
- ], 8, jt)
568
+ }, null, 8, Kt)
569
+ ], 8, Yt)
561
570
  ]),
562
- e.value.style.layout.grid.show ? (s(), u("g", Jt, [
571
+ e.value.style.layout.grid.show ? (s(), u("g", Qt, [
563
572
  v("line", {
564
573
  x1: n.value.left,
565
574
  x2: n.value.left,
@@ -568,7 +577,7 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
568
577
  stroke: e.value.style.layout.grid.stroke,
569
578
  "stroke-width": e.value.style.layout.grid.strokeWidth,
570
579
  "stroke-linecap": "round"
571
- }, null, 8, Kt),
580
+ }, null, 8, Zt),
572
581
  v("line", {
573
582
  x1: n.value.left,
574
583
  x2: n.value.right,
@@ -577,10 +586,10 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
577
586
  stroke: e.value.style.layout.grid.stroke,
578
587
  "stroke-width": e.value.style.layout.grid.strokeWidth,
579
588
  "stroke-linecap": "round"
580
- }, null, 8, Qt)
589
+ }, null, 8, el)
581
590
  ])) : 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, [
591
+ e.value.style.layout.grid.yAxis.dataLabels.show ? (s(), u("g", tl, [
592
+ (s(!0), u(R, null, O(Ze.value, (l, o) => (s(), u("g", null, [
584
593
  l.value >= w.value.min && l.value <= w.value.max ? (s(), u("line", {
585
594
  key: 0,
586
595
  x1: n.value.left,
@@ -590,7 +599,7 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
590
599
  stroke: e.value.style.layout.grid.stroke,
591
600
  "stroke-width": e.value.style.layout.grid.strokeWidth,
592
601
  "stroke-linecap": "round"
593
- }, null, 8, el)) : h("", !0),
602
+ }, null, 8, ll)) : h("", !0),
594
603
  l.value >= w.value.min && l.value <= w.value.max ? (s(), u("text", {
595
604
  key: 1,
596
605
  x: n.value.left - 8 + e.value.style.layout.grid.yAxis.dataLabels.offsetX,
@@ -604,33 +613,33 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
604
613
  v: l.value,
605
614
  s: e.value.style.layout.grid.yAxis.dataLabels.suffix,
606
615
  r: e.value.style.layout.grid.yAxis.dataLabels.roundingValue
607
- })), 9, tl)) : h("", !0)
616
+ })), 9, al)) : h("", !0)
608
617
  ]))), 256))
609
618
  ])) : 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, [
619
+ e.value.style.layout.grid.xAxis.dataLabels.show && !e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? (s(), u("g", ol, [
620
+ (s(!0), u(R, null, O(et.value, (l, o) => (s(), u("g", null, [
612
621
  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})`,
622
+ 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
623
  "text-anchor": e.value.style.layout.grid.xAxis.dataLabels.rotation > 0 ? "start" : e.value.style.layout.grid.xAxis.dataLabels.rotation < 0 ? "end" : "middle",
615
624
  "font-size": c.value.xAxisFontSize,
616
625
  fill: e.value.style.layout.grid.xAxis.dataLabels.color,
617
626
  "font-weight": e.value.style.layout.grid.xAxis.dataLabels.bold ? "bold" : "normal"
618
- }, q(l), 9, ol)
627
+ }, q(l), 9, sl)
619
628
  ]))), 256))
620
629
  ])) : 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, [
630
+ e.value.style.layout.grid.xAxis.dataLabels.show && e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? (s(), u("g", ul, [
631
+ (s(!0), u(R, null, O(V.value, (l, o) => (s(), u("g", null, [
623
632
  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})`,
633
+ 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
634
  "text-anchor": e.value.style.layout.grid.xAxis.dataLabels.rotation > 0 ? "start" : e.value.style.layout.grid.xAxis.dataLabels.rotation < 0 ? "end" : "middle",
626
635
  "font-size": c.value.xAxisFontSize,
627
636
  fill: e.value.style.layout.grid.xAxis.dataLabels.color,
628
637
  "font-weight": e.value.style.layout.grid.xAxis.dataLabels.bold ? "bold" : "normal"
629
- }, q(l.text), 9, sl)
638
+ }, q(l.text), 9, il)
630
639
  ]))), 256))
631
640
  ])) : h("", !0),
632
641
  v("g", null, [
633
- (s(!0), u(F, null, R(m.value, (l, a) => (s(), u("g", null, [
642
+ (s(!0), u(R, null, O(x.value, (l, o) => (s(), u("g", null, [
634
643
  v("line", {
635
644
  x1: l.open.x,
636
645
  x2: l.open.x,
@@ -639,22 +648,22 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
639
648
  stroke: e.value.style.layout.wick.stroke,
640
649
  "stroke-width": e.value.style.layout.wick.strokeWidth,
641
650
  "stroke-linecap": "round"
642
- }, null, 8, ul),
643
- e.value.style.layout.wick.extremity.shape === "circle" ? (s(), u("g", il, [
651
+ }, null, 8, nl),
652
+ e.value.style.layout.wick.extremity.shape === "circle" ? (s(), u("g", rl, [
644
653
  v("circle", {
645
654
  cx: l.high.x,
646
655
  cy: l.high.y,
647
656
  r: e.value.style.layout.wick.extremity.size === "auto" ? d.value / 20 : e.value.style.layout.wick.extremity.size,
648
657
  fill: e.value.style.layout.wick.extremity.color
649
- }, null, 8, nl),
658
+ }, null, 8, dl),
650
659
  v("circle", {
651
660
  cx: l.low.x,
652
661
  cy: l.low.y,
653
662
  r: e.value.style.layout.wick.extremity.size === "auto" ? d.value / 20 : e.value.style.layout.wick.extremity.size,
654
663
  fill: e.value.style.layout.wick.extremity.color
655
- }, null, 8, rl)
664
+ }, null, 8, vl)
656
665
  ])) : h("", !0),
657
- e.value.style.layout.wick.extremity.shape === "line" ? (s(), u("g", dl, [
666
+ e.value.style.layout.wick.extremity.shape === "line" ? (s(), u("g", yl, [
658
667
  v("line", {
659
668
  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
669
  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 +672,7 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
663
672
  stroke: e.value.style.layout.wick.extremity.color,
664
673
  "stroke-width": e.value.style.layout.wick.strokeWidth,
665
674
  "stroke-linecap": "round"
666
- }, null, 8, vl),
675
+ }, null, 8, cl),
667
676
  v("line", {
668
677
  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
678
  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 +681,12 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
672
681
  stroke: e.value.style.layout.wick.extremity.color,
673
682
  "stroke-width": e.value.style.layout.wick.strokeWidth,
674
683
  "stroke-linecap": "round"
675
- }, null, 8, yl)
684
+ }, null, 8, hl)
676
685
  ])) : h("", !0)
677
686
  ]))), 256))
678
687
  ]),
679
688
  v("g", null, [
680
- (s(!0), u(F, null, R(m.value, (l, a) => (s(), u("rect", {
689
+ (s(!0), u(R, null, O(x.value, (l, o) => (s(), u("rect", {
681
690
  x: l.open.x - d.value / 2 + d.value * (1 - e.value.style.layout.candle.widthRatio) / 2,
682
691
  y: l.isBullish ? l.last.y : l.open.y,
683
692
  height: Math.abs(l.last.y - l.open.y) <= 0 ? 1e-4 : Math.abs(l.last.y - l.open.y),
@@ -685,8 +694,8 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
685
694
  fill: e.value.style.layout.candle.gradient.underlayer,
686
695
  rx: e.value.style.layout.candle.borderRadius,
687
696
  stroke: "none"
688
- }, null, 8, cl))), 256)),
689
- (s(!0), u(F, null, R(m.value, (l, a) => (s(), u("rect", {
697
+ }, null, 8, pl))), 256)),
698
+ (s(!0), u(R, null, O(x.value, (l, o) => (s(), u("rect", {
690
699
  x: l.open.x - d.value / 2 + d.value * (1 - e.value.style.layout.candle.widthRatio) / 2,
691
700
  y: l.isBullish ? l.last.y : l.open.y,
692
701
  height: Math.abs(l.last.y - l.open.y) <= 0 ? 1e-4 : Math.abs(l.last.y - l.open.y),
@@ -697,28 +706,28 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
697
706
  "stroke-width": e.value.style.layout.candle.strokeWidth,
698
707
  "stroke-linecap": "round",
699
708
  "stroke-linejoin": "round"
700
- }, null, 8, hl))), 256))
709
+ }, null, 8, fl))), 256))
701
710
  ]),
702
711
  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,
712
+ (s(!0), u(R, null, O(x.value, (l, o) => (s(), u("rect", {
713
+ x: n.value.left + o * d.value,
705
714
  y: n.value.top,
706
715
  height: n.value.height <= 0 ? 1e-4 : n.value.height,
707
716
  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) => {
717
+ fill: ee.value === o ? r($t)(e.value.style.layout.selector.color, e.value.style.layout.selector.opacity) : "transparent",
718
+ onMouseover: (C) => tt(o, l),
719
+ onMouseleave: a[0] || (a[0] = (C) => {
711
720
  ee.value = void 0, Q.value = !1;
712
721
  })
713
- }, null, 40, pl))), 256))
722
+ }, null, 40, gl))), 256))
714
723
  ])
715
724
  ])) : h("", !0),
716
725
  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)
726
+ ], 14, Bt)) : h("", !0),
727
+ t.$slots.watermark ? (s(), u("div", ml, [
728
+ g(t.$slots, "watermark", L(F({ isPrinting: r(ke) || r(we) })), void 0, !0)
720
729
  ])) : h("", !0),
721
- E.value ? h("", !0) : (s(), I(r(He), {
730
+ U.value ? h("", !0) : (s(), T(r(je), {
722
731
  key: 6,
723
732
  config: {
724
733
  type: "candlesticks",
@@ -735,14 +744,14 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
735
744
  }
736
745
  }
737
746
  }, null, 8, ["config"])),
738
- e.value.style.zoom.show && E.value ? (s(), u("div", {
747
+ e.value.style.zoom.show && U.value ? (s(), u("div", {
739
748
  key: 7,
740
749
  ref_key: "chartSlicer",
741
750
  ref: ve
742
751
  }, [
743
- (s(), I(Nt, {
752
+ (s(), T(Pt, {
744
753
  ref_key: "slicerComponent",
745
- ref: V,
754
+ ref: E,
746
755
  key: `slicer_${G.value}`,
747
756
  background: e.value.style.zoom.color,
748
757
  borderColor: e.value.style.backgroundColor,
@@ -753,22 +762,22 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
753
762
  textColor: e.value.style.color,
754
763
  inputColor: e.value.style.zoom.color,
755
764
  selectColor: e.value.style.zoom.highlightColor,
756
- max: U.value,
765
+ max: B.value,
757
766
  min: 0,
758
767
  valueStart: p.value.start,
759
768
  valueEnd: p.value.end,
760
769
  start: p.value.start,
761
- "onUpdate:start": o[1] || (o[1] = (l) => p.value.start = l),
770
+ "onUpdate:start": a[1] || (a[1] = (l) => p.value.start = l),
762
771
  end: p.value.end,
763
- "onUpdate:end": o[2] || (o[2] = (l) => p.value.end = l),
772
+ "onUpdate:end": a[2] || (a[2] = (l) => p.value.end = l),
764
773
  refreshStartPoint: e.value.style.zoom.startIndex !== null ? e.value.style.zoom.startIndex : 0,
765
- refreshEndPoint: e.value.style.zoom.endIndex !== null ? e.value.style.zoom.endIndex + 1 : U.value,
774
+ refreshEndPoint: e.value.style.zoom.endIndex !== null ? e.value.style.zoom.endIndex + 1 : B.value,
766
775
  enableRangeHandles: e.value.style.zoom.enableRangeHandles,
767
776
  enableSelectionDrag: e.value.style.zoom.enableSelectionDrag,
768
- onReset: tt
777
+ onReset: lt
769
778
  }, {
770
- "reset-action": x(({ reset: l }) => [
771
- g(t.$slots, "reset-action", T(L({ reset: l })), void 0, !0)
779
+ "reset-action": m(({ reset: l }) => [
780
+ g(t.$slots, "reset-action", L(F({ reset: l })), void 0, !0)
772
781
  ]),
773
782
  _: 3
774
783
  }, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"]))
@@ -777,7 +786,7 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
777
786
  ref_key: "chartLegend",
778
787
  ref: de
779
788
  }, [
780
- g(t.$slots, "legend", { legend: m.value }, void 0, !0)
789
+ g(t.$slots, "legend", { legend: x.value }, void 0, !0)
781
790
  ], 512),
782
791
  t.$slots.source ? (s(), u("div", {
783
792
  key: 8,
@@ -787,7 +796,7 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
787
796
  }, [
788
797
  g(t.$slots, "source", {}, void 0, !0)
789
798
  ], 512)) : h("", !0),
790
- Pe(r(je), {
799
+ Ve(r(Xe), {
791
800
  show: _.value.showTooltip && Q.value,
792
801
  backgroundColor: e.value.style.tooltip.backgroundColor,
793
802
  color: e.value.style.tooltip.color,
@@ -798,20 +807,20 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
798
807
  backgroundOpacity: e.value.style.tooltip.backgroundOpacity,
799
808
  position: e.value.style.tooltip.position,
800
809
  offsetY: e.value.style.tooltip.offsetY,
801
- parent: B.value,
810
+ parent: z.value,
802
811
  content: Z.value,
803
812
  isFullscreen: M.value,
804
813
  isCustom: e.value.style.tooltip.customFormat && typeof e.value.style.tooltip.customFormat == "function"
805
814
  }, {
806
- "tooltip-before": x(() => [
807
- g(t.$slots, "tooltip-before", T(L({ ...oe.value })), void 0, !0)
815
+ "tooltip-before": m(() => [
816
+ g(t.$slots, "tooltip-before", L(F({ ...ae.value })), void 0, !0)
808
817
  ]),
809
- "tooltip-after": x(() => [
810
- g(t.$slots, "tooltip-after", T(L({ ...oe.value })), void 0, !0)
818
+ "tooltip-after": m(() => [
819
+ g(t.$slots, "tooltip-after", L(F({ ...ae.value })), void 0, !0)
811
820
  ]),
812
821
  _: 3
813
822
  }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
814
- E.value ? (s(), I(r(Ue), {
823
+ U.value ? (s(), T(r(De), {
815
824
  key: 9,
816
825
  hideDetails: "",
817
826
  config: {
@@ -827,30 +836,30 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
827
836
  }
828
837
  }
829
838
  }, {
830
- content: x(() => [
831
- (s(), I(r(De), {
839
+ content: m(() => [
840
+ (s(), T(r(We), {
832
841
  key: `table_${he.value}`,
833
842
  colNames: j.value.colNames,
834
843
  head: j.value.head,
835
844
  body: j.value.body,
836
845
  config: j.value.config,
837
846
  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)
847
+ onClose: a[3] || (a[3] = (l) => _.value.showTable = !1)
839
848
  }, {
840
- th: x(({ th: l }) => [
841
- gt(q(l), 1)
849
+ th: m(({ th: l }) => [
850
+ mt(q(l), 1)
842
851
  ]),
843
- td: x(({ td: l }) => [
844
- v("div", { innerHTML: l }, null, 8, gl)
852
+ td: m(({ td: l }) => [
853
+ v("div", { innerHTML: l }, null, 8, xl)
845
854
  ]),
846
855
  _: 1
847
856
  }, 8, ["colNames", "head", "body", "config", "title"]))
848
857
  ]),
849
858
  _: 1
850
859
  }, 8, ["config"])) : h("", !0)
851
- ], 46, Mt));
860
+ ], 46, Ut));
852
861
  }
853
- }, Ll = /* @__PURE__ */ Vt(xl, [["__scopeId", "data-v-7e73d8b0"]]);
862
+ }, Ol = /* @__PURE__ */ Mt(bl, [["__scopeId", "data-v-f8f4ab18"]]);
854
863
  export {
855
- Ll as default
864
+ Ol as default
856
865
  };