vue-data-ui 3.16.0 → 3.16.1
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/ColorPicker-B0mV4xzu.js +255 -0
- package/dist/{NonSvgPenAndPaper-vqweC0WU.js → NonSvgPenAndPaper-VyJFyJ6X.js} +1 -1
- package/dist/{PackageVersion-IIGK_e2C.js → PackageVersion-DPO-OOVI.js} +1 -1
- package/dist/{PenAndPaper-DARlvvKW.js → PenAndPaper-Ct3qJ4lA.js} +109 -101
- package/dist/{UserOptions-DWHf8jyO.js → UserOptions-rW2fRf3V.js} +2 -2
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-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/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +1 -0
- package/dist/{vue-data-ui-CykQ4SW2.js → vue-data-ui-DXGkXRnC.js} +63 -63
- package/dist/vue-data-ui.js +63 -63
- package/dist/{vue-ui-3d-bar-D5KRiVmZ.js → vue-ui-3d-bar-BaFpQnd5.js} +1 -1
- package/dist/{vue-ui-age-pyramid-QfZ1J5Xx.js → vue-ui-age-pyramid-CRM498Pc.js} +342 -341
- package/dist/{vue-ui-annotator-CpSMITlP.js → vue-ui-annotator-CkPi9moo.js} +1 -1
- package/dist/{vue-ui-bullet-B-mo7tzz.js → vue-ui-bullet-BBiwof3c.js} +1 -1
- package/dist/{vue-ui-bump-NfZcJ9Q0.js → vue-ui-bump-Brxpu4xV.js} +1 -1
- package/dist/{vue-ui-candlestick-CGU-0rrF.js → vue-ui-candlestick-DAnZv77-.js} +240 -239
- package/dist/{vue-ui-carousel-table-BsdD3wU7.js → vue-ui-carousel-table-BHRZBYY0.js} +1 -1
- package/dist/{vue-ui-chestnut-JpoNeiHD.js → vue-ui-chestnut-CbrYnRgm.js} +1 -1
- package/dist/{vue-ui-chord-CxhxjRQz.js → vue-ui-chord-CaX_IUVs.js} +1 -1
- package/dist/{vue-ui-circle-pack-DbxOzzk2.js → vue-ui-circle-pack-CR3h53sc.js} +1 -1
- package/dist/{vue-ui-cursor-CZGKKkeT.js → vue-ui-cursor-Cjfazw7Z.js} +1 -1
- package/dist/{vue-ui-dag-gal2eIv-.js → vue-ui-dag-B9vH3c66.js} +1 -1
- package/dist/{vue-ui-dashboard-ClnkPMc5.js → vue-ui-dashboard-DWll05qs.js} +62 -62
- package/dist/{vue-ui-digits-DColgbmH.js → vue-ui-digits-DcM67rMx.js} +1 -1
- package/dist/{vue-ui-donut-Bckj-DX2.js → vue-ui-donut-Be5G38P5.js} +395 -394
- package/dist/{vue-ui-donut-evolution-B6HtvZVs.js → vue-ui-donut-evolution-BLSesj3c.js} +265 -264
- package/dist/{vue-ui-dumbbell-r3Jv9uut.js → vue-ui-dumbbell-DIMiCY4r.js} +1 -1
- package/dist/{vue-ui-flow-BxfLqYXa.js → vue-ui-flow-zvZylhgr.js} +1 -1
- package/dist/{vue-ui-funnel-B6Gevxqh.js → vue-ui-funnel-CSri-oWm.js} +1 -1
- package/dist/{vue-ui-galaxy-BJr1ddJZ.js → vue-ui-galaxy-CGykxsAI.js} +1 -1
- package/dist/{vue-ui-gauge-Q-Slhgwx.js → vue-ui-gauge-D1MNB9Jq.js} +1 -1
- package/dist/{vue-ui-geo-Dow4oyTv.js → vue-ui-geo-DdJDGhG2.js} +1 -1
- package/dist/{vue-ui-gizmo-zpVjAoDG.js → vue-ui-gizmo-BZYRHGFm.js} +1 -1
- package/dist/{vue-ui-heatmap-mKX5Bzql.js → vue-ui-heatmap-CryOx6XK.js} +494 -482
- package/dist/{vue-ui-history-plot-D6kiRkhD.js → vue-ui-history-plot-C85iw9Kl.js} +1 -1
- package/dist/{vue-ui-horizontal-bar-FKkR13e7.js → vue-ui-horizontal-bar-BoBZOybC.js} +430 -429
- package/dist/{vue-ui-kpi-CMRe29m5.js → vue-ui-kpi-DHrolXw6.js} +1 -1
- package/dist/{vue-ui-molecule-7eT7D17p.js → vue-ui-molecule-DJ_BQ4DK.js} +1 -1
- package/dist/{vue-ui-mood-radar-DsC0X_C2.js → vue-ui-mood-radar-CBE02TpQ.js} +1 -1
- package/dist/{vue-ui-nested-donuts-FbiXKFZX.js → vue-ui-nested-donuts-YTFtb4CL.js} +284 -283
- package/dist/{vue-ui-onion-CjWiTq2x.js → vue-ui-onion-B9l81-PS.js} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-kl1jgKIX.js → vue-ui-parallel-coordinate-plot-C1e_rs8J.js} +1 -1
- package/dist/{vue-ui-quadrant-CyalzEfW.js → vue-ui-quadrant-C1qsLCRn.js} +556 -555
- package/dist/{vue-ui-quick-chart-DgWwf7SJ.js → vue-ui-quick-chart-DFoz3WiA.js} +360 -359
- package/dist/{vue-ui-radar-Bw9veQKf.js → vue-ui-radar-Cmo3p-UA.js} +1 -1
- package/dist/{vue-ui-relation-circle-D4-9g-5t.js → vue-ui-relation-circle-BqwznVwf.js} +1 -1
- package/dist/{vue-ui-ridgeline-BZy69VT6.js → vue-ui-ridgeline-CDk9eXJq.js} +1 -1
- package/dist/{vue-ui-rings-LDs6OFnx.js → vue-ui-rings-BRkGoQdL.js} +1 -1
- package/dist/{vue-ui-scatter-i_hakuFa.js → vue-ui-scatter-BxDtWASQ.js} +479 -466
- package/dist/{vue-ui-skeleton-F2qaXsQ2.js → vue-ui-skeleton-D6kTb9aO.js} +1 -1
- package/dist/{vue-ui-spark-trend-ZIMooBi3.js → vue-ui-spark-trend-D8Mf2A1w.js} +1 -1
- package/dist/{vue-ui-sparkbar-BYRKG_Mm.js → vue-ui-sparkbar-BbYj56c3.js} +1 -1
- package/dist/{vue-ui-sparkgauge-BM0mnDHp.js → vue-ui-sparkgauge-DXzOSLRb.js} +1 -1
- package/dist/{vue-ui-sparkhistogram-z4-7Q6J8.js → vue-ui-sparkhistogram-DMfSx1iH.js} +1 -1
- package/dist/{vue-ui-sparkline-9m1__jVp.js → vue-ui-sparkline-D-rQ9PsC.js} +439 -438
- package/dist/{vue-ui-sparkstackbar-uM98VUDw.js → vue-ui-sparkstackbar-DK5n8IKP.js} +1 -1
- package/dist/{vue-ui-stackbar-DcSJuwTC.js → vue-ui-stackbar-BHthy6jf.js} +212 -211
- package/dist/{vue-ui-stackline-Dl_FfJAO.js → vue-ui-stackline-C6-WNpKD.js} +363 -362
- package/dist/{vue-ui-strip-plot-CcV8bOkg.js → vue-ui-strip-plot-CHu-1ilI.js} +1 -1
- package/dist/{vue-ui-table-Dx-N-eF1.js → vue-ui-table-DW9JGsLq.js} +2 -2
- package/dist/{vue-ui-table-heatmap-CVxNZzGe.js → vue-ui-table-heatmap-LYqoBit9.js} +1 -1
- package/dist/{vue-ui-table-sparkline-DdtbqaUL.js → vue-ui-table-sparkline-CXK1dFr-.js} +1 -1
- package/dist/{vue-ui-thermometer-Clwz-wUE.js → vue-ui-thermometer-BN8tflOz.js} +1 -1
- package/dist/{vue-ui-timer-BYVk_bvz.js → vue-ui-timer-DGT0UBOF.js} +1 -1
- package/dist/{vue-ui-tiremarks-D5TSv5yw.js → vue-ui-tiremarks-BZ-osQqY.js} +1 -1
- package/dist/{vue-ui-treemap-C0zhPMxE.js → vue-ui-treemap-98KaVRyd.js} +388 -387
- package/dist/{vue-ui-waffle-BtjLPkLm.js → vue-ui-waffle-Cb7oJnIc.js} +1 -1
- package/dist/{vue-ui-wheel-DSlnowV4.js → vue-ui-wheel-sfew1fjw.js} +1 -1
- package/dist/{vue-ui-word-cloud-DFdiRCqc.js → vue-ui-word-cloud-vq1t9JHr.js} +1 -1
- package/dist/{vue-ui-world-CymT7_Ep.js → vue-ui-world-CN0f6elD.js} +1 -1
- package/dist/{vue-ui-xy-B9Q4FR0g.js → vue-ui-xy-BdzEiImZ.js} +956 -955
- package/dist/{vue-ui-xy-canvas-CrnBxoa0.js → vue-ui-xy-canvas-CWQzUQzY.js} +113 -113
- package/package.json +1 -1
- package/dist/ColorPicker-DQ5sdRrl.js +0 -244
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineAsyncComponent as j, computed as y, ref as v, toRefs as jl, watch as me, shallowRef as Dt, onMounted as Gl, onBeforeUnmount as qe, watchEffect as Ce, nextTick as je, openBlock as i, createElementBlock as n, normalizeStyle as ae, normalizeClass as X, createElementVNode as m, toDisplayString as oe, createBlock as G, createCommentVNode as p, unref as h, withCtx as
|
|
2
|
-
import { j as Yl, t as Vt, o as Wt, q as Z, D as Jl, K, I as Ql, l as
|
|
1
|
+
import { defineAsyncComponent as j, computed as y, ref as v, toRefs as jl, watch as me, shallowRef as Dt, onMounted as Gl, onBeforeUnmount as qe, watchEffect as Ce, nextTick as je, openBlock as i, createElementBlock as n, normalizeStyle as ae, normalizeClass as X, createElementVNode as m, toDisplayString as oe, createBlock as G, createCommentVNode as p, unref as h, withCtx as k, renderSlot as x, normalizeProps as L, guardReactiveProps as T, createSlots as Bt, createVNode as Ge, Fragment as M, renderList as B, mergeProps as Nt, resolveDynamicComponent as Kl, createTextVNode as Et } from "vue";
|
|
2
|
+
import { j as Yl, t as Vt, o as Wt, q as Z, D as Jl, K, I as Ql, l as R, X as Zl, v as Ae, u as ea, a0 as ta, a1 as la, T as aa, U as oa, a2 as Ut } from "./lib-DBptbyyI.js";
|
|
3
3
|
import { t as Ht, u as sa } from "./useResponsive-DfdjqQps.js";
|
|
4
4
|
import { u as ua } from "./useConfig-DO94Aj5s.js";
|
|
5
5
|
import { u as Xt, a as qt, b as ia } from "./useTimeLabels-C-A2uZKi.js";
|
|
@@ -17,7 +17,7 @@ import ga from "./vue_ui_candlestick-BAMn-VGw.js";
|
|
|
17
17
|
import { A as ba } from "./A11yDataTable-KcVAX2cP.js";
|
|
18
18
|
import { S as xa } from "./SlicerPreview-DTjwV0iY.js";
|
|
19
19
|
import { _ as ka } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
20
|
-
const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = ["xmlns", "aria-describedby", "viewBox"], _a = ["x", "y", "width", "height"], Sa = { key: 1 }, za = ["id"], La = ["stop-color"], Ta = ["stop-color"],
|
|
20
|
+
const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = ["xmlns", "aria-describedby", "viewBox"], _a = ["x", "y", "width", "height"], Sa = { key: 1 }, za = ["id"], La = ["stop-color"], Ta = ["stop-color"], Ia = ["stop-color"], Fa = ["id"], Ma = ["stop-color"], Ra = ["stop-color"], Pa = ["stop-color"], Oa = { key: 0 }, Da = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ba = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Na = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Ea = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Va = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Wa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ua = ["x", "y", "font-size", "fill", "font-weight"], Ha = ["transform", "text-anchor", "font-size", "fill", "font-weight"], Xa = ["transform", "text-anchor", "font-size", "fill", "font-weight"], qa = ["x", "y", "width", "height", "fill", "rx"], ja = { key: 0 }, Ga = ["cx", "cy", "r", "fill"], Ka = ["cx", "cy", "r", "fill"], Ya = { key: 1 }, Ja = ["x", "y", "width", "height", "rx", "fill"], Qa = ["x", "y", "width", "height", "fill", "rx"], Za = ["x", "y", "height", "width", "fill", "rx"], eo = ["x", "y", "height", "width", "fill", "rx", "stroke", "stroke-width"], to = ["d", "stroke"], lo = ["x", "y", "height", "width", "fill", "onMouseover", "onMouseleave", "onClick"], ao = ["data-start", "data-end"], oo = {
|
|
21
21
|
key: 0,
|
|
22
22
|
style: { position: "absolute", top: "100%", left: "0", width: "100%" },
|
|
23
23
|
"data-dom-to-png-ignore": "",
|
|
@@ -47,7 +47,7 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
47
47
|
},
|
|
48
48
|
emits: ["selectX", "copyAlt"],
|
|
49
49
|
setup(jt, { expose: Gt, emit: Kt }) {
|
|
50
|
-
const Yt = j(() => import("./BaseIcon-Cb3zzG6s.js")), Jt = j(() => import("./Tooltip-Bf-kM3_A.js")), Qt = j(() => import("./vue-ui-accordion-nvggWcGN.js")), Zt = j(() => import("./DataTable-DT2kIdQ6.js")), el = j(() => import("./PenAndPaper-
|
|
50
|
+
const Yt = j(() => import("./BaseIcon-Cb3zzG6s.js")), Jt = j(() => import("./Tooltip-Bf-kM3_A.js")), Qt = j(() => import("./vue-ui-accordion-nvggWcGN.js")), Zt = j(() => import("./DataTable-DT2kIdQ6.js")), el = j(() => import("./PenAndPaper-Ct3qJ4lA.js")), tl = j(() => import("./UserOptions-rW2fRf3V.js")), ll = j(() => import("./PackageVersion-DPO-OOVI.js")), al = j(() => import("./BaseDraggableDialog-CIb-iD9g.js")), { vue_ui_candlestick: ol } = ua(), { isThemeValid: sl, warnInvalidTheme: ul } = ca(), I = jt, $e = Kt, _e = y(() => !!I.dataset && I.dataset.length), V = v(!1), Se = v(null), _ = v(Yl()), se = v(!1), ze = v(""), P = v(void 0), Ye = v(0), W = v(null), Je = v(null), Qe = v(null), ue = v(null), Ze = v(null), et = v(null), il = v(0), tt = v(0), lt = v(0), Le = v(null), ie = v(null), ne = v(null), Te = v(null), at = v(null), pe = v(!1), fe = v(!1), U = v(null), ot = v({ x: 0, y: 0 }), re = v("pointer"), Ie = v(!1), e = v(Re()), ve = y(() => e.value.userOptions.useCursorPointer), nl = y(() => Vt({
|
|
51
51
|
defaultConfig: {
|
|
52
52
|
useCssAnimation: !1,
|
|
53
53
|
userOptions: { show: !1 },
|
|
@@ -93,8 +93,8 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
93
93
|
}
|
|
94
94
|
},
|
|
95
95
|
userConfig: e.value.skeletonConfig ?? {}
|
|
96
|
-
})), { loading:
|
|
97
|
-
...jl(
|
|
96
|
+
})), { loading: H, FINAL_DATASET: w, manualLoading: Fe } = ra({
|
|
97
|
+
...jl(I),
|
|
98
98
|
FINAL_CONFIG: e,
|
|
99
99
|
prepareConfig: Re,
|
|
100
100
|
callback: () => {
|
|
@@ -102,7 +102,7 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
102
102
|
await we();
|
|
103
103
|
});
|
|
104
104
|
},
|
|
105
|
-
skeletonDataset:
|
|
105
|
+
skeletonDataset: I.config?.skeletonDataset ?? [
|
|
106
106
|
[17040672e5, 10, 20, 2, 10, 30],
|
|
107
107
|
[17067456e5, 10, 30, 5, 20, 50],
|
|
108
108
|
[17092512e5, 20, 50, 10, 30, 80],
|
|
@@ -125,11 +125,11 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
125
125
|
st(!0);
|
|
126
126
|
}
|
|
127
127
|
function vl() {
|
|
128
|
-
st(!1), $e("selectX", { seriesIndex: null, datapoint: null }),
|
|
128
|
+
st(!1), $e("selectX", { seriesIndex: null, datapoint: null }), P.value = null;
|
|
129
129
|
}
|
|
130
130
|
function Re() {
|
|
131
131
|
const t = Ke({
|
|
132
|
-
userConfig:
|
|
132
|
+
userConfig: I.config,
|
|
133
133
|
defaultConfig: ol
|
|
134
134
|
});
|
|
135
135
|
let a = {};
|
|
@@ -139,12 +139,12 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
139
139
|
ul(t), a = t;
|
|
140
140
|
else {
|
|
141
141
|
const s = Ke({
|
|
142
|
-
userConfig: ga[l] ||
|
|
142
|
+
userConfig: ga[l] || I.config,
|
|
143
143
|
defaultConfig: t
|
|
144
144
|
});
|
|
145
145
|
a = {
|
|
146
146
|
...Ke({
|
|
147
|
-
userConfig:
|
|
147
|
+
userConfig: I.config,
|
|
148
148
|
defaultConfig: s
|
|
149
149
|
})
|
|
150
150
|
};
|
|
@@ -153,12 +153,12 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
153
153
|
a = t;
|
|
154
154
|
return a;
|
|
155
155
|
}
|
|
156
|
-
me(() =>
|
|
157
|
-
|
|
158
|
-
}, { deep: !0 }), me(() =>
|
|
159
|
-
Array.isArray(t) && t.length > 0 && (
|
|
156
|
+
me(() => I.config, (t) => {
|
|
157
|
+
H.value || (e.value = Re()), Me.value = !e.value.userOptions.showOnChartHover, it(), il.value += 1, lt.value += 1, tt.value += 1, O.value.showTable = e.value.table.show, O.value.showTooltip = e.value.style.tooltip.show, ge();
|
|
158
|
+
}, { deep: !0 }), me(() => I.dataset, (t) => {
|
|
159
|
+
Array.isArray(t) && t.length > 0 && (Fe.value = !1), $t();
|
|
160
160
|
}, { deep: !0 });
|
|
161
|
-
const
|
|
161
|
+
const b = v({
|
|
162
162
|
height: e.value.style.height,
|
|
163
163
|
width: e.value.style.width,
|
|
164
164
|
xAxisFontSize: e.value.style.layout.grid.xAxis.dataLabels.fontSize,
|
|
@@ -169,17 +169,17 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
169
169
|
});
|
|
170
170
|
const J = y(() => !!e.value.debug);
|
|
171
171
|
function it() {
|
|
172
|
-
if (Wt(
|
|
172
|
+
if (Wt(I.dataset) && (Z({
|
|
173
173
|
componentName: "VueUiCandlestick",
|
|
174
174
|
type: "dataset",
|
|
175
175
|
debug: J.value
|
|
176
|
-
}),
|
|
177
|
-
|
|
176
|
+
}), Fe.value = !0), Wt(I.dataset) || (Fe.value = e.value.loading), setTimeout(() => {
|
|
177
|
+
V.value = !0;
|
|
178
178
|
}, 10), e.value.responsive) {
|
|
179
179
|
const a = Ht(() => {
|
|
180
|
-
|
|
180
|
+
V.value = !1;
|
|
181
181
|
const { width: l, height: s } = sa({
|
|
182
|
-
chart:
|
|
182
|
+
chart: W.value,
|
|
183
183
|
title: e.value.style.title.text ? Je.value : null,
|
|
184
184
|
slicer: e.value.style.zoom.show && S.value > 6 ? ue.value.$el : null,
|
|
185
185
|
legend: Qe.value,
|
|
@@ -187,24 +187,24 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
187
187
|
noTitle: et.value
|
|
188
188
|
});
|
|
189
189
|
requestAnimationFrame(() => {
|
|
190
|
-
|
|
190
|
+
b.value.width = l, b.value.height = s - 12, e.value.responsiveProportionalSizing ? (b.value.xAxisFontSize = Ut({
|
|
191
191
|
relator: Math.min(l, s),
|
|
192
192
|
adjuster: e.value.style.width,
|
|
193
193
|
source: e.value.style.layout.grid.xAxis.dataLabels.fontSize,
|
|
194
194
|
threshold: 6,
|
|
195
195
|
fallback: 6
|
|
196
|
-
}),
|
|
196
|
+
}), b.value.yAxisFontSize = Ut({
|
|
197
197
|
relator: Math.min(l, s),
|
|
198
198
|
adjuster: e.value.style.width,
|
|
199
199
|
source: e.value.style.layout.grid.yAxis.dataLabels.fontSize,
|
|
200
200
|
threshold: 6,
|
|
201
201
|
fallback: 6
|
|
202
|
-
})) : (
|
|
203
|
-
|
|
202
|
+
})) : (b.value.xAxisFontSize = e.value.style.layout.grid.xAxis.dataLabels.fontSize, b.value.yAxisFontSize = e.value.style.layout.grid.yAxis.dataLabels.fontSize), Se.value && clearTimeout(Se.value), Se.value = setTimeout(() => {
|
|
203
|
+
V.value = !0;
|
|
204
204
|
}, 10);
|
|
205
205
|
});
|
|
206
206
|
});
|
|
207
|
-
q.value && (ee.value && q.value.unobserve(ee.value), q.value.disconnect()), q.value = new ResizeObserver(a), ee.value =
|
|
207
|
+
q.value && (ee.value && q.value.unobserve(ee.value), q.value.disconnect()), q.value = new ResizeObserver(a), ee.value = W.value.parentNode, q.value.observe(ee.value);
|
|
208
208
|
}
|
|
209
209
|
we();
|
|
210
210
|
}
|
|
@@ -215,7 +215,7 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
215
215
|
elementId: `vue-ui-candlestick_${_.value}`,
|
|
216
216
|
fileName: e.value.style.title.text || "vue-ui-candlestick",
|
|
217
217
|
options: e.value.userOptions.print
|
|
218
|
-
}), dl = y(() => e.value.userOptions.show && !e.value.style.title.text),
|
|
218
|
+
}), dl = y(() => e.value.userOptions.show && !e.value.style.title.text), O = v({
|
|
219
219
|
showTable: e.value.table.show,
|
|
220
220
|
showTooltip: e.value.style.tooltip.show
|
|
221
221
|
}), De = v(0), cl = Ht((t) => {
|
|
@@ -233,7 +233,7 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
233
233
|
});
|
|
234
234
|
const vt = y(() => {
|
|
235
235
|
let t = 0;
|
|
236
|
-
return ie.value && (t = De.value +
|
|
236
|
+
return ie.value && (t = De.value + b.value.xAxisFontSize), t;
|
|
237
237
|
});
|
|
238
238
|
function yl() {
|
|
239
239
|
let t = e.value.style.layout.grid.yAxis.dataLabels.offsetX;
|
|
@@ -246,18 +246,18 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
246
246
|
const { top: t, right: a, bottom: l, left: s } = e.value.style.layout.padding, o = yl(), u = 12;
|
|
247
247
|
return {
|
|
248
248
|
top: t + u,
|
|
249
|
-
right:
|
|
249
|
+
right: b.value.width - a,
|
|
250
250
|
left: s + o,
|
|
251
|
-
bottom:
|
|
252
|
-
width:
|
|
253
|
-
height:
|
|
251
|
+
bottom: b.value.height - l - vt.value,
|
|
252
|
+
width: b.value.width - s - a - o,
|
|
253
|
+
height: b.value.height - t - l - vt.value - u
|
|
254
254
|
};
|
|
255
255
|
}), hl = y(() => {
|
|
256
|
-
const { left: t, top: a, width: l, height: s } = r.value, o = d.value.start,
|
|
256
|
+
const { left: t, top: a, width: l, height: s } = r.value, o = d.value.start, f = d.value.end - o, A = l / f, C = $.value.start - o, D = $.value.end - o, z = Math.max(0, Math.min(f, C)), le = Math.max(0, Math.min(f, D));
|
|
257
257
|
return {
|
|
258
|
-
x: t +
|
|
258
|
+
x: t + z * A,
|
|
259
259
|
y: a,
|
|
260
|
-
width: (le -
|
|
260
|
+
width: (le - z) * A,
|
|
261
261
|
height: s,
|
|
262
262
|
fill: e.value.style.zoom.preview.fill,
|
|
263
263
|
stroke: e.value.style.zoom.preview.stroke,
|
|
@@ -274,13 +274,13 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
274
274
|
}), S = y(() => w.value.length), d = v({
|
|
275
275
|
start: 0,
|
|
276
276
|
end: S.value
|
|
277
|
-
}),
|
|
277
|
+
}), $ = v({ start: 0, end: S.value }), dt = y(() => e.value.style.zoom.preview.enable && ($.value.start !== d.value.start || $.value.end !== d.value.end));
|
|
278
278
|
function ct(t, a) {
|
|
279
|
-
|
|
279
|
+
$.value[t] = a;
|
|
280
280
|
}
|
|
281
281
|
function ge() {
|
|
282
282
|
let t = Math.max(0, Math.min(d.value.start ?? 0, S.value - 1)), a = Math.max(t + 1, Math.min(d.value.end ?? S.value, S.value));
|
|
283
|
-
(!Number.isFinite(t) || !Number.isFinite(a) || a <= t) && (t = 0, a = S.value), d.value.start = t, d.value.end = a,
|
|
283
|
+
(!Number.isFinite(t) || !Number.isFinite(a) || a <= t) && (t = 0, a = S.value), d.value.start = t, d.value.end = a, $.value.start = t, $.value.end = a, ue.value && (ue.value.setStartValue(t), ue.value.setEndValue(a));
|
|
284
284
|
}
|
|
285
285
|
const yt = y(() => w.value.map((t, a) => ({
|
|
286
286
|
...t,
|
|
@@ -345,18 +345,18 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
345
345
|
max: t,
|
|
346
346
|
min: a
|
|
347
347
|
};
|
|
348
|
-
}),
|
|
348
|
+
}), N = y(() => Jl(mt.value.min, mt.value.max, e.value.style.layout.grid.yAxis.dataLabels.steps));
|
|
349
349
|
function be(t, a, l = null, s = null) {
|
|
350
350
|
return {
|
|
351
351
|
...t,
|
|
352
352
|
x: K(r.value.left + a * c.value + c.value / 2),
|
|
353
|
-
y: K(r.value.top + (1 - (t -
|
|
353
|
+
y: K(r.value.top + (1 - (t - N.value.min) / (N.value.max - N.value.min)) * r.value.height),
|
|
354
354
|
value: K(t),
|
|
355
355
|
isMax: t === l,
|
|
356
356
|
isMin: t === s
|
|
357
357
|
};
|
|
358
358
|
}
|
|
359
|
-
const
|
|
359
|
+
const g = y(() => {
|
|
360
360
|
const t = {
|
|
361
361
|
o: Math.max(...F.value.map((o) => o.open)),
|
|
362
362
|
h: Math.max(...F.value.map((o) => o.high)),
|
|
@@ -369,15 +369,15 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
369
369
|
c: Math.min(...F.value.map((o) => o.low))
|
|
370
370
|
}, l = Math.max(...F.value.map((o) => o.volume)), s = Math.min(...F.value.map((o) => o.volume));
|
|
371
371
|
return F.value.map((o, u) => {
|
|
372
|
-
const
|
|
372
|
+
const f = be(o.open, u, t.o, a.o), A = be(o.high, u, t.h, a.h), C = be(o.low, u, t.l, a.l), D = be(o.close, u, t.c, a.c), z = o.close > o.open, le = o.volume === l, Rt = o.volume === s;
|
|
373
373
|
return {
|
|
374
374
|
period: o.period,
|
|
375
|
-
open:
|
|
376
|
-
high:
|
|
377
|
-
low:
|
|
378
|
-
close:
|
|
375
|
+
open: f,
|
|
376
|
+
high: A,
|
|
377
|
+
low: C,
|
|
378
|
+
close: D,
|
|
379
379
|
volume: o.volume,
|
|
380
|
-
isBullish:
|
|
380
|
+
isBullish: z,
|
|
381
381
|
absoluteIndex: o.absoluteIndex,
|
|
382
382
|
isMaxVolume: le,
|
|
383
383
|
isMinVolume: Rt
|
|
@@ -385,7 +385,7 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
385
385
|
});
|
|
386
386
|
});
|
|
387
387
|
function xe({ item: t, index: a, minimapH: l, unitW: s }) {
|
|
388
|
-
const o = e.value.style.layout.grid.yAxis.scale.min ?? 0, u = e.value.style.layout.grid.yAxis.scale.max ?? Math.max(...w.value.map((
|
|
388
|
+
const o = e.value.style.layout.grid.yAxis.scale.min ?? 0, u = e.value.style.layout.grid.yAxis.scale.max ?? Math.max(...w.value.map((f) => f[2]));
|
|
389
389
|
return {
|
|
390
390
|
...t,
|
|
391
391
|
x: K(a * s),
|
|
@@ -394,15 +394,15 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
394
394
|
};
|
|
395
395
|
}
|
|
396
396
|
const pl = y(() => ({ minimapH: t, unitW: a }) => ml.value.map((l, s) => {
|
|
397
|
-
const o = xe({ item: l.open, index: s, minimapH: t, unitW: a }), u = xe({ item: l.high, index: s, minimapH: t, unitW: a }),
|
|
397
|
+
const o = xe({ item: l.open, index: s, minimapH: t, unitW: a }), u = xe({ item: l.high, index: s, minimapH: t, unitW: a }), f = xe({ item: l.low, index: s, minimapH: t, unitW: a }), A = xe({ item: l.close, index: s, minimapH: t, unitW: a }), C = l.close > l.open;
|
|
398
398
|
return {
|
|
399
399
|
period: l.period,
|
|
400
400
|
open: o,
|
|
401
401
|
high: u,
|
|
402
|
-
low:
|
|
403
|
-
close:
|
|
402
|
+
low: f,
|
|
403
|
+
close: A,
|
|
404
404
|
volume: l.volume,
|
|
405
|
-
isBullish:
|
|
405
|
+
isBullish: C,
|
|
406
406
|
absoluteIndex: l.absoluteIndex
|
|
407
407
|
};
|
|
408
408
|
})), fl = y(() => e.value.style.zoom.minimap.show ? [{
|
|
@@ -412,12 +412,12 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
412
412
|
isVisible: !0
|
|
413
413
|
}] : []);
|
|
414
414
|
function gl(t) {
|
|
415
|
-
return K((t -
|
|
415
|
+
return K((t - N.value.min) / (N.value.max - N.value.min));
|
|
416
416
|
}
|
|
417
|
-
const pt = y(() =>
|
|
417
|
+
const pt = y(() => N.value.ticks.map((t) => ({
|
|
418
418
|
y: r.value.bottom - r.value.height * gl(t),
|
|
419
419
|
value: K(t)
|
|
420
|
-
}))), bl = y(() => F.value.map((t) => t.period)),
|
|
420
|
+
}))), bl = y(() => F.value.map((t) => t.period)), E = v([]), Be = v([]);
|
|
421
421
|
let ft = 0;
|
|
422
422
|
Ce(() => {
|
|
423
423
|
const t = ++ft;
|
|
@@ -429,7 +429,7 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
429
429
|
start: d.value.start,
|
|
430
430
|
end: d.value.end
|
|
431
431
|
});
|
|
432
|
-
t === ft && (
|
|
432
|
+
t === ft && (E.value = a);
|
|
433
433
|
})();
|
|
434
434
|
});
|
|
435
435
|
let gt = 0;
|
|
@@ -448,7 +448,7 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
448
448
|
});
|
|
449
449
|
const xl = y(() => {
|
|
450
450
|
const t = e.value.style.layout.grid.xAxis.dataLabels.modulo;
|
|
451
|
-
return
|
|
451
|
+
return E.value.length ? Math.min(t, [...new Set(E.value.map((a) => a.text))].length) : t;
|
|
452
452
|
}), bt = v({ months: [], shortMonths: [], days: [], shortDays: [] });
|
|
453
453
|
let xt = 0;
|
|
454
454
|
Ce(() => {
|
|
@@ -465,7 +465,7 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
465
465
|
januaryAsYear: t.januaryAsYear
|
|
466
466
|
});
|
|
467
467
|
return (l, s) => {
|
|
468
|
-
const u = w.value.map((
|
|
468
|
+
const u = w.value.map((f) => f[0])?.[l];
|
|
469
469
|
return u == null ? "" : a.formatDate(new Date(u), s);
|
|
470
470
|
};
|
|
471
471
|
}), kl = y(() => (w.value.map((a) => a[0]) || []).map((a, l) => ({
|
|
@@ -475,20 +475,20 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
475
475
|
text: kt.value(l, e.value.style.zoom.timeFormat),
|
|
476
476
|
absoluteIndex: l
|
|
477
477
|
}))), Ne = y(() => {
|
|
478
|
-
const t = e.value.style.layout.grid.xAxis.dataLabels, a =
|
|
478
|
+
const t = e.value.style.layout.grid.xAxis.dataLabels, a = E.value || [], l = Be.value || [], s = d.value.start ?? 0, o = P.value, u = S.value, f = a.map((C) => C?.text ?? ""), A = l.map((C) => C?.text ?? "");
|
|
479
479
|
return Ql(
|
|
480
480
|
!!t.showOnlyFirstAndLast,
|
|
481
481
|
!!t.showOnlyAtModulo,
|
|
482
482
|
Math.max(1, xl.value || 1),
|
|
483
|
-
|
|
484
|
-
|
|
483
|
+
f,
|
|
484
|
+
A,
|
|
485
485
|
s,
|
|
486
486
|
o,
|
|
487
487
|
u
|
|
488
488
|
);
|
|
489
489
|
}), wt = y(() => e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? {
|
|
490
|
-
start:
|
|
491
|
-
end:
|
|
490
|
+
start: E.value.find((t) => t.absoluteIndex === d.value.start)?.text ?? "",
|
|
491
|
+
end: E.value.find((t) => t.absoluteIndex === d.value.end - 1)?.text ?? ""
|
|
492
492
|
} : {
|
|
493
493
|
start: w.value[d.value.start] ? w.value[d.value.start][0] : w.value[0][0],
|
|
494
494
|
end: w.value[d.value.end - 1] ? w.value[d.value.end - 1][0] : w.value.at(-1)[0]
|
|
@@ -497,59 +497,59 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
497
497
|
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: a, seriesIndex: t + d.value.start });
|
|
498
498
|
}
|
|
499
499
|
function Cl(t, a) {
|
|
500
|
-
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: a, seriesIndex: t + d.value.start }),
|
|
500
|
+
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: a, seriesIndex: t + d.value.start }), P.value = void 0, se.value = !1, U.value = null, re.value = "pointer";
|
|
501
501
|
}
|
|
502
|
-
me(() =>
|
|
503
|
-
if ([null, void 0].includes(
|
|
504
|
-
|
|
502
|
+
me(() => I.selectedXIndex, (t) => {
|
|
503
|
+
if ([null, void 0].includes(I.selectedXIndex)) {
|
|
504
|
+
P.value = null;
|
|
505
505
|
return;
|
|
506
506
|
}
|
|
507
507
|
const a = t - d.value.start;
|
|
508
|
-
a < 0 || t >= d.value.end ?
|
|
508
|
+
a < 0 || t >= d.value.end ? P.value = null : P.value = a ?? null;
|
|
509
509
|
}, { immediate: !0 });
|
|
510
510
|
function At(t, a, l = "pointer") {
|
|
511
|
-
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: a, seriesIndex: t + d.value.start }),
|
|
511
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: a, seriesIndex: t + d.value.start }), P.value = t, U.value = t, re.value = l, Ee.value = {
|
|
512
512
|
datapoint: a,
|
|
513
513
|
seriesIndex: t,
|
|
514
|
-
series:
|
|
514
|
+
series: g.value,
|
|
515
515
|
config: e.value
|
|
516
516
|
}, Pl({ seriesIndex: t, datapoint: a });
|
|
517
517
|
const s = e.value.style.tooltip.customFormat;
|
|
518
518
|
if (aa(s) && oa(() => s({
|
|
519
519
|
seriesIndex: t,
|
|
520
520
|
datapoint: a,
|
|
521
|
-
series:
|
|
521
|
+
series: g.value,
|
|
522
522
|
config: e.value
|
|
523
523
|
})))
|
|
524
524
|
ze.value = s({
|
|
525
525
|
seriesIndex: t,
|
|
526
526
|
datapoint: a,
|
|
527
|
-
series:
|
|
527
|
+
series: g.value,
|
|
528
528
|
config: e.value
|
|
529
529
|
});
|
|
530
530
|
else if (e.value.style.tooltip.show) {
|
|
531
531
|
let o = "";
|
|
532
|
-
const { period: u, open:
|
|
532
|
+
const { period: u, open: f, high: A, low: C, close: D, volume: z, isBullish: le } = g.value[t], { period: Rt, open: Vl, high: Wl, low: Ul, close: Hl, volume: Xl } = e.value.translations, ql = e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? e.value.style.tooltip.useDefaultTimeFormat ? E.value[t].text : kl.value[t].text : u;
|
|
533
533
|
o += `<div><svg style="margin-right:6px" viewBox="0 0 12 12" height="12" width="12"><rect x="0" y="0" height="12" width="12" rx="${e.value.style.layout.candle.borderRadius * 3}" stroke="${e.value.style.layout.candle.stroke}" stroke-width="${e.value.style.layout.candle.strokeWidth}"
|
|
534
|
-
fill="${e.value.style.layout.candle.gradient.show ? le ? `url(#bullish_gradient_${_.value})` : `url(#bearish_gradient_${_.value})` : le ? e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.colors.bearish}"/></svg>${ql}</div>`, o += `${Xl} : <b>${isNaN(
|
|
535
|
-
const He =
|
|
534
|
+
fill="${e.value.style.layout.candle.gradient.show ? le ? `url(#bullish_gradient_${_.value})` : `url(#bearish_gradient_${_.value})` : le ? e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.colors.bearish}"/></svg>${ql}</div>`, o += `${Xl} : <b>${isNaN(z) ? "-" : Number(z.toFixed(e.value.style.tooltip.roundingValue)).toLocaleString()}</b>`, o += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${e.value.style.tooltip.borderColor}">`;
|
|
535
|
+
const He = R({
|
|
536
536
|
p: e.value.style.tooltip.prefix,
|
|
537
|
-
v:
|
|
537
|
+
v: f.value,
|
|
538
538
|
s: e.value.style.tooltip.suffix,
|
|
539
539
|
r: e.value.style.tooltip.roundingValue
|
|
540
|
-
}), Pt =
|
|
540
|
+
}), Pt = R({
|
|
541
541
|
p: e.value.style.tooltip.prefix,
|
|
542
|
-
v:
|
|
542
|
+
v: A.value,
|
|
543
543
|
s: e.value.style.tooltip.suffix,
|
|
544
544
|
r: e.value.style.tooltip.roundingValue
|
|
545
|
-
}), Ot =
|
|
545
|
+
}), Ot = R({
|
|
546
546
|
p: e.value.style.tooltip.prefix,
|
|
547
|
-
v:
|
|
547
|
+
v: C.value,
|
|
548
548
|
s: e.value.style.tooltip.suffix,
|
|
549
549
|
r: e.value.style.tooltip.roundingValue
|
|
550
|
-
}), Xe =
|
|
550
|
+
}), Xe = R({
|
|
551
551
|
p: e.value.style.tooltip.prefix,
|
|
552
|
-
v:
|
|
552
|
+
v: D.value,
|
|
553
553
|
s: e.value.style.tooltip.suffix,
|
|
554
554
|
r: e.value.style.tooltip.roundingValue
|
|
555
555
|
});
|
|
@@ -597,7 +597,7 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
597
597
|
ce.value = !0;
|
|
598
598
|
try {
|
|
599
599
|
const { startIndex: t, endIndex: a } = e.value.style.zoom, l = S.value, s = t ?? 0, o = a != null ? Math.min(St(a + 1), l) : l;
|
|
600
|
-
ke.value = !0, d.value.start = s, d.value.end = o,
|
|
600
|
+
ke.value = !0, d.value.start = s, d.value.end = o, $.value.start = s, $.value.end = o, ge(), _t.value = !0;
|
|
601
601
|
} finally {
|
|
602
602
|
queueMicrotask(() => {
|
|
603
603
|
ke.value = !1;
|
|
@@ -611,8 +611,8 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
611
611
|
}
|
|
612
612
|
function Ve(t = null) {
|
|
613
613
|
je(() => {
|
|
614
|
-
const a = [e.value.translations.period, e.value.translations.open, e.value.translations.high, e.value.translations.low, e.value.translations.close, e.value.translations.volume], l =
|
|
615
|
-
e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ?
|
|
614
|
+
const a = [e.value.translations.period, e.value.translations.open, e.value.translations.high, e.value.translations.low, e.value.translations.close, e.value.translations.volume], l = g.value.map((u, f) => [
|
|
615
|
+
e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? E.value[f].text : u.period,
|
|
616
616
|
u.open.value,
|
|
617
617
|
u.high.value,
|
|
618
618
|
u.low.value,
|
|
@@ -623,64 +623,64 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
623
623
|
});
|
|
624
624
|
}
|
|
625
625
|
const te = y(() => {
|
|
626
|
-
const t =
|
|
627
|
-
const
|
|
626
|
+
const t = g.value.map((o, u) => {
|
|
627
|
+
const f = e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? E.value?.[u]?.text ?? "" : o.period, A = R({
|
|
628
628
|
p: e.value.table.td.prefix,
|
|
629
629
|
v: o.open.value,
|
|
630
630
|
s: e.value.table.td.suffix,
|
|
631
631
|
r: e.value.table.td.roundingValue
|
|
632
|
-
}),
|
|
632
|
+
}), C = R({
|
|
633
633
|
p: e.value.table.td.prefix,
|
|
634
634
|
v: o.high.value,
|
|
635
635
|
s: e.value.table.td.suffix,
|
|
636
636
|
r: e.value.table.td.roundingValue
|
|
637
|
-
}),
|
|
637
|
+
}), D = R({
|
|
638
638
|
p: e.value.table.td.prefix,
|
|
639
639
|
v: o.low.value,
|
|
640
640
|
s: e.value.table.td.suffix,
|
|
641
641
|
r: e.value.table.td.roundingValue
|
|
642
|
-
}),
|
|
642
|
+
}), z = R({
|
|
643
643
|
p: e.value.table.td.prefix,
|
|
644
644
|
v: o.close.value,
|
|
645
645
|
s: e.value.table.td.suffix,
|
|
646
646
|
r: e.value.table.td.roundingValue
|
|
647
647
|
});
|
|
648
648
|
return [
|
|
649
|
-
`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 12" height="12" width="12" style="margin-right: 6px"><rect x="0" y="0" height="12" width="12" rx="${e.value.style.layout.candle.borderRadius * 3}" fill="${e.value.style.layout.candle.gradient.show ? o.isBullish ? `url(#bullish_gradient_${_.value}` : `url(#bearish_gradient_${_.value})` : o.isBullish ? e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.colors.bearish}"/></svg> ${
|
|
649
|
+
`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 12" height="12" width="12" style="margin-right: 6px"><rect x="0" y="0" height="12" width="12" rx="${e.value.style.layout.candle.borderRadius * 3}" fill="${e.value.style.layout.candle.gradient.show ? o.isBullish ? `url(#bullish_gradient_${_.value}` : `url(#bearish_gradient_${_.value})` : o.isBullish ? e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.colors.bearish}"/></svg> ${f}`,
|
|
650
|
+
A,
|
|
650
651
|
C,
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
N,
|
|
652
|
+
D,
|
|
653
|
+
z,
|
|
654
654
|
`${isNaN(o.volume) ? "-" : o.volume.toLocaleString()}`
|
|
655
655
|
];
|
|
656
|
-
}), a =
|
|
657
|
-
const
|
|
656
|
+
}), a = g.value.map((o, u) => {
|
|
657
|
+
const f = e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? E.value?.[u]?.text ?? "" : o.period, A = R({
|
|
658
658
|
p: e.value.table.td.prefix,
|
|
659
659
|
v: o.open.value,
|
|
660
660
|
s: e.value.table.td.suffix,
|
|
661
661
|
r: e.value.table.td.roundingValue
|
|
662
|
-
}),
|
|
662
|
+
}), C = R({
|
|
663
663
|
p: e.value.table.td.prefix,
|
|
664
664
|
v: o.high.value,
|
|
665
665
|
s: e.value.table.td.suffix,
|
|
666
666
|
r: e.value.table.td.roundingValue
|
|
667
|
-
}),
|
|
667
|
+
}), D = R({
|
|
668
668
|
p: e.value.table.td.prefix,
|
|
669
669
|
v: o.low.value,
|
|
670
670
|
s: e.value.table.td.suffix,
|
|
671
671
|
r: e.value.table.td.roundingValue
|
|
672
|
-
}),
|
|
672
|
+
}), z = R({
|
|
673
673
|
p: e.value.table.td.prefix,
|
|
674
674
|
v: o.close.value,
|
|
675
675
|
s: e.value.table.td.suffix,
|
|
676
676
|
r: e.value.table.td.roundingValue
|
|
677
677
|
});
|
|
678
678
|
return [
|
|
679
|
-
|
|
679
|
+
f,
|
|
680
|
+
A,
|
|
680
681
|
C,
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
N,
|
|
682
|
+
D,
|
|
683
|
+
z,
|
|
684
684
|
`${isNaN(o.volume) ? "-" : o.volume}`
|
|
685
685
|
];
|
|
686
686
|
}), l = {
|
|
@@ -709,18 +709,18 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
709
709
|
Q.value = t, Ye.value += 1;
|
|
710
710
|
}
|
|
711
711
|
function Lt() {
|
|
712
|
-
|
|
712
|
+
O.value.showTable = !O.value.showTable;
|
|
713
713
|
}
|
|
714
714
|
function Tt() {
|
|
715
|
-
|
|
715
|
+
O.value.showTooltip = !O.value.showTooltip;
|
|
716
716
|
}
|
|
717
717
|
const ye = v(!1);
|
|
718
718
|
function We() {
|
|
719
719
|
ye.value = !ye.value;
|
|
720
720
|
}
|
|
721
721
|
async function $l({ scale: t = 2 } = {}) {
|
|
722
|
-
if (!
|
|
723
|
-
const { width: a, height: l } =
|
|
722
|
+
if (!W.value) return;
|
|
723
|
+
const { width: a, height: l } = W.value.getBoundingClientRect(), s = a / l, { imageUri: o, base64: u } = await pa({ domElement: W.value, base64: !0, img: !0, scale: t });
|
|
724
724
|
return {
|
|
725
725
|
imageUri: o,
|
|
726
726
|
base64: u,
|
|
@@ -730,10 +730,10 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
730
730
|
aspectRatio: s
|
|
731
731
|
};
|
|
732
732
|
}
|
|
733
|
-
const _l = y(() =>
|
|
733
|
+
const _l = y(() => b.value.width), Sl = y(() => b.value.height);
|
|
734
734
|
ma({
|
|
735
735
|
timeLabelsEls: ie,
|
|
736
|
-
timeLabels:
|
|
736
|
+
timeLabels: E,
|
|
737
737
|
slicer: d,
|
|
738
738
|
configRef: e,
|
|
739
739
|
rotationPath: ["style", "layout", "grid", "xAxis", "dataLabels", "rotation"],
|
|
@@ -743,13 +743,13 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
743
743
|
width: _l,
|
|
744
744
|
height: Sl
|
|
745
745
|
}), me(e, () => {
|
|
746
|
-
|
|
746
|
+
O.value = {
|
|
747
747
|
showTable: e.value.table.show,
|
|
748
748
|
showTooltip: e.value.style.tooltip.show
|
|
749
749
|
};
|
|
750
750
|
}, { immediate: !0 });
|
|
751
751
|
const he = y(() => {
|
|
752
|
-
const t = e.value.table.useDialog && !e.value.table.show, a =
|
|
752
|
+
const t = e.value.table.useDialog && !e.value.table.show, a = O.value.showTable;
|
|
753
753
|
return {
|
|
754
754
|
component: t ? al : Qt,
|
|
755
755
|
title: `${e.value.style.title.text}${e.value.style.title.subtitle.text ? `: ${e.value.style.title.subtitle.text}` : ""}`,
|
|
@@ -759,7 +759,7 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
759
759
|
headerColor: e.value.table.th.color,
|
|
760
760
|
headerBg: e.value.table.th.backgroundColor,
|
|
761
761
|
isFullscreen: Q.value,
|
|
762
|
-
fullscreenParent:
|
|
762
|
+
fullscreenParent: W.value,
|
|
763
763
|
forcedWidth: Math.min(800, window.innerWidth * 0.8),
|
|
764
764
|
isCursorPointer: ve.value
|
|
765
765
|
} : {
|
|
@@ -779,22 +779,22 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
779
779
|
}
|
|
780
780
|
};
|
|
781
781
|
});
|
|
782
|
-
me(() =>
|
|
782
|
+
me(() => O.value.showTable, (t) => {
|
|
783
783
|
e.value.table.show || (t && e.value.table.useDialog && ne.value ? ne.value.open() : "close" in ne.value && ne.value.close());
|
|
784
784
|
});
|
|
785
|
-
function
|
|
786
|
-
|
|
785
|
+
function It() {
|
|
786
|
+
O.value.showTable = !1, Te.value && Te.value.setTableIconState(!1);
|
|
787
787
|
}
|
|
788
|
-
const zl = y(() => e.value.style.backgroundColor), Ll = y(() => e.value.style.title), { exportSvg: Tl, getSvg:
|
|
788
|
+
const zl = y(() => e.value.style.backgroundColor), Ll = y(() => e.value.style.title), { exportSvg: Tl, getSvg: Il } = da({
|
|
789
789
|
svg: Y,
|
|
790
790
|
title: Ll,
|
|
791
791
|
backgroundColor: zl
|
|
792
792
|
});
|
|
793
|
-
async function
|
|
793
|
+
async function Ft({ isCb: t }) {
|
|
794
794
|
fe.value = !0, await je();
|
|
795
795
|
try {
|
|
796
796
|
if (t) {
|
|
797
|
-
const { blob: a, url: l, text: s, dataUrl: o } = await
|
|
797
|
+
const { blob: a, url: l, text: s, dataUrl: o } = await Il();
|
|
798
798
|
await Promise.resolve(e.value.userOptions.callbacks.svg({ blob: a, url: l, text: s, dataUrl: o }));
|
|
799
799
|
} else
|
|
800
800
|
await Promise.resolve(Tl());
|
|
@@ -802,16 +802,16 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
802
802
|
fe.value = !1;
|
|
803
803
|
}
|
|
804
804
|
}
|
|
805
|
-
function
|
|
805
|
+
function Fl(t) {
|
|
806
806
|
at.value = t;
|
|
807
807
|
}
|
|
808
808
|
function Ml(t) {
|
|
809
|
-
ce.value || ke.value || t !== d.value.start && (d.value.start = t,
|
|
809
|
+
ce.value || ke.value || t !== d.value.start && (d.value.start = t, $.value.start = t, ge());
|
|
810
810
|
}
|
|
811
811
|
function Rl(t) {
|
|
812
812
|
if (ce.value || ke.value) return;
|
|
813
813
|
const a = St(t);
|
|
814
|
-
a !== d.value.end && (d.value.end = a,
|
|
814
|
+
a !== d.value.end && (d.value.end = a, $.value.end = a, ge());
|
|
815
815
|
}
|
|
816
816
|
function Pl({ seriesIndex: t, datapoint: a }) {
|
|
817
817
|
const l = d.value.start + t;
|
|
@@ -835,48 +835,49 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
835
835
|
async function Mt() {
|
|
836
836
|
if ($e("copyAlt", {
|
|
837
837
|
config: e.value,
|
|
838
|
-
dataset:
|
|
838
|
+
dataset: g.value
|
|
839
839
|
}), !e.value.userOptions.callbacks.altCopy) {
|
|
840
840
|
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
841
841
|
return;
|
|
842
842
|
}
|
|
843
843
|
await Promise.resolve(e.value.userOptions.callbacks.altCopy({
|
|
844
844
|
config: e.value,
|
|
845
|
-
dataset:
|
|
845
|
+
dataset: g.value
|
|
846
846
|
}));
|
|
847
847
|
}
|
|
848
848
|
function Dl() {
|
|
849
|
-
|
|
849
|
+
U.value = null, Ie.value = !0;
|
|
850
850
|
}
|
|
851
851
|
function Bl() {
|
|
852
|
-
|
|
852
|
+
U.value = null, re.value = "pointer", se.value = !1, P.value = void 0, Ie.value = !1;
|
|
853
853
|
}
|
|
854
854
|
function Nl(t) {
|
|
855
|
-
if (!Y.value || ye.value || document.activeElement !== Y.value || !
|
|
855
|
+
if (!Y.value || ye.value || document.activeElement !== Y.value || !g.value.length) return;
|
|
856
856
|
const a = t.key === "ArrowLeft", l = t.key === "ArrowRight", s = t.key === "Enter" || t.key === " ", o = t.key === "Escape";
|
|
857
857
|
if (!a && !l && !s && !o) return;
|
|
858
858
|
if (t.preventDefault(), t.stopPropagation(), o) {
|
|
859
|
-
|
|
859
|
+
U.value = null, re.value = "pointer", se.value = !1, P.value = void 0;
|
|
860
860
|
return;
|
|
861
861
|
}
|
|
862
862
|
if (s) {
|
|
863
|
-
if (
|
|
864
|
-
const
|
|
865
|
-
if (!
|
|
866
|
-
Ct(
|
|
863
|
+
if (U.value === null) return;
|
|
864
|
+
const z = g.value[U.value];
|
|
865
|
+
if (!z) return;
|
|
866
|
+
Ct(U.value, z);
|
|
867
867
|
return;
|
|
868
868
|
}
|
|
869
|
-
let u =
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
869
|
+
let u = U.value;
|
|
870
|
+
const f = P.value, A = u !== null && u >= 0 && u < g.value.length, C = f != null && f >= 0 && f < g.value.length;
|
|
871
|
+
A ? l ? (u += 1, u >= g.value.length && (u = 0)) : a && (u -= 1, u < 0 && (u = g.value.length - 1)) : C ? (u = l ? f + 1 : f - 1, u >= g.value.length && (u = 0), u < 0 && (u = g.value.length - 1)) : l ? u = 0 : u = g.value.length - 1;
|
|
872
|
+
const D = g.value[u];
|
|
873
|
+
D && (El(u), At(u, D, "keyboard"));
|
|
873
874
|
}
|
|
874
875
|
function El(t) {
|
|
875
876
|
if (!Number.isFinite(t) || !Y.value) return;
|
|
876
877
|
const a = r.value.left + c.value * t + c.value / 2, l = r.value.top + r.value.height / 2, s = Y.value.getBoundingClientRect();
|
|
877
878
|
ot.value = {
|
|
878
|
-
x: s.left + a /
|
|
879
|
-
y: s.top + l /
|
|
879
|
+
x: s.left + a / b.value.width * s.width,
|
|
880
|
+
y: s.top + l / b.value.height * s.height
|
|
880
881
|
};
|
|
881
882
|
}
|
|
882
883
|
const Ue = y(() => {
|
|
@@ -888,7 +889,7 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
888
889
|
generatePdf: nt,
|
|
889
890
|
generateCsv: Ve,
|
|
890
891
|
generateImage: rt,
|
|
891
|
-
generateSvg:
|
|
892
|
+
generateSvg: Ft,
|
|
892
893
|
toggleTable: Lt,
|
|
893
894
|
toggleTooltip: Tt,
|
|
894
895
|
toggleAnnotator: We,
|
|
@@ -896,7 +897,7 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
896
897
|
copyAlt: Mt
|
|
897
898
|
}), (t, a) => (i(), n("div", {
|
|
898
899
|
ref_key: "candlestickChart",
|
|
899
|
-
ref:
|
|
900
|
+
ref: W,
|
|
900
901
|
class: X(`vue-data-ui-component vue-ui-candlestick ${Q.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
901
902
|
style: ae(`position:relative;font-family:${e.value.style.fontFamily}; text-align:center;background:${e.value.style.backgroundColor}; ${e.value.responsive ? "height: 100%" : ""}`),
|
|
902
903
|
id: `vue-ui-candlestick_${_.value}`,
|
|
@@ -926,23 +927,23 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
926
927
|
isCursorPointer: ve.value,
|
|
927
928
|
onClose: We
|
|
928
929
|
}, {
|
|
929
|
-
"annotator-action-close":
|
|
930
|
-
|
|
930
|
+
"annotator-action-close": k(() => [
|
|
931
|
+
x(t.$slots, "annotator-action-close", {}, void 0, !0)
|
|
931
932
|
]),
|
|
932
|
-
"annotator-action-color":
|
|
933
|
-
|
|
933
|
+
"annotator-action-color": k(({ color: l }) => [
|
|
934
|
+
x(t.$slots, "annotator-action-color", L(T({ color: l })), void 0, !0)
|
|
934
935
|
]),
|
|
935
|
-
"annotator-action-draw":
|
|
936
|
-
|
|
936
|
+
"annotator-action-draw": k(({ mode: l }) => [
|
|
937
|
+
x(t.$slots, "annotator-action-draw", L(T({ mode: l })), void 0, !0)
|
|
937
938
|
]),
|
|
938
|
-
"annotator-action-undo":
|
|
939
|
-
|
|
939
|
+
"annotator-action-undo": k(({ disabled: l }) => [
|
|
940
|
+
x(t.$slots, "annotator-action-undo", L(T({ disabled: l })), void 0, !0)
|
|
940
941
|
]),
|
|
941
|
-
"annotator-action-redo":
|
|
942
|
-
|
|
942
|
+
"annotator-action-redo": k(({ disabled: l }) => [
|
|
943
|
+
x(t.$slots, "annotator-action-redo", L(T({ disabled: l })), void 0, !0)
|
|
943
944
|
]),
|
|
944
|
-
"annotator-action-delete":
|
|
945
|
-
|
|
945
|
+
"annotator-action-delete": k(({ disabled: l }) => [
|
|
946
|
+
x(t.$slots, "annotator-action-delete", L(T({ disabled: l })), void 0, !0)
|
|
946
947
|
]),
|
|
947
948
|
_: 3
|
|
948
949
|
}, 8, ["svgRef", "backgroundColor", "color", "active", "isCursorPointer"])) : p("", !0),
|
|
@@ -991,9 +992,9 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
991
992
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
992
993
|
hasAltCopy: e.value.userOptions.buttons.altCopy,
|
|
993
994
|
isFullscreen: Q.value,
|
|
994
|
-
isTooltip:
|
|
995
|
+
isTooltip: O.value.showTooltip,
|
|
995
996
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
996
|
-
chartElement:
|
|
997
|
+
chartElement: W.value,
|
|
997
998
|
position: e.value.userOptions.position,
|
|
998
999
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
999
1000
|
isAnnotation: ye.value,
|
|
@@ -1005,7 +1006,7 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
1005
1006
|
onGeneratePdf: h(nt),
|
|
1006
1007
|
onGenerateCsv: Ve,
|
|
1007
1008
|
onGenerateImage: Ol,
|
|
1008
|
-
onGenerateSvg:
|
|
1009
|
+
onGenerateSvg: Ft,
|
|
1009
1010
|
onToggleTable: Lt,
|
|
1010
1011
|
onToggleTooltip: Tt,
|
|
1011
1012
|
onToggleAnnotator: We,
|
|
@@ -1016,71 +1017,71 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
1016
1017
|
}, Bt({ _: 2 }, [
|
|
1017
1018
|
t.$slots.menuIcon ? {
|
|
1018
1019
|
name: "menuIcon",
|
|
1019
|
-
fn:
|
|
1020
|
-
|
|
1020
|
+
fn: k(({ isOpen: l, color: s }) => [
|
|
1021
|
+
x(t.$slots, "menuIcon", L(T({ isOpen: l, color: s })), void 0, !0)
|
|
1021
1022
|
]),
|
|
1022
1023
|
key: "0"
|
|
1023
1024
|
} : void 0,
|
|
1024
1025
|
t.$slots.optionTooltip ? {
|
|
1025
1026
|
name: "optionTooltip",
|
|
1026
|
-
fn:
|
|
1027
|
-
|
|
1027
|
+
fn: k(() => [
|
|
1028
|
+
x(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
1028
1029
|
]),
|
|
1029
1030
|
key: "1"
|
|
1030
1031
|
} : void 0,
|
|
1031
1032
|
t.$slots.optionPdf ? {
|
|
1032
1033
|
name: "optionPdf",
|
|
1033
|
-
fn:
|
|
1034
|
-
|
|
1034
|
+
fn: k(() => [
|
|
1035
|
+
x(t.$slots, "optionPdf", {}, void 0, !0)
|
|
1035
1036
|
]),
|
|
1036
1037
|
key: "2"
|
|
1037
1038
|
} : void 0,
|
|
1038
1039
|
t.$slots.optionCsv ? {
|
|
1039
1040
|
name: "optionCsv",
|
|
1040
|
-
fn:
|
|
1041
|
-
|
|
1041
|
+
fn: k(() => [
|
|
1042
|
+
x(t.$slots, "optionCsv", {}, void 0, !0)
|
|
1042
1043
|
]),
|
|
1043
1044
|
key: "3"
|
|
1044
1045
|
} : void 0,
|
|
1045
1046
|
t.$slots.optionImg ? {
|
|
1046
1047
|
name: "optionImg",
|
|
1047
|
-
fn:
|
|
1048
|
-
|
|
1048
|
+
fn: k(() => [
|
|
1049
|
+
x(t.$slots, "optionImg", {}, void 0, !0)
|
|
1049
1050
|
]),
|
|
1050
1051
|
key: "4"
|
|
1051
1052
|
} : void 0,
|
|
1052
1053
|
t.$slots.optionSvg ? {
|
|
1053
1054
|
name: "optionSvg",
|
|
1054
|
-
fn:
|
|
1055
|
-
|
|
1055
|
+
fn: k(() => [
|
|
1056
|
+
x(t.$slots, "optionSvg", {}, void 0, !0)
|
|
1056
1057
|
]),
|
|
1057
1058
|
key: "5"
|
|
1058
1059
|
} : void 0,
|
|
1059
1060
|
t.$slots.optionTable ? {
|
|
1060
1061
|
name: "optionTable",
|
|
1061
|
-
fn:
|
|
1062
|
-
|
|
1062
|
+
fn: k(() => [
|
|
1063
|
+
x(t.$slots, "optionTable", {}, void 0, !0)
|
|
1063
1064
|
]),
|
|
1064
1065
|
key: "6"
|
|
1065
1066
|
} : void 0,
|
|
1066
1067
|
t.$slots.optionFullscreen ? {
|
|
1067
1068
|
name: "optionFullscreen",
|
|
1068
|
-
fn:
|
|
1069
|
-
|
|
1069
|
+
fn: k(({ toggleFullscreen: l, isFullscreen: s }) => [
|
|
1070
|
+
x(t.$slots, "optionFullscreen", L(T({ toggleFullscreen: l, isFullscreen: s })), void 0, !0)
|
|
1070
1071
|
]),
|
|
1071
1072
|
key: "7"
|
|
1072
1073
|
} : void 0,
|
|
1073
1074
|
t.$slots.optionAnnotator ? {
|
|
1074
1075
|
name: "optionAnnotator",
|
|
1075
|
-
fn:
|
|
1076
|
-
|
|
1076
|
+
fn: k(({ toggleAnnotator: l, isAnnotator: s }) => [
|
|
1077
|
+
x(t.$slots, "optionAnnotator", L(T({ toggleAnnotator: l, isAnnotator: s })), void 0, !0)
|
|
1077
1078
|
]),
|
|
1078
1079
|
key: "8"
|
|
1079
1080
|
} : void 0,
|
|
1080
1081
|
t.$slots.optionAltCopy ? {
|
|
1081
1082
|
name: "optionAltCopy",
|
|
1082
|
-
fn:
|
|
1083
|
-
|
|
1083
|
+
fn: k(({ altCopy: l }) => [
|
|
1084
|
+
x(t.$slots, "optionAltCopy", L(T({ altCopy: l })), void 0, !0)
|
|
1084
1085
|
]),
|
|
1085
1086
|
key: "9"
|
|
1086
1087
|
} : void 0
|
|
@@ -1092,7 +1093,7 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
1092
1093
|
xmlns: h(Zl),
|
|
1093
1094
|
"aria-describedby": `chart-instructions-${_.value}`,
|
|
1094
1095
|
class: X({ "vue-data-ui-fullscreen--on": Q.value, "vue-data-ui-fulscreen--off": !Q.value }),
|
|
1095
|
-
viewBox: `0 0 ${
|
|
1096
|
+
viewBox: `0 0 ${b.value.width <= 0 ? 10 : b.value.width} ${b.value.height <= 0 ? 10 : b.value.height}`,
|
|
1096
1097
|
style: ae(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.color}`),
|
|
1097
1098
|
tabindex: "0",
|
|
1098
1099
|
onFocus: Dl,
|
|
@@ -1110,9 +1111,9 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
1110
1111
|
pointerEvents: "none"
|
|
1111
1112
|
}
|
|
1112
1113
|
}, [
|
|
1113
|
-
|
|
1114
|
+
x(t.$slots, "chart-background", {}, void 0, !0)
|
|
1114
1115
|
], 8, _a)) : p("", !0),
|
|
1115
|
-
|
|
1116
|
+
g.value.length > 0 ? (i(), n("g", Sa, [
|
|
1116
1117
|
m("defs", null, [
|
|
1117
1118
|
m("linearGradient", {
|
|
1118
1119
|
id: `bearish_gradient_${_.value}`,
|
|
@@ -1130,7 +1131,7 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
1130
1131
|
m("stop", {
|
|
1131
1132
|
offset: "100%",
|
|
1132
1133
|
"stop-color": `${h(Ae)(e.value.style.layout.candle.colors.bearish, 0.05)}66`
|
|
1133
|
-
}, null, 8,
|
|
1134
|
+
}, null, 8, Ia)
|
|
1134
1135
|
], 8, za),
|
|
1135
1136
|
m("linearGradient", {
|
|
1136
1137
|
id: `bullish_gradient_${_.value}`,
|
|
@@ -1149,7 +1150,7 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
1149
1150
|
offset: "100%",
|
|
1150
1151
|
"stop-color": `${h(Ae)(e.value.style.layout.candle.colors.bullish, 0.05)}66`
|
|
1151
1152
|
}, null, 8, Pa)
|
|
1152
|
-
], 8,
|
|
1153
|
+
], 8, Fa)
|
|
1153
1154
|
]),
|
|
1154
1155
|
e.value.style.layout.grid.show ? (i(), n("g", Oa, [
|
|
1155
1156
|
m("line", {
|
|
@@ -1170,7 +1171,7 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
1170
1171
|
"stroke-width": e.value.style.layout.grid.strokeWidth,
|
|
1171
1172
|
"stroke-linecap": "round"
|
|
1172
1173
|
}, null, 8, Ba),
|
|
1173
|
-
e.value.style.layout.grid.horizontalLines.show ? (i(!0), n(
|
|
1174
|
+
e.value.style.layout.grid.horizontalLines.show ? (i(!0), n(M, { key: 0 }, B(pt.value, (l) => (i(), n("line", {
|
|
1174
1175
|
x1: r.value.left,
|
|
1175
1176
|
x2: r.value.right,
|
|
1176
1177
|
y1: l.y,
|
|
@@ -1180,7 +1181,7 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
1180
1181
|
"stroke-dasharray": e.value.style.layout.grid.horizontalLines.strokeDasharray,
|
|
1181
1182
|
"stroke-linecap": "round"
|
|
1182
1183
|
}, null, 8, Na))), 256)) : p("", !0),
|
|
1183
|
-
e.value.style.layout.grid.verticalLines.show ? (i(!0), n(
|
|
1184
|
+
e.value.style.layout.grid.verticalLines.show ? (i(!0), n(M, { key: 1 }, B(Ne.value, (l, s) => (i(), n("g", null, [
|
|
1184
1185
|
l.text ? (i(), n("line", {
|
|
1185
1186
|
key: 0,
|
|
1186
1187
|
x1: r.value.left + c.value * s + c.value / 2,
|
|
@@ -1193,7 +1194,7 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
1193
1194
|
"stroke-linecap": "round"
|
|
1194
1195
|
}, null, 8, Ea)) : p("", !0)
|
|
1195
1196
|
]))), 256)) : p("", !0),
|
|
1196
|
-
e.value.style.layout.grid.xAxis.ticks.show ? (i(!0), n(
|
|
1197
|
+
e.value.style.layout.grid.xAxis.ticks.show ? (i(!0), n(M, { key: 2 }, B(Ne.value, (l, s) => (i(), n("g", null, [
|
|
1197
1198
|
l.text ? (i(), n("line", {
|
|
1198
1199
|
key: 0,
|
|
1199
1200
|
x1: r.value.left + c.value * s + c.value / 2,
|
|
@@ -1211,8 +1212,8 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
1211
1212
|
ref_key: "scaleLabels",
|
|
1212
1213
|
ref: Le
|
|
1213
1214
|
}, [
|
|
1214
|
-
(i(!0), n(
|
|
1215
|
-
l.value >=
|
|
1215
|
+
(i(!0), n(M, null, B(pt.value, (l, s) => (i(), n("g", null, [
|
|
1216
|
+
l.value >= N.value.min && l.value <= N.value.max ? (i(), n("line", {
|
|
1216
1217
|
key: 0,
|
|
1217
1218
|
x1: r.value.left,
|
|
1218
1219
|
x2: r.value.left - 5,
|
|
@@ -1222,15 +1223,15 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
1222
1223
|
"stroke-width": e.value.style.layout.grid.strokeWidth,
|
|
1223
1224
|
"stroke-linecap": "round"
|
|
1224
1225
|
}, null, 8, Wa)) : p("", !0),
|
|
1225
|
-
l.value >=
|
|
1226
|
+
l.value >= N.value.min && l.value <= N.value.max ? (i(), n("text", {
|
|
1226
1227
|
key: 1,
|
|
1227
1228
|
x: r.value.left - 8 + e.value.style.layout.grid.yAxis.dataLabels.offsetX,
|
|
1228
|
-
y: l.y +
|
|
1229
|
-
"font-size":
|
|
1229
|
+
y: l.y + b.value.yAxisFontSize / 3,
|
|
1230
|
+
"font-size": b.value.yAxisFontSize,
|
|
1230
1231
|
"text-anchor": "end",
|
|
1231
1232
|
fill: e.value.style.layout.grid.yAxis.dataLabels.color,
|
|
1232
1233
|
"font-weight": e.value.style.layout.grid.yAxis.dataLabels.bold ? "bold" : "normal"
|
|
1233
|
-
}, oe(h(
|
|
1234
|
+
}, oe(h(R)({
|
|
1234
1235
|
p: e.value.style.layout.grid.yAxis.dataLabels.prefix,
|
|
1235
1236
|
v: l.value,
|
|
1236
1237
|
s: e.value.style.layout.grid.yAxis.dataLabels.suffix,
|
|
@@ -1243,12 +1244,12 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
1243
1244
|
ref_key: "timeLabelsEls",
|
|
1244
1245
|
ref: ie
|
|
1245
1246
|
}, [
|
|
1246
|
-
(i(!0), n(
|
|
1247
|
+
(i(!0), n(M, null, B(bl.value, (l, s) => (i(), n("g", null, [
|
|
1247
1248
|
m("text", {
|
|
1248
1249
|
class: "vue-data-ui-time-label",
|
|
1249
|
-
transform: `translate(${r.value.left + c.value * s + c.value / 2}, ${r.value.bottom +
|
|
1250
|
+
transform: `translate(${r.value.left + c.value * s + c.value / 2}, ${r.value.bottom + b.value.xAxisFontSize * 1.5}), rotate(${e.value.style.layout.grid.xAxis.dataLabels.rotation})`,
|
|
1250
1251
|
"text-anchor": e.value.style.layout.grid.xAxis.dataLabels.rotation > 0 ? "start" : e.value.style.layout.grid.xAxis.dataLabels.rotation < 0 ? "end" : "middle",
|
|
1251
|
-
"font-size":
|
|
1252
|
+
"font-size": b.value.xAxisFontSize,
|
|
1252
1253
|
fill: e.value.style.layout.grid.xAxis.dataLabels.color,
|
|
1253
1254
|
"font-weight": e.value.style.layout.grid.xAxis.dataLabels.bold ? "bold" : "normal"
|
|
1254
1255
|
}, oe(l), 9, Ha)
|
|
@@ -1259,20 +1260,20 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
1259
1260
|
ref_key: "timeLabelsEls",
|
|
1260
1261
|
ref: ie
|
|
1261
1262
|
}, [
|
|
1262
|
-
(i(!0), n(
|
|
1263
|
+
(i(!0), n(M, null, B(Ne.value, (l, s) => (i(), n("g", null, [
|
|
1263
1264
|
m("text", {
|
|
1264
1265
|
class: "vue-data-ui-time-label",
|
|
1265
|
-
transform: `translate(${r.value.left + c.value * s + c.value / 2}, ${r.value.bottom +
|
|
1266
|
+
transform: `translate(${r.value.left + c.value * s + c.value / 2}, ${r.value.bottom + b.value.xAxisFontSize * 1.5}), rotate(${e.value.style.layout.grid.xAxis.dataLabels.rotation})`,
|
|
1266
1267
|
"text-anchor": e.value.style.layout.grid.xAxis.dataLabels.rotation > 0 ? "start" : e.value.style.layout.grid.xAxis.dataLabels.rotation < 0 ? "end" : "middle",
|
|
1267
|
-
"font-size":
|
|
1268
|
+
"font-size": b.value.xAxisFontSize,
|
|
1268
1269
|
fill: e.value.style.layout.grid.xAxis.dataLabels.color,
|
|
1269
1270
|
"font-weight": e.value.style.layout.grid.xAxis.dataLabels.bold ? "bold" : "normal"
|
|
1270
1271
|
}, oe(l?.text ?? ""), 9, Xa)
|
|
1271
1272
|
]))), 256))
|
|
1272
1273
|
], 512)) : p("", !0),
|
|
1273
|
-
e.value.type === "candlestick" ? (i(), n(
|
|
1274
|
+
e.value.type === "candlestick" ? (i(), n(M, { key: 4 }, [
|
|
1274
1275
|
m("g", null, [
|
|
1275
|
-
(i(!0), n(
|
|
1276
|
+
(i(!0), n(M, null, B(g.value, (l, s) => (i(), n("g", null, [
|
|
1276
1277
|
m("rect", {
|
|
1277
1278
|
x: l.open.x - e.value.style.layout.wick.strokeWidth / 2,
|
|
1278
1279
|
y: l.high.y,
|
|
@@ -1281,7 +1282,7 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
1281
1282
|
fill: e.value.style.layout.wick.stroke,
|
|
1282
1283
|
stroke: "none",
|
|
1283
1284
|
rx: e.value.style.layout.wick.strokeWidth / 2,
|
|
1284
|
-
class: X({ "vue-data-ui-transition":
|
|
1285
|
+
class: X({ "vue-data-ui-transition": V.value && !h(H) })
|
|
1285
1286
|
}, null, 10, qa),
|
|
1286
1287
|
e.value.style.layout.wick.extremity.shape === "circle" ? (i(), n("g", ja, [
|
|
1287
1288
|
m("circle", {
|
|
@@ -1289,14 +1290,14 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
1289
1290
|
cy: l.high.y,
|
|
1290
1291
|
r: e.value.style.layout.wick.extremity.size === "auto" ? c.value / 20 : e.value.style.layout.wick.extremity.size,
|
|
1291
1292
|
fill: e.value.style.layout.wick.extremity.color,
|
|
1292
|
-
class: X({ "vue-data-ui-transition":
|
|
1293
|
+
class: X({ "vue-data-ui-transition": V.value && !h(H) })
|
|
1293
1294
|
}, null, 10, Ga),
|
|
1294
1295
|
m("circle", {
|
|
1295
1296
|
cx: l.low.x,
|
|
1296
1297
|
cy: l.low.y,
|
|
1297
1298
|
r: e.value.style.layout.wick.extremity.size === "auto" ? c.value / 20 : e.value.style.layout.wick.extremity.size,
|
|
1298
1299
|
fill: e.value.style.layout.wick.extremity.color,
|
|
1299
|
-
class: X({ "vue-data-ui-transition":
|
|
1300
|
+
class: X({ "vue-data-ui-transition": V.value && !h(H) })
|
|
1300
1301
|
}, null, 10, Ka)
|
|
1301
1302
|
])) : p("", !0),
|
|
1302
1303
|
e.value.style.layout.wick.extremity.shape === "line" ? (i(), n("g", Ya, [
|
|
@@ -1308,7 +1309,7 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
1308
1309
|
rx: e.value.style.layout.wick.strokeWidth / 2,
|
|
1309
1310
|
fill: e.value.style.layout.wick.extremity.color,
|
|
1310
1311
|
stroke: "none",
|
|
1311
|
-
class: X({ "vue-data-ui-transition":
|
|
1312
|
+
class: X({ "vue-data-ui-transition": V.value && !h(H) })
|
|
1312
1313
|
}, null, 10, Ja),
|
|
1313
1314
|
m("rect", {
|
|
1314
1315
|
x: l.low.x - (e.value.style.layout.wick.extremity.size === "auto" ? c.value * e.value.style.layout.candle.widthRatio : e.value.style.layout.wick.extremity.size) / 2,
|
|
@@ -1318,13 +1319,13 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
1318
1319
|
fill: e.value.style.layout.wick.extremity.color,
|
|
1319
1320
|
stroke: "none",
|
|
1320
1321
|
rx: e.value.style.layout.wick.strokeWidth / 2,
|
|
1321
|
-
class: X({ "vue-data-ui-transition":
|
|
1322
|
+
class: X({ "vue-data-ui-transition": V.value && !h(H) })
|
|
1322
1323
|
}, null, 10, Qa)
|
|
1323
1324
|
])) : p("", !0)
|
|
1324
1325
|
]))), 256))
|
|
1325
1326
|
]),
|
|
1326
1327
|
m("g", null, [
|
|
1327
|
-
(i(!0), n(
|
|
1328
|
+
(i(!0), n(M, null, B(g.value, (l, s) => (i(), n("rect", {
|
|
1328
1329
|
x: l.open.x - c.value / 2 + c.value * (1 - e.value.style.layout.candle.widthRatio) / 2,
|
|
1329
1330
|
y: l.isBullish ? l.close.y : l.open.y,
|
|
1330
1331
|
height: Math.abs(l.close.y - l.open.y) <= 0 ? 1e-4 : Math.abs(l.close.y - l.open.y),
|
|
@@ -1332,9 +1333,9 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
1332
1333
|
fill: e.value.style.layout.candle.gradient.underlayer,
|
|
1333
1334
|
rx: e.value.style.layout.candle.borderRadius,
|
|
1334
1335
|
stroke: "none",
|
|
1335
|
-
class: X({ "vue-data-ui-transition":
|
|
1336
|
+
class: X({ "vue-data-ui-transition": V.value && !h(H) })
|
|
1336
1337
|
}, null, 10, Za))), 256)),
|
|
1337
|
-
(i(!0), n(
|
|
1338
|
+
(i(!0), n(M, null, B(g.value, (l, s) => (i(), n("rect", {
|
|
1338
1339
|
x: l.open.x - c.value / 2 + c.value * (1 - e.value.style.layout.candle.widthRatio) / 2,
|
|
1339
1340
|
y: l.isBullish ? l.close.y : l.open.y,
|
|
1340
1341
|
height: Math.abs(l.close.y - l.open.y) <= 0 ? 1e-4 : Math.abs(l.close.y - l.open.y),
|
|
@@ -1345,11 +1346,11 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
1345
1346
|
"stroke-width": e.value.style.layout.candle.strokeWidth,
|
|
1346
1347
|
"stroke-linecap": "round",
|
|
1347
1348
|
"stroke-linejoin": "round",
|
|
1348
|
-
class: X({ "vue-data-ui-transition":
|
|
1349
|
+
class: X({ "vue-data-ui-transition": V.value && !h(H) })
|
|
1349
1350
|
}, null, 10, eo))), 256))
|
|
1350
1351
|
])
|
|
1351
1352
|
], 64)) : p("", !0),
|
|
1352
|
-
e.value.type === "ohlc" ? (i(!0), n(
|
|
1353
|
+
e.value.type === "ohlc" ? (i(!0), n(M, { key: 5 }, B(g.value, (l, s) => (i(), n("g", null, [
|
|
1353
1354
|
m("path", {
|
|
1354
1355
|
d: `M ${l.high.x},${l.high.y} ${l.low.x},${l.low.y} M${l.open.x - Math.min(6, c.value / 3)},${l.open.y} ${l.open.x},${l.open.y} M${l.close.x},${l.close.y} ${l.close.x + Math.min(6, c.value / 3)},${l.close.y}`,
|
|
1355
1356
|
stroke: l.isBullish ? e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.colors.bearish,
|
|
@@ -1357,12 +1358,12 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
1357
1358
|
}, null, 8, to)
|
|
1358
1359
|
]))), 256)) : p("", !0),
|
|
1359
1360
|
m("g", null, [
|
|
1360
|
-
(i(!0), n(
|
|
1361
|
+
(i(!0), n(M, null, B(g.value, (l, s) => (i(), n("rect", {
|
|
1361
1362
|
x: r.value.left + s * c.value,
|
|
1362
1363
|
y: r.value.top,
|
|
1363
1364
|
height: r.value.height <= 0 ? 1e-4 : r.value.height,
|
|
1364
1365
|
width: c.value <= 0 ? 1e-4 : c.value,
|
|
1365
|
-
fill:
|
|
1366
|
+
fill: P.value === s || at.value === s ? h(ea)(e.value.style.layout.selector.color, e.value.style.layout.selector.opacity) : "transparent",
|
|
1366
1367
|
onMouseover: () => At(s, l, "pointer"),
|
|
1367
1368
|
onMouseleave: () => Cl(s, l),
|
|
1368
1369
|
onClick: () => Ct(s, l)
|
|
@@ -1373,10 +1374,10 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
1373
1374
|
"data-start": d.value.start,
|
|
1374
1375
|
"data-end": d.value.end
|
|
1375
1376
|
}), null, 16, ao)) : p("", !0),
|
|
1376
|
-
|
|
1377
|
+
x(t.$slots, "svg", {
|
|
1377
1378
|
svg: {
|
|
1378
|
-
...
|
|
1379
|
-
data:
|
|
1379
|
+
...b.value,
|
|
1380
|
+
data: g.value,
|
|
1380
1381
|
drawingArea: r.value,
|
|
1381
1382
|
isPrintingImg: h(Pe) | h(Oe) | pe.value,
|
|
1382
1383
|
isPrintingSvg: fe.value
|
|
@@ -1384,11 +1385,11 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
1384
1385
|
}, void 0, !0)
|
|
1385
1386
|
], 46, $a)),
|
|
1386
1387
|
t.$slots.hint ? (i(), n("div", oo, [
|
|
1387
|
-
|
|
1388
|
+
x(t.$slots, "hint", L(T({ hint: e.value.a11y.translations.keyboardNavigation, isVisible: Ie.value })), void 0, !0)
|
|
1388
1389
|
])) : p("", !0)
|
|
1389
1390
|
]),
|
|
1390
1391
|
t.$slots.watermark ? (i(), n("div", so, [
|
|
1391
|
-
|
|
1392
|
+
x(t.$slots, "watermark", L(T({ isPrinting: h(Pe) || h(Oe) || pe.value || fe.value })), void 0, !0)
|
|
1392
1393
|
])) : p("", !0),
|
|
1393
1394
|
e.value.style.zoom.show && S.value > 6 && _e.value && _t.value ? (i(), G(xa, {
|
|
1394
1395
|
key: 6,
|
|
@@ -1419,7 +1420,7 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
1419
1420
|
minimapMerged: !1,
|
|
1420
1421
|
minimapSelectedColor: e.value.style.zoom.minimap.selectedColor,
|
|
1421
1422
|
minimapSelectedColorOpacity: e.value.style.zoom.minimap.selectedColorOpacity,
|
|
1422
|
-
minimapSelectedIndex:
|
|
1423
|
+
minimapSelectedIndex: P.value,
|
|
1423
1424
|
minimapSelectionRadius: 1,
|
|
1424
1425
|
preciseLabels: wl.value,
|
|
1425
1426
|
refreshEndPoint: e.value.style.zoom.endIndex !== null ? e.value.style.zoom.endIndex + 1 : S.value,
|
|
@@ -1447,22 +1448,22 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
1447
1448
|
handleWidth: e.value.style.zoom.minimap.handleWidth,
|
|
1448
1449
|
"onUpdate:end": Rl,
|
|
1449
1450
|
"onUpdate:start": Ml,
|
|
1450
|
-
onTrapMouse:
|
|
1451
|
+
onTrapMouse: Fl,
|
|
1451
1452
|
onReset: $t,
|
|
1452
1453
|
onFutureEnd: a[0] || (a[0] = (l) => ct("end", l)),
|
|
1453
1454
|
onFutureStart: a[1] || (a[1] = (l) => ct("start", l))
|
|
1454
1455
|
}, {
|
|
1455
|
-
"reset-action":
|
|
1456
|
-
|
|
1456
|
+
"reset-action": k(({ reset: l }) => [
|
|
1457
|
+
x(t.$slots, "reset-action", L(T({ reset: l })), void 0, !0)
|
|
1457
1458
|
]),
|
|
1458
|
-
slotMap:
|
|
1459
|
-
(i(!0), n(
|
|
1459
|
+
slotMap: k(({ height: l, unitW: s }) => [
|
|
1460
|
+
(i(!0), n(M, null, B(pl.value({ minimapH: l, unitW: s }), (o, u) => (i(), n("g", null, [
|
|
1460
1461
|
m("path", {
|
|
1461
1462
|
d: `M ${o.high.x},${o.high.y} ${o.low.x},${o.low.y}`,
|
|
1462
1463
|
stroke: o.isBullish ? e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.colors.bearish,
|
|
1463
1464
|
"stroke-width": 1,
|
|
1464
1465
|
style: ae({
|
|
1465
|
-
opacity: u >=
|
|
1466
|
+
opacity: u >= $.value.start && u <= $.value.end ? 1 : 0.6
|
|
1466
1467
|
})
|
|
1467
1468
|
}, null, 12, uo),
|
|
1468
1469
|
m("path", {
|
|
@@ -1470,7 +1471,7 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
1470
1471
|
stroke: o.isBullish ? e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.colors.bearish,
|
|
1471
1472
|
"stroke-width": Math.min(6, s / 1.5),
|
|
1472
1473
|
style: ae({
|
|
1473
|
-
opacity: u >=
|
|
1474
|
+
opacity: u >= $.value.start && u <= $.value.end ? 1 : 0.6
|
|
1474
1475
|
})
|
|
1475
1476
|
}, null, 12, io)
|
|
1476
1477
|
]))), 256))
|
|
@@ -1481,7 +1482,7 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
1481
1482
|
ref_key: "chartLegend",
|
|
1482
1483
|
ref: Qe
|
|
1483
1484
|
}, [
|
|
1484
|
-
|
|
1485
|
+
x(t.$slots, "legend", { legend: g.value }, void 0, !0)
|
|
1485
1486
|
], 512),
|
|
1486
1487
|
t.$slots.source ? (i(), n("div", {
|
|
1487
1488
|
key: 7,
|
|
@@ -1489,11 +1490,11 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
1489
1490
|
ref: Ze,
|
|
1490
1491
|
dir: "auto"
|
|
1491
1492
|
}, [
|
|
1492
|
-
|
|
1493
|
+
x(t.$slots, "source", {}, void 0, !0)
|
|
1493
1494
|
], 512)) : p("", !0),
|
|
1494
1495
|
Ge(h(Jt), {
|
|
1495
1496
|
teleportTo: e.value.style.tooltip.teleportTo,
|
|
1496
|
-
show:
|
|
1497
|
+
show: O.value.showTooltip && se.value,
|
|
1497
1498
|
backgroundColor: e.value.style.tooltip.backgroundColor,
|
|
1498
1499
|
color: e.value.style.tooltip.color,
|
|
1499
1500
|
borderRadius: e.value.style.tooltip.borderRadius,
|
|
@@ -1503,7 +1504,7 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
1503
1504
|
backgroundOpacity: e.value.style.tooltip.backgroundOpacity,
|
|
1504
1505
|
position: e.value.style.tooltip.position,
|
|
1505
1506
|
offsetY: e.value.style.tooltip.offsetY,
|
|
1506
|
-
parent:
|
|
1507
|
+
parent: W.value,
|
|
1507
1508
|
content: ze.value,
|
|
1508
1509
|
isFullscreen: Q.value,
|
|
1509
1510
|
isCustom: e.value.style.tooltip.customFormat && typeof e.value.style.tooltip.customFormat == "function",
|
|
@@ -1514,20 +1515,20 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
1514
1515
|
isA11yMode: re.value === "keyboard",
|
|
1515
1516
|
a11yPosition: ot.value
|
|
1516
1517
|
}, {
|
|
1517
|
-
"tooltip-before":
|
|
1518
|
-
|
|
1518
|
+
"tooltip-before": k(() => [
|
|
1519
|
+
x(t.$slots, "tooltip-before", L(T({ ...Ee.value })), void 0, !0)
|
|
1519
1520
|
]),
|
|
1520
|
-
"tooltip-after":
|
|
1521
|
-
|
|
1521
|
+
"tooltip-after": k(() => [
|
|
1522
|
+
x(t.$slots, "tooltip-after", L(T({ ...Ee.value })), void 0, !0)
|
|
1522
1523
|
]),
|
|
1523
1524
|
_: 3
|
|
1524
1525
|
}, 8, ["teleportTo", "show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold", "isA11yMode", "a11yPosition"]),
|
|
1525
1526
|
_e.value && e.value.userOptions.buttons.table ? (i(), G(Kl(he.value.component), Nt({ key: 8 }, he.value.props, {
|
|
1526
1527
|
ref_key: "tableUnit",
|
|
1527
1528
|
ref: ne,
|
|
1528
|
-
onClose:
|
|
1529
|
+
onClose: It
|
|
1529
1530
|
}), Bt({
|
|
1530
|
-
content:
|
|
1531
|
+
content: k(() => [
|
|
1531
1532
|
(i(), G(h(Zt), {
|
|
1532
1533
|
key: `table_${tt.value}`,
|
|
1533
1534
|
colNames: te.value.colNames,
|
|
@@ -1537,12 +1538,12 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
1537
1538
|
title: e.value.table.useDialog ? "" : he.value.title,
|
|
1538
1539
|
withCloseButton: !e.value.table.useDialog,
|
|
1539
1540
|
isCursorPointer: ve.value,
|
|
1540
|
-
onClose:
|
|
1541
|
+
onClose: It
|
|
1541
1542
|
}, {
|
|
1542
|
-
th:
|
|
1543
|
+
th: k(({ th: l }) => [
|
|
1543
1544
|
Et(oe(l), 1)
|
|
1544
1545
|
]),
|
|
1545
|
-
td:
|
|
1546
|
+
td: k(({ td: l }) => [
|
|
1546
1547
|
m("div", { innerHTML: l }, null, 8, no)
|
|
1547
1548
|
]),
|
|
1548
1549
|
_: 1
|
|
@@ -1552,14 +1553,14 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
1552
1553
|
}, [
|
|
1553
1554
|
e.value.table.useDialog ? {
|
|
1554
1555
|
name: "title",
|
|
1555
|
-
fn:
|
|
1556
|
+
fn: k(() => [
|
|
1556
1557
|
Et(oe(he.value.title), 1)
|
|
1557
1558
|
]),
|
|
1558
1559
|
key: "0"
|
|
1559
1560
|
} : void 0,
|
|
1560
1561
|
e.value.table.useDialog ? {
|
|
1561
1562
|
name: "actions",
|
|
1562
|
-
fn:
|
|
1563
|
+
fn: k(() => [
|
|
1563
1564
|
m("button", {
|
|
1564
1565
|
tabindex: "0",
|
|
1565
1566
|
class: "vue-ui-user-options-button",
|
|
@@ -1575,12 +1576,12 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
1575
1576
|
key: "1"
|
|
1576
1577
|
} : void 0
|
|
1577
1578
|
]), 1040)) : p("", !0),
|
|
1578
|
-
|
|
1579
|
-
h(
|
|
1579
|
+
x(t.$slots, "skeleton", {}, () => [
|
|
1580
|
+
h(H) ? (i(), G(va, { key: 0 })) : p("", !0)
|
|
1580
1581
|
], !0)
|
|
1581
1582
|
], 46, wa));
|
|
1582
1583
|
}
|
|
1583
|
-
}, To = /* @__PURE__ */ ka(ro, [["__scopeId", "data-v-
|
|
1584
|
+
}, To = /* @__PURE__ */ ka(ro, [["__scopeId", "data-v-af885bef"]]);
|
|
1584
1585
|
export {
|
|
1585
1586
|
To as default
|
|
1586
1587
|
};
|