vue-data-ui 3.26.5 → 3.27.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-BQbcOtfC.js → Arrow-DKO1l8oR.js} +1 -1
- package/dist/{BaseDraggableDialog-BCFCiP_6.js → BaseDraggableDialog-C50TEJFv.js} +2 -2
- package/dist/{BaseIcon-CIK6Sqo3.js → BaseIcon-Cx9FD751.js} +1 -1
- package/dist/{BaseLegendToggle-Doa5rYP2.js → BaseLegendToggle-CP3sddwv.js} +1 -1
- package/dist/{BaseZoomControls-BGQM8B5F.js → BaseZoomControls-vNi8YykO.js} +2 -2
- package/dist/{ColorPicker-Cb7qpvFt.js → ColorPicker-hmC2bvwS.js} +2 -2
- package/dist/{DataTable-B6LDCXBz.js → DataTable-CjF_An2h.js} +2 -2
- package/dist/{HillActions-CwdgCb7Q.js → HillActions-DqqGB33u.js} +1 -1
- package/dist/{Legend-D9FGXIbQ.js → Legend-CulFgjUY.js} +2 -2
- package/dist/{NonSvgPenAndPaper-9T4MSwXC.js → NonSvgPenAndPaper-BK1v_MfW.js} +3 -3
- package/dist/{PackageVersion-CslTvFsC.js → PackageVersion-D7H9nfK0.js} +1 -1
- package/dist/{PenAndPaper-C1EcBgJW.js → PenAndPaper-CNiuGw6k.js} +3 -3
- package/dist/{Shape-BZgQLgu5.js → Shape-DSwamtmO.js} +1 -1
- package/dist/{SlicerPreview-DyYv_G-_.js → SlicerPreview-k5YerMA9.js} +12 -12
- package/dist/{SparkTooltip-D4cRlyuq.js → SparkTooltip-D35KVv6N.js} +6 -6
- package/dist/{Title-Bd98RysU.js → Title-BMCuINbv.js} +1 -1
- package/dist/{Tooltip-DmQeI5WE.js → Tooltip-C4ZTwkLF.js} +1 -1
- package/dist/{UserOptions-B_yBcZ1-.js → UserOptions-CORYQiif.js} +2 -2
- package/dist/components/arrow.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-bump.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-dag.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-geo.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-hill.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-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-label.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-stackline.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/{dom-to-png-B_RJohlM.js → dom-to-png-CBusMkua.js} +1 -1
- package/dist/{exposedLib-C-JlvWAt.js → exposedLib-UNxZlnAS.js} +10 -10
- package/dist/{img-KURaWjZI.js → img-Bb5rHcpO.js} +1 -1
- package/dist/{labelUtils-DShv2Mbg.js → labelUtils-Ccn9kK7T.js} +1 -1
- package/dist/{lib-TWIH5fGr.js → lib-D4wK6ljP.js} +127 -133
- package/dist/{package-DbTqd5lc.js → package-DmQufM0G.js} +1 -1
- package/dist/{pdf-CLl24Afl.js → pdf-BzIQHx-F.js} +1 -1
- package/dist/{render-common-CKv-jztN.js → render-common-BtfjXdkJ.js} +10 -10
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +212 -59
- package/dist/types/vue-ui-stackbar.d.ts +10 -0
- package/dist/{useConfig-DObkR9Aa.js → useConfig-D_6ZrPMD.js} +82 -0
- package/dist/{useNestedProp-BxOdWM0c.js → useNestedProp-DR_8JPol.js} +1 -1
- package/dist/{useObjectBindings-CPmyIJxB.js → useObjectBindings-DvasYMGu.js} +2 -2
- package/dist/{usePrinter-8Y1Rju0Y.js → usePrinter-DdW2GSm0.js} +2 -2
- package/dist/utils.js +10 -10
- package/dist/{vue-data-ui-C3G5Zdl5.js → vue-data-ui-Df7WV80w.js} +70 -70
- package/dist/vue-data-ui.js +75 -75
- package/dist/{vue-ui-3d-bar-Cl6-fBV8.js → vue-ui-3d-bar-CJjNPwhG.js} +463 -463
- package/dist/{vue-ui-accordion-AyyZDab3.js → vue-ui-accordion-CaoNWreI.js} +4 -4
- package/dist/{vue-ui-age-pyramid-DOtWAL8s.js → vue-ui-age-pyramid-BYcM0uIP.js} +22 -22
- package/dist/{vue-ui-annotator-BCVjlojM.js → vue-ui-annotator-BmqjDjRF.js} +10 -10
- package/dist/{vue-ui-bullet-B_1Ctjvq.js → vue-ui-bullet-DBOAvpBB.js} +18 -18
- package/dist/vue-ui-bump-rPYwDJ4o.js +1242 -0
- package/dist/{vue-ui-candlestick-KvhjbAxt.js → vue-ui-candlestick-WQHIQNv_.js} +625 -625
- package/dist/{vue-ui-carousel-table-ArMiO0cG.js → vue-ui-carousel-table-Dojcvt49.js} +106 -106
- package/dist/{vue-ui-chestnut-DSM0U27X.js → vue-ui-chestnut-BdhEByUf.js} +65 -65
- package/dist/{vue-ui-chord-64akfaem.js → vue-ui-chord-MF4xF5az.js} +46 -46
- package/dist/{vue-ui-circle-pack-CaR_aNEh.js → vue-ui-circle-pack-BwDim7G8.js} +26 -26
- package/dist/{vue-ui-cursor-DCgqYZiz.js → vue-ui-cursor-w_5cbpSb.js} +61 -61
- package/dist/{vue-ui-dag-8uKK0Rlp.js → vue-ui-dag-D2EUqeDN.js} +65 -65
- package/dist/{vue-ui-dashboard-DeccYtSY.js → vue-ui-dashboard-BLnVXosj.js} +70 -70
- package/dist/{vue-ui-digits-BvK7bVuJ.js → vue-ui-digits-zSqwYWHm.js} +4 -4
- package/dist/{vue-ui-donut-8joMj08Z.js → vue-ui-donut-ZYZfqIhi.js} +117 -117
- package/dist/{vue-ui-donut-evolution-DgITf95R.js → vue-ui-donut-evolution-DtLbWi3h.js} +216 -216
- package/dist/vue-ui-donut-nLDLZwig.js +2427 -0
- package/dist/{vue-ui-dumbbell-U2L4ZYhB.js → vue-ui-dumbbell-Qgn3wRyI.js} +20 -20
- package/dist/{vue-ui-flow-DD20fJu_.js → vue-ui-flow-iSH6dyGw.js} +109 -109
- package/dist/vue-ui-funnel-Cc2z2zS5.js +749 -0
- package/dist/{vue-ui-galaxy-VZFZnHPv.js → vue-ui-galaxy-GhuBSU0o.js} +267 -267
- package/dist/vue-ui-gauge-BAjBO13a.js +934 -0
- package/dist/{vue-ui-geo-DeDQ6ubl.js → vue-ui-geo-mwTtvIHY.js} +19 -19
- package/dist/{vue-ui-gizmo-D5oUKIsP.js → vue-ui-gizmo-B5vOOrZX.js} +4 -4
- package/dist/vue-ui-heatmap-fimkY1nN.js +1613 -0
- package/dist/{vue-ui-hill-DONFacXR.js → vue-ui-hill-DPfTt3UE.js} +18 -18
- package/dist/{vue-ui-history-plot-BMy_y9S6.js → vue-ui-history-plot-B1WgzqTb.js} +53 -53
- package/dist/vue-ui-horizontal-bar-Bkp5HQdt.js +1723 -0
- package/dist/{vue-ui-kpi-Bol0OWs3.js → vue-ui-kpi-D-p0CSQh.js} +4 -4
- package/dist/{vue-ui-label-cwjXaEDQ.js → vue-ui-label-r3-QloJL.js} +65 -65
- package/dist/{vue-ui-mini-loader-kdpasmXb.js → vue-ui-mini-loader-CnrBGAtM.js} +3 -3
- package/dist/vue-ui-molecule-BhdAYX_H.js +941 -0
- package/dist/vue-ui-mood-radar-CdlnPrQf.js +1111 -0
- package/dist/{vue-ui-nested-donuts-ZmGGEvRk.js → vue-ui-nested-donuts-DceVEyUc.js} +341 -341
- package/dist/{vue-ui-onion-D6IKPpL-.js → vue-ui-onion-_L0uEATI.js} +209 -209
- package/dist/vue-ui-parallel-coordinate-plot-CbXwIM47.js +1444 -0
- package/dist/{vue-ui-quadrant-CueHa1Pm.js → vue-ui-quadrant-CDDFLRcX.js} +55 -55
- package/dist/{vue-ui-quick-chart-C8ZxX1Zw.js → vue-ui-quick-chart-Dom257hl.js} +377 -377
- package/dist/vue-ui-radar-BLdri1bA.js +1386 -0
- package/dist/{vue-ui-rating-V_OnJN9Y.js → vue-ui-rating-C_iTttXB.js} +25 -25
- package/dist/vue-ui-relation-circle-BmxTSgjd.js +905 -0
- package/dist/vue-ui-ridgeline-CsUrcVmL.js +1630 -0
- package/dist/{vue-ui-rings-Bf9IKwDr.js → vue-ui-rings-D_GPkgbD.js} +318 -318
- package/dist/vue-ui-scatter-D_C-IhnW.js +2418 -0
- package/dist/{vue-ui-skeleton-dyXWT6JX.js → vue-ui-skeleton-t7e6KEZ2.js} +60 -60
- package/dist/{vue-ui-smiley-w6nH1I0E.js → vue-ui-smiley-Dl95YWVo.js} +14 -14
- package/dist/{vue-ui-spark-trend-Bso9bwmY.js → vue-ui-spark-trend-pkZA7u5V.js} +20 -20
- package/dist/{vue-ui-sparkbar-CL06Yt56.js → vue-ui-sparkbar-Ds7OJjhG.js} +77 -77
- package/dist/{vue-ui-sparkgauge-BHDM5Hbr.js → vue-ui-sparkgauge-US1M88qc.js} +6 -6
- package/dist/vue-ui-sparkhistogram-FISVpSvv.js +589 -0
- package/dist/{vue-ui-sparkline-znaswFQj.js → vue-ui-sparkline-DvE1dHcs.js} +37 -37
- package/dist/{vue-ui-sparkstackbar-BOzVoWoa.js → vue-ui-sparkstackbar-CWtF9eG-.js} +39 -39
- package/dist/vue-ui-stackbar-fMgrHzZe.js +3273 -0
- package/dist/{vue-ui-stackline-qcLrNL09.js → vue-ui-stackline-CSMuUup2.js} +303 -303
- package/dist/vue-ui-strip-plot-TGD2UFHS.js +1752 -0
- package/dist/{vue-ui-table-D295mJIf.js → vue-ui-table-BCEIbg8-.js} +14 -14
- package/dist/{vue-ui-table-heatmap-CXeMKqKz.js → vue-ui-table-heatmap-CvUcFWMf.js} +9 -9
- package/dist/vue-ui-table-sparkline-CoVQ1qGY.js +738 -0
- package/dist/vue-ui-thermometer-BYFAZCzh.js +758 -0
- package/dist/{vue-ui-timer-BULpjYiI.js → vue-ui-timer-BKr8RVnn.js} +10 -10
- package/dist/{vue-ui-tiremarks-B7bTeU8h.js → vue-ui-tiremarks-BYu3cEoy.js} +35 -35
- package/dist/{vue-ui-treemap-DkqDz9W4.js → vue-ui-treemap-BR3rX5_L.js} +50 -50
- package/dist/{vue-ui-waffle-Cn7WBzqh.js → vue-ui-waffle-mP8g5aQk.js} +275 -275
- package/dist/{vue-ui-wheel-Cy7kBvEx.js → vue-ui-wheel-CZsSO2R6.js} +187 -187
- package/dist/{vue-ui-word-cloud-tRqc2ZMR.js → vue-ui-word-cloud-CJ30onqy.js} +35 -35
- package/dist/{vue-ui-world-B755-zji.js → vue-ui-world-BZ09DOiF.js} +498 -498
- package/dist/{vue-ui-xy-BiHIJ7rK.js → vue-ui-xy-C3h54loZ.js} +405 -405
- package/dist/{vue-ui-xy-canvas-DGuMC_Rf.js → vue-ui-xy-canvas-BwgK8drp.js} +165 -165
- package/dist/{vue-ui-xy-DWYTZz_v.js → vue-ui-xy-jemv5dsf.js} +288 -288
- package/dist/{vue_ui_stackbar-DdjDL6aq.js → vue_ui_stackbar-yQyvT4Su.js} +46 -0
- package/package.json +1 -1
- package/dist/vue-ui-bump-kOK6x4al.js +0 -1242
- package/dist/vue-ui-donut-CvbfzzdT.js +0 -2427
- package/dist/vue-ui-funnel-Cx8hVlZV.js +0 -749
- package/dist/vue-ui-gauge-Copa7G58.js +0 -934
- package/dist/vue-ui-heatmap-BukWtNsd.js +0 -1613
- package/dist/vue-ui-horizontal-bar-bcPSs999.js +0 -1723
- package/dist/vue-ui-molecule-BiAI5lbh.js +0 -941
- package/dist/vue-ui-mood-radar-f4xXkiBs.js +0 -1111
- package/dist/vue-ui-parallel-coordinate-plot-BbfModz3.js +0 -1444
- package/dist/vue-ui-radar-BcD7Zqvb.js +0 -1386
- package/dist/vue-ui-relation-circle-DlN4r83K.js +0 -905
- package/dist/vue-ui-ridgeline-BlQnTWXi.js +0 -1630
- package/dist/vue-ui-scatter-arPbS9MH.js +0 -2418
- package/dist/vue-ui-sparkhistogram-3Tw8PEms.js +0 -589
- package/dist/vue-ui-stackbar-BTOvMsP8.js +0 -2755
- package/dist/vue-ui-strip-plot-BLNaCPm8.js +0 -1752
- package/dist/vue-ui-table-sparkline-BYuwQrwA.js +0 -738
- package/dist/vue-ui-thermometer-BwJ0oF-H.js +0 -758
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { $ as t,
|
|
2
|
+
import { $ as t, D as n, Dt as r, Jt as i, X as a, Yt as o, _ as s, _t as c, at as l, b as u, c as ee, et as te, gt as ne, nn as re, nt as ie, pt as ae, t as oe, tn as se, wt as ce, zt as le } from "./lib-D4wK6ljP.js";
|
|
3
3
|
import { n as ue, t as de } from "./useHints-Dq_w2E8B.js";
|
|
4
4
|
import { n as fe, r as pe, t as me } from "./useTimeLabels-d2f-W1L4.js";
|
|
5
|
-
import { t as he } from "./useConfig-
|
|
6
|
-
import { t as ge } from "./usePrinter-
|
|
5
|
+
import { t as he } from "./useConfig-D_6ZrPMD.js";
|
|
6
|
+
import { t as ge } from "./usePrinter-DdW2GSm0.js";
|
|
7
7
|
import { n as _e, t as ve } from "./BaseScanner-Dzc8VT3j.js";
|
|
8
|
-
import { t as ye } from "./useNestedProp-
|
|
8
|
+
import { t as ye } from "./useNestedProp-DR_8JPol.js";
|
|
9
9
|
import { t as be } from "./useThemeCheck-C43Tcqmk.js";
|
|
10
10
|
import { t as xe } from "./useChartExport-iwOqiIWX.js";
|
|
11
11
|
import { t as Se } from "./useTransitions-g_zBREk2.js";
|
|
12
12
|
import { t as Ce } from "./useTimeLabelCollider-AEcY4Ioe.js";
|
|
13
|
-
import { t as we } from "./img-
|
|
14
|
-
import { n as Te } from "./Title-
|
|
13
|
+
import { t as we } from "./img-Bb5rHcpO.js";
|
|
14
|
+
import { n as Te } from "./Title-BMCuINbv.js";
|
|
15
15
|
import { t as Ee } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
16
16
|
import { l as De, t as Oe } from "./useResponsive-ZtArZtUf.js";
|
|
17
17
|
import { t as ke } from "./DefGrad-DVBqDjhO.js";
|
|
18
|
-
import { t as Ae } from "./SlicerPreview-
|
|
18
|
+
import { t as Ae } from "./SlicerPreview-k5YerMA9.js";
|
|
19
19
|
import { t as je } from "./A11yDataTable-DdRsVULz.js";
|
|
20
20
|
import { t as Me } from "./useUserOptionState-DK-_1ddE.js";
|
|
21
21
|
import { t as Ne } from "./useChartAccessibility-DYqac8yF.js";
|
|
@@ -211,12 +211,12 @@ var Ze = /* @__PURE__ */ e({ default: () => Mt }), Qe = ["id"], $e = ["id"], et
|
|
|
211
211
|
"copyAlt"
|
|
212
212
|
],
|
|
213
213
|
setup(e, { expose: Ee, emit: Ze }) {
|
|
214
|
-
let Mt = ze(() => import("./BaseIcon-
|
|
214
|
+
let Mt = ze(() => import("./BaseIcon-Cx9FD751.js").then((e) => e.n)), Nt = ze(() => import("./Tooltip-C4ZTwkLF.js")), Pt = ze(() => import("./vue-ui-accordion-CaoNWreI.js").then((e) => e.n)), Ft = ze(() => import("./DataTable-CjF_An2h.js")), It = ze(() => import("./PenAndPaper-CNiuGw6k.js").then((e) => e.t)), Lt = ze(() => import("./UserOptions-CORYQiif.js").then((e) => e.n)), Rt = ze(() => import("./PackageVersion-D7H9nfK0.js").then((e) => e.t)), zt = ze(() => import("./BaseDraggableDialog-C50TEJFv.js").then((e) => e.n)), { vue_ui_candlestick: Bt } = he(), { isThemeValid: Vt, warnInvalidTheme: Ht } = be(), T = e, E = Ze, Ut = f(() => !!T.dataset && T.dataset.length), D = b(!1), Wt = b(null), O = b(a()), Gt = b(!1), Kt = b(""), k = b(void 0), qt = b(0), Jt = b(null), Yt = b(null), Xt = b(null), Zt = b(null), Qt = b(null), $t = b(null), en = b(0), tn = b(0), nn = b(0), rn = b(null), an = b(null), on = b(null), sn = b(null), cn = b(null), A = b(null), ln = b({
|
|
215
215
|
x: 0,
|
|
216
216
|
y: 0
|
|
217
|
-
}),
|
|
217
|
+
}), un = b("pointer"), dn = b(!1), j = b(xn()), M = f(() => j.value.style.layout.candle), N = f(() => j.value.style.layout.grid), P = f(() => j.value.style.layout), F = f(() => j.value.style), I = f(() => j.value.userOptions);
|
|
218
218
|
ue({
|
|
219
|
-
config: () =>
|
|
219
|
+
config: () => j.value,
|
|
220
220
|
dataset: () => T.dataset,
|
|
221
221
|
component: "VueUiCandlestick",
|
|
222
222
|
rules: [de.emptyArray, {
|
|
@@ -230,10 +230,10 @@ var Ze = /* @__PURE__ */ e({ default: () => Mt }), Qe = ["id"], $e = ["id"], et
|
|
|
230
230
|
]
|
|
231
231
|
}]
|
|
232
232
|
});
|
|
233
|
-
let { transitionEnabled:
|
|
234
|
-
config: () =>
|
|
233
|
+
let { transitionEnabled: fn } = Se({
|
|
234
|
+
config: () => j.value.transitions,
|
|
235
235
|
dataset: () => T.dataset
|
|
236
|
-
}),
|
|
236
|
+
}), pn = f(() => j.value.userOptions.useCursorPointer), mn = f(() => re({
|
|
237
237
|
defaultConfig: {
|
|
238
238
|
useCssAnimation: !1,
|
|
239
239
|
userOptions: { show: !1 },
|
|
@@ -270,11 +270,11 @@ var Ze = /* @__PURE__ */ e({ default: () => Mt }), Qe = ["id"], $e = ["id"], et
|
|
|
270
270
|
}
|
|
271
271
|
}
|
|
272
272
|
},
|
|
273
|
-
userConfig:
|
|
274
|
-
})), { loading:
|
|
273
|
+
userConfig: j.value.skeletonConfig ?? {}
|
|
274
|
+
})), { loading: L, FINAL_DATASET: R, manualLoading: hn } = _e({
|
|
275
275
|
...Je(T),
|
|
276
|
-
FINAL_CONFIG:
|
|
277
|
-
prepareConfig:
|
|
276
|
+
FINAL_CONFIG: j,
|
|
277
|
+
prepareConfig: xn,
|
|
278
278
|
callback: () => {
|
|
279
279
|
Promise.resolve().then(async () => {
|
|
280
280
|
await Nr();
|
|
@@ -378,175 +378,175 @@ var Ze = /* @__PURE__ */ e({ default: () => Mt }), Qe = ["id"], $e = ["id"], et
|
|
|
378
378
|
5100
|
|
379
379
|
]
|
|
380
380
|
],
|
|
381
|
-
skeletonConfig:
|
|
382
|
-
defaultConfig:
|
|
383
|
-
userConfig:
|
|
381
|
+
skeletonConfig: re({
|
|
382
|
+
defaultConfig: j.value,
|
|
383
|
+
userConfig: mn.value
|
|
384
384
|
})
|
|
385
|
-
}), { userOptionsVisible:
|
|
386
|
-
function vn() {
|
|
387
|
-
gn(!0);
|
|
388
|
-
}
|
|
385
|
+
}), { userOptionsVisible: gn, setUserOptionsVisibility: _n, keepUserOptionState: vn } = Me({ config: j.value }), { svgRef: z } = Ne({ config: F.value.title });
|
|
389
386
|
function yn() {
|
|
390
|
-
|
|
387
|
+
_n(!0);
|
|
388
|
+
}
|
|
389
|
+
function bn() {
|
|
390
|
+
_n(!1), E("selectX", {
|
|
391
391
|
seriesIndex: null,
|
|
392
392
|
datapoint: null
|
|
393
393
|
}), k.value = null;
|
|
394
394
|
}
|
|
395
|
-
function
|
|
395
|
+
function xn() {
|
|
396
396
|
let e = ye({
|
|
397
397
|
userConfig: T.config,
|
|
398
398
|
defaultConfig: Bt
|
|
399
399
|
}), t = {};
|
|
400
|
-
T.config &&
|
|
401
|
-
let
|
|
402
|
-
if (
|
|
400
|
+
T.config && ce(T.config, "style.layout.grid.xAxis.dataLabels.showFirstAndLast") && (e.style.layout.grid.xAxis.dataLabels.showFirstAndLast = !!T.config.style.layout.grid.xAxis.dataLabels.showFirstAndLast);
|
|
401
|
+
let n = e.theme;
|
|
402
|
+
if (n) {
|
|
403
403
|
if (!Vt.value(e)) Ht(e), t = e;
|
|
404
404
|
else {
|
|
405
|
-
let
|
|
406
|
-
userConfig: Pe[
|
|
405
|
+
let r = ye({
|
|
406
|
+
userConfig: Pe[n] || T.config,
|
|
407
407
|
defaultConfig: e
|
|
408
408
|
});
|
|
409
409
|
t = { ...ye({
|
|
410
410
|
userConfig: T.config,
|
|
411
|
-
defaultConfig:
|
|
411
|
+
defaultConfig: r
|
|
412
412
|
}) };
|
|
413
413
|
}
|
|
414
414
|
} else t = e;
|
|
415
415
|
return t;
|
|
416
416
|
}
|
|
417
|
-
function
|
|
418
|
-
let t =
|
|
417
|
+
function Sn(e) {
|
|
418
|
+
let t = te(e);
|
|
419
419
|
return t?.style && delete t.style.tooltip, JSON.stringify(t);
|
|
420
420
|
}
|
|
421
|
-
let
|
|
421
|
+
let Cn = Sn(T.config);
|
|
422
422
|
Ye(() => T.config, (e, t) => {
|
|
423
|
-
let n =
|
|
424
|
-
|
|
425
|
-
let i =
|
|
423
|
+
let n = Sn(e), r = n !== Cn;
|
|
424
|
+
Cn = n;
|
|
425
|
+
let i = xn();
|
|
426
426
|
if (!r) {
|
|
427
|
-
|
|
427
|
+
j.value.style.tooltip = i.style.tooltip, V.value.showTooltip = j.value.style.tooltip.show;
|
|
428
428
|
return;
|
|
429
429
|
}
|
|
430
|
-
|
|
430
|
+
L.value || (j.value = xn()), gn.value = !j.value.userOptions.showOnChartHover, Dn(), en.value += 1, nn.value += 1, tn.value += 1, V.value.showTable = j.value.table.show, V.value.showTooltip = F.value.tooltip.show, er();
|
|
431
431
|
}, { deep: !0 }), Ye(() => T.dataset, (e) => {
|
|
432
|
-
Array.isArray(e) && e.length > 0 && (
|
|
432
|
+
Array.isArray(e) && e.length > 0 && (hn.value = !1), kr();
|
|
433
433
|
}, { deep: !0 });
|
|
434
|
-
let
|
|
435
|
-
height:
|
|
436
|
-
width:
|
|
437
|
-
xAxisFontSize:
|
|
438
|
-
yAxisFontSize:
|
|
439
|
-
}),
|
|
434
|
+
let B = b({
|
|
435
|
+
height: F.value.height,
|
|
436
|
+
width: F.value.width,
|
|
437
|
+
xAxisFontSize: N.value.xAxis.dataLabels.fontSize,
|
|
438
|
+
yAxisFontSize: N.value.yAxis.dataLabels.fontSize
|
|
439
|
+
}), wn = Ke(null), Tn = Ke(null);
|
|
440
440
|
We(() => {
|
|
441
|
-
|
|
441
|
+
Dn();
|
|
442
442
|
});
|
|
443
|
-
let
|
|
444
|
-
function
|
|
445
|
-
if (
|
|
443
|
+
let En = f(() => j.value.debug);
|
|
444
|
+
function Dn() {
|
|
445
|
+
if (le(T.dataset) && (l({
|
|
446
446
|
componentName: "VueUiCandlestick",
|
|
447
447
|
type: "dataset",
|
|
448
|
-
debug:
|
|
449
|
-
}),
|
|
448
|
+
debug: En.value
|
|
449
|
+
}), hn.value = !0), le(T.dataset) || (hn.value = j.value.loading), setTimeout(() => {
|
|
450
450
|
D.value = !0;
|
|
451
|
-
}, 10),
|
|
451
|
+
}, 10), j.value.responsive) {
|
|
452
452
|
let e = De(() => {
|
|
453
453
|
D.value = !1;
|
|
454
454
|
let { width: e, height: t } = Oe({
|
|
455
|
-
chart:
|
|
456
|
-
title:
|
|
457
|
-
slicer:
|
|
458
|
-
legend:
|
|
459
|
-
source:
|
|
460
|
-
noTitle:
|
|
455
|
+
chart: Jt.value,
|
|
456
|
+
title: F.value.title.text ? Yt.value : null,
|
|
457
|
+
slicer: F.value.zoom.show && U.value > 6 ? Zt.value.$el : null,
|
|
458
|
+
legend: Xt.value,
|
|
459
|
+
source: Qt.value,
|
|
460
|
+
noTitle: $t.value
|
|
461
461
|
});
|
|
462
462
|
requestAnimationFrame(() => {
|
|
463
|
-
|
|
463
|
+
B.value.width = e, B.value.height = t - 12, j.value.responsiveProportionalSizing ? (B.value.xAxisFontSize = se({
|
|
464
464
|
relator: Math.min(e, t),
|
|
465
|
-
adjuster:
|
|
466
|
-
source:
|
|
465
|
+
adjuster: F.value.width,
|
|
466
|
+
source: N.value.xAxis.dataLabels.fontSize,
|
|
467
467
|
threshold: 6,
|
|
468
468
|
fallback: 6
|
|
469
|
-
}),
|
|
469
|
+
}), B.value.yAxisFontSize = se({
|
|
470
470
|
relator: Math.min(e, t),
|
|
471
|
-
adjuster:
|
|
472
|
-
source:
|
|
471
|
+
adjuster: F.value.width,
|
|
472
|
+
source: N.value.yAxis.dataLabels.fontSize,
|
|
473
473
|
threshold: 6,
|
|
474
474
|
fallback: 6
|
|
475
|
-
})) : (
|
|
475
|
+
})) : (B.value.xAxisFontSize = N.value.xAxis.dataLabels.fontSize, B.value.yAxisFontSize = N.value.yAxis.dataLabels.fontSize), Wt.value && clearTimeout(Wt.value), Wt.value = setTimeout(() => {
|
|
476
476
|
D.value = !0;
|
|
477
477
|
}, 10);
|
|
478
478
|
});
|
|
479
479
|
});
|
|
480
|
-
|
|
480
|
+
wn.value && (Tn.value && wn.value.unobserve(Tn.value), wn.value.disconnect()), wn.value = new ResizeObserver(e), Tn.value = Jt.value.parentNode, wn.value.observe(Tn.value);
|
|
481
481
|
}
|
|
482
482
|
Nr();
|
|
483
483
|
}
|
|
484
484
|
Ue(() => {
|
|
485
|
-
|
|
485
|
+
wn.value && (Tn.value && wn.value.unobserve(Tn.value), wn.value.disconnect());
|
|
486
486
|
});
|
|
487
|
-
let { isPrinting:
|
|
487
|
+
let { isPrinting: On, isImaging: kn, generatePdf: An, generateImage: jn } = ge({
|
|
488
488
|
elementId: `vue-ui-candlestick_${O.value}`,
|
|
489
|
-
fileName:
|
|
490
|
-
options:
|
|
491
|
-
}),
|
|
492
|
-
showTable:
|
|
493
|
-
showTooltip:
|
|
494
|
-
}),
|
|
495
|
-
|
|
489
|
+
fileName: F.value.title.text || "vue-ui-candlestick",
|
|
490
|
+
options: j.value.userOptions.print
|
|
491
|
+
}), Mn = f(() => j.value.userOptions.show && !F.value.title.text), V = b({
|
|
492
|
+
showTable: j.value.table.show,
|
|
493
|
+
showTooltip: F.value.tooltip.show
|
|
494
|
+
}), Nn = b(0), Pn = De((e) => {
|
|
495
|
+
Nn.value = e;
|
|
496
496
|
}, 100);
|
|
497
497
|
Xe((e) => {
|
|
498
|
-
let t =
|
|
498
|
+
let t = an.value;
|
|
499
499
|
if (!t) return;
|
|
500
500
|
let n = new ResizeObserver((e) => {
|
|
501
|
-
|
|
501
|
+
Pn(e[0].contentRect.height);
|
|
502
502
|
});
|
|
503
503
|
n.observe(t), e(() => n.disconnect());
|
|
504
504
|
}), Ue(() => {
|
|
505
|
-
|
|
505
|
+
Nn.value = 0;
|
|
506
506
|
});
|
|
507
|
-
let
|
|
507
|
+
let Fn = f(() => {
|
|
508
508
|
let e = 0;
|
|
509
|
-
return
|
|
510
|
-
}),
|
|
511
|
-
function
|
|
512
|
-
let e =
|
|
513
|
-
|
|
509
|
+
return an.value && (e = Nn.value + B.value.xAxisFontSize), e;
|
|
510
|
+
}), In = f(() => N.value.yAxis.position === "right");
|
|
511
|
+
function Ln() {
|
|
512
|
+
let e = N.value.yAxis.dataLabels.offsetX;
|
|
513
|
+
rn.value && (e = Array.from(rn.value.querySelectorAll("text")).reduce((e, t) => {
|
|
514
514
|
let n = t.getComputedTextLength();
|
|
515
515
|
return n > e ? n : e;
|
|
516
516
|
}, 0));
|
|
517
|
-
let t =
|
|
517
|
+
let t = N.value.yAxis.axisName?.show ? N.value.yAxis.axisName.fontSize + N.value.yAxis.axisName.offsetX : 0, n = e + 13 + t;
|
|
518
518
|
return {
|
|
519
|
-
left:
|
|
520
|
-
right:
|
|
519
|
+
left: In.value ? 0 : n,
|
|
520
|
+
right: In.value ? n : 0,
|
|
521
521
|
scaleLabelsWidth: e,
|
|
522
522
|
yAxisNameWidth: t,
|
|
523
523
|
crosshair: 13
|
|
524
524
|
};
|
|
525
525
|
}
|
|
526
|
-
let
|
|
527
|
-
let { top: e, right: t, bottom: n, left: r } =
|
|
526
|
+
let H = f(() => {
|
|
527
|
+
let { top: e, right: t, bottom: n, left: r } = P.value.padding, i = Ln();
|
|
528
528
|
return {
|
|
529
529
|
top: e + 12,
|
|
530
|
-
right:
|
|
530
|
+
right: B.value.width - t - i.right,
|
|
531
531
|
left: r + i.left,
|
|
532
|
-
bottom:
|
|
533
|
-
width:
|
|
534
|
-
height:
|
|
532
|
+
bottom: B.value.height - n - Fn.value,
|
|
533
|
+
width: B.value.width - r - t - i.left - i.right,
|
|
534
|
+
height: B.value.height - e - n - Fn.value - 12,
|
|
535
535
|
scaleLabelsWidth: i.scaleLabelsWidth,
|
|
536
536
|
yAxisNameWidth: i.yAxisNameWidth,
|
|
537
537
|
crosshair: i.crosshair
|
|
538
538
|
};
|
|
539
|
-
}),
|
|
540
|
-
let { left: e, top: t, width: n, height: r } =
|
|
539
|
+
}), Rn = f(() => {
|
|
540
|
+
let { left: e, top: t, width: n, height: r } = H.value, i = W.value.start, a = W.value.end - i, o = n / a, s = G.value.start - i, c = G.value.end - i, l = Math.max(0, Math.min(a, s)), u = Math.max(0, Math.min(a, c));
|
|
541
541
|
return {
|
|
542
542
|
x: e + l * o,
|
|
543
543
|
y: t,
|
|
544
544
|
width: (u - l) * o,
|
|
545
545
|
height: r,
|
|
546
|
-
fill:
|
|
547
|
-
stroke:
|
|
548
|
-
"stroke-width":
|
|
549
|
-
"stroke-dasharray":
|
|
546
|
+
fill: F.value.zoom.preview.fill,
|
|
547
|
+
stroke: F.value.zoom.preview.stroke,
|
|
548
|
+
"stroke-width": F.value.zoom.preview.strokeWidth,
|
|
549
|
+
"stroke-dasharray": F.value.zoom.preview.strokeDasharray,
|
|
550
550
|
"stroke-linecap": "round",
|
|
551
551
|
"stroke-linejoin": "round",
|
|
552
552
|
style: {
|
|
@@ -555,22 +555,22 @@ var Ze = /* @__PURE__ */ e({ default: () => Mt }), Qe = ["id"], $e = ["id"], et
|
|
|
555
555
|
animation: "none !important"
|
|
556
556
|
}
|
|
557
557
|
};
|
|
558
|
-
}),
|
|
558
|
+
}), U = f(() => R.value.length), W = b({
|
|
559
559
|
start: 0,
|
|
560
|
-
end:
|
|
561
|
-
}),
|
|
560
|
+
end: U.value
|
|
561
|
+
}), G = b({
|
|
562
562
|
start: 0,
|
|
563
|
-
end:
|
|
564
|
-
}),
|
|
563
|
+
end: U.value
|
|
564
|
+
}), zn = b(!1), Bn = b(!1), Vn = b(null), K = b(null), q = b(null), Hn = b(!1), Un = b({
|
|
565
565
|
time: 0,
|
|
566
566
|
x: 0,
|
|
567
567
|
y: 0,
|
|
568
568
|
pointerType: null
|
|
569
|
-
}),
|
|
569
|
+
}), Wn = f(() => F.value.zoom?.dragToZoom), J = f(() => Wn.value.show && Ut.value && jr.value && U.value > 1 && !L.value), Gn = null, Kn = {}, qn = f(() => F.value.zoom.preview.enable && (G.value.start !== W.value.start || G.value.end !== W.value.end));
|
|
570
570
|
function Jn(e, t) {
|
|
571
|
-
|
|
571
|
+
G.value[e] = t;
|
|
572
572
|
}
|
|
573
|
-
function Yn(e, t =
|
|
573
|
+
function Yn(e, t = W.value) {
|
|
574
574
|
if (!e || typeof e != "object") return null;
|
|
575
575
|
let n = e.start !== void 0 && e.start !== null, r = e.end !== void 0 && e.end !== null;
|
|
576
576
|
if (!n && !r) return null;
|
|
@@ -591,15 +591,15 @@ var Ze = /* @__PURE__ */ e({ default: () => Mt }), Qe = ["id"], $e = ["id"], et
|
|
|
591
591
|
let t = Yn(e);
|
|
592
592
|
if (!t) return null;
|
|
593
593
|
let { start: n, end: r } = t;
|
|
594
|
-
return (n !== Number(
|
|
594
|
+
return (n !== Number(W.value.start) || r !== Number(W.value.end)) && (Zn(), W.value = {
|
|
595
595
|
start: n,
|
|
596
596
|
end: r
|
|
597
|
-
},
|
|
597
|
+
}, G.value = {
|
|
598
598
|
start: n,
|
|
599
599
|
end: r
|
|
600
600
|
}, er()), {
|
|
601
|
-
start: Number(
|
|
602
|
-
end: Number(
|
|
601
|
+
start: Number(W.value.start),
|
|
602
|
+
end: Number(W.value.end)
|
|
603
603
|
};
|
|
604
604
|
}
|
|
605
605
|
function $n(e) {
|
|
@@ -607,13 +607,13 @@ var Ze = /* @__PURE__ */ e({ default: () => Mt }), Qe = ["id"], $e = ["id"], et
|
|
|
607
607
|
return t ? (E("update:zoomState", t), t) : null;
|
|
608
608
|
}
|
|
609
609
|
function er() {
|
|
610
|
-
let e = Math.max(0, Math.min(
|
|
611
|
-
(!Number.isFinite(e) || !Number.isFinite(t) || t <= e) && (e = 0, t =
|
|
610
|
+
let e = Math.max(0, Math.min(W.value.start ?? 0, U.value - 1)), t = Math.max(e + 1, Math.min(W.value.end ?? U.value, U.value));
|
|
611
|
+
(!Number.isFinite(e) || !Number.isFinite(t) || t <= e) && (e = 0, t = U.value), W.value.start = e, W.value.end = t, G.value.start = e, G.value.end = t, Zt.value && Zt.value.setRangeValues(e, t);
|
|
612
612
|
}
|
|
613
|
-
let tr = f(() =>
|
|
613
|
+
let tr = f(() => R.value.map((e, t) => ({
|
|
614
614
|
...e,
|
|
615
615
|
absoluteIndex: t
|
|
616
|
-
}))), nr = f(() => tr.value.slice(
|
|
616
|
+
}))), nr = f(() => tr.value.slice(W.value.start, W.value.end)), Y = f(() => (En.value && R.value.forEach((e, t) => {
|
|
617
617
|
[null, void 0].includes(e[0]) && l({
|
|
618
618
|
componentName: "VueUiCandlestick",
|
|
619
619
|
type: "datasetAttribute",
|
|
@@ -661,15 +661,15 @@ var Ze = /* @__PURE__ */ e({ default: () => Mt }), Qe = ["id"], $e = ["id"], et
|
|
|
661
661
|
low: e[3],
|
|
662
662
|
close: e[4],
|
|
663
663
|
volume: e[5]
|
|
664
|
-
}))), X = f(() =>
|
|
665
|
-
max:
|
|
666
|
-
min:
|
|
667
|
-
})), Z = f(() =>
|
|
664
|
+
}))), X = f(() => H.value.width / nr.value.length), ir = f(() => ({
|
|
665
|
+
max: N.value.yAxis.scale.max === null ? Math.max(...Y.value.map((e) => e.high)) : N.value.yAxis.scale.max,
|
|
666
|
+
min: N.value.yAxis.scale.min === null ? 0 : N.value.yAxis.scale.min
|
|
667
|
+
})), Z = f(() => s(ir.value.min, ir.value.max, N.value.yAxis.dataLabels.steps));
|
|
668
668
|
function ar(e, t, n = null, r = null) {
|
|
669
669
|
return {
|
|
670
670
|
...e,
|
|
671
|
-
x: u(
|
|
672
|
-
y: u(
|
|
671
|
+
x: u(H.value.left + t * X.value + X.value / 2),
|
|
672
|
+
y: u(H.value.top + (1 - (e - Z.value.min) / (Z.value.max - Z.value.min)) * H.value.height),
|
|
673
673
|
value: u(e),
|
|
674
674
|
isMax: e === n,
|
|
675
675
|
isMin: e === r
|
|
@@ -704,7 +704,7 @@ var Ze = /* @__PURE__ */ e({ default: () => Mt }), Qe = ["id"], $e = ["id"], et
|
|
|
704
704
|
});
|
|
705
705
|
});
|
|
706
706
|
function or({ item: e, index: t, minimapH: n, unitW: r }) {
|
|
707
|
-
let i =
|
|
707
|
+
let i = N.value.yAxis.scale.min ?? 0, a = N.value.yAxis.scale.max ?? Math.max(...R.value.map((e) => e[2]));
|
|
708
708
|
return {
|
|
709
709
|
...e,
|
|
710
710
|
x: u(t * r),
|
|
@@ -744,9 +744,9 @@ var Ze = /* @__PURE__ */ e({ default: () => Mt }), Qe = ["id"], $e = ["id"], et
|
|
|
744
744
|
isBullish: c,
|
|
745
745
|
absoluteIndex: n.absoluteIndex
|
|
746
746
|
};
|
|
747
|
-
})), cr = f(() =>
|
|
747
|
+
})), cr = f(() => F.value.zoom.minimap.show ? [{
|
|
748
748
|
name: "",
|
|
749
|
-
series:
|
|
749
|
+
series: R.value.map((e) => e[2]),
|
|
750
750
|
color: "#000000",
|
|
751
751
|
isVisible: !0
|
|
752
752
|
}] : []);
|
|
@@ -754,18 +754,18 @@ var Ze = /* @__PURE__ */ e({ default: () => Mt }), Qe = ["id"], $e = ["id"], et
|
|
|
754
754
|
return u((e - Z.value.min) / (Z.value.max - Z.value.min));
|
|
755
755
|
}
|
|
756
756
|
let ur = f(() => Z.value.ticks.map((e) => ({
|
|
757
|
-
y:
|
|
757
|
+
y: H.value.bottom - H.value.height * lr(e),
|
|
758
758
|
value: u(e)
|
|
759
759
|
}))), dr = f(() => Y.value.map((e) => e.period)), $ = b([]), fr = b([]), pr = 0;
|
|
760
760
|
Xe(() => {
|
|
761
761
|
let e = ++pr;
|
|
762
762
|
(async () => {
|
|
763
763
|
let t = await me({
|
|
764
|
-
values:
|
|
765
|
-
maxDatapoints:
|
|
766
|
-
formatter:
|
|
767
|
-
start:
|
|
768
|
-
end:
|
|
764
|
+
values: R.value.map((e) => e[0]),
|
|
765
|
+
maxDatapoints: R.value.length,
|
|
766
|
+
formatter: N.value.xAxis.dataLabels.datetimeFormatter,
|
|
767
|
+
start: W.value.start,
|
|
768
|
+
end: W.value.end
|
|
769
769
|
});
|
|
770
770
|
e === pr && ($.value = t);
|
|
771
771
|
})();
|
|
@@ -775,11 +775,11 @@ var Ze = /* @__PURE__ */ e({ default: () => Mt }), Qe = ["id"], $e = ["id"], et
|
|
|
775
775
|
let e = ++mr;
|
|
776
776
|
(async () => {
|
|
777
777
|
let t = await me({
|
|
778
|
-
values:
|
|
779
|
-
maxDatapoints:
|
|
780
|
-
formatter:
|
|
778
|
+
values: R.value.map((e) => e[0]),
|
|
779
|
+
maxDatapoints: R.value.length,
|
|
780
|
+
formatter: N.value.xAxis.dataLabels.datetimeFormatter,
|
|
781
781
|
start: 0,
|
|
782
|
-
end:
|
|
782
|
+
end: U.value
|
|
783
783
|
});
|
|
784
784
|
e === mr && (fr.value = t);
|
|
785
785
|
})();
|
|
@@ -791,31 +791,31 @@ var Ze = /* @__PURE__ */ e({ default: () => Mt }), Qe = ["id"], $e = ["id"], et
|
|
|
791
791
|
shortDays: []
|
|
792
792
|
}), gr = 0;
|
|
793
793
|
Xe(() => {
|
|
794
|
-
let e = ++gr, t =
|
|
794
|
+
let e = ++gr, t = N.value.xAxis.dataLabels.datetimeFormatter;
|
|
795
795
|
(async () => {
|
|
796
796
|
let n = await pe(t.locale).catch(() => pe("en"));
|
|
797
797
|
e === gr && (hr.value = n.data);
|
|
798
798
|
})();
|
|
799
799
|
});
|
|
800
800
|
let _r = f(() => {
|
|
801
|
-
let e =
|
|
801
|
+
let e = N.value.xAxis.dataLabels.datetimeFormatter, t = fe({
|
|
802
802
|
useUTC: e.useUTC,
|
|
803
803
|
locale: hr.value,
|
|
804
804
|
januaryAsYear: e.januaryAsYear
|
|
805
805
|
});
|
|
806
806
|
return (e, n) => {
|
|
807
|
-
let r =
|
|
807
|
+
let r = R.value.map((e) => e[0])?.[e];
|
|
808
808
|
return r == null ? "" : t.formatDate(new Date(r), n);
|
|
809
809
|
};
|
|
810
|
-
}), vr = f(() => (
|
|
811
|
-
text: _r.value(t,
|
|
810
|
+
}), vr = f(() => (R.value.map((e) => e[0]) || []).map((e, t) => ({
|
|
811
|
+
text: _r.value(t, F.value.tooltip.timeFormat),
|
|
812
812
|
absoluteIndex: t
|
|
813
|
-
}))), yr = f(() => (
|
|
814
|
-
text: _r.value(t,
|
|
813
|
+
}))), yr = f(() => (R.value.map((e) => e[0]) || []).map((e, t) => ({
|
|
814
|
+
text: _r.value(t, F.value.zoom.timeFormat),
|
|
815
815
|
absoluteIndex: t
|
|
816
816
|
}))), br = f(() => {
|
|
817
|
-
let e = Math.max(1, Math.floor(Number(
|
|
818
|
-
return
|
|
817
|
+
let e = Math.max(1, Math.floor(Number(N.value.xAxis.dataLabels.modulo) || 1)), t = ($.value || []).map((e) => e?.text ?? ""), n = (fr.value || []).map((e) => e?.text ?? ""), r = W.value.start ?? 0, i = r > 0 || t.length < n.length;
|
|
818
|
+
return ne({
|
|
819
819
|
configuredModulo: e,
|
|
820
820
|
visibleTexts: t,
|
|
821
821
|
allTexts: n,
|
|
@@ -823,107 +823,107 @@ var Ze = /* @__PURE__ */ e({ default: () => Mt }), Qe = ["id"], $e = ["id"], et
|
|
|
823
823
|
isZoomed: i
|
|
824
824
|
});
|
|
825
825
|
}), xr = f(() => {
|
|
826
|
-
let e =
|
|
826
|
+
let e = N.value.xAxis.dataLabels, t = $.value || [], n = fr.value || [], r = W.value.start ?? 0, i = k.value, a = U.value, o = t.map((e) => e?.text ?? ""), s = n.map((e) => e?.text ?? ""), c = ee(!!e.showOnlyFirstAndLast, !!e.showOnlyAtModulo, br.value, o, s, r, i, a);
|
|
827
827
|
if (!e.showFirstAndLast || e.showOnlyFirstAndLast || !c.length) return c;
|
|
828
828
|
let l = c.length - 1;
|
|
829
829
|
return c.map((e, t) => t !== 0 && t !== l ? e : {
|
|
830
830
|
...e,
|
|
831
831
|
text: o[t] ?? ""
|
|
832
832
|
});
|
|
833
|
-
}), Sr = f(() =>
|
|
834
|
-
start: $.value.find((e) => e.absoluteIndex ===
|
|
835
|
-
end: $.value.find((e) => e.absoluteIndex ===
|
|
833
|
+
}), Sr = f(() => N.value.xAxis.dataLabels.datetimeFormatter.enable ? {
|
|
834
|
+
start: $.value.find((e) => e.absoluteIndex === W.value.start)?.text ?? "",
|
|
835
|
+
end: $.value.find((e) => e.absoluteIndex === W.value.end - 1)?.text ?? ""
|
|
836
836
|
} : {
|
|
837
|
-
start:
|
|
838
|
-
end:
|
|
837
|
+
start: R.value[W.value.start] ? R.value[W.value.start][0] : R.value[0][0],
|
|
838
|
+
end: R.value[W.value.end - 1] ? R.value[W.value.end - 1][0] : R.value.at(-1)[0]
|
|
839
839
|
}), Cr = b(null);
|
|
840
840
|
function wr(e, t) {
|
|
841
|
-
|
|
841
|
+
j.value.events.datapointClick && j.value.events.datapointClick({
|
|
842
842
|
datapoint: t,
|
|
843
|
-
seriesIndex: e +
|
|
843
|
+
seriesIndex: e + W.value.start
|
|
844
844
|
});
|
|
845
845
|
}
|
|
846
846
|
function Tr(e, t) {
|
|
847
|
-
|
|
847
|
+
j.value.events.datapointLeave && j.value.events.datapointLeave({
|
|
848
848
|
datapoint: t,
|
|
849
|
-
seriesIndex: e +
|
|
850
|
-
}), k.value = void 0, Gt.value = !1,
|
|
849
|
+
seriesIndex: e + W.value.start
|
|
850
|
+
}), k.value = void 0, Gt.value = !1, A.value = null, un.value = "pointer";
|
|
851
851
|
}
|
|
852
852
|
Ye(() => T.selectedXIndex, (e) => {
|
|
853
853
|
if ([null, void 0].includes(T.selectedXIndex)) {
|
|
854
854
|
k.value = null;
|
|
855
855
|
return;
|
|
856
856
|
}
|
|
857
|
-
let t = e -
|
|
858
|
-
t < 0 || e >=
|
|
857
|
+
let t = e - W.value.start;
|
|
858
|
+
t < 0 || e >= W.value.end ? k.value = null : k.value = t ?? null;
|
|
859
859
|
}, { immediate: !0 });
|
|
860
|
-
function Er(e, n,
|
|
861
|
-
|
|
860
|
+
function Er(e, n, i = "pointer") {
|
|
861
|
+
j.value.events.datapointEnter && j.value.events.datapointEnter({
|
|
862
862
|
datapoint: n,
|
|
863
|
-
seriesIndex: e +
|
|
864
|
-
}), k.value = e,
|
|
863
|
+
seriesIndex: e + W.value.start
|
|
864
|
+
}), k.value = e, A.value = e, un.value = i, Cr.value = {
|
|
865
865
|
datapoint: n,
|
|
866
866
|
seriesIndex: e,
|
|
867
867
|
series: Q.value,
|
|
868
|
-
config:
|
|
868
|
+
config: j.value
|
|
869
869
|
}, yi({
|
|
870
870
|
seriesIndex: e,
|
|
871
871
|
datapoint: n
|
|
872
872
|
});
|
|
873
|
-
let a =
|
|
874
|
-
if (
|
|
873
|
+
let a = F.value.tooltip.customFormat;
|
|
874
|
+
if (r(a) && ae(() => a({
|
|
875
875
|
seriesIndex: e,
|
|
876
876
|
datapoint: n,
|
|
877
877
|
series: Q.value,
|
|
878
|
-
config:
|
|
878
|
+
config: j.value
|
|
879
879
|
}))) Kt.value = a({
|
|
880
880
|
seriesIndex: e,
|
|
881
881
|
datapoint: n,
|
|
882
882
|
series: Q.value,
|
|
883
|
-
config:
|
|
883
|
+
config: j.value
|
|
884
884
|
});
|
|
885
|
-
else if (
|
|
886
|
-
let r = "", { period: i, open: a, high: o, low: s, close: c, volume: l, isBullish: u } = Q.value[e], { period: ee, open: te, high: ne, low: re, close: ie, volume: ae } =
|
|
887
|
-
r += `<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="${
|
|
888
|
-
fill="${
|
|
885
|
+
else if (F.value.tooltip.show) {
|
|
886
|
+
let r = "", { period: i, open: a, high: o, low: s, close: c, volume: l, isBullish: u } = Q.value[e], { period: ee, open: te, high: ne, low: re, close: ie, volume: ae } = j.value.translations, oe = N.value.xAxis.dataLabels.datetimeFormatter.enable ? F.value.tooltip.useDefaultTimeFormat ? $.value[e].text : vr.value[e].text : i;
|
|
887
|
+
r += `<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="${M.value.borderRadius * 3}" stroke="${M.value.stroke}" stroke-width="${M.value.strokeWidth}"
|
|
888
|
+
fill="${M.value.gradient.show ? u ? `url(#bullish_gradient_${O.value})` : `url(#bearish_gradient_${O.value})` : u ? M.value.colors.bullish : M.value.colors.bearish}"/></svg>${oe}</div>`, r += `${ae} : <b>${isNaN(l) ? "-" : Number(l.toFixed(F.value.tooltip.roundingValue)).toLocaleString()}</b>`, r += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${F.value.tooltip.borderColor}">`;
|
|
889
889
|
let se = t({
|
|
890
|
-
p:
|
|
890
|
+
p: F.value.tooltip.prefix,
|
|
891
891
|
v: a.value,
|
|
892
|
-
s:
|
|
893
|
-
r:
|
|
892
|
+
s: F.value.tooltip.suffix,
|
|
893
|
+
r: F.value.tooltip.roundingValue
|
|
894
894
|
}), ce = t({
|
|
895
|
-
p:
|
|
895
|
+
p: F.value.tooltip.prefix,
|
|
896
896
|
v: o.value,
|
|
897
|
-
s:
|
|
898
|
-
r:
|
|
897
|
+
s: F.value.tooltip.suffix,
|
|
898
|
+
r: F.value.tooltip.roundingValue
|
|
899
899
|
}), le = t({
|
|
900
|
-
p:
|
|
900
|
+
p: F.value.tooltip.prefix,
|
|
901
901
|
v: s.value,
|
|
902
|
-
s:
|
|
903
|
-
r:
|
|
902
|
+
s: F.value.tooltip.suffix,
|
|
903
|
+
r: F.value.tooltip.roundingValue
|
|
904
904
|
}), ue = t({
|
|
905
|
-
p:
|
|
905
|
+
p: F.value.tooltip.prefix,
|
|
906
906
|
v: c.value,
|
|
907
|
-
s:
|
|
908
|
-
r:
|
|
907
|
+
s: F.value.tooltip.suffix,
|
|
908
|
+
r: F.value.tooltip.roundingValue
|
|
909
909
|
});
|
|
910
|
-
|
|
910
|
+
F.value.tooltip.showChart ? r += `<div style="width:100%;display:flex;align-items:center;justify-content:center;">
|
|
911
911
|
<svg viewBox="0 0 100 100" width="100px" style="background: transparent; overflow: visible">
|
|
912
912
|
<g>
|
|
913
|
-
<line x1="50" x2="50" y1="20" y2="80" stroke="${n.isBullish ?
|
|
913
|
+
<line x1="50" x2="50" y1="20" y2="80" stroke="${n.isBullish ? M.value.colors.bullish : M.value.colors.bearish}" stroke-width="2" stroke-linecap="round" />
|
|
914
914
|
${n.isBullish ? `
|
|
915
|
-
<line x1="45" x2="50" y1="65" y2="65" stroke="${
|
|
916
|
-
<line x1="50" x2="55" y1="35" y2="35" stroke="${
|
|
917
|
-
<text x="38" y="70" text-anchor="end" fill="${
|
|
918
|
-
<text x="62" y="40" text-anchor="start" fill="${
|
|
915
|
+
<line x1="45" x2="50" y1="65" y2="65" stroke="${M.value.colors.bullish}" stroke-width="1.5" stroke-linecap="round" />
|
|
916
|
+
<line x1="50" x2="55" y1="35" y2="35" stroke="${M.value.colors.bullish}" stroke-width="1.5" stroke-linecap="round" />
|
|
917
|
+
<text x="38" y="70" text-anchor="end" fill="${F.value.tooltip.color}">${se}</text>
|
|
918
|
+
<text x="62" y="40" text-anchor="start" fill="${F.value.tooltip.color}">${ue}</text>
|
|
919
919
|
` : `
|
|
920
|
-
<line x1="45" x2="50" y1="35" y2="35" stroke="${
|
|
921
|
-
<line x1="50" x2="55" y1="65" y2="65" stroke="${
|
|
922
|
-
<text x="40" y="40" text-anchor="end" fill="${
|
|
923
|
-
<text x="60" y="70" text-anchor="start" fill="${
|
|
920
|
+
<line x1="45" x2="50" y1="35" y2="35" stroke="${M.value.colors.bearish}" stroke-width="1.5" stroke-linecap="round" />
|
|
921
|
+
<line x1="50" x2="55" y1="65" y2="65" stroke="${M.value.colors.bearish}" stroke-width="1.5" stroke-linecap="round" />
|
|
922
|
+
<text x="40" y="40" text-anchor="end" fill="${F.value.tooltip.color}">${se}</text>
|
|
923
|
+
<text x="60" y="70" text-anchor="start" fill="${F.value.tooltip.color}">${ue}</text>
|
|
924
924
|
`}
|
|
925
|
-
<text x="50" y="13" text-anchor="middle" fill="${
|
|
926
|
-
<text x="50" y="97" text-anchor="middle" fill="${
|
|
925
|
+
<text x="50" y="13" text-anchor="middle" fill="${F.value.tooltip.color}">${ce}</text>
|
|
926
|
+
<text x="50" y="97" text-anchor="middle" fill="${F.value.tooltip.color}">${le}</text>
|
|
927
927
|
<g>
|
|
928
928
|
</svg>
|
|
929
929
|
<div>
|
|
@@ -942,8 +942,8 @@ var Ze = /* @__PURE__ */ e({ default: () => Mt }), Qe = ["id"], $e = ["id"], et
|
|
|
942
942
|
let n = !e;
|
|
943
943
|
Nr(n), await Ve(), Dr.value && cancelAnimationFrame(Dr.value), Dr.value = requestAnimationFrame(async () => {
|
|
944
944
|
await Or(), Nr(n), Dr.value = null, t && (Xn({
|
|
945
|
-
start: Number(
|
|
946
|
-
end: Number(
|
|
945
|
+
start: Number(W.value.start),
|
|
946
|
+
end: Number(W.value.end)
|
|
947
947
|
}), E("zoomReset"));
|
|
948
948
|
});
|
|
949
949
|
}
|
|
@@ -958,8 +958,8 @@ var Ze = /* @__PURE__ */ e({ default: () => Mt }), Qe = ["id"], $e = ["id"], et
|
|
|
958
958
|
if (!Ar.value) {
|
|
959
959
|
Ar.value = !0;
|
|
960
960
|
try {
|
|
961
|
-
let { startIndex: t, endIndex: n } =
|
|
962
|
-
Mr.value = !0,
|
|
961
|
+
let { startIndex: t, endIndex: n } = F.value.zoom, r = U.value, i = t ?? 0, a = n == null ? r : Math.min(Pr(n + 1, i), r);
|
|
962
|
+
Mr.value = !0, W.value.start = i, W.value.end = a, G.value.start = i, G.value.end = a, er(), jr.value = !0, e && T.zoomState && Qn(T.zoomState);
|
|
963
963
|
} finally {
|
|
964
964
|
queueMicrotask(() => {
|
|
965
965
|
Mr.value = !1;
|
|
@@ -967,67 +967,67 @@ var Ze = /* @__PURE__ */ e({ default: () => Mt }), Qe = ["id"], $e = ["id"], et
|
|
|
967
967
|
}
|
|
968
968
|
}
|
|
969
969
|
}
|
|
970
|
-
function Pr(e, t =
|
|
971
|
-
let n =
|
|
970
|
+
function Pr(e, t = W.value.start) {
|
|
971
|
+
let n = U.value, r = Number(t);
|
|
972
972
|
return e > n ? n : e < 0 || e <= r ? Math.min(r + 1, n) : e;
|
|
973
973
|
}
|
|
974
974
|
function Fr(e = null) {
|
|
975
975
|
Ve(() => {
|
|
976
976
|
let t = [
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
],
|
|
984
|
-
|
|
977
|
+
j.value.translations.period,
|
|
978
|
+
j.value.translations.open,
|
|
979
|
+
j.value.translations.high,
|
|
980
|
+
j.value.translations.low,
|
|
981
|
+
j.value.translations.close,
|
|
982
|
+
j.value.translations.volume
|
|
983
|
+
], r = Q.value.map((e, t) => [
|
|
984
|
+
N.value.xAxis.dataLabels.datetimeFormatter.enable ? $.value[t].text : e.period,
|
|
985
985
|
e.open.value,
|
|
986
986
|
e.high.value,
|
|
987
987
|
e.low.value,
|
|
988
988
|
e.close.value,
|
|
989
989
|
e.volume
|
|
990
990
|
]), i = [
|
|
991
|
-
[
|
|
992
|
-
[
|
|
991
|
+
[F.value.title.text],
|
|
992
|
+
[F.value.title.subtitle.text],
|
|
993
993
|
[
|
|
994
994
|
[""],
|
|
995
995
|
[""],
|
|
996
996
|
[""]
|
|
997
997
|
],
|
|
998
998
|
t
|
|
999
|
-
].concat(
|
|
1000
|
-
e ? e(a) :
|
|
999
|
+
].concat(r), a = n(i);
|
|
1000
|
+
e ? e(a) : ie({
|
|
1001
1001
|
csvContent: a,
|
|
1002
|
-
title:
|
|
1002
|
+
title: F.value.title.text || "vue-ui-candlestick"
|
|
1003
1003
|
});
|
|
1004
1004
|
});
|
|
1005
1005
|
}
|
|
1006
1006
|
let Ir = f(() => {
|
|
1007
1007
|
let e = Q.value.map((e, n) => {
|
|
1008
|
-
let r =
|
|
1009
|
-
p:
|
|
1008
|
+
let r = N.value.xAxis.dataLabels.datetimeFormatter.enable ? $.value?.[n]?.text ?? "" : e.period, i = t({
|
|
1009
|
+
p: j.value.table.td.prefix,
|
|
1010
1010
|
v: e.open.value,
|
|
1011
|
-
s:
|
|
1012
|
-
r:
|
|
1011
|
+
s: j.value.table.td.suffix,
|
|
1012
|
+
r: j.value.table.td.roundingValue
|
|
1013
1013
|
}), a = t({
|
|
1014
|
-
p:
|
|
1014
|
+
p: j.value.table.td.prefix,
|
|
1015
1015
|
v: e.high.value,
|
|
1016
|
-
s:
|
|
1017
|
-
r:
|
|
1016
|
+
s: j.value.table.td.suffix,
|
|
1017
|
+
r: j.value.table.td.roundingValue
|
|
1018
1018
|
}), o = t({
|
|
1019
|
-
p:
|
|
1019
|
+
p: j.value.table.td.prefix,
|
|
1020
1020
|
v: e.low.value,
|
|
1021
|
-
s:
|
|
1022
|
-
r:
|
|
1021
|
+
s: j.value.table.td.suffix,
|
|
1022
|
+
r: j.value.table.td.roundingValue
|
|
1023
1023
|
}), s = t({
|
|
1024
|
-
p:
|
|
1024
|
+
p: j.value.table.td.prefix,
|
|
1025
1025
|
v: e.close.value,
|
|
1026
|
-
s:
|
|
1027
|
-
r:
|
|
1026
|
+
s: j.value.table.td.suffix,
|
|
1027
|
+
r: j.value.table.td.roundingValue
|
|
1028
1028
|
});
|
|
1029
1029
|
return [
|
|
1030
|
-
`<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="${
|
|
1030
|
+
`<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="${M.value.borderRadius * 3}" fill="${M.value.gradient.show ? e.isBullish ? `url(#bullish_gradient_${O.value})` : `url(#bearish_gradient_${O.value})` : e.isBullish ? M.value.colors.bullish : M.value.colors.bearish}"/></svg> ${r}`,
|
|
1031
1031
|
i,
|
|
1032
1032
|
a,
|
|
1033
1033
|
o,
|
|
@@ -1035,51 +1035,51 @@ var Ze = /* @__PURE__ */ e({ default: () => Mt }), Qe = ["id"], $e = ["id"], et
|
|
|
1035
1035
|
`${isNaN(e.volume) ? "-" : e.volume.toLocaleString()}`
|
|
1036
1036
|
];
|
|
1037
1037
|
}), n = Q.value.map((e, n) => [
|
|
1038
|
-
|
|
1038
|
+
N.value.xAxis.dataLabels.datetimeFormatter.enable ? $.value?.[n]?.text ?? "" : e.period,
|
|
1039
1039
|
t({
|
|
1040
|
-
p:
|
|
1040
|
+
p: j.value.table.td.prefix,
|
|
1041
1041
|
v: e.open.value,
|
|
1042
|
-
s:
|
|
1043
|
-
r:
|
|
1042
|
+
s: j.value.table.td.suffix,
|
|
1043
|
+
r: j.value.table.td.roundingValue
|
|
1044
1044
|
}),
|
|
1045
1045
|
t({
|
|
1046
|
-
p:
|
|
1046
|
+
p: j.value.table.td.prefix,
|
|
1047
1047
|
v: e.high.value,
|
|
1048
|
-
s:
|
|
1049
|
-
r:
|
|
1048
|
+
s: j.value.table.td.suffix,
|
|
1049
|
+
r: j.value.table.td.roundingValue
|
|
1050
1050
|
}),
|
|
1051
1051
|
t({
|
|
1052
|
-
p:
|
|
1052
|
+
p: j.value.table.td.prefix,
|
|
1053
1053
|
v: e.low.value,
|
|
1054
|
-
s:
|
|
1055
|
-
r:
|
|
1054
|
+
s: j.value.table.td.suffix,
|
|
1055
|
+
r: j.value.table.td.roundingValue
|
|
1056
1056
|
}),
|
|
1057
1057
|
t({
|
|
1058
|
-
p:
|
|
1058
|
+
p: j.value.table.td.prefix,
|
|
1059
1059
|
v: e.close.value,
|
|
1060
|
-
s:
|
|
1061
|
-
r:
|
|
1060
|
+
s: j.value.table.td.suffix,
|
|
1061
|
+
r: j.value.table.td.roundingValue
|
|
1062
1062
|
}),
|
|
1063
1063
|
`${isNaN(e.volume) ? "-" : e.volume}`
|
|
1064
1064
|
]), r = {
|
|
1065
1065
|
th: {
|
|
1066
|
-
backgroundColor:
|
|
1067
|
-
color:
|
|
1068
|
-
outline:
|
|
1066
|
+
backgroundColor: j.value.table.th.backgroundColor,
|
|
1067
|
+
color: j.value.table.th.color,
|
|
1068
|
+
outline: j.value.table.th.outline
|
|
1069
1069
|
},
|
|
1070
1070
|
td: {
|
|
1071
|
-
backgroundColor:
|
|
1072
|
-
color:
|
|
1073
|
-
outline:
|
|
1071
|
+
backgroundColor: j.value.table.td.backgroundColor,
|
|
1072
|
+
color: j.value.table.td.color,
|
|
1073
|
+
outline: j.value.table.td.outline
|
|
1074
1074
|
},
|
|
1075
|
-
breakpoint:
|
|
1075
|
+
breakpoint: j.value.table.responsiveBreakpoint
|
|
1076
1076
|
}, i = [
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1077
|
+
j.value.translations.period,
|
|
1078
|
+
j.value.translations.open,
|
|
1079
|
+
j.value.translations.high,
|
|
1080
|
+
j.value.translations.low,
|
|
1081
|
+
j.value.translations.last,
|
|
1082
|
+
j.value.translations.volume
|
|
1083
1083
|
];
|
|
1084
1084
|
return {
|
|
1085
1085
|
head: i,
|
|
@@ -1093,40 +1093,40 @@ var Ze = /* @__PURE__ */ e({ default: () => Mt }), Qe = ["id"], $e = ["id"], et
|
|
|
1093
1093
|
Lr.value = e, qt.value += 1;
|
|
1094
1094
|
}
|
|
1095
1095
|
function zr() {
|
|
1096
|
-
|
|
1096
|
+
V.value.showTable = !V.value.showTable;
|
|
1097
1097
|
}
|
|
1098
1098
|
function Br() {
|
|
1099
|
-
|
|
1099
|
+
V.value.showTooltip = !V.value.showTooltip;
|
|
1100
1100
|
}
|
|
1101
1101
|
let Vr = b(!1);
|
|
1102
1102
|
function Hr() {
|
|
1103
1103
|
Vr.value = !Vr.value;
|
|
1104
1104
|
}
|
|
1105
1105
|
async function Ur({ scale: e = 2 } = {}) {
|
|
1106
|
-
if (!
|
|
1106
|
+
if (!Jt.value) return;
|
|
1107
1107
|
let { imageUri: t, base64: n } = await we({
|
|
1108
|
-
domElement:
|
|
1108
|
+
domElement: Jt.value,
|
|
1109
1109
|
base64: !0,
|
|
1110
1110
|
img: !0,
|
|
1111
1111
|
scale: e
|
|
1112
|
-
}), r =
|
|
1112
|
+
}), r = Jt.value.getBoundingClientRect(), i = {
|
|
1113
1113
|
width: r.width,
|
|
1114
1114
|
height: r.height,
|
|
1115
1115
|
aspectRatio: r.height ? r.width / r.height : 0
|
|
1116
|
-
}, a = await
|
|
1116
|
+
}, a = await c(t, e) ?? i;
|
|
1117
1117
|
return {
|
|
1118
1118
|
imageUri: t,
|
|
1119
1119
|
base64: n,
|
|
1120
|
-
title:
|
|
1120
|
+
title: F.value.title.text,
|
|
1121
1121
|
...a
|
|
1122
1122
|
};
|
|
1123
1123
|
}
|
|
1124
|
-
let Wr = f(() =>
|
|
1124
|
+
let Wr = f(() => B.value.width), Gr = f(() => B.value.height);
|
|
1125
1125
|
Ce({
|
|
1126
|
-
timeLabelsEls:
|
|
1126
|
+
timeLabelsEls: an,
|
|
1127
1127
|
timeLabels: $,
|
|
1128
|
-
slicer:
|
|
1129
|
-
configRef:
|
|
1128
|
+
slicer: W,
|
|
1129
|
+
configRef: j,
|
|
1130
1130
|
rotationPath: [
|
|
1131
1131
|
"style",
|
|
1132
1132
|
"layout",
|
|
@@ -1145,63 +1145,63 @@ var Ze = /* @__PURE__ */ e({ default: () => Mt }), Qe = ["id"], $e = ["id"], et
|
|
|
1145
1145
|
"enable"
|
|
1146
1146
|
],
|
|
1147
1147
|
isAutoSize: !1,
|
|
1148
|
-
rotation:
|
|
1148
|
+
rotation: N.value.xAxis.dataLabels.autoRotate.angle,
|
|
1149
1149
|
width: Wr,
|
|
1150
1150
|
height: Gr
|
|
1151
|
-
}), Ye(
|
|
1152
|
-
|
|
1153
|
-
showTable:
|
|
1154
|
-
showTooltip:
|
|
1151
|
+
}), Ye(j, () => {
|
|
1152
|
+
V.value = {
|
|
1153
|
+
showTable: j.value.table.show,
|
|
1154
|
+
showTooltip: F.value.tooltip.show
|
|
1155
1155
|
};
|
|
1156
1156
|
}, { immediate: !0 });
|
|
1157
1157
|
let Kr = f(() => {
|
|
1158
|
-
let e =
|
|
1158
|
+
let e = j.value.table.useDialog && !j.value.table.show, t = V.value.showTable;
|
|
1159
1159
|
return {
|
|
1160
1160
|
component: e ? zt : Pt,
|
|
1161
|
-
title: `${
|
|
1161
|
+
title: `${F.value.title.text}${F.value.title.subtitle.text ? `: ${F.value.title.subtitle.text}` : ""}`,
|
|
1162
1162
|
props: e ? {
|
|
1163
|
-
backgroundColor:
|
|
1164
|
-
color:
|
|
1165
|
-
headerColor:
|
|
1166
|
-
headerBg:
|
|
1163
|
+
backgroundColor: j.value.table.th.backgroundColor,
|
|
1164
|
+
color: j.value.table.th.color,
|
|
1165
|
+
headerColor: j.value.table.th.color,
|
|
1166
|
+
headerBg: j.value.table.th.backgroundColor,
|
|
1167
1167
|
isFullscreen: Lr.value,
|
|
1168
|
-
fullscreenParent:
|
|
1168
|
+
fullscreenParent: Jt.value,
|
|
1169
1169
|
forcedWidth: Math.min(800, window.innerWidth * .8),
|
|
1170
|
-
isCursorPointer:
|
|
1170
|
+
isCursorPointer: pn.value
|
|
1171
1171
|
} : {
|
|
1172
1172
|
hideDetails: !0,
|
|
1173
1173
|
config: {
|
|
1174
1174
|
open: t,
|
|
1175
1175
|
maxHeight: 1e4,
|
|
1176
1176
|
body: {
|
|
1177
|
-
backgroundColor:
|
|
1178
|
-
color:
|
|
1177
|
+
backgroundColor: F.value.backgroundColor,
|
|
1178
|
+
color: F.value.color
|
|
1179
1179
|
},
|
|
1180
1180
|
head: {
|
|
1181
|
-
backgroundColor:
|
|
1182
|
-
color:
|
|
1181
|
+
backgroundColor: F.value.backgroundColor,
|
|
1182
|
+
color: F.value.color
|
|
1183
1183
|
}
|
|
1184
1184
|
}
|
|
1185
1185
|
}
|
|
1186
1186
|
};
|
|
1187
1187
|
});
|
|
1188
|
-
Ye(() =>
|
|
1189
|
-
|
|
1188
|
+
Ye(() => V.value.showTable, (e) => {
|
|
1189
|
+
j.value.table.show || (e && j.value.table.useDialog && on.value ? on.value.open() : "close" in on.value && on.value.close());
|
|
1190
1190
|
});
|
|
1191
1191
|
function qr() {
|
|
1192
|
-
|
|
1192
|
+
V.value.showTable = !1, sn.value && sn.value.setTableIconState(!1);
|
|
1193
1193
|
}
|
|
1194
|
-
let Jr = f(() =>
|
|
1195
|
-
svg:
|
|
1194
|
+
let Jr = f(() => F.value.backgroundColor), Yr = f(() => F.value.title), { isCallbackImaging: Xr, isCallbackSvg: Zr, generateSvg: Qr, onGenerateImage: $r } = xe({
|
|
1195
|
+
svg: z,
|
|
1196
1196
|
title: Yr,
|
|
1197
1197
|
legend: null,
|
|
1198
1198
|
legendItems: null,
|
|
1199
1199
|
backgroundColor: Jr,
|
|
1200
|
-
getSvgCallback: () =>
|
|
1201
|
-
generateImage:
|
|
1200
|
+
getSvgCallback: () => j.value.userOptions.callbacks.svg,
|
|
1201
|
+
generateImage: jn
|
|
1202
1202
|
});
|
|
1203
1203
|
function ei(e) {
|
|
1204
|
-
|
|
1204
|
+
cn.value = e;
|
|
1205
1205
|
}
|
|
1206
1206
|
function ti(e) {
|
|
1207
1207
|
Kn = {
|
|
@@ -1209,12 +1209,12 @@ var Ze = /* @__PURE__ */ e({ default: () => Mt }), Qe = ["id"], $e = ["id"], et
|
|
|
1209
1209
|
...e
|
|
1210
1210
|
}, Gn && cancelAnimationFrame(Gn), Gn = requestAnimationFrame(() => {
|
|
1211
1211
|
let e = {
|
|
1212
|
-
...
|
|
1212
|
+
...W.value,
|
|
1213
1213
|
...Kn
|
|
1214
1214
|
};
|
|
1215
|
-
Kn = {}, Gn = null,
|
|
1216
|
-
start: Number(
|
|
1217
|
-
end: Number(
|
|
1215
|
+
Kn = {}, Gn = null, W.value = e, G.value = { ...e }, er(), Xn({
|
|
1216
|
+
start: Number(W.value.start),
|
|
1217
|
+
end: Number(W.value.end)
|
|
1218
1218
|
});
|
|
1219
1219
|
});
|
|
1220
1220
|
}
|
|
@@ -1224,18 +1224,18 @@ var Ze = /* @__PURE__ */ e({ default: () => Mt }), Qe = ["id"], $e = ["id"], et
|
|
|
1224
1224
|
Number.isFinite(t) && (E("zoomStart", {
|
|
1225
1225
|
index: t,
|
|
1226
1226
|
isZoom: t !== 0
|
|
1227
|
-
}), t !==
|
|
1227
|
+
}), t !== W.value.start && ti({ start: t }));
|
|
1228
1228
|
}
|
|
1229
1229
|
function ri(e) {
|
|
1230
1230
|
if (Ar.value || Mr.value) return;
|
|
1231
|
-
let t = Kn.start === void 0 ?
|
|
1231
|
+
let t = Kn.start === void 0 ? W.value.start : Kn.start, n = Pr(Number(e), t);
|
|
1232
1232
|
Number.isFinite(n) && (E("zoomEnd", {
|
|
1233
1233
|
index: n,
|
|
1234
|
-
isZoom: n !==
|
|
1235
|
-
}), (n !==
|
|
1234
|
+
isZoom: n !== U.value
|
|
1235
|
+
}), (n !== W.value.end || Kn.start !== void 0) && ti({ end: n }));
|
|
1236
1236
|
}
|
|
1237
1237
|
function ii(e) {
|
|
1238
|
-
let t =
|
|
1238
|
+
let t = z.value;
|
|
1239
1239
|
if (!t) return null;
|
|
1240
1240
|
if (t.createSVGPoint && t.getScreenCTM) {
|
|
1241
1241
|
let n = t.createSVGPoint();
|
|
@@ -1262,34 +1262,34 @@ var Ze = /* @__PURE__ */ e({ default: () => Mt }), Qe = ["id"], $e = ["id"], et
|
|
|
1262
1262
|
y: (e.clientY - n.top - c) / i + r.y
|
|
1263
1263
|
};
|
|
1264
1264
|
}
|
|
1265
|
-
let ai = f(() => !
|
|
1266
|
-
x: Math.min(
|
|
1267
|
-
y:
|
|
1268
|
-
width: Math.abs(
|
|
1269
|
-
height:
|
|
1270
|
-
}), oi = f(() => jr.value ? Number(
|
|
1265
|
+
let ai = f(() => !zn.value || Vn.value == null || K.value == null ? null : {
|
|
1266
|
+
x: Math.min(Vn.value, K.value),
|
|
1267
|
+
y: H.value.top,
|
|
1268
|
+
width: Math.abs(K.value - Vn.value),
|
|
1269
|
+
height: H.value.height
|
|
1270
|
+
}), oi = f(() => jr.value ? Number(W.value.start) !== 0 || Number(W.value.end) !== Number(U.value) : !1);
|
|
1271
1271
|
function si(e) {
|
|
1272
|
-
return Math.min(Math.max(e,
|
|
1272
|
+
return Math.min(Math.max(e, H.value.left), H.value.right);
|
|
1273
1273
|
}
|
|
1274
1274
|
function ci() {
|
|
1275
|
-
k.value = void 0,
|
|
1275
|
+
k.value = void 0, A.value = null, un.value = "pointer", Gt.value = !1, cn.value = null;
|
|
1276
1276
|
}
|
|
1277
1277
|
function li(e) {
|
|
1278
|
-
let t = e?.pointerId == null ?
|
|
1279
|
-
t != null &&
|
|
1278
|
+
let t = e?.pointerId == null ? q.value : e.pointerId;
|
|
1279
|
+
t != null && z.value?.hasPointerCapture?.(t) && z.value.releasePointerCapture(t), zn.value = !1, Vn.value = null, K.value = null, q.value = null;
|
|
1280
1280
|
}
|
|
1281
1281
|
function ui() {
|
|
1282
|
-
|
|
1283
|
-
|
|
1282
|
+
Hn.value = !0, setTimeout(() => {
|
|
1283
|
+
Hn.value = !1;
|
|
1284
1284
|
}, 0);
|
|
1285
1285
|
}
|
|
1286
1286
|
function di(e) {
|
|
1287
|
-
|
|
1287
|
+
Hn.value && (Hn.value = !1, e.preventDefault(), e.stopPropagation());
|
|
1288
1288
|
}
|
|
1289
1289
|
function fi(e) {
|
|
1290
|
-
if (!
|
|
1291
|
-
let t = Date.now(), n = e.pointerType || "mouse", r =
|
|
1292
|
-
return r.time > 0 && r.pointerType === n && t - r.time <= i && o <= a ? (
|
|
1290
|
+
if (!J.value || !oi.value || !e) return !1;
|
|
1291
|
+
let t = Date.now(), n = e.pointerType || "mouse", r = Un.value, i = n === "touch" ? 450 : 350, a = n === "touch" ? 28 : 10, o = Math.hypot(e.clientX - r.x, e.clientY - r.y);
|
|
1292
|
+
return r.time > 0 && r.pointerType === n && t - r.time <= i && o <= a ? (Un.value = {
|
|
1293
1293
|
time: 0,
|
|
1294
1294
|
x: 0,
|
|
1295
1295
|
y: 0,
|
|
@@ -1297,7 +1297,7 @@ var Ze = /* @__PURE__ */ e({ default: () => Mt }), Qe = ["id"], $e = ["id"], et
|
|
|
1297
1297
|
}, ui(), li(e), kr({
|
|
1298
1298
|
force: !0,
|
|
1299
1299
|
publish: !0
|
|
1300
|
-
}), !0) : (
|
|
1300
|
+
}), !0) : (Un.value = {
|
|
1301
1301
|
time: t,
|
|
1302
1302
|
x: e.clientX,
|
|
1303
1303
|
y: e.clientY,
|
|
@@ -1305,9 +1305,9 @@ var Ze = /* @__PURE__ */ e({ default: () => Mt }), Qe = ["id"], $e = ["id"], et
|
|
|
1305
1305
|
}, !1);
|
|
1306
1306
|
}
|
|
1307
1307
|
function pi(e) {
|
|
1308
|
-
let t = Number(
|
|
1308
|
+
let t = Number(W.value.end) - Number(W.value.start);
|
|
1309
1309
|
if (t <= 0 || !Number.isFinite(X.value) || X.value <= 0) return null;
|
|
1310
|
-
let n = Math.floor((si(e) -
|
|
1310
|
+
let n = Math.floor((si(e) - H.value.left) / X.value);
|
|
1311
1311
|
return Math.max(0, Math.min(t - 1, n));
|
|
1312
1312
|
}
|
|
1313
1313
|
function mi(e, t) {
|
|
@@ -1315,8 +1315,8 @@ var Ze = /* @__PURE__ */ e({ default: () => Mt }), Qe = ["id"], $e = ["id"], et
|
|
|
1315
1315
|
if (n == null || r == null) return null;
|
|
1316
1316
|
let i = Math.min(n, r), a = Math.max(n, r);
|
|
1317
1317
|
return a <= i ? null : {
|
|
1318
|
-
start: Number(
|
|
1319
|
-
end: Number(
|
|
1318
|
+
start: Number(W.value.start) + i,
|
|
1319
|
+
end: Number(W.value.start) + a + 1
|
|
1320
1320
|
};
|
|
1321
1321
|
}
|
|
1322
1322
|
function hi(e) {
|
|
@@ -1326,30 +1326,30 @@ var Ze = /* @__PURE__ */ e({ default: () => Mt }), Qe = ["id"], $e = ["id"], et
|
|
|
1326
1326
|
isZoom: t.start !== 0
|
|
1327
1327
|
}), E("zoomEnd", {
|
|
1328
1328
|
index: t.end,
|
|
1329
|
-
isZoom: t.end !==
|
|
1329
|
+
isZoom: t.end !== U.value
|
|
1330
1330
|
}), t) : null;
|
|
1331
1331
|
}
|
|
1332
1332
|
function gi(e) {
|
|
1333
|
-
if (!
|
|
1333
|
+
if (!J.value || Vr.value || e.button !== void 0 && e.button !== 0 || q.value != null && e.pointerId !== q.value) return;
|
|
1334
1334
|
let t = ii(e);
|
|
1335
1335
|
if (!t) return;
|
|
1336
|
-
let { left: n, right: r, top: i, bottom: a } =
|
|
1337
|
-
if (t.x < n || t.x > r || t.y < i || t.y > a || Number(
|
|
1338
|
-
|
|
1336
|
+
let { left: n, right: r, top: i, bottom: a } = H.value;
|
|
1337
|
+
if (t.x < n || t.x > r || t.y < i || t.y > a || Number(W.value.end) - Number(W.value.start) <= 1) return;
|
|
1338
|
+
Bn.value = !0, z.value?.focus?.({ preventScroll: !0 }), ci();
|
|
1339
1339
|
let o = si(t.x);
|
|
1340
|
-
|
|
1340
|
+
q.value = e.pointerId, zn.value = !0, Vn.value = o, K.value = o;
|
|
1341
1341
|
}
|
|
1342
1342
|
function _i(e) {
|
|
1343
|
-
if (!
|
|
1343
|
+
if (!J.value || !zn.value || q.value != null && e.pointerId !== q.value) return;
|
|
1344
1344
|
let t = ii(e);
|
|
1345
|
-
t && (
|
|
1345
|
+
t && (K.value = si(t.x), ci(), Vn.value != null && Math.abs(K.value - Vn.value) >= 2 && !z.value?.hasPointerCapture?.(e.pointerId) && z.value?.setPointerCapture?.(e.pointerId));
|
|
1346
1346
|
}
|
|
1347
1347
|
function vi(e) {
|
|
1348
|
-
if (!
|
|
1348
|
+
if (!J.value || !zn.value || q.value != null && e.pointerId !== q.value) return;
|
|
1349
1349
|
let t = ii(e);
|
|
1350
|
-
t && (
|
|
1351
|
-
let n =
|
|
1352
|
-
if ((n == null || r == null ? 0 : Math.abs(r - n)) < Math.max(4,
|
|
1350
|
+
t && (K.value = si(t.x));
|
|
1351
|
+
let n = Vn.value, r = K.value;
|
|
1352
|
+
if ((n == null || r == null ? 0 : Math.abs(r - n)) < Math.max(4, H.value.width * .01)) {
|
|
1353
1353
|
if (fi(e)) return;
|
|
1354
1354
|
li(e);
|
|
1355
1355
|
return;
|
|
@@ -1359,7 +1359,7 @@ var Ze = /* @__PURE__ */ e({ default: () => Mt }), Qe = ["id"], $e = ["id"], et
|
|
|
1359
1359
|
li(e);
|
|
1360
1360
|
return;
|
|
1361
1361
|
}
|
|
1362
|
-
li(e), hi(i) && (
|
|
1362
|
+
li(e), hi(i) && (Un.value = {
|
|
1363
1363
|
time: 0,
|
|
1364
1364
|
x: 0,
|
|
1365
1365
|
y: 0,
|
|
@@ -1367,7 +1367,7 @@ var Ze = /* @__PURE__ */ e({ default: () => Mt }), Qe = ["id"], $e = ["id"], et
|
|
|
1367
1367
|
}, ci(), ui());
|
|
1368
1368
|
}
|
|
1369
1369
|
function yi({ seriesIndex: e, datapoint: t }) {
|
|
1370
|
-
let n =
|
|
1370
|
+
let n = W.value.start + e;
|
|
1371
1371
|
E("selectX", {
|
|
1372
1372
|
dataset: t,
|
|
1373
1373
|
index: n,
|
|
@@ -1376,56 +1376,56 @@ var Ze = /* @__PURE__ */ e({ default: () => Mt }), Qe = ["id"], $e = ["id"], et
|
|
|
1376
1376
|
}
|
|
1377
1377
|
async function bi() {
|
|
1378
1378
|
if (E("copyAlt", {
|
|
1379
|
-
config:
|
|
1379
|
+
config: j.value,
|
|
1380
1380
|
dataset: Q.value
|
|
1381
|
-
}), !
|
|
1381
|
+
}), !j.value.userOptions.callbacks.altCopy) {
|
|
1382
1382
|
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
1383
1383
|
return;
|
|
1384
1384
|
}
|
|
1385
|
-
await Promise.resolve(
|
|
1386
|
-
config:
|
|
1385
|
+
await Promise.resolve(j.value.userOptions.callbacks.altCopy({
|
|
1386
|
+
config: j.value,
|
|
1387
1387
|
dataset: Q.value
|
|
1388
1388
|
}));
|
|
1389
1389
|
}
|
|
1390
1390
|
function xi() {
|
|
1391
|
-
|
|
1391
|
+
A.value = null, dn.value = !0;
|
|
1392
1392
|
}
|
|
1393
1393
|
function Si() {
|
|
1394
|
-
|
|
1394
|
+
Bn.value = !1, A.value = null, un.value = "pointer", Gt.value = !1, k.value = void 0, dn.value = !1;
|
|
1395
1395
|
}
|
|
1396
1396
|
function Ci(e) {
|
|
1397
|
-
if (!
|
|
1397
|
+
if (!z.value || Vr.value || document.activeElement !== z.value || (Bn.value = !1, !Q.value.length)) return;
|
|
1398
1398
|
let t = e.key === "ArrowLeft", n = e.key === "ArrowRight", r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
1399
1399
|
if (!t && !n && !r && !i) return;
|
|
1400
1400
|
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
1401
|
-
if (
|
|
1401
|
+
if (J.value && (oi.value || zn.value)) {
|
|
1402
1402
|
li(), kr({
|
|
1403
1403
|
force: !0,
|
|
1404
1404
|
publish: !0
|
|
1405
1405
|
});
|
|
1406
1406
|
return;
|
|
1407
1407
|
}
|
|
1408
|
-
|
|
1408
|
+
A.value = null, un.value = "pointer", Gt.value = !1, k.value = void 0;
|
|
1409
1409
|
return;
|
|
1410
1410
|
}
|
|
1411
1411
|
if (r) {
|
|
1412
|
-
if (
|
|
1413
|
-
let e = Q.value[
|
|
1412
|
+
if (A.value === null) return;
|
|
1413
|
+
let e = Q.value[A.value];
|
|
1414
1414
|
if (!e) return;
|
|
1415
|
-
wr(
|
|
1415
|
+
wr(A.value, e);
|
|
1416
1416
|
return;
|
|
1417
1417
|
}
|
|
1418
|
-
let a =
|
|
1418
|
+
let a = A.value, o = k.value, s = a !== null && a >= 0 && a < Q.value.length, c = o != null && o >= 0 && o < Q.value.length;
|
|
1419
1419
|
s ? n ? (a += 1, a >= Q.value.length && (a = 0)) : t && (--a, a < 0 && (a = Q.value.length - 1)) : c ? (a = n ? o + 1 : o - 1, a >= Q.value.length && (a = 0), a < 0 && (a = Q.value.length - 1)) : a = n ? 0 : Q.value.length - 1;
|
|
1420
1420
|
let l = Q.value[a];
|
|
1421
1421
|
l && (wi(a), Er(a, l, "keyboard"));
|
|
1422
1422
|
}
|
|
1423
1423
|
function wi(e) {
|
|
1424
|
-
if (!Number.isFinite(e) || !
|
|
1425
|
-
let t =
|
|
1426
|
-
|
|
1427
|
-
x: r.left + t /
|
|
1428
|
-
y: r.top + n /
|
|
1424
|
+
if (!Number.isFinite(e) || !z.value) return;
|
|
1425
|
+
let t = H.value.left + X.value * e + X.value / 2, n = H.value.top + H.value.height / 2, r = z.value.getBoundingClientRect();
|
|
1426
|
+
ln.value = {
|
|
1427
|
+
x: r.left + t / B.value.width * r.width,
|
|
1428
|
+
y: r.top + n / B.value.height * r.height
|
|
1429
1429
|
};
|
|
1430
1430
|
}
|
|
1431
1431
|
let Ti = f(() => ({
|
|
@@ -1434,9 +1434,9 @@ var Ze = /* @__PURE__ */ e({ default: () => Mt }), Qe = ["id"], $e = ["id"], et
|
|
|
1434
1434
|
}));
|
|
1435
1435
|
return Ee({
|
|
1436
1436
|
getImage: Ur,
|
|
1437
|
-
generatePdf:
|
|
1437
|
+
generatePdf: An,
|
|
1438
1438
|
generateCsv: Fr,
|
|
1439
|
-
generateImage:
|
|
1439
|
+
generateImage: jn,
|
|
1440
1440
|
generateSvg: Qr,
|
|
1441
1441
|
toggleTable: zr,
|
|
1442
1442
|
toggleTooltip: Br,
|
|
@@ -1450,24 +1450,24 @@ var Ze = /* @__PURE__ */ e({ default: () => Mt }), Qe = ["id"], $e = ["id"], et
|
|
|
1450
1450
|
setZoomState: $n
|
|
1451
1451
|
}), (e, n) => (y(), m("div", {
|
|
1452
1452
|
ref_key: "candlestickChart",
|
|
1453
|
-
ref:
|
|
1454
|
-
class: _(`vue-data-ui-component vue-ui-candlestick ${Lr.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${
|
|
1455
|
-
style: He(`position:relative;font-family:${
|
|
1453
|
+
ref: Jt,
|
|
1454
|
+
class: _(`vue-data-ui-component vue-ui-candlestick ${Lr.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${j.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
1455
|
+
style: He(`position:relative;font-family:${F.value.fontFamily}; text-align:center;background:${F.value.backgroundColor}; ${j.value.responsive ? "height: 100%" : ""}`),
|
|
1456
1456
|
id: `vue-ui-candlestick_${O.value}`,
|
|
1457
|
-
onMouseenter:
|
|
1458
|
-
onMouseleave:
|
|
1457
|
+
onMouseenter: yn,
|
|
1458
|
+
onMouseleave: bn
|
|
1459
1459
|
}, [
|
|
1460
1460
|
h("div", {
|
|
1461
1461
|
id: `chart-instructions-${O.value}`,
|
|
1462
1462
|
class: "sr-only"
|
|
1463
|
-
}, [h("p", null, qe(
|
|
1463
|
+
}, [h("p", null, qe(j.value.a11y.translations.keyboardNavigation), 1)], 8, $e),
|
|
1464
1464
|
Ti.value?.rows?.length ? (y(), Fe(je, {
|
|
1465
1465
|
key: 0,
|
|
1466
1466
|
uid: O.value,
|
|
1467
1467
|
head: Ti.value.headers,
|
|
1468
1468
|
body: Ti.value.rows,
|
|
1469
|
-
notice:
|
|
1470
|
-
caption:
|
|
1469
|
+
notice: j.value.a11y.translations.tableAvailable,
|
|
1470
|
+
caption: j.value.a11y.translations.tableCaption
|
|
1471
1471
|
}, null, 8, [
|
|
1472
1472
|
"uid",
|
|
1473
1473
|
"head",
|
|
@@ -1475,14 +1475,14 @@ var Ze = /* @__PURE__ */ e({ default: () => Mt }), Qe = ["id"], $e = ["id"], et
|
|
|
1475
1475
|
"notice",
|
|
1476
1476
|
"caption"
|
|
1477
1477
|
])) : p("", !0),
|
|
1478
|
-
|
|
1478
|
+
I.value.buttons.annotator ? (y(), Fe(C(It), {
|
|
1479
1479
|
key: 1,
|
|
1480
|
-
svgRef: C(
|
|
1481
|
-
backgroundColor:
|
|
1482
|
-
color:
|
|
1480
|
+
svgRef: C(z),
|
|
1481
|
+
backgroundColor: F.value.backgroundColor,
|
|
1482
|
+
color: F.value.color,
|
|
1483
1483
|
active: Vr.value,
|
|
1484
|
-
isCursorPointer:
|
|
1485
|
-
palette:
|
|
1484
|
+
isCursorPointer: pn.value,
|
|
1485
|
+
palette: I.value.annotatorPalette,
|
|
1486
1486
|
onClose: Hr
|
|
1487
1487
|
}, {
|
|
1488
1488
|
"annotator-action-close": w(() => [S(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
@@ -1500,61 +1500,61 @@ var Ze = /* @__PURE__ */ e({ default: () => Mt }), Qe = ["id"], $e = ["id"], et
|
|
|
1500
1500
|
"isCursorPointer",
|
|
1501
1501
|
"palette"
|
|
1502
1502
|
])) : p("", !0),
|
|
1503
|
-
|
|
1503
|
+
Mn.value ? (y(), m("div", {
|
|
1504
1504
|
key: 2,
|
|
1505
1505
|
ref_key: "noTitle",
|
|
1506
|
-
ref:
|
|
1506
|
+
ref: $t,
|
|
1507
1507
|
class: "vue-data-ui-no-title-space",
|
|
1508
1508
|
style: "height:36px; width: 100%;background:transparent"
|
|
1509
1509
|
}, null, 512)) : p("", !0),
|
|
1510
|
-
|
|
1510
|
+
F.value.title.text ? (y(), m("div", {
|
|
1511
1511
|
key: 3,
|
|
1512
1512
|
ref_key: "chartTitle",
|
|
1513
|
-
ref:
|
|
1513
|
+
ref: Yt,
|
|
1514
1514
|
style: "width:100%;background:transparent"
|
|
1515
1515
|
}, [(y(), Fe(Te, {
|
|
1516
|
-
key: `title_${
|
|
1516
|
+
key: `title_${nn.value}`,
|
|
1517
1517
|
config: {
|
|
1518
1518
|
title: {
|
|
1519
1519
|
cy: "candlestick-div-title",
|
|
1520
|
-
...
|
|
1520
|
+
...F.value.title
|
|
1521
1521
|
},
|
|
1522
1522
|
subtitle: {
|
|
1523
1523
|
cy: "candlestick-div-subtitle",
|
|
1524
|
-
...
|
|
1524
|
+
...F.value.title.subtitle
|
|
1525
1525
|
}
|
|
1526
1526
|
}
|
|
1527
1527
|
}, null, 8, ["config"]))], 512)) : p("", !0),
|
|
1528
|
-
|
|
1528
|
+
I.value.show && Ut.value && (C(vn) || C(gn)) ? (y(), Fe(C(Lt), {
|
|
1529
1529
|
ref_key: "userOptionsRef",
|
|
1530
|
-
ref:
|
|
1530
|
+
ref: sn,
|
|
1531
1531
|
key: `user_options_${qt.value}`,
|
|
1532
|
-
backgroundColor:
|
|
1533
|
-
color:
|
|
1534
|
-
isImaging: C(
|
|
1535
|
-
isPrinting: C(
|
|
1532
|
+
backgroundColor: F.value.backgroundColor,
|
|
1533
|
+
color: F.value.color,
|
|
1534
|
+
isImaging: C(kn),
|
|
1535
|
+
isPrinting: C(On),
|
|
1536
1536
|
uid: O.value,
|
|
1537
|
-
hasTooltip:
|
|
1538
|
-
hasPdf:
|
|
1539
|
-
hasImg:
|
|
1540
|
-
hasSvg:
|
|
1541
|
-
hasXls:
|
|
1542
|
-
hasTable:
|
|
1543
|
-
hasFullscreen:
|
|
1544
|
-
hasAltCopy:
|
|
1537
|
+
hasTooltip: I.value.buttons.tooltip && F.value.tooltip.show,
|
|
1538
|
+
hasPdf: I.value.buttons.pdf,
|
|
1539
|
+
hasImg: I.value.buttons.img,
|
|
1540
|
+
hasSvg: I.value.buttons.svg,
|
|
1541
|
+
hasXls: I.value.buttons.csv,
|
|
1542
|
+
hasTable: I.value.buttons.table,
|
|
1543
|
+
hasFullscreen: I.value.buttons.fullscreen,
|
|
1544
|
+
hasAltCopy: I.value.buttons.altCopy,
|
|
1545
1545
|
isFullscreen: Lr.value,
|
|
1546
|
-
isTooltip:
|
|
1547
|
-
titles: { ...
|
|
1548
|
-
chartElement:
|
|
1549
|
-
position:
|
|
1550
|
-
hasAnnotator:
|
|
1546
|
+
isTooltip: V.value.showTooltip,
|
|
1547
|
+
titles: { ...I.value.buttonTitles },
|
|
1548
|
+
chartElement: Jt.value,
|
|
1549
|
+
position: I.value.position,
|
|
1550
|
+
hasAnnotator: I.value.buttons.annotator,
|
|
1551
1551
|
isAnnotation: Vr.value,
|
|
1552
|
-
callbacks:
|
|
1553
|
-
printScale:
|
|
1554
|
-
tableDialog:
|
|
1555
|
-
isCursorPointer:
|
|
1552
|
+
callbacks: I.value.callbacks,
|
|
1553
|
+
printScale: I.value.print.scale,
|
|
1554
|
+
tableDialog: j.value.table.useDialog,
|
|
1555
|
+
isCursorPointer: pn.value,
|
|
1556
1556
|
onToggleFullscreen: Rr,
|
|
1557
|
-
onGeneratePdf: C(
|
|
1557
|
+
onGeneratePdf: C(An),
|
|
1558
1558
|
onGenerateCsv: Fr,
|
|
1559
1559
|
onGenerateImage: C($r),
|
|
1560
1560
|
onGenerateSvg: C(Qr),
|
|
@@ -1562,7 +1562,7 @@ var Ze = /* @__PURE__ */ e({ default: () => Mt }), Qe = ["id"], $e = ["id"], et
|
|
|
1562
1562
|
onToggleTooltip: Br,
|
|
1563
1563
|
onToggleAnnotator: Hr,
|
|
1564
1564
|
onCopyAlt: bi,
|
|
1565
|
-
style: He({ visibility: C(
|
|
1565
|
+
style: He({ visibility: C(vn) ? C(gn) ? "visible" : "hidden" : "visible" })
|
|
1566
1566
|
}, Ie({ _: 2 }, [
|
|
1567
1567
|
e.$slots.menuIcon ? {
|
|
1568
1568
|
name: "menuIcon",
|
|
@@ -1636,24 +1636,24 @@ var Ze = /* @__PURE__ */ e({ default: () => Mt }), Qe = ["id"], $e = ["id"], et
|
|
|
1636
1636
|
]), 1032, /* @__PURE__ */ "backgroundColor.color.isImaging.isPrinting.uid.hasTooltip.hasPdf.hasImg.hasSvg.hasXls.hasTable.hasFullscreen.hasAltCopy.isFullscreen.isTooltip.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.onGenerateImage.onGenerateSvg.style".split("."))) : p("", !0),
|
|
1637
1637
|
h("div", et, [(y(), m("svg", {
|
|
1638
1638
|
ref_key: "svgRef",
|
|
1639
|
-
ref:
|
|
1640
|
-
xmlns: C(
|
|
1639
|
+
ref: z,
|
|
1640
|
+
xmlns: C(oe),
|
|
1641
1641
|
"aria-describedby": `chart-instructions-${O.value}`,
|
|
1642
1642
|
class: _({
|
|
1643
1643
|
"vue-data-ui-fullscreen--on": Lr.value,
|
|
1644
1644
|
"vue-data-ui-fulscreen--off": !Lr.value,
|
|
1645
|
-
"vue-data-ui-no-transition": !C(
|
|
1646
|
-
"vue-ui-candlestick-chart-zoom-pointer-focus":
|
|
1645
|
+
"vue-data-ui-no-transition": !C(fn),
|
|
1646
|
+
"vue-ui-candlestick-chart-zoom-pointer-focus": J.value && Bn.value
|
|
1647
1647
|
}),
|
|
1648
|
-
viewBox: `0 0 ${
|
|
1648
|
+
viewBox: `0 0 ${B.value.width <= 0 ? 10 : B.value.width} ${B.value.height <= 0 ? 10 : B.value.height}`,
|
|
1649
1649
|
style: He({
|
|
1650
1650
|
maxWidth: "100%",
|
|
1651
1651
|
overflow: "visible",
|
|
1652
1652
|
background: "transparent",
|
|
1653
|
-
color:
|
|
1654
|
-
cursor:
|
|
1655
|
-
touchAction:
|
|
1656
|
-
userSelect:
|
|
1653
|
+
color: F.value.color,
|
|
1654
|
+
cursor: J.value ? zn.value ? "col-resize" : "crosshair" : void 0,
|
|
1655
|
+
touchAction: J.value ? "pan-y" : void 0,
|
|
1656
|
+
userSelect: J.value ? "none" : void 0
|
|
1657
1657
|
}),
|
|
1658
1658
|
tabindex: "0",
|
|
1659
1659
|
onFocus: xi,
|
|
@@ -1668,10 +1668,10 @@ var Ze = /* @__PURE__ */ e({ default: () => Mt }), Qe = ["id"], $e = ["id"], et
|
|
|
1668
1668
|
Re(C(Rt)),
|
|
1669
1669
|
e.$slots["chart-background"] ? (y(), m("foreignObject", {
|
|
1670
1670
|
key: 0,
|
|
1671
|
-
x:
|
|
1672
|
-
y:
|
|
1673
|
-
width: Math.max(.1,
|
|
1674
|
-
height: Math.max(.1,
|
|
1671
|
+
x: H.value.left,
|
|
1672
|
+
y: H.value.top,
|
|
1673
|
+
width: Math.max(.1, H.value.width),
|
|
1674
|
+
height: Math.max(.1, H.value.height),
|
|
1675
1675
|
style: { pointerEvents: "none" }
|
|
1676
1676
|
}, [S(e.$slots, "chart-background", {}, void 0, !0)], 8, nt)) : p("", !0),
|
|
1677
1677
|
Q.value.length > 0 ? (y(), m("g", rt, [
|
|
@@ -1683,17 +1683,17 @@ var Ze = /* @__PURE__ */ e({ default: () => Mt }), Qe = ["id"], $e = ["id"], et
|
|
|
1683
1683
|
stops: [
|
|
1684
1684
|
[
|
|
1685
1685
|
"0%",
|
|
1686
|
-
|
|
1686
|
+
M.value.colors.bearish,
|
|
1687
1687
|
1
|
|
1688
1688
|
],
|
|
1689
1689
|
[
|
|
1690
1690
|
"50%",
|
|
1691
|
-
C(
|
|
1691
|
+
C(o)(M.value.colors.bearish, .02),
|
|
1692
1692
|
.87
|
|
1693
1693
|
],
|
|
1694
1694
|
[
|
|
1695
1695
|
"100%",
|
|
1696
|
-
C(
|
|
1696
|
+
C(o)(M.value.colors.bearish, .05),
|
|
1697
1697
|
.4
|
|
1698
1698
|
]
|
|
1699
1699
|
]
|
|
@@ -1705,207 +1705,207 @@ var Ze = /* @__PURE__ */ e({ default: () => Mt }), Qe = ["id"], $e = ["id"], et
|
|
|
1705
1705
|
stops: [
|
|
1706
1706
|
[
|
|
1707
1707
|
"0%",
|
|
1708
|
-
|
|
1708
|
+
M.value.colors.bullish,
|
|
1709
1709
|
1
|
|
1710
1710
|
],
|
|
1711
1711
|
[
|
|
1712
1712
|
"50%",
|
|
1713
|
-
C(
|
|
1713
|
+
C(o)(M.value.colors.bullish, .02),
|
|
1714
1714
|
.87
|
|
1715
1715
|
],
|
|
1716
1716
|
[
|
|
1717
1717
|
"100%",
|
|
1718
|
-
C(
|
|
1718
|
+
C(o)(M.value.colors.bullish, .05),
|
|
1719
1719
|
.4
|
|
1720
1720
|
]
|
|
1721
1721
|
]
|
|
1722
1722
|
}, null, 8, ["id", "stops"])]),
|
|
1723
|
-
|
|
1723
|
+
N.value.show ? (y(), m("g", it, [
|
|
1724
1724
|
h("line", {
|
|
1725
|
-
x1:
|
|
1726
|
-
x2:
|
|
1727
|
-
y1:
|
|
1728
|
-
y2:
|
|
1729
|
-
stroke:
|
|
1730
|
-
"stroke-width":
|
|
1725
|
+
x1: In.value ? H.value.right : H.value.left,
|
|
1726
|
+
x2: In.value ? H.value.right : H.value.left,
|
|
1727
|
+
y1: H.value.top,
|
|
1728
|
+
y2: H.value.bottom,
|
|
1729
|
+
stroke: N.value.stroke,
|
|
1730
|
+
"stroke-width": N.value.strokeWidth,
|
|
1731
1731
|
"stroke-linecap": "round"
|
|
1732
1732
|
}, null, 8, at),
|
|
1733
1733
|
h("line", {
|
|
1734
|
-
x1:
|
|
1735
|
-
x2:
|
|
1736
|
-
y1:
|
|
1737
|
-
y2:
|
|
1738
|
-
stroke:
|
|
1739
|
-
"stroke-width":
|
|
1734
|
+
x1: H.value.left,
|
|
1735
|
+
x2: H.value.right,
|
|
1736
|
+
y1: H.value.bottom,
|
|
1737
|
+
y2: H.value.bottom,
|
|
1738
|
+
stroke: N.value.stroke,
|
|
1739
|
+
"stroke-width": N.value.strokeWidth,
|
|
1740
1740
|
"stroke-linecap": "round"
|
|
1741
1741
|
}, null, 8, ot),
|
|
1742
|
-
|
|
1743
|
-
x1:
|
|
1744
|
-
x2:
|
|
1742
|
+
N.value.horizontalLines.show ? (y(!0), m(d, { key: 0 }, x(ur.value, (e) => (y(), m("line", {
|
|
1743
|
+
x1: H.value.left,
|
|
1744
|
+
x2: H.value.right,
|
|
1745
1745
|
y1: e.y,
|
|
1746
1746
|
y2: e.y,
|
|
1747
|
-
stroke:
|
|
1748
|
-
"stroke-width":
|
|
1749
|
-
"stroke-dasharray":
|
|
1747
|
+
stroke: N.value.horizontalLines.stroke,
|
|
1748
|
+
"stroke-width": N.value.horizontalLines.strokeWidth,
|
|
1749
|
+
"stroke-dasharray": N.value.horizontalLines.strokeDasharray,
|
|
1750
1750
|
"stroke-linecap": "round"
|
|
1751
1751
|
}, null, 8, st))), 256)) : p("", !0),
|
|
1752
|
-
|
|
1752
|
+
N.value.verticalLines.show ? (y(!0), m(d, { key: 1 }, x(xr.value, (e, t) => (y(), m("g", null, [e.text ? (y(), m("line", {
|
|
1753
1753
|
key: 0,
|
|
1754
|
-
x1:
|
|
1755
|
-
x2:
|
|
1756
|
-
y1:
|
|
1757
|
-
y2:
|
|
1758
|
-
stroke:
|
|
1759
|
-
"stroke-width":
|
|
1760
|
-
"stroke-dasharray":
|
|
1754
|
+
x1: H.value.left + X.value * t + X.value / 2,
|
|
1755
|
+
x2: H.value.left + X.value * t + X.value / 2,
|
|
1756
|
+
y1: H.value.top,
|
|
1757
|
+
y2: H.value.bottom,
|
|
1758
|
+
stroke: N.value.verticalLines.stroke,
|
|
1759
|
+
"stroke-width": N.value.verticalLines.strokeWidth,
|
|
1760
|
+
"stroke-dasharray": N.value.verticalLines.strokeDasharray,
|
|
1761
1761
|
"stroke-linecap": "round"
|
|
1762
1762
|
}, null, 8, ct)) : p("", !0)]))), 256)) : p("", !0),
|
|
1763
|
-
|
|
1763
|
+
N.value.xAxis.ticks.show ? (y(!0), m(d, { key: 2 }, x(xr.value, (e, t) => (y(), m("g", null, [e.text ? (y(), m("line", {
|
|
1764
1764
|
key: 0,
|
|
1765
|
-
x1:
|
|
1766
|
-
x2:
|
|
1767
|
-
y1:
|
|
1768
|
-
y2:
|
|
1769
|
-
stroke:
|
|
1770
|
-
"stroke-width":
|
|
1765
|
+
x1: H.value.left + X.value * t + X.value / 2,
|
|
1766
|
+
x2: H.value.left + X.value * t + X.value / 2,
|
|
1767
|
+
y1: H.value.bottom,
|
|
1768
|
+
y2: H.value.bottom + 3,
|
|
1769
|
+
stroke: N.value.stroke,
|
|
1770
|
+
"stroke-width": N.value.strokeWidth,
|
|
1771
1771
|
"stroke-linecap": "round"
|
|
1772
1772
|
}, null, 8, lt)) : p("", !0)]))), 256)) : p("", !0)
|
|
1773
1773
|
])) : p("", !0),
|
|
1774
|
-
|
|
1774
|
+
N.value.yAxis.dataLabels.show ? (y(), m("g", {
|
|
1775
1775
|
key: 1,
|
|
1776
1776
|
ref_key: "scaleLabels",
|
|
1777
|
-
ref:
|
|
1777
|
+
ref: rn
|
|
1778
1778
|
}, [(y(!0), m(d, null, x(ur.value, (e, n) => (y(), m("g", { key: `sl_${n}` }, [e.value >= Z.value.min && e.value <= Z.value.max ? (y(), m("line", {
|
|
1779
1779
|
key: 0,
|
|
1780
|
-
x1:
|
|
1781
|
-
x2:
|
|
1780
|
+
x1: In.value ? H.value.right : H.value.left,
|
|
1781
|
+
x2: In.value ? H.value.right + 5 : H.value.left - 5,
|
|
1782
1782
|
y1: e.y,
|
|
1783
1783
|
y2: e.y,
|
|
1784
|
-
stroke:
|
|
1785
|
-
"stroke-width":
|
|
1784
|
+
stroke: N.value.stroke,
|
|
1785
|
+
"stroke-width": N.value.strokeWidth,
|
|
1786
1786
|
"stroke-linecap": "round"
|
|
1787
1787
|
}, null, 8, ut)) : p("", !0), e.value >= Z.value.min && e.value <= Z.value.max ? (y(), m("text", {
|
|
1788
1788
|
key: 1,
|
|
1789
|
-
class: _({ "vue-data-ui-transition": C(
|
|
1790
|
-
transform: `translate(${
|
|
1791
|
-
"text-anchor":
|
|
1792
|
-
"font-size":
|
|
1793
|
-
fill:
|
|
1794
|
-
"font-weight":
|
|
1789
|
+
class: _({ "vue-data-ui-transition": C(fn) }),
|
|
1790
|
+
transform: `translate(${In.value ? H.value.right + 8 + N.value.yAxis.dataLabels.offsetX : H.value.left - 8 + N.value.yAxis.dataLabels.offsetX}, ${e.y + B.value.yAxisFontSize / 3})`,
|
|
1791
|
+
"text-anchor": In.value ? "start" : "end",
|
|
1792
|
+
"font-size": B.value.yAxisFontSize,
|
|
1793
|
+
fill: N.value.yAxis.dataLabels.color,
|
|
1794
|
+
"font-weight": N.value.yAxis.dataLabels.bold ? "bold" : "normal"
|
|
1795
1795
|
}, qe(C(t)({
|
|
1796
|
-
p:
|
|
1796
|
+
p: N.value.yAxis.dataLabels.prefix,
|
|
1797
1797
|
v: e.value,
|
|
1798
|
-
s:
|
|
1799
|
-
r:
|
|
1798
|
+
s: N.value.yAxis.dataLabels.suffix,
|
|
1799
|
+
r: N.value.yAxis.dataLabels.roundingValue
|
|
1800
1800
|
})), 11, dt)) : p("", !0)]))), 128))], 512)) : p("", !0),
|
|
1801
|
-
|
|
1801
|
+
N.value.xAxis.dataLabels.show && !N.value.xAxis.dataLabels.datetimeFormatter.enable ? (y(), m("g", {
|
|
1802
1802
|
key: 2,
|
|
1803
1803
|
ref_key: "timeLabelsEls",
|
|
1804
|
-
ref:
|
|
1804
|
+
ref: an
|
|
1805
1805
|
}, [(y(!0), m(d, null, x(dr.value, (e, t) => (y(), m("g", null, [h("text", {
|
|
1806
1806
|
class: "vue-data-ui-time-label",
|
|
1807
|
-
transform: `translate(${
|
|
1808
|
-
"text-anchor":
|
|
1809
|
-
"font-size":
|
|
1810
|
-
fill:
|
|
1811
|
-
"font-weight":
|
|
1807
|
+
transform: `translate(${H.value.left + X.value * t + X.value / 2}, ${H.value.bottom + B.value.xAxisFontSize * 1.5}), rotate(${N.value.xAxis.dataLabels.rotation})`,
|
|
1808
|
+
"text-anchor": N.value.xAxis.dataLabels.rotation > 0 ? "start" : N.value.xAxis.dataLabels.rotation < 0 ? "end" : "middle",
|
|
1809
|
+
"font-size": B.value.xAxisFontSize,
|
|
1810
|
+
fill: N.value.xAxis.dataLabels.color,
|
|
1811
|
+
"font-weight": N.value.xAxis.dataLabels.bold ? "bold" : "normal"
|
|
1812
1812
|
}, qe(e), 9, ft)]))), 256))], 512)) : p("", !0),
|
|
1813
|
-
|
|
1813
|
+
N.value.xAxis.dataLabels.show && N.value.xAxis.dataLabels.datetimeFormatter.enable ? (y(), m("g", {
|
|
1814
1814
|
key: 3,
|
|
1815
1815
|
ref_key: "timeLabelsEls",
|
|
1816
|
-
ref:
|
|
1816
|
+
ref: an
|
|
1817
1817
|
}, [(y(!0), m(d, null, x(xr.value, (e, t) => (y(), m("g", null, [h("text", {
|
|
1818
1818
|
class: "vue-data-ui-time-label",
|
|
1819
|
-
transform: `translate(${
|
|
1820
|
-
"text-anchor":
|
|
1821
|
-
"font-size":
|
|
1822
|
-
fill:
|
|
1823
|
-
stroke:
|
|
1819
|
+
transform: `translate(${H.value.left + X.value * t + X.value / 2}, ${H.value.bottom + B.value.xAxisFontSize * 1.5}), rotate(${N.value.xAxis.dataLabels.rotation})`,
|
|
1820
|
+
"text-anchor": N.value.xAxis.dataLabels.rotation > 0 ? "start" : N.value.xAxis.dataLabels.rotation < 0 ? "end" : "middle",
|
|
1821
|
+
"font-size": B.value.xAxisFontSize,
|
|
1822
|
+
fill: N.value.xAxis.dataLabels.color,
|
|
1823
|
+
stroke: F.value.backgroundColor,
|
|
1824
1824
|
"stroke-width": "3",
|
|
1825
1825
|
"stroke-linecap": "round",
|
|
1826
1826
|
"stroke-linejoin": "round",
|
|
1827
1827
|
"paint-order": "stroke fill",
|
|
1828
|
-
"font-weight":
|
|
1828
|
+
"font-weight": N.value.xAxis.dataLabels.bold ? "bold" : "normal"
|
|
1829
1829
|
}, qe(e?.text ?? ""), 9, pt)]))), 256))], 512)) : p("", !0),
|
|
1830
|
-
|
|
1830
|
+
j.value.type === "candlestick" ? (y(), m(d, { key: 4 }, [h("g", null, [(y(!0), m(d, null, x(Q.value, (e, t) => (y(), m("g", null, [
|
|
1831
1831
|
h("rect", {
|
|
1832
|
-
x: e.open.x -
|
|
1832
|
+
x: e.open.x - P.value.wick.strokeWidth / 2,
|
|
1833
1833
|
y: e.high.y,
|
|
1834
|
-
width:
|
|
1834
|
+
width: P.value.wick.strokeWidth,
|
|
1835
1835
|
height: Math.abs(e.high.y - e.low.y),
|
|
1836
|
-
fill:
|
|
1836
|
+
fill: P.value.wick.stroke,
|
|
1837
1837
|
stroke: "none",
|
|
1838
|
-
rx:
|
|
1839
|
-
class: _({ "vue-data-ui-transition": D.value && !C(
|
|
1838
|
+
rx: P.value.wick.strokeWidth / 2,
|
|
1839
|
+
class: _({ "vue-data-ui-transition": D.value && !C(L) })
|
|
1840
1840
|
}, null, 10, mt),
|
|
1841
|
-
|
|
1841
|
+
P.value.wick.extremity.shape === "circle" ? (y(), m("g", ht, [h("circle", {
|
|
1842
1842
|
cx: e.high.x,
|
|
1843
1843
|
cy: e.high.y,
|
|
1844
|
-
r:
|
|
1845
|
-
fill:
|
|
1846
|
-
class: _({ "vue-data-ui-transition": D.value && !C(
|
|
1844
|
+
r: P.value.wick.extremity.size === "auto" ? X.value / 20 : P.value.wick.extremity.size,
|
|
1845
|
+
fill: P.value.wick.extremity.color,
|
|
1846
|
+
class: _({ "vue-data-ui-transition": D.value && !C(L) })
|
|
1847
1847
|
}, null, 10, gt), h("circle", {
|
|
1848
1848
|
cx: e.low.x,
|
|
1849
1849
|
cy: e.low.y,
|
|
1850
|
-
r:
|
|
1851
|
-
fill:
|
|
1852
|
-
class: _({ "vue-data-ui-transition": D.value && !C(
|
|
1850
|
+
r: P.value.wick.extremity.size === "auto" ? X.value / 20 : P.value.wick.extremity.size,
|
|
1851
|
+
fill: P.value.wick.extremity.color,
|
|
1852
|
+
class: _({ "vue-data-ui-transition": D.value && !C(L) })
|
|
1853
1853
|
}, null, 10, _t)])) : p("", !0),
|
|
1854
|
-
|
|
1855
|
-
x: e.high.x - (
|
|
1856
|
-
y: e.high.y -
|
|
1857
|
-
width: Math.abs(e.high.x - (
|
|
1858
|
-
height:
|
|
1859
|
-
rx:
|
|
1860
|
-
fill:
|
|
1854
|
+
P.value.wick.extremity.shape === "line" ? (y(), m("g", vt, [h("rect", {
|
|
1855
|
+
x: e.high.x - (P.value.wick.extremity.size === "auto" ? X.value * P.value.candle.widthRatio : P.value.wick.extremity.size) / 2,
|
|
1856
|
+
y: e.high.y - P.value.wick.strokeWidth / 2,
|
|
1857
|
+
width: Math.abs(e.high.x - (P.value.wick.extremity.size === "auto" ? X.value * F.value.layout.candle.widthRatio : F.value.layout.wick.extremity.size) / 2 - (e.high.x + (F.value.layout.wick.extremity.size === "auto" ? X.value * F.value.layout.candle.widthRatio : F.value.layout.wick.extremity.size) / 2)),
|
|
1858
|
+
height: P.value.wick.strokeWidth,
|
|
1859
|
+
rx: P.value.wick.strokeWidth / 2,
|
|
1860
|
+
fill: P.value.wick.extremity.color,
|
|
1861
1861
|
stroke: "none",
|
|
1862
|
-
class: _({ "vue-data-ui-transition": D.value && !C(
|
|
1862
|
+
class: _({ "vue-data-ui-transition": D.value && !C(L) })
|
|
1863
1863
|
}, null, 10, yt), h("rect", {
|
|
1864
|
-
x: e.low.x - (
|
|
1865
|
-
y: e.low.y -
|
|
1866
|
-
width: Math.abs(e.low.x - (
|
|
1867
|
-
height:
|
|
1868
|
-
fill:
|
|
1864
|
+
x: e.low.x - (P.value.wick.extremity.size === "auto" ? X.value * P.value.candle.widthRatio : P.value.wick.extremity.size) / 2,
|
|
1865
|
+
y: e.low.y - P.value.wick.strokeWidth / 2,
|
|
1866
|
+
width: Math.abs(e.low.x - (P.value.wick.extremity.size === "auto" ? X.value * F.value.layout.candle.widthRatio : F.value.layout.wick.extremity.size) / 2 - (e.low.x + (F.value.layout.wick.extremity.size === "auto" ? X.value * F.value.layout.candle.widthRatio : F.value.layout.wick.extremity.size) / 2)),
|
|
1867
|
+
height: P.value.wick.strokeWidth,
|
|
1868
|
+
fill: P.value.wick.extremity.color,
|
|
1869
1869
|
stroke: "none",
|
|
1870
|
-
rx:
|
|
1871
|
-
class: _({ "vue-data-ui-transition": D.value && !C(
|
|
1870
|
+
rx: P.value.wick.strokeWidth / 2,
|
|
1871
|
+
class: _({ "vue-data-ui-transition": D.value && !C(L) })
|
|
1872
1872
|
}, null, 10, bt)])) : p("", !0)
|
|
1873
1873
|
]))), 256))]), h("g", null, [(y(!0), m(d, null, x(Q.value, (e, t) => (y(), m("rect", {
|
|
1874
|
-
x: e.open.x - X.value / 2 + X.value * (1 -
|
|
1874
|
+
x: e.open.x - X.value / 2 + X.value * (1 - M.value.widthRatio) / 2,
|
|
1875
1875
|
y: e.isBullish ? e.close.y : e.open.y,
|
|
1876
1876
|
height: Math.abs(e.close.y - e.open.y) <= 0 ? 1e-4 : Math.abs(e.close.y - e.open.y),
|
|
1877
|
-
width: X.value *
|
|
1878
|
-
fill:
|
|
1879
|
-
rx:
|
|
1877
|
+
width: X.value * M.value.widthRatio <= 0 ? 1e-4 : X.value * M.value.widthRatio,
|
|
1878
|
+
fill: M.value.gradient.underlayer,
|
|
1879
|
+
rx: M.value.borderRadius,
|
|
1880
1880
|
stroke: "none",
|
|
1881
|
-
class: _({ "vue-data-ui-transition": D.value && !C(
|
|
1881
|
+
class: _({ "vue-data-ui-transition": D.value && !C(L) })
|
|
1882
1882
|
}, null, 10, xt))), 256)), (y(!0), m(d, null, x(Q.value, (e, t) => (y(), m("rect", {
|
|
1883
|
-
x: e.open.x - X.value / 2 + X.value * (1 -
|
|
1883
|
+
x: e.open.x - X.value / 2 + X.value * (1 - M.value.widthRatio) / 2,
|
|
1884
1884
|
y: e.isBullish ? e.close.y : e.open.y,
|
|
1885
1885
|
height: Math.abs(e.close.y - e.open.y) <= 0 ? 1e-4 : Math.abs(e.close.y - e.open.y),
|
|
1886
|
-
width: X.value *
|
|
1887
|
-
fill: e.isBullish ?
|
|
1888
|
-
rx:
|
|
1889
|
-
stroke:
|
|
1890
|
-
"stroke-width":
|
|
1886
|
+
width: X.value * M.value.widthRatio <= 0 ? 1e-4 : X.value * M.value.widthRatio,
|
|
1887
|
+
fill: e.isBullish ? M.value.gradient.show ? `url(#bullish_gradient_${O.value})` : M.value.colors.bullish : M.value.gradient.show ? `url(#bearish_gradient_${O.value})` : M.value.colors.bearish,
|
|
1888
|
+
rx: M.value.borderRadius,
|
|
1889
|
+
stroke: M.value.stroke,
|
|
1890
|
+
"stroke-width": M.value.strokeWidth,
|
|
1891
1891
|
"stroke-linecap": "round",
|
|
1892
1892
|
"stroke-linejoin": "round",
|
|
1893
|
-
class: _({ "vue-data-ui-transition": D.value && !C(
|
|
1893
|
+
class: _({ "vue-data-ui-transition": D.value && !C(L) })
|
|
1894
1894
|
}, null, 10, St))), 256))])], 64)) : p("", !0),
|
|
1895
|
-
|
|
1895
|
+
j.value.type === "ohlc" ? (y(!0), m(d, { key: 5 }, x(Q.value, (e, t) => (y(), m("g", { key: `ohlc_${e.absoluteIndex}` }, [h("path", {
|
|
1896
1896
|
d: `M ${e.high.x},${e.high.y} ${e.low.x},${e.low.y} M${e.open.x - Math.min(6, X.value / 3)},${e.open.y} ${e.open.x},${e.open.y} M${e.close.x},${e.close.y} ${e.close.x + Math.min(6, X.value / 3)},${e.close.y}`,
|
|
1897
|
-
stroke: e.isBullish ?
|
|
1897
|
+
stroke: e.isBullish ? M.value.colors.bullish : M.value.colors.bearish,
|
|
1898
1898
|
"stroke-width": 1,
|
|
1899
|
-
class: _({ "vue-data-ui-transition": C(
|
|
1899
|
+
class: _({ "vue-data-ui-transition": C(fn) }),
|
|
1900
1900
|
"stroke-linecap": "round",
|
|
1901
1901
|
"stroke-linejoin": "round"
|
|
1902
1902
|
}, null, 10, Ct)]))), 128)) : p("", !0),
|
|
1903
1903
|
h("g", null, [(y(!0), m(d, null, x(Q.value, (e, t) => (y(), m("rect", {
|
|
1904
|
-
x:
|
|
1905
|
-
y:
|
|
1906
|
-
height:
|
|
1904
|
+
x: H.value.left + t * X.value,
|
|
1905
|
+
y: H.value.top,
|
|
1906
|
+
height: H.value.height <= 0 ? 1e-4 : H.value.height,
|
|
1907
1907
|
width: X.value <= 0 ? 1e-4 : X.value,
|
|
1908
|
-
fill: k.value === t ||
|
|
1908
|
+
fill: k.value === t || cn.value === t ? C(i)(P.value.selector.color, P.value.selector.opacity) : "transparent",
|
|
1909
1909
|
onMouseover: () => Er(t, e, "pointer"),
|
|
1910
1910
|
onMouseleave: () => Tr(t, e),
|
|
1911
1911
|
onClick: () => wr(t, e)
|
|
@@ -1917,90 +1917,90 @@ var Ze = /* @__PURE__ */ e({ default: () => Mt }), Qe = ["id"], $e = ["id"], et
|
|
|
1917
1917
|
y: ai.value.y,
|
|
1918
1918
|
width: ai.value.width,
|
|
1919
1919
|
height: ai.value.height,
|
|
1920
|
-
fill:
|
|
1921
|
-
"fill-opacity":
|
|
1922
|
-
stroke:
|
|
1923
|
-
"stroke-opacity":
|
|
1924
|
-
"stroke-width":
|
|
1925
|
-
"stroke-dasharray":
|
|
1920
|
+
fill: Wn.value.selection.fill,
|
|
1921
|
+
"fill-opacity": Wn.value.selection.fillOpacity,
|
|
1922
|
+
stroke: Wn.value.selection.stroke,
|
|
1923
|
+
"stroke-opacity": Wn.value.selection.strokeOpacity,
|
|
1924
|
+
"stroke-width": Wn.value.selection.strokeWidth,
|
|
1925
|
+
"stroke-dasharray": Wn.value.selection.strokeDasharray,
|
|
1926
1926
|
"stroke-linecap": "round",
|
|
1927
1927
|
"stroke-linejoin": "round",
|
|
1928
1928
|
"pointer-events": "none"
|
|
1929
1929
|
}, null, 8, Tt)) : p("", !0),
|
|
1930
|
-
qn.value ? (y(), m("rect", Be({ key: 3 },
|
|
1931
|
-
"data-start":
|
|
1932
|
-
"data-end":
|
|
1930
|
+
qn.value ? (y(), m("rect", Be({ key: 3 }, Rn.value, {
|
|
1931
|
+
"data-start": W.value.start,
|
|
1932
|
+
"data-end": W.value.end
|
|
1933
1933
|
}), null, 16, Et)) : p("", !0),
|
|
1934
1934
|
S(e.$slots, "svg", { svg: {
|
|
1935
|
-
...
|
|
1935
|
+
...B.value,
|
|
1936
1936
|
data: Q.value,
|
|
1937
|
-
drawingArea:
|
|
1938
|
-
isPrintingImg: C(
|
|
1937
|
+
drawingArea: H.value,
|
|
1938
|
+
isPrintingImg: C(On) || C(kn) || C(Xr),
|
|
1939
1939
|
isPrintingSvg: C(Zr)
|
|
1940
1940
|
} }, void 0, !0)
|
|
1941
1941
|
], 46, tt)), e.$slots.hint ? (y(), m("div", Dt, [S(e.$slots, "hint", v(g({
|
|
1942
|
-
hint:
|
|
1943
|
-
isVisible:
|
|
1942
|
+
hint: j.value.a11y.translations.keyboardNavigation,
|
|
1943
|
+
isVisible: dn.value
|
|
1944
1944
|
})), void 0, !0)])) : p("", !0)]),
|
|
1945
|
-
e.$slots.watermark ? (y(), m("div", Ot, [S(e.$slots, "watermark", v(g({ isPrinting: C(
|
|
1946
|
-
|
|
1945
|
+
e.$slots.watermark ? (y(), m("div", Ot, [S(e.$slots, "watermark", v(g({ isPrinting: C(On) || C(kn) || C(Xr) || C(Zr) })), void 0, !0)])) : p("", !0),
|
|
1946
|
+
F.value.zoom.show && U.value > 6 && Ut.value && jr.value ? (y(), Fe(Ae, {
|
|
1947
1947
|
key: 6,
|
|
1948
1948
|
ref_key: "chartSlicer",
|
|
1949
|
-
ref:
|
|
1949
|
+
ref: Zt,
|
|
1950
1950
|
"data-dom-to-png-ignore-layout": "",
|
|
1951
1951
|
allMinimaps: cr.value,
|
|
1952
|
-
background:
|
|
1953
|
-
borderColor:
|
|
1954
|
-
customFormat:
|
|
1952
|
+
background: F.value.zoom.color,
|
|
1953
|
+
borderColor: F.value.backgroundColor,
|
|
1954
|
+
customFormat: F.value.zoom.customFormat,
|
|
1955
1955
|
cutNullValues: !1,
|
|
1956
|
-
enableRangeHandles:
|
|
1957
|
-
enableSelectionDrag:
|
|
1958
|
-
end:
|
|
1959
|
-
focusOnDrag:
|
|
1960
|
-
focusRangeRatio:
|
|
1961
|
-
fontSize:
|
|
1962
|
-
immediate: !
|
|
1963
|
-
inputColor:
|
|
1956
|
+
enableRangeHandles: F.value.zoom.enableRangeHandles,
|
|
1957
|
+
enableSelectionDrag: F.value.zoom.enableSelectionDrag,
|
|
1958
|
+
end: W.value.end,
|
|
1959
|
+
focusOnDrag: F.value.zoom.focusOnDrag,
|
|
1960
|
+
focusRangeRatio: F.value.zoom.focusRangeRatio,
|
|
1961
|
+
fontSize: F.value.zoom.fontSize,
|
|
1962
|
+
immediate: !F.value.zoom.preview.enable,
|
|
1963
|
+
inputColor: F.value.zoom.color,
|
|
1964
1964
|
isPreview: qn.value,
|
|
1965
1965
|
labelLeft: Sr.value.start || "",
|
|
1966
1966
|
labelRight: Sr.value.end || "",
|
|
1967
|
-
max:
|
|
1967
|
+
max: U.value,
|
|
1968
1968
|
min: 0,
|
|
1969
|
-
minimap:
|
|
1970
|
-
minimapCompact:
|
|
1971
|
-
minimapFrameColor:
|
|
1972
|
-
minimapIndicatorColor:
|
|
1969
|
+
minimap: F.value.zoom.minimap.show ? C(R).map((e) => e[2]) : [],
|
|
1970
|
+
minimapCompact: F.value.zoom.minimap.compact,
|
|
1971
|
+
minimapFrameColor: F.value.zoom.minimap.frameColor,
|
|
1972
|
+
minimapIndicatorColor: F.value.zoom.minimap.indicatorColor,
|
|
1973
1973
|
minimapMerged: !1,
|
|
1974
|
-
minimapSelectedColor:
|
|
1975
|
-
minimapSelectedColorOpacity:
|
|
1974
|
+
minimapSelectedColor: F.value.zoom.minimap.selectedColor,
|
|
1975
|
+
minimapSelectedColorOpacity: F.value.zoom.minimap.selectedColorOpacity,
|
|
1976
1976
|
minimapSelectedIndex: k.value,
|
|
1977
1977
|
minimapSelectionRadius: 1,
|
|
1978
1978
|
preciseLabels: yr.value,
|
|
1979
|
-
refreshEndPoint:
|
|
1980
|
-
refreshStartPoint:
|
|
1981
|
-
selectColor:
|
|
1982
|
-
selectedSeries: C(
|
|
1979
|
+
refreshEndPoint: F.value.zoom.endIndex === null ? U.value : F.value.zoom.endIndex + 1,
|
|
1980
|
+
refreshStartPoint: F.value.zoom.startIndex === null ? 0 : F.value.zoom.startIndex,
|
|
1981
|
+
selectColor: F.value.zoom.highlightColor,
|
|
1982
|
+
selectedSeries: C(R),
|
|
1983
1983
|
smoothMinimap: !1,
|
|
1984
|
-
start:
|
|
1985
|
-
textColor:
|
|
1984
|
+
start: W.value.start,
|
|
1985
|
+
textColor: F.value.color,
|
|
1986
1986
|
timeLabels: fr.value,
|
|
1987
|
-
usePreciseLabels:
|
|
1988
|
-
useResetSlot:
|
|
1989
|
-
valueEnd:
|
|
1990
|
-
valueStart:
|
|
1991
|
-
verticalHandles:
|
|
1992
|
-
minScale:
|
|
1993
|
-
maxScale:
|
|
1994
|
-
maxWidth:
|
|
1995
|
-
minimapLeftInsetRatio:
|
|
1996
|
-
minimapRightInsetRatio:
|
|
1997
|
-
additionalMinimapHeight:
|
|
1998
|
-
handleType:
|
|
1999
|
-
handleIconColor:
|
|
2000
|
-
handleBorderWidth:
|
|
2001
|
-
handleBorderColor:
|
|
2002
|
-
handleFill:
|
|
2003
|
-
handleWidth:
|
|
1987
|
+
usePreciseLabels: N.value.xAxis.dataLabels.datetimeFormatter.enable && !F.value.zoom.useDefaultFormat,
|
|
1988
|
+
useResetSlot: F.value.zoom.useResetSlot,
|
|
1989
|
+
valueEnd: W.value.end,
|
|
1990
|
+
valueStart: W.value.start,
|
|
1991
|
+
verticalHandles: F.value.zoom.minimap.verticalHandles,
|
|
1992
|
+
minScale: N.value.yAxis.scale.min,
|
|
1993
|
+
maxScale: N.value.yAxis.scale.max,
|
|
1994
|
+
maxWidth: F.value.zoom.maxWidth,
|
|
1995
|
+
minimapLeftInsetRatio: B.value.width > 0 && F.value.zoom.autoFit ? H.value.left / B.value.width : null,
|
|
1996
|
+
minimapRightInsetRatio: B.value.width > 0 && F.value.zoom.autoFit ? (B.value.width - H.value.right) / B.value.width : null,
|
|
1997
|
+
additionalMinimapHeight: F.value.zoom.minimap.additionalHeight,
|
|
1998
|
+
handleType: F.value.zoom.minimap.handleType,
|
|
1999
|
+
handleIconColor: F.value.zoom.minimap.handleIconColor,
|
|
2000
|
+
handleBorderWidth: F.value.zoom.minimap.handleBorderWidth,
|
|
2001
|
+
handleBorderColor: F.value.zoom.minimap.handleBorderColor,
|
|
2002
|
+
handleFill: F.value.zoom.minimap.handleFill,
|
|
2003
|
+
handleWidth: F.value.zoom.minimap.handleWidth,
|
|
2004
2004
|
"onUpdate:end": ri,
|
|
2005
2005
|
"onUpdate:start": ni,
|
|
2006
2006
|
onTrapMouse: ei,
|
|
@@ -2017,50 +2017,50 @@ var Ze = /* @__PURE__ */ e({ default: () => Mt }), Qe = ["id"], $e = ["id"], et
|
|
|
2017
2017
|
unitW: t
|
|
2018
2018
|
}), (e, n) => (y(), m("g", null, [h("path", {
|
|
2019
2019
|
d: `M ${e.high.x},${e.high.y} ${e.low.x},${e.low.y}`,
|
|
2020
|
-
stroke: e.isBullish ?
|
|
2020
|
+
stroke: e.isBullish ? M.value.colors.bullish : M.value.colors.bearish,
|
|
2021
2021
|
"stroke-width": 1,
|
|
2022
|
-
style: He({ opacity: n >=
|
|
2022
|
+
style: He({ opacity: n >= G.value.start && n <= G.value.end ? 1 : .6 })
|
|
2023
2023
|
}, null, 12, kt), h("path", {
|
|
2024
2024
|
d: `M ${e.open.x},${e.open.y} ${e.close.x},${e.close.y}`,
|
|
2025
|
-
stroke: e.isBullish ?
|
|
2025
|
+
stroke: e.isBullish ? M.value.colors.bullish : M.value.colors.bearish,
|
|
2026
2026
|
"stroke-width": Math.min(6, t / 1.5),
|
|
2027
|
-
style: He({ opacity: n >=
|
|
2027
|
+
style: He({ opacity: n >= G.value.start && n <= G.value.end ? 1 : .6 })
|
|
2028
2028
|
}, null, 12, At)]))), 256))]),
|
|
2029
2029
|
_: 3
|
|
2030
2030
|
}, 8, /* @__PURE__ */ "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.minScale.maxScale.maxWidth.minimapLeftInsetRatio.minimapRightInsetRatio.additionalMinimapHeight.handleType.handleIconColor.handleBorderWidth.handleBorderColor.handleFill.handleWidth".split("."))) : p("", !0),
|
|
2031
2031
|
h("div", {
|
|
2032
2032
|
ref_key: "chartLegend",
|
|
2033
|
-
ref:
|
|
2033
|
+
ref: Xt
|
|
2034
2034
|
}, [S(e.$slots, "legend", { legend: Q.value }, void 0, !0)], 512),
|
|
2035
2035
|
e.$slots.source ? (y(), m("div", {
|
|
2036
2036
|
key: 7,
|
|
2037
2037
|
ref_key: "source",
|
|
2038
|
-
ref:
|
|
2038
|
+
ref: Qt,
|
|
2039
2039
|
dir: "auto"
|
|
2040
2040
|
}, [S(e.$slots, "source", {}, void 0, !0)], 512)) : p("", !0),
|
|
2041
2041
|
Re(C(Nt), {
|
|
2042
|
-
teleportTo:
|
|
2043
|
-
show:
|
|
2044
|
-
backgroundColor:
|
|
2045
|
-
color:
|
|
2046
|
-
borderRadius:
|
|
2047
|
-
borderColor:
|
|
2048
|
-
borderWidth:
|
|
2049
|
-
fontSize:
|
|
2050
|
-
backgroundOpacity:
|
|
2051
|
-
position:
|
|
2052
|
-
offsetX:
|
|
2053
|
-
offsetY:
|
|
2054
|
-
parent:
|
|
2042
|
+
teleportTo: F.value.tooltip.teleportTo,
|
|
2043
|
+
show: V.value.showTooltip && Gt.value,
|
|
2044
|
+
backgroundColor: F.value.tooltip.backgroundColor,
|
|
2045
|
+
color: F.value.tooltip.color,
|
|
2046
|
+
borderRadius: F.value.tooltip.borderRadius,
|
|
2047
|
+
borderColor: F.value.tooltip.borderColor,
|
|
2048
|
+
borderWidth: F.value.tooltip.borderWidth,
|
|
2049
|
+
fontSize: F.value.tooltip.fontSize,
|
|
2050
|
+
backgroundOpacity: F.value.tooltip.backgroundOpacity,
|
|
2051
|
+
position: F.value.tooltip.position,
|
|
2052
|
+
offsetX: F.value.tooltip.offsetX,
|
|
2053
|
+
offsetY: F.value.tooltip.offsetY,
|
|
2054
|
+
parent: Jt.value,
|
|
2055
2055
|
content: Kt.value,
|
|
2056
2056
|
isFullscreen: Lr.value,
|
|
2057
|
-
isCustom:
|
|
2058
|
-
smooth:
|
|
2059
|
-
backdropFilter:
|
|
2060
|
-
smoothForce:
|
|
2061
|
-
smoothSnapThreshold:
|
|
2062
|
-
isA11yMode:
|
|
2063
|
-
a11yPosition:
|
|
2057
|
+
isCustom: F.value.tooltip.customFormat && typeof F.value.tooltip.customFormat == "function",
|
|
2058
|
+
smooth: F.value.tooltip.smooth,
|
|
2059
|
+
backdropFilter: F.value.tooltip.backdropFilter,
|
|
2060
|
+
smoothForce: F.value.tooltip.smoothForce,
|
|
2061
|
+
smoothSnapThreshold: F.value.tooltip.smoothSnapThreshold,
|
|
2062
|
+
isA11yMode: un.value === "keyboard",
|
|
2063
|
+
a11yPosition: ln.value
|
|
2064
2064
|
}, {
|
|
2065
2065
|
"tooltip-before": w(() => [S(e.$slots, "tooltip-before", v(g({ ...Cr.value })), void 0, !0)]),
|
|
2066
2066
|
tooltip: w(() => [S(e.$slots, "tooltip", v(g({ ...Cr.value })), void 0, !0)]),
|
|
@@ -2090,20 +2090,20 @@ var Ze = /* @__PURE__ */ e({ default: () => Mt }), Qe = ["id"], $e = ["id"], et
|
|
|
2090
2090
|
"isA11yMode",
|
|
2091
2091
|
"a11yPosition"
|
|
2092
2092
|
]),
|
|
2093
|
-
Ut.value &&
|
|
2093
|
+
Ut.value && I.value.buttons.table ? (y(), Fe(Ge(Kr.value.component), Be({ key: 8 }, Kr.value.props, {
|
|
2094
2094
|
ref_key: "tableUnit",
|
|
2095
|
-
ref:
|
|
2095
|
+
ref: on,
|
|
2096
2096
|
onClose: qr
|
|
2097
2097
|
}), Ie({
|
|
2098
2098
|
content: w(() => [(y(), Fe(C(Ft), {
|
|
2099
|
-
key: `table_${
|
|
2099
|
+
key: `table_${tn.value}`,
|
|
2100
2100
|
colNames: Ir.value.colNames,
|
|
2101
2101
|
head: Ir.value.head,
|
|
2102
2102
|
body: Ir.value.body,
|
|
2103
2103
|
config: Ir.value.config,
|
|
2104
|
-
title:
|
|
2105
|
-
withCloseButton: !
|
|
2106
|
-
isCursorPointer:
|
|
2104
|
+
title: j.value.table.useDialog ? "" : Kr.value.title,
|
|
2105
|
+
withCloseButton: !j.value.table.useDialog,
|
|
2106
|
+
isCursorPointer: pn.value,
|
|
2107
2107
|
onClose: qr
|
|
2108
2108
|
}, {
|
|
2109
2109
|
th: w(({ th: e }) => [Le(qe(e), 1)]),
|
|
@@ -2119,24 +2119,24 @@ var Ze = /* @__PURE__ */ e({ default: () => Mt }), Qe = ["id"], $e = ["id"], et
|
|
|
2119
2119
|
"isCursorPointer"
|
|
2120
2120
|
]))]),
|
|
2121
2121
|
_: 2
|
|
2122
|
-
}, [
|
|
2122
|
+
}, [j.value.table.useDialog ? {
|
|
2123
2123
|
name: "title",
|
|
2124
2124
|
fn: w(() => [Le(qe(Kr.value.title), 1)]),
|
|
2125
2125
|
key: "0"
|
|
2126
|
-
} : void 0,
|
|
2126
|
+
} : void 0, j.value.table.useDialog ? {
|
|
2127
2127
|
name: "actions",
|
|
2128
2128
|
fn: w(() => [h("button", {
|
|
2129
2129
|
tabindex: "0",
|
|
2130
2130
|
class: "vue-ui-user-options-button",
|
|
2131
|
-
onClick: n[3] ||= (e) => Fr(
|
|
2132
|
-
style: He({ cursor:
|
|
2131
|
+
onClick: n[3] ||= (e) => Fr(I.value.callbacks.csv),
|
|
2132
|
+
style: He({ cursor: pn.value ? "pointer" : "default" })
|
|
2133
2133
|
}, [Re(C(Mt), {
|
|
2134
2134
|
name: "fileCsv",
|
|
2135
2135
|
stroke: Kr.value.props.color
|
|
2136
2136
|
}, null, 8, ["stroke"])], 4)]),
|
|
2137
2137
|
key: "1"
|
|
2138
2138
|
} : void 0]), 1040)) : p("", !0),
|
|
2139
|
-
S(e.$slots, "skeleton", {}, () => [C(
|
|
2139
|
+
S(e.$slots, "skeleton", {}, () => [C(L) ? (y(), Fe(ve, { key: 0 })) : p("", !0)], !0)
|
|
2140
2140
|
], 46, Qe));
|
|
2141
2141
|
}
|
|
2142
2142
|
}, [["__scopeId", "data-v-bc12659d"]]);
|