vue-data-ui 2.12.8-beta.3 → 2.12.8-beta.4

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 +10 -4
  2. package/dist/{Arrow-kQyQXUUg.js → Arrow-XoY1VXNf.js} +1 -1
  3. package/dist/{BaseDraggableDialog-DLRFrsDT.js → BaseDraggableDialog-CXe0WfN-.js} +2 -2
  4. package/dist/{BaseIcon-DaR0sIWZ.js → BaseIcon-d4dmqhkb.js} +1 -1
  5. package/dist/{ColorPicker-Bj3sq9o7.js → ColorPicker-B3v0IhDO.js} +2 -2
  6. package/dist/{DataTable-BBqbcutV.js → DataTable-CmbjnjRg.js} +2 -2
  7. package/dist/{Legend-DRqzYrP9.js → Legend-YPYnzTBz.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-CQIC2PMP.js → NonSvgPenAndPaper-SD-bH_GI.js} +3 -3
  9. package/dist/{PackageVersion-ClpqQxYT.js → PackageVersion-OcbP0WH2.js} +1 -1
  10. package/dist/{PenAndPaper-B-T7XvxF.js → PenAndPaper-BgPXmpGI.js} +3 -3
  11. package/dist/{Shape-DEWxbZ-l.js → Shape-WvXjwML_.js} +1 -1
  12. package/dist/{Slicer-o6jJH5bw.js → Slicer-CaMHCF_p.js} +2 -2
  13. package/dist/{SparkTooltip-LPnbBoFu.js → SparkTooltip-BTLad6y3.js} +1 -1
  14. package/dist/{Title-apr_T9tg.js → Title-CJcZXNtK.js} +1 -1
  15. package/dist/{Tooltip-BuHsMAfp.js → Tooltip-dXp8FaUj.js} +1 -1
  16. package/dist/{UserOptions-OVNxxnq5.js → UserOptions-Cs7JW3dK.js} +16 -11
  17. package/dist/dom-to-png-DGfv21rX.js +247 -0
  18. package/dist/img-fdViJw1e.js +20 -0
  19. package/dist/{index-CH_mJIWj.js → index-BzQ0j5xI.js} +6 -2
  20. package/dist/{pdf-Jun3ogRn.js → pdf-Bj65uPK-.js} +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +20 -3
  23. package/dist/types/vue-data-ui.d.ts +20 -3
  24. package/dist/{useNestedProp-rMR-JeOJ.js → useNestedProp-DqpZEE3h.js} +1 -1
  25. package/dist/{usePrinter-DJ7WfWUs.js → usePrinter-CpG5jh_z.js} +2 -2
  26. package/dist/{vue-data-ui-D7AaTKU6.js → vue-data-ui-CeIncf6V.js} +63 -63
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-BfLLrwWi.js → vue-ui-3d-bar-fAJK0nIB.js} +173 -173
  29. package/dist/{vue-ui-accordion-Ds4zkPIx.js → vue-ui-accordion-bpaEpjqI.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-C7ca5TG5.js → vue-ui-age-pyramid-D5w5EqmV.js} +179 -179
  31. package/dist/{vue-ui-annotator-DG2z1gw8.js → vue-ui-annotator-CSGemK-O.js} +2 -2
  32. package/dist/{vue-ui-bullet-Dh25QAEH.js → vue-ui-bullet-FPBahjOr.js} +6 -6
  33. package/dist/{vue-ui-candlestick-7Yo_kEV0.js → vue-ui-candlestick-BpP9MQC2.js} +113 -113
  34. package/dist/{vue-ui-carousel-table-Det9Kwmy.js → vue-ui-carousel-table-lpdLFAfT.js} +94 -94
  35. package/dist/{vue-ui-chestnut-DLlFv6Uj.js → vue-ui-chestnut-D5um0tmC.js} +452 -452
  36. package/dist/{vue-ui-chord-BXlv5Z2x.js → vue-ui-chord-CgrXXOgv.js} +17 -17
  37. package/dist/{vue-ui-circle-pack-DdRcdWmx.js → vue-ui-circle-pack-Jk-Yd8T_.js} +116 -116
  38. package/dist/{vue-ui-cursor-Djtg6Ppw.js → vue-ui-cursor-BjmAMjTd.js} +2 -2
  39. package/dist/{vue-ui-dashboard-C4MDDCl6.js → vue-ui-dashboard-CQ0B1DMq.js} +62 -62
  40. package/dist/{vue-ui-digits-8Ox6q1Ov.js → vue-ui-digits-B3h4BufU.js} +2 -2
  41. package/dist/{vue-ui-donut-Hk4EaVhb.js → vue-ui-donut-DcjJqRof.js} +149 -149
  42. package/dist/{vue-ui-donut-evolution-DzgYokPU.js → vue-ui-donut-evolution-DmSbXlMu.js} +109 -109
  43. package/dist/{vue-ui-dumbbell-CAC44_Hu.js → vue-ui-dumbbell-BLcmTUd_.js} +65 -65
  44. package/dist/{vue-ui-flow-CYWiZjrP.js → vue-ui-flow-BmIGl6DC.js} +12 -12
  45. package/dist/{vue-ui-funnel-C2eqxh_8.js → vue-ui-funnel-BJfxaSQC.js} +65 -65
  46. package/dist/{vue-ui-galaxy-BBfg84E4.js → vue-ui-galaxy-Cpnr2YW-.js} +82 -82
  47. package/dist/{vue-ui-gauge-BJgJgef_.js → vue-ui-gauge-BhPFNziU.js} +5 -5
  48. package/dist/{vue-ui-gizmo-DBclpybR.js → vue-ui-gizmo-B2wA-kmz.js} +3 -3
  49. package/dist/{vue-ui-heatmap-D65wOgqe.js → vue-ui-heatmap-CpwNMx3i.js} +221 -221
  50. package/dist/{vue-ui-history-plot-CHhDy7Da.js → vue-ui-history-plot-DpxHqDZw.js} +232 -232
  51. package/dist/{vue-ui-kpi-uT6fsAaO.js → vue-ui-kpi-CvqXwiiE.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-CKVlBiYB.js → vue-ui-mini-loader-DIjSfc7L.js} +2 -2
  53. package/dist/{vue-ui-molecule-BwtHZtGN.js → vue-ui-molecule-3-vg0Re6.js} +30 -30
  54. package/dist/{vue-ui-mood-radar-Vf4_-R-m.js → vue-ui-mood-radar-B7W7wGkW.js} +75 -75
  55. package/dist/{vue-ui-nested-donuts-BVkSns4S.js → vue-ui-nested-donuts-ByoeDL-3.js} +16 -16
  56. package/dist/{vue-ui-onion-UzMmwtvF.js → vue-ui-onion-CNVwf4QX.js} +70 -70
  57. package/dist/{vue-ui-parallel-coordinate-plot-Dk5T3ZAr.js → vue-ui-parallel-coordinate-plot-C0KJrBX8.js} +11 -11
  58. package/dist/{vue-ui-quadrant-Ck7xALez.js → vue-ui-quadrant-C-wPn5l5.js} +11 -11
  59. package/dist/{vue-ui-quick-chart-B62Pa0nG.js → vue-ui-quick-chart-SV-m_FhA.js} +5 -5
  60. package/dist/{vue-ui-radar-DMfv2hSb.js → vue-ui-radar-DqOzvLUy.js} +283 -282
  61. package/dist/{vue-ui-rating-CFYHJrxj.js → vue-ui-rating-CsZXcINB.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-RWlfC5BI.js → vue-ui-relation-circle-B0zxq02O.js} +5 -5
  63. package/dist/{vue-ui-ridgeline-Bh93VzcO.js → vue-ui-ridgeline-CykFyAin.js} +100 -100
  64. package/dist/{vue-ui-rings-CyX30Ccv.js → vue-ui-rings-DoJwXgd3.js} +96 -96
  65. package/dist/{vue-ui-scatter-BEDnWByj.js → vue-ui-scatter-BTT3BYrI.js} +164 -164
  66. package/dist/{vue-ui-skeleton-C6PWt_m5.js → vue-ui-skeleton-CavMQlAm.js} +3 -3
  67. package/dist/{vue-ui-smiley-79itAe84.js → vue-ui-smiley-DdT6TBz8.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-AaA4KuaH.js → vue-ui-spark-trend-D9q63V2-.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-CYBZeaor.js → vue-ui-sparkbar-DCS_f__b.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-ElGarXVS.js → vue-ui-sparkgauge-CGDjBHjo.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-C_LV99i1.js → vue-ui-sparkhistogram-Ctpm0106.js} +4 -4
  72. package/dist/{vue-ui-sparkline-DwzCA8d6.js → vue-ui-sparkline-BVyjNK_A.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-CobB11uw.js → vue-ui-sparkstackbar-BsNDucJO.js} +3 -3
  74. package/dist/{vue-ui-stackbar-B4SxM5Ix.js → vue-ui-stackbar-DuGcJQ6F.js} +37 -37
  75. package/dist/{vue-ui-strip-plot-9VK_Y3SC.js → vue-ui-strip-plot-C6vbloAI.js} +80 -80
  76. package/dist/{vue-ui-table-DFTE1OH5.js → vue-ui-table-Bb6pNaIM.js} +3 -3
  77. package/dist/{vue-ui-table-heatmap-DvyJx0j7.js → vue-ui-table-heatmap-_ypWL_z2.js} +57 -57
  78. package/dist/{vue-ui-table-sparkline-SGsBnQTK.js → vue-ui-table-sparkline-_pPedR_D.js} +72 -72
  79. package/dist/{vue-ui-thermometer-DEMS6HXl.js → vue-ui-thermometer-CmLnTIU7.js} +5 -5
  80. package/dist/{vue-ui-timer-CQ71yJ_N.js → vue-ui-timer-CpAJT80M.js} +5 -5
  81. package/dist/{vue-ui-tiremarks-CsN_QtUK.js → vue-ui-tiremarks-DXgmJClr.js} +5 -5
  82. package/dist/{vue-ui-treemap-B0CPNusH.js → vue-ui-treemap-Ci2Yi9Gh.js} +297 -297
  83. package/dist/{vue-ui-vertical-bar-Cxv-ahMT.js → vue-ui-vertical-bar-pn_EqFmU.js} +81 -81
  84. package/dist/{vue-ui-waffle-TgNNo9UX.js → vue-ui-waffle-vqh1kEDT.js} +50 -50
  85. package/dist/{vue-ui-wheel-Bq0ZLc-R.js → vue-ui-wheel-BCcK6wwZ.js} +5 -5
  86. package/dist/{vue-ui-word-cloud-D28awCaT.js → vue-ui-word-cloud-Bu8Giu0b.js} +67 -67
  87. package/dist/{vue-ui-world-BhUsfhY5.js → vue-ui-world-CzRlg19V.js} +55 -55
  88. package/dist/{vue-ui-xy-CEFkua9H.js → vue-ui-xy-0gHPOOwZ.js} +201 -182
  89. package/dist/{vue-ui-xy-canvas-oHhzL0ui.js → vue-ui-xy-canvas-DuAgXbBB.js} +80 -80
  90. package/package.json +1 -1
  91. package/dist/dom-to-png-C0Ct8ClX.js +0 -243
  92. package/dist/img-P0SFFw37.js +0 -19
