vue-data-ui 3.23.10 → 3.23.12
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/README.md +40 -40
- package/dist/{Arrow-bwmME0jw.js → Arrow-DrF4NNJO.js} +1 -1
- package/dist/{BaseDraggableDialog-DBVHlhQZ.js → BaseDraggableDialog-Dr_Q6Yt5.js} +2 -2
- package/dist/{BaseIcon-B4n7br_R.js → BaseIcon-BbElSC8_.js} +1 -1
- package/dist/{BaseLegendToggle-wRhcG_-q.js → BaseLegendToggle-CtEdLr4R.js} +1 -1
- package/dist/{BaseZoomControls-BZjzzyQo.js → BaseZoomControls-Cvq4UmNG.js} +2 -2
- package/dist/{ColorPicker-B9kUMLSz.js → ColorPicker-ChOgAmCi.js} +2 -2
- package/dist/{DataTable-DMsScfkx.js → DataTable-CmyEubtT.js} +2 -2
- package/dist/{HillActions-IWPfuceW.js → HillActions-3HneGJhS.js} +1 -1
- package/dist/{Legend-DWEFXq9E.js → Legend-BJtY2RA9.js} +2 -2
- package/dist/{NonSvgPenAndPaper-Crs4-xWz.js → NonSvgPenAndPaper-DmxzHJtV.js} +3 -3
- package/dist/{PackageVersion-DNTJUKh1.js → PackageVersion-CT8FfP7h.js} +1 -1
- package/dist/{PenAndPaper-DJ607Hx6.js → PenAndPaper-CIa1F5Jq.js} +3 -3
- package/dist/{Shape-BAhF1ToV.js → Shape-BAL5bQmA.js} +1 -1
- package/dist/{SlicerPreview-sXtk2ZZ2.js → SlicerPreview-BRRyc1p7.js} +426 -426
- package/dist/{SparkTooltip-BE50SZQH.js → SparkTooltip-Bou05CV_.js} +1 -1
- package/dist/{Title-BGLPsoA9.js → Title-CaVA8EIw.js} +1 -1
- package/dist/{Tooltip-DO4-MVhc.js → Tooltip-CVxJe3UW.js} +1 -1
- package/dist/{UserOptions-HQyukyl2.js → UserOptions-WH7-49V0.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-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-Cg_3vpOo.js → dom-to-png-COvyU2SG.js} +1 -1
- package/dist/exposedLib-DrUEXSyf.js +28 -0
- package/dist/{img-tU9mMt9W.js → img-Bkzj3lDD.js} +1 -1
- package/dist/{labelUtils-C_lMnQRs.js → labelUtils-iX76cA2-.js} +1 -1
- package/dist/{lib-AT2PUyyh.js → lib-Dqr_-I6Y.js} +165 -162
- package/dist/{package-enC-Nivt.js → package-CXgp_UWC.js} +1 -1
- package/dist/{pdf-ColHHJFH.js → pdf-Bk_9lTdQ.js} +1 -1
- package/dist/{render-common-CqcoYfCA.js → render-common-D9TESN6N.js} +12 -12
- 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 +13 -2
- package/dist/types/vue-ui-dag.d.ts +2 -0
- package/dist/{useNestedProp-CW0vJS1B.js → useNestedProp-CulPqtou.js} +1 -1
- package/dist/{usePrinter-BFS7d6eb.js → usePrinter-CEiH1b6R.js} +2 -2
- package/dist/utils.js +9 -9
- package/dist/{vue-data-ui-DD7J3yor.js → vue-data-ui-BTHfxD0A.js} +69 -69
- package/dist/vue-data-ui.js +73 -73
- package/dist/vue-ui-3d-bar-qYgLQzCk.js +1829 -0
- package/dist/{vue-ui-accordion-DJNjilyy.js → vue-ui-accordion-C6L7glHU.js} +3 -3
- package/dist/{vue-ui-age-pyramid-DI8b5E2H.js → vue-ui-age-pyramid-DlDqWHMv.js} +27 -27
- package/dist/{vue-ui-annotator-7ZVfFskI.js → vue-ui-annotator-BwIu0JUV.js} +9 -9
- package/dist/vue-ui-bullet-KPROgHpN.js +700 -0
- package/dist/{vue-ui-bump-DzB3WQnq.js → vue-ui-bump-_ccDjRda.js} +237 -237
- package/dist/{vue-ui-candlestick--YWEtek_.js → vue-ui-candlestick-C_21KIXE.js} +245 -245
- package/dist/{vue-ui-carousel-table-Dn3RZU0p.js → vue-ui-carousel-table--JukD8gC.js} +108 -108
- package/dist/{vue-ui-chestnut-BIsXeXiU.js → vue-ui-chestnut-BWvgfxnY.js} +86 -86
- package/dist/vue-ui-chord-CGkWt2XK.js +1345 -0
- package/dist/vue-ui-circle-pack-BWaN2mEB.js +1633 -0
- package/dist/{vue-ui-cursor-C-P2D5i6.js → vue-ui-cursor-YbxnsOd1.js} +3 -3
- package/dist/{vue-ui-dag-CThnMMWA.js → vue-ui-dag-B-X2eE3W.js} +923 -885
- package/dist/{vue-ui-dashboard-D0NNTRO3.js → vue-ui-dashboard-DgayqETw.js} +69 -69
- package/dist/{vue-ui-digits-9tGjGzZh.js → vue-ui-digits-1ULOKtDh.js} +3 -3
- package/dist/{vue-ui-donut-EZu8p7HF.js → vue-ui-donut-Bz2ZI_vO.js} +85 -85
- package/dist/{vue-ui-donut-DLN9uPOi.js → vue-ui-donut-Ci2MsJLu.js} +64 -64
- package/dist/{vue-ui-donut-evolution-mu-iGTIn.js → vue-ui-donut-evolution-Bo54mlFQ.js} +347 -347
- package/dist/{vue-ui-dumbbell-Dvldi3Oo.js → vue-ui-dumbbell-D2bJ_P7K.js} +229 -229
- package/dist/vue-ui-flow-D9m-k3tM.js +1214 -0
- package/dist/vue-ui-funnel-DyETq2KE.js +747 -0
- package/dist/{vue-ui-galaxy-D6eYN8Ut.js → vue-ui-galaxy-pjGKZLrq.js} +64 -64
- package/dist/vue-ui-gauge-BO5lLCyJ.js +932 -0
- package/dist/{vue-ui-geo-CQqNemR6.js → vue-ui-geo-DpyLvk_B.js} +34 -34
- package/dist/{vue-ui-gizmo-ClunTUxX.js → vue-ui-gizmo-CUl8dgmV.js} +10 -10
- package/dist/{vue-ui-heatmap-B_pSQNzO.js → vue-ui-heatmap-CiV3kCrx.js} +472 -472
- package/dist/{vue-ui-hill-Byp0Tnny.js → vue-ui-hill-CkMtYGo2.js} +10 -10
- package/dist/vue-ui-history-plot-X2gQI4TY.js +1695 -0
- package/dist/vue-ui-horizontal-bar-DVT1wthh.js +1708 -0
- package/dist/{vue-ui-kpi-BKw5t-rX.js → vue-ui-kpi-CWPmkLKR.js} +3 -3
- package/dist/{vue-ui-mini-loader-BNm0MQDw.js → vue-ui-mini-loader-BVSIAFYi.js} +2 -2
- package/dist/{vue-ui-molecule-DRwQV5hN.js → vue-ui-molecule-DnW5HYZP.js} +176 -176
- package/dist/{vue-ui-mood-radar-Bj3KTWYj.js → vue-ui-mood-radar-FovwTDLw.js} +20 -20
- package/dist/{vue-ui-nested-donuts-83Wh2w6z.js → vue-ui-nested-donuts-DHCOlxTO.js} +104 -104
- package/dist/vue-ui-onion-CzAEqZ0B.js +1233 -0
- package/dist/vue-ui-parallel-coordinate-plot-BZN75P6u.js +1430 -0
- package/dist/{vue-ui-quadrant-_J-Qr7-K.js → vue-ui-quadrant-CNeP5WEC.js} +32 -32
- package/dist/{vue-ui-quick-chart-DcOUq4ym.js → vue-ui-quick-chart-Bnj8oh82.js} +153 -153
- package/dist/{vue-ui-radar-FlRlsoAd.js → vue-ui-radar-DMyMAtx7.js} +41 -41
- package/dist/{vue-ui-rating-eCxEZD8C.js → vue-ui-rating-dBCk6ECe.js} +26 -26
- package/dist/vue-ui-relation-circle-DFj5V39I.js +903 -0
- package/dist/vue-ui-ridgeline-BaplQZZK.js +1614 -0
- package/dist/vue-ui-rings-B9QJ1Rnb.js +1250 -0
- package/dist/vue-ui-scatter-UH0wqUO5.js +2403 -0
- package/dist/{vue-ui-skeleton-CNOam3kC.js → vue-ui-skeleton-DkoEclfa.js} +3 -3
- package/dist/{vue-ui-smiley-YdyidjBH.js → vue-ui-smiley-D1pW2Fdy.js} +23 -23
- package/dist/{vue-ui-spark-trend-CS5GLtYL.js → vue-ui-spark-trend-BW8WYOva.js} +23 -23
- package/dist/{vue-ui-sparkbar-DDHwgP4k.js → vue-ui-sparkbar-ADRsH-GZ.js} +24 -24
- package/dist/{vue-ui-sparkgauge-BcQu9V3h.js → vue-ui-sparkgauge-BYs1L6I7.js} +61 -61
- package/dist/{vue-ui-sparkhistogram-CPsA5P6c.js → vue-ui-sparkhistogram-D1Paq9X0.js} +15 -15
- package/dist/vue-ui-sparkline-D2Hf_NP-.js +1584 -0
- package/dist/{vue-ui-sparkstackbar-4tsTxMe2.js → vue-ui-sparkstackbar-Uy6Q0X15.js} +207 -207
- package/dist/vue-ui-stackbar-Vt9AjazE.js +2332 -0
- package/dist/{vue-ui-stackline-BNCWO_jG.js → vue-ui-stackline-CBIGhWpn.js} +605 -605
- package/dist/{vue-ui-strip-plot-2Y1c02Ek.js → vue-ui-strip-plot-DhZV1Sl6.js} +57 -57
- package/dist/vue-ui-table-DqMxdgj4.js +1352 -0
- package/dist/{vue-ui-table-heatmap-BacaEjQy.js → vue-ui-table-heatmap-CglQqfWH.js} +84 -84
- package/dist/{vue-ui-table-sparkline-B8oAU5yr.js → vue-ui-table-sparkline-2KZ2UoEA.js} +11 -11
- package/dist/vue-ui-thermometer-mVP2GqO7.js +756 -0
- package/dist/{vue-ui-timer-CWZgSpP8.js → vue-ui-timer-CGrqG8H3.js} +12 -12
- package/dist/{vue-ui-tiremarks-LLVCPyg9.js → vue-ui-tiremarks-DyFUPB5s.js} +12 -12
- package/dist/{vue-ui-treemap-ehBl9JMC.js → vue-ui-treemap-BVFHSTfq.js} +44 -44
- package/dist/vue-ui-waffle-DNZsc5x0.js +1619 -0
- package/dist/{vue-ui-wheel-C4OHPrtC.js → vue-ui-wheel-Cg4oNFmH.js} +28 -28
- package/dist/{vue-ui-word-cloud-CDHn3Kwa.js → vue-ui-word-cloud-CUf1h_L1.js} +32 -32
- package/dist/{vue-ui-world-ao1xf04I.js → vue-ui-world-CIcrI3zP.js} +116 -116
- package/dist/{vue-ui-xy-DmJDCl3c.js → vue-ui-xy-8V-CU7No.js} +99 -99
- package/dist/{vue-ui-xy-_U3wmtCf.js → vue-ui-xy-CJ5ZixIL.js} +304 -304
- package/dist/vue-ui-xy-canvas-BHpBO5dS.js +1823 -0
- package/package.json +1 -1
- package/dist/exposedLib-vfRiIvq_.js +0 -28
- package/dist/vue-ui-3d-bar-DgrcdAgz.js +0 -1829
- package/dist/vue-ui-bullet-Dyd5F1Wa.js +0 -700
- package/dist/vue-ui-chord-BimXqVsF.js +0 -1345
- package/dist/vue-ui-circle-pack-DKQEhL-L.js +0 -1633
- package/dist/vue-ui-flow-DYZBT5Cb.js +0 -1214
- package/dist/vue-ui-funnel--NaxO0cZ.js +0 -747
- package/dist/vue-ui-gauge-DTIEl2Xb.js +0 -932
- package/dist/vue-ui-history-plot-CMu8ST1E.js +0 -1695
- package/dist/vue-ui-horizontal-bar-BQn7WxQ-.js +0 -1708
- package/dist/vue-ui-onion-C27GpneA.js +0 -1233
- package/dist/vue-ui-parallel-coordinate-plot-BklOszr1.js +0 -1430
- package/dist/vue-ui-relation-circle-DnsxHv7t.js +0 -903
- package/dist/vue-ui-ridgeline-TopTLyaE.js +0 -1614
- package/dist/vue-ui-rings-obVfb09j.js +0 -1250
- package/dist/vue-ui-scatter-BHSuA506.js +0 -2403
- package/dist/vue-ui-sparkline-CnbO-GkM.js +0 -1584
- package/dist/vue-ui-stackbar-2_SrMFNT.js +0 -2332
- package/dist/vue-ui-table-DJZxHo5N.js +0 -1352
- package/dist/vue-ui-thermometer-BGtxNU9T.js +0 -756
- package/dist/vue-ui-waffle-DpBAXbhh.js +0 -1610
- package/dist/vue-ui-xy-canvas-Bx-9y53V.js +0 -1823
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { $ as t,
|
|
3
|
-
import { n as
|
|
4
|
-
import { n as
|
|
5
|
-
import { t as
|
|
6
|
-
import { t as
|
|
7
|
-
import { n as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import { t as
|
|
12
|
-
import { t as
|
|
13
|
-
import { t as
|
|
14
|
-
import { n as
|
|
15
|
-
import { t as
|
|
16
|
-
import { l as
|
|
17
|
-
import { t as
|
|
18
|
-
import { t as
|
|
19
|
-
import { t as
|
|
20
|
-
import { t as
|
|
21
|
-
import { t as
|
|
22
|
-
import { t as
|
|
23
|
-
import { Fragment as
|
|
2
|
+
import { $ as t, D as n, Ht as r, Nt as i, St as a, Ut as o, X as s, Xt as c, Yt as l, _ as ee, b as u, c as te, ft as ne, lt as re, nt as d, q as ie, t as ae } from "./lib-Dqr_-I6Y.js";
|
|
3
|
+
import { n as oe, t as se } from "./useHints-Dq_w2E8B.js";
|
|
4
|
+
import { n as ce, r as le, t as ue } from "./useTimeLabels-d2f-W1L4.js";
|
|
5
|
+
import { t as de } from "./useConfig-DwdGsXTx.js";
|
|
6
|
+
import { t as fe } from "./usePrinter-CEiH1b6R.js";
|
|
7
|
+
import { n as pe, t as me } from "./BaseScanner-DZvpgOjM.js";
|
|
8
|
+
import { t as he } from "./useNestedProp-CulPqtou.js";
|
|
9
|
+
import { t as ge } from "./useThemeCheck-C43Tcqmk.js";
|
|
10
|
+
import { t as _e } from "./useChartExport-DNiwdPmb.js";
|
|
11
|
+
import { t as ve } from "./useTransitions-g_zBREk2.js";
|
|
12
|
+
import { t as ye } from "./useTimeLabelCollider-AEcY4Ioe.js";
|
|
13
|
+
import { t as be } from "./img-Bkzj3lDD.js";
|
|
14
|
+
import { n as xe } from "./Title-CaVA8EIw.js";
|
|
15
|
+
import { t as Se } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
16
|
+
import { l as Ce, t as we } from "./useResponsive-ZtArZtUf.js";
|
|
17
|
+
import { t as Te } from "./DefGrad-DVBqDjhO.js";
|
|
18
|
+
import { t as Ee } from "./SlicerPreview-BRRyc1p7.js";
|
|
19
|
+
import { t as De } from "./A11yDataTable-DdRsVULz.js";
|
|
20
|
+
import { t as Oe } from "./useUserOptionState-DK-_1ddE.js";
|
|
21
|
+
import { t as ke } from "./useChartAccessibility-DYqac8yF.js";
|
|
22
|
+
import { t as Ae } from "./vue_ui_candlestick-J8jmJvxP.js";
|
|
23
|
+
import { Fragment as f, computed as p, createBlock as m, createCommentVNode as h, createElementBlock as g, createElementVNode as _, createSlots as je, createTextVNode as Me, createVNode as Ne, defineAsyncComponent as v, guardReactiveProps as y, mergeProps as Pe, nextTick as Fe, normalizeClass as b, normalizeProps as x, normalizeStyle as Ie, onBeforeUnmount as Le, onMounted as Re, openBlock as S, ref as C, renderList as w, renderSlot as T, resolveDynamicComponent as ze, shallowRef as Be, toDisplayString as E, toRefs as Ve, unref as D, watch as He, watchEffect as Ue, withCtx as O } from "vue";
|
|
24
24
|
//#region src/components/vue-ui-candlestick.vue
|
|
25
25
|
var We = /* @__PURE__ */ e({ default: () => wt }), Ge = ["id"], Ke = ["id"], qe = { style: { position: "relative" } }, Je = [
|
|
26
26
|
"xmlns",
|
|
@@ -166,7 +166,7 @@ var We = /* @__PURE__ */ e({ default: () => wt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
166
166
|
"d",
|
|
167
167
|
"stroke",
|
|
168
168
|
"stroke-width"
|
|
169
|
-
], Ct = ["innerHTML"], wt = /*#__PURE__*/
|
|
169
|
+
], Ct = ["innerHTML"], wt = /*#__PURE__*/ Se({
|
|
170
170
|
__name: "vue-ui-candlestick",
|
|
171
171
|
props: {
|
|
172
172
|
config: {
|
|
@@ -187,16 +187,16 @@ var We = /* @__PURE__ */ e({ default: () => wt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
187
187
|
}
|
|
188
188
|
},
|
|
189
189
|
emits: ["selectX", "copyAlt"],
|
|
190
|
-
setup(e, { expose:
|
|
191
|
-
let wt =
|
|
190
|
+
setup(e, { expose: Se, emit: We }) {
|
|
191
|
+
let wt = v(() => import("./BaseIcon-BbElSC8_.js").then((e) => e.n)), Tt = v(() => import("./Tooltip-CVxJe3UW.js")), Et = v(() => import("./vue-ui-accordion-C6L7glHU.js").then((e) => e.n)), Dt = v(() => import("./DataTable-CmyEubtT.js")), Ot = v(() => import("./PenAndPaper-CIa1F5Jq.js").then((e) => e.t)), kt = v(() => import("./UserOptions-WH7-49V0.js").then((e) => e.n)), At = v(() => import("./PackageVersion-CT8FfP7h.js").then((e) => e.t)), jt = v(() => import("./BaseDraggableDialog-Dr_Q6Yt5.js").then((e) => e.n)), { vue_ui_candlestick: Mt } = de(), { isThemeValid: Nt, warnInvalidTheme: Pt } = ge(), k = e, Ft = We, It = p(() => !!k.dataset && k.dataset.length), A = C(!1), Lt = C(null), j = C(ie()), Rt = C(!1), zt = C(""), M = C(void 0), Bt = C(0), N = C(null), Vt = C(null), Ht = C(null), Ut = C(null), Wt = C(null), Gt = C(null), Kt = C(0), qt = C(0), Jt = C(0), Yt = C(null), Xt = C(null), Zt = C(null), Qt = C(null), $t = C(null), P = C(null), en = C({
|
|
192
192
|
x: 0,
|
|
193
193
|
y: 0
|
|
194
194
|
}), tn = C("pointer"), nn = C(!1), F = C(pn());
|
|
195
|
-
|
|
195
|
+
oe({
|
|
196
196
|
config: () => F.value,
|
|
197
197
|
dataset: () => k.dataset,
|
|
198
198
|
component: "VueUiCandlestick",
|
|
199
|
-
rules: [
|
|
199
|
+
rules: [se.emptyArray, {
|
|
200
200
|
test: (e) => e.length > 200,
|
|
201
201
|
message: [
|
|
202
202
|
"👀 Dataset has > 200 points, which can cause performance issues. Consider:",
|
|
@@ -207,10 +207,10 @@ var We = /* @__PURE__ */ e({ default: () => wt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
207
207
|
]
|
|
208
208
|
}]
|
|
209
209
|
});
|
|
210
|
-
let { transitionEnabled: rn } =
|
|
210
|
+
let { transitionEnabled: rn } = ve({
|
|
211
211
|
config: () => F.value.transitions,
|
|
212
212
|
dataset: () => k.dataset
|
|
213
|
-
}), an =
|
|
213
|
+
}), an = p(() => F.value.userOptions.useCursorPointer), on = p(() => c({
|
|
214
214
|
defaultConfig: {
|
|
215
215
|
useCssAnimation: !1,
|
|
216
216
|
userOptions: { show: !1 },
|
|
@@ -248,7 +248,7 @@ var We = /* @__PURE__ */ e({ default: () => wt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
248
248
|
}
|
|
249
249
|
},
|
|
250
250
|
userConfig: F.value.skeletonConfig ?? {}
|
|
251
|
-
})), { loading: I, FINAL_DATASET: L, manualLoading: sn } =
|
|
251
|
+
})), { loading: I, FINAL_DATASET: L, manualLoading: sn } = pe({
|
|
252
252
|
...Ve(k),
|
|
253
253
|
FINAL_CONFIG: F,
|
|
254
254
|
prepareConfig: pn,
|
|
@@ -355,11 +355,11 @@ var We = /* @__PURE__ */ e({ default: () => wt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
355
355
|
5100
|
|
356
356
|
]
|
|
357
357
|
],
|
|
358
|
-
skeletonConfig:
|
|
358
|
+
skeletonConfig: c({
|
|
359
359
|
defaultConfig: F.value,
|
|
360
360
|
userConfig: on.value
|
|
361
361
|
})
|
|
362
|
-
}), { userOptionsVisible: cn, setUserOptionsVisibility: ln, keepUserOptionState: un } =
|
|
362
|
+
}), { userOptionsVisible: cn, setUserOptionsVisibility: ln, keepUserOptionState: un } = Oe({ config: F.value }), { svgRef: R } = ke({ config: F.value.style.title });
|
|
363
363
|
function dn() {
|
|
364
364
|
ln(!0);
|
|
365
365
|
}
|
|
@@ -370,17 +370,17 @@ var We = /* @__PURE__ */ e({ default: () => wt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
370
370
|
}), M.value = null;
|
|
371
371
|
}
|
|
372
372
|
function pn() {
|
|
373
|
-
let e =
|
|
373
|
+
let e = he({
|
|
374
374
|
userConfig: k.config,
|
|
375
375
|
defaultConfig: Mt
|
|
376
376
|
}), t = {}, n = e.theme;
|
|
377
377
|
if (n) if (!Nt.value(e)) Pt(e), t = e;
|
|
378
378
|
else {
|
|
379
|
-
let r =
|
|
380
|
-
userConfig:
|
|
379
|
+
let r = he({
|
|
380
|
+
userConfig: Ae[n] || k.config,
|
|
381
381
|
defaultConfig: e
|
|
382
382
|
});
|
|
383
|
-
t = { ...
|
|
383
|
+
t = { ...he({
|
|
384
384
|
userConfig: k.config,
|
|
385
385
|
defaultConfig: r
|
|
386
386
|
}) };
|
|
@@ -402,18 +402,18 @@ var We = /* @__PURE__ */ e({ default: () => wt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
402
402
|
Re(() => {
|
|
403
403
|
hn();
|
|
404
404
|
});
|
|
405
|
-
let mn =
|
|
405
|
+
let mn = p(() => F.value.debug);
|
|
406
406
|
function hn() {
|
|
407
|
-
if (
|
|
407
|
+
if (i(k.dataset) && (d({
|
|
408
408
|
componentName: "VueUiCandlestick",
|
|
409
409
|
type: "dataset",
|
|
410
410
|
debug: mn.value
|
|
411
|
-
}), sn.value = !0),
|
|
411
|
+
}), sn.value = !0), i(k.dataset) || (sn.value = F.value.loading), setTimeout(() => {
|
|
412
412
|
A.value = !0;
|
|
413
413
|
}, 10), F.value.responsive) {
|
|
414
|
-
let e =
|
|
414
|
+
let e = Ce(() => {
|
|
415
415
|
A.value = !1;
|
|
416
|
-
let { width: e, height: t } =
|
|
416
|
+
let { width: e, height: t } = we({
|
|
417
417
|
chart: N.value,
|
|
418
418
|
title: F.value.style.title.text ? Vt.value : null,
|
|
419
419
|
slicer: F.value.style.zoom.show && G.value > 6 ? Ut.value.$el : null,
|
|
@@ -422,13 +422,13 @@ var We = /* @__PURE__ */ e({ default: () => wt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
422
422
|
noTitle: Gt.value
|
|
423
423
|
});
|
|
424
424
|
requestAnimationFrame(() => {
|
|
425
|
-
z.value.width = e, z.value.height = t - 12, F.value.responsiveProportionalSizing ? (z.value.xAxisFontSize =
|
|
425
|
+
z.value.width = e, z.value.height = t - 12, F.value.responsiveProportionalSizing ? (z.value.xAxisFontSize = l({
|
|
426
426
|
relator: Math.min(e, t),
|
|
427
427
|
adjuster: F.value.style.width,
|
|
428
428
|
source: F.value.style.layout.grid.xAxis.dataLabels.fontSize,
|
|
429
429
|
threshold: 6,
|
|
430
430
|
fallback: 6
|
|
431
|
-
}), z.value.yAxisFontSize =
|
|
431
|
+
}), z.value.yAxisFontSize = l({
|
|
432
432
|
relator: Math.min(e, t),
|
|
433
433
|
adjuster: F.value.style.width,
|
|
434
434
|
source: F.value.style.layout.grid.yAxis.dataLabels.fontSize,
|
|
@@ -446,14 +446,14 @@ var We = /* @__PURE__ */ e({ default: () => wt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
446
446
|
Le(() => {
|
|
447
447
|
B.value && (V.value && B.value.unobserve(V.value), B.value.disconnect());
|
|
448
448
|
});
|
|
449
|
-
let { isPrinting: gn, isImaging: _n, generatePdf: vn, generateImage: yn } =
|
|
449
|
+
let { isPrinting: gn, isImaging: _n, generatePdf: vn, generateImage: yn } = fe({
|
|
450
450
|
elementId: `vue-ui-candlestick_${j.value}`,
|
|
451
451
|
fileName: F.value.style.title.text || "vue-ui-candlestick",
|
|
452
452
|
options: F.value.userOptions.print
|
|
453
|
-
}), bn =
|
|
453
|
+
}), bn = p(() => F.value.userOptions.show && !F.value.style.title.text), H = C({
|
|
454
454
|
showTable: F.value.table.show,
|
|
455
455
|
showTooltip: F.value.style.tooltip.show
|
|
456
|
-
}), xn = C(0), Sn =
|
|
456
|
+
}), xn = C(0), Sn = Ce((e) => {
|
|
457
457
|
xn.value = e;
|
|
458
458
|
}, 100);
|
|
459
459
|
Ue((e) => {
|
|
@@ -466,10 +466,10 @@ var We = /* @__PURE__ */ e({ default: () => wt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
466
466
|
}), Le(() => {
|
|
467
467
|
xn.value = 0;
|
|
468
468
|
});
|
|
469
|
-
let Cn =
|
|
469
|
+
let Cn = p(() => {
|
|
470
470
|
let e = 0;
|
|
471
471
|
return Xt.value && (e = xn.value + z.value.xAxisFontSize), e;
|
|
472
|
-
}), U =
|
|
472
|
+
}), U = p(() => F.value.style.layout.grid.yAxis.position === "right");
|
|
473
473
|
function wn() {
|
|
474
474
|
let e = F.value.style.layout.grid.yAxis.dataLabels.offsetX;
|
|
475
475
|
Yt.value && (e = Array.from(Yt.value.querySelectorAll("text")).reduce((e, t) => {
|
|
@@ -485,7 +485,7 @@ var We = /* @__PURE__ */ e({ default: () => wt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
485
485
|
crosshair: 13
|
|
486
486
|
};
|
|
487
487
|
}
|
|
488
|
-
let W =
|
|
488
|
+
let W = p(() => {
|
|
489
489
|
let { top: e, right: t, bottom: n, left: r } = F.value.style.layout.padding, i = wn();
|
|
490
490
|
return {
|
|
491
491
|
top: e + 12,
|
|
@@ -498,7 +498,7 @@ var We = /* @__PURE__ */ e({ default: () => wt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
498
498
|
yAxisNameWidth: i.yAxisNameWidth,
|
|
499
499
|
crosshair: i.crosshair
|
|
500
500
|
};
|
|
501
|
-
}), Tn =
|
|
501
|
+
}), Tn = p(() => {
|
|
502
502
|
let { left: e, top: t, width: n, height: r } = W.value, i = K.value.start, a = K.value.end - i, o = n / a, s = q.value.start - i, c = q.value.end - i, l = Math.max(0, Math.min(a, s)), ee = Math.max(0, Math.min(a, c));
|
|
503
503
|
return {
|
|
504
504
|
x: e + l * o,
|
|
@@ -517,13 +517,13 @@ var We = /* @__PURE__ */ e({ default: () => wt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
517
517
|
animation: "none !important"
|
|
518
518
|
}
|
|
519
519
|
};
|
|
520
|
-
}), G =
|
|
520
|
+
}), G = p(() => L.value.length), K = C({
|
|
521
521
|
start: 0,
|
|
522
522
|
end: G.value
|
|
523
523
|
}), q = C({
|
|
524
524
|
start: 0,
|
|
525
525
|
end: G.value
|
|
526
|
-
}), En =
|
|
526
|
+
}), En = p(() => F.value.style.zoom.preview.enable && (q.value.start !== K.value.start || q.value.end !== K.value.end));
|
|
527
527
|
function Dn(e, t) {
|
|
528
528
|
q.value[e] = t;
|
|
529
529
|
}
|
|
@@ -531,36 +531,36 @@ var We = /* @__PURE__ */ e({ default: () => wt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
531
531
|
let e = Math.max(0, Math.min(K.value.start ?? 0, G.value - 1)), t = Math.max(e + 1, Math.min(K.value.end ?? G.value, G.value));
|
|
532
532
|
(!Number.isFinite(e) || !Number.isFinite(t) || t <= e) && (e = 0, t = G.value), K.value.start = e, K.value.end = t, q.value.start = e, q.value.end = t, Ut.value && (Ut.value.setStartValue(e), Ut.value.setEndValue(t));
|
|
533
533
|
}
|
|
534
|
-
let kn =
|
|
534
|
+
let kn = p(() => L.value.map((e, t) => ({
|
|
535
535
|
...e,
|
|
536
536
|
absoluteIndex: t
|
|
537
|
-
}))), An =
|
|
538
|
-
[null, void 0].includes(e[0]) &&
|
|
537
|
+
}))), An = p(() => kn.value.slice(K.value.start, K.value.end)), J = p(() => (mn.value && L.value.forEach((e, t) => {
|
|
538
|
+
[null, void 0].includes(e[0]) && d({
|
|
539
539
|
componentName: "VueUiCandlestick",
|
|
540
540
|
type: "datasetAttribute",
|
|
541
541
|
property: "period (index 0)",
|
|
542
542
|
index: t
|
|
543
|
-
}), [null, void 0].includes(e[1]) &&
|
|
543
|
+
}), [null, void 0].includes(e[1]) && d({
|
|
544
544
|
componentName: "VueUiCandlestick",
|
|
545
545
|
type: "datasetAttribute",
|
|
546
546
|
property: "open (index 1)",
|
|
547
547
|
index: t
|
|
548
|
-
}), [null, void 0].includes(e[2]) &&
|
|
548
|
+
}), [null, void 0].includes(e[2]) && d({
|
|
549
549
|
componentName: "VueUiCandlestick",
|
|
550
550
|
type: "datasetAttribute",
|
|
551
551
|
property: "high (index 2)",
|
|
552
552
|
index: t
|
|
553
|
-
}), [null, void 0].includes(e[3]) &&
|
|
553
|
+
}), [null, void 0].includes(e[3]) && d({
|
|
554
554
|
componentName: "VueUiCandlestick",
|
|
555
555
|
type: "datasetAttribute",
|
|
556
556
|
property: "low (index 3)",
|
|
557
557
|
index: t
|
|
558
|
-
}), [null, void 0].includes(e[4]) &&
|
|
558
|
+
}), [null, void 0].includes(e[4]) && d({
|
|
559
559
|
componentName: "VueUiCandlestick",
|
|
560
560
|
type: "datasetAttribute",
|
|
561
561
|
property: "close (index 4)",
|
|
562
562
|
index: t
|
|
563
|
-
}), [null, void 0].includes(e[5]) &&
|
|
563
|
+
}), [null, void 0].includes(e[5]) && d({
|
|
564
564
|
componentName: "VueUiCandlestick",
|
|
565
565
|
type: "datasetAttribute",
|
|
566
566
|
property: "volume (index 5)",
|
|
@@ -574,7 +574,7 @@ var We = /* @__PURE__ */ e({ default: () => wt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
574
574
|
low: e[3],
|
|
575
575
|
close: e[4],
|
|
576
576
|
volume: e[5]
|
|
577
|
-
})))), jn =
|
|
577
|
+
})))), jn = p(() => kn.value.map((e) => ({
|
|
578
578
|
absoluteIndex: e.absoluteIndex,
|
|
579
579
|
period: e[0],
|
|
580
580
|
open: e[1],
|
|
@@ -582,21 +582,21 @@ var We = /* @__PURE__ */ e({ default: () => wt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
582
582
|
low: e[3],
|
|
583
583
|
close: e[4],
|
|
584
584
|
volume: e[5]
|
|
585
|
-
}))), Y =
|
|
585
|
+
}))), Y = p(() => W.value.width / An.value.length), Mn = p(() => ({
|
|
586
586
|
max: F.value.style.layout.grid.yAxis.scale.max === null ? Math.max(...J.value.map((e) => e.high)) : F.value.style.layout.grid.yAxis.scale.max,
|
|
587
587
|
min: F.value.style.layout.grid.yAxis.scale.min === null ? 0 : F.value.style.layout.grid.yAxis.scale.min
|
|
588
|
-
})), X =
|
|
588
|
+
})), X = p(() => ee(Mn.value.min, Mn.value.max, F.value.style.layout.grid.yAxis.dataLabels.steps));
|
|
589
589
|
function Nn(e, t, n = null, r = null) {
|
|
590
590
|
return {
|
|
591
591
|
...e,
|
|
592
|
-
x:
|
|
593
|
-
y:
|
|
594
|
-
value:
|
|
592
|
+
x: u(W.value.left + t * Y.value + Y.value / 2),
|
|
593
|
+
y: u(W.value.top + (1 - (e - X.value.min) / (X.value.max - X.value.min)) * W.value.height),
|
|
594
|
+
value: u(e),
|
|
595
595
|
isMax: e === n,
|
|
596
596
|
isMin: e === r
|
|
597
597
|
};
|
|
598
598
|
}
|
|
599
|
-
let Z =
|
|
599
|
+
let Z = p(() => {
|
|
600
600
|
let e = {
|
|
601
601
|
o: Math.max(...J.value.map((e) => e.open)),
|
|
602
602
|
h: Math.max(...J.value.map((e) => e.high)),
|
|
@@ -609,7 +609,7 @@ var We = /* @__PURE__ */ e({ default: () => wt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
609
609
|
c: Math.min(...J.value.map((e) => e.low))
|
|
610
610
|
}, n = Math.max(...J.value.map((e) => e.volume)), r = Math.min(...J.value.map((e) => e.volume));
|
|
611
611
|
return J.value.map((i, a) => {
|
|
612
|
-
let o = Nn(i.open, a, e.o, t.o), s = Nn(i.high, a, e.h, t.h), c = Nn(i.low, a, e.l, t.l), l = Nn(i.close, a, e.c, t.c), ee = i.close > i.open,
|
|
612
|
+
let o = Nn(i.open, a, e.o, t.o), s = Nn(i.high, a, e.h, t.h), c = Nn(i.low, a, e.l, t.l), l = Nn(i.close, a, e.c, t.c), ee = i.close > i.open, u = i.volume === n, te = i.volume === r;
|
|
613
613
|
return {
|
|
614
614
|
period: i.period,
|
|
615
615
|
open: o,
|
|
@@ -619,8 +619,8 @@ var We = /* @__PURE__ */ e({ default: () => wt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
619
619
|
volume: i.volume,
|
|
620
620
|
isBullish: ee,
|
|
621
621
|
absoluteIndex: i.absoluteIndex,
|
|
622
|
-
isMaxVolume:
|
|
623
|
-
isMinVolume:
|
|
622
|
+
isMaxVolume: u,
|
|
623
|
+
isMinVolume: te
|
|
624
624
|
};
|
|
625
625
|
});
|
|
626
626
|
});
|
|
@@ -628,12 +628,12 @@ var We = /* @__PURE__ */ e({ default: () => wt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
628
628
|
let i = F.value.style.layout.grid.yAxis.scale.min ?? 0, a = F.value.style.layout.grid.yAxis.scale.max ?? Math.max(...L.value.map((e) => e[2]));
|
|
629
629
|
return {
|
|
630
630
|
...e,
|
|
631
|
-
x:
|
|
632
|
-
y:
|
|
633
|
-
value:
|
|
631
|
+
x: u(t * r),
|
|
632
|
+
y: u((1 - (e - i) / (a - i)) * n),
|
|
633
|
+
value: u(e)
|
|
634
634
|
};
|
|
635
635
|
}
|
|
636
|
-
let Fn =
|
|
636
|
+
let Fn = p(() => ({ minimapH: e, unitW: t }) => jn.value.map((n, r) => {
|
|
637
637
|
let i = Pn({
|
|
638
638
|
item: n.open,
|
|
639
639
|
index: r,
|
|
@@ -665,23 +665,23 @@ var We = /* @__PURE__ */ e({ default: () => wt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
665
665
|
isBullish: c,
|
|
666
666
|
absoluteIndex: n.absoluteIndex
|
|
667
667
|
};
|
|
668
|
-
})), In =
|
|
668
|
+
})), In = p(() => F.value.style.zoom.minimap.show ? [{
|
|
669
669
|
name: "",
|
|
670
670
|
series: L.value.map((e) => e[2]),
|
|
671
671
|
color: "#000000",
|
|
672
672
|
isVisible: !0
|
|
673
673
|
}] : []);
|
|
674
674
|
function Ln(e) {
|
|
675
|
-
return
|
|
675
|
+
return u((e - X.value.min) / (X.value.max - X.value.min));
|
|
676
676
|
}
|
|
677
|
-
let Rn =
|
|
677
|
+
let Rn = p(() => X.value.ticks.map((e) => ({
|
|
678
678
|
y: W.value.bottom - W.value.height * Ln(e),
|
|
679
|
-
value:
|
|
680
|
-
}))), zn =
|
|
679
|
+
value: u(e)
|
|
680
|
+
}))), zn = p(() => J.value.map((e) => e.period)), Q = C([]), Bn = C([]), Vn = 0;
|
|
681
681
|
Ue(() => {
|
|
682
682
|
let e = ++Vn;
|
|
683
683
|
(async () => {
|
|
684
|
-
let t = await
|
|
684
|
+
let t = await ue({
|
|
685
685
|
values: L.value.map((e) => e[0]),
|
|
686
686
|
maxDatapoints: L.value.length,
|
|
687
687
|
formatter: F.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter,
|
|
@@ -695,7 +695,7 @@ var We = /* @__PURE__ */ e({ default: () => wt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
695
695
|
Ue(() => {
|
|
696
696
|
let e = ++Hn;
|
|
697
697
|
(async () => {
|
|
698
|
-
let t = await
|
|
698
|
+
let t = await ue({
|
|
699
699
|
values: L.value.map((e) => e[0]),
|
|
700
700
|
maxDatapoints: L.value.length,
|
|
701
701
|
formatter: F.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter,
|
|
@@ -705,7 +705,7 @@ var We = /* @__PURE__ */ e({ default: () => wt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
705
705
|
e === Hn && (Bn.value = t);
|
|
706
706
|
})();
|
|
707
707
|
});
|
|
708
|
-
let Un =
|
|
708
|
+
let Un = p(() => {
|
|
709
709
|
let e = F.value.style.layout.grid.xAxis.dataLabels.modulo;
|
|
710
710
|
return Q.value.length ? Math.min(e, [...new Set(Q.value.map((e) => e.text))].length) : e;
|
|
711
711
|
}), Wn = C({
|
|
@@ -717,12 +717,12 @@ var We = /* @__PURE__ */ e({ default: () => wt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
717
717
|
Ue(() => {
|
|
718
718
|
let e = ++Gn, t = F.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter;
|
|
719
719
|
(async () => {
|
|
720
|
-
let n = await
|
|
720
|
+
let n = await le(t.locale).catch(() => le("en"));
|
|
721
721
|
e === Gn && (Wn.value = n.data);
|
|
722
722
|
})();
|
|
723
723
|
});
|
|
724
|
-
let Kn =
|
|
725
|
-
let e = F.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter, t =
|
|
724
|
+
let Kn = p(() => {
|
|
725
|
+
let e = F.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter, t = ce({
|
|
726
726
|
useUTC: e.useUTC,
|
|
727
727
|
locale: Wn.value,
|
|
728
728
|
januaryAsYear: e.januaryAsYear
|
|
@@ -731,16 +731,16 @@ var We = /* @__PURE__ */ e({ default: () => wt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
731
731
|
let r = L.value.map((e) => e[0])?.[e];
|
|
732
732
|
return r == null ? "" : t.formatDate(new Date(r), n);
|
|
733
733
|
};
|
|
734
|
-
}), qn =
|
|
734
|
+
}), qn = p(() => (L.value.map((e) => e[0]) || []).map((e, t) => ({
|
|
735
735
|
text: Kn.value(t, F.value.style.tooltip.timeFormat),
|
|
736
736
|
absoluteIndex: t
|
|
737
|
-
}))), Jn =
|
|
737
|
+
}))), Jn = p(() => (L.value.map((e) => e[0]) || []).map((e, t) => ({
|
|
738
738
|
text: Kn.value(t, F.value.style.zoom.timeFormat),
|
|
739
739
|
absoluteIndex: t
|
|
740
|
-
}))), Yn =
|
|
740
|
+
}))), Yn = p(() => {
|
|
741
741
|
let e = F.value.style.layout.grid.xAxis.dataLabels, t = Q.value || [], n = Bn.value || [], r = K.value.start ?? 0, i = M.value, a = G.value, o = t.map((e) => e?.text ?? ""), s = n.map((e) => e?.text ?? "");
|
|
742
|
-
return
|
|
743
|
-
}), Xn =
|
|
742
|
+
return te(!!e.showOnlyFirstAndLast, !!e.showOnlyAtModulo, Math.max(1, Un.value || 1), o, s, r, i, a);
|
|
743
|
+
}), Xn = p(() => F.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? {
|
|
744
744
|
start: Q.value.find((e) => e.absoluteIndex === K.value.start)?.text ?? "",
|
|
745
745
|
end: Q.value.find((e) => e.absoluteIndex === K.value.end - 1)?.text ?? ""
|
|
746
746
|
} : {
|
|
@@ -781,7 +781,7 @@ var We = /* @__PURE__ */ e({ default: () => wt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
781
781
|
datapoint: t
|
|
782
782
|
});
|
|
783
783
|
let r = F.value.style.tooltip.customFormat;
|
|
784
|
-
if (
|
|
784
|
+
if (a(r) && re(() => r({
|
|
785
785
|
seriesIndex: e,
|
|
786
786
|
datapoint: t,
|
|
787
787
|
series: Z.value,
|
|
@@ -793,25 +793,25 @@ var We = /* @__PURE__ */ e({ default: () => wt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
793
793
|
config: F.value
|
|
794
794
|
});
|
|
795
795
|
else if (F.value.style.tooltip.show) {
|
|
796
|
-
let n = "", { period: r, open: i, high: a, low:
|
|
796
|
+
let n = "", { period: r, open: i, high: a, low: o, close: c, volume: l, isBullish: ee } = Z.value[e], { period: u, open: te, high: ne, low: re, close: d, volume: ie } = F.value.translations, ae = F.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? F.value.style.tooltip.useDefaultTimeFormat ? Q.value[e].text : qn.value[e].text : r;
|
|
797
797
|
n += `<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="${F.value.style.layout.candle.borderRadius * 3}" stroke="${F.value.style.layout.candle.stroke}" stroke-width="${F.value.style.layout.candle.strokeWidth}"
|
|
798
|
-
fill="${F.value.style.layout.candle.gradient.show ? ee ? `url(#bullish_gradient_${j.value})` : `url(#bearish_gradient_${j.value})` : ee ? F.value.style.layout.candle.colors.bullish : F.value.style.layout.candle.colors.bearish}"/></svg>${
|
|
799
|
-
let
|
|
798
|
+
fill="${F.value.style.layout.candle.gradient.show ? ee ? `url(#bullish_gradient_${j.value})` : `url(#bearish_gradient_${j.value})` : ee ? F.value.style.layout.candle.colors.bullish : F.value.style.layout.candle.colors.bearish}"/></svg>${ae}</div>`, n += `${ie} : <b>${isNaN(l) ? "-" : Number(l.toFixed(F.value.style.tooltip.roundingValue)).toLocaleString()}</b>`, n += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${F.value.style.tooltip.borderColor}">`;
|
|
799
|
+
let oe = s({
|
|
800
800
|
p: F.value.style.tooltip.prefix,
|
|
801
801
|
v: i.value,
|
|
802
802
|
s: F.value.style.tooltip.suffix,
|
|
803
803
|
r: F.value.style.tooltip.roundingValue
|
|
804
|
-
}),
|
|
804
|
+
}), se = s({
|
|
805
805
|
p: F.value.style.tooltip.prefix,
|
|
806
806
|
v: a.value,
|
|
807
807
|
s: F.value.style.tooltip.suffix,
|
|
808
808
|
r: F.value.style.tooltip.roundingValue
|
|
809
|
-
}),
|
|
809
|
+
}), ce = s({
|
|
810
810
|
p: F.value.style.tooltip.prefix,
|
|
811
|
-
v:
|
|
811
|
+
v: o.value,
|
|
812
812
|
s: F.value.style.tooltip.suffix,
|
|
813
813
|
r: F.value.style.tooltip.roundingValue
|
|
814
|
-
}),
|
|
814
|
+
}), le = s({
|
|
815
815
|
p: F.value.style.tooltip.prefix,
|
|
816
816
|
v: c.value,
|
|
817
817
|
s: F.value.style.tooltip.suffix,
|
|
@@ -824,20 +824,20 @@ var We = /* @__PURE__ */ e({ default: () => wt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
824
824
|
${t.isBullish ? `
|
|
825
825
|
<line x1="45" x2="50" y1="65" y2="65" stroke="${F.value.style.layout.candle.colors.bullish}" stroke-width="1.5" stroke-linecap="round" />
|
|
826
826
|
<line x1="50" x2="55" y1="35" y2="35" stroke="${F.value.style.layout.candle.colors.bullish}" stroke-width="1.5" stroke-linecap="round" />
|
|
827
|
-
<text x="38" y="70" text-anchor="end" fill="${F.value.style.tooltip.color}">${
|
|
828
|
-
<text x="62" y="40" text-anchor="start" fill="${F.value.style.tooltip.color}">${
|
|
827
|
+
<text x="38" y="70" text-anchor="end" fill="${F.value.style.tooltip.color}">${oe}</text>
|
|
828
|
+
<text x="62" y="40" text-anchor="start" fill="${F.value.style.tooltip.color}">${le}</text>
|
|
829
829
|
` : `
|
|
830
830
|
<line x1="45" x2="50" y1="35" y2="35" stroke="${F.value.style.layout.candle.colors.bearish}" stroke-width="1.5" stroke-linecap="round" />
|
|
831
831
|
<line x1="50" x2="55" y1="65" y2="65" stroke="${F.value.style.layout.candle.colors.bearish}" stroke-width="1.5" stroke-linecap="round" />
|
|
832
|
-
<text x="40" y="40" text-anchor="end" fill="${F.value.style.tooltip.color}">${
|
|
833
|
-
<text x="60" y="70" text-anchor="start" fill="${F.value.style.tooltip.color}">${
|
|
832
|
+
<text x="40" y="40" text-anchor="end" fill="${F.value.style.tooltip.color}">${oe}</text>
|
|
833
|
+
<text x="60" y="70" text-anchor="start" fill="${F.value.style.tooltip.color}">${le}</text>
|
|
834
834
|
`}
|
|
835
|
-
<text x="50" y="13" text-anchor="middle" fill="${F.value.style.tooltip.color}">${
|
|
836
|
-
<text x="50" y="97" text-anchor="middle" fill="${F.value.style.tooltip.color}">${
|
|
835
|
+
<text x="50" y="13" text-anchor="middle" fill="${F.value.style.tooltip.color}">${se}</text>
|
|
836
|
+
<text x="50" y="97" text-anchor="middle" fill="${F.value.style.tooltip.color}">${ce}</text>
|
|
837
837
|
<g>
|
|
838
838
|
</svg>
|
|
839
839
|
<div>
|
|
840
|
-
` : (n += `<div>${
|
|
840
|
+
` : (n += `<div>${te}: <b>${oe}</b></div>`, n += `<div>${ne}: <b>${se}</b></div>`, n += `<div>${re}: <b>${ce}</b></div>`, n += `<div>${d}: <b>${le}</b></div>`), n += "</div>", zt.value = `<div style="text-align:right">${n}</div>`;
|
|
841
841
|
}
|
|
842
842
|
Rt.value = !0;
|
|
843
843
|
}
|
|
@@ -849,7 +849,7 @@ var We = /* @__PURE__ */ e({ default: () => wt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
849
849
|
tr.value && cancelAnimationFrame(tr.value);
|
|
850
850
|
});
|
|
851
851
|
async function rr() {
|
|
852
|
-
sr(), await
|
|
852
|
+
sr(), await Fe(), tr.value && cancelAnimationFrame(tr.value), tr.value = requestAnimationFrame(async () => {
|
|
853
853
|
await nr(), sr();
|
|
854
854
|
});
|
|
855
855
|
}
|
|
@@ -872,8 +872,8 @@ var We = /* @__PURE__ */ e({ default: () => wt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
872
872
|
return e > t ? t : e < 0 || e < K.value.start ? F.value.style.zoom.startIndex === null ? 1 : F.value.style.zoom.startIndex + 1 : e;
|
|
873
873
|
}
|
|
874
874
|
function lr(e = null) {
|
|
875
|
-
|
|
876
|
-
let
|
|
875
|
+
Fe(() => {
|
|
876
|
+
let r = [
|
|
877
877
|
F.value.translations.period,
|
|
878
878
|
F.value.translations.open,
|
|
879
879
|
F.value.translations.high,
|
|
@@ -895,32 +895,32 @@ var We = /* @__PURE__ */ e({ default: () => wt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
895
895
|
[""],
|
|
896
896
|
[""]
|
|
897
897
|
],
|
|
898
|
-
|
|
899
|
-
].concat(i), o =
|
|
898
|
+
r
|
|
899
|
+
].concat(i), o = n(a);
|
|
900
900
|
e ? e(o) : t({
|
|
901
901
|
csvContent: o,
|
|
902
902
|
title: F.value.style.title.text || "vue-ui-candlestick"
|
|
903
903
|
});
|
|
904
904
|
});
|
|
905
905
|
}
|
|
906
|
-
let ur =
|
|
906
|
+
let ur = p(() => {
|
|
907
907
|
let e = Z.value.map((e, t) => {
|
|
908
|
-
let n = F.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? Q.value?.[t]?.text ?? "" : e.period, r =
|
|
908
|
+
let n = F.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? Q.value?.[t]?.text ?? "" : e.period, r = s({
|
|
909
909
|
p: F.value.table.td.prefix,
|
|
910
910
|
v: e.open.value,
|
|
911
911
|
s: F.value.table.td.suffix,
|
|
912
912
|
r: F.value.table.td.roundingValue
|
|
913
|
-
}), i =
|
|
913
|
+
}), i = s({
|
|
914
914
|
p: F.value.table.td.prefix,
|
|
915
915
|
v: e.high.value,
|
|
916
916
|
s: F.value.table.td.suffix,
|
|
917
917
|
r: F.value.table.td.roundingValue
|
|
918
|
-
}), a =
|
|
918
|
+
}), a = s({
|
|
919
919
|
p: F.value.table.td.prefix,
|
|
920
920
|
v: e.low.value,
|
|
921
921
|
s: F.value.table.td.suffix,
|
|
922
922
|
r: F.value.table.td.roundingValue
|
|
923
|
-
}),
|
|
923
|
+
}), o = s({
|
|
924
924
|
p: F.value.table.td.prefix,
|
|
925
925
|
v: e.close.value,
|
|
926
926
|
s: F.value.table.td.suffix,
|
|
@@ -931,30 +931,30 @@ var We = /* @__PURE__ */ e({ default: () => wt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
931
931
|
r,
|
|
932
932
|
i,
|
|
933
933
|
a,
|
|
934
|
-
|
|
934
|
+
o,
|
|
935
935
|
`${isNaN(e.volume) ? "-" : e.volume.toLocaleString()}`
|
|
936
936
|
];
|
|
937
937
|
}), t = Z.value.map((e, t) => [
|
|
938
938
|
F.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? Q.value?.[t]?.text ?? "" : e.period,
|
|
939
|
-
|
|
939
|
+
s({
|
|
940
940
|
p: F.value.table.td.prefix,
|
|
941
941
|
v: e.open.value,
|
|
942
942
|
s: F.value.table.td.suffix,
|
|
943
943
|
r: F.value.table.td.roundingValue
|
|
944
944
|
}),
|
|
945
|
-
|
|
945
|
+
s({
|
|
946
946
|
p: F.value.table.td.prefix,
|
|
947
947
|
v: e.high.value,
|
|
948
948
|
s: F.value.table.td.suffix,
|
|
949
949
|
r: F.value.table.td.roundingValue
|
|
950
950
|
}),
|
|
951
|
-
|
|
951
|
+
s({
|
|
952
952
|
p: F.value.table.td.prefix,
|
|
953
953
|
v: e.low.value,
|
|
954
954
|
s: F.value.table.td.suffix,
|
|
955
955
|
r: F.value.table.td.roundingValue
|
|
956
956
|
}),
|
|
957
|
-
|
|
957
|
+
s({
|
|
958
958
|
p: F.value.table.td.prefix,
|
|
959
959
|
v: e.close.value,
|
|
960
960
|
s: F.value.table.td.suffix,
|
|
@@ -1004,7 +1004,7 @@ var We = /* @__PURE__ */ e({ default: () => wt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1004
1004
|
}
|
|
1005
1005
|
async function gr({ scale: e = 2 } = {}) {
|
|
1006
1006
|
if (!N.value) return;
|
|
1007
|
-
let { imageUri: t, base64: n } = await
|
|
1007
|
+
let { imageUri: t, base64: n } = await be({
|
|
1008
1008
|
domElement: N.value,
|
|
1009
1009
|
base64: !0,
|
|
1010
1010
|
img: !0,
|
|
@@ -1013,7 +1013,7 @@ var We = /* @__PURE__ */ e({ default: () => wt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1013
1013
|
width: r.width,
|
|
1014
1014
|
height: r.height,
|
|
1015
1015
|
aspectRatio: r.height ? r.width / r.height : 0
|
|
1016
|
-
}, a = await
|
|
1016
|
+
}, a = await ne(t, e) ?? i;
|
|
1017
1017
|
return {
|
|
1018
1018
|
imageUri: t,
|
|
1019
1019
|
base64: n,
|
|
@@ -1021,8 +1021,8 @@ var We = /* @__PURE__ */ e({ default: () => wt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1021
1021
|
...a
|
|
1022
1022
|
};
|
|
1023
1023
|
}
|
|
1024
|
-
let _r =
|
|
1025
|
-
|
|
1024
|
+
let _r = p(() => z.value.width), vr = p(() => z.value.height);
|
|
1025
|
+
ye({
|
|
1026
1026
|
timeLabelsEls: Xt,
|
|
1027
1027
|
timeLabels: Q,
|
|
1028
1028
|
slicer: K,
|
|
@@ -1054,7 +1054,7 @@ var We = /* @__PURE__ */ e({ default: () => wt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1054
1054
|
showTooltip: F.value.style.tooltip.show
|
|
1055
1055
|
};
|
|
1056
1056
|
}, { immediate: !0 });
|
|
1057
|
-
let yr =
|
|
1057
|
+
let yr = p(() => {
|
|
1058
1058
|
let e = F.value.table.useDialog && !F.value.table.show, t = H.value.showTable;
|
|
1059
1059
|
return {
|
|
1060
1060
|
component: e ? jt : Et,
|
|
@@ -1091,7 +1091,7 @@ var We = /* @__PURE__ */ e({ default: () => wt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1091
1091
|
function br() {
|
|
1092
1092
|
H.value.showTable = !1, Qt.value && Qt.value.setTableIconState(!1);
|
|
1093
1093
|
}
|
|
1094
|
-
let xr =
|
|
1094
|
+
let xr = p(() => F.value.style.backgroundColor), Sr = p(() => F.value.style.title), { isCallbackImaging: Cr, isCallbackSvg: wr, generateSvg: Tr, onGenerateImage: Er } = _e({
|
|
1095
1095
|
svg: R,
|
|
1096
1096
|
title: Sr,
|
|
1097
1097
|
legend: null,
|
|
@@ -1166,11 +1166,11 @@ var We = /* @__PURE__ */ e({ default: () => wt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1166
1166
|
y: r.top + n / z.value.height * r.height
|
|
1167
1167
|
};
|
|
1168
1168
|
}
|
|
1169
|
-
let Ir =
|
|
1169
|
+
let Ir = p(() => ({
|
|
1170
1170
|
headers: ur.value?.colNames ?? [],
|
|
1171
1171
|
rows: ur.value?.bodyA11y ?? []
|
|
1172
1172
|
}));
|
|
1173
|
-
return
|
|
1173
|
+
return Se({
|
|
1174
1174
|
getImage: gr,
|
|
1175
1175
|
generatePdf: vn,
|
|
1176
1176
|
generateCsv: lr,
|
|
@@ -1181,20 +1181,20 @@ var We = /* @__PURE__ */ e({ default: () => wt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1181
1181
|
toggleAnnotator: hr,
|
|
1182
1182
|
toggleFullscreen: dr,
|
|
1183
1183
|
copyAlt: jr
|
|
1184
|
-
}), (e, t) => (S(),
|
|
1184
|
+
}), (e, t) => (S(), g("div", {
|
|
1185
1185
|
ref_key: "candlestickChart",
|
|
1186
1186
|
ref: N,
|
|
1187
|
-
class:
|
|
1188
|
-
style:
|
|
1187
|
+
class: b(`vue-data-ui-component vue-ui-candlestick ${$.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${F.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
1188
|
+
style: Ie(`position:relative;font-family:${F.value.style.fontFamily}; text-align:center;background:${F.value.style.backgroundColor}; ${F.value.responsive ? "height: 100%" : ""}`),
|
|
1189
1189
|
id: `vue-ui-candlestick_${j.value}`,
|
|
1190
1190
|
onMouseenter: dn,
|
|
1191
1191
|
onMouseleave: fn
|
|
1192
1192
|
}, [
|
|
1193
|
-
|
|
1193
|
+
_("div", {
|
|
1194
1194
|
id: `chart-instructions-${j.value}`,
|
|
1195
1195
|
class: "sr-only"
|
|
1196
|
-
}, [
|
|
1197
|
-
Ir.value?.rows?.length ? (S(),
|
|
1196
|
+
}, [_("p", null, E(F.value.a11y.translations.keyboardNavigation), 1)], 8, Ke),
|
|
1197
|
+
Ir.value?.rows?.length ? (S(), m(De, {
|
|
1198
1198
|
key: 0,
|
|
1199
1199
|
uid: j.value,
|
|
1200
1200
|
head: Ir.value.headers,
|
|
@@ -1207,8 +1207,8 @@ var We = /* @__PURE__ */ e({ default: () => wt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1207
1207
|
"body",
|
|
1208
1208
|
"notice",
|
|
1209
1209
|
"caption"
|
|
1210
|
-
])) :
|
|
1211
|
-
F.value.userOptions.buttons.annotator ? (S(),
|
|
1210
|
+
])) : h("", !0),
|
|
1211
|
+
F.value.userOptions.buttons.annotator ? (S(), m(D(Ot), {
|
|
1212
1212
|
key: 1,
|
|
1213
1213
|
svgRef: D(R),
|
|
1214
1214
|
backgroundColor: F.value.style.backgroundColor,
|
|
@@ -1218,11 +1218,11 @@ var We = /* @__PURE__ */ e({ default: () => wt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1218
1218
|
onClose: hr
|
|
1219
1219
|
}, {
|
|
1220
1220
|
"annotator-action-close": O(() => [T(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
1221
|
-
"annotator-action-color": O(({ color: t }) => [T(e.$slots, "annotator-action-color",
|
|
1222
|
-
"annotator-action-draw": O(({ mode: t }) => [T(e.$slots, "annotator-action-draw",
|
|
1223
|
-
"annotator-action-undo": O(({ disabled: t }) => [T(e.$slots, "annotator-action-undo",
|
|
1224
|
-
"annotator-action-redo": O(({ disabled: t }) => [T(e.$slots, "annotator-action-redo",
|
|
1225
|
-
"annotator-action-delete": O(({ disabled: t }) => [T(e.$slots, "annotator-action-delete",
|
|
1221
|
+
"annotator-action-color": O(({ color: t }) => [T(e.$slots, "annotator-action-color", x(y({ color: t })), void 0, !0)]),
|
|
1222
|
+
"annotator-action-draw": O(({ mode: t }) => [T(e.$slots, "annotator-action-draw", x(y({ mode: t })), void 0, !0)]),
|
|
1223
|
+
"annotator-action-undo": O(({ disabled: t }) => [T(e.$slots, "annotator-action-undo", x(y({ disabled: t })), void 0, !0)]),
|
|
1224
|
+
"annotator-action-redo": O(({ disabled: t }) => [T(e.$slots, "annotator-action-redo", x(y({ disabled: t })), void 0, !0)]),
|
|
1225
|
+
"annotator-action-delete": O(({ disabled: t }) => [T(e.$slots, "annotator-action-delete", x(y({ disabled: t })), void 0, !0)]),
|
|
1226
1226
|
_: 3
|
|
1227
1227
|
}, 8, [
|
|
1228
1228
|
"svgRef",
|
|
@@ -1230,20 +1230,20 @@ var We = /* @__PURE__ */ e({ default: () => wt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1230
1230
|
"color",
|
|
1231
1231
|
"active",
|
|
1232
1232
|
"isCursorPointer"
|
|
1233
|
-
])) :
|
|
1234
|
-
bn.value ? (S(),
|
|
1233
|
+
])) : h("", !0),
|
|
1234
|
+
bn.value ? (S(), g("div", {
|
|
1235
1235
|
key: 2,
|
|
1236
1236
|
ref_key: "noTitle",
|
|
1237
1237
|
ref: Gt,
|
|
1238
1238
|
class: "vue-data-ui-no-title-space",
|
|
1239
1239
|
style: "height:36px; width: 100%;background:transparent"
|
|
1240
|
-
}, null, 512)) :
|
|
1241
|
-
F.value.style.title.text ? (S(),
|
|
1240
|
+
}, null, 512)) : h("", !0),
|
|
1241
|
+
F.value.style.title.text ? (S(), g("div", {
|
|
1242
1242
|
key: 3,
|
|
1243
1243
|
ref_key: "chartTitle",
|
|
1244
1244
|
ref: Vt,
|
|
1245
1245
|
style: "width:100%;background:transparent"
|
|
1246
|
-
}, [(S(),
|
|
1246
|
+
}, [(S(), m(xe, {
|
|
1247
1247
|
key: `title_${Jt.value}`,
|
|
1248
1248
|
config: {
|
|
1249
1249
|
title: {
|
|
@@ -1255,8 +1255,8 @@ var We = /* @__PURE__ */ e({ default: () => wt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1255
1255
|
...F.value.style.title.subtitle
|
|
1256
1256
|
}
|
|
1257
1257
|
}
|
|
1258
|
-
}, null, 8, ["config"]))], 512)) :
|
|
1259
|
-
F.value.userOptions.show && It.value && (D(un) || D(cn)) ? (S(),
|
|
1258
|
+
}, null, 8, ["config"]))], 512)) : h("", !0),
|
|
1259
|
+
F.value.userOptions.show && It.value && (D(un) || D(cn)) ? (S(), m(D(kt), {
|
|
1260
1260
|
ref_key: "userOptionsRef",
|
|
1261
1261
|
ref: Qt,
|
|
1262
1262
|
key: `user_options_${Bt.value}`,
|
|
@@ -1293,11 +1293,11 @@ var We = /* @__PURE__ */ e({ default: () => wt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1293
1293
|
onToggleTooltip: pr,
|
|
1294
1294
|
onToggleAnnotator: hr,
|
|
1295
1295
|
onCopyAlt: jr,
|
|
1296
|
-
style:
|
|
1297
|
-
},
|
|
1296
|
+
style: Ie({ visibility: D(un) ? D(cn) ? "visible" : "hidden" : "visible" })
|
|
1297
|
+
}, je({ _: 2 }, [
|
|
1298
1298
|
e.$slots.menuIcon ? {
|
|
1299
1299
|
name: "menuIcon",
|
|
1300
|
-
fn: O(({ isOpen: t, color: n }) => [T(e.$slots, "menuIcon",
|
|
1300
|
+
fn: O(({ isOpen: t, color: n }) => [T(e.$slots, "menuIcon", x(y({
|
|
1301
1301
|
isOpen: t,
|
|
1302
1302
|
color: n
|
|
1303
1303
|
})), void 0, !0)]),
|
|
@@ -1335,7 +1335,7 @@ var We = /* @__PURE__ */ e({ default: () => wt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1335
1335
|
} : void 0,
|
|
1336
1336
|
e.$slots.optionFullscreen ? {
|
|
1337
1337
|
name: "optionFullscreen",
|
|
1338
|
-
fn: O(({ toggleFullscreen: t, isFullscreen: n }) => [T(e.$slots, "optionFullscreen",
|
|
1338
|
+
fn: O(({ toggleFullscreen: t, isFullscreen: n }) => [T(e.$slots, "optionFullscreen", x(y({
|
|
1339
1339
|
toggleFullscreen: t,
|
|
1340
1340
|
isFullscreen: n
|
|
1341
1341
|
})), void 0, !0)]),
|
|
@@ -1343,7 +1343,7 @@ var We = /* @__PURE__ */ e({ default: () => wt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1343
1343
|
} : void 0,
|
|
1344
1344
|
e.$slots.optionAnnotator ? {
|
|
1345
1345
|
name: "optionAnnotator",
|
|
1346
|
-
fn: O(({ toggleAnnotator: t, isAnnotator: n }) => [T(e.$slots, "optionAnnotator",
|
|
1346
|
+
fn: O(({ toggleAnnotator: t, isAnnotator: n }) => [T(e.$slots, "optionAnnotator", x(y({
|
|
1347
1347
|
toggleAnnotator: t,
|
|
1348
1348
|
isAnnotator: n
|
|
1349
1349
|
})), void 0, !0)]),
|
|
@@ -1351,7 +1351,7 @@ var We = /* @__PURE__ */ e({ default: () => wt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1351
1351
|
} : void 0,
|
|
1352
1352
|
e.$slots.optionAltCopy ? {
|
|
1353
1353
|
name: "optionAltCopy",
|
|
1354
|
-
fn: O(({ altCopy: t }) => [T(e.$slots, "optionAltCopy",
|
|
1354
|
+
fn: O(({ altCopy: t }) => [T(e.$slots, "optionAltCopy", x(y({ altCopy: t })), void 0, !0)]),
|
|
1355
1355
|
key: "9"
|
|
1356
1356
|
} : void 0,
|
|
1357
1357
|
e.$slots["custom-menu-before"] ? {
|
|
@@ -1364,35 +1364,35 @@ var We = /* @__PURE__ */ e({ default: () => wt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1364
1364
|
fn: O(() => [T(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
1365
1365
|
key: "11"
|
|
1366
1366
|
} : void 0
|
|
1367
|
-
]), 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("."))) :
|
|
1368
|
-
|
|
1367
|
+
]), 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("."))) : h("", !0),
|
|
1368
|
+
_("div", qe, [(S(), g("svg", {
|
|
1369
1369
|
ref_key: "svgRef",
|
|
1370
1370
|
ref: R,
|
|
1371
1371
|
xmlns: D(ae),
|
|
1372
1372
|
"aria-describedby": `chart-instructions-${j.value}`,
|
|
1373
|
-
class:
|
|
1373
|
+
class: b({
|
|
1374
1374
|
"vue-data-ui-fullscreen--on": $.value,
|
|
1375
1375
|
"vue-data-ui-fulscreen--off": !$.value,
|
|
1376
1376
|
"vue-data-ui-no-transition": !D(rn)
|
|
1377
1377
|
}),
|
|
1378
1378
|
viewBox: `0 0 ${z.value.width <= 0 ? 10 : z.value.width} ${z.value.height <= 0 ? 10 : z.value.height}`,
|
|
1379
|
-
style:
|
|
1379
|
+
style: Ie(`max-width:100%;overflow:visible;background:transparent;color:${F.value.style.color}`),
|
|
1380
1380
|
tabindex: "0",
|
|
1381
1381
|
onFocus: Mr,
|
|
1382
1382
|
onBlur: Nr,
|
|
1383
1383
|
onKeydown: Pr
|
|
1384
1384
|
}, [
|
|
1385
|
-
|
|
1386
|
-
e.$slots["chart-background"] ? (S(),
|
|
1385
|
+
Ne(D(At)),
|
|
1386
|
+
e.$slots["chart-background"] ? (S(), g("foreignObject", {
|
|
1387
1387
|
key: 0,
|
|
1388
1388
|
x: W.value.left,
|
|
1389
1389
|
y: W.value.top,
|
|
1390
1390
|
width: Math.max(.1, W.value.width),
|
|
1391
1391
|
height: Math.max(.1, W.value.height),
|
|
1392
1392
|
style: { pointerEvents: "none" }
|
|
1393
|
-
}, [T(e.$slots, "chart-background", {}, void 0, !0)], 8, Ye)) :
|
|
1394
|
-
Z.value.length > 0 ? (S(),
|
|
1395
|
-
|
|
1393
|
+
}, [T(e.$slots, "chart-background", {}, void 0, !0)], 8, Ye)) : h("", !0),
|
|
1394
|
+
Z.value.length > 0 ? (S(), g("g", Xe, [
|
|
1395
|
+
_("defs", null, [Ne(Te, {
|
|
1396
1396
|
t: "linear",
|
|
1397
1397
|
id: `bearish_gradient_${j.value}`,
|
|
1398
1398
|
x2: "0%",
|
|
@@ -1405,16 +1405,16 @@ var We = /* @__PURE__ */ e({ default: () => wt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1405
1405
|
],
|
|
1406
1406
|
[
|
|
1407
1407
|
"50%",
|
|
1408
|
-
D(
|
|
1408
|
+
D(o)(F.value.style.layout.candle.colors.bearish, .02),
|
|
1409
1409
|
.87
|
|
1410
1410
|
],
|
|
1411
1411
|
[
|
|
1412
1412
|
"100%",
|
|
1413
|
-
D(
|
|
1413
|
+
D(o)(F.value.style.layout.candle.colors.bearish, .05),
|
|
1414
1414
|
.4
|
|
1415
1415
|
]
|
|
1416
1416
|
]
|
|
1417
|
-
}, null, 8, ["id", "stops"]),
|
|
1417
|
+
}, null, 8, ["id", "stops"]), Ne(Te, {
|
|
1418
1418
|
t: "linear",
|
|
1419
1419
|
id: `bullish_gradient_${j.value}`,
|
|
1420
1420
|
x2: "0%",
|
|
@@ -1427,18 +1427,18 @@ var We = /* @__PURE__ */ e({ default: () => wt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1427
1427
|
],
|
|
1428
1428
|
[
|
|
1429
1429
|
"50%",
|
|
1430
|
-
D(
|
|
1430
|
+
D(o)(F.value.style.layout.candle.colors.bullish, .02),
|
|
1431
1431
|
.87
|
|
1432
1432
|
],
|
|
1433
1433
|
[
|
|
1434
1434
|
"100%",
|
|
1435
|
-
D(
|
|
1435
|
+
D(o)(F.value.style.layout.candle.colors.bullish, .05),
|
|
1436
1436
|
.4
|
|
1437
1437
|
]
|
|
1438
1438
|
]
|
|
1439
1439
|
}, null, 8, ["id", "stops"])]),
|
|
1440
|
-
F.value.style.layout.grid.show ? (S(),
|
|
1441
|
-
|
|
1440
|
+
F.value.style.layout.grid.show ? (S(), g("g", Ze, [
|
|
1441
|
+
_("line", {
|
|
1442
1442
|
x1: U.value ? W.value.right : W.value.left,
|
|
1443
1443
|
x2: U.value ? W.value.right : W.value.left,
|
|
1444
1444
|
y1: W.value.top,
|
|
@@ -1447,7 +1447,7 @@ var We = /* @__PURE__ */ e({ default: () => wt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1447
1447
|
"stroke-width": F.value.style.layout.grid.strokeWidth,
|
|
1448
1448
|
"stroke-linecap": "round"
|
|
1449
1449
|
}, null, 8, Qe),
|
|
1450
|
-
|
|
1450
|
+
_("line", {
|
|
1451
1451
|
x1: W.value.left,
|
|
1452
1452
|
x2: W.value.right,
|
|
1453
1453
|
y1: W.value.bottom,
|
|
@@ -1456,7 +1456,7 @@ var We = /* @__PURE__ */ e({ default: () => wt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1456
1456
|
"stroke-width": F.value.style.layout.grid.strokeWidth,
|
|
1457
1457
|
"stroke-linecap": "round"
|
|
1458
1458
|
}, null, 8, $e),
|
|
1459
|
-
F.value.style.layout.grid.horizontalLines.show ? (S(!0),
|
|
1459
|
+
F.value.style.layout.grid.horizontalLines.show ? (S(!0), g(f, { key: 0 }, w(Rn.value, (e) => (S(), g("line", {
|
|
1460
1460
|
x1: W.value.left,
|
|
1461
1461
|
x2: W.value.right,
|
|
1462
1462
|
y1: e.y,
|
|
@@ -1465,8 +1465,8 @@ var We = /* @__PURE__ */ e({ default: () => wt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1465
1465
|
"stroke-width": F.value.style.layout.grid.horizontalLines.strokeWidth,
|
|
1466
1466
|
"stroke-dasharray": F.value.style.layout.grid.horizontalLines.strokeDasharray,
|
|
1467
1467
|
"stroke-linecap": "round"
|
|
1468
|
-
}, null, 8, et))), 256)) :
|
|
1469
|
-
F.value.style.layout.grid.verticalLines.show ? (S(!0),
|
|
1468
|
+
}, null, 8, et))), 256)) : h("", !0),
|
|
1469
|
+
F.value.style.layout.grid.verticalLines.show ? (S(!0), g(f, { key: 1 }, w(Yn.value, (e, t) => (S(), g("g", null, [e.text ? (S(), g("line", {
|
|
1470
1470
|
key: 0,
|
|
1471
1471
|
x1: W.value.left + Y.value * t + Y.value / 2,
|
|
1472
1472
|
x2: W.value.left + Y.value * t + Y.value / 2,
|
|
@@ -1476,8 +1476,8 @@ var We = /* @__PURE__ */ e({ default: () => wt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1476
1476
|
"stroke-width": F.value.style.layout.grid.verticalLines.strokeWidth,
|
|
1477
1477
|
"stroke-dasharray": F.value.style.layout.grid.verticalLines.strokeDasharray,
|
|
1478
1478
|
"stroke-linecap": "round"
|
|
1479
|
-
}, null, 8, tt)) :
|
|
1480
|
-
F.value.style.layout.grid.xAxis.ticks.show ? (S(!0),
|
|
1479
|
+
}, null, 8, tt)) : h("", !0)]))), 256)) : h("", !0),
|
|
1480
|
+
F.value.style.layout.grid.xAxis.ticks.show ? (S(!0), g(f, { key: 2 }, w(Yn.value, (e, t) => (S(), g("g", null, [e.text ? (S(), g("line", {
|
|
1481
1481
|
key: 0,
|
|
1482
1482
|
x1: W.value.left + Y.value * t + Y.value / 2,
|
|
1483
1483
|
x2: W.value.left + Y.value * t + Y.value / 2,
|
|
@@ -1486,13 +1486,13 @@ var We = /* @__PURE__ */ e({ default: () => wt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1486
1486
|
stroke: F.value.style.layout.grid.stroke,
|
|
1487
1487
|
"stroke-width": F.value.style.layout.grid.strokeWidth,
|
|
1488
1488
|
"stroke-linecap": "round"
|
|
1489
|
-
}, null, 8, nt)) :
|
|
1490
|
-
])) :
|
|
1491
|
-
F.value.style.layout.grid.yAxis.dataLabels.show ? (S(),
|
|
1489
|
+
}, null, 8, nt)) : h("", !0)]))), 256)) : h("", !0)
|
|
1490
|
+
])) : h("", !0),
|
|
1491
|
+
F.value.style.layout.grid.yAxis.dataLabels.show ? (S(), g("g", {
|
|
1492
1492
|
key: 1,
|
|
1493
1493
|
ref_key: "scaleLabels",
|
|
1494
1494
|
ref: Yt
|
|
1495
|
-
}, [(S(!0),
|
|
1495
|
+
}, [(S(!0), g(f, null, w(Rn.value, (e, t) => (S(), g("g", { key: `sl_${t}` }, [e.value >= X.value.min && e.value <= X.value.max ? (S(), g("line", {
|
|
1496
1496
|
key: 0,
|
|
1497
1497
|
x1: U.value ? W.value.right : W.value.left,
|
|
1498
1498
|
x2: U.value ? W.value.right + 5 : W.value.left - 5,
|
|
@@ -1501,46 +1501,46 @@ var We = /* @__PURE__ */ e({ default: () => wt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1501
1501
|
stroke: F.value.style.layout.grid.stroke,
|
|
1502
1502
|
"stroke-width": F.value.style.layout.grid.strokeWidth,
|
|
1503
1503
|
"stroke-linecap": "round"
|
|
1504
|
-
}, null, 8, rt)) :
|
|
1504
|
+
}, null, 8, rt)) : h("", !0), e.value >= X.value.min && e.value <= X.value.max ? (S(), g("text", {
|
|
1505
1505
|
key: 1,
|
|
1506
|
-
class:
|
|
1506
|
+
class: b({ "vue-data-ui-transition": D(rn) }),
|
|
1507
1507
|
transform: `translate(${U.value ? W.value.right + 8 + F.value.style.layout.grid.yAxis.dataLabels.offsetX : W.value.left - 8 + F.value.style.layout.grid.yAxis.dataLabels.offsetX}, ${e.y + z.value.yAxisFontSize / 3})`,
|
|
1508
1508
|
"text-anchor": U.value ? "start" : "end",
|
|
1509
1509
|
"font-size": z.value.yAxisFontSize,
|
|
1510
1510
|
fill: F.value.style.layout.grid.yAxis.dataLabels.color,
|
|
1511
1511
|
"font-weight": F.value.style.layout.grid.yAxis.dataLabels.bold ? "bold" : "normal"
|
|
1512
|
-
}, E(D(
|
|
1512
|
+
}, E(D(s)({
|
|
1513
1513
|
p: F.value.style.layout.grid.yAxis.dataLabels.prefix,
|
|
1514
1514
|
v: e.value,
|
|
1515
1515
|
s: F.value.style.layout.grid.yAxis.dataLabels.suffix,
|
|
1516
1516
|
r: F.value.style.layout.grid.yAxis.dataLabels.roundingValue
|
|
1517
|
-
})), 11, it)) :
|
|
1518
|
-
F.value.style.layout.grid.xAxis.dataLabels.show && !F.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? (S(),
|
|
1517
|
+
})), 11, it)) : h("", !0)]))), 128))], 512)) : h("", !0),
|
|
1518
|
+
F.value.style.layout.grid.xAxis.dataLabels.show && !F.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? (S(), g("g", {
|
|
1519
1519
|
key: 2,
|
|
1520
1520
|
ref_key: "timeLabelsEls",
|
|
1521
1521
|
ref: Xt
|
|
1522
|
-
}, [(S(!0),
|
|
1522
|
+
}, [(S(!0), g(f, null, w(zn.value, (e, t) => (S(), g("g", null, [_("text", {
|
|
1523
1523
|
class: "vue-data-ui-time-label",
|
|
1524
1524
|
transform: `translate(${W.value.left + Y.value * t + Y.value / 2}, ${W.value.bottom + z.value.xAxisFontSize * 1.5}), rotate(${F.value.style.layout.grid.xAxis.dataLabels.rotation})`,
|
|
1525
1525
|
"text-anchor": F.value.style.layout.grid.xAxis.dataLabels.rotation > 0 ? "start" : F.value.style.layout.grid.xAxis.dataLabels.rotation < 0 ? "end" : "middle",
|
|
1526
1526
|
"font-size": z.value.xAxisFontSize,
|
|
1527
1527
|
fill: F.value.style.layout.grid.xAxis.dataLabels.color,
|
|
1528
1528
|
"font-weight": F.value.style.layout.grid.xAxis.dataLabels.bold ? "bold" : "normal"
|
|
1529
|
-
}, E(e), 9, at)]))), 256))], 512)) :
|
|
1530
|
-
F.value.style.layout.grid.xAxis.dataLabels.show && F.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? (S(),
|
|
1529
|
+
}, E(e), 9, at)]))), 256))], 512)) : h("", !0),
|
|
1530
|
+
F.value.style.layout.grid.xAxis.dataLabels.show && F.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? (S(), g("g", {
|
|
1531
1531
|
key: 3,
|
|
1532
1532
|
ref_key: "timeLabelsEls",
|
|
1533
1533
|
ref: Xt
|
|
1534
|
-
}, [(S(!0),
|
|
1534
|
+
}, [(S(!0), g(f, null, w(Yn.value, (e, t) => (S(), g("g", null, [_("text", {
|
|
1535
1535
|
class: "vue-data-ui-time-label",
|
|
1536
1536
|
transform: `translate(${W.value.left + Y.value * t + Y.value / 2}, ${W.value.bottom + z.value.xAxisFontSize * 1.5}), rotate(${F.value.style.layout.grid.xAxis.dataLabels.rotation})`,
|
|
1537
1537
|
"text-anchor": F.value.style.layout.grid.xAxis.dataLabels.rotation > 0 ? "start" : F.value.style.layout.grid.xAxis.dataLabels.rotation < 0 ? "end" : "middle",
|
|
1538
1538
|
"font-size": z.value.xAxisFontSize,
|
|
1539
1539
|
fill: F.value.style.layout.grid.xAxis.dataLabels.color,
|
|
1540
1540
|
"font-weight": F.value.style.layout.grid.xAxis.dataLabels.bold ? "bold" : "normal"
|
|
1541
|
-
}, E(e?.text ?? ""), 9, ot)]))), 256))], 512)) :
|
|
1542
|
-
F.value.type === "candlestick" ? (S(),
|
|
1543
|
-
|
|
1541
|
+
}, E(e?.text ?? ""), 9, ot)]))), 256))], 512)) : h("", !0),
|
|
1542
|
+
F.value.type === "candlestick" ? (S(), g(f, { key: 4 }, [_("g", null, [(S(!0), g(f, null, w(Z.value, (e, t) => (S(), g("g", null, [
|
|
1543
|
+
_("rect", {
|
|
1544
1544
|
x: e.open.x - F.value.style.layout.wick.strokeWidth / 2,
|
|
1545
1545
|
y: e.high.y,
|
|
1546
1546
|
width: F.value.style.layout.wick.strokeWidth,
|
|
@@ -1548,22 +1548,22 @@ var We = /* @__PURE__ */ e({ default: () => wt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1548
1548
|
fill: F.value.style.layout.wick.stroke,
|
|
1549
1549
|
stroke: "none",
|
|
1550
1550
|
rx: F.value.style.layout.wick.strokeWidth / 2,
|
|
1551
|
-
class:
|
|
1551
|
+
class: b({ "vue-data-ui-transition": A.value && !D(I) })
|
|
1552
1552
|
}, null, 10, st),
|
|
1553
|
-
F.value.style.layout.wick.extremity.shape === "circle" ? (S(),
|
|
1553
|
+
F.value.style.layout.wick.extremity.shape === "circle" ? (S(), g("g", ct, [_("circle", {
|
|
1554
1554
|
cx: e.high.x,
|
|
1555
1555
|
cy: e.high.y,
|
|
1556
1556
|
r: F.value.style.layout.wick.extremity.size === "auto" ? Y.value / 20 : F.value.style.layout.wick.extremity.size,
|
|
1557
1557
|
fill: F.value.style.layout.wick.extremity.color,
|
|
1558
|
-
class:
|
|
1559
|
-
}, null, 10, lt),
|
|
1558
|
+
class: b({ "vue-data-ui-transition": A.value && !D(I) })
|
|
1559
|
+
}, null, 10, lt), _("circle", {
|
|
1560
1560
|
cx: e.low.x,
|
|
1561
1561
|
cy: e.low.y,
|
|
1562
1562
|
r: F.value.style.layout.wick.extremity.size === "auto" ? Y.value / 20 : F.value.style.layout.wick.extremity.size,
|
|
1563
1563
|
fill: F.value.style.layout.wick.extremity.color,
|
|
1564
|
-
class:
|
|
1565
|
-
}, null, 10, ut)])) :
|
|
1566
|
-
F.value.style.layout.wick.extremity.shape === "line" ? (S(),
|
|
1564
|
+
class: b({ "vue-data-ui-transition": A.value && !D(I) })
|
|
1565
|
+
}, null, 10, ut)])) : h("", !0),
|
|
1566
|
+
F.value.style.layout.wick.extremity.shape === "line" ? (S(), g("g", dt, [_("rect", {
|
|
1567
1567
|
x: e.high.x - (F.value.style.layout.wick.extremity.size === "auto" ? Y.value * F.value.style.layout.candle.widthRatio : F.value.style.layout.wick.extremity.size) / 2,
|
|
1568
1568
|
y: e.high.y - F.value.style.layout.wick.strokeWidth / 2,
|
|
1569
1569
|
width: Math.abs(e.high.x - (F.value.style.layout.wick.extremity.size === "auto" ? Y.value * F.value.style.layout.candle.widthRatio : F.value.style.layout.wick.extremity.size) / 2 - (e.high.x + (F.value.style.layout.wick.extremity.size === "auto" ? Y.value * F.value.style.layout.candle.widthRatio : F.value.style.layout.wick.extremity.size) / 2)),
|
|
@@ -1571,8 +1571,8 @@ var We = /* @__PURE__ */ e({ default: () => wt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1571
1571
|
rx: F.value.style.layout.wick.strokeWidth / 2,
|
|
1572
1572
|
fill: F.value.style.layout.wick.extremity.color,
|
|
1573
1573
|
stroke: "none",
|
|
1574
|
-
class:
|
|
1575
|
-
}, null, 10, ft),
|
|
1574
|
+
class: b({ "vue-data-ui-transition": A.value && !D(I) })
|
|
1575
|
+
}, null, 10, ft), _("rect", {
|
|
1576
1576
|
x: e.low.x - (F.value.style.layout.wick.extremity.size === "auto" ? Y.value * F.value.style.layout.candle.widthRatio : F.value.style.layout.wick.extremity.size) / 2,
|
|
1577
1577
|
y: e.low.y - F.value.style.layout.wick.strokeWidth / 2,
|
|
1578
1578
|
width: Math.abs(e.low.x - (F.value.style.layout.wick.extremity.size === "auto" ? Y.value * F.value.style.layout.candle.widthRatio : F.value.style.layout.wick.extremity.size) / 2 - (e.low.x + (F.value.style.layout.wick.extremity.size === "auto" ? Y.value * F.value.style.layout.candle.widthRatio : F.value.style.layout.wick.extremity.size) / 2)),
|
|
@@ -1580,9 +1580,9 @@ var We = /* @__PURE__ */ e({ default: () => wt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1580
1580
|
fill: F.value.style.layout.wick.extremity.color,
|
|
1581
1581
|
stroke: "none",
|
|
1582
1582
|
rx: F.value.style.layout.wick.strokeWidth / 2,
|
|
1583
|
-
class:
|
|
1584
|
-
}, null, 10, pt)])) :
|
|
1585
|
-
]))), 256))]),
|
|
1583
|
+
class: b({ "vue-data-ui-transition": A.value && !D(I) })
|
|
1584
|
+
}, null, 10, pt)])) : h("", !0)
|
|
1585
|
+
]))), 256))]), _("g", null, [(S(!0), g(f, null, w(Z.value, (e, t) => (S(), g("rect", {
|
|
1586
1586
|
x: e.open.x - Y.value / 2 + Y.value * (1 - F.value.style.layout.candle.widthRatio) / 2,
|
|
1587
1587
|
y: e.isBullish ? e.close.y : e.open.y,
|
|
1588
1588
|
height: Math.abs(e.close.y - e.open.y) <= 0 ? 1e-4 : Math.abs(e.close.y - e.open.y),
|
|
@@ -1590,8 +1590,8 @@ var We = /* @__PURE__ */ e({ default: () => wt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1590
1590
|
fill: F.value.style.layout.candle.gradient.underlayer,
|
|
1591
1591
|
rx: F.value.style.layout.candle.borderRadius,
|
|
1592
1592
|
stroke: "none",
|
|
1593
|
-
class:
|
|
1594
|
-
}, null, 10, mt))), 256)), (S(!0),
|
|
1593
|
+
class: b({ "vue-data-ui-transition": A.value && !D(I) })
|
|
1594
|
+
}, null, 10, mt))), 256)), (S(!0), g(f, null, w(Z.value, (e, t) => (S(), g("rect", {
|
|
1595
1595
|
x: e.open.x - Y.value / 2 + Y.value * (1 - F.value.style.layout.candle.widthRatio) / 2,
|
|
1596
1596
|
y: e.isBullish ? e.close.y : e.open.y,
|
|
1597
1597
|
height: Math.abs(e.close.y - e.open.y) <= 0 ? 1e-4 : Math.abs(e.close.y - e.open.y),
|
|
@@ -1602,31 +1602,31 @@ var We = /* @__PURE__ */ e({ default: () => wt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1602
1602
|
"stroke-width": F.value.style.layout.candle.strokeWidth,
|
|
1603
1603
|
"stroke-linecap": "round",
|
|
1604
1604
|
"stroke-linejoin": "round",
|
|
1605
|
-
class:
|
|
1606
|
-
}, null, 10, ht))), 256))])], 64)) :
|
|
1607
|
-
F.value.type === "ohlc" ? (S(!0),
|
|
1605
|
+
class: b({ "vue-data-ui-transition": A.value && !D(I) })
|
|
1606
|
+
}, null, 10, ht))), 256))])], 64)) : h("", !0),
|
|
1607
|
+
F.value.type === "ohlc" ? (S(!0), g(f, { key: 5 }, w(Z.value, (e, t) => (S(), g("g", { key: `ohlc_${e.absoluteIndex}` }, [_("path", {
|
|
1608
1608
|
d: `M ${e.high.x},${e.high.y} ${e.low.x},${e.low.y} M${e.open.x - Math.min(6, Y.value / 3)},${e.open.y} ${e.open.x},${e.open.y} M${e.close.x},${e.close.y} ${e.close.x + Math.min(6, Y.value / 3)},${e.close.y}`,
|
|
1609
1609
|
stroke: e.isBullish ? F.value.style.layout.candle.colors.bullish : F.value.style.layout.candle.colors.bearish,
|
|
1610
1610
|
"stroke-width": 1,
|
|
1611
|
-
class:
|
|
1611
|
+
class: b({ "vue-data-ui-transition": D(rn) }),
|
|
1612
1612
|
"stroke-linecap": "round",
|
|
1613
1613
|
"stroke-linejoin": "round"
|
|
1614
|
-
}, null, 10, gt)]))), 128)) :
|
|
1615
|
-
|
|
1614
|
+
}, null, 10, gt)]))), 128)) : h("", !0),
|
|
1615
|
+
_("g", null, [(S(!0), g(f, null, w(Z.value, (e, t) => (S(), g("rect", {
|
|
1616
1616
|
x: W.value.left + t * Y.value,
|
|
1617
1617
|
y: W.value.top,
|
|
1618
1618
|
height: W.value.height <= 0 ? 1e-4 : W.value.height,
|
|
1619
1619
|
width: Y.value <= 0 ? 1e-4 : Y.value,
|
|
1620
|
-
fill: M.value === t || $t.value === t ? D(
|
|
1620
|
+
fill: M.value === t || $t.value === t ? D(r)(F.value.style.layout.selector.color, F.value.style.layout.selector.opacity) : "transparent",
|
|
1621
1621
|
onMouseover: () => er(t, e, "pointer"),
|
|
1622
1622
|
onMouseleave: () => $n(t, e),
|
|
1623
1623
|
onClick: () => Qn(t, e)
|
|
1624
1624
|
}, null, 40, _t))), 256))])
|
|
1625
|
-
])) :
|
|
1626
|
-
En.value ? (S(),
|
|
1625
|
+
])) : h("", !0),
|
|
1626
|
+
En.value ? (S(), g("rect", Pe({ key: 2 }, Tn.value, {
|
|
1627
1627
|
"data-start": K.value.start,
|
|
1628
1628
|
"data-end": K.value.end
|
|
1629
|
-
}), null, 16, vt)) :
|
|
1629
|
+
}), null, 16, vt)) : h("", !0),
|
|
1630
1630
|
T(e.$slots, "svg", { svg: {
|
|
1631
1631
|
...z.value,
|
|
1632
1632
|
data: Z.value,
|
|
@@ -1634,12 +1634,12 @@ var We = /* @__PURE__ */ e({ default: () => wt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1634
1634
|
isPrintingImg: D(gn) || D(_n) || D(Cr),
|
|
1635
1635
|
isPrintingSvg: D(wr)
|
|
1636
1636
|
} }, void 0, !0)
|
|
1637
|
-
], 46, Je)), e.$slots.hint ? (S(),
|
|
1637
|
+
], 46, Je)), e.$slots.hint ? (S(), g("div", yt, [T(e.$slots, "hint", x(y({
|
|
1638
1638
|
hint: F.value.a11y.translations.keyboardNavigation,
|
|
1639
1639
|
isVisible: nn.value
|
|
1640
|
-
})), void 0, !0)])) :
|
|
1641
|
-
e.$slots.watermark ? (S(),
|
|
1642
|
-
F.value.style.zoom.show && G.value > 6 && It.value && ar.value ? (S(),
|
|
1640
|
+
})), void 0, !0)])) : h("", !0)]),
|
|
1641
|
+
e.$slots.watermark ? (S(), g("div", bt, [T(e.$slots, "watermark", x(y({ isPrinting: D(gn) || D(_n) || D(Cr) || D(wr) })), void 0, !0)])) : h("", !0),
|
|
1642
|
+
F.value.style.zoom.show && G.value > 6 && It.value && ar.value ? (S(), m(Ee, {
|
|
1643
1643
|
key: 6,
|
|
1644
1644
|
ref_key: "chartSlicer",
|
|
1645
1645
|
ref: Ut,
|
|
@@ -1704,34 +1704,34 @@ var We = /* @__PURE__ */ e({ default: () => wt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1704
1704
|
onFutureEnd: t[0] ||= (e) => Dn("end", e),
|
|
1705
1705
|
onFutureStart: t[1] ||= (e) => Dn("start", e)
|
|
1706
1706
|
}, {
|
|
1707
|
-
"reset-action": O(({ reset: t }) => [T(e.$slots, "reset-action",
|
|
1708
|
-
slotMap: O(({ height: e, unitW: t }) => [(S(!0),
|
|
1707
|
+
"reset-action": O(({ reset: t }) => [T(e.$slots, "reset-action", x(y({ reset: t })), void 0, !0)]),
|
|
1708
|
+
slotMap: O(({ height: e, unitW: t }) => [(S(!0), g(f, null, w(Fn.value({
|
|
1709
1709
|
minimapH: e,
|
|
1710
1710
|
unitW: t
|
|
1711
|
-
}), (e, n) => (S(),
|
|
1711
|
+
}), (e, n) => (S(), g("g", null, [_("path", {
|
|
1712
1712
|
d: `M ${e.high.x},${e.high.y} ${e.low.x},${e.low.y}`,
|
|
1713
1713
|
stroke: e.isBullish ? F.value.style.layout.candle.colors.bullish : F.value.style.layout.candle.colors.bearish,
|
|
1714
1714
|
"stroke-width": 1,
|
|
1715
|
-
style:
|
|
1716
|
-
}, null, 12, xt),
|
|
1715
|
+
style: Ie({ opacity: n >= q.value.start && n <= q.value.end ? 1 : .6 })
|
|
1716
|
+
}, null, 12, xt), _("path", {
|
|
1717
1717
|
d: `M ${e.open.x},${e.open.y} ${e.close.x},${e.close.y}`,
|
|
1718
1718
|
stroke: e.isBullish ? F.value.style.layout.candle.colors.bullish : F.value.style.layout.candle.colors.bearish,
|
|
1719
1719
|
"stroke-width": Math.min(6, t / 1.5),
|
|
1720
|
-
style:
|
|
1720
|
+
style: Ie({ opacity: n >= q.value.start && n <= q.value.end ? 1 : .6 })
|
|
1721
1721
|
}, null, 12, St)]))), 256))]),
|
|
1722
1722
|
_: 3
|
|
1723
|
-
}, 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("."))) :
|
|
1724
|
-
|
|
1723
|
+
}, 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("."))) : h("", !0),
|
|
1724
|
+
_("div", {
|
|
1725
1725
|
ref_key: "chartLegend",
|
|
1726
1726
|
ref: Ht
|
|
1727
1727
|
}, [T(e.$slots, "legend", { legend: Z.value }, void 0, !0)], 512),
|
|
1728
|
-
e.$slots.source ? (S(),
|
|
1728
|
+
e.$slots.source ? (S(), g("div", {
|
|
1729
1729
|
key: 7,
|
|
1730
1730
|
ref_key: "source",
|
|
1731
1731
|
ref: Wt,
|
|
1732
1732
|
dir: "auto"
|
|
1733
|
-
}, [T(e.$slots, "source", {}, void 0, !0)], 512)) :
|
|
1734
|
-
|
|
1733
|
+
}, [T(e.$slots, "source", {}, void 0, !0)], 512)) : h("", !0),
|
|
1734
|
+
Ne(D(Tt), {
|
|
1735
1735
|
teleportTo: F.value.style.tooltip.teleportTo,
|
|
1736
1736
|
show: H.value.showTooltip && Rt.value,
|
|
1737
1737
|
backgroundColor: F.value.style.tooltip.backgroundColor,
|
|
@@ -1755,9 +1755,9 @@ var We = /* @__PURE__ */ e({ default: () => wt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1755
1755
|
isA11yMode: tn.value === "keyboard",
|
|
1756
1756
|
a11yPosition: en.value
|
|
1757
1757
|
}, {
|
|
1758
|
-
"tooltip-before": O(() => [T(e.$slots, "tooltip-before",
|
|
1759
|
-
tooltip: O(() => [T(e.$slots, "tooltip",
|
|
1760
|
-
"tooltip-after": O(() => [T(e.$slots, "tooltip-after",
|
|
1758
|
+
"tooltip-before": O(() => [T(e.$slots, "tooltip-before", x(y({ ...Zn.value })), void 0, !0)]),
|
|
1759
|
+
tooltip: O(() => [T(e.$slots, "tooltip", x(y({ ...Zn.value })), void 0, !0)]),
|
|
1760
|
+
"tooltip-after": O(() => [T(e.$slots, "tooltip-after", x(y({ ...Zn.value })), void 0, !0)]),
|
|
1761
1761
|
_: 3
|
|
1762
1762
|
}, 8, [
|
|
1763
1763
|
"teleportTo",
|
|
@@ -1783,12 +1783,12 @@ var We = /* @__PURE__ */ e({ default: () => wt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1783
1783
|
"isA11yMode",
|
|
1784
1784
|
"a11yPosition"
|
|
1785
1785
|
]),
|
|
1786
|
-
It.value && F.value.userOptions.buttons.table ? (S(),
|
|
1786
|
+
It.value && F.value.userOptions.buttons.table ? (S(), m(ze(yr.value.component), Pe({ key: 8 }, yr.value.props, {
|
|
1787
1787
|
ref_key: "tableUnit",
|
|
1788
1788
|
ref: Zt,
|
|
1789
1789
|
onClose: br
|
|
1790
|
-
}),
|
|
1791
|
-
content: O(() => [(S(),
|
|
1790
|
+
}), je({
|
|
1791
|
+
content: O(() => [(S(), m(D(Dt), {
|
|
1792
1792
|
key: `table_${qt.value}`,
|
|
1793
1793
|
colNames: ur.value.colNames,
|
|
1794
1794
|
head: ur.value.head,
|
|
@@ -1799,8 +1799,8 @@ var We = /* @__PURE__ */ e({ default: () => wt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1799
1799
|
isCursorPointer: an.value,
|
|
1800
1800
|
onClose: br
|
|
1801
1801
|
}, {
|
|
1802
|
-
th: O(({ th: e }) => [
|
|
1803
|
-
td: O(({ td: e }) => [
|
|
1802
|
+
th: O(({ th: e }) => [Me(E(e), 1)]),
|
|
1803
|
+
td: O(({ td: e }) => [_("div", { innerHTML: e }, null, 8, Ct)]),
|
|
1804
1804
|
_: 1
|
|
1805
1805
|
}, 8, [
|
|
1806
1806
|
"colNames",
|
|
@@ -1814,22 +1814,22 @@ var We = /* @__PURE__ */ e({ default: () => wt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1814
1814
|
_: 2
|
|
1815
1815
|
}, [F.value.table.useDialog ? {
|
|
1816
1816
|
name: "title",
|
|
1817
|
-
fn: O(() => [
|
|
1817
|
+
fn: O(() => [Me(E(yr.value.title), 1)]),
|
|
1818
1818
|
key: "0"
|
|
1819
1819
|
} : void 0, F.value.table.useDialog ? {
|
|
1820
1820
|
name: "actions",
|
|
1821
|
-
fn: O(() => [
|
|
1821
|
+
fn: O(() => [_("button", {
|
|
1822
1822
|
tabindex: "0",
|
|
1823
1823
|
class: "vue-ui-user-options-button",
|
|
1824
1824
|
onClick: t[2] ||= (e) => lr(F.value.userOptions.callbacks.csv),
|
|
1825
|
-
style:
|
|
1826
|
-
}, [
|
|
1825
|
+
style: Ie({ cursor: an.value ? "pointer" : "default" })
|
|
1826
|
+
}, [Ne(D(wt), {
|
|
1827
1827
|
name: "fileCsv",
|
|
1828
1828
|
stroke: yr.value.props.color
|
|
1829
1829
|
}, null, 8, ["stroke"])], 4)]),
|
|
1830
1830
|
key: "1"
|
|
1831
|
-
} : void 0]), 1040)) :
|
|
1832
|
-
T(e.$slots, "skeleton", {}, () => [D(I) ? (S(),
|
|
1831
|
+
} : void 0]), 1040)) : h("", !0),
|
|
1832
|
+
T(e.$slots, "skeleton", {}, () => [D(I) ? (S(), m(me, { key: 0 })) : h("", !0)], !0)
|
|
1833
1833
|
], 46, Ge));
|
|
1834
1834
|
}
|
|
1835
1835
|
}, [["__scopeId", "data-v-3777144d"]]);
|