vue-data-ui 3.0.0-next.28 → 3.0.0-next.29
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/dist/{Arrow-FEiXAF1f.js → Arrow-CiuwQF8m.js} +1 -1
- package/dist/{BaseDraggableDialog-B0E68Ss_.js → BaseDraggableDialog-Cu_9Wh21.js} +2 -2
- package/dist/{BaseIcon-CNk8ZQxC.js → BaseIcon-Ds5wm_lU.js} +1 -1
- package/dist/{ColorPicker-Bh0sQqJU.js → ColorPicker-BoUMEIs2.js} +2 -2
- package/dist/{DataTable-BtWOpycK.js → DataTable-BYNUm5Gf.js} +2 -2
- package/dist/{Legend-DTMU8MPG.js → Legend-BisCjbG2.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DFdkMS2K.js → NonSvgPenAndPaper-CD5eBRSn.js} +3 -3
- package/dist/{PackageVersion-BcAEQLLi.js → PackageVersion-BzwYjMOW.js} +1 -1
- package/dist/{PenAndPaper-CmO7bEfi.js → PenAndPaper-DTcaSmnI.js} +3 -3
- package/dist/{Shape-CQVlnhqo.js → Shape-EL8kKFHT.js} +1 -1
- package/dist/{Slicer-DVW32UTi.js → Slicer-jLSY0Lnb.js} +2 -2
- package/dist/{SparkTooltip-BKSFRids.js → SparkTooltip-CZY7wxg6.js} +7 -7
- package/dist/{Title-CGN9QiYI.js → Title-DONRFCZQ.js} +1 -1
- package/dist/{Tooltip-mMwokTkO.js → Tooltip-cz9CUpDk.js} +1 -1
- package/dist/{UserOptions-DYn2297n.js → UserOptions-By5PgYu0.js} +2 -2
- package/dist/{dom-to-png-BVzHEl2w.js → dom-to-png-Ds-_cp6X.js} +1 -1
- package/dist/{img-ChuzqrF3.js → img-D3r3OOFG.js} +1 -1
- package/dist/{index-DwurWOmm.js → index-Drw6d_8M.js} +471 -446
- package/dist/{pdf-C9A0Wlta.js → pdf-CVT2uMk-.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +11 -1
- package/dist/types/vue-data-ui.d.ts +11 -1
- package/dist/{useNestedProp-CFAjw-uI.js → useNestedProp-DU20xu9g.js} +1 -1
- package/dist/{usePrinter-BvsDO5CU.js → usePrinter-QRK7y9fG.js} +2 -2
- package/dist/{vue-data-ui-DnH55d6o.js → vue-data-ui-DuuCpgPB.js} +64 -64
- package/dist/vue-data-ui.js +14 -14
- package/dist/{vue-ui-3d-bar-BIPJDf4a.js → vue-ui-3d-bar-CWlFg9DD.js} +6 -6
- package/dist/{vue-ui-accordion-C7ba8AVe.js → vue-ui-accordion-DFtpDmPO.js} +3 -3
- package/dist/{vue-ui-age-pyramid-CIg_Ehbq.js → vue-ui-age-pyramid-is2_9zCy.js} +6 -6
- package/dist/{vue-ui-annotator-C3nqKGzo.js → vue-ui-annotator-Do3nQwyq.js} +2 -2
- package/dist/{vue-ui-bullet-DK3bEHJG.js → vue-ui-bullet-BCcEWGfk.js} +7 -7
- package/dist/{vue-ui-candlestick-HXpLcsDU.js → vue-ui-candlestick-D75PUpAs.js} +368 -356
- package/dist/{vue-ui-carousel-table-BnplX7KO.js → vue-ui-carousel-table-293Ej8CA.js} +4 -4
- package/dist/{vue-ui-chestnut-sQskMYei.js → vue-ui-chestnut-CqevC3UI.js} +5 -5
- package/dist/{vue-ui-chord-CT-viUg5.js → vue-ui-chord-Rp3K6Lii.js} +8 -8
- package/dist/{vue-ui-circle-pack-BEjSuhTw.js → vue-ui-circle-pack-CXtlLhzT.js} +26 -26
- package/dist/{vue-ui-cursor-DP40Z3Pg.js → vue-ui-cursor-DMJ3qvUm.js} +2 -2
- package/dist/{vue-ui-dashboard-CoukhCPg.js → vue-ui-dashboard-CRBPcH6A.js} +62 -62
- package/dist/{vue-ui-digits-FLazCL03.js → vue-ui-digits-DH-Q4hVR.js} +2 -2
- package/dist/{vue-ui-donut-C_f5VCo9.js → vue-ui-donut-SfwmwqtT.js} +15 -15
- package/dist/{vue-ui-donut-evolution-C8eGM4Wc.js → vue-ui-donut-evolution-D0_XaBt0.js} +8 -8
- package/dist/{vue-ui-dumbbell-Bcy0H0ej.js → vue-ui-dumbbell-DstzNHet.js} +7 -7
- package/dist/{vue-ui-flow-PBHoj24k.js → vue-ui-flow-CINFQqZt.js} +7 -7
- package/dist/{vue-ui-funnel--s2L_i_f.js → vue-ui-funnel-BkiTiKQd.js} +6 -6
- package/dist/{vue-ui-galaxy-5iik4XcF.js → vue-ui-galaxy-DBFG7HdS.js} +5 -5
- package/dist/{vue-ui-gauge-Cc8XdZEO.js → vue-ui-gauge-CpitXRT_.js} +6 -6
- package/dist/{vue-ui-gizmo-D9YdWF0U.js → vue-ui-gizmo-qNDblGTz.js} +3 -3
- package/dist/{vue-ui-heatmap-CNuiN6e-.js → vue-ui-heatmap-B_oEnnp5.js} +7 -7
- package/dist/{vue-ui-history-plot-DTv_F82N.js → vue-ui-history-plot-C0u_r6yx.js} +7 -7
- package/dist/{vue-ui-kpi-pLPQLsiF.js → vue-ui-kpi-C3yPBtHe.js} +3 -3
- package/dist/{vue-ui-mini-loader-CDYKGa7j.js → vue-ui-mini-loader-DKo5mbDP.js} +2 -2
- package/dist/{vue-ui-molecule-BV9JjR8F.js → vue-ui-molecule-B2mjoO1f.js} +5 -5
- package/dist/{vue-ui-mood-radar-Cknw3hKt.js → vue-ui-mood-radar-Bz9hnSwG.js} +7 -7
- package/dist/{vue-ui-nested-donuts-C85ZFJ_q.js → vue-ui-nested-donuts-BG1-HO_j.js} +9 -9
- package/dist/{vue-ui-onion-C9cZNyC3.js → vue-ui-onion-Bd8kKYgU.js} +7 -7
- package/dist/{vue-ui-parallel-coordinate-plot-D7H2zhCF.js → vue-ui-parallel-coordinate-plot-AlccjyUy.js} +8 -8
- package/dist/{vue-ui-quadrant-Cfvu8-h1.js → vue-ui-quadrant-lwBwsQGQ.js} +8 -8
- package/dist/{vue-ui-quick-chart-B3d2FDBP.js → vue-ui-quick-chart-ptglu1rg.js} +6 -6
- package/dist/{vue-ui-radar-CQcjyxwQ.js → vue-ui-radar-CvfWH-X1.js} +7 -7
- package/dist/{vue-ui-rating-DEDPYi2F.js → vue-ui-rating-B62Mouk9.js} +2 -2
- package/dist/{vue-ui-relation-circle-swVQdvQX.js → vue-ui-relation-circle-Dz5xbuMA.js} +6 -6
- package/dist/{vue-ui-ridgeline-DU85JJKL.js → vue-ui-ridgeline-rihpGXpL.js} +8 -8
- package/dist/{vue-ui-rings-CwVJAUv8.js → vue-ui-rings-Bvkl_gGE.js} +8 -8
- package/dist/{vue-ui-scatter-Dqltdynp.js → vue-ui-scatter-iiBD78Rv.js} +8 -8
- package/dist/{vue-ui-skeleton-C8QYEKxX.js → vue-ui-skeleton-Nk3lNLyJ.js} +3 -3
- package/dist/{vue-ui-smiley-BiPXfmqf.js → vue-ui-smiley-DW9VJtj5.js} +2 -2
- package/dist/{vue-ui-spark-trend-DkyWiTg0.js → vue-ui-spark-trend-CGVoppzj.js} +3 -3
- package/dist/{vue-ui-sparkbar-CEjHYHRg.js → vue-ui-sparkbar-DmrLheol.js} +3 -3
- package/dist/{vue-ui-sparkgauge-CqsLMGbd.js → vue-ui-sparkgauge-CKperP9m.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-BQeOmWdJ.js → vue-ui-sparkhistogram-EzDfHOa5.js} +4 -4
- package/dist/vue-ui-sparkline-B37Xfywa.js +489 -0
- package/dist/{vue-ui-sparkstackbar-WMpYFqmu.js → vue-ui-sparkstackbar-Cm6GOcMS.js} +3 -3
- package/dist/{vue-ui-stackbar-BvA1pWBy.js → vue-ui-stackbar-uwRm8VIN.js} +9 -9
- package/dist/{vue-ui-strip-plot-sPsAx0ly.js → vue-ui-strip-plot-Ct3KViHW.js} +7 -7
- package/dist/{vue-ui-table-DFIQk2V5.js → vue-ui-table-DK2l7UuW.js} +3 -3
- package/dist/{vue-ui-table-heatmap-DP9OWEX0.js → vue-ui-table-heatmap-ClNGX-vt.js} +5 -5
- package/dist/{vue-ui-table-sparkline-DQBQeejJ.js → vue-ui-table-sparkline-uOKEV4lQ.js} +4 -4
- package/dist/{vue-ui-thermometer-BfPYbE4s.js → vue-ui-thermometer-7P2C_tYI.js} +6 -6
- package/dist/{vue-ui-timer-B7vfnEvV.js → vue-ui-timer-91k48mL9.js} +5 -5
- package/dist/{vue-ui-tiremarks-BBSUpVrJ.js → vue-ui-tiremarks-Q7YTYW8d.js} +6 -6
- package/dist/{vue-ui-treemap-BKrRAwDR.js → vue-ui-treemap-Bec-ZUUL.js} +8 -8
- package/dist/{vue-ui-vertical-bar-BcaY2dnD.js → vue-ui-vertical-bar-BYuzy6qw.js} +9 -9
- package/dist/{vue-ui-waffle-CBPTLkE9.js → vue-ui-waffle-C2iKJKJU.js} +8 -8
- package/dist/{vue-ui-wheel-CzCd72Xa.js → vue-ui-wheel-qtyTFtKC.js} +6 -6
- package/dist/{vue-ui-word-cloud-DQrrAfUw.js → vue-ui-word-cloud-BKF4BkvX.js} +6 -6
- package/dist/{vue-ui-world-CSnvYru5.js → vue-ui-world-DfHQKtGj.js} +6 -6
- package/dist/{vue-ui-xy-D1ZyohhW.js → vue-ui-xy-Bq3enVyu.js} +8 -8
- package/dist/{vue-ui-xy-canvas-CQWhSrqq.js → vue-ui-xy-canvas-Cq0zmNY0.js} +8 -8
- package/package.json +1 -1
- package/dist/vue-ui-sparkline-BzskaXWk.js +0 -459
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { u as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import
|
|
10
|
-
import { S as
|
|
11
|
-
import { u as
|
|
12
|
-
import
|
|
13
|
-
import { u as
|
|
14
|
-
import { _ as
|
|
15
|
-
const
|
|
1
|
+
import { defineAsyncComponent as D, computed as b, ref as r, toRefs as Lt, watch as pe, shallowRef as Xe, onMounted as Tt, onBeforeUnmount as je, watchEffect as It, nextTick as be, createElementBlock as i, openBlock as s, unref as u, normalizeStyle as me, normalizeClass as S, createBlock as N, createCommentVNode as g, createElementVNode as d, createVNode as Ye, createSlots as Ft, withCtx as x, renderSlot as m, normalizeProps as P, guardReactiveProps as V, Fragment as E, renderList as B, toDisplayString as Q, createTextVNode as Rt } from "vue";
|
|
2
|
+
import { u as Ot, c as Nt, A as Pt, a as Vt, C as Z, o as qe, e as M, D as Et, v as X, f as L, X as Bt, w as ee, s as Mt, E as Je, q as Ut, r as Wt, x as Dt, y as Ht } from "./index-Drw6d_8M.js";
|
|
3
|
+
import { t as Ke, u as Gt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Qe } from "./useNestedProp-DU20xu9g.js";
|
|
5
|
+
import { u as Xt } from "./usePrinter-QRK7y9fG.js";
|
|
6
|
+
import { u as jt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
|
+
import { u as Yt } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
+
import { u as qt, B as Jt } from "./BaseScanner-DIK2NTdp.js";
|
|
9
|
+
import Kt from "./Title-DONRFCZQ.js";
|
|
10
|
+
import { S as Qt } from "./Slicer-jLSY0Lnb.js";
|
|
11
|
+
import { u as Zt } from "./useTimeLabels-DFkUfjfs.js";
|
|
12
|
+
import el from "./img-D3r3OOFG.js";
|
|
13
|
+
import { u as tl } from "./useTimeLabelCollider-V7AOiPLB.js";
|
|
14
|
+
import { _ as ll } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
|
+
const al = ["id"], ol = ["xmlns", "aria-label", "viewBox"], sl = ["x", "y", "width", "height"], ul = { key: 1 }, il = ["id"], nl = ["stop-color"], rl = ["stop-color"], vl = ["stop-color"], dl = ["id"], yl = ["stop-color"], cl = ["stop-color"], hl = ["stop-color"], fl = { key: 0 }, gl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], pl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], bl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ml = ["x", "y", "font-size", "fill", "font-weight"], xl = ["transform", "text-anchor", "font-size", "fill", "font-weight"], kl = ["transform", "text-anchor", "font-size", "fill", "font-weight"], wl = ["x", "y", "width", "height", "fill", "rx"], Al = { key: 0 }, _l = ["cx", "cy", "r", "fill"], Cl = ["cx", "cy", "r", "fill"], $l = { key: 1 }, zl = ["x", "y", "width", "height", "rx", "fill"], Sl = ["x", "y", "width", "height", "fill", "rx"], Ll = ["x", "y", "height", "width", "fill", "rx"], Tl = ["x", "y", "height", "width", "fill", "rx", "stroke", "stroke-width"], Il = ["x", "y", "height", "width", "fill", "onMouseover"], Fl = {
|
|
16
16
|
key: 4,
|
|
17
17
|
class: "vue-data-ui-watermark"
|
|
18
|
-
},
|
|
18
|
+
}, Rl = ["innerHTML"], Ol = {
|
|
19
19
|
__name: "vue-ui-candlestick",
|
|
20
20
|
props: {
|
|
21
21
|
config: {
|
|
@@ -31,14 +31,14 @@ const tl = ["id"], ll = ["xmlns", "aria-label", "viewBox"], al = ["x", "y", "wid
|
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
},
|
|
34
|
-
setup(
|
|
35
|
-
const
|
|
36
|
-
...
|
|
34
|
+
setup(Ze, { expose: et }) {
|
|
35
|
+
const tt = D(() => import("./vue-ui-accordion-DFtpDmPO.js")), lt = D(() => import("./DataTable-BYNUm5Gf.js")), at = D(() => import("./PackageVersion-BzwYjMOW.js")), ot = D(() => import("./PenAndPaper-DTcaSmnI.js")), st = D(() => import("./Tooltip-cz9CUpDk.js")), ut = D(() => import("./UserOptions-By5PgYu0.js")), { vue_ui_candlestick: it } = Ot(), c = Ze, te = b(() => !!c.dataset && c.dataset.length), $ = r(!1), le = r(null), w = r(Nt()), nt = r(null), ae = r(!1), oe = r(""), se = r(void 0), xe = r(0), T = r(null), ke = r(null), we = r(null), Ae = r(null), _e = r(null), Ce = r(null), j = r(0), $e = r(0), ze = r(0), ue = r(null), H = r(null), e = r(re()), { loading: z, FINAL_DATASET: A, manualLoading: ie } = qt({
|
|
36
|
+
...Lt(c),
|
|
37
37
|
FINAL_CONFIG: e,
|
|
38
|
-
prepareConfig:
|
|
38
|
+
prepareConfig: re,
|
|
39
39
|
callback: () => {
|
|
40
40
|
Promise.resolve().then(async () => {
|
|
41
|
-
await
|
|
41
|
+
await ce();
|
|
42
42
|
});
|
|
43
43
|
},
|
|
44
44
|
skeletonDataset: [
|
|
@@ -49,13 +49,13 @@ const tl = ["id"], ll = ["xmlns", "aria-label", "viewBox"], al = ["x", "y", "wid
|
|
|
49
49
|
[17145216e5, 50, 130, 30, 100, 210],
|
|
50
50
|
[17172e8, 80, 210, 50, 150, 340],
|
|
51
51
|
[1719792e6, 130, 340, 80, 280, 550],
|
|
52
|
-
[17224704e5, 210, 550, 130,
|
|
52
|
+
[17224704e5, 210, 550, 130, 450, 890],
|
|
53
53
|
[17251488e5, 340, 890, 210, 750, 1440],
|
|
54
54
|
[17277408e5, 550, 1440, 340, 1230, 2330],
|
|
55
55
|
[17304192e5, 890, 2330, 550, 1950, 3770],
|
|
56
56
|
[17330112e5, 1440, 3770, 890, 3200, 5100]
|
|
57
57
|
],
|
|
58
|
-
skeletonConfig:
|
|
58
|
+
skeletonConfig: Pt({
|
|
59
59
|
defaultConfig: e.value,
|
|
60
60
|
userConfig: {
|
|
61
61
|
useCssAnimation: !1,
|
|
@@ -96,159 +96,164 @@ const tl = ["id"], ll = ["xmlns", "aria-label", "viewBox"], al = ["x", "y", "wid
|
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
})
|
|
99
|
-
}), { userOptionsVisible:
|
|
100
|
-
function
|
|
101
|
-
const t =
|
|
99
|
+
}), { userOptionsVisible: ne, setUserOptionsVisibility: Se, keepUserOptionState: Le } = jt({ config: e.value }), { svgRef: Te } = Yt({ config: e.value.style.title });
|
|
100
|
+
function re() {
|
|
101
|
+
const t = Qe({
|
|
102
102
|
userConfig: c.config,
|
|
103
|
-
defaultConfig:
|
|
103
|
+
defaultConfig: it
|
|
104
104
|
});
|
|
105
105
|
let a = {};
|
|
106
106
|
return t.theme ? a = {
|
|
107
|
-
...
|
|
108
|
-
userConfig:
|
|
107
|
+
...Qe({
|
|
108
|
+
userConfig: Vt.vue_ui_candlestick[t.theme] || c.config,
|
|
109
109
|
defaultConfig: t
|
|
110
110
|
})
|
|
111
|
-
} : a = t, c.config &&
|
|
111
|
+
} : a = t, c.config && Z(c.config, "style.zoom.startIndex") ? a.style.zoom.startIndex = c.config.style.zoom.startIndex : a.style.zoom.startIndex = null, c.config && Z(c.config, "style.zoom.endIndex") ? a.style.zoom.endIndex = c.config.style.zoom.endIndex : a.style.zoom.endIndex = null, c.config && Z(c.config, "style.layout.grid.yAxis.scale.min") ? a.style.layout.grid.yAxis.scale.min = c.config.style.layout.grid.yAxis.scale.min : a.style.layout.grid.yAxis.scale.min = null, c.config && Z(c.config, "style.layout.grid.yAxis.scale.max") ? a.style.layout.grid.yAxis.scale.max = c.config.style.layout.grid.yAxis.scale.max : a.style.layout.grid.yAxis.scale.max = null, a;
|
|
112
112
|
}
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
}, { deep: !0 }),
|
|
116
|
-
Array.isArray(t) && t.length > 0 && (
|
|
113
|
+
pe(() => c.config, (t) => {
|
|
114
|
+
z.value || (e.value = re()), ne.value = !e.value.userOptions.showOnChartHover, Ie(), j.value += 1, ze.value += 1, $e.value += 1, _.value.showTable = e.value.table.show, _.value.showTooltip = e.value.style.tooltip.show;
|
|
115
|
+
}, { deep: !0 }), pe(() => c.dataset, (t) => {
|
|
116
|
+
Array.isArray(t) && t.length > 0 && (ie.value = !1), h.value.start = 0, h.value.end = t.length, j.value += 1;
|
|
117
117
|
}, { deep: !0 });
|
|
118
118
|
const y = r({
|
|
119
119
|
height: e.value.style.height,
|
|
120
120
|
width: e.value.style.width,
|
|
121
121
|
xAxisFontSize: e.value.style.layout.grid.xAxis.dataLabels.fontSize,
|
|
122
122
|
yAxisFontSize: e.value.style.layout.grid.yAxis.dataLabels.fontSize
|
|
123
|
-
}),
|
|
124
|
-
|
|
125
|
-
|
|
123
|
+
}), I = Xe(null), U = Xe(null);
|
|
124
|
+
Tt(() => {
|
|
125
|
+
Ie();
|
|
126
126
|
});
|
|
127
|
-
const
|
|
128
|
-
function
|
|
129
|
-
if (
|
|
127
|
+
const F = b(() => !!e.value.debug);
|
|
128
|
+
function Ie() {
|
|
129
|
+
if (qe(c.dataset) && (M({
|
|
130
130
|
componentName: "VueUiCandlestick",
|
|
131
131
|
type: "dataset",
|
|
132
|
-
debug:
|
|
133
|
-
}),
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
132
|
+
debug: F.value
|
|
133
|
+
}), ie.value = !0), qe(c.dataset) || (ie.value = e.value.loading), setTimeout(() => {
|
|
134
|
+
$.value = !0;
|
|
135
|
+
}, 10), e.value.responsive) {
|
|
136
|
+
const a = Ke(() => {
|
|
137
|
+
$.value = !1;
|
|
138
|
+
const { width: l, height: o } = Gt({
|
|
139
|
+
chart: T.value,
|
|
140
|
+
title: e.value.style.title.text ? ke.value : null,
|
|
141
|
+
slicer: Ae.value,
|
|
142
|
+
legend: we.value,
|
|
143
|
+
source: _e.value,
|
|
144
|
+
noTitle: Ce.value
|
|
142
145
|
});
|
|
143
146
|
requestAnimationFrame(() => {
|
|
144
|
-
y.value.width = l, y.value.height = o - 12, e.value.responsiveProportionalSizing ? (y.value.xAxisFontSize =
|
|
147
|
+
y.value.width = l, y.value.height = o - 12, e.value.responsiveProportionalSizing ? (y.value.xAxisFontSize = Je({
|
|
145
148
|
relator: Math.min(l, o),
|
|
146
149
|
adjuster: e.value.style.width,
|
|
147
150
|
source: e.value.style.layout.grid.xAxis.dataLabels.fontSize,
|
|
148
151
|
threshold: 6,
|
|
149
152
|
fallback: 6
|
|
150
|
-
}), y.value.yAxisFontSize =
|
|
153
|
+
}), y.value.yAxisFontSize = Je({
|
|
151
154
|
relator: Math.min(l, o),
|
|
152
155
|
adjuster: e.value.style.width,
|
|
153
156
|
source: e.value.style.layout.grid.yAxis.dataLabels.fontSize,
|
|
154
157
|
threshold: 6,
|
|
155
158
|
fallback: 6
|
|
156
|
-
})) : (y.value.xAxisFontSize = e.value.style.layout.grid.xAxis.dataLabels.fontSize, y.value.yAxisFontSize = e.value.style.layout.grid.yAxis.dataLabels.fontSize)
|
|
159
|
+
})) : (y.value.xAxisFontSize = e.value.style.layout.grid.xAxis.dataLabels.fontSize, y.value.yAxisFontSize = e.value.style.layout.grid.yAxis.dataLabels.fontSize), le.value && clearTimeout(le.value), le.value = setTimeout(() => {
|
|
160
|
+
$.value = !0;
|
|
161
|
+
}, 10);
|
|
157
162
|
});
|
|
158
163
|
});
|
|
159
|
-
|
|
164
|
+
I.value && (U.value && I.value.unobserve(U.value), I.value.disconnect()), I.value = new ResizeObserver(a), U.value = T.value.parentNode, I.value.observe(U.value);
|
|
160
165
|
}
|
|
161
|
-
|
|
166
|
+
ce();
|
|
162
167
|
}
|
|
163
|
-
|
|
164
|
-
|
|
168
|
+
je(() => {
|
|
169
|
+
I.value && (U.value && I.value.unobserve(U.value), I.value.disconnect());
|
|
165
170
|
});
|
|
166
|
-
const { isPrinting:
|
|
171
|
+
const { isPrinting: Fe, isImaging: Re, generatePdf: Oe, generateImage: Ne } = Xt({
|
|
167
172
|
elementId: `vue-ui-candlestick_${w.value}`,
|
|
168
173
|
fileName: e.value.style.title.text || "vue-ui-candlestick",
|
|
169
174
|
options: e.value.userOptions.print
|
|
170
|
-
}),
|
|
175
|
+
}), rt = b(() => e.value.userOptions.show && !e.value.style.title.text), _ = r({
|
|
171
176
|
showTable: e.value.table.show,
|
|
172
177
|
showTooltip: e.value.style.tooltip.show
|
|
173
|
-
}),
|
|
174
|
-
|
|
178
|
+
}), ve = r(0), vt = Ke((t) => {
|
|
179
|
+
ve.value = t;
|
|
175
180
|
}, 100);
|
|
176
|
-
|
|
177
|
-
const a =
|
|
181
|
+
It((t) => {
|
|
182
|
+
const a = H.value;
|
|
178
183
|
if (!a) return;
|
|
179
184
|
const l = new ResizeObserver((o) => {
|
|
180
|
-
|
|
185
|
+
vt(o[0].contentRect.height);
|
|
181
186
|
});
|
|
182
187
|
l.observe(a), t(() => l.disconnect());
|
|
183
|
-
}),
|
|
184
|
-
|
|
188
|
+
}), je(() => {
|
|
189
|
+
ve.value = 0;
|
|
185
190
|
});
|
|
186
|
-
const
|
|
191
|
+
const Pe = b(() => {
|
|
187
192
|
let t = 0;
|
|
188
|
-
return
|
|
193
|
+
return H.value && (t = ve.value + y.value.xAxisFontSize), t;
|
|
189
194
|
});
|
|
190
|
-
function
|
|
195
|
+
function dt() {
|
|
191
196
|
let t = e.value.style.layout.grid.yAxis.dataLabels.offsetX;
|
|
192
|
-
return
|
|
197
|
+
return ue.value && (t = Array.from(ue.value.querySelectorAll("text")).reduce((o, p) => {
|
|
193
198
|
const f = p.getComputedTextLength();
|
|
194
199
|
return f > o ? f : o;
|
|
195
200
|
}, 0)), t + 13;
|
|
196
201
|
}
|
|
197
|
-
const
|
|
198
|
-
const { top: t, right: a, bottom: l, left: o } = e.value.style.layout.padding, p =
|
|
202
|
+
const n = b(() => {
|
|
203
|
+
const { top: t, right: a, bottom: l, left: o } = e.value.style.layout.padding, p = dt(), f = 12;
|
|
199
204
|
return {
|
|
200
205
|
top: t + f,
|
|
201
206
|
right: y.value.width - a,
|
|
202
207
|
left: o + p,
|
|
203
|
-
bottom: y.value.height - l -
|
|
208
|
+
bottom: y.value.height - l - Pe.value,
|
|
204
209
|
width: y.value.width - o - a - p,
|
|
205
|
-
height: y.value.height - t - l -
|
|
210
|
+
height: y.value.height - t - l - Pe.value - f
|
|
206
211
|
};
|
|
207
|
-
}),
|
|
212
|
+
}), G = b(() => A.value.length), h = r({
|
|
208
213
|
start: 0,
|
|
209
|
-
end:
|
|
210
|
-
}),
|
|
214
|
+
end: G.value
|
|
215
|
+
}), Ve = b(() => A.value.map((t, a) => ({
|
|
211
216
|
...t,
|
|
212
217
|
absoluteIndex: a
|
|
213
|
-
})).slice(h.value.start, h.value.end)),
|
|
214
|
-
[null, void 0].includes(t[0]) &&
|
|
218
|
+
})).slice(h.value.start, h.value.end)), de = b(() => (A.value.forEach((t, a) => {
|
|
219
|
+
[null, void 0].includes(t[0]) && M({
|
|
215
220
|
componentName: "VueUiCandlestick",
|
|
216
221
|
type: "datasetAttribute",
|
|
217
222
|
property: "period (index 0)",
|
|
218
223
|
index: a,
|
|
219
|
-
debug:
|
|
220
|
-
}), [null, void 0].includes(t[1]) &&
|
|
224
|
+
debug: F.value
|
|
225
|
+
}), [null, void 0].includes(t[1]) && M({
|
|
221
226
|
componentName: "VueUiCandlestick",
|
|
222
227
|
type: "datasetAttribute",
|
|
223
228
|
property: "open (index 1)",
|
|
224
229
|
index: a,
|
|
225
|
-
debug:
|
|
226
|
-
}), [null, void 0].includes(t[2]) &&
|
|
230
|
+
debug: F.value
|
|
231
|
+
}), [null, void 0].includes(t[2]) && M({
|
|
227
232
|
componentName: "VueUiCandlestick",
|
|
228
233
|
type: "datasetAttribute",
|
|
229
234
|
property: "high (index 2)",
|
|
230
235
|
index: a,
|
|
231
|
-
debug:
|
|
232
|
-
}), [null, void 0].includes(t[3]) &&
|
|
236
|
+
debug: F.value
|
|
237
|
+
}), [null, void 0].includes(t[3]) && M({
|
|
233
238
|
componentName: "VueUiCandlestick",
|
|
234
239
|
type: "datasetAttribute",
|
|
235
240
|
property: "low (index 3)",
|
|
236
241
|
index: a,
|
|
237
|
-
debug:
|
|
238
|
-
}), [null, void 0].includes(t[4]) &&
|
|
242
|
+
debug: F.value
|
|
243
|
+
}), [null, void 0].includes(t[4]) && M({
|
|
239
244
|
componentName: "VueUiCandlestick",
|
|
240
245
|
type: "datasetAttribute",
|
|
241
246
|
property: "last (index 4)",
|
|
242
247
|
index: a,
|
|
243
|
-
debug:
|
|
244
|
-
}), [null, void 0].includes(t[5]) &&
|
|
248
|
+
debug: F.value
|
|
249
|
+
}), [null, void 0].includes(t[5]) && M({
|
|
245
250
|
componentName: "VueUiCandlestick",
|
|
246
251
|
type: "datasetAttribute",
|
|
247
252
|
property: "volume (index 5)",
|
|
248
253
|
index: a,
|
|
249
|
-
debug:
|
|
254
|
+
debug: F.value
|
|
250
255
|
});
|
|
251
|
-
}),
|
|
256
|
+
}), Ve.value.map((t) => ({
|
|
252
257
|
absoluteIndex: t.absoluteIndex,
|
|
253
258
|
period: t[0],
|
|
254
259
|
open: t[1],
|
|
@@ -256,23 +261,23 @@ const tl = ["id"], ll = ["xmlns", "aria-label", "viewBox"], al = ["x", "y", "wid
|
|
|
256
261
|
low: t[3],
|
|
257
262
|
last: t[4],
|
|
258
263
|
volume: t[5]
|
|
259
|
-
})))), v = b(() =>
|
|
260
|
-
const t = e.value.style.layout.grid.yAxis.scale.max === null ? Math.max(...
|
|
264
|
+
})))), v = b(() => n.value.width / Ve.value.length), Ee = b(() => {
|
|
265
|
+
const t = e.value.style.layout.grid.yAxis.scale.max === null ? Math.max(...de.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;
|
|
261
266
|
return {
|
|
262
267
|
max: t,
|
|
263
268
|
min: a
|
|
264
269
|
};
|
|
265
|
-
}), C = b(() =>
|
|
266
|
-
function
|
|
270
|
+
}), C = b(() => Et(Ee.value.min, Ee.value.max, e.value.style.layout.grid.yAxis.dataLabels.steps));
|
|
271
|
+
function Y(t, a) {
|
|
267
272
|
return {
|
|
268
273
|
...t,
|
|
269
|
-
x:
|
|
270
|
-
y:
|
|
271
|
-
value:
|
|
274
|
+
x: X(n.value.left + a * v.value + v.value / 2),
|
|
275
|
+
y: X(n.value.top + (1 - (t - C.value.min) / (C.value.max - C.value.min)) * n.value.height),
|
|
276
|
+
value: X(t)
|
|
272
277
|
};
|
|
273
278
|
}
|
|
274
|
-
const k = b(() =>
|
|
275
|
-
const l =
|
|
279
|
+
const k = b(() => de.value.map((t, a) => {
|
|
280
|
+
const l = Y(t.open, a), o = Y(t.high, a), p = Y(t.low, a), f = Y(t.last, a), O = t.last > t.open;
|
|
276
281
|
return {
|
|
277
282
|
period: t.period,
|
|
278
283
|
open: l,
|
|
@@ -280,44 +285,44 @@ const tl = ["id"], ll = ["xmlns", "aria-label", "viewBox"], al = ["x", "y", "wid
|
|
|
280
285
|
low: p,
|
|
281
286
|
last: f,
|
|
282
287
|
volume: t.volume,
|
|
283
|
-
isBullish:
|
|
288
|
+
isBullish: O,
|
|
284
289
|
absoluteIndex: t.absoluteIndex
|
|
285
290
|
};
|
|
286
291
|
}));
|
|
287
|
-
function
|
|
288
|
-
return
|
|
292
|
+
function yt(t) {
|
|
293
|
+
return X((t - C.value.min) / (C.value.max - C.value.min));
|
|
289
294
|
}
|
|
290
|
-
const
|
|
291
|
-
y:
|
|
292
|
-
value:
|
|
293
|
-
}))),
|
|
295
|
+
const ct = b(() => C.value.ticks.map((t) => ({
|
|
296
|
+
y: n.value.bottom - n.value.height * yt(t),
|
|
297
|
+
value: X(t)
|
|
298
|
+
}))), ht = b(() => de.value.map((t) => t.period)), R = b(() => Zt({
|
|
294
299
|
values: A.value.map((t) => t[0]),
|
|
295
300
|
maxDatapoints: A.value.length,
|
|
296
301
|
formatter: e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter,
|
|
297
302
|
start: h.value.start,
|
|
298
303
|
end: h.value.end
|
|
299
|
-
})),
|
|
300
|
-
start:
|
|
301
|
-
end:
|
|
304
|
+
})), Be = b(() => e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? {
|
|
305
|
+
start: R.value.find((t) => t.absoluteIndex === h.value.start).text,
|
|
306
|
+
end: R.value.find((t) => t.absoluteIndex === h.value.end - 1).text
|
|
302
307
|
} : {
|
|
303
308
|
start: A.value[h.value.start] ? A.value[h.value.start][0] : A.value[0][0],
|
|
304
309
|
end: A.value[h.value.end - 1] ? A.value[h.value.end - 1][0] : A.value.at(-1)[0]
|
|
305
|
-
}),
|
|
306
|
-
function
|
|
307
|
-
|
|
310
|
+
}), ye = r(null);
|
|
311
|
+
function ft(t, a) {
|
|
312
|
+
se.value = t, ye.value = {
|
|
308
313
|
datapoint: a,
|
|
309
314
|
seriesIndex: t,
|
|
310
315
|
series: k.value,
|
|
311
316
|
config: e.value
|
|
312
317
|
};
|
|
313
318
|
const l = e.value.style.tooltip.customFormat;
|
|
314
|
-
if (
|
|
319
|
+
if (Dt(l) && Ht(() => l({
|
|
315
320
|
seriesIndex: t,
|
|
316
321
|
datapoint: a,
|
|
317
322
|
series: k.value,
|
|
318
323
|
config: e.value
|
|
319
324
|
})))
|
|
320
|
-
|
|
325
|
+
oe.value = l({
|
|
321
326
|
seriesIndex: t,
|
|
322
327
|
datapoint: a,
|
|
323
328
|
series: k.value,
|
|
@@ -325,84 +330,84 @@ const tl = ["id"], ll = ["xmlns", "aria-label", "viewBox"], al = ["x", "y", "wid
|
|
|
325
330
|
});
|
|
326
331
|
else if (e.value.style.tooltip.show) {
|
|
327
332
|
let o = "";
|
|
328
|
-
const { period: p, open: f, high:
|
|
333
|
+
const { period: p, open: f, high: O, low: fe, last: ge, volume: K, isBullish: Ge } = k.value[t], { period: Nl, open: mt, high: xt, low: kt, last: wt, volume: At } = e.value.translations, _t = e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? R.value[t].text : p;
|
|
329
334
|
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}"
|
|
330
|
-
fill="${e.value.style.layout.candle.gradient.show ?
|
|
331
|
-
const
|
|
335
|
+
fill="${e.value.style.layout.candle.gradient.show ? Ge ? `url(#bullish_gradient_${w.value})` : `url(#bearish_gradient_${w.value})` : Ge ? e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.colors.bearish}"/></svg>${_t}</div>`, o += `${At} : <b>${isNaN(K) ? "-" : Number(K.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}">`;
|
|
336
|
+
const Ct = L({
|
|
332
337
|
p: e.value.style.tooltip.prefix,
|
|
333
338
|
v: f.value,
|
|
334
339
|
s: e.value.style.tooltip.suffix,
|
|
335
340
|
r: e.value.style.tooltip.roundingValue
|
|
336
341
|
});
|
|
337
|
-
o += `<div>${
|
|
338
|
-
const
|
|
342
|
+
o += `<div>${mt}: <b>${Ct}</b></div>`;
|
|
343
|
+
const $t = L({
|
|
339
344
|
p: e.value.style.tooltip.prefix,
|
|
340
|
-
v:
|
|
345
|
+
v: O.value,
|
|
341
346
|
s: e.value.style.tooltip.suffix,
|
|
342
347
|
r: e.value.style.tooltip.roundingValue
|
|
343
348
|
});
|
|
344
|
-
o += `<div>${
|
|
345
|
-
const
|
|
349
|
+
o += `<div>${xt}: <b>${$t}</b></div>`;
|
|
350
|
+
const zt = L({
|
|
346
351
|
p: e.value.style.tooltip.prefix,
|
|
347
|
-
v:
|
|
352
|
+
v: fe.value,
|
|
348
353
|
s: e.value.style.tooltip.suffix,
|
|
349
354
|
r: e.value.style.tooltip.roundingValue
|
|
350
355
|
});
|
|
351
|
-
o += `<div>${
|
|
352
|
-
const
|
|
356
|
+
o += `<div>${kt}: <b>${zt}</b></div>`;
|
|
357
|
+
const St = L({
|
|
353
358
|
p: e.value.style.tooltip.prefix,
|
|
354
|
-
v:
|
|
359
|
+
v: ge.value,
|
|
355
360
|
s: e.value.style.tooltip.suffix,
|
|
356
361
|
r: e.value.style.tooltip.roundingValue
|
|
357
362
|
});
|
|
358
|
-
o += `<div>${
|
|
363
|
+
o += `<div>${wt}: <b>${St}</b></div>`, o += "</div>", oe.value = `<div style="text-align:right">${o}</div>`;
|
|
359
364
|
}
|
|
360
|
-
|
|
365
|
+
ae.value = !0;
|
|
361
366
|
}
|
|
362
|
-
function
|
|
363
|
-
|
|
367
|
+
function gt() {
|
|
368
|
+
ce();
|
|
364
369
|
}
|
|
365
|
-
const
|
|
366
|
-
async function
|
|
367
|
-
await
|
|
368
|
-
const { startIndex: t, endIndex: a } = e.value.style.zoom, l =
|
|
369
|
-
(t != null || a != null) && l ? (t != null && l.setStartValue(t), a != null && l.setEndValue(
|
|
370
|
+
const Me = r(null);
|
|
371
|
+
async function ce() {
|
|
372
|
+
await be(), await be();
|
|
373
|
+
const { startIndex: t, endIndex: a } = e.value.style.zoom, l = Me.value, o = G.value;
|
|
374
|
+
(t != null || a != null) && l ? (t != null && l.setStartValue(t), a != null && l.setEndValue(pt(a + 1))) : (h.value = { start: 0, end: o }, j.value += 1);
|
|
370
375
|
}
|
|
371
|
-
function
|
|
372
|
-
const a =
|
|
376
|
+
function pt(t) {
|
|
377
|
+
const a = G.value;
|
|
373
378
|
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;
|
|
374
379
|
}
|
|
375
|
-
function
|
|
376
|
-
|
|
377
|
-
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 = k.value.map((f,
|
|
378
|
-
e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ?
|
|
380
|
+
function Ue(t = null) {
|
|
381
|
+
be(() => {
|
|
382
|
+
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 = k.value.map((f, O) => [
|
|
383
|
+
e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? R.value[O].text : f.period,
|
|
379
384
|
f.open.value,
|
|
380
385
|
f.high.value,
|
|
381
386
|
f.low.value,
|
|
382
387
|
f.last.value,
|
|
383
388
|
f.volume
|
|
384
|
-
]), o = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([a]).concat(l), p =
|
|
385
|
-
t ? t(p) :
|
|
389
|
+
]), o = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([a]).concat(l), p = Ut(o);
|
|
390
|
+
t ? t(p) : Wt({ csvContent: p, title: e.value.style.title.text || "vue-ui-candlestick" });
|
|
386
391
|
});
|
|
387
392
|
}
|
|
388
|
-
const
|
|
393
|
+
const q = b(() => {
|
|
389
394
|
const t = k.value.map((o, p) => {
|
|
390
|
-
const f = e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ?
|
|
395
|
+
const f = e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? R.value[p].text : o.period, O = L({
|
|
391
396
|
p: e.value.table.td.prefix,
|
|
392
397
|
v: o.open.value,
|
|
393
398
|
s: e.value.table.td.suffix,
|
|
394
399
|
r: e.value.table.td.roundingValue
|
|
395
|
-
}),
|
|
400
|
+
}), fe = L({
|
|
396
401
|
p: e.value.table.td.prefix,
|
|
397
402
|
v: o.high.value,
|
|
398
403
|
s: e.value.table.td.suffix,
|
|
399
404
|
r: e.value.table.td.roundingValue
|
|
400
|
-
}),
|
|
405
|
+
}), ge = L({
|
|
401
406
|
p: e.value.table.td.prefix,
|
|
402
407
|
v: o.low.value,
|
|
403
408
|
s: e.value.table.td.suffix,
|
|
404
409
|
r: e.value.table.td.roundingValue
|
|
405
|
-
}),
|
|
410
|
+
}), K = L({
|
|
406
411
|
p: e.value.table.td.prefix,
|
|
407
412
|
v: o.last.value,
|
|
408
413
|
s: e.value.table.td.suffix,
|
|
@@ -410,10 +415,10 @@ const tl = ["id"], ll = ["xmlns", "aria-label", "viewBox"], al = ["x", "y", "wid
|
|
|
410
415
|
});
|
|
411
416
|
return [
|
|
412
417
|
`<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_${w.value}` : `url(#bearish_gradient_${w.value})` : o.isBullish ? e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.colors.bearish}"/></svg> ${f}`,
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
418
|
+
O,
|
|
419
|
+
fe,
|
|
420
|
+
ge,
|
|
421
|
+
K,
|
|
417
422
|
`${isNaN(o.volume) ? "-" : o.volume.toLocaleString()}`
|
|
418
423
|
];
|
|
419
424
|
}), a = {
|
|
@@ -437,23 +442,23 @@ const tl = ["id"], ll = ["xmlns", "aria-label", "viewBox"], al = ["x", "y", "wid
|
|
|
437
442
|
e.value.translations.volume
|
|
438
443
|
];
|
|
439
444
|
return { head: l, body: t, config: a, colNames: l };
|
|
440
|
-
}),
|
|
441
|
-
function
|
|
442
|
-
|
|
445
|
+
}), W = r(!1);
|
|
446
|
+
function We(t) {
|
|
447
|
+
W.value = t, xe.value += 1;
|
|
443
448
|
}
|
|
444
|
-
function
|
|
449
|
+
function De() {
|
|
445
450
|
_.value.showTable = !_.value.showTable;
|
|
446
451
|
}
|
|
447
|
-
function
|
|
452
|
+
function He() {
|
|
448
453
|
_.value.showTooltip = !_.value.showTooltip;
|
|
449
454
|
}
|
|
450
|
-
const
|
|
451
|
-
function
|
|
452
|
-
|
|
455
|
+
const J = r(!1);
|
|
456
|
+
function he() {
|
|
457
|
+
J.value = !J.value;
|
|
453
458
|
}
|
|
454
|
-
async function
|
|
455
|
-
if (!
|
|
456
|
-
const { width: a, height: l } =
|
|
459
|
+
async function bt({ scale: t = 2 } = {}) {
|
|
460
|
+
if (!T.value) return;
|
|
461
|
+
const { width: a, height: l } = T.value.getBoundingClientRect(), o = a / l, { imageUri: p, base64: f } = await el({ domElement: T.value, base64: !0, img: !0, scale: t });
|
|
457
462
|
return {
|
|
458
463
|
imageUri: p,
|
|
459
464
|
base64: f,
|
|
@@ -463,60 +468,60 @@ const tl = ["id"], ll = ["xmlns", "aria-label", "viewBox"], al = ["x", "y", "wid
|
|
|
463
468
|
aspectRatio: o
|
|
464
469
|
};
|
|
465
470
|
}
|
|
466
|
-
return
|
|
467
|
-
timeLabelsEls:
|
|
468
|
-
timeLabels:
|
|
471
|
+
return tl({
|
|
472
|
+
timeLabelsEls: H,
|
|
473
|
+
timeLabels: R,
|
|
469
474
|
slicer: h,
|
|
470
475
|
configRef: e,
|
|
471
476
|
rotationPath: ["style", "layout", "grid", "xAxis", "dataLabels", "rotation"],
|
|
472
477
|
autoRotatePath: ["style", "layout", "grid", "xAxis", "dataLabels", "autoRotate"],
|
|
473
478
|
isAutoSize: !1
|
|
474
|
-
}),
|
|
479
|
+
}), pe(e, () => {
|
|
475
480
|
_.value = {
|
|
476
481
|
showTable: e.value.table.show,
|
|
477
482
|
showTooltip: e.value.style.tooltip.show
|
|
478
483
|
};
|
|
479
|
-
}, { immediate: !0 }),
|
|
480
|
-
getImage:
|
|
481
|
-
generatePdf:
|
|
482
|
-
generateCsv:
|
|
483
|
-
generateImage:
|
|
484
|
-
toggleTable:
|
|
485
|
-
toggleTooltip:
|
|
486
|
-
toggleAnnotator:
|
|
487
|
-
toggleFullscreen:
|
|
488
|
-
}), (t, a) => (s(),
|
|
484
|
+
}, { immediate: !0 }), et({
|
|
485
|
+
getImage: bt,
|
|
486
|
+
generatePdf: Oe,
|
|
487
|
+
generateCsv: Ue,
|
|
488
|
+
generateImage: Ne,
|
|
489
|
+
toggleTable: De,
|
|
490
|
+
toggleTooltip: He,
|
|
491
|
+
toggleAnnotator: he,
|
|
492
|
+
toggleFullscreen: We
|
|
493
|
+
}), (t, a) => (s(), i("div", {
|
|
489
494
|
ref_key: "candlestickChart",
|
|
490
|
-
ref:
|
|
491
|
-
class:
|
|
492
|
-
style:
|
|
495
|
+
ref: T,
|
|
496
|
+
class: S(`vue-ui-candlestick ${W.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
497
|
+
style: me(`position:relative;font-family:${e.value.style.fontFamily}; text-align:center;background:${e.value.style.backgroundColor}; ${e.value.responsive ? "height: 100%" : ""}`),
|
|
493
498
|
id: `vue-ui-candlestick_${w.value}`,
|
|
494
|
-
onMouseenter: a[4] || (a[4] = () =>
|
|
495
|
-
onMouseleave: a[5] || (a[5] = () =>
|
|
499
|
+
onMouseenter: a[4] || (a[4] = () => u(Se)(!0)),
|
|
500
|
+
onMouseleave: a[5] || (a[5] = () => u(Se)(!1))
|
|
496
501
|
}, [
|
|
497
|
-
e.value.userOptions.buttons.annotator ? (s(),
|
|
502
|
+
e.value.userOptions.buttons.annotator ? (s(), N(u(ot), {
|
|
498
503
|
key: 0,
|
|
499
|
-
svgRef:
|
|
504
|
+
svgRef: u(Te),
|
|
500
505
|
backgroundColor: e.value.style.backgroundColor,
|
|
501
506
|
color: e.value.style.color,
|
|
502
|
-
active:
|
|
503
|
-
onClose:
|
|
507
|
+
active: J.value,
|
|
508
|
+
onClose: he
|
|
504
509
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : g("", !0),
|
|
505
|
-
|
|
510
|
+
rt.value ? (s(), i("div", {
|
|
506
511
|
key: 1,
|
|
507
512
|
ref_key: "noTitle",
|
|
508
|
-
ref:
|
|
513
|
+
ref: Ce,
|
|
509
514
|
class: "vue-data-ui-no-title-space",
|
|
510
515
|
style: "height:36px; width: 100%;background:transparent"
|
|
511
516
|
}, null, 512)) : g("", !0),
|
|
512
|
-
e.value.style.title.text ? (s(),
|
|
517
|
+
e.value.style.title.text ? (s(), i("div", {
|
|
513
518
|
key: 2,
|
|
514
519
|
ref_key: "chartTitle",
|
|
515
|
-
ref:
|
|
520
|
+
ref: ke,
|
|
516
521
|
style: "width:100%;background:transparent"
|
|
517
522
|
}, [
|
|
518
|
-
(s(),
|
|
519
|
-
key: `title_${
|
|
523
|
+
(s(), N(Kt, {
|
|
524
|
+
key: `title_${ze.value}`,
|
|
520
525
|
config: {
|
|
521
526
|
title: {
|
|
522
527
|
cy: "candlestick-div-title",
|
|
@@ -529,14 +534,14 @@ const tl = ["id"], ll = ["xmlns", "aria-label", "viewBox"], al = ["x", "y", "wid
|
|
|
529
534
|
}
|
|
530
535
|
}, null, 8, ["config"]))
|
|
531
536
|
], 512)) : g("", !0),
|
|
532
|
-
e.value.userOptions.show &&
|
|
537
|
+
e.value.userOptions.show && te.value && (u(Le) || u(ne)) ? (s(), N(u(ut), {
|
|
533
538
|
ref_key: "details",
|
|
534
|
-
ref:
|
|
535
|
-
key: `user_options_${
|
|
539
|
+
ref: nt,
|
|
540
|
+
key: `user_options_${xe.value}`,
|
|
536
541
|
backgroundColor: e.value.style.backgroundColor,
|
|
537
542
|
color: e.value.style.color,
|
|
538
|
-
isImaging:
|
|
539
|
-
isPrinting:
|
|
543
|
+
isImaging: u(Re),
|
|
544
|
+
isPrinting: u(Fe),
|
|
540
545
|
uid: w.value,
|
|
541
546
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.tooltip.show,
|
|
542
547
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -544,30 +549,30 @@ const tl = ["id"], ll = ["xmlns", "aria-label", "viewBox"], al = ["x", "y", "wid
|
|
|
544
549
|
hasXls: e.value.userOptions.buttons.csv,
|
|
545
550
|
hasTable: e.value.userOptions.buttons.table,
|
|
546
551
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
547
|
-
isFullscreen:
|
|
552
|
+
isFullscreen: W.value,
|
|
548
553
|
isTooltip: _.value.showTooltip,
|
|
549
554
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
550
|
-
chartElement:
|
|
555
|
+
chartElement: T.value,
|
|
551
556
|
position: e.value.userOptions.position,
|
|
552
557
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
553
|
-
isAnnotation:
|
|
558
|
+
isAnnotation: J.value,
|
|
554
559
|
callbacks: e.value.userOptions.callbacks,
|
|
555
560
|
printScale: e.value.userOptions.print.scale,
|
|
556
|
-
onToggleFullscreen:
|
|
557
|
-
onGeneratePdf:
|
|
558
|
-
onGenerateCsv:
|
|
559
|
-
onGenerateImage:
|
|
560
|
-
onToggleTable:
|
|
561
|
-
onToggleTooltip:
|
|
562
|
-
onToggleAnnotator:
|
|
563
|
-
style:
|
|
564
|
-
visibility:
|
|
561
|
+
onToggleFullscreen: We,
|
|
562
|
+
onGeneratePdf: u(Oe),
|
|
563
|
+
onGenerateCsv: Ue,
|
|
564
|
+
onGenerateImage: u(Ne),
|
|
565
|
+
onToggleTable: De,
|
|
566
|
+
onToggleTooltip: He,
|
|
567
|
+
onToggleAnnotator: he,
|
|
568
|
+
style: me({
|
|
569
|
+
visibility: u(Le) ? u(ne) ? "visible" : "hidden" : "visible"
|
|
565
570
|
})
|
|
566
|
-
},
|
|
571
|
+
}, Ft({ _: 2 }, [
|
|
567
572
|
t.$slots.menuIcon ? {
|
|
568
573
|
name: "menuIcon",
|
|
569
574
|
fn: x(({ isOpen: l, color: o }) => [
|
|
570
|
-
m(t.$slots, "menuIcon",
|
|
575
|
+
m(t.$slots, "menuIcon", P(V({ isOpen: l, color: o })), void 0, !0)
|
|
571
576
|
]),
|
|
572
577
|
key: "0"
|
|
573
578
|
} : void 0,
|
|
@@ -609,41 +614,41 @@ const tl = ["id"], ll = ["xmlns", "aria-label", "viewBox"], al = ["x", "y", "wid
|
|
|
609
614
|
t.$slots.optionFullscreen ? {
|
|
610
615
|
name: "optionFullscreen",
|
|
611
616
|
fn: x(({ toggleFullscreen: l, isFullscreen: o }) => [
|
|
612
|
-
m(t.$slots, "optionFullscreen",
|
|
617
|
+
m(t.$slots, "optionFullscreen", P(V({ toggleFullscreen: l, isFullscreen: o })), void 0, !0)
|
|
613
618
|
]),
|
|
614
619
|
key: "6"
|
|
615
620
|
} : void 0,
|
|
616
621
|
t.$slots.optionAnnotator ? {
|
|
617
622
|
name: "optionAnnotator",
|
|
618
623
|
fn: x(({ toggleAnnotator: l, isAnnotator: o }) => [
|
|
619
|
-
m(t.$slots, "optionAnnotator",
|
|
624
|
+
m(t.$slots, "optionAnnotator", P(V({ toggleAnnotator: l, isAnnotator: o })), void 0, !0)
|
|
620
625
|
]),
|
|
621
626
|
key: "7"
|
|
622
627
|
} : void 0
|
|
623
628
|
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : g("", !0),
|
|
624
|
-
(s(),
|
|
629
|
+
(s(), i("svg", {
|
|
625
630
|
ref_key: "svgRef",
|
|
626
|
-
ref:
|
|
627
|
-
xmlns:
|
|
631
|
+
ref: Te,
|
|
632
|
+
xmlns: u(Bt),
|
|
628
633
|
"aria-label": e.value.style.title.text || "candlestick chart",
|
|
629
|
-
class:
|
|
634
|
+
class: S({ "vue-data-ui-fullscreen--on": W.value, "vue-data-ui-fulscreen--off": !W.value }),
|
|
630
635
|
viewBox: `0 0 ${y.value.width <= 0 ? 10 : y.value.width} ${y.value.height <= 0 ? 10 : y.value.height}`,
|
|
631
|
-
style:
|
|
636
|
+
style: me(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.color}`)
|
|
632
637
|
}, [
|
|
633
|
-
|
|
634
|
-
t.$slots["chart-background"] ? (s(),
|
|
638
|
+
Ye(u(at)),
|
|
639
|
+
t.$slots["chart-background"] ? (s(), i("foreignObject", {
|
|
635
640
|
key: 0,
|
|
636
|
-
x:
|
|
637
|
-
y:
|
|
638
|
-
width: Math.max(0.1,
|
|
639
|
-
height: Math.max(0.1,
|
|
641
|
+
x: n.value.left,
|
|
642
|
+
y: n.value.top,
|
|
643
|
+
width: Math.max(0.1, n.value.width),
|
|
644
|
+
height: Math.max(0.1, n.value.height),
|
|
640
645
|
style: {
|
|
641
646
|
pointerEvents: "none"
|
|
642
647
|
}
|
|
643
648
|
}, [
|
|
644
649
|
m(t.$slots, "chart-background", {}, void 0, !0)
|
|
645
|
-
], 8,
|
|
646
|
-
k.value.length > 0 ? (s(),
|
|
650
|
+
], 8, sl)) : g("", !0),
|
|
651
|
+
k.value.length > 0 ? (s(), i("g", ul, [
|
|
647
652
|
d("defs", null, [
|
|
648
653
|
d("linearGradient", {
|
|
649
654
|
id: `bearish_gradient_${w.value}`,
|
|
@@ -653,16 +658,16 @@ const tl = ["id"], ll = ["xmlns", "aria-label", "viewBox"], al = ["x", "y", "wid
|
|
|
653
658
|
d("stop", {
|
|
654
659
|
offset: "0%",
|
|
655
660
|
"stop-color": e.value.style.layout.candle.colors.bearish
|
|
656
|
-
}, null, 8,
|
|
661
|
+
}, null, 8, nl),
|
|
657
662
|
d("stop", {
|
|
658
663
|
offset: "50%",
|
|
659
|
-
"stop-color": `${
|
|
660
|
-
}, null, 8,
|
|
664
|
+
"stop-color": `${u(ee)(e.value.style.layout.candle.colors.bearish, 0.02)}DE`
|
|
665
|
+
}, null, 8, rl),
|
|
661
666
|
d("stop", {
|
|
662
667
|
offset: "100%",
|
|
663
|
-
"stop-color": `${
|
|
664
|
-
}, null, 8,
|
|
665
|
-
], 8,
|
|
668
|
+
"stop-color": `${u(ee)(e.value.style.layout.candle.colors.bearish, 0.05)}66`
|
|
669
|
+
}, null, 8, vl)
|
|
670
|
+
], 8, il),
|
|
666
671
|
d("linearGradient", {
|
|
667
672
|
id: `bullish_gradient_${w.value}`,
|
|
668
673
|
x2: "0%",
|
|
@@ -671,159 +676,165 @@ const tl = ["id"], ll = ["xmlns", "aria-label", "viewBox"], al = ["x", "y", "wid
|
|
|
671
676
|
d("stop", {
|
|
672
677
|
offset: "0%",
|
|
673
678
|
"stop-color": e.value.style.layout.candle.colors.bullish
|
|
674
|
-
}, null, 8,
|
|
679
|
+
}, null, 8, yl),
|
|
675
680
|
d("stop", {
|
|
676
681
|
offset: "50%",
|
|
677
|
-
"stop-color": `${
|
|
678
|
-
}, null, 8,
|
|
682
|
+
"stop-color": `${u(ee)(e.value.style.layout.candle.colors.bullish, 0.02)}DE`
|
|
683
|
+
}, null, 8, cl),
|
|
679
684
|
d("stop", {
|
|
680
685
|
offset: "100%",
|
|
681
|
-
"stop-color": `${
|
|
682
|
-
}, null, 8,
|
|
683
|
-
], 8,
|
|
686
|
+
"stop-color": `${u(ee)(e.value.style.layout.candle.colors.bullish, 0.05)}66`
|
|
687
|
+
}, null, 8, hl)
|
|
688
|
+
], 8, dl)
|
|
684
689
|
]),
|
|
685
|
-
e.value.style.layout.grid.show ? (s(),
|
|
690
|
+
e.value.style.layout.grid.show ? (s(), i("g", fl, [
|
|
686
691
|
d("line", {
|
|
687
|
-
x1:
|
|
688
|
-
x2:
|
|
689
|
-
y1:
|
|
690
|
-
y2:
|
|
692
|
+
x1: n.value.left,
|
|
693
|
+
x2: n.value.left,
|
|
694
|
+
y1: n.value.top,
|
|
695
|
+
y2: n.value.bottom,
|
|
691
696
|
stroke: e.value.style.layout.grid.stroke,
|
|
692
697
|
"stroke-width": e.value.style.layout.grid.strokeWidth,
|
|
693
698
|
"stroke-linecap": "round"
|
|
694
|
-
}, null, 8,
|
|
699
|
+
}, null, 8, gl),
|
|
695
700
|
d("line", {
|
|
696
|
-
x1:
|
|
697
|
-
x2:
|
|
698
|
-
y1:
|
|
699
|
-
y2:
|
|
701
|
+
x1: n.value.left,
|
|
702
|
+
x2: n.value.right,
|
|
703
|
+
y1: n.value.bottom,
|
|
704
|
+
y2: n.value.bottom,
|
|
700
705
|
stroke: e.value.style.layout.grid.stroke,
|
|
701
706
|
"stroke-width": e.value.style.layout.grid.strokeWidth,
|
|
702
707
|
"stroke-linecap": "round"
|
|
703
|
-
}, null, 8,
|
|
708
|
+
}, null, 8, pl)
|
|
704
709
|
])) : g("", !0),
|
|
705
|
-
e.value.style.layout.grid.yAxis.dataLabels.show ? (s(),
|
|
710
|
+
e.value.style.layout.grid.yAxis.dataLabels.show ? (s(), i("g", {
|
|
706
711
|
key: 1,
|
|
707
712
|
ref_key: "scaleLabels",
|
|
708
|
-
ref:
|
|
713
|
+
ref: ue
|
|
709
714
|
}, [
|
|
710
|
-
(s(!0),
|
|
711
|
-
l.value >= C.value.min && l.value <= C.value.max ? (s(),
|
|
715
|
+
(s(!0), i(E, null, B(ct.value, (l, o) => (s(), i("g", null, [
|
|
716
|
+
l.value >= C.value.min && l.value <= C.value.max ? (s(), i("line", {
|
|
712
717
|
key: 0,
|
|
713
|
-
x1:
|
|
714
|
-
x2:
|
|
718
|
+
x1: n.value.left,
|
|
719
|
+
x2: n.value.left - 5,
|
|
715
720
|
y1: l.y,
|
|
716
721
|
y2: l.y,
|
|
717
722
|
stroke: e.value.style.layout.grid.stroke,
|
|
718
723
|
"stroke-width": e.value.style.layout.grid.strokeWidth,
|
|
719
724
|
"stroke-linecap": "round"
|
|
720
|
-
}, null, 8,
|
|
721
|
-
l.value >= C.value.min && l.value <= C.value.max ? (s(),
|
|
725
|
+
}, null, 8, bl)) : g("", !0),
|
|
726
|
+
l.value >= C.value.min && l.value <= C.value.max ? (s(), i("text", {
|
|
722
727
|
key: 1,
|
|
723
|
-
x:
|
|
728
|
+
x: n.value.left - 8 + e.value.style.layout.grid.yAxis.dataLabels.offsetX,
|
|
724
729
|
y: l.y + y.value.yAxisFontSize / 3,
|
|
725
730
|
"font-size": y.value.yAxisFontSize,
|
|
726
731
|
"text-anchor": "end",
|
|
727
732
|
fill: e.value.style.layout.grid.yAxis.dataLabels.color,
|
|
728
733
|
"font-weight": e.value.style.layout.grid.yAxis.dataLabels.bold ? "bold" : "normal"
|
|
729
|
-
},
|
|
734
|
+
}, Q(u(L)({
|
|
730
735
|
p: e.value.style.layout.grid.yAxis.dataLabels.prefix,
|
|
731
736
|
v: l.value,
|
|
732
737
|
s: e.value.style.layout.grid.yAxis.dataLabels.suffix,
|
|
733
738
|
r: e.value.style.layout.grid.yAxis.dataLabels.roundingValue
|
|
734
|
-
})), 9,
|
|
739
|
+
})), 9, ml)) : g("", !0)
|
|
735
740
|
]))), 256))
|
|
736
741
|
], 512)) : g("", !0),
|
|
737
|
-
e.value.style.layout.grid.xAxis.dataLabels.show && !e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? (s(),
|
|
742
|
+
e.value.style.layout.grid.xAxis.dataLabels.show && !e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? (s(), i("g", {
|
|
738
743
|
key: 2,
|
|
739
744
|
ref_key: "timeLabelsEls",
|
|
740
|
-
ref:
|
|
745
|
+
ref: H
|
|
741
746
|
}, [
|
|
742
|
-
(s(!0),
|
|
747
|
+
(s(!0), i(E, null, B(ht.value, (l, o) => (s(), i("g", null, [
|
|
743
748
|
d("text", {
|
|
744
749
|
class: "vue-data-ui-time-label",
|
|
745
|
-
transform: `translate(${
|
|
750
|
+
transform: `translate(${n.value.left + v.value * o + v.value / 2}, ${n.value.bottom + y.value.xAxisFontSize * 1.5}), rotate(${e.value.style.layout.grid.xAxis.dataLabels.rotation})`,
|
|
746
751
|
"text-anchor": e.value.style.layout.grid.xAxis.dataLabels.rotation > 0 ? "start" : e.value.style.layout.grid.xAxis.dataLabels.rotation < 0 ? "end" : "middle",
|
|
747
752
|
"font-size": y.value.xAxisFontSize,
|
|
748
753
|
fill: e.value.style.layout.grid.xAxis.dataLabels.color,
|
|
749
754
|
"font-weight": e.value.style.layout.grid.xAxis.dataLabels.bold ? "bold" : "normal"
|
|
750
|
-
},
|
|
755
|
+
}, Q(l), 9, xl)
|
|
751
756
|
]))), 256))
|
|
752
757
|
], 512)) : g("", !0),
|
|
753
|
-
e.value.style.layout.grid.xAxis.dataLabels.show && e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? (s(),
|
|
758
|
+
e.value.style.layout.grid.xAxis.dataLabels.show && e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? (s(), i("g", {
|
|
754
759
|
key: 3,
|
|
755
760
|
ref_key: "timeLabelsEls",
|
|
756
|
-
ref:
|
|
761
|
+
ref: H
|
|
757
762
|
}, [
|
|
758
|
-
(s(!0),
|
|
763
|
+
(s(!0), i(E, null, B(R.value, (l, o) => (s(), i("g", null, [
|
|
759
764
|
d("text", {
|
|
760
765
|
class: "vue-data-ui-time-label",
|
|
761
|
-
transform: `translate(${
|
|
766
|
+
transform: `translate(${n.value.left + v.value * o + v.value / 2}, ${n.value.bottom + y.value.xAxisFontSize * 1.5}), rotate(${e.value.style.layout.grid.xAxis.dataLabels.rotation})`,
|
|
762
767
|
"text-anchor": e.value.style.layout.grid.xAxis.dataLabels.rotation > 0 ? "start" : e.value.style.layout.grid.xAxis.dataLabels.rotation < 0 ? "end" : "middle",
|
|
763
768
|
"font-size": y.value.xAxisFontSize,
|
|
764
769
|
fill: e.value.style.layout.grid.xAxis.dataLabels.color,
|
|
765
770
|
"font-weight": e.value.style.layout.grid.xAxis.dataLabels.bold ? "bold" : "normal"
|
|
766
|
-
},
|
|
771
|
+
}, Q(l.text), 9, kl)
|
|
767
772
|
]))), 256))
|
|
768
773
|
], 512)) : g("", !0),
|
|
769
774
|
d("g", null, [
|
|
770
|
-
(s(!0),
|
|
771
|
-
d("
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
775
|
+
(s(!0), i(E, null, B(k.value, (l, o) => (s(), i("g", null, [
|
|
776
|
+
d("rect", {
|
|
777
|
+
x: l.open.x - e.value.style.layout.wick.strokeWidth / 2,
|
|
778
|
+
y: l.high.y,
|
|
779
|
+
width: e.value.style.layout.wick.strokeWidth,
|
|
780
|
+
height: Math.abs(l.high.y - l.low.y),
|
|
781
|
+
fill: e.value.style.layout.wick.stroke,
|
|
782
|
+
stroke: "none",
|
|
783
|
+
rx: e.value.style.layout.wick.strokeWidth / 2,
|
|
784
|
+
class: S({ "vue-data-ui-transition": $.value && !u(z) })
|
|
785
|
+
}, null, 10, wl),
|
|
786
|
+
e.value.style.layout.wick.extremity.shape === "circle" ? (s(), i("g", Al, [
|
|
781
787
|
d("circle", {
|
|
782
788
|
cx: l.high.x,
|
|
783
789
|
cy: l.high.y,
|
|
784
790
|
r: e.value.style.layout.wick.extremity.size === "auto" ? v.value / 20 : e.value.style.layout.wick.extremity.size,
|
|
785
|
-
fill: e.value.style.layout.wick.extremity.color
|
|
786
|
-
|
|
791
|
+
fill: e.value.style.layout.wick.extremity.color,
|
|
792
|
+
class: S({ "vue-data-ui-transition": $.value && !u(z) })
|
|
793
|
+
}, null, 10, _l),
|
|
787
794
|
d("circle", {
|
|
788
795
|
cx: l.low.x,
|
|
789
796
|
cy: l.low.y,
|
|
790
797
|
r: e.value.style.layout.wick.extremity.size === "auto" ? v.value / 20 : e.value.style.layout.wick.extremity.size,
|
|
791
|
-
fill: e.value.style.layout.wick.extremity.color
|
|
792
|
-
|
|
798
|
+
fill: e.value.style.layout.wick.extremity.color,
|
|
799
|
+
class: S({ "vue-data-ui-transition": $.value && !u(z) })
|
|
800
|
+
}, null, 10, Cl)
|
|
793
801
|
])) : g("", !0),
|
|
794
|
-
e.value.style.layout.wick.extremity.shape === "line" ? (s(),
|
|
795
|
-
d("
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
802
|
+
e.value.style.layout.wick.extremity.shape === "line" ? (s(), i("g", $l, [
|
|
803
|
+
d("rect", {
|
|
804
|
+
x: l.high.x - (e.value.style.layout.wick.extremity.size === "auto" ? v.value * e.value.style.layout.candle.widthRatio : e.value.style.layout.wick.extremity.size) / 2,
|
|
805
|
+
y: l.high.y - e.value.style.layout.wick.strokeWidth / 2,
|
|
806
|
+
width: Math.abs(l.high.x - (e.value.style.layout.wick.extremity.size === "auto" ? v.value * e.value.style.layout.candle.widthRatio : e.value.style.layout.wick.extremity.size) / 2 - (l.high.x + (e.value.style.layout.wick.extremity.size === "auto" ? v.value * e.value.style.layout.candle.widthRatio : e.value.style.layout.wick.extremity.size) / 2)),
|
|
807
|
+
height: e.value.style.layout.wick.strokeWidth,
|
|
808
|
+
rx: e.value.style.layout.wick.strokeWidth / 2,
|
|
809
|
+
fill: e.value.style.layout.wick.extremity.color,
|
|
810
|
+
stroke: "none",
|
|
811
|
+
class: S({ "vue-data-ui-transition": $.value && !u(z) })
|
|
812
|
+
}, null, 10, zl),
|
|
813
|
+
d("rect", {
|
|
814
|
+
x: l.low.x - (e.value.style.layout.wick.extremity.size === "auto" ? v.value * e.value.style.layout.candle.widthRatio : e.value.style.layout.wick.extremity.size) / 2,
|
|
815
|
+
y: l.low.y - e.value.style.layout.wick.strokeWidth / 2,
|
|
816
|
+
width: Math.abs(l.low.x - (e.value.style.layout.wick.extremity.size === "auto" ? v.value * e.value.style.layout.candle.widthRatio : e.value.style.layout.wick.extremity.size) / 2 - (l.low.x + (e.value.style.layout.wick.extremity.size === "auto" ? v.value * e.value.style.layout.candle.widthRatio : e.value.style.layout.wick.extremity.size) / 2)),
|
|
817
|
+
height: e.value.style.layout.wick.strokeWidth,
|
|
818
|
+
fill: e.value.style.layout.wick.extremity.color,
|
|
819
|
+
stroke: "none",
|
|
820
|
+
rx: e.value.style.layout.wick.strokeWidth / 2,
|
|
821
|
+
class: S({ "vue-data-ui-transition": $.value && !u(z) })
|
|
822
|
+
}, null, 10, Sl)
|
|
813
823
|
])) : g("", !0)
|
|
814
824
|
]))), 256))
|
|
815
825
|
]),
|
|
816
826
|
d("g", null, [
|
|
817
|
-
(s(!0),
|
|
827
|
+
(s(!0), i(E, null, B(k.value, (l, o) => (s(), i("rect", {
|
|
818
828
|
x: l.open.x - v.value / 2 + v.value * (1 - e.value.style.layout.candle.widthRatio) / 2,
|
|
819
829
|
y: l.isBullish ? l.last.y : l.open.y,
|
|
820
830
|
height: Math.abs(l.last.y - l.open.y) <= 0 ? 1e-4 : Math.abs(l.last.y - l.open.y),
|
|
821
831
|
width: v.value * e.value.style.layout.candle.widthRatio <= 0 ? 1e-4 : v.value * e.value.style.layout.candle.widthRatio,
|
|
822
832
|
fill: e.value.style.layout.candle.gradient.underlayer,
|
|
823
833
|
rx: e.value.style.layout.candle.borderRadius,
|
|
824
|
-
stroke: "none"
|
|
825
|
-
|
|
826
|
-
|
|
834
|
+
stroke: "none",
|
|
835
|
+
class: S({ "vue-data-ui-transition": $.value && !u(z) })
|
|
836
|
+
}, null, 10, Ll))), 256)),
|
|
837
|
+
(s(!0), i(E, null, B(k.value, (l, o) => (s(), i("rect", {
|
|
827
838
|
x: l.open.x - v.value / 2 + v.value * (1 - e.value.style.layout.candle.widthRatio) / 2,
|
|
828
839
|
y: l.isBullish ? l.last.y : l.open.y,
|
|
829
840
|
height: Math.abs(l.last.y - l.open.y) <= 0 ? 1e-4 : Math.abs(l.last.y - l.open.y),
|
|
@@ -833,47 +844,48 @@ const tl = ["id"], ll = ["xmlns", "aria-label", "viewBox"], al = ["x", "y", "wid
|
|
|
833
844
|
stroke: e.value.style.layout.candle.stroke,
|
|
834
845
|
"stroke-width": e.value.style.layout.candle.strokeWidth,
|
|
835
846
|
"stroke-linecap": "round",
|
|
836
|
-
"stroke-linejoin": "round"
|
|
837
|
-
|
|
847
|
+
"stroke-linejoin": "round",
|
|
848
|
+
class: S({ "vue-data-ui-transition": $.value && !u(z) })
|
|
849
|
+
}, null, 10, Tl))), 256))
|
|
838
850
|
]),
|
|
839
851
|
d("g", null, [
|
|
840
|
-
(s(!0),
|
|
841
|
-
x:
|
|
842
|
-
y:
|
|
843
|
-
height:
|
|
852
|
+
(s(!0), i(E, null, B(k.value, (l, o) => (s(), i("rect", {
|
|
853
|
+
x: n.value.left + o * v.value,
|
|
854
|
+
y: n.value.top,
|
|
855
|
+
height: n.value.height <= 0 ? 1e-4 : n.value.height,
|
|
844
856
|
width: v.value <= 0 ? 1e-4 : v.value,
|
|
845
|
-
fill:
|
|
846
|
-
onMouseover: (p) =>
|
|
857
|
+
fill: se.value === o ? u(Mt)(e.value.style.layout.selector.color, e.value.style.layout.selector.opacity) : "transparent",
|
|
858
|
+
onMouseover: (p) => ft(o, l),
|
|
847
859
|
onMouseleave: a[0] || (a[0] = (p) => {
|
|
848
|
-
|
|
860
|
+
se.value = void 0, ae.value = !1;
|
|
849
861
|
})
|
|
850
|
-
}, null, 40,
|
|
862
|
+
}, null, 40, Il))), 256))
|
|
851
863
|
])
|
|
852
864
|
])) : g("", !0),
|
|
853
865
|
m(t.$slots, "svg", { svg: y.value }, void 0, !0)
|
|
854
|
-
], 14,
|
|
855
|
-
t.$slots.watermark ? (s(),
|
|
856
|
-
m(t.$slots, "watermark",
|
|
866
|
+
], 14, ol)),
|
|
867
|
+
t.$slots.watermark ? (s(), i("div", Fl, [
|
|
868
|
+
m(t.$slots, "watermark", P(V({ isPrinting: u(Fe) || u(Re) })), void 0, !0)
|
|
857
869
|
])) : g("", !0),
|
|
858
|
-
e.value.style.zoom.show &&
|
|
870
|
+
e.value.style.zoom.show && te.value ? (s(), i("div", {
|
|
859
871
|
key: 5,
|
|
860
872
|
ref_key: "chartSlicer",
|
|
861
|
-
ref:
|
|
873
|
+
ref: Ae
|
|
862
874
|
}, [
|
|
863
|
-
(s(),
|
|
875
|
+
(s(), N(Qt, {
|
|
864
876
|
ref_key: "slicerComponent",
|
|
865
|
-
ref:
|
|
866
|
-
key: `slicer_${
|
|
877
|
+
ref: Me,
|
|
878
|
+
key: `slicer_${j.value}`,
|
|
867
879
|
background: e.value.style.zoom.color,
|
|
868
880
|
borderColor: e.value.style.backgroundColor,
|
|
869
881
|
fontSize: e.value.style.zoom.fontSize,
|
|
870
882
|
useResetSlot: e.value.style.zoom.useResetSlot,
|
|
871
|
-
labelLeft:
|
|
872
|
-
labelRight:
|
|
883
|
+
labelLeft: Be.value.start,
|
|
884
|
+
labelRight: Be.value.end,
|
|
873
885
|
textColor: e.value.style.color,
|
|
874
886
|
inputColor: e.value.style.zoom.color,
|
|
875
887
|
selectColor: e.value.style.zoom.highlightColor,
|
|
876
|
-
max:
|
|
888
|
+
max: G.value,
|
|
877
889
|
min: 0,
|
|
878
890
|
valueStart: h.value.start,
|
|
879
891
|
valueEnd: h.value.end,
|
|
@@ -882,33 +894,33 @@ const tl = ["id"], ll = ["xmlns", "aria-label", "viewBox"], al = ["x", "y", "wid
|
|
|
882
894
|
end: h.value.end,
|
|
883
895
|
"onUpdate:end": a[2] || (a[2] = (l) => h.value.end = l),
|
|
884
896
|
refreshStartPoint: e.value.style.zoom.startIndex !== null ? e.value.style.zoom.startIndex : 0,
|
|
885
|
-
refreshEndPoint: e.value.style.zoom.endIndex !== null ? e.value.style.zoom.endIndex + 1 :
|
|
897
|
+
refreshEndPoint: e.value.style.zoom.endIndex !== null ? e.value.style.zoom.endIndex + 1 : G.value,
|
|
886
898
|
enableRangeHandles: e.value.style.zoom.enableRangeHandles,
|
|
887
899
|
enableSelectionDrag: e.value.style.zoom.enableSelectionDrag,
|
|
888
|
-
onReset:
|
|
900
|
+
onReset: gt
|
|
889
901
|
}, {
|
|
890
902
|
"reset-action": x(({ reset: l }) => [
|
|
891
|
-
m(t.$slots, "reset-action",
|
|
903
|
+
m(t.$slots, "reset-action", P(V({ reset: l })), void 0, !0)
|
|
892
904
|
]),
|
|
893
905
|
_: 3
|
|
894
906
|
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"]))
|
|
895
907
|
], 512)) : g("", !0),
|
|
896
908
|
d("div", {
|
|
897
909
|
ref_key: "chartLegend",
|
|
898
|
-
ref:
|
|
910
|
+
ref: we
|
|
899
911
|
}, [
|
|
900
912
|
m(t.$slots, "legend", { legend: k.value }, void 0, !0)
|
|
901
913
|
], 512),
|
|
902
|
-
t.$slots.source ? (s(),
|
|
914
|
+
t.$slots.source ? (s(), i("div", {
|
|
903
915
|
key: 6,
|
|
904
916
|
ref_key: "source",
|
|
905
|
-
ref:
|
|
917
|
+
ref: _e,
|
|
906
918
|
dir: "auto"
|
|
907
919
|
}, [
|
|
908
920
|
m(t.$slots, "source", {}, void 0, !0)
|
|
909
921
|
], 512)) : g("", !0),
|
|
910
|
-
|
|
911
|
-
show: _.value.showTooltip &&
|
|
922
|
+
Ye(u(st), {
|
|
923
|
+
show: _.value.showTooltip && ae.value,
|
|
912
924
|
backgroundColor: e.value.style.tooltip.backgroundColor,
|
|
913
925
|
color: e.value.style.tooltip.color,
|
|
914
926
|
borderRadius: e.value.style.tooltip.borderRadius,
|
|
@@ -918,20 +930,20 @@ const tl = ["id"], ll = ["xmlns", "aria-label", "viewBox"], al = ["x", "y", "wid
|
|
|
918
930
|
backgroundOpacity: e.value.style.tooltip.backgroundOpacity,
|
|
919
931
|
position: e.value.style.tooltip.position,
|
|
920
932
|
offsetY: e.value.style.tooltip.offsetY,
|
|
921
|
-
parent:
|
|
922
|
-
content:
|
|
923
|
-
isFullscreen:
|
|
933
|
+
parent: T.value,
|
|
934
|
+
content: oe.value,
|
|
935
|
+
isFullscreen: W.value,
|
|
924
936
|
isCustom: e.value.style.tooltip.customFormat && typeof e.value.style.tooltip.customFormat == "function"
|
|
925
937
|
}, {
|
|
926
938
|
"tooltip-before": x(() => [
|
|
927
|
-
m(t.$slots, "tooltip-before",
|
|
939
|
+
m(t.$slots, "tooltip-before", P(V({ ...ye.value })), void 0, !0)
|
|
928
940
|
]),
|
|
929
941
|
"tooltip-after": x(() => [
|
|
930
|
-
m(t.$slots, "tooltip-after",
|
|
942
|
+
m(t.$slots, "tooltip-after", P(V({ ...ye.value })), void 0, !0)
|
|
931
943
|
]),
|
|
932
944
|
_: 3
|
|
933
945
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
934
|
-
|
|
946
|
+
te.value ? (s(), N(u(tt), {
|
|
935
947
|
key: 7,
|
|
936
948
|
hideDetails: "",
|
|
937
949
|
config: {
|
|
@@ -948,30 +960,30 @@ const tl = ["id"], ll = ["xmlns", "aria-label", "viewBox"], al = ["x", "y", "wid
|
|
|
948
960
|
}
|
|
949
961
|
}, {
|
|
950
962
|
content: x(() => [
|
|
951
|
-
(s(),
|
|
952
|
-
key: `table_${
|
|
953
|
-
colNames:
|
|
954
|
-
head:
|
|
955
|
-
body:
|
|
956
|
-
config:
|
|
963
|
+
(s(), N(u(lt), {
|
|
964
|
+
key: `table_${$e.value}`,
|
|
965
|
+
colNames: q.value.colNames,
|
|
966
|
+
head: q.value.head,
|
|
967
|
+
body: q.value.body,
|
|
968
|
+
config: q.value.config,
|
|
957
969
|
title: `${e.value.style.title.text}${e.value.style.title.subtitle.text ? ` : ${e.value.style.title.subtitle.text}` : ""}`,
|
|
958
970
|
onClose: a[3] || (a[3] = (l) => _.value.showTable = !1)
|
|
959
971
|
}, {
|
|
960
972
|
th: x(({ th: l }) => [
|
|
961
|
-
|
|
973
|
+
Rt(Q(l), 1)
|
|
962
974
|
]),
|
|
963
975
|
td: x(({ td: l }) => [
|
|
964
|
-
d("div", { innerHTML: l }, null, 8,
|
|
976
|
+
d("div", { innerHTML: l }, null, 8, Rl)
|
|
965
977
|
]),
|
|
966
978
|
_: 1
|
|
967
979
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
968
980
|
]),
|
|
969
981
|
_: 1
|
|
970
982
|
}, 8, ["config"])) : g("", !0),
|
|
971
|
-
|
|
972
|
-
], 46,
|
|
983
|
+
u(z) ? (s(), N(Jt, { key: 8 })) : g("", !0)
|
|
984
|
+
], 46, al));
|
|
973
985
|
}
|
|
974
|
-
},
|
|
986
|
+
}, Jl = /* @__PURE__ */ ll(Ol, [["__scopeId", "data-v-85d19459"]]);
|
|
975
987
|
export {
|
|
976
|
-
|
|
988
|
+
Jl as default
|
|
977
989
|
};
|