@@ -1,12 +1,12 @@
1
- import { defineAsyncComponent as z, computed as g, ref as r, watch as Te, shallowRef as Ie, onMounted as ut, onBeforeUnmount as it, nextTick as E, createElementBlock as u, openBlock as s, unref as n, normalizeStyle as le, normalizeClass as Fe, createBlock as S, createCommentVNode as y, createElementVNode as v, createVNode as Re, createSlots as nt, withCtx as m, renderSlot as p, normalizeProps as N, guardReactiveProps as A, Fragment as L, renderList as O, toDisplayString as B, createTextVNode as rt } from "vue";
2
- import { u as vt, c as dt, a as yt, C as Le, o as ct, e as T, D as ht, v as U, X as pt, w as Y, E as ft, s as gt, F as Oe, q as mt, r as bt, x as xt, y as kt } from "./index-CH_mJIWj.js";
1
+ import { defineAsyncComponent as S, computed as g, ref as r, watch as Te, shallowRef as Ie, onMounted as ut, onBeforeUnmount as it, nextTick as B, createElementBlock as u, openBlock as s, unref as n, normalizeStyle as le, normalizeClass as Fe, createBlock as N, createCommentVNode as y, createElementVNode as v, createVNode as Re, createSlots as nt, withCtx as m, renderSlot as p, normalizeProps as A, guardReactiveProps as T, Fragment as O, renderList as V, toDisplayString as U, createTextVNode as rt } from "vue";
2
+ import { u as vt, c as dt, a as yt, C as Le, o as ct, e as I, D as ht, v as D, X as pt, w as Y, E as ft, s as gt, F as Oe, q as mt, r as bt, x as xt, y as kt } from "./index-BzQ0j5xI.js";
3
3
  import { t as wt, u as $t } from "./useResponsive-JZ9xq-JV.js";
4
- import { u as Ve } from "./useNestedProp-rMR-JeOJ.js";
5
- import { u as Ct } from "./usePrinter-DJ7WfWUs.js";
4
+ import { u as Ve } from "./useNestedProp-DqpZEE3h.js";
5
+ import { u as Ct } from "./usePrinter-CpG5jh_z.js";
6
6
  import { u as _t } from "./useUserOptionState-BIvW1Kz7.js";
7
7
  import { u as zt } from "./useChartAccessibility-9icAAmYg.js";
8
- import St from "./Title-apr_T9tg.js";
9
- import { S as Nt } from "./Slicer-o6jJH5bw.js";
8
+ import St from "./Title-CJcZXNtK.js";
9
+ import { S as Nt } from "./Slicer-CaMHCF_p.js";
10
10
  import { _ as At } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
