vue-data-ui 3.5.0 → 3.5.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/README.md +26 -0
- package/dist/{ColorPicker-J5wOPCeB.js → ColorPicker-ChuwChMo.js} +58 -56
- package/dist/{NonSvgPenAndPaper-C7TRn0_3.js → NonSvgPenAndPaper-DVgKKLIf.js} +1 -1
- package/dist/{PackageVersion-Cyx_s25h.js → PackageVersion-DQvyATVa.js} +1 -1
- package/dist/PenAndPaper-SZQIAgkg.js +388 -0
- package/dist/{Title-l36lOBMx.js → Title-isbiM8i8.js} +1 -1
- 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-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-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-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-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 +17 -8
- package/dist/{useNestedProp-BjZe1Y85.js → useNestedProp-DjGXw6S9.js} +22 -8
- package/dist/{vue-data-ui-DxgRqCAo.js → vue-data-ui-B_RxfmEm.js} +63 -63
- package/dist/vue-data-ui.js +64 -64
- package/dist/{vue-ui-3d-bar-DmNJp8SY.js → vue-ui-3d-bar-CMNYyVa2.js} +454 -434
- package/dist/{vue-ui-accordion-CZ0thhxa.js → vue-ui-accordion-CqhVCfc2.js} +1 -1
- package/dist/{vue-ui-age-pyramid-CPAP3sNY.js → vue-ui-age-pyramid-Vqa9iYXE.js} +180 -160
- package/dist/{vue-ui-annotator-BylDgUVb.js → vue-ui-annotator-nNv10fBm.js} +3 -3
- package/dist/{vue-ui-bullet-Ce6uvCQJ.js → vue-ui-bullet-BWEBeYV5.js} +190 -170
- package/dist/{vue-ui-candlestick-DewevWV_.js → vue-ui-candlestick-BoLzL0g1.js} +201 -181
- package/dist/{vue-ui-carousel-table-Dv1CDfE5.js → vue-ui-carousel-table-Bi6wvUUU.js} +2 -2
- package/dist/{vue-ui-chestnut-D9sdFZ4E.js → vue-ui-chestnut-BGz1TLXG.js} +375 -355
- package/dist/vue-ui-chord-CebhS7ln.js +1153 -0
- package/dist/{vue-ui-circle-pack-Be74QB_0.js → vue-ui-circle-pack-7PJVyKjp.js} +289 -269
- package/dist/{vue-ui-cursor-ik59bfC4.js → vue-ui-cursor-qYLAwvzn.js} +1 -1
- package/dist/vue-ui-dashboard-DcmMvhgM.js +432 -0
- package/dist/{vue-ui-digits-ByNNcWXi.js → vue-ui-digits-DyE8eU1m.js} +1 -1
- package/dist/{vue-ui-donut-BRGFcgxS.js → vue-ui-donut-CxZcJFTo.js} +462 -442
- package/dist/{vue-ui-donut-evolution-DJ0C-7jH.js → vue-ui-donut-evolution-BVYL-BUJ.js} +293 -273
- package/dist/{vue-ui-dumbbell-iQJ0BUhm.js → vue-ui-dumbbell-QxZn86A3.js} +210 -190
- package/dist/{vue-ui-flow-CTYFoib3.js → vue-ui-flow-DEI5LRch.js} +339 -319
- package/dist/{vue-ui-funnel-CG55Xcdy.js → vue-ui-funnel-B_A5orFg.js} +218 -198
- package/dist/{vue-ui-galaxy-BQrxjKZJ.js → vue-ui-galaxy-CUoDRr-O.js} +201 -181
- package/dist/{vue-ui-gauge-Tc-0NI0Y.js → vue-ui-gauge-46tSRZN5.js} +311 -291
- package/dist/{vue-ui-gizmo-P8h-gnLd.js → vue-ui-gizmo-BOgbsXao.js} +2 -2
- package/dist/{vue-ui-heatmap-BZimPzsL.js → vue-ui-heatmap-DKKjl1A2.js} +303 -283
- package/dist/{vue-ui-history-plot-BVzbuqYY.js → vue-ui-history-plot-C6p_aThr.js} +229 -209
- package/dist/{vue-ui-kpi-BGGff8LM.js → vue-ui-kpi-B1yJ83aF.js} +2 -2
- package/dist/{vue-ui-mini-loader-CSF-7TJL.js → vue-ui-mini-loader-BudcNBg-.js} +1 -1
- package/dist/{vue-ui-molecule-BALqwB8c.js → vue-ui-molecule-L90GnHee.js} +156 -136
- package/dist/{vue-ui-mood-radar-QJ5nlZby.js → vue-ui-mood-radar-Dhigm5rw.js} +266 -246
- package/dist/{vue-ui-nested-donuts-CmUabkkQ.js → vue-ui-nested-donuts-D0MCLs5n.js} +506 -486
- package/dist/{vue-ui-onion-DAOCf3f8.js → vue-ui-onion-B7yPJ3gL.js} +220 -200
- package/dist/{vue-ui-parallel-coordinate-plot-D8jTuFjq.js → vue-ui-parallel-coordinate-plot-DY21ivNe.js} +235 -215
- package/dist/{vue-ui-quadrant-CO52mSRY.js → vue-ui-quadrant-b0vMRaq-.js} +463 -443
- package/dist/{vue-ui-quick-chart-DEaVSldE.js → vue-ui-quick-chart-VK2EN7sh.js} +288 -268
- package/dist/{vue-ui-radar-C5V4hhbW.js → vue-ui-radar-B5Vkoz9M.js} +331 -311
- package/dist/{vue-ui-rating-CiMoFM_c.js → vue-ui-rating-BH4DW1ZY.js} +1 -1
- package/dist/{vue-ui-relation-circle-CbMM0Jka.js → vue-ui-relation-circle-XHbE-ZUX.js} +228 -208
- package/dist/{vue-ui-ridgeline-CXCIRDq6.js → vue-ui-ridgeline-CAMNq-p_.js} +242 -222
- package/dist/{vue-ui-rings-BpUcyqo7.js → vue-ui-rings-ImGOqm_J.js} +189 -169
- package/dist/{vue-ui-scatter--Dxe-hfO.js → vue-ui-scatter-CterNJYe.js} +275 -255
- package/dist/{vue-ui-skeleton-BWq-VDzg.js → vue-ui-skeleton-CykXHWj-.js} +2 -2
- package/dist/{vue-ui-smiley-sGFRbn31.js → vue-ui-smiley-DnGm6qrK.js} +1 -1
- package/dist/{vue-ui-spark-trend-T4J_YOa_.js → vue-ui-spark-trend-N1AsNQJA.js} +2 -2
- package/dist/{vue-ui-sparkbar-DnKP55Vu.js → vue-ui-sparkbar-Bvsi5DTT.js} +2 -2
- package/dist/{vue-ui-sparkgauge-BDQLP-zi.js → vue-ui-sparkgauge-DyJmWCWT.js} +2 -2
- package/dist/{vue-ui-sparkhistogram-Dm7QXrA-.js → vue-ui-sparkhistogram-5eKrkmSb.js} +143 -140
- package/dist/{vue-ui-sparkline-tXGDLHRy.js → vue-ui-sparkline-ChKAzlVq.js} +2 -2
- package/dist/{vue-ui-sparkstackbar-M53Nt07M.js → vue-ui-sparkstackbar-BXNy6nuw.js} +2 -2
- package/dist/vue-ui-stackbar-1IwvUYBO.js +1827 -0
- package/dist/{vue-ui-strip-plot-BX9i3wMn.js → vue-ui-strip-plot-B1wGxP8-.js} +245 -225
- package/dist/{vue-ui-table-7r02N9R9.js → vue-ui-table-DSsIrT4L.js} +3 -3
- package/dist/{vue-ui-table-heatmap-BqCEBoUf.js → vue-ui-table-heatmap-DXFHy7-E.js} +1 -1
- package/dist/{vue-ui-table-sparkline-DZaAh10E.js → vue-ui-table-sparkline-DpqY_4ay.js} +2 -2
- package/dist/vue-ui-thermometer-CMKvSA8p.js +584 -0
- package/dist/{vue-ui-timer-Ds-MJoW2.js → vue-ui-timer-BpdCY_wg.js} +3 -3
- package/dist/vue-ui-tiremarks-CNipzVli.js +450 -0
- package/dist/{vue-ui-treemap-BEvl8hiw.js → vue-ui-treemap-DPE8SY0_.js} +453 -433
- package/dist/{vue-ui-vertical-bar-D8dtM8sw.js → vue-ui-vertical-bar-ZU1GCbX0.js} +323 -303
- package/dist/{vue-ui-waffle-B3q-2SCR.js → vue-ui-waffle-z7nuSuSV.js} +219 -199
- package/dist/vue-ui-wheel-DLRoRjeM.js +663 -0
- package/dist/{vue-ui-word-cloud-ChT7uLbN.js → vue-ui-word-cloud-D2r5E3pP.js} +248 -228
- package/dist/{vue-ui-world-CdP4g_3_.js → vue-ui-world-goXYnTyM.js} +287 -267
- package/dist/{vue-ui-xy-B68qQ-gX.js → vue-ui-xy-NDDbNbds.js} +389 -369
- package/dist/{vue-ui-xy-canvas-DDngEA1s.js → vue-ui-xy-canvas-2a6NlQe3.js} +4 -4
- package/package.json +4 -4
- package/dist/PenAndPaper-DSvu9dwa.js +0 -373
- package/dist/vue-ui-chord-BG4dxKNA.js +0 -1133
- package/dist/vue-ui-dashboard-C4BLwHey.js +0 -412
- package/dist/vue-ui-stackbar-CkBOjryQ.js +0 -1724
- package/dist/vue-ui-thermometer-CFPt3MOv.js +0 -564
- package/dist/vue-ui-tiremarks-2eIQ6vxu.js +0 -430
- package/dist/vue-ui-wheel-BpirIgAG.js +0 -643
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { c as zl, t as Sl, O as pe, o as Ct, f as J, m as Ll, x as
|
|
1
|
+
import { defineAsyncComponent as H, computed as c, ref as y, toRefs as Al, watch as se, shallowRef as bt, onMounted as $l, onBeforeUnmount as De, watchEffect as Cl, nextTick as kt, createElementBlock as i, openBlock as u, normalizeStyle as ue, normalizeClass as V, createBlock as Q, createCommentVNode as m, createElementVNode as p, createVNode as Pe, unref as h, withCtx as g, renderSlot as b, normalizeProps as F, guardReactiveProps as I, createSlots as wt, Fragment as S, renderList as M, toDisplayString as ie, mergeProps as At, resolveDynamicComponent as _l, createTextVNode as $t } from "vue";
|
|
2
|
+
import { c as zl, t as Sl, O as pe, o as Ct, f as J, m as Ll, x as G, v as Tl, d as U, X as Fl, i as fe, s as Il, R as _t, P as Ml, Q as Rl, G as Ol, H as Dl } from "./lib-C_mNZmhD.js";
|
|
3
3
|
import { t as zt, u as Pl } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as Bl, a as St } from "./useNestedProp-
|
|
4
|
+
import { u as Bl, a as St } from "./useNestedProp-DjGXw6S9.js";
|
|
5
5
|
import { u as Nl } from "./usePrinter-DTzqpYKF.js";
|
|
6
6
|
import { u as El, B as Vl } from "./BaseScanner-BgWxam9d.js";
|
|
7
7
|
import { u as Lt, a as Ul, l as Wl } from "./useTimeLabels-BGFjWgrv.js";
|
|
@@ -10,7 +10,7 @@ import { u as Hl } from "./useUserOptionState-BIvW1Kz7.js";
|
|
|
10
10
|
import { u as Gl } from "./useChartAccessibility-9icAAmYg.js";
|
|
11
11
|
import { u as jl } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
12
12
|
import ql from "./img-BecE5qXd.js";
|
|
13
|
-
import Yl from "./Title-
|
|
13
|
+
import Yl from "./Title-isbiM8i8.js";
|
|
14
14
|
import { t as Ql } from "./themes-AUNCOb2G.js";
|
|
15
15
|
import { S as Jl } from "./SlicerPreview-ij72TAs6.js";
|
|
16
16
|
import { _ as Kl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
@@ -39,8 +39,8 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
39
39
|
},
|
|
40
40
|
emits: ["selectX"],
|
|
41
41
|
setup(Tt, { expose: Ft, emit: It }) {
|
|
42
|
-
const Mt =
|
|
43
|
-
...Al(
|
|
42
|
+
const Mt = H(() => import("./BaseIcon-BmMbm4d0.js")), Rt = H(() => import("./Tooltip-oWCO1HKy.js")), Ot = H(() => import("./vue-ui-accordion-CqhVCfc2.js")), Dt = H(() => import("./DataTable-BT7VF2ua.js")), Pt = H(() => import("./PenAndPaper-SZQIAgkg.js")), Bt = H(() => import("./UserOptions-CGnQt6Fd.js")), Nt = H(() => import("./PackageVersion-DQvyATVa.js")), Et = H(() => import("./BaseDraggableDialog-ymf2sfB8.js")), { vue_ui_candlestick: Vt } = Bl(), x = Tt, Be = It, ge = c(() => !!x.dataset && x.dataset.length), D = y(!1), xe = y(null), R = y(zl()), be = y(!1), ke = y(""), P = y(void 0), Ne = y(0), B = y(null), Ee = y(null), Ve = y(null), Z = y(null), Ue = y(null), We = y(null), Ut = y(0), Xe = y(0), He = y(0), we = y(null), ee = y(null), te = y(null), Ae = y(null), Ge = y(null), e = y(ze()), { loading: N, FINAL_DATASET: k, manualLoading: $e } = El({
|
|
43
|
+
...Al(x),
|
|
44
44
|
FINAL_CONFIG: e,
|
|
45
45
|
prepareConfig: ze,
|
|
46
46
|
callback: () => {
|
|
@@ -114,24 +114,24 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
114
114
|
je(!0);
|
|
115
115
|
}
|
|
116
116
|
function Xt() {
|
|
117
|
-
je(!1), Be("selectX", { seriesIndex: null, datapoint: null }),
|
|
117
|
+
je(!1), Be("selectX", { seriesIndex: null, datapoint: null }), P.value = null;
|
|
118
118
|
}
|
|
119
119
|
function ze() {
|
|
120
120
|
const t = St({
|
|
121
|
-
userConfig:
|
|
121
|
+
userConfig: x.config,
|
|
122
122
|
defaultConfig: Vt
|
|
123
123
|
});
|
|
124
124
|
let a = {};
|
|
125
125
|
return t.theme ? a = {
|
|
126
126
|
...St({
|
|
127
|
-
userConfig: Ql.vue_ui_candlestick[t.theme] ||
|
|
127
|
+
userConfig: Ql.vue_ui_candlestick[t.theme] || x.config,
|
|
128
128
|
defaultConfig: t
|
|
129
129
|
})
|
|
130
|
-
} : a = t,
|
|
130
|
+
} : a = t, x.config && pe(x.config, "style.zoom.startIndex") ? a.style.zoom.startIndex = x.config.style.zoom.startIndex : a.style.zoom.startIndex = null, x.config && pe(x.config, "style.zoom.endIndex") ? a.style.zoom.endIndex = x.config.style.zoom.endIndex : a.style.zoom.endIndex = null, x.config && pe(x.config, "style.layout.grid.yAxis.scale.min") ? a.style.layout.grid.yAxis.scale.min = x.config.style.layout.grid.yAxis.scale.min : a.style.layout.grid.yAxis.scale.min = null, x.config && pe(x.config, "style.layout.grid.yAxis.scale.max") ? a.style.layout.grid.yAxis.scale.max = x.config.style.layout.grid.yAxis.scale.max : a.style.layout.grid.yAxis.scale.max = null, a;
|
|
131
131
|
}
|
|
132
|
-
se(() =>
|
|
133
|
-
|
|
134
|
-
}, { deep: !0 }), se(() =>
|
|
132
|
+
se(() => x.config, (t) => {
|
|
133
|
+
N.value || (e.value = ze()), Ce.value = !e.value.userOptions.showOnChartHover, Ye(), Ut.value += 1, He.value += 1, Xe.value += 1, L.value.showTable = e.value.table.show, L.value.showTooltip = e.value.style.tooltip.show, ne();
|
|
134
|
+
}, { deep: !0 }), se(() => x.dataset, (t) => {
|
|
135
135
|
Array.isArray(t) && t.length > 0 && ($e.value = !1), vt();
|
|
136
136
|
}, { deep: !0 });
|
|
137
137
|
const f = y({
|
|
@@ -139,23 +139,23 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
139
139
|
width: e.value.style.width,
|
|
140
140
|
xAxisFontSize: e.value.style.layout.grid.xAxis.dataLabels.fontSize,
|
|
141
141
|
yAxisFontSize: e.value.style.layout.grid.yAxis.dataLabels.fontSize
|
|
142
|
-
}),
|
|
142
|
+
}), W = bt(null), K = bt(null);
|
|
143
143
|
$l(() => {
|
|
144
144
|
Ye();
|
|
145
145
|
});
|
|
146
|
-
const
|
|
146
|
+
const j = c(() => !!e.value.debug);
|
|
147
147
|
function Ye() {
|
|
148
|
-
if (Ct(
|
|
148
|
+
if (Ct(x.dataset) && (J({
|
|
149
149
|
componentName: "VueUiCandlestick",
|
|
150
150
|
type: "dataset",
|
|
151
|
-
debug:
|
|
152
|
-
}), $e.value = !0), Ct(
|
|
153
|
-
|
|
151
|
+
debug: j.value
|
|
152
|
+
}), $e.value = !0), Ct(x.dataset) || ($e.value = e.value.loading), setTimeout(() => {
|
|
153
|
+
D.value = !0;
|
|
154
154
|
}, 10), e.value.responsive) {
|
|
155
155
|
const a = zt(() => {
|
|
156
|
-
|
|
156
|
+
D.value = !1;
|
|
157
157
|
const { width: l, height: o } = Pl({
|
|
158
|
-
chart:
|
|
158
|
+
chart: B.value,
|
|
159
159
|
title: e.value.style.title.text ? Ee.value : null,
|
|
160
160
|
slicer: e.value.style.zoom.show && $.value > 6 ? Z.value.$el : null,
|
|
161
161
|
legend: Ve.value,
|
|
@@ -176,19 +176,19 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
176
176
|
threshold: 6,
|
|
177
177
|
fallback: 6
|
|
178
178
|
})) : (f.value.xAxisFontSize = e.value.style.layout.grid.xAxis.dataLabels.fontSize, f.value.yAxisFontSize = e.value.style.layout.grid.yAxis.dataLabels.fontSize), xe.value && clearTimeout(xe.value), xe.value = setTimeout(() => {
|
|
179
|
-
|
|
179
|
+
D.value = !0;
|
|
180
180
|
}, 10);
|
|
181
181
|
});
|
|
182
182
|
});
|
|
183
|
-
|
|
183
|
+
W.value && (K.value && W.value.unobserve(K.value), W.value.disconnect()), W.value = new ResizeObserver(a), K.value = B.value.parentNode, W.value.observe(K.value);
|
|
184
184
|
}
|
|
185
185
|
ce();
|
|
186
186
|
}
|
|
187
187
|
De(() => {
|
|
188
|
-
|
|
188
|
+
W.value && (K.value && W.value.unobserve(K.value), W.value.disconnect());
|
|
189
189
|
});
|
|
190
190
|
const { isPrinting: Qe, isImaging: Je, generatePdf: Ke, generateImage: Ze } = Nl({
|
|
191
|
-
elementId: `vue-ui-candlestick_${
|
|
191
|
+
elementId: `vue-ui-candlestick_${R.value}`,
|
|
192
192
|
fileName: e.value.style.title.text || "vue-ui-candlestick",
|
|
193
193
|
options: e.value.userOptions.print
|
|
194
194
|
}), Ht = c(() => e.value.userOptions.show && !e.value.style.title.text), L = y({
|
|
@@ -229,11 +229,11 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
229
229
|
height: f.value.height - t - l - et.value - v
|
|
230
230
|
};
|
|
231
231
|
}), qt = c(() => {
|
|
232
|
-
const { left: t, top: a, width: l, height: o } = n.value, s = r.value.start,
|
|
232
|
+
const { left: t, top: a, width: l, height: o } = n.value, s = r.value.start, w = r.value.end - s, T = l / w, z = A.value.start - s, X = A.value.end - s, Y = Math.max(0, Math.min(w, z)), me = Math.max(0, Math.min(w, X));
|
|
233
233
|
return {
|
|
234
|
-
x: t +
|
|
234
|
+
x: t + Y * T,
|
|
235
235
|
y: a,
|
|
236
|
-
width: (me -
|
|
236
|
+
width: (me - Y) * T,
|
|
237
237
|
height: o,
|
|
238
238
|
fill: e.value.style.zoom.preview.fill,
|
|
239
239
|
stroke: e.value.style.zoom.preview.stroke,
|
|
@@ -247,7 +247,7 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
247
247
|
animation: "none !important"
|
|
248
248
|
}
|
|
249
249
|
};
|
|
250
|
-
}), $ = c(() =>
|
|
250
|
+
}), $ = c(() => k.value.length), r = y({
|
|
251
251
|
start: 0,
|
|
252
252
|
end: $.value
|
|
253
253
|
}), A = y({ start: 0, end: $.value }), tt = c(() => e.value.style.zoom.preview.enable && (A.value.start !== r.value.start || A.value.end !== r.value.end));
|
|
@@ -258,46 +258,46 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
258
258
|
let t = Math.max(0, Math.min(r.value.start ?? 0, $.value - 1)), a = Math.max(t + 1, Math.min(r.value.end ?? $.value, $.value));
|
|
259
259
|
(!Number.isFinite(t) || !Number.isFinite(a) || a <= t) && (t = 0, a = $.value), r.value.start = t, r.value.end = a, A.value.start = t, A.value.end = a, Z.value && (Z.value.setStartValue(t), Z.value.setEndValue(a));
|
|
260
260
|
}
|
|
261
|
-
const at = c(() =>
|
|
261
|
+
const at = c(() => k.value.map((t, a) => ({
|
|
262
262
|
...t,
|
|
263
263
|
absoluteIndex: a
|
|
264
|
-
}))), ot = c(() => at.value.slice(r.value.start, r.value.end)), _ = c(() => (
|
|
264
|
+
}))), ot = c(() => at.value.slice(r.value.start, r.value.end)), _ = c(() => (k.value.forEach((t, a) => {
|
|
265
265
|
[null, void 0].includes(t[0]) && J({
|
|
266
266
|
componentName: "VueUiCandlestick",
|
|
267
267
|
type: "datasetAttribute",
|
|
268
268
|
property: "period (index 0)",
|
|
269
269
|
index: a,
|
|
270
|
-
debug:
|
|
270
|
+
debug: j.value
|
|
271
271
|
}), [null, void 0].includes(t[1]) && J({
|
|
272
272
|
componentName: "VueUiCandlestick",
|
|
273
273
|
type: "datasetAttribute",
|
|
274
274
|
property: "open (index 1)",
|
|
275
275
|
index: a,
|
|
276
|
-
debug:
|
|
276
|
+
debug: j.value
|
|
277
277
|
}), [null, void 0].includes(t[2]) && J({
|
|
278
278
|
componentName: "VueUiCandlestick",
|
|
279
279
|
type: "datasetAttribute",
|
|
280
280
|
property: "high (index 2)",
|
|
281
281
|
index: a,
|
|
282
|
-
debug:
|
|
282
|
+
debug: j.value
|
|
283
283
|
}), [null, void 0].includes(t[3]) && J({
|
|
284
284
|
componentName: "VueUiCandlestick",
|
|
285
285
|
type: "datasetAttribute",
|
|
286
286
|
property: "low (index 3)",
|
|
287
287
|
index: a,
|
|
288
|
-
debug:
|
|
288
|
+
debug: j.value
|
|
289
289
|
}), [null, void 0].includes(t[4]) && J({
|
|
290
290
|
componentName: "VueUiCandlestick",
|
|
291
291
|
type: "datasetAttribute",
|
|
292
292
|
property: "close (index 4)",
|
|
293
293
|
index: a,
|
|
294
|
-
debug:
|
|
294
|
+
debug: j.value
|
|
295
295
|
}), [null, void 0].includes(t[5]) && J({
|
|
296
296
|
componentName: "VueUiCandlestick",
|
|
297
297
|
type: "datasetAttribute",
|
|
298
298
|
property: "volume (index 5)",
|
|
299
299
|
index: a,
|
|
300
|
-
debug:
|
|
300
|
+
debug: j.value
|
|
301
301
|
});
|
|
302
302
|
}), ot.value.map((t) => ({
|
|
303
303
|
absoluteIndex: t.absoluteIndex,
|
|
@@ -321,13 +321,13 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
321
321
|
max: t,
|
|
322
322
|
min: a
|
|
323
323
|
};
|
|
324
|
-
}),
|
|
324
|
+
}), O = c(() => Ll(st.value.min, st.value.max, e.value.style.layout.grid.yAxis.dataLabels.steps));
|
|
325
325
|
function re(t, a, l = null, o = null) {
|
|
326
326
|
return {
|
|
327
327
|
...t,
|
|
328
|
-
x:
|
|
329
|
-
y:
|
|
330
|
-
value:
|
|
328
|
+
x: G(n.value.left + a * d.value + d.value / 2),
|
|
329
|
+
y: G(n.value.top + (1 - (t - O.value.min) / (O.value.max - O.value.min)) * n.value.height),
|
|
330
|
+
value: G(t),
|
|
331
331
|
isMax: t === l,
|
|
332
332
|
isMin: t === o
|
|
333
333
|
};
|
|
@@ -345,15 +345,15 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
345
345
|
c: Math.min(..._.value.map((s) => s.low))
|
|
346
346
|
}, l = Math.max(..._.value.map((s) => s.volume)), o = Math.min(..._.value.map((s) => s.volume));
|
|
347
347
|
return _.value.map((s, v) => {
|
|
348
|
-
const
|
|
348
|
+
const w = re(s.open, v, t.o, a.o), T = re(s.high, v, t.h, a.h), z = re(s.low, v, t.l, a.l), X = re(s.close, v, t.c, a.c), Y = s.close > s.open, me = s.volume === l, Me = s.volume === o;
|
|
349
349
|
return {
|
|
350
350
|
period: s.period,
|
|
351
|
-
open:
|
|
351
|
+
open: w,
|
|
352
352
|
high: T,
|
|
353
353
|
low: z,
|
|
354
|
-
close:
|
|
354
|
+
close: X,
|
|
355
355
|
volume: s.volume,
|
|
356
|
-
isBullish:
|
|
356
|
+
isBullish: Y,
|
|
357
357
|
absoluteIndex: s.absoluteIndex,
|
|
358
358
|
isMaxVolume: me,
|
|
359
359
|
isMinVolume: Me
|
|
@@ -361,21 +361,21 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
361
361
|
});
|
|
362
362
|
});
|
|
363
363
|
function ve({ item: t, index: a, minimapH: l, unitW: o }) {
|
|
364
|
-
const s = e.value.style.layout.grid.yAxis.scale.min ?? 0, v = e.value.style.layout.grid.yAxis.scale.max ?? Math.max(...
|
|
364
|
+
const s = e.value.style.layout.grid.yAxis.scale.min ?? 0, v = e.value.style.layout.grid.yAxis.scale.max ?? Math.max(...k.value.map((w) => w[2]));
|
|
365
365
|
return {
|
|
366
366
|
...t,
|
|
367
|
-
x:
|
|
368
|
-
y:
|
|
369
|
-
value:
|
|
367
|
+
x: G(a * o),
|
|
368
|
+
y: G((1 - (t - s) / (v - s)) * l),
|
|
369
|
+
value: G(t)
|
|
370
370
|
};
|
|
371
371
|
}
|
|
372
372
|
const Qt = c(() => ({ minimapH: t, unitW: a }) => Yt.value.map((l, o) => {
|
|
373
|
-
const s = ve({ item: l.open, index: o, minimapH: t, unitW: a }), v = ve({ item: l.high, index: o, minimapH: t, unitW: a }),
|
|
373
|
+
const s = ve({ item: l.open, index: o, minimapH: t, unitW: a }), v = ve({ item: l.high, index: o, minimapH: t, unitW: a }), w = ve({ item: l.low, index: o, minimapH: t, unitW: a }), T = ve({ item: l.close, index: o, minimapH: t, unitW: a }), z = l.close > l.open;
|
|
374
374
|
return {
|
|
375
375
|
period: l.period,
|
|
376
376
|
open: s,
|
|
377
377
|
high: v,
|
|
378
|
-
low:
|
|
378
|
+
low: w,
|
|
379
379
|
close: T,
|
|
380
380
|
volume: l.volume,
|
|
381
381
|
isBullish: z,
|
|
@@ -383,31 +383,31 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
383
383
|
};
|
|
384
384
|
})), Jt = c(() => e.value.style.zoom.minimap.show ? [{
|
|
385
385
|
name: "",
|
|
386
|
-
series:
|
|
386
|
+
series: k.value.map((t) => t[2]),
|
|
387
387
|
color: "#000000",
|
|
388
388
|
isVisible: !0
|
|
389
389
|
}] : []);
|
|
390
390
|
function Kt(t) {
|
|
391
|
-
return
|
|
391
|
+
return G((t - O.value.min) / (O.value.max - O.value.min));
|
|
392
392
|
}
|
|
393
|
-
const ut = c(() =>
|
|
393
|
+
const ut = c(() => O.value.ticks.map((t) => ({
|
|
394
394
|
y: n.value.bottom - n.value.height * Kt(t),
|
|
395
|
-
value:
|
|
396
|
-
}))), Zt = c(() => _.value.map((t) => t.period)),
|
|
397
|
-
values:
|
|
398
|
-
maxDatapoints:
|
|
395
|
+
value: G(t)
|
|
396
|
+
}))), Zt = c(() => _.value.map((t) => t.period)), E = c(() => Lt({
|
|
397
|
+
values: k.value.map((t) => t[0]),
|
|
398
|
+
maxDatapoints: k.value.length,
|
|
399
399
|
formatter: e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter,
|
|
400
400
|
start: r.value.start,
|
|
401
401
|
end: r.value.end
|
|
402
402
|
})), it = c(() => Lt({
|
|
403
|
-
values:
|
|
404
|
-
maxDatapoints:
|
|
403
|
+
values: k.value.map((t) => t[0]),
|
|
404
|
+
maxDatapoints: k.value.length,
|
|
405
405
|
formatter: e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter,
|
|
406
406
|
start: 0,
|
|
407
407
|
end: $.value
|
|
408
408
|
})), el = c(() => {
|
|
409
409
|
const t = e.value.style.layout.grid.xAxis.dataLabels.modulo;
|
|
410
|
-
return
|
|
410
|
+
return E.value.length ? Math.min(t, [...new Set(E.value.map((a) => a.text))].length) : t;
|
|
411
411
|
}), nt = c(() => {
|
|
412
412
|
const t = e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter, a = Ul({
|
|
413
413
|
useUTC: t.useUTC,
|
|
@@ -415,50 +415,50 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
415
415
|
januaryAsYear: t.januaryAsYear
|
|
416
416
|
});
|
|
417
417
|
return (l, o) => {
|
|
418
|
-
const v =
|
|
418
|
+
const v = k.value.map((w) => w[0])?.[l];
|
|
419
419
|
return v == null ? "" : a.formatDate(new Date(v), o);
|
|
420
420
|
};
|
|
421
|
-
}), tl = c(() => (
|
|
421
|
+
}), tl = c(() => (k.value.map((a) => a[0]) || []).map((a, l) => ({
|
|
422
422
|
text: nt.value(l, e.value.style.tooltip.timeFormat),
|
|
423
423
|
absoluteIndex: l
|
|
424
|
-
}))), ll = c(() => (
|
|
424
|
+
}))), ll = c(() => (k.value.map((a) => a[0]) || []).map((a, l) => ({
|
|
425
425
|
text: nt.value(l, e.value.style.zoom.timeFormat),
|
|
426
426
|
absoluteIndex: l
|
|
427
427
|
}))), Le = c(() => {
|
|
428
|
-
const t = e.value.style.layout.grid.xAxis.dataLabels, a =
|
|
428
|
+
const t = e.value.style.layout.grid.xAxis.dataLabels, a = E.value || [], l = it.value || [], o = r.value.start ?? 0, s = P.value, v = $.value, w = a.map((z) => z?.text ?? ""), T = l.map((z) => z?.text ?? "");
|
|
429
429
|
return Tl(
|
|
430
430
|
!!t.showOnlyFirstAndLast,
|
|
431
431
|
!!t.showOnlyAtModulo,
|
|
432
432
|
Math.max(1, el.value || 1),
|
|
433
|
-
|
|
433
|
+
w,
|
|
434
434
|
T,
|
|
435
435
|
o,
|
|
436
436
|
s,
|
|
437
437
|
v
|
|
438
438
|
);
|
|
439
439
|
}), rt = c(() => e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? {
|
|
440
|
-
start:
|
|
441
|
-
end:
|
|
440
|
+
start: E.value.find((t) => t.absoluteIndex === r.value.start)?.text ?? "",
|
|
441
|
+
end: E.value.find((t) => t.absoluteIndex === r.value.end - 1)?.text ?? ""
|
|
442
442
|
} : {
|
|
443
|
-
start:
|
|
444
|
-
end:
|
|
443
|
+
start: k.value[r.value.start] ? k.value[r.value.start][0] : k.value[0][0],
|
|
444
|
+
end: k.value[r.value.end - 1] ? k.value[r.value.end - 1][0] : k.value.at(-1)[0]
|
|
445
445
|
}), Te = y(null);
|
|
446
446
|
function al(t, a) {
|
|
447
447
|
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: a, seriesIndex: t + r.value.start });
|
|
448
448
|
}
|
|
449
449
|
function ol(t, a) {
|
|
450
|
-
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: a, seriesIndex: t + r.value.start }),
|
|
450
|
+
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: a, seriesIndex: t + r.value.start }), P.value = void 0, be.value = !1;
|
|
451
451
|
}
|
|
452
|
-
se(() =>
|
|
453
|
-
if ([null, void 0].includes(
|
|
454
|
-
|
|
452
|
+
se(() => x.selectedXIndex, (t) => {
|
|
453
|
+
if ([null, void 0].includes(x.selectedXIndex)) {
|
|
454
|
+
P.value = null;
|
|
455
455
|
return;
|
|
456
456
|
}
|
|
457
457
|
const a = t - r.value.start;
|
|
458
|
-
a < 0 || t >= r.value.end ?
|
|
458
|
+
a < 0 || t >= r.value.end ? P.value = null : P.value = a ?? null;
|
|
459
459
|
}, { immediate: !0 });
|
|
460
460
|
function sl(t, a) {
|
|
461
|
-
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: a, seriesIndex: t + r.value.start }),
|
|
461
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: a, seriesIndex: t + r.value.start }), P.value = t, Te.value = {
|
|
462
462
|
datapoint: a,
|
|
463
463
|
seriesIndex: t,
|
|
464
464
|
series: C.value,
|
|
@@ -479,25 +479,25 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
479
479
|
});
|
|
480
480
|
else if (e.value.style.tooltip.show) {
|
|
481
481
|
let o = "";
|
|
482
|
-
const { period: s, open: v, high:
|
|
482
|
+
const { period: s, open: v, high: w, low: T, close: z, volume: X, isBullish: Y } = C.value[t], { period: me, open: Me, high: gl, low: xl, close: bl, volume: kl } = e.value.translations, wl = e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? e.value.style.tooltip.useDefaultTimeFormat ? E.value[t].text : tl.value[t].text : s;
|
|
483
483
|
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}"
|
|
484
|
-
fill="${e.value.style.layout.candle.gradient.show ?
|
|
485
|
-
const Re =
|
|
484
|
+
fill="${e.value.style.layout.candle.gradient.show ? Y ? `url(#bullish_gradient_${R.value})` : `url(#bearish_gradient_${R.value})` : Y ? e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.colors.bearish}"/></svg>${wl}</div>`, o += `${kl} : <b>${isNaN(X) ? "-" : Number(X.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}">`;
|
|
485
|
+
const Re = U({
|
|
486
486
|
p: e.value.style.tooltip.prefix,
|
|
487
487
|
v: v.value,
|
|
488
488
|
s: e.value.style.tooltip.suffix,
|
|
489
489
|
r: e.value.style.tooltip.roundingValue
|
|
490
|
-
}), gt =
|
|
490
|
+
}), gt = U({
|
|
491
491
|
p: e.value.style.tooltip.prefix,
|
|
492
|
-
v:
|
|
492
|
+
v: w.value,
|
|
493
493
|
s: e.value.style.tooltip.suffix,
|
|
494
494
|
r: e.value.style.tooltip.roundingValue
|
|
495
|
-
}), xt =
|
|
495
|
+
}), xt = U({
|
|
496
496
|
p: e.value.style.tooltip.prefix,
|
|
497
497
|
v: T.value,
|
|
498
498
|
s: e.value.style.tooltip.suffix,
|
|
499
499
|
r: e.value.style.tooltip.roundingValue
|
|
500
|
-
}), Oe =
|
|
500
|
+
}), Oe = U({
|
|
501
501
|
p: e.value.style.tooltip.prefix,
|
|
502
502
|
v: z.value,
|
|
503
503
|
s: e.value.style.tooltip.suffix,
|
|
@@ -561,8 +561,8 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
561
561
|
}
|
|
562
562
|
function Fe(t = null) {
|
|
563
563
|
kt(() => {
|
|
564
|
-
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 = C.value.map((v,
|
|
565
|
-
e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ?
|
|
564
|
+
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 = C.value.map((v, w) => [
|
|
565
|
+
e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? E.value[w].text : v.period,
|
|
566
566
|
v.open.value,
|
|
567
567
|
v.high.value,
|
|
568
568
|
v.low.value,
|
|
@@ -574,33 +574,33 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
574
574
|
}
|
|
575
575
|
const ye = c(() => {
|
|
576
576
|
const t = C.value.map((o, s) => {
|
|
577
|
-
const v = e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ?
|
|
577
|
+
const v = e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? E.value[s].text : o.period, w = U({
|
|
578
578
|
p: e.value.table.td.prefix,
|
|
579
579
|
v: o.open.value,
|
|
580
580
|
s: e.value.table.td.suffix,
|
|
581
581
|
r: e.value.table.td.roundingValue
|
|
582
|
-
}), T =
|
|
582
|
+
}), T = U({
|
|
583
583
|
p: e.value.table.td.prefix,
|
|
584
584
|
v: o.high.value,
|
|
585
585
|
s: e.value.table.td.suffix,
|
|
586
586
|
r: e.value.table.td.roundingValue
|
|
587
|
-
}), z =
|
|
587
|
+
}), z = U({
|
|
588
588
|
p: e.value.table.td.prefix,
|
|
589
589
|
v: o.low.value,
|
|
590
590
|
s: e.value.table.td.suffix,
|
|
591
591
|
r: e.value.table.td.roundingValue
|
|
592
|
-
}),
|
|
592
|
+
}), X = U({
|
|
593
593
|
p: e.value.table.td.prefix,
|
|
594
594
|
v: o.close.value,
|
|
595
595
|
s: e.value.table.td.suffix,
|
|
596
596
|
r: e.value.table.td.roundingValue
|
|
597
597
|
});
|
|
598
598
|
return [
|
|
599
|
-
`<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_${
|
|
600
|
-
|
|
599
|
+
`<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_${R.value}` : `url(#bearish_gradient_${R.value})` : o.isBullish ? e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.colors.bearish}"/></svg> ${v}`,
|
|
600
|
+
w,
|
|
601
601
|
T,
|
|
602
602
|
z,
|
|
603
|
-
|
|
603
|
+
X,
|
|
604
604
|
`${isNaN(o.volume) ? "-" : o.volume.toLocaleString()}`
|
|
605
605
|
];
|
|
606
606
|
}), a = {
|
|
@@ -624,9 +624,9 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
624
624
|
e.value.translations.volume
|
|
625
625
|
];
|
|
626
626
|
return { head: l, body: t, config: a, colNames: l };
|
|
627
|
-
}),
|
|
627
|
+
}), q = y(!1);
|
|
628
628
|
function yt(t) {
|
|
629
|
-
|
|
629
|
+
q.value = t, Ne.value += 1;
|
|
630
630
|
}
|
|
631
631
|
function ht() {
|
|
632
632
|
L.value.showTable = !L.value.showTable;
|
|
@@ -639,8 +639,8 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
639
639
|
he.value = !he.value;
|
|
640
640
|
}
|
|
641
641
|
async function il({ scale: t = 2 } = {}) {
|
|
642
|
-
if (!
|
|
643
|
-
const { width: a, height: l } =
|
|
642
|
+
if (!B.value) return;
|
|
643
|
+
const { width: a, height: l } = B.value.getBoundingClientRect(), o = a / l, { imageUri: s, base64: v } = await ql({ domElement: B.value, base64: !0, img: !0, scale: t });
|
|
644
644
|
return {
|
|
645
645
|
imageUri: s,
|
|
646
646
|
base64: v,
|
|
@@ -653,7 +653,7 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
653
653
|
const nl = c(() => f.value.width), rl = c(() => f.value.height);
|
|
654
654
|
jl({
|
|
655
655
|
timeLabelsEls: ee,
|
|
656
|
-
timeLabels:
|
|
656
|
+
timeLabels: E,
|
|
657
657
|
slicer: r,
|
|
658
658
|
configRef: e,
|
|
659
659
|
rotationPath: ["style", "layout", "grid", "xAxis", "dataLabels", "rotation"],
|
|
@@ -678,8 +678,8 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
678
678
|
color: e.value.table.th.color,
|
|
679
679
|
headerColor: e.value.table.th.color,
|
|
680
680
|
headerBg: e.value.table.th.backgroundColor,
|
|
681
|
-
isFullscreen:
|
|
682
|
-
fullscreenParent:
|
|
681
|
+
isFullscreen: q.value,
|
|
682
|
+
fullscreenParent: B.value,
|
|
683
683
|
forcedWidth: Math.min(800, window.innerWidth * 0.8)
|
|
684
684
|
} : {
|
|
685
685
|
hideDetails: !0,
|
|
@@ -747,21 +747,41 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
747
747
|
toggleFullscreen: yt
|
|
748
748
|
}), (t, a) => (u(), i("div", {
|
|
749
749
|
ref_key: "candlestickChart",
|
|
750
|
-
ref:
|
|
751
|
-
class:
|
|
750
|
+
ref: B,
|
|
751
|
+
class: V(`vue-data-ui-component vue-ui-candlestick ${q.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
752
752
|
style: ue(`position:relative;font-family:${e.value.style.fontFamily}; text-align:center;background:${e.value.style.backgroundColor}; ${e.value.responsive ? "height: 100%" : ""}`),
|
|
753
|
-
id: `vue-ui-candlestick_${
|
|
753
|
+
id: `vue-ui-candlestick_${R.value}`,
|
|
754
754
|
onMouseenter: Wt,
|
|
755
755
|
onMouseleave: Xt
|
|
756
756
|
}, [
|
|
757
|
-
e.value.userOptions.buttons.annotator ? (u(),
|
|
757
|
+
e.value.userOptions.buttons.annotator ? (u(), Q(h(Pt), {
|
|
758
758
|
key: 0,
|
|
759
759
|
svgRef: h(_e),
|
|
760
760
|
backgroundColor: e.value.style.backgroundColor,
|
|
761
761
|
color: e.value.style.color,
|
|
762
762
|
active: he.value,
|
|
763
763
|
onClose: Ie
|
|
764
|
-
},
|
|
764
|
+
}, {
|
|
765
|
+
"annotator-action-close": g(() => [
|
|
766
|
+
b(t.$slots, "annotator-action-close", {}, void 0, !0)
|
|
767
|
+
]),
|
|
768
|
+
"annotator-action-color": g(({ color: l }) => [
|
|
769
|
+
b(t.$slots, "annotator-action-color", F(I({ color: l })), void 0, !0)
|
|
770
|
+
]),
|
|
771
|
+
"annotator-action-draw": g(({ mode: l }) => [
|
|
772
|
+
b(t.$slots, "annotator-action-draw", F(I({ mode: l })), void 0, !0)
|
|
773
|
+
]),
|
|
774
|
+
"annotator-action-undo": g(({ disabled: l }) => [
|
|
775
|
+
b(t.$slots, "annotator-action-undo", F(I({ disabled: l })), void 0, !0)
|
|
776
|
+
]),
|
|
777
|
+
"annotator-action-redo": g(({ disabled: l }) => [
|
|
778
|
+
b(t.$slots, "annotator-action-redo", F(I({ disabled: l })), void 0, !0)
|
|
779
|
+
]),
|
|
780
|
+
"annotator-action-delete": g(({ disabled: l }) => [
|
|
781
|
+
b(t.$slots, "annotator-action-delete", F(I({ disabled: l })), void 0, !0)
|
|
782
|
+
]),
|
|
783
|
+
_: 3
|
|
784
|
+
}, 8, ["svgRef", "backgroundColor", "color", "active"])) : m("", !0),
|
|
765
785
|
Ht.value ? (u(), i("div", {
|
|
766
786
|
key: 1,
|
|
767
787
|
ref_key: "noTitle",
|
|
@@ -775,7 +795,7 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
775
795
|
ref: Ee,
|
|
776
796
|
style: "width:100%;background:transparent"
|
|
777
797
|
}, [
|
|
778
|
-
(u(),
|
|
798
|
+
(u(), Q(Yl, {
|
|
779
799
|
key: `title_${He.value}`,
|
|
780
800
|
config: {
|
|
781
801
|
title: {
|
|
@@ -789,7 +809,7 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
789
809
|
}
|
|
790
810
|
}, null, 8, ["config"]))
|
|
791
811
|
], 512)) : m("", !0),
|
|
792
|
-
e.value.userOptions.show && ge.value && (h(qe) || h(Ce)) ? (u(),
|
|
812
|
+
e.value.userOptions.show && ge.value && (h(qe) || h(Ce)) ? (u(), Q(h(Bt), {
|
|
793
813
|
ref_key: "userOptionsRef",
|
|
794
814
|
ref: Ae,
|
|
795
815
|
key: `user_options_${Ne.value}`,
|
|
@@ -797,7 +817,7 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
797
817
|
color: e.value.style.color,
|
|
798
818
|
isImaging: h(Je),
|
|
799
819
|
isPrinting: h(Qe),
|
|
800
|
-
uid:
|
|
820
|
+
uid: R.value,
|
|
801
821
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.tooltip.show,
|
|
802
822
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
803
823
|
hasImg: e.value.userOptions.buttons.img,
|
|
@@ -805,10 +825,10 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
805
825
|
hasXls: e.value.userOptions.buttons.csv,
|
|
806
826
|
hasTable: e.value.userOptions.buttons.table,
|
|
807
827
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
808
|
-
isFullscreen:
|
|
828
|
+
isFullscreen: q.value,
|
|
809
829
|
isTooltip: L.value.showTooltip,
|
|
810
830
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
811
|
-
chartElement:
|
|
831
|
+
chartElement: B.value,
|
|
812
832
|
position: e.value.userOptions.position,
|
|
813
833
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
814
834
|
isAnnotation: he.value,
|
|
@@ -829,64 +849,64 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
829
849
|
}, wt({ _: 2 }, [
|
|
830
850
|
t.$slots.menuIcon ? {
|
|
831
851
|
name: "menuIcon",
|
|
832
|
-
fn:
|
|
833
|
-
|
|
852
|
+
fn: g(({ isOpen: l, color: o }) => [
|
|
853
|
+
b(t.$slots, "menuIcon", F(I({ isOpen: l, color: o })), void 0, !0)
|
|
834
854
|
]),
|
|
835
855
|
key: "0"
|
|
836
856
|
} : void 0,
|
|
837
857
|
t.$slots.optionTooltip ? {
|
|
838
858
|
name: "optionTooltip",
|
|
839
|
-
fn:
|
|
840
|
-
|
|
859
|
+
fn: g(() => [
|
|
860
|
+
b(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
841
861
|
]),
|
|
842
862
|
key: "1"
|
|
843
863
|
} : void 0,
|
|
844
864
|
t.$slots.optionPdf ? {
|
|
845
865
|
name: "optionPdf",
|
|
846
|
-
fn:
|
|
847
|
-
|
|
866
|
+
fn: g(() => [
|
|
867
|
+
b(t.$slots, "optionPdf", {}, void 0, !0)
|
|
848
868
|
]),
|
|
849
869
|
key: "2"
|
|
850
870
|
} : void 0,
|
|
851
871
|
t.$slots.optionCsv ? {
|
|
852
872
|
name: "optionCsv",
|
|
853
|
-
fn:
|
|
854
|
-
|
|
873
|
+
fn: g(() => [
|
|
874
|
+
b(t.$slots, "optionCsv", {}, void 0, !0)
|
|
855
875
|
]),
|
|
856
876
|
key: "3"
|
|
857
877
|
} : void 0,
|
|
858
878
|
t.$slots.optionImg ? {
|
|
859
879
|
name: "optionImg",
|
|
860
|
-
fn:
|
|
861
|
-
|
|
880
|
+
fn: g(() => [
|
|
881
|
+
b(t.$slots, "optionImg", {}, void 0, !0)
|
|
862
882
|
]),
|
|
863
883
|
key: "4"
|
|
864
884
|
} : void 0,
|
|
865
885
|
t.$slots.optionSvg ? {
|
|
866
886
|
name: "optionSvg",
|
|
867
|
-
fn:
|
|
868
|
-
|
|
887
|
+
fn: g(() => [
|
|
888
|
+
b(t.$slots, "optionSvg", {}, void 0, !0)
|
|
869
889
|
]),
|
|
870
890
|
key: "5"
|
|
871
891
|
} : void 0,
|
|
872
892
|
t.$slots.optionTable ? {
|
|
873
893
|
name: "optionTable",
|
|
874
|
-
fn:
|
|
875
|
-
|
|
894
|
+
fn: g(() => [
|
|
895
|
+
b(t.$slots, "optionTable", {}, void 0, !0)
|
|
876
896
|
]),
|
|
877
897
|
key: "6"
|
|
878
898
|
} : void 0,
|
|
879
899
|
t.$slots.optionFullscreen ? {
|
|
880
900
|
name: "optionFullscreen",
|
|
881
|
-
fn:
|
|
882
|
-
|
|
901
|
+
fn: g(({ toggleFullscreen: l, isFullscreen: o }) => [
|
|
902
|
+
b(t.$slots, "optionFullscreen", F(I({ toggleFullscreen: l, isFullscreen: o })), void 0, !0)
|
|
883
903
|
]),
|
|
884
904
|
key: "7"
|
|
885
905
|
} : void 0,
|
|
886
906
|
t.$slots.optionAnnotator ? {
|
|
887
907
|
name: "optionAnnotator",
|
|
888
|
-
fn:
|
|
889
|
-
|
|
908
|
+
fn: g(({ toggleAnnotator: l, isAnnotator: o }) => [
|
|
909
|
+
b(t.$slots, "optionAnnotator", F(I({ toggleAnnotator: l, isAnnotator: o })), void 0, !0)
|
|
890
910
|
]),
|
|
891
911
|
key: "8"
|
|
892
912
|
} : void 0
|
|
@@ -896,7 +916,7 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
896
916
|
ref: _e,
|
|
897
917
|
xmlns: h(Fl),
|
|
898
918
|
"aria-label": e.value.style.title.text || "candlestick chart",
|
|
899
|
-
class:
|
|
919
|
+
class: V({ "vue-data-ui-fullscreen--on": q.value, "vue-data-ui-fulscreen--off": !q.value }),
|
|
900
920
|
viewBox: `0 0 ${f.value.width <= 0 ? 10 : f.value.width} ${f.value.height <= 0 ? 10 : f.value.height}`,
|
|
901
921
|
style: ue(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.color}`)
|
|
902
922
|
}, [
|
|
@@ -911,12 +931,12 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
911
931
|
pointerEvents: "none"
|
|
912
932
|
}
|
|
913
933
|
}, [
|
|
914
|
-
|
|
934
|
+
b(t.$slots, "chart-background", {}, void 0, !0)
|
|
915
935
|
], 8, ta)) : m("", !0),
|
|
916
936
|
C.value.length > 0 ? (u(), i("g", la, [
|
|
917
937
|
p("defs", null, [
|
|
918
938
|
p("linearGradient", {
|
|
919
|
-
id: `bearish_gradient_${
|
|
939
|
+
id: `bearish_gradient_${R.value}`,
|
|
920
940
|
x2: "0%",
|
|
921
941
|
y2: "100%"
|
|
922
942
|
}, [
|
|
@@ -934,7 +954,7 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
934
954
|
}, null, 8, ua)
|
|
935
955
|
], 8, aa),
|
|
936
956
|
p("linearGradient", {
|
|
937
|
-
id: `bullish_gradient_${
|
|
957
|
+
id: `bullish_gradient_${R.value}`,
|
|
938
958
|
x2: "0%",
|
|
939
959
|
y2: "100%"
|
|
940
960
|
}, [
|
|
@@ -971,7 +991,7 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
971
991
|
"stroke-width": e.value.style.layout.grid.strokeWidth,
|
|
972
992
|
"stroke-linecap": "round"
|
|
973
993
|
}, null, 8, ya),
|
|
974
|
-
e.value.style.layout.grid.horizontalLines.show ? (u(!0), i(S, { key: 0 },
|
|
994
|
+
e.value.style.layout.grid.horizontalLines.show ? (u(!0), i(S, { key: 0 }, M(ut.value, (l) => (u(), i("line", {
|
|
975
995
|
x1: n.value.left,
|
|
976
996
|
x2: n.value.right,
|
|
977
997
|
y1: l.y,
|
|
@@ -981,7 +1001,7 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
981
1001
|
"stroke-dasharray": e.value.style.layout.grid.horizontalLines.strokeDasharray,
|
|
982
1002
|
"stroke-linecap": "round"
|
|
983
1003
|
}, null, 8, ha))), 256)) : m("", !0),
|
|
984
|
-
e.value.style.layout.grid.verticalLines.show ? (u(!0), i(S, { key: 1 },
|
|
1004
|
+
e.value.style.layout.grid.verticalLines.show ? (u(!0), i(S, { key: 1 }, M(Le.value, (l, o) => (u(), i("g", null, [
|
|
985
1005
|
l.text ? (u(), i("line", {
|
|
986
1006
|
key: 0,
|
|
987
1007
|
x1: n.value.left + d.value * o + d.value / 2,
|
|
@@ -994,7 +1014,7 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
994
1014
|
"stroke-linecap": "round"
|
|
995
1015
|
}, null, 8, ma)) : m("", !0)
|
|
996
1016
|
]))), 256)) : m("", !0),
|
|
997
|
-
e.value.style.layout.grid.xAxis.ticks.show ? (u(!0), i(S, { key: 2 },
|
|
1017
|
+
e.value.style.layout.grid.xAxis.ticks.show ? (u(!0), i(S, { key: 2 }, M(Le.value, (l, o) => (u(), i("g", null, [
|
|
998
1018
|
l.text ? (u(), i("line", {
|
|
999
1019
|
key: 0,
|
|
1000
1020
|
x1: n.value.left + d.value * o + d.value / 2,
|
|
@@ -1012,8 +1032,8 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
1012
1032
|
ref_key: "scaleLabels",
|
|
1013
1033
|
ref: we
|
|
1014
1034
|
}, [
|
|
1015
|
-
(u(!0), i(S, null,
|
|
1016
|
-
l.value >=
|
|
1035
|
+
(u(!0), i(S, null, M(ut.value, (l, o) => (u(), i("g", null, [
|
|
1036
|
+
l.value >= O.value.min && l.value <= O.value.max ? (u(), i("line", {
|
|
1017
1037
|
key: 0,
|
|
1018
1038
|
x1: n.value.left,
|
|
1019
1039
|
x2: n.value.left - 5,
|
|
@@ -1023,7 +1043,7 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
1023
1043
|
"stroke-width": e.value.style.layout.grid.strokeWidth,
|
|
1024
1044
|
"stroke-linecap": "round"
|
|
1025
1045
|
}, null, 8, fa)) : m("", !0),
|
|
1026
|
-
l.value >=
|
|
1046
|
+
l.value >= O.value.min && l.value <= O.value.max ? (u(), i("text", {
|
|
1027
1047
|
key: 1,
|
|
1028
1048
|
x: n.value.left - 8 + e.value.style.layout.grid.yAxis.dataLabels.offsetX,
|
|
1029
1049
|
y: l.y + f.value.yAxisFontSize / 3,
|
|
@@ -1031,7 +1051,7 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
1031
1051
|
"text-anchor": "end",
|
|
1032
1052
|
fill: e.value.style.layout.grid.yAxis.dataLabels.color,
|
|
1033
1053
|
"font-weight": e.value.style.layout.grid.yAxis.dataLabels.bold ? "bold" : "normal"
|
|
1034
|
-
}, ie(h(
|
|
1054
|
+
}, ie(h(U)({
|
|
1035
1055
|
p: e.value.style.layout.grid.yAxis.dataLabels.prefix,
|
|
1036
1056
|
v: l.value,
|
|
1037
1057
|
s: e.value.style.layout.grid.yAxis.dataLabels.suffix,
|
|
@@ -1044,7 +1064,7 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
1044
1064
|
ref_key: "timeLabelsEls",
|
|
1045
1065
|
ref: ee
|
|
1046
1066
|
}, [
|
|
1047
|
-
(u(!0), i(S, null,
|
|
1067
|
+
(u(!0), i(S, null, M(Zt.value, (l, o) => (u(), i("g", null, [
|
|
1048
1068
|
p("text", {
|
|
1049
1069
|
class: "vue-data-ui-time-label",
|
|
1050
1070
|
transform: `translate(${n.value.left + d.value * o + d.value / 2}, ${n.value.bottom + f.value.xAxisFontSize * 1.5}), rotate(${e.value.style.layout.grid.xAxis.dataLabels.rotation})`,
|
|
@@ -1060,7 +1080,7 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
1060
1080
|
ref_key: "timeLabelsEls",
|
|
1061
1081
|
ref: ee
|
|
1062
1082
|
}, [
|
|
1063
|
-
(u(!0), i(S, null,
|
|
1083
|
+
(u(!0), i(S, null, M(Le.value, (l, o) => (u(), i("g", null, [
|
|
1064
1084
|
p("text", {
|
|
1065
1085
|
class: "vue-data-ui-time-label",
|
|
1066
1086
|
transform: `translate(${n.value.left + d.value * o + d.value / 2}, ${n.value.bottom + f.value.xAxisFontSize * 1.5}), rotate(${e.value.style.layout.grid.xAxis.dataLabels.rotation})`,
|
|
@@ -1073,7 +1093,7 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
1073
1093
|
], 512)) : m("", !0),
|
|
1074
1094
|
e.value.type === "candlestick" ? (u(), i(S, { key: 4 }, [
|
|
1075
1095
|
p("g", null, [
|
|
1076
|
-
(u(!0), i(S, null,
|
|
1096
|
+
(u(!0), i(S, null, M(C.value, (l, o) => (u(), i("g", null, [
|
|
1077
1097
|
p("rect", {
|
|
1078
1098
|
x: l.open.x - e.value.style.layout.wick.strokeWidth / 2,
|
|
1079
1099
|
y: l.high.y,
|
|
@@ -1082,7 +1102,7 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
1082
1102
|
fill: e.value.style.layout.wick.stroke,
|
|
1083
1103
|
stroke: "none",
|
|
1084
1104
|
rx: e.value.style.layout.wick.strokeWidth / 2,
|
|
1085
|
-
class:
|
|
1105
|
+
class: V({ "vue-data-ui-transition": D.value && !h(N) })
|
|
1086
1106
|
}, null, 10, ka),
|
|
1087
1107
|
e.value.style.layout.wick.extremity.shape === "circle" ? (u(), i("g", wa, [
|
|
1088
1108
|
p("circle", {
|
|
@@ -1090,14 +1110,14 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
1090
1110
|
cy: l.high.y,
|
|
1091
1111
|
r: e.value.style.layout.wick.extremity.size === "auto" ? d.value / 20 : e.value.style.layout.wick.extremity.size,
|
|
1092
1112
|
fill: e.value.style.layout.wick.extremity.color,
|
|
1093
|
-
class:
|
|
1113
|
+
class: V({ "vue-data-ui-transition": D.value && !h(N) })
|
|
1094
1114
|
}, null, 10, Aa),
|
|
1095
1115
|
p("circle", {
|
|
1096
1116
|
cx: l.low.x,
|
|
1097
1117
|
cy: l.low.y,
|
|
1098
1118
|
r: e.value.style.layout.wick.extremity.size === "auto" ? d.value / 20 : e.value.style.layout.wick.extremity.size,
|
|
1099
1119
|
fill: e.value.style.layout.wick.extremity.color,
|
|
1100
|
-
class:
|
|
1120
|
+
class: V({ "vue-data-ui-transition": D.value && !h(N) })
|
|
1101
1121
|
}, null, 10, $a)
|
|
1102
1122
|
])) : m("", !0),
|
|
1103
1123
|
e.value.style.layout.wick.extremity.shape === "line" ? (u(), i("g", Ca, [
|
|
@@ -1109,7 +1129,7 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
1109
1129
|
rx: e.value.style.layout.wick.strokeWidth / 2,
|
|
1110
1130
|
fill: e.value.style.layout.wick.extremity.color,
|
|
1111
1131
|
stroke: "none",
|
|
1112
|
-
class:
|
|
1132
|
+
class: V({ "vue-data-ui-transition": D.value && !h(N) })
|
|
1113
1133
|
}, null, 10, _a),
|
|
1114
1134
|
p("rect", {
|
|
1115
1135
|
x: l.low.x - (e.value.style.layout.wick.extremity.size === "auto" ? d.value * e.value.style.layout.candle.widthRatio : e.value.style.layout.wick.extremity.size) / 2,
|
|
@@ -1119,13 +1139,13 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
1119
1139
|
fill: e.value.style.layout.wick.extremity.color,
|
|
1120
1140
|
stroke: "none",
|
|
1121
1141
|
rx: e.value.style.layout.wick.strokeWidth / 2,
|
|
1122
|
-
class:
|
|
1142
|
+
class: V({ "vue-data-ui-transition": D.value && !h(N) })
|
|
1123
1143
|
}, null, 10, za)
|
|
1124
1144
|
])) : m("", !0)
|
|
1125
1145
|
]))), 256))
|
|
1126
1146
|
]),
|
|
1127
1147
|
p("g", null, [
|
|
1128
|
-
(u(!0), i(S, null,
|
|
1148
|
+
(u(!0), i(S, null, M(C.value, (l, o) => (u(), i("rect", {
|
|
1129
1149
|
x: l.open.x - d.value / 2 + d.value * (1 - e.value.style.layout.candle.widthRatio) / 2,
|
|
1130
1150
|
y: l.isBullish ? l.close.y : l.open.y,
|
|
1131
1151
|
height: Math.abs(l.close.y - l.open.y) <= 0 ? 1e-4 : Math.abs(l.close.y - l.open.y),
|
|
@@ -1133,24 +1153,24 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
1133
1153
|
fill: e.value.style.layout.candle.gradient.underlayer,
|
|
1134
1154
|
rx: e.value.style.layout.candle.borderRadius,
|
|
1135
1155
|
stroke: "none",
|
|
1136
|
-
class:
|
|
1156
|
+
class: V({ "vue-data-ui-transition": D.value && !h(N) })
|
|
1137
1157
|
}, null, 10, Sa))), 256)),
|
|
1138
|
-
(u(!0), i(S, null,
|
|
1158
|
+
(u(!0), i(S, null, M(C.value, (l, o) => (u(), i("rect", {
|
|
1139
1159
|
x: l.open.x - d.value / 2 + d.value * (1 - e.value.style.layout.candle.widthRatio) / 2,
|
|
1140
1160
|
y: l.isBullish ? l.close.y : l.open.y,
|
|
1141
1161
|
height: Math.abs(l.close.y - l.open.y) <= 0 ? 1e-4 : Math.abs(l.close.y - l.open.y),
|
|
1142
1162
|
width: d.value * e.value.style.layout.candle.widthRatio <= 0 ? 1e-4 : d.value * e.value.style.layout.candle.widthRatio,
|
|
1143
|
-
fill: l.isBullish ? e.value.style.layout.candle.gradient.show ? `url(#bullish_gradient_${
|
|
1163
|
+
fill: l.isBullish ? e.value.style.layout.candle.gradient.show ? `url(#bullish_gradient_${R.value})` : e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.gradient.show ? `url(#bearish_gradient_${R.value})` : e.value.style.layout.candle.colors.bearish,
|
|
1144
1164
|
rx: e.value.style.layout.candle.borderRadius,
|
|
1145
1165
|
stroke: e.value.style.layout.candle.stroke,
|
|
1146
1166
|
"stroke-width": e.value.style.layout.candle.strokeWidth,
|
|
1147
1167
|
"stroke-linecap": "round",
|
|
1148
1168
|
"stroke-linejoin": "round",
|
|
1149
|
-
class:
|
|
1169
|
+
class: V({ "vue-data-ui-transition": D.value && !h(N) })
|
|
1150
1170
|
}, null, 10, La))), 256))
|
|
1151
1171
|
])
|
|
1152
1172
|
], 64)) : m("", !0),
|
|
1153
|
-
e.value.type === "ohlc" ? (u(!0), i(S, { key: 5 },
|
|
1173
|
+
e.value.type === "ohlc" ? (u(!0), i(S, { key: 5 }, M(C.value, (l, o) => (u(), i("g", null, [
|
|
1154
1174
|
p("path", {
|
|
1155
1175
|
d: `M ${l.high.x},${l.high.y} ${l.low.x},${l.low.y} M${l.open.x - Math.min(6, d.value / 3)},${l.open.y} ${l.open.x},${l.open.y} M${l.close.x},${l.close.y} ${l.close.x + Math.min(6, d.value / 3)},${l.close.y}`,
|
|
1156
1176
|
stroke: l.isBullish ? e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.colors.bearish,
|
|
@@ -1158,12 +1178,12 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
1158
1178
|
}, null, 8, Ta)
|
|
1159
1179
|
]))), 256)) : m("", !0),
|
|
1160
1180
|
p("g", null, [
|
|
1161
|
-
(u(!0), i(S, null,
|
|
1181
|
+
(u(!0), i(S, null, M(C.value, (l, o) => (u(), i("rect", {
|
|
1162
1182
|
x: n.value.left + o * d.value,
|
|
1163
1183
|
y: n.value.top,
|
|
1164
1184
|
height: n.value.height <= 0 ? 1e-4 : n.value.height,
|
|
1165
1185
|
width: d.value <= 0 ? 1e-4 : d.value,
|
|
1166
|
-
fill:
|
|
1186
|
+
fill: P.value === o || Ge.value === o ? h(Il)(e.value.style.layout.selector.color, e.value.style.layout.selector.opacity) : "transparent",
|
|
1167
1187
|
onMouseover: () => sl(o, l),
|
|
1168
1188
|
onMouseleave: () => ol(o, l),
|
|
1169
1189
|
onClick: () => al(o, l)
|
|
@@ -1174,7 +1194,7 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
1174
1194
|
"data-start": r.value.start,
|
|
1175
1195
|
"data-end": r.value.end
|
|
1176
1196
|
}), null, 16, Ia)) : m("", !0),
|
|
1177
|
-
|
|
1197
|
+
b(t.$slots, "svg", {
|
|
1178
1198
|
svg: {
|
|
1179
1199
|
...f.value,
|
|
1180
1200
|
data: C.value,
|
|
@@ -1183,9 +1203,9 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
1183
1203
|
}, void 0, !0)
|
|
1184
1204
|
], 14, ea)),
|
|
1185
1205
|
t.$slots.watermark ? (u(), i("div", Ma, [
|
|
1186
|
-
|
|
1206
|
+
b(t.$slots, "watermark", F(I({ isPrinting: h(Qe) || h(Je) })), void 0, !0)
|
|
1187
1207
|
])) : m("", !0),
|
|
1188
|
-
e.value.style.zoom.show && $.value > 6 && ge.value && dt.value ? (u(),
|
|
1208
|
+
e.value.style.zoom.show && $.value > 6 && ge.value && dt.value ? (u(), Q(Jl, {
|
|
1189
1209
|
key: 5,
|
|
1190
1210
|
ref_key: "chartSlicer",
|
|
1191
1211
|
ref: Z,
|
|
@@ -1207,20 +1227,20 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
1207
1227
|
labelRight: rt.value.end || "",
|
|
1208
1228
|
max: $.value,
|
|
1209
1229
|
min: 0,
|
|
1210
|
-
minimap: e.value.style.zoom.minimap.show ? h(
|
|
1230
|
+
minimap: e.value.style.zoom.minimap.show ? h(k).map((l) => l[2]) : [],
|
|
1211
1231
|
minimapCompact: e.value.style.zoom.minimap.compact,
|
|
1212
1232
|
minimapFrameColor: e.value.style.zoom.minimap.frameColor,
|
|
1213
1233
|
minimapIndicatorColor: e.value.style.zoom.minimap.indicatorColor,
|
|
1214
1234
|
minimapMerged: !1,
|
|
1215
1235
|
minimapSelectedColor: e.value.style.zoom.minimap.selectedColor,
|
|
1216
1236
|
minimapSelectedColorOpacity: e.value.style.zoom.minimap.selectedColorOpacity,
|
|
1217
|
-
minimapSelectedIndex:
|
|
1237
|
+
minimapSelectedIndex: P.value,
|
|
1218
1238
|
minimapSelectionRadius: 1,
|
|
1219
1239
|
preciseLabels: ll.value,
|
|
1220
1240
|
refreshEndPoint: e.value.style.zoom.endIndex !== null ? e.value.style.zoom.endIndex + 1 : $.value,
|
|
1221
1241
|
refreshStartPoint: e.value.style.zoom.startIndex !== null ? e.value.style.zoom.startIndex : 0,
|
|
1222
1242
|
selectColor: e.value.style.zoom.highlightColor,
|
|
1223
|
-
selectedSeries: h(
|
|
1243
|
+
selectedSeries: h(k),
|
|
1224
1244
|
smoothMinimap: !1,
|
|
1225
1245
|
start: r.value.start,
|
|
1226
1246
|
textColor: e.value.style.color,
|
|
@@ -1237,11 +1257,11 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
1237
1257
|
onFutureEnd: a[0] || (a[0] = (l) => lt("end", l)),
|
|
1238
1258
|
onFutureStart: a[1] || (a[1] = (l) => lt("start", l))
|
|
1239
1259
|
}, {
|
|
1240
|
-
"reset-action":
|
|
1241
|
-
|
|
1260
|
+
"reset-action": g(({ reset: l }) => [
|
|
1261
|
+
b(t.$slots, "reset-action", F(I({ reset: l })), void 0, !0)
|
|
1242
1262
|
]),
|
|
1243
|
-
slotMap:
|
|
1244
|
-
(u(!0), i(S, null,
|
|
1263
|
+
slotMap: g(({ height: l, unitW: o }) => [
|
|
1264
|
+
(u(!0), i(S, null, M(Qt.value({ minimapH: l, unitW: o }), (s, v) => (u(), i("g", null, [
|
|
1245
1265
|
p("path", {
|
|
1246
1266
|
d: `M ${s.high.x},${s.high.y} ${s.low.x},${s.low.y}`,
|
|
1247
1267
|
stroke: s.isBullish ? e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.colors.bearish,
|
|
@@ -1266,7 +1286,7 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
1266
1286
|
ref_key: "chartLegend",
|
|
1267
1287
|
ref: Ve
|
|
1268
1288
|
}, [
|
|
1269
|
-
|
|
1289
|
+
b(t.$slots, "legend", { legend: C.value }, void 0, !0)
|
|
1270
1290
|
], 512),
|
|
1271
1291
|
t.$slots.source ? (u(), i("div", {
|
|
1272
1292
|
key: 6,
|
|
@@ -1274,7 +1294,7 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
1274
1294
|
ref: Ue,
|
|
1275
1295
|
dir: "auto"
|
|
1276
1296
|
}, [
|
|
1277
|
-
|
|
1297
|
+
b(t.$slots, "source", {}, void 0, !0)
|
|
1278
1298
|
], 512)) : m("", !0),
|
|
1279
1299
|
Pe(h(Rt), {
|
|
1280
1300
|
show: L.value.showTooltip && be.value,
|
|
@@ -1287,30 +1307,30 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
1287
1307
|
backgroundOpacity: e.value.style.tooltip.backgroundOpacity,
|
|
1288
1308
|
position: e.value.style.tooltip.position,
|
|
1289
1309
|
offsetY: e.value.style.tooltip.offsetY,
|
|
1290
|
-
parent:
|
|
1310
|
+
parent: B.value,
|
|
1291
1311
|
content: ke.value,
|
|
1292
|
-
isFullscreen:
|
|
1312
|
+
isFullscreen: q.value,
|
|
1293
1313
|
isCustom: e.value.style.tooltip.customFormat && typeof e.value.style.tooltip.customFormat == "function",
|
|
1294
1314
|
smooth: e.value.style.tooltip.smooth,
|
|
1295
1315
|
backdropFilter: e.value.style.tooltip.backdropFilter,
|
|
1296
1316
|
smoothForce: e.value.style.tooltip.smoothForce,
|
|
1297
1317
|
smoothSnapThreshold: e.value.style.tooltip.smoothSnapThreshold
|
|
1298
1318
|
}, {
|
|
1299
|
-
"tooltip-before":
|
|
1300
|
-
|
|
1319
|
+
"tooltip-before": g(() => [
|
|
1320
|
+
b(t.$slots, "tooltip-before", F(I({ ...Te.value })), void 0, !0)
|
|
1301
1321
|
]),
|
|
1302
|
-
"tooltip-after":
|
|
1303
|
-
|
|
1322
|
+
"tooltip-after": g(() => [
|
|
1323
|
+
b(t.$slots, "tooltip-after", F(I({ ...Te.value })), void 0, !0)
|
|
1304
1324
|
]),
|
|
1305
1325
|
_: 3
|
|
1306
1326
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
1307
|
-
ge.value && e.value.userOptions.buttons.table ? (u(),
|
|
1327
|
+
ge.value && e.value.userOptions.buttons.table ? (u(), Q(_l(oe.value.component), At({ key: 7 }, oe.value.props, {
|
|
1308
1328
|
ref_key: "tableUnit",
|
|
1309
1329
|
ref: te,
|
|
1310
1330
|
onClose: pt
|
|
1311
1331
|
}), wt({
|
|
1312
|
-
content:
|
|
1313
|
-
(u(),
|
|
1332
|
+
content: g(() => [
|
|
1333
|
+
(u(), Q(h(Dt), {
|
|
1314
1334
|
key: `table_${Xe.value}`,
|
|
1315
1335
|
colNames: ye.value.colNames,
|
|
1316
1336
|
head: ye.value.head,
|
|
@@ -1320,10 +1340,10 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
1320
1340
|
withCloseButton: !e.value.table.useDialog,
|
|
1321
1341
|
onClose: pt
|
|
1322
1342
|
}, {
|
|
1323
|
-
th:
|
|
1343
|
+
th: g(({ th: l }) => [
|
|
1324
1344
|
$t(ie(l), 1)
|
|
1325
1345
|
]),
|
|
1326
|
-
td:
|
|
1346
|
+
td: g(({ td: l }) => [
|
|
1327
1347
|
p("div", { innerHTML: l }, null, 8, Da)
|
|
1328
1348
|
]),
|
|
1329
1349
|
_: 1
|
|
@@ -1333,14 +1353,14 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
1333
1353
|
}, [
|
|
1334
1354
|
e.value.table.useDialog ? {
|
|
1335
1355
|
name: "title",
|
|
1336
|
-
fn:
|
|
1356
|
+
fn: g(() => [
|
|
1337
1357
|
$t(ie(oe.value.title), 1)
|
|
1338
1358
|
]),
|
|
1339
1359
|
key: "0"
|
|
1340
1360
|
} : void 0,
|
|
1341
1361
|
e.value.table.useDialog ? {
|
|
1342
1362
|
name: "actions",
|
|
1343
|
-
fn:
|
|
1363
|
+
fn: g(() => [
|
|
1344
1364
|
p("button", {
|
|
1345
1365
|
tabindex: "0",
|
|
1346
1366
|
class: "vue-ui-user-options-button",
|
|
@@ -1355,10 +1375,10 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
1355
1375
|
key: "1"
|
|
1356
1376
|
} : void 0
|
|
1357
1377
|
]), 1040)) : m("", !0),
|
|
1358
|
-
h(
|
|
1378
|
+
h(N) ? (u(), Q(Vl, { key: 8 })) : m("", !0)
|
|
1359
1379
|
], 46, Zl));
|
|
1360
1380
|
}
|
|
1361
|
-
}, eo = /* @__PURE__ */ Kl(Pa, [["__scopeId", "data-v-
|
|
1381
|
+
}, eo = /* @__PURE__ */ Kl(Pa, [["__scopeId", "data-v-eec0be6e"]]);
|
|
1362
1382
|
export {
|
|
1363
1383
|
eo as default
|
|
1364
1384
|
};
|