vue-data-ui 2.12.6 → 2.12.7-beta.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/dist/{Arrow-Bd9ZVBnX.js → Arrow-CmqjRRUl.js} +1 -1
- package/dist/BaseDraggableDialog-BMlyvt7E.js +180 -0
- package/dist/{BaseIcon-CNbwMh_-.js → BaseIcon-CZdMutjs.js} +1 -1
- package/dist/{ColorPicker-B_FoQwtO.js → ColorPicker-DvVKgyAl.js} +23 -24
- package/dist/{DataTable-Rajdtaf6.js → DataTable-Cv9CIz-a.js} +11 -11
- package/dist/{Legend-BxtDQCIv.js → Legend-DFunFf8i.js} +8 -8
- package/dist/NonSvgPenAndPaper-pVuHj6_A.js +467 -0
- package/dist/PackageVersion-CLY-udAA.js +10 -0
- package/dist/{PenAndPaper-BkP3J-Ft.js → PenAndPaper-B9na2mbr.js} +8 -10
- package/dist/RecursiveCircles-Dn3TGoL6.js +96 -0
- package/dist/RecursiveLabels-NTMB9w5C.js +49 -0
- package/dist/RecursiveLinks-ld_gDZH4.js +64 -0
- package/dist/{Shape-C69a0f29.js → Shape-D3w9qas1.js} +2 -2
- package/dist/{Slicer-7qFdY-bT.js → Slicer-ncY8krrM.js} +2 -2
- package/dist/SparkTooltip-CwThutH2.js +68 -0
- package/dist/{Title-CzaCeCOm.js → Title-B5qqUI3M.js} +2 -2
- package/dist/Tooltip-C9rxJ-Ru.js +149 -0
- package/dist/{usePrinter-C5bLp34h.js → UserOptions-Ddy6CuLC.js} +172 -231
- package/dist/{dom-to-png-Bm0D0yPL.js → dom-to-png-DDlooC9r.js} +1 -1
- package/dist/{img-BN9AzqUr.js → img-m9g7lR5d.js} +1 -1
- package/dist/{index-BFzQMJda.js → index-BiHmNd1-.js} +21 -21
- package/dist/{pdf-uTbs813M.js → pdf-BqM953uL.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/useChartAccessibility-9icAAmYg.js +12 -0
- package/dist/useMouse-AicQS8Vf.js +13 -0
- package/dist/{useNestedProp-v7KPpwuP.js → useNestedProp-tRqS0ZAM.js} +1 -1
- package/dist/{usePanZoom-CUkkqW81.js → usePanZoom-BQMvRXEQ.js} +16 -17
- package/dist/usePrinter-CRCbl1WG.js +53 -0
- package/dist/vClickOutside-C6WiFswA.js +13 -0
- package/dist/{vue-data-ui-D1k8FeRp.js → vue-data-ui-D9uTDt73.js} +63 -63
- package/dist/vue-data-ui.js +19 -19
- package/dist/{vue-ui-3d-bar-DoklA4DT.js → vue-ui-3d-bar-rtuSc8FS.js} +397 -402
- package/dist/{vue-ui-accordion-BUz4JIIX.js → vue-ui-accordion-CmCs2yR2.js} +3 -3
- package/dist/{vue-ui-age-pyramid-4kyBq-Dy.js → vue-ui-age-pyramid-BrzMSiyu.js} +215 -218
- package/dist/{vue-ui-annotator-Bq1ZeFfb.js → vue-ui-annotator-CYxmTpf6.js} +2 -2
- package/dist/{vue-ui-bullet-DU10avvA.js → vue-ui-bullet-D25qNQfb.js} +137 -140
- package/dist/{vue-ui-candlestick-BI1t3flz.js → vue-ui-candlestick-BuerNa-r.js} +265 -271
- package/dist/{vue-ui-carousel-table-VowLf_oc.js → vue-ui-carousel-table-aN0HLsOO.js} +137 -137
- package/dist/{vue-ui-chestnut-BHjV3d94.js → vue-ui-chestnut-oUj2ocsZ.js} +397 -400
- package/dist/{vue-ui-chord-CPr7r-2_.js → vue-ui-chord-C4evlXYB.js} +356 -365
- package/dist/vue-ui-circle-pack-CWrNiKTY.js +656 -0
- package/dist/{vue-ui-cursor-C9teAbVI.js → vue-ui-cursor-DgpSttlt.js} +2 -2
- package/dist/{vue-ui-dashboard-CwDYB8tP.js → vue-ui-dashboard-BN2ha1Eh.js} +62 -62
- package/dist/{vue-ui-digits-CHmkL0hn.js → vue-ui-digits-BhjAxXgm.js} +2 -2
- package/dist/vue-ui-donut-D3_z61HI.js +1291 -0
- package/dist/vue-ui-donut-evolution-oKtmZPx4.js +864 -0
- package/dist/{vue-ui-dumbbell-DTKLLd1N.js → vue-ui-dumbbell-C8Lokx-F.js} +265 -270
- package/dist/{vue-ui-flow-BLBhsU2n.js → vue-ui-flow-BVRkH0PS.js} +291 -300
- package/dist/{vue-ui-funnel-CIrWdeBk.js → vue-ui-funnel-DFxcmAB5.js} +216 -219
- package/dist/{vue-ui-galaxy-ByhKyIV4.js → vue-ui-galaxy-CGE0hlBC.js} +227 -235
- package/dist/{vue-ui-gauge-BbfBMpng.js → vue-ui-gauge-B48eMvOR.js} +240 -243
- package/dist/{vue-ui-gizmo-BM-_QfHM.js → vue-ui-gizmo-zTKNpjvv.js} +57 -58
- package/dist/{vue-ui-heatmap-BA4z4hsw.js → vue-ui-heatmap-UNfTt8SM.js} +239 -242
- package/dist/{vue-ui-history-plot-8vM_IUy8.js → vue-ui-history-plot-CbCWmvtg.js} +257 -262
- package/dist/{vue-ui-kpi-D57QLK6A.js → vue-ui-kpi-Drf_lrlh.js} +29 -30
- package/dist/{vue-ui-mini-loader-CR4c-xJQ.js → vue-ui-mini-loader-DU3G6BVs.js} +2 -2
- package/dist/vue-ui-molecule-B5MOXYEA.js +580 -0
- package/dist/{vue-ui-mood-radar-Brc9cxoD.js → vue-ui-mood-radar-CC_CVLvn.js} +180 -186
- package/dist/{vue-ui-nested-donuts-W3Z5F--L.js → vue-ui-nested-donuts-D_H962kk.js} +366 -374
- package/dist/{vue-ui-onion-BNBlGNlF.js → vue-ui-onion-P8k6T724.js} +252 -258
- package/dist/{vue-ui-parallel-coordinate-plot-B5G3jyvg.js → vue-ui-parallel-coordinate-plot-B5Los0vX.js} +296 -303
- package/dist/{vue-ui-quadrant-CUy9mVIA.js → vue-ui-quadrant-B3wzCTxK.js} +402 -409
- package/dist/{vue-ui-quick-chart-D4_8mRXU.js → vue-ui-quick-chart-oucj6hXk.js} +611 -616
- package/dist/{vue-ui-radar-BUk56jGL.js → vue-ui-radar-Cjqlyu6d.js} +270 -277
- package/dist/{vue-ui-rating-B9TQl5KP.js → vue-ui-rating-gryk_h_6.js} +2 -2
- package/dist/vue-ui-relation-circle-ielvWC-1.js +525 -0
- package/dist/{vue-ui-ridgeline-Cl06bGom.js → vue-ui-ridgeline-Dydqo68b.js} +321 -326
- package/dist/{vue-ui-rings-B6bpFlFp.js → vue-ui-rings-BRBXektJ.js} +262 -269
- package/dist/{vue-ui-scatter--WUuVw5G.js → vue-ui-scatter-Df-BM7Ts.js} +372 -379
- package/dist/{vue-ui-skeleton-B_YI7Yuc.js → vue-ui-skeleton-CbYQYRvD.js} +19 -19
- package/dist/{vue-ui-smiley-Bbam2fDz.js → vue-ui-smiley-BfHaQMaW.js} +2 -2
- package/dist/{vue-ui-spark-trend-DavXuwGt.js → vue-ui-spark-trend-z3fUChs_.js} +114 -117
- package/dist/{vue-ui-sparkbar-9N1FU9-J.js → vue-ui-sparkbar-ChtFIugH.js} +104 -106
- package/dist/{vue-ui-sparkgauge-_9ntq4EK.js → vue-ui-sparkgauge-DtpODCww.js} +72 -74
- package/dist/{vue-ui-sparkhistogram-BEzOV4HV.js → vue-ui-sparkhistogram-C3XnYiXI.js} +83 -86
- package/dist/vue-ui-sparkline-CoL8jiX8.js +459 -0
- package/dist/{vue-ui-sparkstackbar-BSWcs3v0.js → vue-ui-sparkstackbar-CYk3mZJH.js} +102 -105
- package/dist/{vue-ui-stackbar-gG5BLlAr.js → vue-ui-stackbar-D9LGbuG5.js} +433 -437
- package/dist/{vue-ui-strip-plot-BJouRmxh.js → vue-ui-strip-plot-C5r1Ee2R.js} +245 -252
- package/dist/{vue-ui-table-D9Ry8s4N.js → vue-ui-table-DBaT_TfA.js} +3 -3
- package/dist/{vue-ui-table-heatmap-Bizzpi31.js → vue-ui-table-heatmap-CYW4YfKN.js} +93 -94
- package/dist/{vue-ui-table-sparkline-Dg54Ovs2.js → vue-ui-table-sparkline-Di0MYR4p.js} +212 -212
- package/dist/{vue-ui-thermometer-6MSdF_Gm.js → vue-ui-thermometer-BF1btHY2.js} +154 -157
- package/dist/{vue-ui-timer-ByaKokk8.js → vue-ui-timer-D9FfRWN5.js} +180 -181
- package/dist/vue-ui-tiremarks-CQ0lk8fJ.js +341 -0
- package/dist/vue-ui-treemap-1Lx7YRtc.js +947 -0
- package/dist/{vue-ui-vertical-bar-CE4oBwBv.js → vue-ui-vertical-bar-DdVVQ1ED.js} +397 -403
- package/dist/{vue-ui-waffle-DNEEnY_G.js → vue-ui-waffle-BhnuPiRD.js} +317 -324
- package/dist/vue-ui-wheel-BIjJ0fg8.js +335 -0
- package/dist/vue-ui-word-cloud-3-r8HwO_.js +642 -0
- package/dist/{vue-ui-world-Brhq17TE.js → vue-ui-world-CPIGEswq.js} +430 -442
- package/dist/{vue-ui-xy-K2G7QQxG.js → vue-ui-xy-9e_epIN4.js} +845 -846
- package/dist/vue-ui-xy-canvas-DcGgQ7s4.js +1206 -0
- package/package.json +6 -6
- package/dist/BaseDraggableDialog-Bzwlfmy1.js +0 -186
- package/dist/PackageVersion-BjrblLPQ.js +0 -10
- package/dist/Tooltip-CWmRmhJr.js +0 -158
- package/dist/useChartAccessibility-BWojgys7.js +0 -13
- package/dist/vue-ui-circle-pack-D_jYpsuD.js +0 -659
- package/dist/vue-ui-donut-WRUDvvZa.js +0 -1292
- package/dist/vue-ui-donut-evolution-BQxV5D_L.js +0 -871
- package/dist/vue-ui-molecule-Bq69N7rC.js +0 -782
- package/dist/vue-ui-relation-circle-T6aTibIU.js +0 -528
- package/dist/vue-ui-sparkline-D__GCUAz.js +0 -519
- package/dist/vue-ui-tiremarks-Z8pjUT1g.js +0 -344
- package/dist/vue-ui-treemap-pRJ3be5l.js +0 -956
- package/dist/vue-ui-wheel-DWPYZxdT.js +0 -338
- package/dist/vue-ui-word-cloud-DAR7R8F8.js +0 -648
- package/dist/vue-ui-xy-canvas-ml44sPHS.js +0 -1673
|
@@ -1,23 +1,17 @@
|
|
|
1
|
-
import { computed as g, ref as
|
|
2
|
-
import { u as
|
|
3
|
-
import { t as
|
|
4
|
-
import {
|
|
5
|
-
import { u as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
import { S as
|
|
10
|
-
import
|
|
11
|
-
|
|
12
|
-
import { _ as wt } from "./PackageVersion-BjrblLPQ.js";
|
|
13
|
-
import { _ as $t } from "./PenAndPaper-BkP3J-Ft.js";
|
|
14
|
-
import { u as Ct } from "./useUserOptionState-BIvW1Kz7.js";
|
|
15
|
-
import { u as _t } from "./useChartAccessibility-BWojgys7.js";
|
|
16
|
-
import { _ as zt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
17
|
-
const St = ["id"], Nt = ["xmlns", "viewBox"], At = ["x", "y", "width", "height"], Tt = { key: 1 }, It = ["id"], Ft = ["stop-color"], Rt = ["stop-color"], Lt = ["stop-color"], Ot = ["id"], Vt = ["stop-color"], Pt = ["stop-color"], Ut = ["stop-color"], Bt = { key: 0 }, Et = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Mt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Dt = { key: 1 }, Wt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Gt = ["x", "y", "font-size", "fill", "font-weight"], Ht = { key: 2 }, jt = ["transform", "text-anchor", "font-size", "fill", "font-weight"], Xt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Yt = { key: 0 }, qt = ["cx", "cy", "r", "fill"], Jt = ["cx", "cy", "r", "fill"], Kt = { key: 1 }, Qt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Zt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], el = ["x", "y", "height", "width", "fill", "rx"], tl = ["x", "y", "height", "width", "fill", "rx", "stroke", "stroke-width"], ll = ["x", "y", "height", "width", "fill", "onMouseover"], ol = {
|
|
1
|
+
import { defineAsyncComponent as z, computed as g, ref as r, watch as Te, shallowRef as Ie, onMounted as ut, onBeforeUnmount as it, nextTick as E, createElementBlock as u, openBlock as s, unref as n, normalizeStyle as le, normalizeClass as Fe, createBlock as S, createCommentVNode as y, createElementVNode as v, createVNode as Re, createSlots as nt, withCtx as m, renderSlot as p, normalizeProps as N, guardReactiveProps as A, Fragment as L, renderList as O, toDisplayString as B, createTextVNode as rt } from "vue";
|
|
2
|
+
import { u as vt, c as dt, a as yt, C as Le, o as ct, e as T, D as ht, v as U, X as pt, w as Y, E as ft, s as gt, F as Oe, q as mt, r as bt, x as xt, y as kt } from "./index-BiHmNd1-.js";
|
|
3
|
+
import { t as wt, u as $t } from "./useResponsive-JZ9xq-JV.js";
|
|
4
|
+
import { u as Ve } from "./useNestedProp-tRqS0ZAM.js";
|
|
5
|
+
import { u as Ct } from "./usePrinter-CRCbl1WG.js";
|
|
6
|
+
import { u as _t } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
|
+
import { u as zt } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
+
import St from "./Title-B5qqUI3M.js";
|
|
9
|
+
import { S as Nt } from "./Slicer-ncY8krrM.js";
|
|
10
|
+
import { _ as At } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
|
+
const Tt = ["id"], It = ["xmlns", "viewBox"], Ft = ["x", "y", "width", "height"], Rt = { key: 1 }, Lt = ["id"], Ot = ["stop-color"], Vt = ["stop-color"], Pt = ["stop-color"], Mt = ["id"], Et = ["stop-color"], Bt = ["stop-color"], Ut = ["stop-color"], Dt = { key: 0 }, Wt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Gt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ht = { key: 1 }, jt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Xt = ["x", "y", "font-size", "fill", "font-weight"], Yt = { key: 2 }, qt = ["transform", "text-anchor", "font-size", "fill", "font-weight"], Jt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Kt = { key: 0 }, Qt = ["cx", "cy", "r", "fill"], Zt = ["cx", "cy", "r", "fill"], el = { key: 1 }, tl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ll = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ol = ["x", "y", "height", "width", "fill", "rx"], al = ["x", "y", "height", "width", "fill", "rx", "stroke", "stroke-width"], sl = ["x", "y", "height", "width", "fill", "onMouseover"], ul = {
|
|
18
12
|
key: 5,
|
|
19
13
|
class: "vue-data-ui-watermark"
|
|
20
|
-
},
|
|
14
|
+
}, il = ["innerHTML"], nl = {
|
|
21
15
|
__name: "vue-ui-candlestick",
|
|
22
16
|
props: {
|
|
23
17
|
config: {
|
|
@@ -33,60 +27,60 @@ const St = ["id"], Nt = ["xmlns", "viewBox"], At = ["x", "y", "width", "height"]
|
|
|
33
27
|
}
|
|
34
28
|
}
|
|
35
29
|
},
|
|
36
|
-
setup(
|
|
37
|
-
const { vue_ui_candlestick:
|
|
38
|
-
get: () =>
|
|
30
|
+
setup(C, { expose: Pe }) {
|
|
31
|
+
const Me = z(() => import("./vue-ui-accordion-CmCs2yR2.js")), Ee = z(() => import("./DataTable-Cv9CIz-a.js")), Be = z(() => import("./PackageVersion-CLY-udAA.js")), Ue = z(() => import("./PenAndPaper-B9na2mbr.js")), De = z(() => import("./vue-ui-skeleton-CbYQYRvD.js")), We = z(() => import("./Tooltip-C9rxJ-Ru.js")), Ge = z(() => import("./UserOptions-Ddy6CuLC.js")), { vue_ui_candlestick: He } = vt(), h = C, V = g(() => !!h.dataset && h.dataset.length), k = r(dt()), je = r(null), q = r(!1), J = r(""), K = r(void 0), oe = r(0), P = r(null), ae = r(null), se = r(null), ue = r(null), ie = r(null), ne = r(null), D = r(0), re = r(0), ve = r(0), e = g({
|
|
32
|
+
get: () => he(),
|
|
39
33
|
set: (t) => t
|
|
40
|
-
}), { userOptionsVisible:
|
|
41
|
-
function
|
|
42
|
-
const t =
|
|
34
|
+
}), { userOptionsVisible: Q, setUserOptionsVisibility: de, keepUserOptionState: ye } = _t({ config: e.value }), { svgRef: ce } = zt({ config: e.value.style.title });
|
|
35
|
+
function he() {
|
|
36
|
+
const t = Ve({
|
|
43
37
|
userConfig: h.config,
|
|
44
|
-
defaultConfig:
|
|
38
|
+
defaultConfig: He
|
|
45
39
|
});
|
|
46
40
|
let o = {};
|
|
47
41
|
return t.theme ? o = {
|
|
48
|
-
...
|
|
49
|
-
userConfig:
|
|
42
|
+
...Ve({
|
|
43
|
+
userConfig: yt.vue_ui_candlestick[t.theme] || h.config,
|
|
50
44
|
defaultConfig: t
|
|
51
45
|
})
|
|
52
|
-
} : o = t, h.config &&
|
|
46
|
+
} : o = t, h.config && Le(h.config, "style.zoom.startIndex") ? o.style.zoom.startIndex = h.config.style.zoom.startIndex : o.style.zoom.startIndex = null, h.config && Le(h.config, "style.zoom.endIndex") ? o.style.zoom.endIndex = h.config.style.zoom.endIndex : o.style.zoom.endIndex = null, o;
|
|
53
47
|
}
|
|
54
|
-
|
|
55
|
-
e.value =
|
|
56
|
-
}, { deep: !0 }),
|
|
57
|
-
|
|
48
|
+
Te(() => h.config, (t) => {
|
|
49
|
+
e.value = he(), Q.value = !e.value.userOptions.showOnChartHover, pe(), D.value += 1, ve.value += 1, re.value += 1, w.value.showTable = e.value.table.show, w.value.showTooltip = e.value.style.tooltip.show;
|
|
50
|
+
}, { deep: !0 }), Te(() => h.dataset, (t) => {
|
|
51
|
+
f.value.start = 0, f.value.end = t.length, D.value += 1;
|
|
58
52
|
}, { deep: !0 });
|
|
59
|
-
const c =
|
|
53
|
+
const c = r({
|
|
60
54
|
height: e.value.style.height,
|
|
61
55
|
width: e.value.style.width,
|
|
62
56
|
xAxisFontSize: e.value.style.layout.grid.xAxis.dataLabels.fontSize,
|
|
63
57
|
yAxisFontSize: e.value.style.layout.grid.yAxis.dataLabels.fontSize
|
|
64
|
-
}),
|
|
65
|
-
|
|
66
|
-
|
|
58
|
+
}), $ = Ie(null), I = Ie(null);
|
|
59
|
+
ut(() => {
|
|
60
|
+
pe();
|
|
67
61
|
});
|
|
68
|
-
function
|
|
69
|
-
if (
|
|
62
|
+
function pe() {
|
|
63
|
+
if (ct(h.dataset) && T({
|
|
70
64
|
componentName: "VueUiCandlestick",
|
|
71
65
|
type: "dataset"
|
|
72
66
|
}), e.value.responsive) {
|
|
73
|
-
const t =
|
|
74
|
-
const { width: o, height: l } =
|
|
75
|
-
chart:
|
|
76
|
-
title: e.value.style.title.text ?
|
|
77
|
-
slicer:
|
|
78
|
-
legend:
|
|
79
|
-
source:
|
|
80
|
-
noTitle:
|
|
67
|
+
const t = wt(() => {
|
|
68
|
+
const { width: o, height: l } = $t({
|
|
69
|
+
chart: P.value,
|
|
70
|
+
title: e.value.style.title.text ? ae.value : null,
|
|
71
|
+
slicer: ue.value,
|
|
72
|
+
legend: se.value,
|
|
73
|
+
source: ie.value,
|
|
74
|
+
noTitle: ne.value
|
|
81
75
|
});
|
|
82
76
|
requestAnimationFrame(() => {
|
|
83
|
-
c.value.width = o, c.value.height = l, c.value.xAxisFontSize =
|
|
77
|
+
c.value.width = o, c.value.height = l, c.value.xAxisFontSize = Oe({
|
|
84
78
|
relator: Math.min(o, l),
|
|
85
79
|
adjuster: e.value.style.width,
|
|
86
80
|
source: e.value.style.layout.grid.xAxis.dataLabels.fontSize,
|
|
87
81
|
threshold: 6,
|
|
88
82
|
fallback: 6
|
|
89
|
-
}), c.value.yAxisFontSize =
|
|
83
|
+
}), c.value.yAxisFontSize = Oe({
|
|
90
84
|
relator: Math.min(o, l),
|
|
91
85
|
adjuster: e.value.style.width,
|
|
92
86
|
source: e.value.style.layout.grid.yAxis.dataLabels.fontSize,
|
|
@@ -95,18 +89,18 @@ const St = ["id"], Nt = ["xmlns", "viewBox"], At = ["x", "y", "width", "height"]
|
|
|
95
89
|
});
|
|
96
90
|
});
|
|
97
91
|
});
|
|
98
|
-
|
|
92
|
+
$.value && (I.value && $.value.unobserve(I.value), $.value.disconnect()), $.value = new ResizeObserver(t), I.value = P.value.parentNode, $.value.observe(I.value);
|
|
99
93
|
}
|
|
100
|
-
|
|
94
|
+
we();
|
|
101
95
|
}
|
|
102
|
-
|
|
103
|
-
|
|
96
|
+
it(() => {
|
|
97
|
+
$.value && (I.value && $.value.unobserve(I.value), $.value.disconnect());
|
|
104
98
|
});
|
|
105
|
-
const { isPrinting:
|
|
99
|
+
const { isPrinting: fe, isImaging: ge, generatePdf: me, generateImage: be } = Ct({
|
|
106
100
|
elementId: `vue-ui-candlestick_${k.value}`,
|
|
107
101
|
fileName: e.value.style.title.text || "vue-ui-candlestick",
|
|
108
102
|
options: e.value.userOptions.print
|
|
109
|
-
}),
|
|
103
|
+
}), Xe = g(() => e.value.userOptions.show && !e.value.style.title.text), w = r({
|
|
110
104
|
showTable: e.value.table.show,
|
|
111
105
|
showTooltip: e.value.style.tooltip.show
|
|
112
106
|
}), i = g(() => {
|
|
@@ -119,94 +113,94 @@ const St = ["id"], Nt = ["xmlns", "viewBox"], At = ["x", "y", "width", "height"]
|
|
|
119
113
|
width: c.value.width - a - o,
|
|
120
114
|
height: c.value.height - t - l
|
|
121
115
|
};
|
|
122
|
-
}),
|
|
116
|
+
}), M = g(() => h.dataset.length), f = r({
|
|
123
117
|
start: 0,
|
|
124
|
-
end:
|
|
125
|
-
}),
|
|
126
|
-
[null, void 0].includes(t[0]) &&
|
|
118
|
+
end: M.value
|
|
119
|
+
}), xe = g(() => h.dataset.slice(f.value.start, f.value.end)), Z = g(() => (h.dataset.forEach((t, o) => {
|
|
120
|
+
[null, void 0].includes(t[0]) && T({
|
|
127
121
|
componentName: "VueUiCandlestick",
|
|
128
122
|
type: "datasetAttribute",
|
|
129
123
|
property: "period (index 0)",
|
|
130
124
|
index: o
|
|
131
|
-
}), [null, void 0].includes(t[1]) &&
|
|
125
|
+
}), [null, void 0].includes(t[1]) && T({
|
|
132
126
|
componentName: "VueUiCandlestick",
|
|
133
127
|
type: "datasetAttribute",
|
|
134
128
|
property: "open (index 1)",
|
|
135
129
|
index: o
|
|
136
|
-
}), [null, void 0].includes(t[2]) &&
|
|
130
|
+
}), [null, void 0].includes(t[2]) && T({
|
|
137
131
|
componentName: "VueUiCandlestick",
|
|
138
132
|
type: "datasetAttribute",
|
|
139
133
|
property: "high (index 2)",
|
|
140
134
|
index: o
|
|
141
|
-
}), [null, void 0].includes(t[3]) &&
|
|
135
|
+
}), [null, void 0].includes(t[3]) && T({
|
|
142
136
|
componentName: "VueUiCandlestick",
|
|
143
137
|
type: "datasetAttribute",
|
|
144
138
|
property: "low (index 3)",
|
|
145
139
|
index: o
|
|
146
|
-
}), [null, void 0].includes(t[4]) &&
|
|
140
|
+
}), [null, void 0].includes(t[4]) && T({
|
|
147
141
|
componentName: "VueUiCandlestick",
|
|
148
142
|
type: "datasetAttribute",
|
|
149
143
|
property: "last (index 4)",
|
|
150
144
|
index: o
|
|
151
|
-
}), [null, void 0].includes(t[5]) &&
|
|
145
|
+
}), [null, void 0].includes(t[5]) && T({
|
|
152
146
|
componentName: "VueUiCandlestick",
|
|
153
147
|
type: "datasetAttribute",
|
|
154
148
|
property: "volume (index 5)",
|
|
155
149
|
index: o
|
|
156
150
|
});
|
|
157
|
-
}),
|
|
151
|
+
}), xe.value.map((t) => ({
|
|
158
152
|
period: t[0],
|
|
159
153
|
open: t[1],
|
|
160
154
|
high: t[2],
|
|
161
155
|
low: t[3],
|
|
162
156
|
last: t[4],
|
|
163
157
|
volume: t[5]
|
|
164
|
-
})))), d = g(() => i.value.width /
|
|
165
|
-
max: Math.max(...
|
|
158
|
+
})))), d = g(() => i.value.width / xe.value.length), ke = g(() => ({
|
|
159
|
+
max: Math.max(...Z.value.map((t) => t.high)),
|
|
166
160
|
min: 0
|
|
167
|
-
})),
|
|
168
|
-
function
|
|
161
|
+
})), _ = g(() => ht(ke.value.min, ke.value.max, e.value.style.layout.grid.yAxis.dataLabels.steps));
|
|
162
|
+
function W(t, o) {
|
|
169
163
|
return {
|
|
170
164
|
...t,
|
|
171
165
|
x: U(i.value.left + o * d.value + d.value / 2),
|
|
172
|
-
y: U(i.value.top + (1 - t /
|
|
166
|
+
y: U(i.value.top + (1 - t / _.value.max) * i.value.height),
|
|
173
167
|
value: U(t)
|
|
174
168
|
};
|
|
175
169
|
}
|
|
176
|
-
const b = g(() =>
|
|
177
|
-
const l =
|
|
170
|
+
const b = g(() => Z.value.map((t, o) => {
|
|
171
|
+
const l = W(t.open, o), a = W(t.high, o), x = W(t.low, o), j = W(t.last, o), X = t.last > t.open;
|
|
178
172
|
return {
|
|
179
173
|
period: t.period,
|
|
180
174
|
open: l,
|
|
181
175
|
high: a,
|
|
182
176
|
low: x,
|
|
183
|
-
last:
|
|
177
|
+
last: j,
|
|
184
178
|
volume: t.volume,
|
|
185
|
-
isBullish:
|
|
179
|
+
isBullish: X
|
|
186
180
|
};
|
|
187
181
|
}));
|
|
188
|
-
function
|
|
189
|
-
return U(t /
|
|
182
|
+
function Ye(t) {
|
|
183
|
+
return U(t / _.value.max);
|
|
190
184
|
}
|
|
191
|
-
const
|
|
192
|
-
y: i.value.bottom - i.value.height *
|
|
185
|
+
const qe = g(() => _.value.ticks.map((t) => ({
|
|
186
|
+
y: i.value.bottom - i.value.height * Ye(t),
|
|
193
187
|
value: U(t)
|
|
194
|
-
}))),
|
|
195
|
-
function
|
|
196
|
-
|
|
188
|
+
}))), Je = g(() => Z.value.map((t) => t.period)), ee = r(null);
|
|
189
|
+
function Ke(t, o) {
|
|
190
|
+
K.value = t, ee.value = {
|
|
197
191
|
datapoint: o,
|
|
198
192
|
seriesIndex: t,
|
|
199
193
|
series: b.value,
|
|
200
194
|
config: e.value
|
|
201
195
|
};
|
|
202
196
|
const l = e.value.style.tooltip.customFormat;
|
|
203
|
-
if (
|
|
197
|
+
if (xt(l) && kt(() => l({
|
|
204
198
|
seriesIndex: t,
|
|
205
199
|
datapoint: o,
|
|
206
200
|
series: b.value,
|
|
207
201
|
config: e.value
|
|
208
202
|
})))
|
|
209
|
-
|
|
203
|
+
J.value = l({
|
|
210
204
|
seriesIndex: t,
|
|
211
205
|
datapoint: o,
|
|
212
206
|
series: b.value,
|
|
@@ -214,28 +208,28 @@ const St = ["id"], Nt = ["xmlns", "viewBox"], At = ["x", "y", "width", "height"]
|
|
|
214
208
|
});
|
|
215
209
|
else if (e.value.style.tooltip.show) {
|
|
216
210
|
let a = "";
|
|
217
|
-
const { period: x, open:
|
|
211
|
+
const { period: x, open: j, high: X, low: ze, last: Se, volume: Ne, isBullish: Ae } = b.value[t], { period: rl, open: tt, high: lt, low: ot, last: at, volume: st } = e.value.translations;
|
|
218
212
|
a += `<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}"
|
|
219
|
-
fill="${e.value.style.layout.candle.gradient.show ?
|
|
213
|
+
fill="${e.value.style.layout.candle.gradient.show ? Ae ? `url(#bullish_gradient_${k.value})` : `url(#bearish_gradient_${k.value})` : Ae ? e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.colors.bearish}"/></svg>${x}</div>`, a += `${st} : <b>${isNaN(Ne) ? "-" : Number(Ne.toFixed(e.value.style.tooltip.roundingValue)).toLocaleString()}</b>`, a += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${e.value.style.tooltip.borderColor}">`, a += `<div>${tt}: <b>${e.value.style.tooltip.prefix} ${isNaN(j.value) ? "-" : Number(j.value.toFixed(e.value.style.tooltip.roundingValue)).toLocaleString()} ${e.value.style.tooltip.suffix}</b></div>`, a += `<div>${lt}: <b>${e.value.style.tooltip.prefix} ${isNaN(X.value) ? "-" : Number(X.value.toFixed(e.value.style.tooltip.roundingValue)).toLocaleString()} ${e.value.style.tooltip.suffix}</b></div>`, a += `<div>${ot}: <b>${e.value.style.tooltip.prefix} ${isNaN(ze.value) ? "-" : Number(ze.value.toFixed(e.value.style.tooltip.roundingValue)).toLocaleString()} ${e.value.style.tooltip.suffix}</b></div>`, a += `<div>${at}: <b>${e.value.style.tooltip.prefix} ${isNaN(Se.value) ? "-" : Number(Se.value.toFixed(e.value.style.tooltip.roundingValue)).toLocaleString()} ${e.value.style.tooltip.suffix}</b></div>`, a += "</div>", J.value = `<div style="text-align:right">${a}</div>`;
|
|
220
214
|
}
|
|
221
|
-
|
|
215
|
+
q.value = !0;
|
|
222
216
|
}
|
|
223
|
-
function
|
|
224
|
-
|
|
217
|
+
function Qe() {
|
|
218
|
+
we();
|
|
225
219
|
}
|
|
226
|
-
const
|
|
227
|
-
async function
|
|
228
|
-
(e.value.style.zoom.startIndex !== null || e.value.style.zoom.endIndex !== null) &&
|
|
220
|
+
const F = r(null);
|
|
221
|
+
async function we() {
|
|
222
|
+
(e.value.style.zoom.startIndex !== null || e.value.style.zoom.endIndex !== null) && F.value ? (e.value.style.zoom.startIndex !== null && (await E(), await E(), F.value && F.value.setStartValue(e.value.style.zoom.startIndex)), e.value.style.zoom.endIndex !== null && (await E(), await E(), F.value && F.value.setEndValue(Ze(e.value.style.zoom.endIndex + 1)))) : (f.value = {
|
|
229
223
|
start: 0,
|
|
230
|
-
end:
|
|
231
|
-
},
|
|
224
|
+
end: M.value
|
|
225
|
+
}, D.value += 1);
|
|
232
226
|
}
|
|
233
|
-
function
|
|
234
|
-
const o =
|
|
227
|
+
function Ze(t) {
|
|
228
|
+
const o = M.value;
|
|
235
229
|
return t > o ? o : 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;
|
|
236
230
|
}
|
|
237
|
-
function
|
|
238
|
-
|
|
231
|
+
function $e() {
|
|
232
|
+
E(() => {
|
|
239
233
|
const t = [e.value.translations.period, e.value.translations.open, e.value.translations.high, e.value.translations.low, e.value.translations.last, e.value.translations.volume], o = b.value.map((x) => [
|
|
240
234
|
x.period,
|
|
241
235
|
x.open.value,
|
|
@@ -243,11 +237,11 @@ const St = ["id"], Nt = ["xmlns", "viewBox"], At = ["x", "y", "width", "height"]
|
|
|
243
237
|
x.low.value,
|
|
244
238
|
x.last.value,
|
|
245
239
|
x.volume
|
|
246
|
-
]), l = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([t]).concat(o), a =
|
|
247
|
-
|
|
240
|
+
]), l = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([t]).concat(o), a = mt(l);
|
|
241
|
+
bt({ csvContent: a, title: e.value.style.title.text || "vue-ui-candlestick" });
|
|
248
242
|
});
|
|
249
243
|
}
|
|
250
|
-
const
|
|
244
|
+
const G = g(() => {
|
|
251
245
|
const t = b.value.map((a) => [
|
|
252
246
|
`<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 ? a.isBullish ? `url(#bullish_gradient_${k.value}` : `url(#bearish_gradient_${k.value})` : a.isBullish ? e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.colors.bearish}"/></svg> ${a.period}`,
|
|
253
247
|
`${e.value.table.td.prefix} ${isNaN(a.open.value) ? "-" : Number(a.open.value.toFixed(e.value.table.td.roundingValue)).toLocaleString()} ${e.value.table.td.suffix}`,
|
|
@@ -276,59 +270,59 @@ const St = ["id"], Nt = ["xmlns", "viewBox"], At = ["x", "y", "width", "height"]
|
|
|
276
270
|
e.value.translations.volume
|
|
277
271
|
];
|
|
278
272
|
return { head: l, body: t, config: o, colNames: l };
|
|
279
|
-
}),
|
|
280
|
-
function
|
|
281
|
-
|
|
273
|
+
}), R = r(!1);
|
|
274
|
+
function et(t) {
|
|
275
|
+
R.value = t, oe.value += 1;
|
|
282
276
|
}
|
|
283
|
-
function
|
|
277
|
+
function Ce() {
|
|
284
278
|
w.value.showTable = !w.value.showTable;
|
|
285
279
|
}
|
|
286
|
-
function
|
|
280
|
+
function _e() {
|
|
287
281
|
w.value.showTooltip = !w.value.showTooltip;
|
|
288
282
|
}
|
|
289
|
-
const
|
|
290
|
-
function
|
|
291
|
-
|
|
283
|
+
const H = r(!1);
|
|
284
|
+
function te() {
|
|
285
|
+
H.value = !H.value;
|
|
292
286
|
}
|
|
293
|
-
return
|
|
294
|
-
generatePdf:
|
|
295
|
-
generateCsv:
|
|
296
|
-
generateImage:
|
|
297
|
-
toggleTable:
|
|
298
|
-
toggleTooltip:
|
|
299
|
-
toggleAnnotator:
|
|
287
|
+
return Pe({
|
|
288
|
+
generatePdf: me,
|
|
289
|
+
generateCsv: $e,
|
|
290
|
+
generateImage: be,
|
|
291
|
+
toggleTable: Ce,
|
|
292
|
+
toggleTooltip: _e,
|
|
293
|
+
toggleAnnotator: te
|
|
300
294
|
}), (t, o) => (s(), u("div", {
|
|
301
295
|
ref_key: "candlestickChart",
|
|
302
|
-
ref:
|
|
303
|
-
class:
|
|
304
|
-
style:
|
|
296
|
+
ref: P,
|
|
297
|
+
class: Fe(`vue-ui-candlestick ${R.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
298
|
+
style: le(`position:relative;font-family:${e.value.style.fontFamily}; text-align:center;background:${e.value.style.backgroundColor}; ${e.value.responsive ? "height: 100%" : ""}`),
|
|
305
299
|
id: `vue-ui-candlestick_${k.value}`,
|
|
306
|
-
onMouseenter: o[4] || (o[4] = () =>
|
|
307
|
-
onMouseleave: o[5] || (o[5] = () =>
|
|
300
|
+
onMouseenter: o[4] || (o[4] = () => n(de)(!0)),
|
|
301
|
+
onMouseleave: o[5] || (o[5] = () => n(de)(!1))
|
|
308
302
|
}, [
|
|
309
|
-
e.value.userOptions.buttons.annotator ? (s(),
|
|
303
|
+
e.value.userOptions.buttons.annotator ? (s(), S(n(Ue), {
|
|
310
304
|
key: 0,
|
|
311
|
-
svgRef:
|
|
305
|
+
svgRef: n(ce),
|
|
312
306
|
backgroundColor: e.value.style.backgroundColor,
|
|
313
307
|
color: e.value.style.color,
|
|
314
|
-
active:
|
|
315
|
-
onClose:
|
|
308
|
+
active: H.value,
|
|
309
|
+
onClose: te
|
|
316
310
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : y("", !0),
|
|
317
|
-
|
|
311
|
+
Xe.value ? (s(), u("div", {
|
|
318
312
|
key: 1,
|
|
319
313
|
ref_key: "noTitle",
|
|
320
|
-
ref:
|
|
314
|
+
ref: ne,
|
|
321
315
|
class: "vue-data-ui-no-title-space",
|
|
322
316
|
style: "height:36px; width: 100%;background:transparent"
|
|
323
317
|
}, null, 512)) : y("", !0),
|
|
324
318
|
e.value.style.title.text ? (s(), u("div", {
|
|
325
319
|
key: 2,
|
|
326
320
|
ref_key: "chartTitle",
|
|
327
|
-
ref:
|
|
321
|
+
ref: ae,
|
|
328
322
|
style: "width:100%;background:transparent"
|
|
329
323
|
}, [
|
|
330
|
-
(s(),
|
|
331
|
-
key: `title_${
|
|
324
|
+
(s(), S(St, {
|
|
325
|
+
key: `title_${ve.value}`,
|
|
332
326
|
config: {
|
|
333
327
|
title: {
|
|
334
328
|
cy: "candlestick-div-title",
|
|
@@ -341,14 +335,14 @@ const St = ["id"], Nt = ["xmlns", "viewBox"], At = ["x", "y", "width", "height"]
|
|
|
341
335
|
}
|
|
342
336
|
}, null, 8, ["config"]))
|
|
343
337
|
], 512)) : y("", !0),
|
|
344
|
-
e.value.userOptions.show &&
|
|
338
|
+
e.value.userOptions.show && V.value && (n(ye) || n(Q)) ? (s(), S(n(Ge), {
|
|
345
339
|
ref_key: "details",
|
|
346
|
-
ref:
|
|
347
|
-
key: `user_options_${
|
|
340
|
+
ref: je,
|
|
341
|
+
key: `user_options_${oe.value}`,
|
|
348
342
|
backgroundColor: e.value.style.backgroundColor,
|
|
349
343
|
color: e.value.style.color,
|
|
350
|
-
isImaging:
|
|
351
|
-
isPrinting:
|
|
344
|
+
isImaging: n(ge),
|
|
345
|
+
isPrinting: n(fe),
|
|
352
346
|
uid: k.value,
|
|
353
347
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.tooltip.show,
|
|
354
348
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -356,144 +350,144 @@ const St = ["id"], Nt = ["xmlns", "viewBox"], At = ["x", "y", "width", "height"]
|
|
|
356
350
|
hasXls: e.value.userOptions.buttons.csv,
|
|
357
351
|
hasTable: e.value.userOptions.buttons.table,
|
|
358
352
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
359
|
-
isFullscreen:
|
|
353
|
+
isFullscreen: R.value,
|
|
360
354
|
isTooltip: w.value.showTooltip,
|
|
361
355
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
362
|
-
chartElement:
|
|
356
|
+
chartElement: P.value,
|
|
363
357
|
position: e.value.userOptions.position,
|
|
364
358
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
365
|
-
isAnnotation:
|
|
366
|
-
onToggleFullscreen:
|
|
367
|
-
onGeneratePdf:
|
|
368
|
-
onGenerateCsv:
|
|
369
|
-
onGenerateImage:
|
|
370
|
-
onToggleTable:
|
|
371
|
-
onToggleTooltip:
|
|
372
|
-
onToggleAnnotator:
|
|
373
|
-
style:
|
|
374
|
-
visibility:
|
|
359
|
+
isAnnotation: H.value,
|
|
360
|
+
onToggleFullscreen: et,
|
|
361
|
+
onGeneratePdf: n(me),
|
|
362
|
+
onGenerateCsv: $e,
|
|
363
|
+
onGenerateImage: n(be),
|
|
364
|
+
onToggleTable: Ce,
|
|
365
|
+
onToggleTooltip: _e,
|
|
366
|
+
onToggleAnnotator: te,
|
|
367
|
+
style: le({
|
|
368
|
+
visibility: n(ye) ? n(Q) ? "visible" : "hidden" : "visible"
|
|
375
369
|
})
|
|
376
|
-
},
|
|
370
|
+
}, nt({ _: 2 }, [
|
|
377
371
|
t.$slots.menuIcon ? {
|
|
378
372
|
name: "menuIcon",
|
|
379
373
|
fn: m(({ isOpen: l, color: a }) => [
|
|
380
|
-
|
|
374
|
+
p(t.$slots, "menuIcon", N(A({ isOpen: l, color: a })), void 0, !0)
|
|
381
375
|
]),
|
|
382
376
|
key: "0"
|
|
383
377
|
} : void 0,
|
|
384
378
|
t.$slots.optionTooltip ? {
|
|
385
379
|
name: "optionTooltip",
|
|
386
380
|
fn: m(() => [
|
|
387
|
-
|
|
381
|
+
p(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
388
382
|
]),
|
|
389
383
|
key: "1"
|
|
390
384
|
} : void 0,
|
|
391
385
|
t.$slots.optionPdf ? {
|
|
392
386
|
name: "optionPdf",
|
|
393
387
|
fn: m(() => [
|
|
394
|
-
|
|
388
|
+
p(t.$slots, "optionPdf", {}, void 0, !0)
|
|
395
389
|
]),
|
|
396
390
|
key: "2"
|
|
397
391
|
} : void 0,
|
|
398
392
|
t.$slots.optionCsv ? {
|
|
399
393
|
name: "optionCsv",
|
|
400
394
|
fn: m(() => [
|
|
401
|
-
|
|
395
|
+
p(t.$slots, "optionCsv", {}, void 0, !0)
|
|
402
396
|
]),
|
|
403
397
|
key: "3"
|
|
404
398
|
} : void 0,
|
|
405
399
|
t.$slots.optionImg ? {
|
|
406
400
|
name: "optionImg",
|
|
407
401
|
fn: m(() => [
|
|
408
|
-
|
|
402
|
+
p(t.$slots, "optionImg", {}, void 0, !0)
|
|
409
403
|
]),
|
|
410
404
|
key: "4"
|
|
411
405
|
} : void 0,
|
|
412
406
|
t.$slots.optionTable ? {
|
|
413
407
|
name: "optionTable",
|
|
414
408
|
fn: m(() => [
|
|
415
|
-
|
|
409
|
+
p(t.$slots, "optionTable", {}, void 0, !0)
|
|
416
410
|
]),
|
|
417
411
|
key: "5"
|
|
418
412
|
} : void 0,
|
|
419
413
|
t.$slots.optionFullscreen ? {
|
|
420
414
|
name: "optionFullscreen",
|
|
421
415
|
fn: m(({ toggleFullscreen: l, isFullscreen: a }) => [
|
|
422
|
-
|
|
416
|
+
p(t.$slots, "optionFullscreen", N(A({ toggleFullscreen: l, isFullscreen: a })), void 0, !0)
|
|
423
417
|
]),
|
|
424
418
|
key: "6"
|
|
425
419
|
} : void 0,
|
|
426
420
|
t.$slots.optionAnnotator ? {
|
|
427
421
|
name: "optionAnnotator",
|
|
428
422
|
fn: m(({ toggleAnnotator: l, isAnnotator: a }) => [
|
|
429
|
-
|
|
423
|
+
p(t.$slots, "optionAnnotator", N(A({ toggleAnnotator: l, isAnnotator: a })), void 0, !0)
|
|
430
424
|
]),
|
|
431
425
|
key: "7"
|
|
432
426
|
} : void 0
|
|
433
427
|
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : y("", !0),
|
|
434
|
-
|
|
428
|
+
V.value ? (s(), u("svg", {
|
|
435
429
|
key: 4,
|
|
436
430
|
ref_key: "svgRef",
|
|
437
|
-
ref:
|
|
438
|
-
xmlns:
|
|
439
|
-
class:
|
|
431
|
+
ref: ce,
|
|
432
|
+
xmlns: n(pt),
|
|
433
|
+
class: Fe({ "vue-data-ui-fullscreen--on": R.value, "vue-data-ui-fulscreen--off": !R.value }),
|
|
440
434
|
viewBox: `0 0 ${c.value.width <= 0 ? 10 : c.value.width} ${c.value.height <= 0 ? 10 : c.value.height}`,
|
|
441
|
-
style:
|
|
435
|
+
style: le(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.color}`)
|
|
442
436
|
}, [
|
|
443
|
-
|
|
437
|
+
Re(n(Be)),
|
|
444
438
|
t.$slots["chart-background"] ? (s(), u("foreignObject", {
|
|
445
439
|
key: 0,
|
|
446
440
|
x: i.value.left,
|
|
447
441
|
y: i.value.top,
|
|
448
|
-
width: i.value.width,
|
|
449
|
-
height: i.value.height,
|
|
442
|
+
width: Math.max(0.1, i.value.width),
|
|
443
|
+
height: Math.max(0.1, i.value.height),
|
|
450
444
|
style: {
|
|
451
445
|
pointerEvents: "none"
|
|
452
446
|
}
|
|
453
447
|
}, [
|
|
454
|
-
|
|
455
|
-
], 8,
|
|
456
|
-
b.value.length > 0 ? (s(), u("g",
|
|
457
|
-
|
|
458
|
-
|
|
448
|
+
p(t.$slots, "chart-background", {}, void 0, !0)
|
|
449
|
+
], 8, Ft)) : y("", !0),
|
|
450
|
+
b.value.length > 0 ? (s(), u("g", Rt, [
|
|
451
|
+
v("defs", null, [
|
|
452
|
+
v("linearGradient", {
|
|
459
453
|
id: `bearish_gradient_${k.value}`,
|
|
460
454
|
x2: "0%",
|
|
461
455
|
y2: "100%"
|
|
462
456
|
}, [
|
|
463
|
-
|
|
457
|
+
v("stop", {
|
|
464
458
|
offset: "0%",
|
|
465
459
|
"stop-color": e.value.style.layout.candle.colors.bearish
|
|
466
|
-
}, null, 8,
|
|
467
|
-
|
|
460
|
+
}, null, 8, Ot),
|
|
461
|
+
v("stop", {
|
|
468
462
|
offset: "50%",
|
|
469
|
-
"stop-color": `${
|
|
470
|
-
}, null, 8,
|
|
471
|
-
|
|
463
|
+
"stop-color": `${n(Y)(e.value.style.layout.candle.colors.bearish, 0.02)}DE`
|
|
464
|
+
}, null, 8, Vt),
|
|
465
|
+
v("stop", {
|
|
472
466
|
offset: "100%",
|
|
473
|
-
"stop-color": `${
|
|
474
|
-
}, null, 8,
|
|
475
|
-
], 8,
|
|
476
|
-
|
|
467
|
+
"stop-color": `${n(Y)(e.value.style.layout.candle.colors.bearish, 0.05)}66`
|
|
468
|
+
}, null, 8, Pt)
|
|
469
|
+
], 8, Lt),
|
|
470
|
+
v("linearGradient", {
|
|
477
471
|
id: `bullish_gradient_${k.value}`,
|
|
478
472
|
x2: "0%",
|
|
479
473
|
y2: "100%"
|
|
480
474
|
}, [
|
|
481
|
-
|
|
475
|
+
v("stop", {
|
|
482
476
|
offset: "0%",
|
|
483
477
|
"stop-color": e.value.style.layout.candle.colors.bullish
|
|
484
|
-
}, null, 8,
|
|
485
|
-
|
|
478
|
+
}, null, 8, Et),
|
|
479
|
+
v("stop", {
|
|
486
480
|
offset: "50%",
|
|
487
|
-
"stop-color": `${
|
|
488
|
-
}, null, 8,
|
|
489
|
-
|
|
481
|
+
"stop-color": `${n(Y)(e.value.style.layout.candle.colors.bullish, 0.02)}DE`
|
|
482
|
+
}, null, 8, Bt),
|
|
483
|
+
v("stop", {
|
|
490
484
|
offset: "100%",
|
|
491
|
-
"stop-color": `${
|
|
485
|
+
"stop-color": `${n(Y)(e.value.style.layout.candle.colors.bullish, 0.05)}66`
|
|
492
486
|
}, null, 8, Ut)
|
|
493
|
-
], 8,
|
|
487
|
+
], 8, Mt)
|
|
494
488
|
]),
|
|
495
|
-
e.value.style.layout.grid.show ? (s(), u("g",
|
|
496
|
-
|
|
489
|
+
e.value.style.layout.grid.show ? (s(), u("g", Dt, [
|
|
490
|
+
v("line", {
|
|
497
491
|
x1: i.value.left,
|
|
498
492
|
x2: i.value.left,
|
|
499
493
|
y1: i.value.top,
|
|
@@ -501,8 +495,8 @@ const St = ["id"], Nt = ["xmlns", "viewBox"], At = ["x", "y", "width", "height"]
|
|
|
501
495
|
stroke: e.value.style.layout.grid.stroke,
|
|
502
496
|
"stroke-width": e.value.style.layout.grid.strokeWidth,
|
|
503
497
|
"stroke-linecap": "round"
|
|
504
|
-
}, null, 8,
|
|
505
|
-
|
|
498
|
+
}, null, 8, Wt),
|
|
499
|
+
v("line", {
|
|
506
500
|
x1: i.value.left,
|
|
507
501
|
x2: i.value.right,
|
|
508
502
|
y1: i.value.bottom,
|
|
@@ -510,11 +504,11 @@ const St = ["id"], Nt = ["xmlns", "viewBox"], At = ["x", "y", "width", "height"]
|
|
|
510
504
|
stroke: e.value.style.layout.grid.stroke,
|
|
511
505
|
"stroke-width": e.value.style.layout.grid.strokeWidth,
|
|
512
506
|
"stroke-linecap": "round"
|
|
513
|
-
}, null, 8,
|
|
507
|
+
}, null, 8, Gt)
|
|
514
508
|
])) : y("", !0),
|
|
515
|
-
e.value.style.layout.grid.yAxis.dataLabels.show ? (s(), u("g",
|
|
516
|
-
(s(!0), u(
|
|
517
|
-
l.value >=
|
|
509
|
+
e.value.style.layout.grid.yAxis.dataLabels.show ? (s(), u("g", Ht, [
|
|
510
|
+
(s(!0), u(L, null, O(qe.value, (l, a) => (s(), u("g", null, [
|
|
511
|
+
l.value >= _.value.min && l.value <= _.value.max ? (s(), u("line", {
|
|
518
512
|
key: 0,
|
|
519
513
|
x1: i.value.left,
|
|
520
514
|
x2: i.value.left - 5,
|
|
@@ -523,8 +517,8 @@ const St = ["id"], Nt = ["xmlns", "viewBox"], At = ["x", "y", "width", "height"]
|
|
|
523
517
|
stroke: e.value.style.layout.grid.stroke,
|
|
524
518
|
"stroke-width": e.value.style.layout.grid.strokeWidth,
|
|
525
519
|
"stroke-linecap": "round"
|
|
526
|
-
}, null, 8,
|
|
527
|
-
l.value >=
|
|
520
|
+
}, null, 8, jt)) : y("", !0),
|
|
521
|
+
l.value >= _.value.min && l.value <= _.value.max ? (s(), u("text", {
|
|
528
522
|
key: 1,
|
|
529
523
|
x: i.value.left - 8 + e.value.style.layout.grid.yAxis.dataLabels.offsetX,
|
|
530
524
|
y: l.y + c.value.yAxisFontSize / 3,
|
|
@@ -532,23 +526,23 @@ const St = ["id"], Nt = ["xmlns", "viewBox"], At = ["x", "y", "width", "height"]
|
|
|
532
526
|
"text-anchor": "end",
|
|
533
527
|
fill: e.value.style.layout.grid.yAxis.dataLabels.color,
|
|
534
528
|
"font-weight": e.value.style.layout.grid.yAxis.dataLabels.bold ? "bold" : "normal"
|
|
535
|
-
},
|
|
529
|
+
}, B(e.value.style.layout.grid.yAxis.dataLabels.prefix) + " " + B(n(ft)(l.value) ? l.value.toFixed(e.value.style.layout.grid.yAxis.dataLabels.roundingValue) : "") + " " + B(e.value.style.layout.grid.yAxis.dataLabels.suffix), 9, Xt)) : y("", !0)
|
|
536
530
|
]))), 256))
|
|
537
531
|
])) : y("", !0),
|
|
538
|
-
e.value.style.layout.grid.xAxis.dataLabels.show ? (s(), u("g",
|
|
539
|
-
(s(!0), u(
|
|
540
|
-
|
|
532
|
+
e.value.style.layout.grid.xAxis.dataLabels.show ? (s(), u("g", Yt, [
|
|
533
|
+
(s(!0), u(L, null, O(Je.value, (l, a) => (s(), u("g", null, [
|
|
534
|
+
v("text", {
|
|
541
535
|
transform: `translate(${i.value.left + d.value * a + d.value / 2}, ${i.value.bottom + c.value.xAxisFontSize * 2 + e.value.style.layout.grid.xAxis.dataLabels.offsetY}), rotate(${e.value.style.layout.grid.xAxis.dataLabels.rotation})`,
|
|
542
536
|
"text-anchor": e.value.style.layout.grid.xAxis.dataLabels.rotation > 0 ? "start" : e.value.style.layout.grid.xAxis.dataLabels.rotation < 0 ? "end" : "middle",
|
|
543
537
|
"font-size": c.value.xAxisFontSize,
|
|
544
538
|
fill: e.value.style.layout.grid.xAxis.dataLabels.color,
|
|
545
539
|
"font-weight": e.value.style.layout.grid.xAxis.dataLabels.bold ? "bold" : "normal"
|
|
546
|
-
},
|
|
540
|
+
}, B(l), 9, qt)
|
|
547
541
|
]))), 256))
|
|
548
542
|
])) : y("", !0),
|
|
549
|
-
|
|
550
|
-
(s(!0), u(
|
|
551
|
-
|
|
543
|
+
v("g", null, [
|
|
544
|
+
(s(!0), u(L, null, O(b.value, (l, a) => (s(), u("g", null, [
|
|
545
|
+
v("line", {
|
|
552
546
|
x1: l.open.x,
|
|
553
547
|
x2: l.open.x,
|
|
554
548
|
y1: l.high.y,
|
|
@@ -556,23 +550,23 @@ const St = ["id"], Nt = ["xmlns", "viewBox"], At = ["x", "y", "width", "height"]
|
|
|
556
550
|
stroke: e.value.style.layout.wick.stroke,
|
|
557
551
|
"stroke-width": e.value.style.layout.wick.strokeWidth,
|
|
558
552
|
"stroke-linecap": "round"
|
|
559
|
-
}, null, 8,
|
|
560
|
-
e.value.style.layout.wick.extremity.shape === "circle" ? (s(), u("g",
|
|
561
|
-
|
|
553
|
+
}, null, 8, Jt),
|
|
554
|
+
e.value.style.layout.wick.extremity.shape === "circle" ? (s(), u("g", Kt, [
|
|
555
|
+
v("circle", {
|
|
562
556
|
cx: l.high.x,
|
|
563
557
|
cy: l.high.y,
|
|
564
558
|
r: e.value.style.layout.wick.extremity.size === "auto" ? d.value / 20 : e.value.style.layout.wick.extremity.size,
|
|
565
559
|
fill: e.value.style.layout.wick.extremity.color
|
|
566
|
-
}, null, 8,
|
|
567
|
-
|
|
560
|
+
}, null, 8, Qt),
|
|
561
|
+
v("circle", {
|
|
568
562
|
cx: l.low.x,
|
|
569
563
|
cy: l.low.y,
|
|
570
564
|
r: e.value.style.layout.wick.extremity.size === "auto" ? d.value / 20 : e.value.style.layout.wick.extremity.size,
|
|
571
565
|
fill: e.value.style.layout.wick.extremity.color
|
|
572
|
-
}, null, 8,
|
|
566
|
+
}, null, 8, Zt)
|
|
573
567
|
])) : y("", !0),
|
|
574
|
-
e.value.style.layout.wick.extremity.shape === "line" ? (s(), u("g",
|
|
575
|
-
|
|
568
|
+
e.value.style.layout.wick.extremity.shape === "line" ? (s(), u("g", el, [
|
|
569
|
+
v("line", {
|
|
576
570
|
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,
|
|
577
571
|
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,
|
|
578
572
|
y1: l.high.y,
|
|
@@ -580,8 +574,8 @@ const St = ["id"], Nt = ["xmlns", "viewBox"], At = ["x", "y", "width", "height"]
|
|
|
580
574
|
stroke: e.value.style.layout.wick.extremity.color,
|
|
581
575
|
"stroke-width": e.value.style.layout.wick.strokeWidth,
|
|
582
576
|
"stroke-linecap": "round"
|
|
583
|
-
}, null, 8,
|
|
584
|
-
|
|
577
|
+
}, null, 8, tl),
|
|
578
|
+
v("line", {
|
|
585
579
|
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,
|
|
586
580
|
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,
|
|
587
581
|
y1: l.low.y,
|
|
@@ -589,12 +583,12 @@ const St = ["id"], Nt = ["xmlns", "viewBox"], At = ["x", "y", "width", "height"]
|
|
|
589
583
|
stroke: e.value.style.layout.wick.extremity.color,
|
|
590
584
|
"stroke-width": e.value.style.layout.wick.strokeWidth,
|
|
591
585
|
"stroke-linecap": "round"
|
|
592
|
-
}, null, 8,
|
|
586
|
+
}, null, 8, ll)
|
|
593
587
|
])) : y("", !0)
|
|
594
588
|
]))), 256))
|
|
595
589
|
]),
|
|
596
|
-
|
|
597
|
-
(s(!0), u(
|
|
590
|
+
v("g", null, [
|
|
591
|
+
(s(!0), u(L, null, O(b.value, (l, a) => (s(), u("rect", {
|
|
598
592
|
x: l.open.x - d.value / 2 + d.value * (1 - e.value.style.layout.candle.widthRatio) / 2,
|
|
599
593
|
y: l.isBullish ? l.last.y : l.open.y,
|
|
600
594
|
height: Math.abs(l.last.y - l.open.y) <= 0 ? 1e-4 : Math.abs(l.last.y - l.open.y),
|
|
@@ -602,8 +596,8 @@ const St = ["id"], Nt = ["xmlns", "viewBox"], At = ["x", "y", "width", "height"]
|
|
|
602
596
|
fill: e.value.style.layout.candle.gradient.underlayer,
|
|
603
597
|
rx: e.value.style.layout.candle.borderRadius,
|
|
604
598
|
stroke: "none"
|
|
605
|
-
}, null, 8,
|
|
606
|
-
(s(!0), u(
|
|
599
|
+
}, null, 8, ol))), 256)),
|
|
600
|
+
(s(!0), u(L, null, O(b.value, (l, a) => (s(), u("rect", {
|
|
607
601
|
x: l.open.x - d.value / 2 + d.value * (1 - e.value.style.layout.candle.widthRatio) / 2,
|
|
608
602
|
y: l.isBullish ? l.last.y : l.open.y,
|
|
609
603
|
height: Math.abs(l.last.y - l.open.y) <= 0 ? 1e-4 : Math.abs(l.last.y - l.open.y),
|
|
@@ -614,28 +608,28 @@ const St = ["id"], Nt = ["xmlns", "viewBox"], At = ["x", "y", "width", "height"]
|
|
|
614
608
|
"stroke-width": e.value.style.layout.candle.strokeWidth,
|
|
615
609
|
"stroke-linecap": "round",
|
|
616
610
|
"stroke-linejoin": "round"
|
|
617
|
-
}, null, 8,
|
|
611
|
+
}, null, 8, al))), 256))
|
|
618
612
|
]),
|
|
619
|
-
|
|
620
|
-
(s(!0), u(
|
|
613
|
+
v("g", null, [
|
|
614
|
+
(s(!0), u(L, null, O(b.value, (l, a) => (s(), u("rect", {
|
|
621
615
|
x: i.value.left + a * d.value,
|
|
622
616
|
y: i.value.top,
|
|
623
617
|
height: i.value.height <= 0 ? 1e-4 : i.value.height,
|
|
624
618
|
width: d.value <= 0 ? 1e-4 : d.value,
|
|
625
|
-
fill:
|
|
626
|
-
onMouseover: (x) =>
|
|
619
|
+
fill: K.value === a ? n(gt)(e.value.style.layout.selector.color, e.value.style.layout.selector.opacity) : "transparent",
|
|
620
|
+
onMouseover: (x) => Ke(a, l),
|
|
627
621
|
onMouseleave: o[0] || (o[0] = (x) => {
|
|
628
|
-
|
|
622
|
+
K.value = void 0, q.value = !1;
|
|
629
623
|
})
|
|
630
|
-
}, null, 40,
|
|
624
|
+
}, null, 40, sl))), 256))
|
|
631
625
|
])
|
|
632
626
|
])) : y("", !0),
|
|
633
|
-
|
|
634
|
-
], 14,
|
|
635
|
-
t.$slots.watermark ? (s(), u("div",
|
|
636
|
-
|
|
627
|
+
p(t.$slots, "svg", { svg: c.value }, void 0, !0)
|
|
628
|
+
], 14, It)) : y("", !0),
|
|
629
|
+
t.$slots.watermark ? (s(), u("div", ul, [
|
|
630
|
+
p(t.$slots, "watermark", N(A({ isPrinting: n(fe) || n(ge) })), void 0, !0)
|
|
637
631
|
])) : y("", !0),
|
|
638
|
-
|
|
632
|
+
V.value ? y("", !0) : (s(), S(n(De), {
|
|
639
633
|
key: 6,
|
|
640
634
|
config: {
|
|
641
635
|
type: "candlesticks",
|
|
@@ -652,60 +646,60 @@ const St = ["id"], Nt = ["xmlns", "viewBox"], At = ["x", "y", "width", "height"]
|
|
|
652
646
|
}
|
|
653
647
|
}
|
|
654
648
|
}, null, 8, ["config"])),
|
|
655
|
-
e.value.style.zoom.show &&
|
|
649
|
+
e.value.style.zoom.show && V.value ? (s(), u("div", {
|
|
656
650
|
key: 7,
|
|
657
651
|
ref_key: "chartSlicer",
|
|
658
|
-
ref:
|
|
652
|
+
ref: ue
|
|
659
653
|
}, [
|
|
660
|
-
(s(),
|
|
654
|
+
(s(), S(Nt, {
|
|
661
655
|
ref_key: "slicerComponent",
|
|
662
|
-
ref:
|
|
663
|
-
key: `slicer_${
|
|
656
|
+
ref: F,
|
|
657
|
+
key: `slicer_${D.value}`,
|
|
664
658
|
background: e.value.style.zoom.color,
|
|
665
659
|
borderColor: e.value.style.backgroundColor,
|
|
666
660
|
fontSize: e.value.style.zoom.fontSize,
|
|
667
661
|
useResetSlot: e.value.style.zoom.useResetSlot,
|
|
668
|
-
labelLeft:
|
|
669
|
-
labelRight:
|
|
662
|
+
labelLeft: C.dataset[f.value.start] ? C.dataset[f.value.start][0] : C.dataset[0][0],
|
|
663
|
+
labelRight: C.dataset[f.value.end - 1] ? C.dataset[f.value.end - 1][0] : C.dataset.at(-1)[0],
|
|
670
664
|
textColor: e.value.style.color,
|
|
671
665
|
inputColor: e.value.style.zoom.color,
|
|
672
666
|
selectColor: e.value.style.zoom.highlightColor,
|
|
673
|
-
max:
|
|
667
|
+
max: M.value,
|
|
674
668
|
min: 0,
|
|
675
|
-
valueStart:
|
|
676
|
-
valueEnd:
|
|
677
|
-
start:
|
|
678
|
-
"onUpdate:start": o[1] || (o[1] = (l) =>
|
|
679
|
-
end:
|
|
680
|
-
"onUpdate:end": o[2] || (o[2] = (l) =>
|
|
669
|
+
valueStart: f.value.start,
|
|
670
|
+
valueEnd: f.value.end,
|
|
671
|
+
start: f.value.start,
|
|
672
|
+
"onUpdate:start": o[1] || (o[1] = (l) => f.value.start = l),
|
|
673
|
+
end: f.value.end,
|
|
674
|
+
"onUpdate:end": o[2] || (o[2] = (l) => f.value.end = l),
|
|
681
675
|
refreshStartPoint: e.value.style.zoom.startIndex !== null ? e.value.style.zoom.startIndex : 0,
|
|
682
|
-
refreshEndPoint: e.value.style.zoom.endIndex !== null ? e.value.style.zoom.endIndex + 1 :
|
|
676
|
+
refreshEndPoint: e.value.style.zoom.endIndex !== null ? e.value.style.zoom.endIndex + 1 : M.value,
|
|
683
677
|
enableRangeHandles: e.value.style.zoom.enableRangeHandles,
|
|
684
678
|
enableSelectionDrag: e.value.style.zoom.enableSelectionDrag,
|
|
685
|
-
onReset:
|
|
679
|
+
onReset: Qe
|
|
686
680
|
}, {
|
|
687
681
|
"reset-action": m(({ reset: l }) => [
|
|
688
|
-
|
|
682
|
+
p(t.$slots, "reset-action", N(A({ reset: l })), void 0, !0)
|
|
689
683
|
]),
|
|
690
684
|
_: 3
|
|
691
685
|
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"]))
|
|
692
686
|
], 512)) : y("", !0),
|
|
693
|
-
|
|
687
|
+
v("div", {
|
|
694
688
|
ref_key: "chartLegend",
|
|
695
|
-
ref:
|
|
689
|
+
ref: se
|
|
696
690
|
}, [
|
|
697
|
-
|
|
691
|
+
p(t.$slots, "legend", { legend: b.value }, void 0, !0)
|
|
698
692
|
], 512),
|
|
699
693
|
t.$slots.source ? (s(), u("div", {
|
|
700
694
|
key: 8,
|
|
701
695
|
ref_key: "source",
|
|
702
|
-
ref:
|
|
696
|
+
ref: ie,
|
|
703
697
|
dir: "auto"
|
|
704
698
|
}, [
|
|
705
|
-
|
|
699
|
+
p(t.$slots, "source", {}, void 0, !0)
|
|
706
700
|
], 512)) : y("", !0),
|
|
707
|
-
|
|
708
|
-
show: w.value.showTooltip &&
|
|
701
|
+
Re(n(We), {
|
|
702
|
+
show: w.value.showTooltip && q.value,
|
|
709
703
|
backgroundColor: e.value.style.tooltip.backgroundColor,
|
|
710
704
|
color: e.value.style.tooltip.color,
|
|
711
705
|
borderRadius: e.value.style.tooltip.borderRadius,
|
|
@@ -715,20 +709,20 @@ const St = ["id"], Nt = ["xmlns", "viewBox"], At = ["x", "y", "width", "height"]
|
|
|
715
709
|
backgroundOpacity: e.value.style.tooltip.backgroundOpacity,
|
|
716
710
|
position: e.value.style.tooltip.position,
|
|
717
711
|
offsetY: e.value.style.tooltip.offsetY,
|
|
718
|
-
parent:
|
|
719
|
-
content:
|
|
720
|
-
isFullscreen:
|
|
712
|
+
parent: P.value,
|
|
713
|
+
content: J.value,
|
|
714
|
+
isFullscreen: R.value,
|
|
721
715
|
isCustom: e.value.style.tooltip.customFormat && typeof e.value.style.tooltip.customFormat == "function"
|
|
722
716
|
}, {
|
|
723
717
|
"tooltip-before": m(() => [
|
|
724
|
-
|
|
718
|
+
p(t.$slots, "tooltip-before", N(A({ ...ee.value })), void 0, !0)
|
|
725
719
|
]),
|
|
726
720
|
"tooltip-after": m(() => [
|
|
727
|
-
|
|
721
|
+
p(t.$slots, "tooltip-after", N(A({ ...ee.value })), void 0, !0)
|
|
728
722
|
]),
|
|
729
723
|
_: 3
|
|
730
724
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
731
|
-
|
|
725
|
+
V.value ? (s(), S(n(Me), {
|
|
732
726
|
key: 9,
|
|
733
727
|
hideDetails: "",
|
|
734
728
|
config: {
|
|
@@ -745,29 +739,29 @@ const St = ["id"], Nt = ["xmlns", "viewBox"], At = ["x", "y", "width", "height"]
|
|
|
745
739
|
}
|
|
746
740
|
}, {
|
|
747
741
|
content: m(() => [
|
|
748
|
-
(s(),
|
|
749
|
-
key: `table_${
|
|
750
|
-
colNames:
|
|
751
|
-
head:
|
|
752
|
-
body:
|
|
753
|
-
config:
|
|
742
|
+
(s(), S(n(Ee), {
|
|
743
|
+
key: `table_${re.value}`,
|
|
744
|
+
colNames: G.value.colNames,
|
|
745
|
+
head: G.value.head,
|
|
746
|
+
body: G.value.body,
|
|
747
|
+
config: G.value.config,
|
|
754
748
|
title: `${e.value.style.title.text}${e.value.style.title.subtitle.text ? ` : ${e.value.style.title.subtitle.text}` : ""}`,
|
|
755
749
|
onClose: o[3] || (o[3] = (l) => w.value.showTable = !1)
|
|
756
750
|
}, {
|
|
757
751
|
th: m(({ th: l }) => [
|
|
758
|
-
|
|
752
|
+
rt(B(l), 1)
|
|
759
753
|
]),
|
|
760
754
|
td: m(({ td: l }) => [
|
|
761
|
-
|
|
755
|
+
v("div", { innerHTML: l }, null, 8, il)
|
|
762
756
|
]),
|
|
763
757
|
_: 1
|
|
764
758
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
765
759
|
]),
|
|
766
760
|
_: 1
|
|
767
761
|
}, 8, ["config"])) : y("", !0)
|
|
768
|
-
], 46,
|
|
762
|
+
], 46, Tt));
|
|
769
763
|
}
|
|
770
|
-
},
|
|
764
|
+
}, xl = /* @__PURE__ */ At(nl, [["__scopeId", "data-v-6f6b416c"]]);
|
|
771
765
|
export {
|
|
772
|
-
|
|
766
|
+
xl as default
|
|
773
767
|
};
|