vue-data-ui 3.0.0-next.34 → 3.0.0-next.36
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-7o1zcGGd.js → Arrow-CSwNSv2c.js} +1 -1
- package/dist/{BaseDraggableDialog-fZ1Z5U4d.js → BaseDraggableDialog-DGOONbgy.js} +2 -2
- package/dist/{BaseIcon-Cq9SmUOT.js → BaseIcon-CKP5mFx_.js} +1 -1
- package/dist/{ColorPicker-BNmC5tPY.js → ColorPicker-DCLStg36.js} +2 -2
- package/dist/{DataTable-DonNp9Tn.js → DataTable-DMXRqxO9.js} +2 -2
- package/dist/{Legend-De_LcU2x.js → Legend-D6apcxV3.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DCCmvppN.js → NonSvgPenAndPaper-CjLa6lCT.js} +3 -3
- package/dist/{PackageVersion-F_KOshQ5.js → PackageVersion-DOtis8zH.js} +1 -1
- package/dist/{PenAndPaper-BzsPyqiU.js → PenAndPaper-XC3SNbgm.js} +3 -3
- package/dist/{Shape-CJI8rA0G.js → Shape-Dib8cPqa.js} +1 -1
- package/dist/{Slicer-BCCGJwNV.js → Slicer-BBfWOoWo.js} +2 -2
- package/dist/{SparkTooltip-ZSo6Sdhj.js → SparkTooltip-Bt0DuWbI.js} +1 -1
- package/dist/{Title-CbfJu3Bz.js → Title-lox3SQPC.js} +1 -1
- package/dist/{Tooltip-BuuVsO8D.js → Tooltip-DzK1HoFb.js} +1 -1
- package/dist/{UserOptions-32osgWD2.js → UserOptions-Dy6QIYd1.js} +2 -2
- package/dist/{dom-to-png-B4iPnzPd.js → dom-to-png-DE11zvjY.js} +1 -1
- package/dist/{img-Domj-5hZ.js → img-Bv894v6P.js} +1 -1
- package/dist/{index-BeBasrrG.js → index-enA2Fisu.js} +42 -1
- package/dist/{pdf-KclgkN6e.js → pdf-L3nnkB10.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +43 -2
- package/dist/types/vue-data-ui.d.ts +43 -2
- package/dist/{useNestedProp-BI69cynt.js → useNestedProp-Crm1jYNw.js} +1 -1
- package/dist/{usePrinter-DpTBVYGM.js → usePrinter-Bh6HKGit.js} +2 -2
- package/dist/{vue-data-ui-DfOSI-cw.js → vue-data-ui-DtKKT9mu.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-BFUcEqAl.js → vue-ui-3d-bar-DNmDddQ7.js} +6 -6
- package/dist/{vue-ui-accordion-BBZQktvS.js → vue-ui-accordion-CwPBtAl7.js} +3 -3
- package/dist/{vue-ui-age-pyramid-C1fCszkG.js → vue-ui-age-pyramid-DEs8Im_T.js} +6 -6
- package/dist/{vue-ui-annotator-BThZoiBl.js → vue-ui-annotator-CYxLPnzs.js} +2 -2
- package/dist/{vue-ui-bullet-D0-jL6aT.js → vue-ui-bullet-cjmFokeG.js} +7 -7
- package/dist/{vue-ui-candlestick-BKY_1NxQ.js → vue-ui-candlestick-uq3rtBpr.js} +170 -165
- package/dist/{vue-ui-carousel-table-RqYXqUym.js → vue-ui-carousel-table-DedRyMvM.js} +4 -4
- package/dist/{vue-ui-chestnut-QLx875w4.js → vue-ui-chestnut-Dn9dHx8K.js} +5 -5
- package/dist/{vue-ui-chord-rUYoYkRO.js → vue-ui-chord-Bj-2Jo5l.js} +8 -8
- package/dist/{vue-ui-circle-pack-DX5resGr.js → vue-ui-circle-pack-ZvoREQHu.js} +6 -6
- package/dist/{vue-ui-cursor-Day-0aL1.js → vue-ui-cursor-NAIw30mO.js} +2 -2
- package/dist/{vue-ui-dashboard-G0W4wq1U.js → vue-ui-dashboard-W22IluaL.js} +62 -62
- package/dist/{vue-ui-digits-DFREi_Ky.js → vue-ui-digits-BvEwf4JI.js} +2 -2
- package/dist/{vue-ui-donut-BdxnEUCr.js → vue-ui-donut-Bta-E_EJ.js} +8 -8
- package/dist/{vue-ui-donut-evolution-DYeMgZMU.js → vue-ui-donut-evolution-BLNSoCwi.js} +176 -176
- package/dist/{vue-ui-dumbbell-ajhNYekO.js → vue-ui-dumbbell-BQu3zOec.js} +7 -7
- package/dist/{vue-ui-flow-BOq3_apj.js → vue-ui-flow-CsT8FX_C.js} +7 -7
- package/dist/{vue-ui-funnel-1Tc-WWAK.js → vue-ui-funnel-L18wphWh.js} +6 -6
- package/dist/{vue-ui-galaxy-DRdIquCv.js → vue-ui-galaxy-fdHsQUbR.js} +5 -5
- package/dist/{vue-ui-gauge-B0a3J_d1.js → vue-ui-gauge-BBaQNbeF.js} +6 -6
- package/dist/{vue-ui-gizmo-5G0uR26C.js → vue-ui-gizmo-Cb74L98r.js} +3 -3
- package/dist/{vue-ui-heatmap-BGYSmKC-.js → vue-ui-heatmap-Bs45BL94.js} +7 -7
- package/dist/{vue-ui-history-plot-kHo6293P.js → vue-ui-history-plot-D5xwgxuT.js} +7 -7
- package/dist/{vue-ui-kpi-6zONwNMN.js → vue-ui-kpi-d2S8__3L.js} +3 -3
- package/dist/{vue-ui-mini-loader-XyVfmLch.js → vue-ui-mini-loader-ByNP8i6H.js} +2 -2
- package/dist/{vue-ui-molecule-BoQKd6NP.js → vue-ui-molecule-DFECHTJM.js} +5 -5
- package/dist/{vue-ui-mood-radar-DncLIzjX.js → vue-ui-mood-radar-C2f-hGt7.js} +7 -7
- package/dist/{vue-ui-nested-donuts-DXMadqNK.js → vue-ui-nested-donuts-BkZp7YQ7.js} +9 -9
- package/dist/{vue-ui-onion-CbtXXJHJ.js → vue-ui-onion-sEyGIxJh.js} +7 -7
- package/dist/{vue-ui-parallel-coordinate-plot-D-zLAqYN.js → vue-ui-parallel-coordinate-plot-JC5eiVHp.js} +8 -8
- package/dist/{vue-ui-quadrant-DqN9de-E.js → vue-ui-quadrant-sSBNovN6.js} +8 -8
- package/dist/{vue-ui-quick-chart-fAHV8BFQ.js → vue-ui-quick-chart-eVp8EGMt.js} +6 -6
- package/dist/{vue-ui-radar-Dcr4Y35J.js → vue-ui-radar-BHhOC9kA.js} +7 -7
- package/dist/{vue-ui-rating-Y_X6wrM8.js → vue-ui-rating-B8kgr0tD.js} +2 -2
- package/dist/{vue-ui-relation-circle-CsjfP4w3.js → vue-ui-relation-circle-NVBHf3Ro.js} +6 -6
- package/dist/{vue-ui-ridgeline-COQZjWXD.js → vue-ui-ridgeline-ASDvur5L.js} +11 -9
- package/dist/{vue-ui-rings-IWHU4YHR.js → vue-ui-rings-C97YkY1L.js} +8 -8
- package/dist/{vue-ui-scatter-zG4nPspJ.js → vue-ui-scatter-C3GYlFs2.js} +8 -8
- package/dist/{vue-ui-skeleton-BLCAe0aL.js → vue-ui-skeleton-BGtcT66j.js} +3 -3
- package/dist/{vue-ui-smiley-CgMyaK6w.js → vue-ui-smiley-DIIPhk76.js} +2 -2
- package/dist/{vue-ui-spark-trend-Dn2iTtuB.js → vue-ui-spark-trend-B0oiB1HI.js} +3 -3
- package/dist/{vue-ui-sparkbar-BA_s34xX.js → vue-ui-sparkbar-HEQwPqci.js} +3 -3
- package/dist/{vue-ui-sparkgauge-CGoeUY4p.js → vue-ui-sparkgauge-CYq7uvkr.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-BuSn8iJi.js → vue-ui-sparkhistogram-CC0jgIM2.js} +4 -4
- package/dist/{vue-ui-sparkline-CYJUhGaJ.js → vue-ui-sparkline-DkFn707d.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-BDQWVxNP.js → vue-ui-sparkstackbar-BQH_7kqj.js} +3 -3
- package/dist/{vue-ui-stackbar-B92-pzwh.js → vue-ui-stackbar-C1ZiF9u8.js} +406 -400
- package/dist/{vue-ui-strip-plot-BLTjzATL.js → vue-ui-strip-plot-DsVjqkFe.js} +7 -7
- package/dist/{vue-ui-table-Ba7Z_7OX.js → vue-ui-table-TVnVtJAG.js} +3 -3
- package/dist/{vue-ui-table-heatmap-C29u3mfg.js → vue-ui-table-heatmap-IuC4qjxQ.js} +5 -5
- package/dist/{vue-ui-table-sparkline-BLR9glHo.js → vue-ui-table-sparkline-Di7rcfCp.js} +4 -4
- package/dist/{vue-ui-thermometer-BAm6l97t.js → vue-ui-thermometer-DoUtzm8y.js} +6 -6
- package/dist/{vue-ui-timer-CqbbNnBk.js → vue-ui-timer-C6NN9Dp9.js} +5 -5
- package/dist/{vue-ui-tiremarks-BnZr2Vrp.js → vue-ui-tiremarks-D-dyCz2j.js} +6 -6
- package/dist/{vue-ui-treemap-J8OANLCg.js → vue-ui-treemap-91xJeG0F.js} +8 -8
- package/dist/{vue-ui-vertical-bar-DdR3STYF.js → vue-ui-vertical-bar-BiUb_W7m.js} +9 -9
- package/dist/vue-ui-waffle-C6WcwTB7.js +910 -0
- package/dist/{vue-ui-wheel-D5yea4oH.js → vue-ui-wheel-ByOKs5in.js} +6 -6
- package/dist/{vue-ui-word-cloud-OugLGxgB.js → vue-ui-word-cloud-Dr4mZAqV.js} +6 -6
- package/dist/{vue-ui-world-BSptBo4h.js → vue-ui-world-DRsAnAD3.js} +6 -6
- package/dist/{vue-ui-xy-DnYo2K58.js → vue-ui-xy-Cyp2iGkS.js} +12 -11
- package/dist/{vue-ui-xy-canvas-Cmn0RWbG.js → vue-ui-xy-canvas-DoIboNfE.js} +8 -8
- package/package.json +1 -1
- package/dist/vue-ui-waffle-w5VJA7gR.js +0 -865
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { defineAsyncComponent as D, computed as g, ref as r, toRefs as
|
|
2
|
-
import { u as
|
|
3
|
-
import { t as Ke, u as
|
|
4
|
-
import { u as Qe } from "./useNestedProp-
|
|
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 g, ref as r, toRefs as Rt, watch as pe, shallowRef as Xe, onMounted as Ot, onBeforeUnmount as je, watchEffect as Nt, nextTick as be, createElementBlock as i, openBlock as s, unref as u, normalizeStyle as me, normalizeClass as S, createBlock as N, createCommentVNode as p, createElementVNode as y, createVNode as Ye, createSlots as Pt, withCtx as x, renderSlot as b, normalizeProps as P, guardReactiveProps as E, Fragment as V, renderList as B, toDisplayString as Q, createTextVNode as Et } from "vue";
|
|
2
|
+
import { u as Vt, c as Bt, A as Mt, a as Ut, C as Z, o as qe, e as M, D as Wt, v as X, f as L, X as Dt, w as ee, s as Ht, E as Je, q as Gt, r as Xt, x as jt, y as Yt } from "./index-enA2Fisu.js";
|
|
3
|
+
import { t as Ke, u as qt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Qe } from "./useNestedProp-Crm1jYNw.js";
|
|
5
|
+
import { u as Jt } from "./usePrinter-Bh6HKGit.js";
|
|
6
|
+
import { u as Kt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
|
+
import { u as Qt } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
+
import { u as Zt, B as el } from "./BaseScanner-DIK2NTdp.js";
|
|
9
|
+
import tl from "./Title-lox3SQPC.js";
|
|
10
|
+
import { S as ll } from "./Slicer-BBfWOoWo.js";
|
|
11
|
+
import { u as al } from "./useTimeLabels-DkzmKfZn.js";
|
|
12
|
+
import ol from "./img-Bv894v6P.js";
|
|
13
|
+
import { u as sl } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
14
|
+
import { _ as ul } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
|
+
const il = ["id"], nl = ["xmlns", "aria-label", "viewBox"], rl = ["x", "y", "width", "height"], vl = { key: 1 }, dl = ["id"], cl = ["stop-color"], yl = ["stop-color"], hl = ["stop-color"], fl = ["id"], gl = ["stop-color"], pl = ["stop-color"], bl = ["stop-color"], ml = { key: 0 }, xl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], kl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], wl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Al = ["x", "y", "font-size", "fill", "font-weight"], _l = ["transform", "text-anchor", "font-size", "fill", "font-weight"], Cl = ["transform", "text-anchor", "font-size", "fill", "font-weight"], $l = ["x", "y", "width", "height", "fill", "rx"], zl = { key: 0 }, Sl = ["cx", "cy", "r", "fill"], Ll = ["cx", "cy", "r", "fill"], Tl = { key: 1 }, Il = ["x", "y", "width", "height", "rx", "fill"], Fl = ["x", "y", "width", "height", "fill", "rx"], Rl = ["x", "y", "height", "width", "fill", "rx"], Ol = ["x", "y", "height", "width", "fill", "rx", "stroke", "stroke-width"], Nl = ["x", "y", "height", "width", "fill", "onMouseover", "onMouseleave", "onClick"], Pl = {
|
|
16
16
|
key: 4,
|
|
17
17
|
class: "vue-data-ui-watermark"
|
|
18
|
-
},
|
|
18
|
+
}, El = ["innerHTML"], Vl = {
|
|
19
19
|
__name: "vue-ui-candlestick",
|
|
20
20
|
props: {
|
|
21
21
|
config: {
|
|
@@ -32,13 +32,13 @@ const sl = ["id"], ul = ["xmlns", "aria-label", "viewBox"], il = ["x", "y", "wid
|
|
|
32
32
|
}
|
|
33
33
|
},
|
|
34
34
|
setup(Ze, { expose: et }) {
|
|
35
|
-
const tt = D(() => import("./vue-ui-accordion-
|
|
36
|
-
...
|
|
35
|
+
const tt = D(() => import("./vue-ui-accordion-CwPBtAl7.js")), lt = D(() => import("./DataTable-DMXRqxO9.js")), at = D(() => import("./PackageVersion-DOtis8zH.js")), ot = D(() => import("./PenAndPaper-XC3SNbgm.js")), st = D(() => import("./Tooltip-DzK1HoFb.js")), ut = D(() => import("./UserOptions-Dy6QIYd1.js")), { vue_ui_candlestick: it } = Vt(), h = Ze, te = g(() => !!h.dataset && h.dataset.length), $ = r(!1), le = r(null), w = r(Bt()), 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 } = Zt({
|
|
36
|
+
...Rt(h),
|
|
37
37
|
FINAL_CONFIG: e,
|
|
38
38
|
prepareConfig: re,
|
|
39
39
|
callback: () => {
|
|
40
40
|
Promise.resolve().then(async () => {
|
|
41
|
-
await
|
|
41
|
+
await ye();
|
|
42
42
|
});
|
|
43
43
|
},
|
|
44
44
|
skeletonDataset: [
|
|
@@ -55,7 +55,7 @@ const sl = ["id"], ul = ["xmlns", "aria-label", "viewBox"], il = ["x", "y", "wid
|
|
|
55
55
|
[17304192e5, 890, 2330, 550, 1950, 3770],
|
|
56
56
|
[17330112e5, 1440, 3770, 890, 3200, 5100]
|
|
57
57
|
],
|
|
58
|
-
skeletonConfig:
|
|
58
|
+
skeletonConfig: Mt({
|
|
59
59
|
defaultConfig: e.value,
|
|
60
60
|
userConfig: {
|
|
61
61
|
useCssAnimation: !1,
|
|
@@ -96,24 +96,24 @@ const sl = ["id"], ul = ["xmlns", "aria-label", "viewBox"], il = ["x", "y", "wid
|
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
})
|
|
99
|
-
}), { userOptionsVisible: ne, setUserOptionsVisibility: Se, keepUserOptionState: Le } =
|
|
99
|
+
}), { userOptionsVisible: ne, setUserOptionsVisibility: Se, keepUserOptionState: Le } = Kt({ config: e.value }), { svgRef: Te } = Qt({ config: e.value.style.title });
|
|
100
100
|
function re() {
|
|
101
101
|
const t = Qe({
|
|
102
|
-
userConfig:
|
|
102
|
+
userConfig: h.config,
|
|
103
103
|
defaultConfig: it
|
|
104
104
|
});
|
|
105
105
|
let a = {};
|
|
106
106
|
return t.theme ? a = {
|
|
107
107
|
...Qe({
|
|
108
|
-
userConfig:
|
|
108
|
+
userConfig: Ut.vue_ui_candlestick[t.theme] || h.config,
|
|
109
109
|
defaultConfig: t
|
|
110
110
|
})
|
|
111
|
-
} : a = t,
|
|
111
|
+
} : a = t, h.config && Z(h.config, "style.zoom.startIndex") ? a.style.zoom.startIndex = h.config.style.zoom.startIndex : a.style.zoom.startIndex = null, h.config && Z(h.config, "style.zoom.endIndex") ? a.style.zoom.endIndex = h.config.style.zoom.endIndex : a.style.zoom.endIndex = null, h.config && Z(h.config, "style.layout.grid.yAxis.scale.min") ? a.style.layout.grid.yAxis.scale.min = h.config.style.layout.grid.yAxis.scale.min : a.style.layout.grid.yAxis.scale.min = null, h.config && Z(h.config, "style.layout.grid.yAxis.scale.max") ? a.style.layout.grid.yAxis.scale.max = h.config.style.layout.grid.yAxis.scale.max : a.style.layout.grid.yAxis.scale.max = null, a;
|
|
112
112
|
}
|
|
113
|
-
pe(() =>
|
|
113
|
+
pe(() => h.config, (t) => {
|
|
114
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(() =>
|
|
116
|
-
Array.isArray(t) && t.length > 0 && (ie.value = !1),
|
|
115
|
+
}, { deep: !0 }), pe(() => h.dataset, (t) => {
|
|
116
|
+
Array.isArray(t) && t.length > 0 && (ie.value = !1), c.value.start = 0, c.value.end = t.length, j.value += 1;
|
|
117
117
|
}, { deep: !0 });
|
|
118
118
|
const d = r({
|
|
119
119
|
height: e.value.style.height,
|
|
@@ -121,21 +121,21 @@ const sl = ["id"], ul = ["xmlns", "aria-label", "viewBox"], il = ["x", "y", "wid
|
|
|
121
121
|
xAxisFontSize: e.value.style.layout.grid.xAxis.dataLabels.fontSize,
|
|
122
122
|
yAxisFontSize: e.value.style.layout.grid.yAxis.dataLabels.fontSize
|
|
123
123
|
}), I = Xe(null), U = Xe(null);
|
|
124
|
-
|
|
124
|
+
Ot(() => {
|
|
125
125
|
Ie();
|
|
126
126
|
});
|
|
127
127
|
const F = g(() => !!e.value.debug);
|
|
128
128
|
function Ie() {
|
|
129
|
-
if (qe(
|
|
129
|
+
if (qe(h.dataset) && (M({
|
|
130
130
|
componentName: "VueUiCandlestick",
|
|
131
131
|
type: "dataset",
|
|
132
132
|
debug: F.value
|
|
133
|
-
}), ie.value = !0), qe(
|
|
133
|
+
}), ie.value = !0), qe(h.dataset) || (ie.value = e.value.loading), setTimeout(() => {
|
|
134
134
|
$.value = !0;
|
|
135
135
|
}, 10), e.value.responsive) {
|
|
136
136
|
const a = Ke(() => {
|
|
137
137
|
$.value = !1;
|
|
138
|
-
const { width: l, height: o } =
|
|
138
|
+
const { width: l, height: o } = qt({
|
|
139
139
|
chart: T.value,
|
|
140
140
|
title: e.value.style.title.text ? ke.value : null,
|
|
141
141
|
slicer: Ae.value,
|
|
@@ -163,12 +163,12 @@ const sl = ["id"], ul = ["xmlns", "aria-label", "viewBox"], il = ["x", "y", "wid
|
|
|
163
163
|
});
|
|
164
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);
|
|
165
165
|
}
|
|
166
|
-
|
|
166
|
+
ye();
|
|
167
167
|
}
|
|
168
168
|
je(() => {
|
|
169
169
|
I.value && (U.value && I.value.unobserve(U.value), I.value.disconnect());
|
|
170
170
|
});
|
|
171
|
-
const { isPrinting: Fe, isImaging: Re, generatePdf: Oe, generateImage: Ne } =
|
|
171
|
+
const { isPrinting: Fe, isImaging: Re, generatePdf: Oe, generateImage: Ne } = Jt({
|
|
172
172
|
elementId: `vue-ui-candlestick_${w.value}`,
|
|
173
173
|
fileName: e.value.style.title.text || "vue-ui-candlestick",
|
|
174
174
|
options: e.value.userOptions.print
|
|
@@ -178,7 +178,7 @@ const sl = ["id"], ul = ["xmlns", "aria-label", "viewBox"], il = ["x", "y", "wid
|
|
|
178
178
|
}), ve = r(0), vt = Ke((t) => {
|
|
179
179
|
ve.value = t;
|
|
180
180
|
}, 100);
|
|
181
|
-
|
|
181
|
+
Nt((t) => {
|
|
182
182
|
const a = H.value;
|
|
183
183
|
if (!a) return;
|
|
184
184
|
const l = new ResizeObserver((o) => {
|
|
@@ -194,28 +194,28 @@ const sl = ["id"], ul = ["xmlns", "aria-label", "viewBox"], il = ["x", "y", "wid
|
|
|
194
194
|
});
|
|
195
195
|
function dt() {
|
|
196
196
|
let t = e.value.style.layout.grid.yAxis.dataLabels.offsetX;
|
|
197
|
-
return ue.value && (t = Array.from(ue.value.querySelectorAll("text")).reduce((o,
|
|
198
|
-
const f =
|
|
197
|
+
return ue.value && (t = Array.from(ue.value.querySelectorAll("text")).reduce((o, m) => {
|
|
198
|
+
const f = m.getComputedTextLength();
|
|
199
199
|
return f > o ? f : o;
|
|
200
200
|
}, 0)), t + 13;
|
|
201
201
|
}
|
|
202
202
|
const n = g(() => {
|
|
203
|
-
const { top: t, right: a, bottom: l, left: o } = e.value.style.layout.padding,
|
|
203
|
+
const { top: t, right: a, bottom: l, left: o } = e.value.style.layout.padding, m = dt(), f = 12;
|
|
204
204
|
return {
|
|
205
205
|
top: t + f,
|
|
206
206
|
right: d.value.width - a,
|
|
207
|
-
left: o +
|
|
207
|
+
left: o + m,
|
|
208
208
|
bottom: d.value.height - l - Pe.value,
|
|
209
|
-
width: d.value.width - o - a -
|
|
209
|
+
width: d.value.width - o - a - m,
|
|
210
210
|
height: d.value.height - t - l - Pe.value - f
|
|
211
211
|
};
|
|
212
|
-
}), G = g(() => A.value.length),
|
|
212
|
+
}), G = g(() => A.value.length), c = r({
|
|
213
213
|
start: 0,
|
|
214
214
|
end: G.value
|
|
215
|
-
}),
|
|
215
|
+
}), Ee = g(() => A.value.map((t, a) => ({
|
|
216
216
|
...t,
|
|
217
217
|
absoluteIndex: a
|
|
218
|
-
})).slice(
|
|
218
|
+
})).slice(c.value.start, c.value.end)), de = g(() => (A.value.forEach((t, a) => {
|
|
219
219
|
[null, void 0].includes(t[0]) && M({
|
|
220
220
|
componentName: "VueUiCandlestick",
|
|
221
221
|
type: "datasetAttribute",
|
|
@@ -253,7 +253,7 @@ const sl = ["id"], ul = ["xmlns", "aria-label", "viewBox"], il = ["x", "y", "wid
|
|
|
253
253
|
index: a,
|
|
254
254
|
debug: F.value
|
|
255
255
|
});
|
|
256
|
-
}),
|
|
256
|
+
}), Ee.value.map((t) => ({
|
|
257
257
|
absoluteIndex: t.absoluteIndex,
|
|
258
258
|
period: t[0],
|
|
259
259
|
open: t[1],
|
|
@@ -261,13 +261,13 @@ const sl = ["id"], ul = ["xmlns", "aria-label", "viewBox"], il = ["x", "y", "wid
|
|
|
261
261
|
low: t[3],
|
|
262
262
|
last: t[4],
|
|
263
263
|
volume: t[5]
|
|
264
|
-
})))), v = g(() => n.value.width /
|
|
264
|
+
})))), v = g(() => n.value.width / Ee.value.length), Ve = g(() => {
|
|
265
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;
|
|
266
266
|
return {
|
|
267
267
|
max: t,
|
|
268
268
|
min: a
|
|
269
269
|
};
|
|
270
|
-
}), C = g(() =>
|
|
270
|
+
}), C = g(() => Wt(Ve.value.min, Ve.value.max, e.value.style.layout.grid.yAxis.dataLabels.steps));
|
|
271
271
|
function Y(t, a) {
|
|
272
272
|
return {
|
|
273
273
|
...t,
|
|
@@ -277,46 +277,52 @@ const sl = ["id"], ul = ["xmlns", "aria-label", "viewBox"], il = ["x", "y", "wid
|
|
|
277
277
|
};
|
|
278
278
|
}
|
|
279
279
|
const k = g(() => de.value.map((t, a) => {
|
|
280
|
-
const l = Y(t.open, a), o = Y(t.high, a),
|
|
280
|
+
const l = Y(t.open, a), o = Y(t.high, a), m = Y(t.low, a), f = Y(t.last, a), O = t.last > t.open;
|
|
281
281
|
return {
|
|
282
282
|
period: t.period,
|
|
283
283
|
open: l,
|
|
284
284
|
high: o,
|
|
285
|
-
low:
|
|
285
|
+
low: m,
|
|
286
286
|
last: f,
|
|
287
287
|
volume: t.volume,
|
|
288
288
|
isBullish: O,
|
|
289
289
|
absoluteIndex: t.absoluteIndex
|
|
290
290
|
};
|
|
291
291
|
}));
|
|
292
|
-
function
|
|
292
|
+
function ct(t) {
|
|
293
293
|
return X((t - C.value.min) / (C.value.max - C.value.min));
|
|
294
294
|
}
|
|
295
|
-
const
|
|
296
|
-
y: n.value.bottom - n.value.height *
|
|
295
|
+
const yt = g(() => C.value.ticks.map((t) => ({
|
|
296
|
+
y: n.value.bottom - n.value.height * ct(t),
|
|
297
297
|
value: X(t)
|
|
298
|
-
}))), ht = g(() => de.value.map((t) => t.period)), R = g(() =>
|
|
298
|
+
}))), ht = g(() => de.value.map((t) => t.period)), R = g(() => al({
|
|
299
299
|
values: A.value.map((t) => t[0]),
|
|
300
300
|
maxDatapoints: A.value.length,
|
|
301
301
|
formatter: e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter,
|
|
302
|
-
start:
|
|
303
|
-
end:
|
|
302
|
+
start: c.value.start,
|
|
303
|
+
end: c.value.end
|
|
304
304
|
})), Be = g(() => e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? {
|
|
305
|
-
start: R.value.find((t) => t.absoluteIndex ===
|
|
306
|
-
end: R.value.find((t) => t.absoluteIndex ===
|
|
305
|
+
start: R.value.find((t) => t.absoluteIndex === c.value.start).text,
|
|
306
|
+
end: R.value.find((t) => t.absoluteIndex === c.value.end - 1).text
|
|
307
307
|
} : {
|
|
308
|
-
start: A.value[
|
|
309
|
-
end: A.value[
|
|
310
|
-
}),
|
|
308
|
+
start: A.value[c.value.start] ? A.value[c.value.start][0] : A.value[0][0],
|
|
309
|
+
end: A.value[c.value.end - 1] ? A.value[c.value.end - 1][0] : A.value.at(-1)[0]
|
|
310
|
+
}), ce = r(null);
|
|
311
311
|
function ft(t, a) {
|
|
312
|
-
|
|
312
|
+
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: a, seriesIndex: t + c.value.start });
|
|
313
|
+
}
|
|
314
|
+
function gt(t, a) {
|
|
315
|
+
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: a, seriesIndex: t + c.value.start }), se.value = void 0, ae.value = !1;
|
|
316
|
+
}
|
|
317
|
+
function pt(t, a) {
|
|
318
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: a, seriesIndex: t + c.value.start }), se.value = t, ce.value = {
|
|
313
319
|
datapoint: a,
|
|
314
320
|
seriesIndex: t,
|
|
315
321
|
series: k.value,
|
|
316
322
|
config: e.value
|
|
317
323
|
};
|
|
318
324
|
const l = e.value.style.tooltip.customFormat;
|
|
319
|
-
if (
|
|
325
|
+
if (jt(l) && Yt(() => l({
|
|
320
326
|
seriesIndex: t,
|
|
321
327
|
datapoint: a,
|
|
322
328
|
series: k.value,
|
|
@@ -330,50 +336,50 @@ const sl = ["id"], ul = ["xmlns", "aria-label", "viewBox"], il = ["x", "y", "wid
|
|
|
330
336
|
});
|
|
331
337
|
else if (e.value.style.tooltip.show) {
|
|
332
338
|
let o = "";
|
|
333
|
-
const { period:
|
|
339
|
+
const { period: m, open: f, high: O, low: fe, last: ge, volume: K, isBullish: Ge } = k.value[t], { period: Bl, open: At, high: _t, low: Ct, last: $t, volume: zt } = e.value.translations, St = e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? R.value[t].text : m;
|
|
334
340
|
o += `<div><svg style="margin-right:6px" viewBox="0 0 12 12" height="12" width="12"><rect x="0" y="0" height="12" width="12" rx="${e.value.style.layout.candle.borderRadius * 3}" stroke="${e.value.style.layout.candle.stroke}" stroke-width="${e.value.style.layout.candle.strokeWidth}"
|
|
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>${
|
|
336
|
-
const
|
|
341
|
+
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>${St}</div>`, o += `${zt} : <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}">`;
|
|
342
|
+
const Lt = L({
|
|
337
343
|
p: e.value.style.tooltip.prefix,
|
|
338
344
|
v: f.value,
|
|
339
345
|
s: e.value.style.tooltip.suffix,
|
|
340
346
|
r: e.value.style.tooltip.roundingValue
|
|
341
347
|
});
|
|
342
|
-
o += `<div>${
|
|
343
|
-
const
|
|
348
|
+
o += `<div>${At}: <b>${Lt}</b></div>`;
|
|
349
|
+
const Tt = L({
|
|
344
350
|
p: e.value.style.tooltip.prefix,
|
|
345
351
|
v: O.value,
|
|
346
352
|
s: e.value.style.tooltip.suffix,
|
|
347
353
|
r: e.value.style.tooltip.roundingValue
|
|
348
354
|
});
|
|
349
|
-
o += `<div>${
|
|
350
|
-
const
|
|
355
|
+
o += `<div>${_t}: <b>${Tt}</b></div>`;
|
|
356
|
+
const It = L({
|
|
351
357
|
p: e.value.style.tooltip.prefix,
|
|
352
358
|
v: fe.value,
|
|
353
359
|
s: e.value.style.tooltip.suffix,
|
|
354
360
|
r: e.value.style.tooltip.roundingValue
|
|
355
361
|
});
|
|
356
|
-
o += `<div>${
|
|
357
|
-
const
|
|
362
|
+
o += `<div>${Ct}: <b>${It}</b></div>`;
|
|
363
|
+
const Ft = L({
|
|
358
364
|
p: e.value.style.tooltip.prefix,
|
|
359
365
|
v: ge.value,
|
|
360
366
|
s: e.value.style.tooltip.suffix,
|
|
361
367
|
r: e.value.style.tooltip.roundingValue
|
|
362
368
|
});
|
|
363
|
-
o += `<div>${
|
|
369
|
+
o += `<div>${$t}: <b>${Ft}</b></div>`, o += "</div>", oe.value = `<div style="text-align:right">${o}</div>`;
|
|
364
370
|
}
|
|
365
371
|
ae.value = !0;
|
|
366
372
|
}
|
|
367
|
-
function
|
|
368
|
-
|
|
373
|
+
function bt() {
|
|
374
|
+
ye();
|
|
369
375
|
}
|
|
370
376
|
const Me = r(null);
|
|
371
|
-
async function
|
|
377
|
+
async function ye() {
|
|
372
378
|
await be(), await be();
|
|
373
379
|
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(
|
|
380
|
+
(t != null || a != null) && l ? (t != null && l.setStartValue(t), a != null && l.setEndValue(mt(a + 1))) : (c.value = { start: 0, end: o }, j.value += 1);
|
|
375
381
|
}
|
|
376
|
-
function
|
|
382
|
+
function mt(t) {
|
|
377
383
|
const a = G.value;
|
|
378
384
|
return t > a ? a : t < 0 || e.value.style.zoom.startIndex !== null && t < e.value.style.zoom.startIndex ? e.value.style.zoom.startIndex !== null ? e.value.style.zoom.startIndex + 1 : 1 : t;
|
|
379
385
|
}
|
|
@@ -386,13 +392,13 @@ const sl = ["id"], ul = ["xmlns", "aria-label", "viewBox"], il = ["x", "y", "wid
|
|
|
386
392
|
f.low.value,
|
|
387
393
|
f.last.value,
|
|
388
394
|
f.volume
|
|
389
|
-
]), o = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([a]).concat(l),
|
|
390
|
-
t ? t(
|
|
395
|
+
]), o = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([a]).concat(l), m = Gt(o);
|
|
396
|
+
t ? t(m) : Xt({ csvContent: m, title: e.value.style.title.text || "vue-ui-candlestick" });
|
|
391
397
|
});
|
|
392
398
|
}
|
|
393
399
|
const q = g(() => {
|
|
394
|
-
const t = k.value.map((o,
|
|
395
|
-
const f = e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? R.value[
|
|
400
|
+
const t = k.value.map((o, m) => {
|
|
401
|
+
const f = e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? R.value[m].text : o.period, O = L({
|
|
396
402
|
p: e.value.table.td.prefix,
|
|
397
403
|
v: o.open.value,
|
|
398
404
|
s: e.value.table.td.suffix,
|
|
@@ -456,11 +462,11 @@ const sl = ["id"], ul = ["xmlns", "aria-label", "viewBox"], il = ["x", "y", "wid
|
|
|
456
462
|
function he() {
|
|
457
463
|
J.value = !J.value;
|
|
458
464
|
}
|
|
459
|
-
async function
|
|
465
|
+
async function xt({ scale: t = 2 } = {}) {
|
|
460
466
|
if (!T.value) return;
|
|
461
|
-
const { width: a, height: l } = T.value.getBoundingClientRect(), o = a / l, { imageUri:
|
|
467
|
+
const { width: a, height: l } = T.value.getBoundingClientRect(), o = a / l, { imageUri: m, base64: f } = await ol({ domElement: T.value, base64: !0, img: !0, scale: t });
|
|
462
468
|
return {
|
|
463
|
-
imageUri:
|
|
469
|
+
imageUri: m,
|
|
464
470
|
base64: f,
|
|
465
471
|
title: e.value.style.title.text,
|
|
466
472
|
width: a,
|
|
@@ -468,24 +474,24 @@ const sl = ["id"], ul = ["xmlns", "aria-label", "viewBox"], il = ["x", "y", "wid
|
|
|
468
474
|
aspectRatio: o
|
|
469
475
|
};
|
|
470
476
|
}
|
|
471
|
-
const
|
|
472
|
-
return
|
|
477
|
+
const kt = g(() => d.value.width), wt = g(() => d.value.height);
|
|
478
|
+
return sl({
|
|
473
479
|
timeLabelsEls: H,
|
|
474
480
|
timeLabels: R,
|
|
475
|
-
slicer:
|
|
481
|
+
slicer: c,
|
|
476
482
|
configRef: e,
|
|
477
483
|
rotationPath: ["style", "layout", "grid", "xAxis", "dataLabels", "rotation"],
|
|
478
484
|
autoRotatePath: ["style", "layout", "grid", "xAxis", "dataLabels", "autoRotate"],
|
|
479
485
|
isAutoSize: !1,
|
|
480
|
-
width:
|
|
481
|
-
height:
|
|
486
|
+
width: kt,
|
|
487
|
+
height: wt
|
|
482
488
|
}), pe(e, () => {
|
|
483
489
|
_.value = {
|
|
484
490
|
showTable: e.value.table.show,
|
|
485
491
|
showTooltip: e.value.style.tooltip.show
|
|
486
492
|
};
|
|
487
493
|
}, { immediate: !0 }), et({
|
|
488
|
-
getImage:
|
|
494
|
+
getImage: xt,
|
|
489
495
|
generatePdf: Oe,
|
|
490
496
|
generateCsv: Ue,
|
|
491
497
|
generateImage: Ne,
|
|
@@ -499,8 +505,8 @@ const sl = ["id"], ul = ["xmlns", "aria-label", "viewBox"], il = ["x", "y", "wid
|
|
|
499
505
|
class: S(`vue-ui-candlestick ${W.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
500
506
|
style: me(`position:relative;font-family:${e.value.style.fontFamily}; text-align:center;background:${e.value.style.backgroundColor}; ${e.value.responsive ? "height: 100%" : ""}`),
|
|
501
507
|
id: `vue-ui-candlestick_${w.value}`,
|
|
502
|
-
onMouseenter: a[
|
|
503
|
-
onMouseleave: a[
|
|
508
|
+
onMouseenter: a[3] || (a[3] = () => u(Se)(!0)),
|
|
509
|
+
onMouseleave: a[4] || (a[4] = () => u(Se)(!1))
|
|
504
510
|
}, [
|
|
505
511
|
e.value.userOptions.buttons.annotator ? (s(), N(u(ot), {
|
|
506
512
|
key: 0,
|
|
@@ -523,7 +529,7 @@ const sl = ["id"], ul = ["xmlns", "aria-label", "viewBox"], il = ["x", "y", "wid
|
|
|
523
529
|
ref: ke,
|
|
524
530
|
style: "width:100%;background:transparent"
|
|
525
531
|
}, [
|
|
526
|
-
(s(), N(
|
|
532
|
+
(s(), N(tl, {
|
|
527
533
|
key: `title_${ze.value}`,
|
|
528
534
|
config: {
|
|
529
535
|
title: {
|
|
@@ -571,60 +577,60 @@ const sl = ["id"], ul = ["xmlns", "aria-label", "viewBox"], il = ["x", "y", "wid
|
|
|
571
577
|
style: me({
|
|
572
578
|
visibility: u(Le) ? u(ne) ? "visible" : "hidden" : "visible"
|
|
573
579
|
})
|
|
574
|
-
},
|
|
580
|
+
}, Pt({ _: 2 }, [
|
|
575
581
|
t.$slots.menuIcon ? {
|
|
576
582
|
name: "menuIcon",
|
|
577
583
|
fn: x(({ isOpen: l, color: o }) => [
|
|
578
|
-
|
|
584
|
+
b(t.$slots, "menuIcon", P(E({ isOpen: l, color: o })), void 0, !0)
|
|
579
585
|
]),
|
|
580
586
|
key: "0"
|
|
581
587
|
} : void 0,
|
|
582
588
|
t.$slots.optionTooltip ? {
|
|
583
589
|
name: "optionTooltip",
|
|
584
590
|
fn: x(() => [
|
|
585
|
-
|
|
591
|
+
b(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
586
592
|
]),
|
|
587
593
|
key: "1"
|
|
588
594
|
} : void 0,
|
|
589
595
|
t.$slots.optionPdf ? {
|
|
590
596
|
name: "optionPdf",
|
|
591
597
|
fn: x(() => [
|
|
592
|
-
|
|
598
|
+
b(t.$slots, "optionPdf", {}, void 0, !0)
|
|
593
599
|
]),
|
|
594
600
|
key: "2"
|
|
595
601
|
} : void 0,
|
|
596
602
|
t.$slots.optionCsv ? {
|
|
597
603
|
name: "optionCsv",
|
|
598
604
|
fn: x(() => [
|
|
599
|
-
|
|
605
|
+
b(t.$slots, "optionCsv", {}, void 0, !0)
|
|
600
606
|
]),
|
|
601
607
|
key: "3"
|
|
602
608
|
} : void 0,
|
|
603
609
|
t.$slots.optionImg ? {
|
|
604
610
|
name: "optionImg",
|
|
605
611
|
fn: x(() => [
|
|
606
|
-
|
|
612
|
+
b(t.$slots, "optionImg", {}, void 0, !0)
|
|
607
613
|
]),
|
|
608
614
|
key: "4"
|
|
609
615
|
} : void 0,
|
|
610
616
|
t.$slots.optionTable ? {
|
|
611
617
|
name: "optionTable",
|
|
612
618
|
fn: x(() => [
|
|
613
|
-
|
|
619
|
+
b(t.$slots, "optionTable", {}, void 0, !0)
|
|
614
620
|
]),
|
|
615
621
|
key: "5"
|
|
616
622
|
} : void 0,
|
|
617
623
|
t.$slots.optionFullscreen ? {
|
|
618
624
|
name: "optionFullscreen",
|
|
619
625
|
fn: x(({ toggleFullscreen: l, isFullscreen: o }) => [
|
|
620
|
-
|
|
626
|
+
b(t.$slots, "optionFullscreen", P(E({ toggleFullscreen: l, isFullscreen: o })), void 0, !0)
|
|
621
627
|
]),
|
|
622
628
|
key: "6"
|
|
623
629
|
} : void 0,
|
|
624
630
|
t.$slots.optionAnnotator ? {
|
|
625
631
|
name: "optionAnnotator",
|
|
626
632
|
fn: x(({ toggleAnnotator: l, isAnnotator: o }) => [
|
|
627
|
-
|
|
633
|
+
b(t.$slots, "optionAnnotator", P(E({ toggleAnnotator: l, isAnnotator: o })), void 0, !0)
|
|
628
634
|
]),
|
|
629
635
|
key: "7"
|
|
630
636
|
} : void 0
|
|
@@ -632,7 +638,7 @@ const sl = ["id"], ul = ["xmlns", "aria-label", "viewBox"], il = ["x", "y", "wid
|
|
|
632
638
|
(s(), i("svg", {
|
|
633
639
|
ref_key: "svgRef",
|
|
634
640
|
ref: Te,
|
|
635
|
-
xmlns: u(
|
|
641
|
+
xmlns: u(Dt),
|
|
636
642
|
"aria-label": e.value.style.title.text || "candlestick chart",
|
|
637
643
|
class: S({ "vue-data-ui-fullscreen--on": W.value, "vue-data-ui-fulscreen--off": !W.value }),
|
|
638
644
|
viewBox: `0 0 ${d.value.width <= 0 ? 10 : d.value.width} ${d.value.height <= 0 ? 10 : d.value.height}`,
|
|
@@ -649,9 +655,9 @@ const sl = ["id"], ul = ["xmlns", "aria-label", "viewBox"], il = ["x", "y", "wid
|
|
|
649
655
|
pointerEvents: "none"
|
|
650
656
|
}
|
|
651
657
|
}, [
|
|
652
|
-
|
|
653
|
-
], 8,
|
|
654
|
-
k.value.length > 0 ? (s(), i("g",
|
|
658
|
+
b(t.$slots, "chart-background", {}, void 0, !0)
|
|
659
|
+
], 8, rl)) : p("", !0),
|
|
660
|
+
k.value.length > 0 ? (s(), i("g", vl, [
|
|
655
661
|
y("defs", null, [
|
|
656
662
|
y("linearGradient", {
|
|
657
663
|
id: `bearish_gradient_${w.value}`,
|
|
@@ -661,16 +667,16 @@ const sl = ["id"], ul = ["xmlns", "aria-label", "viewBox"], il = ["x", "y", "wid
|
|
|
661
667
|
y("stop", {
|
|
662
668
|
offset: "0%",
|
|
663
669
|
"stop-color": e.value.style.layout.candle.colors.bearish
|
|
664
|
-
}, null, 8,
|
|
670
|
+
}, null, 8, cl),
|
|
665
671
|
y("stop", {
|
|
666
672
|
offset: "50%",
|
|
667
673
|
"stop-color": `${u(ee)(e.value.style.layout.candle.colors.bearish, 0.02)}DE`
|
|
668
|
-
}, null, 8,
|
|
674
|
+
}, null, 8, yl),
|
|
669
675
|
y("stop", {
|
|
670
676
|
offset: "100%",
|
|
671
677
|
"stop-color": `${u(ee)(e.value.style.layout.candle.colors.bearish, 0.05)}66`
|
|
672
|
-
}, null, 8,
|
|
673
|
-
], 8,
|
|
678
|
+
}, null, 8, hl)
|
|
679
|
+
], 8, dl),
|
|
674
680
|
y("linearGradient", {
|
|
675
681
|
id: `bullish_gradient_${w.value}`,
|
|
676
682
|
x2: "0%",
|
|
@@ -679,18 +685,18 @@ const sl = ["id"], ul = ["xmlns", "aria-label", "viewBox"], il = ["x", "y", "wid
|
|
|
679
685
|
y("stop", {
|
|
680
686
|
offset: "0%",
|
|
681
687
|
"stop-color": e.value.style.layout.candle.colors.bullish
|
|
682
|
-
}, null, 8,
|
|
688
|
+
}, null, 8, gl),
|
|
683
689
|
y("stop", {
|
|
684
690
|
offset: "50%",
|
|
685
691
|
"stop-color": `${u(ee)(e.value.style.layout.candle.colors.bullish, 0.02)}DE`
|
|
686
|
-
}, null, 8,
|
|
692
|
+
}, null, 8, pl),
|
|
687
693
|
y("stop", {
|
|
688
694
|
offset: "100%",
|
|
689
695
|
"stop-color": `${u(ee)(e.value.style.layout.candle.colors.bullish, 0.05)}66`
|
|
690
|
-
}, null, 8,
|
|
691
|
-
], 8,
|
|
696
|
+
}, null, 8, bl)
|
|
697
|
+
], 8, fl)
|
|
692
698
|
]),
|
|
693
|
-
e.value.style.layout.grid.show ? (s(), i("g",
|
|
699
|
+
e.value.style.layout.grid.show ? (s(), i("g", ml, [
|
|
694
700
|
y("line", {
|
|
695
701
|
x1: n.value.left,
|
|
696
702
|
x2: n.value.left,
|
|
@@ -699,7 +705,7 @@ const sl = ["id"], ul = ["xmlns", "aria-label", "viewBox"], il = ["x", "y", "wid
|
|
|
699
705
|
stroke: e.value.style.layout.grid.stroke,
|
|
700
706
|
"stroke-width": e.value.style.layout.grid.strokeWidth,
|
|
701
707
|
"stroke-linecap": "round"
|
|
702
|
-
}, null, 8,
|
|
708
|
+
}, null, 8, xl),
|
|
703
709
|
y("line", {
|
|
704
710
|
x1: n.value.left,
|
|
705
711
|
x2: n.value.right,
|
|
@@ -708,14 +714,14 @@ const sl = ["id"], ul = ["xmlns", "aria-label", "viewBox"], il = ["x", "y", "wid
|
|
|
708
714
|
stroke: e.value.style.layout.grid.stroke,
|
|
709
715
|
"stroke-width": e.value.style.layout.grid.strokeWidth,
|
|
710
716
|
"stroke-linecap": "round"
|
|
711
|
-
}, null, 8,
|
|
717
|
+
}, null, 8, kl)
|
|
712
718
|
])) : p("", !0),
|
|
713
719
|
e.value.style.layout.grid.yAxis.dataLabels.show ? (s(), i("g", {
|
|
714
720
|
key: 1,
|
|
715
721
|
ref_key: "scaleLabels",
|
|
716
722
|
ref: ue
|
|
717
723
|
}, [
|
|
718
|
-
(s(!0), i(
|
|
724
|
+
(s(!0), i(V, null, B(yt.value, (l, o) => (s(), i("g", null, [
|
|
719
725
|
l.value >= C.value.min && l.value <= C.value.max ? (s(), i("line", {
|
|
720
726
|
key: 0,
|
|
721
727
|
x1: n.value.left,
|
|
@@ -725,7 +731,7 @@ const sl = ["id"], ul = ["xmlns", "aria-label", "viewBox"], il = ["x", "y", "wid
|
|
|
725
731
|
stroke: e.value.style.layout.grid.stroke,
|
|
726
732
|
"stroke-width": e.value.style.layout.grid.strokeWidth,
|
|
727
733
|
"stroke-linecap": "round"
|
|
728
|
-
}, null, 8,
|
|
734
|
+
}, null, 8, wl)) : p("", !0),
|
|
729
735
|
l.value >= C.value.min && l.value <= C.value.max ? (s(), i("text", {
|
|
730
736
|
key: 1,
|
|
731
737
|
x: n.value.left - 8 + e.value.style.layout.grid.yAxis.dataLabels.offsetX,
|
|
@@ -739,7 +745,7 @@ const sl = ["id"], ul = ["xmlns", "aria-label", "viewBox"], il = ["x", "y", "wid
|
|
|
739
745
|
v: l.value,
|
|
740
746
|
s: e.value.style.layout.grid.yAxis.dataLabels.suffix,
|
|
741
747
|
r: e.value.style.layout.grid.yAxis.dataLabels.roundingValue
|
|
742
|
-
})), 9,
|
|
748
|
+
})), 9, Al)) : p("", !0)
|
|
743
749
|
]))), 256))
|
|
744
750
|
], 512)) : p("", !0),
|
|
745
751
|
e.value.style.layout.grid.xAxis.dataLabels.show && !e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? (s(), i("g", {
|
|
@@ -747,7 +753,7 @@ const sl = ["id"], ul = ["xmlns", "aria-label", "viewBox"], il = ["x", "y", "wid
|
|
|
747
753
|
ref_key: "timeLabelsEls",
|
|
748
754
|
ref: H
|
|
749
755
|
}, [
|
|
750
|
-
(s(!0), i(
|
|
756
|
+
(s(!0), i(V, null, B(ht.value, (l, o) => (s(), i("g", null, [
|
|
751
757
|
y("text", {
|
|
752
758
|
class: "vue-data-ui-time-label",
|
|
753
759
|
transform: `translate(${n.value.left + v.value * o + v.value / 2}, ${n.value.bottom + d.value.xAxisFontSize * 1.5}), rotate(${e.value.style.layout.grid.xAxis.dataLabels.rotation})`,
|
|
@@ -755,7 +761,7 @@ const sl = ["id"], ul = ["xmlns", "aria-label", "viewBox"], il = ["x", "y", "wid
|
|
|
755
761
|
"font-size": d.value.xAxisFontSize,
|
|
756
762
|
fill: e.value.style.layout.grid.xAxis.dataLabels.color,
|
|
757
763
|
"font-weight": e.value.style.layout.grid.xAxis.dataLabels.bold ? "bold" : "normal"
|
|
758
|
-
}, Q(l), 9,
|
|
764
|
+
}, Q(l), 9, _l)
|
|
759
765
|
]))), 256))
|
|
760
766
|
], 512)) : p("", !0),
|
|
761
767
|
e.value.style.layout.grid.xAxis.dataLabels.show && e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? (s(), i("g", {
|
|
@@ -763,7 +769,7 @@ const sl = ["id"], ul = ["xmlns", "aria-label", "viewBox"], il = ["x", "y", "wid
|
|
|
763
769
|
ref_key: "timeLabelsEls",
|
|
764
770
|
ref: H
|
|
765
771
|
}, [
|
|
766
|
-
(s(!0), i(
|
|
772
|
+
(s(!0), i(V, null, B(R.value, (l, o) => (s(), i("g", null, [
|
|
767
773
|
y("text", {
|
|
768
774
|
class: "vue-data-ui-time-label",
|
|
769
775
|
transform: `translate(${n.value.left + v.value * o + v.value / 2}, ${n.value.bottom + d.value.xAxisFontSize * 1.5}), rotate(${e.value.style.layout.grid.xAxis.dataLabels.rotation})`,
|
|
@@ -771,11 +777,11 @@ const sl = ["id"], ul = ["xmlns", "aria-label", "viewBox"], il = ["x", "y", "wid
|
|
|
771
777
|
"font-size": d.value.xAxisFontSize,
|
|
772
778
|
fill: e.value.style.layout.grid.xAxis.dataLabels.color,
|
|
773
779
|
"font-weight": e.value.style.layout.grid.xAxis.dataLabels.bold ? "bold" : "normal"
|
|
774
|
-
}, Q(l.text), 9,
|
|
780
|
+
}, Q(l.text), 9, Cl)
|
|
775
781
|
]))), 256))
|
|
776
782
|
], 512)) : p("", !0),
|
|
777
783
|
y("g", null, [
|
|
778
|
-
(s(!0), i(
|
|
784
|
+
(s(!0), i(V, null, B(k.value, (l, o) => (s(), i("g", null, [
|
|
779
785
|
y("rect", {
|
|
780
786
|
x: l.open.x - e.value.style.layout.wick.strokeWidth / 2,
|
|
781
787
|
y: l.high.y,
|
|
@@ -785,24 +791,24 @@ const sl = ["id"], ul = ["xmlns", "aria-label", "viewBox"], il = ["x", "y", "wid
|
|
|
785
791
|
stroke: "none",
|
|
786
792
|
rx: e.value.style.layout.wick.strokeWidth / 2,
|
|
787
793
|
class: S({ "vue-data-ui-transition": $.value && !u(z) })
|
|
788
|
-
}, null, 10,
|
|
789
|
-
e.value.style.layout.wick.extremity.shape === "circle" ? (s(), i("g",
|
|
794
|
+
}, null, 10, $l),
|
|
795
|
+
e.value.style.layout.wick.extremity.shape === "circle" ? (s(), i("g", zl, [
|
|
790
796
|
y("circle", {
|
|
791
797
|
cx: l.high.x,
|
|
792
798
|
cy: l.high.y,
|
|
793
799
|
r: e.value.style.layout.wick.extremity.size === "auto" ? v.value / 20 : e.value.style.layout.wick.extremity.size,
|
|
794
800
|
fill: e.value.style.layout.wick.extremity.color,
|
|
795
801
|
class: S({ "vue-data-ui-transition": $.value && !u(z) })
|
|
796
|
-
}, null, 10,
|
|
802
|
+
}, null, 10, Sl),
|
|
797
803
|
y("circle", {
|
|
798
804
|
cx: l.low.x,
|
|
799
805
|
cy: l.low.y,
|
|
800
806
|
r: e.value.style.layout.wick.extremity.size === "auto" ? v.value / 20 : e.value.style.layout.wick.extremity.size,
|
|
801
807
|
fill: e.value.style.layout.wick.extremity.color,
|
|
802
808
|
class: S({ "vue-data-ui-transition": $.value && !u(z) })
|
|
803
|
-
}, null, 10,
|
|
809
|
+
}, null, 10, Ll)
|
|
804
810
|
])) : p("", !0),
|
|
805
|
-
e.value.style.layout.wick.extremity.shape === "line" ? (s(), i("g",
|
|
811
|
+
e.value.style.layout.wick.extremity.shape === "line" ? (s(), i("g", Tl, [
|
|
806
812
|
y("rect", {
|
|
807
813
|
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,
|
|
808
814
|
y: l.high.y - e.value.style.layout.wick.strokeWidth / 2,
|
|
@@ -812,7 +818,7 @@ const sl = ["id"], ul = ["xmlns", "aria-label", "viewBox"], il = ["x", "y", "wid
|
|
|
812
818
|
fill: e.value.style.layout.wick.extremity.color,
|
|
813
819
|
stroke: "none",
|
|
814
820
|
class: S({ "vue-data-ui-transition": $.value && !u(z) })
|
|
815
|
-
}, null, 10,
|
|
821
|
+
}, null, 10, Il),
|
|
816
822
|
y("rect", {
|
|
817
823
|
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,
|
|
818
824
|
y: l.low.y - e.value.style.layout.wick.strokeWidth / 2,
|
|
@@ -822,12 +828,12 @@ const sl = ["id"], ul = ["xmlns", "aria-label", "viewBox"], il = ["x", "y", "wid
|
|
|
822
828
|
stroke: "none",
|
|
823
829
|
rx: e.value.style.layout.wick.strokeWidth / 2,
|
|
824
830
|
class: S({ "vue-data-ui-transition": $.value && !u(z) })
|
|
825
|
-
}, null, 10,
|
|
831
|
+
}, null, 10, Fl)
|
|
826
832
|
])) : p("", !0)
|
|
827
833
|
]))), 256))
|
|
828
834
|
]),
|
|
829
835
|
y("g", null, [
|
|
830
|
-
(s(!0), i(
|
|
836
|
+
(s(!0), i(V, null, B(k.value, (l, o) => (s(), i("rect", {
|
|
831
837
|
x: l.open.x - v.value / 2 + v.value * (1 - e.value.style.layout.candle.widthRatio) / 2,
|
|
832
838
|
y: l.isBullish ? l.last.y : l.open.y,
|
|
833
839
|
height: Math.abs(l.last.y - l.open.y) <= 0 ? 1e-4 : Math.abs(l.last.y - l.open.y),
|
|
@@ -836,8 +842,8 @@ const sl = ["id"], ul = ["xmlns", "aria-label", "viewBox"], il = ["x", "y", "wid
|
|
|
836
842
|
rx: e.value.style.layout.candle.borderRadius,
|
|
837
843
|
stroke: "none",
|
|
838
844
|
class: S({ "vue-data-ui-transition": $.value && !u(z) })
|
|
839
|
-
}, null, 10,
|
|
840
|
-
(s(!0), i(
|
|
845
|
+
}, null, 10, Rl))), 256)),
|
|
846
|
+
(s(!0), i(V, null, B(k.value, (l, o) => (s(), i("rect", {
|
|
841
847
|
x: l.open.x - v.value / 2 + v.value * (1 - e.value.style.layout.candle.widthRatio) / 2,
|
|
842
848
|
y: l.isBullish ? l.last.y : l.open.y,
|
|
843
849
|
height: Math.abs(l.last.y - l.open.y) <= 0 ? 1e-4 : Math.abs(l.last.y - l.open.y),
|
|
@@ -849,33 +855,32 @@ const sl = ["id"], ul = ["xmlns", "aria-label", "viewBox"], il = ["x", "y", "wid
|
|
|
849
855
|
"stroke-linecap": "round",
|
|
850
856
|
"stroke-linejoin": "round",
|
|
851
857
|
class: S({ "vue-data-ui-transition": $.value && !u(z) })
|
|
852
|
-
}, null, 10,
|
|
858
|
+
}, null, 10, Ol))), 256))
|
|
853
859
|
]),
|
|
854
860
|
y("g", null, [
|
|
855
|
-
(s(!0), i(
|
|
861
|
+
(s(!0), i(V, null, B(k.value, (l, o) => (s(), i("rect", {
|
|
856
862
|
x: n.value.left + o * v.value,
|
|
857
863
|
y: n.value.top,
|
|
858
864
|
height: n.value.height <= 0 ? 1e-4 : n.value.height,
|
|
859
865
|
width: v.value <= 0 ? 1e-4 : v.value,
|
|
860
|
-
fill: se.value === o ? u(
|
|
861
|
-
onMouseover: (
|
|
862
|
-
onMouseleave:
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
}, null, 40, Rl))), 256))
|
|
866
|
+
fill: se.value === o ? u(Ht)(e.value.style.layout.selector.color, e.value.style.layout.selector.opacity) : "transparent",
|
|
867
|
+
onMouseover: () => pt(o, l),
|
|
868
|
+
onMouseleave: () => gt(o, l),
|
|
869
|
+
onClick: () => ft(o, l)
|
|
870
|
+
}, null, 40, Nl))), 256))
|
|
866
871
|
])
|
|
867
872
|
])) : p("", !0),
|
|
868
|
-
|
|
869
|
-
], 14,
|
|
870
|
-
t.$slots.watermark ? (s(), i("div",
|
|
871
|
-
|
|
873
|
+
b(t.$slots, "svg", { svg: d.value }, void 0, !0)
|
|
874
|
+
], 14, nl)),
|
|
875
|
+
t.$slots.watermark ? (s(), i("div", Pl, [
|
|
876
|
+
b(t.$slots, "watermark", P(E({ isPrinting: u(Fe) || u(Re) })), void 0, !0)
|
|
872
877
|
])) : p("", !0),
|
|
873
878
|
e.value.style.zoom.show && te.value ? (s(), i("div", {
|
|
874
879
|
key: 5,
|
|
875
880
|
ref_key: "chartSlicer",
|
|
876
881
|
ref: Ae
|
|
877
882
|
}, [
|
|
878
|
-
(s(), N(
|
|
883
|
+
(s(), N(ll, {
|
|
879
884
|
ref_key: "slicerComponent",
|
|
880
885
|
ref: Me,
|
|
881
886
|
key: `slicer_${j.value}`,
|
|
@@ -890,20 +895,20 @@ const sl = ["id"], ul = ["xmlns", "aria-label", "viewBox"], il = ["x", "y", "wid
|
|
|
890
895
|
selectColor: e.value.style.zoom.highlightColor,
|
|
891
896
|
max: G.value,
|
|
892
897
|
min: 0,
|
|
893
|
-
valueStart:
|
|
894
|
-
valueEnd:
|
|
895
|
-
start:
|
|
896
|
-
"onUpdate:start": a[
|
|
897
|
-
end:
|
|
898
|
-
"onUpdate:end": a[
|
|
898
|
+
valueStart: c.value.start,
|
|
899
|
+
valueEnd: c.value.end,
|
|
900
|
+
start: c.value.start,
|
|
901
|
+
"onUpdate:start": a[0] || (a[0] = (l) => c.value.start = l),
|
|
902
|
+
end: c.value.end,
|
|
903
|
+
"onUpdate:end": a[1] || (a[1] = (l) => c.value.end = l),
|
|
899
904
|
refreshStartPoint: e.value.style.zoom.startIndex !== null ? e.value.style.zoom.startIndex : 0,
|
|
900
905
|
refreshEndPoint: e.value.style.zoom.endIndex !== null ? e.value.style.zoom.endIndex + 1 : G.value,
|
|
901
906
|
enableRangeHandles: e.value.style.zoom.enableRangeHandles,
|
|
902
907
|
enableSelectionDrag: e.value.style.zoom.enableSelectionDrag,
|
|
903
|
-
onReset:
|
|
908
|
+
onReset: bt
|
|
904
909
|
}, {
|
|
905
910
|
"reset-action": x(({ reset: l }) => [
|
|
906
|
-
|
|
911
|
+
b(t.$slots, "reset-action", P(E({ reset: l })), void 0, !0)
|
|
907
912
|
]),
|
|
908
913
|
_: 3
|
|
909
914
|
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"]))
|
|
@@ -912,7 +917,7 @@ const sl = ["id"], ul = ["xmlns", "aria-label", "viewBox"], il = ["x", "y", "wid
|
|
|
912
917
|
ref_key: "chartLegend",
|
|
913
918
|
ref: we
|
|
914
919
|
}, [
|
|
915
|
-
|
|
920
|
+
b(t.$slots, "legend", { legend: k.value }, void 0, !0)
|
|
916
921
|
], 512),
|
|
917
922
|
t.$slots.source ? (s(), i("div", {
|
|
918
923
|
key: 6,
|
|
@@ -920,7 +925,7 @@ const sl = ["id"], ul = ["xmlns", "aria-label", "viewBox"], il = ["x", "y", "wid
|
|
|
920
925
|
ref: _e,
|
|
921
926
|
dir: "auto"
|
|
922
927
|
}, [
|
|
923
|
-
|
|
928
|
+
b(t.$slots, "source", {}, void 0, !0)
|
|
924
929
|
], 512)) : p("", !0),
|
|
925
930
|
Ye(u(st), {
|
|
926
931
|
show: _.value.showTooltip && ae.value,
|
|
@@ -941,10 +946,10 @@ const sl = ["id"], ul = ["xmlns", "aria-label", "viewBox"], il = ["x", "y", "wid
|
|
|
941
946
|
backdropFilter: e.value.style.tooltip.backdropFilter
|
|
942
947
|
}, {
|
|
943
948
|
"tooltip-before": x(() => [
|
|
944
|
-
|
|
949
|
+
b(t.$slots, "tooltip-before", P(E({ ...ce.value })), void 0, !0)
|
|
945
950
|
]),
|
|
946
951
|
"tooltip-after": x(() => [
|
|
947
|
-
|
|
952
|
+
b(t.$slots, "tooltip-after", P(E({ ...ce.value })), void 0, !0)
|
|
948
953
|
]),
|
|
949
954
|
_: 3
|
|
950
955
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter"]),
|
|
@@ -972,23 +977,23 @@ const sl = ["id"], ul = ["xmlns", "aria-label", "viewBox"], il = ["x", "y", "wid
|
|
|
972
977
|
body: q.value.body,
|
|
973
978
|
config: q.value.config,
|
|
974
979
|
title: `${e.value.style.title.text}${e.value.style.title.subtitle.text ? ` : ${e.value.style.title.subtitle.text}` : ""}`,
|
|
975
|
-
onClose: a[
|
|
980
|
+
onClose: a[2] || (a[2] = (l) => _.value.showTable = !1)
|
|
976
981
|
}, {
|
|
977
982
|
th: x(({ th: l }) => [
|
|
978
|
-
|
|
983
|
+
Et(Q(l), 1)
|
|
979
984
|
]),
|
|
980
985
|
td: x(({ td: l }) => [
|
|
981
|
-
y("div", { innerHTML: l }, null, 8,
|
|
986
|
+
y("div", { innerHTML: l }, null, 8, El)
|
|
982
987
|
]),
|
|
983
988
|
_: 1
|
|
984
989
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
985
990
|
]),
|
|
986
991
|
_: 1
|
|
987
992
|
}, 8, ["config"])) : p("", !0),
|
|
988
|
-
u(z) ? (s(), N(
|
|
989
|
-
], 46,
|
|
993
|
+
u(z) ? (s(), N(el, { key: 8 })) : p("", !0)
|
|
994
|
+
], 46, il));
|
|
990
995
|
}
|
|
991
|
-
},
|
|
996
|
+
}, ea = /* @__PURE__ */ ul(Vl, [["__scopeId", "data-v-3f824beb"]]);
|
|
992
997
|
export {
|
|
993
|
-
|
|
998
|
+
ea as default
|
|
994
999
|
};
|