vue-data-ui 2.15.3 → 2.15.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) hide show
  1. package/dist/{Arrow-CzzsKX8z.js → Arrow-CI_Chty0.js} +1 -1
  2. package/dist/{BaseDraggableDialog-DCJi-1yP.js → BaseDraggableDialog-UeaNekHG.js} +2 -2
  3. package/dist/{BaseIcon-DhFdv5GX.js → BaseIcon-DTTmgKBX.js} +1 -1
  4. package/dist/{ColorPicker-DVErVt1a.js → ColorPicker-BySm_2Gi.js} +6 -6
  5. package/dist/{DataTable-C1m1pLCZ.js → DataTable-CLeYfh93.js} +2 -2
  6. package/dist/{Legend-Bv4X-1rt.js → Legend-B949nNP9.js} +2 -2
  7. package/dist/{NonSvgPenAndPaper-DSnwu1Ay.js → NonSvgPenAndPaper-zuNWbm52.js} +3 -3
  8. package/dist/{PackageVersion-Bto74qGz.js → PackageVersion-Djh3oJFs.js} +1 -1
  9. package/dist/{PenAndPaper-Ch0HBNVZ.js → PenAndPaper-BlF1d4XE.js} +3 -3
  10. package/dist/{Shape-G58fHOyr.js → Shape-DmDw1mpi.js} +1 -1
  11. package/dist/{Slicer-B31lD5Se.js → Slicer-mINKiN6T.js} +13 -13
  12. package/dist/{SparkTooltip-CT5F0yPg.js → SparkTooltip-B888Ijov.js} +1 -1
  13. package/dist/{Title-HKMJNA2t.js → Title-CPvPrwF4.js} +1 -1
  14. package/dist/{Tooltip-C3Dnr3zM.js → Tooltip-BiWfcBQk.js} +1 -1
  15. package/dist/{UserOptions-BnD3w_M-.js → UserOptions-CFllUVQ4.js} +2 -2
  16. package/dist/{dom-to-png-DvtSOm-q.js → dom-to-png-DeajhH5Z.js} +1 -1
  17. package/dist/{img-PRKpmCrJ.js → img-4TaH43jS.js} +1 -1
  18. package/dist/{index-pz3uy0bj.js → index-CBhz79Be.js} +12 -6
  19. package/dist/{pdf-NCZXhCbT.js → pdf-BlK5aBh-.js} +1 -1
  20. package/dist/style.css +1 -1
  21. package/dist/types/vue-data-ui.d.cts +8 -0
  22. package/dist/types/vue-data-ui.d.ts +8 -0
  23. package/dist/{useNestedProp-BTwRpxJ6.js → useNestedProp-Cg9K3ISG.js} +1 -1
  24. package/dist/{usePrinter-CpYwk8Nl.js → usePrinter-DNC_9y1d.js} +2 -2
  25. package/dist/{vue-data-ui-edDJqWqp.js → vue-data-ui-DcP8arpr.js} +63 -63
  26. package/dist/vue-data-ui.js +1 -1
  27. package/dist/{vue-ui-3d-bar-Cj4MAAl3.js → vue-ui-3d-bar-k4SNfbLV.js} +5 -5
  28. package/dist/{vue-ui-accordion-DVMQOCog.js → vue-ui-accordion-BWiiOpGO.js} +3 -3
  29. package/dist/{vue-ui-age-pyramid-B9-mIJoM.js → vue-ui-age-pyramid-ruNP1NJy.js} +5 -5
  30. package/dist/{vue-ui-annotator-BelwH44r.js → vue-ui-annotator-_31h_MMe.js} +2 -2
  31. package/dist/{vue-ui-bullet-7voYFUyR.js → vue-ui-bullet-BWmLA5Tg.js} +6 -6
  32. package/dist/vue-ui-candlestick-C8f9jUPZ.js +856 -0
  33. package/dist/{vue-ui-carousel-table-CCu7pOvx.js → vue-ui-carousel-table-DY90M9EE.js} +4 -4
  34. package/dist/{vue-ui-chestnut-DaIhjU0E.js → vue-ui-chestnut-DyxtZhwH.js} +28 -28
  35. package/dist/{vue-ui-chord-ol8it32M.js → vue-ui-chord-C8hE1GXD.js} +47 -47
  36. package/dist/{vue-ui-circle-pack-4dYH7oFz.js → vue-ui-circle-pack-Dy8buEl5.js} +24 -24
  37. package/dist/{vue-ui-cursor-BWo0SND4.js → vue-ui-cursor-Bb8yPXC9.js} +2 -2
  38. package/dist/{vue-ui-dashboard-DLP5BjC2.js → vue-ui-dashboard-SSYhdz1j.js} +62 -62
  39. package/dist/{vue-ui-digits-vLYOgwYN.js → vue-ui-digits-D4Du84P3.js} +2 -2
  40. package/dist/{vue-ui-donut-DA1mt39C.js → vue-ui-donut-C0dqyYUE.js} +7 -7
  41. package/dist/{vue-ui-donut-evolution-Y5NvWAOf.js → vue-ui-donut-evolution-BOrRbvDz.js} +7 -7
  42. package/dist/{vue-ui-dumbbell-DHGaUXgf.js → vue-ui-dumbbell-DKmEVC-5.js} +6 -6
  43. package/dist/{vue-ui-flow-CPRwtkW7.js → vue-ui-flow-DalrAEmv.js} +24 -24
  44. package/dist/{vue-ui-funnel-Cdaj7JLP.js → vue-ui-funnel-B-k_4VgX.js} +5 -5
  45. package/dist/{vue-ui-galaxy-Bml38eED.js → vue-ui-galaxy-BWaie_o-.js} +35 -35
  46. package/dist/{vue-ui-gauge-DIKUWHow.js → vue-ui-gauge-D71TDx5z.js} +17 -17
  47. package/dist/{vue-ui-gizmo-CDGfldQ2.js → vue-ui-gizmo-CJChusop.js} +3 -3
  48. package/dist/{vue-ui-heatmap-Cvz3HWSo.js → vue-ui-heatmap-DLwLB3pv.js} +31 -31
  49. package/dist/{vue-ui-history-plot-CEw6Ijds.js → vue-ui-history-plot-D7wNqDSc.js} +34 -34
  50. package/dist/{vue-ui-kpi-BOU7jfII.js → vue-ui-kpi-CJut0fnk.js} +3 -3
  51. package/dist/{vue-ui-mini-loader-B0QHAAN0.js → vue-ui-mini-loader-DP2pINNZ.js} +2 -2
  52. package/dist/{vue-ui-molecule-DpZAl654.js → vue-ui-molecule-D8b1J-IM.js} +4 -4
  53. package/dist/{vue-ui-mood-radar-DVTDXHkP.js → vue-ui-mood-radar-Br6izAkp.js} +6 -6
  54. package/dist/{vue-ui-nested-donuts-Cs_jOkZf.js → vue-ui-nested-donuts-DTYcStbt.js} +25 -25
  55. package/dist/{vue-ui-onion-BNm4LDqz.js → vue-ui-onion-DVtreg0e.js} +6 -6
  56. package/dist/{vue-ui-parallel-coordinate-plot-DF8yQwqD.js → vue-ui-parallel-coordinate-plot-COHHYnBG.js} +35 -35
  57. package/dist/{vue-ui-quadrant-CsT_YtVJ.js → vue-ui-quadrant-ClO3Aae-.js} +7 -7
  58. package/dist/{vue-ui-quick-chart-BQ8LWKNh.js → vue-ui-quick-chart-DXRWvUUA.js} +5 -5
  59. package/dist/{vue-ui-radar-BTXb1OpM.js → vue-ui-radar-Cs54EIJ2.js} +6 -6
  60. package/dist/{vue-ui-rating-10ZP5oGv.js → vue-ui-rating-Drx2P4xK.js} +2 -2
  61. package/dist/{vue-ui-relation-circle-BDY_mStf.js → vue-ui-relation-circle-B75Rh82J.js} +30 -30
  62. package/dist/{vue-ui-ridgeline-DiUQ9G50.js → vue-ui-ridgeline-DuZjVwmL.js} +7 -7
  63. package/dist/{vue-ui-rings-uOzklelU.js → vue-ui-rings-DWMToWPQ.js} +21 -21
  64. package/dist/{vue-ui-scatter-o8fU3CPQ.js → vue-ui-scatter-CAh7kj6p.js} +7 -7
  65. package/dist/{vue-ui-skeleton-DtyqxWGZ.js → vue-ui-skeleton-Dnw_Mcqb.js} +3 -3
  66. package/dist/{vue-ui-smiley-bleVUcTp.js → vue-ui-smiley-CkbdMJqH.js} +2 -2
  67. package/dist/{vue-ui-spark-trend-BSxc2AeN.js → vue-ui-spark-trend-DYVXugEw.js} +3 -3
  68. package/dist/{vue-ui-sparkbar-BpGhOBfa.js → vue-ui-sparkbar-Bv1RBHgo.js} +3 -3
  69. package/dist/{vue-ui-sparkgauge-BGm17y7o.js → vue-ui-sparkgauge-Ls2_d0PB.js} +3 -3
  70. package/dist/{vue-ui-sparkhistogram-C8_9lU73.js → vue-ui-sparkhistogram-CimMCtyI.js} +4 -4
  71. package/dist/{vue-ui-sparkline-BEC-1ljx.js → vue-ui-sparkline-ex9TddKP.js} +3 -3
  72. package/dist/{vue-ui-sparkstackbar-BcDRG3Q4.js → vue-ui-sparkstackbar-DUy1WJg0.js} +3 -3
  73. package/dist/{vue-ui-stackbar-B9rcNFMU.js → vue-ui-stackbar-DaaB_FjD.js} +220 -210
  74. package/dist/{vue-ui-strip-plot-DiU5qgNv.js → vue-ui-strip-plot-HVQoc18O.js} +32 -32
  75. package/dist/{vue-ui-table-CVciwbm2.js → vue-ui-table-Oa_A-Vxo.js} +3 -3
  76. package/dist/{vue-ui-table-heatmap-Do0wz-jb.js → vue-ui-table-heatmap-DWdkbupf.js} +18 -18
  77. package/dist/{vue-ui-table-sparkline-Manlzy4B.js → vue-ui-table-sparkline-Cxj3ZoBu.js} +4 -4
  78. package/dist/{vue-ui-thermometer-CAZrRTaM.js → vue-ui-thermometer-D-_Dqdcv.js} +5 -5
  79. package/dist/{vue-ui-timer-DuOTyXM6.js → vue-ui-timer-C01Ipde6.js} +30 -30
  80. package/dist/{vue-ui-tiremarks-BCETzTS2.js → vue-ui-tiremarks-BTBo3bor.js} +5 -5
  81. package/dist/{vue-ui-treemap-DjINZD63.js → vue-ui-treemap-DJEl32W1.js} +75 -75
  82. package/dist/{vue-ui-vertical-bar-D9dKYc0V.js → vue-ui-vertical-bar-CnCpCi4v.js} +8 -8
  83. package/dist/{vue-ui-waffle-BMUnrWw9.js → vue-ui-waffle-rFSfHosn.js} +30 -30
  84. package/dist/{vue-ui-wheel-DEpzAPrw.js → vue-ui-wheel-B6md6ra7.js} +5 -5
  85. package/dist/{vue-ui-word-cloud-BBpm9VoF.js → vue-ui-word-cloud-Co6iFx9I.js} +5 -5
  86. package/dist/{vue-ui-world-D4G5xytB.js → vue-ui-world-d09xOrf0.js} +5 -5
  87. package/dist/{vue-ui-xy-BXY4ixtF.js → vue-ui-xy-CuzhWfRK.js} +20 -20
  88. package/dist/{vue-ui-xy-canvas-BLOjFl9f.js → vue-ui-xy-canvas-D2dyilFo.js} +45 -45
  89. package/package.json +1 -1
  90. package/dist/vue-ui-candlestick-BiAWi-oW.js +0 -768
