vue-data-ui 3.1.13 → 3.1.14

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 (91) hide show
  1. package/dist/{Arrow-CVLA4XvK.js → Arrow-WZD5Q7MT.js} +1 -1
  2. package/dist/{BaseDraggableDialog-R8VpARJu.js → BaseDraggableDialog-D6JUIfZh.js} +2 -2
  3. package/dist/{BaseIcon-CBGEVS_a.js → BaseIcon-D1ZNxIWg.js} +1 -1
  4. package/dist/{ColorPicker-YzV_LGZx.js → ColorPicker-DmdtZ8kI.js} +2 -2
  5. package/dist/{DataTable-DQRJv8EE.js → DataTable--lqbNG5l.js} +2 -2
  6. package/dist/{Legend-CC3LegoH.js → Legend-MaDSn9OK.js} +2 -2
  7. package/dist/{NonSvgPenAndPaper-CmIOGkib.js → NonSvgPenAndPaper-CA67u_Pp.js} +3 -3
  8. package/dist/{PackageVersion-bFI66Iee.js → PackageVersion-xJhXhSaP.js} +1 -1
  9. package/dist/{PenAndPaper-CHT5QaP8.js → PenAndPaper-DxdcXqBY.js} +3 -3
  10. package/dist/{Shape-BWIW_Vmn.js → Shape-BFaMkfAX.js} +1 -1
  11. package/dist/Slicer-DIWhDV-t.js +995 -0
  12. package/dist/{SparkTooltip-BP53cKq5.js → SparkTooltip-DS43PuVk.js} +1 -1
  13. package/dist/{Title-BKsDkvCV.js → Title-DQgfIx5l.js} +1 -1
  14. package/dist/{Tooltip-BA5KTZ2e.js → Tooltip-C_p_lMvo.js} +1 -1
  15. package/dist/{UserOptions-usqWO4wC.js → UserOptions-B42-yIz9.js} +2 -2
  16. package/dist/{dom-to-png-BnO878iN.js → dom-to-png-BTrp8PJO.js} +1 -1
  17. package/dist/{img-CVbbqgGH.js → img-BjyG4mh-.js} +1 -1
  18. package/dist/{index-CdN9MkL7.js → index-papTfJ_6.js} +871 -835
  19. package/dist/{pdf-D8ryJvtA.js → pdf-BS72ras_.js} +1 -1
  20. package/dist/style.css +1 -1
  21. package/dist/types/vue-data-ui.d.cts +4 -0
  22. package/dist/types/vue-data-ui.d.ts +4 -0
  23. package/dist/{useAutoSizeLabelsInsideViewbox-CXgpnPOp.js → useAutoSizeLabelsInsideViewbox-BHUYdgUJ.js} +1 -1
  24. package/dist/{useNestedProp-oNhYagej.js → useNestedProp-CDk_6RLo.js} +1 -1
  25. package/dist/{usePrinter-CLVErK_G.js → usePrinter-Ch3pWBNX.js} +2 -2
  26. package/dist/{vue-data-ui-ESVJfqTI.js → vue-data-ui-C12wsc3q.js} +64 -64
  27. package/dist/vue-data-ui.js +9 -9
  28. package/dist/{vue-ui-3d-bar-BEColjG7.js → vue-ui-3d-bar-8rvAmQ9w.js} +6 -6
  29. package/dist/{vue-ui-accordion-BoGANFKn.js → vue-ui-accordion-xdiCcgkD.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-D4hV5Mm5.js → vue-ui-age-pyramid-0aMTmd6j.js} +6 -6
  31. package/dist/{vue-ui-annotator-Bd14Ihi4.js → vue-ui-annotator-B0DQ7KhG.js} +2 -2
  32. package/dist/{vue-ui-bullet-B3HG400j.js → vue-ui-bullet-CXJAm6o_.js} +7 -7
  33. package/dist/{vue-ui-candlestick-B6l4oAdh.js → vue-ui-candlestick-CkkfsRc7.js} +140 -138
  34. package/dist/{vue-ui-carousel-table-vCbymZEo.js → vue-ui-carousel-table-hfXI-7N2.js} +4 -4
  35. package/dist/{vue-ui-chestnut-BQ6iufUt.js → vue-ui-chestnut-yEobniLd.js} +5 -5
  36. package/dist/{vue-ui-chord-DW8T8npL.js → vue-ui-chord-DP5DevMM.js} +8 -8
  37. package/dist/{vue-ui-circle-pack-DjWtxYMQ.js → vue-ui-circle-pack-OqSseR5n.js} +6 -6
  38. package/dist/{vue-ui-cursor-CtBfAk5K.js → vue-ui-cursor-bpw1WP2w.js} +2 -2
  39. package/dist/{vue-ui-dashboard-CWuz7g2D.js → vue-ui-dashboard-DvQwUx7k.js} +67 -67
  40. package/dist/{vue-ui-digits-D1b_EIv1.js → vue-ui-digits-BkXdgpox.js} +2 -2
  41. package/dist/{vue-ui-donut-BwdvzYGF.js → vue-ui-donut-Hs0G8mTS.js} +8 -8
  42. package/dist/{vue-ui-donut-evolution-DXbshH8-.js → vue-ui-donut-evolution-BMlvv3NW.js} +62 -60
  43. package/dist/{vue-ui-dumbbell-Bt2y7QMw.js → vue-ui-dumbbell-CAAtevo2.js} +7 -7
  44. package/dist/{vue-ui-flow-CiG_qIh_.js → vue-ui-flow-Cp6nyJ_g.js} +7 -7
  45. package/dist/{vue-ui-funnel-BGCE6fqp.js → vue-ui-funnel-BxJZGFzj.js} +6 -6
  46. package/dist/{vue-ui-galaxy-BCEyVfRW.js → vue-ui-galaxy-DJkexvmu.js} +7 -7
  47. package/dist/{vue-ui-gauge-Cfq8G4nD.js → vue-ui-gauge-aj7WqR7t.js} +7 -7
  48. package/dist/{vue-ui-gizmo-CBOoJgxB.js → vue-ui-gizmo-B-141Ptw.js} +3 -3
  49. package/dist/{vue-ui-heatmap-BefuX3hT.js → vue-ui-heatmap-Df20dV1r.js} +7 -7
  50. package/dist/{vue-ui-history-plot-BqLyfnJn.js → vue-ui-history-plot-CEU_HHjq.js} +7 -7
  51. package/dist/{vue-ui-kpi-6IbtwB7F.js → vue-ui-kpi-DRQEaaF2.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-BwbFaE7B.js → vue-ui-mini-loader-C7arwTny.js} +2 -2
  53. package/dist/{vue-ui-molecule-BbhQfFdx.js → vue-ui-molecule-BpEoOoZN.js} +5 -5
  54. package/dist/{vue-ui-mood-radar-B-wVmA-t.js → vue-ui-mood-radar-ChR0RdLl.js} +7 -7
  55. package/dist/{vue-ui-nested-donuts-qKtWmJsI.js → vue-ui-nested-donuts-Zi1Md0Zn.js} +7 -7
  56. package/dist/{vue-ui-onion-BpbpizLk.js → vue-ui-onion-BySii8sQ.js} +8 -8
  57. package/dist/{vue-ui-parallel-coordinate-plot-BFK9LT6V.js → vue-ui-parallel-coordinate-plot-DI3l_Hr-.js} +8 -8
  58. package/dist/{vue-ui-quadrant-D6_0xe-_.js → vue-ui-quadrant-CH35F_ji.js} +8 -8
  59. package/dist/{vue-ui-quick-chart-Du7852v9.js → vue-ui-quick-chart-_ZPY2TZO.js} +115 -113
  60. package/dist/{vue-ui-radar-kEKg-NL7.js → vue-ui-radar-BG__dshw.js} +8 -8
  61. package/dist/{vue-ui-rating-7yatRVbx.js → vue-ui-rating-CMXIMdhU.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-_1W7NdYE.js → vue-ui-relation-circle-D-7J-jsj.js} +7 -7
  63. package/dist/{vue-ui-ridgeline-BSAVhIDE.js → vue-ui-ridgeline-0Ktd1mHW.js} +8 -8
  64. package/dist/{vue-ui-rings-jK9EjGrJ.js → vue-ui-rings-B3N_QB25.js} +8 -8
  65. package/dist/{vue-ui-scatter-BPthb9-8.js → vue-ui-scatter-CRDmwNjZ.js} +8 -8
  66. package/dist/{vue-ui-skeleton-VW0h-sRm.js → vue-ui-skeleton-BtS4XIg8.js} +3 -3
  67. package/dist/{vue-ui-smiley-DLOiHo-v.js → vue-ui-smiley-4qz_VGEk.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-BIYEAoE_.js → vue-ui-spark-trend-Pq6ipWyG.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-BfTF_hnD.js → vue-ui-sparkbar-Cef5aj1x.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-chrEmdPw.js → vue-ui-sparkgauge-Cdh-Piwx.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-Dr0-iYVk.js → vue-ui-sparkhistogram-BI_T4vTR.js} +4 -4
  72. package/dist/{vue-ui-sparkline-B-R7lTuD.js → vue-ui-sparkline-CYpVQcL2.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-CGTlNpJY.js → vue-ui-sparkstackbar-IqBuCTJh.js} +3 -3
  74. package/dist/{vue-ui-stackbar-Dl2ks6xV.js → vue-ui-stackbar-CoIG44vW.js} +54 -52
  75. package/dist/{vue-ui-strip-plot-DyCzm2FQ.js → vue-ui-strip-plot-D9fQMj6R.js} +7 -7
  76. package/dist/{vue-ui-table-CMxWcytp.js → vue-ui-table-DCEiJApz.js} +4 -4
  77. package/dist/{vue-ui-table-heatmap-Cy56aBvN.js → vue-ui-table-heatmap-CYKKMi7A.js} +5 -5
  78. package/dist/{vue-ui-table-sparkline-BYoEkczS.js → vue-ui-table-sparkline-D0LP_ui2.js} +4 -4
  79. package/dist/{vue-ui-thermometer-B7wec2mE.js → vue-ui-thermometer-MVhSS9PQ.js} +7 -7
  80. package/dist/{vue-ui-timer-CE61Pm8_.js → vue-ui-timer-KGe6jikj.js} +5 -5
  81. package/dist/{vue-ui-tiremarks-BKfbwgE0.js → vue-ui-tiremarks-CHXhpJdG.js} +6 -6
  82. package/dist/{vue-ui-treemap-CDgTxZQG.js → vue-ui-treemap-DvvvI1ni.js} +8 -8
  83. package/dist/{vue-ui-vertical-bar-BDU24Fw1.js → vue-ui-vertical-bar-PsS5srE-.js} +9 -9
  84. package/dist/{vue-ui-waffle-hdT1HxNy.js → vue-ui-waffle-iF9cdnEj.js} +8 -8
  85. package/dist/{vue-ui-wheel-CB5VCBnY.js → vue-ui-wheel-CCRY62cS.js} +6 -6
  86. package/dist/{vue-ui-word-cloud-BGmRwhgL.js → vue-ui-word-cloud-CEJH27IL.js} +6 -6
  87. package/dist/{vue-ui-world-Dgo59nPi.js → vue-ui-world-CTGZ4FYd.js} +6 -6
  88. package/dist/{vue-ui-xy-C9oTa60U.js → vue-ui-xy-DXUjSgMN.js} +1602 -1576
  89. package/dist/{vue-ui-xy-canvas--NNe3yOn.js → vue-ui-xy-canvas-GLwDIK5X.js} +132 -130
  90. package/package.json +1 -1
  91. package/dist/Slicer-C7BMIgYA.js +0 -972
