vue-data-ui 3.0.0-next.0 → 3.0.0-next.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +108 -67
- package/dist/{Arrow-CzFtSJ1v.js → Arrow-Dck2Ea5K.js} +1 -1
- package/dist/{BaseDraggableDialog-0S5xhs2P.js → BaseDraggableDialog-CatHZ1ns.js} +2 -2
- package/dist/{BaseIcon-DoDjTdD5.js → BaseIcon-BmZ4MREl.js} +1 -1
- package/dist/{ColorPicker-BGRchgqQ.js → ColorPicker-C1MXyD9Q.js} +2 -2
- package/dist/{DataTable-BBbOgI-a.js → DataTable-CgL0Rz0x.js} +2 -2
- package/dist/{Legend-Q4bOb-Nf.js → Legend-CYbP3Kfg.js} +12 -11
- package/dist/{NonSvgPenAndPaper-DNKRvsBB.js → NonSvgPenAndPaper-CcbcJm_U.js} +3 -3
- package/dist/{PackageVersion-D0VPY8-5.js → PackageVersion-CAkNkiIG.js} +1 -1
- package/dist/{PenAndPaper-DhBJsnob.js → PenAndPaper-Cx1-5zdD.js} +32 -32
- package/dist/{Shape-DbsLJ-SE.js → Shape-DBXkGxKt.js} +1 -1
- package/dist/{Slicer-DZEFp2GU.js → Slicer-nrMi5hzj.js} +2 -2
- package/dist/{SparkTooltip-CoOJR62O.js → SparkTooltip-fNzL4pIU.js} +1 -1
- package/dist/{Title-D29apS4l.js → Title-pVYRzQXY.js} +1 -1
- package/dist/Tooltip-NwATo4ZJ.js +157 -0
- package/dist/{UserOptions-Bdit7AWO.js → UserOptions-DAsRxxrf.js} +137 -129
- package/dist/{dom-to-png-BdPIrHOF.js → dom-to-png-BF_4H_6u.js} +1 -1
- package/dist/img-ku4zevVD.js +33 -0
- package/dist/{index-DMqAxz7R.js → index-BzfnuLnw.js} +1199 -1135
- package/dist/pdf-CguiIsUc.js +58 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +1051 -217
- package/dist/types/vue-data-ui.d.ts +1051 -217
- package/dist/useLoading-Bt5Doa8m.js +28 -0
- package/dist/{useNestedProp-YgN3FV_8.js → useNestedProp-DorElw91.js} +1 -1
- package/dist/{usePrinter-COkTjv6C.js → usePrinter-C9qkgv0r.js} +2 -2
- package/dist/vue-data-ui-DQef_oFO.js +314 -0
- package/dist/vue-data-ui.js +13 -13
- package/dist/{vue-ui-3d-bar-Ojgjl20n.js → vue-ui-3d-bar-DPSamIA-.js} +261 -245
- package/dist/{vue-ui-accordion-P6eFHGQp.js → vue-ui-accordion-DgZK-qDz.js} +3 -3
- package/dist/{vue-ui-age-pyramid-IcMpAhiw.js → vue-ui-age-pyramid-DVeGKvf9.js} +233 -217
- package/dist/{vue-ui-annotator-Bk7d86-x.js → vue-ui-annotator-6ikkK-FK.js} +2 -2
- package/dist/{vue-ui-bullet-DCvWbCPk.js → vue-ui-bullet-Bg4hfFk2.js} +172 -156
- package/dist/{vue-ui-candlestick-DCf-88Yv.js → vue-ui-candlestick-Bi59FGXn.js} +271 -254
- package/dist/{vue-ui-carousel-table-DEsl0XUh.js → vue-ui-carousel-table-DitKhrFT.js} +17 -16
- package/dist/{vue-ui-chestnut-Cg10-3wu.js → vue-ui-chestnut-D8wGAZod.js} +419 -403
- package/dist/{vue-ui-chord-BWYzR6vf.js → vue-ui-chord-C-uTVCDP.js} +256 -240
- package/dist/{vue-ui-circle-pack-CO2Ra2-5.js → vue-ui-circle-pack-CPy6xcxv.js} +230 -214
- package/dist/{vue-ui-cursor-BbYHJDbV.js → vue-ui-cursor-Dd7vUd0q.js} +2 -2
- package/dist/{vue-ui-dashboard-DkCnNuse.js → vue-ui-dashboard-CKurbu8M.js} +62 -62
- package/dist/{vue-ui-digits-DRsphHt2.js → vue-ui-digits-DfdZI11G.js} +2 -2
- package/dist/{vue-ui-donut-evolution-B5F2-0bh.js → vue-ui-donut-evolution-CKbLO8yR.js} +370 -357
- package/dist/vue-ui-donut-tECBFvud.js +1532 -0
- package/dist/{vue-ui-dumbbell-DqqSxoSh.js → vue-ui-dumbbell-DI5Lj3r_.js} +216 -200
- package/dist/{vue-ui-flow-CTIcUJgV.js → vue-ui-flow-CjU48s9z.js} +217 -201
- package/dist/{vue-ui-funnel-k7KD7Xoc.js → vue-ui-funnel-DM_5vHZ4.js} +213 -197
- package/dist/{vue-ui-galaxy-C9EHaP4I.js → vue-ui-galaxy-ocvZgZJx.js} +215 -202
- package/dist/{vue-ui-gauge-CBiM_1-n.js → vue-ui-gauge-DajNoY-D.js} +220 -204
- package/dist/{vue-ui-gizmo-CAc7b2oK.js → vue-ui-gizmo-DTnzeQbm.js} +3 -3
- package/dist/{vue-ui-heatmap-B3ubrP2v.js → vue-ui-heatmap-CfBS8jQe.js} +244 -224
- package/dist/{vue-ui-history-plot-XCqccO3b.js → vue-ui-history-plot-BuOPWQoP.js} +268 -252
- package/dist/{vue-ui-kpi-DTGMDjaZ.js → vue-ui-kpi-DLGHOIRj.js} +3 -3
- package/dist/{vue-ui-mini-loader-Cn_7nvVq.js → vue-ui-mini-loader-CHAHi4c9.js} +2 -2
- package/dist/{vue-ui-molecule-BugMXFAK.js → vue-ui-molecule-R5-oDFeW.js} +204 -188
- package/dist/{vue-ui-mood-radar-Cv4dHZPL.js → vue-ui-mood-radar-Ddf2gaES.js} +206 -190
- package/dist/vue-ui-nested-donuts-CksklV83.js +1177 -0
- package/dist/{vue-ui-onion-Bha2hRAb.js → vue-ui-onion-D2n4zUkV.js} +196 -180
- package/dist/{vue-ui-parallel-coordinate-plot-DWJ2DWx4.js → vue-ui-parallel-coordinate-plot-CNWQqlxf.js} +194 -178
- package/dist/{vue-ui-quadrant-BKHZoTml.js → vue-ui-quadrant-CxNj2FEx.js} +321 -305
- package/dist/{vue-ui-quick-chart-D_k3lbU8.js → vue-ui-quick-chart-Bm_VmhJR.js} +347 -331
- package/dist/{vue-ui-radar-Co4EOjSk.js → vue-ui-radar-DSYMQJ6K.js} +193 -177
- package/dist/{vue-ui-rating-dtNN0EdX.js → vue-ui-rating-BiQpwXnc.js} +2 -2
- package/dist/{vue-ui-relation-circle-CR4UpQzM.js → vue-ui-relation-circle-Cdxe78Bm.js} +188 -172
- package/dist/{vue-ui-ridgeline-BKX97EnR.js → vue-ui-ridgeline-DpeM2hRi.js} +212 -196
- package/dist/{vue-ui-rings-EPTwyt6D.js → vue-ui-rings-BenmQHKv.js} +223 -210
- package/dist/{vue-ui-scatter-BlxzblSR.js → vue-ui-scatter-mDMY1H6U.js} +288 -273
- package/dist/{vue-ui-skeleton-CjN2ZdgT.js → vue-ui-skeleton-Ch_XkFuP.js} +3 -3
- package/dist/{vue-ui-smiley-DdF_ErYG.js → vue-ui-smiley-DTig5lTU.js} +2 -2
- package/dist/{vue-ui-spark-trend-RdOlCuT9.js → vue-ui-spark-trend-BkDsp8E0.js} +3 -3
- package/dist/{vue-ui-sparkbar-DWufRGcN.js → vue-ui-sparkbar-CgqoyBOm.js} +3 -3
- package/dist/{vue-ui-sparkgauge-IP1O3qyT.js → vue-ui-sparkgauge-B4jR_Y62.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-Cnv9xZ8H.js → vue-ui-sparkhistogram-DfxjglLy.js} +4 -4
- package/dist/{vue-ui-sparkline-CYgeD5V3.js → vue-ui-sparkline-M3QR8xJE.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-BCwoK9xd.js → vue-ui-sparkstackbar-B2Ls-Mb8.js} +3 -3
- package/dist/{vue-ui-stackbar-CqFIvfrK.js → vue-ui-stackbar-DIHkn6__.js} +497 -474
- package/dist/{vue-ui-strip-plot-Dq-kDRai.js → vue-ui-strip-plot-B_ZLbu2D.js} +241 -225
- package/dist/{vue-ui-table-vaIdQnPl.js → vue-ui-table-BhymhDOh.js} +3 -3
- package/dist/{vue-ui-table-heatmap-U_Td0cdh.js → vue-ui-table-heatmap-DokRh4dS.js} +26 -25
- package/dist/{vue-ui-table-sparkline-DkOaHx5L.js → vue-ui-table-sparkline-DxBZGKZJ.js} +8 -7
- package/dist/{vue-ui-thermometer-CzckBZgs.js → vue-ui-thermometer-e2L6IdF-.js} +170 -154
- package/dist/{vue-ui-timer-DSdUshUs.js → vue-ui-timer-BG2EwK3o.js} +5 -5
- package/dist/vue-ui-tiremarks-nzQH7woJ.js +358 -0
- package/dist/vue-ui-treemap-CZxyi6fl.js +965 -0
- package/dist/{vue-ui-vertical-bar-Dd4sYeAC.js → vue-ui-vertical-bar-DahdX1Sn.js} +382 -360
- package/dist/{vue-ui-waffle-DusUVY6y.js → vue-ui-waffle-D399D4UE.js} +234 -221
- package/dist/vue-ui-wheel-DtcwtHzJ.js +352 -0
- package/dist/{vue-ui-word-cloud-_7uYjJ5A.js → vue-ui-word-cloud-CTDceQsf.js} +249 -233
- package/dist/{vue-ui-world-COIyBHII.js → vue-ui-world-BjNSbqMZ.js} +239 -223
- package/dist/vue-ui-xy-BkTP-JpK.js +2958 -0
- package/dist/{vue-ui-xy-canvas-CuYRyub2.js → vue-ui-xy-canvas-BKAowbe0.js} +447 -431
- package/package.json +2 -2
- package/dist/Tooltip-hVZUY_s5.js +0 -149
- package/dist/img-BeMVTwmF.js +0 -20
- package/dist/pdf-DPxOdzfi.js +0 -51
- package/dist/useMouse-AicQS8Vf.js +0 -13
- package/dist/vue-data-ui-nceqWRts.js +0 -301
- package/dist/vue-ui-donut-DSE7ubVv.js +0 -1315
- package/dist/vue-ui-nested-donuts-CYe0Are_.js +0 -1154
- package/dist/vue-ui-tiremarks-B2WWklqG.js +0 -342
- package/dist/vue-ui-treemap-D1dgDhjG.js +0 -952
- package/dist/vue-ui-wheel-ClsKBh52.js +0 -336
- package/dist/vue-ui-xy-C_OUyzTC.js +0 -3135
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { u as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as Me } from "./useNestedProp-
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import
|
|
9
|
-
import { S as
|
|
10
|
-
import { u as
|
|
11
|
-
import
|
|
12
|
-
|
|
1
|
+
import { defineAsyncComponent as I, computed as f, ref as y, watch as Oe, shallowRef as Ne, onMounted as pt, onBeforeUnmount as ft, nextTick as D, createElementBlock as u, openBlock as s, unref as r, normalizeStyle as ie, normalizeClass as Pe, createBlock as T, createCommentVNode as h, createElementVNode as v, createVNode as Ve, createSlots as gt, withCtx as m, renderSlot as g, normalizeProps as L, guardReactiveProps as F, Fragment as R, renderList as O, toDisplayString as q, createTextVNode as xt } from "vue";
|
|
2
|
+
import { u as mt, c as bt, a as kt, C as J, o as wt, e as N, D as _t, v as W, f as $, X as Ct, w as K, s as $t, E as Ee, q as At, r as zt, x as St, y as It } from "./index-BzfnuLnw.js";
|
|
3
|
+
import { t as Tt, u as Lt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Me } from "./useNestedProp-DorElw91.js";
|
|
5
|
+
import { u as Ft } from "./usePrinter-C9qkgv0r.js";
|
|
6
|
+
import { u as Rt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
|
+
import { u as Ot } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
+
import Nt from "./Title-pVYRzQXY.js";
|
|
9
|
+
import { S as Pt } from "./Slicer-nrMi5hzj.js";
|
|
10
|
+
import { u as Vt } from "./useTimeLabels-Mrr0jrpL.js";
|
|
11
|
+
import Et from "./img-ku4zevVD.js";
|
|
12
|
+
import { _ as Mt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
|
+
const Bt = ["id"], Ut = ["xmlns", "aria-label", "viewBox"], Dt = ["x", "y", "width", "height"], Wt = { key: 1 }, Gt = ["id"], Ht = ["stop-color"], jt = ["stop-color"], Xt = ["stop-color"], Yt = ["id"], qt = ["stop-color"], Jt = ["stop-color"], Kt = ["stop-color"], Qt = { key: 0 }, Zt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], el = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], tl = { key: 1 }, ll = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], al = ["x", "y", "font-size", "fill", "font-weight"], ol = { key: 2 }, sl = ["transform", "text-anchor", "font-size", "fill", "font-weight"], ul = { key: 3 }, il = ["transform", "text-anchor", "font-size", "fill", "font-weight"], nl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], rl = { key: 0 }, dl = ["cx", "cy", "r", "fill"], vl = ["cx", "cy", "r", "fill"], yl = { key: 1 }, cl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], hl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], pl = ["x", "y", "height", "width", "fill", "rx"], fl = ["x", "y", "height", "width", "fill", "rx", "stroke", "stroke-width"], gl = ["x", "y", "height", "width", "fill", "onMouseover"], xl = {
|
|
13
14
|
key: 5,
|
|
14
15
|
class: "vue-data-ui-watermark"
|
|
15
|
-
},
|
|
16
|
+
}, ml = ["innerHTML"], bl = {
|
|
16
17
|
__name: "vue-ui-candlestick",
|
|
17
18
|
props: {
|
|
18
19
|
config: {
|
|
@@ -28,27 +29,27 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
|
|
|
28
29
|
}
|
|
29
30
|
}
|
|
30
31
|
},
|
|
31
|
-
setup(
|
|
32
|
-
const
|
|
32
|
+
setup(Be, { expose: Ue }) {
|
|
33
|
+
const De = I(() => import("./vue-ui-accordion-DgZK-qDz.js")), We = I(() => import("./DataTable-CgL0Rz0x.js")), Ge = I(() => import("./PackageVersion-CAkNkiIG.js")), He = I(() => import("./PenAndPaper-Cx1-5zdD.js")), je = I(() => import("./vue-ui-skeleton-Ch_XkFuP.js")), Xe = I(() => import("./Tooltip-NwATo4ZJ.js")), Ye = I(() => import("./UserOptions-DAsRxxrf.js")), { vue_ui_candlestick: qe } = mt(), i = Be, B = f(() => !!i.dataset && i.dataset.length), w = y(bt()), Je = y(null), Q = y(!1), Z = y(""), ee = y(void 0), ne = y(0), A = y(null), re = y(null), de = y(null), ve = y(null), ye = y(null), ce = y(null), G = y(0), he = y(0), pe = y(0), e = f({
|
|
33
34
|
get: () => me(),
|
|
34
35
|
set: (t) => t
|
|
35
|
-
}), { userOptionsVisible: te, setUserOptionsVisibility: fe, keepUserOptionState: ge } =
|
|
36
|
+
}), { userOptionsVisible: te, setUserOptionsVisibility: fe, keepUserOptionState: ge } = Rt({ config: e.value }), { svgRef: xe } = Ot({ config: e.value.style.title });
|
|
36
37
|
function me() {
|
|
37
38
|
const t = Me({
|
|
38
39
|
userConfig: i.config,
|
|
39
|
-
defaultConfig:
|
|
40
|
+
defaultConfig: qe
|
|
40
41
|
});
|
|
41
|
-
let
|
|
42
|
-
return t.theme ?
|
|
42
|
+
let a = {};
|
|
43
|
+
return t.theme ? a = {
|
|
43
44
|
...Me({
|
|
44
|
-
userConfig:
|
|
45
|
+
userConfig: kt.vue_ui_candlestick[t.theme] || i.config,
|
|
45
46
|
defaultConfig: t
|
|
46
47
|
})
|
|
47
|
-
} :
|
|
48
|
+
} : a = t, i.config && J(i.config, "style.zoom.startIndex") ? a.style.zoom.startIndex = i.config.style.zoom.startIndex : a.style.zoom.startIndex = null, i.config && J(i.config, "style.zoom.endIndex") ? a.style.zoom.endIndex = i.config.style.zoom.endIndex : a.style.zoom.endIndex = null, i.config && J(i.config, "style.layout.grid.yAxis.scale.min") ? a.style.layout.grid.yAxis.scale.min = i.config.style.layout.grid.yAxis.scale.min : a.style.layout.grid.yAxis.scale.min = null, i.config && J(i.config, "style.layout.grid.yAxis.scale.max") ? a.style.layout.grid.yAxis.scale.max = i.config.style.layout.grid.yAxis.scale.max : a.style.layout.grid.yAxis.scale.max = null, a;
|
|
48
49
|
}
|
|
49
|
-
|
|
50
|
-
e.value = me(), te.value = !e.value.userOptions.showOnChartHover, be(), G.value += 1, pe.value += 1, he.value += 1,
|
|
51
|
-
}, { deep: !0 }),
|
|
50
|
+
Oe(() => i.config, (t) => {
|
|
51
|
+
e.value = me(), te.value = !e.value.userOptions.showOnChartHover, be(), G.value += 1, pe.value += 1, he.value += 1, C.value.showTable = e.value.table.show, C.value.showTooltip = e.value.style.tooltip.show;
|
|
52
|
+
}, { deep: !0 }), Oe(() => i.dataset, (t) => {
|
|
52
53
|
p.value.start = 0, p.value.end = t.length, G.value += 1;
|
|
53
54
|
}, { deep: !0 });
|
|
54
55
|
const c = y({
|
|
@@ -56,18 +57,18 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
|
|
|
56
57
|
width: e.value.style.width,
|
|
57
58
|
xAxisFontSize: e.value.style.layout.grid.xAxis.dataLabels.fontSize,
|
|
58
59
|
yAxisFontSize: e.value.style.layout.grid.yAxis.dataLabels.fontSize
|
|
59
|
-
}),
|
|
60
|
-
|
|
60
|
+
}), z = Ne(null), P = Ne(null);
|
|
61
|
+
pt(() => {
|
|
61
62
|
be();
|
|
62
63
|
});
|
|
63
64
|
function be() {
|
|
64
|
-
if (
|
|
65
|
+
if (wt(i.dataset) && N({
|
|
65
66
|
componentName: "VueUiCandlestick",
|
|
66
67
|
type: "dataset"
|
|
67
68
|
}), e.value.responsive) {
|
|
68
|
-
const t =
|
|
69
|
-
const { width:
|
|
70
|
-
chart:
|
|
69
|
+
const t = Tt(() => {
|
|
70
|
+
const { width: a, height: l } = Lt({
|
|
71
|
+
chart: A.value,
|
|
71
72
|
title: e.value.style.title.text ? re.value : null,
|
|
72
73
|
slicer: ve.value,
|
|
73
74
|
legend: de.value,
|
|
@@ -75,14 +76,14 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
|
|
|
75
76
|
noTitle: ce.value
|
|
76
77
|
});
|
|
77
78
|
requestAnimationFrame(() => {
|
|
78
|
-
c.value.width =
|
|
79
|
-
relator: Math.min(
|
|
79
|
+
c.value.width = a, c.value.height = l, e.value.responsiveProportionalSizing ? (c.value.xAxisFontSize = Ee({
|
|
80
|
+
relator: Math.min(a, l),
|
|
80
81
|
adjuster: e.value.style.width,
|
|
81
82
|
source: e.value.style.layout.grid.xAxis.dataLabels.fontSize,
|
|
82
83
|
threshold: 6,
|
|
83
84
|
fallback: 6
|
|
84
|
-
}), c.value.yAxisFontSize =
|
|
85
|
-
relator: Math.min(
|
|
85
|
+
}), c.value.yAxisFontSize = Ee({
|
|
86
|
+
relator: Math.min(a, l),
|
|
86
87
|
adjuster: e.value.style.width,
|
|
87
88
|
source: e.value.style.layout.grid.yAxis.dataLabels.fontSize,
|
|
88
89
|
threshold: 6,
|
|
@@ -90,67 +91,67 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
|
|
|
90
91
|
})) : (c.value.xAxisFontSize = e.value.style.layout.grid.xAxis.dataLabels.fontSize, c.value.yAxisFontSize = e.value.style.layout.grid.yAxis.dataLabels.fontSize);
|
|
91
92
|
});
|
|
92
93
|
});
|
|
93
|
-
|
|
94
|
+
z.value && (P.value && z.value.unobserve(P.value), z.value.disconnect()), z.value = new ResizeObserver(t), P.value = A.value.parentNode, z.value.observe(P.value);
|
|
94
95
|
}
|
|
95
96
|
Se();
|
|
96
97
|
}
|
|
97
|
-
|
|
98
|
-
|
|
98
|
+
ft(() => {
|
|
99
|
+
z.value && (P.value && z.value.unobserve(P.value), z.value.disconnect());
|
|
99
100
|
});
|
|
100
|
-
const { isPrinting: ke, isImaging: we, generatePdf: _e, generateImage: Ce } =
|
|
101
|
-
elementId: `vue-ui-candlestick_${
|
|
101
|
+
const { isPrinting: ke, isImaging: we, generatePdf: _e, generateImage: Ce } = Ft({
|
|
102
|
+
elementId: `vue-ui-candlestick_${w.value}`,
|
|
102
103
|
fileName: e.value.style.title.text || "vue-ui-candlestick",
|
|
103
104
|
options: e.value.userOptions.print
|
|
104
|
-
}),
|
|
105
|
+
}), Ke = f(() => e.value.userOptions.show && !e.value.style.title.text), C = y({
|
|
105
106
|
showTable: e.value.table.show,
|
|
106
107
|
showTooltip: e.value.style.tooltip.show
|
|
107
108
|
}), n = f(() => {
|
|
108
|
-
const { top: t, right:
|
|
109
|
+
const { top: t, right: a, bottom: l, left: o } = e.value.style.layout.padding;
|
|
109
110
|
return {
|
|
110
111
|
top: t,
|
|
111
|
-
right: c.value.width -
|
|
112
|
-
left:
|
|
112
|
+
right: c.value.width - a,
|
|
113
|
+
left: o,
|
|
113
114
|
bottom: c.value.height - l,
|
|
114
|
-
width: c.value.width -
|
|
115
|
+
width: c.value.width - o - a,
|
|
115
116
|
height: c.value.height - t - l
|
|
116
117
|
};
|
|
117
118
|
}), U = f(() => i.dataset.length), p = y({
|
|
118
119
|
start: 0,
|
|
119
120
|
end: U.value
|
|
120
|
-
}), $e = f(() => i.dataset.map((t,
|
|
121
|
+
}), $e = f(() => i.dataset.map((t, a) => ({
|
|
121
122
|
...t,
|
|
122
|
-
absoluteIndex:
|
|
123
|
-
})).slice(p.value.start, p.value.end)), le = f(() => (i.dataset.forEach((t,
|
|
124
|
-
[null, void 0].includes(t[0]) &&
|
|
123
|
+
absoluteIndex: a
|
|
124
|
+
})).slice(p.value.start, p.value.end)), le = f(() => (i.dataset.forEach((t, a) => {
|
|
125
|
+
[null, void 0].includes(t[0]) && N({
|
|
125
126
|
componentName: "VueUiCandlestick",
|
|
126
127
|
type: "datasetAttribute",
|
|
127
128
|
property: "period (index 0)",
|
|
128
|
-
index:
|
|
129
|
-
}), [null, void 0].includes(t[1]) &&
|
|
129
|
+
index: a
|
|
130
|
+
}), [null, void 0].includes(t[1]) && N({
|
|
130
131
|
componentName: "VueUiCandlestick",
|
|
131
132
|
type: "datasetAttribute",
|
|
132
133
|
property: "open (index 1)",
|
|
133
|
-
index:
|
|
134
|
-
}), [null, void 0].includes(t[2]) &&
|
|
134
|
+
index: a
|
|
135
|
+
}), [null, void 0].includes(t[2]) && N({
|
|
135
136
|
componentName: "VueUiCandlestick",
|
|
136
137
|
type: "datasetAttribute",
|
|
137
138
|
property: "high (index 2)",
|
|
138
|
-
index:
|
|
139
|
-
}), [null, void 0].includes(t[3]) &&
|
|
139
|
+
index: a
|
|
140
|
+
}), [null, void 0].includes(t[3]) && N({
|
|
140
141
|
componentName: "VueUiCandlestick",
|
|
141
142
|
type: "datasetAttribute",
|
|
142
143
|
property: "low (index 3)",
|
|
143
|
-
index:
|
|
144
|
-
}), [null, void 0].includes(t[4]) &&
|
|
144
|
+
index: a
|
|
145
|
+
}), [null, void 0].includes(t[4]) && N({
|
|
145
146
|
componentName: "VueUiCandlestick",
|
|
146
147
|
type: "datasetAttribute",
|
|
147
148
|
property: "last (index 4)",
|
|
148
|
-
index:
|
|
149
|
-
}), [null, void 0].includes(t[5]) &&
|
|
149
|
+
index: a
|
|
150
|
+
}), [null, void 0].includes(t[5]) && N({
|
|
150
151
|
componentName: "VueUiCandlestick",
|
|
151
152
|
type: "datasetAttribute",
|
|
152
153
|
property: "volume (index 5)",
|
|
153
|
-
index:
|
|
154
|
+
index: a
|
|
154
155
|
});
|
|
155
156
|
}), $e.value.map((t) => ({
|
|
156
157
|
absoluteIndex: t.absoluteIndex,
|
|
@@ -161,167 +162,167 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
|
|
|
161
162
|
last: t[4],
|
|
162
163
|
volume: t[5]
|
|
163
164
|
})))), d = f(() => n.value.width / $e.value.length), Ae = f(() => {
|
|
164
|
-
const t = e.value.style.layout.grid.yAxis.scale.max === null ? Math.max(...le.value.map((l) => l.high)) : e.value.style.layout.grid.yAxis.scale.max,
|
|
165
|
+
const t = e.value.style.layout.grid.yAxis.scale.max === null ? Math.max(...le.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;
|
|
165
166
|
return {
|
|
166
167
|
max: t,
|
|
167
|
-
min:
|
|
168
|
+
min: a
|
|
168
169
|
};
|
|
169
|
-
}),
|
|
170
|
-
function H(t,
|
|
170
|
+
}), _ = f(() => _t(Ae.value.min, Ae.value.max, e.value.style.layout.grid.yAxis.dataLabels.steps));
|
|
171
|
+
function H(t, a) {
|
|
171
172
|
return {
|
|
172
173
|
...t,
|
|
173
|
-
x: W(n.value.left +
|
|
174
|
-
y: W(n.value.top + (1 - (t -
|
|
174
|
+
x: W(n.value.left + a * d.value + d.value / 2),
|
|
175
|
+
y: W(n.value.top + (1 - (t - _.value.min) / (_.value.max - _.value.min)) * n.value.height),
|
|
175
176
|
value: W(t)
|
|
176
177
|
};
|
|
177
178
|
}
|
|
178
|
-
const
|
|
179
|
-
const l = H(t.open,
|
|
179
|
+
const b = f(() => le.value.map((t, a) => {
|
|
180
|
+
const l = H(t.open, a), o = H(t.high, a), k = H(t.low, a), x = H(t.last, a), S = t.last > t.open;
|
|
180
181
|
return {
|
|
181
182
|
period: t.period,
|
|
182
183
|
open: l,
|
|
183
|
-
high:
|
|
184
|
-
low:
|
|
185
|
-
last:
|
|
184
|
+
high: o,
|
|
185
|
+
low: k,
|
|
186
|
+
last: x,
|
|
186
187
|
volume: t.volume,
|
|
187
|
-
isBullish:
|
|
188
|
+
isBullish: S,
|
|
188
189
|
absoluteIndex: t.absoluteIndex
|
|
189
190
|
};
|
|
190
191
|
}));
|
|
191
|
-
function
|
|
192
|
-
return W((t -
|
|
192
|
+
function Qe(t) {
|
|
193
|
+
return W((t - _.value.min) / (_.value.max - _.value.min));
|
|
193
194
|
}
|
|
194
|
-
const
|
|
195
|
-
y: n.value.bottom - n.value.height *
|
|
195
|
+
const Ze = f(() => _.value.ticks.map((t) => ({
|
|
196
|
+
y: n.value.bottom - n.value.height * Qe(t),
|
|
196
197
|
value: W(t)
|
|
197
|
-
}))),
|
|
198
|
+
}))), et = f(() => le.value.map((t) => t.period)), V = f(() => Vt({
|
|
198
199
|
values: i.dataset.map((t) => t[0]),
|
|
199
200
|
maxDatapoints: i.dataset.length,
|
|
200
201
|
formatter: e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter,
|
|
201
202
|
start: p.value.start,
|
|
202
203
|
end: p.value.end
|
|
203
204
|
})), ze = f(() => e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? {
|
|
204
|
-
start:
|
|
205
|
-
end:
|
|
205
|
+
start: V.value.find((t) => t.absoluteIndex === p.value.start).text,
|
|
206
|
+
end: V.value.find((t) => t.absoluteIndex === p.value.end - 1).text
|
|
206
207
|
} : {
|
|
207
208
|
start: i.dataset[p.value.start] ? i.dataset[p.value.start][0] : i.dataset[0][0],
|
|
208
209
|
end: i.dataset[p.value.end - 1] ? i.dataset[p.value.end - 1][0] : i.dataset.at(-1)[0]
|
|
209
|
-
}),
|
|
210
|
-
function
|
|
211
|
-
ee.value = t,
|
|
212
|
-
datapoint:
|
|
210
|
+
}), ae = y(null);
|
|
211
|
+
function tt(t, a) {
|
|
212
|
+
ee.value = t, ae.value = {
|
|
213
|
+
datapoint: a,
|
|
213
214
|
seriesIndex: t,
|
|
214
|
-
series:
|
|
215
|
+
series: b.value,
|
|
215
216
|
config: e.value
|
|
216
217
|
};
|
|
217
218
|
const l = e.value.style.tooltip.customFormat;
|
|
218
|
-
if (
|
|
219
|
+
if (St(l) && It(() => l({
|
|
219
220
|
seriesIndex: t,
|
|
220
|
-
datapoint:
|
|
221
|
-
series:
|
|
221
|
+
datapoint: a,
|
|
222
|
+
series: b.value,
|
|
222
223
|
config: e.value
|
|
223
224
|
})))
|
|
224
225
|
Z.value = l({
|
|
225
226
|
seriesIndex: t,
|
|
226
|
-
datapoint:
|
|
227
|
-
series:
|
|
227
|
+
datapoint: a,
|
|
228
|
+
series: b.value,
|
|
228
229
|
config: e.value
|
|
229
230
|
});
|
|
230
231
|
else if (e.value.style.tooltip.show) {
|
|
231
|
-
let
|
|
232
|
-
const { period:
|
|
233
|
-
|
|
234
|
-
fill="${e.value.style.layout.candle.gradient.show ?
|
|
235
|
-
const
|
|
232
|
+
let o = "";
|
|
233
|
+
const { period: k, open: x, high: S, low: se, last: ue, volume: Y, isBullish: Re } = b.value[t], { period: kl, open: st, high: ut, low: it, last: nt, volume: rt } = e.value.translations, dt = e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? V.value[t].text : k;
|
|
234
|
+
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}"
|
|
235
|
+
fill="${e.value.style.layout.candle.gradient.show ? Re ? `url(#bullish_gradient_${w.value})` : `url(#bearish_gradient_${w.value})` : Re ? e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.colors.bearish}"/></svg>${dt}</div>`, o += `${rt} : <b>${isNaN(Y) ? "-" : Number(Y.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}">`;
|
|
236
|
+
const vt = $({
|
|
236
237
|
p: e.value.style.tooltip.prefix,
|
|
237
|
-
v:
|
|
238
|
+
v: x.value,
|
|
238
239
|
s: e.value.style.tooltip.suffix,
|
|
239
240
|
r: e.value.style.tooltip.roundingValue
|
|
240
241
|
});
|
|
241
|
-
|
|
242
|
-
const
|
|
242
|
+
o += `<div>${st}: <b>${vt}</b></div>`;
|
|
243
|
+
const yt = $({
|
|
243
244
|
p: e.value.style.tooltip.prefix,
|
|
244
|
-
v:
|
|
245
|
+
v: S.value,
|
|
245
246
|
s: e.value.style.tooltip.suffix,
|
|
246
247
|
r: e.value.style.tooltip.roundingValue
|
|
247
248
|
});
|
|
248
|
-
|
|
249
|
-
const
|
|
249
|
+
o += `<div>${ut}: <b>${yt}</b></div>`;
|
|
250
|
+
const ct = $({
|
|
250
251
|
p: e.value.style.tooltip.prefix,
|
|
251
252
|
v: se.value,
|
|
252
253
|
s: e.value.style.tooltip.suffix,
|
|
253
254
|
r: e.value.style.tooltip.roundingValue
|
|
254
255
|
});
|
|
255
|
-
|
|
256
|
-
const
|
|
256
|
+
o += `<div>${it}: <b>${ct}</b></div>`;
|
|
257
|
+
const ht = $({
|
|
257
258
|
p: e.value.style.tooltip.prefix,
|
|
258
259
|
v: ue.value,
|
|
259
260
|
s: e.value.style.tooltip.suffix,
|
|
260
261
|
r: e.value.style.tooltip.roundingValue
|
|
261
262
|
});
|
|
262
|
-
|
|
263
|
+
o += `<div>${nt}: <b>${ht}</b></div>`, o += "</div>", Z.value = `<div style="text-align:right">${o}</div>`;
|
|
263
264
|
}
|
|
264
265
|
Q.value = !0;
|
|
265
266
|
}
|
|
266
|
-
function
|
|
267
|
+
function lt() {
|
|
267
268
|
Se();
|
|
268
269
|
}
|
|
269
|
-
const
|
|
270
|
+
const E = y(null);
|
|
270
271
|
async function Se() {
|
|
271
|
-
(e.value.style.zoom.startIndex !== null || e.value.style.zoom.endIndex !== null) &&
|
|
272
|
+
(e.value.style.zoom.startIndex !== null || e.value.style.zoom.endIndex !== null) && E.value ? (e.value.style.zoom.startIndex !== null && (await D(), await D(), E.value && E.value.setStartValue(e.value.style.zoom.startIndex)), e.value.style.zoom.endIndex !== null && (await D(), await D(), E.value && E.value.setEndValue(at(e.value.style.zoom.endIndex + 1)))) : (p.value = {
|
|
272
273
|
start: 0,
|
|
273
274
|
end: U.value
|
|
274
275
|
}, G.value += 1);
|
|
275
276
|
}
|
|
276
|
-
function
|
|
277
|
-
const
|
|
278
|
-
return t >
|
|
277
|
+
function at(t) {
|
|
278
|
+
const a = U.value;
|
|
279
|
+
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;
|
|
279
280
|
}
|
|
280
281
|
function Ie(t = null) {
|
|
281
282
|
D(() => {
|
|
282
|
-
const
|
|
283
|
-
e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ?
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
]),
|
|
290
|
-
t ? t(
|
|
283
|
+
const a = [e.value.translations.period, e.value.translations.open, e.value.translations.high, e.value.translations.low, e.value.translations.last, e.value.translations.volume], l = b.value.map((x, S) => [
|
|
284
|
+
e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? V.value[S].text : x.period,
|
|
285
|
+
x.open.value,
|
|
286
|
+
x.high.value,
|
|
287
|
+
x.low.value,
|
|
288
|
+
x.last.value,
|
|
289
|
+
x.volume
|
|
290
|
+
]), o = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([a]).concat(l), k = At(o);
|
|
291
|
+
t ? t(k) : zt({ csvContent: k, title: e.value.style.title.text || "vue-ui-candlestick" });
|
|
291
292
|
});
|
|
292
293
|
}
|
|
293
294
|
const j = f(() => {
|
|
294
|
-
const t =
|
|
295
|
-
const
|
|
295
|
+
const t = b.value.map((o, k) => {
|
|
296
|
+
const x = e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? V.value[k].text : o.period, S = $({
|
|
296
297
|
p: e.value.table.td.prefix,
|
|
297
|
-
v:
|
|
298
|
+
v: o.open.value,
|
|
298
299
|
s: e.value.table.td.suffix,
|
|
299
300
|
r: e.value.table.td.roundingValue
|
|
300
301
|
}), se = $({
|
|
301
302
|
p: e.value.table.td.prefix,
|
|
302
|
-
v:
|
|
303
|
+
v: o.high.value,
|
|
303
304
|
s: e.value.table.td.suffix,
|
|
304
305
|
r: e.value.table.td.roundingValue
|
|
305
306
|
}), ue = $({
|
|
306
307
|
p: e.value.table.td.prefix,
|
|
307
|
-
v:
|
|
308
|
+
v: o.low.value,
|
|
308
309
|
s: e.value.table.td.suffix,
|
|
309
310
|
r: e.value.table.td.roundingValue
|
|
310
311
|
}), Y = $({
|
|
311
312
|
p: e.value.table.td.prefix,
|
|
312
|
-
v:
|
|
313
|
+
v: o.last.value,
|
|
313
314
|
s: e.value.table.td.suffix,
|
|
314
315
|
r: e.value.table.td.roundingValue
|
|
315
316
|
});
|
|
316
317
|
return [
|
|
317
|
-
`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 12" height="12" width="12" style="margin-right: 6px"><rect x="0" y="0" height="12" width="12"
|
|
318
|
-
|
|
318
|
+
`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 12" height="12" width="12" style="margin-right: 6px"><rect x="0" y="0" height="12" width="12" rx="${e.value.style.layout.candle.borderRadius * 3}" fill="${e.value.style.layout.candle.gradient.show ? o.isBullish ? `url(#bullish_gradient_${w.value}` : `url(#bearish_gradient_${w.value})` : o.isBullish ? e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.colors.bearish}"/></svg> ${x}`,
|
|
319
|
+
S,
|
|
319
320
|
se,
|
|
320
321
|
ue,
|
|
321
322
|
Y,
|
|
322
|
-
`${isNaN(
|
|
323
|
+
`${isNaN(o.volume) ? "-" : o.volume.toLocaleString()}`
|
|
323
324
|
];
|
|
324
|
-
}),
|
|
325
|
+
}), a = {
|
|
325
326
|
th: {
|
|
326
327
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
327
328
|
color: e.value.table.th.color,
|
|
@@ -341,46 +342,60 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
|
|
|
341
342
|
e.value.translations.last,
|
|
342
343
|
e.value.translations.volume
|
|
343
344
|
];
|
|
344
|
-
return { head: l, body: t, config:
|
|
345
|
+
return { head: l, body: t, config: a, colNames: l };
|
|
345
346
|
}), M = y(!1);
|
|
346
|
-
function
|
|
347
|
+
function Te(t) {
|
|
347
348
|
M.value = t, ne.value += 1;
|
|
348
349
|
}
|
|
349
|
-
function Te() {
|
|
350
|
-
_.value.showTable = !_.value.showTable;
|
|
351
|
-
}
|
|
352
350
|
function Le() {
|
|
353
|
-
|
|
351
|
+
C.value.showTable = !C.value.showTable;
|
|
352
|
+
}
|
|
353
|
+
function Fe() {
|
|
354
|
+
C.value.showTooltip = !C.value.showTooltip;
|
|
354
355
|
}
|
|
355
356
|
const X = y(!1);
|
|
356
|
-
function
|
|
357
|
+
function oe() {
|
|
357
358
|
X.value = !X.value;
|
|
358
359
|
}
|
|
359
|
-
|
|
360
|
+
async function ot({ scale: t = 2 } = {}) {
|
|
361
|
+
if (!A.value) return;
|
|
362
|
+
const { width: a, height: l } = A.value.getBoundingClientRect(), o = a / l, { imageUri: k, base64: x } = await Et({ domElement: A.value, base64: !0, img: !0, scale: t });
|
|
363
|
+
return {
|
|
364
|
+
imageUri: k,
|
|
365
|
+
base64: x,
|
|
366
|
+
title: e.value.style.title.text,
|
|
367
|
+
width: a,
|
|
368
|
+
height: l,
|
|
369
|
+
aspectRatio: o
|
|
370
|
+
};
|
|
371
|
+
}
|
|
372
|
+
return Ue({
|
|
373
|
+
getImage: ot,
|
|
360
374
|
generatePdf: _e,
|
|
361
375
|
generateCsv: Ie,
|
|
362
376
|
generateImage: Ce,
|
|
363
|
-
toggleTable:
|
|
364
|
-
toggleTooltip:
|
|
365
|
-
toggleAnnotator:
|
|
366
|
-
|
|
377
|
+
toggleTable: Le,
|
|
378
|
+
toggleTooltip: Fe,
|
|
379
|
+
toggleAnnotator: oe,
|
|
380
|
+
toggleFullscreen: Te
|
|
381
|
+
}), (t, a) => (s(), u("div", {
|
|
367
382
|
ref_key: "candlestickChart",
|
|
368
|
-
ref:
|
|
369
|
-
class:
|
|
383
|
+
ref: A,
|
|
384
|
+
class: Pe(`vue-ui-candlestick ${M.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
370
385
|
style: ie(`position:relative;font-family:${e.value.style.fontFamily}; text-align:center;background:${e.value.style.backgroundColor}; ${e.value.responsive ? "height: 100%" : ""}`),
|
|
371
|
-
id: `vue-ui-candlestick_${
|
|
372
|
-
onMouseenter:
|
|
373
|
-
onMouseleave:
|
|
386
|
+
id: `vue-ui-candlestick_${w.value}`,
|
|
387
|
+
onMouseenter: a[4] || (a[4] = () => r(fe)(!0)),
|
|
388
|
+
onMouseleave: a[5] || (a[5] = () => r(fe)(!1))
|
|
374
389
|
}, [
|
|
375
|
-
e.value.userOptions.buttons.annotator ? (s(),
|
|
390
|
+
e.value.userOptions.buttons.annotator ? (s(), T(r(He), {
|
|
376
391
|
key: 0,
|
|
377
392
|
svgRef: r(xe),
|
|
378
393
|
backgroundColor: e.value.style.backgroundColor,
|
|
379
394
|
color: e.value.style.color,
|
|
380
395
|
active: X.value,
|
|
381
|
-
onClose:
|
|
396
|
+
onClose: oe
|
|
382
397
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : h("", !0),
|
|
383
|
-
|
|
398
|
+
Ke.value ? (s(), u("div", {
|
|
384
399
|
key: 1,
|
|
385
400
|
ref_key: "noTitle",
|
|
386
401
|
ref: ce,
|
|
@@ -393,7 +408,7 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
|
|
|
393
408
|
ref: re,
|
|
394
409
|
style: "width:100%;background:transparent"
|
|
395
410
|
}, [
|
|
396
|
-
(s(),
|
|
411
|
+
(s(), T(Nt, {
|
|
397
412
|
key: `title_${pe.value}`,
|
|
398
413
|
config: {
|
|
399
414
|
title: {
|
|
@@ -407,15 +422,15 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
|
|
|
407
422
|
}
|
|
408
423
|
}, null, 8, ["config"]))
|
|
409
424
|
], 512)) : h("", !0),
|
|
410
|
-
e.value.userOptions.show &&
|
|
425
|
+
e.value.userOptions.show && B.value && (r(ge) || r(te)) ? (s(), T(r(Ye), {
|
|
411
426
|
ref_key: "details",
|
|
412
|
-
ref:
|
|
427
|
+
ref: Je,
|
|
413
428
|
key: `user_options_${ne.value}`,
|
|
414
429
|
backgroundColor: e.value.style.backgroundColor,
|
|
415
430
|
color: e.value.style.color,
|
|
416
431
|
isImaging: r(we),
|
|
417
432
|
isPrinting: r(ke),
|
|
418
|
-
uid:
|
|
433
|
+
uid: w.value,
|
|
419
434
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.tooltip.show,
|
|
420
435
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
421
436
|
hasImg: e.value.userOptions.buttons.img,
|
|
@@ -423,91 +438,93 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
|
|
|
423
438
|
hasTable: e.value.userOptions.buttons.table,
|
|
424
439
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
425
440
|
isFullscreen: M.value,
|
|
426
|
-
isTooltip:
|
|
441
|
+
isTooltip: C.value.showTooltip,
|
|
427
442
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
428
|
-
chartElement:
|
|
443
|
+
chartElement: A.value,
|
|
429
444
|
position: e.value.userOptions.position,
|
|
430
445
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
431
446
|
isAnnotation: X.value,
|
|
432
447
|
callbacks: e.value.userOptions.callbacks,
|
|
433
|
-
|
|
448
|
+
printScale: e.value.userOptions.print.scale,
|
|
449
|
+
onToggleFullscreen: Te,
|
|
434
450
|
onGeneratePdf: r(_e),
|
|
435
451
|
onGenerateCsv: Ie,
|
|
436
452
|
onGenerateImage: r(Ce),
|
|
437
|
-
onToggleTable:
|
|
438
|
-
onToggleTooltip:
|
|
439
|
-
onToggleAnnotator:
|
|
453
|
+
onToggleTable: Le,
|
|
454
|
+
onToggleTooltip: Fe,
|
|
455
|
+
onToggleAnnotator: oe,
|
|
440
456
|
style: ie({
|
|
441
457
|
visibility: r(ge) ? r(te) ? "visible" : "hidden" : "visible"
|
|
442
458
|
})
|
|
443
|
-
},
|
|
459
|
+
}, gt({ _: 2 }, [
|
|
444
460
|
t.$slots.menuIcon ? {
|
|
445
461
|
name: "menuIcon",
|
|
446
|
-
fn:
|
|
447
|
-
g(t.$slots, "menuIcon",
|
|
462
|
+
fn: m(({ isOpen: l, color: o }) => [
|
|
463
|
+
g(t.$slots, "menuIcon", L(F({ isOpen: l, color: o })), void 0, !0)
|
|
448
464
|
]),
|
|
449
465
|
key: "0"
|
|
450
466
|
} : void 0,
|
|
451
467
|
t.$slots.optionTooltip ? {
|
|
452
468
|
name: "optionTooltip",
|
|
453
|
-
fn:
|
|
469
|
+
fn: m(() => [
|
|
454
470
|
g(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
455
471
|
]),
|
|
456
472
|
key: "1"
|
|
457
473
|
} : void 0,
|
|
458
474
|
t.$slots.optionPdf ? {
|
|
459
475
|
name: "optionPdf",
|
|
460
|
-
fn:
|
|
476
|
+
fn: m(() => [
|
|
461
477
|
g(t.$slots, "optionPdf", {}, void 0, !0)
|
|
462
478
|
]),
|
|
463
479
|
key: "2"
|
|
464
480
|
} : void 0,
|
|
465
481
|
t.$slots.optionCsv ? {
|
|
466
482
|
name: "optionCsv",
|
|
467
|
-
fn:
|
|
483
|
+
fn: m(() => [
|
|
468
484
|
g(t.$slots, "optionCsv", {}, void 0, !0)
|
|
469
485
|
]),
|
|
470
486
|
key: "3"
|
|
471
487
|
} : void 0,
|
|
472
488
|
t.$slots.optionImg ? {
|
|
473
489
|
name: "optionImg",
|
|
474
|
-
fn:
|
|
490
|
+
fn: m(() => [
|
|
475
491
|
g(t.$slots, "optionImg", {}, void 0, !0)
|
|
476
492
|
]),
|
|
477
493
|
key: "4"
|
|
478
494
|
} : void 0,
|
|
479
495
|
t.$slots.optionTable ? {
|
|
480
496
|
name: "optionTable",
|
|
481
|
-
fn:
|
|
497
|
+
fn: m(() => [
|
|
482
498
|
g(t.$slots, "optionTable", {}, void 0, !0)
|
|
483
499
|
]),
|
|
484
500
|
key: "5"
|
|
485
501
|
} : void 0,
|
|
486
502
|
t.$slots.optionFullscreen ? {
|
|
487
503
|
name: "optionFullscreen",
|
|
488
|
-
fn:
|
|
489
|
-
g(t.$slots, "optionFullscreen",
|
|
504
|
+
fn: m(({ toggleFullscreen: l, isFullscreen: o }) => [
|
|
505
|
+
g(t.$slots, "optionFullscreen", L(F({ toggleFullscreen: l, isFullscreen: o })), void 0, !0)
|
|
490
506
|
]),
|
|
491
507
|
key: "6"
|
|
492
508
|
} : void 0,
|
|
493
509
|
t.$slots.optionAnnotator ? {
|
|
494
510
|
name: "optionAnnotator",
|
|
495
|
-
fn:
|
|
496
|
-
g(t.$slots, "optionAnnotator",
|
|
511
|
+
fn: m(({ toggleAnnotator: l, isAnnotator: o }) => [
|
|
512
|
+
g(t.$slots, "optionAnnotator", L(F({ toggleAnnotator: l, isAnnotator: o })), void 0, !0)
|
|
497
513
|
]),
|
|
498
514
|
key: "7"
|
|
499
515
|
} : void 0
|
|
500
|
-
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) : h("", !0),
|
|
501
|
-
|
|
516
|
+
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : h("", !0),
|
|
517
|
+
B.value ? (s(), u("svg", {
|
|
502
518
|
key: 4,
|
|
503
519
|
ref_key: "svgRef",
|
|
504
520
|
ref: xe,
|
|
505
|
-
xmlns: r(
|
|
506
|
-
|
|
521
|
+
xmlns: r(Ct),
|
|
522
|
+
"aria-label": e.value.style.title.text || "candlestick chart",
|
|
523
|
+
class: Pe({ "vue-data-ui-fullscreen--on": M.value, "vue-data-ui-fulscreen--off": !M.value }),
|
|
507
524
|
viewBox: `0 0 ${c.value.width <= 0 ? 10 : c.value.width} ${c.value.height <= 0 ? 10 : c.value.height}`,
|
|
508
525
|
style: ie(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.color}`)
|
|
509
526
|
}, [
|
|
510
|
-
|
|
527
|
+
Ve(r(Ge)),
|
|
511
528
|
t.$slots["chart-background"] ? (s(), u("foreignObject", {
|
|
512
529
|
key: 0,
|
|
513
530
|
x: n.value.left,
|
|
@@ -519,47 +536,47 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
|
|
|
519
536
|
}
|
|
520
537
|
}, [
|
|
521
538
|
g(t.$slots, "chart-background", {}, void 0, !0)
|
|
522
|
-
], 8,
|
|
523
|
-
|
|
539
|
+
], 8, Dt)) : h("", !0),
|
|
540
|
+
b.value.length > 0 ? (s(), u("g", Wt, [
|
|
524
541
|
v("defs", null, [
|
|
525
542
|
v("linearGradient", {
|
|
526
|
-
id: `bearish_gradient_${
|
|
543
|
+
id: `bearish_gradient_${w.value}`,
|
|
527
544
|
x2: "0%",
|
|
528
545
|
y2: "100%"
|
|
529
546
|
}, [
|
|
530
547
|
v("stop", {
|
|
531
548
|
offset: "0%",
|
|
532
549
|
"stop-color": e.value.style.layout.candle.colors.bearish
|
|
533
|
-
}, null, 8,
|
|
550
|
+
}, null, 8, Ht),
|
|
534
551
|
v("stop", {
|
|
535
552
|
offset: "50%",
|
|
536
553
|
"stop-color": `${r(K)(e.value.style.layout.candle.colors.bearish, 0.02)}DE`
|
|
537
|
-
}, null, 8,
|
|
554
|
+
}, null, 8, jt),
|
|
538
555
|
v("stop", {
|
|
539
556
|
offset: "100%",
|
|
540
557
|
"stop-color": `${r(K)(e.value.style.layout.candle.colors.bearish, 0.05)}66`
|
|
541
|
-
}, null, 8,
|
|
542
|
-
], 8,
|
|
558
|
+
}, null, 8, Xt)
|
|
559
|
+
], 8, Gt),
|
|
543
560
|
v("linearGradient", {
|
|
544
|
-
id: `bullish_gradient_${
|
|
561
|
+
id: `bullish_gradient_${w.value}`,
|
|
545
562
|
x2: "0%",
|
|
546
563
|
y2: "100%"
|
|
547
564
|
}, [
|
|
548
565
|
v("stop", {
|
|
549
566
|
offset: "0%",
|
|
550
567
|
"stop-color": e.value.style.layout.candle.colors.bullish
|
|
551
|
-
}, null, 8,
|
|
568
|
+
}, null, 8, qt),
|
|
552
569
|
v("stop", {
|
|
553
570
|
offset: "50%",
|
|
554
571
|
"stop-color": `${r(K)(e.value.style.layout.candle.colors.bullish, 0.02)}DE`
|
|
555
|
-
}, null, 8,
|
|
572
|
+
}, null, 8, Jt),
|
|
556
573
|
v("stop", {
|
|
557
574
|
offset: "100%",
|
|
558
575
|
"stop-color": `${r(K)(e.value.style.layout.candle.colors.bullish, 0.05)}66`
|
|
559
|
-
}, null, 8,
|
|
560
|
-
], 8,
|
|
576
|
+
}, null, 8, Kt)
|
|
577
|
+
], 8, Yt)
|
|
561
578
|
]),
|
|
562
|
-
e.value.style.layout.grid.show ? (s(), u("g",
|
|
579
|
+
e.value.style.layout.grid.show ? (s(), u("g", Qt, [
|
|
563
580
|
v("line", {
|
|
564
581
|
x1: n.value.left,
|
|
565
582
|
x2: n.value.left,
|
|
@@ -568,7 +585,7 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
|
|
|
568
585
|
stroke: e.value.style.layout.grid.stroke,
|
|
569
586
|
"stroke-width": e.value.style.layout.grid.strokeWidth,
|
|
570
587
|
"stroke-linecap": "round"
|
|
571
|
-
}, null, 8,
|
|
588
|
+
}, null, 8, Zt),
|
|
572
589
|
v("line", {
|
|
573
590
|
x1: n.value.left,
|
|
574
591
|
x2: n.value.right,
|
|
@@ -577,11 +594,11 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
|
|
|
577
594
|
stroke: e.value.style.layout.grid.stroke,
|
|
578
595
|
"stroke-width": e.value.style.layout.grid.strokeWidth,
|
|
579
596
|
"stroke-linecap": "round"
|
|
580
|
-
}, null, 8,
|
|
597
|
+
}, null, 8, el)
|
|
581
598
|
])) : h("", !0),
|
|
582
|
-
e.value.style.layout.grid.yAxis.dataLabels.show ? (s(), u("g",
|
|
583
|
-
(s(!0), u(
|
|
584
|
-
l.value >=
|
|
599
|
+
e.value.style.layout.grid.yAxis.dataLabels.show ? (s(), u("g", tl, [
|
|
600
|
+
(s(!0), u(R, null, O(Ze.value, (l, o) => (s(), u("g", null, [
|
|
601
|
+
l.value >= _.value.min && l.value <= _.value.max ? (s(), u("line", {
|
|
585
602
|
key: 0,
|
|
586
603
|
x1: n.value.left,
|
|
587
604
|
x2: n.value.left - 5,
|
|
@@ -590,8 +607,8 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
|
|
|
590
607
|
stroke: e.value.style.layout.grid.stroke,
|
|
591
608
|
"stroke-width": e.value.style.layout.grid.strokeWidth,
|
|
592
609
|
"stroke-linecap": "round"
|
|
593
|
-
}, null, 8,
|
|
594
|
-
l.value >=
|
|
610
|
+
}, null, 8, ll)) : h("", !0),
|
|
611
|
+
l.value >= _.value.min && l.value <= _.value.max ? (s(), u("text", {
|
|
595
612
|
key: 1,
|
|
596
613
|
x: n.value.left - 8 + e.value.style.layout.grid.yAxis.dataLabels.offsetX,
|
|
597
614
|
y: l.y + c.value.yAxisFontSize / 3,
|
|
@@ -604,33 +621,33 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
|
|
|
604
621
|
v: l.value,
|
|
605
622
|
s: e.value.style.layout.grid.yAxis.dataLabels.suffix,
|
|
606
623
|
r: e.value.style.layout.grid.yAxis.dataLabels.roundingValue
|
|
607
|
-
})), 9,
|
|
624
|
+
})), 9, al)) : h("", !0)
|
|
608
625
|
]))), 256))
|
|
609
626
|
])) : h("", !0),
|
|
610
|
-
e.value.style.layout.grid.xAxis.dataLabels.show && !e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? (s(), u("g",
|
|
611
|
-
(s(!0), u(
|
|
627
|
+
e.value.style.layout.grid.xAxis.dataLabels.show && !e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? (s(), u("g", ol, [
|
|
628
|
+
(s(!0), u(R, null, O(et.value, (l, o) => (s(), u("g", null, [
|
|
612
629
|
v("text", {
|
|
613
|
-
transform: `translate(${n.value.left + d.value *
|
|
630
|
+
transform: `translate(${n.value.left + d.value * o + d.value / 2}, ${n.value.bottom + c.value.xAxisFontSize * 2 + e.value.style.layout.grid.xAxis.dataLabels.offsetY}), rotate(${e.value.style.layout.grid.xAxis.dataLabels.rotation})`,
|
|
614
631
|
"text-anchor": e.value.style.layout.grid.xAxis.dataLabels.rotation > 0 ? "start" : e.value.style.layout.grid.xAxis.dataLabels.rotation < 0 ? "end" : "middle",
|
|
615
632
|
"font-size": c.value.xAxisFontSize,
|
|
616
633
|
fill: e.value.style.layout.grid.xAxis.dataLabels.color,
|
|
617
634
|
"font-weight": e.value.style.layout.grid.xAxis.dataLabels.bold ? "bold" : "normal"
|
|
618
|
-
}, q(l), 9,
|
|
635
|
+
}, q(l), 9, sl)
|
|
619
636
|
]))), 256))
|
|
620
637
|
])) : h("", !0),
|
|
621
|
-
e.value.style.layout.grid.xAxis.dataLabels.show && e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? (s(), u("g",
|
|
622
|
-
(s(!0), u(
|
|
638
|
+
e.value.style.layout.grid.xAxis.dataLabels.show && e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? (s(), u("g", ul, [
|
|
639
|
+
(s(!0), u(R, null, O(V.value, (l, o) => (s(), u("g", null, [
|
|
623
640
|
v("text", {
|
|
624
|
-
transform: `translate(${n.value.left + d.value *
|
|
641
|
+
transform: `translate(${n.value.left + d.value * o + d.value / 2}, ${n.value.bottom + c.value.xAxisFontSize * 2 + e.value.style.layout.grid.xAxis.dataLabels.offsetY}), rotate(${e.value.style.layout.grid.xAxis.dataLabels.rotation})`,
|
|
625
642
|
"text-anchor": e.value.style.layout.grid.xAxis.dataLabels.rotation > 0 ? "start" : e.value.style.layout.grid.xAxis.dataLabels.rotation < 0 ? "end" : "middle",
|
|
626
643
|
"font-size": c.value.xAxisFontSize,
|
|
627
644
|
fill: e.value.style.layout.grid.xAxis.dataLabels.color,
|
|
628
645
|
"font-weight": e.value.style.layout.grid.xAxis.dataLabels.bold ? "bold" : "normal"
|
|
629
|
-
}, q(l.text), 9,
|
|
646
|
+
}, q(l.text), 9, il)
|
|
630
647
|
]))), 256))
|
|
631
648
|
])) : h("", !0),
|
|
632
649
|
v("g", null, [
|
|
633
|
-
(s(!0), u(
|
|
650
|
+
(s(!0), u(R, null, O(b.value, (l, o) => (s(), u("g", null, [
|
|
634
651
|
v("line", {
|
|
635
652
|
x1: l.open.x,
|
|
636
653
|
x2: l.open.x,
|
|
@@ -639,22 +656,22 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
|
|
|
639
656
|
stroke: e.value.style.layout.wick.stroke,
|
|
640
657
|
"stroke-width": e.value.style.layout.wick.strokeWidth,
|
|
641
658
|
"stroke-linecap": "round"
|
|
642
|
-
}, null, 8,
|
|
643
|
-
e.value.style.layout.wick.extremity.shape === "circle" ? (s(), u("g",
|
|
659
|
+
}, null, 8, nl),
|
|
660
|
+
e.value.style.layout.wick.extremity.shape === "circle" ? (s(), u("g", rl, [
|
|
644
661
|
v("circle", {
|
|
645
662
|
cx: l.high.x,
|
|
646
663
|
cy: l.high.y,
|
|
647
664
|
r: e.value.style.layout.wick.extremity.size === "auto" ? d.value / 20 : e.value.style.layout.wick.extremity.size,
|
|
648
665
|
fill: e.value.style.layout.wick.extremity.color
|
|
649
|
-
}, null, 8,
|
|
666
|
+
}, null, 8, dl),
|
|
650
667
|
v("circle", {
|
|
651
668
|
cx: l.low.x,
|
|
652
669
|
cy: l.low.y,
|
|
653
670
|
r: e.value.style.layout.wick.extremity.size === "auto" ? d.value / 20 : e.value.style.layout.wick.extremity.size,
|
|
654
671
|
fill: e.value.style.layout.wick.extremity.color
|
|
655
|
-
}, null, 8,
|
|
672
|
+
}, null, 8, vl)
|
|
656
673
|
])) : h("", !0),
|
|
657
|
-
e.value.style.layout.wick.extremity.shape === "line" ? (s(), u("g",
|
|
674
|
+
e.value.style.layout.wick.extremity.shape === "line" ? (s(), u("g", yl, [
|
|
658
675
|
v("line", {
|
|
659
676
|
x1: l.high.x - (e.value.style.layout.wick.extremity.size === "auto" ? d.value * e.value.style.layout.candle.widthRatio : e.value.style.layout.wick.extremity.size) / 2,
|
|
660
677
|
x2: l.high.x + (e.value.style.layout.wick.extremity.size === "auto" ? d.value * e.value.style.layout.candle.widthRatio : e.value.style.layout.wick.extremity.size) / 2,
|
|
@@ -663,7 +680,7 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
|
|
|
663
680
|
stroke: e.value.style.layout.wick.extremity.color,
|
|
664
681
|
"stroke-width": e.value.style.layout.wick.strokeWidth,
|
|
665
682
|
"stroke-linecap": "round"
|
|
666
|
-
}, null, 8,
|
|
683
|
+
}, null, 8, cl),
|
|
667
684
|
v("line", {
|
|
668
685
|
x1: l.low.x - (e.value.style.layout.wick.extremity.size === "auto" ? d.value * e.value.style.layout.candle.widthRatio : e.value.style.layout.wick.extremity.size) / 2,
|
|
669
686
|
x2: l.low.x + (e.value.style.layout.wick.extremity.size === "auto" ? d.value * e.value.style.layout.candle.widthRatio : e.value.style.layout.wick.extremity.size) / 2,
|
|
@@ -672,12 +689,12 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
|
|
|
672
689
|
stroke: e.value.style.layout.wick.extremity.color,
|
|
673
690
|
"stroke-width": e.value.style.layout.wick.strokeWidth,
|
|
674
691
|
"stroke-linecap": "round"
|
|
675
|
-
}, null, 8,
|
|
692
|
+
}, null, 8, hl)
|
|
676
693
|
])) : h("", !0)
|
|
677
694
|
]))), 256))
|
|
678
695
|
]),
|
|
679
696
|
v("g", null, [
|
|
680
|
-
(s(!0), u(
|
|
697
|
+
(s(!0), u(R, null, O(b.value, (l, o) => (s(), u("rect", {
|
|
681
698
|
x: l.open.x - d.value / 2 + d.value * (1 - e.value.style.layout.candle.widthRatio) / 2,
|
|
682
699
|
y: l.isBullish ? l.last.y : l.open.y,
|
|
683
700
|
height: Math.abs(l.last.y - l.open.y) <= 0 ? 1e-4 : Math.abs(l.last.y - l.open.y),
|
|
@@ -685,40 +702,40 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
|
|
|
685
702
|
fill: e.value.style.layout.candle.gradient.underlayer,
|
|
686
703
|
rx: e.value.style.layout.candle.borderRadius,
|
|
687
704
|
stroke: "none"
|
|
688
|
-
}, null, 8,
|
|
689
|
-
(s(!0), u(
|
|
705
|
+
}, null, 8, pl))), 256)),
|
|
706
|
+
(s(!0), u(R, null, O(b.value, (l, o) => (s(), u("rect", {
|
|
690
707
|
x: l.open.x - d.value / 2 + d.value * (1 - e.value.style.layout.candle.widthRatio) / 2,
|
|
691
708
|
y: l.isBullish ? l.last.y : l.open.y,
|
|
692
709
|
height: Math.abs(l.last.y - l.open.y) <= 0 ? 1e-4 : Math.abs(l.last.y - l.open.y),
|
|
693
710
|
width: d.value * e.value.style.layout.candle.widthRatio <= 0 ? 1e-4 : d.value * e.value.style.layout.candle.widthRatio,
|
|
694
|
-
fill: l.isBullish ? e.value.style.layout.candle.gradient.show ? `url(#bullish_gradient_${
|
|
711
|
+
fill: l.isBullish ? e.value.style.layout.candle.gradient.show ? `url(#bullish_gradient_${w.value})` : e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.gradient.show ? `url(#bearish_gradient_${w.value})` : e.value.style.layout.candle.colors.bearish,
|
|
695
712
|
rx: e.value.style.layout.candle.borderRadius,
|
|
696
713
|
stroke: e.value.style.layout.candle.stroke,
|
|
697
714
|
"stroke-width": e.value.style.layout.candle.strokeWidth,
|
|
698
715
|
"stroke-linecap": "round",
|
|
699
716
|
"stroke-linejoin": "round"
|
|
700
|
-
}, null, 8,
|
|
717
|
+
}, null, 8, fl))), 256))
|
|
701
718
|
]),
|
|
702
719
|
v("g", null, [
|
|
703
|
-
(s(!0), u(
|
|
704
|
-
x: n.value.left +
|
|
720
|
+
(s(!0), u(R, null, O(b.value, (l, o) => (s(), u("rect", {
|
|
721
|
+
x: n.value.left + o * d.value,
|
|
705
722
|
y: n.value.top,
|
|
706
723
|
height: n.value.height <= 0 ? 1e-4 : n.value.height,
|
|
707
724
|
width: d.value <= 0 ? 1e-4 : d.value,
|
|
708
|
-
fill: ee.value ===
|
|
709
|
-
onMouseover: (
|
|
710
|
-
onMouseleave:
|
|
725
|
+
fill: ee.value === o ? r($t)(e.value.style.layout.selector.color, e.value.style.layout.selector.opacity) : "transparent",
|
|
726
|
+
onMouseover: (k) => tt(o, l),
|
|
727
|
+
onMouseleave: a[0] || (a[0] = (k) => {
|
|
711
728
|
ee.value = void 0, Q.value = !1;
|
|
712
729
|
})
|
|
713
|
-
}, null, 40,
|
|
730
|
+
}, null, 40, gl))), 256))
|
|
714
731
|
])
|
|
715
732
|
])) : h("", !0),
|
|
716
733
|
g(t.$slots, "svg", { svg: c.value }, void 0, !0)
|
|
717
|
-
], 14,
|
|
718
|
-
t.$slots.watermark ? (s(), u("div",
|
|
719
|
-
g(t.$slots, "watermark",
|
|
734
|
+
], 14, Ut)) : h("", !0),
|
|
735
|
+
t.$slots.watermark ? (s(), u("div", xl, [
|
|
736
|
+
g(t.$slots, "watermark", L(F({ isPrinting: r(ke) || r(we) })), void 0, !0)
|
|
720
737
|
])) : h("", !0),
|
|
721
|
-
|
|
738
|
+
B.value ? h("", !0) : (s(), T(r(je), {
|
|
722
739
|
key: 6,
|
|
723
740
|
config: {
|
|
724
741
|
type: "candlesticks",
|
|
@@ -735,14 +752,14 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
|
|
|
735
752
|
}
|
|
736
753
|
}
|
|
737
754
|
}, null, 8, ["config"])),
|
|
738
|
-
e.value.style.zoom.show &&
|
|
755
|
+
e.value.style.zoom.show && B.value ? (s(), u("div", {
|
|
739
756
|
key: 7,
|
|
740
757
|
ref_key: "chartSlicer",
|
|
741
758
|
ref: ve
|
|
742
759
|
}, [
|
|
743
|
-
(s(),
|
|
760
|
+
(s(), T(Pt, {
|
|
744
761
|
ref_key: "slicerComponent",
|
|
745
|
-
ref:
|
|
762
|
+
ref: E,
|
|
746
763
|
key: `slicer_${G.value}`,
|
|
747
764
|
background: e.value.style.zoom.color,
|
|
748
765
|
borderColor: e.value.style.backgroundColor,
|
|
@@ -758,17 +775,17 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
|
|
|
758
775
|
valueStart: p.value.start,
|
|
759
776
|
valueEnd: p.value.end,
|
|
760
777
|
start: p.value.start,
|
|
761
|
-
"onUpdate:start":
|
|
778
|
+
"onUpdate:start": a[1] || (a[1] = (l) => p.value.start = l),
|
|
762
779
|
end: p.value.end,
|
|
763
|
-
"onUpdate:end":
|
|
780
|
+
"onUpdate:end": a[2] || (a[2] = (l) => p.value.end = l),
|
|
764
781
|
refreshStartPoint: e.value.style.zoom.startIndex !== null ? e.value.style.zoom.startIndex : 0,
|
|
765
782
|
refreshEndPoint: e.value.style.zoom.endIndex !== null ? e.value.style.zoom.endIndex + 1 : U.value,
|
|
766
783
|
enableRangeHandles: e.value.style.zoom.enableRangeHandles,
|
|
767
784
|
enableSelectionDrag: e.value.style.zoom.enableSelectionDrag,
|
|
768
|
-
onReset:
|
|
785
|
+
onReset: lt
|
|
769
786
|
}, {
|
|
770
|
-
"reset-action":
|
|
771
|
-
g(t.$slots, "reset-action",
|
|
787
|
+
"reset-action": m(({ reset: l }) => [
|
|
788
|
+
g(t.$slots, "reset-action", L(F({ reset: l })), void 0, !0)
|
|
772
789
|
]),
|
|
773
790
|
_: 3
|
|
774
791
|
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"]))
|
|
@@ -777,7 +794,7 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
|
|
|
777
794
|
ref_key: "chartLegend",
|
|
778
795
|
ref: de
|
|
779
796
|
}, [
|
|
780
|
-
g(t.$slots, "legend", { legend:
|
|
797
|
+
g(t.$slots, "legend", { legend: b.value }, void 0, !0)
|
|
781
798
|
], 512),
|
|
782
799
|
t.$slots.source ? (s(), u("div", {
|
|
783
800
|
key: 8,
|
|
@@ -787,8 +804,8 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
|
|
|
787
804
|
}, [
|
|
788
805
|
g(t.$slots, "source", {}, void 0, !0)
|
|
789
806
|
], 512)) : h("", !0),
|
|
790
|
-
|
|
791
|
-
show:
|
|
807
|
+
Ve(r(Xe), {
|
|
808
|
+
show: C.value.showTooltip && Q.value,
|
|
792
809
|
backgroundColor: e.value.style.tooltip.backgroundColor,
|
|
793
810
|
color: e.value.style.tooltip.color,
|
|
794
811
|
borderRadius: e.value.style.tooltip.borderRadius,
|
|
@@ -798,24 +815,24 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
|
|
|
798
815
|
backgroundOpacity: e.value.style.tooltip.backgroundOpacity,
|
|
799
816
|
position: e.value.style.tooltip.position,
|
|
800
817
|
offsetY: e.value.style.tooltip.offsetY,
|
|
801
|
-
parent:
|
|
818
|
+
parent: A.value,
|
|
802
819
|
content: Z.value,
|
|
803
820
|
isFullscreen: M.value,
|
|
804
821
|
isCustom: e.value.style.tooltip.customFormat && typeof e.value.style.tooltip.customFormat == "function"
|
|
805
822
|
}, {
|
|
806
|
-
"tooltip-before":
|
|
807
|
-
g(t.$slots, "tooltip-before",
|
|
823
|
+
"tooltip-before": m(() => [
|
|
824
|
+
g(t.$slots, "tooltip-before", L(F({ ...ae.value })), void 0, !0)
|
|
808
825
|
]),
|
|
809
|
-
"tooltip-after":
|
|
810
|
-
g(t.$slots, "tooltip-after",
|
|
826
|
+
"tooltip-after": m(() => [
|
|
827
|
+
g(t.$slots, "tooltip-after", L(F({ ...ae.value })), void 0, !0)
|
|
811
828
|
]),
|
|
812
829
|
_: 3
|
|
813
830
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
814
|
-
|
|
831
|
+
B.value ? (s(), T(r(De), {
|
|
815
832
|
key: 9,
|
|
816
833
|
hideDetails: "",
|
|
817
834
|
config: {
|
|
818
|
-
open:
|
|
835
|
+
open: C.value.showTable,
|
|
819
836
|
maxHeight: 1e4,
|
|
820
837
|
body: {
|
|
821
838
|
backgroundColor: e.value.style.backgroundColor,
|
|
@@ -827,30 +844,30 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
|
|
|
827
844
|
}
|
|
828
845
|
}
|
|
829
846
|
}, {
|
|
830
|
-
content:
|
|
831
|
-
(s(),
|
|
847
|
+
content: m(() => [
|
|
848
|
+
(s(), T(r(We), {
|
|
832
849
|
key: `table_${he.value}`,
|
|
833
850
|
colNames: j.value.colNames,
|
|
834
851
|
head: j.value.head,
|
|
835
852
|
body: j.value.body,
|
|
836
853
|
config: j.value.config,
|
|
837
854
|
title: `${e.value.style.title.text}${e.value.style.title.subtitle.text ? ` : ${e.value.style.title.subtitle.text}` : ""}`,
|
|
838
|
-
onClose:
|
|
855
|
+
onClose: a[3] || (a[3] = (l) => C.value.showTable = !1)
|
|
839
856
|
}, {
|
|
840
|
-
th:
|
|
841
|
-
|
|
857
|
+
th: m(({ th: l }) => [
|
|
858
|
+
xt(q(l), 1)
|
|
842
859
|
]),
|
|
843
|
-
td:
|
|
844
|
-
v("div", { innerHTML: l }, null, 8,
|
|
860
|
+
td: m(({ td: l }) => [
|
|
861
|
+
v("div", { innerHTML: l }, null, 8, ml)
|
|
845
862
|
]),
|
|
846
863
|
_: 1
|
|
847
864
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
848
865
|
]),
|
|
849
866
|
_: 1
|
|
850
867
|
}, 8, ["config"])) : h("", !0)
|
|
851
|
-
], 46,
|
|
868
|
+
], 46, Bt));
|
|
852
869
|
}
|
|
853
|
-
},
|
|
870
|
+
}, Ol = /* @__PURE__ */ Mt(bl, [["__scopeId", "data-v-57696154"]]);
|
|
854
871
|
export {
|
|
855
|
-
|
|
872
|
+
Ol as default
|
|
856
873
|
};
|