@@ -1,768 +0,0 @@
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 A, createCommentVNode as c, createElementVNode as v, createVNode as Re, createSlots as nt, withCtx as m, renderSlot as f, normalizeProps as N, 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 ft, w as Y, E as pt, s as gt, F as Oe, q as mt, r as bt, x as xt, y as kt } from "./index-pz3uy0bj.js";
3
- import { t as wt, u as $t } from "./useResponsive-DfdjqQps.js";
4
- import { u as Ve } from "./useNestedProp-BTwRpxJ6.js";
5
- import { u as Ct } from "./usePrinter-CpYwk8Nl.js";
6
- import { u as zt } from "./useUserOptionState-BIvW1Kz7.js";
7
- import { u as _t } from "./useChartAccessibility-9icAAmYg.js";
8
- import St from "./Title-HKMJNA2t.js";
9
- import { S as At } from "./Slicer-B31lD5Se.js";
10
- import { _ as Nt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
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
- key: 5,
13
- class: "vue-data-ui-watermark"
14
- }, il = ["innerHTML"], nl = {
15
- __name: "vue-ui-candlestick",
16
- props: {
17
- config: {
18
- type: Object,
19
- default() {
20
- return {};
21
- }
22
- },
23
- dataset: {
24
- type: Array,
25
- default() {
26
- return [];
27
- }
28
- }
29
- },
30
- setup(z, { expose: Pe }) {
31
- const Me = S(() => import("./vue-ui-accordion-DVMQOCog.js")), Ee = S(() => import("./DataTable-C1m1pLCZ.js")), Be = S(() => import("./PackageVersion-Bto74qGz.js")), Ue = S(() => import("./PenAndPaper-Ch0HBNVZ.js")), De = S(() => import("./vue-ui-skeleton-DtyqxWGZ.js")), We = S(() => import("./Tooltip-C3Dnr3zM.js")), Ge = S(() => import("./UserOptions-BnD3w_M-.js")), { vue_ui_candlestick: He } = vt(), h = z, 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
- get: () => he(),
33
- set: (t) => t
34
- }), { userOptionsVisible: Q, setUserOptionsVisibility: de, keepUserOptionState: ye } = zt({ config: e.value }), { svgRef: ce } = _t({ config: e.value.style.title });
35
- function he() {
36
- const t = Ve({
37
- userConfig: h.config,
38
- defaultConfig: He
39
- });
40
- let o = {};
41
- return t.theme ? o = {
42
- ...Ve({
43
- userConfig: yt.vue_ui_candlestick[t.theme] || h.config,
44
- defaultConfig: t
45
- })
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
- }
48
- Te(() => h.config, (t) => {
49
- e.value = he(), Q.value = !e.value.userOptions.showOnChartHover, fe(), 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
- }, { deep: !0 }), Te(() => h.dataset, (t) => {
51
- p.value.start = 0, p.value.end = t.length, W.value += 1;
52
- }, { deep: !0 });
53
- const y = r({
54
- height: e.value.style.height,
55
- width: e.value.style.width,
56
- xAxisFontSize: e.value.style.layout.grid.xAxis.dataLabels.fontSize,
57
- yAxisFontSize: e.value.style.layout.grid.yAxis.dataLabels.fontSize
58
- }), $ = Ie(null), F = Ie(null);
59
- ut(() => {
60
- fe();
61
- });
62
- function fe() {
63
- if (ct(h.dataset) && I({
64
- componentName: "VueUiCandlestick",
65
- type: "dataset"
66
- }), e.value.responsive) {
67
- const t = wt(() => {
68
- const { width: o, height: l } = $t({
69
- chart: M.value,
70
- title: e.value.style.title.text ? ae.value : null,
71
- slicer: ue.value,
72
- legend: se.value,
73
- source: ie.value,
74
- noTitle: ne.value
75
- });
76
- requestAnimationFrame(() => {
77
- y.value.width = o, y.value.height = l, e.value.responsiveProportionalSizing ? (y.value.xAxisFontSize = Oe({
78
- relator: Math.min(o, l),
79
- adjuster: e.value.style.width,
80
- source: e.value.style.layout.grid.xAxis.dataLabels.fontSize,
81
- threshold: 6,
82
- fallback: 6
83
- }), y.value.yAxisFontSize = Oe({
84
- relator: Math.min(o, l),
85
- adjuster: e.value.style.width,
86
- source: e.value.style.layout.grid.yAxis.dataLabels.fontSize,
87
- threshold: 6,
88
- fallback: 6
89
- })) : (y.value.xAxisFontSize = e.value.style.layout.grid.xAxis.dataLabels.fontSize, y.value.yAxisFontSize = e.value.style.layout.grid.yAxis.dataLabels.fontSize);
90
- });
91
- });
92
- $.value && (F.value && $.value.unobserve(F.value), $.value.disconnect()), $.value = new ResizeObserver(t), F.value = M.value.parentNode, $.value.observe(F.value);
93
- }
94
- we();
95
- }
96
- it(() => {
97
- $.value && (F.value && $.value.unobserve(F.value), $.value.disconnect());
98
- });
99
- const { isPrinting: pe, isImaging: ge, generatePdf: me, generateImage: be } = Ct({
100
- elementId: `vue-ui-candlestick_${x.value}`,
101
- fileName: e.value.style.title.text || "vue-ui-candlestick",
102
- options: e.value.userOptions.print
103
- }), Xe = g(() => e.value.userOptions.show && !e.value.style.title.text), w = r({
104
- showTable: e.value.table.show,
105
- showTooltip: e.value.style.tooltip.show
106
- }), i = g(() => {
107
- const { top: t, right: o, bottom: l, left: a } = e.value.style.layout.padding;
108
- return {
109
- top: t,
110
- right: y.value.width - o,
111
- left: a,
112
- bottom: y.value.height - l,
113
- width: y.value.width - a - o,
114
- height: y.value.height - t - l
115
- };
116
- }), E = g(() => h.dataset.length), p = r({
117
- start: 0,
118
- end: E.value
119
- }), xe = g(() => h.dataset.slice(p.value.start, p.value.end)), Z = g(() => (h.dataset.forEach((t, o) => {
120
- [null, void 0].includes(t[0]) && I({
121
- componentName: "VueUiCandlestick",
122
- type: "datasetAttribute",
123
- property: "period (index 0)",
124
- index: o
125
- }), [null, void 0].includes(t[1]) && I({
126
- componentName: "VueUiCandlestick",
127
- type: "datasetAttribute",
128
- property: "open (index 1)",
129
- index: o
130
- }), [null, void 0].includes(t[2]) && I({
131
- componentName: "VueUiCandlestick",
132
- type: "datasetAttribute",
133
- property: "high (index 2)",
134
- index: o
135
- }), [null, void 0].includes(t[3]) && I({
136
- componentName: "VueUiCandlestick",
137
- type: "datasetAttribute",
138
- property: "low (index 3)",
139
- index: o
140
- }), [null, void 0].includes(t[4]) && I({
141
- componentName: "VueUiCandlestick",
142
- type: "datasetAttribute",
143
- property: "last (index 4)",
144
- index: o
145
- }), [null, void 0].includes(t[5]) && I({
146
- componentName: "VueUiCandlestick",
147
- type: "datasetAttribute",
148
- property: "volume (index 5)",
149
- index: o
150
- });
151
- }), xe.value.map((t) => ({
152
- period: t[0],
153
- open: t[1],
154
- high: t[2],
155
- low: t[3],
156
- last: t[4],
157
- volume: t[5]
158
- })))), d = g(() => i.value.width / xe.value.length), ke = g(() => ({
159
- max: Math.max(...Z.value.map((t) => t.high)),
160
- min: 0
161
- })), _ = g(() => ht(ke.value.min, ke.value.max, e.value.style.layout.grid.yAxis.dataLabels.steps));
162
- function G(t, o) {
163
- return {
164
- ...t,
165
- x: D(i.value.left + o * d.value + d.value / 2),
166
- y: D(i.value.top + (1 - t / _.value.max) * i.value.height),
167
- value: D(t)
168
- };
169
- }
170
- const b = g(() => Z.value.map((t, o) => {
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
- return {
173
- period: t.period,
174
- open: l,
175
- high: a,
176
- low: C,
177
- last: k,
178
- volume: t.volume,
179
- isBullish: X
180
- };
181
- }));
182
- function Ye(t) {
183
- return D(t / _.value.max);
184
- }
185
- const qe = g(() => _.value.ticks.map((t) => ({
186
- y: i.value.bottom - i.value.height * Ye(t),
187
- value: D(t)
188
- }))), Je = g(() => Z.value.map((t) => t.period)), ee = r(null);
189
- function Ke(t, o) {
190
- K.value = t, ee.value = {
191
- datapoint: o,
192
- seriesIndex: t,
193
- series: b.value,
194
- config: e.value
195
- };
196
- const l = e.value.style.tooltip.customFormat;
197
- if (xt(l) && kt(() => l({
198
- seriesIndex: t,
199
- datapoint: o,
200
- series: b.value,
201
- config: e.value
202
- })))
203
- J.value = l({
204
- seriesIndex: t,
205
- datapoint: o,
206
- series: b.value,
207
- config: e.value
208
- });
209
- else if (e.value.style.tooltip.show) {
210
- let a = "";
211
- const { period: C, open: k, high: X, low: _e, last: Se, volume: Ae, isBullish: Ne } = b.value[t], { period: rl, open: tt, high: lt, low: ot, last: at, volume: st } = e.value.translations;
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 ? Ne ? `url(#bullish_gradient_${x.value})` : `url(#bearish_gradient_${x.value})` : Ne ? e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.colors.bearish}"/></svg>${C}</div>`, a += `${st} : <b>${isNaN(Ae) ? "-" : Number(Ae.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(_e.value) ? "-" : Number(_e.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
- }
215
- q.value = !0;
216
- }
217
- function Qe() {
218
- we();
219
- }
220
- const R = r(null);
221
- async function we() {
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)))) : (p.value = {
223
- start: 0,
224
- end: E.value
225
- }, W.value += 1);
226
- }
227
- function Ze(t) {
228
- const o = E.value;
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
- }
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
- });
243
- }
244
- const H = g(() => {
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_${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
- `${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
- `${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
- `${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}`,
250
- `${e.value.table.td.prefix} ${isNaN(a.last.value) ? "-" : Number(a.last.value.toFixed(e.value.table.td.roundingValue)).toLocaleString()} ${e.value.table.td.suffix}`,
251
- `${isNaN(a.volume) ? "-" : a.volume.toLocaleString()}`
252
- ]), o = {
253
- th: {
254
- backgroundColor: e.value.table.th.backgroundColor,
255
- color: e.value.table.th.color,
256
- outline: e.value.table.th.outline
257
- },
258
- td: {
259
- backgroundColor: e.value.table.td.backgroundColor,
260
- color: e.value.table.td.color,
261
- outline: e.value.table.td.outline
262
- },
263
- breakpoint: e.value.table.responsiveBreakpoint
264
- }, l = [
265
- e.value.translations.period,
266
- e.value.translations.open,
267
- e.value.translations.high,
268
- e.value.translations.low,
269
- e.value.translations.last,
270
- e.value.translations.volume
271
- ];
272
- return { head: l, body: t, config: o, colNames: l };
273
- }), L = r(!1);
274
- function et(t) {
275
- L.value = t, oe.value += 1;
276
- }
277
- function Ce() {
278
- w.value.showTable = !w.value.showTable;
279
- }
280
- function ze() {
281
- w.value.showTooltip = !w.value.showTooltip;
282
- }
283
- const j = r(!1);
284
- function te() {
285
- j.value = !j.value;
286
- }
287
- return Pe({
288
- generatePdf: me,
289
- generateCsv: $e,
290
- generateImage: be,
291
- toggleTable: Ce,
292
- toggleTooltip: ze,
293
- toggleAnnotator: te
294
- }), (t, o) => (s(), u("div", {
295
- ref_key: "candlestickChart",
296
- ref: M,
297
- class: Fe(`vue-ui-candlestick ${L.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
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_${x.value}`,
300
- onMouseenter: o[4] || (o[4] = () => n(de)(!0)),
301
- onMouseleave: o[5] || (o[5] = () => n(de)(!1))
302
- }, [
303
- e.value.userOptions.buttons.annotator ? (s(), A(n(Ue), {
304
- key: 0,
305
- svgRef: n(ce),
306
- backgroundColor: e.value.style.backgroundColor,
307
- color: e.value.style.color,
308
- active: j.value,
309
- onClose: te
310
- }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : c("", !0),
311
- Xe.value ? (s(), u("div", {
312
- key: 1,
313
- ref_key: "noTitle",
314
- ref: ne,
315
- class: "vue-data-ui-no-title-space",
316
- style: "height:36px; width: 100%;background:transparent"
317
- }, null, 512)) : c("", !0),
318
- e.value.style.title.text ? (s(), u("div", {
319
- key: 2,
320
- ref_key: "chartTitle",
321
- ref: ae,
322
- style: "width:100%;background:transparent"
323
- }, [
324
- (s(), A(St, {
325
- key: `title_${ve.value}`,
326
- config: {
327
- title: {
328
- cy: "candlestick-div-title",
329
- ...e.value.style.title
330
- },
331
- subtitle: {
332
- cy: "candlestick-div-subtitle",
333
- ...e.value.style.title.subtitle
334
- }
335
- }
336
- }, null, 8, ["config"]))
337
- ], 512)) : c("", !0),
338
- e.value.userOptions.show && P.value && (n(ye) || n(Q)) ? (s(), A(n(Ge), {
339
- ref_key: "details",
340
- ref: je,
341
- key: `user_options_${oe.value}`,
342
- backgroundColor: e.value.style.backgroundColor,
343
- color: e.value.style.color,
344
- isImaging: n(ge),
345
- isPrinting: n(pe),
346
- uid: x.value,
347
- hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.tooltip.show,
348
- hasPdf: e.value.userOptions.buttons.pdf,
349
- hasImg: e.value.userOptions.buttons.img,
350
- hasXls: e.value.userOptions.buttons.csv,
351
- hasTable: e.value.userOptions.buttons.table,
352
- hasFullscreen: e.value.userOptions.buttons.fullscreen,
353
- isFullscreen: L.value,
354
- isTooltip: w.value.showTooltip,
355
- titles: { ...e.value.userOptions.buttonTitles },
356
- chartElement: M.value,
357
- position: e.value.userOptions.position,
358
- hasAnnotator: e.value.userOptions.buttons.annotator,
359
- isAnnotation: j.value,
360
- callbacks: e.value.userOptions.callbacks,
361
- onToggleFullscreen: et,
362
- onGeneratePdf: n(me),
363
- onGenerateCsv: $e,
364
- onGenerateImage: n(be),
365
- onToggleTable: Ce,
366
- onToggleTooltip: ze,
367
- onToggleAnnotator: te,
368
- style: le({
369
- visibility: n(ye) ? n(Q) ? "visible" : "hidden" : "visible"
370
- })
371
- }, nt({ _: 2 }, [
372
- t.$slots.menuIcon ? {
373
- name: "menuIcon",
374
- fn: m(({ isOpen: l, color: a }) => [
375
- f(t.$slots, "menuIcon", N(T({ isOpen: l, color: a })), void 0, !0)
376
- ]),
377
- key: "0"
378
- } : void 0,
379
- t.$slots.optionTooltip ? {
380
- name: "optionTooltip",
381
- fn: m(() => [
382
- f(t.$slots, "optionTooltip", {}, void 0, !0)
383
- ]),
384
- key: "1"
385
- } : void 0,
386
- t.$slots.optionPdf ? {
387
- name: "optionPdf",
388
- fn: m(() => [
389
- f(t.$slots, "optionPdf", {}, void 0, !0)
390
- ]),
391
- key: "2"
392
- } : void 0,
393
- t.$slots.optionCsv ? {
394
- name: "optionCsv",
395
- fn: m(() => [
396
- f(t.$slots, "optionCsv", {}, void 0, !0)
397
- ]),
398
- key: "3"
399
- } : void 0,
400
- t.$slots.optionImg ? {
401
- name: "optionImg",
402
- fn: m(() => [
403
- f(t.$slots, "optionImg", {}, void 0, !0)
404
- ]),
405
- key: "4"
406
- } : void 0,
407
- t.$slots.optionTable ? {
408
- name: "optionTable",
409
- fn: m(() => [
410
- f(t.$slots, "optionTable", {}, void 0, !0)
411
- ]),
412
- key: "5"
413
- } : void 0,
414
- t.$slots.optionFullscreen ? {
415
- name: "optionFullscreen",
416
- fn: m(({ toggleFullscreen: l, isFullscreen: a }) => [
417
- f(t.$slots, "optionFullscreen", N(T({ toggleFullscreen: l, isFullscreen: a })), void 0, !0)
418
- ]),
419
- key: "6"
420
- } : void 0,
421
- t.$slots.optionAnnotator ? {
422
- name: "optionAnnotator",
423
- fn: m(({ toggleAnnotator: l, isAnnotator: a }) => [
424
- f(t.$slots, "optionAnnotator", N(T({ toggleAnnotator: l, isAnnotator: a })), void 0, !0)
425
- ]),
426
- key: "7"
427
- } : void 0
428
- ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) : c("", !0),
429
- P.value ? (s(), u("svg", {
430
- key: 4,
431
- ref_key: "svgRef",
432
- ref: ce,
433
- xmlns: n(ft),
434
- class: Fe({ "vue-data-ui-fullscreen--on": L.value, "vue-data-ui-fulscreen--off": !L.value }),
435
- viewBox: `0 0 ${y.value.width <= 0 ? 10 : y.value.width} ${y.value.height <= 0 ? 10 : y.value.height}`,
436
- style: le(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.color}`)
437
- }, [
438
- Re(n(Be)),
439
- t.$slots["chart-background"] ? (s(), u("foreignObject", {
440
- key: 0,
441
- x: i.value.left,
442
- y: i.value.top,
443
- width: Math.max(0.1, i.value.width),
444
- height: Math.max(0.1, i.value.height),
445
- style: {
446
- pointerEvents: "none"
447
- }
448
- }, [
449
- f(t.$slots, "chart-background", {}, void 0, !0)
450
- ], 8, Ft)) : c("", !0),
451
- b.value.length > 0 ? (s(), u("g", Rt, [
452
- v("defs", null, [
453
- v("linearGradient", {
454
- id: `bearish_gradient_${x.value}`,
455
- x2: "0%",
456
- y2: "100%"
457
- }, [
458
- v("stop", {
459
- offset: "0%",
460
- "stop-color": e.value.style.layout.candle.colors.bearish
461
- }, null, 8, Ot),
462
- v("stop", {
463
- offset: "50%",
464
- "stop-color": `${n(Y)(e.value.style.layout.candle.colors.bearish, 0.02)}DE`
465
- }, null, 8, Vt),
466
- v("stop", {
467
- offset: "100%",
468
- "stop-color": `${n(Y)(e.value.style.layout.candle.colors.bearish, 0.05)}66`
469
- }, null, 8, Pt)
470
- ], 8, Lt),
471
- v("linearGradient", {
472
- id: `bullish_gradient_${x.value}`,
473
- x2: "0%",
474
- y2: "100%"
475
- }, [
476
- v("stop", {
477
- offset: "0%",
478
- "stop-color": e.value.style.layout.candle.colors.bullish
479
- }, null, 8, Et),
480
- v("stop", {
481
- offset: "50%",
482
- "stop-color": `${n(Y)(e.value.style.layout.candle.colors.bullish, 0.02)}DE`
483
- }, null, 8, Bt),
484
- v("stop", {
485
- offset: "100%",
486
- "stop-color": `${n(Y)(e.value.style.layout.candle.colors.bullish, 0.05)}66`
487
- }, null, 8, Ut)
488
- ], 8, Mt)
489
- ]),
490
- e.value.style.layout.grid.show ? (s(), u("g", Dt, [
491
- v("line", {
492
- x1: i.value.left,
493
- x2: i.value.left,
494
- y1: i.value.top,
495
- y2: i.value.bottom,
496
- stroke: e.value.style.layout.grid.stroke,
497
- "stroke-width": e.value.style.layout.grid.strokeWidth,
498
- "stroke-linecap": "round"
499
- }, null, 8, Wt),
500
- v("line", {
501
- x1: i.value.left,
502
- x2: i.value.right,
503
- y1: i.value.bottom,
504
- y2: i.value.bottom,
505
- stroke: e.value.style.layout.grid.stroke,
506
- "stroke-width": e.value.style.layout.grid.strokeWidth,
507
- "stroke-linecap": "round"
508
- }, null, 8, Gt)
509
- ])) : c("", !0),
510
- e.value.style.layout.grid.yAxis.dataLabels.show ? (s(), u("g", Ht, [
511
- (s(!0), u(O, null, V(qe.value, (l, a) => (s(), u("g", null, [
512
- l.value >= _.value.min && l.value <= _.value.max ? (s(), u("line", {
513
- key: 0,
514
- x1: i.value.left,
515
- x2: i.value.left - 5,
516
- y1: l.y,
517
- y2: l.y,
518
- stroke: e.value.style.layout.grid.stroke,
519
- "stroke-width": e.value.style.layout.grid.strokeWidth,
520
- "stroke-linecap": "round"
521
- }, null, 8, jt)) : c("", !0),
522
- l.value >= _.value.min && l.value <= _.value.max ? (s(), u("text", {
523
- key: 1,
524
- x: i.value.left - 8 + e.value.style.layout.grid.yAxis.dataLabels.offsetX,
525
- y: l.y + y.value.yAxisFontSize / 3,
526
- "font-size": y.value.yAxisFontSize,
527
- "text-anchor": "end",
528
- fill: e.value.style.layout.grid.yAxis.dataLabels.color,
529
- "font-weight": e.value.style.layout.grid.yAxis.dataLabels.bold ? "bold" : "normal"
530
- }, U(e.value.style.layout.grid.yAxis.dataLabels.prefix) + " " + U(n(pt)(l.value) ? l.value.toFixed(e.value.style.layout.grid.yAxis.dataLabels.roundingValue) : "") + " " + U(e.value.style.layout.grid.yAxis.dataLabels.suffix), 9, Xt)) : c("", !0)
531
- ]))), 256))
532
- ])) : c("", !0),
533
- e.value.style.layout.grid.xAxis.dataLabels.show ? (s(), u("g", Yt, [
534
- (s(!0), u(O, null, V(Je.value, (l, a) => (s(), u("g", null, [
535
- v("text", {
536
- transform: `translate(${i.value.left + d.value * a + d.value / 2}, ${i.value.bottom + y.value.xAxisFontSize * 2 + e.value.style.layout.grid.xAxis.dataLabels.offsetY}), rotate(${e.value.style.layout.grid.xAxis.dataLabels.rotation})`,
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
- "font-size": y.value.xAxisFontSize,
539
- fill: e.value.style.layout.grid.xAxis.dataLabels.color,
540
- "font-weight": e.value.style.layout.grid.xAxis.dataLabels.bold ? "bold" : "normal"
541
- }, U(l), 9, qt)
542
- ]))), 256))
543
- ])) : c("", !0),
544
- v("g", null, [
545
- (s(!0), u(O, null, V(b.value, (l, a) => (s(), u("g", null, [
546
- v("line", {
547
- x1: l.open.x,
548
- x2: l.open.x,
549
- y1: l.high.y,
550
- y2: l.low.y,
551
- stroke: e.value.style.layout.wick.stroke,
552
- "stroke-width": e.value.style.layout.wick.strokeWidth,
553
- "stroke-linecap": "round"
554
- }, null, 8, Jt),
555
- e.value.style.layout.wick.extremity.shape === "circle" ? (s(), u("g", Kt, [
556
- v("circle", {
557
- cx: l.high.x,
558
- cy: l.high.y,
559
- r: e.value.style.layout.wick.extremity.size === "auto" ? d.value / 20 : e.value.style.layout.wick.extremity.size,
560
- fill: e.value.style.layout.wick.extremity.color
561
- }, null, 8, Qt),
562
- v("circle", {
563
- cx: l.low.x,
564
- cy: l.low.y,
565
- r: e.value.style.layout.wick.extremity.size === "auto" ? d.value / 20 : e.value.style.layout.wick.extremity.size,
566
- fill: e.value.style.layout.wick.extremity.color
567
- }, null, 8, Zt)
568
- ])) : c("", !0),
569
- e.value.style.layout.wick.extremity.shape === "line" ? (s(), u("g", el, [
570
- v("line", {
571
- x1: l.high.x - (e.value.style.layout.wick.extremity.size === "auto" ? d.value * e.value.style.layout.candle.widthRatio : e.value.style.layout.wick.extremity.size) / 2,
572
- x2: l.high.x + (e.value.style.layout.wick.extremity.size === "auto" ? d.value * e.value.style.layout.candle.widthRatio : e.value.style.layout.wick.extremity.size) / 2,
573
- y1: l.high.y,
574
- y2: l.high.y,
575
- stroke: e.value.style.layout.wick.extremity.color,
576
- "stroke-width": e.value.style.layout.wick.strokeWidth,
577
- "stroke-linecap": "round"
578
- }, null, 8, tl),
579
- v("line", {
580
- x1: l.low.x - (e.value.style.layout.wick.extremity.size === "auto" ? d.value * e.value.style.layout.candle.widthRatio : e.value.style.layout.wick.extremity.size) / 2,
581
- x2: l.low.x + (e.value.style.layout.wick.extremity.size === "auto" ? d.value * e.value.style.layout.candle.widthRatio : e.value.style.layout.wick.extremity.size) / 2,
582
- y1: l.low.y,
583
- y2: l.low.y,
584
- stroke: e.value.style.layout.wick.extremity.color,
585
- "stroke-width": e.value.style.layout.wick.strokeWidth,
586
- "stroke-linecap": "round"
587
- }, null, 8, ll)
588
- ])) : c("", !0)
589
- ]))), 256))
590
- ]),
591
- v("g", null, [
592
- (s(!0), u(O, null, V(b.value, (l, a) => (s(), u("rect", {
593
- x: l.open.x - d.value / 2 + d.value * (1 - e.value.style.layout.candle.widthRatio) / 2,
594
- y: l.isBullish ? l.last.y : l.open.y,
595
- height: Math.abs(l.last.y - l.open.y) <= 0 ? 1e-4 : Math.abs(l.last.y - l.open.y),
596
- width: d.value * e.value.style.layout.candle.widthRatio <= 0 ? 1e-4 : d.value * e.value.style.layout.candle.widthRatio,
597
- fill: e.value.style.layout.candle.gradient.underlayer,
598
- rx: e.value.style.layout.candle.borderRadius,
599
- stroke: "none"
600
- }, null, 8, ol))), 256)),
601
- (s(!0), u(O, null, V(b.value, (l, a) => (s(), u("rect", {
602
- x: l.open.x - d.value / 2 + d.value * (1 - e.value.style.layout.candle.widthRatio) / 2,
603
- y: l.isBullish ? l.last.y : l.open.y,
604
- height: Math.abs(l.last.y - l.open.y) <= 0 ? 1e-4 : Math.abs(l.last.y - l.open.y),
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_${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
- rx: e.value.style.layout.candle.borderRadius,
608
- stroke: e.value.style.layout.candle.stroke,
609
- "stroke-width": e.value.style.layout.candle.strokeWidth,
610
- "stroke-linecap": "round",
611
- "stroke-linejoin": "round"
612
- }, null, 8, al))), 256))
613
- ]),
614
- v("g", null, [
615
- (s(!0), u(O, null, V(b.value, (l, a) => (s(), u("rect", {
616
- x: i.value.left + a * d.value,
617
- y: i.value.top,
618
- height: i.value.height <= 0 ? 1e-4 : i.value.height,
619
- width: d.value <= 0 ? 1e-4 : d.value,
620
- fill: K.value === a ? n(gt)(e.value.style.layout.selector.color, e.value.style.layout.selector.opacity) : "transparent",
621
- onMouseover: (C) => Ke(a, l),
622
- onMouseleave: o[0] || (o[0] = (C) => {
623
- K.value = void 0, q.value = !1;
624
- })
625
- }, null, 40, sl))), 256))
626
- ])
627
- ])) : c("", !0),
628
- f(t.$slots, "svg", { svg: y.value }, void 0, !0)
629
- ], 14, It)) : c("", !0),
630
- t.$slots.watermark ? (s(), u("div", ul, [
631
- f(t.$slots, "watermark", N(T({ isPrinting: n(pe) || n(ge) })), void 0, !0)
632
- ])) : c("", !0),
633
- P.value ? c("", !0) : (s(), A(n(De), {
634
- key: 6,
635
- config: {
636
- type: "candlesticks",
637
- style: {
638
- backgroundColor: e.value.style.backgroundColor,
639
- candlesticks: {
640
- axis: {
641
- color: "#CCCCCC"
642
- },
643
- candle: {
644
- color: "#CCCCCC"
645
- }
646
- }
647
- }
648
- }
649
- }, null, 8, ["config"])),
650
- e.value.style.zoom.show && P.value ? (s(), u("div", {
651
- key: 7,
652
- ref_key: "chartSlicer",
653
- ref: ue
654
- }, [
655
- (s(), A(At, {
656
- ref_key: "slicerComponent",
657
- ref: R,
658
- key: `slicer_${W.value}`,
659
- background: e.value.style.zoom.color,
660
- borderColor: e.value.style.backgroundColor,
661
- fontSize: e.value.style.zoom.fontSize,
662
- useResetSlot: e.value.style.zoom.useResetSlot,
663
- labelLeft: z.dataset[p.value.start] ? z.dataset[p.value.start][0] : z.dataset[0][0],
664
- labelRight: z.dataset[p.value.end - 1] ? z.dataset[p.value.end - 1][0] : z.dataset.at(-1)[0],
665
- textColor: e.value.style.color,
666
- inputColor: e.value.style.zoom.color,
667
- selectColor: e.value.style.zoom.highlightColor,
668
- max: E.value,
669
- min: 0,
670
- valueStart: p.value.start,
671
- valueEnd: p.value.end,
672
- start: p.value.start,
673
- "onUpdate:start": o[1] || (o[1] = (l) => p.value.start = l),
674
- end: p.value.end,
675
- "onUpdate:end": o[2] || (o[2] = (l) => p.value.end = l),
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 : E.value,
678
- enableRangeHandles: e.value.style.zoom.enableRangeHandles,
679
- enableSelectionDrag: e.value.style.zoom.enableSelectionDrag,
680
- onReset: Qe
681
- }, {
682
- "reset-action": m(({ reset: l }) => [
683
- f(t.$slots, "reset-action", N(T({ reset: l })), void 0, !0)
684
- ]),
685
- _: 3
686
- }, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"]))
687
- ], 512)) : c("", !0),
688
- v("div", {
689
- ref_key: "chartLegend",
690
- ref: se
691
- }, [
692
- f(t.$slots, "legend", { legend: b.value }, void 0, !0)
693
- ], 512),
694
- t.$slots.source ? (s(), u("div", {
695
- key: 8,
696
- ref_key: "source",
697
- ref: ie,
698
- dir: "auto"
699
- }, [
700
- f(t.$slots, "source", {}, void 0, !0)
701
- ], 512)) : c("", !0),
702
- Re(n(We), {
703
- show: w.value.showTooltip && q.value,
704
- backgroundColor: e.value.style.tooltip.backgroundColor,
705
- color: e.value.style.tooltip.color,
706
- borderRadius: e.value.style.tooltip.borderRadius,
707
- borderColor: e.value.style.tooltip.borderColor,
708
- borderWidth: e.value.style.tooltip.borderWidth,
709
- fontSize: e.value.style.tooltip.fontSize,
710
- backgroundOpacity: e.value.style.tooltip.backgroundOpacity,
711
- position: e.value.style.tooltip.position,
712
- offsetY: e.value.style.tooltip.offsetY,
713
- parent: M.value,
714
- content: J.value,
715
- isFullscreen: L.value,
716
- isCustom: e.value.style.tooltip.customFormat && typeof e.value.style.tooltip.customFormat == "function"
717
- }, {
718
- "tooltip-before": m(() => [
719
- f(t.$slots, "tooltip-before", N(T({ ...ee.value })), void 0, !0)
720
- ]),
721
- "tooltip-after": m(() => [
722
- f(t.$slots, "tooltip-after", N(T({ ...ee.value })), void 0, !0)
723
- ]),
724
- _: 3
725
- }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
726
- P.value ? (s(), A(n(Me), {
727
- key: 9,
728
- hideDetails: "",
729
- config: {
730
- open: w.value.showTable,
731
- maxHeight: 1e4,
732
- body: {
733
- backgroundColor: e.value.style.backgroundColor,
734
- color: e.value.style.color
735
- },
736
- head: {
737
- backgroundColor: e.value.style.backgroundColor,
738
- color: e.value.style.color
739
- }
740
- }
741
- }, {
742
- content: m(() => [
743
- (s(), A(n(Ee), {
744
- key: `table_${re.value}`,
745
- colNames: H.value.colNames,
746
- head: H.value.head,
747
- body: H.value.body,
748
- config: H.value.config,
749
- title: `${e.value.style.title.text}${e.value.style.title.subtitle.text ? ` : ${e.value.style.title.subtitle.text}` : ""}`,
750
- onClose: o[3] || (o[3] = (l) => w.value.showTable = !1)
751
- }, {
752
- th: m(({ th: l }) => [
753
- rt(U(l), 1)
754
- ]),
755
- td: m(({ td: l }) => [
756
- v("div", { innerHTML: l }, null, 8, il)
757
- ]),
758
- _: 1
759
- }, 8, ["colNames", "head", "body", "config", "title"]))
760
- ]),
761
- _: 1
762
- }, 8, ["config"])) : c("", !0)
763
- ], 46, Tt));
764
- }
765
- }, xl = /* @__PURE__ */ Nt(nl, [["__scopeId", "data-v-0dfbd2f2"]]);
766
- export {
767
- xl as default
768
- };