11
  const Tt = ["id"], It = ["xmlns", "viewBox"], Ft = ["x", "y", "width", "height"], Rt = { key: 1 }, Lt = ["id"], Ot = ["stop-color"], Vt = ["stop-color"], Pt = ["stop-color"], Mt = ["id"], Et = ["stop-color"], Bt = ["stop-color"], Ut = ["stop-color"], Dt = { key: 0 }, Wt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Gt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ht = { key: 1 }, jt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Xt = ["x", "y", "font-size", "fill", "font-weight"], Yt = { key: 2 }, qt = ["transform", "text-anchor", "font-size", "fill", "font-weight"], Jt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Kt = { key: 0 }, Qt = ["cx", "cy", "r", "fill"], Zt = ["cx", "cy", "r", "fill"], el = { key: 1 }, tl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ll = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ol = ["x", "y", "height", "width", "fill", "rx"], al = ["x", "y", "height", "width", "fill", "rx", "stroke", "stroke-width"], sl = ["x", "y", "height", "width", "fill", "onMouseover"], ul = {
12
12
  key: 5,
@@ -27,8 +27,8 @@ const Tt = ["id"], It = ["xmlns", "viewBox"], Ft = ["x", "y", "width", "height"]
27
27
  }
28
28
  }
29
29
  },
30
- setup(C, { expose: Pe }) {
31
- const Me = z(() => import("./vue-ui-accordion-Ds4zkPIx.js")), Ee = z(() => import("./DataTable-BBqbcutV.js")), Be = z(() => import("./PackageVersion-ClpqQxYT.js")), Ue = z(() => import("./PenAndPaper-B-T7XvxF.js")), De = z(() => import("./vue-ui-skeleton-C6PWt_m5.js")), We = z(() => import("./Tooltip-BuHsMAfp.js")), Ge = z(() => import("./UserOptions-OVNxxnq5.js")), { vue_ui_candlestick: He } = vt(), h = C, V = g(() => !!h.dataset && h.dataset.length), k = r(dt()), je = r(null), q = r(!1), J = r(""), K = r(void 0), oe = r(0), P = r(null), ae = r(null), se = r(null), ue = r(null), ie = r(null), ne = r(null), D = r(0), re = r(0), ve = r(0), e = g({
30
+ setup(_, { expose: Pe }) {
31
+ const Me = S(() => import("./vue-ui-accordion-bpaEpjqI.js")), Ee = S(() => import("./DataTable-CmbjnjRg.js")), Be = S(() => import("./PackageVersion-OcbP0WH2.js")), Ue = S(() => import("./PenAndPaper-BgPXmpGI.js")), De = S(() => import("./vue-ui-skeleton-CavMQlAm.js")), We = S(() => import("./Tooltip-dXp8FaUj.js")), Ge = S(() => import("./UserOptions-Cs7JW3dK.js")), { vue_ui_candlestick: He } = vt(), h = _, P = g(() => !!h.dataset && h.dataset.length), x = r(dt()), je = r(null), q = r(!1), J = r(""), K = r(void 0), oe = r(0), M = r(null), ae = r(null), se = r(null), ue = r(null), ie = r(null), ne = r(null), W = r(0), re = r(0), ve = r(0), e = g({
32
32
  get: () => he(),
33
33
  set: (t) => t
34
34
  }), { userOptionsVisible: Q, setUserOptionsVisibility: de, keepUserOptionState: ye } = _t({ config: e.value }), { svgRef: ce } = zt({ config: e.value.style.title });
@@ -46,27 +46,27 @@ const Tt = ["id"], It = ["xmlns", "viewBox"], Ft = ["x", "y", "width", "height"]
46
46
  } : o = t, h.config && Le(h.config, "style.zoom.startIndex") ? o.style.zoom.startIndex = h.config.style.zoom.startIndex : o.style.zoom.startIndex = null, h.config && Le(h.config, "style.zoom.endIndex") ? o.style.zoom.endIndex = h.config.style.zoom.endIndex : o.style.zoom.endIndex = null, o;
47
47
  }
48
48
  Te(() => h.config, (t) => {
49
- e.value = he(), Q.value = !e.value.userOptions.showOnChartHover, pe(), D.value += 1, ve.value += 1, re.value += 1, w.value.showTable = e.value.table.show, w.value.showTooltip = e.value.style.tooltip.show;
49
+ e.value = he(), Q.value = !e.value.userOptions.showOnChartHover, pe(), W.value += 1, ve.value += 1, re.value += 1, w.value.showTable = e.value.table.show, w.value.showTooltip = e.value.style.tooltip.show;
50
50
  }, { deep: !0 }), Te(() => h.dataset, (t) => {
51
- f.value.start = 0, f.value.end = t.length, D.value += 1;
51
+ f.value.start = 0, f.value.end = t.length, W.value += 1;
52
52
  }, { deep: !0 });
53
53
  const c = r({
54
54
  height: e.value.style.height,
55
55
  width: e.value.style.width,
56
56
  xAxisFontSize: e.value.style.layout.grid.xAxis.dataLabels.fontSize,
57
57
  yAxisFontSize: e.value.style.layout.grid.yAxis.dataLabels.fontSize
58
- }), $ = Ie(null), I = Ie(null);
58
+ }), $ = Ie(null), F = Ie(null);
59
59
  ut(() => {
60
60
  pe();
61
61
  });
62
62
  function pe() {
63
- if (ct(h.dataset) && T({
63
+ if (ct(h.dataset) && I({
64
64
  componentName: "VueUiCandlestick",
65
65
  type: "dataset"
66
66
  }), e.value.responsive) {
67
67
  const t = wt(() => {
68
68
  const { width: o, height: l } = $t({
69
- chart: P.value,
69
+ chart: M.value,
70
70
  title: e.value.style.title.text ? ae.value : null,
71
71
  slicer: ue.value,
72
72
  legend: se.value,
@@ -89,15 +89,15 @@ const Tt = ["id"], It = ["xmlns", "viewBox"], Ft = ["x", "y", "width", "height"]
89
89
  }));
90
90
  });
91
91
  });
92
- $.value && (I.value && $.value.unobserve(I.value), $.value.disconnect()), $.value = new ResizeObserver(t), I.value = P.value.parentNode, $.value.observe(I.value);
92
+ $.value && (F.value && $.value.unobserve(F.value), $.value.disconnect()), $.value = new ResizeObserver(t), F.value = M.value.parentNode, $.value.observe(F.value);
93
93
  }
94
94
  we();
95
95
  }
96
96
  it(() => {
97
- $.value && (I.value && $.value.unobserve(I.value), $.value.disconnect());
97
+ $.value && (F.value && $.value.unobserve(F.value), $.value.disconnect());
98
98
  });