@@ -1,18 +1,18 @@
1
- import { defineAsyncComponent as F, computed as p, ref as r, toRefs as Vt, watch as te, shallowRef as Ke, onMounted as Mt, onBeforeUnmount as Qe, watchEffect as Ut, nextTick as we, createElementBlock as i, openBlock as s, unref as u, normalizeStyle as Ae, normalizeClass as T, createBlock as D, createCommentVNode as g, createElementVNode as y, createVNode as Ce, createSlots as Ze, withCtx as b, renderSlot as m, normalizeProps as B, guardReactiveProps as E, Fragment as V, renderList as M, toDisplayString as Y, resolveDynamicComponent as Wt, mergeProps as Ht, createTextVNode as et } from "vue";
2
- import { u as Gt, c as Xt, t as jt, b as Yt, C as le, o as tt, f as U, D as qt, h as q, i as L, X as Jt, x as ae, s as Kt, E as lt, v as Qt, w as Zt, y as el, z as tl } from "./index-CdN9MkL7.js";
1
+ import { defineAsyncComponent as R, computed as g, ref as r, toRefs as Vt, watch as te, shallowRef as Ke, onMounted as Mt, onBeforeUnmount as Qe, watchEffect as Ut, nextTick as we, createElementBlock as i, openBlock as s, unref as u, normalizeStyle as Ae, normalizeClass as T, createBlock as N, createCommentVNode as p, createElementVNode as y, createVNode as Ce, createSlots as Ze, withCtx as b, renderSlot as m, normalizeProps as B, guardReactiveProps as E, Fragment as V, renderList as M, toDisplayString as Y, resolveDynamicComponent as Wt, mergeProps as Ht, createTextVNode as et } from "vue";
2
+ import { u as Gt, c as Xt, t as jt, b as Yt, C as le, o as tt, f as U, D as qt, h as q, i as L, X as Jt, x as ae, s as Kt, E as lt, v as Qt, w as Zt, y as el, z as tl } from "./index-papTfJ_6.js";
3
3
  import { t as at, u as ll } from "./useResponsive-DfdjqQps.js";
4
- import { u as al } from "./usePrinter-CLVErK_G.js";
4
+ import { u as al } from "./usePrinter-Ch3pWBNX.js";
5
5
  import { u as ol, B as sl } from "./BaseScanner-BgWxam9d.js";
6
- import { u as ot } from "./useNestedProp-oNhYagej.js";
6
+ import { u as ot } from "./useNestedProp-CDk_6RLo.js";
7
7
  import { u as ul } from "./useTimeLabels-BGFjWgrv.js";
8
8
  import { u as il } from "./useUserOptionState-BIvW1Kz7.js";
9
9
  import { u as nl } from "./useChartAccessibility-9icAAmYg.js";
10
10
  import { u as rl } from "./useTimeLabelCollider-CIsgDrl9.js";
