vue-data-ui 3.22.11 → 3.22.13
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/{PackageVersion-1MNr72Bz.js → PackageVersion-B6Hokxw9.js} +1 -1
- package/dist/{SlicerPreview-BIdvqU32.js → SlicerPreview-Cw6WMVhG.js} +434 -434
- package/dist/{UserOptions-B69xBEVP.js → UserOptions-DzAFK9cY.js} +438 -438
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.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-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-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/{package-Bf-Nk9qU.js → package-DmDydylu.js} +1 -1
- package/dist/{render-common-DEb-WjM1.js → render-common-BIG8JYGK.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/composables.d.ts +28 -11
- package/dist/types/vue-data-ui.d.ts +26 -9
- package/dist/useMountedDelay-BAjrhRJb.js +14 -0
- package/dist/{vue-data-ui-Bme9usjG.js → vue-data-ui-rkzh6EkO.js} +64 -64
- package/dist/vue-data-ui.js +64 -64
- package/dist/{vue-ui-3d-bar-Ds1BPxqb.js → vue-ui-3d-bar-D5xHEWr1.js} +1 -1
- package/dist/vue-ui-accordion-UA88lv4d.js +81 -0
- package/dist/{vue-ui-age-pyramid-CNCrH8Kd.js → vue-ui-age-pyramid-CAJg01c7.js} +1 -1
- package/dist/{vue-ui-annotator-BfZ8RTzJ.js → vue-ui-annotator-q3ZKx6ua.js} +1 -1
- package/dist/{vue-ui-bullet-DscMmM2b.js → vue-ui-bullet-ByeaWGfI.js} +1 -1
- package/dist/{vue-ui-bump-BvwU1_-N.js → vue-ui-bump-BS7RCf0Z.js} +1 -1
- package/dist/{vue-ui-candlestick-Cp6r8ktf.js → vue-ui-candlestick-BZSGDKrM.js} +470 -470
- package/dist/{vue-ui-carousel-table-CbtccW1g.js → vue-ui-carousel-table-DO5NRXvX.js} +1 -1
- package/dist/{vue-ui-chestnut-C3Hmf1-m.js → vue-ui-chestnut-BfeSPeEh.js} +1 -1
- package/dist/{vue-ui-chord-DJk9j45J.js → vue-ui-chord-D6G7ceE-.js} +1 -1
- package/dist/{vue-ui-circle-pack-CJe2wETT.js → vue-ui-circle-pack-Cqmlw7AV.js} +3 -6
- package/dist/{vue-ui-cursor-BAi9omna.js → vue-ui-cursor-BpN5MsXM.js} +1 -1
- package/dist/{vue-ui-dag-D7BEbS71.js → vue-ui-dag-BzgOgXzU.js} +1 -1
- package/dist/{vue-ui-dashboard-BYFQjwgC.js → vue-ui-dashboard-DLvGJXJY.js} +63 -64
- package/dist/{vue-ui-digits-Bx8nZl9d.js → vue-ui-digits-OMPrn8fb.js} +1 -1
- package/dist/{vue-ui-donut-BUX4ybT6.js → vue-ui-donut-Cp5NbZ1r.js} +1 -1
- package/dist/{vue-ui-donut-jXRV-3ON.js → vue-ui-donut-ZIRebAWc.js} +1 -1
- package/dist/{vue-ui-donut-evolution-MWDjQPQ5.js → vue-ui-donut-evolution-DHVi5rOn.js} +351 -355
- package/dist/{vue-ui-dumbbell-CnwsHaIy.js → vue-ui-dumbbell-gDYjU2oF.js} +1 -1
- package/dist/{vue-ui-flow-CKXGk4Lm.js → vue-ui-flow-BusUK3H0.js} +1 -1
- package/dist/{vue-ui-funnel-CJwD7s7e.js → vue-ui-funnel-BtaYaU0r.js} +1 -1
- package/dist/{vue-ui-galaxy-DL85_SWR.js → vue-ui-galaxy-BMp-HzDh.js} +1 -1
- package/dist/{vue-ui-gauge-Dkx-aUQr.js → vue-ui-gauge-CBou0cFE.js} +1 -1
- package/dist/{vue-ui-geo-fkLF1rHB.js → vue-ui-geo-CyFgFKlh.js} +1 -1
- package/dist/{vue-ui-gizmo-S8w_p769.js → vue-ui-gizmo-DdeXwCQp.js} +1 -1
- package/dist/{vue-ui-heatmap-Dopkbn2N.js → vue-ui-heatmap-D8-qJ7fg.js} +2 -2
- package/dist/{vue-ui-history-plot-DDYpEapS.js → vue-ui-history-plot-C2Aqk2ON.js} +1 -1
- package/dist/{vue-ui-horizontal-bar-Bi8WvKeD.js → vue-ui-horizontal-bar-BuwxI7d1.js} +2 -2
- package/dist/{vue-ui-kpi-BeJ-ajaS.js → vue-ui-kpi-ByxoO01r.js} +1 -1
- package/dist/{vue-ui-molecule-CBTgGZ-s.js → vue-ui-molecule-BqJJq49_.js} +1 -1
- package/dist/{vue-ui-mood-radar-CF83PcCx.js → vue-ui-mood-radar-BiOjxFEN.js} +1 -1
- package/dist/{vue-ui-nested-donuts-D5dO-Uyg.js → vue-ui-nested-donuts-Cl1HVvDp.js} +1 -1
- package/dist/{vue-ui-onion-BxjaQKo8.js → vue-ui-onion-CRQOxurS.js} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-Dz6ozRAM.js → vue-ui-parallel-coordinate-plot-Dhn18RtR.js} +298 -301
- package/dist/{vue-ui-quadrant-Bnxpa6m5.js → vue-ui-quadrant-B21LkUc8.js} +1 -1
- package/dist/{vue-ui-quick-chart-CAE0-NYj.js → vue-ui-quick-chart-DAhSXYnp.js} +600 -625
- package/dist/{vue-ui-radar-O4BhBOyp.js → vue-ui-radar-CyzAyVos.js} +1 -1
- package/dist/{vue-ui-relation-circle-BZ0Xf-Nc.js → vue-ui-relation-circle-Cb33DMZo.js} +5 -11
- package/dist/{vue-ui-ridgeline-DHVTPiM6.js → vue-ui-ridgeline-D7aArzQk.js} +1 -1
- package/dist/{vue-ui-rings-DAfY1V--.js → vue-ui-rings-FtcdX8xl.js} +1 -1
- package/dist/vue-ui-scatter-Cp_-2ahf.js +2409 -0
- package/dist/{vue-ui-skeleton-DoIqQtIV.js → vue-ui-skeleton-COytVrfN.js} +1 -1
- package/dist/{vue-ui-spark-trend-Db-FsXch.js → vue-ui-spark-trend-DC2KUlEY.js} +1 -1
- package/dist/{vue-ui-sparkbar-Ce55FP_3.js → vue-ui-sparkbar-DdxQOFIF.js} +48 -51
- package/dist/{vue-ui-sparkgauge-hB59dXm7.js → vue-ui-sparkgauge-DTA-fORH.js} +1 -1
- package/dist/{vue-ui-sparkhistogram-DjnaStBw.js → vue-ui-sparkhistogram-D1oFTrvt.js} +1 -1
- package/dist/{vue-ui-sparkline-D1dyhLvG.js → vue-ui-sparkline-DcR_N-zT.js} +1 -1
- package/dist/{vue-ui-sparkstackbar-BhOBFjts.js → vue-ui-sparkstackbar-BlFio0lP.js} +1 -1
- package/dist/vue-ui-stackbar-Cu13EdVa.js +2322 -0
- package/dist/{vue-ui-stackline-DLFNVbAz.js → vue-ui-stackline-DKL0o_-3.js} +572 -570
- package/dist/vue-ui-strip-plot-NLCwYvyw.js +1736 -0
- package/dist/{vue-ui-table-DL_R4ppI.js → vue-ui-table-AM9brdwU.js} +2 -2
- package/dist/{vue-ui-table-heatmap-C9gF__Np.js → vue-ui-table-heatmap-CSI482KG.js} +4 -10
- package/dist/{vue-ui-table-sparkline-CT-0w9-a.js → vue-ui-table-sparkline-BE6DAvur.js} +1 -1
- package/dist/{vue-ui-thermometer-MP0dliC3.js → vue-ui-thermometer-D6Czx7Fb.js} +1 -1
- package/dist/{vue-ui-timer-B5S-6Da4.js → vue-ui-timer-BZM5ITG9.js} +1 -1
- package/dist/{vue-ui-tiremarks-DcJiLDsm.js → vue-ui-tiremarks-BCncDpHX.js} +1 -1
- package/dist/{vue-ui-treemap-CjldCPnX.js → vue-ui-treemap-BOEYCOdk.js} +3 -6
- package/dist/{vue-ui-waffle-dZM-9z1J.js → vue-ui-waffle-BrM8IHdG.js} +1 -1
- package/dist/{vue-ui-wheel-or7a6-Ce.js → vue-ui-wheel-BNsajigQ.js} +1 -1
- package/dist/{vue-ui-word-cloud-8BwQ0cuB.js → vue-ui-word-cloud-D7R7nhk1.js} +1 -1
- package/dist/{vue-ui-world-Q0KZb7A_.js → vue-ui-world-DZBt-07p.js} +1 -1
- package/dist/{vue-ui-xy-DZIs53tH.js → vue-ui-xy-CluEZ7lS.js} +1253 -1251
- package/dist/{vue-ui-xy-4uzwZJcj.js → vue-ui-xy-Dt_1bSBT.js} +1 -1
- package/dist/{vue-ui-xy-canvas-Dz9aii7f.js → vue-ui-xy-canvas-7YSYRdwr.js} +3 -3
- package/package.json +2 -2
- package/dist/vue-ui-accordion-nNxnZTg9.js +0 -81
- package/dist/vue-ui-scatter-Cb63SWJT.js +0 -2421
- package/dist/vue-ui-stackbar-BZKw8WYn.js +0 -2340
- package/dist/vue-ui-strip-plot-DyN2WELD.js +0 -1735
|
@@ -1,49 +1,50 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { At as t, Bt as n, E as r, K as i, Kt as a, Q as o, Y as s, bt as
|
|
3
|
-
import { n as
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as
|
|
6
|
-
import { n as
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
2
|
+
import { At as t, Bt as n, E as r, K as i, Kt as a, Q as o, Y as s, bt as c, et as l, g as ee, qt as te, s as ne, st as re, t as ie, ut as ae, y as u, zt as oe } from "./lib-CFm_J26b.js";
|
|
3
|
+
import { n as se, r as ce, t as le } from "./useTimeLabels-B9CEuiLZ.js";
|
|
4
|
+
import { t as ue } from "./useConfig-C0V0eG7L.js";
|
|
5
|
+
import { t as de } from "./usePrinter-BH-xle1O.js";
|
|
6
|
+
import { n as fe, t as pe } from "./BaseScanner-DZvpgOjM.js";
|
|
7
|
+
import { t as me } from "./useSvgExport-Ba9qBr9M.js";
|
|
8
|
+
import { t as he } from "./useNestedProp-BY6DNN3i.js";
|
|
9
|
+
import { t as ge } from "./useThemeCheck-C43Tcqmk.js";
|
|
10
|
+
import { t as _e } from "./useMountedDelay-BAjrhRJb.js";
|
|
10
11
|
import { t as ve } from "./useTimeLabelCollider-AEcY4Ioe.js";
|
|
11
12
|
import { t as ye } from "./img-Bikk1dGb.js";
|
|
12
13
|
import { n as be } from "./Title-BuPs74IB.js";
|
|
13
14
|
import { t as xe } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
14
15
|
import { l as Se, t as Ce } from "./useResponsive-ZtArZtUf.js";
|
|
15
16
|
import { t as we } from "./DefGrad-DVBqDjhO.js";
|
|
16
|
-
import { t as Te } from "./SlicerPreview-
|
|
17
|
+
import { t as Te } from "./SlicerPreview-Cw6WMVhG.js";
|
|
17
18
|
import { t as Ee } from "./A11yDataTable-DdRsVULz.js";
|
|
18
19
|
import { t as De } from "./useUserOptionState-DK-_1ddE.js";
|
|
19
20
|
import { t as Oe } from "./useChartAccessibility-DYqac8yF.js";
|
|
20
21
|
import { t as ke } from "./vue_ui_candlestick-J8jmJvxP.js";
|
|
21
|
-
import { Fragment as
|
|
22
|
+
import { Fragment as d, computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createSlots as Ae, createTextVNode as je, createVNode as Me, defineAsyncComponent as _, guardReactiveProps as v, mergeProps as Ne, nextTick as Pe, normalizeClass as y, normalizeProps as b, normalizeStyle as Fe, onBeforeUnmount as Ie, onMounted as Le, openBlock as x, ref as S, renderList as C, renderSlot as w, resolveDynamicComponent as Re, shallowRef as ze, toDisplayString as T, toRefs as Be, unref as E, watch as Ve, watchEffect as He, withCtx as D } from "vue";
|
|
22
23
|
//#region src/components/vue-ui-candlestick.vue
|
|
23
|
-
var
|
|
24
|
+
var Ue = /* @__PURE__ */ e({ default: () => Ct }), We = ["id"], Ge = ["id"], Ke = { style: { position: "relative" } }, qe = [
|
|
24
25
|
"xmlns",
|
|
25
26
|
"aria-describedby",
|
|
26
27
|
"viewBox"
|
|
27
|
-
],
|
|
28
|
+
], Je = [
|
|
28
29
|
"x",
|
|
29
30
|
"y",
|
|
30
31
|
"width",
|
|
31
32
|
"height"
|
|
32
|
-
],
|
|
33
|
+
], Ye = { key: 1 }, Xe = { key: 0 }, Ze = [
|
|
33
34
|
"x1",
|
|
34
35
|
"x2",
|
|
35
36
|
"y1",
|
|
36
37
|
"y2",
|
|
37
38
|
"stroke",
|
|
38
39
|
"stroke-width"
|
|
39
|
-
],
|
|
40
|
+
], Qe = [
|
|
40
41
|
"x1",
|
|
41
42
|
"x2",
|
|
42
43
|
"y1",
|
|
43
44
|
"y2",
|
|
44
45
|
"stroke",
|
|
45
46
|
"stroke-width"
|
|
46
|
-
],
|
|
47
|
+
], $e = [
|
|
47
48
|
"x1",
|
|
48
49
|
"x2",
|
|
49
50
|
"y1",
|
|
@@ -51,7 +52,7 @@ var He = /* @__PURE__ */ e({ default: () => St }), Ue = ["id"], We = ["id"], Ge
|
|
|
51
52
|
"stroke",
|
|
52
53
|
"stroke-width",
|
|
53
54
|
"stroke-dasharray"
|
|
54
|
-
],
|
|
55
|
+
], et = [
|
|
55
56
|
"x1",
|
|
56
57
|
"x2",
|
|
57
58
|
"y1",
|
|
@@ -59,78 +60,77 @@ var He = /* @__PURE__ */ e({ default: () => St }), Ue = ["id"], We = ["id"], Ge
|
|
|
59
60
|
"stroke",
|
|
60
61
|
"stroke-width",
|
|
61
62
|
"stroke-dasharray"
|
|
62
|
-
],
|
|
63
|
+
], tt = [
|
|
63
64
|
"x1",
|
|
64
65
|
"x2",
|
|
65
66
|
"y1",
|
|
66
67
|
"y2",
|
|
67
68
|
"stroke",
|
|
68
69
|
"stroke-width"
|
|
69
|
-
],
|
|
70
|
+
], nt = [
|
|
70
71
|
"x1",
|
|
71
72
|
"x2",
|
|
72
73
|
"y1",
|
|
73
74
|
"y2",
|
|
74
75
|
"stroke",
|
|
75
76
|
"stroke-width"
|
|
76
|
-
],
|
|
77
|
-
"
|
|
78
|
-
"y",
|
|
77
|
+
], rt = [
|
|
78
|
+
"transform",
|
|
79
79
|
"text-anchor",
|
|
80
80
|
"font-size",
|
|
81
81
|
"fill",
|
|
82
82
|
"font-weight"
|
|
83
|
-
],
|
|
83
|
+
], it = [
|
|
84
84
|
"transform",
|
|
85
85
|
"text-anchor",
|
|
86
86
|
"font-size",
|
|
87
87
|
"fill",
|
|
88
88
|
"font-weight"
|
|
89
|
-
],
|
|
89
|
+
], at = [
|
|
90
90
|
"transform",
|
|
91
91
|
"text-anchor",
|
|
92
92
|
"font-size",
|
|
93
93
|
"fill",
|
|
94
94
|
"font-weight"
|
|
95
|
-
],
|
|
95
|
+
], ot = [
|
|
96
96
|
"x",
|
|
97
97
|
"y",
|
|
98
98
|
"width",
|
|
99
99
|
"height",
|
|
100
100
|
"fill",
|
|
101
101
|
"rx"
|
|
102
|
-
],
|
|
102
|
+
], st = { key: 0 }, ct = [
|
|
103
103
|
"cx",
|
|
104
104
|
"cy",
|
|
105
105
|
"r",
|
|
106
106
|
"fill"
|
|
107
|
-
],
|
|
107
|
+
], lt = [
|
|
108
108
|
"cx",
|
|
109
109
|
"cy",
|
|
110
110
|
"r",
|
|
111
111
|
"fill"
|
|
112
|
-
],
|
|
112
|
+
], ut = { key: 1 }, dt = [
|
|
113
113
|
"x",
|
|
114
114
|
"y",
|
|
115
115
|
"width",
|
|
116
116
|
"height",
|
|
117
117
|
"rx",
|
|
118
118
|
"fill"
|
|
119
|
-
],
|
|
119
|
+
], ft = [
|
|
120
120
|
"x",
|
|
121
121
|
"y",
|
|
122
122
|
"width",
|
|
123
123
|
"height",
|
|
124
124
|
"fill",
|
|
125
125
|
"rx"
|
|
126
|
-
],
|
|
126
|
+
], pt = [
|
|
127
127
|
"x",
|
|
128
128
|
"y",
|
|
129
129
|
"height",
|
|
130
130
|
"width",
|
|
131
131
|
"fill",
|
|
132
132
|
"rx"
|
|
133
|
-
],
|
|
133
|
+
], mt = [
|
|
134
134
|
"x",
|
|
135
135
|
"y",
|
|
136
136
|
"height",
|
|
@@ -139,7 +139,7 @@ var He = /* @__PURE__ */ e({ default: () => St }), Ue = ["id"], We = ["id"], Ge
|
|
|
139
139
|
"rx",
|
|
140
140
|
"stroke",
|
|
141
141
|
"stroke-width"
|
|
142
|
-
],
|
|
142
|
+
], ht = ["d", "stroke"], gt = [
|
|
143
143
|
"x",
|
|
144
144
|
"y",
|
|
145
145
|
"height",
|
|
@@ -148,7 +148,7 @@ var He = /* @__PURE__ */ e({ default: () => St }), Ue = ["id"], We = ["id"], Ge
|
|
|
148
148
|
"onMouseover",
|
|
149
149
|
"onMouseleave",
|
|
150
150
|
"onClick"
|
|
151
|
-
],
|
|
151
|
+
], _t = ["data-start", "data-end"], vt = {
|
|
152
152
|
key: 0,
|
|
153
153
|
style: {
|
|
154
154
|
position: "absolute",
|
|
@@ -158,14 +158,14 @@ var He = /* @__PURE__ */ e({ default: () => St }), Ue = ["id"], We = ["id"], Ge
|
|
|
158
158
|
},
|
|
159
159
|
"data-dom-to-png-ignore": "",
|
|
160
160
|
"aria-hidden": "true"
|
|
161
|
-
},
|
|
161
|
+
}, yt = {
|
|
162
162
|
key: 5,
|
|
163
163
|
class: "vue-data-ui-watermark"
|
|
164
|
-
},
|
|
164
|
+
}, bt = ["d", "stroke"], xt = [
|
|
165
165
|
"d",
|
|
166
166
|
"stroke",
|
|
167
167
|
"stroke-width"
|
|
168
|
-
],
|
|
168
|
+
], St = ["innerHTML"], Ct = /*#__PURE__*/ xe({
|
|
169
169
|
__name: "vue-ui-candlestick",
|
|
170
170
|
props: {
|
|
171
171
|
config: {
|
|
@@ -186,11 +186,11 @@ var He = /* @__PURE__ */ e({ default: () => St }), Ue = ["id"], We = ["id"], Ge
|
|
|
186
186
|
}
|
|
187
187
|
},
|
|
188
188
|
emits: ["selectX", "copyAlt"],
|
|
189
|
-
setup(e, { expose: xe, emit:
|
|
190
|
-
let
|
|
189
|
+
setup(e, { expose: xe, emit: Ue }) {
|
|
190
|
+
let Ct = _(() => import("./BaseIcon-CP5RWnqt.js").then((e) => e.n)), wt = _(() => import("./Tooltip-CA1rtSyl.js")), Tt = _(() => import("./vue-ui-accordion-UA88lv4d.js").then((e) => e.n)), Et = _(() => import("./DataTable-DzPEVvSo.js")), Dt = _(() => import("./PenAndPaper-CSMVXpg2.js").then((e) => e.t)), Ot = _(() => import("./UserOptions-DzAFK9cY.js").then((e) => e.n)), kt = _(() => import("./PackageVersion-B6Hokxw9.js").then((e) => e.t)), At = _(() => import("./BaseDraggableDialog-3n8udWmh.js").then((e) => e.n)), { vue_ui_candlestick: jt } = ue(), { isThemeValid: Mt, warnInvalidTheme: Nt } = ge(), { isReady: Pt } = _e(300), O = e, Ft = Ue, It = f(() => !!O.dataset && O.dataset.length), k = S(!1), Lt = S(null), A = S(i()), Rt = S(!1), zt = S(""), j = S(void 0), Bt = S(0), M = S(null), Vt = S(null), Ht = S(null), Ut = S(null), Wt = S(null), Gt = S(null), Kt = S(0), qt = S(0), Jt = S(0), Yt = S(null), Xt = S(null), Zt = S(null), Qt = S(null), $t = S(null), en = S(!1), tn = S(!1), N = S(null), nn = S({
|
|
191
191
|
x: 0,
|
|
192
192
|
y: 0
|
|
193
|
-
}),
|
|
193
|
+
}), rn = S("pointer"), an = S(!1), P = S(mn()), on = f(() => P.value.userOptions.useCursorPointer), sn = f(() => te({
|
|
194
194
|
defaultConfig: {
|
|
195
195
|
useCssAnimation: !1,
|
|
196
196
|
userOptions: { show: !1 },
|
|
@@ -228,13 +228,13 @@ var He = /* @__PURE__ */ e({ default: () => St }), Ue = ["id"], We = ["id"], Ge
|
|
|
228
228
|
}
|
|
229
229
|
},
|
|
230
230
|
userConfig: P.value.skeletonConfig ?? {}
|
|
231
|
-
})), { loading: F, FINAL_DATASET: I, manualLoading:
|
|
232
|
-
...
|
|
231
|
+
})), { loading: F, FINAL_DATASET: I, manualLoading: cn } = fe({
|
|
232
|
+
...Be(O),
|
|
233
233
|
FINAL_CONFIG: P,
|
|
234
|
-
prepareConfig:
|
|
234
|
+
prepareConfig: mn,
|
|
235
235
|
callback: () => {
|
|
236
236
|
Promise.resolve().then(async () => {
|
|
237
|
-
await
|
|
237
|
+
await sr();
|
|
238
238
|
});
|
|
239
239
|
},
|
|
240
240
|
skeletonDataset: O.config?.skeletonDataset ?? [
|
|
@@ -335,32 +335,32 @@ var He = /* @__PURE__ */ e({ default: () => St }), Ue = ["id"], We = ["id"], Ge
|
|
|
335
335
|
5100
|
|
336
336
|
]
|
|
337
337
|
],
|
|
338
|
-
skeletonConfig:
|
|
338
|
+
skeletonConfig: te({
|
|
339
339
|
defaultConfig: P.value,
|
|
340
|
-
userConfig:
|
|
340
|
+
userConfig: sn.value
|
|
341
341
|
})
|
|
342
|
-
}), { userOptionsVisible:
|
|
343
|
-
function
|
|
344
|
-
|
|
342
|
+
}), { userOptionsVisible: ln, setUserOptionsVisibility: un, keepUserOptionState: dn } = De({ config: P.value }), { svgRef: L } = Oe({ config: P.value.style.title });
|
|
343
|
+
function fn() {
|
|
344
|
+
un(!0);
|
|
345
345
|
}
|
|
346
|
-
function
|
|
347
|
-
|
|
346
|
+
function pn() {
|
|
347
|
+
un(!1), Ft("selectX", {
|
|
348
348
|
seriesIndex: null,
|
|
349
349
|
datapoint: null
|
|
350
350
|
}), j.value = null;
|
|
351
351
|
}
|
|
352
|
-
function
|
|
353
|
-
let e =
|
|
352
|
+
function mn() {
|
|
353
|
+
let e = he({
|
|
354
354
|
userConfig: O.config,
|
|
355
|
-
defaultConfig:
|
|
355
|
+
defaultConfig: jt
|
|
356
356
|
}), t = {}, n = e.theme;
|
|
357
|
-
if (n) if (!
|
|
357
|
+
if (n) if (!Mt.value(e)) Nt(e), t = e;
|
|
358
358
|
else {
|
|
359
|
-
let r =
|
|
359
|
+
let r = he({
|
|
360
360
|
userConfig: ke[n] || O.config,
|
|
361
361
|
defaultConfig: e
|
|
362
362
|
});
|
|
363
|
-
t = { ...
|
|
363
|
+
t = { ...he({
|
|
364
364
|
userConfig: O.config,
|
|
365
365
|
defaultConfig: r
|
|
366
366
|
}) };
|
|
@@ -368,38 +368,38 @@ var He = /* @__PURE__ */ e({ default: () => St }), Ue = ["id"], We = ["id"], Ge
|
|
|
368
368
|
else t = e;
|
|
369
369
|
return t;
|
|
370
370
|
}
|
|
371
|
-
|
|
372
|
-
F.value || (P.value =
|
|
373
|
-
}, { deep: !0 }),
|
|
374
|
-
Array.isArray(e) && e.length > 0 && (
|
|
371
|
+
Ve(() => O.config, (e) => {
|
|
372
|
+
F.value || (P.value = mn()), ln.value = !P.value.userOptions.showOnChartHover, hn(), Kt.value += 1, Jt.value += 1, qt.value += 1, H.value.showTable = P.value.table.show, H.value.showTooltip = P.value.style.tooltip.show, On();
|
|
373
|
+
}, { deep: !0 }), Ve(() => O.dataset, (e) => {
|
|
374
|
+
Array.isArray(e) && e.length > 0 && (cn.value = !1), rr();
|
|
375
375
|
}, { deep: !0 });
|
|
376
376
|
let R = S({
|
|
377
377
|
height: P.value.style.height,
|
|
378
378
|
width: P.value.style.width,
|
|
379
379
|
xAxisFontSize: P.value.style.layout.grid.xAxis.dataLabels.fontSize,
|
|
380
380
|
yAxisFontSize: P.value.style.layout.grid.yAxis.dataLabels.fontSize
|
|
381
|
-
}), z =
|
|
382
|
-
|
|
383
|
-
|
|
381
|
+
}), z = ze(null), B = ze(null);
|
|
382
|
+
Le(() => {
|
|
383
|
+
hn();
|
|
384
384
|
});
|
|
385
|
-
let V =
|
|
386
|
-
function
|
|
387
|
-
if (t(O.dataset) && (
|
|
385
|
+
let V = f(() => !!P.value.debug);
|
|
386
|
+
function hn() {
|
|
387
|
+
if (t(O.dataset) && (l({
|
|
388
388
|
componentName: "VueUiCandlestick",
|
|
389
389
|
type: "dataset",
|
|
390
390
|
debug: V.value
|
|
391
|
-
}),
|
|
391
|
+
}), cn.value = !0), t(O.dataset) || (cn.value = P.value.loading), setTimeout(() => {
|
|
392
392
|
k.value = !0;
|
|
393
393
|
}, 10), P.value.responsive) {
|
|
394
394
|
let e = Se(() => {
|
|
395
395
|
k.value = !1;
|
|
396
396
|
let { width: e, height: t } = Ce({
|
|
397
397
|
chart: M.value,
|
|
398
|
-
title: P.value.style.title.text ?
|
|
399
|
-
slicer: P.value.style.zoom.show && G.value > 6 ?
|
|
400
|
-
legend:
|
|
401
|
-
source:
|
|
402
|
-
noTitle:
|
|
398
|
+
title: P.value.style.title.text ? Vt.value : null,
|
|
399
|
+
slicer: P.value.style.zoom.show && G.value > 6 ? Ut.value.$el : null,
|
|
400
|
+
legend: Ht.value,
|
|
401
|
+
source: Wt.value,
|
|
402
|
+
noTitle: Gt.value
|
|
403
403
|
});
|
|
404
404
|
requestAnimationFrame(() => {
|
|
405
405
|
R.value.width = e, R.value.height = t - 12, P.value.responsiveProportionalSizing ? (R.value.xAxisFontSize = a({
|
|
@@ -414,45 +414,45 @@ var He = /* @__PURE__ */ e({ default: () => St }), Ue = ["id"], We = ["id"], Ge
|
|
|
414
414
|
source: P.value.style.layout.grid.yAxis.dataLabels.fontSize,
|
|
415
415
|
threshold: 6,
|
|
416
416
|
fallback: 6
|
|
417
|
-
})) : (R.value.xAxisFontSize = P.value.style.layout.grid.xAxis.dataLabels.fontSize, R.value.yAxisFontSize = P.value.style.layout.grid.yAxis.dataLabels.fontSize),
|
|
417
|
+
})) : (R.value.xAxisFontSize = P.value.style.layout.grid.xAxis.dataLabels.fontSize, R.value.yAxisFontSize = P.value.style.layout.grid.yAxis.dataLabels.fontSize), Lt.value && clearTimeout(Lt.value), Lt.value = setTimeout(() => {
|
|
418
418
|
k.value = !0;
|
|
419
419
|
}, 10);
|
|
420
420
|
});
|
|
421
421
|
});
|
|
422
422
|
z.value && (B.value && z.value.unobserve(B.value), z.value.disconnect()), z.value = new ResizeObserver(e), B.value = M.value.parentNode, z.value.observe(B.value);
|
|
423
423
|
}
|
|
424
|
-
|
|
424
|
+
sr();
|
|
425
425
|
}
|
|
426
|
-
|
|
426
|
+
Ie(() => {
|
|
427
427
|
z.value && (B.value && z.value.unobserve(B.value), z.value.disconnect());
|
|
428
428
|
});
|
|
429
|
-
let { isPrinting:
|
|
429
|
+
let { isPrinting: gn, isImaging: _n, generatePdf: vn, generateImage: yn } = de({
|
|
430
430
|
elementId: `vue-ui-candlestick_${A.value}`,
|
|
431
431
|
fileName: P.value.style.title.text || "vue-ui-candlestick",
|
|
432
432
|
options: P.value.userOptions.print
|
|
433
|
-
}),
|
|
433
|
+
}), bn = f(() => P.value.userOptions.show && !P.value.style.title.text), H = S({
|
|
434
434
|
showTable: P.value.table.show,
|
|
435
435
|
showTooltip: P.value.style.tooltip.show
|
|
436
|
-
}),
|
|
437
|
-
|
|
436
|
+
}), xn = S(0), Sn = Se((e) => {
|
|
437
|
+
xn.value = e;
|
|
438
438
|
}, 100);
|
|
439
|
-
|
|
440
|
-
let t =
|
|
439
|
+
He((e) => {
|
|
440
|
+
let t = Xt.value;
|
|
441
441
|
if (!t) return;
|
|
442
442
|
let n = new ResizeObserver((e) => {
|
|
443
|
-
|
|
443
|
+
Sn(e[0].contentRect.height);
|
|
444
444
|
});
|
|
445
445
|
n.observe(t), e(() => n.disconnect());
|
|
446
|
-
}),
|
|
447
|
-
|
|
446
|
+
}), Ie(() => {
|
|
447
|
+
xn.value = 0;
|
|
448
448
|
});
|
|
449
|
-
let
|
|
449
|
+
let Cn = f(() => {
|
|
450
450
|
let e = 0;
|
|
451
|
-
return
|
|
452
|
-
}), U =
|
|
453
|
-
function
|
|
451
|
+
return Xt.value && (e = xn.value + R.value.xAxisFontSize), e;
|
|
452
|
+
}), U = f(() => P.value.style.layout.grid.yAxis.position === "right");
|
|
453
|
+
function wn() {
|
|
454
454
|
let e = P.value.style.layout.grid.yAxis.dataLabels.offsetX;
|
|
455
|
-
|
|
455
|
+
Yt.value && (e = Array.from(Yt.value.querySelectorAll("text")).reduce((e, t) => {
|
|
456
456
|
let n = t.getComputedTextLength();
|
|
457
457
|
return n > e ? n : e;
|
|
458
458
|
}, 0));
|
|
@@ -465,25 +465,25 @@ var He = /* @__PURE__ */ e({ default: () => St }), Ue = ["id"], We = ["id"], Ge
|
|
|
465
465
|
crosshair: 13
|
|
466
466
|
};
|
|
467
467
|
}
|
|
468
|
-
let W =
|
|
469
|
-
let { top: e, right: t, bottom: n, left: r } = P.value.style.layout.padding, i =
|
|
468
|
+
let W = f(() => {
|
|
469
|
+
let { top: e, right: t, bottom: n, left: r } = P.value.style.layout.padding, i = wn();
|
|
470
470
|
return {
|
|
471
471
|
top: e + 12,
|
|
472
472
|
right: R.value.width - t - i.right,
|
|
473
473
|
left: r + i.left,
|
|
474
|
-
bottom: R.value.height - n -
|
|
474
|
+
bottom: R.value.height - n - Cn.value,
|
|
475
475
|
width: R.value.width - r - t - i.left - i.right,
|
|
476
|
-
height: R.value.height - e - n -
|
|
476
|
+
height: R.value.height - e - n - Cn.value - 12,
|
|
477
477
|
scaleLabelsWidth: i.scaleLabelsWidth,
|
|
478
478
|
yAxisNameWidth: i.yAxisNameWidth,
|
|
479
479
|
crosshair: i.crosshair
|
|
480
480
|
};
|
|
481
|
-
}),
|
|
482
|
-
let { left: e, top: t, width: n, height: r } = W.value, i = K.value.start, a = K.value.end - i, o = n / a, s = q.value.start - i,
|
|
481
|
+
}), Tn = f(() => {
|
|
482
|
+
let { left: e, top: t, width: n, height: r } = W.value, i = K.value.start, a = K.value.end - i, o = n / a, s = q.value.start - i, c = q.value.end - i, l = Math.max(0, Math.min(a, s)), ee = Math.max(0, Math.min(a, c));
|
|
483
483
|
return {
|
|
484
|
-
x: e +
|
|
484
|
+
x: e + l * o,
|
|
485
485
|
y: t,
|
|
486
|
-
width: (
|
|
486
|
+
width: (ee - l) * o,
|
|
487
487
|
height: r,
|
|
488
488
|
fill: P.value.style.zoom.preview.fill,
|
|
489
489
|
stroke: P.value.style.zoom.preview.stroke,
|
|
@@ -497,62 +497,62 @@ var He = /* @__PURE__ */ e({ default: () => St }), Ue = ["id"], We = ["id"], Ge
|
|
|
497
497
|
animation: "none !important"
|
|
498
498
|
}
|
|
499
499
|
};
|
|
500
|
-
}), G =
|
|
500
|
+
}), G = f(() => I.value.length), K = S({
|
|
501
501
|
start: 0,
|
|
502
502
|
end: G.value
|
|
503
503
|
}), q = S({
|
|
504
504
|
start: 0,
|
|
505
505
|
end: G.value
|
|
506
|
-
}),
|
|
507
|
-
function
|
|
506
|
+
}), En = f(() => P.value.style.zoom.preview.enable && (q.value.start !== K.value.start || q.value.end !== K.value.end));
|
|
507
|
+
function Dn(e, t) {
|
|
508
508
|
q.value[e] = t;
|
|
509
509
|
}
|
|
510
|
-
function
|
|
510
|
+
function On() {
|
|
511
511
|
let e = Math.max(0, Math.min(K.value.start ?? 0, G.value - 1)), t = Math.max(e + 1, Math.min(K.value.end ?? G.value, G.value));
|
|
512
|
-
(!Number.isFinite(e) || !Number.isFinite(t) || t <= e) && (e = 0, t = G.value), K.value.start = e, K.value.end = t, q.value.start = e, q.value.end = t,
|
|
512
|
+
(!Number.isFinite(e) || !Number.isFinite(t) || t <= e) && (e = 0, t = G.value), K.value.start = e, K.value.end = t, q.value.start = e, q.value.end = t, Ut.value && (Ut.value.setStartValue(e), Ut.value.setEndValue(t));
|
|
513
513
|
}
|
|
514
|
-
let
|
|
514
|
+
let kn = f(() => I.value.map((e, t) => ({
|
|
515
515
|
...e,
|
|
516
516
|
absoluteIndex: t
|
|
517
|
-
}))),
|
|
518
|
-
[null, void 0].includes(e[0]) &&
|
|
517
|
+
}))), An = f(() => kn.value.slice(K.value.start, K.value.end)), J = f(() => (I.value.forEach((e, t) => {
|
|
518
|
+
[null, void 0].includes(e[0]) && l({
|
|
519
519
|
componentName: "VueUiCandlestick",
|
|
520
520
|
type: "datasetAttribute",
|
|
521
521
|
property: "period (index 0)",
|
|
522
522
|
index: t,
|
|
523
523
|
debug: V.value
|
|
524
|
-
}), [null, void 0].includes(e[1]) &&
|
|
524
|
+
}), [null, void 0].includes(e[1]) && l({
|
|
525
525
|
componentName: "VueUiCandlestick",
|
|
526
526
|
type: "datasetAttribute",
|
|
527
527
|
property: "open (index 1)",
|
|
528
528
|
index: t,
|
|
529
529
|
debug: V.value
|
|
530
|
-
}), [null, void 0].includes(e[2]) &&
|
|
530
|
+
}), [null, void 0].includes(e[2]) && l({
|
|
531
531
|
componentName: "VueUiCandlestick",
|
|
532
532
|
type: "datasetAttribute",
|
|
533
533
|
property: "high (index 2)",
|
|
534
534
|
index: t,
|
|
535
535
|
debug: V.value
|
|
536
|
-
}), [null, void 0].includes(e[3]) &&
|
|
536
|
+
}), [null, void 0].includes(e[3]) && l({
|
|
537
537
|
componentName: "VueUiCandlestick",
|
|
538
538
|
type: "datasetAttribute",
|
|
539
539
|
property: "low (index 3)",
|
|
540
540
|
index: t,
|
|
541
541
|
debug: V.value
|
|
542
|
-
}), [null, void 0].includes(e[4]) &&
|
|
542
|
+
}), [null, void 0].includes(e[4]) && l({
|
|
543
543
|
componentName: "VueUiCandlestick",
|
|
544
544
|
type: "datasetAttribute",
|
|
545
545
|
property: "close (index 4)",
|
|
546
546
|
index: t,
|
|
547
547
|
debug: V.value
|
|
548
|
-
}), [null, void 0].includes(e[5]) &&
|
|
548
|
+
}), [null, void 0].includes(e[5]) && l({
|
|
549
549
|
componentName: "VueUiCandlestick",
|
|
550
550
|
type: "datasetAttribute",
|
|
551
551
|
property: "volume (index 5)",
|
|
552
552
|
index: t,
|
|
553
553
|
debug: V.value
|
|
554
554
|
});
|
|
555
|
-
}),
|
|
555
|
+
}), An.value.map((e) => ({
|
|
556
556
|
absoluteIndex: e.absoluteIndex,
|
|
557
557
|
period: e[0],
|
|
558
558
|
open: e[1],
|
|
@@ -560,7 +560,7 @@ var He = /* @__PURE__ */ e({ default: () => St }), Ue = ["id"], We = ["id"], Ge
|
|
|
560
560
|
low: e[3],
|
|
561
561
|
close: e[4],
|
|
562
562
|
volume: e[5]
|
|
563
|
-
})))),
|
|
563
|
+
})))), jn = f(() => kn.value.map((e) => ({
|
|
564
564
|
absoluteIndex: e.absoluteIndex,
|
|
565
565
|
period: e[0],
|
|
566
566
|
open: e[1],
|
|
@@ -568,21 +568,21 @@ var He = /* @__PURE__ */ e({ default: () => St }), Ue = ["id"], We = ["id"], Ge
|
|
|
568
568
|
low: e[3],
|
|
569
569
|
close: e[4],
|
|
570
570
|
volume: e[5]
|
|
571
|
-
}))), Y =
|
|
571
|
+
}))), Y = f(() => W.value.width / An.value.length), Mn = f(() => ({
|
|
572
572
|
max: P.value.style.layout.grid.yAxis.scale.max === null ? Math.max(...J.value.map((e) => e.high)) : P.value.style.layout.grid.yAxis.scale.max,
|
|
573
573
|
min: P.value.style.layout.grid.yAxis.scale.min === null ? 0 : P.value.style.layout.grid.yAxis.scale.min
|
|
574
|
-
})), X =
|
|
575
|
-
function
|
|
574
|
+
})), X = f(() => ee(Mn.value.min, Mn.value.max, P.value.style.layout.grid.yAxis.dataLabels.steps));
|
|
575
|
+
function Nn(e, t, n = null, r = null) {
|
|
576
576
|
return {
|
|
577
577
|
...e,
|
|
578
|
-
x:
|
|
579
|
-
y:
|
|
580
|
-
value:
|
|
578
|
+
x: u(W.value.left + t * Y.value + Y.value / 2),
|
|
579
|
+
y: u(W.value.top + (1 - (e - X.value.min) / (X.value.max - X.value.min)) * W.value.height),
|
|
580
|
+
value: u(e),
|
|
581
581
|
isMax: e === n,
|
|
582
582
|
isMin: e === r
|
|
583
583
|
};
|
|
584
584
|
}
|
|
585
|
-
let Z =
|
|
585
|
+
let Z = f(() => {
|
|
586
586
|
let e = {
|
|
587
587
|
o: Math.max(...J.value.map((e) => e.open)),
|
|
588
588
|
h: Math.max(...J.value.map((e) => e.high)),
|
|
@@ -595,52 +595,52 @@ var He = /* @__PURE__ */ e({ default: () => St }), Ue = ["id"], We = ["id"], Ge
|
|
|
595
595
|
c: Math.min(...J.value.map((e) => e.low))
|
|
596
596
|
}, n = Math.max(...J.value.map((e) => e.volume)), r = Math.min(...J.value.map((e) => e.volume));
|
|
597
597
|
return J.value.map((i, a) => {
|
|
598
|
-
let o =
|
|
598
|
+
let o = Nn(i.open, a, e.o, t.o), s = Nn(i.high, a, e.h, t.h), c = Nn(i.low, a, e.l, t.l), l = Nn(i.close, a, e.c, t.c), ee = i.close > i.open, te = i.volume === n, ne = i.volume === r;
|
|
599
599
|
return {
|
|
600
600
|
period: i.period,
|
|
601
601
|
open: o,
|
|
602
602
|
high: s,
|
|
603
|
-
low:
|
|
604
|
-
close:
|
|
603
|
+
low: c,
|
|
604
|
+
close: l,
|
|
605
605
|
volume: i.volume,
|
|
606
|
-
isBullish:
|
|
606
|
+
isBullish: ee,
|
|
607
607
|
absoluteIndex: i.absoluteIndex,
|
|
608
|
-
isMaxVolume:
|
|
609
|
-
isMinVolume:
|
|
608
|
+
isMaxVolume: te,
|
|
609
|
+
isMinVolume: ne
|
|
610
610
|
};
|
|
611
611
|
});
|
|
612
612
|
});
|
|
613
|
-
function
|
|
613
|
+
function Pn({ item: e, index: t, minimapH: n, unitW: r }) {
|
|
614
614
|
let i = P.value.style.layout.grid.yAxis.scale.min ?? 0, a = P.value.style.layout.grid.yAxis.scale.max ?? Math.max(...I.value.map((e) => e[2]));
|
|
615
615
|
return {
|
|
616
616
|
...e,
|
|
617
|
-
x:
|
|
618
|
-
y:
|
|
619
|
-
value:
|
|
617
|
+
x: u(t * r),
|
|
618
|
+
y: u((1 - (e - i) / (a - i)) * n),
|
|
619
|
+
value: u(e)
|
|
620
620
|
};
|
|
621
621
|
}
|
|
622
|
-
let
|
|
623
|
-
let i =
|
|
622
|
+
let Fn = f(() => ({ minimapH: e, unitW: t }) => jn.value.map((n, r) => {
|
|
623
|
+
let i = Pn({
|
|
624
624
|
item: n.open,
|
|
625
625
|
index: r,
|
|
626
626
|
minimapH: e,
|
|
627
627
|
unitW: t
|
|
628
|
-
}), a =
|
|
628
|
+
}), a = Pn({
|
|
629
629
|
item: n.high,
|
|
630
630
|
index: r,
|
|
631
631
|
minimapH: e,
|
|
632
632
|
unitW: t
|
|
633
|
-
}), o =
|
|
633
|
+
}), o = Pn({
|
|
634
634
|
item: n.low,
|
|
635
635
|
index: r,
|
|
636
636
|
minimapH: e,
|
|
637
637
|
unitW: t
|
|
638
|
-
}), s =
|
|
638
|
+
}), s = Pn({
|
|
639
639
|
item: n.close,
|
|
640
640
|
index: r,
|
|
641
641
|
minimapH: e,
|
|
642
642
|
unitW: t
|
|
643
|
-
}),
|
|
643
|
+
}), c = n.close > n.open;
|
|
644
644
|
return {
|
|
645
645
|
period: n.period,
|
|
646
646
|
open: i,
|
|
@@ -648,104 +648,104 @@ var He = /* @__PURE__ */ e({ default: () => St }), Ue = ["id"], We = ["id"], Ge
|
|
|
648
648
|
low: o,
|
|
649
649
|
close: s,
|
|
650
650
|
volume: n.volume,
|
|
651
|
-
isBullish:
|
|
651
|
+
isBullish: c,
|
|
652
652
|
absoluteIndex: n.absoluteIndex
|
|
653
653
|
};
|
|
654
|
-
})),
|
|
654
|
+
})), In = f(() => P.value.style.zoom.minimap.show ? [{
|
|
655
655
|
name: "",
|
|
656
656
|
series: I.value.map((e) => e[2]),
|
|
657
657
|
color: "#000000",
|
|
658
658
|
isVisible: !0
|
|
659
659
|
}] : []);
|
|
660
|
-
function
|
|
661
|
-
return
|
|
660
|
+
function Ln(e) {
|
|
661
|
+
return u((e - X.value.min) / (X.value.max - X.value.min));
|
|
662
662
|
}
|
|
663
|
-
let
|
|
664
|
-
y: W.value.bottom - W.value.height *
|
|
665
|
-
value:
|
|
666
|
-
}))),
|
|
667
|
-
|
|
668
|
-
let e = ++
|
|
663
|
+
let Rn = f(() => X.value.ticks.map((e) => ({
|
|
664
|
+
y: W.value.bottom - W.value.height * Ln(e),
|
|
665
|
+
value: u(e)
|
|
666
|
+
}))), zn = f(() => J.value.map((e) => e.period)), Q = S([]), Bn = S([]), Vn = 0;
|
|
667
|
+
He(() => {
|
|
668
|
+
let e = ++Vn;
|
|
669
669
|
(async () => {
|
|
670
|
-
let t = await
|
|
670
|
+
let t = await le({
|
|
671
671
|
values: I.value.map((e) => e[0]),
|
|
672
672
|
maxDatapoints: I.value.length,
|
|
673
673
|
formatter: P.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter,
|
|
674
674
|
start: K.value.start,
|
|
675
675
|
end: K.value.end
|
|
676
676
|
});
|
|
677
|
-
e ===
|
|
677
|
+
e === Vn && (Q.value = t);
|
|
678
678
|
})();
|
|
679
679
|
});
|
|
680
|
-
let
|
|
681
|
-
|
|
682
|
-
let e = ++
|
|
680
|
+
let Hn = 0;
|
|
681
|
+
He(() => {
|
|
682
|
+
let e = ++Hn;
|
|
683
683
|
(async () => {
|
|
684
|
-
let t = await
|
|
684
|
+
let t = await le({
|
|
685
685
|
values: I.value.map((e) => e[0]),
|
|
686
686
|
maxDatapoints: I.value.length,
|
|
687
687
|
formatter: P.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter,
|
|
688
688
|
start: 0,
|
|
689
689
|
end: G.value
|
|
690
690
|
});
|
|
691
|
-
e ===
|
|
691
|
+
e === Hn && (Bn.value = t);
|
|
692
692
|
})();
|
|
693
693
|
});
|
|
694
|
-
let
|
|
694
|
+
let Un = f(() => {
|
|
695
695
|
let e = P.value.style.layout.grid.xAxis.dataLabels.modulo;
|
|
696
696
|
return Q.value.length ? Math.min(e, [...new Set(Q.value.map((e) => e.text))].length) : e;
|
|
697
|
-
}),
|
|
697
|
+
}), Wn = S({
|
|
698
698
|
months: [],
|
|
699
699
|
shortMonths: [],
|
|
700
700
|
days: [],
|
|
701
701
|
shortDays: []
|
|
702
|
-
}),
|
|
703
|
-
|
|
704
|
-
let e = ++
|
|
702
|
+
}), Gn = 0;
|
|
703
|
+
He(() => {
|
|
704
|
+
let e = ++Gn, t = P.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter;
|
|
705
705
|
(async () => {
|
|
706
|
-
let n = await
|
|
707
|
-
e ===
|
|
706
|
+
let n = await ce(t.locale).catch(() => ce("en"));
|
|
707
|
+
e === Gn && (Wn.value = n.data);
|
|
708
708
|
})();
|
|
709
709
|
});
|
|
710
|
-
let
|
|
711
|
-
let e = P.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter, t =
|
|
710
|
+
let Kn = f(() => {
|
|
711
|
+
let e = P.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter, t = se({
|
|
712
712
|
useUTC: e.useUTC,
|
|
713
|
-
locale:
|
|
713
|
+
locale: Wn.value,
|
|
714
714
|
januaryAsYear: e.januaryAsYear
|
|
715
715
|
});
|
|
716
716
|
return (e, n) => {
|
|
717
717
|
let r = I.value.map((e) => e[0])?.[e];
|
|
718
718
|
return r == null ? "" : t.formatDate(new Date(r), n);
|
|
719
719
|
};
|
|
720
|
-
}),
|
|
721
|
-
text:
|
|
720
|
+
}), qn = f(() => (I.value.map((e) => e[0]) || []).map((e, t) => ({
|
|
721
|
+
text: Kn.value(t, P.value.style.tooltip.timeFormat),
|
|
722
722
|
absoluteIndex: t
|
|
723
|
-
}))),
|
|
724
|
-
text:
|
|
723
|
+
}))), Jn = f(() => (I.value.map((e) => e[0]) || []).map((e, t) => ({
|
|
724
|
+
text: Kn.value(t, P.value.style.zoom.timeFormat),
|
|
725
725
|
absoluteIndex: t
|
|
726
|
-
}))),
|
|
727
|
-
let e = P.value.style.layout.grid.xAxis.dataLabels, t = Q.value || [], n =
|
|
728
|
-
return
|
|
729
|
-
}),
|
|
726
|
+
}))), Yn = f(() => {
|
|
727
|
+
let e = P.value.style.layout.grid.xAxis.dataLabels, t = Q.value || [], n = Bn.value || [], r = K.value.start ?? 0, i = j.value, a = G.value, o = t.map((e) => e?.text ?? ""), s = n.map((e) => e?.text ?? "");
|
|
728
|
+
return ne(!!e.showOnlyFirstAndLast, !!e.showOnlyAtModulo, Math.max(1, Un.value || 1), o, s, r, i, a);
|
|
729
|
+
}), Xn = f(() => P.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? {
|
|
730
730
|
start: Q.value.find((e) => e.absoluteIndex === K.value.start)?.text ?? "",
|
|
731
731
|
end: Q.value.find((e) => e.absoluteIndex === K.value.end - 1)?.text ?? ""
|
|
732
732
|
} : {
|
|
733
733
|
start: I.value[K.value.start] ? I.value[K.value.start][0] : I.value[0][0],
|
|
734
734
|
end: I.value[K.value.end - 1] ? I.value[K.value.end - 1][0] : I.value.at(-1)[0]
|
|
735
|
-
}),
|
|
736
|
-
function
|
|
735
|
+
}), Zn = S(null);
|
|
736
|
+
function Qn(e, t) {
|
|
737
737
|
P.value.events.datapointClick && P.value.events.datapointClick({
|
|
738
738
|
datapoint: t,
|
|
739
739
|
seriesIndex: e + K.value.start
|
|
740
740
|
});
|
|
741
741
|
}
|
|
742
|
-
function
|
|
742
|
+
function $n(e, t) {
|
|
743
743
|
P.value.events.datapointLeave && P.value.events.datapointLeave({
|
|
744
744
|
datapoint: t,
|
|
745
745
|
seriesIndex: e + K.value.start
|
|
746
|
-
}), j.value = void 0,
|
|
746
|
+
}), j.value = void 0, Rt.value = !1, N.value = null, rn.value = "pointer";
|
|
747
747
|
}
|
|
748
|
-
|
|
748
|
+
Ve(() => O.selectedXIndex, (e) => {
|
|
749
749
|
if ([null, void 0].includes(O.selectedXIndex)) {
|
|
750
750
|
j.value = null;
|
|
751
751
|
return;
|
|
@@ -753,53 +753,53 @@ var He = /* @__PURE__ */ e({ default: () => St }), Ue = ["id"], We = ["id"], Ge
|
|
|
753
753
|
let t = e - K.value.start;
|
|
754
754
|
t < 0 || e >= K.value.end ? j.value = null : j.value = t ?? null;
|
|
755
755
|
}, { immediate: !0 });
|
|
756
|
-
function
|
|
756
|
+
function er(e, t, n = "pointer") {
|
|
757
757
|
P.value.events.datapointEnter && P.value.events.datapointEnter({
|
|
758
758
|
datapoint: t,
|
|
759
759
|
seriesIndex: e + K.value.start
|
|
760
|
-
}), j.value = e, N.value = e,
|
|
760
|
+
}), j.value = e, N.value = e, rn.value = n, Zn.value = {
|
|
761
761
|
datapoint: t,
|
|
762
762
|
seriesIndex: e,
|
|
763
763
|
series: Z.value,
|
|
764
764
|
config: P.value
|
|
765
|
-
},
|
|
765
|
+
}, Or({
|
|
766
766
|
seriesIndex: e,
|
|
767
767
|
datapoint: t
|
|
768
768
|
});
|
|
769
769
|
let r = P.value.style.tooltip.customFormat;
|
|
770
|
-
if (
|
|
770
|
+
if (c(r) && re(() => r({
|
|
771
771
|
seriesIndex: e,
|
|
772
772
|
datapoint: t,
|
|
773
773
|
series: Z.value,
|
|
774
774
|
config: P.value
|
|
775
|
-
})))
|
|
775
|
+
}))) zt.value = r({
|
|
776
776
|
seriesIndex: e,
|
|
777
777
|
datapoint: t,
|
|
778
778
|
series: Z.value,
|
|
779
779
|
config: P.value
|
|
780
780
|
});
|
|
781
781
|
else if (P.value.style.tooltip.show) {
|
|
782
|
-
let n = "", { period: r, open: i, high: a, low: o, close:
|
|
782
|
+
let n = "", { period: r, open: i, high: a, low: o, close: c, volume: l, isBullish: ee } = Z.value[e], { period: te, open: ne, high: re, low: ie, close: ae, volume: u } = P.value.translations, oe = P.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? P.value.style.tooltip.useDefaultTimeFormat ? Q.value[e].text : qn.value[e].text : r;
|
|
783
783
|
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.style.layout.candle.borderRadius * 3}" stroke="${P.value.style.layout.candle.stroke}" stroke-width="${P.value.style.layout.candle.strokeWidth}"
|
|
784
|
-
fill="${P.value.style.layout.candle.gradient.show ?
|
|
785
|
-
let
|
|
784
|
+
fill="${P.value.style.layout.candle.gradient.show ? ee ? `url(#bullish_gradient_${A.value})` : `url(#bearish_gradient_${A.value})` : ee ? P.value.style.layout.candle.colors.bullish : P.value.style.layout.candle.colors.bearish}"/></svg>${oe}</div>`, n += `${u} : <b>${isNaN(l) ? "-" : Number(l.toFixed(P.value.style.tooltip.roundingValue)).toLocaleString()}</b>`, n += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${P.value.style.tooltip.borderColor}">`;
|
|
785
|
+
let se = s({
|
|
786
786
|
p: P.value.style.tooltip.prefix,
|
|
787
787
|
v: i.value,
|
|
788
788
|
s: P.value.style.tooltip.suffix,
|
|
789
789
|
r: P.value.style.tooltip.roundingValue
|
|
790
|
-
}),
|
|
790
|
+
}), ce = s({
|
|
791
791
|
p: P.value.style.tooltip.prefix,
|
|
792
792
|
v: a.value,
|
|
793
793
|
s: P.value.style.tooltip.suffix,
|
|
794
794
|
r: P.value.style.tooltip.roundingValue
|
|
795
|
-
}),
|
|
795
|
+
}), le = s({
|
|
796
796
|
p: P.value.style.tooltip.prefix,
|
|
797
797
|
v: o.value,
|
|
798
798
|
s: P.value.style.tooltip.suffix,
|
|
799
799
|
r: P.value.style.tooltip.roundingValue
|
|
800
|
-
}),
|
|
800
|
+
}), ue = s({
|
|
801
801
|
p: P.value.style.tooltip.prefix,
|
|
802
|
-
v:
|
|
802
|
+
v: c.value,
|
|
803
803
|
s: P.value.style.tooltip.suffix,
|
|
804
804
|
r: P.value.style.tooltip.roundingValue
|
|
805
805
|
});
|
|
@@ -810,54 +810,54 @@ var He = /* @__PURE__ */ e({ default: () => St }), Ue = ["id"], We = ["id"], Ge
|
|
|
810
810
|
${t.isBullish ? `
|
|
811
811
|
<line x1="45" x2="50" y1="65" y2="65" stroke="${P.value.style.layout.candle.colors.bullish}" stroke-width="1.5" stroke-linecap="round" />
|
|
812
812
|
<line x1="50" x2="55" y1="35" y2="35" stroke="${P.value.style.layout.candle.colors.bullish}" stroke-width="1.5" stroke-linecap="round" />
|
|
813
|
-
<text x="38" y="70" text-anchor="end" fill="${P.value.style.tooltip.color}">${
|
|
814
|
-
<text x="62" y="40" text-anchor="start" fill="${P.value.style.tooltip.color}">${
|
|
813
|
+
<text x="38" y="70" text-anchor="end" fill="${P.value.style.tooltip.color}">${se}</text>
|
|
814
|
+
<text x="62" y="40" text-anchor="start" fill="${P.value.style.tooltip.color}">${ue}</text>
|
|
815
815
|
` : `
|
|
816
816
|
<line x1="45" x2="50" y1="35" y2="35" stroke="${P.value.style.layout.candle.colors.bearish}" stroke-width="1.5" stroke-linecap="round" />
|
|
817
817
|
<line x1="50" x2="55" y1="65" y2="65" stroke="${P.value.style.layout.candle.colors.bearish}" stroke-width="1.5" stroke-linecap="round" />
|
|
818
|
-
<text x="40" y="40" text-anchor="end" fill="${P.value.style.tooltip.color}">${
|
|
819
|
-
<text x="60" y="70" text-anchor="start" fill="${P.value.style.tooltip.color}">${
|
|
818
|
+
<text x="40" y="40" text-anchor="end" fill="${P.value.style.tooltip.color}">${se}</text>
|
|
819
|
+
<text x="60" y="70" text-anchor="start" fill="${P.value.style.tooltip.color}">${ue}</text>
|
|
820
820
|
`}
|
|
821
|
-
<text x="50" y="13" text-anchor="middle" fill="${P.value.style.tooltip.color}">${
|
|
822
|
-
<text x="50" y="97" text-anchor="middle" fill="${P.value.style.tooltip.color}">${
|
|
821
|
+
<text x="50" y="13" text-anchor="middle" fill="${P.value.style.tooltip.color}">${ce}</text>
|
|
822
|
+
<text x="50" y="97" text-anchor="middle" fill="${P.value.style.tooltip.color}">${le}</text>
|
|
823
823
|
<g>
|
|
824
824
|
</svg>
|
|
825
825
|
<div>
|
|
826
|
-
` : (n += `<div>${
|
|
826
|
+
` : (n += `<div>${ne}: <b>${se}</b></div>`, n += `<div>${re}: <b>${ce}</b></div>`, n += `<div>${ie}: <b>${le}</b></div>`, n += `<div>${ae}: <b>${ue}</b></div>`), n += "</div>", zt.value = `<div style="text-align:right">${n}</div>`;
|
|
827
827
|
}
|
|
828
|
-
|
|
828
|
+
Rt.value = !0;
|
|
829
829
|
}
|
|
830
|
-
let
|
|
831
|
-
function
|
|
830
|
+
let tr = S(null);
|
|
831
|
+
function nr() {
|
|
832
832
|
return new Promise((e) => requestAnimationFrame(() => requestAnimationFrame(() => e())));
|
|
833
833
|
}
|
|
834
|
-
|
|
835
|
-
|
|
834
|
+
Ie(() => {
|
|
835
|
+
tr.value && cancelAnimationFrame(tr.value);
|
|
836
836
|
});
|
|
837
|
-
async function
|
|
838
|
-
|
|
839
|
-
await
|
|
837
|
+
async function rr() {
|
|
838
|
+
sr(), await Pe(), tr.value && cancelAnimationFrame(tr.value), tr.value = requestAnimationFrame(async () => {
|
|
839
|
+
await nr(), sr();
|
|
840
840
|
});
|
|
841
841
|
}
|
|
842
|
-
let
|
|
843
|
-
function
|
|
844
|
-
if (!
|
|
845
|
-
|
|
842
|
+
let ir = S(!1), ar = S(!1), or = S(!1);
|
|
843
|
+
function sr() {
|
|
844
|
+
if (!ir.value) {
|
|
845
|
+
ir.value = !0;
|
|
846
846
|
try {
|
|
847
|
-
let { startIndex: e, endIndex: t } = P.value.style.zoom, n = G.value, r = e ?? 0, i = t == null ? n : Math.min(
|
|
848
|
-
|
|
847
|
+
let { startIndex: e, endIndex: t } = P.value.style.zoom, n = G.value, r = e ?? 0, i = t == null ? n : Math.min(cr(t + 1), n);
|
|
848
|
+
or.value = !0, K.value.start = r, K.value.end = i, q.value.start = r, q.value.end = i, On(), ar.value = !0;
|
|
849
849
|
} finally {
|
|
850
850
|
queueMicrotask(() => {
|
|
851
|
-
|
|
852
|
-
}),
|
|
851
|
+
or.value = !1;
|
|
852
|
+
}), ir.value = !1;
|
|
853
853
|
}
|
|
854
854
|
}
|
|
855
855
|
}
|
|
856
|
-
function
|
|
856
|
+
function cr(e) {
|
|
857
857
|
let t = G.value;
|
|
858
858
|
return e > t ? t : e < 0 || e < K.value.start ? P.value.style.zoom.startIndex === null ? 1 : P.value.style.zoom.startIndex + 1 : e;
|
|
859
859
|
}
|
|
860
|
-
function
|
|
860
|
+
function lr(e = null) {
|
|
861
861
|
Pe(() => {
|
|
862
862
|
let t = [
|
|
863
863
|
P.value.translations.period,
|
|
@@ -889,7 +889,7 @@ var He = /* @__PURE__ */ e({ default: () => St }), Ue = ["id"], We = ["id"], Ge
|
|
|
889
889
|
});
|
|
890
890
|
});
|
|
891
891
|
}
|
|
892
|
-
let
|
|
892
|
+
let ur = f(() => {
|
|
893
893
|
let e = Z.value.map((e, t) => {
|
|
894
894
|
let n = P.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? Q.value?.[t]?.text ?? "" : e.period, r = s({
|
|
895
895
|
p: P.value.table.td.prefix,
|
|
@@ -913,7 +913,7 @@ var He = /* @__PURE__ */ e({ default: () => St }), Ue = ["id"], We = ["id"], Ge
|
|
|
913
913
|
r: P.value.table.td.roundingValue
|
|
914
914
|
});
|
|
915
915
|
return [
|
|
916
|
-
`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 12" height="12" width="12" style="margin-right: 6px"><rect x="0" y="0" height="12" width="12" rx="${P.value.style.layout.candle.borderRadius * 3}" fill="${P.value.style.layout.candle.gradient.show ? e.isBullish ? `url(#bullish_gradient_${A.value}` : `url(#bearish_gradient_${A.value})` : e.isBullish ? P.value.style.layout.candle.colors.bullish : P.value.style.layout.candle.colors.bearish}"/></svg> ${n}`,
|
|
916
|
+
`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 12" height="12" width="12" style="margin-right: 6px"><rect x="0" y="0" height="12" width="12" rx="${P.value.style.layout.candle.borderRadius * 3}" fill="${P.value.style.layout.candle.gradient.show ? e.isBullish ? `url(#bullish_gradient_${A.value})` : `url(#bearish_gradient_${A.value})` : e.isBullish ? P.value.style.layout.candle.colors.bullish : P.value.style.layout.candle.colors.bearish}"/></svg> ${n}`,
|
|
917
917
|
r,
|
|
918
918
|
i,
|
|
919
919
|
a,
|
|
@@ -975,20 +975,20 @@ var He = /* @__PURE__ */ e({ default: () => St }), Ue = ["id"], We = ["id"], Ge
|
|
|
975
975
|
colNames: r
|
|
976
976
|
};
|
|
977
977
|
}), $ = S(!1);
|
|
978
|
-
function
|
|
979
|
-
$.value = e,
|
|
978
|
+
function dr(e) {
|
|
979
|
+
$.value = e, Bt.value += 1;
|
|
980
980
|
}
|
|
981
|
-
function
|
|
981
|
+
function fr() {
|
|
982
982
|
H.value.showTable = !H.value.showTable;
|
|
983
983
|
}
|
|
984
|
-
function
|
|
984
|
+
function pr() {
|
|
985
985
|
H.value.showTooltip = !H.value.showTooltip;
|
|
986
986
|
}
|
|
987
|
-
let
|
|
988
|
-
function
|
|
989
|
-
|
|
987
|
+
let mr = S(!1);
|
|
988
|
+
function hr() {
|
|
989
|
+
mr.value = !mr.value;
|
|
990
990
|
}
|
|
991
|
-
async function
|
|
991
|
+
async function gr({ scale: e = 2 } = {}) {
|
|
992
992
|
if (!M.value) return;
|
|
993
993
|
let { imageUri: t, base64: n } = await ye({
|
|
994
994
|
domElement: M.value,
|
|
@@ -999,7 +999,7 @@ var He = /* @__PURE__ */ e({ default: () => St }), Ue = ["id"], We = ["id"], Ge
|
|
|
999
999
|
width: r.width,
|
|
1000
1000
|
height: r.height,
|
|
1001
1001
|
aspectRatio: r.height ? r.width / r.height : 0
|
|
1002
|
-
}, a = await
|
|
1002
|
+
}, a = await ae(t, e) ?? i;
|
|
1003
1003
|
return {
|
|
1004
1004
|
imageUri: t,
|
|
1005
1005
|
base64: n,
|
|
@@ -1007,9 +1007,9 @@ var He = /* @__PURE__ */ e({ default: () => St }), Ue = ["id"], We = ["id"], Ge
|
|
|
1007
1007
|
...a
|
|
1008
1008
|
};
|
|
1009
1009
|
}
|
|
1010
|
-
let
|
|
1010
|
+
let _r = f(() => R.value.width), vr = f(() => R.value.height);
|
|
1011
1011
|
ve({
|
|
1012
|
-
timeLabelsEls:
|
|
1012
|
+
timeLabelsEls: Xt,
|
|
1013
1013
|
timeLabels: Q,
|
|
1014
1014
|
slicer: K,
|
|
1015
1015
|
configRef: P,
|
|
@@ -1032,18 +1032,18 @@ var He = /* @__PURE__ */ e({ default: () => St }), Ue = ["id"], We = ["id"], Ge
|
|
|
1032
1032
|
],
|
|
1033
1033
|
isAutoSize: !1,
|
|
1034
1034
|
rotation: P.value.style.layout.grid.xAxis.dataLabels.autoRotate.angle,
|
|
1035
|
-
width:
|
|
1036
|
-
height:
|
|
1037
|
-
}),
|
|
1035
|
+
width: _r,
|
|
1036
|
+
height: vr
|
|
1037
|
+
}), Ve(P, () => {
|
|
1038
1038
|
H.value = {
|
|
1039
1039
|
showTable: P.value.table.show,
|
|
1040
1040
|
showTooltip: P.value.style.tooltip.show
|
|
1041
1041
|
};
|
|
1042
1042
|
}, { immediate: !0 });
|
|
1043
|
-
let
|
|
1043
|
+
let yr = f(() => {
|
|
1044
1044
|
let e = P.value.table.useDialog && !P.value.table.show, t = H.value.showTable;
|
|
1045
1045
|
return {
|
|
1046
|
-
component: e ?
|
|
1046
|
+
component: e ? At : Tt,
|
|
1047
1047
|
title: `${P.value.style.title.text}${P.value.style.title.subtitle.text ? `: ${P.value.style.title.subtitle.text}` : ""}`,
|
|
1048
1048
|
props: e ? {
|
|
1049
1049
|
backgroundColor: P.value.table.th.backgroundColor,
|
|
@@ -1053,7 +1053,7 @@ var He = /* @__PURE__ */ e({ default: () => St }), Ue = ["id"], We = ["id"], Ge
|
|
|
1053
1053
|
isFullscreen: $.value,
|
|
1054
1054
|
fullscreenParent: M.value,
|
|
1055
1055
|
forcedWidth: Math.min(800, window.innerWidth * .8),
|
|
1056
|
-
isCursorPointer:
|
|
1056
|
+
isCursorPointer: on.value
|
|
1057
1057
|
} : {
|
|
1058
1058
|
hideDetails: !0,
|
|
1059
1059
|
config: {
|
|
@@ -1071,65 +1071,65 @@ var He = /* @__PURE__ */ e({ default: () => St }), Ue = ["id"], We = ["id"], Ge
|
|
|
1071
1071
|
}
|
|
1072
1072
|
};
|
|
1073
1073
|
});
|
|
1074
|
-
|
|
1075
|
-
P.value.table.show || (e && P.value.table.useDialog &&
|
|
1074
|
+
Ve(() => H.value.showTable, (e) => {
|
|
1075
|
+
P.value.table.show || (e && P.value.table.useDialog && Zt.value ? Zt.value.open() : "close" in Zt.value && Zt.value.close());
|
|
1076
1076
|
});
|
|
1077
|
-
function
|
|
1078
|
-
H.value.showTable = !1,
|
|
1077
|
+
function br() {
|
|
1078
|
+
H.value.showTable = !1, Qt.value && Qt.value.setTableIconState(!1);
|
|
1079
1079
|
}
|
|
1080
|
-
let
|
|
1080
|
+
let xr = f(() => P.value.style.backgroundColor), { exportSvg: Sr, getSvg: Cr } = me({
|
|
1081
1081
|
svg: L,
|
|
1082
|
-
title:
|
|
1083
|
-
backgroundColor:
|
|
1082
|
+
title: f(() => P.value.style.title),
|
|
1083
|
+
backgroundColor: xr
|
|
1084
1084
|
});
|
|
1085
|
-
async function
|
|
1086
|
-
|
|
1085
|
+
async function wr({ isCb: e }) {
|
|
1086
|
+
tn.value = !0, await Pe();
|
|
1087
1087
|
try {
|
|
1088
1088
|
if (e) {
|
|
1089
|
-
let { blob: e, url: t, text: n, dataUrl: r } = await
|
|
1089
|
+
let { blob: e, url: t, text: n, dataUrl: r } = await Cr();
|
|
1090
1090
|
await Promise.resolve(P.value.userOptions.callbacks.svg({
|
|
1091
1091
|
blob: e,
|
|
1092
1092
|
url: t,
|
|
1093
1093
|
text: n,
|
|
1094
1094
|
dataUrl: r
|
|
1095
1095
|
}));
|
|
1096
|
-
} else await Promise.resolve(
|
|
1096
|
+
} else await Promise.resolve(Sr());
|
|
1097
1097
|
} finally {
|
|
1098
|
-
|
|
1098
|
+
tn.value = !1;
|
|
1099
1099
|
}
|
|
1100
1100
|
}
|
|
1101
|
-
function
|
|
1102
|
-
|
|
1101
|
+
function Tr(e) {
|
|
1102
|
+
$t.value = e;
|
|
1103
1103
|
}
|
|
1104
|
-
function
|
|
1105
|
-
|
|
1104
|
+
function Er(e) {
|
|
1105
|
+
ir.value || or.value || e !== K.value.start && (K.value.start = e, q.value.start = e, On());
|
|
1106
1106
|
}
|
|
1107
|
-
function
|
|
1108
|
-
if (
|
|
1109
|
-
let t =
|
|
1110
|
-
t !== K.value.end && (K.value.end = t, q.value.end = t,
|
|
1107
|
+
function Dr(e) {
|
|
1108
|
+
if (ir.value || or.value) return;
|
|
1109
|
+
let t = cr(e);
|
|
1110
|
+
t !== K.value.end && (K.value.end = t, q.value.end = t, On());
|
|
1111
1111
|
}
|
|
1112
|
-
function
|
|
1112
|
+
function Or({ seriesIndex: e, datapoint: t }) {
|
|
1113
1113
|
let n = K.value.start + e;
|
|
1114
|
-
|
|
1114
|
+
Ft("selectX", {
|
|
1115
1115
|
dataset: t,
|
|
1116
1116
|
index: n,
|
|
1117
1117
|
indexLabel: ""
|
|
1118
1118
|
});
|
|
1119
1119
|
}
|
|
1120
|
-
function
|
|
1120
|
+
function kr(e) {
|
|
1121
1121
|
if (e?.stage === "start") {
|
|
1122
|
-
|
|
1122
|
+
en.value = !0;
|
|
1123
1123
|
return;
|
|
1124
1124
|
}
|
|
1125
1125
|
if (e?.stage === "end") {
|
|
1126
|
-
|
|
1126
|
+
en.value = !1;
|
|
1127
1127
|
return;
|
|
1128
1128
|
}
|
|
1129
|
-
|
|
1129
|
+
yn();
|
|
1130
1130
|
}
|
|
1131
|
-
async function
|
|
1132
|
-
if (
|
|
1131
|
+
async function Ar() {
|
|
1132
|
+
if (Ft("copyAlt", {
|
|
1133
1133
|
config: P.value,
|
|
1134
1134
|
dataset: Z.value
|
|
1135
1135
|
}), !P.value.userOptions.callbacks.altCopy) {
|
|
@@ -1141,73 +1141,73 @@ var He = /* @__PURE__ */ e({ default: () => St }), Ue = ["id"], We = ["id"], Ge
|
|
|
1141
1141
|
dataset: Z.value
|
|
1142
1142
|
}));
|
|
1143
1143
|
}
|
|
1144
|
-
function
|
|
1145
|
-
N.value = null,
|
|
1144
|
+
function jr() {
|
|
1145
|
+
N.value = null, an.value = !0;
|
|
1146
1146
|
}
|
|
1147
|
-
function
|
|
1148
|
-
N.value = null,
|
|
1147
|
+
function Mr() {
|
|
1148
|
+
N.value = null, rn.value = "pointer", Rt.value = !1, j.value = void 0, an.value = !1;
|
|
1149
1149
|
}
|
|
1150
|
-
function
|
|
1151
|
-
if (!L.value ||
|
|
1150
|
+
function Nr(e) {
|
|
1151
|
+
if (!L.value || mr.value || document.activeElement !== L.value || !Z.value.length) return;
|
|
1152
1152
|
let t = e.key === "ArrowLeft", n = e.key === "ArrowRight", r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
1153
1153
|
if (!t && !n && !r && !i) return;
|
|
1154
1154
|
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
1155
|
-
N.value = null,
|
|
1155
|
+
N.value = null, rn.value = "pointer", Rt.value = !1, j.value = void 0;
|
|
1156
1156
|
return;
|
|
1157
1157
|
}
|
|
1158
1158
|
if (r) {
|
|
1159
1159
|
if (N.value === null) return;
|
|
1160
1160
|
let e = Z.value[N.value];
|
|
1161
1161
|
if (!e) return;
|
|
1162
|
-
|
|
1162
|
+
Qn(N.value, e);
|
|
1163
1163
|
return;
|
|
1164
1164
|
}
|
|
1165
|
-
let a = N.value, o = j.value, s = a !== null && a >= 0 && a < Z.value.length,
|
|
1166
|
-
s ? n ? (a += 1, a >= Z.value.length && (a = 0)) : t && (--a, a < 0 && (a = Z.value.length - 1)) :
|
|
1167
|
-
let
|
|
1168
|
-
|
|
1165
|
+
let a = N.value, o = j.value, s = a !== null && a >= 0 && a < Z.value.length, c = o != null && o >= 0 && o < Z.value.length;
|
|
1166
|
+
s ? n ? (a += 1, a >= Z.value.length && (a = 0)) : t && (--a, a < 0 && (a = Z.value.length - 1)) : c ? (a = n ? o + 1 : o - 1, a >= Z.value.length && (a = 0), a < 0 && (a = Z.value.length - 1)) : a = n ? 0 : Z.value.length - 1;
|
|
1167
|
+
let l = Z.value[a];
|
|
1168
|
+
l && (Pr(a), er(a, l, "keyboard"));
|
|
1169
1169
|
}
|
|
1170
|
-
function
|
|
1170
|
+
function Pr(e) {
|
|
1171
1171
|
if (!Number.isFinite(e) || !L.value) return;
|
|
1172
1172
|
let t = W.value.left + Y.value * e + Y.value / 2, n = W.value.top + W.value.height / 2, r = L.value.getBoundingClientRect();
|
|
1173
|
-
|
|
1173
|
+
nn.value = {
|
|
1174
1174
|
x: r.left + t / R.value.width * r.width,
|
|
1175
1175
|
y: r.top + n / R.value.height * r.height
|
|
1176
1176
|
};
|
|
1177
1177
|
}
|
|
1178
|
-
let
|
|
1179
|
-
headers:
|
|
1180
|
-
rows:
|
|
1178
|
+
let Fr = f(() => ({
|
|
1179
|
+
headers: ur.value?.colNames ?? [],
|
|
1180
|
+
rows: ur.value?.bodyA11y ?? []
|
|
1181
1181
|
}));
|
|
1182
1182
|
return xe({
|
|
1183
|
-
getImage:
|
|
1184
|
-
generatePdf:
|
|
1185
|
-
generateCsv:
|
|
1186
|
-
generateImage:
|
|
1187
|
-
generateSvg:
|
|
1188
|
-
toggleTable:
|
|
1189
|
-
toggleTooltip:
|
|
1190
|
-
toggleAnnotator:
|
|
1191
|
-
toggleFullscreen:
|
|
1192
|
-
copyAlt:
|
|
1193
|
-
}), (e, t) => (x(),
|
|
1183
|
+
getImage: gr,
|
|
1184
|
+
generatePdf: vn,
|
|
1185
|
+
generateCsv: lr,
|
|
1186
|
+
generateImage: yn,
|
|
1187
|
+
generateSvg: wr,
|
|
1188
|
+
toggleTable: fr,
|
|
1189
|
+
toggleTooltip: pr,
|
|
1190
|
+
toggleAnnotator: hr,
|
|
1191
|
+
toggleFullscreen: dr,
|
|
1192
|
+
copyAlt: Ar
|
|
1193
|
+
}), (e, t) => (x(), h("div", {
|
|
1194
1194
|
ref_key: "candlestickChart",
|
|
1195
1195
|
ref: M,
|
|
1196
|
-
class:
|
|
1197
|
-
style:
|
|
1196
|
+
class: y(`vue-data-ui-component vue-ui-candlestick ${$.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${P.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
1197
|
+
style: Fe(`position:relative;font-family:${P.value.style.fontFamily}; text-align:center;background:${P.value.style.backgroundColor}; ${P.value.responsive ? "height: 100%" : ""}`),
|
|
1198
1198
|
id: `vue-ui-candlestick_${A.value}`,
|
|
1199
|
-
onMouseenter:
|
|
1200
|
-
onMouseleave:
|
|
1199
|
+
onMouseenter: fn,
|
|
1200
|
+
onMouseleave: pn
|
|
1201
1201
|
}, [
|
|
1202
|
-
|
|
1202
|
+
g("div", {
|
|
1203
1203
|
id: `chart-instructions-${A.value}`,
|
|
1204
1204
|
class: "sr-only"
|
|
1205
|
-
}, [
|
|
1206
|
-
|
|
1205
|
+
}, [g("p", null, T(P.value.a11y.translations.keyboardNavigation), 1)], 8, Ge),
|
|
1206
|
+
Fr.value?.rows?.length ? (x(), p(Ee, {
|
|
1207
1207
|
key: 0,
|
|
1208
1208
|
uid: A.value,
|
|
1209
|
-
head:
|
|
1210
|
-
body:
|
|
1209
|
+
head: Fr.value.headers,
|
|
1210
|
+
body: Fr.value.rows,
|
|
1211
1211
|
notice: P.value.a11y.translations.tableAvailable,
|
|
1212
1212
|
caption: P.value.a11y.translations.tableCaption
|
|
1213
1213
|
}, null, 8, [
|
|
@@ -1216,22 +1216,22 @@ var He = /* @__PURE__ */ e({ default: () => St }), Ue = ["id"], We = ["id"], Ge
|
|
|
1216
1216
|
"body",
|
|
1217
1217
|
"notice",
|
|
1218
1218
|
"caption"
|
|
1219
|
-
])) :
|
|
1220
|
-
P.value.userOptions.buttons.annotator ? (x(),
|
|
1219
|
+
])) : m("", !0),
|
|
1220
|
+
P.value.userOptions.buttons.annotator ? (x(), p(E(Dt), {
|
|
1221
1221
|
key: 1,
|
|
1222
1222
|
svgRef: E(L),
|
|
1223
1223
|
backgroundColor: P.value.style.backgroundColor,
|
|
1224
1224
|
color: P.value.style.color,
|
|
1225
|
-
active:
|
|
1226
|
-
isCursorPointer:
|
|
1227
|
-
onClose:
|
|
1225
|
+
active: mr.value,
|
|
1226
|
+
isCursorPointer: on.value,
|
|
1227
|
+
onClose: hr
|
|
1228
1228
|
}, {
|
|
1229
1229
|
"annotator-action-close": D(() => [w(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
1230
|
-
"annotator-action-color": D(({ color: t }) => [w(e.$slots, "annotator-action-color",
|
|
1231
|
-
"annotator-action-draw": D(({ mode: t }) => [w(e.$slots, "annotator-action-draw",
|
|
1232
|
-
"annotator-action-undo": D(({ disabled: t }) => [w(e.$slots, "annotator-action-undo",
|
|
1233
|
-
"annotator-action-redo": D(({ disabled: t }) => [w(e.$slots, "annotator-action-redo",
|
|
1234
|
-
"annotator-action-delete": D(({ disabled: t }) => [w(e.$slots, "annotator-action-delete",
|
|
1230
|
+
"annotator-action-color": D(({ color: t }) => [w(e.$slots, "annotator-action-color", b(v({ color: t })), void 0, !0)]),
|
|
1231
|
+
"annotator-action-draw": D(({ mode: t }) => [w(e.$slots, "annotator-action-draw", b(v({ mode: t })), void 0, !0)]),
|
|
1232
|
+
"annotator-action-undo": D(({ disabled: t }) => [w(e.$slots, "annotator-action-undo", b(v({ disabled: t })), void 0, !0)]),
|
|
1233
|
+
"annotator-action-redo": D(({ disabled: t }) => [w(e.$slots, "annotator-action-redo", b(v({ disabled: t })), void 0, !0)]),
|
|
1234
|
+
"annotator-action-delete": D(({ disabled: t }) => [w(e.$slots, "annotator-action-delete", b(v({ disabled: t })), void 0, !0)]),
|
|
1235
1235
|
_: 3
|
|
1236
1236
|
}, 8, [
|
|
1237
1237
|
"svgRef",
|
|
@@ -1239,21 +1239,21 @@ var He = /* @__PURE__ */ e({ default: () => St }), Ue = ["id"], We = ["id"], Ge
|
|
|
1239
1239
|
"color",
|
|
1240
1240
|
"active",
|
|
1241
1241
|
"isCursorPointer"
|
|
1242
|
-
])) :
|
|
1243
|
-
|
|
1242
|
+
])) : m("", !0),
|
|
1243
|
+
bn.value ? (x(), h("div", {
|
|
1244
1244
|
key: 2,
|
|
1245
1245
|
ref_key: "noTitle",
|
|
1246
|
-
ref:
|
|
1246
|
+
ref: Gt,
|
|
1247
1247
|
class: "vue-data-ui-no-title-space",
|
|
1248
1248
|
style: "height:36px; width: 100%;background:transparent"
|
|
1249
|
-
}, null, 512)) :
|
|
1250
|
-
P.value.style.title.text ? (x(),
|
|
1249
|
+
}, null, 512)) : m("", !0),
|
|
1250
|
+
P.value.style.title.text ? (x(), h("div", {
|
|
1251
1251
|
key: 3,
|
|
1252
1252
|
ref_key: "chartTitle",
|
|
1253
|
-
ref:
|
|
1253
|
+
ref: Vt,
|
|
1254
1254
|
style: "width:100%;background:transparent"
|
|
1255
|
-
}, [(x(),
|
|
1256
|
-
key: `title_${
|
|
1255
|
+
}, [(x(), p(be, {
|
|
1256
|
+
key: `title_${Jt.value}`,
|
|
1257
1257
|
config: {
|
|
1258
1258
|
title: {
|
|
1259
1259
|
cy: "candlestick-div-title",
|
|
@@ -1264,15 +1264,15 @@ var He = /* @__PURE__ */ e({ default: () => St }), Ue = ["id"], We = ["id"], Ge
|
|
|
1264
1264
|
...P.value.style.title.subtitle
|
|
1265
1265
|
}
|
|
1266
1266
|
}
|
|
1267
|
-
}, null, 8, ["config"]))], 512)) :
|
|
1268
|
-
P.value.userOptions.show &&
|
|
1267
|
+
}, null, 8, ["config"]))], 512)) : m("", !0),
|
|
1268
|
+
P.value.userOptions.show && It.value && (E(dn) || E(ln)) ? (x(), p(E(Ot), {
|
|
1269
1269
|
ref_key: "userOptionsRef",
|
|
1270
|
-
ref:
|
|
1271
|
-
key: `user_options_${
|
|
1270
|
+
ref: Qt,
|
|
1271
|
+
key: `user_options_${Bt.value}`,
|
|
1272
1272
|
backgroundColor: P.value.style.backgroundColor,
|
|
1273
1273
|
color: P.value.style.color,
|
|
1274
|
-
isImaging: E(
|
|
1275
|
-
isPrinting: E(
|
|
1274
|
+
isImaging: E(_n),
|
|
1275
|
+
isPrinting: E(gn),
|
|
1276
1276
|
uid: A.value,
|
|
1277
1277
|
hasTooltip: P.value.userOptions.buttons.tooltip && P.value.style.tooltip.show,
|
|
1278
1278
|
hasPdf: P.value.userOptions.buttons.pdf,
|
|
@@ -1288,25 +1288,25 @@ var He = /* @__PURE__ */ e({ default: () => St }), Ue = ["id"], We = ["id"], Ge
|
|
|
1288
1288
|
chartElement: M.value,
|
|
1289
1289
|
position: P.value.userOptions.position,
|
|
1290
1290
|
hasAnnotator: P.value.userOptions.buttons.annotator,
|
|
1291
|
-
isAnnotation:
|
|
1291
|
+
isAnnotation: mr.value,
|
|
1292
1292
|
callbacks: P.value.userOptions.callbacks,
|
|
1293
1293
|
printScale: P.value.userOptions.print.scale,
|
|
1294
1294
|
tableDialog: P.value.table.useDialog,
|
|
1295
|
-
isCursorPointer:
|
|
1296
|
-
onToggleFullscreen:
|
|
1297
|
-
onGeneratePdf: E(
|
|
1298
|
-
onGenerateCsv:
|
|
1299
|
-
onGenerateImage:
|
|
1300
|
-
onGenerateSvg:
|
|
1301
|
-
onToggleTable:
|
|
1302
|
-
onToggleTooltip:
|
|
1303
|
-
onToggleAnnotator:
|
|
1304
|
-
onCopyAlt:
|
|
1305
|
-
style:
|
|
1295
|
+
isCursorPointer: on.value,
|
|
1296
|
+
onToggleFullscreen: dr,
|
|
1297
|
+
onGeneratePdf: E(vn),
|
|
1298
|
+
onGenerateCsv: lr,
|
|
1299
|
+
onGenerateImage: kr,
|
|
1300
|
+
onGenerateSvg: wr,
|
|
1301
|
+
onToggleTable: fr,
|
|
1302
|
+
onToggleTooltip: pr,
|
|
1303
|
+
onToggleAnnotator: hr,
|
|
1304
|
+
onCopyAlt: Ar,
|
|
1305
|
+
style: Fe({ visibility: E(dn) ? E(ln) ? "visible" : "hidden" : "visible" })
|
|
1306
1306
|
}, Ae({ _: 2 }, [
|
|
1307
1307
|
e.$slots.menuIcon ? {
|
|
1308
1308
|
name: "menuIcon",
|
|
1309
|
-
fn: D(({ isOpen: t, color: n }) => [w(e.$slots, "menuIcon",
|
|
1309
|
+
fn: D(({ isOpen: t, color: n }) => [w(e.$slots, "menuIcon", b(v({
|
|
1310
1310
|
isOpen: t,
|
|
1311
1311
|
color: n
|
|
1312
1312
|
})), void 0, !0)]),
|
|
@@ -1344,7 +1344,7 @@ var He = /* @__PURE__ */ e({ default: () => St }), Ue = ["id"], We = ["id"], Ge
|
|
|
1344
1344
|
} : void 0,
|
|
1345
1345
|
e.$slots.optionFullscreen ? {
|
|
1346
1346
|
name: "optionFullscreen",
|
|
1347
|
-
fn: D(({ toggleFullscreen: t, isFullscreen: n }) => [w(e.$slots, "optionFullscreen",
|
|
1347
|
+
fn: D(({ toggleFullscreen: t, isFullscreen: n }) => [w(e.$slots, "optionFullscreen", b(v({
|
|
1348
1348
|
toggleFullscreen: t,
|
|
1349
1349
|
isFullscreen: n
|
|
1350
1350
|
})), void 0, !0)]),
|
|
@@ -1352,7 +1352,7 @@ var He = /* @__PURE__ */ e({ default: () => St }), Ue = ["id"], We = ["id"], Ge
|
|
|
1352
1352
|
} : void 0,
|
|
1353
1353
|
e.$slots.optionAnnotator ? {
|
|
1354
1354
|
name: "optionAnnotator",
|
|
1355
|
-
fn: D(({ toggleAnnotator: t, isAnnotator: n }) => [w(e.$slots, "optionAnnotator",
|
|
1355
|
+
fn: D(({ toggleAnnotator: t, isAnnotator: n }) => [w(e.$slots, "optionAnnotator", b(v({
|
|
1356
1356
|
toggleAnnotator: t,
|
|
1357
1357
|
isAnnotator: n
|
|
1358
1358
|
})), void 0, !0)]),
|
|
@@ -1360,7 +1360,7 @@ var He = /* @__PURE__ */ e({ default: () => St }), Ue = ["id"], We = ["id"], Ge
|
|
|
1360
1360
|
} : void 0,
|
|
1361
1361
|
e.$slots.optionAltCopy ? {
|
|
1362
1362
|
name: "optionAltCopy",
|
|
1363
|
-
fn: D(({ altCopy: t }) => [w(e.$slots, "optionAltCopy",
|
|
1363
|
+
fn: D(({ altCopy: t }) => [w(e.$slots, "optionAltCopy", b(v({ altCopy: t })), void 0, !0)]),
|
|
1364
1364
|
key: "9"
|
|
1365
1365
|
} : void 0,
|
|
1366
1366
|
e.$slots["custom-menu-before"] ? {
|
|
@@ -1373,34 +1373,34 @@ var He = /* @__PURE__ */ e({ default: () => St }), Ue = ["id"], We = ["id"], Ge
|
|
|
1373
1373
|
fn: D(() => [w(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
1374
1374
|
key: "11"
|
|
1375
1375
|
} : void 0
|
|
1376
|
-
]), 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.style".split("."))) :
|
|
1377
|
-
|
|
1376
|
+
]), 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.style".split("."))) : m("", !0),
|
|
1377
|
+
g("div", Ke, [(x(), h("svg", {
|
|
1378
1378
|
ref_key: "svgRef",
|
|
1379
1379
|
ref: L,
|
|
1380
|
-
xmlns: E(
|
|
1380
|
+
xmlns: E(ie),
|
|
1381
1381
|
"aria-describedby": `chart-instructions-${A.value}`,
|
|
1382
|
-
class:
|
|
1382
|
+
class: y({
|
|
1383
1383
|
"vue-data-ui-fullscreen--on": $.value,
|
|
1384
1384
|
"vue-data-ui-fulscreen--off": !$.value
|
|
1385
1385
|
}),
|
|
1386
1386
|
viewBox: `0 0 ${R.value.width <= 0 ? 10 : R.value.width} ${R.value.height <= 0 ? 10 : R.value.height}`,
|
|
1387
|
-
style:
|
|
1387
|
+
style: Fe(`max-width:100%;overflow:visible;background:transparent;color:${P.value.style.color}`),
|
|
1388
1388
|
tabindex: "0",
|
|
1389
|
-
onFocus:
|
|
1390
|
-
onBlur:
|
|
1391
|
-
onKeydown:
|
|
1389
|
+
onFocus: jr,
|
|
1390
|
+
onBlur: Mr,
|
|
1391
|
+
onKeydown: Nr
|
|
1392
1392
|
}, [
|
|
1393
|
-
Me(E(
|
|
1394
|
-
e.$slots["chart-background"] ? (x(),
|
|
1393
|
+
Me(E(kt)),
|
|
1394
|
+
e.$slots["chart-background"] ? (x(), h("foreignObject", {
|
|
1395
1395
|
key: 0,
|
|
1396
1396
|
x: W.value.left,
|
|
1397
1397
|
y: W.value.top,
|
|
1398
1398
|
width: Math.max(.1, W.value.width),
|
|
1399
1399
|
height: Math.max(.1, W.value.height),
|
|
1400
1400
|
style: { pointerEvents: "none" }
|
|
1401
|
-
}, [w(e.$slots, "chart-background", {}, void 0, !0)], 8,
|
|
1402
|
-
Z.value.length > 0 ? (x(),
|
|
1403
|
-
|
|
1401
|
+
}, [w(e.$slots, "chart-background", {}, void 0, !0)], 8, Je)) : m("", !0),
|
|
1402
|
+
Z.value.length > 0 ? (x(), h("g", Ye, [
|
|
1403
|
+
g("defs", null, [Me(we, {
|
|
1404
1404
|
t: "linear",
|
|
1405
1405
|
id: `bearish_gradient_${A.value}`,
|
|
1406
1406
|
x2: "0%",
|
|
@@ -1445,8 +1445,8 @@ var He = /* @__PURE__ */ e({ default: () => St }), Ue = ["id"], We = ["id"], Ge
|
|
|
1445
1445
|
]
|
|
1446
1446
|
]
|
|
1447
1447
|
}, null, 8, ["id", "stops"])]),
|
|
1448
|
-
P.value.style.layout.grid.show ? (x(),
|
|
1449
|
-
|
|
1448
|
+
P.value.style.layout.grid.show ? (x(), h("g", Xe, [
|
|
1449
|
+
g("line", {
|
|
1450
1450
|
x1: U.value ? W.value.right : W.value.left,
|
|
1451
1451
|
x2: U.value ? W.value.right : W.value.left,
|
|
1452
1452
|
y1: W.value.top,
|
|
@@ -1454,8 +1454,8 @@ var He = /* @__PURE__ */ e({ default: () => St }), Ue = ["id"], We = ["id"], Ge
|
|
|
1454
1454
|
stroke: P.value.style.layout.grid.stroke,
|
|
1455
1455
|
"stroke-width": P.value.style.layout.grid.strokeWidth,
|
|
1456
1456
|
"stroke-linecap": "round"
|
|
1457
|
-
}, null, 8,
|
|
1458
|
-
|
|
1457
|
+
}, null, 8, Ze),
|
|
1458
|
+
g("line", {
|
|
1459
1459
|
x1: W.value.left,
|
|
1460
1460
|
x2: W.value.right,
|
|
1461
1461
|
y1: W.value.bottom,
|
|
@@ -1463,8 +1463,8 @@ var He = /* @__PURE__ */ e({ default: () => St }), Ue = ["id"], We = ["id"], Ge
|
|
|
1463
1463
|
stroke: P.value.style.layout.grid.stroke,
|
|
1464
1464
|
"stroke-width": P.value.style.layout.grid.strokeWidth,
|
|
1465
1465
|
"stroke-linecap": "round"
|
|
1466
|
-
}, null, 8,
|
|
1467
|
-
P.value.style.layout.grid.horizontalLines.show ? (x(!0),
|
|
1466
|
+
}, null, 8, Qe),
|
|
1467
|
+
P.value.style.layout.grid.horizontalLines.show ? (x(!0), h(d, { key: 0 }, C(Rn.value, (e) => (x(), h("line", {
|
|
1468
1468
|
x1: W.value.left,
|
|
1469
1469
|
x2: W.value.right,
|
|
1470
1470
|
y1: e.y,
|
|
@@ -1473,8 +1473,8 @@ var He = /* @__PURE__ */ e({ default: () => St }), Ue = ["id"], We = ["id"], Ge
|
|
|
1473
1473
|
"stroke-width": P.value.style.layout.grid.horizontalLines.strokeWidth,
|
|
1474
1474
|
"stroke-dasharray": P.value.style.layout.grid.horizontalLines.strokeDasharray,
|
|
1475
1475
|
"stroke-linecap": "round"
|
|
1476
|
-
}, null, 8,
|
|
1477
|
-
P.value.style.layout.grid.verticalLines.show ? (x(!0),
|
|
1476
|
+
}, null, 8, $e))), 256)) : m("", !0),
|
|
1477
|
+
P.value.style.layout.grid.verticalLines.show ? (x(!0), h(d, { key: 1 }, C(Yn.value, (e, t) => (x(), h("g", null, [e.text ? (x(), h("line", {
|
|
1478
1478
|
key: 0,
|
|
1479
1479
|
x1: W.value.left + Y.value * t + Y.value / 2,
|
|
1480
1480
|
x2: W.value.left + Y.value * t + Y.value / 2,
|
|
@@ -1484,8 +1484,8 @@ var He = /* @__PURE__ */ e({ default: () => St }), Ue = ["id"], We = ["id"], Ge
|
|
|
1484
1484
|
"stroke-width": P.value.style.layout.grid.verticalLines.strokeWidth,
|
|
1485
1485
|
"stroke-dasharray": P.value.style.layout.grid.verticalLines.strokeDasharray,
|
|
1486
1486
|
"stroke-linecap": "round"
|
|
1487
|
-
}, null, 8,
|
|
1488
|
-
P.value.style.layout.grid.xAxis.ticks.show ? (x(!0),
|
|
1487
|
+
}, null, 8, et)) : m("", !0)]))), 256)) : m("", !0),
|
|
1488
|
+
P.value.style.layout.grid.xAxis.ticks.show ? (x(!0), h(d, { key: 2 }, C(Yn.value, (e, t) => (x(), h("g", null, [e.text ? (x(), h("line", {
|
|
1489
1489
|
key: 0,
|
|
1490
1490
|
x1: W.value.left + Y.value * t + Y.value / 2,
|
|
1491
1491
|
x2: W.value.left + Y.value * t + Y.value / 2,
|
|
@@ -1494,13 +1494,13 @@ var He = /* @__PURE__ */ e({ default: () => St }), Ue = ["id"], We = ["id"], Ge
|
|
|
1494
1494
|
stroke: P.value.style.layout.grid.stroke,
|
|
1495
1495
|
"stroke-width": P.value.style.layout.grid.strokeWidth,
|
|
1496
1496
|
"stroke-linecap": "round"
|
|
1497
|
-
}, null, 8,
|
|
1498
|
-
])) :
|
|
1499
|
-
P.value.style.layout.grid.yAxis.dataLabels.show ? (x(),
|
|
1497
|
+
}, null, 8, tt)) : m("", !0)]))), 256)) : m("", !0)
|
|
1498
|
+
])) : m("", !0),
|
|
1499
|
+
P.value.style.layout.grid.yAxis.dataLabels.show ? (x(), h("g", {
|
|
1500
1500
|
key: 1,
|
|
1501
1501
|
ref_key: "scaleLabels",
|
|
1502
|
-
ref:
|
|
1503
|
-
}, [(x(!0),
|
|
1502
|
+
ref: Yt
|
|
1503
|
+
}, [(x(!0), h(d, null, C(Rn.value, (e, t) => (x(), h("g", { key: `sl_${t}` }, [e.value >= X.value.min && e.value <= X.value.max ? (x(), h("line", {
|
|
1504
1504
|
key: 0,
|
|
1505
1505
|
x1: U.value ? W.value.right : W.value.left,
|
|
1506
1506
|
x2: U.value ? W.value.right + 5 : W.value.left - 5,
|
|
@@ -1509,10 +1509,10 @@ var He = /* @__PURE__ */ e({ default: () => St }), Ue = ["id"], We = ["id"], Ge
|
|
|
1509
1509
|
stroke: P.value.style.layout.grid.stroke,
|
|
1510
1510
|
"stroke-width": P.value.style.layout.grid.strokeWidth,
|
|
1511
1511
|
"stroke-linecap": "round"
|
|
1512
|
-
}, null, 8,
|
|
1512
|
+
}, null, 8, nt)) : m("", !0), e.value >= X.value.min && e.value <= X.value.max ? (x(), h("text", {
|
|
1513
1513
|
key: 1,
|
|
1514
|
-
|
|
1515
|
-
|
|
1514
|
+
class: y({ "vue-data-ui-datalabel": E(Pt) }),
|
|
1515
|
+
transform: `translate(${U.value ? W.value.right + 8 + P.value.style.layout.grid.yAxis.dataLabels.offsetX : W.value.left - 8 + P.value.style.layout.grid.yAxis.dataLabels.offsetX}, ${e.y + R.value.yAxisFontSize / 3})`,
|
|
1516
1516
|
"text-anchor": U.value ? "start" : "end",
|
|
1517
1517
|
"font-size": R.value.yAxisFontSize,
|
|
1518
1518
|
fill: P.value.style.layout.grid.yAxis.dataLabels.color,
|
|
@@ -1522,33 +1522,33 @@ var He = /* @__PURE__ */ e({ default: () => St }), Ue = ["id"], We = ["id"], Ge
|
|
|
1522
1522
|
v: e.value,
|
|
1523
1523
|
s: P.value.style.layout.grid.yAxis.dataLabels.suffix,
|
|
1524
1524
|
r: P.value.style.layout.grid.yAxis.dataLabels.roundingValue
|
|
1525
|
-
})),
|
|
1526
|
-
P.value.style.layout.grid.xAxis.dataLabels.show && !P.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? (x(),
|
|
1525
|
+
})), 11, rt)) : m("", !0)]))), 128))], 512)) : m("", !0),
|
|
1526
|
+
P.value.style.layout.grid.xAxis.dataLabels.show && !P.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? (x(), h("g", {
|
|
1527
1527
|
key: 2,
|
|
1528
1528
|
ref_key: "timeLabelsEls",
|
|
1529
|
-
ref:
|
|
1530
|
-
}, [(x(!0),
|
|
1529
|
+
ref: Xt
|
|
1530
|
+
}, [(x(!0), h(d, null, C(zn.value, (e, t) => (x(), h("g", null, [g("text", {
|
|
1531
1531
|
class: "vue-data-ui-time-label",
|
|
1532
1532
|
transform: `translate(${W.value.left + Y.value * t + Y.value / 2}, ${W.value.bottom + R.value.xAxisFontSize * 1.5}), rotate(${P.value.style.layout.grid.xAxis.dataLabels.rotation})`,
|
|
1533
1533
|
"text-anchor": P.value.style.layout.grid.xAxis.dataLabels.rotation > 0 ? "start" : P.value.style.layout.grid.xAxis.dataLabels.rotation < 0 ? "end" : "middle",
|
|
1534
1534
|
"font-size": R.value.xAxisFontSize,
|
|
1535
1535
|
fill: P.value.style.layout.grid.xAxis.dataLabels.color,
|
|
1536
1536
|
"font-weight": P.value.style.layout.grid.xAxis.dataLabels.bold ? "bold" : "normal"
|
|
1537
|
-
}, T(e), 9,
|
|
1538
|
-
P.value.style.layout.grid.xAxis.dataLabels.show && P.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? (x(),
|
|
1537
|
+
}, T(e), 9, it)]))), 256))], 512)) : m("", !0),
|
|
1538
|
+
P.value.style.layout.grid.xAxis.dataLabels.show && P.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? (x(), h("g", {
|
|
1539
1539
|
key: 3,
|
|
1540
1540
|
ref_key: "timeLabelsEls",
|
|
1541
|
-
ref:
|
|
1542
|
-
}, [(x(!0),
|
|
1541
|
+
ref: Xt
|
|
1542
|
+
}, [(x(!0), h(d, null, C(Yn.value, (e, t) => (x(), h("g", null, [g("text", {
|
|
1543
1543
|
class: "vue-data-ui-time-label",
|
|
1544
1544
|
transform: `translate(${W.value.left + Y.value * t + Y.value / 2}, ${W.value.bottom + R.value.xAxisFontSize * 1.5}), rotate(${P.value.style.layout.grid.xAxis.dataLabels.rotation})`,
|
|
1545
1545
|
"text-anchor": P.value.style.layout.grid.xAxis.dataLabels.rotation > 0 ? "start" : P.value.style.layout.grid.xAxis.dataLabels.rotation < 0 ? "end" : "middle",
|
|
1546
1546
|
"font-size": R.value.xAxisFontSize,
|
|
1547
1547
|
fill: P.value.style.layout.grid.xAxis.dataLabels.color,
|
|
1548
1548
|
"font-weight": P.value.style.layout.grid.xAxis.dataLabels.bold ? "bold" : "normal"
|
|
1549
|
-
}, T(e?.text ?? ""), 9,
|
|
1550
|
-
P.value.type === "candlestick" ? (x(),
|
|
1551
|
-
|
|
1549
|
+
}, T(e?.text ?? ""), 9, at)]))), 256))], 512)) : m("", !0),
|
|
1550
|
+
P.value.type === "candlestick" ? (x(), h(d, { key: 4 }, [g("g", null, [(x(!0), h(d, null, C(Z.value, (e, t) => (x(), h("g", null, [
|
|
1551
|
+
g("rect", {
|
|
1552
1552
|
x: e.open.x - P.value.style.layout.wick.strokeWidth / 2,
|
|
1553
1553
|
y: e.high.y,
|
|
1554
1554
|
width: P.value.style.layout.wick.strokeWidth,
|
|
@@ -1556,22 +1556,22 @@ var He = /* @__PURE__ */ e({ default: () => St }), Ue = ["id"], We = ["id"], Ge
|
|
|
1556
1556
|
fill: P.value.style.layout.wick.stroke,
|
|
1557
1557
|
stroke: "none",
|
|
1558
1558
|
rx: P.value.style.layout.wick.strokeWidth / 2,
|
|
1559
|
-
class:
|
|
1560
|
-
}, null, 10,
|
|
1561
|
-
P.value.style.layout.wick.extremity.shape === "circle" ? (x(),
|
|
1559
|
+
class: y({ "vue-data-ui-transition": k.value && !E(F) })
|
|
1560
|
+
}, null, 10, ot),
|
|
1561
|
+
P.value.style.layout.wick.extremity.shape === "circle" ? (x(), h("g", st, [g("circle", {
|
|
1562
1562
|
cx: e.high.x,
|
|
1563
1563
|
cy: e.high.y,
|
|
1564
1564
|
r: P.value.style.layout.wick.extremity.size === "auto" ? Y.value / 20 : P.value.style.layout.wick.extremity.size,
|
|
1565
1565
|
fill: P.value.style.layout.wick.extremity.color,
|
|
1566
|
-
class:
|
|
1567
|
-
}, null, 10,
|
|
1566
|
+
class: y({ "vue-data-ui-transition": k.value && !E(F) })
|
|
1567
|
+
}, null, 10, ct), g("circle", {
|
|
1568
1568
|
cx: e.low.x,
|
|
1569
1569
|
cy: e.low.y,
|
|
1570
1570
|
r: P.value.style.layout.wick.extremity.size === "auto" ? Y.value / 20 : P.value.style.layout.wick.extremity.size,
|
|
1571
1571
|
fill: P.value.style.layout.wick.extremity.color,
|
|
1572
|
-
class:
|
|
1573
|
-
}, null, 10,
|
|
1574
|
-
P.value.style.layout.wick.extremity.shape === "line" ? (x(),
|
|
1572
|
+
class: y({ "vue-data-ui-transition": k.value && !E(F) })
|
|
1573
|
+
}, null, 10, lt)])) : m("", !0),
|
|
1574
|
+
P.value.style.layout.wick.extremity.shape === "line" ? (x(), h("g", ut, [g("rect", {
|
|
1575
1575
|
x: e.high.x - (P.value.style.layout.wick.extremity.size === "auto" ? Y.value * P.value.style.layout.candle.widthRatio : P.value.style.layout.wick.extremity.size) / 2,
|
|
1576
1576
|
y: e.high.y - P.value.style.layout.wick.strokeWidth / 2,
|
|
1577
1577
|
width: Math.abs(e.high.x - (P.value.style.layout.wick.extremity.size === "auto" ? Y.value * P.value.style.layout.candle.widthRatio : P.value.style.layout.wick.extremity.size) / 2 - (e.high.x + (P.value.style.layout.wick.extremity.size === "auto" ? Y.value * P.value.style.layout.candle.widthRatio : P.value.style.layout.wick.extremity.size) / 2)),
|
|
@@ -1579,8 +1579,8 @@ var He = /* @__PURE__ */ e({ default: () => St }), Ue = ["id"], We = ["id"], Ge
|
|
|
1579
1579
|
rx: P.value.style.layout.wick.strokeWidth / 2,
|
|
1580
1580
|
fill: P.value.style.layout.wick.extremity.color,
|
|
1581
1581
|
stroke: "none",
|
|
1582
|
-
class:
|
|
1583
|
-
}, null, 10,
|
|
1582
|
+
class: y({ "vue-data-ui-transition": k.value && !E(F) })
|
|
1583
|
+
}, null, 10, dt), g("rect", {
|
|
1584
1584
|
x: e.low.x - (P.value.style.layout.wick.extremity.size === "auto" ? Y.value * P.value.style.layout.candle.widthRatio : P.value.style.layout.wick.extremity.size) / 2,
|
|
1585
1585
|
y: e.low.y - P.value.style.layout.wick.strokeWidth / 2,
|
|
1586
1586
|
width: Math.abs(e.low.x - (P.value.style.layout.wick.extremity.size === "auto" ? Y.value * P.value.style.layout.candle.widthRatio : P.value.style.layout.wick.extremity.size) / 2 - (e.low.x + (P.value.style.layout.wick.extremity.size === "auto" ? Y.value * P.value.style.layout.candle.widthRatio : P.value.style.layout.wick.extremity.size) / 2)),
|
|
@@ -1588,9 +1588,9 @@ var He = /* @__PURE__ */ e({ default: () => St }), Ue = ["id"], We = ["id"], Ge
|
|
|
1588
1588
|
fill: P.value.style.layout.wick.extremity.color,
|
|
1589
1589
|
stroke: "none",
|
|
1590
1590
|
rx: P.value.style.layout.wick.strokeWidth / 2,
|
|
1591
|
-
class:
|
|
1592
|
-
}, null, 10,
|
|
1593
|
-
]))), 256))]),
|
|
1591
|
+
class: y({ "vue-data-ui-transition": k.value && !E(F) })
|
|
1592
|
+
}, null, 10, ft)])) : m("", !0)
|
|
1593
|
+
]))), 256))]), g("g", null, [(x(!0), h(d, null, C(Z.value, (e, t) => (x(), h("rect", {
|
|
1594
1594
|
x: e.open.x - Y.value / 2 + Y.value * (1 - P.value.style.layout.candle.widthRatio) / 2,
|
|
1595
1595
|
y: e.isBullish ? e.close.y : e.open.y,
|
|
1596
1596
|
height: Math.abs(e.close.y - e.open.y) <= 0 ? 1e-4 : Math.abs(e.close.y - e.open.y),
|
|
@@ -1598,8 +1598,8 @@ var He = /* @__PURE__ */ e({ default: () => St }), Ue = ["id"], We = ["id"], Ge
|
|
|
1598
1598
|
fill: P.value.style.layout.candle.gradient.underlayer,
|
|
1599
1599
|
rx: P.value.style.layout.candle.borderRadius,
|
|
1600
1600
|
stroke: "none",
|
|
1601
|
-
class:
|
|
1602
|
-
}, null, 10,
|
|
1601
|
+
class: y({ "vue-data-ui-transition": k.value && !E(F) })
|
|
1602
|
+
}, null, 10, pt))), 256)), (x(!0), h(d, null, C(Z.value, (e, t) => (x(), h("rect", {
|
|
1603
1603
|
x: e.open.x - Y.value / 2 + Y.value * (1 - P.value.style.layout.candle.widthRatio) / 2,
|
|
1604
1604
|
y: e.isBullish ? e.close.y : e.open.y,
|
|
1605
1605
|
height: Math.abs(e.close.y - e.open.y) <= 0 ? 1e-4 : Math.abs(e.close.y - e.open.y),
|
|
@@ -1610,46 +1610,46 @@ var He = /* @__PURE__ */ e({ default: () => St }), Ue = ["id"], We = ["id"], Ge
|
|
|
1610
1610
|
"stroke-width": P.value.style.layout.candle.strokeWidth,
|
|
1611
1611
|
"stroke-linecap": "round",
|
|
1612
1612
|
"stroke-linejoin": "round",
|
|
1613
|
-
class:
|
|
1614
|
-
}, null, 10,
|
|
1615
|
-
P.value.type === "ohlc" ? (x(!0),
|
|
1613
|
+
class: y({ "vue-data-ui-transition": k.value && !E(F) })
|
|
1614
|
+
}, null, 10, mt))), 256))])], 64)) : m("", !0),
|
|
1615
|
+
P.value.type === "ohlc" ? (x(!0), h(d, { key: 5 }, C(Z.value, (e, t) => (x(), h("g", null, [g("path", {
|
|
1616
1616
|
d: `M ${e.high.x},${e.high.y} ${e.low.x},${e.low.y} M${e.open.x - Math.min(6, Y.value / 3)},${e.open.y} ${e.open.x},${e.open.y} M${e.close.x},${e.close.y} ${e.close.x + Math.min(6, Y.value / 3)},${e.close.y}`,
|
|
1617
1617
|
stroke: e.isBullish ? P.value.style.layout.candle.colors.bullish : P.value.style.layout.candle.colors.bearish,
|
|
1618
1618
|
"stroke-width": 1
|
|
1619
|
-
}, null, 8,
|
|
1620
|
-
|
|
1619
|
+
}, null, 8, ht)]))), 256)) : m("", !0),
|
|
1620
|
+
g("g", null, [(x(!0), h(d, null, C(Z.value, (e, t) => (x(), h("rect", {
|
|
1621
1621
|
x: W.value.left + t * Y.value,
|
|
1622
1622
|
y: W.value.top,
|
|
1623
1623
|
height: W.value.height <= 0 ? 1e-4 : W.value.height,
|
|
1624
1624
|
width: Y.value <= 0 ? 1e-4 : Y.value,
|
|
1625
|
-
fill: j.value === t ||
|
|
1626
|
-
onMouseover: () =>
|
|
1627
|
-
onMouseleave: () =>
|
|
1628
|
-
onClick: () =>
|
|
1629
|
-
}, null, 40,
|
|
1630
|
-
])) :
|
|
1631
|
-
|
|
1625
|
+
fill: j.value === t || $t.value === t ? E(oe)(P.value.style.layout.selector.color, P.value.style.layout.selector.opacity) : "transparent",
|
|
1626
|
+
onMouseover: () => er(t, e, "pointer"),
|
|
1627
|
+
onMouseleave: () => $n(t, e),
|
|
1628
|
+
onClick: () => Qn(t, e)
|
|
1629
|
+
}, null, 40, gt))), 256))])
|
|
1630
|
+
])) : m("", !0),
|
|
1631
|
+
En.value ? (x(), h("rect", Ne({ key: 2 }, Tn.value, {
|
|
1632
1632
|
"data-start": K.value.start,
|
|
1633
1633
|
"data-end": K.value.end
|
|
1634
|
-
}), null, 16,
|
|
1634
|
+
}), null, 16, _t)) : m("", !0),
|
|
1635
1635
|
w(e.$slots, "svg", { svg: {
|
|
1636
1636
|
...R.value,
|
|
1637
1637
|
data: Z.value,
|
|
1638
1638
|
drawingArea: W.value,
|
|
1639
|
-
isPrintingImg: E(
|
|
1640
|
-
isPrintingSvg:
|
|
1639
|
+
isPrintingImg: E(gn) || E(_n) || en.value,
|
|
1640
|
+
isPrintingSvg: tn.value
|
|
1641
1641
|
} }, void 0, !0)
|
|
1642
|
-
], 46,
|
|
1642
|
+
], 46, qe)), e.$slots.hint ? (x(), h("div", vt, [w(e.$slots, "hint", b(v({
|
|
1643
1643
|
hint: P.value.a11y.translations.keyboardNavigation,
|
|
1644
|
-
isVisible:
|
|
1645
|
-
})), void 0, !0)])) :
|
|
1646
|
-
e.$slots.watermark ? (x(),
|
|
1647
|
-
P.value.style.zoom.show && G.value > 6 &&
|
|
1644
|
+
isVisible: an.value
|
|
1645
|
+
})), void 0, !0)])) : m("", !0)]),
|
|
1646
|
+
e.$slots.watermark ? (x(), h("div", yt, [w(e.$slots, "watermark", b(v({ isPrinting: E(gn) || E(_n) || en.value || tn.value })), void 0, !0)])) : m("", !0),
|
|
1647
|
+
P.value.style.zoom.show && G.value > 6 && It.value && ar.value ? (x(), p(Te, {
|
|
1648
1648
|
key: 6,
|
|
1649
1649
|
ref_key: "chartSlicer",
|
|
1650
|
-
ref:
|
|
1650
|
+
ref: Ut,
|
|
1651
1651
|
"data-dom-to-png-ignore-layout": "",
|
|
1652
|
-
allMinimaps:
|
|
1652
|
+
allMinimaps: In.value,
|
|
1653
1653
|
background: P.value.style.zoom.color,
|
|
1654
1654
|
borderColor: P.value.style.backgroundColor,
|
|
1655
1655
|
customFormat: P.value.style.zoom.customFormat,
|
|
@@ -1662,9 +1662,9 @@ var He = /* @__PURE__ */ e({ default: () => St }), Ue = ["id"], We = ["id"], Ge
|
|
|
1662
1662
|
fontSize: P.value.style.zoom.fontSize,
|
|
1663
1663
|
immediate: !P.value.style.zoom.preview.enable,
|
|
1664
1664
|
inputColor: P.value.style.zoom.color,
|
|
1665
|
-
isPreview:
|
|
1666
|
-
labelLeft:
|
|
1667
|
-
labelRight:
|
|
1665
|
+
isPreview: En.value,
|
|
1666
|
+
labelLeft: Xn.value.start || "",
|
|
1667
|
+
labelRight: Xn.value.end || "",
|
|
1668
1668
|
max: G.value,
|
|
1669
1669
|
min: 0,
|
|
1670
1670
|
minimap: P.value.style.zoom.minimap.show ? E(I).map((e) => e[2]) : [],
|
|
@@ -1676,7 +1676,7 @@ var He = /* @__PURE__ */ e({ default: () => St }), Ue = ["id"], We = ["id"], Ge
|
|
|
1676
1676
|
minimapSelectedColorOpacity: P.value.style.zoom.minimap.selectedColorOpacity,
|
|
1677
1677
|
minimapSelectedIndex: j.value,
|
|
1678
1678
|
minimapSelectionRadius: 1,
|
|
1679
|
-
preciseLabels:
|
|
1679
|
+
preciseLabels: Jn.value,
|
|
1680
1680
|
refreshEndPoint: P.value.style.zoom.endIndex === null ? G.value : P.value.style.zoom.endIndex + 1,
|
|
1681
1681
|
refreshStartPoint: P.value.style.zoom.startIndex === null ? 0 : P.value.style.zoom.startIndex,
|
|
1682
1682
|
selectColor: P.value.style.zoom.highlightColor,
|
|
@@ -1684,7 +1684,7 @@ var He = /* @__PURE__ */ e({ default: () => St }), Ue = ["id"], We = ["id"], Ge
|
|
|
1684
1684
|
smoothMinimap: !1,
|
|
1685
1685
|
start: K.value.start,
|
|
1686
1686
|
textColor: P.value.style.color,
|
|
1687
|
-
timeLabels:
|
|
1687
|
+
timeLabels: Bn.value,
|
|
1688
1688
|
usePreciseLabels: P.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable && !P.value.style.zoom.useDefaultFormat,
|
|
1689
1689
|
useResetSlot: P.value.style.zoom.useResetSlot,
|
|
1690
1690
|
valueEnd: K.value.end,
|
|
@@ -1700,43 +1700,43 @@ var He = /* @__PURE__ */ e({ default: () => St }), Ue = ["id"], We = ["id"], Ge
|
|
|
1700
1700
|
handleBorderColor: P.value.style.zoom.minimap.handleBorderColor,
|
|
1701
1701
|
handleFill: P.value.style.zoom.minimap.handleFill,
|
|
1702
1702
|
handleWidth: P.value.style.zoom.minimap.handleWidth,
|
|
1703
|
-
"onUpdate:end":
|
|
1704
|
-
"onUpdate:start":
|
|
1705
|
-
onTrapMouse:
|
|
1706
|
-
onReset:
|
|
1707
|
-
onFutureEnd: t[0] ||= (e) =>
|
|
1708
|
-
onFutureStart: t[1] ||= (e) =>
|
|
1703
|
+
"onUpdate:end": Dr,
|
|
1704
|
+
"onUpdate:start": Er,
|
|
1705
|
+
onTrapMouse: Tr,
|
|
1706
|
+
onReset: rr,
|
|
1707
|
+
onFutureEnd: t[0] ||= (e) => Dn("end", e),
|
|
1708
|
+
onFutureStart: t[1] ||= (e) => Dn("start", e)
|
|
1709
1709
|
}, {
|
|
1710
|
-
"reset-action": D(({ reset: t }) => [w(e.$slots, "reset-action",
|
|
1711
|
-
slotMap: D(({ height: e, unitW: t }) => [(x(!0),
|
|
1710
|
+
"reset-action": D(({ reset: t }) => [w(e.$slots, "reset-action", b(v({ reset: t })), void 0, !0)]),
|
|
1711
|
+
slotMap: D(({ height: e, unitW: t }) => [(x(!0), h(d, null, C(Fn.value({
|
|
1712
1712
|
minimapH: e,
|
|
1713
1713
|
unitW: t
|
|
1714
|
-
}), (e, n) => (x(),
|
|
1714
|
+
}), (e, n) => (x(), h("g", null, [g("path", {
|
|
1715
1715
|
d: `M ${e.high.x},${e.high.y} ${e.low.x},${e.low.y}`,
|
|
1716
1716
|
stroke: e.isBullish ? P.value.style.layout.candle.colors.bullish : P.value.style.layout.candle.colors.bearish,
|
|
1717
1717
|
"stroke-width": 1,
|
|
1718
|
-
style:
|
|
1719
|
-
}, null, 12,
|
|
1718
|
+
style: Fe({ opacity: n >= q.value.start && n <= q.value.end ? 1 : .6 })
|
|
1719
|
+
}, null, 12, bt), g("path", {
|
|
1720
1720
|
d: `M ${e.open.x},${e.open.y} ${e.close.x},${e.close.y}`,
|
|
1721
1721
|
stroke: e.isBullish ? P.value.style.layout.candle.colors.bullish : P.value.style.layout.candle.colors.bearish,
|
|
1722
1722
|
"stroke-width": Math.min(6, t / 1.5),
|
|
1723
|
-
style:
|
|
1724
|
-
}, null, 12,
|
|
1723
|
+
style: Fe({ opacity: n >= q.value.start && n <= q.value.end ? 1 : .6 })
|
|
1724
|
+
}, null, 12, xt)]))), 256))]),
|
|
1725
1725
|
_: 3
|
|
1726
|
-
}, 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.additionalMinimapHeight.handleType.handleIconColor.handleBorderWidth.handleBorderColor.handleFill.handleWidth".split("."))) :
|
|
1727
|
-
|
|
1726
|
+
}, 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.additionalMinimapHeight.handleType.handleIconColor.handleBorderWidth.handleBorderColor.handleFill.handleWidth".split("."))) : m("", !0),
|
|
1727
|
+
g("div", {
|
|
1728
1728
|
ref_key: "chartLegend",
|
|
1729
|
-
ref:
|
|
1729
|
+
ref: Ht
|
|
1730
1730
|
}, [w(e.$slots, "legend", { legend: Z.value }, void 0, !0)], 512),
|
|
1731
|
-
e.$slots.source ? (x(),
|
|
1731
|
+
e.$slots.source ? (x(), h("div", {
|
|
1732
1732
|
key: 7,
|
|
1733
1733
|
ref_key: "source",
|
|
1734
|
-
ref:
|
|
1734
|
+
ref: Wt,
|
|
1735
1735
|
dir: "auto"
|
|
1736
|
-
}, [w(e.$slots, "source", {}, void 0, !0)], 512)) :
|
|
1737
|
-
Me(E(
|
|
1736
|
+
}, [w(e.$slots, "source", {}, void 0, !0)], 512)) : m("", !0),
|
|
1737
|
+
Me(E(wt), {
|
|
1738
1738
|
teleportTo: P.value.style.tooltip.teleportTo,
|
|
1739
|
-
show: H.value.showTooltip &&
|
|
1739
|
+
show: H.value.showTooltip && Rt.value,
|
|
1740
1740
|
backgroundColor: P.value.style.tooltip.backgroundColor,
|
|
1741
1741
|
color: P.value.style.tooltip.color,
|
|
1742
1742
|
borderRadius: P.value.style.tooltip.borderRadius,
|
|
@@ -1748,19 +1748,19 @@ var He = /* @__PURE__ */ e({ default: () => St }), Ue = ["id"], We = ["id"], Ge
|
|
|
1748
1748
|
offsetX: P.value.style.tooltip.offsetX,
|
|
1749
1749
|
offsetY: P.value.style.tooltip.offsetY,
|
|
1750
1750
|
parent: M.value,
|
|
1751
|
-
content:
|
|
1751
|
+
content: zt.value,
|
|
1752
1752
|
isFullscreen: $.value,
|
|
1753
1753
|
isCustom: P.value.style.tooltip.customFormat && typeof P.value.style.tooltip.customFormat == "function",
|
|
1754
1754
|
smooth: P.value.style.tooltip.smooth,
|
|
1755
1755
|
backdropFilter: P.value.style.tooltip.backdropFilter,
|
|
1756
1756
|
smoothForce: P.value.style.tooltip.smoothForce,
|
|
1757
1757
|
smoothSnapThreshold: P.value.style.tooltip.smoothSnapThreshold,
|
|
1758
|
-
isA11yMode:
|
|
1759
|
-
a11yPosition:
|
|
1758
|
+
isA11yMode: rn.value === "keyboard",
|
|
1759
|
+
a11yPosition: nn.value
|
|
1760
1760
|
}, {
|
|
1761
|
-
"tooltip-before": D(() => [w(e.$slots, "tooltip-before",
|
|
1762
|
-
tooltip: D(() => [w(e.$slots, "tooltip",
|
|
1763
|
-
"tooltip-after": D(() => [w(e.$slots, "tooltip-after",
|
|
1761
|
+
"tooltip-before": D(() => [w(e.$slots, "tooltip-before", b(v({ ...Zn.value })), void 0, !0)]),
|
|
1762
|
+
tooltip: D(() => [w(e.$slots, "tooltip", b(v({ ...Zn.value })), void 0, !0)]),
|
|
1763
|
+
"tooltip-after": D(() => [w(e.$slots, "tooltip-after", b(v({ ...Zn.value })), void 0, !0)]),
|
|
1764
1764
|
_: 3
|
|
1765
1765
|
}, 8, [
|
|
1766
1766
|
"teleportTo",
|
|
@@ -1786,24 +1786,24 @@ var He = /* @__PURE__ */ e({ default: () => St }), Ue = ["id"], We = ["id"], Ge
|
|
|
1786
1786
|
"isA11yMode",
|
|
1787
1787
|
"a11yPosition"
|
|
1788
1788
|
]),
|
|
1789
|
-
|
|
1789
|
+
It.value && P.value.userOptions.buttons.table ? (x(), p(Re(yr.value.component), Ne({ key: 8 }, yr.value.props, {
|
|
1790
1790
|
ref_key: "tableUnit",
|
|
1791
|
-
ref:
|
|
1792
|
-
onClose:
|
|
1791
|
+
ref: Zt,
|
|
1792
|
+
onClose: br
|
|
1793
1793
|
}), Ae({
|
|
1794
|
-
content: D(() => [(x(),
|
|
1795
|
-
key: `table_${
|
|
1796
|
-
colNames:
|
|
1797
|
-
head:
|
|
1798
|
-
body:
|
|
1799
|
-
config:
|
|
1800
|
-
title: P.value.table.useDialog ? "" :
|
|
1794
|
+
content: D(() => [(x(), p(E(Et), {
|
|
1795
|
+
key: `table_${qt.value}`,
|
|
1796
|
+
colNames: ur.value.colNames,
|
|
1797
|
+
head: ur.value.head,
|
|
1798
|
+
body: ur.value.body,
|
|
1799
|
+
config: ur.value.config,
|
|
1800
|
+
title: P.value.table.useDialog ? "" : yr.value.title,
|
|
1801
1801
|
withCloseButton: !P.value.table.useDialog,
|
|
1802
|
-
isCursorPointer:
|
|
1803
|
-
onClose:
|
|
1802
|
+
isCursorPointer: on.value,
|
|
1803
|
+
onClose: br
|
|
1804
1804
|
}, {
|
|
1805
1805
|
th: D(({ th: e }) => [je(T(e), 1)]),
|
|
1806
|
-
td: D(({ td: e }) => [
|
|
1806
|
+
td: D(({ td: e }) => [g("div", { innerHTML: e }, null, 8, St)]),
|
|
1807
1807
|
_: 1
|
|
1808
1808
|
}, 8, [
|
|
1809
1809
|
"colNames",
|
|
@@ -1817,24 +1817,24 @@ var He = /* @__PURE__ */ e({ default: () => St }), Ue = ["id"], We = ["id"], Ge
|
|
|
1817
1817
|
_: 2
|
|
1818
1818
|
}, [P.value.table.useDialog ? {
|
|
1819
1819
|
name: "title",
|
|
1820
|
-
fn: D(() => [je(T(
|
|
1820
|
+
fn: D(() => [je(T(yr.value.title), 1)]),
|
|
1821
1821
|
key: "0"
|
|
1822
1822
|
} : void 0, P.value.table.useDialog ? {
|
|
1823
1823
|
name: "actions",
|
|
1824
|
-
fn: D(() => [
|
|
1824
|
+
fn: D(() => [g("button", {
|
|
1825
1825
|
tabindex: "0",
|
|
1826
1826
|
class: "vue-ui-user-options-button",
|
|
1827
|
-
onClick: t[2] ||= (e) =>
|
|
1828
|
-
style:
|
|
1829
|
-
}, [Me(E(
|
|
1827
|
+
onClick: t[2] ||= (e) => lr(P.value.userOptions.callbacks.csv),
|
|
1828
|
+
style: Fe({ cursor: on.value ? "pointer" : "default" })
|
|
1829
|
+
}, [Me(E(Ct), {
|
|
1830
1830
|
name: "fileCsv",
|
|
1831
|
-
stroke:
|
|
1831
|
+
stroke: yr.value.props.color
|
|
1832
1832
|
}, null, 8, ["stroke"])], 4)]),
|
|
1833
1833
|
key: "1"
|
|
1834
|
-
} : void 0]), 1040)) :
|
|
1835
|
-
w(e.$slots, "skeleton", {}, () => [E(F) ? (x(),
|
|
1836
|
-
], 46,
|
|
1834
|
+
} : void 0]), 1040)) : m("", !0),
|
|
1835
|
+
w(e.$slots, "skeleton", {}, () => [E(F) ? (x(), p(pe, { key: 0 })) : m("", !0)], !0)
|
|
1836
|
+
], 46, We));
|
|
1837
1837
|
}
|
|
1838
|
-
}, [["__scopeId", "data-v-
|
|
1838
|
+
}, [["__scopeId", "data-v-85091423"]]);
|
|
1839
1839
|
//#endregion
|
|
1840
|
-
export {
|
|
1840
|
+
export { Ue as n, Ct as t };
|