vue-data-ui 3.1.13 → 3.1.15
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-CVLA4XvK.js → Arrow-BwVAy_Jw.js} +1 -1
- package/dist/{BaseDraggableDialog-R8VpARJu.js → BaseDraggableDialog-TS2ANP8W.js} +2 -2
- package/dist/{BaseIcon-CBGEVS_a.js → BaseIcon-Dj9csjZa.js} +1 -1
- package/dist/{ColorPicker-YzV_LGZx.js → ColorPicker-BKecww2B.js} +2 -2
- package/dist/{DataTable-DQRJv8EE.js → DataTable-DAc2s9Wi.js} +2 -2
- package/dist/{Legend-CC3LegoH.js → Legend-C3Kvktr3.js} +2 -2
- package/dist/{NonSvgPenAndPaper-CmIOGkib.js → NonSvgPenAndPaper-yA6HCA0i.js} +3 -3
- package/dist/{PackageVersion-bFI66Iee.js → PackageVersion-DL0EOwRR.js} +1 -1
- package/dist/{PenAndPaper-CHT5QaP8.js → PenAndPaper-CcoAkH79.js} +3 -3
- package/dist/{Shape-BWIW_Vmn.js → Shape-CziAQ1KL.js} +1 -1
- package/dist/Slicer-BMgEyKMg.js +995 -0
- package/dist/{SparkTooltip-BP53cKq5.js → SparkTooltip-BGqC2VSH.js} +1 -1
- package/dist/{Title-BKsDkvCV.js → Title-DRhv9bCG.js} +1 -1
- package/dist/{Tooltip-BA5KTZ2e.js → Tooltip-B46L8jx5.js} +1 -1
- package/dist/{UserOptions-usqWO4wC.js → UserOptions-CmhyvH7T.js} +2 -2
- package/dist/{dom-to-png-BnO878iN.js → dom-to-png-B2G1VN03.js} +1 -1
- package/dist/{img-CVbbqgGH.js → img-CRdZ0dzP.js} +1 -1
- package/dist/{index-CdN9MkL7.js → index-BS0jZusk.js} +871 -835
- package/dist/{pdf-D8ryJvtA.js → pdf-Gz1SfU0n.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +4 -0
- package/dist/types/vue-data-ui.d.ts +4 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-CXgpnPOp.js → useAutoSizeLabelsInsideViewbox-BPbMPvCk.js} +1 -1
- package/dist/{useNestedProp-oNhYagej.js → useNestedProp-BMfS1Wmb.js} +1 -1
- package/dist/{usePrinter-CLVErK_G.js → usePrinter-CsKq2kgt.js} +2 -2
- package/dist/{vue-data-ui-ESVJfqTI.js → vue-data-ui-BfnOSsYj.js} +64 -64
- package/dist/vue-data-ui.js +9 -9
- package/dist/{vue-ui-3d-bar-BEColjG7.js → vue-ui-3d-bar-BR_dgJX1.js} +6 -6
- package/dist/{vue-ui-accordion-BoGANFKn.js → vue-ui-accordion-CEzzDwYU.js} +3 -3
- package/dist/{vue-ui-age-pyramid-D4hV5Mm5.js → vue-ui-age-pyramid-CqzjgMzW.js} +6 -6
- package/dist/{vue-ui-annotator-Bd14Ihi4.js → vue-ui-annotator-OWSjXDfI.js} +2 -2
- package/dist/{vue-ui-bullet-B3HG400j.js → vue-ui-bullet-BkiVGK4U.js} +7 -7
- package/dist/{vue-ui-candlestick-B6l4oAdh.js → vue-ui-candlestick-CE9w-lrK.js} +140 -138
- package/dist/{vue-ui-carousel-table-vCbymZEo.js → vue-ui-carousel-table-DzMkFu9a.js} +4 -4
- package/dist/{vue-ui-chestnut-BQ6iufUt.js → vue-ui-chestnut-CwW3t_5M.js} +5 -5
- package/dist/{vue-ui-chord-DW8T8npL.js → vue-ui-chord-C273Dy7g.js} +8 -8
- package/dist/{vue-ui-circle-pack-DjWtxYMQ.js → vue-ui-circle-pack-DVsgg20A.js} +6 -6
- package/dist/{vue-ui-cursor-CtBfAk5K.js → vue-ui-cursor-6wDMRfxj.js} +2 -2
- package/dist/{vue-ui-dashboard-CWuz7g2D.js → vue-ui-dashboard-Dr3da_KZ.js} +67 -67
- package/dist/{vue-ui-digits-D1b_EIv1.js → vue-ui-digits-CJl9xG57.js} +2 -2
- package/dist/{vue-ui-donut-BwdvzYGF.js → vue-ui-donut-CKvoDpr0.js} +8 -8
- package/dist/{vue-ui-donut-evolution-DXbshH8-.js → vue-ui-donut-evolution-B8z5HW6k.js} +62 -60
- package/dist/{vue-ui-dumbbell-Bt2y7QMw.js → vue-ui-dumbbell-C-aWCVEj.js} +7 -7
- package/dist/{vue-ui-flow-CiG_qIh_.js → vue-ui-flow-Cg0W7WX3.js} +7 -7
- package/dist/{vue-ui-funnel-BGCE6fqp.js → vue-ui-funnel-CfzyjhfB.js} +6 -6
- package/dist/{vue-ui-galaxy-BCEyVfRW.js → vue-ui-galaxy-CzswoWLZ.js} +7 -7
- package/dist/{vue-ui-gauge-Cfq8G4nD.js → vue-ui-gauge-BguKCg0e.js} +7 -7
- package/dist/{vue-ui-gizmo-CBOoJgxB.js → vue-ui-gizmo-mhU06gyJ.js} +3 -3
- package/dist/{vue-ui-heatmap-BefuX3hT.js → vue-ui-heatmap-BtAAQWmE.js} +7 -7
- package/dist/{vue-ui-history-plot-BqLyfnJn.js → vue-ui-history-plot-Clrvd4ZQ.js} +7 -7
- package/dist/{vue-ui-kpi-6IbtwB7F.js → vue-ui-kpi-DGpQpP2W.js} +3 -3
- package/dist/{vue-ui-mini-loader-BwbFaE7B.js → vue-ui-mini-loader-2zvIBunp.js} +2 -2
- package/dist/{vue-ui-molecule-BbhQfFdx.js → vue-ui-molecule-DKgiZcBp.js} +5 -5
- package/dist/{vue-ui-mood-radar-B-wVmA-t.js → vue-ui-mood-radar-ka0RoCHN.js} +7 -7
- package/dist/{vue-ui-nested-donuts-qKtWmJsI.js → vue-ui-nested-donuts-CvROIWCn.js} +7 -7
- package/dist/{vue-ui-onion-BpbpizLk.js → vue-ui-onion-x5qCIJUe.js} +8 -8
- package/dist/{vue-ui-parallel-coordinate-plot-BFK9LT6V.js → vue-ui-parallel-coordinate-plot-BaNQTR7G.js} +8 -8
- package/dist/{vue-ui-quadrant-D6_0xe-_.js → vue-ui-quadrant-Bde3xKLu.js} +8 -8
- package/dist/{vue-ui-quick-chart-Du7852v9.js → vue-ui-quick-chart-BpHyBn7x.js} +115 -113
- package/dist/{vue-ui-radar-kEKg-NL7.js → vue-ui-radar-DP3ErImt.js} +8 -8
- package/dist/{vue-ui-rating-7yatRVbx.js → vue-ui-rating-DCL2xb9w.js} +2 -2
- package/dist/{vue-ui-relation-circle-_1W7NdYE.js → vue-ui-relation-circle-COt79-GJ.js} +7 -7
- package/dist/{vue-ui-ridgeline-BSAVhIDE.js → vue-ui-ridgeline-Dcrii6_n.js} +8 -8
- package/dist/{vue-ui-rings-jK9EjGrJ.js → vue-ui-rings-CiDYRQIj.js} +8 -8
- package/dist/{vue-ui-scatter-BPthb9-8.js → vue-ui-scatter-D8bk6KJw.js} +8 -8
- package/dist/{vue-ui-skeleton-VW0h-sRm.js → vue-ui-skeleton-DZN6Q2RW.js} +3 -3
- package/dist/{vue-ui-smiley-DLOiHo-v.js → vue-ui-smiley-a9aOACpQ.js} +2 -2
- package/dist/{vue-ui-spark-trend-BIYEAoE_.js → vue-ui-spark-trend-D2ySMA8w.js} +3 -3
- package/dist/{vue-ui-sparkbar-BfTF_hnD.js → vue-ui-sparkbar-CPKbBS4x.js} +3 -3
- package/dist/{vue-ui-sparkgauge-chrEmdPw.js → vue-ui-sparkgauge-YgppX8cI.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-Dr0-iYVk.js → vue-ui-sparkhistogram-BT-Pb999.js} +4 -4
- package/dist/{vue-ui-sparkline-B-R7lTuD.js → vue-ui-sparkline-DE_nT4bC.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-CGTlNpJY.js → vue-ui-sparkstackbar-3MV7U6sR.js} +3 -3
- package/dist/{vue-ui-stackbar-Dl2ks6xV.js → vue-ui-stackbar-wfRiGYFu.js} +54 -52
- package/dist/{vue-ui-strip-plot-DyCzm2FQ.js → vue-ui-strip-plot-BYDBbI0O.js} +7 -7
- package/dist/{vue-ui-table-heatmap-Cy56aBvN.js → vue-ui-table-heatmap-hOIbFD6k.js} +5 -5
- package/dist/{vue-ui-table-sparkline-BYoEkczS.js → vue-ui-table-sparkline-DNnOTTBh.js} +4 -4
- package/dist/{vue-ui-table-CMxWcytp.js → vue-ui-table-xG0KcrLD.js} +4 -4
- package/dist/{vue-ui-thermometer-B7wec2mE.js → vue-ui-thermometer-C8kZDjnk.js} +7 -7
- package/dist/{vue-ui-timer-CE61Pm8_.js → vue-ui-timer-BZxcYfbP.js} +5 -5
- package/dist/{vue-ui-tiremarks-BKfbwgE0.js → vue-ui-tiremarks-D5mpDWUN.js} +6 -6
- package/dist/{vue-ui-treemap-CDgTxZQG.js → vue-ui-treemap-RPa_dvoO.js} +8 -8
- package/dist/{vue-ui-vertical-bar-BDU24Fw1.js → vue-ui-vertical-bar-OwkTXcnm.js} +9 -9
- package/dist/{vue-ui-waffle-hdT1HxNy.js → vue-ui-waffle-DveHx6kc.js} +8 -8
- package/dist/{vue-ui-wheel-CB5VCBnY.js → vue-ui-wheel-Cyk4SL64.js} +6 -6
- package/dist/{vue-ui-word-cloud-BGmRwhgL.js → vue-ui-word-cloud-BNmS-vjj.js} +6 -6
- package/dist/{vue-ui-world-Dgo59nPi.js → vue-ui-world-BhB1K_eL.js} +6 -6
- package/dist/vue-ui-xy-CfuSMzgb.js +4510 -0
- package/dist/{vue-ui-xy-canvas--NNe3yOn.js → vue-ui-xy-canvas-BFgpcPZ3.js} +132 -130
- package/package.json +1 -1
- package/dist/Slicer-C7BMIgYA.js +0 -972
- package/dist/vue-ui-xy-C9oTa60U.js +0 -4530
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { u as Gt, c as Xt, t as jt, b as Yt, C as le, o as tt, f as U, D as qt, h as q, i as L, X as Jt, x as ae, s as Kt, E as lt, v as Qt, w as Zt, y as el, z as tl } from "./index-
|
|
1
|
+
import { defineAsyncComponent as R, computed as g, ref as r, toRefs as Vt, watch as te, shallowRef as Ke, onMounted as Mt, onBeforeUnmount as Qe, watchEffect as Ut, nextTick as we, createElementBlock as i, openBlock as s, unref as u, normalizeStyle as Ae, normalizeClass as T, createBlock as N, createCommentVNode as p, createElementVNode as y, createVNode as Ce, createSlots as Ze, withCtx as b, renderSlot as m, normalizeProps as B, guardReactiveProps as E, Fragment as V, renderList as M, toDisplayString as Y, resolveDynamicComponent as Wt, mergeProps as Ht, createTextVNode as et } from "vue";
|
|
2
|
+
import { u as Gt, c as Xt, t as jt, b as Yt, C as le, o as tt, f as U, D as qt, h as q, i as L, X as Jt, x as ae, s as Kt, E as lt, v as Qt, w as Zt, y as el, z as tl } from "./index-BS0jZusk.js";
|
|
3
3
|
import { t as at, u as ll } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as al } from "./usePrinter-
|
|
4
|
+
import { u as al } from "./usePrinter-CsKq2kgt.js";
|
|
5
5
|
import { u as ol, B as sl } from "./BaseScanner-BgWxam9d.js";
|
|
6
|
-
import { u as ot } from "./useNestedProp-
|
|
6
|
+
import { u as ot } from "./useNestedProp-BMfS1Wmb.js";
|
|
7
7
|
import { u as ul } from "./useTimeLabels-BGFjWgrv.js";
|
|
8
8
|
import { u as il } from "./useUserOptionState-BIvW1Kz7.js";
|
|
9
9
|
import { u as nl } from "./useChartAccessibility-9icAAmYg.js";
|
|
10
10
|
import { u as rl } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
11
|
-
import vl from "./img-
|
|
12
|
-
import dl from "./Title-
|
|
13
|
-
import { S as cl } from "./Slicer-
|
|
11
|
+
import vl from "./img-CRdZ0dzP.js";
|
|
12
|
+
import dl from "./Title-DRhv9bCG.js";
|
|
13
|
+
import { S as cl } from "./Slicer-BMgEyKMg.js";
|
|
14
14
|
import { _ as yl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
|
-
const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"],
|
|
15
|
+
const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "width", "height"], pl = { key: 1 }, bl = ["id"], ml = ["stop-color"], xl = ["stop-color"], kl = ["stop-color"], wl = ["id"], Al = ["stop-color"], Cl = ["stop-color"], _l = ["stop-color"], zl = { key: 0 }, $l = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Sl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Tl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ll = ["x", "y", "font-size", "fill", "font-weight"], Il = ["transform", "text-anchor", "font-size", "fill", "font-weight"], Rl = ["transform", "text-anchor", "font-size", "fill", "font-weight"], Fl = ["x", "y", "width", "height", "fill", "rx"], Ol = { key: 0 }, Dl = ["cx", "cy", "r", "fill"], Pl = ["cx", "cy", "r", "fill"], Nl = { key: 1 }, Bl = ["x", "y", "width", "height", "rx", "fill"], El = ["x", "y", "width", "height", "fill", "rx"], Vl = ["x", "y", "height", "width", "fill", "rx"], Ml = ["x", "y", "height", "width", "fill", "rx", "stroke", "stroke-width"], Ul = ["x", "y", "height", "width", "fill", "onMouseover", "onMouseleave", "onClick"], Wl = {
|
|
16
16
|
key: 4,
|
|
17
17
|
class: "vue-data-ui-watermark"
|
|
18
18
|
}, Hl = ["innerHTML"], Gl = {
|
|
@@ -32,13 +32,13 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], pl = ["x", "y", "wid
|
|
|
32
32
|
}
|
|
33
33
|
},
|
|
34
34
|
setup(st, { expose: ut }) {
|
|
35
|
-
const it =
|
|
35
|
+
const it = R(() => import("./BaseIcon-Dj9csjZa.js")), nt = R(() => import("./Tooltip-B46L8jx5.js")), rt = R(() => import("./vue-ui-accordion-CEzzDwYU.js")), vt = R(() => import("./DataTable-DAc2s9Wi.js")), dt = R(() => import("./PenAndPaper-CcoAkH79.js")), ct = R(() => import("./UserOptions-CmhyvH7T.js")), yt = R(() => import("./PackageVersion-DL0EOwRR.js")), ht = R(() => import("./BaseDraggableDialog-TS2ANP8W.js")), { vue_ui_candlestick: ft } = Gt(), h = st, oe = g(() => !!h.dataset && h.dataset.length), z = r(!1), se = r(null), A = r(Xt()), ue = r(!1), ie = r(""), ne = r(void 0), _e = r(0), $ = r(null), ze = r(null), $e = r(null), Se = r(null), Te = r(null), Le = r(null), J = r(0), Ie = r(0), Re = r(0), re = r(null), H = r(null), G = r(null), ve = r(null), e = r(ye()), { loading: S, FINAL_DATASET: C, manualLoading: de } = ol({
|
|
36
36
|
...Vt(h),
|
|
37
37
|
FINAL_CONFIG: e,
|
|
38
38
|
prepareConfig: ye,
|
|
39
39
|
callback: () => {
|
|
40
40
|
Promise.resolve().then(async () => {
|
|
41
|
-
await
|
|
41
|
+
await pe();
|
|
42
42
|
});
|
|
43
43
|
},
|
|
44
44
|
skeletonDataset: [
|
|
@@ -96,7 +96,7 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], pl = ["x", "y", "wid
|
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
})
|
|
99
|
-
}), { userOptionsVisible: ce, setUserOptionsVisibility:
|
|
99
|
+
}), { userOptionsVisible: ce, setUserOptionsVisibility: Fe, keepUserOptionState: Oe } = il({ config: e.value }), { svgRef: De } = nl({ config: e.value.style.title });
|
|
100
100
|
function ye() {
|
|
101
101
|
const t = ot({
|
|
102
102
|
userConfig: h.config,
|
|
@@ -111,7 +111,7 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], pl = ["x", "y", "wid
|
|
|
111
111
|
} : a = t, h.config && le(h.config, "style.zoom.startIndex") ? a.style.zoom.startIndex = h.config.style.zoom.startIndex : a.style.zoom.startIndex = null, h.config && le(h.config, "style.zoom.endIndex") ? a.style.zoom.endIndex = h.config.style.zoom.endIndex : a.style.zoom.endIndex = null, h.config && le(h.config, "style.layout.grid.yAxis.scale.min") ? a.style.layout.grid.yAxis.scale.min = h.config.style.layout.grid.yAxis.scale.min : a.style.layout.grid.yAxis.scale.min = null, h.config && le(h.config, "style.layout.grid.yAxis.scale.max") ? a.style.layout.grid.yAxis.scale.max = h.config.style.layout.grid.yAxis.scale.max : a.style.layout.grid.yAxis.scale.max = null, a;
|
|
112
112
|
}
|
|
113
113
|
te(() => h.config, (t) => {
|
|
114
|
-
S.value || (e.value = ye()), ce.value = !e.value.userOptions.showOnChartHover,
|
|
114
|
+
S.value || (e.value = ye()), ce.value = !e.value.userOptions.showOnChartHover, Pe(), J.value += 1, Re.value += 1, Ie.value += 1, k.value.showTable = e.value.table.show, k.value.showTooltip = e.value.style.tooltip.show;
|
|
115
115
|
}, { deep: !0 }), te(() => h.dataset, (t) => {
|
|
116
116
|
Array.isArray(t) && t.length > 0 && (de.value = !1), v.value.start = 0, v.value.end = t.length, J.value += 1;
|
|
117
117
|
}, { deep: !0 });
|
|
@@ -122,24 +122,24 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], pl = ["x", "y", "wid
|
|
|
122
122
|
yAxisFontSize: e.value.style.layout.grid.yAxis.dataLabels.fontSize
|
|
123
123
|
}), I = Ke(null), W = Ke(null);
|
|
124
124
|
Mt(() => {
|
|
125
|
-
|
|
125
|
+
Pe();
|
|
126
126
|
});
|
|
127
|
-
const
|
|
128
|
-
function
|
|
127
|
+
const F = g(() => !!e.value.debug);
|
|
128
|
+
function Pe() {
|
|
129
129
|
if (tt(h.dataset) && (U({
|
|
130
130
|
componentName: "VueUiCandlestick",
|
|
131
131
|
type: "dataset",
|
|
132
|
-
debug:
|
|
132
|
+
debug: F.value
|
|
133
133
|
}), de.value = !0), tt(h.dataset) || (de.value = e.value.loading), setTimeout(() => {
|
|
134
|
-
|
|
134
|
+
z.value = !0;
|
|
135
135
|
}, 10), e.value.responsive) {
|
|
136
136
|
const a = at(() => {
|
|
137
|
-
|
|
137
|
+
z.value = !1;
|
|
138
138
|
const { width: l, height: o } = ll({
|
|
139
|
-
chart:
|
|
140
|
-
title: e.value.style.title.text ?
|
|
139
|
+
chart: $.value,
|
|
140
|
+
title: e.value.style.title.text ? ze.value : null,
|
|
141
141
|
slicer: Se.value,
|
|
142
|
-
legend:
|
|
142
|
+
legend: $e.value,
|
|
143
143
|
source: Te.value,
|
|
144
144
|
noTitle: Le.value
|
|
145
145
|
});
|
|
@@ -157,38 +157,38 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], pl = ["x", "y", "wid
|
|
|
157
157
|
threshold: 6,
|
|
158
158
|
fallback: 6
|
|
159
159
|
})) : (c.value.xAxisFontSize = e.value.style.layout.grid.xAxis.dataLabels.fontSize, c.value.yAxisFontSize = e.value.style.layout.grid.yAxis.dataLabels.fontSize), se.value && clearTimeout(se.value), se.value = setTimeout(() => {
|
|
160
|
-
|
|
160
|
+
z.value = !0;
|
|
161
161
|
}, 10);
|
|
162
162
|
});
|
|
163
163
|
});
|
|
164
|
-
I.value && (W.value && I.value.unobserve(W.value), I.value.disconnect()), I.value = new ResizeObserver(a), W.value =
|
|
164
|
+
I.value && (W.value && I.value.unobserve(W.value), I.value.disconnect()), I.value = new ResizeObserver(a), W.value = $.value.parentNode, I.value.observe(W.value);
|
|
165
165
|
}
|
|
166
|
-
|
|
166
|
+
pe();
|
|
167
167
|
}
|
|
168
168
|
Qe(() => {
|
|
169
169
|
I.value && (W.value && I.value.unobserve(W.value), I.value.disconnect());
|
|
170
170
|
});
|
|
171
|
-
const { isPrinting:
|
|
171
|
+
const { isPrinting: Ne, isImaging: Be, generatePdf: Ee, generateImage: Ve } = al({
|
|
172
172
|
elementId: `vue-ui-candlestick_${A.value}`,
|
|
173
173
|
fileName: e.value.style.title.text || "vue-ui-candlestick",
|
|
174
174
|
options: e.value.userOptions.print
|
|
175
|
-
}),
|
|
175
|
+
}), gt = g(() => e.value.userOptions.show && !e.value.style.title.text), k = r({
|
|
176
176
|
showTable: e.value.table.show,
|
|
177
177
|
showTooltip: e.value.style.tooltip.show
|
|
178
|
-
}), he = r(0),
|
|
178
|
+
}), he = r(0), pt = at((t) => {
|
|
179
179
|
he.value = t;
|
|
180
180
|
}, 100);
|
|
181
181
|
Ut((t) => {
|
|
182
182
|
const a = H.value;
|
|
183
183
|
if (!a) return;
|
|
184
184
|
const l = new ResizeObserver((o) => {
|
|
185
|
-
|
|
185
|
+
pt(o[0].contentRect.height);
|
|
186
186
|
});
|
|
187
187
|
l.observe(a), t(() => l.disconnect());
|
|
188
188
|
}), Qe(() => {
|
|
189
189
|
he.value = 0;
|
|
190
190
|
});
|
|
191
|
-
const Me =
|
|
191
|
+
const Me = g(() => {
|
|
192
192
|
let t = 0;
|
|
193
193
|
return H.value && (t = he.value + c.value.xAxisFontSize), t;
|
|
194
194
|
});
|
|
@@ -199,7 +199,7 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], pl = ["x", "y", "wid
|
|
|
199
199
|
return f > o ? f : o;
|
|
200
200
|
}, 0)), t + 13;
|
|
201
201
|
}
|
|
202
|
-
const n =
|
|
202
|
+
const n = g(() => {
|
|
203
203
|
const { top: t, right: a, bottom: l, left: o } = e.value.style.layout.padding, x = bt(), f = 12;
|
|
204
204
|
return {
|
|
205
205
|
top: t + f,
|
|
@@ -209,49 +209,49 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], pl = ["x", "y", "wid
|
|
|
209
209
|
width: c.value.width - o - a - x,
|
|
210
210
|
height: c.value.height - t - l - Me.value - f
|
|
211
211
|
};
|
|
212
|
-
}), X =
|
|
212
|
+
}), X = g(() => C.value.length), v = r({
|
|
213
213
|
start: 0,
|
|
214
214
|
end: X.value
|
|
215
|
-
}), Ue =
|
|
215
|
+
}), Ue = g(() => C.value.map((t, a) => ({
|
|
216
216
|
...t,
|
|
217
217
|
absoluteIndex: a
|
|
218
|
-
})).slice(v.value.start, v.value.end)), fe =
|
|
218
|
+
})).slice(v.value.start, v.value.end)), fe = g(() => (C.value.forEach((t, a) => {
|
|
219
219
|
[null, void 0].includes(t[0]) && U({
|
|
220
220
|
componentName: "VueUiCandlestick",
|
|
221
221
|
type: "datasetAttribute",
|
|
222
222
|
property: "period (index 0)",
|
|
223
223
|
index: a,
|
|
224
|
-
debug:
|
|
224
|
+
debug: F.value
|
|
225
225
|
}), [null, void 0].includes(t[1]) && U({
|
|
226
226
|
componentName: "VueUiCandlestick",
|
|
227
227
|
type: "datasetAttribute",
|
|
228
228
|
property: "open (index 1)",
|
|
229
229
|
index: a,
|
|
230
|
-
debug:
|
|
230
|
+
debug: F.value
|
|
231
231
|
}), [null, void 0].includes(t[2]) && U({
|
|
232
232
|
componentName: "VueUiCandlestick",
|
|
233
233
|
type: "datasetAttribute",
|
|
234
234
|
property: "high (index 2)",
|
|
235
235
|
index: a,
|
|
236
|
-
debug:
|
|
236
|
+
debug: F.value
|
|
237
237
|
}), [null, void 0].includes(t[3]) && U({
|
|
238
238
|
componentName: "VueUiCandlestick",
|
|
239
239
|
type: "datasetAttribute",
|
|
240
240
|
property: "low (index 3)",
|
|
241
241
|
index: a,
|
|
242
|
-
debug:
|
|
242
|
+
debug: F.value
|
|
243
243
|
}), [null, void 0].includes(t[4]) && U({
|
|
244
244
|
componentName: "VueUiCandlestick",
|
|
245
245
|
type: "datasetAttribute",
|
|
246
246
|
property: "last (index 4)",
|
|
247
247
|
index: a,
|
|
248
|
-
debug:
|
|
248
|
+
debug: F.value
|
|
249
249
|
}), [null, void 0].includes(t[5]) && U({
|
|
250
250
|
componentName: "VueUiCandlestick",
|
|
251
251
|
type: "datasetAttribute",
|
|
252
252
|
property: "volume (index 5)",
|
|
253
253
|
index: a,
|
|
254
|
-
debug:
|
|
254
|
+
debug: F.value
|
|
255
255
|
});
|
|
256
256
|
}), Ue.value.map((t) => ({
|
|
257
257
|
absoluteIndex: t.absoluteIndex,
|
|
@@ -261,13 +261,13 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], pl = ["x", "y", "wid
|
|
|
261
261
|
low: t[3],
|
|
262
262
|
last: t[4],
|
|
263
263
|
volume: t[5]
|
|
264
|
-
})))), d =
|
|
264
|
+
})))), d = g(() => n.value.width / Ue.value.length), We = g(() => {
|
|
265
265
|
const t = e.value.style.layout.grid.yAxis.scale.max === null ? Math.max(...fe.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;
|
|
266
266
|
return {
|
|
267
267
|
max: t,
|
|
268
268
|
min: a
|
|
269
269
|
};
|
|
270
|
-
}), _ =
|
|
270
|
+
}), _ = g(() => qt(We.value.min, We.value.max, e.value.style.layout.grid.yAxis.dataLabels.steps));
|
|
271
271
|
function K(t, a) {
|
|
272
272
|
return {
|
|
273
273
|
...t,
|
|
@@ -276,8 +276,8 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], pl = ["x", "y", "wid
|
|
|
276
276
|
value: q(t)
|
|
277
277
|
};
|
|
278
278
|
}
|
|
279
|
-
const w =
|
|
280
|
-
const l = K(t.open, a), o = K(t.high, a), x = K(t.low, a), f = K(t.last, a),
|
|
279
|
+
const w = g(() => fe.value.map((t, a) => {
|
|
280
|
+
const l = K(t.open, a), o = K(t.high, a), x = K(t.low, a), f = K(t.last, a), P = t.last > t.open;
|
|
281
281
|
return {
|
|
282
282
|
period: t.period,
|
|
283
283
|
open: l,
|
|
@@ -285,29 +285,29 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], pl = ["x", "y", "wid
|
|
|
285
285
|
low: x,
|
|
286
286
|
last: f,
|
|
287
287
|
volume: t.volume,
|
|
288
|
-
isBullish:
|
|
288
|
+
isBullish: P,
|
|
289
289
|
absoluteIndex: t.absoluteIndex
|
|
290
290
|
};
|
|
291
291
|
}));
|
|
292
292
|
function mt(t) {
|
|
293
293
|
return q((t - _.value.min) / (_.value.max - _.value.min));
|
|
294
294
|
}
|
|
295
|
-
const xt =
|
|
295
|
+
const xt = g(() => _.value.ticks.map((t) => ({
|
|
296
296
|
y: n.value.bottom - n.value.height * mt(t),
|
|
297
297
|
value: q(t)
|
|
298
|
-
}))), kt =
|
|
298
|
+
}))), kt = g(() => fe.value.map((t) => t.period)), O = g(() => ul({
|
|
299
299
|
values: C.value.map((t) => t[0]),
|
|
300
300
|
maxDatapoints: C.value.length,
|
|
301
301
|
formatter: e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter,
|
|
302
302
|
start: v.value.start,
|
|
303
303
|
end: v.value.end
|
|
304
|
-
})), He =
|
|
304
|
+
})), He = g(() => e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? {
|
|
305
305
|
start: O.value.find((t) => t.absoluteIndex === v.value.start).text,
|
|
306
306
|
end: O.value.find((t) => t.absoluteIndex === v.value.end - 1).text
|
|
307
307
|
} : {
|
|
308
308
|
start: C.value[v.value.start] ? C.value[v.value.start][0] : C.value[0][0],
|
|
309
309
|
end: C.value[v.value.end - 1] ? C.value[v.value.end - 1][0] : C.value.at(-1)[0]
|
|
310
|
-
}),
|
|
310
|
+
}), ge = r(null);
|
|
311
311
|
function wt(t, a) {
|
|
312
312
|
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: a, seriesIndex: t + v.value.start });
|
|
313
313
|
}
|
|
@@ -315,7 +315,7 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], pl = ["x", "y", "wid
|
|
|
315
315
|
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: a, seriesIndex: t + v.value.start }), ne.value = void 0, ue.value = !1;
|
|
316
316
|
}
|
|
317
317
|
function Ct(t, a) {
|
|
318
|
-
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: a, seriesIndex: t + v.value.start }), ne.value = t,
|
|
318
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: a, seriesIndex: t + v.value.start }), ne.value = t, ge.value = {
|
|
319
319
|
datapoint: a,
|
|
320
320
|
seriesIndex: t,
|
|
321
321
|
series: w.value,
|
|
@@ -336,57 +336,57 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], pl = ["x", "y", "wid
|
|
|
336
336
|
});
|
|
337
337
|
else if (e.value.style.tooltip.show) {
|
|
338
338
|
let o = "";
|
|
339
|
-
const { period: x, open: f, high:
|
|
339
|
+
const { period: x, open: f, high: P, low: xe, last: ke, volume: ee, isBullish: Je } = w.value[t], { period: Xl, open: Lt, high: It, low: Rt, last: Ft, volume: Ot } = e.value.translations, Dt = e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? O.value[t].text : x;
|
|
340
340
|
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}"
|
|
341
|
-
fill="${e.value.style.layout.candle.gradient.show ? Je ? `url(#bullish_gradient_${A.value})` : `url(#bearish_gradient_${A.value})` : Je ? e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.colors.bearish}"/></svg>${
|
|
342
|
-
const
|
|
341
|
+
fill="${e.value.style.layout.candle.gradient.show ? Je ? `url(#bullish_gradient_${A.value})` : `url(#bearish_gradient_${A.value})` : Je ? e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.colors.bearish}"/></svg>${Dt}</div>`, o += `${Ot} : <b>${isNaN(ee) ? "-" : Number(ee.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}">`;
|
|
342
|
+
const Pt = L({
|
|
343
343
|
p: e.value.style.tooltip.prefix,
|
|
344
344
|
v: f.value,
|
|
345
345
|
s: e.value.style.tooltip.suffix,
|
|
346
346
|
r: e.value.style.tooltip.roundingValue
|
|
347
347
|
});
|
|
348
|
-
o += `<div>${Lt}: <b>${
|
|
349
|
-
const
|
|
348
|
+
o += `<div>${Lt}: <b>${Pt}</b></div>`;
|
|
349
|
+
const Nt = L({
|
|
350
350
|
p: e.value.style.tooltip.prefix,
|
|
351
|
-
v:
|
|
351
|
+
v: P.value,
|
|
352
352
|
s: e.value.style.tooltip.suffix,
|
|
353
353
|
r: e.value.style.tooltip.roundingValue
|
|
354
354
|
});
|
|
355
|
-
o += `<div>${It}: <b>${
|
|
355
|
+
o += `<div>${It}: <b>${Nt}</b></div>`;
|
|
356
356
|
const Bt = L({
|
|
357
357
|
p: e.value.style.tooltip.prefix,
|
|
358
358
|
v: xe.value,
|
|
359
359
|
s: e.value.style.tooltip.suffix,
|
|
360
360
|
r: e.value.style.tooltip.roundingValue
|
|
361
361
|
});
|
|
362
|
-
o += `<div>${
|
|
362
|
+
o += `<div>${Rt}: <b>${Bt}</b></div>`;
|
|
363
363
|
const Et = L({
|
|
364
364
|
p: e.value.style.tooltip.prefix,
|
|
365
365
|
v: ke.value,
|
|
366
366
|
s: e.value.style.tooltip.suffix,
|
|
367
367
|
r: e.value.style.tooltip.roundingValue
|
|
368
368
|
});
|
|
369
|
-
o += `<div>${
|
|
369
|
+
o += `<div>${Ft}: <b>${Et}</b></div>`, o += "</div>", ie.value = `<div style="text-align:right">${o}</div>`;
|
|
370
370
|
}
|
|
371
371
|
ue.value = !0;
|
|
372
372
|
}
|
|
373
373
|
function _t() {
|
|
374
|
-
|
|
374
|
+
pe();
|
|
375
375
|
}
|
|
376
376
|
const Ge = r(null);
|
|
377
|
-
async function
|
|
377
|
+
async function pe() {
|
|
378
378
|
await we(), await we();
|
|
379
379
|
const { startIndex: t, endIndex: a } = e.value.style.zoom, l = Ge.value, o = X.value;
|
|
380
|
-
v.value = { start: 0, end: o }, (t != null || a != null) && l ? (t != null ? l.setStartValue(t) : (v.value.start = 0, l.setStartValue(0)), a != null ? l.setEndValue(
|
|
380
|
+
v.value = { start: 0, end: o }, (t != null || a != null) && l ? (t != null ? l.setStartValue(t) : (v.value.start = 0, l.setStartValue(0)), a != null ? l.setEndValue(zt(a + 1)) : (v.value.end = o, l.setEndValue(o))) : (v.value = { start: 0, end: o }, J.value += 1);
|
|
381
381
|
}
|
|
382
|
-
function
|
|
382
|
+
function zt(t) {
|
|
383
383
|
const a = X.value;
|
|
384
384
|
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;
|
|
385
385
|
}
|
|
386
386
|
function be(t = null) {
|
|
387
387
|
we(() => {
|
|
388
|
-
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 = w.value.map((f,
|
|
389
|
-
e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? O.value[
|
|
388
|
+
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 = w.value.map((f, P) => [
|
|
389
|
+
e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? O.value[P].text : f.period,
|
|
390
390
|
f.open.value,
|
|
391
391
|
f.high.value,
|
|
392
392
|
f.low.value,
|
|
@@ -396,9 +396,9 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], pl = ["x", "y", "wid
|
|
|
396
396
|
t ? t(x) : Zt({ csvContent: x, title: e.value.style.title.text || "vue-ui-candlestick" });
|
|
397
397
|
});
|
|
398
398
|
}
|
|
399
|
-
const Q =
|
|
399
|
+
const Q = g(() => {
|
|
400
400
|
const t = w.value.map((o, x) => {
|
|
401
|
-
const f = e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? O.value[x].text : o.period,
|
|
401
|
+
const f = e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? O.value[x].text : o.period, P = L({
|
|
402
402
|
p: e.value.table.td.prefix,
|
|
403
403
|
v: o.open.value,
|
|
404
404
|
s: e.value.table.td.suffix,
|
|
@@ -421,7 +421,7 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], pl = ["x", "y", "wid
|
|
|
421
421
|
});
|
|
422
422
|
return [
|
|
423
423
|
`<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_${A.value}` : `url(#bearish_gradient_${A.value})` : o.isBullish ? e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.colors.bearish}"/></svg> ${f}`,
|
|
424
|
-
|
|
424
|
+
P,
|
|
425
425
|
xe,
|
|
426
426
|
ke,
|
|
427
427
|
ee,
|
|
@@ -448,9 +448,9 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], pl = ["x", "y", "wid
|
|
|
448
448
|
e.value.translations.volume
|
|
449
449
|
];
|
|
450
450
|
return { head: l, body: t, config: a, colNames: l };
|
|
451
|
-
}),
|
|
451
|
+
}), D = r(!1);
|
|
452
452
|
function Xe(t) {
|
|
453
|
-
|
|
453
|
+
D.value = t, _e.value += 1;
|
|
454
454
|
}
|
|
455
455
|
function je() {
|
|
456
456
|
k.value.showTable = !k.value.showTable;
|
|
@@ -462,9 +462,9 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], pl = ["x", "y", "wid
|
|
|
462
462
|
function me() {
|
|
463
463
|
Z.value = !Z.value;
|
|
464
464
|
}
|
|
465
|
-
async function
|
|
466
|
-
if (
|
|
467
|
-
const { width: a, height: l } =
|
|
465
|
+
async function $t({ scale: t = 2 } = {}) {
|
|
466
|
+
if (!$.value) return;
|
|
467
|
+
const { width: a, height: l } = $.value.getBoundingClientRect(), o = a / l, { imageUri: x, base64: f } = await vl({ domElement: $.value, base64: !0, img: !0, scale: t });
|
|
468
468
|
return {
|
|
469
469
|
imageUri: x,
|
|
470
470
|
base64: f,
|
|
@@ -474,7 +474,7 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], pl = ["x", "y", "wid
|
|
|
474
474
|
aspectRatio: o
|
|
475
475
|
};
|
|
476
476
|
}
|
|
477
|
-
const St =
|
|
477
|
+
const St = g(() => c.value.width), Tt = g(() => c.value.height);
|
|
478
478
|
rl({
|
|
479
479
|
timeLabelsEls: H,
|
|
480
480
|
timeLabels: O,
|
|
@@ -492,7 +492,7 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], pl = ["x", "y", "wid
|
|
|
492
492
|
showTooltip: e.value.style.tooltip.show
|
|
493
493
|
};
|
|
494
494
|
}, { immediate: !0 });
|
|
495
|
-
const j =
|
|
495
|
+
const j = g(() => {
|
|
496
496
|
const t = e.value.table.useDialog && !e.value.table.show, a = k.value.showTable;
|
|
497
497
|
return {
|
|
498
498
|
component: t ? ht : rt,
|
|
@@ -502,8 +502,8 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], pl = ["x", "y", "wid
|
|
|
502
502
|
color: e.value.table.th.color,
|
|
503
503
|
headerColor: e.value.table.th.color,
|
|
504
504
|
headerBg: e.value.table.th.backgroundColor,
|
|
505
|
-
isFullscreen:
|
|
506
|
-
fullscreenParent:
|
|
505
|
+
isFullscreen: D.value,
|
|
506
|
+
fullscreenParent: $.value,
|
|
507
507
|
forcedWidth: Math.min(800, window.innerWidth * 0.8)
|
|
508
508
|
} : {
|
|
509
509
|
hideDetails: !0,
|
|
@@ -529,7 +529,7 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], pl = ["x", "y", "wid
|
|
|
529
529
|
k.value.showTable = !1, ve.value && ve.value.setTableIconState(!1);
|
|
530
530
|
}
|
|
531
531
|
return ut({
|
|
532
|
-
getImage:
|
|
532
|
+
getImage: $t,
|
|
533
533
|
generatePdf: Ee,
|
|
534
534
|
generateCsv: be,
|
|
535
535
|
generateImage: Ve,
|
|
@@ -539,36 +539,36 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], pl = ["x", "y", "wid
|
|
|
539
539
|
toggleFullscreen: Xe
|
|
540
540
|
}), (t, a) => (s(), i("div", {
|
|
541
541
|
ref_key: "candlestickChart",
|
|
542
|
-
ref:
|
|
543
|
-
class: T(`vue-ui-candlestick ${
|
|
542
|
+
ref: $,
|
|
543
|
+
class: T(`vue-ui-candlestick ${D.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
544
544
|
style: Ae(`position:relative;font-family:${e.value.style.fontFamily}; text-align:center;background:${e.value.style.backgroundColor}; ${e.value.responsive ? "height: 100%" : ""}`),
|
|
545
545
|
id: `vue-ui-candlestick_${A.value}`,
|
|
546
|
-
onMouseenter: a[3] || (a[3] = () => u(
|
|
547
|
-
onMouseleave: a[4] || (a[4] = () => u(
|
|
546
|
+
onMouseenter: a[3] || (a[3] = () => u(Fe)(!0)),
|
|
547
|
+
onMouseleave: a[4] || (a[4] = () => u(Fe)(!1))
|
|
548
548
|
}, [
|
|
549
|
-
e.value.userOptions.buttons.annotator ? (s(),
|
|
549
|
+
e.value.userOptions.buttons.annotator ? (s(), N(u(dt), {
|
|
550
550
|
key: 0,
|
|
551
|
-
svgRef: u(
|
|
551
|
+
svgRef: u(De),
|
|
552
552
|
backgroundColor: e.value.style.backgroundColor,
|
|
553
553
|
color: e.value.style.color,
|
|
554
554
|
active: Z.value,
|
|
555
555
|
onClose: me
|
|
556
|
-
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) :
|
|
557
|
-
|
|
556
|
+
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : p("", !0),
|
|
557
|
+
gt.value ? (s(), i("div", {
|
|
558
558
|
key: 1,
|
|
559
559
|
ref_key: "noTitle",
|
|
560
560
|
ref: Le,
|
|
561
561
|
class: "vue-data-ui-no-title-space",
|
|
562
562
|
style: "height:36px; width: 100%;background:transparent"
|
|
563
|
-
}, null, 512)) :
|
|
563
|
+
}, null, 512)) : p("", !0),
|
|
564
564
|
e.value.style.title.text ? (s(), i("div", {
|
|
565
565
|
key: 2,
|
|
566
566
|
ref_key: "chartTitle",
|
|
567
|
-
ref:
|
|
567
|
+
ref: ze,
|
|
568
568
|
style: "width:100%;background:transparent"
|
|
569
569
|
}, [
|
|
570
|
-
(s(),
|
|
571
|
-
key: `title_${
|
|
570
|
+
(s(), N(dl, {
|
|
571
|
+
key: `title_${Re.value}`,
|
|
572
572
|
config: {
|
|
573
573
|
title: {
|
|
574
574
|
cy: "candlestick-div-title",
|
|
@@ -580,15 +580,15 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], pl = ["x", "y", "wid
|
|
|
580
580
|
}
|
|
581
581
|
}
|
|
582
582
|
}, null, 8, ["config"]))
|
|
583
|
-
], 512)) :
|
|
584
|
-
e.value.userOptions.show && oe.value && (u(Oe) || u(ce)) ? (s(),
|
|
583
|
+
], 512)) : p("", !0),
|
|
584
|
+
e.value.userOptions.show && oe.value && (u(Oe) || u(ce)) ? (s(), N(u(ct), {
|
|
585
585
|
ref_key: "userOptionsRef",
|
|
586
586
|
ref: ve,
|
|
587
587
|
key: `user_options_${_e.value}`,
|
|
588
588
|
backgroundColor: e.value.style.backgroundColor,
|
|
589
589
|
color: e.value.style.color,
|
|
590
590
|
isImaging: u(Be),
|
|
591
|
-
isPrinting: u(
|
|
591
|
+
isPrinting: u(Ne),
|
|
592
592
|
uid: A.value,
|
|
593
593
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.tooltip.show,
|
|
594
594
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -596,10 +596,10 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], pl = ["x", "y", "wid
|
|
|
596
596
|
hasXls: e.value.userOptions.buttons.csv,
|
|
597
597
|
hasTable: e.value.userOptions.buttons.table,
|
|
598
598
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
599
|
-
isFullscreen:
|
|
599
|
+
isFullscreen: D.value,
|
|
600
600
|
isTooltip: k.value.showTooltip,
|
|
601
601
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
602
|
-
chartElement:
|
|
602
|
+
chartElement: $.value,
|
|
603
603
|
position: e.value.userOptions.position,
|
|
604
604
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
605
605
|
isAnnotation: Z.value,
|
|
@@ -673,13 +673,13 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], pl = ["x", "y", "wid
|
|
|
673
673
|
]),
|
|
674
674
|
key: "7"
|
|
675
675
|
} : void 0
|
|
676
|
-
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) :
|
|
676
|
+
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : p("", !0),
|
|
677
677
|
(s(), i("svg", {
|
|
678
678
|
ref_key: "svgRef",
|
|
679
|
-
ref:
|
|
679
|
+
ref: De,
|
|
680
680
|
xmlns: u(Jt),
|
|
681
681
|
"aria-label": e.value.style.title.text || "candlestick chart",
|
|
682
|
-
class: T({ "vue-data-ui-fullscreen--on":
|
|
682
|
+
class: T({ "vue-data-ui-fullscreen--on": D.value, "vue-data-ui-fulscreen--off": !D.value }),
|
|
683
683
|
viewBox: `0 0 ${c.value.width <= 0 ? 10 : c.value.width} ${c.value.height <= 0 ? 10 : c.value.height}`,
|
|
684
684
|
style: Ae(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.color}`)
|
|
685
685
|
}, [
|
|
@@ -695,8 +695,8 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], pl = ["x", "y", "wid
|
|
|
695
695
|
}
|
|
696
696
|
}, [
|
|
697
697
|
m(t.$slots, "chart-background", {}, void 0, !0)
|
|
698
|
-
], 8,
|
|
699
|
-
w.value.length > 0 ? (s(), i("g",
|
|
698
|
+
], 8, gl)) : p("", !0),
|
|
699
|
+
w.value.length > 0 ? (s(), i("g", pl, [
|
|
700
700
|
y("defs", null, [
|
|
701
701
|
y("linearGradient", {
|
|
702
702
|
id: `bearish_gradient_${A.value}`,
|
|
@@ -735,7 +735,7 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], pl = ["x", "y", "wid
|
|
|
735
735
|
}, null, 8, _l)
|
|
736
736
|
], 8, wl)
|
|
737
737
|
]),
|
|
738
|
-
e.value.style.layout.grid.show ? (s(), i("g",
|
|
738
|
+
e.value.style.layout.grid.show ? (s(), i("g", zl, [
|
|
739
739
|
y("line", {
|
|
740
740
|
x1: n.value.left,
|
|
741
741
|
x2: n.value.left,
|
|
@@ -744,7 +744,7 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], pl = ["x", "y", "wid
|
|
|
744
744
|
stroke: e.value.style.layout.grid.stroke,
|
|
745
745
|
"stroke-width": e.value.style.layout.grid.strokeWidth,
|
|
746
746
|
"stroke-linecap": "round"
|
|
747
|
-
}, null, 8,
|
|
747
|
+
}, null, 8, $l),
|
|
748
748
|
y("line", {
|
|
749
749
|
x1: n.value.left,
|
|
750
750
|
x2: n.value.right,
|
|
@@ -754,7 +754,7 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], pl = ["x", "y", "wid
|
|
|
754
754
|
"stroke-width": e.value.style.layout.grid.strokeWidth,
|
|
755
755
|
"stroke-linecap": "round"
|
|
756
756
|
}, null, 8, Sl)
|
|
757
|
-
])) :
|
|
757
|
+
])) : p("", !0),
|
|
758
758
|
e.value.style.layout.grid.yAxis.dataLabels.show ? (s(), i("g", {
|
|
759
759
|
key: 1,
|
|
760
760
|
ref_key: "scaleLabels",
|
|
@@ -770,7 +770,7 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], pl = ["x", "y", "wid
|
|
|
770
770
|
stroke: e.value.style.layout.grid.stroke,
|
|
771
771
|
"stroke-width": e.value.style.layout.grid.strokeWidth,
|
|
772
772
|
"stroke-linecap": "round"
|
|
773
|
-
}, null, 8, Tl)) :
|
|
773
|
+
}, null, 8, Tl)) : p("", !0),
|
|
774
774
|
l.value >= _.value.min && l.value <= _.value.max ? (s(), i("text", {
|
|
775
775
|
key: 1,
|
|
776
776
|
x: n.value.left - 8 + e.value.style.layout.grid.yAxis.dataLabels.offsetX,
|
|
@@ -784,9 +784,9 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], pl = ["x", "y", "wid
|
|
|
784
784
|
v: l.value,
|
|
785
785
|
s: e.value.style.layout.grid.yAxis.dataLabels.suffix,
|
|
786
786
|
r: e.value.style.layout.grid.yAxis.dataLabels.roundingValue
|
|
787
|
-
})), 9, Ll)) :
|
|
787
|
+
})), 9, Ll)) : p("", !0)
|
|
788
788
|
]))), 256))
|
|
789
|
-
], 512)) :
|
|
789
|
+
], 512)) : p("", !0),
|
|
790
790
|
e.value.style.layout.grid.xAxis.dataLabels.show && !e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? (s(), i("g", {
|
|
791
791
|
key: 2,
|
|
792
792
|
ref_key: "timeLabelsEls",
|
|
@@ -802,7 +802,7 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], pl = ["x", "y", "wid
|
|
|
802
802
|
"font-weight": e.value.style.layout.grid.xAxis.dataLabels.bold ? "bold" : "normal"
|
|
803
803
|
}, Y(l), 9, Il)
|
|
804
804
|
]))), 256))
|
|
805
|
-
], 512)) :
|
|
805
|
+
], 512)) : p("", !0),
|
|
806
806
|
e.value.style.layout.grid.xAxis.dataLabels.show && e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? (s(), i("g", {
|
|
807
807
|
key: 3,
|
|
808
808
|
ref_key: "timeLabelsEls",
|
|
@@ -816,9 +816,9 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], pl = ["x", "y", "wid
|
|
|
816
816
|
"font-size": c.value.xAxisFontSize,
|
|
817
817
|
fill: e.value.style.layout.grid.xAxis.dataLabels.color,
|
|
818
818
|
"font-weight": e.value.style.layout.grid.xAxis.dataLabels.bold ? "bold" : "normal"
|
|
819
|
-
}, Y(l.text), 9,
|
|
819
|
+
}, Y(l.text), 9, Rl)
|
|
820
820
|
]))), 256))
|
|
821
|
-
], 512)) :
|
|
821
|
+
], 512)) : p("", !0),
|
|
822
822
|
y("g", null, [
|
|
823
823
|
(s(!0), i(V, null, M(w.value, (l, o) => (s(), i("g", null, [
|
|
824
824
|
y("rect", {
|
|
@@ -829,25 +829,25 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], pl = ["x", "y", "wid
|
|
|
829
829
|
fill: e.value.style.layout.wick.stroke,
|
|
830
830
|
stroke: "none",
|
|
831
831
|
rx: e.value.style.layout.wick.strokeWidth / 2,
|
|
832
|
-
class: T({ "vue-data-ui-transition":
|
|
833
|
-
}, null, 10,
|
|
832
|
+
class: T({ "vue-data-ui-transition": z.value && !u(S) })
|
|
833
|
+
}, null, 10, Fl),
|
|
834
834
|
e.value.style.layout.wick.extremity.shape === "circle" ? (s(), i("g", Ol, [
|
|
835
835
|
y("circle", {
|
|
836
836
|
cx: l.high.x,
|
|
837
837
|
cy: l.high.y,
|
|
838
838
|
r: e.value.style.layout.wick.extremity.size === "auto" ? d.value / 20 : e.value.style.layout.wick.extremity.size,
|
|
839
839
|
fill: e.value.style.layout.wick.extremity.color,
|
|
840
|
-
class: T({ "vue-data-ui-transition":
|
|
841
|
-
}, null, 10,
|
|
840
|
+
class: T({ "vue-data-ui-transition": z.value && !u(S) })
|
|
841
|
+
}, null, 10, Dl),
|
|
842
842
|
y("circle", {
|
|
843
843
|
cx: l.low.x,
|
|
844
844
|
cy: l.low.y,
|
|
845
845
|
r: e.value.style.layout.wick.extremity.size === "auto" ? d.value / 20 : e.value.style.layout.wick.extremity.size,
|
|
846
846
|
fill: e.value.style.layout.wick.extremity.color,
|
|
847
|
-
class: T({ "vue-data-ui-transition":
|
|
848
|
-
}, null, 10,
|
|
849
|
-
])) :
|
|
850
|
-
e.value.style.layout.wick.extremity.shape === "line" ? (s(), i("g",
|
|
847
|
+
class: T({ "vue-data-ui-transition": z.value && !u(S) })
|
|
848
|
+
}, null, 10, Pl)
|
|
849
|
+
])) : p("", !0),
|
|
850
|
+
e.value.style.layout.wick.extremity.shape === "line" ? (s(), i("g", Nl, [
|
|
851
851
|
y("rect", {
|
|
852
852
|
x: 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,
|
|
853
853
|
y: l.high.y - e.value.style.layout.wick.strokeWidth / 2,
|
|
@@ -856,7 +856,7 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], pl = ["x", "y", "wid
|
|
|
856
856
|
rx: e.value.style.layout.wick.strokeWidth / 2,
|
|
857
857
|
fill: e.value.style.layout.wick.extremity.color,
|
|
858
858
|
stroke: "none",
|
|
859
|
-
class: T({ "vue-data-ui-transition":
|
|
859
|
+
class: T({ "vue-data-ui-transition": z.value && !u(S) })
|
|
860
860
|
}, null, 10, Bl),
|
|
861
861
|
y("rect", {
|
|
862
862
|
x: l.low.x - (e.value.style.layout.wick.extremity.size === "auto" ? d.value * e.value.style.layout.candle.widthRatio : e.value.style.layout.wick.extremity.size) / 2,
|
|
@@ -866,9 +866,9 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], pl = ["x", "y", "wid
|
|
|
866
866
|
fill: e.value.style.layout.wick.extremity.color,
|
|
867
867
|
stroke: "none",
|
|
868
868
|
rx: e.value.style.layout.wick.strokeWidth / 2,
|
|
869
|
-
class: T({ "vue-data-ui-transition":
|
|
869
|
+
class: T({ "vue-data-ui-transition": z.value && !u(S) })
|
|
870
870
|
}, null, 10, El)
|
|
871
|
-
])) :
|
|
871
|
+
])) : p("", !0)
|
|
872
872
|
]))), 256))
|
|
873
873
|
]),
|
|
874
874
|
y("g", null, [
|
|
@@ -880,7 +880,7 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], pl = ["x", "y", "wid
|
|
|
880
880
|
fill: e.value.style.layout.candle.gradient.underlayer,
|
|
881
881
|
rx: e.value.style.layout.candle.borderRadius,
|
|
882
882
|
stroke: "none",
|
|
883
|
-
class: T({ "vue-data-ui-transition":
|
|
883
|
+
class: T({ "vue-data-ui-transition": z.value && !u(S) })
|
|
884
884
|
}, null, 10, Vl))), 256)),
|
|
885
885
|
(s(!0), i(V, null, M(w.value, (l, o) => (s(), i("rect", {
|
|
886
886
|
x: l.open.x - d.value / 2 + d.value * (1 - e.value.style.layout.candle.widthRatio) / 2,
|
|
@@ -893,7 +893,7 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], pl = ["x", "y", "wid
|
|
|
893
893
|
"stroke-width": e.value.style.layout.candle.strokeWidth,
|
|
894
894
|
"stroke-linecap": "round",
|
|
895
895
|
"stroke-linejoin": "round",
|
|
896
|
-
class: T({ "vue-data-ui-transition":
|
|
896
|
+
class: T({ "vue-data-ui-transition": z.value && !u(S) })
|
|
897
897
|
}, null, 10, Ml))), 256))
|
|
898
898
|
]),
|
|
899
899
|
y("g", null, [
|
|
@@ -908,18 +908,18 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], pl = ["x", "y", "wid
|
|
|
908
908
|
onClick: () => wt(o, l)
|
|
909
909
|
}, null, 40, Ul))), 256))
|
|
910
910
|
])
|
|
911
|
-
])) :
|
|
911
|
+
])) : p("", !0),
|
|
912
912
|
m(t.$slots, "svg", { svg: c.value }, void 0, !0)
|
|
913
913
|
], 14, fl)),
|
|
914
914
|
t.$slots.watermark ? (s(), i("div", Wl, [
|
|
915
|
-
m(t.$slots, "watermark", B(E({ isPrinting: u(
|
|
916
|
-
])) :
|
|
915
|
+
m(t.$slots, "watermark", B(E({ isPrinting: u(Ne) || u(Be) })), void 0, !0)
|
|
916
|
+
])) : p("", !0),
|
|
917
917
|
e.value.style.zoom.show && oe.value ? (s(), i("div", {
|
|
918
918
|
key: 5,
|
|
919
919
|
ref_key: "chartSlicer",
|
|
920
920
|
ref: Se
|
|
921
921
|
}, [
|
|
922
|
-
(s(),
|
|
922
|
+
(s(), N(cl, {
|
|
923
923
|
ref_key: "slicerComponent",
|
|
924
924
|
ref: Ge,
|
|
925
925
|
key: `slicer_${J.value}`,
|
|
@@ -944,17 +944,19 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], pl = ["x", "y", "wid
|
|
|
944
944
|
refreshEndPoint: e.value.style.zoom.endIndex !== null ? e.value.style.zoom.endIndex + 1 : X.value,
|
|
945
945
|
enableRangeHandles: e.value.style.zoom.enableRangeHandles,
|
|
946
946
|
enableSelectionDrag: e.value.style.zoom.enableSelectionDrag,
|
|
947
|
+
focusOnDrag: e.value.style.zoom.focusOnDrag,
|
|
948
|
+
focusRangeRatio: e.value.style.zoom.focusRangeRatio,
|
|
947
949
|
onReset: _t
|
|
948
950
|
}, {
|
|
949
951
|
"reset-action": b(({ reset: l }) => [
|
|
950
952
|
m(t.$slots, "reset-action", B(E({ reset: l })), void 0, !0)
|
|
951
953
|
]),
|
|
952
954
|
_: 3
|
|
953
|
-
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"]))
|
|
954
|
-
], 512)) :
|
|
955
|
+
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag", "focusOnDrag", "focusRangeRatio"]))
|
|
956
|
+
], 512)) : p("", !0),
|
|
955
957
|
y("div", {
|
|
956
958
|
ref_key: "chartLegend",
|
|
957
|
-
ref:
|
|
959
|
+
ref: $e
|
|
958
960
|
}, [
|
|
959
961
|
m(t.$slots, "legend", { legend: w.value }, void 0, !0)
|
|
960
962
|
], 512),
|
|
@@ -965,7 +967,7 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], pl = ["x", "y", "wid
|
|
|
965
967
|
dir: "auto"
|
|
966
968
|
}, [
|
|
967
969
|
m(t.$slots, "source", {}, void 0, !0)
|
|
968
|
-
], 512)) :
|
|
970
|
+
], 512)) : p("", !0),
|
|
969
971
|
Ce(u(nt), {
|
|
970
972
|
show: k.value.showTooltip && ue.value,
|
|
971
973
|
backgroundColor: e.value.style.tooltip.backgroundColor,
|
|
@@ -977,9 +979,9 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], pl = ["x", "y", "wid
|
|
|
977
979
|
backgroundOpacity: e.value.style.tooltip.backgroundOpacity,
|
|
978
980
|
position: e.value.style.tooltip.position,
|
|
979
981
|
offsetY: e.value.style.tooltip.offsetY,
|
|
980
|
-
parent:
|
|
982
|
+
parent: $.value,
|
|
981
983
|
content: ie.value,
|
|
982
|
-
isFullscreen:
|
|
984
|
+
isFullscreen: D.value,
|
|
983
985
|
isCustom: e.value.style.tooltip.customFormat && typeof e.value.style.tooltip.customFormat == "function",
|
|
984
986
|
smooth: e.value.style.tooltip.smooth,
|
|
985
987
|
backdropFilter: e.value.style.tooltip.backdropFilter,
|
|
@@ -987,20 +989,20 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], pl = ["x", "y", "wid
|
|
|
987
989
|
smoothSnapThreshold: e.value.style.tooltip.smoothSnapThreshold
|
|
988
990
|
}, {
|
|
989
991
|
"tooltip-before": b(() => [
|
|
990
|
-
m(t.$slots, "tooltip-before", B(E({ ...
|
|
992
|
+
m(t.$slots, "tooltip-before", B(E({ ...ge.value })), void 0, !0)
|
|
991
993
|
]),
|
|
992
994
|
"tooltip-after": b(() => [
|
|
993
|
-
m(t.$slots, "tooltip-after", B(E({ ...
|
|
995
|
+
m(t.$slots, "tooltip-after", B(E({ ...ge.value })), void 0, !0)
|
|
994
996
|
]),
|
|
995
997
|
_: 3
|
|
996
998
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
997
|
-
oe.value && e.value.userOptions.buttons.table ? (s(),
|
|
999
|
+
oe.value && e.value.userOptions.buttons.table ? (s(), N(Wt(j.value.component), Ht({ key: 7 }, j.value.props, {
|
|
998
1000
|
ref_key: "tableUnit",
|
|
999
1001
|
ref: G,
|
|
1000
1002
|
onClose: qe
|
|
1001
1003
|
}), Ze({
|
|
1002
1004
|
content: b(() => [
|
|
1003
|
-
(s(),
|
|
1005
|
+
(s(), N(u(vt), {
|
|
1004
1006
|
key: `table_${Ie.value}`,
|
|
1005
1007
|
colNames: Q.value.colNames,
|
|
1006
1008
|
head: Q.value.head,
|
|
@@ -1044,11 +1046,11 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], pl = ["x", "y", "wid
|
|
|
1044
1046
|
]),
|
|
1045
1047
|
key: "1"
|
|
1046
1048
|
} : void 0
|
|
1047
|
-
]), 1040)) :
|
|
1048
|
-
u(S) ? (s(),
|
|
1049
|
+
]), 1040)) : p("", !0),
|
|
1050
|
+
u(S) ? (s(), N(sl, { key: 8 })) : p("", !0)
|
|
1049
1051
|
], 46, hl));
|
|
1050
1052
|
}
|
|
1051
|
-
}, ia = /* @__PURE__ */ yl(Gl, [["__scopeId", "data-v-
|
|
1053
|
+
}, ia = /* @__PURE__ */ yl(Gl, [["__scopeId", "data-v-f32a2d80"]]);
|
|
1052
1054
|
export {
|
|
1053
1055
|
ia as default
|
|
1054
1056
|
};
|