11
- import vl from "./img-CVbbqgGH.js";
12
- import dl from "./Title-BKsDkvCV.js";
13
- import { S as cl } from "./Slicer-C7BMIgYA.js";
11
+ import vl from "./img-BjyG4mh-.js";
12
+ import dl from "./Title-DQgfIx5l.js";
13
+ import { S as cl } from "./Slicer-DIWhDV-t.js";
14
14
  import { _ as yl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
15
- const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], pl = ["x", "y", "width", "height"], gl = { key: 1 }, bl = ["id"], ml = ["stop-color"], xl = ["stop-color"], kl = ["stop-color"], wl = ["id"], Al = ["stop-color"], Cl = ["stop-color"], _l = ["stop-color"], $l = { key: 0 }, zl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Sl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Tl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ll = ["x", "y", "font-size", "fill", "font-weight"], Il = ["transform", "text-anchor", "font-size", "fill", "font-weight"], Fl = ["transform", "text-anchor", "font-size", "fill", "font-weight"], Rl = ["x", "y", "width", "height", "fill", "rx"], Ol = { key: 0 }, Pl = ["cx", "cy", "r", "fill"], Nl = ["cx", "cy", "r", "fill"], Dl = { key: 1 }, Bl = ["x", "y", "width", "height", "rx", "fill"], El = ["x", "y", "width", "height", "fill", "rx"], Vl = ["x", "y", "height", "width", "fill", "rx"], Ml = ["x", "y", "height", "width", "fill", "rx", "stroke", "stroke-width"], Ul = ["x", "y", "height", "width", "fill", "onMouseover", "onMouseleave", "onClick"], Wl = {
15
+ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "width", "height"], pl = { key: 1 }, bl = ["id"], ml = ["stop-color"], xl = ["stop-color"], kl = ["stop-color"], wl = ["id"], Al = ["stop-color"], Cl = ["stop-color"], _l = ["stop-color"], zl = { key: 0 }, $l = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Sl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Tl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ll = ["x", "y", "font-size", "fill", "font-weight"], Il = ["transform", "text-anchor", "font-size", "fill", "font-weight"], Rl = ["transform", "text-anchor", "font-size", "fill", "font-weight"], Fl = ["x", "y", "width", "height", "fill", "rx"], Ol = { key: 0 }, Dl = ["cx", "cy", "r", "fill"], Pl = ["cx", "cy", "r", "fill"], Nl = { key: 1 }, Bl = ["x", "y", "width", "height", "rx", "fill"], El = ["x", "y", "width", "height", "fill", "rx"], Vl = ["x", "y", "height", "width", "fill", "rx"], Ml = ["x", "y", "height", "width", "fill", "rx", "stroke", "stroke-width"], Ul = ["x", "y", "height", "width", "fill", "onMouseover", "onMouseleave", "onClick"], Wl = {
16
16
  key: 4,
17
17
  class: "vue-data-ui-watermark"
18
18
  }, Hl = ["innerHTML"], Gl = {
@@ -32,13 +32,13 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], pl = ["x", "y", "wid
32
32
  }
33
33
  },
34
34
  setup(st, { expose: ut }) {
35
- const it = F(() => import("./BaseIcon-CBGEVS_a.js")), nt = F(() => import("./Tooltip-BA5KTZ2e.js")), rt = F(() => import("./vue-ui-accordion-BoGANFKn.js")), vt = F(() => import("./DataTable-DQRJv8EE.js")), dt = F(() => import("./PenAndPaper-CHT5QaP8.js")), ct = F(() => import("./UserOptions-usqWO4wC.js")), yt = F(() => import("./PackageVersion-bFI66Iee.js")), ht = F(() => import("./BaseDraggableDialog-R8VpARJu.js")), { vue_ui_candlestick: ft } = Gt(), h = st, oe = p(() => !!h.dataset && h.dataset.length), $ = r(!1), se = r(null), A = r(Xt()), ue = r(!1), ie = r(""), ne = r(void 0), _e = r(0), z = r(null), $e = r(null), ze = r(null), Se = r(null), Te = r(null), Le = r(null), J = r(0), Ie = r(0), Fe = r(0), re = r(null), H = r(null), G = r(null), ve = r(null), e = r(ye()), { loading: S, FINAL_DATASET: C, manualLoading: de } = ol({
35
+ const it = R(() => import("./BaseIcon-D1ZNxIWg.js")), nt = R(() => import("./Tooltip-C_p_lMvo.js")), rt = R(() => import("./vue-ui-accordion-xdiCcgkD.js")), vt = R(() => import("./DataTable--lqbNG5l.js")), dt = R(() => import("./PenAndPaper-DxdcXqBY.js")), ct = R(() => import("./UserOptions-B42-yIz9.js")), yt = R(() => import("./PackageVersion-xJhXhSaP.js")), ht = R(() => import("./BaseDraggableDialog-D6JUIfZh.js")), { vue_ui_candlestick: ft } = Gt(), h = st, oe = g(() => !!h.dataset && h.dataset.length), z = r(!1), se = r(null), A = r(Xt()), ue = r(!1), ie = r(""), ne = r(void 0), _e = r(0), $ = r(null), ze = r(null), $e = r(null), Se = r(null), Te = r(null), Le = r(null), J = r(0), Ie = r(0), Re = r(0), re = r(null), H = r(null), G = r(null), ve = r(null), e = r(ye()), { loading: S, FINAL_DATASET: C, manualLoading: de } = ol({
36
36
  ...Vt(h),
37
37
  FINAL_CONFIG: e,
38
38
  prepareConfig: ye,
39
39
  callback: () => {
40
40
  Promise.resolve().then(async () => {
41
- await ge();
41
+ await pe();
42
42
  });
43
43
  },
44
44
  skeletonDataset: [
@@ -96,7 +96,7 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], pl = ["x", "y", "wid
96
96
  }
97
97
  }
98
98
  })
99
- }), { userOptionsVisible: ce, setUserOptionsVisibility: Re, keepUserOptionState: Oe } = il({ config: e.value }), { svgRef: Pe } = nl({ config: e.value.style.title });
99
+ }), { userOptionsVisible: ce, setUserOptionsVisibility: Fe, keepUserOptionState: Oe } = il({ config: e.value }), { svgRef: De } = nl({ config: e.value.style.title });
100
100
  function ye() {
101
101
  const t = ot({
102
102
  userConfig: h.config,
@@ -111,7 +111,7 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], pl = ["x", "y", "wid
111
111
  } : a = t, h.config && le(h.config, "style.zoom.startIndex") ? a.style.zoom.startIndex = h.config.style.zoom.startIndex : a.style.zoom.startIndex = null, h.config && le(h.config, "style.zoom.endIndex") ? a.style.zoom.endIndex = h.config.style.zoom.endIndex : a.style.zoom.endIndex = null, h.config && le(h.config, "style.layout.grid.yAxis.scale.min") ? a.style.layout.grid.yAxis.scale.min = h.config.style.layout.grid.yAxis.scale.min : a.style.layout.grid.yAxis.scale.min = null, h.config && le(h.config, "style.layout.grid.yAxis.scale.max") ? a.style.layout.grid.yAxis.scale.max = h.config.style.layout.grid.yAxis.scale.max : a.style.layout.grid.yAxis.scale.max = null, a;
112
112
  }
113
113
  te(() => h.config, (t) => {
114
- S.value || (e.value = ye()), ce.value = !e.value.userOptions.showOnChartHover, Ne(), J.value += 1, Fe.value += 1, Ie.value += 1, k.value.showTable = e.value.table.show, k.value.showTooltip = e.value.style.tooltip.show;
114
+ S.value || (e.value = ye()), ce.value = !e.value.userOptions.showOnChartHover, Pe(), J.value += 1, Re.value += 1, Ie.value += 1, k.value.showTable = e.value.table.show, k.value.showTooltip = e.value.style.tooltip.show;
115
115
  }, { deep: !0 }), te(() => h.dataset, (t) => {
116
116
  Array.isArray(t) && t.length > 0 && (de.value = !1), v.value.start = 0, v.value.end = t.length, J.value += 1;
117
117
  }, { deep: !0 });
@@ -122,24 +122,24 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], pl = ["x", "y", "wid
122
122
  yAxisFontSize: e.value.style.layout.grid.yAxis.dataLabels.fontSize
123
123
  }), I = Ke(null), W = Ke(null);
124
124
  Mt(() => {
125
- Ne();
125
+ Pe();
126
126
  });
