vue-data-ui 3.25.8 → 3.25.10
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/{BaseScanner-DZvpgOjM.js → BaseScanner-Dzc8VT3j.js} +6 -3
- package/dist/{PackageVersion-ekRvV3aF.js → PackageVersion-CZZayD-D.js} +1 -1
- package/dist/{PenAndPaper-KFzKlvbi.js → PenAndPaper-Cd3nItcO.js} +3 -3
- package/dist/{SlicerPreview-B6iHOC9L.js → SlicerPreview-Ccss7Vsq.js} +2 -2
- package/dist/{SparkTooltip-C-Y-mDrc.js → SparkTooltip-L3SliZbR.js} +1 -1
- package/dist/{UserOptions-2x4VklMW.js → UserOptions-qo_Tsqci.js} +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-hill.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-label.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/composables.js +1 -1
- package/dist/{dom-to-png-C6cQJ5Hq.js → dom-to-png-BR4imuKV.js} +1 -1
- package/dist/{geoProjections-CEo3dVaL.js → geoProjections-BYthUA8l.js} +2 -2
- package/dist/{img-DhGApYG0.js → img-BkMKbWsI.js} +1 -1
- package/dist/{package-C4XeEHJx.js → package-CYtJq7s7.js} +1 -1
- package/dist/{pdf-Di5yPEw9.js → pdf-BSOs_GZz.js} +1 -1
- package/dist/{render-common-CQUp12xB.js → render-common-CpHpPc5s.js} +1 -1
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/utils.d.ts +5 -5
- package/dist/types/vue-data-ui.d.ts +5 -5
- package/dist/{usePrinter-DISD7q5m.js → usePrinter-hohanNCX.js} +4 -4
- package/dist/{useTooltipPosition-DifeoeQW.js → useTooltipPosition-BCrtQa9H.js} +1 -1
- package/dist/{vue-data-ui-BChCkqtW.js → vue-data-ui-ChB3aXCO.js} +65 -65
- package/dist/vue-data-ui.js +66 -66
- package/dist/{vue-ui-3d-bar-BkVOy4Y_.js → vue-ui-3d-bar-DcXbkO19.js} +5 -5
- package/dist/{vue-ui-age-pyramid-1_yQ64LX.js → vue-ui-age-pyramid-Cnaxt9NI.js} +263 -251
- package/dist/{vue-ui-annotator-BO5ihHOB.js → vue-ui-annotator-BLYRy--7.js} +12 -12
- package/dist/{vue-ui-bullet-BF1FeBst.js → vue-ui-bullet-DOfD2TSb.js} +4 -4
- package/dist/{vue-ui-bump-ZtKya76Y.js → vue-ui-bump-DL2lDZbE.js} +3 -3
- package/dist/{vue-ui-candlestick-P-clTYIt.js → vue-ui-candlestick-ijujiVJ5.js} +453 -441
- package/dist/{vue-ui-carousel-table-BVS-4A3h.js → vue-ui-carousel-table-DFtWb2-C.js} +3 -3
- package/dist/{vue-ui-chestnut-DHOIbpib.js → vue-ui-chestnut-BGXr0s08.js} +5 -5
- package/dist/{vue-ui-chord-CX_Mc3Fp.js → vue-ui-chord-DgBzLfbv.js} +5 -5
- package/dist/{vue-ui-circle-pack-Caqvblsl.js → vue-ui-circle-pack-88qDJbt0.js} +494 -482
- package/dist/{vue-ui-cursor-BFF4tWUb.js → vue-ui-cursor-CcEB7Ypx.js} +1 -1
- package/dist/{vue-ui-dag-CtG3HUh4.js → vue-ui-dag-BeoFmTDs.js} +6 -6
- package/dist/{vue-ui-dashboard-DASHNFPT.js → vue-ui-dashboard-NOVcGMCa.js} +63 -63
- package/dist/{vue-ui-digits-BQWHzntO.js → vue-ui-digits-BGmT7H1z.js} +1 -1
- package/dist/{vue-ui-donut-DHP_lm0m.js → vue-ui-donut-CP7ilveE.js} +838 -826
- package/dist/{vue-ui-donut-vbqlIlij.js → vue-ui-donut-CtXzuWzy.js} +1 -1
- package/dist/{vue-ui-donut-evolution-Cio3lNLz.js → vue-ui-donut-evolution-D_-y7BZi.js} +6 -6
- package/dist/{vue-ui-dumbbell-C2lQhCfq.js → vue-ui-dumbbell-BR1Cn4wm.js} +4 -4
- package/dist/vue-ui-flow-Bm6TgD8I.js +1229 -0
- package/dist/{vue-ui-funnel-DDncfHgI.js → vue-ui-funnel-CQ0-9nZT.js} +3 -3
- package/dist/vue-ui-galaxy-DUto0BOw.js +1097 -0
- package/dist/{vue-ui-gauge-OQbET2bh.js → vue-ui-gauge-B6pyA6Jh.js} +4 -4
- package/dist/{vue-ui-geo-Ddw87hVT.js → vue-ui-geo-BlG7s8MH.js} +408 -396
- package/dist/{vue-ui-gizmo-DJVWEvWS.js → vue-ui-gizmo-BlyehpxE.js} +2 -2
- package/dist/{vue-ui-heatmap-BKG4xt6j.js → vue-ui-heatmap-DqbWkKAE.js} +405 -393
- package/dist/{vue-ui-hill-BAruBiw6.js → vue-ui-hill-CGE0NdNk.js} +7 -7
- package/dist/vue-ui-history-plot-CaxqIiTb.js +1710 -0
- package/dist/{vue-ui-horizontal-bar-CXT7-P_o.js → vue-ui-horizontal-bar-Ykwe4M1n.js} +401 -389
- package/dist/{vue-ui-kpi-uOGX20hs.js → vue-ui-kpi-B7Nfet0o.js} +1 -1
- package/dist/{vue-ui-label-C1UAzvAu.js → vue-ui-label-Cs4ZlAqr.js} +10 -10
- package/dist/{vue-ui-molecule-BcA064dR.js → vue-ui-molecule-DWq98OSc.js} +347 -335
- package/dist/{vue-ui-mood-radar-CXtC0IqT.js → vue-ui-mood-radar-DDfimq6c.js} +5 -5
- package/dist/{vue-ui-nested-donuts-BFE0oXF_.js → vue-ui-nested-donuts-Bt-r6uXS.js} +360 -348
- package/dist/vue-ui-onion-D8gOhQHP.js +1247 -0
- package/dist/{vue-ui-parallel-coordinate-plot-5kKVnNmE.js → vue-ui-parallel-coordinate-plot-BbPbJiiu.js} +387 -375
- package/dist/{vue-ui-quadrant-BPg8L6Sw.js → vue-ui-quadrant-BJlf3qW1.js} +418 -406
- package/dist/{vue-ui-quick-chart-DQ_rhjqc.js → vue-ui-quick-chart-Cb8x00-X.js} +550 -538
- package/dist/{vue-ui-radar-C65wD7cW.js → vue-ui-radar-30PF-qqr.js} +330 -318
- package/dist/{vue-ui-relation-circle-nZaZcCh1.js → vue-ui-relation-circle-CRiC4PnL.js} +4 -4
- package/dist/{vue-ui-ridgeline-Bsi2hN14.js → vue-ui-ridgeline-CSs4Tq_c.js} +4 -4
- package/dist/{vue-ui-rings-DkCzxDyQ.js → vue-ui-rings-BqRWK5rY.js} +321 -309
- package/dist/{vue-ui-scatter-V01qkcN8.js → vue-ui-scatter-Bsh6jbdW.js} +584 -572
- package/dist/{vue-ui-skeleton-BgYtv_I2.js → vue-ui-skeleton-DbPSsEKV.js} +1 -1
- package/dist/{vue-ui-spark-trend-Dm1OyGyr.js → vue-ui-spark-trend--8QokOII.js} +2 -2
- package/dist/{vue-ui-sparkbar-D3hChHHS.js → vue-ui-sparkbar-DkX9Demg.js} +2 -2
- package/dist/{vue-ui-sparkgauge-CAeJapmG.js → vue-ui-sparkgauge-Ci_xD5B7.js} +2 -2
- package/dist/{vue-ui-sparkhistogram-ZIo_Vg7F.js → vue-ui-sparkhistogram-Qe3ZCPRd.js} +2 -2
- package/dist/{vue-ui-sparkline-BjvSeM83.js → vue-ui-sparkline-BwldgOYW.js} +2 -2
- package/dist/vue-ui-sparkstackbar-Divd0hL_.js +750 -0
- package/dist/vue-ui-stackbar-BWPSGzN-.js +2369 -0
- package/dist/vue-ui-stackline-BQroSnwZ.js +2483 -0
- package/dist/vue-ui-strip-plot-BCUPHkCp.js +1752 -0
- package/dist/{vue-ui-table-C8cvK-x_.js → vue-ui-table-DJeXLYly.js} +2 -2
- package/dist/{vue-ui-table-heatmap-BSUab4fG.js → vue-ui-table-heatmap-D5F5bLx5.js} +2 -2
- package/dist/{vue-ui-table-sparkline-Dam9BFsU.js → vue-ui-table-sparkline-DCm8S2uK.js} +2 -2
- package/dist/{vue-ui-thermometer-zyBeCINd.js → vue-ui-thermometer-xu4R8d2f.js} +4 -4
- package/dist/{vue-ui-timer-CDXczagK.js → vue-ui-timer-i_3bMu3h.js} +1 -1
- package/dist/{vue-ui-tiremarks-CG8LNC9c.js → vue-ui-tiremarks-DGuMI0yH.js} +4 -4
- package/dist/{vue-ui-treemap-DfDRwoZc.js → vue-ui-treemap-Bvl7elni.js} +311 -299
- package/dist/vue-ui-waffle-CVuYg0yU.js +1633 -0
- package/dist/{vue-ui-wheel-DDJIPE_z.js → vue-ui-wheel-DqHD09iA.js} +4 -4
- package/dist/{vue-ui-word-cloud-DBOXRp-e.js → vue-ui-word-cloud-BDCuTQ8Q.js} +385 -372
- package/dist/{vue-ui-world-CiIyp7WH.js → vue-ui-world-B0oVwEDj.js} +474 -462
- package/dist/{vue-ui-xy-s_IZ573M.js → vue-ui-xy-BJJi0E4D.js} +1 -1
- package/dist/{vue-ui-xy-AGYE0Vsz.js → vue-ui-xy-D1dPd68D.js} +1447 -1432
- package/dist/{vue-ui-xy-canvas-MOMyUdJg.js → vue-ui-xy-canvas-R2xbgDOy.js} +523 -511
- package/package.json +3 -3
- package/dist/vue-ui-flow-Dmnz4LCl.js +0 -1217
- package/dist/vue-ui-galaxy-Dw7TyOH0.js +0 -1085
- package/dist/vue-ui-history-plot-BKUg8Gz_.js +0 -1698
- package/dist/vue-ui-onion-DhedgEnV.js +0 -1235
- package/dist/vue-ui-sparkstackbar-DGQcpWK4.js +0 -738
- package/dist/vue-ui-stackbar-D0qmFn5Y.js +0 -2355
- package/dist/vue-ui-stackline-BBtEVl9V.js +0 -2469
- package/dist/vue-ui-strip-plot-CkU-nCt4.js +0 -1740
- package/dist/vue-ui-waffle-D6_cGi1-.js +0 -1621
|
@@ -1,51 +1,51 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { $ as t, Ct as n, D as r, Pt as i, Ut as a, Wt as o, X as s, Xt as c,
|
|
3
|
-
import { n as
|
|
4
|
-
import { n as
|
|
5
|
-
import { t as
|
|
6
|
-
import { t as
|
|
7
|
-
import { n as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import { t as
|
|
12
|
-
import { t as
|
|
13
|
-
import { t as
|
|
14
|
-
import { n as
|
|
15
|
-
import { t as
|
|
16
|
-
import { l as
|
|
17
|
-
import { t as
|
|
18
|
-
import { t as
|
|
19
|
-
import { t as
|
|
20
|
-
import { t as
|
|
21
|
-
import { t as
|
|
22
|
-
import { t as
|
|
23
|
-
import { Fragment as
|
|
2
|
+
import { $ as t, Ct as n, D as r, Pt as i, Ut as a, Wt as o, X as s, Xt as c, Z as l, Zt as ee, _ as te, b as u, bt as ne, c as re, ft as ie, lt as ae, nt as oe, pt as se, q as ce, t as le } from "./lib-Dql7cqyA.js";
|
|
3
|
+
import { n as ue, t as de } from "./useHints-Dq_w2E8B.js";
|
|
4
|
+
import { n as fe, r as pe, t as me } from "./useTimeLabels-d2f-W1L4.js";
|
|
5
|
+
import { t as he } from "./useConfig-D32D002m.js";
|
|
6
|
+
import { t as ge } from "./usePrinter-hohanNCX.js";
|
|
7
|
+
import { n as _e, t as ve } from "./BaseScanner-Dzc8VT3j.js";
|
|
8
|
+
import { t as ye } from "./useNestedProp-Chvyfpl-.js";
|
|
9
|
+
import { t as be } from "./useThemeCheck-C43Tcqmk.js";
|
|
10
|
+
import { t as xe } from "./useChartExport-iwOqiIWX.js";
|
|
11
|
+
import { t as Se } from "./useTransitions-g_zBREk2.js";
|
|
12
|
+
import { t as Ce } from "./useTimeLabelCollider-AEcY4Ioe.js";
|
|
13
|
+
import { t as we } from "./img-BkMKbWsI.js";
|
|
14
|
+
import { n as Te } from "./Title-CPHi-evi.js";
|
|
15
|
+
import { t as Ee } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
16
|
+
import { l as De, t as Oe } from "./useResponsive-ZtArZtUf.js";
|
|
17
|
+
import { t as ke } from "./DefGrad-DVBqDjhO.js";
|
|
18
|
+
import { t as Ae } from "./SlicerPreview-Ccss7Vsq.js";
|
|
19
|
+
import { t as je } from "./A11yDataTable-DdRsVULz.js";
|
|
20
|
+
import { t as Me } from "./useUserOptionState-DK-_1ddE.js";
|
|
21
|
+
import { t as Ne } from "./useChartAccessibility-DYqac8yF.js";
|
|
22
|
+
import { t as Pe } from "./vue_ui_candlestick-J8jmJvxP.js";
|
|
23
|
+
import { Fragment as d, computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createSlots as Fe, createTextVNode as Ie, createVNode as Le, defineAsyncComponent as _, guardReactiveProps as v, mergeProps as Re, nextTick as ze, normalizeClass as y, normalizeProps as b, normalizeStyle as Be, onBeforeUnmount as Ve, onMounted as He, openBlock as x, ref as S, renderList as C, renderSlot as w, resolveDynamicComponent as Ue, shallowRef as We, toDisplayString as Ge, toRefs as Ke, unref as T, watch as qe, watchEffect as Je, withCtx as E } from "vue";
|
|
24
24
|
//#region src/components/vue-ui-candlestick.vue
|
|
25
|
-
var
|
|
25
|
+
var Ye = /* @__PURE__ */ e({ default: () => kt }), Xe = ["id"], Ze = ["id"], Qe = { style: { position: "relative" } }, $e = [
|
|
26
26
|
"xmlns",
|
|
27
27
|
"aria-describedby",
|
|
28
28
|
"viewBox"
|
|
29
|
-
],
|
|
29
|
+
], et = [
|
|
30
30
|
"x",
|
|
31
31
|
"y",
|
|
32
32
|
"width",
|
|
33
33
|
"height"
|
|
34
|
-
],
|
|
34
|
+
], tt = { key: 1 }, nt = { key: 0 }, rt = [
|
|
35
35
|
"x1",
|
|
36
36
|
"x2",
|
|
37
37
|
"y1",
|
|
38
38
|
"y2",
|
|
39
39
|
"stroke",
|
|
40
40
|
"stroke-width"
|
|
41
|
-
],
|
|
41
|
+
], it = [
|
|
42
42
|
"x1",
|
|
43
43
|
"x2",
|
|
44
44
|
"y1",
|
|
45
45
|
"y2",
|
|
46
46
|
"stroke",
|
|
47
47
|
"stroke-width"
|
|
48
|
-
],
|
|
48
|
+
], at = [
|
|
49
49
|
"x1",
|
|
50
50
|
"x2",
|
|
51
51
|
"y1",
|
|
@@ -53,7 +53,7 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
53
53
|
"stroke",
|
|
54
54
|
"stroke-width",
|
|
55
55
|
"stroke-dasharray"
|
|
56
|
-
],
|
|
56
|
+
], ot = [
|
|
57
57
|
"x1",
|
|
58
58
|
"x2",
|
|
59
59
|
"y1",
|
|
@@ -61,78 +61,78 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
61
61
|
"stroke",
|
|
62
62
|
"stroke-width",
|
|
63
63
|
"stroke-dasharray"
|
|
64
|
-
],
|
|
64
|
+
], st = [
|
|
65
65
|
"x1",
|
|
66
66
|
"x2",
|
|
67
67
|
"y1",
|
|
68
68
|
"y2",
|
|
69
69
|
"stroke",
|
|
70
70
|
"stroke-width"
|
|
71
|
-
],
|
|
71
|
+
], ct = [
|
|
72
72
|
"x1",
|
|
73
73
|
"x2",
|
|
74
74
|
"y1",
|
|
75
75
|
"y2",
|
|
76
76
|
"stroke",
|
|
77
77
|
"stroke-width"
|
|
78
|
-
],
|
|
78
|
+
], lt = [
|
|
79
79
|
"transform",
|
|
80
80
|
"text-anchor",
|
|
81
81
|
"font-size",
|
|
82
82
|
"fill",
|
|
83
83
|
"font-weight"
|
|
84
|
-
],
|
|
84
|
+
], ut = [
|
|
85
85
|
"transform",
|
|
86
86
|
"text-anchor",
|
|
87
87
|
"font-size",
|
|
88
88
|
"fill",
|
|
89
89
|
"font-weight"
|
|
90
|
-
],
|
|
90
|
+
], dt = [
|
|
91
91
|
"transform",
|
|
92
92
|
"text-anchor",
|
|
93
93
|
"font-size",
|
|
94
94
|
"fill",
|
|
95
95
|
"stroke",
|
|
96
96
|
"font-weight"
|
|
97
|
-
],
|
|
97
|
+
], ft = [
|
|
98
98
|
"x",
|
|
99
99
|
"y",
|
|
100
100
|
"width",
|
|
101
101
|
"height",
|
|
102
102
|
"fill",
|
|
103
103
|
"rx"
|
|
104
|
-
],
|
|
104
|
+
], pt = { key: 0 }, mt = [
|
|
105
105
|
"cx",
|
|
106
106
|
"cy",
|
|
107
107
|
"r",
|
|
108
108
|
"fill"
|
|
109
|
-
],
|
|
109
|
+
], ht = [
|
|
110
110
|
"cx",
|
|
111
111
|
"cy",
|
|
112
112
|
"r",
|
|
113
113
|
"fill"
|
|
114
|
-
],
|
|
114
|
+
], gt = { key: 1 }, _t = [
|
|
115
115
|
"x",
|
|
116
116
|
"y",
|
|
117
117
|
"width",
|
|
118
118
|
"height",
|
|
119
119
|
"rx",
|
|
120
120
|
"fill"
|
|
121
|
-
],
|
|
121
|
+
], vt = [
|
|
122
122
|
"x",
|
|
123
123
|
"y",
|
|
124
124
|
"width",
|
|
125
125
|
"height",
|
|
126
126
|
"fill",
|
|
127
127
|
"rx"
|
|
128
|
-
],
|
|
128
|
+
], yt = [
|
|
129
129
|
"x",
|
|
130
130
|
"y",
|
|
131
131
|
"height",
|
|
132
132
|
"width",
|
|
133
133
|
"fill",
|
|
134
134
|
"rx"
|
|
135
|
-
],
|
|
135
|
+
], bt = [
|
|
136
136
|
"x",
|
|
137
137
|
"y",
|
|
138
138
|
"height",
|
|
@@ -141,7 +141,7 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
141
141
|
"rx",
|
|
142
142
|
"stroke",
|
|
143
143
|
"stroke-width"
|
|
144
|
-
],
|
|
144
|
+
], xt = ["d", "stroke"], St = [
|
|
145
145
|
"x",
|
|
146
146
|
"y",
|
|
147
147
|
"height",
|
|
@@ -150,7 +150,7 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
150
150
|
"onMouseover",
|
|
151
151
|
"onMouseleave",
|
|
152
152
|
"onClick"
|
|
153
|
-
],
|
|
153
|
+
], Ct = ["data-start", "data-end"], wt = {
|
|
154
154
|
key: 0,
|
|
155
155
|
style: {
|
|
156
156
|
position: "absolute",
|
|
@@ -160,14 +160,14 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
160
160
|
},
|
|
161
161
|
"data-dom-to-png-ignore": "",
|
|
162
162
|
"aria-hidden": "true"
|
|
163
|
-
},
|
|
163
|
+
}, Tt = {
|
|
164
164
|
key: 5,
|
|
165
165
|
class: "vue-data-ui-watermark"
|
|
166
|
-
},
|
|
166
|
+
}, Et = ["d", "stroke"], Dt = [
|
|
167
167
|
"d",
|
|
168
168
|
"stroke",
|
|
169
169
|
"stroke-width"
|
|
170
|
-
],
|
|
170
|
+
], Ot = ["innerHTML"], kt = /*#__PURE__*/ Ee({
|
|
171
171
|
__name: "vue-ui-candlestick",
|
|
172
172
|
props: {
|
|
173
173
|
config: {
|
|
@@ -188,16 +188,16 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
188
188
|
}
|
|
189
189
|
},
|
|
190
190
|
emits: ["selectX", "copyAlt"],
|
|
191
|
-
setup(e, { expose:
|
|
192
|
-
let
|
|
191
|
+
setup(e, { expose: Ee, emit: Ye }) {
|
|
192
|
+
let kt = _(() => import("./BaseIcon-D8R6_sKH.js").then((e) => e.n)), At = _(() => import("./Tooltip-hhrkQ3Lk.js")), jt = _(() => import("./vue-ui-accordion-DmkL8A59.js").then((e) => e.n)), Mt = _(() => import("./DataTable-oiM9uWrQ.js")), Nt = _(() => import("./PenAndPaper-Cd3nItcO.js").then((e) => e.t)), Pt = _(() => import("./UserOptions-qo_Tsqci.js").then((e) => e.n)), Ft = _(() => import("./PackageVersion-CZZayD-D.js").then((e) => e.t)), It = _(() => import("./BaseDraggableDialog-Gm4Q30j0.js").then((e) => e.n)), { vue_ui_candlestick: Lt } = he(), { isThemeValid: Rt, warnInvalidTheme: zt } = be(), D = e, Bt = Ye, Vt = f(() => !!D.dataset && D.dataset.length), O = S(!1), Ht = S(null), k = S(ce()), Ut = S(!1), Wt = S(""), A = S(void 0), Gt = S(0), j = S(null), Kt = S(null), qt = S(null), Jt = S(null), Yt = S(null), Xt = S(null), Zt = S(0), Qt = S(0), $t = S(0), en = S(null), tn = S(null), nn = S(null), rn = S(null), an = S(null), M = S(null), on = S({
|
|
193
193
|
x: 0,
|
|
194
194
|
y: 0
|
|
195
|
-
}),
|
|
196
|
-
|
|
195
|
+
}), sn = S("pointer"), cn = S(!1), N = S(yn()), P = f(() => N.value.style.layout.candle), F = f(() => N.value.style.layout.grid), I = f(() => N.value.style.layout), L = f(() => N.value.style), R = f(() => N.value.userOptions);
|
|
196
|
+
ue({
|
|
197
197
|
config: () => N.value,
|
|
198
198
|
dataset: () => D.dataset,
|
|
199
199
|
component: "VueUiCandlestick",
|
|
200
|
-
rules: [
|
|
200
|
+
rules: [de.emptyArray, {
|
|
201
201
|
test: (e) => e.length > 200,
|
|
202
202
|
message: [
|
|
203
203
|
"👀 Dataset has > 200 points, which can cause performance issues. Consider:",
|
|
@@ -208,10 +208,10 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
208
208
|
]
|
|
209
209
|
}]
|
|
210
210
|
});
|
|
211
|
-
let { transitionEnabled:
|
|
211
|
+
let { transitionEnabled: ln } = Se({
|
|
212
212
|
config: () => N.value.transitions,
|
|
213
213
|
dataset: () => D.dataset
|
|
214
|
-
}),
|
|
214
|
+
}), un = f(() => N.value.userOptions.useCursorPointer), dn = f(() => ee({
|
|
215
215
|
defaultConfig: {
|
|
216
216
|
useCssAnimation: !1,
|
|
217
217
|
userOptions: { show: !1 },
|
|
@@ -249,13 +249,13 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
249
249
|
}
|
|
250
250
|
},
|
|
251
251
|
userConfig: N.value.skeletonConfig ?? {}
|
|
252
|
-
})), { loading: z, FINAL_DATASET: B, manualLoading:
|
|
253
|
-
...
|
|
252
|
+
})), { loading: z, FINAL_DATASET: B, manualLoading: fn } = _e({
|
|
253
|
+
...Ke(D),
|
|
254
254
|
FINAL_CONFIG: N,
|
|
255
|
-
prepareConfig:
|
|
255
|
+
prepareConfig: yn,
|
|
256
256
|
callback: () => {
|
|
257
257
|
Promise.resolve().then(async () => {
|
|
258
|
-
await
|
|
258
|
+
await gr();
|
|
259
259
|
});
|
|
260
260
|
},
|
|
261
261
|
skeletonDataset: D.config?.skeletonDataset ?? [
|
|
@@ -356,35 +356,35 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
356
356
|
5100
|
|
357
357
|
]
|
|
358
358
|
],
|
|
359
|
-
skeletonConfig:
|
|
359
|
+
skeletonConfig: ee({
|
|
360
360
|
defaultConfig: N.value,
|
|
361
|
-
userConfig:
|
|
361
|
+
userConfig: dn.value
|
|
362
362
|
})
|
|
363
|
-
}), { userOptionsVisible:
|
|
364
|
-
function gn() {
|
|
365
|
-
pn(!0);
|
|
366
|
-
}
|
|
363
|
+
}), { userOptionsVisible: pn, setUserOptionsVisibility: mn, keepUserOptionState: hn } = Me({ config: N.value }), { svgRef: gn } = Ne({ config: L.value.title });
|
|
367
364
|
function _n() {
|
|
368
|
-
|
|
365
|
+
mn(!0);
|
|
366
|
+
}
|
|
367
|
+
function vn() {
|
|
368
|
+
mn(!1), Bt("selectX", {
|
|
369
369
|
seriesIndex: null,
|
|
370
370
|
datapoint: null
|
|
371
371
|
}), A.value = null;
|
|
372
372
|
}
|
|
373
|
-
function
|
|
374
|
-
let e =
|
|
373
|
+
function yn() {
|
|
374
|
+
let e = ye({
|
|
375
375
|
userConfig: D.config,
|
|
376
|
-
defaultConfig:
|
|
376
|
+
defaultConfig: Lt
|
|
377
377
|
}), t = {};
|
|
378
|
-
D.config &&
|
|
378
|
+
D.config && ne(D.config, "style.layout.grid.xAxis.dataLabels.showFirstAndLast") && (e.style.layout.grid.xAxis.dataLabels.showFirstAndLast = !!D.config.style.layout.grid.xAxis.dataLabels.showFirstAndLast);
|
|
379
379
|
let n = e.theme;
|
|
380
380
|
if (n) {
|
|
381
|
-
if (!
|
|
381
|
+
if (!Rt.value(e)) zt(e), t = e;
|
|
382
382
|
else {
|
|
383
|
-
let r =
|
|
384
|
-
userConfig:
|
|
383
|
+
let r = ye({
|
|
384
|
+
userConfig: Pe[n] || D.config,
|
|
385
385
|
defaultConfig: e
|
|
386
386
|
});
|
|
387
|
-
t = { ...
|
|
387
|
+
t = { ...ye({
|
|
388
388
|
userConfig: D.config,
|
|
389
389
|
defaultConfig: r
|
|
390
390
|
}) };
|
|
@@ -392,38 +392,50 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
392
392
|
} else t = e;
|
|
393
393
|
return t;
|
|
394
394
|
}
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
395
|
+
function bn(e) {
|
|
396
|
+
let t = l(e);
|
|
397
|
+
return t?.style && delete t.style.tooltip, JSON.stringify(t);
|
|
398
|
+
}
|
|
399
|
+
let xn = bn(D.config);
|
|
400
|
+
qe(() => D.config, (e, t) => {
|
|
401
|
+
let n = bn(e), r = n !== xn;
|
|
402
|
+
xn = n;
|
|
403
|
+
let i = yn();
|
|
404
|
+
if (!r) {
|
|
405
|
+
N.value.style.tooltip = i.style.tooltip, U.value.showTooltip = N.value.style.tooltip.show;
|
|
406
|
+
return;
|
|
407
|
+
}
|
|
408
|
+
z.value || (N.value = yn()), pn.value = !N.value.userOptions.showOnChartHover, wn(), Zt.value += 1, $t.value += 1, Qt.value += 1, U.value.showTable = N.value.table.show, U.value.showTooltip = L.value.tooltip.show, Ln();
|
|
409
|
+
}, { deep: !0 }), qe(() => D.dataset, (e) => {
|
|
410
|
+
Array.isArray(e) && e.length > 0 && (fn.value = !1), fr();
|
|
399
411
|
}, { deep: !0 });
|
|
400
412
|
let V = S({
|
|
401
413
|
height: L.value.height,
|
|
402
414
|
width: L.value.width,
|
|
403
415
|
xAxisFontSize: F.value.xAxis.dataLabels.fontSize,
|
|
404
416
|
yAxisFontSize: F.value.yAxis.dataLabels.fontSize
|
|
405
|
-
}), H =
|
|
406
|
-
|
|
407
|
-
|
|
417
|
+
}), H = We(null), Sn = We(null);
|
|
418
|
+
He(() => {
|
|
419
|
+
wn();
|
|
408
420
|
});
|
|
409
|
-
let
|
|
410
|
-
function
|
|
411
|
-
if (i(D.dataset) && (
|
|
421
|
+
let Cn = f(() => N.value.debug);
|
|
422
|
+
function wn() {
|
|
423
|
+
if (i(D.dataset) && (oe({
|
|
412
424
|
componentName: "VueUiCandlestick",
|
|
413
425
|
type: "dataset",
|
|
414
|
-
debug:
|
|
415
|
-
}),
|
|
426
|
+
debug: Cn.value
|
|
427
|
+
}), fn.value = !0), i(D.dataset) || (fn.value = N.value.loading), setTimeout(() => {
|
|
416
428
|
O.value = !0;
|
|
417
429
|
}, 10), N.value.responsive) {
|
|
418
|
-
let e =
|
|
430
|
+
let e = De(() => {
|
|
419
431
|
O.value = !1;
|
|
420
|
-
let { width: e, height: t } =
|
|
432
|
+
let { width: e, height: t } = Oe({
|
|
421
433
|
chart: j.value,
|
|
422
|
-
title: L.value.title.text ?
|
|
423
|
-
slicer: L.value.zoom.show && K.value > 6 ?
|
|
424
|
-
legend:
|
|
425
|
-
source:
|
|
426
|
-
noTitle:
|
|
434
|
+
title: L.value.title.text ? Kt.value : null,
|
|
435
|
+
slicer: L.value.zoom.show && K.value > 6 ? Jt.value.$el : null,
|
|
436
|
+
legend: qt.value,
|
|
437
|
+
source: Yt.value,
|
|
438
|
+
noTitle: Xt.value
|
|
427
439
|
});
|
|
428
440
|
requestAnimationFrame(() => {
|
|
429
441
|
V.value.width = e, V.value.height = t - 12, N.value.responsiveProportionalSizing ? (V.value.xAxisFontSize = c({
|
|
@@ -438,45 +450,45 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
438
450
|
source: F.value.yAxis.dataLabels.fontSize,
|
|
439
451
|
threshold: 6,
|
|
440
452
|
fallback: 6
|
|
441
|
-
})) : (V.value.xAxisFontSize = F.value.xAxis.dataLabels.fontSize, V.value.yAxisFontSize = F.value.yAxis.dataLabels.fontSize),
|
|
453
|
+
})) : (V.value.xAxisFontSize = F.value.xAxis.dataLabels.fontSize, V.value.yAxisFontSize = F.value.yAxis.dataLabels.fontSize), Ht.value && clearTimeout(Ht.value), Ht.value = setTimeout(() => {
|
|
442
454
|
O.value = !0;
|
|
443
455
|
}, 10);
|
|
444
456
|
});
|
|
445
457
|
});
|
|
446
|
-
H.value && (
|
|
458
|
+
H.value && (Sn.value && H.value.unobserve(Sn.value), H.value.disconnect()), H.value = new ResizeObserver(e), Sn.value = j.value.parentNode, H.value.observe(Sn.value);
|
|
447
459
|
}
|
|
448
|
-
|
|
460
|
+
gr();
|
|
449
461
|
}
|
|
450
|
-
|
|
451
|
-
H.value && (
|
|
462
|
+
Ve(() => {
|
|
463
|
+
H.value && (Sn.value && H.value.unobserve(Sn.value), H.value.disconnect());
|
|
452
464
|
});
|
|
453
|
-
let { isPrinting:
|
|
465
|
+
let { isPrinting: Tn, isImaging: En, generatePdf: Dn, generateImage: On } = ge({
|
|
454
466
|
elementId: `vue-ui-candlestick_${k.value}`,
|
|
455
467
|
fileName: L.value.title.text || "vue-ui-candlestick",
|
|
456
468
|
options: N.value.userOptions.print
|
|
457
|
-
}),
|
|
469
|
+
}), kn = f(() => N.value.userOptions.show && !L.value.title.text), U = S({
|
|
458
470
|
showTable: N.value.table.show,
|
|
459
471
|
showTooltip: L.value.tooltip.show
|
|
460
|
-
}),
|
|
461
|
-
|
|
472
|
+
}), An = S(0), jn = De((e) => {
|
|
473
|
+
An.value = e;
|
|
462
474
|
}, 100);
|
|
463
|
-
|
|
464
|
-
let t =
|
|
475
|
+
Je((e) => {
|
|
476
|
+
let t = tn.value;
|
|
465
477
|
if (!t) return;
|
|
466
478
|
let n = new ResizeObserver((e) => {
|
|
467
|
-
|
|
479
|
+
jn(e[0].contentRect.height);
|
|
468
480
|
});
|
|
469
481
|
n.observe(t), e(() => n.disconnect());
|
|
470
|
-
}),
|
|
471
|
-
|
|
482
|
+
}), Ve(() => {
|
|
483
|
+
An.value = 0;
|
|
472
484
|
});
|
|
473
|
-
let
|
|
485
|
+
let Mn = f(() => {
|
|
474
486
|
let e = 0;
|
|
475
|
-
return
|
|
476
|
-
}), W =
|
|
477
|
-
function
|
|
487
|
+
return tn.value && (e = An.value + V.value.xAxisFontSize), e;
|
|
488
|
+
}), W = f(() => F.value.yAxis.position === "right");
|
|
489
|
+
function Nn() {
|
|
478
490
|
let e = F.value.yAxis.dataLabels.offsetX;
|
|
479
|
-
|
|
491
|
+
en.value && (e = Array.from(en.value.querySelectorAll("text")).reduce((e, t) => {
|
|
480
492
|
let n = t.getComputedTextLength();
|
|
481
493
|
return n > e ? n : e;
|
|
482
494
|
}, 0));
|
|
@@ -489,20 +501,20 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
489
501
|
crosshair: 13
|
|
490
502
|
};
|
|
491
503
|
}
|
|
492
|
-
let G =
|
|
493
|
-
let { top: e, right: t, bottom: n, left: r } = I.value.padding, i =
|
|
504
|
+
let G = f(() => {
|
|
505
|
+
let { top: e, right: t, bottom: n, left: r } = I.value.padding, i = Nn();
|
|
494
506
|
return {
|
|
495
507
|
top: e + 12,
|
|
496
508
|
right: V.value.width - t - i.right,
|
|
497
509
|
left: r + i.left,
|
|
498
|
-
bottom: V.value.height - n -
|
|
510
|
+
bottom: V.value.height - n - Mn.value,
|
|
499
511
|
width: V.value.width - r - t - i.left - i.right,
|
|
500
|
-
height: V.value.height - e - n -
|
|
512
|
+
height: V.value.height - e - n - Mn.value - 12,
|
|
501
513
|
scaleLabelsWidth: i.scaleLabelsWidth,
|
|
502
514
|
yAxisNameWidth: i.yAxisNameWidth,
|
|
503
515
|
crosshair: i.crosshair
|
|
504
516
|
};
|
|
505
|
-
}),
|
|
517
|
+
}), Pn = f(() => {
|
|
506
518
|
let { left: e, top: t, width: n, height: r } = G.value, i = q.value.start, a = q.value.end - i, o = n / a, s = J.value.start - i, c = J.value.end - i, l = Math.max(0, Math.min(a, s)), ee = Math.max(0, Math.min(a, c));
|
|
507
519
|
return {
|
|
508
520
|
x: e + l * o,
|
|
@@ -521,56 +533,56 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
521
533
|
animation: "none !important"
|
|
522
534
|
}
|
|
523
535
|
};
|
|
524
|
-
}), K =
|
|
536
|
+
}), K = f(() => B.value.length), q = S({
|
|
525
537
|
start: 0,
|
|
526
538
|
end: K.value
|
|
527
539
|
}), J = S({
|
|
528
540
|
start: 0,
|
|
529
541
|
end: K.value
|
|
530
|
-
}),
|
|
531
|
-
function
|
|
542
|
+
}), Fn = f(() => L.value.zoom.preview.enable && (J.value.start !== q.value.start || J.value.end !== q.value.end));
|
|
543
|
+
function In(e, t) {
|
|
532
544
|
J.value[e] = t;
|
|
533
545
|
}
|
|
534
|
-
function
|
|
546
|
+
function Ln() {
|
|
535
547
|
let e = Math.max(0, Math.min(q.value.start ?? 0, K.value - 1)), t = Math.max(e + 1, Math.min(q.value.end ?? K.value, K.value));
|
|
536
|
-
(!Number.isFinite(e) || !Number.isFinite(t) || t <= e) && (e = 0, t = K.value), q.value.start = e, q.value.end = t, J.value.start = e, J.value.end = t,
|
|
548
|
+
(!Number.isFinite(e) || !Number.isFinite(t) || t <= e) && (e = 0, t = K.value), q.value.start = e, q.value.end = t, J.value.start = e, J.value.end = t, Jt.value && (Jt.value.setStartValue(e), Jt.value.setEndValue(t));
|
|
537
549
|
}
|
|
538
|
-
let
|
|
550
|
+
let Rn = f(() => B.value.map((e, t) => ({
|
|
539
551
|
...e,
|
|
540
552
|
absoluteIndex: t
|
|
541
|
-
}))),
|
|
542
|
-
[null, void 0].includes(e[0]) &&
|
|
553
|
+
}))), zn = f(() => Rn.value.slice(q.value.start, q.value.end)), Y = f(() => (Cn.value && B.value.forEach((e, t) => {
|
|
554
|
+
[null, void 0].includes(e[0]) && oe({
|
|
543
555
|
componentName: "VueUiCandlestick",
|
|
544
556
|
type: "datasetAttribute",
|
|
545
557
|
property: "period (index 0)",
|
|
546
558
|
index: t
|
|
547
|
-
}), [null, void 0].includes(e[1]) &&
|
|
559
|
+
}), [null, void 0].includes(e[1]) && oe({
|
|
548
560
|
componentName: "VueUiCandlestick",
|
|
549
561
|
type: "datasetAttribute",
|
|
550
562
|
property: "open (index 1)",
|
|
551
563
|
index: t
|
|
552
|
-
}), [null, void 0].includes(e[2]) &&
|
|
564
|
+
}), [null, void 0].includes(e[2]) && oe({
|
|
553
565
|
componentName: "VueUiCandlestick",
|
|
554
566
|
type: "datasetAttribute",
|
|
555
567
|
property: "high (index 2)",
|
|
556
568
|
index: t
|
|
557
|
-
}), [null, void 0].includes(e[3]) &&
|
|
569
|
+
}), [null, void 0].includes(e[3]) && oe({
|
|
558
570
|
componentName: "VueUiCandlestick",
|
|
559
571
|
type: "datasetAttribute",
|
|
560
572
|
property: "low (index 3)",
|
|
561
573
|
index: t
|
|
562
|
-
}), [null, void 0].includes(e[4]) &&
|
|
574
|
+
}), [null, void 0].includes(e[4]) && oe({
|
|
563
575
|
componentName: "VueUiCandlestick",
|
|
564
576
|
type: "datasetAttribute",
|
|
565
577
|
property: "close (index 4)",
|
|
566
578
|
index: t
|
|
567
|
-
}), [null, void 0].includes(e[5]) &&
|
|
579
|
+
}), [null, void 0].includes(e[5]) && oe({
|
|
568
580
|
componentName: "VueUiCandlestick",
|
|
569
581
|
type: "datasetAttribute",
|
|
570
582
|
property: "volume (index 5)",
|
|
571
583
|
index: t
|
|
572
584
|
});
|
|
573
|
-
}),
|
|
585
|
+
}), zn.value.map((e) => ({
|
|
574
586
|
absoluteIndex: e.absoluteIndex,
|
|
575
587
|
period: e[0],
|
|
576
588
|
open: e[1],
|
|
@@ -578,7 +590,7 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
578
590
|
low: e[3],
|
|
579
591
|
close: e[4],
|
|
580
592
|
volume: e[5]
|
|
581
|
-
})))),
|
|
593
|
+
})))), Bn = f(() => Rn.value.map((e) => ({
|
|
582
594
|
absoluteIndex: e.absoluteIndex,
|
|
583
595
|
period: e[0],
|
|
584
596
|
open: e[1],
|
|
@@ -586,11 +598,11 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
586
598
|
low: e[3],
|
|
587
599
|
close: e[4],
|
|
588
600
|
volume: e[5]
|
|
589
|
-
}))), X =
|
|
601
|
+
}))), X = f(() => G.value.width / zn.value.length), Vn = f(() => ({
|
|
590
602
|
max: F.value.yAxis.scale.max === null ? Math.max(...Y.value.map((e) => e.high)) : F.value.yAxis.scale.max,
|
|
591
603
|
min: F.value.yAxis.scale.min === null ? 0 : F.value.yAxis.scale.min
|
|
592
|
-
})), Z =
|
|
593
|
-
function
|
|
604
|
+
})), Z = f(() => te(Vn.value.min, Vn.value.max, F.value.yAxis.dataLabels.steps));
|
|
605
|
+
function Hn(e, t, n = null, r = null) {
|
|
594
606
|
return {
|
|
595
607
|
...e,
|
|
596
608
|
x: u(G.value.left + t * X.value + X.value / 2),
|
|
@@ -600,7 +612,7 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
600
612
|
isMin: e === r
|
|
601
613
|
};
|
|
602
614
|
}
|
|
603
|
-
let Q =
|
|
615
|
+
let Q = f(() => {
|
|
604
616
|
let e = {
|
|
605
617
|
o: Math.max(...Y.value.map((e) => e.open)),
|
|
606
618
|
h: Math.max(...Y.value.map((e) => e.high)),
|
|
@@ -613,7 +625,7 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
613
625
|
c: Math.min(...Y.value.map((e) => e.low))
|
|
614
626
|
}, n = Math.max(...Y.value.map((e) => e.volume)), r = Math.min(...Y.value.map((e) => e.volume));
|
|
615
627
|
return Y.value.map((i, a) => {
|
|
616
|
-
let o =
|
|
628
|
+
let o = Hn(i.open, a, e.o, t.o), s = Hn(i.high, a, e.h, t.h), c = Hn(i.low, a, e.l, t.l), l = Hn(i.close, a, e.c, t.c), ee = i.close > i.open, te = i.volume === n, u = i.volume === r;
|
|
617
629
|
return {
|
|
618
630
|
period: i.period,
|
|
619
631
|
open: o,
|
|
@@ -623,12 +635,12 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
623
635
|
volume: i.volume,
|
|
624
636
|
isBullish: ee,
|
|
625
637
|
absoluteIndex: i.absoluteIndex,
|
|
626
|
-
isMaxVolume:
|
|
627
|
-
isMinVolume:
|
|
638
|
+
isMaxVolume: te,
|
|
639
|
+
isMinVolume: u
|
|
628
640
|
};
|
|
629
641
|
});
|
|
630
642
|
});
|
|
631
|
-
function
|
|
643
|
+
function Un({ item: e, index: t, minimapH: n, unitW: r }) {
|
|
632
644
|
let i = F.value.yAxis.scale.min ?? 0, a = F.value.yAxis.scale.max ?? Math.max(...B.value.map((e) => e[2]));
|
|
633
645
|
return {
|
|
634
646
|
...e,
|
|
@@ -637,23 +649,23 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
637
649
|
value: u(e)
|
|
638
650
|
};
|
|
639
651
|
}
|
|
640
|
-
let
|
|
641
|
-
let i =
|
|
652
|
+
let Wn = f(() => ({ minimapH: e, unitW: t }) => Bn.value.map((n, r) => {
|
|
653
|
+
let i = Un({
|
|
642
654
|
item: n.open,
|
|
643
655
|
index: r,
|
|
644
656
|
minimapH: e,
|
|
645
657
|
unitW: t
|
|
646
|
-
}), a =
|
|
658
|
+
}), a = Un({
|
|
647
659
|
item: n.high,
|
|
648
660
|
index: r,
|
|
649
661
|
minimapH: e,
|
|
650
662
|
unitW: t
|
|
651
|
-
}), o =
|
|
663
|
+
}), o = Un({
|
|
652
664
|
item: n.low,
|
|
653
665
|
index: r,
|
|
654
666
|
minimapH: e,
|
|
655
667
|
unitW: t
|
|
656
|
-
}), s =
|
|
668
|
+
}), s = Un({
|
|
657
669
|
item: n.close,
|
|
658
670
|
index: r,
|
|
659
671
|
minimapH: e,
|
|
@@ -669,112 +681,112 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
669
681
|
isBullish: c,
|
|
670
682
|
absoluteIndex: n.absoluteIndex
|
|
671
683
|
};
|
|
672
|
-
})),
|
|
684
|
+
})), Gn = f(() => L.value.zoom.minimap.show ? [{
|
|
673
685
|
name: "",
|
|
674
686
|
series: B.value.map((e) => e[2]),
|
|
675
687
|
color: "#000000",
|
|
676
688
|
isVisible: !0
|
|
677
689
|
}] : []);
|
|
678
|
-
function
|
|
690
|
+
function Kn(e) {
|
|
679
691
|
return u((e - Z.value.min) / (Z.value.max - Z.value.min));
|
|
680
692
|
}
|
|
681
|
-
let
|
|
682
|
-
y: G.value.bottom - G.value.height *
|
|
693
|
+
let qn = f(() => Z.value.ticks.map((e) => ({
|
|
694
|
+
y: G.value.bottom - G.value.height * Kn(e),
|
|
683
695
|
value: u(e)
|
|
684
|
-
}))),
|
|
685
|
-
|
|
686
|
-
let e = ++
|
|
696
|
+
}))), Jn = f(() => Y.value.map((e) => e.period)), $ = S([]), Yn = S([]), Xn = 0;
|
|
697
|
+
Je(() => {
|
|
698
|
+
let e = ++Xn;
|
|
687
699
|
(async () => {
|
|
688
|
-
let t = await
|
|
700
|
+
let t = await me({
|
|
689
701
|
values: B.value.map((e) => e[0]),
|
|
690
702
|
maxDatapoints: B.value.length,
|
|
691
703
|
formatter: F.value.xAxis.dataLabels.datetimeFormatter,
|
|
692
704
|
start: q.value.start,
|
|
693
705
|
end: q.value.end
|
|
694
706
|
});
|
|
695
|
-
e ===
|
|
707
|
+
e === Xn && ($.value = t);
|
|
696
708
|
})();
|
|
697
709
|
});
|
|
698
|
-
let
|
|
699
|
-
|
|
700
|
-
let e = ++
|
|
710
|
+
let Zn = 0;
|
|
711
|
+
Je(() => {
|
|
712
|
+
let e = ++Zn;
|
|
701
713
|
(async () => {
|
|
702
|
-
let t = await
|
|
714
|
+
let t = await me({
|
|
703
715
|
values: B.value.map((e) => e[0]),
|
|
704
716
|
maxDatapoints: B.value.length,
|
|
705
717
|
formatter: F.value.xAxis.dataLabels.datetimeFormatter,
|
|
706
718
|
start: 0,
|
|
707
719
|
end: K.value
|
|
708
720
|
});
|
|
709
|
-
e ===
|
|
721
|
+
e === Zn && (Yn.value = t);
|
|
710
722
|
})();
|
|
711
723
|
});
|
|
712
|
-
let
|
|
724
|
+
let Qn = S({
|
|
713
725
|
months: [],
|
|
714
726
|
shortMonths: [],
|
|
715
727
|
days: [],
|
|
716
728
|
shortDays: []
|
|
717
|
-
}),
|
|
718
|
-
|
|
719
|
-
let e =
|
|
729
|
+
}), $n = 0;
|
|
730
|
+
Je(() => {
|
|
731
|
+
let e = ++$n, t = F.value.xAxis.dataLabels.datetimeFormatter;
|
|
720
732
|
(async () => {
|
|
721
|
-
let n = await
|
|
722
|
-
e ===
|
|
733
|
+
let n = await pe(t.locale).catch(() => pe("en"));
|
|
734
|
+
e === $n && (Qn.value = n.data);
|
|
723
735
|
})();
|
|
724
736
|
});
|
|
725
|
-
let
|
|
726
|
-
let e = F.value.xAxis.dataLabels.datetimeFormatter, t =
|
|
737
|
+
let er = f(() => {
|
|
738
|
+
let e = F.value.xAxis.dataLabels.datetimeFormatter, t = fe({
|
|
727
739
|
useUTC: e.useUTC,
|
|
728
|
-
locale:
|
|
740
|
+
locale: Qn.value,
|
|
729
741
|
januaryAsYear: e.januaryAsYear
|
|
730
742
|
});
|
|
731
743
|
return (e, n) => {
|
|
732
744
|
let r = B.value.map((e) => e[0])?.[e];
|
|
733
745
|
return r == null ? "" : t.formatDate(new Date(r), n);
|
|
734
746
|
};
|
|
735
|
-
}),
|
|
736
|
-
text:
|
|
747
|
+
}), tr = f(() => (B.value.map((e) => e[0]) || []).map((e, t) => ({
|
|
748
|
+
text: er.value(t, L.value.tooltip.timeFormat),
|
|
737
749
|
absoluteIndex: t
|
|
738
|
-
}))),
|
|
739
|
-
text:
|
|
750
|
+
}))), nr = f(() => (B.value.map((e) => e[0]) || []).map((e, t) => ({
|
|
751
|
+
text: er.value(t, L.value.zoom.timeFormat),
|
|
740
752
|
absoluteIndex: t
|
|
741
|
-
}))),
|
|
742
|
-
let e = Math.max(1, Math.floor(Number(F.value.xAxis.dataLabels.modulo) || 1)), t = ($.value || []).map((e) => e?.text ?? ""), n = (
|
|
743
|
-
return
|
|
753
|
+
}))), rr = f(() => {
|
|
754
|
+
let e = Math.max(1, Math.floor(Number(F.value.xAxis.dataLabels.modulo) || 1)), t = ($.value || []).map((e) => e?.text ?? ""), n = (Yn.value || []).map((e) => e?.text ?? ""), r = q.value.start ?? 0, i = r > 0 || t.length < n.length;
|
|
755
|
+
return ie({
|
|
744
756
|
configuredModulo: e,
|
|
745
757
|
visibleTexts: t,
|
|
746
758
|
allTexts: n,
|
|
747
759
|
startAbs: r,
|
|
748
760
|
isZoomed: i
|
|
749
761
|
});
|
|
750
|
-
}),
|
|
751
|
-
let e = F.value.xAxis.dataLabels, t = $.value || [], n =
|
|
762
|
+
}), ir = f(() => {
|
|
763
|
+
let e = F.value.xAxis.dataLabels, t = $.value || [], n = Yn.value || [], r = q.value.start ?? 0, i = A.value, a = K.value, o = t.map((e) => e?.text ?? ""), s = n.map((e) => e?.text ?? ""), c = re(!!e.showOnlyFirstAndLast, !!e.showOnlyAtModulo, rr.value, o, s, r, i, a);
|
|
752
764
|
if (!e.showFirstAndLast || e.showOnlyFirstAndLast || !c.length) return c;
|
|
753
765
|
let l = c.length - 1;
|
|
754
766
|
return c.map((e, t) => t !== 0 && t !== l ? e : {
|
|
755
767
|
...e,
|
|
756
768
|
text: o[t] ?? ""
|
|
757
769
|
});
|
|
758
|
-
}),
|
|
770
|
+
}), ar = f(() => F.value.xAxis.dataLabels.datetimeFormatter.enable ? {
|
|
759
771
|
start: $.value.find((e) => e.absoluteIndex === q.value.start)?.text ?? "",
|
|
760
772
|
end: $.value.find((e) => e.absoluteIndex === q.value.end - 1)?.text ?? ""
|
|
761
773
|
} : {
|
|
762
774
|
start: B.value[q.value.start] ? B.value[q.value.start][0] : B.value[0][0],
|
|
763
775
|
end: B.value[q.value.end - 1] ? B.value[q.value.end - 1][0] : B.value.at(-1)[0]
|
|
764
|
-
}),
|
|
765
|
-
function
|
|
776
|
+
}), or = S(null);
|
|
777
|
+
function sr(e, t) {
|
|
766
778
|
N.value.events.datapointClick && N.value.events.datapointClick({
|
|
767
779
|
datapoint: t,
|
|
768
780
|
seriesIndex: e + q.value.start
|
|
769
781
|
});
|
|
770
782
|
}
|
|
771
|
-
function
|
|
783
|
+
function cr(e, t) {
|
|
772
784
|
N.value.events.datapointLeave && N.value.events.datapointLeave({
|
|
773
785
|
datapoint: t,
|
|
774
786
|
seriesIndex: e + q.value.start
|
|
775
|
-
}), A.value = void 0,
|
|
787
|
+
}), A.value = void 0, Ut.value = !1, M.value = null, sn.value = "pointer";
|
|
776
788
|
}
|
|
777
|
-
|
|
789
|
+
qe(() => D.selectedXIndex, (e) => {
|
|
778
790
|
if ([null, void 0].includes(D.selectedXIndex)) {
|
|
779
791
|
A.value = null;
|
|
780
792
|
return;
|
|
@@ -782,51 +794,51 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
782
794
|
let t = e - q.value.start;
|
|
783
795
|
t < 0 || e >= q.value.end ? A.value = null : A.value = t ?? null;
|
|
784
796
|
}, { immediate: !0 });
|
|
785
|
-
function
|
|
797
|
+
function lr(e, t, r = "pointer") {
|
|
786
798
|
N.value.events.datapointEnter && N.value.events.datapointEnter({
|
|
787
799
|
datapoint: t,
|
|
788
800
|
seriesIndex: e + q.value.start
|
|
789
|
-
}), A.value = e, M.value = e,
|
|
801
|
+
}), A.value = e, M.value = e, sn.value = r, or.value = {
|
|
790
802
|
datapoint: t,
|
|
791
803
|
seriesIndex: e,
|
|
792
804
|
series: Q.value,
|
|
793
805
|
config: N.value
|
|
794
|
-
},
|
|
806
|
+
}, Br({
|
|
795
807
|
seriesIndex: e,
|
|
796
808
|
datapoint: t
|
|
797
809
|
});
|
|
798
810
|
let i = L.value.tooltip.customFormat;
|
|
799
|
-
if (n(i) &&
|
|
811
|
+
if (n(i) && ae(() => i({
|
|
800
812
|
seriesIndex: e,
|
|
801
813
|
datapoint: t,
|
|
802
814
|
series: Q.value,
|
|
803
815
|
config: N.value
|
|
804
|
-
})))
|
|
816
|
+
}))) Wt.value = i({
|
|
805
817
|
seriesIndex: e,
|
|
806
818
|
datapoint: t,
|
|
807
819
|
series: Q.value,
|
|
808
820
|
config: N.value
|
|
809
821
|
});
|
|
810
822
|
else if (L.value.tooltip.show) {
|
|
811
|
-
let n = "", { period: r, open: i, high: a, low: o, close: c, volume: l, isBullish: ee } = Q.value[e], { period:
|
|
823
|
+
let n = "", { period: r, open: i, high: a, low: o, close: c, volume: l, isBullish: ee } = Q.value[e], { period: te, open: u, high: ne, low: re, close: ie, volume: ae } = N.value.translations, oe = F.value.xAxis.dataLabels.datetimeFormatter.enable ? L.value.tooltip.useDefaultTimeFormat ? $.value[e].text : tr.value[e].text : r;
|
|
812
824
|
n += `<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="${P.value.borderRadius * 3}" stroke="${P.value.stroke}" stroke-width="${P.value.strokeWidth}"
|
|
813
|
-
fill="${P.value.gradient.show ? ee ? `url(#bullish_gradient_${k.value})` : `url(#bearish_gradient_${k.value})` : ee ? P.value.colors.bullish : P.value.colors.bearish}"/></svg>${
|
|
814
|
-
let
|
|
825
|
+
fill="${P.value.gradient.show ? ee ? `url(#bullish_gradient_${k.value})` : `url(#bearish_gradient_${k.value})` : ee ? P.value.colors.bullish : P.value.colors.bearish}"/></svg>${oe}</div>`, n += `${ae} : <b>${isNaN(l) ? "-" : Number(l.toFixed(L.value.tooltip.roundingValue)).toLocaleString()}</b>`, n += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${L.value.tooltip.borderColor}">`;
|
|
826
|
+
let se = s({
|
|
815
827
|
p: L.value.tooltip.prefix,
|
|
816
828
|
v: i.value,
|
|
817
829
|
s: L.value.tooltip.suffix,
|
|
818
830
|
r: L.value.tooltip.roundingValue
|
|
819
|
-
}),
|
|
831
|
+
}), ce = s({
|
|
820
832
|
p: L.value.tooltip.prefix,
|
|
821
833
|
v: a.value,
|
|
822
834
|
s: L.value.tooltip.suffix,
|
|
823
835
|
r: L.value.tooltip.roundingValue
|
|
824
|
-
}),
|
|
836
|
+
}), le = s({
|
|
825
837
|
p: L.value.tooltip.prefix,
|
|
826
838
|
v: o.value,
|
|
827
839
|
s: L.value.tooltip.suffix,
|
|
828
840
|
r: L.value.tooltip.roundingValue
|
|
829
|
-
}),
|
|
841
|
+
}), ue = s({
|
|
830
842
|
p: L.value.tooltip.prefix,
|
|
831
843
|
v: c.value,
|
|
832
844
|
s: L.value.tooltip.suffix,
|
|
@@ -839,55 +851,55 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
839
851
|
${t.isBullish ? `
|
|
840
852
|
<line x1="45" x2="50" y1="65" y2="65" stroke="${P.value.colors.bullish}" stroke-width="1.5" stroke-linecap="round" />
|
|
841
853
|
<line x1="50" x2="55" y1="35" y2="35" stroke="${P.value.colors.bullish}" stroke-width="1.5" stroke-linecap="round" />
|
|
842
|
-
<text x="38" y="70" text-anchor="end" fill="${L.value.tooltip.color}">${
|
|
843
|
-
<text x="62" y="40" text-anchor="start" fill="${L.value.tooltip.color}">${
|
|
854
|
+
<text x="38" y="70" text-anchor="end" fill="${L.value.tooltip.color}">${se}</text>
|
|
855
|
+
<text x="62" y="40" text-anchor="start" fill="${L.value.tooltip.color}">${ue}</text>
|
|
844
856
|
` : `
|
|
845
857
|
<line x1="45" x2="50" y1="35" y2="35" stroke="${P.value.colors.bearish}" stroke-width="1.5" stroke-linecap="round" />
|
|
846
858
|
<line x1="50" x2="55" y1="65" y2="65" stroke="${P.value.colors.bearish}" stroke-width="1.5" stroke-linecap="round" />
|
|
847
|
-
<text x="40" y="40" text-anchor="end" fill="${L.value.tooltip.color}">${
|
|
848
|
-
<text x="60" y="70" text-anchor="start" fill="${L.value.tooltip.color}">${
|
|
859
|
+
<text x="40" y="40" text-anchor="end" fill="${L.value.tooltip.color}">${se}</text>
|
|
860
|
+
<text x="60" y="70" text-anchor="start" fill="${L.value.tooltip.color}">${ue}</text>
|
|
849
861
|
`}
|
|
850
|
-
<text x="50" y="13" text-anchor="middle" fill="${L.value.tooltip.color}">${
|
|
851
|
-
<text x="50" y="97" text-anchor="middle" fill="${L.value.tooltip.color}">${
|
|
862
|
+
<text x="50" y="13" text-anchor="middle" fill="${L.value.tooltip.color}">${ce}</text>
|
|
863
|
+
<text x="50" y="97" text-anchor="middle" fill="${L.value.tooltip.color}">${le}</text>
|
|
852
864
|
<g>
|
|
853
865
|
</svg>
|
|
854
866
|
<div>
|
|
855
|
-
` : (n += `<div>${
|
|
867
|
+
` : (n += `<div>${u}: <b>${se}</b></div>`, n += `<div>${ne}: <b>${ce}</b></div>`, n += `<div>${re}: <b>${le}</b></div>`, n += `<div>${ie}: <b>${ue}</b></div>`), n += "</div>", Wt.value = `<div style="text-align:right">${n}</div>`;
|
|
856
868
|
}
|
|
857
|
-
|
|
869
|
+
Ut.value = !0;
|
|
858
870
|
}
|
|
859
|
-
let
|
|
860
|
-
function
|
|
871
|
+
let ur = S(null);
|
|
872
|
+
function dr() {
|
|
861
873
|
return new Promise((e) => requestAnimationFrame(() => requestAnimationFrame(() => e())));
|
|
862
874
|
}
|
|
863
|
-
|
|
864
|
-
|
|
875
|
+
Ve(() => {
|
|
876
|
+
ur.value && cancelAnimationFrame(ur.value);
|
|
865
877
|
});
|
|
866
|
-
async function
|
|
867
|
-
|
|
868
|
-
await
|
|
878
|
+
async function fr() {
|
|
879
|
+
gr(), await ze(), ur.value && cancelAnimationFrame(ur.value), ur.value = requestAnimationFrame(async () => {
|
|
880
|
+
await dr(), gr();
|
|
869
881
|
});
|
|
870
882
|
}
|
|
871
|
-
let
|
|
872
|
-
function
|
|
873
|
-
if (!
|
|
874
|
-
|
|
883
|
+
let pr = S(!1), mr = S(!1), hr = S(!1);
|
|
884
|
+
function gr() {
|
|
885
|
+
if (!pr.value) {
|
|
886
|
+
pr.value = !0;
|
|
875
887
|
try {
|
|
876
|
-
let { startIndex: e, endIndex: t } = L.value.zoom, n = K.value, r = e ?? 0, i = t == null ? n : Math.min(
|
|
877
|
-
|
|
888
|
+
let { startIndex: e, endIndex: t } = L.value.zoom, n = K.value, r = e ?? 0, i = t == null ? n : Math.min(_r(t + 1), n);
|
|
889
|
+
hr.value = !0, q.value.start = r, q.value.end = i, J.value.start = r, J.value.end = i, Ln(), mr.value = !0;
|
|
878
890
|
} finally {
|
|
879
891
|
queueMicrotask(() => {
|
|
880
|
-
|
|
881
|
-
}),
|
|
892
|
+
hr.value = !1;
|
|
893
|
+
}), pr.value = !1;
|
|
882
894
|
}
|
|
883
895
|
}
|
|
884
896
|
}
|
|
885
|
-
function
|
|
897
|
+
function _r(e) {
|
|
886
898
|
let t = K.value;
|
|
887
899
|
return e > t ? t : e < 0 || e < q.value.start ? L.value.zoom.startIndex === null ? 1 : L.value.zoom.startIndex + 1 : e;
|
|
888
900
|
}
|
|
889
|
-
function
|
|
890
|
-
|
|
901
|
+
function vr(e = null) {
|
|
902
|
+
ze(() => {
|
|
891
903
|
let n = [
|
|
892
904
|
N.value.translations.period,
|
|
893
905
|
N.value.translations.open,
|
|
@@ -918,7 +930,7 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
918
930
|
});
|
|
919
931
|
});
|
|
920
932
|
}
|
|
921
|
-
let
|
|
933
|
+
let yr = f(() => {
|
|
922
934
|
let e = Q.value.map((e, t) => {
|
|
923
935
|
let n = F.value.xAxis.dataLabels.datetimeFormatter.enable ? $.value?.[t]?.text ?? "" : e.period, r = s({
|
|
924
936
|
p: N.value.table.td.prefix,
|
|
@@ -1003,23 +1015,23 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1003
1015
|
config: n,
|
|
1004
1016
|
colNames: r
|
|
1005
1017
|
};
|
|
1006
|
-
}),
|
|
1007
|
-
function
|
|
1008
|
-
|
|
1018
|
+
}), br = S(!1);
|
|
1019
|
+
function xr(e) {
|
|
1020
|
+
br.value = e, Gt.value += 1;
|
|
1009
1021
|
}
|
|
1010
|
-
function
|
|
1022
|
+
function Sr() {
|
|
1011
1023
|
U.value.showTable = !U.value.showTable;
|
|
1012
1024
|
}
|
|
1013
|
-
function
|
|
1025
|
+
function Cr() {
|
|
1014
1026
|
U.value.showTooltip = !U.value.showTooltip;
|
|
1015
1027
|
}
|
|
1016
|
-
let
|
|
1017
|
-
function
|
|
1018
|
-
|
|
1028
|
+
let wr = S(!1);
|
|
1029
|
+
function Tr() {
|
|
1030
|
+
wr.value = !wr.value;
|
|
1019
1031
|
}
|
|
1020
|
-
async function
|
|
1032
|
+
async function Er({ scale: e = 2 } = {}) {
|
|
1021
1033
|
if (!j.value) return;
|
|
1022
|
-
let { imageUri: t, base64: n } = await
|
|
1034
|
+
let { imageUri: t, base64: n } = await we({
|
|
1023
1035
|
domElement: j.value,
|
|
1024
1036
|
base64: !0,
|
|
1025
1037
|
img: !0,
|
|
@@ -1028,7 +1040,7 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1028
1040
|
width: r.width,
|
|
1029
1041
|
height: r.height,
|
|
1030
1042
|
aspectRatio: r.height ? r.width / r.height : 0
|
|
1031
|
-
}, a = await
|
|
1043
|
+
}, a = await se(t, e) ?? i;
|
|
1032
1044
|
return {
|
|
1033
1045
|
imageUri: t,
|
|
1034
1046
|
base64: n,
|
|
@@ -1036,9 +1048,9 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1036
1048
|
...a
|
|
1037
1049
|
};
|
|
1038
1050
|
}
|
|
1039
|
-
let
|
|
1040
|
-
|
|
1041
|
-
timeLabelsEls:
|
|
1051
|
+
let Dr = f(() => V.value.width), Or = f(() => V.value.height);
|
|
1052
|
+
Ce({
|
|
1053
|
+
timeLabelsEls: tn,
|
|
1042
1054
|
timeLabels: $,
|
|
1043
1055
|
slicer: q,
|
|
1044
1056
|
configRef: N,
|
|
@@ -1061,28 +1073,28 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1061
1073
|
],
|
|
1062
1074
|
isAutoSize: !1,
|
|
1063
1075
|
rotation: F.value.xAxis.dataLabels.autoRotate.angle,
|
|
1064
|
-
width:
|
|
1065
|
-
height:
|
|
1066
|
-
}),
|
|
1076
|
+
width: Dr,
|
|
1077
|
+
height: Or
|
|
1078
|
+
}), qe(N, () => {
|
|
1067
1079
|
U.value = {
|
|
1068
1080
|
showTable: N.value.table.show,
|
|
1069
1081
|
showTooltip: L.value.tooltip.show
|
|
1070
1082
|
};
|
|
1071
1083
|
}, { immediate: !0 });
|
|
1072
|
-
let
|
|
1084
|
+
let kr = f(() => {
|
|
1073
1085
|
let e = N.value.table.useDialog && !N.value.table.show, t = U.value.showTable;
|
|
1074
1086
|
return {
|
|
1075
|
-
component: e ?
|
|
1087
|
+
component: e ? It : jt,
|
|
1076
1088
|
title: `${L.value.title.text}${L.value.title.subtitle.text ? `: ${L.value.title.subtitle.text}` : ""}`,
|
|
1077
1089
|
props: e ? {
|
|
1078
1090
|
backgroundColor: N.value.table.th.backgroundColor,
|
|
1079
1091
|
color: N.value.table.th.color,
|
|
1080
1092
|
headerColor: N.value.table.th.color,
|
|
1081
1093
|
headerBg: N.value.table.th.backgroundColor,
|
|
1082
|
-
isFullscreen:
|
|
1094
|
+
isFullscreen: br.value,
|
|
1083
1095
|
fullscreenParent: j.value,
|
|
1084
1096
|
forcedWidth: Math.min(800, window.innerWidth * .8),
|
|
1085
|
-
isCursorPointer:
|
|
1097
|
+
isCursorPointer: un.value
|
|
1086
1098
|
} : {
|
|
1087
1099
|
hideDetails: !0,
|
|
1088
1100
|
config: {
|
|
@@ -1100,42 +1112,42 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1100
1112
|
}
|
|
1101
1113
|
};
|
|
1102
1114
|
});
|
|
1103
|
-
|
|
1104
|
-
N.value.table.show || (e && N.value.table.useDialog &&
|
|
1115
|
+
qe(() => U.value.showTable, (e) => {
|
|
1116
|
+
N.value.table.show || (e && N.value.table.useDialog && nn.value ? nn.value.open() : "close" in nn.value && nn.value.close());
|
|
1105
1117
|
});
|
|
1106
|
-
function
|
|
1107
|
-
U.value.showTable = !1,
|
|
1118
|
+
function Ar() {
|
|
1119
|
+
U.value.showTable = !1, rn.value && rn.value.setTableIconState(!1);
|
|
1108
1120
|
}
|
|
1109
|
-
let
|
|
1110
|
-
svg:
|
|
1111
|
-
title:
|
|
1121
|
+
let jr = f(() => L.value.backgroundColor), Mr = f(() => L.value.title), { isCallbackImaging: Nr, isCallbackSvg: Pr, generateSvg: Fr, onGenerateImage: Ir } = xe({
|
|
1122
|
+
svg: gn,
|
|
1123
|
+
title: Mr,
|
|
1112
1124
|
legend: null,
|
|
1113
1125
|
legendItems: null,
|
|
1114
|
-
backgroundColor:
|
|
1126
|
+
backgroundColor: jr,
|
|
1115
1127
|
getSvgCallback: () => N.value.userOptions.callbacks.svg,
|
|
1116
|
-
generateImage:
|
|
1128
|
+
generateImage: On
|
|
1117
1129
|
});
|
|
1118
|
-
function
|
|
1119
|
-
|
|
1130
|
+
function Lr(e) {
|
|
1131
|
+
an.value = e;
|
|
1120
1132
|
}
|
|
1121
|
-
function
|
|
1122
|
-
|
|
1133
|
+
function Rr(e) {
|
|
1134
|
+
pr.value || hr.value || e !== q.value.start && (q.value.start = e, J.value.start = e, Ln());
|
|
1123
1135
|
}
|
|
1124
|
-
function
|
|
1125
|
-
if (
|
|
1126
|
-
let t =
|
|
1127
|
-
t !== q.value.end && (q.value.end = t, J.value.end = t,
|
|
1136
|
+
function zr(e) {
|
|
1137
|
+
if (pr.value || hr.value) return;
|
|
1138
|
+
let t = _r(e);
|
|
1139
|
+
t !== q.value.end && (q.value.end = t, J.value.end = t, Ln());
|
|
1128
1140
|
}
|
|
1129
|
-
function
|
|
1141
|
+
function Br({ seriesIndex: e, datapoint: t }) {
|
|
1130
1142
|
let n = q.value.start + e;
|
|
1131
|
-
|
|
1143
|
+
Bt("selectX", {
|
|
1132
1144
|
dataset: t,
|
|
1133
1145
|
index: n,
|
|
1134
1146
|
indexLabel: ""
|
|
1135
1147
|
});
|
|
1136
1148
|
}
|
|
1137
|
-
async function
|
|
1138
|
-
if (
|
|
1149
|
+
async function Vr() {
|
|
1150
|
+
if (Bt("copyAlt", {
|
|
1139
1151
|
config: N.value,
|
|
1140
1152
|
dataset: Q.value
|
|
1141
1153
|
}), !N.value.userOptions.callbacks.altCopy) {
|
|
@@ -1147,73 +1159,73 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1147
1159
|
dataset: Q.value
|
|
1148
1160
|
}));
|
|
1149
1161
|
}
|
|
1150
|
-
function
|
|
1151
|
-
M.value = null,
|
|
1162
|
+
function Hr() {
|
|
1163
|
+
M.value = null, cn.value = !0;
|
|
1152
1164
|
}
|
|
1153
|
-
function
|
|
1154
|
-
M.value = null,
|
|
1165
|
+
function Ur() {
|
|
1166
|
+
M.value = null, sn.value = "pointer", Ut.value = !1, A.value = void 0, cn.value = !1;
|
|
1155
1167
|
}
|
|
1156
|
-
function
|
|
1157
|
-
if (!
|
|
1168
|
+
function Wr(e) {
|
|
1169
|
+
if (!gn.value || wr.value || document.activeElement !== gn.value || !Q.value.length) return;
|
|
1158
1170
|
let t = e.key === "ArrowLeft", n = e.key === "ArrowRight", r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
1159
1171
|
if (!t && !n && !r && !i) return;
|
|
1160
1172
|
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
1161
|
-
M.value = null,
|
|
1173
|
+
M.value = null, sn.value = "pointer", Ut.value = !1, A.value = void 0;
|
|
1162
1174
|
return;
|
|
1163
1175
|
}
|
|
1164
1176
|
if (r) {
|
|
1165
1177
|
if (M.value === null) return;
|
|
1166
1178
|
let e = Q.value[M.value];
|
|
1167
1179
|
if (!e) return;
|
|
1168
|
-
|
|
1180
|
+
sr(M.value, e);
|
|
1169
1181
|
return;
|
|
1170
1182
|
}
|
|
1171
1183
|
let a = M.value, o = A.value, s = a !== null && a >= 0 && a < Q.value.length, c = o != null && o >= 0 && o < Q.value.length;
|
|
1172
1184
|
s ? n ? (a += 1, a >= Q.value.length && (a = 0)) : t && (--a, a < 0 && (a = Q.value.length - 1)) : c ? (a = n ? o + 1 : o - 1, a >= Q.value.length && (a = 0), a < 0 && (a = Q.value.length - 1)) : a = n ? 0 : Q.value.length - 1;
|
|
1173
1185
|
let l = Q.value[a];
|
|
1174
|
-
l && (
|
|
1186
|
+
l && (Gr(a), lr(a, l, "keyboard"));
|
|
1175
1187
|
}
|
|
1176
|
-
function
|
|
1177
|
-
if (!Number.isFinite(e) || !
|
|
1178
|
-
let t = G.value.left + X.value * e + X.value / 2, n = G.value.top + G.value.height / 2, r =
|
|
1179
|
-
|
|
1188
|
+
function Gr(e) {
|
|
1189
|
+
if (!Number.isFinite(e) || !gn.value) return;
|
|
1190
|
+
let t = G.value.left + X.value * e + X.value / 2, n = G.value.top + G.value.height / 2, r = gn.value.getBoundingClientRect();
|
|
1191
|
+
on.value = {
|
|
1180
1192
|
x: r.left + t / V.value.width * r.width,
|
|
1181
1193
|
y: r.top + n / V.value.height * r.height
|
|
1182
1194
|
};
|
|
1183
1195
|
}
|
|
1184
|
-
let
|
|
1185
|
-
headers:
|
|
1186
|
-
rows:
|
|
1196
|
+
let Kr = f(() => ({
|
|
1197
|
+
headers: yr.value?.colNames ?? [],
|
|
1198
|
+
rows: yr.value?.bodyA11y ?? []
|
|
1187
1199
|
}));
|
|
1188
|
-
return
|
|
1189
|
-
getImage:
|
|
1190
|
-
generatePdf:
|
|
1191
|
-
generateCsv:
|
|
1192
|
-
generateImage:
|
|
1193
|
-
generateSvg:
|
|
1194
|
-
toggleTable:
|
|
1195
|
-
toggleTooltip:
|
|
1196
|
-
toggleAnnotator:
|
|
1197
|
-
toggleFullscreen:
|
|
1198
|
-
copyAlt:
|
|
1200
|
+
return Ee({
|
|
1201
|
+
getImage: Er,
|
|
1202
|
+
generatePdf: Dn,
|
|
1203
|
+
generateCsv: vr,
|
|
1204
|
+
generateImage: On,
|
|
1205
|
+
generateSvg: Fr,
|
|
1206
|
+
toggleTable: Sr,
|
|
1207
|
+
toggleTooltip: Cr,
|
|
1208
|
+
toggleAnnotator: Tr,
|
|
1209
|
+
toggleFullscreen: xr,
|
|
1210
|
+
copyAlt: Vr
|
|
1199
1211
|
}), (e, t) => (x(), h("div", {
|
|
1200
1212
|
ref_key: "candlestickChart",
|
|
1201
1213
|
ref: j,
|
|
1202
|
-
class: y(`vue-data-ui-component vue-ui-candlestick ${
|
|
1203
|
-
style:
|
|
1214
|
+
class: y(`vue-data-ui-component vue-ui-candlestick ${br.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${N.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
1215
|
+
style: Be(`position:relative;font-family:${L.value.fontFamily}; text-align:center;background:${L.value.backgroundColor}; ${N.value.responsive ? "height: 100%" : ""}`),
|
|
1204
1216
|
id: `vue-ui-candlestick_${k.value}`,
|
|
1205
|
-
onMouseenter:
|
|
1206
|
-
onMouseleave:
|
|
1217
|
+
onMouseenter: _n,
|
|
1218
|
+
onMouseleave: vn
|
|
1207
1219
|
}, [
|
|
1208
1220
|
g("div", {
|
|
1209
1221
|
id: `chart-instructions-${k.value}`,
|
|
1210
1222
|
class: "sr-only"
|
|
1211
|
-
}, [g("p", null,
|
|
1212
|
-
|
|
1223
|
+
}, [g("p", null, Ge(N.value.a11y.translations.keyboardNavigation), 1)], 8, Ze),
|
|
1224
|
+
Kr.value?.rows?.length ? (x(), p(je, {
|
|
1213
1225
|
key: 0,
|
|
1214
1226
|
uid: k.value,
|
|
1215
|
-
head:
|
|
1216
|
-
body:
|
|
1227
|
+
head: Kr.value.headers,
|
|
1228
|
+
body: Kr.value.rows,
|
|
1217
1229
|
notice: N.value.a11y.translations.tableAvailable,
|
|
1218
1230
|
caption: N.value.a11y.translations.tableCaption
|
|
1219
1231
|
}, null, 8, [
|
|
@@ -1223,15 +1235,15 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1223
1235
|
"notice",
|
|
1224
1236
|
"caption"
|
|
1225
1237
|
])) : m("", !0),
|
|
1226
|
-
R.value.buttons.annotator ? (x(),
|
|
1238
|
+
R.value.buttons.annotator ? (x(), p(T(Nt), {
|
|
1227
1239
|
key: 1,
|
|
1228
|
-
svgRef: T(
|
|
1240
|
+
svgRef: T(gn),
|
|
1229
1241
|
backgroundColor: L.value.backgroundColor,
|
|
1230
1242
|
color: L.value.color,
|
|
1231
|
-
active:
|
|
1232
|
-
isCursorPointer:
|
|
1243
|
+
active: wr.value,
|
|
1244
|
+
isCursorPointer: un.value,
|
|
1233
1245
|
palette: R.value.annotatorPalette,
|
|
1234
|
-
onClose:
|
|
1246
|
+
onClose: Tr
|
|
1235
1247
|
}, {
|
|
1236
1248
|
"annotator-action-close": E(() => [w(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
1237
1249
|
"annotator-action-color": E(({ color: t }) => [w(e.$slots, "annotator-action-color", b(v({ color: t })), void 0, !0)]),
|
|
@@ -1248,20 +1260,20 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1248
1260
|
"isCursorPointer",
|
|
1249
1261
|
"palette"
|
|
1250
1262
|
])) : m("", !0),
|
|
1251
|
-
|
|
1263
|
+
kn.value ? (x(), h("div", {
|
|
1252
1264
|
key: 2,
|
|
1253
1265
|
ref_key: "noTitle",
|
|
1254
|
-
ref:
|
|
1266
|
+
ref: Xt,
|
|
1255
1267
|
class: "vue-data-ui-no-title-space",
|
|
1256
1268
|
style: "height:36px; width: 100%;background:transparent"
|
|
1257
1269
|
}, null, 512)) : m("", !0),
|
|
1258
1270
|
L.value.title.text ? (x(), h("div", {
|
|
1259
1271
|
key: 3,
|
|
1260
1272
|
ref_key: "chartTitle",
|
|
1261
|
-
ref:
|
|
1273
|
+
ref: Kt,
|
|
1262
1274
|
style: "width:100%;background:transparent"
|
|
1263
|
-
}, [(x(),
|
|
1264
|
-
key: `title_${
|
|
1275
|
+
}, [(x(), p(Te, {
|
|
1276
|
+
key: `title_${$t.value}`,
|
|
1265
1277
|
config: {
|
|
1266
1278
|
title: {
|
|
1267
1279
|
cy: "candlestick-div-title",
|
|
@@ -1273,14 +1285,14 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1273
1285
|
}
|
|
1274
1286
|
}
|
|
1275
1287
|
}, null, 8, ["config"]))], 512)) : m("", !0),
|
|
1276
|
-
R.value.show &&
|
|
1288
|
+
R.value.show && Vt.value && (T(hn) || T(pn)) ? (x(), p(T(Pt), {
|
|
1277
1289
|
ref_key: "userOptionsRef",
|
|
1278
|
-
ref:
|
|
1279
|
-
key: `user_options_${
|
|
1290
|
+
ref: rn,
|
|
1291
|
+
key: `user_options_${Gt.value}`,
|
|
1280
1292
|
backgroundColor: L.value.backgroundColor,
|
|
1281
1293
|
color: L.value.color,
|
|
1282
|
-
isImaging: T(
|
|
1283
|
-
isPrinting: T(
|
|
1294
|
+
isImaging: T(En),
|
|
1295
|
+
isPrinting: T(Tn),
|
|
1284
1296
|
uid: k.value,
|
|
1285
1297
|
hasTooltip: R.value.buttons.tooltip && L.value.tooltip.show,
|
|
1286
1298
|
hasPdf: R.value.buttons.pdf,
|
|
@@ -1290,28 +1302,28 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1290
1302
|
hasTable: R.value.buttons.table,
|
|
1291
1303
|
hasFullscreen: R.value.buttons.fullscreen,
|
|
1292
1304
|
hasAltCopy: R.value.buttons.altCopy,
|
|
1293
|
-
isFullscreen:
|
|
1305
|
+
isFullscreen: br.value,
|
|
1294
1306
|
isTooltip: U.value.showTooltip,
|
|
1295
1307
|
titles: { ...R.value.buttonTitles },
|
|
1296
1308
|
chartElement: j.value,
|
|
1297
1309
|
position: R.value.position,
|
|
1298
1310
|
hasAnnotator: R.value.buttons.annotator,
|
|
1299
|
-
isAnnotation:
|
|
1311
|
+
isAnnotation: wr.value,
|
|
1300
1312
|
callbacks: R.value.callbacks,
|
|
1301
1313
|
printScale: R.value.print.scale,
|
|
1302
1314
|
tableDialog: N.value.table.useDialog,
|
|
1303
|
-
isCursorPointer:
|
|
1304
|
-
onToggleFullscreen:
|
|
1305
|
-
onGeneratePdf: T(
|
|
1306
|
-
onGenerateCsv:
|
|
1307
|
-
onGenerateImage: T(
|
|
1308
|
-
onGenerateSvg: T(
|
|
1309
|
-
onToggleTable:
|
|
1310
|
-
onToggleTooltip:
|
|
1311
|
-
onToggleAnnotator:
|
|
1312
|
-
onCopyAlt:
|
|
1313
|
-
style:
|
|
1314
|
-
},
|
|
1315
|
+
isCursorPointer: un.value,
|
|
1316
|
+
onToggleFullscreen: xr,
|
|
1317
|
+
onGeneratePdf: T(Dn),
|
|
1318
|
+
onGenerateCsv: vr,
|
|
1319
|
+
onGenerateImage: T(Ir),
|
|
1320
|
+
onGenerateSvg: T(Fr),
|
|
1321
|
+
onToggleTable: Sr,
|
|
1322
|
+
onToggleTooltip: Cr,
|
|
1323
|
+
onToggleAnnotator: Tr,
|
|
1324
|
+
onCopyAlt: Vr,
|
|
1325
|
+
style: Be({ visibility: T(hn) ? T(pn) ? "visible" : "hidden" : "visible" })
|
|
1326
|
+
}, Fe({ _: 2 }, [
|
|
1315
1327
|
e.$slots.menuIcon ? {
|
|
1316
1328
|
name: "menuIcon",
|
|
1317
1329
|
fn: E(({ isOpen: t, color: n }) => [w(e.$slots, "menuIcon", b(v({
|
|
@@ -1382,24 +1394,24 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1382
1394
|
key: "11"
|
|
1383
1395
|
} : void 0
|
|
1384
1396
|
]), 1032, /* @__PURE__ */ "backgroundColor.color.isImaging.isPrinting.uid.hasTooltip.hasPdf.hasImg.hasSvg.hasXls.hasTable.hasFullscreen.hasAltCopy.isFullscreen.isTooltip.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.onGenerateImage.onGenerateSvg.style".split("."))) : m("", !0),
|
|
1385
|
-
g("div",
|
|
1397
|
+
g("div", Qe, [(x(), h("svg", {
|
|
1386
1398
|
ref_key: "svgRef",
|
|
1387
|
-
ref:
|
|
1388
|
-
xmlns: T(
|
|
1399
|
+
ref: gn,
|
|
1400
|
+
xmlns: T(le),
|
|
1389
1401
|
"aria-describedby": `chart-instructions-${k.value}`,
|
|
1390
1402
|
class: y({
|
|
1391
|
-
"vue-data-ui-fullscreen--on":
|
|
1392
|
-
"vue-data-ui-fulscreen--off": !
|
|
1393
|
-
"vue-data-ui-no-transition": !T(
|
|
1403
|
+
"vue-data-ui-fullscreen--on": br.value,
|
|
1404
|
+
"vue-data-ui-fulscreen--off": !br.value,
|
|
1405
|
+
"vue-data-ui-no-transition": !T(ln)
|
|
1394
1406
|
}),
|
|
1395
1407
|
viewBox: `0 0 ${V.value.width <= 0 ? 10 : V.value.width} ${V.value.height <= 0 ? 10 : V.value.height}`,
|
|
1396
|
-
style:
|
|
1408
|
+
style: Be(`max-width:100%;overflow:visible;background:transparent;color:${L.value.color}`),
|
|
1397
1409
|
tabindex: "0",
|
|
1398
|
-
onFocus:
|
|
1399
|
-
onBlur:
|
|
1400
|
-
onKeydown:
|
|
1410
|
+
onFocus: Hr,
|
|
1411
|
+
onBlur: Ur,
|
|
1412
|
+
onKeydown: Wr
|
|
1401
1413
|
}, [
|
|
1402
|
-
|
|
1414
|
+
Le(T(Ft)),
|
|
1403
1415
|
e.$slots["chart-background"] ? (x(), h("foreignObject", {
|
|
1404
1416
|
key: 0,
|
|
1405
1417
|
x: G.value.left,
|
|
@@ -1407,9 +1419,9 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1407
1419
|
width: Math.max(.1, G.value.width),
|
|
1408
1420
|
height: Math.max(.1, G.value.height),
|
|
1409
1421
|
style: { pointerEvents: "none" }
|
|
1410
|
-
}, [w(e.$slots, "chart-background", {}, void 0, !0)], 8,
|
|
1411
|
-
Q.value.length > 0 ? (x(), h("g",
|
|
1412
|
-
g("defs", null, [
|
|
1422
|
+
}, [w(e.$slots, "chart-background", {}, void 0, !0)], 8, et)) : m("", !0),
|
|
1423
|
+
Q.value.length > 0 ? (x(), h("g", tt, [
|
|
1424
|
+
g("defs", null, [Le(ke, {
|
|
1413
1425
|
t: "linear",
|
|
1414
1426
|
id: `bearish_gradient_${k.value}`,
|
|
1415
1427
|
x2: "0%",
|
|
@@ -1431,7 +1443,7 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1431
1443
|
.4
|
|
1432
1444
|
]
|
|
1433
1445
|
]
|
|
1434
|
-
}, null, 8, ["id", "stops"]),
|
|
1446
|
+
}, null, 8, ["id", "stops"]), Le(ke, {
|
|
1435
1447
|
t: "linear",
|
|
1436
1448
|
id: `bullish_gradient_${k.value}`,
|
|
1437
1449
|
x2: "0%",
|
|
@@ -1454,7 +1466,7 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1454
1466
|
]
|
|
1455
1467
|
]
|
|
1456
1468
|
}, null, 8, ["id", "stops"])]),
|
|
1457
|
-
F.value.show ? (x(), h("g",
|
|
1469
|
+
F.value.show ? (x(), h("g", nt, [
|
|
1458
1470
|
g("line", {
|
|
1459
1471
|
x1: W.value ? G.value.right : G.value.left,
|
|
1460
1472
|
x2: W.value ? G.value.right : G.value.left,
|
|
@@ -1463,7 +1475,7 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1463
1475
|
stroke: F.value.stroke,
|
|
1464
1476
|
"stroke-width": F.value.strokeWidth,
|
|
1465
1477
|
"stroke-linecap": "round"
|
|
1466
|
-
}, null, 8,
|
|
1478
|
+
}, null, 8, rt),
|
|
1467
1479
|
g("line", {
|
|
1468
1480
|
x1: G.value.left,
|
|
1469
1481
|
x2: G.value.right,
|
|
@@ -1472,8 +1484,8 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1472
1484
|
stroke: F.value.stroke,
|
|
1473
1485
|
"stroke-width": F.value.strokeWidth,
|
|
1474
1486
|
"stroke-linecap": "round"
|
|
1475
|
-
}, null, 8,
|
|
1476
|
-
F.value.horizontalLines.show ? (x(!0), h(
|
|
1487
|
+
}, null, 8, it),
|
|
1488
|
+
F.value.horizontalLines.show ? (x(!0), h(d, { key: 0 }, C(qn.value, (e) => (x(), h("line", {
|
|
1477
1489
|
x1: G.value.left,
|
|
1478
1490
|
x2: G.value.right,
|
|
1479
1491
|
y1: e.y,
|
|
@@ -1482,8 +1494,8 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1482
1494
|
"stroke-width": F.value.horizontalLines.strokeWidth,
|
|
1483
1495
|
"stroke-dasharray": F.value.horizontalLines.strokeDasharray,
|
|
1484
1496
|
"stroke-linecap": "round"
|
|
1485
|
-
}, null, 8,
|
|
1486
|
-
F.value.verticalLines.show ? (x(!0), h(
|
|
1497
|
+
}, null, 8, at))), 256)) : m("", !0),
|
|
1498
|
+
F.value.verticalLines.show ? (x(!0), h(d, { key: 1 }, C(ir.value, (e, t) => (x(), h("g", null, [e.text ? (x(), h("line", {
|
|
1487
1499
|
key: 0,
|
|
1488
1500
|
x1: G.value.left + X.value * t + X.value / 2,
|
|
1489
1501
|
x2: G.value.left + X.value * t + X.value / 2,
|
|
@@ -1493,8 +1505,8 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1493
1505
|
"stroke-width": F.value.verticalLines.strokeWidth,
|
|
1494
1506
|
"stroke-dasharray": F.value.verticalLines.strokeDasharray,
|
|
1495
1507
|
"stroke-linecap": "round"
|
|
1496
|
-
}, null, 8,
|
|
1497
|
-
F.value.xAxis.ticks.show ? (x(!0), h(
|
|
1508
|
+
}, null, 8, ot)) : m("", !0)]))), 256)) : m("", !0),
|
|
1509
|
+
F.value.xAxis.ticks.show ? (x(!0), h(d, { key: 2 }, C(ir.value, (e, t) => (x(), h("g", null, [e.text ? (x(), h("line", {
|
|
1498
1510
|
key: 0,
|
|
1499
1511
|
x1: G.value.left + X.value * t + X.value / 2,
|
|
1500
1512
|
x2: G.value.left + X.value * t + X.value / 2,
|
|
@@ -1503,13 +1515,13 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1503
1515
|
stroke: F.value.stroke,
|
|
1504
1516
|
"stroke-width": F.value.strokeWidth,
|
|
1505
1517
|
"stroke-linecap": "round"
|
|
1506
|
-
}, null, 8,
|
|
1518
|
+
}, null, 8, st)) : m("", !0)]))), 256)) : m("", !0)
|
|
1507
1519
|
])) : m("", !0),
|
|
1508
1520
|
F.value.yAxis.dataLabels.show ? (x(), h("g", {
|
|
1509
1521
|
key: 1,
|
|
1510
1522
|
ref_key: "scaleLabels",
|
|
1511
|
-
ref:
|
|
1512
|
-
}, [(x(!0), h(
|
|
1523
|
+
ref: en
|
|
1524
|
+
}, [(x(!0), h(d, null, C(qn.value, (e, t) => (x(), h("g", { key: `sl_${t}` }, [e.value >= Z.value.min && e.value <= Z.value.max ? (x(), h("line", {
|
|
1513
1525
|
key: 0,
|
|
1514
1526
|
x1: W.value ? G.value.right : G.value.left,
|
|
1515
1527
|
x2: W.value ? G.value.right + 5 : G.value.left - 5,
|
|
@@ -1518,37 +1530,37 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1518
1530
|
stroke: F.value.stroke,
|
|
1519
1531
|
"stroke-width": F.value.strokeWidth,
|
|
1520
1532
|
"stroke-linecap": "round"
|
|
1521
|
-
}, null, 8,
|
|
1533
|
+
}, null, 8, ct)) : m("", !0), e.value >= Z.value.min && e.value <= Z.value.max ? (x(), h("text", {
|
|
1522
1534
|
key: 1,
|
|
1523
|
-
class: y({ "vue-data-ui-transition": T(
|
|
1535
|
+
class: y({ "vue-data-ui-transition": T(ln) }),
|
|
1524
1536
|
transform: `translate(${W.value ? G.value.right + 8 + F.value.yAxis.dataLabels.offsetX : G.value.left - 8 + F.value.yAxis.dataLabels.offsetX}, ${e.y + V.value.yAxisFontSize / 3})`,
|
|
1525
1537
|
"text-anchor": W.value ? "start" : "end",
|
|
1526
1538
|
"font-size": V.value.yAxisFontSize,
|
|
1527
1539
|
fill: F.value.yAxis.dataLabels.color,
|
|
1528
1540
|
"font-weight": F.value.yAxis.dataLabels.bold ? "bold" : "normal"
|
|
1529
|
-
},
|
|
1541
|
+
}, Ge(T(s)({
|
|
1530
1542
|
p: F.value.yAxis.dataLabels.prefix,
|
|
1531
1543
|
v: e.value,
|
|
1532
1544
|
s: F.value.yAxis.dataLabels.suffix,
|
|
1533
1545
|
r: F.value.yAxis.dataLabels.roundingValue
|
|
1534
|
-
})), 11,
|
|
1546
|
+
})), 11, lt)) : m("", !0)]))), 128))], 512)) : m("", !0),
|
|
1535
1547
|
F.value.xAxis.dataLabels.show && !F.value.xAxis.dataLabels.datetimeFormatter.enable ? (x(), h("g", {
|
|
1536
1548
|
key: 2,
|
|
1537
1549
|
ref_key: "timeLabelsEls",
|
|
1538
|
-
ref:
|
|
1539
|
-
}, [(x(!0), h(
|
|
1550
|
+
ref: tn
|
|
1551
|
+
}, [(x(!0), h(d, null, C(Jn.value, (e, t) => (x(), h("g", null, [g("text", {
|
|
1540
1552
|
class: "vue-data-ui-time-label",
|
|
1541
1553
|
transform: `translate(${G.value.left + X.value * t + X.value / 2}, ${G.value.bottom + V.value.xAxisFontSize * 1.5}), rotate(${F.value.xAxis.dataLabels.rotation})`,
|
|
1542
1554
|
"text-anchor": F.value.xAxis.dataLabels.rotation > 0 ? "start" : F.value.xAxis.dataLabels.rotation < 0 ? "end" : "middle",
|
|
1543
1555
|
"font-size": V.value.xAxisFontSize,
|
|
1544
1556
|
fill: F.value.xAxis.dataLabels.color,
|
|
1545
1557
|
"font-weight": F.value.xAxis.dataLabels.bold ? "bold" : "normal"
|
|
1546
|
-
},
|
|
1558
|
+
}, Ge(e), 9, ut)]))), 256))], 512)) : m("", !0),
|
|
1547
1559
|
F.value.xAxis.dataLabels.show && F.value.xAxis.dataLabels.datetimeFormatter.enable ? (x(), h("g", {
|
|
1548
1560
|
key: 3,
|
|
1549
1561
|
ref_key: "timeLabelsEls",
|
|
1550
|
-
ref:
|
|
1551
|
-
}, [(x(!0), h(
|
|
1562
|
+
ref: tn
|
|
1563
|
+
}, [(x(!0), h(d, null, C(ir.value, (e, t) => (x(), h("g", null, [g("text", {
|
|
1552
1564
|
class: "vue-data-ui-time-label",
|
|
1553
1565
|
transform: `translate(${G.value.left + X.value * t + X.value / 2}, ${G.value.bottom + V.value.xAxisFontSize * 1.5}), rotate(${F.value.xAxis.dataLabels.rotation})`,
|
|
1554
1566
|
"text-anchor": F.value.xAxis.dataLabels.rotation > 0 ? "start" : F.value.xAxis.dataLabels.rotation < 0 ? "end" : "middle",
|
|
@@ -1560,8 +1572,8 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1560
1572
|
"stroke-linejoin": "round",
|
|
1561
1573
|
"paint-order": "stroke fill",
|
|
1562
1574
|
"font-weight": F.value.xAxis.dataLabels.bold ? "bold" : "normal"
|
|
1563
|
-
},
|
|
1564
|
-
N.value.type === "candlestick" ? (x(), h(
|
|
1575
|
+
}, Ge(e?.text ?? ""), 9, dt)]))), 256))], 512)) : m("", !0),
|
|
1576
|
+
N.value.type === "candlestick" ? (x(), h(d, { key: 4 }, [g("g", null, [(x(!0), h(d, null, C(Q.value, (e, t) => (x(), h("g", null, [
|
|
1565
1577
|
g("rect", {
|
|
1566
1578
|
x: e.open.x - I.value.wick.strokeWidth / 2,
|
|
1567
1579
|
y: e.high.y,
|
|
@@ -1571,21 +1583,21 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1571
1583
|
stroke: "none",
|
|
1572
1584
|
rx: I.value.wick.strokeWidth / 2,
|
|
1573
1585
|
class: y({ "vue-data-ui-transition": O.value && !T(z) })
|
|
1574
|
-
}, null, 10,
|
|
1575
|
-
I.value.wick.extremity.shape === "circle" ? (x(), h("g",
|
|
1586
|
+
}, null, 10, ft),
|
|
1587
|
+
I.value.wick.extremity.shape === "circle" ? (x(), h("g", pt, [g("circle", {
|
|
1576
1588
|
cx: e.high.x,
|
|
1577
1589
|
cy: e.high.y,
|
|
1578
1590
|
r: I.value.wick.extremity.size === "auto" ? X.value / 20 : I.value.wick.extremity.size,
|
|
1579
1591
|
fill: I.value.wick.extremity.color,
|
|
1580
1592
|
class: y({ "vue-data-ui-transition": O.value && !T(z) })
|
|
1581
|
-
}, null, 10,
|
|
1593
|
+
}, null, 10, mt), g("circle", {
|
|
1582
1594
|
cx: e.low.x,
|
|
1583
1595
|
cy: e.low.y,
|
|
1584
1596
|
r: I.value.wick.extremity.size === "auto" ? X.value / 20 : I.value.wick.extremity.size,
|
|
1585
1597
|
fill: I.value.wick.extremity.color,
|
|
1586
1598
|
class: y({ "vue-data-ui-transition": O.value && !T(z) })
|
|
1587
|
-
}, null, 10,
|
|
1588
|
-
I.value.wick.extremity.shape === "line" ? (x(), h("g",
|
|
1599
|
+
}, null, 10, ht)])) : m("", !0),
|
|
1600
|
+
I.value.wick.extremity.shape === "line" ? (x(), h("g", gt, [g("rect", {
|
|
1589
1601
|
x: e.high.x - (I.value.wick.extremity.size === "auto" ? X.value * I.value.candle.widthRatio : I.value.wick.extremity.size) / 2,
|
|
1590
1602
|
y: e.high.y - I.value.wick.strokeWidth / 2,
|
|
1591
1603
|
width: Math.abs(e.high.x - (I.value.wick.extremity.size === "auto" ? X.value * L.value.layout.candle.widthRatio : L.value.layout.wick.extremity.size) / 2 - (e.high.x + (L.value.layout.wick.extremity.size === "auto" ? X.value * L.value.layout.candle.widthRatio : L.value.layout.wick.extremity.size) / 2)),
|
|
@@ -1594,7 +1606,7 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1594
1606
|
fill: I.value.wick.extremity.color,
|
|
1595
1607
|
stroke: "none",
|
|
1596
1608
|
class: y({ "vue-data-ui-transition": O.value && !T(z) })
|
|
1597
|
-
}, null, 10,
|
|
1609
|
+
}, null, 10, _t), g("rect", {
|
|
1598
1610
|
x: e.low.x - (I.value.wick.extremity.size === "auto" ? X.value * I.value.candle.widthRatio : I.value.wick.extremity.size) / 2,
|
|
1599
1611
|
y: e.low.y - I.value.wick.strokeWidth / 2,
|
|
1600
1612
|
width: Math.abs(e.low.x - (I.value.wick.extremity.size === "auto" ? X.value * L.value.layout.candle.widthRatio : L.value.layout.wick.extremity.size) / 2 - (e.low.x + (L.value.layout.wick.extremity.size === "auto" ? X.value * L.value.layout.candle.widthRatio : L.value.layout.wick.extremity.size) / 2)),
|
|
@@ -1603,8 +1615,8 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1603
1615
|
stroke: "none",
|
|
1604
1616
|
rx: I.value.wick.strokeWidth / 2,
|
|
1605
1617
|
class: y({ "vue-data-ui-transition": O.value && !T(z) })
|
|
1606
|
-
}, null, 10,
|
|
1607
|
-
]))), 256))]), g("g", null, [(x(!0), h(
|
|
1618
|
+
}, null, 10, vt)])) : m("", !0)
|
|
1619
|
+
]))), 256))]), g("g", null, [(x(!0), h(d, null, C(Q.value, (e, t) => (x(), h("rect", {
|
|
1608
1620
|
x: e.open.x - X.value / 2 + X.value * (1 - P.value.widthRatio) / 2,
|
|
1609
1621
|
y: e.isBullish ? e.close.y : e.open.y,
|
|
1610
1622
|
height: Math.abs(e.close.y - e.open.y) <= 0 ? 1e-4 : Math.abs(e.close.y - e.open.y),
|
|
@@ -1613,7 +1625,7 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1613
1625
|
rx: P.value.borderRadius,
|
|
1614
1626
|
stroke: "none",
|
|
1615
1627
|
class: y({ "vue-data-ui-transition": O.value && !T(z) })
|
|
1616
|
-
}, null, 10,
|
|
1628
|
+
}, null, 10, yt))), 256)), (x(!0), h(d, null, C(Q.value, (e, t) => (x(), h("rect", {
|
|
1617
1629
|
x: e.open.x - X.value / 2 + X.value * (1 - P.value.widthRatio) / 2,
|
|
1618
1630
|
y: e.isBullish ? e.close.y : e.open.y,
|
|
1619
1631
|
height: Math.abs(e.close.y - e.open.y) <= 0 ? 1e-4 : Math.abs(e.close.y - e.open.y),
|
|
@@ -1625,48 +1637,48 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1625
1637
|
"stroke-linecap": "round",
|
|
1626
1638
|
"stroke-linejoin": "round",
|
|
1627
1639
|
class: y({ "vue-data-ui-transition": O.value && !T(z) })
|
|
1628
|
-
}, null, 10,
|
|
1629
|
-
N.value.type === "ohlc" ? (x(!0), h(
|
|
1640
|
+
}, null, 10, bt))), 256))])], 64)) : m("", !0),
|
|
1641
|
+
N.value.type === "ohlc" ? (x(!0), h(d, { key: 5 }, C(Q.value, (e, t) => (x(), h("g", { key: `ohlc_${e.absoluteIndex}` }, [g("path", {
|
|
1630
1642
|
d: `M ${e.high.x},${e.high.y} ${e.low.x},${e.low.y} M${e.open.x - Math.min(6, X.value / 3)},${e.open.y} ${e.open.x},${e.open.y} M${e.close.x},${e.close.y} ${e.close.x + Math.min(6, X.value / 3)},${e.close.y}`,
|
|
1631
1643
|
stroke: e.isBullish ? P.value.colors.bullish : P.value.colors.bearish,
|
|
1632
1644
|
"stroke-width": 1,
|
|
1633
|
-
class: y({ "vue-data-ui-transition": T(
|
|
1645
|
+
class: y({ "vue-data-ui-transition": T(ln) }),
|
|
1634
1646
|
"stroke-linecap": "round",
|
|
1635
1647
|
"stroke-linejoin": "round"
|
|
1636
|
-
}, null, 10,
|
|
1637
|
-
g("g", null, [(x(!0), h(
|
|
1648
|
+
}, null, 10, xt)]))), 128)) : m("", !0),
|
|
1649
|
+
g("g", null, [(x(!0), h(d, null, C(Q.value, (e, t) => (x(), h("rect", {
|
|
1638
1650
|
x: G.value.left + t * X.value,
|
|
1639
1651
|
y: G.value.top,
|
|
1640
1652
|
height: G.value.height <= 0 ? 1e-4 : G.value.height,
|
|
1641
1653
|
width: X.value <= 0 ? 1e-4 : X.value,
|
|
1642
|
-
fill: A.value === t ||
|
|
1643
|
-
onMouseover: () =>
|
|
1644
|
-
onMouseleave: () =>
|
|
1645
|
-
onClick: () =>
|
|
1646
|
-
}, null, 40,
|
|
1654
|
+
fill: A.value === t || an.value === t ? T(a)(I.value.selector.color, I.value.selector.opacity) : "transparent",
|
|
1655
|
+
onMouseover: () => lr(t, e, "pointer"),
|
|
1656
|
+
onMouseleave: () => cr(t, e),
|
|
1657
|
+
onClick: () => sr(t, e)
|
|
1658
|
+
}, null, 40, St))), 256))])
|
|
1647
1659
|
])) : m("", !0),
|
|
1648
|
-
|
|
1660
|
+
Fn.value ? (x(), h("rect", Re({ key: 2 }, Pn.value, {
|
|
1649
1661
|
"data-start": q.value.start,
|
|
1650
1662
|
"data-end": q.value.end
|
|
1651
|
-
}), null, 16,
|
|
1663
|
+
}), null, 16, Ct)) : m("", !0),
|
|
1652
1664
|
w(e.$slots, "svg", { svg: {
|
|
1653
1665
|
...V.value,
|
|
1654
1666
|
data: Q.value,
|
|
1655
1667
|
drawingArea: G.value,
|
|
1656
|
-
isPrintingImg: T(
|
|
1657
|
-
isPrintingSvg: T(
|
|
1668
|
+
isPrintingImg: T(Tn) || T(En) || T(Nr),
|
|
1669
|
+
isPrintingSvg: T(Pr)
|
|
1658
1670
|
} }, void 0, !0)
|
|
1659
|
-
], 46,
|
|
1671
|
+
], 46, $e)), e.$slots.hint ? (x(), h("div", wt, [w(e.$slots, "hint", b(v({
|
|
1660
1672
|
hint: N.value.a11y.translations.keyboardNavigation,
|
|
1661
|
-
isVisible:
|
|
1673
|
+
isVisible: cn.value
|
|
1662
1674
|
})), void 0, !0)])) : m("", !0)]),
|
|
1663
|
-
e.$slots.watermark ? (x(), h("div",
|
|
1664
|
-
L.value.zoom.show && K.value > 6 &&
|
|
1675
|
+
e.$slots.watermark ? (x(), h("div", Tt, [w(e.$slots, "watermark", b(v({ isPrinting: T(Tn) || T(En) || T(Nr) || T(Pr) })), void 0, !0)])) : m("", !0),
|
|
1676
|
+
L.value.zoom.show && K.value > 6 && Vt.value && mr.value ? (x(), p(Ae, {
|
|
1665
1677
|
key: 6,
|
|
1666
1678
|
ref_key: "chartSlicer",
|
|
1667
|
-
ref:
|
|
1679
|
+
ref: Jt,
|
|
1668
1680
|
"data-dom-to-png-ignore-layout": "",
|
|
1669
|
-
allMinimaps:
|
|
1681
|
+
allMinimaps: Gn.value,
|
|
1670
1682
|
background: L.value.zoom.color,
|
|
1671
1683
|
borderColor: L.value.backgroundColor,
|
|
1672
1684
|
customFormat: L.value.zoom.customFormat,
|
|
@@ -1679,9 +1691,9 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1679
1691
|
fontSize: L.value.zoom.fontSize,
|
|
1680
1692
|
immediate: !L.value.zoom.preview.enable,
|
|
1681
1693
|
inputColor: L.value.zoom.color,
|
|
1682
|
-
isPreview:
|
|
1683
|
-
labelLeft:
|
|
1684
|
-
labelRight:
|
|
1694
|
+
isPreview: Fn.value,
|
|
1695
|
+
labelLeft: ar.value.start || "",
|
|
1696
|
+
labelRight: ar.value.end || "",
|
|
1685
1697
|
max: K.value,
|
|
1686
1698
|
min: 0,
|
|
1687
1699
|
minimap: L.value.zoom.minimap.show ? T(B).map((e) => e[2]) : [],
|
|
@@ -1693,7 +1705,7 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1693
1705
|
minimapSelectedColorOpacity: L.value.zoom.minimap.selectedColorOpacity,
|
|
1694
1706
|
minimapSelectedIndex: A.value,
|
|
1695
1707
|
minimapSelectionRadius: 1,
|
|
1696
|
-
preciseLabels:
|
|
1708
|
+
preciseLabels: nr.value,
|
|
1697
1709
|
refreshEndPoint: L.value.zoom.endIndex === null ? K.value : L.value.zoom.endIndex + 1,
|
|
1698
1710
|
refreshStartPoint: L.value.zoom.startIndex === null ? 0 : L.value.zoom.startIndex,
|
|
1699
1711
|
selectColor: L.value.zoom.highlightColor,
|
|
@@ -1701,7 +1713,7 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1701
1713
|
smoothMinimap: !1,
|
|
1702
1714
|
start: q.value.start,
|
|
1703
1715
|
textColor: L.value.color,
|
|
1704
|
-
timeLabels:
|
|
1716
|
+
timeLabels: Yn.value,
|
|
1705
1717
|
usePreciseLabels: F.value.xAxis.dataLabels.datetimeFormatter.enable && !L.value.zoom.useDefaultFormat,
|
|
1706
1718
|
useResetSlot: L.value.zoom.useResetSlot,
|
|
1707
1719
|
valueEnd: q.value.end,
|
|
@@ -1719,43 +1731,43 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1719
1731
|
handleBorderColor: L.value.zoom.minimap.handleBorderColor,
|
|
1720
1732
|
handleFill: L.value.zoom.minimap.handleFill,
|
|
1721
1733
|
handleWidth: L.value.zoom.minimap.handleWidth,
|
|
1722
|
-
"onUpdate:end":
|
|
1723
|
-
"onUpdate:start":
|
|
1724
|
-
onTrapMouse:
|
|
1725
|
-
onReset:
|
|
1726
|
-
onFutureEnd: t[0] ||= (e) =>
|
|
1727
|
-
onFutureStart: t[1] ||= (e) =>
|
|
1734
|
+
"onUpdate:end": zr,
|
|
1735
|
+
"onUpdate:start": Rr,
|
|
1736
|
+
onTrapMouse: Lr,
|
|
1737
|
+
onReset: fr,
|
|
1738
|
+
onFutureEnd: t[0] ||= (e) => In("end", e),
|
|
1739
|
+
onFutureStart: t[1] ||= (e) => In("start", e)
|
|
1728
1740
|
}, {
|
|
1729
1741
|
"reset-action": E(({ reset: t }) => [w(e.$slots, "reset-action", b(v({ reset: t })), void 0, !0)]),
|
|
1730
|
-
slotMap: E(({ height: e, unitW: t }) => [(x(!0), h(
|
|
1742
|
+
slotMap: E(({ height: e, unitW: t }) => [(x(!0), h(d, null, C(Wn.value({
|
|
1731
1743
|
minimapH: e,
|
|
1732
1744
|
unitW: t
|
|
1733
1745
|
}), (e, n) => (x(), h("g", null, [g("path", {
|
|
1734
1746
|
d: `M ${e.high.x},${e.high.y} ${e.low.x},${e.low.y}`,
|
|
1735
1747
|
stroke: e.isBullish ? P.value.colors.bullish : P.value.colors.bearish,
|
|
1736
1748
|
"stroke-width": 1,
|
|
1737
|
-
style:
|
|
1738
|
-
}, null, 12,
|
|
1749
|
+
style: Be({ opacity: n >= J.value.start && n <= J.value.end ? 1 : .6 })
|
|
1750
|
+
}, null, 12, Et), g("path", {
|
|
1739
1751
|
d: `M ${e.open.x},${e.open.y} ${e.close.x},${e.close.y}`,
|
|
1740
1752
|
stroke: e.isBullish ? P.value.colors.bullish : P.value.colors.bearish,
|
|
1741
1753
|
"stroke-width": Math.min(6, t / 1.5),
|
|
1742
|
-
style:
|
|
1743
|
-
}, null, 12,
|
|
1754
|
+
style: Be({ opacity: n >= J.value.start && n <= J.value.end ? 1 : .6 })
|
|
1755
|
+
}, null, 12, Dt)]))), 256))]),
|
|
1744
1756
|
_: 3
|
|
1745
1757
|
}, 8, /* @__PURE__ */ "allMinimaps.background.borderColor.customFormat.enableRangeHandles.enableSelectionDrag.end.focusOnDrag.focusRangeRatio.fontSize.immediate.inputColor.isPreview.labelLeft.labelRight.max.minimap.minimapCompact.minimapFrameColor.minimapIndicatorColor.minimapSelectedColor.minimapSelectedColorOpacity.minimapSelectedIndex.preciseLabels.refreshEndPoint.refreshStartPoint.selectColor.selectedSeries.start.textColor.timeLabels.usePreciseLabels.useResetSlot.valueEnd.valueStart.verticalHandles.minScale.maxScale.maxWidth.minimapLeftInsetRatio.minimapRightInsetRatio.additionalMinimapHeight.handleType.handleIconColor.handleBorderWidth.handleBorderColor.handleFill.handleWidth".split("."))) : m("", !0),
|
|
1746
1758
|
g("div", {
|
|
1747
1759
|
ref_key: "chartLegend",
|
|
1748
|
-
ref:
|
|
1760
|
+
ref: qt
|
|
1749
1761
|
}, [w(e.$slots, "legend", { legend: Q.value }, void 0, !0)], 512),
|
|
1750
1762
|
e.$slots.source ? (x(), h("div", {
|
|
1751
1763
|
key: 7,
|
|
1752
1764
|
ref_key: "source",
|
|
1753
|
-
ref:
|
|
1765
|
+
ref: Yt,
|
|
1754
1766
|
dir: "auto"
|
|
1755
1767
|
}, [w(e.$slots, "source", {}, void 0, !0)], 512)) : m("", !0),
|
|
1756
|
-
|
|
1768
|
+
Le(T(At), {
|
|
1757
1769
|
teleportTo: L.value.tooltip.teleportTo,
|
|
1758
|
-
show: U.value.showTooltip &&
|
|
1770
|
+
show: U.value.showTooltip && Ut.value,
|
|
1759
1771
|
backgroundColor: L.value.tooltip.backgroundColor,
|
|
1760
1772
|
color: L.value.tooltip.color,
|
|
1761
1773
|
borderRadius: L.value.tooltip.borderRadius,
|
|
@@ -1767,19 +1779,19 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1767
1779
|
offsetX: L.value.tooltip.offsetX,
|
|
1768
1780
|
offsetY: L.value.tooltip.offsetY,
|
|
1769
1781
|
parent: j.value,
|
|
1770
|
-
content:
|
|
1771
|
-
isFullscreen:
|
|
1782
|
+
content: Wt.value,
|
|
1783
|
+
isFullscreen: br.value,
|
|
1772
1784
|
isCustom: L.value.tooltip.customFormat && typeof L.value.tooltip.customFormat == "function",
|
|
1773
1785
|
smooth: L.value.tooltip.smooth,
|
|
1774
1786
|
backdropFilter: L.value.tooltip.backdropFilter,
|
|
1775
1787
|
smoothForce: L.value.tooltip.smoothForce,
|
|
1776
1788
|
smoothSnapThreshold: L.value.tooltip.smoothSnapThreshold,
|
|
1777
|
-
isA11yMode:
|
|
1778
|
-
a11yPosition:
|
|
1789
|
+
isA11yMode: sn.value === "keyboard",
|
|
1790
|
+
a11yPosition: on.value
|
|
1779
1791
|
}, {
|
|
1780
|
-
"tooltip-before": E(() => [w(e.$slots, "tooltip-before", b(v({ ...
|
|
1781
|
-
tooltip: E(() => [w(e.$slots, "tooltip", b(v({ ...
|
|
1782
|
-
"tooltip-after": E(() => [w(e.$slots, "tooltip-after", b(v({ ...
|
|
1792
|
+
"tooltip-before": E(() => [w(e.$slots, "tooltip-before", b(v({ ...or.value })), void 0, !0)]),
|
|
1793
|
+
tooltip: E(() => [w(e.$slots, "tooltip", b(v({ ...or.value })), void 0, !0)]),
|
|
1794
|
+
"tooltip-after": E(() => [w(e.$slots, "tooltip-after", b(v({ ...or.value })), void 0, !0)]),
|
|
1783
1795
|
_: 3
|
|
1784
1796
|
}, 8, [
|
|
1785
1797
|
"teleportTo",
|
|
@@ -1805,24 +1817,24 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1805
1817
|
"isA11yMode",
|
|
1806
1818
|
"a11yPosition"
|
|
1807
1819
|
]),
|
|
1808
|
-
|
|
1820
|
+
Vt.value && R.value.buttons.table ? (x(), p(Ue(kr.value.component), Re({ key: 8 }, kr.value.props, {
|
|
1809
1821
|
ref_key: "tableUnit",
|
|
1810
|
-
ref:
|
|
1811
|
-
onClose:
|
|
1812
|
-
}),
|
|
1813
|
-
content: E(() => [(x(),
|
|
1814
|
-
key: `table_${
|
|
1815
|
-
colNames:
|
|
1816
|
-
head:
|
|
1817
|
-
body:
|
|
1818
|
-
config:
|
|
1819
|
-
title: N.value.table.useDialog ? "" :
|
|
1822
|
+
ref: nn,
|
|
1823
|
+
onClose: Ar
|
|
1824
|
+
}), Fe({
|
|
1825
|
+
content: E(() => [(x(), p(T(Mt), {
|
|
1826
|
+
key: `table_${Qt.value}`,
|
|
1827
|
+
colNames: yr.value.colNames,
|
|
1828
|
+
head: yr.value.head,
|
|
1829
|
+
body: yr.value.body,
|
|
1830
|
+
config: yr.value.config,
|
|
1831
|
+
title: N.value.table.useDialog ? "" : kr.value.title,
|
|
1820
1832
|
withCloseButton: !N.value.table.useDialog,
|
|
1821
|
-
isCursorPointer:
|
|
1822
|
-
onClose:
|
|
1833
|
+
isCursorPointer: un.value,
|
|
1834
|
+
onClose: Ar
|
|
1823
1835
|
}, {
|
|
1824
|
-
th: E(({ th: e }) => [
|
|
1825
|
-
td: E(({ td: e }) => [g("div", { innerHTML: e }, null, 8,
|
|
1836
|
+
th: E(({ th: e }) => [Ie(Ge(e), 1)]),
|
|
1837
|
+
td: E(({ td: e }) => [g("div", { innerHTML: e }, null, 8, Ot)]),
|
|
1826
1838
|
_: 1
|
|
1827
1839
|
}, 8, [
|
|
1828
1840
|
"colNames",
|
|
@@ -1836,24 +1848,24 @@ var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1836
1848
|
_: 2
|
|
1837
1849
|
}, [N.value.table.useDialog ? {
|
|
1838
1850
|
name: "title",
|
|
1839
|
-
fn: E(() => [
|
|
1851
|
+
fn: E(() => [Ie(Ge(kr.value.title), 1)]),
|
|
1840
1852
|
key: "0"
|
|
1841
1853
|
} : void 0, N.value.table.useDialog ? {
|
|
1842
1854
|
name: "actions",
|
|
1843
1855
|
fn: E(() => [g("button", {
|
|
1844
1856
|
tabindex: "0",
|
|
1845
1857
|
class: "vue-ui-user-options-button",
|
|
1846
|
-
onClick: t[2] ||= (e) =>
|
|
1847
|
-
style:
|
|
1848
|
-
}, [
|
|
1858
|
+
onClick: t[2] ||= (e) => vr(R.value.callbacks.csv),
|
|
1859
|
+
style: Be({ cursor: un.value ? "pointer" : "default" })
|
|
1860
|
+
}, [Le(T(kt), {
|
|
1849
1861
|
name: "fileCsv",
|
|
1850
|
-
stroke:
|
|
1862
|
+
stroke: kr.value.props.color
|
|
1851
1863
|
}, null, 8, ["stroke"])], 4)]),
|
|
1852
1864
|
key: "1"
|
|
1853
1865
|
} : void 0]), 1040)) : m("", !0),
|
|
1854
|
-
w(e.$slots, "skeleton", {}, () => [T(z) ? (x(),
|
|
1855
|
-
], 46,
|
|
1866
|
+
w(e.$slots, "skeleton", {}, () => [T(z) ? (x(), p(ve, { key: 0 })) : m("", !0)], !0)
|
|
1867
|
+
], 46, Xe));
|
|
1856
1868
|
}
|
|
1857
|
-
}, [["__scopeId", "data-v-
|
|
1869
|
+
}, [["__scopeId", "data-v-a5b975c7"]]);
|
|
1858
1870
|
//#endregion
|
|
1859
|
-
export {
|
|
1871
|
+
export { Ye as n, kt as t };
|