vue-data-ui 3.0.0-next.33 → 3.0.0-next.34
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-VgHimrRb.js → Arrow-7o1zcGGd.js} +1 -1
- package/dist/{BaseDraggableDialog-S80pCP_z.js → BaseDraggableDialog-fZ1Z5U4d.js} +2 -2
- package/dist/{BaseIcon-CVvwtj-w.js → BaseIcon-Cq9SmUOT.js} +1 -1
- package/dist/{ColorPicker-DhGMsdlx.js → ColorPicker-BNmC5tPY.js} +2 -2
- package/dist/{DataTable-CQqQt3fP.js → DataTable-DonNp9Tn.js} +2 -2
- package/dist/{Legend-DAN5L1lo.js → Legend-De_LcU2x.js} +2 -2
- package/dist/{NonSvgPenAndPaper-s0PFQNll.js → NonSvgPenAndPaper-DCCmvppN.js} +3 -3
- package/dist/{PackageVersion-DGlLBQOn.js → PackageVersion-F_KOshQ5.js} +1 -1
- package/dist/{PenAndPaper-hAK7vneq.js → PenAndPaper-BzsPyqiU.js} +3 -3
- package/dist/{Shape-CjeprST6.js → Shape-CJI8rA0G.js} +1 -1
- package/dist/{Slicer-8WIL9Cfq.js → Slicer-BCCGJwNV.js} +2 -2
- package/dist/{SparkTooltip-DeTWOnTg.js → SparkTooltip-ZSo6Sdhj.js} +1 -1
- package/dist/{Title-Bo-MVYcn.js → Title-CbfJu3Bz.js} +1 -1
- package/dist/{Tooltip-DD9Ly0Pw.js → Tooltip-BuuVsO8D.js} +1 -1
- package/dist/{UserOptions-dJLhbxrH.js → UserOptions-32osgWD2.js} +2 -2
- package/dist/{dom-to-png-CjNOdM-6.js → dom-to-png-B4iPnzPd.js} +1 -1
- package/dist/{img-59KgIaXp.js → img-Domj-5hZ.js} +1 -1
- package/dist/{index-h6tbqLot.js → index-BeBasrrG.js} +672 -660
- package/dist/{pdf-CVKcemYx.js → pdf-KclgkN6e.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +12 -7
- package/dist/types/vue-data-ui.d.ts +12 -7
- package/dist/{useNestedProp-D059IOwh.js → useNestedProp-BI69cynt.js} +1 -1
- package/dist/{usePrinter-BuJDNOzF.js → usePrinter-DpTBVYGM.js} +2 -2
- package/dist/useTimeLabelCollider-CIsgDrl9.js +78 -0
- package/dist/{vue-data-ui-CnP-8qvV.js → vue-data-ui-DfOSI-cw.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-2BDo53CG.js → vue-ui-3d-bar-BFUcEqAl.js} +6 -6
- package/dist/{vue-ui-accordion-DyBJ-mad.js → vue-ui-accordion-BBZQktvS.js} +3 -3
- package/dist/{vue-ui-age-pyramid-DlD9Y8xr.js → vue-ui-age-pyramid-C1fCszkG.js} +6 -6
- package/dist/{vue-ui-annotator-BoWAUlmS.js → vue-ui-annotator-BThZoiBl.js} +2 -2
- package/dist/{vue-ui-bullet-CfUFHtlX.js → vue-ui-bullet-D0-jL6aT.js} +7 -7
- package/dist/{vue-ui-candlestick-DDS8WYxh.js → vue-ui-candlestick-BKY_1NxQ.js} +163 -160
- package/dist/{vue-ui-carousel-table-D2xngvtB.js → vue-ui-carousel-table-RqYXqUym.js} +4 -4
- package/dist/{vue-ui-chestnut-D1pWQozg.js → vue-ui-chestnut-QLx875w4.js} +5 -5
- package/dist/{vue-ui-chord-DEK-Wk7B.js → vue-ui-chord-rUYoYkRO.js} +8 -8
- package/dist/{vue-ui-circle-pack-CeykLpx8.js → vue-ui-circle-pack-DX5resGr.js} +6 -6
- package/dist/{vue-ui-cursor-D86Y-gg1.js → vue-ui-cursor-Day-0aL1.js} +2 -2
- package/dist/{vue-ui-dashboard-CwWcub4O.js → vue-ui-dashboard-G0W4wq1U.js} +62 -62
- package/dist/{vue-ui-digits-CBD1fasp.js → vue-ui-digits-DFREi_Ky.js} +2 -2
- package/dist/{vue-ui-donut-DzM857Mw.js → vue-ui-donut-BdxnEUCr.js} +8 -8
- package/dist/{vue-ui-donut-evolution-BPTk5wKW.js → vue-ui-donut-evolution-DYeMgZMU.js} +215 -212
- package/dist/{vue-ui-dumbbell-Dqm2btrM.js → vue-ui-dumbbell-ajhNYekO.js} +7 -7
- package/dist/{vue-ui-flow-C-JgLHsh.js → vue-ui-flow-BOq3_apj.js} +7 -7
- package/dist/{vue-ui-funnel-Dm3aCwVL.js → vue-ui-funnel-1Tc-WWAK.js} +6 -6
- package/dist/{vue-ui-galaxy-siSx2yn6.js → vue-ui-galaxy-DRdIquCv.js} +5 -5
- package/dist/{vue-ui-gauge-BgIR1PlQ.js → vue-ui-gauge-B0a3J_d1.js} +6 -6
- package/dist/{vue-ui-gizmo-CPIlfu1s.js → vue-ui-gizmo-5G0uR26C.js} +3 -3
- package/dist/vue-ui-heatmap-BGYSmKC-.js +1084 -0
- package/dist/{vue-ui-history-plot-DOWu_0wY.js → vue-ui-history-plot-kHo6293P.js} +7 -7
- package/dist/{vue-ui-kpi-BqGvPVuE.js → vue-ui-kpi-6zONwNMN.js} +3 -3
- package/dist/{vue-ui-mini-loader-C3RV5-mc.js → vue-ui-mini-loader-XyVfmLch.js} +2 -2
- package/dist/{vue-ui-molecule-DsMfjmG0.js → vue-ui-molecule-BoQKd6NP.js} +5 -5
- package/dist/{vue-ui-mood-radar-CRWVJjIb.js → vue-ui-mood-radar-DncLIzjX.js} +7 -7
- package/dist/{vue-ui-nested-donuts-D5gnJmVK.js → vue-ui-nested-donuts-DXMadqNK.js} +9 -9
- package/dist/{vue-ui-onion-D1qHQTBl.js → vue-ui-onion-CbtXXJHJ.js} +7 -7
- package/dist/{vue-ui-parallel-coordinate-plot-BnAveZOI.js → vue-ui-parallel-coordinate-plot-D-zLAqYN.js} +8 -8
- package/dist/{vue-ui-quadrant-B7Lqriri.js → vue-ui-quadrant-DqN9de-E.js} +8 -8
- package/dist/{vue-ui-quick-chart-CvQRgbKq.js → vue-ui-quick-chart-fAHV8BFQ.js} +6 -6
- package/dist/{vue-ui-radar-D494eivm.js → vue-ui-radar-Dcr4Y35J.js} +7 -7
- package/dist/{vue-ui-rating-CTHYICJA.js → vue-ui-rating-Y_X6wrM8.js} +2 -2
- package/dist/{vue-ui-relation-circle-DMtH5ofd.js → vue-ui-relation-circle-CsjfP4w3.js} +6 -6
- package/dist/{vue-ui-ridgeline-BiDnGLX5.js → vue-ui-ridgeline-COQZjWXD.js} +8 -8
- package/dist/{vue-ui-rings-DXGyAl3y.js → vue-ui-rings-IWHU4YHR.js} +8 -8
- package/dist/{vue-ui-scatter-Ds7sncxR.js → vue-ui-scatter-zG4nPspJ.js} +8 -8
- package/dist/{vue-ui-skeleton-DIJ5u0HF.js → vue-ui-skeleton-BLCAe0aL.js} +3 -3
- package/dist/{vue-ui-smiley-Dyhet6zb.js → vue-ui-smiley-CgMyaK6w.js} +2 -2
- package/dist/{vue-ui-spark-trend-rhXFuApA.js → vue-ui-spark-trend-Dn2iTtuB.js} +3 -3
- package/dist/{vue-ui-sparkbar-COfmi6KI.js → vue-ui-sparkbar-BA_s34xX.js} +3 -3
- package/dist/{vue-ui-sparkgauge-DJOsuPG-.js → vue-ui-sparkgauge-CGoeUY4p.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-DV3KR-q5.js → vue-ui-sparkhistogram-BuSn8iJi.js} +4 -4
- package/dist/{vue-ui-sparkline-kf86uahK.js → vue-ui-sparkline-CYJUhGaJ.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-DPpQkxUm.js → vue-ui-sparkstackbar-BDQWVxNP.js} +3 -3
- package/dist/{vue-ui-stackbar-CASe4O-t.js → vue-ui-stackbar-B92-pzwh.js} +301 -298
- package/dist/{vue-ui-strip-plot-DRfNBQ9A.js → vue-ui-strip-plot-BLTjzATL.js} +7 -7
- package/dist/{vue-ui-table-Cg422ltc.js → vue-ui-table-Ba7Z_7OX.js} +3 -3
- package/dist/{vue-ui-table-heatmap-BCDOpShn.js → vue-ui-table-heatmap-C29u3mfg.js} +5 -5
- package/dist/{vue-ui-table-sparkline-MtUkhn2K.js → vue-ui-table-sparkline-BLR9glHo.js} +4 -4
- package/dist/{vue-ui-thermometer-Bz4qJzLC.js → vue-ui-thermometer-BAm6l97t.js} +6 -6
- package/dist/{vue-ui-timer-Da3hWBUk.js → vue-ui-timer-CqbbNnBk.js} +5 -5
- package/dist/{vue-ui-tiremarks-Bafaf_gE.js → vue-ui-tiremarks-BnZr2Vrp.js} +6 -6
- package/dist/{vue-ui-treemap-CSQjMeIP.js → vue-ui-treemap-J8OANLCg.js} +8 -8
- package/dist/{vue-ui-vertical-bar-tLYgt_Pg.js → vue-ui-vertical-bar-DdR3STYF.js} +9 -9
- package/dist/{vue-ui-waffle-ir_3LGj_.js → vue-ui-waffle-w5VJA7gR.js} +8 -8
- package/dist/{vue-ui-wheel-bDEJ_vBc.js → vue-ui-wheel-D5yea4oH.js} +6 -6
- package/dist/{vue-ui-word-cloud-BLQ-MfCc.js → vue-ui-word-cloud-OugLGxgB.js} +6 -6
- package/dist/{vue-ui-world-_IoWGh3p.js → vue-ui-world-BSptBo4h.js} +6 -6
- package/dist/{vue-ui-xy-dnlLx-v4.js → vue-ui-xy-DnYo2K58.js} +56 -54
- package/dist/{vue-ui-xy-canvas-DDRJMmPT.js → vue-ui-xy-canvas-Cmn0RWbG.js} +8 -8
- package/package.json +1 -1
- package/dist/useTimeLabelCollider-V7AOiPLB.js +0 -71
- package/dist/vue-ui-heatmap-D_8NEANa.js +0 -881
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { defineAsyncComponent as D, computed 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 It, watch as pe, shallowRef as Xe, onMounted as Ft, onBeforeUnmount as je, watchEffect as Rt, 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 Ot, withCtx as x, renderSlot as m, normalizeProps as P, guardReactiveProps as V, Fragment as E, renderList as B, toDisplayString as Q, createTextVNode as Nt } from "vue";
|
|
2
|
+
import { u as Pt, c as Vt, A as Et, a as Bt, C as Z, o as qe, e as M, D as Mt, v as X, f as L, X as Ut, w as ee, s as Wt, E as Je, q as Dt, r as Ht, x as Gt, y as Xt } from "./index-BeBasrrG.js";
|
|
3
|
+
import { t as Ke, u as jt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Qe } from "./useNestedProp-BI69cynt.js";
|
|
5
|
+
import { u as Yt } from "./usePrinter-DpTBVYGM.js";
|
|
6
|
+
import { u as qt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
|
+
import { u as Jt } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
+
import { u as Kt, B as Qt } from "./BaseScanner-DIK2NTdp.js";
|
|
9
|
+
import Zt from "./Title-CbfJu3Bz.js";
|
|
10
|
+
import { S as el } from "./Slicer-BCCGJwNV.js";
|
|
11
|
+
import { u as tl } from "./useTimeLabels-DkzmKfZn.js";
|
|
12
|
+
import ll from "./img-Domj-5hZ.js";
|
|
13
|
+
import { u as al } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
14
|
+
import { _ as ol } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
|
+
const sl = ["id"], ul = ["xmlns", "aria-label", "viewBox"], il = ["x", "y", "width", "height"], nl = { key: 1 }, rl = ["id"], vl = ["stop-color"], dl = ["stop-color"], yl = ["stop-color"], cl = ["id"], hl = ["stop-color"], fl = ["stop-color"], gl = ["stop-color"], pl = { key: 0 }, bl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ml = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], xl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], kl = ["x", "y", "font-size", "fill", "font-weight"], wl = ["transform", "text-anchor", "font-size", "fill", "font-weight"], Al = ["transform", "text-anchor", "font-size", "fill", "font-weight"], _l = ["x", "y", "width", "height", "fill", "rx"], Cl = { key: 0 }, $l = ["cx", "cy", "r", "fill"], zl = ["cx", "cy", "r", "fill"], Sl = { key: 1 }, Ll = ["x", "y", "width", "height", "rx", "fill"], Tl = ["x", "y", "width", "height", "fill", "rx"], Il = ["x", "y", "height", "width", "fill", "rx"], Fl = ["x", "y", "height", "width", "fill", "rx", "stroke", "stroke-width"], Rl = ["x", "y", "height", "width", "fill", "onMouseover"], Ol = {
|
|
16
16
|
key: 4,
|
|
17
17
|
class: "vue-data-ui-watermark"
|
|
18
|
-
},
|
|
18
|
+
}, Nl = ["innerHTML"], Pl = {
|
|
19
19
|
__name: "vue-ui-candlestick",
|
|
20
20
|
props: {
|
|
21
21
|
config: {
|
|
@@ -32,8 +32,8 @@ const al = ["id"], ol = ["xmlns", "aria-label", "viewBox"], sl = ["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-BBZQktvS.js")), lt = D(() => import("./DataTable-DonNp9Tn.js")), at = D(() => import("./PackageVersion-F_KOshQ5.js")), ot = D(() => import("./PenAndPaper-BzsPyqiU.js")), st = D(() => import("./Tooltip-BuuVsO8D.js")), ut = D(() => import("./UserOptions-32osgWD2.js")), { vue_ui_candlestick: it } = Pt(), c = Ze, te = g(() => !!c.dataset && c.dataset.length), $ = r(!1), le = r(null), w = r(Vt()), 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 } = Kt({
|
|
36
|
+
...It(c),
|
|
37
37
|
FINAL_CONFIG: e,
|
|
38
38
|
prepareConfig: re,
|
|
39
39
|
callback: () => {
|
|
@@ -55,7 +55,7 @@ const al = ["id"], ol = ["xmlns", "aria-label", "viewBox"], sl = ["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: Et({
|
|
59
59
|
defaultConfig: e.value,
|
|
60
60
|
userConfig: {
|
|
61
61
|
useCssAnimation: !1,
|
|
@@ -96,7 +96,7 @@ const al = ["id"], ol = ["xmlns", "aria-label", "viewBox"], sl = ["x", "y", "wid
|
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
})
|
|
99
|
-
}), { userOptionsVisible: ne, setUserOptionsVisibility: Se, keepUserOptionState: Le } =
|
|
99
|
+
}), { userOptionsVisible: ne, setUserOptionsVisibility: Se, keepUserOptionState: Le } = qt({ config: e.value }), { svgRef: Te } = Jt({ config: e.value.style.title });
|
|
100
100
|
function re() {
|
|
101
101
|
const t = Qe({
|
|
102
102
|
userConfig: c.config,
|
|
@@ -105,7 +105,7 @@ const al = ["id"], ol = ["xmlns", "aria-label", "viewBox"], sl = ["x", "y", "wid
|
|
|
105
105
|
let a = {};
|
|
106
106
|
return t.theme ? a = {
|
|
107
107
|
...Qe({
|
|
108
|
-
userConfig:
|
|
108
|
+
userConfig: Bt.vue_ui_candlestick[t.theme] || c.config,
|
|
109
109
|
defaultConfig: t
|
|
110
110
|
})
|
|
111
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;
|
|
@@ -115,16 +115,16 @@ const al = ["id"], ol = ["xmlns", "aria-label", "viewBox"], sl = ["x", "y", "wid
|
|
|
115
115
|
}, { deep: !0 }), pe(() => c.dataset, (t) => {
|
|
116
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
|
-
const
|
|
118
|
+
const d = 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
123
|
}), I = Xe(null), U = Xe(null);
|
|
124
|
-
|
|
124
|
+
Ft(() => {
|
|
125
125
|
Ie();
|
|
126
126
|
});
|
|
127
|
-
const F =
|
|
127
|
+
const F = g(() => !!e.value.debug);
|
|
128
128
|
function Ie() {
|
|
129
129
|
if (qe(c.dataset) && (M({
|
|
130
130
|
componentName: "VueUiCandlestick",
|
|
@@ -135,7 +135,7 @@ const al = ["id"], ol = ["xmlns", "aria-label", "viewBox"], sl = ["x", "y", "wid
|
|
|
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 } = jt({
|
|
139
139
|
chart: T.value,
|
|
140
140
|
title: e.value.style.title.text ? ke.value : null,
|
|
141
141
|
slicer: Ae.value,
|
|
@@ -144,19 +144,19 @@ const al = ["id"], ol = ["xmlns", "aria-label", "viewBox"], sl = ["x", "y", "wid
|
|
|
144
144
|
noTitle: Ce.value
|
|
145
145
|
});
|
|
146
146
|
requestAnimationFrame(() => {
|
|
147
|
-
|
|
147
|
+
d.value.width = l, d.value.height = o - 12, e.value.responsiveProportionalSizing ? (d.value.xAxisFontSize = Je({
|
|
148
148
|
relator: Math.min(l, o),
|
|
149
149
|
adjuster: e.value.style.width,
|
|
150
150
|
source: e.value.style.layout.grid.xAxis.dataLabels.fontSize,
|
|
151
151
|
threshold: 6,
|
|
152
152
|
fallback: 6
|
|
153
|
-
}),
|
|
153
|
+
}), d.value.yAxisFontSize = Je({
|
|
154
154
|
relator: Math.min(l, o),
|
|
155
155
|
adjuster: e.value.style.width,
|
|
156
156
|
source: e.value.style.layout.grid.yAxis.dataLabels.fontSize,
|
|
157
157
|
threshold: 6,
|
|
158
158
|
fallback: 6
|
|
159
|
-
})) : (
|
|
159
|
+
})) : (d.value.xAxisFontSize = e.value.style.layout.grid.xAxis.dataLabels.fontSize, d.value.yAxisFontSize = e.value.style.layout.grid.yAxis.dataLabels.fontSize), le.value && clearTimeout(le.value), le.value = setTimeout(() => {
|
|
160
160
|
$.value = !0;
|
|
161
161
|
}, 10);
|
|
162
162
|
});
|
|
@@ -168,17 +168,17 @@ const al = ["id"], ol = ["xmlns", "aria-label", "viewBox"], sl = ["x", "y", "wid
|
|
|
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 } = Yt({
|
|
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
|
|
175
|
-
}), rt =
|
|
175
|
+
}), rt = g(() => e.value.userOptions.show && !e.value.style.title.text), _ = r({
|
|
176
176
|
showTable: e.value.table.show,
|
|
177
177
|
showTooltip: e.value.style.tooltip.show
|
|
178
178
|
}), ve = r(0), vt = Ke((t) => {
|
|
179
179
|
ve.value = t;
|
|
180
180
|
}, 100);
|
|
181
|
-
|
|
181
|
+
Rt((t) => {
|
|
182
182
|
const a = H.value;
|
|
183
183
|
if (!a) return;
|
|
184
184
|
const l = new ResizeObserver((o) => {
|
|
@@ -188,34 +188,34 @@ const al = ["id"], ol = ["xmlns", "aria-label", "viewBox"], sl = ["x", "y", "wid
|
|
|
188
188
|
}), je(() => {
|
|
189
189
|
ve.value = 0;
|
|
190
190
|
});
|
|
191
|
-
const Pe =
|
|
191
|
+
const Pe = g(() => {
|
|
192
192
|
let t = 0;
|
|
193
|
-
return H.value && (t = ve.value +
|
|
193
|
+
return H.value && (t = ve.value + d.value.xAxisFontSize), t;
|
|
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, b) => {
|
|
198
|
+
const f = b.getComputedTextLength();
|
|
199
199
|
return f > o ? f : o;
|
|
200
200
|
}, 0)), t + 13;
|
|
201
201
|
}
|
|
202
|
-
const n =
|
|
203
|
-
const { top: t, right: a, bottom: l, left: o } = e.value.style.layout.padding,
|
|
202
|
+
const n = g(() => {
|
|
203
|
+
const { top: t, right: a, bottom: l, left: o } = e.value.style.layout.padding, b = dt(), f = 12;
|
|
204
204
|
return {
|
|
205
205
|
top: t + f,
|
|
206
|
-
right:
|
|
207
|
-
left: o +
|
|
208
|
-
bottom:
|
|
209
|
-
width:
|
|
210
|
-
height:
|
|
206
|
+
right: d.value.width - a,
|
|
207
|
+
left: o + b,
|
|
208
|
+
bottom: d.value.height - l - Pe.value,
|
|
209
|
+
width: d.value.width - o - a - b,
|
|
210
|
+
height: d.value.height - t - l - Pe.value - f
|
|
211
211
|
};
|
|
212
|
-
}), G =
|
|
212
|
+
}), G = g(() => A.value.length), h = r({
|
|
213
213
|
start: 0,
|
|
214
214
|
end: G.value
|
|
215
|
-
}), Ve =
|
|
215
|
+
}), Ve = g(() => A.value.map((t, a) => ({
|
|
216
216
|
...t,
|
|
217
217
|
absoluteIndex: a
|
|
218
|
-
})).slice(h.value.start, h.value.end)), de =
|
|
218
|
+
})).slice(h.value.start, h.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",
|
|
@@ -261,13 +261,13 @@ const al = ["id"], ol = ["xmlns", "aria-label", "viewBox"], sl = ["x", "y", "wid
|
|
|
261
261
|
low: t[3],
|
|
262
262
|
last: t[4],
|
|
263
263
|
volume: t[5]
|
|
264
|
-
})))), v =
|
|
264
|
+
})))), v = g(() => n.value.width / Ve.value.length), Ee = 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 =
|
|
270
|
+
}), C = g(() => Mt(Ee.value.min, Ee.value.max, e.value.style.layout.grid.yAxis.dataLabels.steps));
|
|
271
271
|
function Y(t, a) {
|
|
272
272
|
return {
|
|
273
273
|
...t,
|
|
@@ -276,13 +276,13 @@ const al = ["id"], ol = ["xmlns", "aria-label", "viewBox"], sl = ["x", "y", "wid
|
|
|
276
276
|
value: X(t)
|
|
277
277
|
};
|
|
278
278
|
}
|
|
279
|
-
const k =
|
|
280
|
-
const l = Y(t.open, a), o = Y(t.high, a),
|
|
279
|
+
const k = g(() => de.value.map((t, a) => {
|
|
280
|
+
const l = Y(t.open, a), o = Y(t.high, a), b = 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: b,
|
|
286
286
|
last: f,
|
|
287
287
|
volume: t.volume,
|
|
288
288
|
isBullish: O,
|
|
@@ -292,16 +292,16 @@ const al = ["id"], ol = ["xmlns", "aria-label", "viewBox"], sl = ["x", "y", "wid
|
|
|
292
292
|
function yt(t) {
|
|
293
293
|
return X((t - C.value.min) / (C.value.max - C.value.min));
|
|
294
294
|
}
|
|
295
|
-
const ct =
|
|
295
|
+
const ct = g(() => C.value.ticks.map((t) => ({
|
|
296
296
|
y: n.value.bottom - n.value.height * yt(t),
|
|
297
297
|
value: X(t)
|
|
298
|
-
}))), ht =
|
|
298
|
+
}))), ht = g(() => de.value.map((t) => t.period)), R = g(() => tl({
|
|
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
302
|
start: h.value.start,
|
|
303
303
|
end: h.value.end
|
|
304
|
-
})), Be =
|
|
304
|
+
})), Be = g(() => e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? {
|
|
305
305
|
start: R.value.find((t) => t.absoluteIndex === h.value.start).text,
|
|
306
306
|
end: R.value.find((t) => t.absoluteIndex === h.value.end - 1).text
|
|
307
307
|
} : {
|
|
@@ -316,7 +316,7 @@ const al = ["id"], ol = ["xmlns", "aria-label", "viewBox"], sl = ["x", "y", "wid
|
|
|
316
316
|
config: e.value
|
|
317
317
|
};
|
|
318
318
|
const l = e.value.style.tooltip.customFormat;
|
|
319
|
-
if (
|
|
319
|
+
if (Gt(l) && Xt(() => l({
|
|
320
320
|
seriesIndex: t,
|
|
321
321
|
datapoint: a,
|
|
322
322
|
series: k.value,
|
|
@@ -330,37 +330,37 @@ const al = ["id"], ol = ["xmlns", "aria-label", "viewBox"], sl = ["x", "y", "wid
|
|
|
330
330
|
});
|
|
331
331
|
else if (e.value.style.tooltip.show) {
|
|
332
332
|
let o = "";
|
|
333
|
-
const { period:
|
|
333
|
+
const { period: b, open: f, high: O, low: fe, last: ge, volume: K, isBullish: Ge } = k.value[t], { period: Vl, open: kt, high: wt, low: At, last: _t, volume: Ct } = e.value.translations, $t = e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? R.value[t].text : b;
|
|
334
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}"
|
|
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
|
|
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 += `${Ct} : <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 zt = L({
|
|
337
337
|
p: e.value.style.tooltip.prefix,
|
|
338
338
|
v: f.value,
|
|
339
339
|
s: e.value.style.tooltip.suffix,
|
|
340
340
|
r: e.value.style.tooltip.roundingValue
|
|
341
341
|
});
|
|
342
|
-
o += `<div>${
|
|
343
|
-
const
|
|
342
|
+
o += `<div>${kt}: <b>${zt}</b></div>`;
|
|
343
|
+
const St = L({
|
|
344
344
|
p: e.value.style.tooltip.prefix,
|
|
345
345
|
v: O.value,
|
|
346
346
|
s: e.value.style.tooltip.suffix,
|
|
347
347
|
r: e.value.style.tooltip.roundingValue
|
|
348
348
|
});
|
|
349
|
-
o += `<div>${
|
|
350
|
-
const
|
|
349
|
+
o += `<div>${wt}: <b>${St}</b></div>`;
|
|
350
|
+
const Lt = L({
|
|
351
351
|
p: e.value.style.tooltip.prefix,
|
|
352
352
|
v: fe.value,
|
|
353
353
|
s: e.value.style.tooltip.suffix,
|
|
354
354
|
r: e.value.style.tooltip.roundingValue
|
|
355
355
|
});
|
|
356
|
-
o += `<div>${
|
|
357
|
-
const
|
|
356
|
+
o += `<div>${At}: <b>${Lt}</b></div>`;
|
|
357
|
+
const Tt = L({
|
|
358
358
|
p: e.value.style.tooltip.prefix,
|
|
359
359
|
v: ge.value,
|
|
360
360
|
s: e.value.style.tooltip.suffix,
|
|
361
361
|
r: e.value.style.tooltip.roundingValue
|
|
362
362
|
});
|
|
363
|
-
o += `<div>${
|
|
363
|
+
o += `<div>${_t}: <b>${Tt}</b></div>`, o += "</div>", oe.value = `<div style="text-align:right">${o}</div>`;
|
|
364
364
|
}
|
|
365
365
|
ae.value = !0;
|
|
366
366
|
}
|
|
@@ -386,13 +386,13 @@ const al = ["id"], ol = ["xmlns", "aria-label", "viewBox"], sl = ["x", "y", "wid
|
|
|
386
386
|
f.low.value,
|
|
387
387
|
f.last.value,
|
|
388
388
|
f.volume
|
|
389
|
-
]), o = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([a]).concat(l),
|
|
390
|
-
t ? t(
|
|
389
|
+
]), o = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([a]).concat(l), b = Dt(o);
|
|
390
|
+
t ? t(b) : Ht({ csvContent: b, title: e.value.style.title.text || "vue-ui-candlestick" });
|
|
391
391
|
});
|
|
392
392
|
}
|
|
393
|
-
const q =
|
|
394
|
-
const t = k.value.map((o,
|
|
395
|
-
const f = e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? R.value[
|
|
393
|
+
const q = g(() => {
|
|
394
|
+
const t = k.value.map((o, b) => {
|
|
395
|
+
const f = e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? R.value[b].text : o.period, O = L({
|
|
396
396
|
p: e.value.table.td.prefix,
|
|
397
397
|
v: o.open.value,
|
|
398
398
|
s: e.value.table.td.suffix,
|
|
@@ -458,9 +458,9 @@ const al = ["id"], ol = ["xmlns", "aria-label", "viewBox"], sl = ["x", "y", "wid
|
|
|
458
458
|
}
|
|
459
459
|
async function bt({ scale: t = 2 } = {}) {
|
|
460
460
|
if (!T.value) return;
|
|
461
|
-
const { width: a, height: l } = T.value.getBoundingClientRect(), o = a / l, { imageUri:
|
|
461
|
+
const { width: a, height: l } = T.value.getBoundingClientRect(), o = a / l, { imageUri: b, base64: f } = await ll({ domElement: T.value, base64: !0, img: !0, scale: t });
|
|
462
462
|
return {
|
|
463
|
-
imageUri:
|
|
463
|
+
imageUri: b,
|
|
464
464
|
base64: f,
|
|
465
465
|
title: e.value.style.title.text,
|
|
466
466
|
width: a,
|
|
@@ -468,14 +468,17 @@ const al = ["id"], ol = ["xmlns", "aria-label", "viewBox"], sl = ["x", "y", "wid
|
|
|
468
468
|
aspectRatio: o
|
|
469
469
|
};
|
|
470
470
|
}
|
|
471
|
-
|
|
471
|
+
const mt = g(() => d.value.width), xt = g(() => d.value.height);
|
|
472
|
+
return al({
|
|
472
473
|
timeLabelsEls: H,
|
|
473
474
|
timeLabels: R,
|
|
474
475
|
slicer: h,
|
|
475
476
|
configRef: e,
|
|
476
477
|
rotationPath: ["style", "layout", "grid", "xAxis", "dataLabels", "rotation"],
|
|
477
478
|
autoRotatePath: ["style", "layout", "grid", "xAxis", "dataLabels", "autoRotate"],
|
|
478
|
-
isAutoSize: !1
|
|
479
|
+
isAutoSize: !1,
|
|
480
|
+
width: mt,
|
|
481
|
+
height: xt
|
|
479
482
|
}), pe(e, () => {
|
|
480
483
|
_.value = {
|
|
481
484
|
showTable: e.value.table.show,
|
|
@@ -506,21 +509,21 @@ const al = ["id"], ol = ["xmlns", "aria-label", "viewBox"], sl = ["x", "y", "wid
|
|
|
506
509
|
color: e.value.style.color,
|
|
507
510
|
active: J.value,
|
|
508
511
|
onClose: he
|
|
509
|
-
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) :
|
|
512
|
+
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : p("", !0),
|
|
510
513
|
rt.value ? (s(), i("div", {
|
|
511
514
|
key: 1,
|
|
512
515
|
ref_key: "noTitle",
|
|
513
516
|
ref: Ce,
|
|
514
517
|
class: "vue-data-ui-no-title-space",
|
|
515
518
|
style: "height:36px; width: 100%;background:transparent"
|
|
516
|
-
}, null, 512)) :
|
|
519
|
+
}, null, 512)) : p("", !0),
|
|
517
520
|
e.value.style.title.text ? (s(), i("div", {
|
|
518
521
|
key: 2,
|
|
519
522
|
ref_key: "chartTitle",
|
|
520
523
|
ref: ke,
|
|
521
524
|
style: "width:100%;background:transparent"
|
|
522
525
|
}, [
|
|
523
|
-
(s(), N(
|
|
526
|
+
(s(), N(Zt, {
|
|
524
527
|
key: `title_${ze.value}`,
|
|
525
528
|
config: {
|
|
526
529
|
title: {
|
|
@@ -533,7 +536,7 @@ const al = ["id"], ol = ["xmlns", "aria-label", "viewBox"], sl = ["x", "y", "wid
|
|
|
533
536
|
}
|
|
534
537
|
}
|
|
535
538
|
}, null, 8, ["config"]))
|
|
536
|
-
], 512)) :
|
|
539
|
+
], 512)) : p("", !0),
|
|
537
540
|
e.value.userOptions.show && te.value && (u(Le) || u(ne)) ? (s(), N(u(ut), {
|
|
538
541
|
ref_key: "details",
|
|
539
542
|
ref: nt,
|
|
@@ -568,7 +571,7 @@ const al = ["id"], ol = ["xmlns", "aria-label", "viewBox"], sl = ["x", "y", "wid
|
|
|
568
571
|
style: me({
|
|
569
572
|
visibility: u(Le) ? u(ne) ? "visible" : "hidden" : "visible"
|
|
570
573
|
})
|
|
571
|
-
},
|
|
574
|
+
}, Ot({ _: 2 }, [
|
|
572
575
|
t.$slots.menuIcon ? {
|
|
573
576
|
name: "menuIcon",
|
|
574
577
|
fn: x(({ isOpen: l, color: o }) => [
|
|
@@ -625,14 +628,14 @@ const al = ["id"], ol = ["xmlns", "aria-label", "viewBox"], sl = ["x", "y", "wid
|
|
|
625
628
|
]),
|
|
626
629
|
key: "7"
|
|
627
630
|
} : void 0
|
|
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"])) :
|
|
631
|
+
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : p("", !0),
|
|
629
632
|
(s(), i("svg", {
|
|
630
633
|
ref_key: "svgRef",
|
|
631
634
|
ref: Te,
|
|
632
|
-
xmlns: u(
|
|
635
|
+
xmlns: u(Ut),
|
|
633
636
|
"aria-label": e.value.style.title.text || "candlestick chart",
|
|
634
637
|
class: S({ "vue-data-ui-fullscreen--on": W.value, "vue-data-ui-fulscreen--off": !W.value }),
|
|
635
|
-
viewBox: `0 0 ${
|
|
638
|
+
viewBox: `0 0 ${d.value.width <= 0 ? 10 : d.value.width} ${d.value.height <= 0 ? 10 : d.value.height}`,
|
|
636
639
|
style: me(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.color}`)
|
|
637
640
|
}, [
|
|
638
641
|
Ye(u(at)),
|
|
@@ -647,48 +650,48 @@ const al = ["id"], ol = ["xmlns", "aria-label", "viewBox"], sl = ["x", "y", "wid
|
|
|
647
650
|
}
|
|
648
651
|
}, [
|
|
649
652
|
m(t.$slots, "chart-background", {}, void 0, !0)
|
|
650
|
-
], 8,
|
|
651
|
-
k.value.length > 0 ? (s(), i("g",
|
|
652
|
-
|
|
653
|
-
|
|
653
|
+
], 8, il)) : p("", !0),
|
|
654
|
+
k.value.length > 0 ? (s(), i("g", nl, [
|
|
655
|
+
y("defs", null, [
|
|
656
|
+
y("linearGradient", {
|
|
654
657
|
id: `bearish_gradient_${w.value}`,
|
|
655
658
|
x2: "0%",
|
|
656
659
|
y2: "100%"
|
|
657
660
|
}, [
|
|
658
|
-
|
|
661
|
+
y("stop", {
|
|
659
662
|
offset: "0%",
|
|
660
663
|
"stop-color": e.value.style.layout.candle.colors.bearish
|
|
661
|
-
}, null, 8,
|
|
662
|
-
|
|
664
|
+
}, null, 8, vl),
|
|
665
|
+
y("stop", {
|
|
663
666
|
offset: "50%",
|
|
664
667
|
"stop-color": `${u(ee)(e.value.style.layout.candle.colors.bearish, 0.02)}DE`
|
|
665
|
-
}, null, 8,
|
|
666
|
-
|
|
668
|
+
}, null, 8, dl),
|
|
669
|
+
y("stop", {
|
|
667
670
|
offset: "100%",
|
|
668
671
|
"stop-color": `${u(ee)(e.value.style.layout.candle.colors.bearish, 0.05)}66`
|
|
669
|
-
}, null, 8,
|
|
670
|
-
], 8,
|
|
671
|
-
|
|
672
|
+
}, null, 8, yl)
|
|
673
|
+
], 8, rl),
|
|
674
|
+
y("linearGradient", {
|
|
672
675
|
id: `bullish_gradient_${w.value}`,
|
|
673
676
|
x2: "0%",
|
|
674
677
|
y2: "100%"
|
|
675
678
|
}, [
|
|
676
|
-
|
|
679
|
+
y("stop", {
|
|
677
680
|
offset: "0%",
|
|
678
681
|
"stop-color": e.value.style.layout.candle.colors.bullish
|
|
679
|
-
}, null, 8,
|
|
680
|
-
|
|
682
|
+
}, null, 8, hl),
|
|
683
|
+
y("stop", {
|
|
681
684
|
offset: "50%",
|
|
682
685
|
"stop-color": `${u(ee)(e.value.style.layout.candle.colors.bullish, 0.02)}DE`
|
|
683
|
-
}, null, 8,
|
|
684
|
-
|
|
686
|
+
}, null, 8, fl),
|
|
687
|
+
y("stop", {
|
|
685
688
|
offset: "100%",
|
|
686
689
|
"stop-color": `${u(ee)(e.value.style.layout.candle.colors.bullish, 0.05)}66`
|
|
687
|
-
}, null, 8,
|
|
688
|
-
], 8,
|
|
690
|
+
}, null, 8, gl)
|
|
691
|
+
], 8, cl)
|
|
689
692
|
]),
|
|
690
|
-
e.value.style.layout.grid.show ? (s(), i("g",
|
|
691
|
-
|
|
693
|
+
e.value.style.layout.grid.show ? (s(), i("g", pl, [
|
|
694
|
+
y("line", {
|
|
692
695
|
x1: n.value.left,
|
|
693
696
|
x2: n.value.left,
|
|
694
697
|
y1: n.value.top,
|
|
@@ -696,8 +699,8 @@ const al = ["id"], ol = ["xmlns", "aria-label", "viewBox"], sl = ["x", "y", "wid
|
|
|
696
699
|
stroke: e.value.style.layout.grid.stroke,
|
|
697
700
|
"stroke-width": e.value.style.layout.grid.strokeWidth,
|
|
698
701
|
"stroke-linecap": "round"
|
|
699
|
-
}, null, 8,
|
|
700
|
-
|
|
702
|
+
}, null, 8, bl),
|
|
703
|
+
y("line", {
|
|
701
704
|
x1: n.value.left,
|
|
702
705
|
x2: n.value.right,
|
|
703
706
|
y1: n.value.bottom,
|
|
@@ -705,8 +708,8 @@ const al = ["id"], ol = ["xmlns", "aria-label", "viewBox"], sl = ["x", "y", "wid
|
|
|
705
708
|
stroke: e.value.style.layout.grid.stroke,
|
|
706
709
|
"stroke-width": e.value.style.layout.grid.strokeWidth,
|
|
707
710
|
"stroke-linecap": "round"
|
|
708
|
-
}, null, 8,
|
|
709
|
-
])) :
|
|
711
|
+
}, null, 8, ml)
|
|
712
|
+
])) : p("", !0),
|
|
710
713
|
e.value.style.layout.grid.yAxis.dataLabels.show ? (s(), i("g", {
|
|
711
714
|
key: 1,
|
|
712
715
|
ref_key: "scaleLabels",
|
|
@@ -722,12 +725,12 @@ const al = ["id"], ol = ["xmlns", "aria-label", "viewBox"], sl = ["x", "y", "wid
|
|
|
722
725
|
stroke: e.value.style.layout.grid.stroke,
|
|
723
726
|
"stroke-width": e.value.style.layout.grid.strokeWidth,
|
|
724
727
|
"stroke-linecap": "round"
|
|
725
|
-
}, null, 8,
|
|
728
|
+
}, null, 8, xl)) : p("", !0),
|
|
726
729
|
l.value >= C.value.min && l.value <= C.value.max ? (s(), i("text", {
|
|
727
730
|
key: 1,
|
|
728
731
|
x: n.value.left - 8 + e.value.style.layout.grid.yAxis.dataLabels.offsetX,
|
|
729
|
-
y: l.y +
|
|
730
|
-
"font-size":
|
|
732
|
+
y: l.y + d.value.yAxisFontSize / 3,
|
|
733
|
+
"font-size": d.value.yAxisFontSize,
|
|
731
734
|
"text-anchor": "end",
|
|
732
735
|
fill: e.value.style.layout.grid.yAxis.dataLabels.color,
|
|
733
736
|
"font-weight": e.value.style.layout.grid.yAxis.dataLabels.bold ? "bold" : "normal"
|
|
@@ -736,44 +739,44 @@ const al = ["id"], ol = ["xmlns", "aria-label", "viewBox"], sl = ["x", "y", "wid
|
|
|
736
739
|
v: l.value,
|
|
737
740
|
s: e.value.style.layout.grid.yAxis.dataLabels.suffix,
|
|
738
741
|
r: e.value.style.layout.grid.yAxis.dataLabels.roundingValue
|
|
739
|
-
})), 9,
|
|
742
|
+
})), 9, kl)) : p("", !0)
|
|
740
743
|
]))), 256))
|
|
741
|
-
], 512)) :
|
|
744
|
+
], 512)) : p("", !0),
|
|
742
745
|
e.value.style.layout.grid.xAxis.dataLabels.show && !e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? (s(), i("g", {
|
|
743
746
|
key: 2,
|
|
744
747
|
ref_key: "timeLabelsEls",
|
|
745
748
|
ref: H
|
|
746
749
|
}, [
|
|
747
750
|
(s(!0), i(E, null, B(ht.value, (l, o) => (s(), i("g", null, [
|
|
748
|
-
|
|
751
|
+
y("text", {
|
|
749
752
|
class: "vue-data-ui-time-label",
|
|
750
|
-
transform: `translate(${n.value.left + v.value * o + v.value / 2}, ${n.value.bottom +
|
|
753
|
+
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})`,
|
|
751
754
|
"text-anchor": e.value.style.layout.grid.xAxis.dataLabels.rotation > 0 ? "start" : e.value.style.layout.grid.xAxis.dataLabels.rotation < 0 ? "end" : "middle",
|
|
752
|
-
"font-size":
|
|
755
|
+
"font-size": d.value.xAxisFontSize,
|
|
753
756
|
fill: e.value.style.layout.grid.xAxis.dataLabels.color,
|
|
754
757
|
"font-weight": e.value.style.layout.grid.xAxis.dataLabels.bold ? "bold" : "normal"
|
|
755
|
-
}, Q(l), 9,
|
|
758
|
+
}, Q(l), 9, wl)
|
|
756
759
|
]))), 256))
|
|
757
|
-
], 512)) :
|
|
760
|
+
], 512)) : p("", !0),
|
|
758
761
|
e.value.style.layout.grid.xAxis.dataLabels.show && e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? (s(), i("g", {
|
|
759
762
|
key: 3,
|
|
760
763
|
ref_key: "timeLabelsEls",
|
|
761
764
|
ref: H
|
|
762
765
|
}, [
|
|
763
766
|
(s(!0), i(E, null, B(R.value, (l, o) => (s(), i("g", null, [
|
|
764
|
-
|
|
767
|
+
y("text", {
|
|
765
768
|
class: "vue-data-ui-time-label",
|
|
766
|
-
transform: `translate(${n.value.left + v.value * o + v.value / 2}, ${n.value.bottom +
|
|
769
|
+
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})`,
|
|
767
770
|
"text-anchor": e.value.style.layout.grid.xAxis.dataLabels.rotation > 0 ? "start" : e.value.style.layout.grid.xAxis.dataLabels.rotation < 0 ? "end" : "middle",
|
|
768
|
-
"font-size":
|
|
771
|
+
"font-size": d.value.xAxisFontSize,
|
|
769
772
|
fill: e.value.style.layout.grid.xAxis.dataLabels.color,
|
|
770
773
|
"font-weight": e.value.style.layout.grid.xAxis.dataLabels.bold ? "bold" : "normal"
|
|
771
|
-
}, Q(l.text), 9,
|
|
774
|
+
}, Q(l.text), 9, Al)
|
|
772
775
|
]))), 256))
|
|
773
|
-
], 512)) :
|
|
774
|
-
|
|
776
|
+
], 512)) : p("", !0),
|
|
777
|
+
y("g", null, [
|
|
775
778
|
(s(!0), i(E, null, B(k.value, (l, o) => (s(), i("g", null, [
|
|
776
|
-
|
|
779
|
+
y("rect", {
|
|
777
780
|
x: l.open.x - e.value.style.layout.wick.strokeWidth / 2,
|
|
778
781
|
y: l.high.y,
|
|
779
782
|
width: e.value.style.layout.wick.strokeWidth,
|
|
@@ -782,25 +785,25 @@ const al = ["id"], ol = ["xmlns", "aria-label", "viewBox"], sl = ["x", "y", "wid
|
|
|
782
785
|
stroke: "none",
|
|
783
786
|
rx: e.value.style.layout.wick.strokeWidth / 2,
|
|
784
787
|
class: S({ "vue-data-ui-transition": $.value && !u(z) })
|
|
785
|
-
}, null, 10,
|
|
786
|
-
e.value.style.layout.wick.extremity.shape === "circle" ? (s(), i("g",
|
|
787
|
-
|
|
788
|
+
}, null, 10, _l),
|
|
789
|
+
e.value.style.layout.wick.extremity.shape === "circle" ? (s(), i("g", Cl, [
|
|
790
|
+
y("circle", {
|
|
788
791
|
cx: l.high.x,
|
|
789
792
|
cy: l.high.y,
|
|
790
793
|
r: e.value.style.layout.wick.extremity.size === "auto" ? v.value / 20 : e.value.style.layout.wick.extremity.size,
|
|
791
794
|
fill: e.value.style.layout.wick.extremity.color,
|
|
792
795
|
class: S({ "vue-data-ui-transition": $.value && !u(z) })
|
|
793
|
-
}, null, 10,
|
|
794
|
-
|
|
796
|
+
}, null, 10, $l),
|
|
797
|
+
y("circle", {
|
|
795
798
|
cx: l.low.x,
|
|
796
799
|
cy: l.low.y,
|
|
797
800
|
r: e.value.style.layout.wick.extremity.size === "auto" ? v.value / 20 : e.value.style.layout.wick.extremity.size,
|
|
798
801
|
fill: e.value.style.layout.wick.extremity.color,
|
|
799
802
|
class: S({ "vue-data-ui-transition": $.value && !u(z) })
|
|
800
|
-
}, null, 10,
|
|
801
|
-
])) :
|
|
802
|
-
e.value.style.layout.wick.extremity.shape === "line" ? (s(), i("g",
|
|
803
|
-
|
|
803
|
+
}, null, 10, zl)
|
|
804
|
+
])) : p("", !0),
|
|
805
|
+
e.value.style.layout.wick.extremity.shape === "line" ? (s(), i("g", Sl, [
|
|
806
|
+
y("rect", {
|
|
804
807
|
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
808
|
y: l.high.y - e.value.style.layout.wick.strokeWidth / 2,
|
|
806
809
|
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)),
|
|
@@ -809,8 +812,8 @@ const al = ["id"], ol = ["xmlns", "aria-label", "viewBox"], sl = ["x", "y", "wid
|
|
|
809
812
|
fill: e.value.style.layout.wick.extremity.color,
|
|
810
813
|
stroke: "none",
|
|
811
814
|
class: S({ "vue-data-ui-transition": $.value && !u(z) })
|
|
812
|
-
}, null, 10,
|
|
813
|
-
|
|
815
|
+
}, null, 10, Ll),
|
|
816
|
+
y("rect", {
|
|
814
817
|
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
818
|
y: l.low.y - e.value.style.layout.wick.strokeWidth / 2,
|
|
816
819
|
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)),
|
|
@@ -819,11 +822,11 @@ const al = ["id"], ol = ["xmlns", "aria-label", "viewBox"], sl = ["x", "y", "wid
|
|
|
819
822
|
stroke: "none",
|
|
820
823
|
rx: e.value.style.layout.wick.strokeWidth / 2,
|
|
821
824
|
class: S({ "vue-data-ui-transition": $.value && !u(z) })
|
|
822
|
-
}, null, 10,
|
|
823
|
-
])) :
|
|
825
|
+
}, null, 10, Tl)
|
|
826
|
+
])) : p("", !0)
|
|
824
827
|
]))), 256))
|
|
825
828
|
]),
|
|
826
|
-
|
|
829
|
+
y("g", null, [
|
|
827
830
|
(s(!0), i(E, null, B(k.value, (l, o) => (s(), i("rect", {
|
|
828
831
|
x: l.open.x - v.value / 2 + v.value * (1 - e.value.style.layout.candle.widthRatio) / 2,
|
|
829
832
|
y: l.isBullish ? l.last.y : l.open.y,
|
|
@@ -833,7 +836,7 @@ const al = ["id"], ol = ["xmlns", "aria-label", "viewBox"], sl = ["x", "y", "wid
|
|
|
833
836
|
rx: e.value.style.layout.candle.borderRadius,
|
|
834
837
|
stroke: "none",
|
|
835
838
|
class: S({ "vue-data-ui-transition": $.value && !u(z) })
|
|
836
|
-
}, null, 10,
|
|
839
|
+
}, null, 10, Il))), 256)),
|
|
837
840
|
(s(!0), i(E, null, B(k.value, (l, o) => (s(), i("rect", {
|
|
838
841
|
x: l.open.x - v.value / 2 + v.value * (1 - e.value.style.layout.candle.widthRatio) / 2,
|
|
839
842
|
y: l.isBullish ? l.last.y : l.open.y,
|
|
@@ -846,33 +849,33 @@ const al = ["id"], ol = ["xmlns", "aria-label", "viewBox"], sl = ["x", "y", "wid
|
|
|
846
849
|
"stroke-linecap": "round",
|
|
847
850
|
"stroke-linejoin": "round",
|
|
848
851
|
class: S({ "vue-data-ui-transition": $.value && !u(z) })
|
|
849
|
-
}, null, 10,
|
|
852
|
+
}, null, 10, Fl))), 256))
|
|
850
853
|
]),
|
|
851
|
-
|
|
854
|
+
y("g", null, [
|
|
852
855
|
(s(!0), i(E, null, B(k.value, (l, o) => (s(), i("rect", {
|
|
853
856
|
x: n.value.left + o * v.value,
|
|
854
857
|
y: n.value.top,
|
|
855
858
|
height: n.value.height <= 0 ? 1e-4 : n.value.height,
|
|
856
859
|
width: v.value <= 0 ? 1e-4 : v.value,
|
|
857
|
-
fill: se.value === o ? u(
|
|
858
|
-
onMouseover: (
|
|
859
|
-
onMouseleave: a[0] || (a[0] = (
|
|
860
|
+
fill: se.value === o ? u(Wt)(e.value.style.layout.selector.color, e.value.style.layout.selector.opacity) : "transparent",
|
|
861
|
+
onMouseover: (b) => ft(o, l),
|
|
862
|
+
onMouseleave: a[0] || (a[0] = (b) => {
|
|
860
863
|
se.value = void 0, ae.value = !1;
|
|
861
864
|
})
|
|
862
|
-
}, null, 40,
|
|
865
|
+
}, null, 40, Rl))), 256))
|
|
863
866
|
])
|
|
864
|
-
])) :
|
|
865
|
-
m(t.$slots, "svg", { svg:
|
|
866
|
-
], 14,
|
|
867
|
-
t.$slots.watermark ? (s(), i("div",
|
|
867
|
+
])) : p("", !0),
|
|
868
|
+
m(t.$slots, "svg", { svg: d.value }, void 0, !0)
|
|
869
|
+
], 14, ul)),
|
|
870
|
+
t.$slots.watermark ? (s(), i("div", Ol, [
|
|
868
871
|
m(t.$slots, "watermark", P(V({ isPrinting: u(Fe) || u(Re) })), void 0, !0)
|
|
869
|
-
])) :
|
|
872
|
+
])) : p("", !0),
|
|
870
873
|
e.value.style.zoom.show && te.value ? (s(), i("div", {
|
|
871
874
|
key: 5,
|
|
872
875
|
ref_key: "chartSlicer",
|
|
873
876
|
ref: Ae
|
|
874
877
|
}, [
|
|
875
|
-
(s(), N(
|
|
878
|
+
(s(), N(el, {
|
|
876
879
|
ref_key: "slicerComponent",
|
|
877
880
|
ref: Me,
|
|
878
881
|
key: `slicer_${j.value}`,
|
|
@@ -904,8 +907,8 @@ const al = ["id"], ol = ["xmlns", "aria-label", "viewBox"], sl = ["x", "y", "wid
|
|
|
904
907
|
]),
|
|
905
908
|
_: 3
|
|
906
909
|
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"]))
|
|
907
|
-
], 512)) :
|
|
908
|
-
|
|
910
|
+
], 512)) : p("", !0),
|
|
911
|
+
y("div", {
|
|
909
912
|
ref_key: "chartLegend",
|
|
910
913
|
ref: we
|
|
911
914
|
}, [
|
|
@@ -918,7 +921,7 @@ const al = ["id"], ol = ["xmlns", "aria-label", "viewBox"], sl = ["x", "y", "wid
|
|
|
918
921
|
dir: "auto"
|
|
919
922
|
}, [
|
|
920
923
|
m(t.$slots, "source", {}, void 0, !0)
|
|
921
|
-
], 512)) :
|
|
924
|
+
], 512)) : p("", !0),
|
|
922
925
|
Ye(u(st), {
|
|
923
926
|
show: _.value.showTooltip && ae.value,
|
|
924
927
|
backgroundColor: e.value.style.tooltip.backgroundColor,
|
|
@@ -972,20 +975,20 @@ const al = ["id"], ol = ["xmlns", "aria-label", "viewBox"], sl = ["x", "y", "wid
|
|
|
972
975
|
onClose: a[3] || (a[3] = (l) => _.value.showTable = !1)
|
|
973
976
|
}, {
|
|
974
977
|
th: x(({ th: l }) => [
|
|
975
|
-
|
|
978
|
+
Nt(Q(l), 1)
|
|
976
979
|
]),
|
|
977
980
|
td: x(({ td: l }) => [
|
|
978
|
-
|
|
981
|
+
y("div", { innerHTML: l }, null, 8, Nl)
|
|
979
982
|
]),
|
|
980
983
|
_: 1
|
|
981
984
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
982
985
|
]),
|
|
983
986
|
_: 1
|
|
984
|
-
}, 8, ["config"])) :
|
|
985
|
-
u(z) ? (s(), N(
|
|
986
|
-
], 46,
|
|
987
|
+
}, 8, ["config"])) : p("", !0),
|
|
988
|
+
u(z) ? (s(), N(Qt, { key: 8 })) : p("", !0)
|
|
989
|
+
], 46, sl));
|
|
987
990
|
}
|
|
988
|
-
},
|
|
991
|
+
}, Ql = /* @__PURE__ */ ol(Pl, [["__scopeId", "data-v-035e586e"]]);
|
|
989
992
|
export {
|
|
990
|
-
|
|
993
|
+
Ql as default
|
|
991
994
|
};
|