127
- const R = p(() => !!e.value.debug);
128
- function Ne() {
127
+ const F = g(() => !!e.value.debug);
128
+ function Pe() {
129
129
  if (tt(h.dataset) && (U({
130
130
  componentName: "VueUiCandlestick",
131
131
  type: "dataset",
132
- debug: R.value
132
+ debug: F.value
133
133
  }), de.value = !0), tt(h.dataset) || (de.value = e.value.loading), setTimeout(() => {
134
- $.value = !0;
134
+ z.value = !0;
135
135
  }, 10), e.value.responsive) {
136
136
  const a = at(() => {
137
- $.value = !1;
137
+ z.value = !1;
138
138
  const { width: l, height: o } = ll({
139
- chart: z.value,
140
- title: e.value.style.title.text ? $e.value : null,
139
+ chart: $.value,
140
+ title: e.value.style.title.text ? ze.value : null,
141
141
  slicer: Se.value,
142
- legend: ze.value,
142
+ legend: $e.value,
143
143
  source: Te.value,
144
144
  noTitle: Le.value
145
145
  });
@@ -157,38 +157,38 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], pl = ["x", "y", "wid
157
157
  threshold: 6,
158
158
  fallback: 6
159
159
  })) : (c.value.xAxisFontSize = e.value.style.layout.grid.xAxis.dataLabels.fontSize, c.value.yAxisFontSize = e.value.style.layout.grid.yAxis.dataLabels.fontSize), se.value && clearTimeout(se.value), se.value = setTimeout(() => {
160
- $.value = !0;
160
+ z.value = !0;
161
161
  }, 10);
162
162
  });
163
163
  });
164
- I.value && (W.value && I.value.unobserve(W.value), I.value.disconnect()), I.value = new ResizeObserver(a), W.value = z.value.parentNode, I.value.observe(W.value);
164
+ I.value && (W.value && I.value.unobserve(W.value), I.value.disconnect()), I.value = new ResizeObserver(a), W.value = $.value.parentNode, I.value.observe(W.value);
165
165
  }
166
- ge();
166
+ pe();
167
167
  }
168
168
  Qe(() => {
169
169
  I.value && (W.value && I.value.unobserve(W.value), I.value.disconnect());
170
170
  });
171
- const { isPrinting: De, isImaging: Be, generatePdf: Ee, generateImage: Ve } = al({
171
+ const { isPrinting: Ne, isImaging: Be, generatePdf: Ee, generateImage: Ve } = al({
172
172
  elementId: `vue-ui-candlestick_${A.value}`,
173
173
  fileName: e.value.style.title.text || "vue-ui-candlestick",
174
174
  options: e.value.userOptions.print
175
- }), pt = p(() => e.value.userOptions.show && !e.value.style.title.text), k = r({
175
+ }), gt = g(() => e.value.userOptions.show && !e.value.style.title.text), k = r({
176
176
  showTable: e.value.table.show,
177
177
  showTooltip: e.value.style.tooltip.show
178
- }), he = r(0), gt = at((t) => {
178
+ }), he = r(0), pt = at((t) => {
179
179
  he.value = t;
180
180
  }, 100);
181
181
  Ut((t) => {
182
182
  const a = H.value;
183
183
  if (!a) return;
184
184
  const l = new ResizeObserver((o) => {
185
- gt(o[0].contentRect.height);
185
+ pt(o[0].contentRect.height);
186
186
  });
187
187
  l.observe(a), t(() => l.disconnect());
188
188
  }), Qe(() => {
189
189
  he.value = 0;
190
190
  });
191
- const Me = p(() => {
191
+ const Me = g(() => {
192
192
  let t = 0;
193
193
  return H.value && (t = he.value + c.value.xAxisFontSize), t;
194
194
  });
@@ -199,7 +199,7 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], pl = ["x", "y", "wid
199
199
  return f > o ? f : o;
200
200
  }, 0)), t + 13;
201
201
  }
202
- const n = p(() => {
202
+ const n = g(() => {
203
203
  const { top: t, right: a, bottom: l, left: o } = e.value.style.layout.padding, x = bt(), f = 12;
204
204
  return {
205
205
  top: t + f,
@@ -209,49 +209,49 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], pl = ["x", "y", "wid
209
209
  width: c.value.width - o - a - x,
210
210
  height: c.value.height - t - l - Me.value - f
211
211
  };
212
- }), X = p(() => C.value.length), v = r({
212
+ }), X = g(() => C.value.length), v = r({
213
213
  start: 0,
214
214
  end: X.value
215
- }), Ue = p(() => C.value.map((t, a) => ({
215
+ }), Ue = g(() => C.value.map((t, a) => ({
216
216
  ...t,
217
217
  absoluteIndex: a
218
- })).slice(v.value.start, v.value.end)), fe = p(() => (C.value.forEach((t, a) => {
218
+ })).slice(v.value.start, v.value.end)), fe = g(() => (C.value.forEach((t, a) => {
219
219
  [null, void 0].includes(t[0]) && U({
220
220
  componentName: "VueUiCandlestick",
221
221
  type: "datasetAttribute",
222
222
  property: "period (index 0)",
223
223
  index: a,
224
- debug: R.value
224
+ debug: F.value
225
225
  }), [null, void 0].includes(t[1]) && U({
226
226
  componentName: "VueUiCandlestick",
227
227
  type: "datasetAttribute",
228
228
  property: "open (index 1)",
229
229
  index: a,
230
- debug: R.value
230
+ debug: F.value
231
231
  }), [null, void 0].includes(t[2]) && U({
232
232
  componentName: "VueUiCandlestick",
233
233
  type: "datasetAttribute",
234
234
  property: "high (index 2)",
235
235
  index: a,
236
- debug: R.value
236
+ debug: F.value
237
237
  }), [null, void 0].includes(t[3]) && U({
238
238
  componentName: "VueUiCandlestick",
239
239
  type: "datasetAttribute",
240
240
  property: "low (index 3)",
241
241
  index: a,
242
- debug: R.value
242
+ debug: F.value
243
243
  }), [null, void 0].includes(t[4]) && U({
244
244
  componentName: "VueUiCandlestick",
245
245
  type: "datasetAttribute",
246
246
  property: "last (index 4)",
247
247
  index: a,
248
- debug: R.value
248
+ debug: F.value
249
249
  }), [null, void 0].includes(t[5]) && U({
250
250
  componentName: "VueUiCandlestick",
251
251
  type: "datasetAttribute",
252
252
  property: "volume (index 5)",
253
253
  index: a,
254
- debug: R.value
254
+ debug: F.value
255
255
  });
256
256
  }), Ue.value.map((t) => ({
257
257
  absoluteIndex: t.absoluteIndex,
@@ -261,13 +261,13 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], pl = ["x", "y", "wid
261
261
  low: t[3],
262
262
  last: t[4],
263
263
  volume: t[5]
264
- })))), d = p(() => n.value.width / Ue.value.length), We = p(() => {
264
+ })))), d = g(() => n.value.width / Ue.value.length), We = g(() => {
265
265
  const t = e.value.style.layout.grid.yAxis.scale.max === null ? Math.max(...fe.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;
266
266
  return {
267
267
  max: t,
268
268
  min: a
269
269
  };
270
- }), _ = p(() => qt(We.value.min, We.value.max, e.value.style.layout.grid.yAxis.dataLabels.steps));
270
+ }), _ = g(() => qt(We.value.min, We.value.max, e.value.style.layout.grid.yAxis.dataLabels.steps));
271
271
  function K(t, a) {
272
272
  return {
273
273
  ...t,
@@ -276,8 +276,8 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], pl = ["x", "y", "wid
276
276
  value: q(t)
277
277
  };
278
278
  }
