vue-data-ui 3.4.2 → 3.4.3
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/{PackageVersion-C6RwvG8P.js → PackageVersion-Df-8U2yE.js} +1 -1
- package/dist/{Title-CFmv95In.js → Title-D7_5ICX_.js} +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/style.css +1 -1
- package/dist/{themes-Dw-dDudK.js → themes-AUNCOb2G.js} +5 -5
- package/dist/types/vue-data-ui.d.ts +8 -0
- package/dist/{useNestedProp-B7CiTRDS.js → useNestedProp-CtheCta-.js} +4 -2
- package/dist/{vue-data-ui-CzLP2rN0.js → vue-data-ui-OfJx8jSP.js} +63 -63
- package/dist/vue-data-ui.js +65 -65
- package/dist/{vue-ui-3d-bar-D0b-iURl.js → vue-ui-3d-bar-Bp-sqsyU.js} +4 -4
- package/dist/{vue-ui-accordion-BKkTS12x.js → vue-ui-accordion-DXdd_qAk.js} +1 -1
- package/dist/{vue-ui-age-pyramid-Bd9FocGT.js → vue-ui-age-pyramid-CUVtajBe.js} +4 -4
- package/dist/{vue-ui-annotator-DkSYrnwb.js → vue-ui-annotator-D5GKadj6.js} +2 -2
- package/dist/{vue-ui-bullet-DjQMFX7b.js → vue-ui-bullet-rQoLiK2b.js} +4 -4
- package/dist/{vue-ui-candlestick-C0B0r7Nv.js → vue-ui-candlestick-D7eCxbQ8.js} +479 -456
- package/dist/{vue-ui-carousel-table-Csg8asJF.js → vue-ui-carousel-table-Bu8HSJRc.js} +2 -2
- package/dist/{vue-ui-chestnut-Ffn8vxbh.js → vue-ui-chestnut-BqyduBAg.js} +3 -3
- package/dist/{vue-ui-chord-kdRc-Q-q.js → vue-ui-chord-VTRyVBx4.js} +4 -4
- package/dist/{vue-ui-circle-pack-C0kAjLnX.js → vue-ui-circle-pack-DIXUixuK.js} +4 -4
- package/dist/{vue-ui-cursor-iuati4v1.js → vue-ui-cursor-TFVxgVEa.js} +1 -1
- package/dist/{vue-ui-dashboard-D6F9BaXG.js → vue-ui-dashboard-DeFPygcZ.js} +63 -63
- package/dist/{vue-ui-digits-eYxf3UFN.js → vue-ui-digits-B6cIiy1Z.js} +1 -1
- package/dist/{vue-ui-donut-BrfxHSjb.js → vue-ui-donut-B3kaTm1I.js} +4 -4
- package/dist/{vue-ui-donut-evolution-eTmI2x_r.js → vue-ui-donut-evolution-CGxyHap0.js} +4 -4
- package/dist/{vue-ui-dumbbell-Cw9zO8Mn.js → vue-ui-dumbbell-BpHU2gPm.js} +4 -4
- package/dist/{vue-ui-flow-B0RDvOVg.js → vue-ui-flow-B1jwV-to.js} +4 -4
- package/dist/{vue-ui-funnel-Dsr0GCoj.js → vue-ui-funnel-C07ghZCo.js} +4 -4
- package/dist/{vue-ui-galaxy-pZn1NOt3.js → vue-ui-galaxy-C2aCa9u0.js} +4 -4
- package/dist/{vue-ui-gauge-BjLEfS3a.js → vue-ui-gauge-BymG1mO4.js} +4 -4
- package/dist/{vue-ui-gizmo-CxJXz4nC.js → vue-ui-gizmo-BjPbDZKf.js} +2 -2
- package/dist/{vue-ui-heatmap-DZe-8jxm.js → vue-ui-heatmap-D2udHyOO.js} +5 -5
- package/dist/{vue-ui-history-plot-mKwh56x-.js → vue-ui-history-plot-C1v5py9J.js} +4 -4
- package/dist/{vue-ui-kpi-N8s0i48S.js → vue-ui-kpi-4fToBGEE.js} +2 -2
- package/dist/{vue-ui-mini-loader-Db-9iQcC.js → vue-ui-mini-loader-o6xsgflK.js} +1 -1
- package/dist/{vue-ui-molecule-NSKEl9DU.js → vue-ui-molecule-QJY9Jg--.js} +3 -3
- package/dist/{vue-ui-mood-radar-D0P9U7A2.js → vue-ui-mood-radar-CYz7t7cO.js} +4 -4
- package/dist/{vue-ui-nested-donuts-CsoawOMw.js → vue-ui-nested-donuts-Cs_KVggH.js} +4 -4
- package/dist/{vue-ui-onion-CB81rQHr.js → vue-ui-onion-DI__t0Yo.js} +4 -4
- package/dist/{vue-ui-parallel-coordinate-plot-Bfqdsh29.js → vue-ui-parallel-coordinate-plot-BUFBIY0H.js} +4 -4
- package/dist/{vue-ui-quadrant-B6S8er0z.js → vue-ui-quadrant-q27Crjhv.js} +4 -4
- package/dist/{vue-ui-quick-chart-BEJz4IrK.js → vue-ui-quick-chart-vA-5-zU_.js} +3 -3
- package/dist/{vue-ui-radar-CfVWwJ9O.js → vue-ui-radar-v6sFZlta.js} +4 -4
- package/dist/{vue-ui-rating-fR2WRHYO.js → vue-ui-rating-B1TGv80Y.js} +1 -1
- package/dist/{vue-ui-relation-circle-CDrFFs7x.js → vue-ui-relation-circle-C_7j_HC1.js} +4 -4
- package/dist/{vue-ui-ridgeline-HctkhJNL.js → vue-ui-ridgeline-BaDr8YsQ.js} +4 -4
- package/dist/{vue-ui-rings-DNdvT73I.js → vue-ui-rings-BcsyGpD-.js} +4 -4
- package/dist/{vue-ui-scatter-tqqXVlml.js → vue-ui-scatter-DsvtDcRf.js} +121 -112
- package/dist/{vue-ui-skeleton-CIFKbc2Z.js → vue-ui-skeleton-DJka_Bjy.js} +2 -2
- package/dist/{vue-ui-smiley-BKXuAviQ.js → vue-ui-smiley-D-W7GeoN.js} +1 -1
- package/dist/{vue-ui-spark-trend-ClzBuy9g.js → vue-ui-spark-trend-ufRxrEgv.js} +3 -3
- package/dist/{vue-ui-sparkbar-DOC0sinb.js → vue-ui-sparkbar-C0hU8raA.js} +3 -3
- package/dist/{vue-ui-sparkgauge-CtRGuXYE.js → vue-ui-sparkgauge-1bi-EEqb.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-CH5SQ49i.js → vue-ui-sparkhistogram-H1BSDVyx.js} +3 -3
- package/dist/{vue-ui-sparkline-C1ANB_RH.js → vue-ui-sparkline-DElVjWGk.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-DJZvIWb3.js → vue-ui-sparkstackbar-DE3D2xTJ.js} +3 -3
- package/dist/{vue-ui-stackbar-DzT3xjPg.js → vue-ui-stackbar-DVTV6JcM.js} +50 -45
- package/dist/{vue-ui-strip-plot-DdgSGxqd.js → vue-ui-strip-plot-0RudVLPB.js} +4 -4
- package/dist/{vue-ui-table-heatmap-DU6GKPVy.js → vue-ui-table-heatmap-BQgeM3lZ.js} +2 -2
- package/dist/{vue-ui-table-DpSVU3nR.js → vue-ui-table-jbkT9pG2.js} +3 -3
- package/dist/{vue-ui-table-sparkline-DNiqSZPO.js → vue-ui-table-sparkline-Elk05A1j.js} +3 -3
- package/dist/{vue-ui-thermometer-BEg7V1Pf.js → vue-ui-thermometer-6QNHvlxi.js} +4 -4
- package/dist/{vue-ui-timer-GYpb3XQc.js → vue-ui-timer-BvHuXOu1.js} +3 -3
- package/dist/{vue-ui-tiremarks-vkoU5KYk.js → vue-ui-tiremarks-CCfLSw7X.js} +4 -4
- package/dist/{vue-ui-treemap-Bikx-ODr.js → vue-ui-treemap-DNimXWh4.js} +4 -4
- package/dist/{vue-ui-vertical-bar-CFCfwBWt.js → vue-ui-vertical-bar-C8UcI92_.js} +5 -5
- package/dist/{vue-ui-waffle-yn1j310A.js → vue-ui-waffle-CMO0x41z.js} +4 -4
- package/dist/{vue-ui-wheel-0aFR982b.js → vue-ui-wheel-CB2KRY13.js} +4 -4
- package/dist/{vue-ui-word-cloud-CkV8cGp6.js → vue-ui-word-cloud-BDP2WP1p.js} +162 -151
- package/dist/{vue-ui-world-DD5SbHCe.js → vue-ui-world-CobFs5Vm.js} +2 -2
- package/dist/{vue-ui-xy-BJiDW7Os.js → vue-ui-xy-DmWHarZg.js} +841 -835
- package/dist/{vue-ui-xy-canvas-Dct7tf8w.js → vue-ui-xy-canvas-BwhZD5_d.js} +4 -4
- package/package.json +1 -1
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { c as zl, t as Sl, O as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as Bl, a as
|
|
1
|
+
import { defineAsyncComponent as W, computed as c, ref as y, toRefs as Al, watch as se, shallowRef as bt, onMounted as Cl, onBeforeUnmount as De, watchEffect as $l, nextTick as kt, createElementBlock as i, openBlock as u, normalizeStyle as ue, normalizeClass as N, createBlock as q, createCommentVNode as m, createElementVNode as p, createVNode as Pe, unref as h, createSlots as wt, withCtx as k, renderSlot as w, normalizeProps as Y, guardReactiveProps as Q, Fragment as S, renderList as F, toDisplayString as ie, mergeProps as At, resolveDynamicComponent as _l, createTextVNode as Ct } from "vue";
|
|
2
|
+
import { c as zl, t as Sl, O as pe, o as $t, f as J, m as Ll, x as X, v as Tl, d as E, X as Fl, i as fe, s as Il, R as _t, P as Ml, Q as Rl, G as Ol, H as Dl } from "./lib-BcBZIm6u.js";
|
|
3
|
+
import { t as zt, u as Pl } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Bl, a as St } from "./useNestedProp-CtheCta-.js";
|
|
5
5
|
import { u as Nl } from "./usePrinter-C1GiglOH.js";
|
|
6
6
|
import { u as El, B as Vl } from "./BaseScanner-BgWxam9d.js";
|
|
7
|
-
import { u as
|
|
7
|
+
import { u as Lt, a as Ul, l as Wl } from "./useTimeLabels-BGFjWgrv.js";
|
|
8
8
|
import { u as Xl } from "./useSvgExport-DrjCWun4.js";
|
|
9
9
|
import { u as Hl } from "./useUserOptionState-BIvW1Kz7.js";
|
|
10
10
|
import { u as Gl } from "./useChartAccessibility-9icAAmYg.js";
|
|
11
11
|
import { u as jl } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
12
12
|
import ql from "./img-CFY3JivG.js";
|
|
13
|
-
import Yl from "./Title-
|
|
14
|
-
import { t as Ql } from "./themes-
|
|
13
|
+
import Yl from "./Title-D7_5ICX_.js";
|
|
14
|
+
import { t as Ql } from "./themes-AUNCOb2G.js";
|
|
15
15
|
import { S as Jl } from "./SlicerPreview-Cobmb_1S.js";
|
|
16
16
|
import { _ as Kl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
17
|
-
const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "width", "height"], la = { key: 1 }, aa = ["id"], oa = ["stop-color"], sa = ["stop-color"], ua = ["stop-color"], ia = ["id"], na = ["stop-color"], ra = ["stop-color"], va = ["stop-color"], da = { key: 0 }, ca = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ya = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ha = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], ma = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], pa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], fa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ga = ["x", "y", "font-size", "fill", "font-weight"], xa = ["transform", "text-anchor", "font-size", "fill", "font-weight"], ba = ["transform", "text-anchor", "font-size", "fill", "font-weight"], ka = ["x", "y", "width", "height", "fill", "rx"], wa = { key: 0 }, Aa = ["cx", "cy", "r", "fill"], Ca = ["cx", "cy", "r", "fill"], $a = { key: 1 }, _a = ["x", "y", "width", "height", "rx", "fill"], za = ["x", "y", "width", "height", "fill", "rx"], Sa = ["x", "y", "height", "width", "fill", "rx"], La = ["x", "y", "height", "width", "fill", "rx", "stroke", "stroke-width"], Ta = ["d", "stroke"], Fa = ["x", "y", "height", "width", "fill", "onMouseover", "onMouseleave", "onClick"], Ia = ["data-start", "data-end"],
|
|
17
|
+
const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "width", "height"], la = { key: 1 }, aa = ["id"], oa = ["stop-color"], sa = ["stop-color"], ua = ["stop-color"], ia = ["id"], na = ["stop-color"], ra = ["stop-color"], va = ["stop-color"], da = { key: 0 }, ca = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ya = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ha = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], ma = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], pa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], fa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ga = ["x", "y", "font-size", "fill", "font-weight"], xa = ["transform", "text-anchor", "font-size", "fill", "font-weight"], ba = ["transform", "text-anchor", "font-size", "fill", "font-weight"], ka = ["x", "y", "width", "height", "fill", "rx"], wa = { key: 0 }, Aa = ["cx", "cy", "r", "fill"], Ca = ["cx", "cy", "r", "fill"], $a = { key: 1 }, _a = ["x", "y", "width", "height", "rx", "fill"], za = ["x", "y", "width", "height", "fill", "rx"], Sa = ["x", "y", "height", "width", "fill", "rx"], La = ["x", "y", "height", "width", "fill", "rx", "stroke", "stroke-width"], Ta = ["d", "stroke"], Fa = ["x", "y", "height", "width", "fill", "onMouseover", "onMouseleave", "onClick"], Ia = ["data-start", "data-end"], Ma = {
|
|
18
18
|
key: 4,
|
|
19
19
|
class: "vue-data-ui-watermark"
|
|
20
|
-
},
|
|
20
|
+
}, Ra = ["d", "stroke"], Oa = ["d", "stroke", "stroke-width"], Da = ["innerHTML"], Pa = {
|
|
21
21
|
__name: "vue-ui-candlestick",
|
|
22
22
|
props: {
|
|
23
23
|
config: {
|
|
@@ -38,14 +38,14 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
38
38
|
}
|
|
39
39
|
},
|
|
40
40
|
emits: ["selectX"],
|
|
41
|
-
setup(
|
|
42
|
-
const
|
|
41
|
+
setup(Tt, { expose: Ft, emit: It }) {
|
|
42
|
+
const Mt = W(() => import("./BaseIcon-B5KaGWWC.js")), Rt = W(() => import("./Tooltip-Cs4v8OnI.js")), Ot = W(() => import("./vue-ui-accordion-DXdd_qAk.js")), Dt = W(() => import("./DataTable-DOx3zgih.js")), Pt = W(() => import("./PenAndPaper-Dj2diYr0.js")), Bt = W(() => import("./UserOptions-C0YT60JN.js")), Nt = W(() => import("./PackageVersion-Df-8U2yE.js")), Et = W(() => import("./BaseDraggableDialog-CbuLbfrc.js")), { vue_ui_candlestick: Vt } = Bl(), g = Tt, Be = It, ge = c(() => !!g.dataset && g.dataset.length), R = y(!1), xe = y(null), I = y(zl()), be = y(!1), ke = y(""), O = y(void 0), Ne = y(0), D = y(null), Ee = y(null), Ve = y(null), Z = y(null), Ue = y(null), We = y(null), Ut = y(0), Xe = y(0), He = y(0), we = y(null), ee = y(null), te = y(null), Ae = y(null), Ge = y(null), e = y(ze()), { loading: P, FINAL_DATASET: x, manualLoading: Ce } = El({
|
|
43
43
|
...Al(g),
|
|
44
44
|
FINAL_CONFIG: e,
|
|
45
|
-
prepareConfig:
|
|
45
|
+
prepareConfig: ze,
|
|
46
46
|
callback: () => {
|
|
47
47
|
Promise.resolve().then(async () => {
|
|
48
|
-
await
|
|
48
|
+
await ce();
|
|
49
49
|
});
|
|
50
50
|
},
|
|
51
51
|
skeletonDataset: [
|
|
@@ -109,131 +109,131 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
111
|
})
|
|
112
|
-
}), { userOptionsVisible:
|
|
113
|
-
function Ut() {
|
|
114
|
-
He(!0);
|
|
115
|
-
}
|
|
112
|
+
}), { userOptionsVisible: $e, setUserOptionsVisibility: je, keepUserOptionState: qe } = Hl({ config: e.value }), { svgRef: _e } = Gl({ config: e.value.style.title });
|
|
116
113
|
function Wt() {
|
|
117
|
-
|
|
114
|
+
je(!0);
|
|
115
|
+
}
|
|
116
|
+
function Xt() {
|
|
117
|
+
je(!1), Be("selectX", { seriesIndex: null, datapoint: null }), O.value = null;
|
|
118
118
|
}
|
|
119
|
-
function
|
|
120
|
-
const t =
|
|
119
|
+
function ze() {
|
|
120
|
+
const t = St({
|
|
121
121
|
userConfig: g.config,
|
|
122
|
-
defaultConfig:
|
|
122
|
+
defaultConfig: Vt
|
|
123
123
|
});
|
|
124
124
|
let a = {};
|
|
125
125
|
return t.theme ? a = {
|
|
126
|
-
...
|
|
126
|
+
...St({
|
|
127
127
|
userConfig: Ql.vue_ui_candlestick[t.theme] || g.config,
|
|
128
128
|
defaultConfig: t
|
|
129
129
|
})
|
|
130
|
-
} : a = t, g.config &&
|
|
130
|
+
} : a = t, g.config && pe(g.config, "style.zoom.startIndex") ? a.style.zoom.startIndex = g.config.style.zoom.startIndex : a.style.zoom.startIndex = null, g.config && pe(g.config, "style.zoom.endIndex") ? a.style.zoom.endIndex = g.config.style.zoom.endIndex : a.style.zoom.endIndex = null, g.config && pe(g.config, "style.layout.grid.yAxis.scale.min") ? a.style.layout.grid.yAxis.scale.min = g.config.style.layout.grid.yAxis.scale.min : a.style.layout.grid.yAxis.scale.min = null, g.config && pe(g.config, "style.layout.grid.yAxis.scale.max") ? a.style.layout.grid.yAxis.scale.max = g.config.style.layout.grid.yAxis.scale.max : a.style.layout.grid.yAxis.scale.max = null, a;
|
|
131
131
|
}
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
}, { deep: !0 }),
|
|
135
|
-
Array.isArray(t) && t.length > 0 && (
|
|
132
|
+
se(() => g.config, (t) => {
|
|
133
|
+
P.value || (e.value = ze()), $e.value = !e.value.userOptions.showOnChartHover, Ye(), Ut.value += 1, He.value += 1, Xe.value += 1, L.value.showTable = e.value.table.show, L.value.showTooltip = e.value.style.tooltip.show, ne();
|
|
134
|
+
}, { deep: !0 }), se(() => g.dataset, (t) => {
|
|
135
|
+
Array.isArray(t) && t.length > 0 && (Ce.value = !1), vt();
|
|
136
136
|
}, { deep: !0 });
|
|
137
137
|
const f = y({
|
|
138
138
|
height: e.value.style.height,
|
|
139
139
|
width: e.value.style.width,
|
|
140
140
|
xAxisFontSize: e.value.style.layout.grid.xAxis.dataLabels.fontSize,
|
|
141
141
|
yAxisFontSize: e.value.style.layout.grid.yAxis.dataLabels.fontSize
|
|
142
|
-
}),
|
|
142
|
+
}), V = bt(null), K = bt(null);
|
|
143
143
|
Cl(() => {
|
|
144
|
-
|
|
144
|
+
Ye();
|
|
145
145
|
});
|
|
146
|
-
const
|
|
147
|
-
function
|
|
148
|
-
if (
|
|
146
|
+
const H = c(() => !!e.value.debug);
|
|
147
|
+
function Ye() {
|
|
148
|
+
if ($t(g.dataset) && (J({
|
|
149
149
|
componentName: "VueUiCandlestick",
|
|
150
150
|
type: "dataset",
|
|
151
|
-
debug:
|
|
152
|
-
}),
|
|
153
|
-
|
|
151
|
+
debug: H.value
|
|
152
|
+
}), Ce.value = !0), $t(g.dataset) || (Ce.value = e.value.loading), setTimeout(() => {
|
|
153
|
+
R.value = !0;
|
|
154
154
|
}, 10), e.value.responsive) {
|
|
155
|
-
const a =
|
|
156
|
-
|
|
155
|
+
const a = zt(() => {
|
|
156
|
+
R.value = !1;
|
|
157
157
|
const { width: l, height: o } = Pl({
|
|
158
|
-
chart:
|
|
159
|
-
title: e.value.style.title.text ?
|
|
160
|
-
slicer: e.value.style.zoom.show && C.value > 6 ?
|
|
161
|
-
legend:
|
|
162
|
-
source:
|
|
163
|
-
noTitle:
|
|
158
|
+
chart: D.value,
|
|
159
|
+
title: e.value.style.title.text ? Ee.value : null,
|
|
160
|
+
slicer: e.value.style.zoom.show && C.value > 6 ? Z.value.$el : null,
|
|
161
|
+
legend: Ve.value,
|
|
162
|
+
source: Ue.value,
|
|
163
|
+
noTitle: We.value
|
|
164
164
|
});
|
|
165
165
|
requestAnimationFrame(() => {
|
|
166
|
-
f.value.width = l, f.value.height = o - 12, e.value.responsiveProportionalSizing ? (f.value.xAxisFontSize =
|
|
166
|
+
f.value.width = l, f.value.height = o - 12, e.value.responsiveProportionalSizing ? (f.value.xAxisFontSize = _t({
|
|
167
167
|
relator: Math.min(l, o),
|
|
168
168
|
adjuster: e.value.style.width,
|
|
169
169
|
source: e.value.style.layout.grid.xAxis.dataLabels.fontSize,
|
|
170
170
|
threshold: 6,
|
|
171
171
|
fallback: 6
|
|
172
|
-
}), f.value.yAxisFontSize =
|
|
172
|
+
}), f.value.yAxisFontSize = _t({
|
|
173
173
|
relator: Math.min(l, o),
|
|
174
174
|
adjuster: e.value.style.width,
|
|
175
175
|
source: e.value.style.layout.grid.yAxis.dataLabels.fontSize,
|
|
176
176
|
threshold: 6,
|
|
177
177
|
fallback: 6
|
|
178
|
-
})) : (f.value.xAxisFontSize = e.value.style.layout.grid.xAxis.dataLabels.fontSize, f.value.yAxisFontSize = e.value.style.layout.grid.yAxis.dataLabels.fontSize),
|
|
179
|
-
|
|
178
|
+
})) : (f.value.xAxisFontSize = e.value.style.layout.grid.xAxis.dataLabels.fontSize, f.value.yAxisFontSize = e.value.style.layout.grid.yAxis.dataLabels.fontSize), xe.value && clearTimeout(xe.value), xe.value = setTimeout(() => {
|
|
179
|
+
R.value = !0;
|
|
180
180
|
}, 10);
|
|
181
181
|
});
|
|
182
182
|
});
|
|
183
|
-
|
|
183
|
+
V.value && (K.value && V.value.unobserve(K.value), V.value.disconnect()), V.value = new ResizeObserver(a), K.value = D.value.parentNode, V.value.observe(K.value);
|
|
184
184
|
}
|
|
185
|
-
|
|
185
|
+
ce();
|
|
186
186
|
}
|
|
187
|
-
|
|
188
|
-
|
|
187
|
+
De(() => {
|
|
188
|
+
V.value && (K.value && V.value.unobserve(K.value), V.value.disconnect());
|
|
189
189
|
});
|
|
190
|
-
const { isPrinting:
|
|
191
|
-
elementId: `vue-ui-candlestick_${
|
|
190
|
+
const { isPrinting: Qe, isImaging: Je, generatePdf: Ke, generateImage: Ze } = Nl({
|
|
191
|
+
elementId: `vue-ui-candlestick_${I.value}`,
|
|
192
192
|
fileName: e.value.style.title.text || "vue-ui-candlestick",
|
|
193
193
|
options: e.value.userOptions.print
|
|
194
|
-
}),
|
|
194
|
+
}), Ht = c(() => e.value.userOptions.show && !e.value.style.title.text), L = y({
|
|
195
195
|
showTable: e.value.table.show,
|
|
196
196
|
showTooltip: e.value.style.tooltip.show
|
|
197
|
-
}),
|
|
198
|
-
|
|
197
|
+
}), Se = y(0), Gt = zt((t) => {
|
|
198
|
+
Se.value = t;
|
|
199
199
|
}, 100);
|
|
200
200
|
$l((t) => {
|
|
201
|
-
const a =
|
|
201
|
+
const a = ee.value;
|
|
202
202
|
if (!a) return;
|
|
203
203
|
const l = new ResizeObserver((o) => {
|
|
204
|
-
|
|
204
|
+
Gt(o[0].contentRect.height);
|
|
205
205
|
});
|
|
206
206
|
l.observe(a), t(() => l.disconnect());
|
|
207
|
-
}),
|
|
208
|
-
|
|
207
|
+
}), De(() => {
|
|
208
|
+
Se.value = 0;
|
|
209
209
|
});
|
|
210
|
-
const
|
|
210
|
+
const et = c(() => {
|
|
211
211
|
let t = 0;
|
|
212
|
-
return
|
|
212
|
+
return ee.value && (t = Se.value + f.value.xAxisFontSize), t;
|
|
213
213
|
});
|
|
214
|
-
function
|
|
214
|
+
function jt() {
|
|
215
215
|
let t = e.value.style.layout.grid.yAxis.dataLabels.offsetX;
|
|
216
|
-
return
|
|
217
|
-
const
|
|
218
|
-
return
|
|
216
|
+
return we.value && (t = Array.from(we.value.querySelectorAll("text")).reduce((o, s) => {
|
|
217
|
+
const v = s.getComputedTextLength();
|
|
218
|
+
return v > o ? v : o;
|
|
219
219
|
}, 0)), t + 13;
|
|
220
220
|
}
|
|
221
221
|
const n = c(() => {
|
|
222
|
-
const { top: t, right: a, bottom: l, left: o } = e.value.style.layout.padding,
|
|
222
|
+
const { top: t, right: a, bottom: l, left: o } = e.value.style.layout.padding, s = jt(), v = 12;
|
|
223
223
|
return {
|
|
224
|
-
top: t +
|
|
224
|
+
top: t + v,
|
|
225
225
|
right: f.value.width - a,
|
|
226
|
-
left: o +
|
|
227
|
-
bottom: f.value.height - l -
|
|
228
|
-
width: f.value.width - o - a -
|
|
229
|
-
height: f.value.height - t - l -
|
|
226
|
+
left: o + s,
|
|
227
|
+
bottom: f.value.height - l - et.value,
|
|
228
|
+
width: f.value.width - o - a - s,
|
|
229
|
+
height: f.value.height - t - l - et.value - v
|
|
230
230
|
};
|
|
231
|
-
}),
|
|
232
|
-
const { left: t, top: a, width: l, height: o } = n.value,
|
|
231
|
+
}), qt = c(() => {
|
|
232
|
+
const { left: t, top: a, width: l, height: o } = n.value, s = r.value.start, b = r.value.end - s, T = l / b, z = A.value.start - s, U = A.value.end - s, j = Math.max(0, Math.min(b, z)), me = Math.max(0, Math.min(b, U));
|
|
233
233
|
return {
|
|
234
|
-
x: t +
|
|
234
|
+
x: t + j * T,
|
|
235
235
|
y: a,
|
|
236
|
-
width: (
|
|
236
|
+
width: (me - j) * T,
|
|
237
237
|
height: o,
|
|
238
238
|
fill: e.value.style.zoom.preview.fill,
|
|
239
239
|
stroke: e.value.style.zoom.preview.stroke,
|
|
@@ -250,203 +250,220 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
250
250
|
}), C = c(() => x.value.length), r = y({
|
|
251
251
|
start: 0,
|
|
252
252
|
end: C.value
|
|
253
|
-
}), A = y({ start: 0, end: C.value }),
|
|
254
|
-
function
|
|
253
|
+
}), A = y({ start: 0, end: C.value }), tt = c(() => e.value.style.zoom.preview.enable && (A.value.start !== r.value.start || A.value.end !== r.value.end));
|
|
254
|
+
function lt(t, a) {
|
|
255
255
|
A.value[t] = a;
|
|
256
256
|
}
|
|
257
|
-
function
|
|
257
|
+
function ne() {
|
|
258
258
|
let t = Math.max(0, Math.min(r.value.start ?? 0, C.value - 1)), a = Math.max(t + 1, Math.min(r.value.end ?? C.value, C.value));
|
|
259
|
-
(!Number.isFinite(t) || !Number.isFinite(a) || a <= t) && (t = 0, a = C.value), r.value.start = t, r.value.end = a, A.value.start = t, A.value.end = a,
|
|
259
|
+
(!Number.isFinite(t) || !Number.isFinite(a) || a <= t) && (t = 0, a = C.value), r.value.start = t, r.value.end = a, A.value.start = t, A.value.end = a, Z.value && (Z.value.setStartValue(t), Z.value.setEndValue(a));
|
|
260
260
|
}
|
|
261
|
-
const
|
|
261
|
+
const at = c(() => x.value.map((t, a) => ({
|
|
262
262
|
...t,
|
|
263
263
|
absoluteIndex: a
|
|
264
|
-
}))),
|
|
265
|
-
[null, void 0].includes(t[0]) &&
|
|
264
|
+
}))), ot = c(() => at.value.slice(r.value.start, r.value.end)), _ = c(() => (x.value.forEach((t, a) => {
|
|
265
|
+
[null, void 0].includes(t[0]) && J({
|
|
266
266
|
componentName: "VueUiCandlestick",
|
|
267
267
|
type: "datasetAttribute",
|
|
268
268
|
property: "period (index 0)",
|
|
269
269
|
index: a,
|
|
270
|
-
debug:
|
|
271
|
-
}), [null, void 0].includes(t[1]) &&
|
|
270
|
+
debug: H.value
|
|
271
|
+
}), [null, void 0].includes(t[1]) && J({
|
|
272
272
|
componentName: "VueUiCandlestick",
|
|
273
273
|
type: "datasetAttribute",
|
|
274
274
|
property: "open (index 1)",
|
|
275
275
|
index: a,
|
|
276
|
-
debug:
|
|
277
|
-
}), [null, void 0].includes(t[2]) &&
|
|
276
|
+
debug: H.value
|
|
277
|
+
}), [null, void 0].includes(t[2]) && J({
|
|
278
278
|
componentName: "VueUiCandlestick",
|
|
279
279
|
type: "datasetAttribute",
|
|
280
280
|
property: "high (index 2)",
|
|
281
281
|
index: a,
|
|
282
|
-
debug:
|
|
283
|
-
}), [null, void 0].includes(t[3]) &&
|
|
282
|
+
debug: H.value
|
|
283
|
+
}), [null, void 0].includes(t[3]) && J({
|
|
284
284
|
componentName: "VueUiCandlestick",
|
|
285
285
|
type: "datasetAttribute",
|
|
286
286
|
property: "low (index 3)",
|
|
287
287
|
index: a,
|
|
288
|
-
debug:
|
|
289
|
-
}), [null, void 0].includes(t[4]) &&
|
|
288
|
+
debug: H.value
|
|
289
|
+
}), [null, void 0].includes(t[4]) && J({
|
|
290
290
|
componentName: "VueUiCandlestick",
|
|
291
291
|
type: "datasetAttribute",
|
|
292
|
-
property: "
|
|
292
|
+
property: "close (index 4)",
|
|
293
293
|
index: a,
|
|
294
|
-
debug:
|
|
295
|
-
}), [null, void 0].includes(t[5]) &&
|
|
294
|
+
debug: H.value
|
|
295
|
+
}), [null, void 0].includes(t[5]) && J({
|
|
296
296
|
componentName: "VueUiCandlestick",
|
|
297
297
|
type: "datasetAttribute",
|
|
298
298
|
property: "volume (index 5)",
|
|
299
299
|
index: a,
|
|
300
|
-
debug:
|
|
300
|
+
debug: H.value
|
|
301
301
|
});
|
|
302
|
-
}),
|
|
302
|
+
}), ot.value.map((t) => ({
|
|
303
303
|
absoluteIndex: t.absoluteIndex,
|
|
304
304
|
period: t[0],
|
|
305
305
|
open: t[1],
|
|
306
306
|
high: t[2],
|
|
307
307
|
low: t[3],
|
|
308
|
-
|
|
308
|
+
close: t[4],
|
|
309
309
|
volume: t[5]
|
|
310
|
-
})))),
|
|
310
|
+
})))), Yt = c(() => at.value.map((t) => ({
|
|
311
311
|
absoluteIndex: t.absoluteIndex,
|
|
312
312
|
period: t[0],
|
|
313
313
|
open: t[1],
|
|
314
314
|
high: t[2],
|
|
315
315
|
low: t[3],
|
|
316
|
-
|
|
316
|
+
close: t[4],
|
|
317
317
|
volume: t[5]
|
|
318
|
-
}))),
|
|
319
|
-
const t = e.value.style.layout.grid.yAxis.scale.max === null ? Math.max(...
|
|
318
|
+
}))), d = c(() => n.value.width / ot.value.length), st = c(() => {
|
|
319
|
+
const t = e.value.style.layout.grid.yAxis.scale.max === null ? Math.max(..._.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;
|
|
320
320
|
return {
|
|
321
321
|
max: t,
|
|
322
322
|
min: a
|
|
323
323
|
};
|
|
324
|
-
}),
|
|
325
|
-
function
|
|
324
|
+
}), M = c(() => Ll(st.value.min, st.value.max, e.value.style.layout.grid.yAxis.dataLabels.steps));
|
|
325
|
+
function re(t, a, l = null, o = null) {
|
|
326
326
|
return {
|
|
327
327
|
...t,
|
|
328
|
-
x:
|
|
329
|
-
y:
|
|
330
|
-
value:
|
|
328
|
+
x: X(n.value.left + a * d.value + d.value / 2),
|
|
329
|
+
y: X(n.value.top + (1 - (t - M.value.min) / (M.value.max - M.value.min)) * n.value.height),
|
|
330
|
+
value: X(t),
|
|
331
|
+
isMax: t === l,
|
|
332
|
+
isMin: t === o
|
|
331
333
|
};
|
|
332
334
|
}
|
|
333
|
-
const $ = c(() =>
|
|
334
|
-
const
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
};
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
335
|
+
const $ = c(() => {
|
|
336
|
+
const t = {
|
|
337
|
+
o: Math.max(..._.value.map((s) => s.open)),
|
|
338
|
+
h: Math.max(..._.value.map((s) => s.high)),
|
|
339
|
+
l: Math.max(..._.value.map((s) => s.low)),
|
|
340
|
+
c: Math.max(..._.value.map((s) => s.low))
|
|
341
|
+
}, a = {
|
|
342
|
+
o: Math.min(..._.value.map((s) => s.open)),
|
|
343
|
+
h: Math.min(..._.value.map((s) => s.high)),
|
|
344
|
+
l: Math.min(..._.value.map((s) => s.low)),
|
|
345
|
+
c: Math.min(..._.value.map((s) => s.low))
|
|
346
|
+
}, l = Math.max(..._.value.map((s) => s.volume)), o = Math.min(..._.value.map((s) => s.volume));
|
|
347
|
+
return _.value.map((s, v) => {
|
|
348
|
+
const b = re(s.open, v, t.o, a.o), T = re(s.high, v, t.h, a.h), z = re(s.low, v, t.l, a.l), U = re(s.close, v, t.c, a.c), j = s.close > s.open, me = s.volume === l, Me = s.volume === o;
|
|
349
|
+
return {
|
|
350
|
+
period: s.period,
|
|
351
|
+
open: b,
|
|
352
|
+
high: T,
|
|
353
|
+
low: z,
|
|
354
|
+
close: U,
|
|
355
|
+
volume: s.volume,
|
|
356
|
+
isBullish: j,
|
|
357
|
+
absoluteIndex: s.absoluteIndex,
|
|
358
|
+
isMaxVolume: me,
|
|
359
|
+
isMinVolume: Me
|
|
360
|
+
};
|
|
361
|
+
});
|
|
362
|
+
});
|
|
363
|
+
function ve({ item: t, index: a, minimapH: l, unitW: o }) {
|
|
364
|
+
const s = e.value.style.layout.grid.yAxis.scale.min ?? 0, v = e.value.style.layout.grid.yAxis.scale.max ?? Math.max(...x.value.map((b) => b[2]));
|
|
348
365
|
return {
|
|
349
366
|
...t,
|
|
350
|
-
x:
|
|
351
|
-
y:
|
|
352
|
-
value:
|
|
367
|
+
x: X(a * o),
|
|
368
|
+
y: X((1 - (t - s) / (v - s)) * l),
|
|
369
|
+
value: X(t)
|
|
353
370
|
};
|
|
354
371
|
}
|
|
355
|
-
const
|
|
356
|
-
const
|
|
372
|
+
const Qt = c(() => ({ minimapH: t, unitW: a }) => Yt.value.map((l, o) => {
|
|
373
|
+
const s = ve({ item: l.open, index: o, minimapH: t, unitW: a }), v = ve({ item: l.high, index: o, minimapH: t, unitW: a }), b = ve({ item: l.low, index: o, minimapH: t, unitW: a }), T = ve({ item: l.close, index: o, minimapH: t, unitW: a }), z = l.close > l.open;
|
|
357
374
|
return {
|
|
358
375
|
period: l.period,
|
|
359
|
-
open:
|
|
360
|
-
high:
|
|
376
|
+
open: s,
|
|
377
|
+
high: v,
|
|
361
378
|
low: b,
|
|
362
|
-
|
|
379
|
+
close: T,
|
|
363
380
|
volume: l.volume,
|
|
364
|
-
isBullish:
|
|
381
|
+
isBullish: z,
|
|
365
382
|
absoluteIndex: l.absoluteIndex
|
|
366
383
|
};
|
|
367
|
-
})),
|
|
384
|
+
})), Jt = c(() => e.value.style.zoom.minimap.show ? [{
|
|
368
385
|
name: "",
|
|
369
386
|
series: x.value.map((t) => t[2]),
|
|
370
387
|
color: "#000000",
|
|
371
388
|
isVisible: !0
|
|
372
389
|
}] : []);
|
|
373
|
-
function
|
|
374
|
-
return
|
|
390
|
+
function Kt(t) {
|
|
391
|
+
return X((t - M.value.min) / (M.value.max - M.value.min));
|
|
375
392
|
}
|
|
376
|
-
const
|
|
377
|
-
y: n.value.bottom - n.value.height *
|
|
378
|
-
value:
|
|
379
|
-
}))),
|
|
393
|
+
const ut = c(() => M.value.ticks.map((t) => ({
|
|
394
|
+
y: n.value.bottom - n.value.height * Kt(t),
|
|
395
|
+
value: X(t)
|
|
396
|
+
}))), Zt = c(() => _.value.map((t) => t.period)), B = c(() => Lt({
|
|
380
397
|
values: x.value.map((t) => t[0]),
|
|
381
398
|
maxDatapoints: x.value.length,
|
|
382
399
|
formatter: e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter,
|
|
383
400
|
start: r.value.start,
|
|
384
401
|
end: r.value.end
|
|
385
|
-
})),
|
|
402
|
+
})), it = c(() => Lt({
|
|
386
403
|
values: x.value.map((t) => t[0]),
|
|
387
404
|
maxDatapoints: x.value.length,
|
|
388
405
|
formatter: e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter,
|
|
389
406
|
start: 0,
|
|
390
407
|
end: C.value
|
|
391
|
-
})),
|
|
408
|
+
})), el = c(() => {
|
|
392
409
|
const t = e.value.style.layout.grid.xAxis.dataLabels.modulo;
|
|
393
|
-
return
|
|
394
|
-
}),
|
|
410
|
+
return B.value.length ? Math.min(t, [...new Set(B.value.map((a) => a.text))].length) : t;
|
|
411
|
+
}), nt = c(() => {
|
|
395
412
|
const t = e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter, a = Ul({
|
|
396
413
|
useUTC: t.useUTC,
|
|
397
414
|
locale: Wl[t.locale] || { months: [], shortMonths: [], days: [], shortDays: [] },
|
|
398
415
|
januaryAsYear: t.januaryAsYear
|
|
399
416
|
});
|
|
400
417
|
return (l, o) => {
|
|
401
|
-
const
|
|
402
|
-
return
|
|
418
|
+
const v = x.value.map((b) => b[0])?.[l];
|
|
419
|
+
return v == null ? "" : a.formatDate(new Date(v), o);
|
|
403
420
|
};
|
|
404
|
-
}),
|
|
405
|
-
text:
|
|
421
|
+
}), tl = c(() => (x.value.map((a) => a[0]) || []).map((a, l) => ({
|
|
422
|
+
text: nt.value(l, e.value.style.tooltip.timeFormat),
|
|
406
423
|
absoluteIndex: l
|
|
407
|
-
}))),
|
|
408
|
-
text:
|
|
424
|
+
}))), ll = c(() => (x.value.map((a) => a[0]) || []).map((a, l) => ({
|
|
425
|
+
text: nt.value(l, e.value.style.zoom.timeFormat),
|
|
409
426
|
absoluteIndex: l
|
|
410
|
-
}))),
|
|
411
|
-
const t = e.value.style.layout.grid.xAxis.dataLabels, a =
|
|
427
|
+
}))), Le = c(() => {
|
|
428
|
+
const t = e.value.style.layout.grid.xAxis.dataLabels, a = B.value || [], l = it.value || [], o = r.value.start ?? 0, s = O.value, v = C.value, b = a.map((z) => z?.text ?? ""), T = l.map((z) => z?.text ?? "");
|
|
412
429
|
return Tl(
|
|
413
430
|
!!t.showOnlyFirstAndLast,
|
|
414
431
|
!!t.showOnlyAtModulo,
|
|
415
|
-
Math.max(1,
|
|
432
|
+
Math.max(1, el.value || 1),
|
|
416
433
|
b,
|
|
417
|
-
|
|
434
|
+
T,
|
|
418
435
|
o,
|
|
419
|
-
|
|
420
|
-
|
|
436
|
+
s,
|
|
437
|
+
v
|
|
421
438
|
);
|
|
422
|
-
}),
|
|
423
|
-
start:
|
|
424
|
-
end:
|
|
439
|
+
}), rt = c(() => e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? {
|
|
440
|
+
start: B.value.find((t) => t.absoluteIndex === r.value.start)?.text ?? "",
|
|
441
|
+
end: B.value.find((t) => t.absoluteIndex === r.value.end - 1)?.text ?? ""
|
|
425
442
|
} : {
|
|
426
443
|
start: x.value[r.value.start] ? x.value[r.value.start][0] : x.value[0][0],
|
|
427
444
|
end: x.value[r.value.end - 1] ? x.value[r.value.end - 1][0] : x.value.at(-1)[0]
|
|
428
|
-
}),
|
|
429
|
-
function
|
|
445
|
+
}), Te = y(null);
|
|
446
|
+
function al(t, a) {
|
|
430
447
|
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: a, seriesIndex: t + r.value.start });
|
|
431
448
|
}
|
|
432
|
-
function
|
|
433
|
-
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: a, seriesIndex: t + r.value.start }),
|
|
449
|
+
function ol(t, a) {
|
|
450
|
+
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: a, seriesIndex: t + r.value.start }), O.value = void 0, be.value = !1;
|
|
434
451
|
}
|
|
435
|
-
|
|
452
|
+
se(() => g.selectedXIndex, (t) => {
|
|
436
453
|
if ([null, void 0].includes(g.selectedXIndex)) {
|
|
437
|
-
|
|
454
|
+
O.value = null;
|
|
438
455
|
return;
|
|
439
456
|
}
|
|
440
457
|
const a = t - r.value.start;
|
|
441
|
-
a < 0 || t >= r.value.end ?
|
|
458
|
+
a < 0 || t >= r.value.end ? O.value = null : O.value = a ?? null;
|
|
442
459
|
}, { immediate: !0 });
|
|
443
|
-
function
|
|
444
|
-
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: a, seriesIndex: t + r.value.start }),
|
|
460
|
+
function sl(t, a) {
|
|
461
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: a, seriesIndex: t + r.value.start }), O.value = t, Te.value = {
|
|
445
462
|
datapoint: a,
|
|
446
463
|
seriesIndex: t,
|
|
447
464
|
series: $.value,
|
|
448
465
|
config: e.value
|
|
449
|
-
},
|
|
466
|
+
}, fl({ seriesIndex: t, datapoint: a });
|
|
450
467
|
const l = e.value.style.tooltip.customFormat;
|
|
451
468
|
if (Ol(l) && Dl(() => l({
|
|
452
469
|
seriesIndex: t,
|
|
@@ -454,7 +471,7 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
454
471
|
series: $.value,
|
|
455
472
|
config: e.value
|
|
456
473
|
})))
|
|
457
|
-
|
|
474
|
+
ke.value = l({
|
|
458
475
|
seriesIndex: t,
|
|
459
476
|
datapoint: a,
|
|
460
477
|
series: $.value,
|
|
@@ -462,27 +479,27 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
462
479
|
});
|
|
463
480
|
else if (e.value.style.tooltip.show) {
|
|
464
481
|
let o = "";
|
|
465
|
-
const { period:
|
|
482
|
+
const { period: s, open: v, high: b, low: T, close: z, volume: U, isBullish: j } = $.value[t], { period: me, open: Me, high: gl, low: xl, close: bl, volume: kl } = e.value.translations, wl = e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? e.value.style.tooltip.useDefaultTimeFormat ? B.value[t].text : tl.value[t].text : s;
|
|
466
483
|
o += `<div><svg style="margin-right:6px" viewBox="0 0 12 12" height="12" width="12"><rect x="0" y="0" height="12" width="12" rx="${e.value.style.layout.candle.borderRadius * 3}" stroke="${e.value.style.layout.candle.stroke}" stroke-width="${e.value.style.layout.candle.strokeWidth}"
|
|
467
|
-
fill="${e.value.style.layout.candle.gradient.show ?
|
|
468
|
-
const
|
|
484
|
+
fill="${e.value.style.layout.candle.gradient.show ? j ? `url(#bullish_gradient_${I.value})` : `url(#bearish_gradient_${I.value})` : j ? e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.colors.bearish}"/></svg>${wl}</div>`, o += `${kl} : <b>${isNaN(U) ? "-" : Number(U.toFixed(e.value.style.tooltip.roundingValue)).toLocaleString()}</b>`, o += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${e.value.style.tooltip.borderColor}">`;
|
|
485
|
+
const Re = E({
|
|
469
486
|
p: e.value.style.tooltip.prefix,
|
|
470
|
-
v:
|
|
487
|
+
v: v.value,
|
|
471
488
|
s: e.value.style.tooltip.suffix,
|
|
472
489
|
r: e.value.style.tooltip.roundingValue
|
|
473
|
-
}),
|
|
490
|
+
}), gt = E({
|
|
474
491
|
p: e.value.style.tooltip.prefix,
|
|
475
492
|
v: b.value,
|
|
476
493
|
s: e.value.style.tooltip.suffix,
|
|
477
494
|
r: e.value.style.tooltip.roundingValue
|
|
478
|
-
}),
|
|
495
|
+
}), xt = E({
|
|
479
496
|
p: e.value.style.tooltip.prefix,
|
|
480
|
-
v:
|
|
497
|
+
v: T.value,
|
|
481
498
|
s: e.value.style.tooltip.suffix,
|
|
482
499
|
r: e.value.style.tooltip.roundingValue
|
|
483
|
-
}),
|
|
500
|
+
}), Oe = E({
|
|
484
501
|
p: e.value.style.tooltip.prefix,
|
|
485
|
-
v:
|
|
502
|
+
v: z.value,
|
|
486
503
|
s: e.value.style.tooltip.suffix,
|
|
487
504
|
r: e.value.style.tooltip.roundingValue
|
|
488
505
|
});
|
|
@@ -493,97 +510,97 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
493
510
|
${a.isBullish ? `
|
|
494
511
|
<line x1="45" x2="50" y1="65" y2="65" stroke="${e.value.style.layout.candle.colors.bullish}" stroke-width="1.5" stroke-linecap="round" />
|
|
495
512
|
<line x1="50" x2="55" y1="35" y2="35" stroke="${e.value.style.layout.candle.colors.bullish}" stroke-width="1.5" stroke-linecap="round" />
|
|
496
|
-
<text x="38" y="70" text-anchor="end" fill="${e.value.style.tooltip.color}">${
|
|
497
|
-
<text x="62" y="40" text-anchor="start" fill="${e.value.style.tooltip.color}">${
|
|
513
|
+
<text x="38" y="70" text-anchor="end" fill="${e.value.style.tooltip.color}">${Re}</text>
|
|
514
|
+
<text x="62" y="40" text-anchor="start" fill="${e.value.style.tooltip.color}">${Oe}</text>
|
|
498
515
|
` : `
|
|
499
516
|
<line x1="45" x2="50" y1="35" y2="35" stroke="${e.value.style.layout.candle.colors.bearish}" stroke-width="1.5" stroke-linecap="round" />
|
|
500
517
|
<line x1="50" x2="55" y1="65" y2="65" stroke="${e.value.style.layout.candle.colors.bearish}" stroke-width="1.5" stroke-linecap="round" />
|
|
501
|
-
<text x="40" y="40" text-anchor="end" fill="${e.value.style.tooltip.color}">${
|
|
502
|
-
<text x="60" y="70" text-anchor="start" fill="${e.value.style.tooltip.color}">${
|
|
518
|
+
<text x="40" y="40" text-anchor="end" fill="${e.value.style.tooltip.color}">${Re}</text>
|
|
519
|
+
<text x="60" y="70" text-anchor="start" fill="${e.value.style.tooltip.color}">${Oe}</text>
|
|
503
520
|
`}
|
|
504
|
-
<text x="50" y="13" text-anchor="middle" fill="${e.value.style.tooltip.color}">${
|
|
505
|
-
<text x="50" y="97" text-anchor="middle" fill="${e.value.style.tooltip.color}">${
|
|
521
|
+
<text x="50" y="13" text-anchor="middle" fill="${e.value.style.tooltip.color}">${gt}</text>
|
|
522
|
+
<text x="50" y="97" text-anchor="middle" fill="${e.value.style.tooltip.color}">${xt}</text>
|
|
506
523
|
<g>
|
|
507
524
|
</svg>
|
|
508
525
|
<div>
|
|
509
|
-
` : (o += `<div>${
|
|
526
|
+
` : (o += `<div>${Me}: <b>${Re}</b></div>`, o += `<div>${gl}: <b>${gt}</b></div>`, o += `<div>${xl}: <b>${xt}</b></div>`, o += `<div>${bl}: <b>${Oe}</b></div>`), o += "</div>", ke.value = `<div style="text-align:right">${o}</div>`;
|
|
510
527
|
}
|
|
511
|
-
|
|
528
|
+
be.value = !0;
|
|
512
529
|
}
|
|
513
|
-
const
|
|
514
|
-
function
|
|
530
|
+
const le = y(null);
|
|
531
|
+
function ul() {
|
|
515
532
|
return new Promise((t) => requestAnimationFrame(
|
|
516
533
|
() => requestAnimationFrame(() => t())
|
|
517
534
|
));
|
|
518
535
|
}
|
|
519
|
-
|
|
520
|
-
|
|
536
|
+
De(() => {
|
|
537
|
+
le.value && cancelAnimationFrame(le.value);
|
|
521
538
|
});
|
|
522
|
-
async function
|
|
523
|
-
|
|
524
|
-
await
|
|
539
|
+
async function vt() {
|
|
540
|
+
ce(), await kt(), le.value && cancelAnimationFrame(le.value), le.value = requestAnimationFrame(async () => {
|
|
541
|
+
await ul(), ce();
|
|
525
542
|
});
|
|
526
543
|
}
|
|
527
|
-
const
|
|
528
|
-
function
|
|
529
|
-
if (!
|
|
530
|
-
|
|
544
|
+
const ae = y(!1), dt = y(!1), de = y(!1);
|
|
545
|
+
function ce() {
|
|
546
|
+
if (!ae.value) {
|
|
547
|
+
ae.value = !0;
|
|
531
548
|
try {
|
|
532
|
-
const { startIndex: t, endIndex: a } = e.value.style.zoom, l = C.value, o = t ?? 0,
|
|
533
|
-
|
|
549
|
+
const { startIndex: t, endIndex: a } = e.value.style.zoom, l = C.value, o = t ?? 0, s = a != null ? Math.min(ct(a + 1), l) : l;
|
|
550
|
+
de.value = !0, r.value.start = o, r.value.end = s, A.value.start = o, A.value.end = s, ne(), dt.value = !0;
|
|
534
551
|
} finally {
|
|
535
552
|
queueMicrotask(() => {
|
|
536
|
-
|
|
537
|
-
}),
|
|
553
|
+
de.value = !1;
|
|
554
|
+
}), ae.value = !1;
|
|
538
555
|
}
|
|
539
556
|
}
|
|
540
557
|
}
|
|
541
|
-
function
|
|
558
|
+
function ct(t) {
|
|
542
559
|
const a = C.value;
|
|
543
560
|
return t > a ? a : t < 0 || t < r.value.start ? e.value.style.zoom.startIndex !== null ? e.value.style.zoom.startIndex + 1 : 1 : t;
|
|
544
561
|
}
|
|
545
|
-
function
|
|
546
|
-
|
|
547
|
-
const a = [e.value.translations.period, e.value.translations.open, e.value.translations.high, e.value.translations.low, e.value.translations.
|
|
548
|
-
e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ?
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
]), o = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([a]).concat(l),
|
|
555
|
-
t ? t(
|
|
562
|
+
function Fe(t = null) {
|
|
563
|
+
kt(() => {
|
|
564
|
+
const a = [e.value.translations.period, e.value.translations.open, e.value.translations.high, e.value.translations.low, e.value.translations.close, e.value.translations.volume], l = $.value.map((v, b) => [
|
|
565
|
+
e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? B.value[b].text : v.period,
|
|
566
|
+
v.open.value,
|
|
567
|
+
v.high.value,
|
|
568
|
+
v.low.value,
|
|
569
|
+
v.close.value,
|
|
570
|
+
v.volume
|
|
571
|
+
]), o = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([a]).concat(l), s = Ml(o);
|
|
572
|
+
t ? t(s) : Rl({ csvContent: s, title: e.value.style.title.text || "vue-ui-candlestick" });
|
|
556
573
|
});
|
|
557
574
|
}
|
|
558
|
-
const
|
|
559
|
-
const t = $.value.map((o,
|
|
560
|
-
const
|
|
575
|
+
const ye = c(() => {
|
|
576
|
+
const t = $.value.map((o, s) => {
|
|
577
|
+
const v = e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? B.value[s].text : o.period, b = E({
|
|
561
578
|
p: e.value.table.td.prefix,
|
|
562
579
|
v: o.open.value,
|
|
563
580
|
s: e.value.table.td.suffix,
|
|
564
581
|
r: e.value.table.td.roundingValue
|
|
565
|
-
}),
|
|
582
|
+
}), T = E({
|
|
566
583
|
p: e.value.table.td.prefix,
|
|
567
584
|
v: o.high.value,
|
|
568
585
|
s: e.value.table.td.suffix,
|
|
569
586
|
r: e.value.table.td.roundingValue
|
|
570
|
-
}),
|
|
587
|
+
}), z = E({
|
|
571
588
|
p: e.value.table.td.prefix,
|
|
572
589
|
v: o.low.value,
|
|
573
590
|
s: e.value.table.td.suffix,
|
|
574
591
|
r: e.value.table.td.roundingValue
|
|
575
|
-
}),
|
|
592
|
+
}), U = E({
|
|
576
593
|
p: e.value.table.td.prefix,
|
|
577
|
-
v: o.
|
|
594
|
+
v: o.close.value,
|
|
578
595
|
s: e.value.table.td.suffix,
|
|
579
596
|
r: e.value.table.td.roundingValue
|
|
580
597
|
});
|
|
581
598
|
return [
|
|
582
|
-
`<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_${
|
|
599
|
+
`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 12" height="12" width="12" style="margin-right: 6px"><rect x="0" y="0" height="12" width="12" rx="${e.value.style.layout.candle.borderRadius * 3}" fill="${e.value.style.layout.candle.gradient.show ? o.isBullish ? `url(#bullish_gradient_${I.value}` : `url(#bearish_gradient_${I.value})` : o.isBullish ? e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.colors.bearish}"/></svg> ${v}`,
|
|
583
600
|
b,
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
601
|
+
T,
|
|
602
|
+
z,
|
|
603
|
+
U,
|
|
587
604
|
`${isNaN(o.volume) ? "-" : o.volume.toLocaleString()}`
|
|
588
605
|
];
|
|
589
606
|
}), a = {
|
|
@@ -607,62 +624,62 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
607
624
|
e.value.translations.volume
|
|
608
625
|
];
|
|
609
626
|
return { head: l, body: t, config: a, colNames: l };
|
|
610
|
-
}),
|
|
611
|
-
function
|
|
612
|
-
|
|
627
|
+
}), G = y(!1);
|
|
628
|
+
function yt(t) {
|
|
629
|
+
G.value = t, Ne.value += 1;
|
|
613
630
|
}
|
|
614
|
-
function
|
|
615
|
-
|
|
631
|
+
function ht() {
|
|
632
|
+
L.value.showTable = !L.value.showTable;
|
|
616
633
|
}
|
|
617
|
-
function
|
|
618
|
-
|
|
634
|
+
function mt() {
|
|
635
|
+
L.value.showTooltip = !L.value.showTooltip;
|
|
619
636
|
}
|
|
620
|
-
const
|
|
621
|
-
function
|
|
622
|
-
|
|
637
|
+
const he = y(!1);
|
|
638
|
+
function Ie() {
|
|
639
|
+
he.value = !he.value;
|
|
623
640
|
}
|
|
624
|
-
async function
|
|
625
|
-
if (!
|
|
626
|
-
const { width: a, height: l } =
|
|
641
|
+
async function il({ scale: t = 2 } = {}) {
|
|
642
|
+
if (!D.value) return;
|
|
643
|
+
const { width: a, height: l } = D.value.getBoundingClientRect(), o = a / l, { imageUri: s, base64: v } = await ql({ domElement: D.value, base64: !0, img: !0, scale: t });
|
|
627
644
|
return {
|
|
628
|
-
imageUri:
|
|
629
|
-
base64:
|
|
645
|
+
imageUri: s,
|
|
646
|
+
base64: v,
|
|
630
647
|
title: e.value.style.title.text,
|
|
631
648
|
width: a,
|
|
632
649
|
height: l,
|
|
633
650
|
aspectRatio: o
|
|
634
651
|
};
|
|
635
652
|
}
|
|
636
|
-
const
|
|
653
|
+
const nl = c(() => f.value.width), rl = c(() => f.value.height);
|
|
637
654
|
jl({
|
|
638
|
-
timeLabelsEls:
|
|
639
|
-
timeLabels:
|
|
655
|
+
timeLabelsEls: ee,
|
|
656
|
+
timeLabels: B,
|
|
640
657
|
slicer: r,
|
|
641
658
|
configRef: e,
|
|
642
659
|
rotationPath: ["style", "layout", "grid", "xAxis", "dataLabels", "rotation"],
|
|
643
660
|
autoRotatePath: ["style", "layout", "grid", "xAxis", "dataLabels", "autoRotate", "enable"],
|
|
644
661
|
isAutoSize: !1,
|
|
645
662
|
rotation: e.value.style.layout.grid.xAxis.dataLabels.autoRotate.angle,
|
|
646
|
-
width:
|
|
647
|
-
height:
|
|
648
|
-
}),
|
|
649
|
-
|
|
663
|
+
width: nl,
|
|
664
|
+
height: rl
|
|
665
|
+
}), se(e, () => {
|
|
666
|
+
L.value = {
|
|
650
667
|
showTable: e.value.table.show,
|
|
651
668
|
showTooltip: e.value.style.tooltip.show
|
|
652
669
|
};
|
|
653
670
|
}, { immediate: !0 });
|
|
654
|
-
const
|
|
655
|
-
const t = e.value.table.useDialog && !e.value.table.show, a =
|
|
671
|
+
const oe = c(() => {
|
|
672
|
+
const t = e.value.table.useDialog && !e.value.table.show, a = L.value.showTable;
|
|
656
673
|
return {
|
|
657
|
-
component: t ?
|
|
674
|
+
component: t ? Et : Ot,
|
|
658
675
|
title: `${e.value.style.title.text}${e.value.style.title.subtitle.text ? `: ${e.value.style.title.subtitle.text}` : ""}`,
|
|
659
676
|
props: t ? {
|
|
660
677
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
661
678
|
color: e.value.table.th.color,
|
|
662
679
|
headerColor: e.value.table.th.color,
|
|
663
680
|
headerBg: e.value.table.th.backgroundColor,
|
|
664
|
-
isFullscreen:
|
|
665
|
-
fullscreenParent:
|
|
681
|
+
isFullscreen: G.value,
|
|
682
|
+
fullscreenParent: D.value,
|
|
666
683
|
forcedWidth: Math.min(800, window.innerWidth * 0.8)
|
|
667
684
|
} : {
|
|
668
685
|
hideDetails: !0,
|
|
@@ -681,85 +698,85 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
681
698
|
}
|
|
682
699
|
};
|
|
683
700
|
});
|
|
684
|
-
|
|
685
|
-
e.value.table.show || (t && e.value.table.useDialog &&
|
|
701
|
+
se(() => L.value.showTable, (t) => {
|
|
702
|
+
e.value.table.show || (t && e.value.table.useDialog && te.value ? te.value.open() : "close" in te.value && te.value.close());
|
|
686
703
|
});
|
|
687
|
-
function
|
|
688
|
-
|
|
704
|
+
function pt() {
|
|
705
|
+
L.value.showTable = !1, Ae.value && Ae.value.setTableIconState(!1);
|
|
689
706
|
}
|
|
690
|
-
const
|
|
691
|
-
svg:
|
|
692
|
-
title:
|
|
693
|
-
backgroundColor:
|
|
707
|
+
const vl = c(() => e.value.style.backgroundColor), dl = c(() => e.value.style.title), { exportSvg: cl, getSvg: yl } = Xl({
|
|
708
|
+
svg: _e,
|
|
709
|
+
title: dl,
|
|
710
|
+
backgroundColor: vl
|
|
694
711
|
});
|
|
695
|
-
async function
|
|
712
|
+
async function ft({ isCb: t }) {
|
|
696
713
|
if (t) {
|
|
697
|
-
const { blob: a, url: l, text: o, dataUrl:
|
|
698
|
-
e.value.userOptions.callbacks.svg({ blob: a, url: l, text: o, dataUrl:
|
|
714
|
+
const { blob: a, url: l, text: o, dataUrl: s } = await yl();
|
|
715
|
+
e.value.userOptions.callbacks.svg({ blob: a, url: l, text: o, dataUrl: s });
|
|
699
716
|
} else
|
|
700
|
-
|
|
701
|
-
}
|
|
702
|
-
function yl(t) {
|
|
703
|
-
Xe.value = t;
|
|
717
|
+
cl();
|
|
704
718
|
}
|
|
705
719
|
function hl(t) {
|
|
706
|
-
|
|
720
|
+
Ge.value = t;
|
|
707
721
|
}
|
|
708
722
|
function ml(t) {
|
|
709
|
-
|
|
710
|
-
const a = vt(t);
|
|
711
|
-
a !== r.value.end && (r.value.end = a, A.value.end = a, ie());
|
|
723
|
+
ae.value || de.value || t !== r.value.start && (r.value.start = t, A.value.start = t, ne());
|
|
712
724
|
}
|
|
713
|
-
function pl(
|
|
725
|
+
function pl(t) {
|
|
726
|
+
if (ae.value || de.value) return;
|
|
727
|
+
const a = ct(t);
|
|
728
|
+
a !== r.value.end && (r.value.end = a, A.value.end = a, ne());
|
|
729
|
+
}
|
|
730
|
+
function fl({ seriesIndex: t, datapoint: a }) {
|
|
714
731
|
const l = r.value.start + t;
|
|
715
|
-
|
|
732
|
+
Be("selectX", {
|
|
716
733
|
dataset: a,
|
|
717
734
|
index: l,
|
|
718
735
|
indexLabel: ""
|
|
719
736
|
});
|
|
720
737
|
}
|
|
721
|
-
return
|
|
722
|
-
getImage:
|
|
723
|
-
generatePdf:
|
|
724
|
-
generateCsv:
|
|
725
|
-
generateImage:
|
|
726
|
-
generateSvg:
|
|
727
|
-
toggleTable:
|
|
728
|
-
toggleTooltip:
|
|
729
|
-
toggleAnnotator:
|
|
730
|
-
toggleFullscreen:
|
|
731
|
-
}), (t, a) => (
|
|
738
|
+
return Ft({
|
|
739
|
+
getImage: il,
|
|
740
|
+
generatePdf: Ke,
|
|
741
|
+
generateCsv: Fe,
|
|
742
|
+
generateImage: Ze,
|
|
743
|
+
generateSvg: ft,
|
|
744
|
+
toggleTable: ht,
|
|
745
|
+
toggleTooltip: mt,
|
|
746
|
+
toggleAnnotator: Ie,
|
|
747
|
+
toggleFullscreen: yt
|
|
748
|
+
}), (t, a) => (u(), i("div", {
|
|
732
749
|
ref_key: "candlestickChart",
|
|
733
|
-
ref:
|
|
734
|
-
class:
|
|
735
|
-
style:
|
|
736
|
-
id: `vue-ui-candlestick_${
|
|
737
|
-
onMouseenter:
|
|
738
|
-
onMouseleave:
|
|
750
|
+
ref: D,
|
|
751
|
+
class: N(`vue-data-ui-component vue-ui-candlestick ${G.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
752
|
+
style: ue(`position:relative;font-family:${e.value.style.fontFamily}; text-align:center;background:${e.value.style.backgroundColor}; ${e.value.responsive ? "height: 100%" : ""}`),
|
|
753
|
+
id: `vue-ui-candlestick_${I.value}`,
|
|
754
|
+
onMouseenter: Wt,
|
|
755
|
+
onMouseleave: Xt
|
|
739
756
|
}, [
|
|
740
|
-
e.value.userOptions.buttons.annotator ? (
|
|
757
|
+
e.value.userOptions.buttons.annotator ? (u(), q(h(Pt), {
|
|
741
758
|
key: 0,
|
|
742
|
-
svgRef: h(
|
|
759
|
+
svgRef: h(_e),
|
|
743
760
|
backgroundColor: e.value.style.backgroundColor,
|
|
744
761
|
color: e.value.style.color,
|
|
745
|
-
active:
|
|
746
|
-
onClose:
|
|
762
|
+
active: he.value,
|
|
763
|
+
onClose: Ie
|
|
747
764
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : m("", !0),
|
|
748
|
-
|
|
765
|
+
Ht.value ? (u(), i("div", {
|
|
749
766
|
key: 1,
|
|
750
767
|
ref_key: "noTitle",
|
|
751
|
-
ref:
|
|
768
|
+
ref: We,
|
|
752
769
|
class: "vue-data-ui-no-title-space",
|
|
753
770
|
style: "height:36px; width: 100%;background:transparent"
|
|
754
771
|
}, null, 512)) : m("", !0),
|
|
755
|
-
e.value.style.title.text ? (
|
|
772
|
+
e.value.style.title.text ? (u(), i("div", {
|
|
756
773
|
key: 2,
|
|
757
774
|
ref_key: "chartTitle",
|
|
758
|
-
ref:
|
|
775
|
+
ref: Ee,
|
|
759
776
|
style: "width:100%;background:transparent"
|
|
760
777
|
}, [
|
|
761
|
-
(
|
|
762
|
-
key: `title_${
|
|
778
|
+
(u(), q(Yl, {
|
|
779
|
+
key: `title_${He.value}`,
|
|
763
780
|
config: {
|
|
764
781
|
title: {
|
|
765
782
|
cy: "candlestick-div-title",
|
|
@@ -772,15 +789,15 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
772
789
|
}
|
|
773
790
|
}, null, 8, ["config"]))
|
|
774
791
|
], 512)) : m("", !0),
|
|
775
|
-
e.value.userOptions.show &&
|
|
792
|
+
e.value.userOptions.show && ge.value && (h(qe) || h($e)) ? (u(), q(h(Bt), {
|
|
776
793
|
ref_key: "userOptionsRef",
|
|
777
|
-
ref:
|
|
778
|
-
key: `user_options_${
|
|
794
|
+
ref: Ae,
|
|
795
|
+
key: `user_options_${Ne.value}`,
|
|
779
796
|
backgroundColor: e.value.style.backgroundColor,
|
|
780
797
|
color: e.value.style.color,
|
|
781
|
-
isImaging: h(
|
|
782
|
-
isPrinting: h(
|
|
783
|
-
uid:
|
|
798
|
+
isImaging: h(Je),
|
|
799
|
+
isPrinting: h(Qe),
|
|
800
|
+
uid: I.value,
|
|
784
801
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.tooltip.show,
|
|
785
802
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
786
803
|
hasImg: e.value.userOptions.buttons.img,
|
|
@@ -788,32 +805,32 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
788
805
|
hasXls: e.value.userOptions.buttons.csv,
|
|
789
806
|
hasTable: e.value.userOptions.buttons.table,
|
|
790
807
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
791
|
-
isFullscreen:
|
|
792
|
-
isTooltip:
|
|
808
|
+
isFullscreen: G.value,
|
|
809
|
+
isTooltip: L.value.showTooltip,
|
|
793
810
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
794
|
-
chartElement:
|
|
811
|
+
chartElement: D.value,
|
|
795
812
|
position: e.value.userOptions.position,
|
|
796
813
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
797
|
-
isAnnotation:
|
|
814
|
+
isAnnotation: he.value,
|
|
798
815
|
callbacks: e.value.userOptions.callbacks,
|
|
799
816
|
printScale: e.value.userOptions.print.scale,
|
|
800
817
|
tableDialog: e.value.table.useDialog,
|
|
801
|
-
onToggleFullscreen:
|
|
802
|
-
onGeneratePdf: h(
|
|
803
|
-
onGenerateCsv:
|
|
804
|
-
onGenerateImage: h(
|
|
805
|
-
onGenerateSvg:
|
|
806
|
-
onToggleTable:
|
|
807
|
-
onToggleTooltip:
|
|
808
|
-
onToggleAnnotator:
|
|
809
|
-
style:
|
|
810
|
-
visibility: h(
|
|
818
|
+
onToggleFullscreen: yt,
|
|
819
|
+
onGeneratePdf: h(Ke),
|
|
820
|
+
onGenerateCsv: Fe,
|
|
821
|
+
onGenerateImage: h(Ze),
|
|
822
|
+
onGenerateSvg: ft,
|
|
823
|
+
onToggleTable: ht,
|
|
824
|
+
onToggleTooltip: mt,
|
|
825
|
+
onToggleAnnotator: Ie,
|
|
826
|
+
style: ue({
|
|
827
|
+
visibility: h(qe) ? h($e) ? "visible" : "hidden" : "visible"
|
|
811
828
|
})
|
|
812
|
-
},
|
|
829
|
+
}, wt({ _: 2 }, [
|
|
813
830
|
t.$slots.menuIcon ? {
|
|
814
831
|
name: "menuIcon",
|
|
815
832
|
fn: k(({ isOpen: l, color: o }) => [
|
|
816
|
-
w(t.$slots, "menuIcon",
|
|
833
|
+
w(t.$slots, "menuIcon", Y(Q({ isOpen: l, color: o })), void 0, !0)
|
|
817
834
|
]),
|
|
818
835
|
key: "0"
|
|
819
836
|
} : void 0,
|
|
@@ -855,29 +872,29 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
855
872
|
t.$slots.optionFullscreen ? {
|
|
856
873
|
name: "optionFullscreen",
|
|
857
874
|
fn: k(({ toggleFullscreen: l, isFullscreen: o }) => [
|
|
858
|
-
w(t.$slots, "optionFullscreen",
|
|
875
|
+
w(t.$slots, "optionFullscreen", Y(Q({ toggleFullscreen: l, isFullscreen: o })), void 0, !0)
|
|
859
876
|
]),
|
|
860
877
|
key: "6"
|
|
861
878
|
} : void 0,
|
|
862
879
|
t.$slots.optionAnnotator ? {
|
|
863
880
|
name: "optionAnnotator",
|
|
864
881
|
fn: k(({ toggleAnnotator: l, isAnnotator: o }) => [
|
|
865
|
-
w(t.$slots, "optionAnnotator",
|
|
882
|
+
w(t.$slots, "optionAnnotator", Y(Q({ toggleAnnotator: l, isAnnotator: o })), void 0, !0)
|
|
866
883
|
]),
|
|
867
884
|
key: "7"
|
|
868
885
|
} : void 0
|
|
869
886
|
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : m("", !0),
|
|
870
|
-
(
|
|
887
|
+
(u(), i("svg", {
|
|
871
888
|
ref_key: "svgRef",
|
|
872
|
-
ref:
|
|
889
|
+
ref: _e,
|
|
873
890
|
xmlns: h(Fl),
|
|
874
891
|
"aria-label": e.value.style.title.text || "candlestick chart",
|
|
875
|
-
class:
|
|
892
|
+
class: N({ "vue-data-ui-fullscreen--on": G.value, "vue-data-ui-fulscreen--off": !G.value }),
|
|
876
893
|
viewBox: `0 0 ${f.value.width <= 0 ? 10 : f.value.width} ${f.value.height <= 0 ? 10 : f.value.height}`,
|
|
877
|
-
style:
|
|
894
|
+
style: ue(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.color}`)
|
|
878
895
|
}, [
|
|
879
|
-
|
|
880
|
-
t.$slots["chart-background"] ? (
|
|
896
|
+
Pe(h(Nt)),
|
|
897
|
+
t.$slots["chart-background"] ? (u(), i("foreignObject", {
|
|
881
898
|
key: 0,
|
|
882
899
|
x: n.value.left,
|
|
883
900
|
y: n.value.top,
|
|
@@ -889,10 +906,10 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
889
906
|
}, [
|
|
890
907
|
w(t.$slots, "chart-background", {}, void 0, !0)
|
|
891
908
|
], 8, ta)) : m("", !0),
|
|
892
|
-
$.value.length > 0 ? (
|
|
909
|
+
$.value.length > 0 ? (u(), i("g", la, [
|
|
893
910
|
p("defs", null, [
|
|
894
911
|
p("linearGradient", {
|
|
895
|
-
id: `bearish_gradient_${
|
|
912
|
+
id: `bearish_gradient_${I.value}`,
|
|
896
913
|
x2: "0%",
|
|
897
914
|
y2: "100%"
|
|
898
915
|
}, [
|
|
@@ -902,15 +919,15 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
902
919
|
}, null, 8, oa),
|
|
903
920
|
p("stop", {
|
|
904
921
|
offset: "50%",
|
|
905
|
-
"stop-color": `${h(
|
|
922
|
+
"stop-color": `${h(fe)(e.value.style.layout.candle.colors.bearish, 0.02)}DE`
|
|
906
923
|
}, null, 8, sa),
|
|
907
924
|
p("stop", {
|
|
908
925
|
offset: "100%",
|
|
909
|
-
"stop-color": `${h(
|
|
926
|
+
"stop-color": `${h(fe)(e.value.style.layout.candle.colors.bearish, 0.05)}66`
|
|
910
927
|
}, null, 8, ua)
|
|
911
928
|
], 8, aa),
|
|
912
929
|
p("linearGradient", {
|
|
913
|
-
id: `bullish_gradient_${
|
|
930
|
+
id: `bullish_gradient_${I.value}`,
|
|
914
931
|
x2: "0%",
|
|
915
932
|
y2: "100%"
|
|
916
933
|
}, [
|
|
@@ -920,15 +937,15 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
920
937
|
}, null, 8, na),
|
|
921
938
|
p("stop", {
|
|
922
939
|
offset: "50%",
|
|
923
|
-
"stop-color": `${h(
|
|
940
|
+
"stop-color": `${h(fe)(e.value.style.layout.candle.colors.bullish, 0.02)}DE`
|
|
924
941
|
}, null, 8, ra),
|
|
925
942
|
p("stop", {
|
|
926
943
|
offset: "100%",
|
|
927
|
-
"stop-color": `${h(
|
|
944
|
+
"stop-color": `${h(fe)(e.value.style.layout.candle.colors.bullish, 0.05)}66`
|
|
928
945
|
}, null, 8, va)
|
|
929
946
|
], 8, ia)
|
|
930
947
|
]),
|
|
931
|
-
e.value.style.layout.grid.show ? (
|
|
948
|
+
e.value.style.layout.grid.show ? (u(), i("g", da, [
|
|
932
949
|
p("line", {
|
|
933
950
|
x1: n.value.left,
|
|
934
951
|
x2: n.value.left,
|
|
@@ -947,7 +964,7 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
947
964
|
"stroke-width": e.value.style.layout.grid.strokeWidth,
|
|
948
965
|
"stroke-linecap": "round"
|
|
949
966
|
}, null, 8, ya),
|
|
950
|
-
e.value.style.layout.grid.horizontalLines.show ? (
|
|
967
|
+
e.value.style.layout.grid.horizontalLines.show ? (u(!0), i(S, { key: 0 }, F(ut.value, (l) => (u(), i("line", {
|
|
951
968
|
x1: n.value.left,
|
|
952
969
|
x2: n.value.right,
|
|
953
970
|
y1: l.y,
|
|
@@ -957,11 +974,11 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
957
974
|
"stroke-dasharray": e.value.style.layout.grid.horizontalLines.strokeDasharray,
|
|
958
975
|
"stroke-linecap": "round"
|
|
959
976
|
}, null, 8, ha))), 256)) : m("", !0),
|
|
960
|
-
e.value.style.layout.grid.verticalLines.show ? (
|
|
961
|
-
l.text ? (
|
|
977
|
+
e.value.style.layout.grid.verticalLines.show ? (u(!0), i(S, { key: 1 }, F(Le.value, (l, o) => (u(), i("g", null, [
|
|
978
|
+
l.text ? (u(), i("line", {
|
|
962
979
|
key: 0,
|
|
963
|
-
x1: n.value.left +
|
|
964
|
-
x2: n.value.left +
|
|
980
|
+
x1: n.value.left + d.value * o + d.value / 2,
|
|
981
|
+
x2: n.value.left + d.value * o + d.value / 2,
|
|
965
982
|
y1: n.value.top,
|
|
966
983
|
y2: n.value.bottom,
|
|
967
984
|
stroke: e.value.style.layout.grid.verticalLines.stroke,
|
|
@@ -970,11 +987,11 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
970
987
|
"stroke-linecap": "round"
|
|
971
988
|
}, null, 8, ma)) : m("", !0)
|
|
972
989
|
]))), 256)) : m("", !0),
|
|
973
|
-
e.value.style.layout.grid.xAxis.ticks.show ? (
|
|
974
|
-
l.text ? (
|
|
990
|
+
e.value.style.layout.grid.xAxis.ticks.show ? (u(!0), i(S, { key: 2 }, F(Le.value, (l, o) => (u(), i("g", null, [
|
|
991
|
+
l.text ? (u(), i("line", {
|
|
975
992
|
key: 0,
|
|
976
|
-
x1: n.value.left +
|
|
977
|
-
x2: n.value.left +
|
|
993
|
+
x1: n.value.left + d.value * o + d.value / 2,
|
|
994
|
+
x2: n.value.left + d.value * o + d.value / 2,
|
|
978
995
|
y1: n.value.bottom,
|
|
979
996
|
y2: n.value.bottom + 3,
|
|
980
997
|
stroke: e.value.style.layout.grid.stroke,
|
|
@@ -983,13 +1000,13 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
983
1000
|
}, null, 8, pa)) : m("", !0)
|
|
984
1001
|
]))), 256)) : m("", !0)
|
|
985
1002
|
])) : m("", !0),
|
|
986
|
-
e.value.style.layout.grid.yAxis.dataLabels.show ? (
|
|
1003
|
+
e.value.style.layout.grid.yAxis.dataLabels.show ? (u(), i("g", {
|
|
987
1004
|
key: 1,
|
|
988
1005
|
ref_key: "scaleLabels",
|
|
989
|
-
ref:
|
|
1006
|
+
ref: we
|
|
990
1007
|
}, [
|
|
991
|
-
(
|
|
992
|
-
l.value >=
|
|
1008
|
+
(u(!0), i(S, null, F(ut.value, (l, o) => (u(), i("g", null, [
|
|
1009
|
+
l.value >= M.value.min && l.value <= M.value.max ? (u(), i("line", {
|
|
993
1010
|
key: 0,
|
|
994
1011
|
x1: n.value.left,
|
|
995
1012
|
x2: n.value.left - 5,
|
|
@@ -999,7 +1016,7 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
999
1016
|
"stroke-width": e.value.style.layout.grid.strokeWidth,
|
|
1000
1017
|
"stroke-linecap": "round"
|
|
1001
1018
|
}, null, 8, fa)) : m("", !0),
|
|
1002
|
-
l.value >=
|
|
1019
|
+
l.value >= M.value.min && l.value <= M.value.max ? (u(), i("text", {
|
|
1003
1020
|
key: 1,
|
|
1004
1021
|
x: n.value.left - 8 + e.value.style.layout.grid.yAxis.dataLabels.offsetX,
|
|
1005
1022
|
y: l.y + f.value.yAxisFontSize / 3,
|
|
@@ -1007,7 +1024,7 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
1007
1024
|
"text-anchor": "end",
|
|
1008
1025
|
fill: e.value.style.layout.grid.yAxis.dataLabels.color,
|
|
1009
1026
|
"font-weight": e.value.style.layout.grid.yAxis.dataLabels.bold ? "bold" : "normal"
|
|
1010
|
-
},
|
|
1027
|
+
}, ie(h(E)({
|
|
1011
1028
|
p: e.value.style.layout.grid.yAxis.dataLabels.prefix,
|
|
1012
1029
|
v: l.value,
|
|
1013
1030
|
s: e.value.style.layout.grid.yAxis.dataLabels.suffix,
|
|
@@ -1015,41 +1032,41 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
1015
1032
|
})), 9, ga)) : m("", !0)
|
|
1016
1033
|
]))), 256))
|
|
1017
1034
|
], 512)) : m("", !0),
|
|
1018
|
-
e.value.style.layout.grid.xAxis.dataLabels.show && !e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? (
|
|
1035
|
+
e.value.style.layout.grid.xAxis.dataLabels.show && !e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? (u(), i("g", {
|
|
1019
1036
|
key: 2,
|
|
1020
1037
|
ref_key: "timeLabelsEls",
|
|
1021
|
-
ref:
|
|
1038
|
+
ref: ee
|
|
1022
1039
|
}, [
|
|
1023
|
-
(
|
|
1040
|
+
(u(!0), i(S, null, F(Zt.value, (l, o) => (u(), i("g", null, [
|
|
1024
1041
|
p("text", {
|
|
1025
1042
|
class: "vue-data-ui-time-label",
|
|
1026
|
-
transform: `translate(${n.value.left +
|
|
1043
|
+
transform: `translate(${n.value.left + d.value * o + d.value / 2}, ${n.value.bottom + f.value.xAxisFontSize * 1.5}), rotate(${e.value.style.layout.grid.xAxis.dataLabels.rotation})`,
|
|
1027
1044
|
"text-anchor": e.value.style.layout.grid.xAxis.dataLabels.rotation > 0 ? "start" : e.value.style.layout.grid.xAxis.dataLabels.rotation < 0 ? "end" : "middle",
|
|
1028
1045
|
"font-size": f.value.xAxisFontSize,
|
|
1029
1046
|
fill: e.value.style.layout.grid.xAxis.dataLabels.color,
|
|
1030
1047
|
"font-weight": e.value.style.layout.grid.xAxis.dataLabels.bold ? "bold" : "normal"
|
|
1031
|
-
},
|
|
1048
|
+
}, ie(l), 9, xa)
|
|
1032
1049
|
]))), 256))
|
|
1033
1050
|
], 512)) : m("", !0),
|
|
1034
|
-
e.value.style.layout.grid.xAxis.dataLabels.show && e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? (
|
|
1051
|
+
e.value.style.layout.grid.xAxis.dataLabels.show && e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? (u(), i("g", {
|
|
1035
1052
|
key: 3,
|
|
1036
1053
|
ref_key: "timeLabelsEls",
|
|
1037
|
-
ref:
|
|
1054
|
+
ref: ee
|
|
1038
1055
|
}, [
|
|
1039
|
-
(
|
|
1056
|
+
(u(!0), i(S, null, F(Le.value, (l, o) => (u(), i("g", null, [
|
|
1040
1057
|
p("text", {
|
|
1041
1058
|
class: "vue-data-ui-time-label",
|
|
1042
|
-
transform: `translate(${n.value.left +
|
|
1059
|
+
transform: `translate(${n.value.left + d.value * o + d.value / 2}, ${n.value.bottom + f.value.xAxisFontSize * 1.5}), rotate(${e.value.style.layout.grid.xAxis.dataLabels.rotation})`,
|
|
1043
1060
|
"text-anchor": e.value.style.layout.grid.xAxis.dataLabels.rotation > 0 ? "start" : e.value.style.layout.grid.xAxis.dataLabels.rotation < 0 ? "end" : "middle",
|
|
1044
1061
|
"font-size": f.value.xAxisFontSize,
|
|
1045
1062
|
fill: e.value.style.layout.grid.xAxis.dataLabels.color,
|
|
1046
1063
|
"font-weight": e.value.style.layout.grid.xAxis.dataLabels.bold ? "bold" : "normal"
|
|
1047
|
-
},
|
|
1064
|
+
}, ie(l.text), 9, ba)
|
|
1048
1065
|
]))), 256))
|
|
1049
1066
|
], 512)) : m("", !0),
|
|
1050
|
-
e.value.type === "candlestick" ? (
|
|
1067
|
+
e.value.type === "candlestick" ? (u(), i(S, { key: 4 }, [
|
|
1051
1068
|
p("g", null, [
|
|
1052
|
-
(
|
|
1069
|
+
(u(!0), i(S, null, F($.value, (l, o) => (u(), i("g", null, [
|
|
1053
1070
|
p("rect", {
|
|
1054
1071
|
x: l.open.x - e.value.style.layout.wick.strokeWidth / 2,
|
|
1055
1072
|
y: l.high.y,
|
|
@@ -1058,108 +1075,114 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
1058
1075
|
fill: e.value.style.layout.wick.stroke,
|
|
1059
1076
|
stroke: "none",
|
|
1060
1077
|
rx: e.value.style.layout.wick.strokeWidth / 2,
|
|
1061
|
-
class:
|
|
1078
|
+
class: N({ "vue-data-ui-transition": R.value && !h(P) })
|
|
1062
1079
|
}, null, 10, ka),
|
|
1063
|
-
e.value.style.layout.wick.extremity.shape === "circle" ? (
|
|
1080
|
+
e.value.style.layout.wick.extremity.shape === "circle" ? (u(), i("g", wa, [
|
|
1064
1081
|
p("circle", {
|
|
1065
1082
|
cx: l.high.x,
|
|
1066
1083
|
cy: l.high.y,
|
|
1067
|
-
r: e.value.style.layout.wick.extremity.size === "auto" ?
|
|
1084
|
+
r: e.value.style.layout.wick.extremity.size === "auto" ? d.value / 20 : e.value.style.layout.wick.extremity.size,
|
|
1068
1085
|
fill: e.value.style.layout.wick.extremity.color,
|
|
1069
|
-
class:
|
|
1086
|
+
class: N({ "vue-data-ui-transition": R.value && !h(P) })
|
|
1070
1087
|
}, null, 10, Aa),
|
|
1071
1088
|
p("circle", {
|
|
1072
1089
|
cx: l.low.x,
|
|
1073
1090
|
cy: l.low.y,
|
|
1074
|
-
r: e.value.style.layout.wick.extremity.size === "auto" ?
|
|
1091
|
+
r: e.value.style.layout.wick.extremity.size === "auto" ? d.value / 20 : e.value.style.layout.wick.extremity.size,
|
|
1075
1092
|
fill: e.value.style.layout.wick.extremity.color,
|
|
1076
|
-
class:
|
|
1093
|
+
class: N({ "vue-data-ui-transition": R.value && !h(P) })
|
|
1077
1094
|
}, null, 10, Ca)
|
|
1078
1095
|
])) : m("", !0),
|
|
1079
|
-
e.value.style.layout.wick.extremity.shape === "line" ? (
|
|
1096
|
+
e.value.style.layout.wick.extremity.shape === "line" ? (u(), i("g", $a, [
|
|
1080
1097
|
p("rect", {
|
|
1081
|
-
x: l.high.x - (e.value.style.layout.wick.extremity.size === "auto" ?
|
|
1098
|
+
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,
|
|
1082
1099
|
y: l.high.y - e.value.style.layout.wick.strokeWidth / 2,
|
|
1083
|
-
width: Math.abs(l.high.x - (e.value.style.layout.wick.extremity.size === "auto" ?
|
|
1100
|
+
width: Math.abs(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 - (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)),
|
|
1084
1101
|
height: e.value.style.layout.wick.strokeWidth,
|
|
1085
1102
|
rx: e.value.style.layout.wick.strokeWidth / 2,
|
|
1086
1103
|
fill: e.value.style.layout.wick.extremity.color,
|
|
1087
1104
|
stroke: "none",
|
|
1088
|
-
class:
|
|
1105
|
+
class: N({ "vue-data-ui-transition": R.value && !h(P) })
|
|
1089
1106
|
}, null, 10, _a),
|
|
1090
1107
|
p("rect", {
|
|
1091
|
-
x: l.low.x - (e.value.style.layout.wick.extremity.size === "auto" ?
|
|
1108
|
+
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,
|
|
1092
1109
|
y: l.low.y - e.value.style.layout.wick.strokeWidth / 2,
|
|
1093
|
-
width: Math.abs(l.low.x - (e.value.style.layout.wick.extremity.size === "auto" ?
|
|
1110
|
+
width: Math.abs(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 - (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)),
|
|
1094
1111
|
height: e.value.style.layout.wick.strokeWidth,
|
|
1095
1112
|
fill: e.value.style.layout.wick.extremity.color,
|
|
1096
1113
|
stroke: "none",
|
|
1097
1114
|
rx: e.value.style.layout.wick.strokeWidth / 2,
|
|
1098
|
-
class:
|
|
1115
|
+
class: N({ "vue-data-ui-transition": R.value && !h(P) })
|
|
1099
1116
|
}, null, 10, za)
|
|
1100
1117
|
])) : m("", !0)
|
|
1101
1118
|
]))), 256))
|
|
1102
1119
|
]),
|
|
1103
1120
|
p("g", null, [
|
|
1104
|
-
(
|
|
1105
|
-
x: l.open.x -
|
|
1106
|
-
y: l.isBullish ? l.
|
|
1107
|
-
height: Math.abs(l.
|
|
1108
|
-
width:
|
|
1121
|
+
(u(!0), i(S, null, F($.value, (l, o) => (u(), i("rect", {
|
|
1122
|
+
x: l.open.x - d.value / 2 + d.value * (1 - e.value.style.layout.candle.widthRatio) / 2,
|
|
1123
|
+
y: l.isBullish ? l.close.y : l.open.y,
|
|
1124
|
+
height: Math.abs(l.close.y - l.open.y) <= 0 ? 1e-4 : Math.abs(l.close.y - l.open.y),
|
|
1125
|
+
width: d.value * e.value.style.layout.candle.widthRatio <= 0 ? 1e-4 : d.value * e.value.style.layout.candle.widthRatio,
|
|
1109
1126
|
fill: e.value.style.layout.candle.gradient.underlayer,
|
|
1110
1127
|
rx: e.value.style.layout.candle.borderRadius,
|
|
1111
1128
|
stroke: "none",
|
|
1112
|
-
class:
|
|
1129
|
+
class: N({ "vue-data-ui-transition": R.value && !h(P) })
|
|
1113
1130
|
}, null, 10, Sa))), 256)),
|
|
1114
|
-
(
|
|
1115
|
-
x: l.open.x -
|
|
1116
|
-
y: l.isBullish ? l.
|
|
1117
|
-
height: Math.abs(l.
|
|
1118
|
-
width:
|
|
1119
|
-
fill: l.isBullish ? e.value.style.layout.candle.gradient.show ? `url(#bullish_gradient_${
|
|
1131
|
+
(u(!0), i(S, null, F($.value, (l, o) => (u(), i("rect", {
|
|
1132
|
+
x: l.open.x - d.value / 2 + d.value * (1 - e.value.style.layout.candle.widthRatio) / 2,
|
|
1133
|
+
y: l.isBullish ? l.close.y : l.open.y,
|
|
1134
|
+
height: Math.abs(l.close.y - l.open.y) <= 0 ? 1e-4 : Math.abs(l.close.y - l.open.y),
|
|
1135
|
+
width: d.value * e.value.style.layout.candle.widthRatio <= 0 ? 1e-4 : d.value * e.value.style.layout.candle.widthRatio,
|
|
1136
|
+
fill: l.isBullish ? e.value.style.layout.candle.gradient.show ? `url(#bullish_gradient_${I.value})` : e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.gradient.show ? `url(#bearish_gradient_${I.value})` : e.value.style.layout.candle.colors.bearish,
|
|
1120
1137
|
rx: e.value.style.layout.candle.borderRadius,
|
|
1121
1138
|
stroke: e.value.style.layout.candle.stroke,
|
|
1122
1139
|
"stroke-width": e.value.style.layout.candle.strokeWidth,
|
|
1123
1140
|
"stroke-linecap": "round",
|
|
1124
1141
|
"stroke-linejoin": "round",
|
|
1125
|
-
class:
|
|
1142
|
+
class: N({ "vue-data-ui-transition": R.value && !h(P) })
|
|
1126
1143
|
}, null, 10, La))), 256))
|
|
1127
1144
|
])
|
|
1128
1145
|
], 64)) : m("", !0),
|
|
1129
|
-
e.value.type === "ohlc" ? (
|
|
1146
|
+
e.value.type === "ohlc" ? (u(!0), i(S, { key: 5 }, F($.value, (l, o) => (u(), i("g", null, [
|
|
1130
1147
|
p("path", {
|
|
1131
|
-
d: `M ${l.high.x},${l.high.y} ${l.low.x},${l.low.y} M${l.open.x - Math.min(6,
|
|
1148
|
+
d: `M ${l.high.x},${l.high.y} ${l.low.x},${l.low.y} M${l.open.x - Math.min(6, d.value / 3)},${l.open.y} ${l.open.x},${l.open.y} M${l.close.x},${l.close.y} ${l.close.x + Math.min(6, d.value / 3)},${l.close.y}`,
|
|
1132
1149
|
stroke: l.isBullish ? e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.colors.bearish,
|
|
1133
1150
|
"stroke-width": 1
|
|
1134
1151
|
}, null, 8, Ta)
|
|
1135
1152
|
]))), 256)) : m("", !0),
|
|
1136
1153
|
p("g", null, [
|
|
1137
|
-
(
|
|
1138
|
-
x: n.value.left + o *
|
|
1154
|
+
(u(!0), i(S, null, F($.value, (l, o) => (u(), i("rect", {
|
|
1155
|
+
x: n.value.left + o * d.value,
|
|
1139
1156
|
y: n.value.top,
|
|
1140
1157
|
height: n.value.height <= 0 ? 1e-4 : n.value.height,
|
|
1141
|
-
width:
|
|
1142
|
-
fill:
|
|
1143
|
-
onMouseover: () =>
|
|
1144
|
-
onMouseleave: () =>
|
|
1145
|
-
onClick: () =>
|
|
1158
|
+
width: d.value <= 0 ? 1e-4 : d.value,
|
|
1159
|
+
fill: O.value === o || Ge.value === o ? h(Il)(e.value.style.layout.selector.color, e.value.style.layout.selector.opacity) : "transparent",
|
|
1160
|
+
onMouseover: () => sl(o, l),
|
|
1161
|
+
onMouseleave: () => ol(o, l),
|
|
1162
|
+
onClick: () => al(o, l)
|
|
1146
1163
|
}, null, 40, Fa))), 256))
|
|
1147
1164
|
])
|
|
1148
1165
|
])) : m("", !0),
|
|
1149
|
-
|
|
1166
|
+
tt.value ? (u(), i("rect", At({ key: 2 }, qt.value, {
|
|
1150
1167
|
"data-start": r.value.start,
|
|
1151
1168
|
"data-end": r.value.end
|
|
1152
1169
|
}), null, 16, Ia)) : m("", !0),
|
|
1153
|
-
w(t.$slots, "svg", {
|
|
1170
|
+
w(t.$slots, "svg", {
|
|
1171
|
+
svg: {
|
|
1172
|
+
...f.value,
|
|
1173
|
+
data: $.value,
|
|
1174
|
+
drawingArea: n.value
|
|
1175
|
+
}
|
|
1176
|
+
}, void 0, !0)
|
|
1154
1177
|
], 14, ea)),
|
|
1155
|
-
t.$slots.watermark ? (
|
|
1156
|
-
w(t.$slots, "watermark",
|
|
1178
|
+
t.$slots.watermark ? (u(), i("div", Ma, [
|
|
1179
|
+
w(t.$slots, "watermark", Y(Q({ isPrinting: h(Qe) || h(Je) })), void 0, !0)
|
|
1157
1180
|
])) : m("", !0),
|
|
1158
|
-
e.value.style.zoom.show && C.value > 6 &&
|
|
1181
|
+
e.value.style.zoom.show && C.value > 6 && ge.value && dt.value ? (u(), q(Jl, {
|
|
1159
1182
|
key: 5,
|
|
1160
1183
|
ref_key: "chartSlicer",
|
|
1161
|
-
ref:
|
|
1162
|
-
allMinimaps:
|
|
1184
|
+
ref: Z,
|
|
1185
|
+
allMinimaps: Jt.value,
|
|
1163
1186
|
background: e.value.style.zoom.color,
|
|
1164
1187
|
borderColor: e.value.style.backgroundColor,
|
|
1165
1188
|
customFormat: e.value.style.zoom.customFormat,
|
|
@@ -1172,9 +1195,9 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
1172
1195
|
fontSize: e.value.style.zoom.fontSize,
|
|
1173
1196
|
immediate: !e.value.style.zoom.preview.enable,
|
|
1174
1197
|
inputColor: e.value.style.zoom.color,
|
|
1175
|
-
isPreview:
|
|
1176
|
-
labelLeft:
|
|
1177
|
-
labelRight:
|
|
1198
|
+
isPreview: tt.value,
|
|
1199
|
+
labelLeft: rt.value.start || "",
|
|
1200
|
+
labelRight: rt.value.end || "",
|
|
1178
1201
|
max: C.value,
|
|
1179
1202
|
min: 0,
|
|
1180
1203
|
minimap: e.value.style.zoom.minimap.show ? h(x).map((l) => l[2]) : [],
|
|
@@ -1184,9 +1207,9 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
1184
1207
|
minimapMerged: !1,
|
|
1185
1208
|
minimapSelectedColor: e.value.style.zoom.minimap.selectedColor,
|
|
1186
1209
|
minimapSelectedColorOpacity: e.value.style.zoom.minimap.selectedColorOpacity,
|
|
1187
|
-
minimapSelectedIndex:
|
|
1210
|
+
minimapSelectedIndex: O.value,
|
|
1188
1211
|
minimapSelectionRadius: 1,
|
|
1189
|
-
preciseLabels:
|
|
1212
|
+
preciseLabels: ll.value,
|
|
1190
1213
|
refreshEndPoint: e.value.style.zoom.endIndex !== null ? e.value.style.zoom.endIndex + 1 : C.value,
|
|
1191
1214
|
refreshStartPoint: e.value.style.zoom.startIndex !== null ? e.value.style.zoom.startIndex : 0,
|
|
1192
1215
|
selectColor: e.value.style.zoom.highlightColor,
|
|
@@ -1194,38 +1217,38 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
1194
1217
|
smoothMinimap: !1,
|
|
1195
1218
|
start: r.value.start,
|
|
1196
1219
|
textColor: e.value.style.color,
|
|
1197
|
-
timeLabels:
|
|
1220
|
+
timeLabels: it.value,
|
|
1198
1221
|
usePreciseLabels: e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable && !e.value.style.zoom.useDefaultFormat,
|
|
1199
1222
|
useResetSlot: e.value.style.zoom.useResetSlot,
|
|
1200
1223
|
valueEnd: r.value.end,
|
|
1201
1224
|
valueStart: r.value.start,
|
|
1202
1225
|
verticalHandles: e.value.style.zoom.minimap.verticalHandles,
|
|
1203
|
-
"onUpdate:end":
|
|
1204
|
-
"onUpdate:start":
|
|
1205
|
-
onTrapMouse:
|
|
1206
|
-
onReset:
|
|
1207
|
-
onFutureEnd: a[0] || (a[0] = (l) =>
|
|
1208
|
-
onFutureStart: a[1] || (a[1] = (l) =>
|
|
1226
|
+
"onUpdate:end": pl,
|
|
1227
|
+
"onUpdate:start": ml,
|
|
1228
|
+
onTrapMouse: hl,
|
|
1229
|
+
onReset: vt,
|
|
1230
|
+
onFutureEnd: a[0] || (a[0] = (l) => lt("end", l)),
|
|
1231
|
+
onFutureStart: a[1] || (a[1] = (l) => lt("start", l))
|
|
1209
1232
|
}, {
|
|
1210
1233
|
"reset-action": k(({ reset: l }) => [
|
|
1211
|
-
w(t.$slots, "reset-action",
|
|
1234
|
+
w(t.$slots, "reset-action", Y(Q({ reset: l })), void 0, !0)
|
|
1212
1235
|
]),
|
|
1213
1236
|
slotMap: k(({ height: l, unitW: o }) => [
|
|
1214
|
-
(
|
|
1237
|
+
(u(!0), i(S, null, F(Qt.value({ minimapH: l, unitW: o }), (s, v) => (u(), i("g", null, [
|
|
1215
1238
|
p("path", {
|
|
1216
|
-
d: `M ${
|
|
1217
|
-
stroke:
|
|
1239
|
+
d: `M ${s.high.x},${s.high.y} ${s.low.x},${s.low.y}`,
|
|
1240
|
+
stroke: s.isBullish ? e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.colors.bearish,
|
|
1218
1241
|
"stroke-width": 1,
|
|
1219
|
-
style:
|
|
1220
|
-
opacity:
|
|
1242
|
+
style: ue({
|
|
1243
|
+
opacity: v >= A.value.start && v <= A.value.end ? 1 : 0.6
|
|
1221
1244
|
})
|
|
1222
|
-
}, null, 12,
|
|
1245
|
+
}, null, 12, Ra),
|
|
1223
1246
|
p("path", {
|
|
1224
|
-
d: `M ${
|
|
1225
|
-
stroke:
|
|
1247
|
+
d: `M ${s.open.x},${s.open.y} ${s.close.x},${s.close.y}`,
|
|
1248
|
+
stroke: s.isBullish ? e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.colors.bearish,
|
|
1226
1249
|
"stroke-width": Math.min(6, o / 1.5),
|
|
1227
|
-
style:
|
|
1228
|
-
opacity:
|
|
1250
|
+
style: ue({
|
|
1251
|
+
opacity: v >= A.value.start && v <= A.value.end ? 1 : 0.6
|
|
1229
1252
|
})
|
|
1230
1253
|
}, null, 12, Oa)
|
|
1231
1254
|
]))), 256))
|
|
@@ -1234,20 +1257,20 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
1234
1257
|
}, 8, ["allMinimaps", "background", "borderColor", "customFormat", "enableRangeHandles", "enableSelectionDrag", "end", "focusOnDrag", "focusRangeRatio", "fontSize", "immediate", "inputColor", "isPreview", "labelLeft", "labelRight", "max", "minimap", "minimapCompact", "minimapFrameColor", "minimapIndicatorColor", "minimapSelectedColor", "minimapSelectedColorOpacity", "minimapSelectedIndex", "preciseLabels", "refreshEndPoint", "refreshStartPoint", "selectColor", "selectedSeries", "start", "textColor", "timeLabels", "usePreciseLabels", "useResetSlot", "valueEnd", "valueStart", "verticalHandles"])) : m("", !0),
|
|
1235
1258
|
p("div", {
|
|
1236
1259
|
ref_key: "chartLegend",
|
|
1237
|
-
ref:
|
|
1260
|
+
ref: Ve
|
|
1238
1261
|
}, [
|
|
1239
1262
|
w(t.$slots, "legend", { legend: $.value }, void 0, !0)
|
|
1240
1263
|
], 512),
|
|
1241
|
-
t.$slots.source ? (
|
|
1264
|
+
t.$slots.source ? (u(), i("div", {
|
|
1242
1265
|
key: 6,
|
|
1243
1266
|
ref_key: "source",
|
|
1244
|
-
ref:
|
|
1267
|
+
ref: Ue,
|
|
1245
1268
|
dir: "auto"
|
|
1246
1269
|
}, [
|
|
1247
1270
|
w(t.$slots, "source", {}, void 0, !0)
|
|
1248
1271
|
], 512)) : m("", !0),
|
|
1249
|
-
|
|
1250
|
-
show:
|
|
1272
|
+
Pe(h(Rt), {
|
|
1273
|
+
show: L.value.showTooltip && be.value,
|
|
1251
1274
|
backgroundColor: e.value.style.tooltip.backgroundColor,
|
|
1252
1275
|
color: e.value.style.tooltip.color,
|
|
1253
1276
|
borderRadius: e.value.style.tooltip.borderRadius,
|
|
@@ -1257,9 +1280,9 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
1257
1280
|
backgroundOpacity: e.value.style.tooltip.backgroundOpacity,
|
|
1258
1281
|
position: e.value.style.tooltip.position,
|
|
1259
1282
|
offsetY: e.value.style.tooltip.offsetY,
|
|
1260
|
-
parent:
|
|
1261
|
-
content:
|
|
1262
|
-
isFullscreen:
|
|
1283
|
+
parent: D.value,
|
|
1284
|
+
content: ke.value,
|
|
1285
|
+
isFullscreen: G.value,
|
|
1263
1286
|
isCustom: e.value.style.tooltip.customFormat && typeof e.value.style.tooltip.customFormat == "function",
|
|
1264
1287
|
smooth: e.value.style.tooltip.smooth,
|
|
1265
1288
|
backdropFilter: e.value.style.tooltip.backdropFilter,
|
|
@@ -1267,31 +1290,31 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
1267
1290
|
smoothSnapThreshold: e.value.style.tooltip.smoothSnapThreshold
|
|
1268
1291
|
}, {
|
|
1269
1292
|
"tooltip-before": k(() => [
|
|
1270
|
-
w(t.$slots, "tooltip-before",
|
|
1293
|
+
w(t.$slots, "tooltip-before", Y(Q({ ...Te.value })), void 0, !0)
|
|
1271
1294
|
]),
|
|
1272
1295
|
"tooltip-after": k(() => [
|
|
1273
|
-
w(t.$slots, "tooltip-after",
|
|
1296
|
+
w(t.$slots, "tooltip-after", Y(Q({ ...Te.value })), void 0, !0)
|
|
1274
1297
|
]),
|
|
1275
1298
|
_: 3
|
|
1276
1299
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
1277
|
-
|
|
1300
|
+
ge.value && e.value.userOptions.buttons.table ? (u(), q(_l(oe.value.component), At({ key: 7 }, oe.value.props, {
|
|
1278
1301
|
ref_key: "tableUnit",
|
|
1279
|
-
ref:
|
|
1280
|
-
onClose:
|
|
1281
|
-
}),
|
|
1302
|
+
ref: te,
|
|
1303
|
+
onClose: pt
|
|
1304
|
+
}), wt({
|
|
1282
1305
|
content: k(() => [
|
|
1283
|
-
(
|
|
1284
|
-
key: `table_${
|
|
1285
|
-
colNames:
|
|
1286
|
-
head:
|
|
1287
|
-
body:
|
|
1288
|
-
config:
|
|
1289
|
-
title: e.value.table.useDialog ? "" :
|
|
1306
|
+
(u(), q(h(Dt), {
|
|
1307
|
+
key: `table_${Xe.value}`,
|
|
1308
|
+
colNames: ye.value.colNames,
|
|
1309
|
+
head: ye.value.head,
|
|
1310
|
+
body: ye.value.body,
|
|
1311
|
+
config: ye.value.config,
|
|
1312
|
+
title: e.value.table.useDialog ? "" : oe.value.title,
|
|
1290
1313
|
withCloseButton: !e.value.table.useDialog,
|
|
1291
|
-
onClose:
|
|
1314
|
+
onClose: pt
|
|
1292
1315
|
}, {
|
|
1293
1316
|
th: k(({ th: l }) => [
|
|
1294
|
-
|
|
1317
|
+
Ct(ie(l), 1)
|
|
1295
1318
|
]),
|
|
1296
1319
|
td: k(({ td: l }) => [
|
|
1297
1320
|
p("div", { innerHTML: l }, null, 8, Da)
|
|
@@ -1304,7 +1327,7 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
1304
1327
|
e.value.table.useDialog ? {
|
|
1305
1328
|
name: "title",
|
|
1306
1329
|
fn: k(() => [
|
|
1307
|
-
|
|
1330
|
+
Ct(ie(oe.value.title), 1)
|
|
1308
1331
|
]),
|
|
1309
1332
|
key: "0"
|
|
1310
1333
|
} : void 0,
|
|
@@ -1314,21 +1337,21 @@ const Zl = ["id"], ea = ["xmlns", "aria-label", "viewBox"], ta = ["x", "y", "wid
|
|
|
1314
1337
|
p("button", {
|
|
1315
1338
|
tabindex: "0",
|
|
1316
1339
|
class: "vue-ui-user-options-button",
|
|
1317
|
-
onClick: a[2] || (a[2] = (l) =>
|
|
1340
|
+
onClick: a[2] || (a[2] = (l) => Fe(e.value.userOptions.callbacks.csv))
|
|
1318
1341
|
}, [
|
|
1319
|
-
|
|
1342
|
+
Pe(h(Mt), {
|
|
1320
1343
|
name: "excel",
|
|
1321
|
-
stroke:
|
|
1344
|
+
stroke: oe.value.props.color
|
|
1322
1345
|
}, null, 8, ["stroke"])
|
|
1323
1346
|
])
|
|
1324
1347
|
]),
|
|
1325
1348
|
key: "1"
|
|
1326
1349
|
} : void 0
|
|
1327
1350
|
]), 1040)) : m("", !0),
|
|
1328
|
-
h(
|
|
1351
|
+
h(P) ? (u(), q(Vl, { key: 8 })) : m("", !0)
|
|
1329
1352
|
], 46, Zl));
|
|
1330
1353
|
}
|
|
1331
|
-
}, eo = /* @__PURE__ */ Kl(Pa, [["__scopeId", "data-v-
|
|
1354
|
+
}, eo = /* @__PURE__ */ Kl(Pa, [["__scopeId", "data-v-a3929371"]]);
|
|
1332
1355
|
export {
|
|
1333
1356
|
eo as default
|
|
1334
1357
|
};
|