99
99
  const { isPrinting: fe, isImaging: ge, generatePdf: me, generateImage: be } = Ct({
100
- elementId: `vue-ui-candlestick_${k.value}`,
100
+ elementId: `vue-ui-candlestick_${x.value}`,
101
101
  fileName: e.value.style.title.text || "vue-ui-candlestick",
102
102
  options: e.value.userOptions.print
103
103
  }), Xe = g(() => e.value.userOptions.show && !e.value.style.title.text), w = r({
@@ -113,36 +113,36 @@ const Tt = ["id"], It = ["xmlns", "viewBox"], Ft = ["x", "y", "width", "height"]
113
113
  width: c.value.width - a - o,
114
114
  height: c.value.height - t - l
115
115
  };
116
- }), M = g(() => h.dataset.length), f = r({
116
+ }), E = g(() => h.dataset.length), f = r({
117
117
  start: 0,
118
- end: M.value
118
+ end: E.value
119
119
  }), xe = g(() => h.dataset.slice(f.value.start, f.value.end)), Z = g(() => (h.dataset.forEach((t, o) => {
120
- [null, void 0].includes(t[0]) && T({
120
+ [null, void 0].includes(t[0]) && I({
121
121
  componentName: "VueUiCandlestick",
122
122
  type: "datasetAttribute",
123
123
  property: "period (index 0)",
124
124
  index: o
125
- }), [null, void 0].includes(t[1]) && T({
125
+ }), [null, void 0].includes(t[1]) && I({
126
126
  componentName: "VueUiCandlestick",
127
127
  type: "datasetAttribute",
128
128
  property: "open (index 1)",
129
129
  index: o
130
- }), [null, void 0].includes(t[2]) && T({
130
+ }), [null, void 0].includes(t[2]) && I({
131
131
  componentName: "VueUiCandlestick",
132
132
  type: "datasetAttribute",
133
133
  property: "high (index 2)",
134
134
  index: o
135
- }), [null, void 0].includes(t[3]) && T({
135
+ }), [null, void 0].includes(t[3]) && I({
136
136
  componentName: "VueUiCandlestick",
137
137
  type: "datasetAttribute",
138
138
  property: "low (index 3)",
139
139
  index: o
140
- }), [null, void 0].includes(t[4]) && T({
140
+ }), [null, void 0].includes(t[4]) && I({
141
141
  componentName: "VueUiCandlestick",
142
142
  type: "datasetAttribute",
143
143
  property: "last (index 4)",
144
144
  index: o
145
- }), [null, void 0].includes(t[5]) && T({
145
+ }), [null, void 0].includes(t[5]) && I({
146
146
  componentName: "VueUiCandlestick",
147
147
  type: "datasetAttribute",
148
148
  property: "volume (index 5)",
@@ -158,33 +158,33 @@ const Tt = ["id"], It = ["xmlns", "viewBox"], Ft = ["x", "y", "width", "height"]
158
158
  })))), d = g(() => i.value.width / xe.value.length), ke = g(() => ({
159
159
  max: Math.max(...Z.value.map((t) => t.high)),
160
160
  min: 0
161
- })), _ = g(() => ht(ke.value.min, ke.value.max, e.value.style.layout.grid.yAxis.dataLabels.steps));
162
- function W(t, o) {
161
+ })), z = g(() => ht(ke.value.min, ke.value.max, e.value.style.layout.grid.yAxis.dataLabels.steps));
162
+ function G(t, o) {
163
163
  return {
164
164
  ...t,
165
- x: U(i.value.left + o * d.value + d.value / 2),
166
- y: U(i.value.top + (1 - t / _.value.max) * i.value.height),
167
- value: U(t)
165
+ x: D(i.value.left + o * d.value + d.value / 2),
166
+ y: D(i.value.top + (1 - t / z.value.max) * i.value.height),
167
+ value: D(t)
168
168
  };
169
169
  }
170
170
  const b = g(() => Z.value.map((t, o) => {
171
- const l = W(t.open, o), a = W(t.high, o), x = W(t.low, o), j = W(t.last, o), X = t.last > t.open;
171
+ const l = G(t.open, o), a = G(t.high, o), C = G(t.low, o), k = G(t.last, o), X = t.last > t.open;
172
172
  return {
173
173
  period: t.period,
174
174
  open: l,
175
175
  high: a,
176
- low: x,
177
- last: j,
176
+ low: C,
177
+ last: k,
178
178
  volume: t.volume,
179
179
  isBullish: X
180
180
  };
181
181
  }));
182
182
  function Ye(t) {
183
- return U(t / _.value.max);
183
+ return D(t / z.value.max);
184
184
  }
185
- const qe = g(() => _.value.ticks.map((t) => ({
185
+ const qe = g(() => z.value.ticks.map((t) => ({
186
186
  y: i.value.bottom - i.value.height * Ye(t),
187
- value: U(t)
187
+ value: D(t)
188
188
  }))), Je = g(() => Z.value.map((t) => t.period)), ee = r(null);
189
189
  function Ke(t, o) {
190
190
  K.value = t, ee.value = {
@@ -208,42 +208,42 @@ const Tt = ["id"], It = ["xmlns", "viewBox"], Ft = ["x", "y", "width", "height"]
208
208
  });
209
209
  else if (e.value.style.tooltip.show) {
210
210
  let a = "";
211
- const { period: x, open: j, high: X, low: ze, last: Se, volume: Ne, isBullish: Ae } = b.value[t], { period: rl, open: tt, high: lt, low: ot, last: at, volume: st } = e.value.translations;
211
+ const { period: C, open: k, high: X, low: ze, last: Se, volume: Ne, isBullish: Ae } = b.value[t], { period: rl, open: tt, high: lt, low: ot, last: at, volume: st } = e.value.translations;
212
212
  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}"
213
- fill="${e.value.style.layout.candle.gradient.show ? Ae ? `url(#bullish_gradient_${k.value})` : `url(#bearish_gradient_${k.value})` : Ae ? e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.colors.bearish}"/></svg>${x}</div>`, a += `${st} : <b>${isNaN(Ne) ? "-" : Number(Ne.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}">`, a += `<div>${tt}: <b>${e.value.style.tooltip.prefix} ${isNaN(j.value) ? "-" : Number(j.value.toFixed(e.value.style.tooltip.roundingValue)).toLocaleString()} ${e.value.style.tooltip.suffix}</b></div>`, a += `<div>${lt}: <b>${e.value.style.tooltip.prefix} ${isNaN(X.value) ? "-" : Number(X.value.toFixed(e.value.style.tooltip.roundingValue)).toLocaleString()} ${e.value.style.tooltip.suffix}</b></div>`, a += `<div>${ot}: <b>${e.value.style.tooltip.prefix} ${isNaN(ze.value) ? "-" : Number(ze.value.toFixed(e.value.style.tooltip.roundingValue)).toLocaleString()} ${e.value.style.tooltip.suffix}</b></div>`, a += `<div>${at}: <b>${e.value.style.tooltip.prefix} ${isNaN(Se.value) ? "-" : Number(Se.value.toFixed(e.value.style.tooltip.roundingValue)).toLocaleString()} ${e.value.style.tooltip.suffix}</b></div>`, a += "</div>", J.value = `<div style="text-align:right">${a}</div>`;
213
+ fill="${e.value.style.layout.candle.gradient.show ? Ae ? `url(#bullish_gradient_${x.value})` : `url(#bearish_gradient_${x.value})` : Ae ? e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.colors.bearish}"/></svg>${C}</div>`, a += `${st} : <b>${isNaN(Ne) ? "-" : Number(Ne.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}">`, a += `<div>${tt}: <b>${e.value.style.tooltip.prefix} ${isNaN(k.value) ? "-" : Number(k.value.toFixed(e.value.style.tooltip.roundingValue)).toLocaleString()} ${e.value.style.tooltip.suffix}</b></div>`, a += `<div>${lt}: <b>${e.value.style.tooltip.prefix} ${isNaN(X.value) ? "-" : Number(X.value.toFixed(e.value.style.tooltip.roundingValue)).toLocaleString()} ${e.value.style.tooltip.suffix}</b></div>`, a += `<div>${ot}: <b>${e.value.style.tooltip.prefix} ${isNaN(ze.value) ? "-" : Number(ze.value.toFixed(e.value.style.tooltip.roundingValue)).toLocaleString()} ${e.value.style.tooltip.suffix}</b></div>`, a += `<div>${at}: <b>${e.value.style.tooltip.prefix} ${isNaN(Se.value) ? "-" : Number(Se.value.toFixed(e.value.style.tooltip.roundingValue)).toLocaleString()} ${e.value.style.tooltip.suffix}</b></div>`, a += "</div>", J.value = `<div style="text-align:right">${a}</div>`;
214
214
  }
215
215
  q.value = !0;
216
216
  }
217
217
  function Qe() {
218
218
  we();
219
219
  }
220
- const F = r(null);
220
+ const R = r(null);
221
221
  async function we() {
222
- (e.value.style.zoom.startIndex !== null || e.value.style.zoom.endIndex !== null) && F.value ? (e.value.style.zoom.startIndex !== null && (await E(), await E(), F.value && F.value.setStartValue(e.value.style.zoom.startIndex)), e.value.style.zoom.endIndex !== null && (await E(), await E(), F.value && F.value.setEndValue(Ze(e.value.style.zoom.endIndex + 1)))) : (f.value = {
222
+ (e.value.style.zoom.startIndex !== null || e.value.style.zoom.endIndex !== null) && R.value ? (e.value.style.zoom.startIndex !== null && (await B(), await B(), R.value && R.value.setStartValue(e.value.style.zoom.startIndex)), e.value.style.zoom.endIndex !== null && (await B(), await B(), R.value && R.value.setEndValue(Ze(e.value.style.zoom.endIndex + 1)))) : (f.value = {
223
223
  start: 0,
224
- end: M.value
225
- }, D.value += 1);
224
+ end: E.value
225
+ }, W.value += 1);
226
226
  }
227
227
  function Ze(t) {
228
- const o = M.value;
228
+ const o = E.value;
229
229
  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;
230
230
  }
231
- function $e() {
232
- E(() => {
233
- const t = [e.value.translations.period, e.value.translations.open, e.value.translations.high, e.value.translations.low, e.value.translations.last, e.value.translations.volume], o = b.value.map((x) => [
234
- x.period,
235
- x.open.value,
236
- x.high.value,
237
- x.low.value,
238
- x.last.value,
239
- x.volume
240
- ]), l = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([t]).concat(o), a = mt(l);
241
- bt({ csvContent: a, title: e.value.style.title.text || "vue-ui-candlestick" });
231
+ function $e(t = null) {
232
+ B(() => {
233
+ 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 = b.value.map((k) => [
234
+ k.period,
235
+ k.open.value,
236
+ k.high.value,
237
+ k.low.value,
238
+ k.last.value,
239
+ k.volume
240
+ ]), a = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([o]).concat(l), C = mt(a);
241
+ t ? t(C) : bt({ csvContent: C, title: e.value.style.title.text || "vue-ui-candlestick" });
242
242
  });
243
243
  }
244
- const G = g(() => {
244
+ const H = g(() => {
245
245
  const t = b.value.map((a) => [
246
- `<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> ${a.period}`,
246
+ `<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_${x.value}` : `url(#bearish_gradient_${x.value})` : a.isBullish ? e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.colors.bearish}"/></svg> ${a.period}`,
247
247
  `${e.value.table.td.prefix} ${isNaN(a.open.value) ? "-" : Number(a.open.value.toFixed(e.value.table.td.roundingValue)).toLocaleString()} ${e.value.table.td.suffix}`,
248
248
  `${e.value.table.td.prefix} ${isNaN(a.high.value) ? "-" : Number(a.high.value.toFixed(e.value.table.td.roundingValue)).toLocaleString()} ${e.value.table.td.suffix}`,
249
249
  `${e.value.table.td.prefix} ${isNaN(a.low.value) ? "-" : Number(a.low.value.toFixed(e.value.table.td.roundingValue)).toLocaleString()} ${e.value.table.td.suffix}`,
@@ -270,9 +270,9 @@ const Tt = ["id"], It = ["xmlns", "viewBox"], Ft = ["x", "y", "width", "height"]
270
270
  e.value.translations.volume
271
271
  ];
272
272
  return { head: l, body: t, config: o, colNames: l };
273
- }), R = r(!1);
273
+ }), L = r(!1);
274
274
  function et(t) {
275
- R.value = t, oe.value += 1;
275
+ L.value = t, oe.value += 1;
276
276
  }
277
277
  function Ce() {
278
278
  w.value.showTable = !w.value.showTable;
@@ -280,9 +280,9 @@ const Tt = ["id"], It = ["xmlns", "viewBox"], Ft = ["x", "y", "width", "height"]
280
280
  function _e() {
281
281
  w.value.showTooltip = !w.value.showTooltip;
282
282
  }
283
- const H = r(!1);
283
+ const j = r(!1);
284
284
  function te() {
285
- H.value = !H.value;
285
+ j.value = !j.value;
286
286
  }
287
287
  return Pe({
288
288
  generatePdf: me,
@@ -293,19 +293,19 @@ const Tt = ["id"], It = ["xmlns", "viewBox"], Ft = ["x", "y", "width", "height"]
293
293
  toggleAnnotator: te
294
294
  }), (t, o) => (s(), u("div", {
295
295
  ref_key: "candlestickChart",
296
- ref: P,
297
- class: Fe(`vue-ui-candlestick ${R.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
296
+ ref: M,
297
+ class: Fe(`vue-ui-candlestick ${L.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
298
298
  style: le(`position:relative;font-family:${e.value.style.fontFamily}; text-align:center;background:${e.value.style.backgroundColor}; ${e.value.responsive ? "height: 100%" : ""}`),
299
- id: `vue-ui-candlestick_${k.value}`,
299
+ id: `vue-ui-candlestick_${x.value}`,
300
300
  onMouseenter: o[4] || (o[4] = () => n(de)(!0)),
301
301
  onMouseleave: o[5] || (o[5] = () => n(de)(!1))
302
302
  }, [
303
- e.value.userOptions.buttons.annotator ? (s(), S(n(Ue), {
303
+ e.value.userOptions.buttons.annotator ? (s(), N(n(Ue), {
304
304
  key: 0,
305
305
  svgRef: n(ce),
306
306
  backgroundColor: e.value.style.backgroundColor,
307
307
  color: e.value.style.color,
308
- active: H.value,
308
+ active: j.value,
309
309
  onClose: te
310
310
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : y("", !0),
311
311
  Xe.value ? (s(), u("div", {
@@ -321,7 +321,7 @@ const Tt = ["id"], It = ["xmlns", "viewBox"], Ft = ["x", "y", "width", "height"]
321
321
  ref: ae,
322
322
  style: "width:100%;background:transparent"
323
323
  }, [
324
- (s(), S(St, {
324
+ (s(), N(St, {
325
325
  key: `title_${ve.value}`,
326
326
  config: {
327
327
  title: {
@@ -335,7 +335,7 @@ const Tt = ["id"], It = ["xmlns", "viewBox"], Ft = ["x", "y", "width", "height"]
335
335
  }
336
336
  }, null, 8, ["config"]))
337
337
  ], 512)) : y("", !0),
338
- e.value.userOptions.show && V.value && (n(ye) || n(Q)) ? (s(), S(n(Ge), {
338
+ e.value.userOptions.show && P.value && (n(ye) || n(Q)) ? (s(), N(n(Ge), {
339
339
  ref_key: "details",
340
340
  ref: je,
341
341
  key: `user_options_${oe.value}`,
@@ -343,20 +343,20 @@ const Tt = ["id"], It = ["xmlns", "viewBox"], Ft = ["x", "y", "width", "height"]
343
343
  color: e.value.style.color,
344
344
  isImaging: n(ge),
345
345
  isPrinting: n(fe),
346
- uid: k.value,
346
+ uid: x.value,
347
347
  hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.tooltip.show,
348
348
  hasPdf: e.value.userOptions.buttons.pdf,
349
349
  hasImg: e.value.userOptions.buttons.img,
350
350
  hasXls: e.value.userOptions.buttons.csv,
351
351
  hasTable: e.value.userOptions.buttons.table,
352
352
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
353
- isFullscreen: R.value,
353
+ isFullscreen: L.value,
354
354
  isTooltip: w.value.showTooltip,
355
355
  titles: { ...e.value.userOptions.buttonTitles },
356
- chartElement: P.value,
356
+ chartElement: M.value,
357
357
  position: e.value.userOptions.position,
358
358
  hasAnnotator: e.value.userOptions.buttons.annotator,
359
- isAnnotation: H.value,
359
+ isAnnotation: j.value,
360
360
  callbacks: e.value.userOptions.callbacks,
361
361
  onToggleFullscreen: et,
362
362
  onGeneratePdf: n(me),
@@ -372,7 +372,7 @@ const Tt = ["id"], It = ["xmlns", "viewBox"], Ft = ["x", "y", "width", "height"]
372
372
  t.$slots.menuIcon ? {
373
373
  name: "menuIcon",
374
374
  fn: m(({ isOpen: l, color: a }) => [
375
- p(t.$slots, "menuIcon", N(A({ isOpen: l, color: a })), void 0, !0)
375
+ p(t.$slots, "menuIcon", A(T({ isOpen: l, color: a })), void 0, !0)
376
376
  ]),
377
377
  key: "0"
378
378
  } : void 0,
@@ -414,24 +414,24 @@ const Tt = ["id"], It = ["xmlns", "viewBox"], Ft = ["x", "y", "width", "height"]
414
414
  t.$slots.optionFullscreen ? {
415
415
  name: "optionFullscreen",
416
416
  fn: m(({ toggleFullscreen: l, isFullscreen: a }) => [
417
- p(t.$slots, "optionFullscreen", N(A({ toggleFullscreen: l, isFullscreen: a })), void 0, !0)
417
+ p(t.$slots, "optionFullscreen", A(T({ toggleFullscreen: l, isFullscreen: a })), void 0, !0)
418
418
  ]),
419
419
  key: "6"
420
420
  } : void 0,
421
421
  t.$slots.optionAnnotator ? {
422
422
  name: "optionAnnotator",
423
423
  fn: m(({ toggleAnnotator: l, isAnnotator: a }) => [
424
- p(t.$slots, "optionAnnotator", N(A({ toggleAnnotator: l, isAnnotator: a })), void 0, !0)
424
+ p(t.$slots, "optionAnnotator", A(T({ toggleAnnotator: l, isAnnotator: a })), void 0, !0)
425
425
  ]),
426
426
  key: "7"
427
427
  } : void 0
428
428
  ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) : y("", !0),
429
- V.value ? (s(), u("svg", {
429
+ P.value ? (s(), u("svg", {
430
430
  key: 4,
431
431
  ref_key: "svgRef",
432
432
  ref: ce,
433
433
  xmlns: n(pt),
434
- class: Fe({ "vue-data-ui-fullscreen--on": R.value, "vue-data-ui-fulscreen--off": !R.value }),
434
+ class: Fe({ "vue-data-ui-fullscreen--on": L.value, "vue-data-ui-fulscreen--off": !L.value }),
435
435
  viewBox: `0 0 ${c.value.width <= 0 ? 10 : c.value.width} ${c.value.height <= 0 ? 10 : c.value.height}`,
436
436
  style: le(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.color}`)
437
437
  }, [
@@ -451,7 +451,7 @@ const Tt = ["id"], It = ["xmlns", "viewBox"], Ft = ["x", "y", "width", "height"]
451
451
  b.value.length > 0 ? (s(), u("g", Rt, [
452
452
  v("defs", null, [
453
453
  v("linearGradient", {
454
- id: `bearish_gradient_${k.value}`,
454
+ id: `bearish_gradient_${x.value}`,
455
455
  x2: "0%",
456
456
  y2: "100%"
457
457
  }, [
@@ -469,7 +469,7 @@ const Tt = ["id"], It = ["xmlns", "viewBox"], Ft = ["x", "y", "width", "height"]
469
469
  }, null, 8, Pt)
470
470
  ], 8, Lt),
471
471
  v("linearGradient", {
472
- id: `bullish_gradient_${k.value}`,
472
+ id: `bullish_gradient_${x.value}`,
473
473
  x2: "0%",
474
474
  y2: "100%"
475
475
  }, [
@@ -508,8 +508,8 @@ const Tt = ["id"], It = ["xmlns", "viewBox"], Ft = ["x", "y", "width", "height"]
508
508
  }, null, 8, Gt)
509
509
  ])) : y("", !0),
510
510
  e.value.style.layout.grid.yAxis.dataLabels.show ? (s(), u("g", Ht, [
511
- (s(!0), u(L, null, O(qe.value, (l, a) => (s(), u("g", null, [
512
- l.value >= _.value.min && l.value <= _.value.max ? (s(), u("line", {
511
+ (s(!0), u(O, null, V(qe.value, (l, a) => (s(), u("g", null, [
512
+ l.value >= z.value.min && l.value <= z.value.max ? (s(), u("line", {
513
513
  key: 0,
514
514
  x1: i.value.left,
515
515
  x2: i.value.left - 5,
@@ -519,7 +519,7 @@ const Tt = ["id"], It = ["xmlns", "viewBox"], Ft = ["x", "y", "width", "height"]
519
519
  "stroke-width": e.value.style.layout.grid.strokeWidth,
520
520
  "stroke-linecap": "round"
521
521
  }, null, 8, jt)) : y("", !0),
522
- l.value >= _.value.min && l.value <= _.value.max ? (s(), u("text", {
522
+ l.value >= z.value.min && l.value <= z.value.max ? (s(), u("text", {
523
523
  key: 1,
524
524
  x: i.value.left - 8 + e.value.style.layout.grid.yAxis.dataLabels.offsetX,
525
525
  y: l.y + c.value.yAxisFontSize / 3,
@@ -527,22 +527,22 @@ const Tt = ["id"], It = ["xmlns", "viewBox"], Ft = ["x", "y", "width", "height"]
527
527
  "text-anchor": "end",
528
528
  fill: e.value.style.layout.grid.yAxis.dataLabels.color,
529
529
  "font-weight": e.value.style.layout.grid.yAxis.dataLabels.bold ? "bold" : "normal"
530
- }, B(e.value.style.layout.grid.yAxis.dataLabels.prefix) + " " + B(n(ft)(l.value) ? l.value.toFixed(e.value.style.layout.grid.yAxis.dataLabels.roundingValue) : "") + " " + B(e.value.style.layout.grid.yAxis.dataLabels.suffix), 9, Xt)) : y("", !0)
530
+ }, U(e.value.style.layout.grid.yAxis.dataLabels.prefix) + " " + U(n(ft)(l.value) ? l.value.toFixed(e.value.style.layout.grid.yAxis.dataLabels.roundingValue) : "") + " " + U(e.value.style.layout.grid.yAxis.dataLabels.suffix), 9, Xt)) : y("", !0)
531
531
  ]))), 256))
532
532
  ])) : y("", !0),
533
533
  e.value.style.layout.grid.xAxis.dataLabels.show ? (s(), u("g", Yt, [
534
- (s(!0), u(L, null, O(Je.value, (l, a) => (s(), u("g", null, [
534
+ (s(!0), u(O, null, V(Je.value, (l, a) => (s(), u("g", null, [
535
535
  v("text", {
536
536
  transform: `translate(${i.value.left + d.value * a + d.value / 2}, ${i.value.bottom + c.value.xAxisFontSize * 2 + e.value.style.layout.grid.xAxis.dataLabels.offsetY}), rotate(${e.value.style.layout.grid.xAxis.dataLabels.rotation})`,
537
537
  "text-anchor": e.value.style.layout.grid.xAxis.dataLabels.rotation > 0 ? "start" : e.value.style.layout.grid.xAxis.dataLabels.rotation < 0 ? "end" : "middle",
538
538
  "font-size": c.value.xAxisFontSize,
539
539
  fill: e.value.style.layout.grid.xAxis.dataLabels.color,
540
540
  "font-weight": e.value.style.layout.grid.xAxis.dataLabels.bold ? "bold" : "normal"
541
- }, B(l), 9, qt)
541
+ }, U(l), 9, qt)
542
542
  ]))), 256))
543
543
  ])) : y("", !0),
544
544
  v("g", null, [
545
- (s(!0), u(L, null, O(b.value, (l, a) => (s(), u("g", null, [
545
+ (s(!0), u(O, null, V(b.value, (l, a) => (s(), u("g", null, [
546
546
  v("line", {
547
547
  x1: l.open.x,
548
548
  x2: l.open.x,
@@ -589,7 +589,7 @@ const Tt = ["id"], It = ["xmlns", "viewBox"], Ft = ["x", "y", "width", "height"]
589
589
  ]))), 256))
590
590
  ]),
591
591
  v("g", null, [
592
- (s(!0), u(L, null, O(b.value, (l, a) => (s(), u("rect", {
592
+ (s(!0), u(O, null, V(b.value, (l, a) => (s(), u("rect", {
593
593
  x: l.open.x - d.value / 2 + d.value * (1 - e.value.style.layout.candle.widthRatio) / 2,
594
594
  y: l.isBullish ? l.last.y : l.open.y,
595
595
  height: Math.abs(l.last.y - l.open.y) <= 0 ? 1e-4 : Math.abs(l.last.y - l.open.y),
@@ -598,12 +598,12 @@ const Tt = ["id"], It = ["xmlns", "viewBox"], Ft = ["x", "y", "width", "height"]
598
598
  rx: e.value.style.layout.candle.borderRadius,
599
599
  stroke: "none"
600
600
  }, null, 8, ol))), 256)),
601
- (s(!0), u(L, null, O(b.value, (l, a) => (s(), u("rect", {
601
+ (s(!0), u(O, null, V(b.value, (l, a) => (s(), u("rect", {
602
602
  x: l.open.x - d.value / 2 + d.value * (1 - e.value.style.layout.candle.widthRatio) / 2,
603
603
  y: l.isBullish ? l.last.y : l.open.y,
604
604
  height: Math.abs(l.last.y - l.open.y) <= 0 ? 1e-4 : Math.abs(l.last.y - l.open.y),
605
605
  width: d.value * e.value.style.layout.candle.widthRatio <= 0 ? 1e-4 : d.value * e.value.style.layout.candle.widthRatio,
606
- fill: l.isBullish ? e.value.style.layout.candle.gradient.show ? `url(#bullish_gradient_${k.value})` : e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.gradient.show ? `url(#bearish_gradient_${k.value})` : e.value.style.layout.candle.colors.bearish,
606
+ fill: l.isBullish ? e.value.style.layout.candle.gradient.show ? `url(#bullish_gradient_${x.value})` : e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.gradient.show ? `url(#bearish_gradient_${x.value})` : e.value.style.layout.candle.colors.bearish,
607
607
  rx: e.value.style.layout.candle.borderRadius,
608
608
  stroke: e.value.style.layout.candle.stroke,
609
609
  "stroke-width": e.value.style.layout.candle.strokeWidth,
@@ -612,14 +612,14 @@ const Tt = ["id"], It = ["xmlns", "viewBox"], Ft = ["x", "y", "width", "height"]
612
612
  }, null, 8, al))), 256))
613
613
  ]),
614
614
  v("g", null, [
615
- (s(!0), u(L, null, O(b.value, (l, a) => (s(), u("rect", {
615
+ (s(!0), u(O, null, V(b.value, (l, a) => (s(), u("rect", {
616
616
  x: i.value.left + a * d.value,
617
617
  y: i.value.top,
618
618
  height: i.value.height <= 0 ? 1e-4 : i.value.height,
619
619
  width: d.value <= 0 ? 1e-4 : d.value,
620
620
  fill: K.value === a ? n(gt)(e.value.style.layout.selector.color, e.value.style.layout.selector.opacity) : "transparent",
621
- onMouseover: (x) => Ke(a, l),
622
- onMouseleave: o[0] || (o[0] = (x) => {
621
+ onMouseover: (C) => Ke(a, l),
622
+ onMouseleave: o[0] || (o[0] = (C) => {
623
623
  K.value = void 0, q.value = !1;
624
624
  })
625
625
  }, null, 40, sl))), 256))
@@ -628,9 +628,9 @@ const Tt = ["id"], It = ["xmlns", "viewBox"], Ft = ["x", "y", "width", "height"]
628
628
  p(t.$slots, "svg", { svg: c.value }, void 0, !0)
629
629
  ], 14, It)) : y("", !0),
630
630
  t.$slots.watermark ? (s(), u("div", ul, [
631
- p(t.$slots, "watermark", N(A({ isPrinting: n(fe) || n(ge) })), void 0, !0)
631
+ p(t.$slots, "watermark", A(T({ isPrinting: n(fe) || n(ge) })), void 0, !0)
632
632
  ])) : y("", !0),
633
- V.value ? y("", !0) : (s(), S(n(De), {
633
+ P.value ? y("", !0) : (s(), N(n(De), {
634
634
  key: 6,
635
635
  config: {
636
636
  type: "candlesticks",
@@ -647,25 +647,25 @@ const Tt = ["id"], It = ["xmlns", "viewBox"], Ft = ["x", "y", "width", "height"]
647
647
  }
648
648
  }
649
649
  }, null, 8, ["config"])),
650
- e.value.style.zoom.show && V.value ? (s(), u("div", {
650
+ e.value.style.zoom.show && P.value ? (s(), u("div", {
651
651
  key: 7,
652
652
  ref_key: "chartSlicer",
653
653
  ref: ue
654
654
  }, [
655
- (s(), S(Nt, {
655
+ (s(), N(Nt, {
656
656
  ref_key: "slicerComponent",
657
- ref: F,
658
- key: `slicer_${D.value}`,
657
+ ref: R,
658
+ key: `slicer_${W.value}`,
659
659
  background: e.value.style.zoom.color,
660
660
  borderColor: e.value.style.backgroundColor,
661
661
  fontSize: e.value.style.zoom.fontSize,
662
662
  useResetSlot: e.value.style.zoom.useResetSlot,
663
- labelLeft: C.dataset[f.value.start] ? C.dataset[f.value.start][0] : C.dataset[0][0],
664
- labelRight: C.dataset[f.value.end - 1] ? C.dataset[f.value.end - 1][0] : C.dataset.at(-1)[0],
663
+ labelLeft: _.dataset[f.value.start] ? _.dataset[f.value.start][0] : _.dataset[0][0],
664
+ labelRight: _.dataset[f.value.end - 1] ? _.dataset[f.value.end - 1][0] : _.dataset.at(-1)[0],
665
665
  textColor: e.value.style.color,
666
666
  inputColor: e.value.style.zoom.color,
667
667
  selectColor: e.value.style.zoom.highlightColor,
668
- max: M.value,
668
+ max: E.value,
669
669
  min: 0,
670
670
  valueStart: f.value.start,
671
671
  valueEnd: f.value.end,
@@ -674,13 +674,13 @@ const Tt = ["id"], It = ["xmlns", "viewBox"], Ft = ["x", "y", "width", "height"]
674
674
  end: f.value.end,
675
675
  "onUpdate:end": o[2] || (o[2] = (l) => f.value.end = l),
676
676
  refreshStartPoint: e.value.style.zoom.startIndex !== null ? e.value.style.zoom.startIndex : 0,
677
- refreshEndPoint: e.value.style.zoom.endIndex !== null ? e.value.style.zoom.endIndex + 1 : M.value,
677
+ refreshEndPoint: e.value.style.zoom.endIndex !== null ? e.value.style.zoom.endIndex + 1 : E.value,
678
678
  enableRangeHandles: e.value.style.zoom.enableRangeHandles,
679
679
  enableSelectionDrag: e.value.style.zoom.enableSelectionDrag,
680
680
  onReset: Qe
681
681
  }, {
682
682
  "reset-action": m(({ reset: l }) => [
683
- p(t.$slots, "reset-action", N(A({ reset: l })), void 0, !0)
683
+ p(t.$slots, "reset-action", A(T({ reset: l })), void 0, !0)
684
684
  ]),
685
685
  _: 3
686
686
  }, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"]))
@@ -710,20 +710,20 @@ const Tt = ["id"], It = ["xmlns", "viewBox"], Ft = ["x", "y", "width", "height"]
710
710
  backgroundOpacity: e.value.style.tooltip.backgroundOpacity,
711
711
  position: e.value.style.tooltip.position,
712
712
  offsetY: e.value.style.tooltip.offsetY,
713
- parent: P.value,
713
+ parent: M.value,
714
714
  content: J.value,
715
- isFullscreen: R.value,
715
+ isFullscreen: L.value,
716
716
  isCustom: e.value.style.tooltip.customFormat && typeof e.value.style.tooltip.customFormat == "function"
717
717
  }, {
718
718
  "tooltip-before": m(() => [
719
- p(t.$slots, "tooltip-before", N(A({ ...ee.value })), void 0, !0)
719
+ p(t.$slots, "tooltip-before", A(T({ ...ee.value })), void 0, !0)
720
720
  ]),
721
721
  "tooltip-after": m(() => [
722
- p(t.$slots, "tooltip-after", N(A({ ...ee.value })), void 0, !0)
722
+ p(t.$slots, "tooltip-after", A(T({ ...ee.value })), void 0, !0)
723
723
  ]),
724
724
  _: 3
725
725
  }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
726
- V.value ? (s(), S(n(Me), {
726
+ P.value ? (s(), N(n(Me), {
727
727
  key: 9,
728
728
  hideDetails: "",
729
729
  config: {
@@ -740,17 +740,17 @@ const Tt = ["id"], It = ["xmlns", "viewBox"], Ft = ["x", "y", "width", "height"]
740
740
  }
741
741
  }, {
742
742
  content: m(() => [
743
- (s(), S(n(Ee), {
743
+ (s(), N(n(Ee), {
744
744
  key: `table_${re.value}`,
745
- colNames: G.value.colNames,
746
- head: G.value.head,
747
- body: G.value.body,
748
- config: G.value.config,
745
+ colNames: H.value.colNames,
746
+ head: H.value.head,
747
+ body: H.value.body,
748
+ config: H.value.config,
749
749
  title: `${e.value.style.title.text}${e.value.style.title.subtitle.text ? ` : ${e.value.style.title.subtitle.text}` : ""}`,
750
750
  onClose: o[3] || (o[3] = (l) => w.value.showTable = !1)
751
751
  }, {
752
752
  th: m(({ th: l }) => [
753
- rt(B(l), 1)
753
+ rt(U(l), 1)
754
754
  ]),
755
755
  td: m(({ td: l }) => [
756
756
  v("div", { innerHTML: l }, null, 8, il)
@@ -762,7 +762,7 @@ const Tt = ["id"], It = ["xmlns", "viewBox"], Ft = ["x", "y", "width", "height"]
762
762
  }, 8, ["config"])) : y("", !0)
763
763
  ], 46, Tt));
764
764
  }
765
- }, xl = /* @__PURE__ */ At(nl, [["__scopeId", "data-v-0f076503"]]);
765
+ }, xl = /* @__PURE__ */ At(nl, [["__scopeId", "data-v-2c44bda2"]]);
766
766
  export {
767
767
  xl as default
768
768
  };