279
- const w = p(() => fe.value.map((t, a) => {
280
- const l = K(t.open, a), o = K(t.high, a), x = K(t.low, a), f = K(t.last, a), N = t.last > t.open;
279
+ const w = g(() => fe.value.map((t, a) => {
280
+ const l = K(t.open, a), o = K(t.high, a), x = K(t.low, a), f = K(t.last, a), P = t.last > t.open;
281
281
  return {
282
282
  period: t.period,
283
283
  open: l,
@@ -285,29 +285,29 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], pl = ["x", "y", "wid
285
285
  low: x,
286
286
  last: f,
287
287
  volume: t.volume,
288
- isBullish: N,
288
+ isBullish: P,
289
289
  absoluteIndex: t.absoluteIndex
290
290
  };
291
291
  }));
292
292
  function mt(t) {
293
293
  return q((t - _.value.min) / (_.value.max - _.value.min));
294
294
  }
295
- const xt = p(() => _.value.ticks.map((t) => ({
295
+ const xt = g(() => _.value.ticks.map((t) => ({
296
296
  y: n.value.bottom - n.value.height * mt(t),
297
297
  value: q(t)
298
- }))), kt = p(() => fe.value.map((t) => t.period)), O = p(() => ul({
298
+ }))), kt = g(() => fe.value.map((t) => t.period)), O = g(() => ul({
299
299
  values: C.value.map((t) => t[0]),
300
300
  maxDatapoints: C.value.length,
301
301
  formatter: e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter,
302
302
  start: v.value.start,
303
303
  end: v.value.end
304
- })), He = p(() => e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? {
304
+ })), He = g(() => e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? {
305
305
  start: O.value.find((t) => t.absoluteIndex === v.value.start).text,
306
306
  end: O.value.find((t) => t.absoluteIndex === v.value.end - 1).text
307
307
  } : {
308
308
  start: C.value[v.value.start] ? C.value[v.value.start][0] : C.value[0][0],
309
309
  end: C.value[v.value.end - 1] ? C.value[v.value.end - 1][0] : C.value.at(-1)[0]
310
- }), pe = r(null);
310
+ }), ge = r(null);
311
311
  function wt(t, a) {
312
312
  e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: a, seriesIndex: t + v.value.start });
313
313
  }
@@ -315,7 +315,7 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], pl = ["x", "y", "wid
315
315
  e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: a, seriesIndex: t + v.value.start }), ne.value = void 0, ue.value = !1;
316
316
  }
317
317
  function Ct(t, a) {
318
- e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: a, seriesIndex: t + v.value.start }), ne.value = t, pe.value = {
318
+ e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: a, seriesIndex: t + v.value.start }), ne.value = t, ge.value = {
319
319
  datapoint: a,
320
320
  seriesIndex: t,
321
321
  series: w.value,
@@ -336,57 +336,57 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], pl = ["x", "y", "wid
336
336
  });
337
337
  else if (e.value.style.tooltip.show) {
338
338
  let o = "";
339
- const { period: x, open: f, high: N, low: xe, last: ke, volume: ee, isBullish: Je } = w.value[t], { period: Xl, open: Lt, high: It, low: Ft, last: Rt, volume: Ot } = e.value.translations, Pt = e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? O.value[t].text : x;
339
+ const { period: x, open: f, high: P, low: xe, last: ke, volume: ee, isBullish: Je } = w.value[t], { period: Xl, open: Lt, high: It, low: Rt, last: Ft, volume: Ot } = e.value.translations, Dt = e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? O.value[t].text : x;
340
340
  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}"
