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