vue-data-ui 3.16.5 → 3.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +64 -46
- package/dist/{PackageVersion-CvtT2-UH.js → PackageVersion-B3kmPxTR.js} +1 -1
- package/dist/{Slicer-DUycDH_N.js → Slicer-CIHwwuNR.js} +107 -110
- package/dist/SlicerPreview-BIvxyb5W.js +1484 -0
- package/dist/{Tooltip-Bf-kM3_A.js → Tooltip-C8KGyqQk.js} +19 -17
- 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-mini-loader.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-rating.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-smiley.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 -1
- package/dist/{useConfig-CpJA0VZa.js → useConfig-ChRble71.js} +1 -0
- package/dist/{useObjectBindings-DToqZaRC.js → useObjectBindings-BVFCsss5.js} +1 -1
- package/dist/utils.js +1 -1
- package/dist/{vue-data-ui-XhJQD-ri.js → vue-data-ui-BX3I-ZQt.js} +67 -67
- package/dist/vue-data-ui.js +68 -68
- package/dist/{vue-ui-3d-bar-BhzRmNak.js → vue-ui-3d-bar-DsSxN6Xl.js} +2 -2
- package/dist/{vue-ui-accordion-BF4v32wv.js → vue-ui-accordion-CnDW2UQL.js} +1 -1
- package/dist/{vue-ui-age-pyramid-CZCn6OMX.js → vue-ui-age-pyramid-DgAJXx1F.js} +112 -109
- package/dist/{vue-ui-annotator-U961V1Kc.js → vue-ui-annotator-BA4hRkfX.js} +2 -2
- package/dist/{vue-ui-bullet-BRyBDt56.js → vue-ui-bullet-BCuT1zVr.js} +2 -2
- package/dist/{vue-ui-bump-Dulq2vNg.js → vue-ui-bump-BTnwgB5Q.js} +2 -2
- package/dist/{vue-ui-candlestick-BJD25FJV.js → vue-ui-candlestick-BMvM7WIc.js} +148 -145
- package/dist/{vue-ui-carousel-table-DCHtRFDV.js → vue-ui-carousel-table-DCtWIG49.js} +2 -2
- package/dist/{vue-ui-chestnut-46054xSO.js → vue-ui-chestnut-DJ0R3Aqx.js} +2 -2
- package/dist/{vue-ui-chord-CSdFVJx2.js → vue-ui-chord-BbWToSBq.js} +2 -2
- package/dist/{vue-ui-circle-pack-CmPyW4rp.js → vue-ui-circle-pack-CwuEfQPE.js} +117 -114
- package/dist/{vue-ui-cursor-QZjpAemm.js → vue-ui-cursor-C4MnK_CE.js} +2 -2
- package/dist/{vue-ui-dag-C051dx6c.js → vue-ui-dag-HKbeFOit.js} +2 -2
- package/dist/{vue-ui-dashboard-zCwCXCfe.js → vue-ui-dashboard-DTYz-idn.js} +65 -65
- package/dist/{vue-ui-digits-HPy7kRgm.js → vue-ui-digits-CrFH4BlD.js} +2 -2
- package/dist/{vue-ui-donut-DxOwX8nC.js → vue-ui-donut-B1C7vzFY.js} +100 -97
- package/dist/{vue-ui-donut-evolution-KD1WwwLS.js → vue-ui-donut-evolution-BUIQwZ-c.js} +3 -3
- package/dist/{vue-ui-dumbbell-0BJ1t72z.js → vue-ui-dumbbell-Bq-X5L24.js} +2 -2
- package/dist/{vue-ui-flow-lPRZK-_Q.js → vue-ui-flow-DUn9hp_J.js} +141 -138
- package/dist/{vue-ui-funnel-WJG6UU4c.js → vue-ui-funnel-CNF2ULOQ.js} +2 -2
- package/dist/{vue-ui-galaxy-Cnqgwc0G.js → vue-ui-galaxy-BzlU9OSU.js} +75 -72
- package/dist/{vue-ui-gauge-BXFwr3H7.js → vue-ui-gauge-aF_V6ynK.js} +2 -2
- package/dist/{vue-ui-geo-DeYdEiHT.js → vue-ui-geo-xaZvHjAP.js} +116 -113
- package/dist/{vue-ui-gizmo-C0-M2WoG.js → vue-ui-gizmo-BGvS_AHj.js} +2 -2
- package/dist/{vue-ui-heatmap-DctMvoRr.js → vue-ui-heatmap-B_BmpyVy.js} +191 -188
- package/dist/{vue-ui-history-plot-sLaCn8jd.js → vue-ui-history-plot-DsoLp3aL.js} +124 -121
- package/dist/{vue-ui-horizontal-bar-reisxCWX.js → vue-ui-horizontal-bar-JVjE88ZW.js} +218 -215
- package/dist/{vue-ui-kpi-z3S4DcoQ.js → vue-ui-kpi-B-v1zpd4.js} +2 -2
- package/dist/{vue-ui-mini-loader-DSQ9kcmW.js → vue-ui-mini-loader-CPfZsqWP.js} +1 -1
- package/dist/{vue-ui-molecule-CQEaLq9E.js → vue-ui-molecule-Di9_wsME.js} +61 -58
- package/dist/{vue-ui-mood-radar-BGIt_k-N.js → vue-ui-mood-radar-CetQpdnu.js} +2 -2
- package/dist/{vue-ui-nested-donuts-BxXAWrhM.js → vue-ui-nested-donuts-Y-UMjjYV.js} +131 -128
- package/dist/{vue-ui-onion-CMKIYAuh.js → vue-ui-onion-MM3QZLzF.js} +142 -139
- package/dist/{vue-ui-parallel-coordinate-plot-Tb8aJ91r.js → vue-ui-parallel-coordinate-plot-CcHmB0MQ.js} +91 -88
- package/dist/{vue-ui-quadrant-CLAqGLQH.js → vue-ui-quadrant-CQIMUggy.js} +58 -55
- package/dist/{vue-ui-quick-chart-BK2SOFv9.js → vue-ui-quick-chart-lwGufdDj.js} +235 -232
- package/dist/{vue-ui-radar-BY7vIWHL.js → vue-ui-radar-CS74L65M.js} +117 -114
- package/dist/{vue-ui-rating-hudM2QS0.js → vue-ui-rating-DiLLVHq3.js} +1 -1
- package/dist/{vue-ui-relation-circle-BlUbhTZ5.js → vue-ui-relation-circle-D3dO8RTC.js} +2 -2
- package/dist/{vue-ui-ridgeline-Bsfw_4y_.js → vue-ui-ridgeline-Dpvq9yp2.js} +2 -2
- package/dist/{vue-ui-rings-BaORhzZH.js → vue-ui-rings-D-45pPpZ.js} +122 -119
- package/dist/{vue-ui-scatter-D8afRw4d.js → vue-ui-scatter-BzCjfGB9.js} +121 -118
- package/dist/{vue-ui-skeleton-BE5ADLxq.js → vue-ui-skeleton-Dai-bZZw.js} +2 -2
- package/dist/{vue-ui-smiley-CQ_rGHFe.js → vue-ui-smiley-BioqmYwT.js} +1 -1
- package/dist/{vue-ui-spark-trend-C2QdubPf.js → vue-ui-spark-trend-DiC9V0VU.js} +2 -2
- package/dist/{vue-ui-sparkbar-BxP_TDR3.js → vue-ui-sparkbar-D6EsbW6u.js} +2 -2
- package/dist/{vue-ui-sparkgauge-CgHAoaeu.js → vue-ui-sparkgauge-BHDXZgJH.js} +2 -2
- package/dist/{vue-ui-sparkhistogram-0m7QAV93.js → vue-ui-sparkhistogram-DzuOjuNH.js} +2 -2
- package/dist/{vue-ui-sparkline-DNt9nHQ9.js → vue-ui-sparkline-B-zOqzrC.js} +2 -2
- package/dist/{vue-ui-sparkstackbar-RU8zQLfe.js → vue-ui-sparkstackbar-bqKzIKSg.js} +147 -144
- package/dist/{vue-ui-stackbar-C3qGXmTQ.js → vue-ui-stackbar-DPfxqQUG.js} +435 -424
- package/dist/{vue-ui-stackline-W24y7z12.js → vue-ui-stackline-Ctqe1OuF.js} +627 -609
- package/dist/{vue-ui-strip-plot--MWxAM0R.js → vue-ui-strip-plot-Dg2URhvc.js} +72 -69
- package/dist/{vue-ui-table-heatmap-DU7w6PrX.js → vue-ui-table-heatmap-Da6sqBlI.js} +1 -1
- package/dist/{vue-ui-table-sparkline-DKbkhX_x.js → vue-ui-table-sparkline-Bkv6Qz6V.js} +2 -2
- package/dist/{vue-ui-table-BtkypjfT.js → vue-ui-table-xrD-xqis.js} +3 -3
- package/dist/{vue-ui-thermometer-qaGYZUMd.js → vue-ui-thermometer-D7VVeA2i.js} +2 -2
- package/dist/{vue-ui-timer-CpQYSD-K.js → vue-ui-timer-D7XYgZfb.js} +2 -2
- package/dist/{vue-ui-tiremarks-CUiSLMlj.js → vue-ui-tiremarks-i6e8GTI9.js} +2 -2
- package/dist/{vue-ui-treemap-CMfWyA5N.js → vue-ui-treemap-D8Mbfeuc.js} +220 -217
- package/dist/{vue-ui-waffle-H02mH3Rc.js → vue-ui-waffle-7rVD530d.js} +123 -120
- package/dist/{vue-ui-wheel-agcFNYTs.js → vue-ui-wheel-HQNWtsvJ.js} +2 -2
- package/dist/{vue-ui-word-cloud-B0fNWUVr.js → vue-ui-word-cloud-DFAEbzUa.js} +159 -156
- package/dist/{vue-ui-world-B8mANOO8.js → vue-ui-world-YvmrdfIm.js} +86 -83
- package/dist/vue-ui-xy-canvas-CEaAQ_tr.js +1819 -0
- package/dist/{vue-ui-xy-DgyEEqnJ.js → vue-ui-xy-n4juEarQ.js} +402 -398
- package/package.json +1 -1
- package/dist/SlicerPreview-DTjwV0iY.js +0 -1372
- package/dist/vue-ui-xy-canvas-CaoWw3AU.js +0 -1810
|
@@ -1,7 +1,7 @@
|
|
|
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
|
|
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
|
|
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 Ae, 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 b, normalizeProps as _, guardReactiveProps as S, 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 $e, 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
|
-
import { u as ua } from "./useConfig-
|
|
4
|
+
import { u as ua } from "./useConfig-ChRble71.js";
|
|
5
5
|
import { u as Xt, a as qt, b as ia } from "./useTimeLabels-C-A2uZKi.js";
|
|
6
6
|
import { u as na } from "./usePrinter-CEpYU3r5.js";
|
|
7
7
|
import { u as ra, B as va } from "./BaseScanner-BhhkKVoj.js";
|
|
@@ -15,7 +15,7 @@ import pa from "./img-LXxMLmCg.js";
|
|
|
15
15
|
import fa from "./Title-BeMKE1cj.js";
|
|
16
16
|
import ga from "./vue_ui_candlestick-BAMn-VGw.js";
|
|
17
17
|
import { A as ba } from "./A11yDataTable-KcVAX2cP.js";
|
|
18
|
-
import { S as xa } from "./SlicerPreview-
|
|
18
|
+
import { S as xa } from "./SlicerPreview-BIvxyb5W.js";
|
|
19
19
|
import { _ as ka } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
20
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,
|
|
@@ -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-
|
|
50
|
+
const Yt = j(() => import("./BaseIcon-Cb3zzG6s.js")), Jt = j(() => import("./Tooltip-C8KGyqQk.js")), Qt = j(() => import("./vue-ui-accordion-CnDW2UQL.js")), Zt = j(() => import("./DataTable-DT2kIdQ6.js")), el = j(() => import("./PenAndPaper-Ct3qJ4lA.js")), tl = j(() => import("./UserOptions-rW2fRf3V.js")), ll = j(() => import("./PackageVersion-B3kmPxTR.js")), al = j(() => import("./BaseDraggableDialog-CIb-iD9g.js")), { vue_ui_candlestick: ol } = ua(), { isThemeValid: sl, warnInvalidTheme: ul } = ca(), I = jt, _e = Kt, Se = y(() => !!I.dataset && I.dataset.length), V = v(!1), ze = v(null), z = v(Yl()), se = v(!1), Le = 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), Te = v(null), ie = v(null), ne = v(null), Ie = v(null), at = v(null), pe = v(!1), fe = v(!1), U = v(null), ot = v({ x: 0, y: 0 }), re = v("pointer"), Fe = v(!1), e = v(Pe()), ve = y(() => e.value.userOptions.useCursorPointer), nl = y(() => Vt({
|
|
51
51
|
defaultConfig: {
|
|
52
52
|
useCssAnimation: !1,
|
|
53
53
|
userOptions: { show: !1 },
|
|
@@ -93,13 +93,13 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
93
93
|
}
|
|
94
94
|
},
|
|
95
95
|
userConfig: e.value.skeletonConfig ?? {}
|
|
96
|
-
})), { loading: H, FINAL_DATASET: w, manualLoading:
|
|
96
|
+
})), { loading: H, FINAL_DATASET: w, manualLoading: Me } = ra({
|
|
97
97
|
...jl(I),
|
|
98
98
|
FINAL_CONFIG: e,
|
|
99
|
-
prepareConfig:
|
|
99
|
+
prepareConfig: Pe,
|
|
100
100
|
callback: () => {
|
|
101
101
|
Promise.resolve().then(async () => {
|
|
102
|
-
await
|
|
102
|
+
await Ce();
|
|
103
103
|
});
|
|
104
104
|
},
|
|
105
105
|
skeletonDataset: I.config?.skeletonDataset ?? [
|
|
@@ -120,14 +120,14 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
120
120
|
defaultConfig: e.value,
|
|
121
121
|
userConfig: nl.value
|
|
122
122
|
})
|
|
123
|
-
}), { userOptionsVisible:
|
|
123
|
+
}), { userOptionsVisible: Re, setUserOptionsVisibility: st, keepUserOptionState: ut } = ya({ config: e.value }), { svgRef: Y } = ha({ config: e.value.style.title });
|
|
124
124
|
function rl() {
|
|
125
125
|
st(!0);
|
|
126
126
|
}
|
|
127
127
|
function vl() {
|
|
128
|
-
st(!1),
|
|
128
|
+
st(!1), _e("selectX", { seriesIndex: null, datapoint: null }), P.value = null;
|
|
129
129
|
}
|
|
130
|
-
function
|
|
130
|
+
function Pe() {
|
|
131
131
|
const t = Ke({
|
|
132
132
|
userConfig: I.config,
|
|
133
133
|
defaultConfig: ol
|
|
@@ -154,11 +154,11 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
154
154
|
return a;
|
|
155
155
|
}
|
|
156
156
|
me(() => I.config, (t) => {
|
|
157
|
-
H.value || (e.value =
|
|
157
|
+
H.value || (e.value = Pe()), Re.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
158
|
}, { deep: !0 }), me(() => I.dataset, (t) => {
|
|
159
|
-
Array.isArray(t) && t.length > 0 && (
|
|
159
|
+
Array.isArray(t) && t.length > 0 && (Me.value = !1), $t();
|
|
160
160
|
}, { deep: !0 });
|
|
161
|
-
const
|
|
161
|
+
const x = 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,
|
|
@@ -173,7 +173,7 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
173
173
|
componentName: "VueUiCandlestick",
|
|
174
174
|
type: "dataset",
|
|
175
175
|
debug: J.value
|
|
176
|
-
}),
|
|
176
|
+
}), Me.value = !0), Wt(I.dataset) || (Me.value = e.value.loading), setTimeout(() => {
|
|
177
177
|
V.value = !0;
|
|
178
178
|
}, 10), e.value.responsive) {
|
|
179
179
|
const a = Ht(() => {
|
|
@@ -181,47 +181,47 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
181
181
|
const { width: l, height: s } = sa({
|
|
182
182
|
chart: W.value,
|
|
183
183
|
title: e.value.style.title.text ? Je.value : null,
|
|
184
|
-
slicer: e.value.style.zoom.show &&
|
|
184
|
+
slicer: e.value.style.zoom.show && L.value > 6 ? ue.value.$el : null,
|
|
185
185
|
legend: Qe.value,
|
|
186
186
|
source: Ze.value,
|
|
187
187
|
noTitle: et.value
|
|
188
188
|
});
|
|
189
189
|
requestAnimationFrame(() => {
|
|
190
|
-
|
|
190
|
+
x.value.width = l, x.value.height = s - 12, e.value.responsiveProportionalSizing ? (x.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
|
+
}), x.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
|
-
})) : (
|
|
202
|
+
})) : (x.value.xAxisFontSize = e.value.style.layout.grid.xAxis.dataLabels.fontSize, x.value.yAxisFontSize = e.value.style.layout.grid.yAxis.dataLabels.fontSize), ze.value && clearTimeout(ze.value), ze.value = setTimeout(() => {
|
|
203
203
|
V.value = !0;
|
|
204
204
|
}, 10);
|
|
205
205
|
});
|
|
206
206
|
});
|
|
207
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
|
+
Ce();
|
|
210
210
|
}
|
|
211
211
|
qe(() => {
|
|
212
212
|
q.value && (ee.value && q.value.unobserve(ee.value), q.value.disconnect());
|
|
213
213
|
});
|
|
214
|
-
const { isPrinting:
|
|
215
|
-
elementId: `vue-ui-candlestick_${
|
|
214
|
+
const { isPrinting: Oe, isImaging: De, generatePdf: nt, generateImage: rt } = na({
|
|
215
|
+
elementId: `vue-ui-candlestick_${z.value}`,
|
|
216
216
|
fileName: e.value.style.title.text || "vue-ui-candlestick",
|
|
217
217
|
options: e.value.userOptions.print
|
|
218
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
|
-
}),
|
|
222
|
-
|
|
221
|
+
}), Be = v(0), cl = Ht((t) => {
|
|
222
|
+
Be.value = t;
|
|
223
223
|
}, 100);
|
|
224
|
-
|
|
224
|
+
Ae((t) => {
|
|
225
225
|
const a = ie.value;
|
|
226
226
|
if (!a) return;
|
|
227
227
|
const l = new ResizeObserver((s) => {
|
|
@@ -229,15 +229,15 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
229
229
|
});
|
|
230
230
|
l.observe(a), t(() => l.disconnect());
|
|
231
231
|
}), qe(() => {
|
|
232
|
-
|
|
232
|
+
Be.value = 0;
|
|
233
233
|
});
|
|
234
234
|
const vt = y(() => {
|
|
235
235
|
let t = 0;
|
|
236
|
-
return ie.value && (t =
|
|
236
|
+
return ie.value && (t = Be.value + x.value.xAxisFontSize), t;
|
|
237
237
|
});
|
|
238
238
|
function yl() {
|
|
239
239
|
let t = e.value.style.layout.grid.yAxis.dataLabels.offsetX;
|
|
240
|
-
return
|
|
240
|
+
return Te.value && (t = Array.from(Te.value.querySelectorAll("text")).reduce((s, o) => {
|
|
241
241
|
const u = o.getComputedTextLength();
|
|
242
242
|
return u > s ? u : s;
|
|
243
243
|
}, 0)), t + 13;
|
|
@@ -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: x.value.width - a,
|
|
250
250
|
left: s + o,
|
|
251
|
-
bottom:
|
|
252
|
-
width:
|
|
253
|
-
height:
|
|
251
|
+
bottom: x.value.height - l - vt.value,
|
|
252
|
+
width: x.value.width - s - a - o,
|
|
253
|
+
height: x.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, f = d.value.end - o, A = l / f, C = $.value.start - o, D = $.value.end - o,
|
|
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, T = Math.max(0, Math.min(f, C)), le = Math.max(0, Math.min(f, D));
|
|
257
257
|
return {
|
|
258
|
-
x: t +
|
|
258
|
+
x: t + T * A,
|
|
259
259
|
y: a,
|
|
260
|
-
width: (le -
|
|
260
|
+
width: (le - T) * A,
|
|
261
261
|
height: s,
|
|
262
262
|
fill: e.value.style.zoom.preview.fill,
|
|
263
263
|
stroke: e.value.style.zoom.preview.stroke,
|
|
@@ -271,16 +271,16 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
271
271
|
animation: "none !important"
|
|
272
272
|
}
|
|
273
273
|
};
|
|
274
|
-
}),
|
|
274
|
+
}), L = y(() => w.value.length), d = v({
|
|
275
275
|
start: 0,
|
|
276
|
-
end:
|
|
277
|
-
}), $ = v({ start: 0, end:
|
|
276
|
+
end: L.value
|
|
277
|
+
}), $ = v({ start: 0, end: L.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
|
-
let t = Math.max(0, Math.min(d.value.start ?? 0,
|
|
283
|
-
(!Number.isFinite(t) || !Number.isFinite(a) || a <= t) && (t = 0, a =
|
|
282
|
+
let t = Math.max(0, Math.min(d.value.start ?? 0, L.value - 1)), a = Math.max(t + 1, Math.min(d.value.end ?? L.value, L.value));
|
|
283
|
+
(!Number.isFinite(t) || !Number.isFinite(a) || a <= t) && (t = 0, a = L.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,
|
|
@@ -369,7 +369,7 @@ 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 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),
|
|
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), T = o.close > o.open, le = o.volume === l, Rt = o.volume === s;
|
|
373
373
|
return {
|
|
374
374
|
period: o.period,
|
|
375
375
|
open: f,
|
|
@@ -377,7 +377,7 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
377
377
|
low: C,
|
|
378
378
|
close: D,
|
|
379
379
|
volume: o.volume,
|
|
380
|
-
isBullish:
|
|
380
|
+
isBullish: T,
|
|
381
381
|
absoluteIndex: o.absoluteIndex,
|
|
382
382
|
isMaxVolume: le,
|
|
383
383
|
isMinVolume: Rt
|
|
@@ -417,9 +417,9 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
417
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)), E = v([]),
|
|
420
|
+
}))), bl = y(() => F.value.map((t) => t.period)), E = v([]), Ne = v([]);
|
|
421
421
|
let ft = 0;
|
|
422
|
-
|
|
422
|
+
Ae(() => {
|
|
423
423
|
const t = ++ft;
|
|
424
424
|
(async () => {
|
|
425
425
|
const a = await Xt({
|
|
@@ -433,7 +433,7 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
433
433
|
})();
|
|
434
434
|
});
|
|
435
435
|
let gt = 0;
|
|
436
|
-
|
|
436
|
+
Ae(() => {
|
|
437
437
|
const t = ++gt;
|
|
438
438
|
(async () => {
|
|
439
439
|
const a = await Xt({
|
|
@@ -441,9 +441,9 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
441
441
|
maxDatapoints: w.value.length,
|
|
442
442
|
formatter: e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter,
|
|
443
443
|
start: 0,
|
|
444
|
-
end:
|
|
444
|
+
end: L.value
|
|
445
445
|
});
|
|
446
|
-
t === gt && (
|
|
446
|
+
t === gt && (Ne.value = a);
|
|
447
447
|
})();
|
|
448
448
|
});
|
|
449
449
|
const xl = y(() => {
|
|
@@ -451,7 +451,7 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
451
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
|
+
Ae(() => {
|
|
455
455
|
const t = ++xt, a = e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter;
|
|
456
456
|
(async () => {
|
|
457
457
|
const l = await qt(a.locale).catch(() => qt("en"));
|
|
@@ -474,8 +474,8 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
474
474
|
}))), wl = y(() => (w.value.map((a) => a[0]) || []).map((a, l) => ({
|
|
475
475
|
text: kt.value(l, e.value.style.zoom.timeFormat),
|
|
476
476
|
absoluteIndex: l
|
|
477
|
-
}))),
|
|
478
|
-
const t = e.value.style.layout.grid.xAxis.dataLabels, a = E.value || [], l =
|
|
477
|
+
}))), Ee = y(() => {
|
|
478
|
+
const t = e.value.style.layout.grid.xAxis.dataLabels, a = E.value || [], l = Ne.value || [], s = d.value.start ?? 0, o = P.value, u = L.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,
|
|
@@ -492,7 +492,7 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
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]
|
|
495
|
-
}),
|
|
495
|
+
}), ke = v(null);
|
|
496
496
|
function Ct(t, a) {
|
|
497
497
|
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: a, seriesIndex: t + d.value.start });
|
|
498
498
|
}
|
|
@@ -508,7 +508,7 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
508
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 }), P.value = t, U.value = t, re.value = l,
|
|
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, ke.value = {
|
|
512
512
|
datapoint: a,
|
|
513
513
|
seriesIndex: t,
|
|
514
514
|
series: g.value,
|
|
@@ -521,7 +521,7 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
521
521
|
series: g.value,
|
|
522
522
|
config: e.value
|
|
523
523
|
})))
|
|
524
|
-
|
|
524
|
+
Le.value = s({
|
|
525
525
|
seriesIndex: t,
|
|
526
526
|
datapoint: a,
|
|
527
527
|
series: g.value,
|
|
@@ -529,9 +529,9 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
529
529
|
});
|
|
530
530
|
else if (e.value.style.tooltip.show) {
|
|
531
531
|
let o = "";
|
|
532
|
-
const { period: u, open: f, high: A, low: C, close: D, volume:
|
|
532
|
+
const { period: u, open: f, high: A, low: C, close: D, volume: T, 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_${
|
|
534
|
+
fill="${e.value.style.layout.candle.gradient.show ? le ? `url(#bullish_gradient_${z.value})` : `url(#bearish_gradient_${z.value})` : le ? e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.colors.bearish}"/></svg>${ql}</div>`, o += `${Xl} : <b>${isNaN(T) ? "-" : Number(T.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
535
|
const He = R({
|
|
536
536
|
p: e.value.style.tooltip.prefix,
|
|
537
537
|
v: f.value,
|
|
@@ -573,7 +573,7 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
573
573
|
<g>
|
|
574
574
|
</svg>
|
|
575
575
|
<div>
|
|
576
|
-
` : (o += `<div>${Vl}: <b>${He}</b></div>`, o += `<div>${Wl}: <b>${Pt}</b></div>`, o += `<div>${Ul}: <b>${Ot}</b></div>`, o += `<div>${Hl}: <b>${Xe}</b></div>`), o += "</div>",
|
|
576
|
+
` : (o += `<div>${Vl}: <b>${He}</b></div>`, o += `<div>${Wl}: <b>${Pt}</b></div>`, o += `<div>${Ul}: <b>${Ot}</b></div>`, o += `<div>${Hl}: <b>${Xe}</b></div>`), o += "</div>", Le.value = `<div style="text-align:right">${o}</div>`;
|
|
577
577
|
}
|
|
578
578
|
se.value = !0;
|
|
579
579
|
}
|
|
@@ -587,26 +587,26 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
587
587
|
de.value && cancelAnimationFrame(de.value);
|
|
588
588
|
});
|
|
589
589
|
async function $t() {
|
|
590
|
-
|
|
591
|
-
await Al(),
|
|
590
|
+
Ce(), await je(), de.value && cancelAnimationFrame(de.value), de.value = requestAnimationFrame(async () => {
|
|
591
|
+
await Al(), Ce();
|
|
592
592
|
});
|
|
593
593
|
}
|
|
594
|
-
const ce = v(!1), _t = v(!1),
|
|
595
|
-
function
|
|
594
|
+
const ce = v(!1), _t = v(!1), we = v(!1);
|
|
595
|
+
function Ce() {
|
|
596
596
|
if (!ce.value) {
|
|
597
597
|
ce.value = !0;
|
|
598
598
|
try {
|
|
599
|
-
const { startIndex: t, endIndex: a } = e.value.style.zoom, l =
|
|
600
|
-
|
|
599
|
+
const { startIndex: t, endIndex: a } = e.value.style.zoom, l = L.value, s = t ?? 0, o = a != null ? Math.min(St(a + 1), l) : l;
|
|
600
|
+
we.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
|
+
we.value = !1;
|
|
604
604
|
}), ce.value = !1;
|
|
605
605
|
}
|
|
606
606
|
}
|
|
607
607
|
}
|
|
608
608
|
function St(t) {
|
|
609
|
-
const a =
|
|
609
|
+
const a = L.value;
|
|
610
610
|
return t > a ? a : t < 0 || t < d.value.start ? e.value.style.zoom.startIndex !== null ? e.value.style.zoom.startIndex + 1 : 1 : t;
|
|
611
611
|
}
|
|
612
612
|
function Ve(t = null) {
|
|
@@ -639,18 +639,18 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
639
639
|
v: o.low.value,
|
|
640
640
|
s: e.value.table.td.suffix,
|
|
641
641
|
r: e.value.table.td.roundingValue
|
|
642
|
-
}),
|
|
642
|
+
}), T = 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_${
|
|
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_${z.value}` : `url(#bearish_gradient_${z.value})` : o.isBullish ? e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.colors.bearish}"/></svg> ${f}`,
|
|
650
650
|
A,
|
|
651
651
|
C,
|
|
652
652
|
D,
|
|
653
|
-
|
|
653
|
+
T,
|
|
654
654
|
`${isNaN(o.volume) ? "-" : o.volume.toLocaleString()}`
|
|
655
655
|
];
|
|
656
656
|
}), a = g.value.map((o, u) => {
|
|
@@ -669,7 +669,7 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
669
669
|
v: o.low.value,
|
|
670
670
|
s: e.value.table.td.suffix,
|
|
671
671
|
r: e.value.table.td.roundingValue
|
|
672
|
-
}),
|
|
672
|
+
}), T = R({
|
|
673
673
|
p: e.value.table.td.prefix,
|
|
674
674
|
v: o.close.value,
|
|
675
675
|
s: e.value.table.td.suffix,
|
|
@@ -680,7 +680,7 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
680
680
|
A,
|
|
681
681
|
C,
|
|
682
682
|
D,
|
|
683
|
-
|
|
683
|
+
T,
|
|
684
684
|
`${isNaN(o.volume) ? "-" : o.volume}`
|
|
685
685
|
];
|
|
686
686
|
}), l = {
|
|
@@ -730,7 +730,7 @@ 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(() => x.value.width), Sl = y(() => x.value.height);
|
|
734
734
|
ma({
|
|
735
735
|
timeLabelsEls: ie,
|
|
736
736
|
timeLabels: E,
|
|
@@ -783,7 +783,7 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
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
785
|
function It() {
|
|
786
|
-
O.value.showTable = !1,
|
|
786
|
+
O.value.showTable = !1, Ie.value && Ie.value.setTableIconState(!1);
|
|
787
787
|
}
|
|
788
788
|
const zl = y(() => e.value.style.backgroundColor), Ll = y(() => e.value.style.title), { exportSvg: Tl, getSvg: Il } = da({
|
|
789
789
|
svg: Y,
|
|
@@ -806,16 +806,16 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
806
806
|
at.value = t;
|
|
807
807
|
}
|
|
808
808
|
function Ml(t) {
|
|
809
|
-
ce.value ||
|
|
809
|
+
ce.value || we.value || t !== d.value.start && (d.value.start = t, $.value.start = t, ge());
|
|
810
810
|
}
|
|
811
811
|
function Rl(t) {
|
|
812
|
-
if (ce.value ||
|
|
812
|
+
if (ce.value || we.value) return;
|
|
813
813
|
const a = St(t);
|
|
814
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;
|
|
818
|
-
|
|
818
|
+
_e("selectX", {
|
|
819
819
|
dataset: a,
|
|
820
820
|
index: l,
|
|
821
821
|
indexLabel: ""
|
|
@@ -833,7 +833,7 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
833
833
|
rt();
|
|
834
834
|
}
|
|
835
835
|
async function Mt() {
|
|
836
|
-
if (
|
|
836
|
+
if (_e("copyAlt", {
|
|
837
837
|
config: e.value,
|
|
838
838
|
dataset: g.value
|
|
839
839
|
}), !e.value.userOptions.callbacks.altCopy) {
|
|
@@ -846,10 +846,10 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
846
846
|
}));
|
|
847
847
|
}
|
|
848
848
|
function Dl() {
|
|
849
|
-
U.value = null,
|
|
849
|
+
U.value = null, Fe.value = !0;
|
|
850
850
|
}
|
|
851
851
|
function Bl() {
|
|
852
|
-
U.value = null, re.value = "pointer", se.value = !1, P.value = void 0,
|
|
852
|
+
U.value = null, re.value = "pointer", se.value = !1, P.value = void 0, Fe.value = !1;
|
|
853
853
|
}
|
|
854
854
|
function Nl(t) {
|
|
855
855
|
if (!Y.value || ye.value || document.activeElement !== Y.value || !g.value.length) return;
|
|
@@ -861,9 +861,9 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
861
861
|
}
|
|
862
862
|
if (s) {
|
|
863
863
|
if (U.value === null) return;
|
|
864
|
-
const
|
|
865
|
-
if (!
|
|
866
|
-
Ct(U.value,
|
|
864
|
+
const T = g.value[U.value];
|
|
865
|
+
if (!T) return;
|
|
866
|
+
Ct(U.value, T);
|
|
867
867
|
return;
|
|
868
868
|
}
|
|
869
869
|
let u = U.value;
|
|
@@ -876,8 +876,8 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
876
876
|
if (!Number.isFinite(t) || !Y.value) return;
|
|
877
877
|
const a = r.value.left + c.value * t + c.value / 2, l = r.value.top + r.value.height / 2, s = Y.value.getBoundingClientRect();
|
|
878
878
|
ot.value = {
|
|
879
|
-
x: s.left + a /
|
|
880
|
-
y: s.top + l /
|
|
879
|
+
x: s.left + a / x.value.width * s.width,
|
|
880
|
+
y: s.top + l / x.value.height * s.height
|
|
881
881
|
};
|
|
882
882
|
}
|
|
883
883
|
const Ue = y(() => {
|
|
@@ -900,19 +900,19 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
900
900
|
ref: W,
|
|
901
901
|
class: X(`vue-data-ui-component vue-ui-candlestick ${Q.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
902
902
|
style: ae(`position:relative;font-family:${e.value.style.fontFamily}; text-align:center;background:${e.value.style.backgroundColor}; ${e.value.responsive ? "height: 100%" : ""}`),
|
|
903
|
-
id: `vue-ui-candlestick_${
|
|
903
|
+
id: `vue-ui-candlestick_${z.value}`,
|
|
904
904
|
onMouseenter: rl,
|
|
905
905
|
onMouseleave: vl
|
|
906
906
|
}, [
|
|
907
907
|
m("div", {
|
|
908
|
-
id: `chart-instructions-${
|
|
908
|
+
id: `chart-instructions-${z.value}`,
|
|
909
909
|
class: "sr-only"
|
|
910
910
|
}, [
|
|
911
911
|
m("p", null, oe(e.value.a11y.translations.keyboardNavigation), 1)
|
|
912
912
|
], 8, Ca),
|
|
913
913
|
Ue.value?.rows?.length ? (i(), G(ba, {
|
|
914
914
|
key: 0,
|
|
915
|
-
uid:
|
|
915
|
+
uid: z.value,
|
|
916
916
|
head: Ue.value.headers,
|
|
917
917
|
body: Ue.value.rows,
|
|
918
918
|
notice: e.value.a11y.translations.tableAvailable,
|
|
@@ -928,22 +928,22 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
928
928
|
onClose: We
|
|
929
929
|
}, {
|
|
930
930
|
"annotator-action-close": k(() => [
|
|
931
|
-
|
|
931
|
+
b(t.$slots, "annotator-action-close", {}, void 0, !0)
|
|
932
932
|
]),
|
|
933
933
|
"annotator-action-color": k(({ color: l }) => [
|
|
934
|
-
|
|
934
|
+
b(t.$slots, "annotator-action-color", _(S({ color: l })), void 0, !0)
|
|
935
935
|
]),
|
|
936
936
|
"annotator-action-draw": k(({ mode: l }) => [
|
|
937
|
-
|
|
937
|
+
b(t.$slots, "annotator-action-draw", _(S({ mode: l })), void 0, !0)
|
|
938
938
|
]),
|
|
939
939
|
"annotator-action-undo": k(({ disabled: l }) => [
|
|
940
|
-
|
|
940
|
+
b(t.$slots, "annotator-action-undo", _(S({ disabled: l })), void 0, !0)
|
|
941
941
|
]),
|
|
942
942
|
"annotator-action-redo": k(({ disabled: l }) => [
|
|
943
|
-
|
|
943
|
+
b(t.$slots, "annotator-action-redo", _(S({ disabled: l })), void 0, !0)
|
|
944
944
|
]),
|
|
945
945
|
"annotator-action-delete": k(({ disabled: l }) => [
|
|
946
|
-
|
|
946
|
+
b(t.$slots, "annotator-action-delete", _(S({ disabled: l })), void 0, !0)
|
|
947
947
|
]),
|
|
948
948
|
_: 3
|
|
949
949
|
}, 8, ["svgRef", "backgroundColor", "color", "active", "isCursorPointer"])) : p("", !0),
|
|
@@ -974,15 +974,15 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
974
974
|
}
|
|
975
975
|
}, null, 8, ["config"]))
|
|
976
976
|
], 512)) : p("", !0),
|
|
977
|
-
e.value.userOptions.show &&
|
|
977
|
+
e.value.userOptions.show && Se.value && (h(ut) || h(Re)) ? (i(), G(h(tl), {
|
|
978
978
|
ref_key: "userOptionsRef",
|
|
979
|
-
ref:
|
|
979
|
+
ref: Ie,
|
|
980
980
|
key: `user_options_${Ye.value}`,
|
|
981
981
|
backgroundColor: e.value.style.backgroundColor,
|
|
982
982
|
color: e.value.style.color,
|
|
983
|
-
isImaging: h(
|
|
984
|
-
isPrinting: h(
|
|
985
|
-
uid:
|
|
983
|
+
isImaging: h(De),
|
|
984
|
+
isPrinting: h(Oe),
|
|
985
|
+
uid: z.value,
|
|
986
986
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.tooltip.show,
|
|
987
987
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
988
988
|
hasImg: e.value.userOptions.buttons.img,
|
|
@@ -1012,76 +1012,76 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
1012
1012
|
onToggleAnnotator: We,
|
|
1013
1013
|
onCopyAlt: Mt,
|
|
1014
1014
|
style: ae({
|
|
1015
|
-
visibility: h(ut) ? h(
|
|
1015
|
+
visibility: h(ut) ? h(Re) ? "visible" : "hidden" : "visible"
|
|
1016
1016
|
})
|
|
1017
1017
|
}, Bt({ _: 2 }, [
|
|
1018
1018
|
t.$slots.menuIcon ? {
|
|
1019
1019
|
name: "menuIcon",
|
|
1020
1020
|
fn: k(({ isOpen: l, color: s }) => [
|
|
1021
|
-
|
|
1021
|
+
b(t.$slots, "menuIcon", _(S({ isOpen: l, color: s })), void 0, !0)
|
|
1022
1022
|
]),
|
|
1023
1023
|
key: "0"
|
|
1024
1024
|
} : void 0,
|
|
1025
1025
|
t.$slots.optionTooltip ? {
|
|
1026
1026
|
name: "optionTooltip",
|
|
1027
1027
|
fn: k(() => [
|
|
1028
|
-
|
|
1028
|
+
b(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
1029
1029
|
]),
|
|
1030
1030
|
key: "1"
|
|
1031
1031
|
} : void 0,
|
|
1032
1032
|
t.$slots.optionPdf ? {
|
|
1033
1033
|
name: "optionPdf",
|
|
1034
1034
|
fn: k(() => [
|
|
1035
|
-
|
|
1035
|
+
b(t.$slots, "optionPdf", {}, void 0, !0)
|
|
1036
1036
|
]),
|
|
1037
1037
|
key: "2"
|
|
1038
1038
|
} : void 0,
|
|
1039
1039
|
t.$slots.optionCsv ? {
|
|
1040
1040
|
name: "optionCsv",
|
|
1041
1041
|
fn: k(() => [
|
|
1042
|
-
|
|
1042
|
+
b(t.$slots, "optionCsv", {}, void 0, !0)
|
|
1043
1043
|
]),
|
|
1044
1044
|
key: "3"
|
|
1045
1045
|
} : void 0,
|
|
1046
1046
|
t.$slots.optionImg ? {
|
|
1047
1047
|
name: "optionImg",
|
|
1048
1048
|
fn: k(() => [
|
|
1049
|
-
|
|
1049
|
+
b(t.$slots, "optionImg", {}, void 0, !0)
|
|
1050
1050
|
]),
|
|
1051
1051
|
key: "4"
|
|
1052
1052
|
} : void 0,
|
|
1053
1053
|
t.$slots.optionSvg ? {
|
|
1054
1054
|
name: "optionSvg",
|
|
1055
1055
|
fn: k(() => [
|
|
1056
|
-
|
|
1056
|
+
b(t.$slots, "optionSvg", {}, void 0, !0)
|
|
1057
1057
|
]),
|
|
1058
1058
|
key: "5"
|
|
1059
1059
|
} : void 0,
|
|
1060
1060
|
t.$slots.optionTable ? {
|
|
1061
1061
|
name: "optionTable",
|
|
1062
1062
|
fn: k(() => [
|
|
1063
|
-
|
|
1063
|
+
b(t.$slots, "optionTable", {}, void 0, !0)
|
|
1064
1064
|
]),
|
|
1065
1065
|
key: "6"
|
|
1066
1066
|
} : void 0,
|
|
1067
1067
|
t.$slots.optionFullscreen ? {
|
|
1068
1068
|
name: "optionFullscreen",
|
|
1069
1069
|
fn: k(({ toggleFullscreen: l, isFullscreen: s }) => [
|
|
1070
|
-
|
|
1070
|
+
b(t.$slots, "optionFullscreen", _(S({ toggleFullscreen: l, isFullscreen: s })), void 0, !0)
|
|
1071
1071
|
]),
|
|
1072
1072
|
key: "7"
|
|
1073
1073
|
} : void 0,
|
|
1074
1074
|
t.$slots.optionAnnotator ? {
|
|
1075
1075
|
name: "optionAnnotator",
|
|
1076
1076
|
fn: k(({ toggleAnnotator: l, isAnnotator: s }) => [
|
|
1077
|
-
|
|
1077
|
+
b(t.$slots, "optionAnnotator", _(S({ toggleAnnotator: l, isAnnotator: s })), void 0, !0)
|
|
1078
1078
|
]),
|
|
1079
1079
|
key: "8"
|
|
1080
1080
|
} : void 0,
|
|
1081
1081
|
t.$slots.optionAltCopy ? {
|
|
1082
1082
|
name: "optionAltCopy",
|
|
1083
1083
|
fn: k(({ altCopy: l }) => [
|
|
1084
|
-
|
|
1084
|
+
b(t.$slots, "optionAltCopy", _(S({ altCopy: l })), void 0, !0)
|
|
1085
1085
|
]),
|
|
1086
1086
|
key: "9"
|
|
1087
1087
|
} : void 0
|
|
@@ -1091,9 +1091,9 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
1091
1091
|
ref_key: "svgRef",
|
|
1092
1092
|
ref: Y,
|
|
1093
1093
|
xmlns: h(Zl),
|
|
1094
|
-
"aria-describedby": `chart-instructions-${
|
|
1094
|
+
"aria-describedby": `chart-instructions-${z.value}`,
|
|
1095
1095
|
class: X({ "vue-data-ui-fullscreen--on": Q.value, "vue-data-ui-fulscreen--off": !Q.value }),
|
|
1096
|
-
viewBox: `0 0 ${
|
|
1096
|
+
viewBox: `0 0 ${x.value.width <= 0 ? 10 : x.value.width} ${x.value.height <= 0 ? 10 : x.value.height}`,
|
|
1097
1097
|
style: ae(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.color}`),
|
|
1098
1098
|
tabindex: "0",
|
|
1099
1099
|
onFocus: Dl,
|
|
@@ -1111,12 +1111,12 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
1111
1111
|
pointerEvents: "none"
|
|
1112
1112
|
}
|
|
1113
1113
|
}, [
|
|
1114
|
-
|
|
1114
|
+
b(t.$slots, "chart-background", {}, void 0, !0)
|
|
1115
1115
|
], 8, _a)) : p("", !0),
|
|
1116
1116
|
g.value.length > 0 ? (i(), n("g", Sa, [
|
|
1117
1117
|
m("defs", null, [
|
|
1118
1118
|
m("linearGradient", {
|
|
1119
|
-
id: `bearish_gradient_${
|
|
1119
|
+
id: `bearish_gradient_${z.value}`,
|
|
1120
1120
|
x2: "0%",
|
|
1121
1121
|
y2: "100%"
|
|
1122
1122
|
}, [
|
|
@@ -1126,15 +1126,15 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
1126
1126
|
}, null, 8, La),
|
|
1127
1127
|
m("stop", {
|
|
1128
1128
|
offset: "50%",
|
|
1129
|
-
"stop-color": `${h(
|
|
1129
|
+
"stop-color": `${h($e)(e.value.style.layout.candle.colors.bearish, 0.02)}DE`
|
|
1130
1130
|
}, null, 8, Ta),
|
|
1131
1131
|
m("stop", {
|
|
1132
1132
|
offset: "100%",
|
|
1133
|
-
"stop-color": `${h(
|
|
1133
|
+
"stop-color": `${h($e)(e.value.style.layout.candle.colors.bearish, 0.05)}66`
|
|
1134
1134
|
}, null, 8, Ia)
|
|
1135
1135
|
], 8, za),
|
|
1136
1136
|
m("linearGradient", {
|
|
1137
|
-
id: `bullish_gradient_${
|
|
1137
|
+
id: `bullish_gradient_${z.value}`,
|
|
1138
1138
|
x2: "0%",
|
|
1139
1139
|
y2: "100%"
|
|
1140
1140
|
}, [
|
|
@@ -1144,11 +1144,11 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
1144
1144
|
}, null, 8, Ma),
|
|
1145
1145
|
m("stop", {
|
|
1146
1146
|
offset: "50%",
|
|
1147
|
-
"stop-color": `${h(
|
|
1147
|
+
"stop-color": `${h($e)(e.value.style.layout.candle.colors.bullish, 0.02)}DE`
|
|
1148
1148
|
}, null, 8, Ra),
|
|
1149
1149
|
m("stop", {
|
|
1150
1150
|
offset: "100%",
|
|
1151
|
-
"stop-color": `${h(
|
|
1151
|
+
"stop-color": `${h($e)(e.value.style.layout.candle.colors.bullish, 0.05)}66`
|
|
1152
1152
|
}, null, 8, Pa)
|
|
1153
1153
|
], 8, Fa)
|
|
1154
1154
|
]),
|
|
@@ -1181,7 +1181,7 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
1181
1181
|
"stroke-dasharray": e.value.style.layout.grid.horizontalLines.strokeDasharray,
|
|
1182
1182
|
"stroke-linecap": "round"
|
|
1183
1183
|
}, null, 8, Na))), 256)) : p("", !0),
|
|
1184
|
-
e.value.style.layout.grid.verticalLines.show ? (i(!0), n(M, { key: 1 }, B(
|
|
1184
|
+
e.value.style.layout.grid.verticalLines.show ? (i(!0), n(M, { key: 1 }, B(Ee.value, (l, s) => (i(), n("g", null, [
|
|
1185
1185
|
l.text ? (i(), n("line", {
|
|
1186
1186
|
key: 0,
|
|
1187
1187
|
x1: r.value.left + c.value * s + c.value / 2,
|
|
@@ -1194,7 +1194,7 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
1194
1194
|
"stroke-linecap": "round"
|
|
1195
1195
|
}, null, 8, Ea)) : p("", !0)
|
|
1196
1196
|
]))), 256)) : p("", !0),
|
|
1197
|
-
e.value.style.layout.grid.xAxis.ticks.show ? (i(!0), n(M, { key: 2 }, B(
|
|
1197
|
+
e.value.style.layout.grid.xAxis.ticks.show ? (i(!0), n(M, { key: 2 }, B(Ee.value, (l, s) => (i(), n("g", null, [
|
|
1198
1198
|
l.text ? (i(), n("line", {
|
|
1199
1199
|
key: 0,
|
|
1200
1200
|
x1: r.value.left + c.value * s + c.value / 2,
|
|
@@ -1210,7 +1210,7 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
1210
1210
|
e.value.style.layout.grid.yAxis.dataLabels.show ? (i(), n("g", {
|
|
1211
1211
|
key: 1,
|
|
1212
1212
|
ref_key: "scaleLabels",
|
|
1213
|
-
ref:
|
|
1213
|
+
ref: Te
|
|
1214
1214
|
}, [
|
|
1215
1215
|
(i(!0), n(M, null, B(pt.value, (l, s) => (i(), n("g", null, [
|
|
1216
1216
|
l.value >= N.value.min && l.value <= N.value.max ? (i(), n("line", {
|
|
@@ -1226,8 +1226,8 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
1226
1226
|
l.value >= N.value.min && l.value <= N.value.max ? (i(), n("text", {
|
|
1227
1227
|
key: 1,
|
|
1228
1228
|
x: r.value.left - 8 + e.value.style.layout.grid.yAxis.dataLabels.offsetX,
|
|
1229
|
-
y: l.y +
|
|
1230
|
-
"font-size":
|
|
1229
|
+
y: l.y + x.value.yAxisFontSize / 3,
|
|
1230
|
+
"font-size": x.value.yAxisFontSize,
|
|
1231
1231
|
"text-anchor": "end",
|
|
1232
1232
|
fill: e.value.style.layout.grid.yAxis.dataLabels.color,
|
|
1233
1233
|
"font-weight": e.value.style.layout.grid.yAxis.dataLabels.bold ? "bold" : "normal"
|
|
@@ -1247,9 +1247,9 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
1247
1247
|
(i(!0), n(M, null, B(bl.value, (l, s) => (i(), n("g", null, [
|
|
1248
1248
|
m("text", {
|
|
1249
1249
|
class: "vue-data-ui-time-label",
|
|
1250
|
-
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 + x.value.xAxisFontSize * 1.5}), rotate(${e.value.style.layout.grid.xAxis.dataLabels.rotation})`,
|
|
1251
1251
|
"text-anchor": e.value.style.layout.grid.xAxis.dataLabels.rotation > 0 ? "start" : e.value.style.layout.grid.xAxis.dataLabels.rotation < 0 ? "end" : "middle",
|
|
1252
|
-
"font-size":
|
|
1252
|
+
"font-size": x.value.xAxisFontSize,
|
|
1253
1253
|
fill: e.value.style.layout.grid.xAxis.dataLabels.color,
|
|
1254
1254
|
"font-weight": e.value.style.layout.grid.xAxis.dataLabels.bold ? "bold" : "normal"
|
|
1255
1255
|
}, oe(l), 9, Ha)
|
|
@@ -1260,12 +1260,12 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
1260
1260
|
ref_key: "timeLabelsEls",
|
|
1261
1261
|
ref: ie
|
|
1262
1262
|
}, [
|
|
1263
|
-
(i(!0), n(M, null, B(
|
|
1263
|
+
(i(!0), n(M, null, B(Ee.value, (l, s) => (i(), n("g", null, [
|
|
1264
1264
|
m("text", {
|
|
1265
1265
|
class: "vue-data-ui-time-label",
|
|
1266
|
-
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 + x.value.xAxisFontSize * 1.5}), rotate(${e.value.style.layout.grid.xAxis.dataLabels.rotation})`,
|
|
1267
1267
|
"text-anchor": e.value.style.layout.grid.xAxis.dataLabels.rotation > 0 ? "start" : e.value.style.layout.grid.xAxis.dataLabels.rotation < 0 ? "end" : "middle",
|
|
1268
|
-
"font-size":
|
|
1268
|
+
"font-size": x.value.xAxisFontSize,
|
|
1269
1269
|
fill: e.value.style.layout.grid.xAxis.dataLabels.color,
|
|
1270
1270
|
"font-weight": e.value.style.layout.grid.xAxis.dataLabels.bold ? "bold" : "normal"
|
|
1271
1271
|
}, oe(l?.text ?? ""), 9, Xa)
|
|
@@ -1340,7 +1340,7 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
1340
1340
|
y: l.isBullish ? l.close.y : l.open.y,
|
|
1341
1341
|
height: Math.abs(l.close.y - l.open.y) <= 0 ? 1e-4 : Math.abs(l.close.y - l.open.y),
|
|
1342
1342
|
width: c.value * e.value.style.layout.candle.widthRatio <= 0 ? 1e-4 : c.value * e.value.style.layout.candle.widthRatio,
|
|
1343
|
-
fill: l.isBullish ? e.value.style.layout.candle.gradient.show ? `url(#bullish_gradient_${
|
|
1343
|
+
fill: l.isBullish ? e.value.style.layout.candle.gradient.show ? `url(#bullish_gradient_${z.value})` : e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.gradient.show ? `url(#bearish_gradient_${z.value})` : e.value.style.layout.candle.colors.bearish,
|
|
1344
1344
|
rx: e.value.style.layout.candle.borderRadius,
|
|
1345
1345
|
stroke: e.value.style.layout.candle.stroke,
|
|
1346
1346
|
"stroke-width": e.value.style.layout.candle.strokeWidth,
|
|
@@ -1374,24 +1374,24 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
1374
1374
|
"data-start": d.value.start,
|
|
1375
1375
|
"data-end": d.value.end
|
|
1376
1376
|
}), null, 16, ao)) : p("", !0),
|
|
1377
|
-
|
|
1377
|
+
b(t.$slots, "svg", {
|
|
1378
1378
|
svg: {
|
|
1379
|
-
...
|
|
1379
|
+
...x.value,
|
|
1380
1380
|
data: g.value,
|
|
1381
1381
|
drawingArea: r.value,
|
|
1382
|
-
isPrintingImg: h(
|
|
1382
|
+
isPrintingImg: h(Oe) | h(De) | pe.value,
|
|
1383
1383
|
isPrintingSvg: fe.value
|
|
1384
1384
|
}
|
|
1385
1385
|
}, void 0, !0)
|
|
1386
1386
|
], 46, $a)),
|
|
1387
1387
|
t.$slots.hint ? (i(), n("div", oo, [
|
|
1388
|
-
|
|
1388
|
+
b(t.$slots, "hint", _(S({ hint: e.value.a11y.translations.keyboardNavigation, isVisible: Fe.value })), void 0, !0)
|
|
1389
1389
|
])) : p("", !0)
|
|
1390
1390
|
]),
|
|
1391
1391
|
t.$slots.watermark ? (i(), n("div", so, [
|
|
1392
|
-
|
|
1392
|
+
b(t.$slots, "watermark", _(S({ isPrinting: h(Oe) || h(De) || pe.value || fe.value })), void 0, !0)
|
|
1393
1393
|
])) : p("", !0),
|
|
1394
|
-
e.value.style.zoom.show &&
|
|
1394
|
+
e.value.style.zoom.show && L.value > 6 && Se.value && _t.value ? (i(), G(xa, {
|
|
1395
1395
|
key: 6,
|
|
1396
1396
|
ref_key: "chartSlicer",
|
|
1397
1397
|
ref: ue,
|
|
@@ -1411,7 +1411,7 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
1411
1411
|
isPreview: dt.value,
|
|
1412
1412
|
labelLeft: wt.value.start || "",
|
|
1413
1413
|
labelRight: wt.value.end || "",
|
|
1414
|
-
max:
|
|
1414
|
+
max: L.value,
|
|
1415
1415
|
min: 0,
|
|
1416
1416
|
minimap: e.value.style.zoom.minimap.show ? h(w).map((l) => l[2]) : [],
|
|
1417
1417
|
minimapCompact: e.value.style.zoom.minimap.compact,
|
|
@@ -1423,14 +1423,14 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
1423
1423
|
minimapSelectedIndex: P.value,
|
|
1424
1424
|
minimapSelectionRadius: 1,
|
|
1425
1425
|
preciseLabels: wl.value,
|
|
1426
|
-
refreshEndPoint: e.value.style.zoom.endIndex !== null ? e.value.style.zoom.endIndex + 1 :
|
|
1426
|
+
refreshEndPoint: e.value.style.zoom.endIndex !== null ? e.value.style.zoom.endIndex + 1 : L.value,
|
|
1427
1427
|
refreshStartPoint: e.value.style.zoom.startIndex !== null ? e.value.style.zoom.startIndex : 0,
|
|
1428
1428
|
selectColor: e.value.style.zoom.highlightColor,
|
|
1429
1429
|
selectedSeries: h(w),
|
|
1430
1430
|
smoothMinimap: !1,
|
|
1431
1431
|
start: d.value.start,
|
|
1432
1432
|
textColor: e.value.style.color,
|
|
1433
|
-
timeLabels:
|
|
1433
|
+
timeLabels: Ne.value,
|
|
1434
1434
|
usePreciseLabels: e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable && !e.value.style.zoom.useDefaultFormat,
|
|
1435
1435
|
useResetSlot: e.value.style.zoom.useResetSlot,
|
|
1436
1436
|
valueEnd: d.value.end,
|
|
@@ -1454,7 +1454,7 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
1454
1454
|
onFutureStart: a[1] || (a[1] = (l) => ct("start", l))
|
|
1455
1455
|
}, {
|
|
1456
1456
|
"reset-action": k(({ reset: l }) => [
|
|
1457
|
-
|
|
1457
|
+
b(t.$slots, "reset-action", _(S({ reset: l })), void 0, !0)
|
|
1458
1458
|
]),
|
|
1459
1459
|
slotMap: k(({ height: l, unitW: s }) => [
|
|
1460
1460
|
(i(!0), n(M, null, B(pl.value({ minimapH: l, unitW: s }), (o, u) => (i(), n("g", null, [
|
|
@@ -1482,7 +1482,7 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
1482
1482
|
ref_key: "chartLegend",
|
|
1483
1483
|
ref: Qe
|
|
1484
1484
|
}, [
|
|
1485
|
-
|
|
1485
|
+
b(t.$slots, "legend", { legend: g.value }, void 0, !0)
|
|
1486
1486
|
], 512),
|
|
1487
1487
|
t.$slots.source ? (i(), n("div", {
|
|
1488
1488
|
key: 7,
|
|
@@ -1490,7 +1490,7 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
1490
1490
|
ref: Ze,
|
|
1491
1491
|
dir: "auto"
|
|
1492
1492
|
}, [
|
|
1493
|
-
|
|
1493
|
+
b(t.$slots, "source", {}, void 0, !0)
|
|
1494
1494
|
], 512)) : p("", !0),
|
|
1495
1495
|
Ge(h(Jt), {
|
|
1496
1496
|
teleportTo: e.value.style.tooltip.teleportTo,
|
|
@@ -1505,7 +1505,7 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
1505
1505
|
position: e.value.style.tooltip.position,
|
|
1506
1506
|
offsetY: e.value.style.tooltip.offsetY,
|
|
1507
1507
|
parent: W.value,
|
|
1508
|
-
content:
|
|
1508
|
+
content: Le.value,
|
|
1509
1509
|
isFullscreen: Q.value,
|
|
1510
1510
|
isCustom: e.value.style.tooltip.customFormat && typeof e.value.style.tooltip.customFormat == "function",
|
|
1511
1511
|
smooth: e.value.style.tooltip.smooth,
|
|
@@ -1516,14 +1516,17 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
1516
1516
|
a11yPosition: ot.value
|
|
1517
1517
|
}, {
|
|
1518
1518
|
"tooltip-before": k(() => [
|
|
1519
|
-
|
|
1519
|
+
b(t.$slots, "tooltip-before", _(S({ ...ke.value })), void 0, !0)
|
|
1520
|
+
]),
|
|
1521
|
+
tooltip: k(() => [
|
|
1522
|
+
b(t.$slots, "tooltip", _(S({ ...ke.value })), void 0, !0)
|
|
1520
1523
|
]),
|
|
1521
1524
|
"tooltip-after": k(() => [
|
|
1522
|
-
|
|
1525
|
+
b(t.$slots, "tooltip-after", _(S({ ...ke.value })), void 0, !0)
|
|
1523
1526
|
]),
|
|
1524
1527
|
_: 3
|
|
1525
1528
|
}, 8, ["teleportTo", "show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold", "isA11yMode", "a11yPosition"]),
|
|
1526
|
-
|
|
1529
|
+
Se.value && e.value.userOptions.buttons.table ? (i(), G(Kl(he.value.component), Nt({ key: 8 }, he.value.props, {
|
|
1527
1530
|
ref_key: "tableUnit",
|
|
1528
1531
|
ref: ne,
|
|
1529
1532
|
onClose: It
|
|
@@ -1576,12 +1579,12 @@ const wa = ["id"], Ca = ["id"], Aa = { style: { position: "relative" } }, $a = [
|
|
|
1576
1579
|
key: "1"
|
|
1577
1580
|
} : void 0
|
|
1578
1581
|
]), 1040)) : p("", !0),
|
|
1579
|
-
|
|
1582
|
+
b(t.$slots, "skeleton", {}, () => [
|
|
1580
1583
|
h(H) ? (i(), G(va, { key: 0 })) : p("", !0)
|
|
1581
1584
|
], !0)
|
|
1582
1585
|
], 46, wa));
|
|
1583
1586
|
}
|
|
1584
|
-
}, To = /* @__PURE__ */ ka(ro, [["__scopeId", "data-v-
|
|
1587
|
+
}, To = /* @__PURE__ */ ka(ro, [["__scopeId", "data-v-94de1402"]]);
|
|
1585
1588
|
export {
|
|
1586
1589
|
To as default
|
|
1587
1590
|
};
|