vue-data-ui 3.0.0-next.26 → 3.0.0-next.27
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-CsNgq2ZF.js → Arrow-RGDVmFSH.js} +1 -1
- package/dist/{BaseDraggableDialog-yqJAu5Cf.js → BaseDraggableDialog-2MH5hxMc.js} +2 -2
- package/dist/{BaseIcon-CIPCGWyZ.js → BaseIcon-DLJ5Lzvf.js} +1 -1
- package/dist/{ColorPicker-CzNlpUdq.js → ColorPicker-uH4pBeoc.js} +2 -2
- package/dist/{DataTable-6ZKiedr4.js → DataTable-DWXGn13M.js} +2 -2
- package/dist/{Legend-B0mt4iJx.js → Legend-XvLWu-U4.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DLef79mr.js → NonSvgPenAndPaper-DY6-8nWM.js} +3 -3
- package/dist/{PackageVersion-DF_M_33r.js → PackageVersion-CcyOrmqr.js} +1 -1
- package/dist/{PenAndPaper-i2SC47RS.js → PenAndPaper-S1h1sM_v.js} +3 -3
- package/dist/{Shape-XBUldhbb.js → Shape-B2NNkVEU.js} +1 -1
- package/dist/{Slicer-CoD6AOHL.js → Slicer-C2128jWm.js} +2 -2
- package/dist/{SparkTooltip-BgBRqkPH.js → SparkTooltip-B0IgrAiC.js} +1 -1
- package/dist/{Title-IaxR8U-N.js → Title-BT7bS0eb.js} +1 -1
- package/dist/{Tooltip-DCh0ZmS5.js → Tooltip-CbaafXw_.js} +1 -1
- package/dist/{UserOptions-J_zxxPnc.js → UserOptions-C9lB05jb.js} +2 -2
- package/dist/{dom-to-png-Bm-vMd2x.js → dom-to-png-B5f_cRVB.js} +1 -1
- package/dist/{img-B3U0-8wy.js → img-BScthXJW.js} +1 -1
- package/dist/{index-gToq10k7.js → index-DTJkgcxh.js} +341 -337
- package/dist/{pdf-BdjzkOlO.js → pdf-DEfty6-G.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +3 -2
- package/dist/types/vue-data-ui.d.ts +3 -2
- package/dist/{useNestedProp-gmapANmc.js → useNestedProp-DvwKj8Zn.js} +1 -1
- package/dist/{usePrinter-CbZEI2_c.js → usePrinter-CbokYjoB.js} +2 -2
- package/dist/{vue-data-ui-CZVJfC0E.js → vue-data-ui-BubXK-EN.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-MTNEP9CL.js → vue-ui-3d-bar-BgbiwMsJ.js} +6 -6
- package/dist/{vue-ui-accordion-DLihDfed.js → vue-ui-accordion-BDuLBbkX.js} +3 -3
- package/dist/{vue-ui-age-pyramid-IY3QdXfK.js → vue-ui-age-pyramid-B8esFXAj.js} +6 -6
- package/dist/{vue-ui-annotator-CJeQgt2n.js → vue-ui-annotator-BM2Fxwyn.js} +2 -2
- package/dist/{vue-ui-bullet-DGldX5sC.js → vue-ui-bullet-C5r2tlAw.js} +7 -7
- package/dist/{vue-ui-candlestick-C-HIjwPy.js → vue-ui-candlestick-DEqKEVdy.js} +149 -150
- package/dist/{vue-ui-carousel-table-BmiJoBXA.js → vue-ui-carousel-table-CHABZSa7.js} +4 -4
- package/dist/{vue-ui-chestnut-CZlbhQrJ.js → vue-ui-chestnut-CKmXKQ61.js} +5 -5
- package/dist/{vue-ui-chord-Dq4rskRf.js → vue-ui-chord-DW2ndivp.js} +8 -8
- package/dist/{vue-ui-circle-pack-DW9-8rGV.js → vue-ui-circle-pack-BKlgiMRS.js} +6 -6
- package/dist/{vue-ui-cursor-D0tCtX4f.js → vue-ui-cursor-BpctNjDR.js} +2 -2
- package/dist/{vue-ui-dashboard-Bk_MJlYy.js → vue-ui-dashboard-C304-EeY.js} +62 -62
- package/dist/{vue-ui-digits-BA_tNRkj.js → vue-ui-digits-anpApSWe.js} +2 -2
- package/dist/{vue-ui-donut-DzAeK2TE.js → vue-ui-donut-JzjQTiDx.js} +8 -8
- package/dist/vue-ui-donut-evolution-nQbgWXs5.js +1072 -0
- package/dist/{vue-ui-dumbbell-_YZFjBH6.js → vue-ui-dumbbell-BgnmrlkA.js} +7 -7
- package/dist/{vue-ui-flow-C7aLXJTA.js → vue-ui-flow-DEPrQA-w.js} +7 -7
- package/dist/{vue-ui-funnel-B_3QpOUU.js → vue-ui-funnel-ojf0srk6.js} +6 -6
- package/dist/{vue-ui-galaxy-DuU1fS4U.js → vue-ui-galaxy-CYP_NOuc.js} +5 -5
- package/dist/{vue-ui-gauge-_cAQb9Hn.js → vue-ui-gauge-PZkGA3xT.js} +6 -6
- package/dist/{vue-ui-gizmo-DqYMjhpX.js → vue-ui-gizmo-BVEf1l02.js} +3 -3
- package/dist/{vue-ui-heatmap-BkU3wZkK.js → vue-ui-heatmap-C0QKWdB2.js} +7 -7
- package/dist/{vue-ui-history-plot-C83pTqnc.js → vue-ui-history-plot-DL6znOA2.js} +7 -7
- package/dist/{vue-ui-kpi-CWu4hx68.js → vue-ui-kpi-k901VoIN.js} +3 -3
- package/dist/{vue-ui-mini-loader-Cw48lkNp.js → vue-ui-mini-loader-dO16jdj9.js} +2 -2
- package/dist/{vue-ui-molecule-CWNMsooa.js → vue-ui-molecule-CgBLfrXa.js} +5 -5
- package/dist/{vue-ui-mood-radar-hxw5vhXc.js → vue-ui-mood-radar-BxwR2Ez7.js} +7 -7
- package/dist/{vue-ui-nested-donuts-SCEIJRnl.js → vue-ui-nested-donuts-BIjRulQt.js} +9 -9
- package/dist/{vue-ui-onion-xkpaiVLl.js → vue-ui-onion-CkoPdA0-.js} +7 -7
- package/dist/{vue-ui-parallel-coordinate-plot-DP8c7Zy2.js → vue-ui-parallel-coordinate-plot-CHQ4Brih.js} +8 -8
- package/dist/{vue-ui-quadrant-YoAP5U9i.js → vue-ui-quadrant-CEQTH_Vf.js} +8 -8
- package/dist/{vue-ui-quick-chart-QQd0jAgp.js → vue-ui-quick-chart-DIoqKBCM.js} +265 -263
- package/dist/{vue-ui-radar-2aBWeu33.js → vue-ui-radar-Cft9wyK8.js} +7 -7
- package/dist/{vue-ui-rating-cevrLC7m.js → vue-ui-rating-OARiI9ot.js} +2 -2
- package/dist/{vue-ui-relation-circle-pfHEqPqz.js → vue-ui-relation-circle-B-Zb1LQY.js} +6 -6
- package/dist/{vue-ui-ridgeline-8Fi_HR1k.js → vue-ui-ridgeline-v7NEDfRs.js} +8 -8
- package/dist/{vue-ui-rings-CqBfRCcH.js → vue-ui-rings-BQwfTTzr.js} +8 -8
- package/dist/{vue-ui-scatter-BslmJ4rg.js → vue-ui-scatter-CHQCbV8M.js} +8 -8
- package/dist/{vue-ui-skeleton-DXITY4Wb.js → vue-ui-skeleton-CHJxsFpK.js} +3 -3
- package/dist/{vue-ui-smiley-2m2GnNUB.js → vue-ui-smiley-CsWC9IZ1.js} +2 -2
- package/dist/{vue-ui-spark-trend-Bpp-odIP.js → vue-ui-spark-trend-BuamubwE.js} +3 -3
- package/dist/{vue-ui-sparkbar-Dqen9icZ.js → vue-ui-sparkbar-BHGRAUXV.js} +3 -3
- package/dist/{vue-ui-sparkgauge-C9Dlt6iV.js → vue-ui-sparkgauge-DUnltuDi.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-D-MlMk-Q.js → vue-ui-sparkhistogram-BMedlapo.js} +4 -4
- package/dist/{vue-ui-sparkline-BZA1s4pf.js → vue-ui-sparkline-BHNwaMiS.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-BB-tBLQd.js → vue-ui-sparkstackbar-vRQz_uQJ.js} +3 -3
- package/dist/{vue-ui-stackbar-DEcZ471x.js → vue-ui-stackbar-CQ6dTUhn.js} +328 -329
- package/dist/{vue-ui-strip-plot-BNPYL2hl.js → vue-ui-strip-plot-CO2CPtr7.js} +7 -7
- package/dist/{vue-ui-table-BDn61l1T.js → vue-ui-table-BLsZesaa.js} +3 -3
- package/dist/{vue-ui-table-heatmap-DcVDM0D7.js → vue-ui-table-heatmap-CGDBekDd.js} +5 -5
- package/dist/{vue-ui-table-sparkline-CpF2AiH0.js → vue-ui-table-sparkline-DDBnNFfS.js} +4 -4
- package/dist/{vue-ui-thermometer-DW90pE_h.js → vue-ui-thermometer-DCgjIlYn.js} +6 -6
- package/dist/{vue-ui-timer-DnzpNY0x.js → vue-ui-timer-BUTGgiXL.js} +5 -5
- package/dist/{vue-ui-tiremarks-CNHI4MuH.js → vue-ui-tiremarks-Dbwy0DLv.js} +6 -6
- package/dist/{vue-ui-treemap-CWWLDBEO.js → vue-ui-treemap-fZnaJFLV.js} +8 -8
- package/dist/{vue-ui-vertical-bar-B2GiFfDO.js → vue-ui-vertical-bar-CC1RSDNH.js} +9 -9
- package/dist/{vue-ui-waffle-CsyXZFOd.js → vue-ui-waffle-yCHIWPVz.js} +8 -8
- package/dist/{vue-ui-wheel-DOrEgq2T.js → vue-ui-wheel-BgCEnXux.js} +6 -6
- package/dist/{vue-ui-word-cloud-CUEMogkJ.js → vue-ui-word-cloud-DdYN7hGc.js} +6 -6
- package/dist/{vue-ui-world-C2xiB-yS.js → vue-ui-world-Drt14jLg.js} +6 -6
- package/dist/{vue-ui-xy-cahWUi-P.js → vue-ui-xy-E2hScHc-.js} +274 -268
- package/dist/{vue-ui-xy-canvas-BzTkP8HC.js → vue-ui-xy-canvas-DYaSIflg.js} +251 -252
- package/package.json +1 -1
- package/dist/vue-ui-donut-evolution-CZ2mtt3z.js +0 -1034
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { u as Ft, c as Rt, A as Ot, a as Nt, C as
|
|
1
|
+
import { defineAsyncComponent as M, computed as b, ref as r, toRefs as zt, watch as ce, shallowRef as He, onMounted as St, onBeforeUnmount as We, watchEffect as Lt, nextTick as he, createElementBlock as u, openBlock as s, unref as n, normalizeStyle as fe, normalizeClass as Ge, createBlock as F, createCommentVNode as g, createElementVNode as d, createVNode as Xe, createSlots as Tt, withCtx as x, renderSlot as m, normalizeProps as R, guardReactiveProps as O, Fragment as N, renderList as P, toDisplayString as q, createTextVNode as It } from "vue";
|
|
2
|
+
import { u as Ft, c as Rt, A as Ot, a as Nt, C as J, o as je, e as V, D as Pt, v as H, f as $, X as Vt, w as K, s as Et, E as Ye, q as Bt, r as Mt, x as Ut, y as Dt } from "./index-DTJkgcxh.js";
|
|
3
3
|
import { t as qe, u as Ht } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as Je } from "./useNestedProp-
|
|
5
|
-
import { u as Wt } from "./usePrinter-
|
|
4
|
+
import { u as Je } from "./useNestedProp-DvwKj8Zn.js";
|
|
5
|
+
import { u as Wt } from "./usePrinter-CbokYjoB.js";
|
|
6
6
|
import { u as Gt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
7
|
import { u as Xt } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
8
|
import { u as jt, B as Yt } from "./BaseScanner-DIK2NTdp.js";
|
|
9
|
-
import qt from "./Title-
|
|
10
|
-
import { S as Jt } from "./Slicer-
|
|
9
|
+
import qt from "./Title-BT7bS0eb.js";
|
|
10
|
+
import { S as Jt } from "./Slicer-C2128jWm.js";
|
|
11
11
|
import { u as Kt } from "./useTimeLabels-DFkUfjfs.js";
|
|
12
|
-
import Qt from "./img-
|
|
12
|
+
import Qt from "./img-BScthXJW.js";
|
|
13
13
|
import { u as Zt } from "./useTimeLabelCollider-V7AOiPLB.js";
|
|
14
14
|
import { _ as el } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
15
|
const tl = ["id"], ll = ["xmlns", "aria-label", "viewBox"], al = ["x", "y", "width", "height"], ol = { key: 1 }, sl = ["id"], ul = ["stop-color"], il = ["stop-color"], nl = ["stop-color"], rl = ["id"], vl = ["stop-color"], dl = ["stop-color"], yl = ["stop-color"], cl = { key: 0 }, hl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], fl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], gl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], pl = ["x", "y", "font-size", "fill", "font-weight"], bl = ["transform", "text-anchor", "font-size", "fill", "font-weight"], ml = ["transform", "text-anchor", "font-size", "fill", "font-weight"], xl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], kl = { key: 0 }, wl = ["cx", "cy", "r", "fill"], Al = ["cx", "cy", "r", "fill"], _l = { key: 1 }, Cl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], $l = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], zl = ["x", "y", "height", "width", "fill", "rx"], Sl = ["x", "y", "height", "width", "fill", "rx", "stroke", "stroke-width"], Ll = ["x", "y", "height", "width", "fill", "onMouseover"], Tl = {
|
|
@@ -32,13 +32,13 @@ const tl = ["id"], ll = ["xmlns", "aria-label", "viewBox"], al = ["x", "y", "wid
|
|
|
32
32
|
}
|
|
33
33
|
},
|
|
34
34
|
setup(Ke, { expose: Qe }) {
|
|
35
|
-
const Ze =
|
|
35
|
+
const Ze = M(() => import("./vue-ui-accordion-BDuLBbkX.js")), et = M(() => import("./DataTable-DWXGn13M.js")), tt = M(() => import("./PackageVersion-CcyOrmqr.js")), lt = M(() => import("./PenAndPaper-S1h1sM_v.js")), at = M(() => import("./Tooltip-CbaafXw_.js")), ot = M(() => import("./UserOptions-C9lB05jb.js")), { vue_ui_candlestick: st } = Ft(), c = Ke, Q = b(() => !!c.dataset && c.dataset.length), w = r(Rt()), ut = r(null), Z = r(!1), ee = r(""), te = r(void 0), ge = r(0), z = r(null), pe = r(null), be = r(null), me = r(null), xe = r(null), ke = r(null), W = r(0), we = r(0), Ae = r(0), le = r(null), U = r(null), e = r(se()), { loading: _e, FINAL_DATASET: A, manualLoading: ae } = jt({
|
|
36
36
|
...zt(c),
|
|
37
37
|
FINAL_CONFIG: e,
|
|
38
|
-
prepareConfig:
|
|
38
|
+
prepareConfig: se,
|
|
39
39
|
callback: () => {
|
|
40
40
|
Promise.resolve().then(async () => {
|
|
41
|
-
await
|
|
41
|
+
await re();
|
|
42
42
|
});
|
|
43
43
|
},
|
|
44
44
|
skeletonDataset: [
|
|
@@ -96,8 +96,8 @@ const tl = ["id"], ll = ["xmlns", "aria-label", "viewBox"], al = ["x", "y", "wid
|
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
})
|
|
99
|
-
}), { userOptionsVisible:
|
|
100
|
-
function
|
|
99
|
+
}), { userOptionsVisible: oe, setUserOptionsVisibility: Ce, keepUserOptionState: $e } = Gt({ config: e.value }), { svgRef: ze } = Xt({ config: e.value.style.title });
|
|
100
|
+
function se() {
|
|
101
101
|
const t = Je({
|
|
102
102
|
userConfig: c.config,
|
|
103
103
|
defaultConfig: st
|
|
@@ -108,12 +108,12 @@ const tl = ["id"], ll = ["xmlns", "aria-label", "viewBox"], al = ["x", "y", "wid
|
|
|
108
108
|
userConfig: Nt.vue_ui_candlestick[t.theme] || c.config,
|
|
109
109
|
defaultConfig: t
|
|
110
110
|
})
|
|
111
|
-
} : a = t, c.config &&
|
|
111
|
+
} : a = t, c.config && J(c.config, "style.zoom.startIndex") ? a.style.zoom.startIndex = c.config.style.zoom.startIndex : a.style.zoom.startIndex = null, c.config && J(c.config, "style.zoom.endIndex") ? a.style.zoom.endIndex = c.config.style.zoom.endIndex : a.style.zoom.endIndex = null, c.config && J(c.config, "style.layout.grid.yAxis.scale.min") ? a.style.layout.grid.yAxis.scale.min = c.config.style.layout.grid.yAxis.scale.min : a.style.layout.grid.yAxis.scale.min = null, c.config && J(c.config, "style.layout.grid.yAxis.scale.max") ? a.style.layout.grid.yAxis.scale.max = c.config.style.layout.grid.yAxis.scale.max : a.style.layout.grid.yAxis.scale.max = null, a;
|
|
112
112
|
}
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
}, { deep: !0 }),
|
|
116
|
-
Array.isArray(t) && t.length > 0 && (
|
|
113
|
+
ce(() => c.config, (t) => {
|
|
114
|
+
_e.value || (e.value = se()), oe.value = !e.value.userOptions.showOnChartHover, Se(), W.value += 1, Ae.value += 1, we.value += 1, _.value.showTable = e.value.table.show, _.value.showTooltip = e.value.style.tooltip.show;
|
|
115
|
+
}, { deep: !0 }), ce(() => c.dataset, (t) => {
|
|
116
|
+
Array.isArray(t) && t.length > 0 && (ae.value = !1), h.value.start = 0, h.value.end = t.length, W.value += 1;
|
|
117
117
|
}, { deep: !0 });
|
|
118
118
|
const y = r({
|
|
119
119
|
height: e.value.style.height,
|
|
@@ -122,23 +122,23 @@ const tl = ["id"], ll = ["xmlns", "aria-label", "viewBox"], al = ["x", "y", "wid
|
|
|
122
122
|
yAxisFontSize: e.value.style.layout.grid.yAxis.dataLabels.fontSize
|
|
123
123
|
}), S = He(null), E = He(null);
|
|
124
124
|
St(() => {
|
|
125
|
-
|
|
125
|
+
Se();
|
|
126
126
|
});
|
|
127
127
|
const L = b(() => !!e.value.debug);
|
|
128
|
-
function
|
|
128
|
+
function Se() {
|
|
129
129
|
if (je(c.dataset) && (V({
|
|
130
130
|
componentName: "VueUiCandlestick",
|
|
131
131
|
type: "dataset",
|
|
132
132
|
debug: L.value
|
|
133
|
-
}),
|
|
133
|
+
}), ae.value = !0), je(c.dataset) || (ae.value = e.value.loading), e.value.responsive) {
|
|
134
134
|
const a = qe(() => {
|
|
135
135
|
const { width: l, height: o } = Ht({
|
|
136
136
|
chart: z.value,
|
|
137
|
-
title: e.value.style.title.text ?
|
|
138
|
-
slicer:
|
|
139
|
-
legend:
|
|
140
|
-
source:
|
|
141
|
-
noTitle:
|
|
137
|
+
title: e.value.style.title.text ? pe.value : null,
|
|
138
|
+
slicer: me.value,
|
|
139
|
+
legend: be.value,
|
|
140
|
+
source: xe.value,
|
|
141
|
+
noTitle: ke.value
|
|
142
142
|
});
|
|
143
143
|
requestAnimationFrame(() => {
|
|
144
144
|
y.value.width = l, y.value.height = o - 12, e.value.responsiveProportionalSizing ? (y.value.xAxisFontSize = Ye({
|
|
@@ -158,38 +158,38 @@ const tl = ["id"], ll = ["xmlns", "aria-label", "viewBox"], al = ["x", "y", "wid
|
|
|
158
158
|
});
|
|
159
159
|
S.value && (E.value && S.value.unobserve(E.value), S.value.disconnect()), S.value = new ResizeObserver(a), E.value = z.value.parentNode, S.value.observe(E.value);
|
|
160
160
|
}
|
|
161
|
-
|
|
161
|
+
re();
|
|
162
162
|
}
|
|
163
163
|
We(() => {
|
|
164
164
|
S.value && (E.value && S.value.unobserve(E.value), S.value.disconnect());
|
|
165
165
|
});
|
|
166
|
-
const { isPrinting:
|
|
166
|
+
const { isPrinting: Le, isImaging: Te, generatePdf: Ie, generateImage: Fe } = Wt({
|
|
167
167
|
elementId: `vue-ui-candlestick_${w.value}`,
|
|
168
168
|
fileName: e.value.style.title.text || "vue-ui-candlestick",
|
|
169
169
|
options: e.value.userOptions.print
|
|
170
170
|
}), it = b(() => e.value.userOptions.show && !e.value.style.title.text), _ = r({
|
|
171
171
|
showTable: e.value.table.show,
|
|
172
172
|
showTooltip: e.value.style.tooltip.show
|
|
173
|
-
}),
|
|
174
|
-
|
|
173
|
+
}), ue = r(0), nt = qe((t) => {
|
|
174
|
+
ue.value = t;
|
|
175
175
|
}, 100);
|
|
176
176
|
Lt((t) => {
|
|
177
|
-
const a =
|
|
177
|
+
const a = U.value;
|
|
178
178
|
if (!a) return;
|
|
179
179
|
const l = new ResizeObserver((o) => {
|
|
180
180
|
nt(o[0].contentRect.height);
|
|
181
181
|
});
|
|
182
182
|
l.observe(a), t(() => l.disconnect());
|
|
183
183
|
}), We(() => {
|
|
184
|
-
|
|
184
|
+
ue.value = 0;
|
|
185
185
|
});
|
|
186
|
-
const
|
|
186
|
+
const Re = b(() => {
|
|
187
187
|
let t = 0;
|
|
188
|
-
return
|
|
188
|
+
return U.value && (t = ue.value + y.value.xAxisFontSize), t;
|
|
189
189
|
});
|
|
190
190
|
function rt() {
|
|
191
191
|
let t = e.value.style.layout.grid.yAxis.dataLabels.offsetX;
|
|
192
|
-
return
|
|
192
|
+
return le.value && (t = Array.from(le.value.querySelectorAll("text")).reduce((o, p) => {
|
|
193
193
|
const f = p.getComputedTextLength();
|
|
194
194
|
return f > o ? f : o;
|
|
195
195
|
}, 0)), t + 13;
|
|
@@ -200,17 +200,17 @@ const tl = ["id"], ll = ["xmlns", "aria-label", "viewBox"], al = ["x", "y", "wid
|
|
|
200
200
|
top: t + f,
|
|
201
201
|
right: y.value.width - a,
|
|
202
202
|
left: o + p,
|
|
203
|
-
bottom: y.value.height - l -
|
|
203
|
+
bottom: y.value.height - l - Re.value,
|
|
204
204
|
width: y.value.width - o - a - p,
|
|
205
|
-
height: y.value.height - t - l -
|
|
205
|
+
height: y.value.height - t - l - Re.value - f
|
|
206
206
|
};
|
|
207
|
-
}),
|
|
207
|
+
}), D = b(() => A.value.length), h = r({
|
|
208
208
|
start: 0,
|
|
209
|
-
end:
|
|
210
|
-
}),
|
|
209
|
+
end: D.value
|
|
210
|
+
}), Oe = b(() => A.value.map((t, a) => ({
|
|
211
211
|
...t,
|
|
212
212
|
absoluteIndex: a
|
|
213
|
-
})).slice(h.value.start, h.value.end)),
|
|
213
|
+
})).slice(h.value.start, h.value.end)), ie = b(() => (A.value.forEach((t, a) => {
|
|
214
214
|
[null, void 0].includes(t[0]) && V({
|
|
215
215
|
componentName: "VueUiCandlestick",
|
|
216
216
|
type: "datasetAttribute",
|
|
@@ -248,7 +248,7 @@ const tl = ["id"], ll = ["xmlns", "aria-label", "viewBox"], al = ["x", "y", "wid
|
|
|
248
248
|
index: a,
|
|
249
249
|
debug: L.value
|
|
250
250
|
});
|
|
251
|
-
}),
|
|
251
|
+
}), Oe.value.map((t) => ({
|
|
252
252
|
absoluteIndex: t.absoluteIndex,
|
|
253
253
|
period: t[0],
|
|
254
254
|
open: t[1],
|
|
@@ -256,23 +256,23 @@ const tl = ["id"], ll = ["xmlns", "aria-label", "viewBox"], al = ["x", "y", "wid
|
|
|
256
256
|
low: t[3],
|
|
257
257
|
last: t[4],
|
|
258
258
|
volume: t[5]
|
|
259
|
-
})))), v = b(() => i.value.width /
|
|
260
|
-
const t = e.value.style.layout.grid.yAxis.scale.max === null ? Math.max(...
|
|
259
|
+
})))), v = b(() => i.value.width / Oe.value.length), Ne = b(() => {
|
|
260
|
+
const t = e.value.style.layout.grid.yAxis.scale.max === null ? Math.max(...ie.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;
|
|
261
261
|
return {
|
|
262
262
|
max: t,
|
|
263
263
|
min: a
|
|
264
264
|
};
|
|
265
|
-
}), C = b(() => Pt(
|
|
266
|
-
function
|
|
265
|
+
}), C = b(() => Pt(Ne.value.min, Ne.value.max, e.value.style.layout.grid.yAxis.dataLabels.steps));
|
|
266
|
+
function G(t, a) {
|
|
267
267
|
return {
|
|
268
268
|
...t,
|
|
269
|
-
x:
|
|
270
|
-
y:
|
|
271
|
-
value:
|
|
269
|
+
x: H(i.value.left + a * v.value + v.value / 2),
|
|
270
|
+
y: H(i.value.top + (1 - (t - C.value.min) / (C.value.max - C.value.min)) * i.value.height),
|
|
271
|
+
value: H(t)
|
|
272
272
|
};
|
|
273
273
|
}
|
|
274
|
-
const k = b(() =>
|
|
275
|
-
const l =
|
|
274
|
+
const k = b(() => ie.value.map((t, a) => {
|
|
275
|
+
const l = G(t.open, a), o = G(t.high, a), p = G(t.low, a), f = G(t.last, a), I = t.last > t.open;
|
|
276
276
|
return {
|
|
277
277
|
period: t.period,
|
|
278
278
|
open: l,
|
|
@@ -285,26 +285,26 @@ const tl = ["id"], ll = ["xmlns", "aria-label", "viewBox"], al = ["x", "y", "wid
|
|
|
285
285
|
};
|
|
286
286
|
}));
|
|
287
287
|
function vt(t) {
|
|
288
|
-
return
|
|
288
|
+
return H((t - C.value.min) / (C.value.max - C.value.min));
|
|
289
289
|
}
|
|
290
290
|
const dt = b(() => C.value.ticks.map((t) => ({
|
|
291
291
|
y: i.value.bottom - i.value.height * vt(t),
|
|
292
|
-
value:
|
|
293
|
-
}))), yt = b(() =>
|
|
292
|
+
value: H(t)
|
|
293
|
+
}))), yt = b(() => ie.value.map((t) => t.period)), T = b(() => Kt({
|
|
294
294
|
values: A.value.map((t) => t[0]),
|
|
295
295
|
maxDatapoints: A.value.length,
|
|
296
296
|
formatter: e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter,
|
|
297
297
|
start: h.value.start,
|
|
298
298
|
end: h.value.end
|
|
299
|
-
})),
|
|
299
|
+
})), Pe = b(() => e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? {
|
|
300
300
|
start: T.value.find((t) => t.absoluteIndex === h.value.start).text,
|
|
301
301
|
end: T.value.find((t) => t.absoluteIndex === h.value.end - 1).text
|
|
302
302
|
} : {
|
|
303
303
|
start: A.value[h.value.start] ? A.value[h.value.start][0] : A.value[0][0],
|
|
304
304
|
end: A.value[h.value.end - 1] ? A.value[h.value.end - 1][0] : A.value.at(-1)[0]
|
|
305
|
-
}),
|
|
305
|
+
}), ne = r(null);
|
|
306
306
|
function ct(t, a) {
|
|
307
|
-
|
|
307
|
+
te.value = t, ne.value = {
|
|
308
308
|
datapoint: a,
|
|
309
309
|
seriesIndex: t,
|
|
310
310
|
series: k.value,
|
|
@@ -317,7 +317,7 @@ const tl = ["id"], ll = ["xmlns", "aria-label", "viewBox"], al = ["x", "y", "wid
|
|
|
317
317
|
series: k.value,
|
|
318
318
|
config: e.value
|
|
319
319
|
})))
|
|
320
|
-
|
|
320
|
+
ee.value = l({
|
|
321
321
|
seriesIndex: t,
|
|
322
322
|
datapoint: a,
|
|
323
323
|
series: k.value,
|
|
@@ -325,9 +325,9 @@ const tl = ["id"], ll = ["xmlns", "aria-label", "viewBox"], al = ["x", "y", "wid
|
|
|
325
325
|
});
|
|
326
326
|
else if (e.value.style.tooltip.show) {
|
|
327
327
|
let o = "";
|
|
328
|
-
const { period: p, open: f, high: I, low:
|
|
328
|
+
const { period: p, open: f, high: I, low: de, last: ye, volume: Y, isBullish: De } = k.value[t], { period: Rl, open: pt, high: bt, low: mt, last: xt, volume: kt } = e.value.translations, wt = e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? T.value[t].text : p;
|
|
329
329
|
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}"
|
|
330
|
-
fill="${e.value.style.layout.candle.gradient.show ? De ? `url(#bullish_gradient_${w.value})` : `url(#bearish_gradient_${w.value})` : De ? e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.colors.bearish}"/></svg>${wt}</div>`, o += `${kt} : <b>${isNaN(
|
|
330
|
+
fill="${e.value.style.layout.candle.gradient.show ? De ? `url(#bullish_gradient_${w.value})` : `url(#bearish_gradient_${w.value})` : De ? e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.colors.bearish}"/></svg>${wt}</div>`, o += `${kt} : <b>${isNaN(Y) ? "-" : Number(Y.toFixed(e.value.style.tooltip.roundingValue)).toLocaleString()}</b>`, o += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${e.value.style.tooltip.borderColor}">`;
|
|
331
331
|
const At = $({
|
|
332
332
|
p: e.value.style.tooltip.prefix,
|
|
333
333
|
v: f.value,
|
|
@@ -344,37 +344,36 @@ const tl = ["id"], ll = ["xmlns", "aria-label", "viewBox"], al = ["x", "y", "wid
|
|
|
344
344
|
o += `<div>${bt}: <b>${_t}</b></div>`;
|
|
345
345
|
const Ct = $({
|
|
346
346
|
p: e.value.style.tooltip.prefix,
|
|
347
|
-
v:
|
|
347
|
+
v: de.value,
|
|
348
348
|
s: e.value.style.tooltip.suffix,
|
|
349
349
|
r: e.value.style.tooltip.roundingValue
|
|
350
350
|
});
|
|
351
351
|
o += `<div>${mt}: <b>${Ct}</b></div>`;
|
|
352
352
|
const $t = $({
|
|
353
353
|
p: e.value.style.tooltip.prefix,
|
|
354
|
-
v:
|
|
354
|
+
v: ye.value,
|
|
355
355
|
s: e.value.style.tooltip.suffix,
|
|
356
356
|
r: e.value.style.tooltip.roundingValue
|
|
357
357
|
});
|
|
358
|
-
o += `<div>${xt}: <b>${$t}</b></div>`, o += "</div>",
|
|
358
|
+
o += `<div>${xt}: <b>${$t}</b></div>`, o += "</div>", ee.value = `<div style="text-align:right">${o}</div>`;
|
|
359
359
|
}
|
|
360
|
-
|
|
360
|
+
Z.value = !0;
|
|
361
361
|
}
|
|
362
362
|
function ht() {
|
|
363
|
-
|
|
363
|
+
re();
|
|
364
364
|
}
|
|
365
|
-
const
|
|
366
|
-
async function
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
}, X.value += 1);
|
|
365
|
+
const Ve = r(null);
|
|
366
|
+
async function re() {
|
|
367
|
+
await he(), await he();
|
|
368
|
+
const { startIndex: t, endIndex: a } = e.value.style.zoom, l = Ve.value, o = D.value;
|
|
369
|
+
(t != null || a != null) && l ? (t != null && l.setStartValue(t), a != null && l.setEndValue(ft(a + 1))) : (h.value = { start: 0, end: o }, W.value += 1);
|
|
371
370
|
}
|
|
372
371
|
function ft(t) {
|
|
373
|
-
const a =
|
|
372
|
+
const a = D.value;
|
|
374
373
|
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;
|
|
375
374
|
}
|
|
376
375
|
function Ee(t = null) {
|
|
377
|
-
|
|
376
|
+
he(() => {
|
|
378
377
|
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 = k.value.map((f, I) => [
|
|
379
378
|
e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? T.value[I].text : f.period,
|
|
380
379
|
f.open.value,
|
|
@@ -386,24 +385,24 @@ const tl = ["id"], ll = ["xmlns", "aria-label", "viewBox"], al = ["x", "y", "wid
|
|
|
386
385
|
t ? t(p) : Mt({ csvContent: p, title: e.value.style.title.text || "vue-ui-candlestick" });
|
|
387
386
|
});
|
|
388
387
|
}
|
|
389
|
-
const
|
|
388
|
+
const X = b(() => {
|
|
390
389
|
const t = k.value.map((o, p) => {
|
|
391
390
|
const f = e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? T.value[p].text : o.period, I = $({
|
|
392
391
|
p: e.value.table.td.prefix,
|
|
393
392
|
v: o.open.value,
|
|
394
393
|
s: e.value.table.td.suffix,
|
|
395
394
|
r: e.value.table.td.roundingValue
|
|
396
|
-
}),
|
|
395
|
+
}), de = $({
|
|
397
396
|
p: e.value.table.td.prefix,
|
|
398
397
|
v: o.high.value,
|
|
399
398
|
s: e.value.table.td.suffix,
|
|
400
399
|
r: e.value.table.td.roundingValue
|
|
401
|
-
}),
|
|
400
|
+
}), ye = $({
|
|
402
401
|
p: e.value.table.td.prefix,
|
|
403
402
|
v: o.low.value,
|
|
404
403
|
s: e.value.table.td.suffix,
|
|
405
404
|
r: e.value.table.td.roundingValue
|
|
406
|
-
}),
|
|
405
|
+
}), Y = $({
|
|
407
406
|
p: e.value.table.td.prefix,
|
|
408
407
|
v: o.last.value,
|
|
409
408
|
s: e.value.table.td.suffix,
|
|
@@ -412,9 +411,9 @@ const tl = ["id"], ll = ["xmlns", "aria-label", "viewBox"], al = ["x", "y", "wid
|
|
|
412
411
|
return [
|
|
413
412
|
`<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_${w.value}` : `url(#bearish_gradient_${w.value})` : o.isBullish ? e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.colors.bearish}"/></svg> ${f}`,
|
|
414
413
|
I,
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
414
|
+
de,
|
|
415
|
+
ye,
|
|
416
|
+
Y,
|
|
418
417
|
`${isNaN(o.volume) ? "-" : o.volume.toLocaleString()}`
|
|
419
418
|
];
|
|
420
419
|
}), a = {
|
|
@@ -438,9 +437,9 @@ const tl = ["id"], ll = ["xmlns", "aria-label", "viewBox"], al = ["x", "y", "wid
|
|
|
438
437
|
e.value.translations.volume
|
|
439
438
|
];
|
|
440
439
|
return { head: l, body: t, config: a, colNames: l };
|
|
441
|
-
}),
|
|
440
|
+
}), B = r(!1);
|
|
442
441
|
function Be(t) {
|
|
443
|
-
|
|
442
|
+
B.value = t, ge.value += 1;
|
|
444
443
|
}
|
|
445
444
|
function Me() {
|
|
446
445
|
_.value.showTable = !_.value.showTable;
|
|
@@ -448,9 +447,9 @@ const tl = ["id"], ll = ["xmlns", "aria-label", "viewBox"], al = ["x", "y", "wid
|
|
|
448
447
|
function Ue() {
|
|
449
448
|
_.value.showTooltip = !_.value.showTooltip;
|
|
450
449
|
}
|
|
451
|
-
const
|
|
452
|
-
function
|
|
453
|
-
|
|
450
|
+
const j = r(!1);
|
|
451
|
+
function ve() {
|
|
452
|
+
j.value = !j.value;
|
|
454
453
|
}
|
|
455
454
|
async function gt({ scale: t = 2 } = {}) {
|
|
456
455
|
if (!z.value) return;
|
|
@@ -465,59 +464,59 @@ const tl = ["id"], ll = ["xmlns", "aria-label", "viewBox"], al = ["x", "y", "wid
|
|
|
465
464
|
};
|
|
466
465
|
}
|
|
467
466
|
return Zt({
|
|
468
|
-
timeLabelsEls:
|
|
467
|
+
timeLabelsEls: U,
|
|
469
468
|
timeLabels: T,
|
|
470
469
|
slicer: h,
|
|
471
470
|
configRef: e,
|
|
472
471
|
rotationPath: ["style", "layout", "grid", "xAxis", "dataLabels", "rotation"],
|
|
473
472
|
autoRotatePath: ["style", "layout", "grid", "xAxis", "dataLabels", "autoRotate"],
|
|
474
473
|
isAutoSize: !1
|
|
475
|
-
}),
|
|
474
|
+
}), ce(e, () => {
|
|
476
475
|
_.value = {
|
|
477
476
|
showTable: e.value.table.show,
|
|
478
477
|
showTooltip: e.value.style.tooltip.show
|
|
479
478
|
};
|
|
480
479
|
}, { immediate: !0 }), Qe({
|
|
481
480
|
getImage: gt,
|
|
482
|
-
generatePdf:
|
|
481
|
+
generatePdf: Ie,
|
|
483
482
|
generateCsv: Ee,
|
|
484
|
-
generateImage:
|
|
483
|
+
generateImage: Fe,
|
|
485
484
|
toggleTable: Me,
|
|
486
485
|
toggleTooltip: Ue,
|
|
487
|
-
toggleAnnotator:
|
|
486
|
+
toggleAnnotator: ve,
|
|
488
487
|
toggleFullscreen: Be
|
|
489
488
|
}), (t, a) => (s(), u("div", {
|
|
490
489
|
ref_key: "candlestickChart",
|
|
491
490
|
ref: z,
|
|
492
|
-
class: Ge(`vue-ui-candlestick ${
|
|
493
|
-
style:
|
|
491
|
+
class: Ge(`vue-ui-candlestick ${B.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
492
|
+
style: fe(`position:relative;font-family:${e.value.style.fontFamily}; text-align:center;background:${e.value.style.backgroundColor}; ${e.value.responsive ? "height: 100%" : ""}`),
|
|
494
493
|
id: `vue-ui-candlestick_${w.value}`,
|
|
495
|
-
onMouseenter: a[4] || (a[4] = () => n(
|
|
496
|
-
onMouseleave: a[5] || (a[5] = () => n(
|
|
494
|
+
onMouseenter: a[4] || (a[4] = () => n(Ce)(!0)),
|
|
495
|
+
onMouseleave: a[5] || (a[5] = () => n(Ce)(!1))
|
|
497
496
|
}, [
|
|
498
497
|
e.value.userOptions.buttons.annotator ? (s(), F(n(lt), {
|
|
499
498
|
key: 0,
|
|
500
|
-
svgRef: n(
|
|
499
|
+
svgRef: n(ze),
|
|
501
500
|
backgroundColor: e.value.style.backgroundColor,
|
|
502
501
|
color: e.value.style.color,
|
|
503
|
-
active:
|
|
504
|
-
onClose:
|
|
502
|
+
active: j.value,
|
|
503
|
+
onClose: ve
|
|
505
504
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : g("", !0),
|
|
506
505
|
it.value ? (s(), u("div", {
|
|
507
506
|
key: 1,
|
|
508
507
|
ref_key: "noTitle",
|
|
509
|
-
ref:
|
|
508
|
+
ref: ke,
|
|
510
509
|
class: "vue-data-ui-no-title-space",
|
|
511
510
|
style: "height:36px; width: 100%;background:transparent"
|
|
512
511
|
}, null, 512)) : g("", !0),
|
|
513
512
|
e.value.style.title.text ? (s(), u("div", {
|
|
514
513
|
key: 2,
|
|
515
514
|
ref_key: "chartTitle",
|
|
516
|
-
ref:
|
|
515
|
+
ref: pe,
|
|
517
516
|
style: "width:100%;background:transparent"
|
|
518
517
|
}, [
|
|
519
518
|
(s(), F(qt, {
|
|
520
|
-
key: `title_${
|
|
519
|
+
key: `title_${Ae.value}`,
|
|
521
520
|
config: {
|
|
522
521
|
title: {
|
|
523
522
|
cy: "candlestick-div-title",
|
|
@@ -530,14 +529,14 @@ const tl = ["id"], ll = ["xmlns", "aria-label", "viewBox"], al = ["x", "y", "wid
|
|
|
530
529
|
}
|
|
531
530
|
}, null, 8, ["config"]))
|
|
532
531
|
], 512)) : g("", !0),
|
|
533
|
-
e.value.userOptions.show &&
|
|
532
|
+
e.value.userOptions.show && Q.value && (n($e) || n(oe)) ? (s(), F(n(ot), {
|
|
534
533
|
ref_key: "details",
|
|
535
534
|
ref: ut,
|
|
536
|
-
key: `user_options_${
|
|
535
|
+
key: `user_options_${ge.value}`,
|
|
537
536
|
backgroundColor: e.value.style.backgroundColor,
|
|
538
537
|
color: e.value.style.color,
|
|
539
|
-
isImaging: n(
|
|
540
|
-
isPrinting: n(
|
|
538
|
+
isImaging: n(Te),
|
|
539
|
+
isPrinting: n(Le),
|
|
541
540
|
uid: w.value,
|
|
542
541
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.tooltip.show,
|
|
543
542
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -545,24 +544,24 @@ const tl = ["id"], ll = ["xmlns", "aria-label", "viewBox"], al = ["x", "y", "wid
|
|
|
545
544
|
hasXls: e.value.userOptions.buttons.csv,
|
|
546
545
|
hasTable: e.value.userOptions.buttons.table,
|
|
547
546
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
548
|
-
isFullscreen:
|
|
547
|
+
isFullscreen: B.value,
|
|
549
548
|
isTooltip: _.value.showTooltip,
|
|
550
549
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
551
550
|
chartElement: z.value,
|
|
552
551
|
position: e.value.userOptions.position,
|
|
553
552
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
554
|
-
isAnnotation:
|
|
553
|
+
isAnnotation: j.value,
|
|
555
554
|
callbacks: e.value.userOptions.callbacks,
|
|
556
555
|
printScale: e.value.userOptions.print.scale,
|
|
557
556
|
onToggleFullscreen: Be,
|
|
558
|
-
onGeneratePdf: n(
|
|
557
|
+
onGeneratePdf: n(Ie),
|
|
559
558
|
onGenerateCsv: Ee,
|
|
560
|
-
onGenerateImage: n(
|
|
559
|
+
onGenerateImage: n(Fe),
|
|
561
560
|
onToggleTable: Me,
|
|
562
561
|
onToggleTooltip: Ue,
|
|
563
|
-
onToggleAnnotator:
|
|
564
|
-
style:
|
|
565
|
-
visibility: n(
|
|
562
|
+
onToggleAnnotator: ve,
|
|
563
|
+
style: fe({
|
|
564
|
+
visibility: n($e) ? n(oe) ? "visible" : "hidden" : "visible"
|
|
566
565
|
})
|
|
567
566
|
}, Tt({ _: 2 }, [
|
|
568
567
|
t.$slots.menuIcon ? {
|
|
@@ -624,12 +623,12 @@ const tl = ["id"], ll = ["xmlns", "aria-label", "viewBox"], al = ["x", "y", "wid
|
|
|
624
623
|
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : g("", !0),
|
|
625
624
|
(s(), u("svg", {
|
|
626
625
|
ref_key: "svgRef",
|
|
627
|
-
ref:
|
|
626
|
+
ref: ze,
|
|
628
627
|
xmlns: n(Vt),
|
|
629
628
|
"aria-label": e.value.style.title.text || "candlestick chart",
|
|
630
|
-
class: Ge({ "vue-data-ui-fullscreen--on":
|
|
629
|
+
class: Ge({ "vue-data-ui-fullscreen--on": B.value, "vue-data-ui-fulscreen--off": !B.value }),
|
|
631
630
|
viewBox: `0 0 ${y.value.width <= 0 ? 10 : y.value.width} ${y.value.height <= 0 ? 10 : y.value.height}`,
|
|
632
|
-
style:
|
|
631
|
+
style: fe(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.color}`)
|
|
633
632
|
}, [
|
|
634
633
|
Xe(n(tt)),
|
|
635
634
|
t.$slots["chart-background"] ? (s(), u("foreignObject", {
|
|
@@ -657,11 +656,11 @@ const tl = ["id"], ll = ["xmlns", "aria-label", "viewBox"], al = ["x", "y", "wid
|
|
|
657
656
|
}, null, 8, ul),
|
|
658
657
|
d("stop", {
|
|
659
658
|
offset: "50%",
|
|
660
|
-
"stop-color": `${n(
|
|
659
|
+
"stop-color": `${n(K)(e.value.style.layout.candle.colors.bearish, 0.02)}DE`
|
|
661
660
|
}, null, 8, il),
|
|
662
661
|
d("stop", {
|
|
663
662
|
offset: "100%",
|
|
664
|
-
"stop-color": `${n(
|
|
663
|
+
"stop-color": `${n(K)(e.value.style.layout.candle.colors.bearish, 0.05)}66`
|
|
665
664
|
}, null, 8, nl)
|
|
666
665
|
], 8, sl),
|
|
667
666
|
d("linearGradient", {
|
|
@@ -675,11 +674,11 @@ const tl = ["id"], ll = ["xmlns", "aria-label", "viewBox"], al = ["x", "y", "wid
|
|
|
675
674
|
}, null, 8, vl),
|
|
676
675
|
d("stop", {
|
|
677
676
|
offset: "50%",
|
|
678
|
-
"stop-color": `${n(
|
|
677
|
+
"stop-color": `${n(K)(e.value.style.layout.candle.colors.bullish, 0.02)}DE`
|
|
679
678
|
}, null, 8, dl),
|
|
680
679
|
d("stop", {
|
|
681
680
|
offset: "100%",
|
|
682
|
-
"stop-color": `${n(
|
|
681
|
+
"stop-color": `${n(K)(e.value.style.layout.candle.colors.bullish, 0.05)}66`
|
|
683
682
|
}, null, 8, yl)
|
|
684
683
|
], 8, rl)
|
|
685
684
|
]),
|
|
@@ -706,7 +705,7 @@ const tl = ["id"], ll = ["xmlns", "aria-label", "viewBox"], al = ["x", "y", "wid
|
|
|
706
705
|
e.value.style.layout.grid.yAxis.dataLabels.show ? (s(), u("g", {
|
|
707
706
|
key: 1,
|
|
708
707
|
ref_key: "scaleLabels",
|
|
709
|
-
ref:
|
|
708
|
+
ref: le
|
|
710
709
|
}, [
|
|
711
710
|
(s(!0), u(N, null, P(dt.value, (l, o) => (s(), u("g", null, [
|
|
712
711
|
l.value >= C.value.min && l.value <= C.value.max ? (s(), u("line", {
|
|
@@ -727,7 +726,7 @@ const tl = ["id"], ll = ["xmlns", "aria-label", "viewBox"], al = ["x", "y", "wid
|
|
|
727
726
|
"text-anchor": "end",
|
|
728
727
|
fill: e.value.style.layout.grid.yAxis.dataLabels.color,
|
|
729
728
|
"font-weight": e.value.style.layout.grid.yAxis.dataLabels.bold ? "bold" : "normal"
|
|
730
|
-
},
|
|
729
|
+
}, q(n($)({
|
|
731
730
|
p: e.value.style.layout.grid.yAxis.dataLabels.prefix,
|
|
732
731
|
v: l.value,
|
|
733
732
|
s: e.value.style.layout.grid.yAxis.dataLabels.suffix,
|
|
@@ -738,7 +737,7 @@ const tl = ["id"], ll = ["xmlns", "aria-label", "viewBox"], al = ["x", "y", "wid
|
|
|
738
737
|
e.value.style.layout.grid.xAxis.dataLabels.show && !e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? (s(), u("g", {
|
|
739
738
|
key: 2,
|
|
740
739
|
ref_key: "timeLabelsEls",
|
|
741
|
-
ref:
|
|
740
|
+
ref: U
|
|
742
741
|
}, [
|
|
743
742
|
(s(!0), u(N, null, P(yt.value, (l, o) => (s(), u("g", null, [
|
|
744
743
|
d("text", {
|
|
@@ -748,13 +747,13 @@ const tl = ["id"], ll = ["xmlns", "aria-label", "viewBox"], al = ["x", "y", "wid
|
|
|
748
747
|
"font-size": y.value.xAxisFontSize,
|
|
749
748
|
fill: e.value.style.layout.grid.xAxis.dataLabels.color,
|
|
750
749
|
"font-weight": e.value.style.layout.grid.xAxis.dataLabels.bold ? "bold" : "normal"
|
|
751
|
-
},
|
|
750
|
+
}, q(l), 9, bl)
|
|
752
751
|
]))), 256))
|
|
753
752
|
], 512)) : g("", !0),
|
|
754
753
|
e.value.style.layout.grid.xAxis.dataLabels.show && e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? (s(), u("g", {
|
|
755
754
|
key: 3,
|
|
756
755
|
ref_key: "timeLabelsEls",
|
|
757
|
-
ref:
|
|
756
|
+
ref: U
|
|
758
757
|
}, [
|
|
759
758
|
(s(!0), u(N, null, P(T.value, (l, o) => (s(), u("g", null, [
|
|
760
759
|
d("text", {
|
|
@@ -764,7 +763,7 @@ const tl = ["id"], ll = ["xmlns", "aria-label", "viewBox"], al = ["x", "y", "wid
|
|
|
764
763
|
"font-size": y.value.xAxisFontSize,
|
|
765
764
|
fill: e.value.style.layout.grid.xAxis.dataLabels.color,
|
|
766
765
|
"font-weight": e.value.style.layout.grid.xAxis.dataLabels.bold ? "bold" : "normal"
|
|
767
|
-
},
|
|
766
|
+
}, q(l.text), 9, ml)
|
|
768
767
|
]))), 256))
|
|
769
768
|
], 512)) : g("", !0),
|
|
770
769
|
d("g", null, [
|
|
@@ -843,10 +842,10 @@ const tl = ["id"], ll = ["xmlns", "aria-label", "viewBox"], al = ["x", "y", "wid
|
|
|
843
842
|
y: i.value.top,
|
|
844
843
|
height: i.value.height <= 0 ? 1e-4 : i.value.height,
|
|
845
844
|
width: v.value <= 0 ? 1e-4 : v.value,
|
|
846
|
-
fill:
|
|
845
|
+
fill: te.value === o ? n(Et)(e.value.style.layout.selector.color, e.value.style.layout.selector.opacity) : "transparent",
|
|
847
846
|
onMouseover: (p) => ct(o, l),
|
|
848
847
|
onMouseleave: a[0] || (a[0] = (p) => {
|
|
849
|
-
|
|
848
|
+
te.value = void 0, Z.value = !1;
|
|
850
849
|
})
|
|
851
850
|
}, null, 40, Ll))), 256))
|
|
852
851
|
])
|
|
@@ -854,27 +853,27 @@ const tl = ["id"], ll = ["xmlns", "aria-label", "viewBox"], al = ["x", "y", "wid
|
|
|
854
853
|
m(t.$slots, "svg", { svg: y.value }, void 0, !0)
|
|
855
854
|
], 14, ll)),
|
|
856
855
|
t.$slots.watermark ? (s(), u("div", Tl, [
|
|
857
|
-
m(t.$slots, "watermark", R(O({ isPrinting: n(
|
|
856
|
+
m(t.$slots, "watermark", R(O({ isPrinting: n(Le) || n(Te) })), void 0, !0)
|
|
858
857
|
])) : g("", !0),
|
|
859
|
-
e.value.style.zoom.show &&
|
|
858
|
+
e.value.style.zoom.show && Q.value ? (s(), u("div", {
|
|
860
859
|
key: 5,
|
|
861
860
|
ref_key: "chartSlicer",
|
|
862
|
-
ref:
|
|
861
|
+
ref: me
|
|
863
862
|
}, [
|
|
864
863
|
(s(), F(Jt, {
|
|
865
864
|
ref_key: "slicerComponent",
|
|
866
|
-
ref:
|
|
867
|
-
key: `slicer_${
|
|
865
|
+
ref: Ve,
|
|
866
|
+
key: `slicer_${W.value}`,
|
|
868
867
|
background: e.value.style.zoom.color,
|
|
869
868
|
borderColor: e.value.style.backgroundColor,
|
|
870
869
|
fontSize: e.value.style.zoom.fontSize,
|
|
871
870
|
useResetSlot: e.value.style.zoom.useResetSlot,
|
|
872
|
-
labelLeft:
|
|
873
|
-
labelRight:
|
|
871
|
+
labelLeft: Pe.value.start,
|
|
872
|
+
labelRight: Pe.value.end,
|
|
874
873
|
textColor: e.value.style.color,
|
|
875
874
|
inputColor: e.value.style.zoom.color,
|
|
876
875
|
selectColor: e.value.style.zoom.highlightColor,
|
|
877
|
-
max:
|
|
876
|
+
max: D.value,
|
|
878
877
|
min: 0,
|
|
879
878
|
valueStart: h.value.start,
|
|
880
879
|
valueEnd: h.value.end,
|
|
@@ -883,7 +882,7 @@ const tl = ["id"], ll = ["xmlns", "aria-label", "viewBox"], al = ["x", "y", "wid
|
|
|
883
882
|
end: h.value.end,
|
|
884
883
|
"onUpdate:end": a[2] || (a[2] = (l) => h.value.end = l),
|
|
885
884
|
refreshStartPoint: e.value.style.zoom.startIndex !== null ? e.value.style.zoom.startIndex : 0,
|
|
886
|
-
refreshEndPoint: e.value.style.zoom.endIndex !== null ? e.value.style.zoom.endIndex + 1 :
|
|
885
|
+
refreshEndPoint: e.value.style.zoom.endIndex !== null ? e.value.style.zoom.endIndex + 1 : D.value,
|
|
887
886
|
enableRangeHandles: e.value.style.zoom.enableRangeHandles,
|
|
888
887
|
enableSelectionDrag: e.value.style.zoom.enableSelectionDrag,
|
|
889
888
|
onReset: ht
|
|
@@ -896,20 +895,20 @@ const tl = ["id"], ll = ["xmlns", "aria-label", "viewBox"], al = ["x", "y", "wid
|
|
|
896
895
|
], 512)) : g("", !0),
|
|
897
896
|
d("div", {
|
|
898
897
|
ref_key: "chartLegend",
|
|
899
|
-
ref:
|
|
898
|
+
ref: be
|
|
900
899
|
}, [
|
|
901
900
|
m(t.$slots, "legend", { legend: k.value }, void 0, !0)
|
|
902
901
|
], 512),
|
|
903
902
|
t.$slots.source ? (s(), u("div", {
|
|
904
903
|
key: 6,
|
|
905
904
|
ref_key: "source",
|
|
906
|
-
ref:
|
|
905
|
+
ref: xe,
|
|
907
906
|
dir: "auto"
|
|
908
907
|
}, [
|
|
909
908
|
m(t.$slots, "source", {}, void 0, !0)
|
|
910
909
|
], 512)) : g("", !0),
|
|
911
910
|
Xe(n(at), {
|
|
912
|
-
show: _.value.showTooltip &&
|
|
911
|
+
show: _.value.showTooltip && Z.value,
|
|
913
912
|
backgroundColor: e.value.style.tooltip.backgroundColor,
|
|
914
913
|
color: e.value.style.tooltip.color,
|
|
915
914
|
borderRadius: e.value.style.tooltip.borderRadius,
|
|
@@ -920,19 +919,19 @@ const tl = ["id"], ll = ["xmlns", "aria-label", "viewBox"], al = ["x", "y", "wid
|
|
|
920
919
|
position: e.value.style.tooltip.position,
|
|
921
920
|
offsetY: e.value.style.tooltip.offsetY,
|
|
922
921
|
parent: z.value,
|
|
923
|
-
content:
|
|
924
|
-
isFullscreen:
|
|
922
|
+
content: ee.value,
|
|
923
|
+
isFullscreen: B.value,
|
|
925
924
|
isCustom: e.value.style.tooltip.customFormat && typeof e.value.style.tooltip.customFormat == "function"
|
|
926
925
|
}, {
|
|
927
926
|
"tooltip-before": x(() => [
|
|
928
|
-
m(t.$slots, "tooltip-before", R(O({ ...
|
|
927
|
+
m(t.$slots, "tooltip-before", R(O({ ...ne.value })), void 0, !0)
|
|
929
928
|
]),
|
|
930
929
|
"tooltip-after": x(() => [
|
|
931
|
-
m(t.$slots, "tooltip-after", R(O({ ...
|
|
930
|
+
m(t.$slots, "tooltip-after", R(O({ ...ne.value })), void 0, !0)
|
|
932
931
|
]),
|
|
933
932
|
_: 3
|
|
934
933
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
935
|
-
|
|
934
|
+
Q.value ? (s(), F(n(Ze), {
|
|
936
935
|
key: 7,
|
|
937
936
|
hideDetails: "",
|
|
938
937
|
config: {
|
|
@@ -950,16 +949,16 @@ const tl = ["id"], ll = ["xmlns", "aria-label", "viewBox"], al = ["x", "y", "wid
|
|
|
950
949
|
}, {
|
|
951
950
|
content: x(() => [
|
|
952
951
|
(s(), F(n(et), {
|
|
953
|
-
key: `table_${
|
|
954
|
-
colNames:
|
|
955
|
-
head:
|
|
956
|
-
body:
|
|
957
|
-
config:
|
|
952
|
+
key: `table_${we.value}`,
|
|
953
|
+
colNames: X.value.colNames,
|
|
954
|
+
head: X.value.head,
|
|
955
|
+
body: X.value.body,
|
|
956
|
+
config: X.value.config,
|
|
958
957
|
title: `${e.value.style.title.text}${e.value.style.title.subtitle.text ? ` : ${e.value.style.title.subtitle.text}` : ""}`,
|
|
959
958
|
onClose: a[3] || (a[3] = (l) => _.value.showTable = !1)
|
|
960
959
|
}, {
|
|
961
960
|
th: x(({ th: l }) => [
|
|
962
|
-
It(
|
|
961
|
+
It(q(l), 1)
|
|
963
962
|
]),
|
|
964
963
|
td: x(({ td: l }) => [
|
|
965
964
|
d("div", { innerHTML: l }, null, 8, Il)
|
|
@@ -969,10 +968,10 @@ const tl = ["id"], ll = ["xmlns", "aria-label", "viewBox"], al = ["x", "y", "wid
|
|
|
969
968
|
]),
|
|
970
969
|
_: 1
|
|
971
970
|
}, 8, ["config"])) : g("", !0),
|
|
972
|
-
n(
|
|
971
|
+
n(_e) ? (s(), F(Yt, { key: 8 })) : g("", !0)
|
|
973
972
|
], 46, tl));
|
|
974
973
|
}
|
|
975
|
-
}, Yl = /* @__PURE__ */ el(Fl, [["__scopeId", "data-v-
|
|
974
|
+
}, Yl = /* @__PURE__ */ el(Fl, [["__scopeId", "data-v-84693509"]]);
|
|
976
975
|
export {
|
|
977
976
|
Yl as default
|
|
978
977
|
};
|