vue-data-ui 2.16.5 → 2.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 +85 -55
- package/dist/{Arrow-D9B36pfx.js → Arrow-BAEkZGzL.js} +1 -1
- package/dist/{BaseDraggableDialog-DloHiD4h.js → BaseDraggableDialog-ChCkcmj_.js} +2 -2
- package/dist/{BaseIcon-DJab5OQD.js → BaseIcon-naqtCxVi.js} +1 -1
- package/dist/{ColorPicker-Br0rMnNb.js → ColorPicker-CfIPgxcj.js} +2 -2
- package/dist/{DataTable-B6MXw9cG.js → DataTable-D0VYDhfx.js} +2 -2
- package/dist/{Legend-DoxQwq_u.js → Legend-Bxlv67uY.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DhbyLXKW.js → NonSvgPenAndPaper-b_oVy-Dd.js} +3 -3
- package/dist/{PackageVersion-DCreTQN4.js → PackageVersion-5TR4ocqp.js} +1 -1
- package/dist/{PenAndPaper-BS60tkQN.js → PenAndPaper-D6AqipIO.js} +32 -32
- package/dist/{Shape-CrstrfQ9.js → Shape-DtFT5EJa.js} +1 -1
- package/dist/{Slicer-Bd0AkciG.js → Slicer-CL6-MRI6.js} +2 -2
- package/dist/{SparkTooltip-B4j_rvhG.js → SparkTooltip-Bcv1aoA5.js} +1 -1
- package/dist/{Title-BQLtfM0P.js → Title-B-2bV0SW.js} +1 -1
- package/dist/{Tooltip-5JmGL7sR.js → Tooltip-CoQnTnr-.js} +1 -1
- package/dist/{UserOptions-DMGkAAIO.js → UserOptions-Dd34lEKb.js} +137 -129
- package/dist/{dom-to-png-g3Q8kjna.js → dom-to-png-2AA0wHlX.js} +1 -1
- package/dist/img-Y_hYz-ZC.js +27 -0
- package/dist/{index-CZNLCg7T.js → index-pPGk-uhD.js} +1 -1
- package/dist/{pdf-DJVOD0cz.js → pdf-yfk3d1is.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +1098 -162
- package/dist/types/vue-data-ui.d.ts +1098 -162
- package/dist/{useNestedProp-BcPDA6Xr.js → useNestedProp-DjACxgdZ.js} +1 -1
- package/dist/{usePrinter-ButWuZVm.js → usePrinter-DDHcrl0A.js} +2 -2
- package/dist/vue-data-ui-CIWxgKjd.js +312 -0
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-o8P0DCbz.js → vue-ui-3d-bar-D5Wpdqfk.js} +244 -235
- package/dist/{vue-ui-accordion-CO4hmfuX.js → vue-ui-accordion-CVnA550V.js} +3 -3
- package/dist/{vue-ui-age-pyramid-C9T5bAEl.js → vue-ui-age-pyramid-BuAl-zC5.js} +167 -158
- package/dist/{vue-ui-annotator-CyOygaxE.js → vue-ui-annotator-gl2A20m3.js} +2 -2
- package/dist/{vue-ui-bullet-CPT1jdcz.js → vue-ui-bullet-D-VMKpwe.js} +131 -122
- package/dist/{vue-ui-candlestick-BfZTMGE0.js → vue-ui-candlestick-1r6YwiUV.js} +248 -239
- package/dist/{vue-ui-carousel-table-Bam9qqkj.js → vue-ui-carousel-table-B6UJoNtP.js} +17 -16
- package/dist/{vue-ui-chestnut-BAIMBFaQ.js → vue-ui-chestnut-DnlBYpC5.js} +257 -248
- package/dist/{vue-ui-chord-92E1yKdu.js → vue-ui-chord-D3kpzYjp.js} +229 -220
- package/dist/{vue-ui-circle-pack-DxXPqA7Z.js → vue-ui-circle-pack-CHgdpoYu.js} +200 -191
- package/dist/{vue-ui-cursor-Bvy_o8wb.js → vue-ui-cursor-63EAvElT.js} +2 -2
- package/dist/{vue-ui-dashboard--QRCkp7q.js → vue-ui-dashboard-Da6CPET-.js} +62 -62
- package/dist/{vue-ui-digits-Dl8RHLvt.js → vue-ui-digits-CA8pUKej.js} +2 -2
- package/dist/{vue-ui-donut-BxSTOFDt.js → vue-ui-donut-CKa7nFjt.js} +352 -343
- package/dist/{vue-ui-donut-evolution-DNzTtWnJ.js → vue-ui-donut-evolution-qeBEA4W8.js} +267 -258
- package/dist/{vue-ui-dumbbell-D01p3t3P.js → vue-ui-dumbbell-Bm0PvAKT.js} +146 -137
- package/dist/{vue-ui-flow-BMvaRn7E.js → vue-ui-flow-C2dqXvrU.js} +171 -162
- package/dist/{vue-ui-funnel-Bd_3wouw.js → vue-ui-funnel-Dvy5rRld.js} +134 -125
- package/dist/{vue-ui-galaxy-D4HJH1qq.js → vue-ui-galaxy-Y8LYp5n2.js} +181 -172
- package/dist/{vue-ui-gauge-CgIlk2pu.js → vue-ui-gauge-BBo0jWAP.js} +166 -157
- package/dist/{vue-ui-gizmo-C1-QYvsn.js → vue-ui-gizmo-DjXfTOWn.js} +3 -3
- package/dist/{vue-ui-heatmap-tUn_BlSp.js → vue-ui-heatmap-BbxRpltP.js} +242 -229
- package/dist/{vue-ui-history-plot-TfVRzyIK.js → vue-ui-history-plot-ChYf3Nvc.js} +218 -209
- package/dist/{vue-ui-kpi-BuL8MAMD.js → vue-ui-kpi-Vfc5-JnE.js} +3 -3
- package/dist/{vue-ui-mini-loader-DIeG36P8.js → vue-ui-mini-loader-C0-Nsz8K.js} +2 -2
- package/dist/{vue-ui-molecule-8RJNzWIw.js → vue-ui-molecule-B7Yu7vzF.js} +155 -146
- package/dist/{vue-ui-mood-radar-DftzG_Bi.js → vue-ui-mood-radar-C8JUTwNw.js} +130 -121
- package/dist/{vue-ui-nested-donuts-B9JC_0xK.js → vue-ui-nested-donuts-D0RgFifU.js} +255 -246
- package/dist/{vue-ui-onion-DTjaH-Bu.js → vue-ui-onion-D4U7TL_N.js} +150 -141
- package/dist/{vue-ui-parallel-coordinate-plot-DwqfVqFB.js → vue-ui-parallel-coordinate-plot-CXMT7Rjr.js} +194 -185
- package/dist/{vue-ui-quadrant-Cv3VWA6d.js → vue-ui-quadrant-B13pTVVZ.js} +248 -239
- package/dist/{vue-ui-quick-chart-imc0KrbF.js → vue-ui-quick-chart-C0UL4o63.js} +328 -319
- package/dist/{vue-ui-radar-kNySclk1.js → vue-ui-radar-XpdiXnhz.js} +165 -156
- package/dist/{vue-ui-rating-DBhEbgwD.js → vue-ui-rating-CM8ZrUb1.js} +2 -2
- package/dist/{vue-ui-relation-circle-BJQhS0aG.js → vue-ui-relation-circle-CYoFNekk.js} +145 -136
- package/dist/{vue-ui-ridgeline-Bhd1Uwm8.js → vue-ui-ridgeline-QUquE6ck.js} +198 -189
- package/dist/{vue-ui-rings-C_IT2mi0.js → vue-ui-rings-DwT0IfOh.js} +136 -127
- package/dist/{vue-ui-scatter-i8XZreWa.js → vue-ui-scatter-zDpy1udm.js} +207 -199
- package/dist/{vue-ui-skeleton-D9B8DY_k.js → vue-ui-skeleton-DJPjyNYn.js} +3 -3
- package/dist/{vue-ui-smiley-gmdnUWcW.js → vue-ui-smiley-DoDXl6k0.js} +2 -2
- package/dist/{vue-ui-spark-trend-DOF3vl8_.js → vue-ui-spark-trend-CniV6Cpr.js} +3 -3
- package/dist/{vue-ui-sparkbar-BVOVq3dA.js → vue-ui-sparkbar-Ds2ITgwn.js} +3 -3
- package/dist/{vue-ui-sparkgauge-DVO2Z0Rg.js → vue-ui-sparkgauge-CosfK-kw.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-CbV86a2i.js → vue-ui-sparkhistogram-C7O1wPAJ.js} +4 -4
- package/dist/{vue-ui-sparkline-jDNAVZu-.js → vue-ui-sparkline-B_iUj3F2.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-auT8CUXm.js → vue-ui-sparkstackbar-DBhWrysr.js} +3 -3
- package/dist/{vue-ui-stackbar-DmO02We2.js → vue-ui-stackbar-C3aV4IcL.js} +242 -233
- package/dist/{vue-ui-strip-plot-B25s87lj.js → vue-ui-strip-plot-Bvr1GAzH.js} +204 -195
- package/dist/{vue-ui-table-B4xbQdK_.js → vue-ui-table-DQKKRgyo.js} +3 -3
- package/dist/{vue-ui-table-heatmap-DI57VcvH.js → vue-ui-table-heatmap-Dyqj5XJC.js} +26 -25
- package/dist/{vue-ui-table-sparkline-DRgsZztN.js → vue-ui-table-sparkline-D4RubyLj.js} +8 -7
- package/dist/{vue-ui-thermometer-DkeT5DV_.js → vue-ui-thermometer-B0FKI5cG.js} +149 -140
- package/dist/{vue-ui-timer-uon_DLeH.js → vue-ui-timer-DUCBRIl-.js} +5 -5
- package/dist/{vue-ui-tiremarks-BV0qXRF2.js → vue-ui-tiremarks-CRt4UQZD.js} +114 -105
- package/dist/{vue-ui-treemap-DzJsjtz7.js → vue-ui-treemap-CWP5nYDx.js} +298 -289
- package/dist/{vue-ui-vertical-bar-CkLS_DGb.js → vue-ui-vertical-bar-C5fPYltO.js} +294 -285
- package/dist/{vue-ui-waffle-B2XiLGQx.js → vue-ui-waffle-BpWLlfpg.js} +190 -181
- package/dist/{vue-ui-wheel-BR1DDpKU.js → vue-ui-wheel-CTzuCroy.js} +96 -87
- package/dist/{vue-ui-word-cloud-BvOT6hu2.js → vue-ui-word-cloud-BPokdaP1.js} +212 -203
- package/dist/{vue-ui-world-BeP91MNX.js → vue-ui-world-CS6k-oil.js} +201 -192
- package/dist/{vue-ui-xy-BaR-ZDba.js → vue-ui-xy-CQ425kLR.js} +517 -510
- package/dist/{vue-ui-xy-canvas-B4ZmECCK.js → vue-ui-xy-canvas-D2IFwAr7.js} +364 -355
- package/package.json +1 -1
- package/dist/img-CTC5DLKL.js +0 -20
- package/dist/vue-data-ui-BB8Upnjm.js +0 -301
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { u as xt, c as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as Me } from "./useNestedProp-
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import
|
|
9
|
-
import { S as
|
|
10
|
-
import { u as
|
|
11
|
-
import
|
|
12
|
-
|
|
1
|
+
import { defineAsyncComponent as I, computed as f, ref as y, watch as Oe, shallowRef as Ne, onMounted as pt, onBeforeUnmount as ft, nextTick as D, createElementBlock as u, openBlock as s, unref as r, normalizeStyle as ie, normalizeClass as Pe, createBlock as T, createCommentVNode as h, createElementVNode as v, createVNode as Ve, createSlots as gt, withCtx as m, renderSlot as g, normalizeProps as L, guardReactiveProps as F, Fragment as R, renderList as O, toDisplayString as q, createTextVNode as mt } from "vue";
|
|
2
|
+
import { u as xt, c as bt, a as kt, C as J, o as wt, e as N, D as _t, v as W, f as $, X as Ct, w as K, s as $t, E as Ee, q as At, r as zt, x as St, y as It } from "./index-pPGk-uhD.js";
|
|
3
|
+
import { t as Tt, u as Lt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Me } from "./useNestedProp-DjACxgdZ.js";
|
|
5
|
+
import { u as Ft } from "./usePrinter-DDHcrl0A.js";
|
|
6
|
+
import { u as Rt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
|
+
import { u as Ot } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
+
import Nt from "./Title-B-2bV0SW.js";
|
|
9
|
+
import { S as Pt } from "./Slicer-CL6-MRI6.js";
|
|
10
|
+
import { u as Vt } from "./useTimeLabels-Mrr0jrpL.js";
|
|
11
|
+
import Et from "./img-Y_hYz-ZC.js";
|
|
12
|
+
import { _ as Mt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
|
+
const Ut = ["id"], Bt = ["xmlns", "viewBox"], Dt = ["x", "y", "width", "height"], Wt = { key: 1 }, Gt = ["id"], Ht = ["stop-color"], jt = ["stop-color"], Xt = ["stop-color"], Yt = ["id"], qt = ["stop-color"], Jt = ["stop-color"], Kt = ["stop-color"], Qt = { key: 0 }, Zt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], el = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], tl = { key: 1 }, ll = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], al = ["x", "y", "font-size", "fill", "font-weight"], ol = { key: 2 }, sl = ["transform", "text-anchor", "font-size", "fill", "font-weight"], ul = { key: 3 }, il = ["transform", "text-anchor", "font-size", "fill", "font-weight"], nl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], rl = { key: 0 }, dl = ["cx", "cy", "r", "fill"], vl = ["cx", "cy", "r", "fill"], yl = { key: 1 }, cl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], hl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], pl = ["x", "y", "height", "width", "fill", "rx"], fl = ["x", "y", "height", "width", "fill", "rx", "stroke", "stroke-width"], gl = ["x", "y", "height", "width", "fill", "onMouseover"], ml = {
|
|
13
14
|
key: 5,
|
|
14
15
|
class: "vue-data-ui-watermark"
|
|
15
|
-
},
|
|
16
|
+
}, xl = ["innerHTML"], bl = {
|
|
16
17
|
__name: "vue-ui-candlestick",
|
|
17
18
|
props: {
|
|
18
19
|
config: {
|
|
@@ -28,27 +29,27 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
|
|
|
28
29
|
}
|
|
29
30
|
}
|
|
30
31
|
},
|
|
31
|
-
setup(
|
|
32
|
-
const
|
|
33
|
-
get: () =>
|
|
32
|
+
setup(Ue, { expose: Be }) {
|
|
33
|
+
const De = I(() => import("./vue-ui-accordion-CVnA550V.js")), We = I(() => import("./DataTable-D0VYDhfx.js")), Ge = I(() => import("./PackageVersion-5TR4ocqp.js")), He = I(() => import("./PenAndPaper-D6AqipIO.js")), je = I(() => import("./vue-ui-skeleton-DJPjyNYn.js")), Xe = I(() => import("./Tooltip-CoQnTnr-.js")), Ye = I(() => import("./UserOptions-Dd34lEKb.js")), { vue_ui_candlestick: qe } = xt(), i = Ue, U = f(() => !!i.dataset && i.dataset.length), k = y(bt()), Je = y(null), Q = y(!1), Z = y(""), ee = y(void 0), ne = y(0), z = y(null), re = y(null), de = y(null), ve = y(null), ye = y(null), ce = y(null), G = y(0), he = y(0), pe = y(0), e = f({
|
|
34
|
+
get: () => xe(),
|
|
34
35
|
set: (t) => t
|
|
35
|
-
}), { userOptionsVisible: te, setUserOptionsVisibility: fe, keepUserOptionState: ge } =
|
|
36
|
-
function
|
|
36
|
+
}), { userOptionsVisible: te, setUserOptionsVisibility: fe, keepUserOptionState: ge } = Rt({ config: e.value }), { svgRef: me } = Ot({ config: e.value.style.title });
|
|
37
|
+
function xe() {
|
|
37
38
|
const t = Me({
|
|
38
39
|
userConfig: i.config,
|
|
39
|
-
defaultConfig:
|
|
40
|
+
defaultConfig: qe
|
|
40
41
|
});
|
|
41
|
-
let
|
|
42
|
-
return t.theme ?
|
|
42
|
+
let a = {};
|
|
43
|
+
return t.theme ? a = {
|
|
43
44
|
...Me({
|
|
44
|
-
userConfig:
|
|
45
|
+
userConfig: kt.vue_ui_candlestick[t.theme] || i.config,
|
|
45
46
|
defaultConfig: t
|
|
46
47
|
})
|
|
47
|
-
} :
|
|
48
|
+
} : a = t, i.config && J(i.config, "style.zoom.startIndex") ? a.style.zoom.startIndex = i.config.style.zoom.startIndex : a.style.zoom.startIndex = null, i.config && J(i.config, "style.zoom.endIndex") ? a.style.zoom.endIndex = i.config.style.zoom.endIndex : a.style.zoom.endIndex = null, i.config && J(i.config, "style.layout.grid.yAxis.scale.min") ? a.style.layout.grid.yAxis.scale.min = i.config.style.layout.grid.yAxis.scale.min : a.style.layout.grid.yAxis.scale.min = null, i.config && J(i.config, "style.layout.grid.yAxis.scale.max") ? a.style.layout.grid.yAxis.scale.max = i.config.style.layout.grid.yAxis.scale.max : a.style.layout.grid.yAxis.scale.max = null, a;
|
|
48
49
|
}
|
|
49
|
-
|
|
50
|
-
e.value =
|
|
51
|
-
}, { deep: !0 }),
|
|
50
|
+
Oe(() => i.config, (t) => {
|
|
51
|
+
e.value = xe(), te.value = !e.value.userOptions.showOnChartHover, be(), G.value += 1, pe.value += 1, he.value += 1, _.value.showTable = e.value.table.show, _.value.showTooltip = e.value.style.tooltip.show;
|
|
52
|
+
}, { deep: !0 }), Oe(() => i.dataset, (t) => {
|
|
52
53
|
p.value.start = 0, p.value.end = t.length, G.value += 1;
|
|
53
54
|
}, { deep: !0 });
|
|
54
55
|
const c = y({
|
|
@@ -56,18 +57,18 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
|
|
|
56
57
|
width: e.value.style.width,
|
|
57
58
|
xAxisFontSize: e.value.style.layout.grid.xAxis.dataLabels.fontSize,
|
|
58
59
|
yAxisFontSize: e.value.style.layout.grid.yAxis.dataLabels.fontSize
|
|
59
|
-
}), A =
|
|
60
|
-
|
|
60
|
+
}), A = Ne(null), P = Ne(null);
|
|
61
|
+
pt(() => {
|
|
61
62
|
be();
|
|
62
63
|
});
|
|
63
64
|
function be() {
|
|
64
|
-
if (
|
|
65
|
+
if (wt(i.dataset) && N({
|
|
65
66
|
componentName: "VueUiCandlestick",
|
|
66
67
|
type: "dataset"
|
|
67
68
|
}), e.value.responsive) {
|
|
68
|
-
const t =
|
|
69
|
-
const { width:
|
|
70
|
-
chart:
|
|
69
|
+
const t = Tt(() => {
|
|
70
|
+
const { width: a, height: l } = Lt({
|
|
71
|
+
chart: z.value,
|
|
71
72
|
title: e.value.style.title.text ? re.value : null,
|
|
72
73
|
slicer: ve.value,
|
|
73
74
|
legend: de.value,
|
|
@@ -75,14 +76,14 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
|
|
|
75
76
|
noTitle: ce.value
|
|
76
77
|
});
|
|
77
78
|
requestAnimationFrame(() => {
|
|
78
|
-
c.value.width =
|
|
79
|
-
relator: Math.min(
|
|
79
|
+
c.value.width = a, c.value.height = l, e.value.responsiveProportionalSizing ? (c.value.xAxisFontSize = Ee({
|
|
80
|
+
relator: Math.min(a, l),
|
|
80
81
|
adjuster: e.value.style.width,
|
|
81
82
|
source: e.value.style.layout.grid.xAxis.dataLabels.fontSize,
|
|
82
83
|
threshold: 6,
|
|
83
84
|
fallback: 6
|
|
84
|
-
}), c.value.yAxisFontSize =
|
|
85
|
-
relator: Math.min(
|
|
85
|
+
}), c.value.yAxisFontSize = Ee({
|
|
86
|
+
relator: Math.min(a, l),
|
|
86
87
|
adjuster: e.value.style.width,
|
|
87
88
|
source: e.value.style.layout.grid.yAxis.dataLabels.fontSize,
|
|
88
89
|
threshold: 6,
|
|
@@ -90,67 +91,67 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
|
|
|
90
91
|
})) : (c.value.xAxisFontSize = e.value.style.layout.grid.xAxis.dataLabels.fontSize, c.value.yAxisFontSize = e.value.style.layout.grid.yAxis.dataLabels.fontSize);
|
|
91
92
|
});
|
|
92
93
|
});
|
|
93
|
-
A.value && (
|
|
94
|
+
A.value && (P.value && A.value.unobserve(P.value), A.value.disconnect()), A.value = new ResizeObserver(t), P.value = z.value.parentNode, A.value.observe(P.value);
|
|
94
95
|
}
|
|
95
96
|
Se();
|
|
96
97
|
}
|
|
97
|
-
|
|
98
|
-
A.value && (
|
|
98
|
+
ft(() => {
|
|
99
|
+
A.value && (P.value && A.value.unobserve(P.value), A.value.disconnect());
|
|
99
100
|
});
|
|
100
|
-
const { isPrinting: ke, isImaging: we, generatePdf: _e, generateImage: Ce } =
|
|
101
|
+
const { isPrinting: ke, isImaging: we, generatePdf: _e, generateImage: Ce } = Ft({
|
|
101
102
|
elementId: `vue-ui-candlestick_${k.value}`,
|
|
102
103
|
fileName: e.value.style.title.text || "vue-ui-candlestick",
|
|
103
104
|
options: e.value.userOptions.print
|
|
104
|
-
}),
|
|
105
|
+
}), Ke = f(() => e.value.userOptions.show && !e.value.style.title.text), _ = y({
|
|
105
106
|
showTable: e.value.table.show,
|
|
106
107
|
showTooltip: e.value.style.tooltip.show
|
|
107
108
|
}), n = f(() => {
|
|
108
|
-
const { top: t, right:
|
|
109
|
+
const { top: t, right: a, bottom: l, left: o } = e.value.style.layout.padding;
|
|
109
110
|
return {
|
|
110
111
|
top: t,
|
|
111
|
-
right: c.value.width -
|
|
112
|
-
left:
|
|
112
|
+
right: c.value.width - a,
|
|
113
|
+
left: o,
|
|
113
114
|
bottom: c.value.height - l,
|
|
114
|
-
width: c.value.width -
|
|
115
|
+
width: c.value.width - o - a,
|
|
115
116
|
height: c.value.height - t - l
|
|
116
117
|
};
|
|
117
|
-
}),
|
|
118
|
+
}), B = f(() => i.dataset.length), p = y({
|
|
118
119
|
start: 0,
|
|
119
|
-
end:
|
|
120
|
-
}), $e = f(() => i.dataset.map((t,
|
|
120
|
+
end: B.value
|
|
121
|
+
}), $e = f(() => i.dataset.map((t, a) => ({
|
|
121
122
|
...t,
|
|
122
|
-
absoluteIndex:
|
|
123
|
-
})).slice(p.value.start, p.value.end)), le = f(() => (i.dataset.forEach((t,
|
|
124
|
-
[null, void 0].includes(t[0]) &&
|
|
123
|
+
absoluteIndex: a
|
|
124
|
+
})).slice(p.value.start, p.value.end)), le = f(() => (i.dataset.forEach((t, a) => {
|
|
125
|
+
[null, void 0].includes(t[0]) && N({
|
|
125
126
|
componentName: "VueUiCandlestick",
|
|
126
127
|
type: "datasetAttribute",
|
|
127
128
|
property: "period (index 0)",
|
|
128
|
-
index:
|
|
129
|
-
}), [null, void 0].includes(t[1]) &&
|
|
129
|
+
index: a
|
|
130
|
+
}), [null, void 0].includes(t[1]) && N({
|
|
130
131
|
componentName: "VueUiCandlestick",
|
|
131
132
|
type: "datasetAttribute",
|
|
132
133
|
property: "open (index 1)",
|
|
133
|
-
index:
|
|
134
|
-
}), [null, void 0].includes(t[2]) &&
|
|
134
|
+
index: a
|
|
135
|
+
}), [null, void 0].includes(t[2]) && N({
|
|
135
136
|
componentName: "VueUiCandlestick",
|
|
136
137
|
type: "datasetAttribute",
|
|
137
138
|
property: "high (index 2)",
|
|
138
|
-
index:
|
|
139
|
-
}), [null, void 0].includes(t[3]) &&
|
|
139
|
+
index: a
|
|
140
|
+
}), [null, void 0].includes(t[3]) && N({
|
|
140
141
|
componentName: "VueUiCandlestick",
|
|
141
142
|
type: "datasetAttribute",
|
|
142
143
|
property: "low (index 3)",
|
|
143
|
-
index:
|
|
144
|
-
}), [null, void 0].includes(t[4]) &&
|
|
144
|
+
index: a
|
|
145
|
+
}), [null, void 0].includes(t[4]) && N({
|
|
145
146
|
componentName: "VueUiCandlestick",
|
|
146
147
|
type: "datasetAttribute",
|
|
147
148
|
property: "last (index 4)",
|
|
148
|
-
index:
|
|
149
|
-
}), [null, void 0].includes(t[5]) &&
|
|
149
|
+
index: a
|
|
150
|
+
}), [null, void 0].includes(t[5]) && N({
|
|
150
151
|
componentName: "VueUiCandlestick",
|
|
151
152
|
type: "datasetAttribute",
|
|
152
153
|
property: "volume (index 5)",
|
|
153
|
-
index:
|
|
154
|
+
index: a
|
|
154
155
|
});
|
|
155
156
|
}), $e.value.map((t) => ({
|
|
156
157
|
absoluteIndex: t.absoluteIndex,
|
|
@@ -161,167 +162,167 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
|
|
|
161
162
|
last: t[4],
|
|
162
163
|
volume: t[5]
|
|
163
164
|
})))), d = f(() => n.value.width / $e.value.length), Ae = f(() => {
|
|
164
|
-
const t = e.value.style.layout.grid.yAxis.scale.max === null ? Math.max(...le.value.map((l) => l.high)) : e.value.style.layout.grid.yAxis.scale.max,
|
|
165
|
+
const t = e.value.style.layout.grid.yAxis.scale.max === null ? Math.max(...le.value.map((l) => l.high)) : e.value.style.layout.grid.yAxis.scale.max, a = e.value.style.layout.grid.yAxis.scale.min === null ? 0 : e.value.style.layout.grid.yAxis.scale.min;
|
|
165
166
|
return {
|
|
166
167
|
max: t,
|
|
167
|
-
min:
|
|
168
|
+
min: a
|
|
168
169
|
};
|
|
169
|
-
}), w = f(() =>
|
|
170
|
-
function H(t,
|
|
170
|
+
}), w = f(() => _t(Ae.value.min, Ae.value.max, e.value.style.layout.grid.yAxis.dataLabels.steps));
|
|
171
|
+
function H(t, a) {
|
|
171
172
|
return {
|
|
172
173
|
...t,
|
|
173
|
-
x: W(n.value.left +
|
|
174
|
+
x: W(n.value.left + a * d.value + d.value / 2),
|
|
174
175
|
y: W(n.value.top + (1 - (t - w.value.min) / (w.value.max - w.value.min)) * n.value.height),
|
|
175
176
|
value: W(t)
|
|
176
177
|
};
|
|
177
178
|
}
|
|
178
|
-
const
|
|
179
|
-
const l = H(t.open,
|
|
179
|
+
const x = f(() => le.value.map((t, a) => {
|
|
180
|
+
const l = H(t.open, a), o = H(t.high, a), C = H(t.low, a), b = H(t.last, a), S = t.last > t.open;
|
|
180
181
|
return {
|
|
181
182
|
period: t.period,
|
|
182
183
|
open: l,
|
|
183
|
-
high:
|
|
184
|
+
high: o,
|
|
184
185
|
low: C,
|
|
185
186
|
last: b,
|
|
186
187
|
volume: t.volume,
|
|
187
|
-
isBullish:
|
|
188
|
+
isBullish: S,
|
|
188
189
|
absoluteIndex: t.absoluteIndex
|
|
189
190
|
};
|
|
190
191
|
}));
|
|
191
|
-
function
|
|
192
|
+
function Qe(t) {
|
|
192
193
|
return W((t - w.value.min) / (w.value.max - w.value.min));
|
|
193
194
|
}
|
|
194
|
-
const
|
|
195
|
-
y: n.value.bottom - n.value.height *
|
|
195
|
+
const Ze = f(() => w.value.ticks.map((t) => ({
|
|
196
|
+
y: n.value.bottom - n.value.height * Qe(t),
|
|
196
197
|
value: W(t)
|
|
197
|
-
}))),
|
|
198
|
+
}))), et = f(() => le.value.map((t) => t.period)), V = f(() => Vt({
|
|
198
199
|
values: i.dataset.map((t) => t[0]),
|
|
199
200
|
maxDatapoints: i.dataset.length,
|
|
200
201
|
formatter: e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter,
|
|
201
202
|
start: p.value.start,
|
|
202
203
|
end: p.value.end
|
|
203
204
|
})), ze = f(() => e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? {
|
|
204
|
-
start:
|
|
205
|
-
end:
|
|
205
|
+
start: V.value.find((t) => t.absoluteIndex === p.value.start).text,
|
|
206
|
+
end: V.value.find((t) => t.absoluteIndex === p.value.end - 1).text
|
|
206
207
|
} : {
|
|
207
208
|
start: i.dataset[p.value.start] ? i.dataset[p.value.start][0] : i.dataset[0][0],
|
|
208
209
|
end: i.dataset[p.value.end - 1] ? i.dataset[p.value.end - 1][0] : i.dataset.at(-1)[0]
|
|
209
|
-
}),
|
|
210
|
-
function
|
|
211
|
-
ee.value = t,
|
|
212
|
-
datapoint:
|
|
210
|
+
}), ae = y(null);
|
|
211
|
+
function tt(t, a) {
|
|
212
|
+
ee.value = t, ae.value = {
|
|
213
|
+
datapoint: a,
|
|
213
214
|
seriesIndex: t,
|
|
214
|
-
series:
|
|
215
|
+
series: x.value,
|
|
215
216
|
config: e.value
|
|
216
217
|
};
|
|
217
218
|
const l = e.value.style.tooltip.customFormat;
|
|
218
|
-
if (
|
|
219
|
+
if (St(l) && It(() => l({
|
|
219
220
|
seriesIndex: t,
|
|
220
|
-
datapoint:
|
|
221
|
-
series:
|
|
221
|
+
datapoint: a,
|
|
222
|
+
series: x.value,
|
|
222
223
|
config: e.value
|
|
223
224
|
})))
|
|
224
225
|
Z.value = l({
|
|
225
226
|
seriesIndex: t,
|
|
226
|
-
datapoint:
|
|
227
|
-
series:
|
|
227
|
+
datapoint: a,
|
|
228
|
+
series: x.value,
|
|
228
229
|
config: e.value
|
|
229
230
|
});
|
|
230
231
|
else if (e.value.style.tooltip.show) {
|
|
231
|
-
let
|
|
232
|
-
const { period: C, open: b, high:
|
|
233
|
-
|
|
234
|
-
fill="${e.value.style.layout.candle.gradient.show ?
|
|
235
|
-
const
|
|
232
|
+
let o = "";
|
|
233
|
+
const { period: C, open: b, high: S, low: se, last: ue, volume: Y, isBullish: Re } = x.value[t], { period: kl, open: st, high: ut, low: it, last: nt, volume: rt } = e.value.translations, dt = e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? V.value[t].text : C;
|
|
234
|
+
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}"
|
|
235
|
+
fill="${e.value.style.layout.candle.gradient.show ? Re ? `url(#bullish_gradient_${k.value})` : `url(#bearish_gradient_${k.value})` : Re ? e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.colors.bearish}"/></svg>${dt}</div>`, o += `${rt} : <b>${isNaN(Y) ? "-" : Number(Y.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}">`;
|
|
236
|
+
const vt = $({
|
|
236
237
|
p: e.value.style.tooltip.prefix,
|
|
237
238
|
v: b.value,
|
|
238
239
|
s: e.value.style.tooltip.suffix,
|
|
239
240
|
r: e.value.style.tooltip.roundingValue
|
|
240
241
|
});
|
|
241
|
-
|
|
242
|
-
const
|
|
242
|
+
o += `<div>${st}: <b>${vt}</b></div>`;
|
|
243
|
+
const yt = $({
|
|
243
244
|
p: e.value.style.tooltip.prefix,
|
|
244
|
-
v:
|
|
245
|
+
v: S.value,
|
|
245
246
|
s: e.value.style.tooltip.suffix,
|
|
246
247
|
r: e.value.style.tooltip.roundingValue
|
|
247
248
|
});
|
|
248
|
-
|
|
249
|
-
const
|
|
249
|
+
o += `<div>${ut}: <b>${yt}</b></div>`;
|
|
250
|
+
const ct = $({
|
|
250
251
|
p: e.value.style.tooltip.prefix,
|
|
251
252
|
v: se.value,
|
|
252
253
|
s: e.value.style.tooltip.suffix,
|
|
253
254
|
r: e.value.style.tooltip.roundingValue
|
|
254
255
|
});
|
|
255
|
-
|
|
256
|
-
const
|
|
256
|
+
o += `<div>${it}: <b>${ct}</b></div>`;
|
|
257
|
+
const ht = $({
|
|
257
258
|
p: e.value.style.tooltip.prefix,
|
|
258
259
|
v: ue.value,
|
|
259
260
|
s: e.value.style.tooltip.suffix,
|
|
260
261
|
r: e.value.style.tooltip.roundingValue
|
|
261
262
|
});
|
|
262
|
-
|
|
263
|
+
o += `<div>${nt}: <b>${ht}</b></div>`, o += "</div>", Z.value = `<div style="text-align:right">${o}</div>`;
|
|
263
264
|
}
|
|
264
265
|
Q.value = !0;
|
|
265
266
|
}
|
|
266
|
-
function
|
|
267
|
+
function lt() {
|
|
267
268
|
Se();
|
|
268
269
|
}
|
|
269
|
-
const
|
|
270
|
+
const E = y(null);
|
|
270
271
|
async function Se() {
|
|
271
|
-
(e.value.style.zoom.startIndex !== null || e.value.style.zoom.endIndex !== null) &&
|
|
272
|
+
(e.value.style.zoom.startIndex !== null || e.value.style.zoom.endIndex !== null) && E.value ? (e.value.style.zoom.startIndex !== null && (await D(), await D(), E.value && E.value.setStartValue(e.value.style.zoom.startIndex)), e.value.style.zoom.endIndex !== null && (await D(), await D(), E.value && E.value.setEndValue(at(e.value.style.zoom.endIndex + 1)))) : (p.value = {
|
|
272
273
|
start: 0,
|
|
273
|
-
end:
|
|
274
|
+
end: B.value
|
|
274
275
|
}, G.value += 1);
|
|
275
276
|
}
|
|
276
|
-
function
|
|
277
|
-
const
|
|
278
|
-
return t >
|
|
277
|
+
function at(t) {
|
|
278
|
+
const a = B.value;
|
|
279
|
+
return t > a ? a : t < 0 || e.value.style.zoom.startIndex !== null && t < e.value.style.zoom.startIndex ? e.value.style.zoom.startIndex !== null ? e.value.style.zoom.startIndex + 1 : 1 : t;
|
|
279
280
|
}
|
|
280
281
|
function Ie(t = null) {
|
|
281
282
|
D(() => {
|
|
282
|
-
const
|
|
283
|
-
e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ?
|
|
283
|
+
const a = [e.value.translations.period, e.value.translations.open, e.value.translations.high, e.value.translations.low, e.value.translations.last, e.value.translations.volume], l = x.value.map((b, S) => [
|
|
284
|
+
e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? V.value[S].text : b.period,
|
|
284
285
|
b.open.value,
|
|
285
286
|
b.high.value,
|
|
286
287
|
b.low.value,
|
|
287
288
|
b.last.value,
|
|
288
289
|
b.volume
|
|
289
|
-
]),
|
|
290
|
-
t ? t(C) :
|
|
290
|
+
]), o = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([a]).concat(l), C = At(o);
|
|
291
|
+
t ? t(C) : zt({ csvContent: C, title: e.value.style.title.text || "vue-ui-candlestick" });
|
|
291
292
|
});
|
|
292
293
|
}
|
|
293
294
|
const j = f(() => {
|
|
294
|
-
const t =
|
|
295
|
-
const b = e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ?
|
|
295
|
+
const t = x.value.map((o, C) => {
|
|
296
|
+
const b = e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? V.value[C].text : o.period, S = $({
|
|
296
297
|
p: e.value.table.td.prefix,
|
|
297
|
-
v:
|
|
298
|
+
v: o.open.value,
|
|
298
299
|
s: e.value.table.td.suffix,
|
|
299
300
|
r: e.value.table.td.roundingValue
|
|
300
301
|
}), se = $({
|
|
301
302
|
p: e.value.table.td.prefix,
|
|
302
|
-
v:
|
|
303
|
+
v: o.high.value,
|
|
303
304
|
s: e.value.table.td.suffix,
|
|
304
305
|
r: e.value.table.td.roundingValue
|
|
305
306
|
}), ue = $({
|
|
306
307
|
p: e.value.table.td.prefix,
|
|
307
|
-
v:
|
|
308
|
+
v: o.low.value,
|
|
308
309
|
s: e.value.table.td.suffix,
|
|
309
310
|
r: e.value.table.td.roundingValue
|
|
310
311
|
}), Y = $({
|
|
311
312
|
p: e.value.table.td.prefix,
|
|
312
|
-
v:
|
|
313
|
+
v: o.last.value,
|
|
313
314
|
s: e.value.table.td.suffix,
|
|
314
315
|
r: e.value.table.td.roundingValue
|
|
315
316
|
});
|
|
316
317
|
return [
|
|
317
|
-
`<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 ?
|
|
318
|
-
|
|
318
|
+
`<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_${k.value}` : `url(#bearish_gradient_${k.value})` : o.isBullish ? e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.colors.bearish}"/></svg> ${b}`,
|
|
319
|
+
S,
|
|
319
320
|
se,
|
|
320
321
|
ue,
|
|
321
322
|
Y,
|
|
322
|
-
`${isNaN(
|
|
323
|
+
`${isNaN(o.volume) ? "-" : o.volume.toLocaleString()}`
|
|
323
324
|
];
|
|
324
|
-
}),
|
|
325
|
+
}), a = {
|
|
325
326
|
th: {
|
|
326
327
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
327
328
|
color: e.value.table.th.color,
|
|
@@ -341,46 +342,53 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
|
|
|
341
342
|
e.value.translations.last,
|
|
342
343
|
e.value.translations.volume
|
|
343
344
|
];
|
|
344
|
-
return { head: l, body: t, config:
|
|
345
|
+
return { head: l, body: t, config: a, colNames: l };
|
|
345
346
|
}), M = y(!1);
|
|
346
|
-
function
|
|
347
|
+
function Te(t) {
|
|
347
348
|
M.value = t, ne.value += 1;
|
|
348
349
|
}
|
|
349
|
-
function
|
|
350
|
+
function Le() {
|
|
350
351
|
_.value.showTable = !_.value.showTable;
|
|
351
352
|
}
|
|
352
|
-
function
|
|
353
|
+
function Fe() {
|
|
353
354
|
_.value.showTooltip = !_.value.showTooltip;
|
|
354
355
|
}
|
|
355
356
|
const X = y(!1);
|
|
356
|
-
function
|
|
357
|
+
function oe() {
|
|
357
358
|
X.value = !X.value;
|
|
358
359
|
}
|
|
360
|
+
async function ot({ scale: t = 2 } = {}) {
|
|
361
|
+
if (!z.value) return;
|
|
362
|
+
const { imageUri: a, base64: l } = await Et({ domElement: z.value, base64: !0, img: !0, scale: t });
|
|
363
|
+
return { imageUri: a, base64: l };
|
|
364
|
+
}
|
|
359
365
|
return Be({
|
|
366
|
+
getImage: ot,
|
|
360
367
|
generatePdf: _e,
|
|
361
368
|
generateCsv: Ie,
|
|
362
369
|
generateImage: Ce,
|
|
363
|
-
toggleTable:
|
|
364
|
-
toggleTooltip:
|
|
365
|
-
toggleAnnotator:
|
|
366
|
-
|
|
370
|
+
toggleTable: Le,
|
|
371
|
+
toggleTooltip: Fe,
|
|
372
|
+
toggleAnnotator: oe,
|
|
373
|
+
toggleFullscreen: Te
|
|
374
|
+
}), (t, a) => (s(), u("div", {
|
|
367
375
|
ref_key: "candlestickChart",
|
|
368
|
-
ref:
|
|
369
|
-
class:
|
|
376
|
+
ref: z,
|
|
377
|
+
class: Pe(`vue-ui-candlestick ${M.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
370
378
|
style: ie(`position:relative;font-family:${e.value.style.fontFamily}; text-align:center;background:${e.value.style.backgroundColor}; ${e.value.responsive ? "height: 100%" : ""}`),
|
|
371
379
|
id: `vue-ui-candlestick_${k.value}`,
|
|
372
|
-
onMouseenter:
|
|
373
|
-
onMouseleave:
|
|
380
|
+
onMouseenter: a[4] || (a[4] = () => r(fe)(!0)),
|
|
381
|
+
onMouseleave: a[5] || (a[5] = () => r(fe)(!1))
|
|
374
382
|
}, [
|
|
375
|
-
e.value.userOptions.buttons.annotator ? (s(),
|
|
383
|
+
e.value.userOptions.buttons.annotator ? (s(), T(r(He), {
|
|
376
384
|
key: 0,
|
|
377
|
-
svgRef: r(
|
|
385
|
+
svgRef: r(me),
|
|
378
386
|
backgroundColor: e.value.style.backgroundColor,
|
|
379
387
|
color: e.value.style.color,
|
|
380
388
|
active: X.value,
|
|
381
|
-
onClose:
|
|
389
|
+
onClose: oe
|
|
382
390
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : h("", !0),
|
|
383
|
-
|
|
391
|
+
Ke.value ? (s(), u("div", {
|
|
384
392
|
key: 1,
|
|
385
393
|
ref_key: "noTitle",
|
|
386
394
|
ref: ce,
|
|
@@ -393,7 +401,7 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
|
|
|
393
401
|
ref: re,
|
|
394
402
|
style: "width:100%;background:transparent"
|
|
395
403
|
}, [
|
|
396
|
-
(s(),
|
|
404
|
+
(s(), T(Nt, {
|
|
397
405
|
key: `title_${pe.value}`,
|
|
398
406
|
config: {
|
|
399
407
|
title: {
|
|
@@ -407,9 +415,9 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
|
|
|
407
415
|
}
|
|
408
416
|
}, null, 8, ["config"]))
|
|
409
417
|
], 512)) : h("", !0),
|
|
410
|
-
e.value.userOptions.show &&
|
|
418
|
+
e.value.userOptions.show && U.value && (r(ge) || r(te)) ? (s(), T(r(Ye), {
|
|
411
419
|
ref_key: "details",
|
|
412
|
-
ref:
|
|
420
|
+
ref: Je,
|
|
413
421
|
key: `user_options_${ne.value}`,
|
|
414
422
|
backgroundColor: e.value.style.backgroundColor,
|
|
415
423
|
color: e.value.style.color,
|
|
@@ -425,89 +433,90 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
|
|
|
425
433
|
isFullscreen: M.value,
|
|
426
434
|
isTooltip: _.value.showTooltip,
|
|
427
435
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
428
|
-
chartElement:
|
|
436
|
+
chartElement: z.value,
|
|
429
437
|
position: e.value.userOptions.position,
|
|
430
438
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
431
439
|
isAnnotation: X.value,
|
|
432
440
|
callbacks: e.value.userOptions.callbacks,
|
|
433
|
-
|
|
441
|
+
printScale: e.value.userOptions.print.scale,
|
|
442
|
+
onToggleFullscreen: Te,
|
|
434
443
|
onGeneratePdf: r(_e),
|
|
435
444
|
onGenerateCsv: Ie,
|
|
436
445
|
onGenerateImage: r(Ce),
|
|
437
|
-
onToggleTable:
|
|
438
|
-
onToggleTooltip:
|
|
439
|
-
onToggleAnnotator:
|
|
446
|
+
onToggleTable: Le,
|
|
447
|
+
onToggleTooltip: Fe,
|
|
448
|
+
onToggleAnnotator: oe,
|
|
440
449
|
style: ie({
|
|
441
450
|
visibility: r(ge) ? r(te) ? "visible" : "hidden" : "visible"
|
|
442
451
|
})
|
|
443
|
-
},
|
|
452
|
+
}, gt({ _: 2 }, [
|
|
444
453
|
t.$slots.menuIcon ? {
|
|
445
454
|
name: "menuIcon",
|
|
446
|
-
fn:
|
|
447
|
-
g(t.$slots, "menuIcon",
|
|
455
|
+
fn: m(({ isOpen: l, color: o }) => [
|
|
456
|
+
g(t.$slots, "menuIcon", L(F({ isOpen: l, color: o })), void 0, !0)
|
|
448
457
|
]),
|
|
449
458
|
key: "0"
|
|
450
459
|
} : void 0,
|
|
451
460
|
t.$slots.optionTooltip ? {
|
|
452
461
|
name: "optionTooltip",
|
|
453
|
-
fn:
|
|
462
|
+
fn: m(() => [
|
|
454
463
|
g(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
455
464
|
]),
|
|
456
465
|
key: "1"
|
|
457
466
|
} : void 0,
|
|
458
467
|
t.$slots.optionPdf ? {
|
|
459
468
|
name: "optionPdf",
|
|
460
|
-
fn:
|
|
469
|
+
fn: m(() => [
|
|
461
470
|
g(t.$slots, "optionPdf", {}, void 0, !0)
|
|
462
471
|
]),
|
|
463
472
|
key: "2"
|
|
464
473
|
} : void 0,
|
|
465
474
|
t.$slots.optionCsv ? {
|
|
466
475
|
name: "optionCsv",
|
|
467
|
-
fn:
|
|
476
|
+
fn: m(() => [
|
|
468
477
|
g(t.$slots, "optionCsv", {}, void 0, !0)
|
|
469
478
|
]),
|
|
470
479
|
key: "3"
|
|
471
480
|
} : void 0,
|
|
472
481
|
t.$slots.optionImg ? {
|
|
473
482
|
name: "optionImg",
|
|
474
|
-
fn:
|
|
483
|
+
fn: m(() => [
|
|
475
484
|
g(t.$slots, "optionImg", {}, void 0, !0)
|
|
476
485
|
]),
|
|
477
486
|
key: "4"
|
|
478
487
|
} : void 0,
|
|
479
488
|
t.$slots.optionTable ? {
|
|
480
489
|
name: "optionTable",
|
|
481
|
-
fn:
|
|
490
|
+
fn: m(() => [
|
|
482
491
|
g(t.$slots, "optionTable", {}, void 0, !0)
|
|
483
492
|
]),
|
|
484
493
|
key: "5"
|
|
485
494
|
} : void 0,
|
|
486
495
|
t.$slots.optionFullscreen ? {
|
|
487
496
|
name: "optionFullscreen",
|
|
488
|
-
fn:
|
|
489
|
-
g(t.$slots, "optionFullscreen",
|
|
497
|
+
fn: m(({ toggleFullscreen: l, isFullscreen: o }) => [
|
|
498
|
+
g(t.$slots, "optionFullscreen", L(F({ toggleFullscreen: l, isFullscreen: o })), void 0, !0)
|
|
490
499
|
]),
|
|
491
500
|
key: "6"
|
|
492
501
|
} : void 0,
|
|
493
502
|
t.$slots.optionAnnotator ? {
|
|
494
503
|
name: "optionAnnotator",
|
|
495
|
-
fn:
|
|
496
|
-
g(t.$slots, "optionAnnotator",
|
|
504
|
+
fn: m(({ toggleAnnotator: l, isAnnotator: o }) => [
|
|
505
|
+
g(t.$slots, "optionAnnotator", L(F({ toggleAnnotator: l, isAnnotator: o })), void 0, !0)
|
|
497
506
|
]),
|
|
498
507
|
key: "7"
|
|
499
508
|
} : void 0
|
|
500
|
-
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) : h("", !0),
|
|
501
|
-
|
|
509
|
+
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : h("", !0),
|
|
510
|
+
U.value ? (s(), u("svg", {
|
|
502
511
|
key: 4,
|
|
503
512
|
ref_key: "svgRef",
|
|
504
|
-
ref:
|
|
505
|
-
xmlns: r(
|
|
506
|
-
class:
|
|
513
|
+
ref: me,
|
|
514
|
+
xmlns: r(Ct),
|
|
515
|
+
class: Pe({ "vue-data-ui-fullscreen--on": M.value, "vue-data-ui-fulscreen--off": !M.value }),
|
|
507
516
|
viewBox: `0 0 ${c.value.width <= 0 ? 10 : c.value.width} ${c.value.height <= 0 ? 10 : c.value.height}`,
|
|
508
517
|
style: ie(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.color}`)
|
|
509
518
|
}, [
|
|
510
|
-
|
|
519
|
+
Ve(r(Ge)),
|
|
511
520
|
t.$slots["chart-background"] ? (s(), u("foreignObject", {
|
|
512
521
|
key: 0,
|
|
513
522
|
x: n.value.left,
|
|
@@ -519,8 +528,8 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
|
|
|
519
528
|
}
|
|
520
529
|
}, [
|
|
521
530
|
g(t.$slots, "chart-background", {}, void 0, !0)
|
|
522
|
-
], 8,
|
|
523
|
-
|
|
531
|
+
], 8, Dt)) : h("", !0),
|
|
532
|
+
x.value.length > 0 ? (s(), u("g", Wt, [
|
|
524
533
|
v("defs", null, [
|
|
525
534
|
v("linearGradient", {
|
|
526
535
|
id: `bearish_gradient_${k.value}`,
|
|
@@ -530,16 +539,16 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
|
|
|
530
539
|
v("stop", {
|
|
531
540
|
offset: "0%",
|
|
532
541
|
"stop-color": e.value.style.layout.candle.colors.bearish
|
|
533
|
-
}, null, 8,
|
|
542
|
+
}, null, 8, Ht),
|
|
534
543
|
v("stop", {
|
|
535
544
|
offset: "50%",
|
|
536
545
|
"stop-color": `${r(K)(e.value.style.layout.candle.colors.bearish, 0.02)}DE`
|
|
537
|
-
}, null, 8,
|
|
546
|
+
}, null, 8, jt),
|
|
538
547
|
v("stop", {
|
|
539
548
|
offset: "100%",
|
|
540
549
|
"stop-color": `${r(K)(e.value.style.layout.candle.colors.bearish, 0.05)}66`
|
|
541
|
-
}, null, 8,
|
|
542
|
-
], 8,
|
|
550
|
+
}, null, 8, Xt)
|
|
551
|
+
], 8, Gt),
|
|
543
552
|
v("linearGradient", {
|
|
544
553
|
id: `bullish_gradient_${k.value}`,
|
|
545
554
|
x2: "0%",
|
|
@@ -548,18 +557,18 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
|
|
|
548
557
|
v("stop", {
|
|
549
558
|
offset: "0%",
|
|
550
559
|
"stop-color": e.value.style.layout.candle.colors.bullish
|
|
551
|
-
}, null, 8,
|
|
560
|
+
}, null, 8, qt),
|
|
552
561
|
v("stop", {
|
|
553
562
|
offset: "50%",
|
|
554
563
|
"stop-color": `${r(K)(e.value.style.layout.candle.colors.bullish, 0.02)}DE`
|
|
555
|
-
}, null, 8,
|
|
564
|
+
}, null, 8, Jt),
|
|
556
565
|
v("stop", {
|
|
557
566
|
offset: "100%",
|
|
558
567
|
"stop-color": `${r(K)(e.value.style.layout.candle.colors.bullish, 0.05)}66`
|
|
559
|
-
}, null, 8,
|
|
560
|
-
], 8,
|
|
568
|
+
}, null, 8, Kt)
|
|
569
|
+
], 8, Yt)
|
|
561
570
|
]),
|
|
562
|
-
e.value.style.layout.grid.show ? (s(), u("g",
|
|
571
|
+
e.value.style.layout.grid.show ? (s(), u("g", Qt, [
|
|
563
572
|
v("line", {
|
|
564
573
|
x1: n.value.left,
|
|
565
574
|
x2: n.value.left,
|
|
@@ -568,7 +577,7 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
|
|
|
568
577
|
stroke: e.value.style.layout.grid.stroke,
|
|
569
578
|
"stroke-width": e.value.style.layout.grid.strokeWidth,
|
|
570
579
|
"stroke-linecap": "round"
|
|
571
|
-
}, null, 8,
|
|
580
|
+
}, null, 8, Zt),
|
|
572
581
|
v("line", {
|
|
573
582
|
x1: n.value.left,
|
|
574
583
|
x2: n.value.right,
|
|
@@ -577,10 +586,10 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
|
|
|
577
586
|
stroke: e.value.style.layout.grid.stroke,
|
|
578
587
|
"stroke-width": e.value.style.layout.grid.strokeWidth,
|
|
579
588
|
"stroke-linecap": "round"
|
|
580
|
-
}, null, 8,
|
|
589
|
+
}, null, 8, el)
|
|
581
590
|
])) : h("", !0),
|
|
582
|
-
e.value.style.layout.grid.yAxis.dataLabels.show ? (s(), u("g",
|
|
583
|
-
(s(!0), u(
|
|
591
|
+
e.value.style.layout.grid.yAxis.dataLabels.show ? (s(), u("g", tl, [
|
|
592
|
+
(s(!0), u(R, null, O(Ze.value, (l, o) => (s(), u("g", null, [
|
|
584
593
|
l.value >= w.value.min && l.value <= w.value.max ? (s(), u("line", {
|
|
585
594
|
key: 0,
|
|
586
595
|
x1: n.value.left,
|
|
@@ -590,7 +599,7 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
|
|
|
590
599
|
stroke: e.value.style.layout.grid.stroke,
|
|
591
600
|
"stroke-width": e.value.style.layout.grid.strokeWidth,
|
|
592
601
|
"stroke-linecap": "round"
|
|
593
|
-
}, null, 8,
|
|
602
|
+
}, null, 8, ll)) : h("", !0),
|
|
594
603
|
l.value >= w.value.min && l.value <= w.value.max ? (s(), u("text", {
|
|
595
604
|
key: 1,
|
|
596
605
|
x: n.value.left - 8 + e.value.style.layout.grid.yAxis.dataLabels.offsetX,
|
|
@@ -604,33 +613,33 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
|
|
|
604
613
|
v: l.value,
|
|
605
614
|
s: e.value.style.layout.grid.yAxis.dataLabels.suffix,
|
|
606
615
|
r: e.value.style.layout.grid.yAxis.dataLabels.roundingValue
|
|
607
|
-
})), 9,
|
|
616
|
+
})), 9, al)) : h("", !0)
|
|
608
617
|
]))), 256))
|
|
609
618
|
])) : h("", !0),
|
|
610
|
-
e.value.style.layout.grid.xAxis.dataLabels.show && !e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? (s(), u("g",
|
|
611
|
-
(s(!0), u(
|
|
619
|
+
e.value.style.layout.grid.xAxis.dataLabels.show && !e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? (s(), u("g", ol, [
|
|
620
|
+
(s(!0), u(R, null, O(et.value, (l, o) => (s(), u("g", null, [
|
|
612
621
|
v("text", {
|
|
613
|
-
transform: `translate(${n.value.left + d.value *
|
|
622
|
+
transform: `translate(${n.value.left + d.value * o + d.value / 2}, ${n.value.bottom + c.value.xAxisFontSize * 2 + e.value.style.layout.grid.xAxis.dataLabels.offsetY}), rotate(${e.value.style.layout.grid.xAxis.dataLabels.rotation})`,
|
|
614
623
|
"text-anchor": e.value.style.layout.grid.xAxis.dataLabels.rotation > 0 ? "start" : e.value.style.layout.grid.xAxis.dataLabels.rotation < 0 ? "end" : "middle",
|
|
615
624
|
"font-size": c.value.xAxisFontSize,
|
|
616
625
|
fill: e.value.style.layout.grid.xAxis.dataLabels.color,
|
|
617
626
|
"font-weight": e.value.style.layout.grid.xAxis.dataLabels.bold ? "bold" : "normal"
|
|
618
|
-
}, q(l), 9,
|
|
627
|
+
}, q(l), 9, sl)
|
|
619
628
|
]))), 256))
|
|
620
629
|
])) : h("", !0),
|
|
621
|
-
e.value.style.layout.grid.xAxis.dataLabels.show && e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? (s(), u("g",
|
|
622
|
-
(s(!0), u(
|
|
630
|
+
e.value.style.layout.grid.xAxis.dataLabels.show && e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? (s(), u("g", ul, [
|
|
631
|
+
(s(!0), u(R, null, O(V.value, (l, o) => (s(), u("g", null, [
|
|
623
632
|
v("text", {
|
|
624
|
-
transform: `translate(${n.value.left + d.value *
|
|
633
|
+
transform: `translate(${n.value.left + d.value * o + d.value / 2}, ${n.value.bottom + c.value.xAxisFontSize * 2 + e.value.style.layout.grid.xAxis.dataLabels.offsetY}), rotate(${e.value.style.layout.grid.xAxis.dataLabels.rotation})`,
|
|
625
634
|
"text-anchor": e.value.style.layout.grid.xAxis.dataLabels.rotation > 0 ? "start" : e.value.style.layout.grid.xAxis.dataLabels.rotation < 0 ? "end" : "middle",
|
|
626
635
|
"font-size": c.value.xAxisFontSize,
|
|
627
636
|
fill: e.value.style.layout.grid.xAxis.dataLabels.color,
|
|
628
637
|
"font-weight": e.value.style.layout.grid.xAxis.dataLabels.bold ? "bold" : "normal"
|
|
629
|
-
}, q(l.text), 9,
|
|
638
|
+
}, q(l.text), 9, il)
|
|
630
639
|
]))), 256))
|
|
631
640
|
])) : h("", !0),
|
|
632
641
|
v("g", null, [
|
|
633
|
-
(s(!0), u(
|
|
642
|
+
(s(!0), u(R, null, O(x.value, (l, o) => (s(), u("g", null, [
|
|
634
643
|
v("line", {
|
|
635
644
|
x1: l.open.x,
|
|
636
645
|
x2: l.open.x,
|
|
@@ -639,22 +648,22 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
|
|
|
639
648
|
stroke: e.value.style.layout.wick.stroke,
|
|
640
649
|
"stroke-width": e.value.style.layout.wick.strokeWidth,
|
|
641
650
|
"stroke-linecap": "round"
|
|
642
|
-
}, null, 8,
|
|
643
|
-
e.value.style.layout.wick.extremity.shape === "circle" ? (s(), u("g",
|
|
651
|
+
}, null, 8, nl),
|
|
652
|
+
e.value.style.layout.wick.extremity.shape === "circle" ? (s(), u("g", rl, [
|
|
644
653
|
v("circle", {
|
|
645
654
|
cx: l.high.x,
|
|
646
655
|
cy: l.high.y,
|
|
647
656
|
r: e.value.style.layout.wick.extremity.size === "auto" ? d.value / 20 : e.value.style.layout.wick.extremity.size,
|
|
648
657
|
fill: e.value.style.layout.wick.extremity.color
|
|
649
|
-
}, null, 8,
|
|
658
|
+
}, null, 8, dl),
|
|
650
659
|
v("circle", {
|
|
651
660
|
cx: l.low.x,
|
|
652
661
|
cy: l.low.y,
|
|
653
662
|
r: e.value.style.layout.wick.extremity.size === "auto" ? d.value / 20 : e.value.style.layout.wick.extremity.size,
|
|
654
663
|
fill: e.value.style.layout.wick.extremity.color
|
|
655
|
-
}, null, 8,
|
|
664
|
+
}, null, 8, vl)
|
|
656
665
|
])) : h("", !0),
|
|
657
|
-
e.value.style.layout.wick.extremity.shape === "line" ? (s(), u("g",
|
|
666
|
+
e.value.style.layout.wick.extremity.shape === "line" ? (s(), u("g", yl, [
|
|
658
667
|
v("line", {
|
|
659
668
|
x1: l.high.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,
|
|
660
669
|
x2: l.high.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,
|
|
@@ -663,7 +672,7 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
|
|
|
663
672
|
stroke: e.value.style.layout.wick.extremity.color,
|
|
664
673
|
"stroke-width": e.value.style.layout.wick.strokeWidth,
|
|
665
674
|
"stroke-linecap": "round"
|
|
666
|
-
}, null, 8,
|
|
675
|
+
}, null, 8, cl),
|
|
667
676
|
v("line", {
|
|
668
677
|
x1: 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,
|
|
669
678
|
x2: 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,
|
|
@@ -672,12 +681,12 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
|
|
|
672
681
|
stroke: e.value.style.layout.wick.extremity.color,
|
|
673
682
|
"stroke-width": e.value.style.layout.wick.strokeWidth,
|
|
674
683
|
"stroke-linecap": "round"
|
|
675
|
-
}, null, 8,
|
|
684
|
+
}, null, 8, hl)
|
|
676
685
|
])) : h("", !0)
|
|
677
686
|
]))), 256))
|
|
678
687
|
]),
|
|
679
688
|
v("g", null, [
|
|
680
|
-
(s(!0), u(
|
|
689
|
+
(s(!0), u(R, null, O(x.value, (l, o) => (s(), u("rect", {
|
|
681
690
|
x: l.open.x - d.value / 2 + d.value * (1 - e.value.style.layout.candle.widthRatio) / 2,
|
|
682
691
|
y: l.isBullish ? l.last.y : l.open.y,
|
|
683
692
|
height: Math.abs(l.last.y - l.open.y) <= 0 ? 1e-4 : Math.abs(l.last.y - l.open.y),
|
|
@@ -685,8 +694,8 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
|
|
|
685
694
|
fill: e.value.style.layout.candle.gradient.underlayer,
|
|
686
695
|
rx: e.value.style.layout.candle.borderRadius,
|
|
687
696
|
stroke: "none"
|
|
688
|
-
}, null, 8,
|
|
689
|
-
(s(!0), u(
|
|
697
|
+
}, null, 8, pl))), 256)),
|
|
698
|
+
(s(!0), u(R, null, O(x.value, (l, o) => (s(), u("rect", {
|
|
690
699
|
x: l.open.x - d.value / 2 + d.value * (1 - e.value.style.layout.candle.widthRatio) / 2,
|
|
691
700
|
y: l.isBullish ? l.last.y : l.open.y,
|
|
692
701
|
height: Math.abs(l.last.y - l.open.y) <= 0 ? 1e-4 : Math.abs(l.last.y - l.open.y),
|
|
@@ -697,28 +706,28 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
|
|
|
697
706
|
"stroke-width": e.value.style.layout.candle.strokeWidth,
|
|
698
707
|
"stroke-linecap": "round",
|
|
699
708
|
"stroke-linejoin": "round"
|
|
700
|
-
}, null, 8,
|
|
709
|
+
}, null, 8, fl))), 256))
|
|
701
710
|
]),
|
|
702
711
|
v("g", null, [
|
|
703
|
-
(s(!0), u(
|
|
704
|
-
x: n.value.left +
|
|
712
|
+
(s(!0), u(R, null, O(x.value, (l, o) => (s(), u("rect", {
|
|
713
|
+
x: n.value.left + o * d.value,
|
|
705
714
|
y: n.value.top,
|
|
706
715
|
height: n.value.height <= 0 ? 1e-4 : n.value.height,
|
|
707
716
|
width: d.value <= 0 ? 1e-4 : d.value,
|
|
708
|
-
fill: ee.value ===
|
|
709
|
-
onMouseover: (C) =>
|
|
710
|
-
onMouseleave:
|
|
717
|
+
fill: ee.value === o ? r($t)(e.value.style.layout.selector.color, e.value.style.layout.selector.opacity) : "transparent",
|
|
718
|
+
onMouseover: (C) => tt(o, l),
|
|
719
|
+
onMouseleave: a[0] || (a[0] = (C) => {
|
|
711
720
|
ee.value = void 0, Q.value = !1;
|
|
712
721
|
})
|
|
713
|
-
}, null, 40,
|
|
722
|
+
}, null, 40, gl))), 256))
|
|
714
723
|
])
|
|
715
724
|
])) : h("", !0),
|
|
716
725
|
g(t.$slots, "svg", { svg: c.value }, void 0, !0)
|
|
717
|
-
], 14,
|
|
718
|
-
t.$slots.watermark ? (s(), u("div",
|
|
719
|
-
g(t.$slots, "watermark",
|
|
726
|
+
], 14, Bt)) : h("", !0),
|
|
727
|
+
t.$slots.watermark ? (s(), u("div", ml, [
|
|
728
|
+
g(t.$slots, "watermark", L(F({ isPrinting: r(ke) || r(we) })), void 0, !0)
|
|
720
729
|
])) : h("", !0),
|
|
721
|
-
|
|
730
|
+
U.value ? h("", !0) : (s(), T(r(je), {
|
|
722
731
|
key: 6,
|
|
723
732
|
config: {
|
|
724
733
|
type: "candlesticks",
|
|
@@ -735,14 +744,14 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
|
|
|
735
744
|
}
|
|
736
745
|
}
|
|
737
746
|
}, null, 8, ["config"])),
|
|
738
|
-
e.value.style.zoom.show &&
|
|
747
|
+
e.value.style.zoom.show && U.value ? (s(), u("div", {
|
|
739
748
|
key: 7,
|
|
740
749
|
ref_key: "chartSlicer",
|
|
741
750
|
ref: ve
|
|
742
751
|
}, [
|
|
743
|
-
(s(),
|
|
752
|
+
(s(), T(Pt, {
|
|
744
753
|
ref_key: "slicerComponent",
|
|
745
|
-
ref:
|
|
754
|
+
ref: E,
|
|
746
755
|
key: `slicer_${G.value}`,
|
|
747
756
|
background: e.value.style.zoom.color,
|
|
748
757
|
borderColor: e.value.style.backgroundColor,
|
|
@@ -753,22 +762,22 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
|
|
|
753
762
|
textColor: e.value.style.color,
|
|
754
763
|
inputColor: e.value.style.zoom.color,
|
|
755
764
|
selectColor: e.value.style.zoom.highlightColor,
|
|
756
|
-
max:
|
|
765
|
+
max: B.value,
|
|
757
766
|
min: 0,
|
|
758
767
|
valueStart: p.value.start,
|
|
759
768
|
valueEnd: p.value.end,
|
|
760
769
|
start: p.value.start,
|
|
761
|
-
"onUpdate:start":
|
|
770
|
+
"onUpdate:start": a[1] || (a[1] = (l) => p.value.start = l),
|
|
762
771
|
end: p.value.end,
|
|
763
|
-
"onUpdate:end":
|
|
772
|
+
"onUpdate:end": a[2] || (a[2] = (l) => p.value.end = l),
|
|
764
773
|
refreshStartPoint: e.value.style.zoom.startIndex !== null ? e.value.style.zoom.startIndex : 0,
|
|
765
|
-
refreshEndPoint: e.value.style.zoom.endIndex !== null ? e.value.style.zoom.endIndex + 1 :
|
|
774
|
+
refreshEndPoint: e.value.style.zoom.endIndex !== null ? e.value.style.zoom.endIndex + 1 : B.value,
|
|
766
775
|
enableRangeHandles: e.value.style.zoom.enableRangeHandles,
|
|
767
776
|
enableSelectionDrag: e.value.style.zoom.enableSelectionDrag,
|
|
768
|
-
onReset:
|
|
777
|
+
onReset: lt
|
|
769
778
|
}, {
|
|
770
|
-
"reset-action":
|
|
771
|
-
g(t.$slots, "reset-action",
|
|
779
|
+
"reset-action": m(({ reset: l }) => [
|
|
780
|
+
g(t.$slots, "reset-action", L(F({ reset: l })), void 0, !0)
|
|
772
781
|
]),
|
|
773
782
|
_: 3
|
|
774
783
|
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"]))
|
|
@@ -777,7 +786,7 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
|
|
|
777
786
|
ref_key: "chartLegend",
|
|
778
787
|
ref: de
|
|
779
788
|
}, [
|
|
780
|
-
g(t.$slots, "legend", { legend:
|
|
789
|
+
g(t.$slots, "legend", { legend: x.value }, void 0, !0)
|
|
781
790
|
], 512),
|
|
782
791
|
t.$slots.source ? (s(), u("div", {
|
|
783
792
|
key: 8,
|
|
@@ -787,7 +796,7 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
|
|
|
787
796
|
}, [
|
|
788
797
|
g(t.$slots, "source", {}, void 0, !0)
|
|
789
798
|
], 512)) : h("", !0),
|
|
790
|
-
|
|
799
|
+
Ve(r(Xe), {
|
|
791
800
|
show: _.value.showTooltip && Q.value,
|
|
792
801
|
backgroundColor: e.value.style.tooltip.backgroundColor,
|
|
793
802
|
color: e.value.style.tooltip.color,
|
|
@@ -798,20 +807,20 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
|
|
|
798
807
|
backgroundOpacity: e.value.style.tooltip.backgroundOpacity,
|
|
799
808
|
position: e.value.style.tooltip.position,
|
|
800
809
|
offsetY: e.value.style.tooltip.offsetY,
|
|
801
|
-
parent:
|
|
810
|
+
parent: z.value,
|
|
802
811
|
content: Z.value,
|
|
803
812
|
isFullscreen: M.value,
|
|
804
813
|
isCustom: e.value.style.tooltip.customFormat && typeof e.value.style.tooltip.customFormat == "function"
|
|
805
814
|
}, {
|
|
806
|
-
"tooltip-before":
|
|
807
|
-
g(t.$slots, "tooltip-before",
|
|
815
|
+
"tooltip-before": m(() => [
|
|
816
|
+
g(t.$slots, "tooltip-before", L(F({ ...ae.value })), void 0, !0)
|
|
808
817
|
]),
|
|
809
|
-
"tooltip-after":
|
|
810
|
-
g(t.$slots, "tooltip-after",
|
|
818
|
+
"tooltip-after": m(() => [
|
|
819
|
+
g(t.$slots, "tooltip-after", L(F({ ...ae.value })), void 0, !0)
|
|
811
820
|
]),
|
|
812
821
|
_: 3
|
|
813
822
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
814
|
-
|
|
823
|
+
U.value ? (s(), T(r(De), {
|
|
815
824
|
key: 9,
|
|
816
825
|
hideDetails: "",
|
|
817
826
|
config: {
|
|
@@ -827,30 +836,30 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
|
|
|
827
836
|
}
|
|
828
837
|
}
|
|
829
838
|
}, {
|
|
830
|
-
content:
|
|
831
|
-
(s(),
|
|
839
|
+
content: m(() => [
|
|
840
|
+
(s(), T(r(We), {
|
|
832
841
|
key: `table_${he.value}`,
|
|
833
842
|
colNames: j.value.colNames,
|
|
834
843
|
head: j.value.head,
|
|
835
844
|
body: j.value.body,
|
|
836
845
|
config: j.value.config,
|
|
837
846
|
title: `${e.value.style.title.text}${e.value.style.title.subtitle.text ? ` : ${e.value.style.title.subtitle.text}` : ""}`,
|
|
838
|
-
onClose:
|
|
847
|
+
onClose: a[3] || (a[3] = (l) => _.value.showTable = !1)
|
|
839
848
|
}, {
|
|
840
|
-
th:
|
|
841
|
-
|
|
849
|
+
th: m(({ th: l }) => [
|
|
850
|
+
mt(q(l), 1)
|
|
842
851
|
]),
|
|
843
|
-
td:
|
|
844
|
-
v("div", { innerHTML: l }, null, 8,
|
|
852
|
+
td: m(({ td: l }) => [
|
|
853
|
+
v("div", { innerHTML: l }, null, 8, xl)
|
|
845
854
|
]),
|
|
846
855
|
_: 1
|
|
847
856
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
848
857
|
]),
|
|
849
858
|
_: 1
|
|
850
859
|
}, 8, ["config"])) : h("", !0)
|
|
851
|
-
], 46,
|
|
860
|
+
], 46, Ut));
|
|
852
861
|
}
|
|
853
|
-
},
|
|
862
|
+
}, Ol = /* @__PURE__ */ Mt(bl, [["__scopeId", "data-v-f8f4ab18"]]);
|
|
854
863
|
export {
|
|
855
|
-
|
|
864
|
+
Ol as default
|
|
856
865
|
};
|