341
- fill="${e.value.style.layout.candle.gradient.show ? Je ? `url(#bullish_gradient_${A.value})` : `url(#bearish_gradient_${A.value})` : Je ? e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.colors.bearish}"/></svg>${Pt}</div>`, o += `${Ot} : <b>${isNaN(ee) ? "-" : Number(ee.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}">`;
342
- const Nt = L({
341
+ fill="${e.value.style.layout.candle.gradient.show ? Je ? `url(#bullish_gradient_${A.value})` : `url(#bearish_gradient_${A.value})` : Je ? e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.colors.bearish}"/></svg>${Dt}</div>`, o += `${Ot} : <b>${isNaN(ee) ? "-" : Number(ee.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}">`;
342
+ const Pt = L({
343
343
  p: e.value.style.tooltip.prefix,
344
344
  v: f.value,
345
345
  s: e.value.style.tooltip.suffix,
346
346
  r: e.value.style.tooltip.roundingValue
347
347
  });
348
- o += `<div>${Lt}: <b>${Nt}</b></div>`;
349
- const Dt = L({
348
+ o += `<div>${Lt}: <b>${Pt}</b></div>`;
349
+ const Nt = L({
350
350
  p: e.value.style.tooltip.prefix,
351
- v: N.value,
351
+ v: P.value,
352
352
  s: e.value.style.tooltip.suffix,
353
353
  r: e.value.style.tooltip.roundingValue
354
354
  });
355
- o += `<div>${It}: <b>${Dt}</b></div>`;
355
+ o += `<div>${It}: <b>${Nt}</b></div>`;
356
356
  const Bt = L({
357
357
  p: e.value.style.tooltip.prefix,
358
358
  v: xe.value,
359
359
  s: e.value.style.tooltip.suffix,
360
360
  r: e.value.style.tooltip.roundingValue
361
361
  });
362
- o += `<div>${Ft}: <b>${Bt}</b></div>`;
362
+ o += `<div>${Rt}: <b>${Bt}</b></div>`;
363
363
  const Et = L({
364
364
  p: e.value.style.tooltip.prefix,
365
365
  v: ke.value,
366
366
  s: e.value.style.tooltip.suffix,
367
367
  r: e.value.style.tooltip.roundingValue
368
368
  });
369
- o += `<div>${Rt}: <b>${Et}</b></div>`, o += "</div>", ie.value = `<div style="text-align:right">${o}</div>`;
369
+ o += `<div>${Ft}: <b>${Et}</b></div>`, o += "</div>", ie.value = `<div style="text-align:right">${o}</div>`;
370
370
  }
371
371
  ue.value = !0;
372
372
  }
373
373
  function _t() {
374
- ge();
374
+ pe();
375
375
  }
376
376
  const Ge = r(null);
377
- async function ge() {
377
+ async function pe() {
378
378
  await we(), await we();
379
379
  const { startIndex: t, endIndex: a } = e.value.style.zoom, l = Ge.value, o = X.value;
380
- v.value = { start: 0, end: o }, (t != null || a != null) && l ? (t != null ? l.setStartValue(t) : (v.value.start = 0, l.setStartValue(0)), a != null ? l.setEndValue($t(a + 1)) : (v.value.end = o, l.setEndValue(o))) : (v.value = { start: 0, end: o }, J.value += 1);
380
+ v.value = { start: 0, end: o }, (t != null || a != null) && l ? (t != null ? l.setStartValue(t) : (v.value.start = 0, l.setStartValue(0)), a != null ? l.setEndValue(zt(a + 1)) : (v.value.end = o, l.setEndValue(o))) : (v.value = { start: 0, end: o }, J.value += 1);
381
381
  }
382
- function $t(t) {
382
+ function zt(t) {
383
383
  const a = X.value;
384
384
  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;
385
385
  }
386
386
  function be(t = null) {
387
387
  we(() => {
388
- 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 = w.value.map((f, N) => [
389
- e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? O.value[N].text : f.period,
388
+ 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 = w.value.map((f, P) => [
389
+ e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? O.value[P].text : f.period,
390
390
  f.open.value,
391
391
  f.high.value,
392
392
  f.low.value,
@@ -396,9 +396,9 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], pl = ["x", "y", "wid
396
396
  t ? t(x) : Zt({ csvContent: x, title: e.value.style.title.text || "vue-ui-candlestick" });
397
397
  });
398
398
  }
399
- const Q = p(() => {
399
+ const Q = g(() => {
400
400
  const t = w.value.map((o, x) => {
401
- const f = e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? O.value[x].text : o.period, N = L({
401
+ const f = e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? O.value[x].text : o.period, P = L({
402
402
  p: e.value.table.td.prefix,
403
403
  v: o.open.value,
404
404
  s: e.value.table.td.suffix,
@@ -421,7 +421,7 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], pl = ["x", "y", "wid
421
421
  });
422
422
  return [
423
423
  `<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_${A.value}` : `url(#bearish_gradient_${A.value})` : o.isBullish ? e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.colors.bearish}"/></svg> ${f}`,
424
- N,
424
+ P,
425
425
  xe,
426
426
  ke,
427
427
  ee,
@@ -448,9 +448,9 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], pl = ["x", "y", "wid
448
448
  e.value.translations.volume
449
449
  ];
450
450
  return { head: l, body: t, config: a, colNames: l };
451
- }), P = r(!1);
451
+ }), D = r(!1);
452
452
  function Xe(t) {
453
- P.value = t, _e.value += 1;
453
+ D.value = t, _e.value += 1;
454
454
  }
455
455
  function je() {
456
456
  k.value.showTable = !k.value.showTable;
@@ -462,9 +462,9 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], pl = ["x", "y", "wid
462
462
  function me() {
463
463
  Z.value = !Z.value;
464
464
  }
465
- async function zt({ scale: t = 2 } = {}) {
466
- if (!z.value) return;
467
- const { width: a, height: l } = z.value.getBoundingClientRect(), o = a / l, { imageUri: x, base64: f } = await vl({ domElement: z.value, base64: !0, img: !0, scale: t });
465
+ async function $t({ scale: t = 2 } = {}) {
466
+ if (!$.value) return;
467
+ const { width: a, height: l } = $.value.getBoundingClientRect(), o = a / l, { imageUri: x, base64: f } = await vl({ domElement: $.value, base64: !0, img: !0, scale: t });
468
468
  return {
469
469
  imageUri: x,
470
470
  base64: f,
@@ -474,7 +474,7 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], pl = ["x", "y", "wid
474
474
  aspectRatio: o
475
475
  };
476
476
  }
477
- const St = p(() => c.value.width), Tt = p(() => c.value.height);
477
+ const St = g(() => c.value.width), Tt = g(() => c.value.height);
478
478
  rl({
479
479
  timeLabelsEls: H,
480
480
  timeLabels: O,
@@ -492,7 +492,7 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], pl = ["x", "y", "wid
492
492
  showTooltip: e.value.style.tooltip.show
493
493
  };
494
494
  }, { immediate: !0 });
495
- const j = p(() => {
495
+ const j = g(() => {
496
496
  const t = e.value.table.useDialog && !e.value.table.show, a = k.value.showTable;
497
497
  return {
498
498
  component: t ? ht : rt,
@@ -502,8 +502,8 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], pl = ["x", "y", "wid
502
502
  color: e.value.table.th.color,
503
503
  headerColor: e.value.table.th.color,
504
504
  headerBg: e.value.table.th.backgroundColor,
505
- isFullscreen: P.value,
506
- fullscreenParent: z.value,
505
+ isFullscreen: D.value,
506
+ fullscreenParent: $.value,
507
507
  forcedWidth: Math.min(800, window.innerWidth * 0.8)
508
508
  } : {
509
509
  hideDetails: !0,
@@ -529,7 +529,7 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], pl = ["x", "y", "wid
529
529
  k.value.showTable = !1, ve.value && ve.value.setTableIconState(!1);
530
530
  }
531
531
  return ut({
532
- getImage: zt,
532
+ getImage: $t,
533
533
  generatePdf: Ee,
534
534
  generateCsv: be,
535
535
  generateImage: Ve,
@@ -539,36 +539,36 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], pl = ["x", "y", "wid
539
539
  toggleFullscreen: Xe
540
540
  }), (t, a) => (s(), i("div", {
541
541
  ref_key: "candlestickChart",
542
- ref: z,
543
- class: T(`vue-ui-candlestick ${P.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
542
+ ref: $,
543
+ class: T(`vue-ui-candlestick ${D.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
544
544
  style: Ae(`position:relative;font-family:${e.value.style.fontFamily}; text-align:center;background:${e.value.style.backgroundColor}; ${e.value.responsive ? "height: 100%" : ""}`),
545
545
  id: `vue-ui-candlestick_${A.value}`,
546
- onMouseenter: a[3] || (a[3] = () => u(Re)(!0)),
547
- onMouseleave: a[4] || (a[4] = () => u(Re)(!1))
546
+ onMouseenter: a[3] || (a[3] = () => u(Fe)(!0)),
547
+ onMouseleave: a[4] || (a[4] = () => u(Fe)(!1))
548
548
  }, [
549
- e.value.userOptions.buttons.annotator ? (s(), D(u(dt), {
549
+ e.value.userOptions.buttons.annotator ? (s(), N(u(dt), {
550
550
  key: 0,
551
- svgRef: u(Pe),
551
+ svgRef: u(De),
552
552
  backgroundColor: e.value.style.backgroundColor,
553
553
  color: e.value.style.color,
554
554
  active: Z.value,
555
555
  onClose: me
556
- }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : g("", !0),
557
- pt.value ? (s(), i("div", {
556
+ }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : p("", !0),
557
+ gt.value ? (s(), i("div", {
558
558
  key: 1,
559
559
  ref_key: "noTitle",
560
560
  ref: Le,
561
561
  class: "vue-data-ui-no-title-space",
562
562
  style: "height:36px; width: 100%;background:transparent"
563
- }, null, 512)) : g("", !0),
563
+ }, null, 512)) : p("", !0),
564
564
  e.value.style.title.text ? (s(), i("div", {
565
565
  key: 2,
566
566
  ref_key: "chartTitle",
567
- ref: $e,
567
+ ref: ze,
568
568
  style: "width:100%;background:transparent"
569
569
  }, [
570
- (s(), D(dl, {
571
- key: `title_${Fe.value}`,
570
+ (s(), N(dl, {
571
+ key: `title_${Re.value}`,
572
572
  config: {
573
573
  title: {
574
574
  cy: "candlestick-div-title",
@@ -580,15 +580,15 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], pl = ["x", "y", "wid
580
580
  }
581
581
  }
582
582
  }, null, 8, ["config"]))
583
- ], 512)) : g("", !0),
584
- e.value.userOptions.show && oe.value && (u(Oe) || u(ce)) ? (s(), D(u(ct), {
583
+ ], 512)) : p("", !0),
584
+ e.value.userOptions.show && oe.value && (u(Oe) || u(ce)) ? (s(), N(u(ct), {
585
585
  ref_key: "userOptionsRef",
586
586
  ref: ve,
587
587
  key: `user_options_${_e.value}`,
588
588
  backgroundColor: e.value.style.backgroundColor,
589
589
  color: e.value.style.color,
590
590
  isImaging: u(Be),
591
- isPrinting: u(De),
591
+ isPrinting: u(Ne),
592
592
  uid: A.value,
593
593
  hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.tooltip.show,
594
594
  hasPdf: e.value.userOptions.buttons.pdf,
@@ -596,10 +596,10 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], pl = ["x", "y", "wid
596
596
  hasXls: e.value.userOptions.buttons.csv,
597
597
  hasTable: e.value.userOptions.buttons.table,
598
598
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
599
- isFullscreen: P.value,
599
+ isFullscreen: D.value,
600
600
  isTooltip: k.value.showTooltip,
601
601
  titles: { ...e.value.userOptions.buttonTitles },
602
- chartElement: z.value,
602
+ chartElement: $.value,
603
603
  position: e.value.userOptions.position,
604
604
  hasAnnotator: e.value.userOptions.buttons.annotator,
605
605
  isAnnotation: Z.value,
@@ -673,13 +673,13 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], pl = ["x", "y", "wid
673
673
  ]),
674
674
  key: "7"
675
675
  } : void 0
676
- ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : g("", !0),
676
+ ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : p("", !0),
677
677
  (s(), i("svg", {
678
678
  ref_key: "svgRef",
679
- ref: Pe,
679
+ ref: De,
680
680
  xmlns: u(Jt),
681
681
  "aria-label": e.value.style.title.text || "candlestick chart",
682
- class: T({ "vue-data-ui-fullscreen--on": P.value, "vue-data-ui-fulscreen--off": !P.value }),
682
+ class: T({ "vue-data-ui-fullscreen--on": D.value, "vue-data-ui-fulscreen--off": !D.value }),
683
683
  viewBox: `0 0 ${c.value.width <= 0 ? 10 : c.value.width} ${c.value.height <= 0 ? 10 : c.value.height}`,
684
684
  style: Ae(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.color}`)
685
685
  }, [
@@ -695,8 +695,8 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], pl = ["x", "y", "wid
695
695
  }
696
696
  }, [
697
697
  m(t.$slots, "chart-background", {}, void 0, !0)
698
- ], 8, pl)) : g("", !0),
699
- w.value.length > 0 ? (s(), i("g", gl, [
698
+ ], 8, gl)) : p("", !0),
699
+ w.value.length > 0 ? (s(), i("g", pl, [
700
700
  y("defs", null, [
701
701
  y("linearGradient", {
702
702
  id: `bearish_gradient_${A.value}`,
@@ -735,7 +735,7 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], pl = ["x", "y", "wid
735
735
  }, null, 8, _l)
736
736
  ], 8, wl)
737
737
  ]),
738
- e.value.style.layout.grid.show ? (s(), i("g", $l, [
738
+ e.value.style.layout.grid.show ? (s(), i("g", zl, [
739
739
  y("line", {
740
740
  x1: n.value.left,
741
741
  x2: n.value.left,
@@ -744,7 +744,7 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], pl = ["x", "y", "wid
744
744
  stroke: e.value.style.layout.grid.stroke,
745
745
  "stroke-width": e.value.style.layout.grid.strokeWidth,
746
746
  "stroke-linecap": "round"
747
- }, null, 8, zl),
747
+ }, null, 8, $l),
748
748
  y("line", {
749
749
  x1: n.value.left,
750
750
  x2: n.value.right,
@@ -754,7 +754,7 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], pl = ["x", "y", "wid
754
754
  "stroke-width": e.value.style.layout.grid.strokeWidth,
755
755
  "stroke-linecap": "round"
756
756
  }, null, 8, Sl)
757
- ])) : g("", !0),
757
+ ])) : p("", !0),
758
758
  e.value.style.layout.grid.yAxis.dataLabels.show ? (s(), i("g", {
759
759
  key: 1,
760
760
  ref_key: "scaleLabels",
@@ -770,7 +770,7 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], pl = ["x", "y", "wid
770
770
  stroke: e.value.style.layout.grid.stroke,
771
771
  "stroke-width": e.value.style.layout.grid.strokeWidth,
772
772
  "stroke-linecap": "round"
773
- }, null, 8, Tl)) : g("", !0),
773
+ }, null, 8, Tl)) : p("", !0),
774
774
  l.value >= _.value.min && l.value <= _.value.max ? (s(), i("text", {
775
775
  key: 1,
776
776
  x: n.value.left - 8 + e.value.style.layout.grid.yAxis.dataLabels.offsetX,
@@ -784,9 +784,9 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], pl = ["x", "y", "wid
784
784
  v: l.value,
785
785
  s: e.value.style.layout.grid.yAxis.dataLabels.suffix,
786
786
  r: e.value.style.layout.grid.yAxis.dataLabels.roundingValue
787
- })), 9, Ll)) : g("", !0)
787
+ })), 9, Ll)) : p("", !0)
788
788
  ]))), 256))
789
- ], 512)) : g("", !0),
789
+ ], 512)) : p("", !0),
790
790
  e.value.style.layout.grid.xAxis.dataLabels.show && !e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? (s(), i("g", {
791
791
  key: 2,
792
792
  ref_key: "timeLabelsEls",
@@ -802,7 +802,7 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], pl = ["x", "y", "wid
802
802
  "font-weight": e.value.style.layout.grid.xAxis.dataLabels.bold ? "bold" : "normal"
803
803
  }, Y(l), 9, Il)
804
804
  ]))), 256))
805
- ], 512)) : g("", !0),
805
+ ], 512)) : p("", !0),
806
806
  e.value.style.layout.grid.xAxis.dataLabels.show && e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? (s(), i("g", {
807
807
  key: 3,
808
808
  ref_key: "timeLabelsEls",
@@ -816,9 +816,9 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], pl = ["x", "y", "wid
816
816
  "font-size": c.value.xAxisFontSize,
817
817
  fill: e.value.style.layout.grid.xAxis.dataLabels.color,
818
818
  "font-weight": e.value.style.layout.grid.xAxis.dataLabels.bold ? "bold" : "normal"
819
- }, Y(l.text), 9, Fl)
819
+ }, Y(l.text), 9, Rl)
820
820
  ]))), 256))
821
- ], 512)) : g("", !0),
821
+ ], 512)) : p("", !0),
822
822
  y("g", null, [
823
823
  (s(!0), i(V, null, M(w.value, (l, o) => (s(), i("g", null, [
824
824
  y("rect", {
@@ -829,25 +829,25 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], pl = ["x", "y", "wid
829
829
  fill: e.value.style.layout.wick.stroke,
830
830
  stroke: "none",
831
831
  rx: e.value.style.layout.wick.strokeWidth / 2,
832
- class: T({ "vue-data-ui-transition": $.value && !u(S) })
833
- }, null, 10, Rl),
832
+ class: T({ "vue-data-ui-transition": z.value && !u(S) })
833
+ }, null, 10, Fl),
834
834
  e.value.style.layout.wick.extremity.shape === "circle" ? (s(), i("g", Ol, [
835
835
  y("circle", {
836
836
  cx: l.high.x,
837
837
  cy: l.high.y,
838
838
  r: e.value.style.layout.wick.extremity.size === "auto" ? d.value / 20 : e.value.style.layout.wick.extremity.size,
839
839
  fill: e.value.style.layout.wick.extremity.color,
840
- class: T({ "vue-data-ui-transition": $.value && !u(S) })
841
- }, null, 10, Pl),
840
+ class: T({ "vue-data-ui-transition": z.value && !u(S) })
841
+ }, null, 10, Dl),
842
842
  y("circle", {
843
843
  cx: l.low.x,
844
844
  cy: l.low.y,
845
845
  r: e.value.style.layout.wick.extremity.size === "auto" ? d.value / 20 : e.value.style.layout.wick.extremity.size,
846
846
  fill: e.value.style.layout.wick.extremity.color,
847
- class: T({ "vue-data-ui-transition": $.value && !u(S) })
848
- }, null, 10, Nl)
849
- ])) : g("", !0),
850
- e.value.style.layout.wick.extremity.shape === "line" ? (s(), i("g", Dl, [
847
+ class: T({ "vue-data-ui-transition": z.value && !u(S) })
848
+ }, null, 10, Pl)
849
+ ])) : p("", !0),
850
+ e.value.style.layout.wick.extremity.shape === "line" ? (s(), i("g", Nl, [
851
851
  y("rect", {
852
852
  x: 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,
853
853
  y: l.high.y - e.value.style.layout.wick.strokeWidth / 2,
@@ -856,7 +856,7 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], pl = ["x", "y", "wid
856
856
  rx: e.value.style.layout.wick.strokeWidth / 2,
857
857
  fill: e.value.style.layout.wick.extremity.color,
858
858
  stroke: "none",
859
- class: T({ "vue-data-ui-transition": $.value && !u(S) })
859
+ class: T({ "vue-data-ui-transition": z.value && !u(S) })
860
860
  }, null, 10, Bl),
861
861
  y("rect", {
862
862
  x: 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,
@@ -866,9 +866,9 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], pl = ["x", "y", "wid
866
866
  fill: e.value.style.layout.wick.extremity.color,
867
867
  stroke: "none",
868
868
  rx: e.value.style.layout.wick.strokeWidth / 2,
869
- class: T({ "vue-data-ui-transition": $.value && !u(S) })
869
+ class: T({ "vue-data-ui-transition": z.value && !u(S) })
870
870
  }, null, 10, El)
871
- ])) : g("", !0)
871
+ ])) : p("", !0)
872
872
  ]))), 256))
873
873
  ]),
874
874
  y("g", null, [
@@ -880,7 +880,7 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], pl = ["x", "y", "wid
880
880
  fill: e.value.style.layout.candle.gradient.underlayer,
881
881
  rx: e.value.style.layout.candle.borderRadius,
882
882
  stroke: "none",
883
- class: T({ "vue-data-ui-transition": $.value && !u(S) })
883
+ class: T({ "vue-data-ui-transition": z.value && !u(S) })
884
884
  }, null, 10, Vl))), 256)),
885
885
  (s(!0), i(V, null, M(w.value, (l, o) => (s(), i("rect", {
886
886
  x: l.open.x - d.value / 2 + d.value * (1 - e.value.style.layout.candle.widthRatio) / 2,
@@ -893,7 +893,7 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], pl = ["x", "y", "wid
893
893
  "stroke-width": e.value.style.layout.candle.strokeWidth,
894
894
  "stroke-linecap": "round",
895
895
  "stroke-linejoin": "round",
896
- class: T({ "vue-data-ui-transition": $.value && !u(S) })
896
+ class: T({ "vue-data-ui-transition": z.value && !u(S) })
897
897
  }, null, 10, Ml))), 256))
898
898
  ]),
899
899
  y("g", null, [
@@ -908,18 +908,18 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], pl = ["x", "y", "wid
908
908
  onClick: () => wt(o, l)
909
909
  }, null, 40, Ul))), 256))
910
910
  ])
911
- ])) : g("", !0),
911
+ ])) : p("", !0),
912
912
  m(t.$slots, "svg", { svg: c.value }, void 0, !0)
913
913
  ], 14, fl)),
914
914
  t.$slots.watermark ? (s(), i("div", Wl, [
915
- m(t.$slots, "watermark", B(E({ isPrinting: u(De) || u(Be) })), void 0, !0)
916
- ])) : g("", !0),
915
+ m(t.$slots, "watermark", B(E({ isPrinting: u(Ne) || u(Be) })), void 0, !0)
916
+ ])) : p("", !0),
917
917
  e.value.style.zoom.show && oe.value ? (s(), i("div", {
918
918
  key: 5,
919
919
  ref_key: "chartSlicer",
920
920
  ref: Se
921
921
  }, [
922
- (s(), D(cl, {
922
+ (s(), N(cl, {
923
923
  ref_key: "slicerComponent",
924
924
  ref: Ge,
925
925
  key: `slicer_${J.value}`,
@@ -944,17 +944,19 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], pl = ["x", "y", "wid
944
944
  refreshEndPoint: e.value.style.zoom.endIndex !== null ? e.value.style.zoom.endIndex + 1 : X.value,
945
945
  enableRangeHandles: e.value.style.zoom.enableRangeHandles,
946
946
  enableSelectionDrag: e.value.style.zoom.enableSelectionDrag,
947
+ focusOnDrag: e.value.style.zoom.focusOnDrag,
948
+ focusRangeRatio: e.value.style.zoom.focusRangeRatio,
947
949
  onReset: _t
948
950
  }, {
949
951
  "reset-action": b(({ reset: l }) => [
950
952
  m(t.$slots, "reset-action", B(E({ reset: l })), void 0, !0)
951
953
  ]),
952
954
  _: 3
953
- }, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"]))
954
- ], 512)) : g("", !0),
955
+ }, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag", "focusOnDrag", "focusRangeRatio"]))
956
+ ], 512)) : p("", !0),
955
957
  y("div", {
956
958
  ref_key: "chartLegend",
957
- ref: ze
959
+ ref: $e
958
960
  }, [
959
961
  m(t.$slots, "legend", { legend: w.value }, void 0, !0)
960
962
  ], 512),
@@ -965,7 +967,7 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], pl = ["x", "y", "wid
965
967
  dir: "auto"
966
968
  }, [
967
969
  m(t.$slots, "source", {}, void 0, !0)
968
- ], 512)) : g("", !0),
970
+ ], 512)) : p("", !0),
969
971
  Ce(u(nt), {
970
972
  show: k.value.showTooltip && ue.value,
971
973
  backgroundColor: e.value.style.tooltip.backgroundColor,
@@ -977,9 +979,9 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], pl = ["x", "y", "wid
977
979
  backgroundOpacity: e.value.style.tooltip.backgroundOpacity,
978
980
  position: e.value.style.tooltip.position,
979
981
  offsetY: e.value.style.tooltip.offsetY,
980
- parent: z.value,
982
+ parent: $.value,
981
983
  content: ie.value,
982
- isFullscreen: P.value,
984
+ isFullscreen: D.value,
983
985
  isCustom: e.value.style.tooltip.customFormat && typeof e.value.style.tooltip.customFormat == "function",
984
986
  smooth: e.value.style.tooltip.smooth,
985
987
  backdropFilter: e.value.style.tooltip.backdropFilter,
@@ -987,20 +989,20 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], pl = ["x", "y", "wid
987
989
  smoothSnapThreshold: e.value.style.tooltip.smoothSnapThreshold
988
990
  }, {
989
991
  "tooltip-before": b(() => [
990
- m(t.$slots, "tooltip-before", B(E({ ...pe.value })), void 0, !0)
992
+ m(t.$slots, "tooltip-before", B(E({ ...ge.value })), void 0, !0)
991
993
  ]),
992
994
  "tooltip-after": b(() => [
993
- m(t.$slots, "tooltip-after", B(E({ ...pe.value })), void 0, !0)
995
+ m(t.$slots, "tooltip-after", B(E({ ...ge.value })), void 0, !0)
994
996
  ]),
995
997
  _: 3
996
998
  }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
997
- oe.value && e.value.userOptions.buttons.table ? (s(), D(Wt(j.value.component), Ht({ key: 7 }, j.value.props, {
999
+ oe.value && e.value.userOptions.buttons.table ? (s(), N(Wt(j.value.component), Ht({ key: 7 }, j.value.props, {
998
1000
  ref_key: "tableUnit",
999
1001
  ref: G,
1000
1002
  onClose: qe
1001
1003
  }), Ze({
1002
1004
  content: b(() => [
1003
- (s(), D(u(vt), {
1005
+ (s(), N(u(vt), {
1004
1006
  key: `table_${Ie.value}`,
1005
1007
  colNames: Q.value.colNames,
1006
1008
  head: Q.value.head,
@@ -1044,11 +1046,11 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], pl = ["x", "y", "wid
1044
1046
  ]),
1045
1047
  key: "1"
1046
1048
  } : void 0
1047
- ]), 1040)) : g("", !0),
1048
- u(S) ? (s(), D(sl, { key: 8 })) : g("", !0)
1049
+ ]), 1040)) : p("", !0),
1050
+ u(S) ? (s(), N(sl, { key: 8 })) : p("", !0)
1049
1051
  ], 46, hl));
1050
1052
  }
1051
- }, ia = /* @__PURE__ */ yl(Gl, [["__scopeId", "data-v-5de3d075"]]);
1053
+ }, ia = /* @__PURE__ */ yl(Gl, [["__scopeId", "data-v-f32a2d80"]]);
1052
1054
  export {
1053
1055
  ia as default
1054
1056
  };