vue-data-ui 3.22.13 → 3.23.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/LICENSE +1 -1
- package/README.md +13 -1
- package/dist/{Arrow-DKx74WtM.js → Arrow-o2qHNvrC.js} +1 -1
- package/dist/{BaseDraggableDialog-3n8udWmh.js → BaseDraggableDialog-qTnfhLBz.js} +2 -2
- package/dist/{BaseIcon-CP5RWnqt.js → BaseIcon-91MZoczJ.js} +4 -3
- package/dist/{BaseLegendToggle-DsWphmIb.js → BaseLegendToggle-CtAPwzr2.js} +1 -1
- package/dist/{BaseZoomControls-C9_ygNN4.js → BaseZoomControls-rdzlicuz.js} +2 -2
- package/dist/{ColorPicker-3N_HVgXs.js → ColorPicker-CIAkdPrj.js} +2 -2
- package/dist/{DataTable-DzPEVvSo.js → DataTable-D4tM9s5Y.js} +2 -2
- package/dist/HillActions-BWhxHlrj.js +187 -0
- package/dist/{Legend-C0xAnJdO.js → Legend-CQTRlzK-.js} +2 -2
- package/dist/{NonSvgPenAndPaper-B_mE5UbR.js → NonSvgPenAndPaper-Cawacw1W.js} +19 -19
- package/dist/{PackageVersion-B6Hokxw9.js → PackageVersion--QCMh5k_.js} +1 -1
- package/dist/{PenAndPaper-CSMVXpg2.js → PenAndPaper-cE4J8-rA.js} +11 -11
- package/dist/{Shape-BfnXr1nJ.js → Shape-BPMV94Ij.js} +3 -3
- package/dist/{Slicer-C6qNUmZ4.js → Slicer-5yIrdoJv.js} +15 -15
- package/dist/SlicerPreview-DvjLV2TW.js +1689 -0
- package/dist/{SparkTooltip-uoUiL_P8.js → SparkTooltip-BaYtEKS6.js} +6 -6
- package/dist/Title-BODtwViI.js +87 -0
- package/dist/{Tooltip-CA1rtSyl.js → Tooltip-CMTGxeYO.js} +1 -1
- package/dist/{UserOptions-DzAFK9cY.js → UserOptions-3ujTo3LD.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 +2 -0
- 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-BdAFKZQg.js → dom-to-png-4tdMNGPX.js} +1 -1
- package/dist/exposedLib-DWLRqRhv.js +25 -0
- package/dist/{img-Bikk1dGb.js → img-DIQG5q8T.js} +1 -1
- package/dist/{labelUtils-BUhssos9.js → labelUtils-C5lnc_xc.js} +1 -1
- package/dist/{lib-CFm_J26b.js → lib-BuMGJ_a0.js} +216 -173
- package/dist/{package-DmDydylu.js → package-BMc_ZieJ.js} +1 -1
- package/dist/{pdf-zmz3l2uy.js → pdf-Cnz4NKM9.js} +1 -1
- package/dist/{render-common-BIG8JYGK.js → render-common-Ktg2LZFG.js} +21 -21
- 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 +493 -0
- package/dist/types/vue-ui-hill.d.ts +90 -0
- package/dist/useAutoSizeLabelsInsideViewbox-DvDwcwi_.js +122 -0
- package/dist/{useConfig-C0V0eG7L.js → useConfig-BilxnBNr.js} +767 -476
- package/dist/useHints-Dq_w2E8B.js +66 -0
- package/dist/{useNestedProp-BY6DNN3i.js → useNestedProp--NSEmhOH.js} +1 -1
- package/dist/{useObjectBindings-Djwpii4d.js → useObjectBindings-Cwq7NcQz.js} +3 -2
- package/dist/{usePrinter-BH-xle1O.js → usePrinter-BFvi4jVy.js} +2 -2
- package/dist/useTransitions-g_zBREk2.js +39 -0
- package/dist/utils.js +14 -14
- package/dist/{vue-data-ui-rkzh6EkO.js → vue-data-ui-EsawKe_W.js} +85 -81
- package/dist/vue-data-ui.js +77 -76
- package/dist/vue-ui-3d-bar-RSUS2xpL.js +1849 -0
- package/dist/{vue-ui-accordion-UA88lv4d.js → vue-ui-accordion-61MlW-Ge.js} +4 -4
- package/dist/vue-ui-age-pyramid-CgnPWA93.js +1263 -0
- package/dist/vue-ui-annotator-DBRT85HG.js +2913 -0
- package/dist/vue-ui-bullet-Bc3-WaN1.js +724 -0
- package/dist/{vue-ui-bump-BS7RCf0Z.js → vue-ui-bump-Dvv3iSKr.js} +332 -295
- package/dist/{vue-ui-candlestick-BZSGDKrM.js → vue-ui-candlestick-DvvsrIdp.js} +464 -440
- package/dist/vue-ui-carousel-table-DtsNVim8.js +463 -0
- package/dist/vue-ui-chestnut-ArloORzP.js +2068 -0
- package/dist/{vue-ui-chord-D6G7ceE-.js → vue-ui-chord-xX5gWZy8.js} +430 -424
- package/dist/vue-ui-circle-pack-D8wykmqg.js +1638 -0
- package/dist/{vue-ui-cursor-BpN5MsXM.js → vue-ui-cursor-CxgE6Phh.js} +61 -61
- package/dist/{vue-ui-dag-BzgOgXzU.js → vue-ui-dag-C9Sf9vH7.js} +924 -916
- package/dist/vue-ui-dashboard-bGmaglAj.js +520 -0
- package/dist/{vue-ui-digits-OMPrn8fb.js → vue-ui-digits-DgDE-_Fn.js} +58 -50
- package/dist/vue-ui-donut-B_n6wF6B.js +2440 -0
- package/dist/{vue-ui-donut-Cp5NbZ1r.js → vue-ui-donut-Bmo149AR.js} +113 -113
- package/dist/{vue-ui-donut-evolution-DHVi5rOn.js → vue-ui-donut-evolution-D6vH_hfx.js} +528 -447
- package/dist/vue-ui-dumbbell-BX4Ao_wR.js +1582 -0
- package/dist/{vue-ui-flow-BusUK3H0.js → vue-ui-flow-Bshw8pT_.js} +415 -407
- package/dist/vue-ui-funnel-CjYosIik.js +797 -0
- package/dist/vue-ui-galaxy-CvXgy-dy.js +1111 -0
- package/dist/vue-ui-gauge-CByT0_vF.js +953 -0
- package/dist/{vue-ui-geo-CyFgFKlh.js → vue-ui-geo-C-gSZL2q.js} +378 -363
- package/dist/{vue-ui-gizmo-DdeXwCQp.js → vue-ui-gizmo-CJdxyPID.js} +57 -49
- package/dist/{vue-ui-heatmap-D8-qJ7fg.js → vue-ui-heatmap-DEEKv8ip.js} +498 -490
- package/dist/vue-ui-hill-D7LYAgAL.js +1768 -0
- package/dist/{vue-ui-history-plot-C2Aqk2ON.js → vue-ui-history-plot-BhcU94Pt.js} +553 -556
- package/dist/vue-ui-horizontal-bar-CfFye5tL.js +1733 -0
- package/dist/vue-ui-kpi-DCBnNfTb.js +104 -0
- package/dist/vue-ui-mini-loader-CtWpqnLW.js +133 -0
- package/dist/vue-ui-molecule-D3igGyOy.js +958 -0
- package/dist/{vue-ui-mood-radar-BiOjxFEN.js → vue-ui-mood-radar-sl6DMxqR.js} +349 -341
- package/dist/{vue-ui-nested-donuts-Cl1HVvDp.js → vue-ui-nested-donuts-aS4YzaB3.js} +449 -413
- package/dist/vue-ui-onion-EhPTZpW_.js +1258 -0
- package/dist/vue-ui-parallel-coordinate-plot-DE9wTmQQ.js +1455 -0
- package/dist/{vue-ui-quadrant-B21LkUc8.js → vue-ui-quadrant-SaY_RPSE.js} +625 -617
- package/dist/vue-ui-quick-chart-CJ9rejnj.js +2389 -0
- package/dist/{vue-ui-radar-CyzAyVos.js → vue-ui-radar-CaNen5Fj.js} +356 -310
- package/dist/vue-ui-rating--K7rX2an.js +360 -0
- package/dist/vue-ui-relation-circle-FLs8vOxQ.js +925 -0
- package/dist/vue-ui-ridgeline-Beg5hshN.js +1663 -0
- package/dist/{vue-ui-rings-FtcdX8xl.js → vue-ui-rings-BevKD8P-.js} +449 -423
- package/dist/{vue-ui-scatter-Cp_-2ahf.js → vue-ui-scatter-CNA7jF-o.js} +721 -702
- package/dist/{vue-ui-skeleton-COytVrfN.js → vue-ui-skeleton-B9ZP1w-i.js} +395 -387
- package/dist/{vue-ui-smiley-Da2jgkb7.js → vue-ui-smiley-DYnqqk6u.js} +128 -120
- package/dist/{vue-ui-spark-trend-DC2KUlEY.js → vue-ui-spark-trend-R0ebpg-G.js} +132 -117
- package/dist/{vue-ui-sparkbar-DdxQOFIF.js → vue-ui-sparkbar-DYC3By0v.js} +119 -111
- package/dist/{vue-ui-sparkgauge-DTA-fORH.js → vue-ui-sparkgauge-Bw6no-In.js} +76 -68
- package/dist/vue-ui-sparkhistogram-DvRKy8rq.js +590 -0
- package/dist/{vue-ui-sparkline-DcR_N-zT.js → vue-ui-sparkline-Dz1uzBos.js} +389 -364
- package/dist/vue-ui-sparkstackbar-DlnPdZih.js +692 -0
- package/dist/vue-ui-stackbar-B-THcavY.js +2350 -0
- package/dist/vue-ui-stackline-3dBPoI0h.js +2464 -0
- package/dist/{vue-ui-strip-plot-NLCwYvyw.js → vue-ui-strip-plot-ACeYOoHj.js} +505 -484
- package/dist/vue-ui-table-heatmap-DVwMqzje.js +364 -0
- package/dist/{vue-ui-table-AM9brdwU.js → vue-ui-table-rFy16bp0.js} +512 -504
- package/dist/{vue-ui-table-sparkline-BE6DAvur.js → vue-ui-table-sparkline-CABJzK8p.js} +207 -181
- package/dist/vue-ui-thermometer-CVQ-H69Q.js +777 -0
- package/dist/{vue-ui-timer-BZM5ITG9.js → vue-ui-timer-Bm8LpsnI.js} +66 -58
- package/dist/{vue-ui-tiremarks-BCncDpHX.js → vue-ui-tiremarks-DB3f5qiz.js} +127 -119
- package/dist/vue-ui-treemap-DP0Sx8Y8.js +1760 -0
- package/dist/vue-ui-waffle-iPpdk1Bm.js +1412 -0
- package/dist/vue-ui-wheel-BJkEYfLj.js +892 -0
- package/dist/{vue-ui-word-cloud-D7R7nhk1.js → vue-ui-word-cloud-B2sxtel9.js} +440 -432
- package/dist/{vue-ui-world-DZBt-07p.js → vue-ui-world-BBQZLnzm.js} +343 -335
- package/dist/vue-ui-xy-ChZg7AtI.js +1364 -0
- package/dist/{vue-ui-xy-CluEZ7lS.js → vue-ui-xy-DZj5DT-q.js} +1633 -1587
- package/dist/{vue-ui-xy-canvas-7YSYRdwr.js → vue-ui-xy-canvas-BN2u0bOJ.js} +456 -430
- package/dist/vue_ui_hill-dnltu0L-.js +368 -0
- package/package.json +2 -2
- package/dist/SlicerPreview-Cw6WMVhG.js +0 -1689
- package/dist/Title-BuPs74IB.js +0 -87
- package/dist/exposedLib-Ciw6TGtP.js +0 -25
- package/dist/useAutoSizeLabelsInsideViewbox-C9RNjsGv.js +0 -50
- package/dist/useMountedDelay-BAjrhRJb.js +0 -14
- package/dist/vue-ui-3d-bar-D5xHEWr1.js +0 -1824
- package/dist/vue-ui-age-pyramid-CAJg01c7.js +0 -1246
- package/dist/vue-ui-annotator-q3ZKx6ua.js +0 -2905
- package/dist/vue-ui-bullet-ByeaWGfI.js +0 -709
- package/dist/vue-ui-carousel-table-DO5NRXvX.js +0 -455
- package/dist/vue-ui-chestnut-BfeSPeEh.js +0 -2042
- package/dist/vue-ui-circle-pack-Cqmlw7AV.js +0 -1610
- package/dist/vue-ui-dashboard-DLvGJXJY.js +0 -512
- package/dist/vue-ui-donut-ZIRebAWc.js +0 -2418
- package/dist/vue-ui-dumbbell-gDYjU2oF.js +0 -1564
- package/dist/vue-ui-funnel-BtaYaU0r.js +0 -781
- package/dist/vue-ui-galaxy-BMp-HzDh.js +0 -1076
- package/dist/vue-ui-gauge-CBou0cFE.js +0 -925
- package/dist/vue-ui-horizontal-bar-BuwxI7d1.js +0 -1689
- package/dist/vue-ui-kpi-ByxoO01r.js +0 -96
- package/dist/vue-ui-mini-loader-D9pprk2c.js +0 -125
- package/dist/vue-ui-molecule-BqJJq49_.js +0 -932
- package/dist/vue-ui-onion-CRQOxurS.js +0 -1199
- package/dist/vue-ui-parallel-coordinate-plot-Dhn18RtR.js +0 -1412
- package/dist/vue-ui-quick-chart-DAhSXYnp.js +0 -2443
- package/dist/vue-ui-rating-DbxK-ftN.js +0 -352
- package/dist/vue-ui-relation-circle-Cb33DMZo.js +0 -917
- package/dist/vue-ui-ridgeline-D7aArzQk.js +0 -1627
- package/dist/vue-ui-sparkhistogram-D1oFTrvt.js +0 -575
- package/dist/vue-ui-sparkstackbar-BlFio0lP.js +0 -674
- package/dist/vue-ui-stackbar-Cu13EdVa.js +0 -2322
- package/dist/vue-ui-stackline-DKL0o_-3.js +0 -2427
- package/dist/vue-ui-table-heatmap-CSI482KG.js +0 -338
- package/dist/vue-ui-thermometer-D6Czx7Fb.js +0 -769
- package/dist/vue-ui-treemap-BOEYCOdk.js +0 -1727
- package/dist/vue-ui-waffle-BrM8IHdG.js +0 -1367
- package/dist/vue-ui-wheel-BNsajigQ.js +0 -884
- package/dist/vue-ui-xy-Dt_1bSBT.js +0 -1364
|
@@ -1,50 +1,51 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
3
|
-
import { n as se,
|
|
4
|
-
import {
|
|
5
|
-
import { t as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import { t as
|
|
12
|
-
import { t as
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import { t as
|
|
18
|
-
import { t as
|
|
19
|
-
import { t as
|
|
20
|
-
import { t as
|
|
21
|
-
import { t as
|
|
22
|
-
import {
|
|
2
|
+
import { $ as t, Bt as n, D as r, Jt as i, Vt as a, X as o, _ as s, b as c, c as l, ct as ee, dt as te, jt as ne, q as re, qt as ie, t as ae, tt as u, xt as oe } from "./lib-BuMGJ_a0.js";
|
|
3
|
+
import { n as se, t as ce } from "./useHints-Dq_w2E8B.js";
|
|
4
|
+
import { n as le, r as ue, t as de } from "./useTimeLabels-B9CEuiLZ.js";
|
|
5
|
+
import { t as fe } from "./useConfig-BilxnBNr.js";
|
|
6
|
+
import { t as pe } from "./usePrinter-BFvi4jVy.js";
|
|
7
|
+
import { n as me, t as he } from "./BaseScanner-DZvpgOjM.js";
|
|
8
|
+
import { t as ge } from "./useSvgExport-Ba9qBr9M.js";
|
|
9
|
+
import { t as _e } from "./useNestedProp--NSEmhOH.js";
|
|
10
|
+
import { t as ve } from "./useThemeCheck-C43Tcqmk.js";
|
|
11
|
+
import { t as ye } from "./useTransitions-g_zBREk2.js";
|
|
12
|
+
import { t as be } from "./useTimeLabelCollider-AEcY4Ioe.js";
|
|
13
|
+
import { t as xe } from "./img-DIQG5q8T.js";
|
|
14
|
+
import { n as Se } from "./Title-BODtwViI.js";
|
|
15
|
+
import { t as Ce } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
16
|
+
import { l as we, t as Te } from "./useResponsive-ZtArZtUf.js";
|
|
17
|
+
import { t as Ee } from "./DefGrad-DVBqDjhO.js";
|
|
18
|
+
import { t as De } from "./SlicerPreview-DvjLV2TW.js";
|
|
19
|
+
import { t as Oe } from "./A11yDataTable-DdRsVULz.js";
|
|
20
|
+
import { t as ke } from "./useUserOptionState-DK-_1ddE.js";
|
|
21
|
+
import { t as Ae } from "./useChartAccessibility-DYqac8yF.js";
|
|
22
|
+
import { t as je } from "./vue_ui_candlestick-J8jmJvxP.js";
|
|
23
|
+
import { Fragment as d, computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createSlots as Me, createTextVNode as Ne, createVNode as Pe, defineAsyncComponent as _, guardReactiveProps as v, mergeProps as Fe, nextTick as Ie, normalizeClass as y, normalizeProps as b, normalizeStyle as Le, onBeforeUnmount as Re, onMounted as ze, openBlock as x, ref as S, renderList as C, renderSlot as w, resolveDynamicComponent as Be, shallowRef as Ve, toDisplayString as T, toRefs as He, unref as E, watch as Ue, watchEffect as We, withCtx as D } from "vue";
|
|
23
24
|
//#region src/components/vue-ui-candlestick.vue
|
|
24
|
-
var
|
|
25
|
+
var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je = { style: { position: "relative" } }, Ye = [
|
|
25
26
|
"xmlns",
|
|
26
27
|
"aria-describedby",
|
|
27
28
|
"viewBox"
|
|
28
|
-
],
|
|
29
|
+
], Xe = [
|
|
29
30
|
"x",
|
|
30
31
|
"y",
|
|
31
32
|
"width",
|
|
32
33
|
"height"
|
|
33
|
-
],
|
|
34
|
+
], Ze = { key: 1 }, Qe = { key: 0 }, $e = [
|
|
34
35
|
"x1",
|
|
35
36
|
"x2",
|
|
36
37
|
"y1",
|
|
37
38
|
"y2",
|
|
38
39
|
"stroke",
|
|
39
40
|
"stroke-width"
|
|
40
|
-
],
|
|
41
|
+
], et = [
|
|
41
42
|
"x1",
|
|
42
43
|
"x2",
|
|
43
44
|
"y1",
|
|
44
45
|
"y2",
|
|
45
46
|
"stroke",
|
|
46
47
|
"stroke-width"
|
|
47
|
-
],
|
|
48
|
+
], tt = [
|
|
48
49
|
"x1",
|
|
49
50
|
"x2",
|
|
50
51
|
"y1",
|
|
@@ -52,7 +53,7 @@ var Ue = /* @__PURE__ */ e({ default: () => Ct }), We = ["id"], Ge = ["id"], Ke
|
|
|
52
53
|
"stroke",
|
|
53
54
|
"stroke-width",
|
|
54
55
|
"stroke-dasharray"
|
|
55
|
-
],
|
|
56
|
+
], nt = [
|
|
56
57
|
"x1",
|
|
57
58
|
"x2",
|
|
58
59
|
"y1",
|
|
@@ -60,77 +61,77 @@ var Ue = /* @__PURE__ */ e({ default: () => Ct }), We = ["id"], Ge = ["id"], Ke
|
|
|
60
61
|
"stroke",
|
|
61
62
|
"stroke-width",
|
|
62
63
|
"stroke-dasharray"
|
|
63
|
-
],
|
|
64
|
+
], rt = [
|
|
64
65
|
"x1",
|
|
65
66
|
"x2",
|
|
66
67
|
"y1",
|
|
67
68
|
"y2",
|
|
68
69
|
"stroke",
|
|
69
70
|
"stroke-width"
|
|
70
|
-
],
|
|
71
|
+
], it = [
|
|
71
72
|
"x1",
|
|
72
73
|
"x2",
|
|
73
74
|
"y1",
|
|
74
75
|
"y2",
|
|
75
76
|
"stroke",
|
|
76
77
|
"stroke-width"
|
|
77
|
-
],
|
|
78
|
+
], at = [
|
|
78
79
|
"transform",
|
|
79
80
|
"text-anchor",
|
|
80
81
|
"font-size",
|
|
81
82
|
"fill",
|
|
82
83
|
"font-weight"
|
|
83
|
-
],
|
|
84
|
+
], ot = [
|
|
84
85
|
"transform",
|
|
85
86
|
"text-anchor",
|
|
86
87
|
"font-size",
|
|
87
88
|
"fill",
|
|
88
89
|
"font-weight"
|
|
89
|
-
],
|
|
90
|
+
], st = [
|
|
90
91
|
"transform",
|
|
91
92
|
"text-anchor",
|
|
92
93
|
"font-size",
|
|
93
94
|
"fill",
|
|
94
95
|
"font-weight"
|
|
95
|
-
],
|
|
96
|
+
], ct = [
|
|
96
97
|
"x",
|
|
97
98
|
"y",
|
|
98
99
|
"width",
|
|
99
100
|
"height",
|
|
100
101
|
"fill",
|
|
101
102
|
"rx"
|
|
102
|
-
],
|
|
103
|
+
], lt = { key: 0 }, ut = [
|
|
103
104
|
"cx",
|
|
104
105
|
"cy",
|
|
105
106
|
"r",
|
|
106
107
|
"fill"
|
|
107
|
-
],
|
|
108
|
+
], dt = [
|
|
108
109
|
"cx",
|
|
109
110
|
"cy",
|
|
110
111
|
"r",
|
|
111
112
|
"fill"
|
|
112
|
-
],
|
|
113
|
+
], ft = { key: 1 }, pt = [
|
|
113
114
|
"x",
|
|
114
115
|
"y",
|
|
115
116
|
"width",
|
|
116
117
|
"height",
|
|
117
118
|
"rx",
|
|
118
119
|
"fill"
|
|
119
|
-
],
|
|
120
|
+
], mt = [
|
|
120
121
|
"x",
|
|
121
122
|
"y",
|
|
122
123
|
"width",
|
|
123
124
|
"height",
|
|
124
125
|
"fill",
|
|
125
126
|
"rx"
|
|
126
|
-
],
|
|
127
|
+
], ht = [
|
|
127
128
|
"x",
|
|
128
129
|
"y",
|
|
129
130
|
"height",
|
|
130
131
|
"width",
|
|
131
132
|
"fill",
|
|
132
133
|
"rx"
|
|
133
|
-
],
|
|
134
|
+
], gt = [
|
|
134
135
|
"x",
|
|
135
136
|
"y",
|
|
136
137
|
"height",
|
|
@@ -139,7 +140,7 @@ var Ue = /* @__PURE__ */ e({ default: () => Ct }), We = ["id"], Ge = ["id"], Ke
|
|
|
139
140
|
"rx",
|
|
140
141
|
"stroke",
|
|
141
142
|
"stroke-width"
|
|
142
|
-
],
|
|
143
|
+
], _t = ["d", "stroke"], vt = [
|
|
143
144
|
"x",
|
|
144
145
|
"y",
|
|
145
146
|
"height",
|
|
@@ -148,7 +149,7 @@ var Ue = /* @__PURE__ */ e({ default: () => Ct }), We = ["id"], Ge = ["id"], Ke
|
|
|
148
149
|
"onMouseover",
|
|
149
150
|
"onMouseleave",
|
|
150
151
|
"onClick"
|
|
151
|
-
],
|
|
152
|
+
], yt = ["data-start", "data-end"], bt = {
|
|
152
153
|
key: 0,
|
|
153
154
|
style: {
|
|
154
155
|
position: "absolute",
|
|
@@ -158,14 +159,14 @@ var Ue = /* @__PURE__ */ e({ default: () => Ct }), We = ["id"], Ge = ["id"], Ke
|
|
|
158
159
|
},
|
|
159
160
|
"data-dom-to-png-ignore": "",
|
|
160
161
|
"aria-hidden": "true"
|
|
161
|
-
},
|
|
162
|
+
}, xt = {
|
|
162
163
|
key: 5,
|
|
163
164
|
class: "vue-data-ui-watermark"
|
|
164
|
-
},
|
|
165
|
+
}, St = ["d", "stroke"], Ct = [
|
|
165
166
|
"d",
|
|
166
167
|
"stroke",
|
|
167
168
|
"stroke-width"
|
|
168
|
-
],
|
|
169
|
+
], wt = ["innerHTML"], Tt = /*#__PURE__*/ Ce({
|
|
169
170
|
__name: "vue-ui-candlestick",
|
|
170
171
|
props: {
|
|
171
172
|
config: {
|
|
@@ -186,11 +187,30 @@ var Ue = /* @__PURE__ */ e({ default: () => Ct }), We = ["id"], Ge = ["id"], Ke
|
|
|
186
187
|
}
|
|
187
188
|
},
|
|
188
189
|
emits: ["selectX", "copyAlt"],
|
|
189
|
-
setup(e, { expose:
|
|
190
|
-
let
|
|
190
|
+
setup(e, { expose: Ce, emit: Ge }) {
|
|
191
|
+
let Tt = _(() => import("./BaseIcon-91MZoczJ.js").then((e) => e.n)), Et = _(() => import("./Tooltip-CMTGxeYO.js")), Dt = _(() => import("./vue-ui-accordion-61MlW-Ge.js").then((e) => e.n)), Ot = _(() => import("./DataTable-D4tM9s5Y.js")), kt = _(() => import("./PenAndPaper-cE4J8-rA.js").then((e) => e.t)), At = _(() => import("./UserOptions-3ujTo3LD.js").then((e) => e.n)), jt = _(() => import("./PackageVersion--QCMh5k_.js").then((e) => e.t)), Mt = _(() => import("./BaseDraggableDialog-qTnfhLBz.js").then((e) => e.n)), { vue_ui_candlestick: Nt } = fe(), { isThemeValid: Pt, warnInvalidTheme: Ft } = ve(), O = e, It = Ge, Lt = f(() => !!O.dataset && O.dataset.length), k = S(!1), Rt = S(null), A = S(re()), zt = S(!1), Bt = S(""), j = S(void 0), Vt = S(0), M = S(null), Ht = S(null), Ut = S(null), Wt = S(null), Gt = S(null), Kt = S(null), qt = S(0), Jt = S(0), Yt = S(0), Xt = S(null), Zt = S(null), Qt = S(null), $t = S(null), en = S(null), tn = S(!1), nn = S(!1), N = S(null), rn = S({
|
|
191
192
|
x: 0,
|
|
192
193
|
y: 0
|
|
193
|
-
}),
|
|
194
|
+
}), an = S("pointer"), on = S(!1), P = S(gn());
|
|
195
|
+
se({
|
|
196
|
+
config: () => P.value,
|
|
197
|
+
dataset: () => O.dataset,
|
|
198
|
+
component: "VueUiCandlestick",
|
|
199
|
+
rules: [ce.emptyArray, {
|
|
200
|
+
test: (e) => e.length > 200,
|
|
201
|
+
message: [
|
|
202
|
+
"👀 Dataset has > 200 points, which can cause performance issues. Consider:",
|
|
203
|
+
"",
|
|
204
|
+
"▶️ Adding date inputs to constraint the dataset into a specific timeframe",
|
|
205
|
+
"",
|
|
206
|
+
"▶️ Aggregate the data to larger time series to reduce the number of datapoints."
|
|
207
|
+
]
|
|
208
|
+
}]
|
|
209
|
+
});
|
|
210
|
+
let { transitionEnabled: sn } = ye({
|
|
211
|
+
config: () => P.value.transitions,
|
|
212
|
+
dataset: () => O.dataset
|
|
213
|
+
}), cn = f(() => P.value.userOptions.useCursorPointer), ln = f(() => i({
|
|
194
214
|
defaultConfig: {
|
|
195
215
|
useCssAnimation: !1,
|
|
196
216
|
userOptions: { show: !1 },
|
|
@@ -228,13 +248,13 @@ var Ue = /* @__PURE__ */ e({ default: () => Ct }), We = ["id"], Ge = ["id"], Ke
|
|
|
228
248
|
}
|
|
229
249
|
},
|
|
230
250
|
userConfig: P.value.skeletonConfig ?? {}
|
|
231
|
-
})), { loading: F, FINAL_DATASET: I, manualLoading:
|
|
232
|
-
...
|
|
251
|
+
})), { loading: F, FINAL_DATASET: I, manualLoading: un } = me({
|
|
252
|
+
...He(O),
|
|
233
253
|
FINAL_CONFIG: P,
|
|
234
|
-
prepareConfig:
|
|
254
|
+
prepareConfig: gn,
|
|
235
255
|
callback: () => {
|
|
236
256
|
Promise.resolve().then(async () => {
|
|
237
|
-
await
|
|
257
|
+
await lr();
|
|
238
258
|
});
|
|
239
259
|
},
|
|
240
260
|
skeletonDataset: O.config?.skeletonDataset ?? [
|
|
@@ -335,32 +355,32 @@ var Ue = /* @__PURE__ */ e({ default: () => Ct }), We = ["id"], Ge = ["id"], Ke
|
|
|
335
355
|
5100
|
|
336
356
|
]
|
|
337
357
|
],
|
|
338
|
-
skeletonConfig:
|
|
358
|
+
skeletonConfig: i({
|
|
339
359
|
defaultConfig: P.value,
|
|
340
|
-
userConfig:
|
|
360
|
+
userConfig: ln.value
|
|
341
361
|
})
|
|
342
|
-
}), { userOptionsVisible:
|
|
343
|
-
function
|
|
344
|
-
|
|
362
|
+
}), { userOptionsVisible: dn, setUserOptionsVisibility: fn, keepUserOptionState: pn } = ke({ config: P.value }), { svgRef: L } = Ae({ config: P.value.style.title });
|
|
363
|
+
function mn() {
|
|
364
|
+
fn(!0);
|
|
345
365
|
}
|
|
346
|
-
function
|
|
347
|
-
|
|
366
|
+
function hn() {
|
|
367
|
+
fn(!1), It("selectX", {
|
|
348
368
|
seriesIndex: null,
|
|
349
369
|
datapoint: null
|
|
350
370
|
}), j.value = null;
|
|
351
371
|
}
|
|
352
|
-
function
|
|
353
|
-
let e =
|
|
372
|
+
function gn() {
|
|
373
|
+
let e = _e({
|
|
354
374
|
userConfig: O.config,
|
|
355
|
-
defaultConfig:
|
|
375
|
+
defaultConfig: Nt
|
|
356
376
|
}), t = {}, n = e.theme;
|
|
357
|
-
if (n) if (!
|
|
377
|
+
if (n) if (!Pt.value(e)) Ft(e), t = e;
|
|
358
378
|
else {
|
|
359
|
-
let r =
|
|
360
|
-
userConfig:
|
|
379
|
+
let r = _e({
|
|
380
|
+
userConfig: je[n] || O.config,
|
|
361
381
|
defaultConfig: e
|
|
362
382
|
});
|
|
363
|
-
t = { ...
|
|
383
|
+
t = { ..._e({
|
|
364
384
|
userConfig: O.config,
|
|
365
385
|
defaultConfig: r
|
|
366
386
|
}) };
|
|
@@ -368,91 +388,91 @@ var Ue = /* @__PURE__ */ e({ default: () => Ct }), We = ["id"], Ge = ["id"], Ke
|
|
|
368
388
|
else t = e;
|
|
369
389
|
return t;
|
|
370
390
|
}
|
|
371
|
-
|
|
372
|
-
F.value || (P.value =
|
|
373
|
-
}, { deep: !0 }),
|
|
374
|
-
Array.isArray(e) && e.length > 0 && (
|
|
391
|
+
Ue(() => O.config, (e) => {
|
|
392
|
+
F.value || (P.value = gn()), dn.value = !P.value.userOptions.showOnChartHover, _n(), qt.value += 1, Yt.value += 1, Jt.value += 1, H.value.showTable = P.value.table.show, H.value.showTooltip = P.value.style.tooltip.show, An();
|
|
393
|
+
}, { deep: !0 }), Ue(() => O.dataset, (e) => {
|
|
394
|
+
Array.isArray(e) && e.length > 0 && (un.value = !1), ar();
|
|
375
395
|
}, { deep: !0 });
|
|
376
396
|
let R = S({
|
|
377
397
|
height: P.value.style.height,
|
|
378
398
|
width: P.value.style.width,
|
|
379
399
|
xAxisFontSize: P.value.style.layout.grid.xAxis.dataLabels.fontSize,
|
|
380
400
|
yAxisFontSize: P.value.style.layout.grid.yAxis.dataLabels.fontSize
|
|
381
|
-
}), z =
|
|
382
|
-
|
|
383
|
-
|
|
401
|
+
}), z = Ve(null), B = Ve(null);
|
|
402
|
+
ze(() => {
|
|
403
|
+
_n();
|
|
384
404
|
});
|
|
385
405
|
let V = f(() => !!P.value.debug);
|
|
386
|
-
function
|
|
387
|
-
if (
|
|
406
|
+
function _n() {
|
|
407
|
+
if (ne(O.dataset) && (u({
|
|
388
408
|
componentName: "VueUiCandlestick",
|
|
389
409
|
type: "dataset",
|
|
390
410
|
debug: V.value
|
|
391
|
-
}),
|
|
411
|
+
}), un.value = !0), ne(O.dataset) || (un.value = P.value.loading), setTimeout(() => {
|
|
392
412
|
k.value = !0;
|
|
393
413
|
}, 10), P.value.responsive) {
|
|
394
|
-
let e =
|
|
414
|
+
let e = we(() => {
|
|
395
415
|
k.value = !1;
|
|
396
|
-
let { width: e, height: t } =
|
|
416
|
+
let { width: e, height: t } = Te({
|
|
397
417
|
chart: M.value,
|
|
398
|
-
title: P.value.style.title.text ?
|
|
399
|
-
slicer: P.value.style.zoom.show && G.value > 6 ?
|
|
400
|
-
legend:
|
|
401
|
-
source:
|
|
402
|
-
noTitle:
|
|
418
|
+
title: P.value.style.title.text ? Ht.value : null,
|
|
419
|
+
slicer: P.value.style.zoom.show && G.value > 6 ? Wt.value.$el : null,
|
|
420
|
+
legend: Ut.value,
|
|
421
|
+
source: Gt.value,
|
|
422
|
+
noTitle: Kt.value
|
|
403
423
|
});
|
|
404
424
|
requestAnimationFrame(() => {
|
|
405
|
-
R.value.width = e, R.value.height = t - 12, P.value.responsiveProportionalSizing ? (R.value.xAxisFontSize =
|
|
425
|
+
R.value.width = e, R.value.height = t - 12, P.value.responsiveProportionalSizing ? (R.value.xAxisFontSize = ie({
|
|
406
426
|
relator: Math.min(e, t),
|
|
407
427
|
adjuster: P.value.style.width,
|
|
408
428
|
source: P.value.style.layout.grid.xAxis.dataLabels.fontSize,
|
|
409
429
|
threshold: 6,
|
|
410
430
|
fallback: 6
|
|
411
|
-
}), R.value.yAxisFontSize =
|
|
431
|
+
}), R.value.yAxisFontSize = ie({
|
|
412
432
|
relator: Math.min(e, t),
|
|
413
433
|
adjuster: P.value.style.width,
|
|
414
434
|
source: P.value.style.layout.grid.yAxis.dataLabels.fontSize,
|
|
415
435
|
threshold: 6,
|
|
416
436
|
fallback: 6
|
|
417
|
-
})) : (R.value.xAxisFontSize = P.value.style.layout.grid.xAxis.dataLabels.fontSize, R.value.yAxisFontSize = P.value.style.layout.grid.yAxis.dataLabels.fontSize),
|
|
437
|
+
})) : (R.value.xAxisFontSize = P.value.style.layout.grid.xAxis.dataLabels.fontSize, R.value.yAxisFontSize = P.value.style.layout.grid.yAxis.dataLabels.fontSize), Rt.value && clearTimeout(Rt.value), Rt.value = setTimeout(() => {
|
|
418
438
|
k.value = !0;
|
|
419
439
|
}, 10);
|
|
420
440
|
});
|
|
421
441
|
});
|
|
422
442
|
z.value && (B.value && z.value.unobserve(B.value), z.value.disconnect()), z.value = new ResizeObserver(e), B.value = M.value.parentNode, z.value.observe(B.value);
|
|
423
443
|
}
|
|
424
|
-
|
|
444
|
+
lr();
|
|
425
445
|
}
|
|
426
|
-
|
|
446
|
+
Re(() => {
|
|
427
447
|
z.value && (B.value && z.value.unobserve(B.value), z.value.disconnect());
|
|
428
448
|
});
|
|
429
|
-
let { isPrinting:
|
|
449
|
+
let { isPrinting: vn, isImaging: yn, generatePdf: bn, generateImage: xn } = pe({
|
|
430
450
|
elementId: `vue-ui-candlestick_${A.value}`,
|
|
431
451
|
fileName: P.value.style.title.text || "vue-ui-candlestick",
|
|
432
452
|
options: P.value.userOptions.print
|
|
433
|
-
}),
|
|
453
|
+
}), Sn = f(() => P.value.userOptions.show && !P.value.style.title.text), H = S({
|
|
434
454
|
showTable: P.value.table.show,
|
|
435
455
|
showTooltip: P.value.style.tooltip.show
|
|
436
|
-
}),
|
|
437
|
-
|
|
456
|
+
}), Cn = S(0), wn = we((e) => {
|
|
457
|
+
Cn.value = e;
|
|
438
458
|
}, 100);
|
|
439
|
-
|
|
440
|
-
let t =
|
|
459
|
+
We((e) => {
|
|
460
|
+
let t = Zt.value;
|
|
441
461
|
if (!t) return;
|
|
442
462
|
let n = new ResizeObserver((e) => {
|
|
443
|
-
|
|
463
|
+
wn(e[0].contentRect.height);
|
|
444
464
|
});
|
|
445
465
|
n.observe(t), e(() => n.disconnect());
|
|
446
|
-
}),
|
|
447
|
-
|
|
466
|
+
}), Re(() => {
|
|
467
|
+
Cn.value = 0;
|
|
448
468
|
});
|
|
449
|
-
let
|
|
469
|
+
let Tn = f(() => {
|
|
450
470
|
let e = 0;
|
|
451
|
-
return
|
|
471
|
+
return Zt.value && (e = Cn.value + R.value.xAxisFontSize), e;
|
|
452
472
|
}), U = f(() => P.value.style.layout.grid.yAxis.position === "right");
|
|
453
|
-
function
|
|
473
|
+
function En() {
|
|
454
474
|
let e = P.value.style.layout.grid.yAxis.dataLabels.offsetX;
|
|
455
|
-
|
|
475
|
+
Xt.value && (e = Array.from(Xt.value.querySelectorAll("text")).reduce((e, t) => {
|
|
456
476
|
let n = t.getComputedTextLength();
|
|
457
477
|
return n > e ? n : e;
|
|
458
478
|
}, 0));
|
|
@@ -466,19 +486,19 @@ var Ue = /* @__PURE__ */ e({ default: () => Ct }), We = ["id"], Ge = ["id"], Ke
|
|
|
466
486
|
};
|
|
467
487
|
}
|
|
468
488
|
let W = f(() => {
|
|
469
|
-
let { top: e, right: t, bottom: n, left: r } = P.value.style.layout.padding, i =
|
|
489
|
+
let { top: e, right: t, bottom: n, left: r } = P.value.style.layout.padding, i = En();
|
|
470
490
|
return {
|
|
471
491
|
top: e + 12,
|
|
472
492
|
right: R.value.width - t - i.right,
|
|
473
493
|
left: r + i.left,
|
|
474
|
-
bottom: R.value.height - n -
|
|
494
|
+
bottom: R.value.height - n - Tn.value,
|
|
475
495
|
width: R.value.width - r - t - i.left - i.right,
|
|
476
|
-
height: R.value.height - e - n -
|
|
496
|
+
height: R.value.height - e - n - Tn.value - 12,
|
|
477
497
|
scaleLabelsWidth: i.scaleLabelsWidth,
|
|
478
498
|
yAxisNameWidth: i.yAxisNameWidth,
|
|
479
499
|
crosshair: i.crosshair
|
|
480
500
|
};
|
|
481
|
-
}),
|
|
501
|
+
}), Dn = f(() => {
|
|
482
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));
|
|
483
503
|
return {
|
|
484
504
|
x: e + l * o,
|
|
@@ -503,56 +523,56 @@ var Ue = /* @__PURE__ */ e({ default: () => Ct }), We = ["id"], Ge = ["id"], Ke
|
|
|
503
523
|
}), q = S({
|
|
504
524
|
start: 0,
|
|
505
525
|
end: G.value
|
|
506
|
-
}),
|
|
507
|
-
function
|
|
526
|
+
}), On = f(() => P.value.style.zoom.preview.enable && (q.value.start !== K.value.start || q.value.end !== K.value.end));
|
|
527
|
+
function kn(e, t) {
|
|
508
528
|
q.value[e] = t;
|
|
509
529
|
}
|
|
510
|
-
function
|
|
530
|
+
function An() {
|
|
511
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));
|
|
512
|
-
(!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,
|
|
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, Wt.value && (Wt.value.setStartValue(e), Wt.value.setEndValue(t));
|
|
513
533
|
}
|
|
514
|
-
let
|
|
534
|
+
let jn = f(() => I.value.map((e, t) => ({
|
|
515
535
|
...e,
|
|
516
536
|
absoluteIndex: t
|
|
517
|
-
}))),
|
|
518
|
-
[null, void 0].includes(e[0]) &&
|
|
537
|
+
}))), Mn = f(() => jn.value.slice(K.value.start, K.value.end)), J = f(() => (I.value.forEach((e, t) => {
|
|
538
|
+
[null, void 0].includes(e[0]) && u({
|
|
519
539
|
componentName: "VueUiCandlestick",
|
|
520
540
|
type: "datasetAttribute",
|
|
521
541
|
property: "period (index 0)",
|
|
522
542
|
index: t,
|
|
523
543
|
debug: V.value
|
|
524
|
-
}), [null, void 0].includes(e[1]) &&
|
|
544
|
+
}), [null, void 0].includes(e[1]) && u({
|
|
525
545
|
componentName: "VueUiCandlestick",
|
|
526
546
|
type: "datasetAttribute",
|
|
527
547
|
property: "open (index 1)",
|
|
528
548
|
index: t,
|
|
529
549
|
debug: V.value
|
|
530
|
-
}), [null, void 0].includes(e[2]) &&
|
|
550
|
+
}), [null, void 0].includes(e[2]) && u({
|
|
531
551
|
componentName: "VueUiCandlestick",
|
|
532
552
|
type: "datasetAttribute",
|
|
533
553
|
property: "high (index 2)",
|
|
534
554
|
index: t,
|
|
535
555
|
debug: V.value
|
|
536
|
-
}), [null, void 0].includes(e[3]) &&
|
|
556
|
+
}), [null, void 0].includes(e[3]) && u({
|
|
537
557
|
componentName: "VueUiCandlestick",
|
|
538
558
|
type: "datasetAttribute",
|
|
539
559
|
property: "low (index 3)",
|
|
540
560
|
index: t,
|
|
541
561
|
debug: V.value
|
|
542
|
-
}), [null, void 0].includes(e[4]) &&
|
|
562
|
+
}), [null, void 0].includes(e[4]) && u({
|
|
543
563
|
componentName: "VueUiCandlestick",
|
|
544
564
|
type: "datasetAttribute",
|
|
545
565
|
property: "close (index 4)",
|
|
546
566
|
index: t,
|
|
547
567
|
debug: V.value
|
|
548
|
-
}), [null, void 0].includes(e[5]) &&
|
|
568
|
+
}), [null, void 0].includes(e[5]) && u({
|
|
549
569
|
componentName: "VueUiCandlestick",
|
|
550
570
|
type: "datasetAttribute",
|
|
551
571
|
property: "volume (index 5)",
|
|
552
572
|
index: t,
|
|
553
573
|
debug: V.value
|
|
554
574
|
});
|
|
555
|
-
}),
|
|
575
|
+
}), Mn.value.map((e) => ({
|
|
556
576
|
absoluteIndex: e.absoluteIndex,
|
|
557
577
|
period: e[0],
|
|
558
578
|
open: e[1],
|
|
@@ -560,7 +580,7 @@ var Ue = /* @__PURE__ */ e({ default: () => Ct }), We = ["id"], Ge = ["id"], Ke
|
|
|
560
580
|
low: e[3],
|
|
561
581
|
close: e[4],
|
|
562
582
|
volume: e[5]
|
|
563
|
-
})))),
|
|
583
|
+
})))), Nn = f(() => jn.value.map((e) => ({
|
|
564
584
|
absoluteIndex: e.absoluteIndex,
|
|
565
585
|
period: e[0],
|
|
566
586
|
open: e[1],
|
|
@@ -568,16 +588,16 @@ var Ue = /* @__PURE__ */ e({ default: () => Ct }), We = ["id"], Ge = ["id"], Ke
|
|
|
568
588
|
low: e[3],
|
|
569
589
|
close: e[4],
|
|
570
590
|
volume: e[5]
|
|
571
|
-
}))), Y = f(() => W.value.width /
|
|
591
|
+
}))), Y = f(() => W.value.width / Mn.value.length), Pn = f(() => ({
|
|
572
592
|
max: P.value.style.layout.grid.yAxis.scale.max === null ? Math.max(...J.value.map((e) => e.high)) : P.value.style.layout.grid.yAxis.scale.max,
|
|
573
593
|
min: P.value.style.layout.grid.yAxis.scale.min === null ? 0 : P.value.style.layout.grid.yAxis.scale.min
|
|
574
|
-
})), X = f(() =>
|
|
575
|
-
function
|
|
594
|
+
})), X = f(() => s(Pn.value.min, Pn.value.max, P.value.style.layout.grid.yAxis.dataLabels.steps));
|
|
595
|
+
function Fn(e, t, n = null, r = null) {
|
|
576
596
|
return {
|
|
577
597
|
...e,
|
|
578
|
-
x:
|
|
579
|
-
y:
|
|
580
|
-
value:
|
|
598
|
+
x: c(W.value.left + t * Y.value + Y.value / 2),
|
|
599
|
+
y: c(W.value.top + (1 - (e - X.value.min) / (X.value.max - X.value.min)) * W.value.height),
|
|
600
|
+
value: c(e),
|
|
581
601
|
isMax: e === n,
|
|
582
602
|
isMin: e === r
|
|
583
603
|
};
|
|
@@ -595,7 +615,7 @@ var Ue = /* @__PURE__ */ e({ default: () => Ct }), We = ["id"], Ge = ["id"], Ke
|
|
|
595
615
|
c: Math.min(...J.value.map((e) => e.low))
|
|
596
616
|
}, n = Math.max(...J.value.map((e) => e.volume)), r = Math.min(...J.value.map((e) => e.volume));
|
|
597
617
|
return J.value.map((i, a) => {
|
|
598
|
-
let o =
|
|
618
|
+
let o = Fn(i.open, a, e.o, t.o), s = Fn(i.high, a, e.h, t.h), c = Fn(i.low, a, e.l, t.l), l = Fn(i.close, a, e.c, t.c), ee = i.close > i.open, te = i.volume === n, ne = i.volume === r;
|
|
599
619
|
return {
|
|
600
620
|
period: i.period,
|
|
601
621
|
open: o,
|
|
@@ -610,32 +630,32 @@ var Ue = /* @__PURE__ */ e({ default: () => Ct }), We = ["id"], Ge = ["id"], Ke
|
|
|
610
630
|
};
|
|
611
631
|
});
|
|
612
632
|
});
|
|
613
|
-
function
|
|
633
|
+
function In({ item: e, index: t, minimapH: n, unitW: r }) {
|
|
614
634
|
let i = P.value.style.layout.grid.yAxis.scale.min ?? 0, a = P.value.style.layout.grid.yAxis.scale.max ?? Math.max(...I.value.map((e) => e[2]));
|
|
615
635
|
return {
|
|
616
636
|
...e,
|
|
617
|
-
x:
|
|
618
|
-
y:
|
|
619
|
-
value:
|
|
637
|
+
x: c(t * r),
|
|
638
|
+
y: c((1 - (e - i) / (a - i)) * n),
|
|
639
|
+
value: c(e)
|
|
620
640
|
};
|
|
621
641
|
}
|
|
622
|
-
let
|
|
623
|
-
let i =
|
|
642
|
+
let Ln = f(() => ({ minimapH: e, unitW: t }) => Nn.value.map((n, r) => {
|
|
643
|
+
let i = In({
|
|
624
644
|
item: n.open,
|
|
625
645
|
index: r,
|
|
626
646
|
minimapH: e,
|
|
627
647
|
unitW: t
|
|
628
|
-
}), a =
|
|
648
|
+
}), a = In({
|
|
629
649
|
item: n.high,
|
|
630
650
|
index: r,
|
|
631
651
|
minimapH: e,
|
|
632
652
|
unitW: t
|
|
633
|
-
}), o =
|
|
653
|
+
}), o = In({
|
|
634
654
|
item: n.low,
|
|
635
655
|
index: r,
|
|
636
656
|
minimapH: e,
|
|
637
657
|
unitW: t
|
|
638
|
-
}), s =
|
|
658
|
+
}), s = In({
|
|
639
659
|
item: n.close,
|
|
640
660
|
index: r,
|
|
641
661
|
minimapH: e,
|
|
@@ -651,101 +671,101 @@ var Ue = /* @__PURE__ */ e({ default: () => Ct }), We = ["id"], Ge = ["id"], Ke
|
|
|
651
671
|
isBullish: c,
|
|
652
672
|
absoluteIndex: n.absoluteIndex
|
|
653
673
|
};
|
|
654
|
-
})),
|
|
674
|
+
})), Rn = f(() => P.value.style.zoom.minimap.show ? [{
|
|
655
675
|
name: "",
|
|
656
676
|
series: I.value.map((e) => e[2]),
|
|
657
677
|
color: "#000000",
|
|
658
678
|
isVisible: !0
|
|
659
679
|
}] : []);
|
|
660
|
-
function
|
|
661
|
-
return
|
|
680
|
+
function zn(e) {
|
|
681
|
+
return c((e - X.value.min) / (X.value.max - X.value.min));
|
|
662
682
|
}
|
|
663
|
-
let
|
|
664
|
-
y: W.value.bottom - W.value.height *
|
|
665
|
-
value:
|
|
666
|
-
}))),
|
|
667
|
-
|
|
668
|
-
let e = ++
|
|
683
|
+
let Bn = f(() => X.value.ticks.map((e) => ({
|
|
684
|
+
y: W.value.bottom - W.value.height * zn(e),
|
|
685
|
+
value: c(e)
|
|
686
|
+
}))), Vn = f(() => J.value.map((e) => e.period)), Q = S([]), Hn = S([]), Un = 0;
|
|
687
|
+
We(() => {
|
|
688
|
+
let e = ++Un;
|
|
669
689
|
(async () => {
|
|
670
|
-
let t = await
|
|
690
|
+
let t = await de({
|
|
671
691
|
values: I.value.map((e) => e[0]),
|
|
672
692
|
maxDatapoints: I.value.length,
|
|
673
693
|
formatter: P.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter,
|
|
674
694
|
start: K.value.start,
|
|
675
695
|
end: K.value.end
|
|
676
696
|
});
|
|
677
|
-
e ===
|
|
697
|
+
e === Un && (Q.value = t);
|
|
678
698
|
})();
|
|
679
699
|
});
|
|
680
|
-
let
|
|
681
|
-
|
|
682
|
-
let e = ++
|
|
700
|
+
let Wn = 0;
|
|
701
|
+
We(() => {
|
|
702
|
+
let e = ++Wn;
|
|
683
703
|
(async () => {
|
|
684
|
-
let t = await
|
|
704
|
+
let t = await de({
|
|
685
705
|
values: I.value.map((e) => e[0]),
|
|
686
706
|
maxDatapoints: I.value.length,
|
|
687
707
|
formatter: P.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter,
|
|
688
708
|
start: 0,
|
|
689
709
|
end: G.value
|
|
690
710
|
});
|
|
691
|
-
e ===
|
|
711
|
+
e === Wn && (Hn.value = t);
|
|
692
712
|
})();
|
|
693
713
|
});
|
|
694
|
-
let
|
|
714
|
+
let Gn = f(() => {
|
|
695
715
|
let e = P.value.style.layout.grid.xAxis.dataLabels.modulo;
|
|
696
716
|
return Q.value.length ? Math.min(e, [...new Set(Q.value.map((e) => e.text))].length) : e;
|
|
697
|
-
}),
|
|
717
|
+
}), Kn = S({
|
|
698
718
|
months: [],
|
|
699
719
|
shortMonths: [],
|
|
700
720
|
days: [],
|
|
701
721
|
shortDays: []
|
|
702
|
-
}),
|
|
703
|
-
|
|
704
|
-
let e = ++
|
|
722
|
+
}), qn = 0;
|
|
723
|
+
We(() => {
|
|
724
|
+
let e = ++qn, t = P.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter;
|
|
705
725
|
(async () => {
|
|
706
|
-
let n = await
|
|
707
|
-
e ===
|
|
726
|
+
let n = await ue(t.locale).catch(() => ue("en"));
|
|
727
|
+
e === qn && (Kn.value = n.data);
|
|
708
728
|
})();
|
|
709
729
|
});
|
|
710
|
-
let
|
|
711
|
-
let e = P.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter, t =
|
|
730
|
+
let Jn = f(() => {
|
|
731
|
+
let e = P.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter, t = le({
|
|
712
732
|
useUTC: e.useUTC,
|
|
713
|
-
locale:
|
|
733
|
+
locale: Kn.value,
|
|
714
734
|
januaryAsYear: e.januaryAsYear
|
|
715
735
|
});
|
|
716
736
|
return (e, n) => {
|
|
717
737
|
let r = I.value.map((e) => e[0])?.[e];
|
|
718
738
|
return r == null ? "" : t.formatDate(new Date(r), n);
|
|
719
739
|
};
|
|
720
|
-
}),
|
|
721
|
-
text:
|
|
740
|
+
}), Yn = f(() => (I.value.map((e) => e[0]) || []).map((e, t) => ({
|
|
741
|
+
text: Jn.value(t, P.value.style.tooltip.timeFormat),
|
|
722
742
|
absoluteIndex: t
|
|
723
|
-
}))),
|
|
724
|
-
text:
|
|
743
|
+
}))), Xn = f(() => (I.value.map((e) => e[0]) || []).map((e, t) => ({
|
|
744
|
+
text: Jn.value(t, P.value.style.zoom.timeFormat),
|
|
725
745
|
absoluteIndex: t
|
|
726
|
-
}))),
|
|
727
|
-
let e = P.value.style.layout.grid.xAxis.dataLabels, t = Q.value || [], n =
|
|
728
|
-
return
|
|
729
|
-
}),
|
|
746
|
+
}))), Zn = f(() => {
|
|
747
|
+
let e = P.value.style.layout.grid.xAxis.dataLabels, t = Q.value || [], n = Hn.value || [], r = K.value.start ?? 0, i = j.value, a = G.value, o = t.map((e) => e?.text ?? ""), s = n.map((e) => e?.text ?? "");
|
|
748
|
+
return l(!!e.showOnlyFirstAndLast, !!e.showOnlyAtModulo, Math.max(1, Gn.value || 1), o, s, r, i, a);
|
|
749
|
+
}), Qn = f(() => P.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? {
|
|
730
750
|
start: Q.value.find((e) => e.absoluteIndex === K.value.start)?.text ?? "",
|
|
731
751
|
end: Q.value.find((e) => e.absoluteIndex === K.value.end - 1)?.text ?? ""
|
|
732
752
|
} : {
|
|
733
753
|
start: I.value[K.value.start] ? I.value[K.value.start][0] : I.value[0][0],
|
|
734
754
|
end: I.value[K.value.end - 1] ? I.value[K.value.end - 1][0] : I.value.at(-1)[0]
|
|
735
|
-
}),
|
|
736
|
-
function
|
|
755
|
+
}), $n = S(null);
|
|
756
|
+
function er(e, t) {
|
|
737
757
|
P.value.events.datapointClick && P.value.events.datapointClick({
|
|
738
758
|
datapoint: t,
|
|
739
759
|
seriesIndex: e + K.value.start
|
|
740
760
|
});
|
|
741
761
|
}
|
|
742
|
-
function
|
|
762
|
+
function tr(e, t) {
|
|
743
763
|
P.value.events.datapointLeave && P.value.events.datapointLeave({
|
|
744
764
|
datapoint: t,
|
|
745
765
|
seriesIndex: e + K.value.start
|
|
746
|
-
}), j.value = void 0,
|
|
766
|
+
}), j.value = void 0, zt.value = !1, N.value = null, an.value = "pointer";
|
|
747
767
|
}
|
|
748
|
-
|
|
768
|
+
Ue(() => O.selectedXIndex, (e) => {
|
|
749
769
|
if ([null, void 0].includes(O.selectedXIndex)) {
|
|
750
770
|
j.value = null;
|
|
751
771
|
return;
|
|
@@ -753,51 +773,51 @@ var Ue = /* @__PURE__ */ e({ default: () => Ct }), We = ["id"], Ge = ["id"], Ke
|
|
|
753
773
|
let t = e - K.value.start;
|
|
754
774
|
t < 0 || e >= K.value.end ? j.value = null : j.value = t ?? null;
|
|
755
775
|
}, { immediate: !0 });
|
|
756
|
-
function
|
|
776
|
+
function nr(e, t, n = "pointer") {
|
|
757
777
|
P.value.events.datapointEnter && P.value.events.datapointEnter({
|
|
758
778
|
datapoint: t,
|
|
759
779
|
seriesIndex: e + K.value.start
|
|
760
|
-
}), j.value = e, N.value = e,
|
|
780
|
+
}), j.value = e, N.value = e, an.value = n, $n.value = {
|
|
761
781
|
datapoint: t,
|
|
762
782
|
seriesIndex: e,
|
|
763
783
|
series: Z.value,
|
|
764
784
|
config: P.value
|
|
765
|
-
},
|
|
785
|
+
}, Ar({
|
|
766
786
|
seriesIndex: e,
|
|
767
787
|
datapoint: t
|
|
768
788
|
});
|
|
769
789
|
let r = P.value.style.tooltip.customFormat;
|
|
770
|
-
if (
|
|
790
|
+
if (oe(r) && ee(() => r({
|
|
771
791
|
seriesIndex: e,
|
|
772
792
|
datapoint: t,
|
|
773
793
|
series: Z.value,
|
|
774
794
|
config: P.value
|
|
775
|
-
})))
|
|
795
|
+
}))) Bt.value = r({
|
|
776
796
|
seriesIndex: e,
|
|
777
797
|
datapoint: t,
|
|
778
798
|
series: Z.value,
|
|
779
799
|
config: P.value
|
|
780
800
|
});
|
|
781
801
|
else if (P.value.style.tooltip.show) {
|
|
782
|
-
let n = "", { period: r, open: i, high: a, low:
|
|
802
|
+
let n = "", { period: r, open: i, high: a, low: s, close: c, volume: l, isBullish: ee } = Z.value[e], { period: te, open: ne, high: re, low: ie, close: ae, volume: u } = P.value.translations, oe = P.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? P.value.style.tooltip.useDefaultTimeFormat ? Q.value[e].text : Yn.value[e].text : r;
|
|
783
803
|
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="${P.value.style.layout.candle.borderRadius * 3}" stroke="${P.value.style.layout.candle.stroke}" stroke-width="${P.value.style.layout.candle.strokeWidth}"
|
|
784
804
|
fill="${P.value.style.layout.candle.gradient.show ? ee ? `url(#bullish_gradient_${A.value})` : `url(#bearish_gradient_${A.value})` : ee ? P.value.style.layout.candle.colors.bullish : P.value.style.layout.candle.colors.bearish}"/></svg>${oe}</div>`, n += `${u} : <b>${isNaN(l) ? "-" : Number(l.toFixed(P.value.style.tooltip.roundingValue)).toLocaleString()}</b>`, n += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${P.value.style.tooltip.borderColor}">`;
|
|
785
|
-
let se =
|
|
805
|
+
let se = o({
|
|
786
806
|
p: P.value.style.tooltip.prefix,
|
|
787
807
|
v: i.value,
|
|
788
808
|
s: P.value.style.tooltip.suffix,
|
|
789
809
|
r: P.value.style.tooltip.roundingValue
|
|
790
|
-
}), ce =
|
|
810
|
+
}), ce = o({
|
|
791
811
|
p: P.value.style.tooltip.prefix,
|
|
792
812
|
v: a.value,
|
|
793
813
|
s: P.value.style.tooltip.suffix,
|
|
794
814
|
r: P.value.style.tooltip.roundingValue
|
|
795
|
-
}), le =
|
|
815
|
+
}), le = o({
|
|
796
816
|
p: P.value.style.tooltip.prefix,
|
|
797
|
-
v:
|
|
817
|
+
v: s.value,
|
|
798
818
|
s: P.value.style.tooltip.suffix,
|
|
799
819
|
r: P.value.style.tooltip.roundingValue
|
|
800
|
-
}), ue =
|
|
820
|
+
}), ue = o({
|
|
801
821
|
p: P.value.style.tooltip.prefix,
|
|
802
822
|
v: c.value,
|
|
803
823
|
s: P.value.style.tooltip.suffix,
|
|
@@ -823,57 +843,57 @@ var Ue = /* @__PURE__ */ e({ default: () => Ct }), We = ["id"], Ge = ["id"], Ke
|
|
|
823
843
|
<g>
|
|
824
844
|
</svg>
|
|
825
845
|
<div>
|
|
826
|
-
` : (n += `<div>${ne}: <b>${se}</b></div>`, n += `<div>${re}: <b>${ce}</b></div>`, n += `<div>${ie}: <b>${le}</b></div>`, n += `<div>${ae}: <b>${ue}</b></div>`), n += "</div>",
|
|
846
|
+
` : (n += `<div>${ne}: <b>${se}</b></div>`, n += `<div>${re}: <b>${ce}</b></div>`, n += `<div>${ie}: <b>${le}</b></div>`, n += `<div>${ae}: <b>${ue}</b></div>`), n += "</div>", Bt.value = `<div style="text-align:right">${n}</div>`;
|
|
827
847
|
}
|
|
828
|
-
|
|
848
|
+
zt.value = !0;
|
|
829
849
|
}
|
|
830
|
-
let
|
|
831
|
-
function
|
|
850
|
+
let rr = S(null);
|
|
851
|
+
function ir() {
|
|
832
852
|
return new Promise((e) => requestAnimationFrame(() => requestAnimationFrame(() => e())));
|
|
833
853
|
}
|
|
834
|
-
|
|
835
|
-
|
|
854
|
+
Re(() => {
|
|
855
|
+
rr.value && cancelAnimationFrame(rr.value);
|
|
836
856
|
});
|
|
837
|
-
async function
|
|
838
|
-
|
|
839
|
-
await
|
|
857
|
+
async function ar() {
|
|
858
|
+
lr(), await Ie(), rr.value && cancelAnimationFrame(rr.value), rr.value = requestAnimationFrame(async () => {
|
|
859
|
+
await ir(), lr();
|
|
840
860
|
});
|
|
841
861
|
}
|
|
842
|
-
let
|
|
843
|
-
function
|
|
844
|
-
if (!
|
|
845
|
-
|
|
862
|
+
let or = S(!1), sr = S(!1), cr = S(!1);
|
|
863
|
+
function lr() {
|
|
864
|
+
if (!or.value) {
|
|
865
|
+
or.value = !0;
|
|
846
866
|
try {
|
|
847
|
-
let { startIndex: e, endIndex: t } = P.value.style.zoom, n = G.value, r = e ?? 0, i = t == null ? n : Math.min(
|
|
848
|
-
|
|
867
|
+
let { startIndex: e, endIndex: t } = P.value.style.zoom, n = G.value, r = e ?? 0, i = t == null ? n : Math.min(ur(t + 1), n);
|
|
868
|
+
cr.value = !0, K.value.start = r, K.value.end = i, q.value.start = r, q.value.end = i, An(), sr.value = !0;
|
|
849
869
|
} finally {
|
|
850
870
|
queueMicrotask(() => {
|
|
851
|
-
|
|
852
|
-
}),
|
|
871
|
+
cr.value = !1;
|
|
872
|
+
}), or.value = !1;
|
|
853
873
|
}
|
|
854
874
|
}
|
|
855
875
|
}
|
|
856
|
-
function
|
|
876
|
+
function ur(e) {
|
|
857
877
|
let t = G.value;
|
|
858
878
|
return e > t ? t : e < 0 || e < K.value.start ? P.value.style.zoom.startIndex === null ? 1 : P.value.style.zoom.startIndex + 1 : e;
|
|
859
879
|
}
|
|
860
|
-
function
|
|
861
|
-
|
|
862
|
-
let
|
|
880
|
+
function dr(e = null) {
|
|
881
|
+
Ie(() => {
|
|
882
|
+
let n = [
|
|
863
883
|
P.value.translations.period,
|
|
864
884
|
P.value.translations.open,
|
|
865
885
|
P.value.translations.high,
|
|
866
886
|
P.value.translations.low,
|
|
867
887
|
P.value.translations.close,
|
|
868
888
|
P.value.translations.volume
|
|
869
|
-
],
|
|
889
|
+
], i = Z.value.map((e, t) => [
|
|
870
890
|
P.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? Q.value[t].text : e.period,
|
|
871
891
|
e.open.value,
|
|
872
892
|
e.high.value,
|
|
873
893
|
e.low.value,
|
|
874
894
|
e.close.value,
|
|
875
895
|
e.volume
|
|
876
|
-
]),
|
|
896
|
+
]), a = r([
|
|
877
897
|
[P.value.style.title.text],
|
|
878
898
|
[P.value.style.title.subtitle.text],
|
|
879
899
|
[
|
|
@@ -881,32 +901,32 @@ var Ue = /* @__PURE__ */ e({ default: () => Ct }), We = ["id"], Ge = ["id"], Ke
|
|
|
881
901
|
[""],
|
|
882
902
|
[""]
|
|
883
903
|
],
|
|
884
|
-
|
|
885
|
-
].concat(
|
|
886
|
-
e ? e(
|
|
887
|
-
csvContent:
|
|
904
|
+
n
|
|
905
|
+
].concat(i));
|
|
906
|
+
e ? e(a) : t({
|
|
907
|
+
csvContent: a,
|
|
888
908
|
title: P.value.style.title.text || "vue-ui-candlestick"
|
|
889
909
|
});
|
|
890
910
|
});
|
|
891
911
|
}
|
|
892
|
-
let
|
|
912
|
+
let fr = f(() => {
|
|
893
913
|
let e = Z.value.map((e, t) => {
|
|
894
|
-
let n = P.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? Q.value?.[t]?.text ?? "" : e.period, r =
|
|
914
|
+
let n = P.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? Q.value?.[t]?.text ?? "" : e.period, r = o({
|
|
895
915
|
p: P.value.table.td.prefix,
|
|
896
916
|
v: e.open.value,
|
|
897
917
|
s: P.value.table.td.suffix,
|
|
898
918
|
r: P.value.table.td.roundingValue
|
|
899
|
-
}), i =
|
|
919
|
+
}), i = o({
|
|
900
920
|
p: P.value.table.td.prefix,
|
|
901
921
|
v: e.high.value,
|
|
902
922
|
s: P.value.table.td.suffix,
|
|
903
923
|
r: P.value.table.td.roundingValue
|
|
904
|
-
}), a =
|
|
924
|
+
}), a = o({
|
|
905
925
|
p: P.value.table.td.prefix,
|
|
906
926
|
v: e.low.value,
|
|
907
927
|
s: P.value.table.td.suffix,
|
|
908
928
|
r: P.value.table.td.roundingValue
|
|
909
|
-
}),
|
|
929
|
+
}), s = o({
|
|
910
930
|
p: P.value.table.td.prefix,
|
|
911
931
|
v: e.close.value,
|
|
912
932
|
s: P.value.table.td.suffix,
|
|
@@ -917,30 +937,30 @@ var Ue = /* @__PURE__ */ e({ default: () => Ct }), We = ["id"], Ge = ["id"], Ke
|
|
|
917
937
|
r,
|
|
918
938
|
i,
|
|
919
939
|
a,
|
|
920
|
-
|
|
940
|
+
s,
|
|
921
941
|
`${isNaN(e.volume) ? "-" : e.volume.toLocaleString()}`
|
|
922
942
|
];
|
|
923
943
|
}), t = Z.value.map((e, t) => [
|
|
924
944
|
P.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? Q.value?.[t]?.text ?? "" : e.period,
|
|
925
|
-
|
|
945
|
+
o({
|
|
926
946
|
p: P.value.table.td.prefix,
|
|
927
947
|
v: e.open.value,
|
|
928
948
|
s: P.value.table.td.suffix,
|
|
929
949
|
r: P.value.table.td.roundingValue
|
|
930
950
|
}),
|
|
931
|
-
|
|
951
|
+
o({
|
|
932
952
|
p: P.value.table.td.prefix,
|
|
933
953
|
v: e.high.value,
|
|
934
954
|
s: P.value.table.td.suffix,
|
|
935
955
|
r: P.value.table.td.roundingValue
|
|
936
956
|
}),
|
|
937
|
-
|
|
957
|
+
o({
|
|
938
958
|
p: P.value.table.td.prefix,
|
|
939
959
|
v: e.low.value,
|
|
940
960
|
s: P.value.table.td.suffix,
|
|
941
961
|
r: P.value.table.td.roundingValue
|
|
942
962
|
}),
|
|
943
|
-
|
|
963
|
+
o({
|
|
944
964
|
p: P.value.table.td.prefix,
|
|
945
965
|
v: e.close.value,
|
|
946
966
|
s: P.value.table.td.suffix,
|
|
@@ -975,22 +995,22 @@ var Ue = /* @__PURE__ */ e({ default: () => Ct }), We = ["id"], Ge = ["id"], Ke
|
|
|
975
995
|
colNames: r
|
|
976
996
|
};
|
|
977
997
|
}), $ = S(!1);
|
|
978
|
-
function
|
|
979
|
-
$.value = e,
|
|
998
|
+
function pr(e) {
|
|
999
|
+
$.value = e, Vt.value += 1;
|
|
980
1000
|
}
|
|
981
|
-
function
|
|
1001
|
+
function mr() {
|
|
982
1002
|
H.value.showTable = !H.value.showTable;
|
|
983
1003
|
}
|
|
984
|
-
function
|
|
1004
|
+
function hr() {
|
|
985
1005
|
H.value.showTooltip = !H.value.showTooltip;
|
|
986
1006
|
}
|
|
987
|
-
let
|
|
988
|
-
function
|
|
989
|
-
|
|
1007
|
+
let gr = S(!1);
|
|
1008
|
+
function _r() {
|
|
1009
|
+
gr.value = !gr.value;
|
|
990
1010
|
}
|
|
991
|
-
async function
|
|
1011
|
+
async function vr({ scale: e = 2 } = {}) {
|
|
992
1012
|
if (!M.value) return;
|
|
993
|
-
let { imageUri: t, base64: n } = await
|
|
1013
|
+
let { imageUri: t, base64: n } = await xe({
|
|
994
1014
|
domElement: M.value,
|
|
995
1015
|
base64: !0,
|
|
996
1016
|
img: !0,
|
|
@@ -999,7 +1019,7 @@ var Ue = /* @__PURE__ */ e({ default: () => Ct }), We = ["id"], Ge = ["id"], Ke
|
|
|
999
1019
|
width: r.width,
|
|
1000
1020
|
height: r.height,
|
|
1001
1021
|
aspectRatio: r.height ? r.width / r.height : 0
|
|
1002
|
-
}, a = await
|
|
1022
|
+
}, a = await te(t, e) ?? i;
|
|
1003
1023
|
return {
|
|
1004
1024
|
imageUri: t,
|
|
1005
1025
|
base64: n,
|
|
@@ -1007,9 +1027,9 @@ var Ue = /* @__PURE__ */ e({ default: () => Ct }), We = ["id"], Ge = ["id"], Ke
|
|
|
1007
1027
|
...a
|
|
1008
1028
|
};
|
|
1009
1029
|
}
|
|
1010
|
-
let
|
|
1011
|
-
|
|
1012
|
-
timeLabelsEls:
|
|
1030
|
+
let yr = f(() => R.value.width), br = f(() => R.value.height);
|
|
1031
|
+
be({
|
|
1032
|
+
timeLabelsEls: Zt,
|
|
1013
1033
|
timeLabels: Q,
|
|
1014
1034
|
slicer: K,
|
|
1015
1035
|
configRef: P,
|
|
@@ -1032,18 +1052,18 @@ var Ue = /* @__PURE__ */ e({ default: () => Ct }), We = ["id"], Ge = ["id"], Ke
|
|
|
1032
1052
|
],
|
|
1033
1053
|
isAutoSize: !1,
|
|
1034
1054
|
rotation: P.value.style.layout.grid.xAxis.dataLabels.autoRotate.angle,
|
|
1035
|
-
width:
|
|
1036
|
-
height:
|
|
1037
|
-
}),
|
|
1055
|
+
width: yr,
|
|
1056
|
+
height: br
|
|
1057
|
+
}), Ue(P, () => {
|
|
1038
1058
|
H.value = {
|
|
1039
1059
|
showTable: P.value.table.show,
|
|
1040
1060
|
showTooltip: P.value.style.tooltip.show
|
|
1041
1061
|
};
|
|
1042
1062
|
}, { immediate: !0 });
|
|
1043
|
-
let
|
|
1063
|
+
let xr = f(() => {
|
|
1044
1064
|
let e = P.value.table.useDialog && !P.value.table.show, t = H.value.showTable;
|
|
1045
1065
|
return {
|
|
1046
|
-
component: e ?
|
|
1066
|
+
component: e ? Mt : Dt,
|
|
1047
1067
|
title: `${P.value.style.title.text}${P.value.style.title.subtitle.text ? `: ${P.value.style.title.subtitle.text}` : ""}`,
|
|
1048
1068
|
props: e ? {
|
|
1049
1069
|
backgroundColor: P.value.table.th.backgroundColor,
|
|
@@ -1053,7 +1073,7 @@ var Ue = /* @__PURE__ */ e({ default: () => Ct }), We = ["id"], Ge = ["id"], Ke
|
|
|
1053
1073
|
isFullscreen: $.value,
|
|
1054
1074
|
fullscreenParent: M.value,
|
|
1055
1075
|
forcedWidth: Math.min(800, window.innerWidth * .8),
|
|
1056
|
-
isCursorPointer:
|
|
1076
|
+
isCursorPointer: cn.value
|
|
1057
1077
|
} : {
|
|
1058
1078
|
hideDetails: !0,
|
|
1059
1079
|
config: {
|
|
@@ -1071,65 +1091,65 @@ var Ue = /* @__PURE__ */ e({ default: () => Ct }), We = ["id"], Ge = ["id"], Ke
|
|
|
1071
1091
|
}
|
|
1072
1092
|
};
|
|
1073
1093
|
});
|
|
1074
|
-
|
|
1075
|
-
P.value.table.show || (e && P.value.table.useDialog &&
|
|
1094
|
+
Ue(() => H.value.showTable, (e) => {
|
|
1095
|
+
P.value.table.show || (e && P.value.table.useDialog && Qt.value ? Qt.value.open() : "close" in Qt.value && Qt.value.close());
|
|
1076
1096
|
});
|
|
1077
|
-
function
|
|
1078
|
-
H.value.showTable = !1,
|
|
1097
|
+
function Sr() {
|
|
1098
|
+
H.value.showTable = !1, $t.value && $t.value.setTableIconState(!1);
|
|
1079
1099
|
}
|
|
1080
|
-
let
|
|
1100
|
+
let Cr = f(() => P.value.style.backgroundColor), { exportSvg: wr, getSvg: Tr } = ge({
|
|
1081
1101
|
svg: L,
|
|
1082
1102
|
title: f(() => P.value.style.title),
|
|
1083
|
-
backgroundColor:
|
|
1103
|
+
backgroundColor: Cr
|
|
1084
1104
|
});
|
|
1085
|
-
async function
|
|
1086
|
-
|
|
1105
|
+
async function Er({ isCb: e }) {
|
|
1106
|
+
nn.value = !0, await Ie();
|
|
1087
1107
|
try {
|
|
1088
1108
|
if (e) {
|
|
1089
|
-
let { blob: e, url: t, text: n, dataUrl: r } = await
|
|
1109
|
+
let { blob: e, url: t, text: n, dataUrl: r } = await Tr();
|
|
1090
1110
|
await Promise.resolve(P.value.userOptions.callbacks.svg({
|
|
1091
1111
|
blob: e,
|
|
1092
1112
|
url: t,
|
|
1093
1113
|
text: n,
|
|
1094
1114
|
dataUrl: r
|
|
1095
1115
|
}));
|
|
1096
|
-
} else await Promise.resolve(
|
|
1116
|
+
} else await Promise.resolve(wr());
|
|
1097
1117
|
} finally {
|
|
1098
|
-
|
|
1118
|
+
nn.value = !1;
|
|
1099
1119
|
}
|
|
1100
1120
|
}
|
|
1101
|
-
function
|
|
1102
|
-
|
|
1121
|
+
function Dr(e) {
|
|
1122
|
+
en.value = e;
|
|
1103
1123
|
}
|
|
1104
|
-
function
|
|
1105
|
-
|
|
1124
|
+
function Or(e) {
|
|
1125
|
+
or.value || cr.value || e !== K.value.start && (K.value.start = e, q.value.start = e, An());
|
|
1106
1126
|
}
|
|
1107
|
-
function
|
|
1108
|
-
if (
|
|
1109
|
-
let t =
|
|
1110
|
-
t !== K.value.end && (K.value.end = t, q.value.end = t,
|
|
1127
|
+
function kr(e) {
|
|
1128
|
+
if (or.value || cr.value) return;
|
|
1129
|
+
let t = ur(e);
|
|
1130
|
+
t !== K.value.end && (K.value.end = t, q.value.end = t, An());
|
|
1111
1131
|
}
|
|
1112
|
-
function
|
|
1132
|
+
function Ar({ seriesIndex: e, datapoint: t }) {
|
|
1113
1133
|
let n = K.value.start + e;
|
|
1114
|
-
|
|
1134
|
+
It("selectX", {
|
|
1115
1135
|
dataset: t,
|
|
1116
1136
|
index: n,
|
|
1117
1137
|
indexLabel: ""
|
|
1118
1138
|
});
|
|
1119
1139
|
}
|
|
1120
|
-
function
|
|
1140
|
+
function jr(e) {
|
|
1121
1141
|
if (e?.stage === "start") {
|
|
1122
|
-
|
|
1142
|
+
tn.value = !0;
|
|
1123
1143
|
return;
|
|
1124
1144
|
}
|
|
1125
1145
|
if (e?.stage === "end") {
|
|
1126
|
-
|
|
1146
|
+
tn.value = !1;
|
|
1127
1147
|
return;
|
|
1128
1148
|
}
|
|
1129
|
-
|
|
1149
|
+
xn();
|
|
1130
1150
|
}
|
|
1131
|
-
async function
|
|
1132
|
-
if (
|
|
1151
|
+
async function Mr() {
|
|
1152
|
+
if (It("copyAlt", {
|
|
1133
1153
|
config: P.value,
|
|
1134
1154
|
dataset: Z.value
|
|
1135
1155
|
}), !P.value.userOptions.callbacks.altCopy) {
|
|
@@ -1141,73 +1161,73 @@ var Ue = /* @__PURE__ */ e({ default: () => Ct }), We = ["id"], Ge = ["id"], Ke
|
|
|
1141
1161
|
dataset: Z.value
|
|
1142
1162
|
}));
|
|
1143
1163
|
}
|
|
1144
|
-
function
|
|
1145
|
-
N.value = null,
|
|
1164
|
+
function Nr() {
|
|
1165
|
+
N.value = null, on.value = !0;
|
|
1146
1166
|
}
|
|
1147
|
-
function
|
|
1148
|
-
N.value = null,
|
|
1167
|
+
function Pr() {
|
|
1168
|
+
N.value = null, an.value = "pointer", zt.value = !1, j.value = void 0, on.value = !1;
|
|
1149
1169
|
}
|
|
1150
|
-
function
|
|
1151
|
-
if (!L.value ||
|
|
1170
|
+
function Fr(e) {
|
|
1171
|
+
if (!L.value || gr.value || document.activeElement !== L.value || !Z.value.length) return;
|
|
1152
1172
|
let t = e.key === "ArrowLeft", n = e.key === "ArrowRight", r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
1153
1173
|
if (!t && !n && !r && !i) return;
|
|
1154
1174
|
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
1155
|
-
N.value = null,
|
|
1175
|
+
N.value = null, an.value = "pointer", zt.value = !1, j.value = void 0;
|
|
1156
1176
|
return;
|
|
1157
1177
|
}
|
|
1158
1178
|
if (r) {
|
|
1159
1179
|
if (N.value === null) return;
|
|
1160
1180
|
let e = Z.value[N.value];
|
|
1161
1181
|
if (!e) return;
|
|
1162
|
-
|
|
1182
|
+
er(N.value, e);
|
|
1163
1183
|
return;
|
|
1164
1184
|
}
|
|
1165
1185
|
let a = N.value, o = j.value, s = a !== null && a >= 0 && a < Z.value.length, c = o != null && o >= 0 && o < Z.value.length;
|
|
1166
1186
|
s ? n ? (a += 1, a >= Z.value.length && (a = 0)) : t && (--a, a < 0 && (a = Z.value.length - 1)) : c ? (a = n ? o + 1 : o - 1, a >= Z.value.length && (a = 0), a < 0 && (a = Z.value.length - 1)) : a = n ? 0 : Z.value.length - 1;
|
|
1167
1187
|
let l = Z.value[a];
|
|
1168
|
-
l && (
|
|
1188
|
+
l && (Ir(a), nr(a, l, "keyboard"));
|
|
1169
1189
|
}
|
|
1170
|
-
function
|
|
1190
|
+
function Ir(e) {
|
|
1171
1191
|
if (!Number.isFinite(e) || !L.value) return;
|
|
1172
1192
|
let t = W.value.left + Y.value * e + Y.value / 2, n = W.value.top + W.value.height / 2, r = L.value.getBoundingClientRect();
|
|
1173
|
-
|
|
1193
|
+
rn.value = {
|
|
1174
1194
|
x: r.left + t / R.value.width * r.width,
|
|
1175
1195
|
y: r.top + n / R.value.height * r.height
|
|
1176
1196
|
};
|
|
1177
1197
|
}
|
|
1178
|
-
let
|
|
1179
|
-
headers:
|
|
1180
|
-
rows:
|
|
1198
|
+
let Lr = f(() => ({
|
|
1199
|
+
headers: fr.value?.colNames ?? [],
|
|
1200
|
+
rows: fr.value?.bodyA11y ?? []
|
|
1181
1201
|
}));
|
|
1182
|
-
return
|
|
1183
|
-
getImage:
|
|
1184
|
-
generatePdf:
|
|
1185
|
-
generateCsv:
|
|
1186
|
-
generateImage:
|
|
1187
|
-
generateSvg:
|
|
1188
|
-
toggleTable:
|
|
1189
|
-
toggleTooltip:
|
|
1190
|
-
toggleAnnotator:
|
|
1191
|
-
toggleFullscreen:
|
|
1192
|
-
copyAlt:
|
|
1202
|
+
return Ce({
|
|
1203
|
+
getImage: vr,
|
|
1204
|
+
generatePdf: bn,
|
|
1205
|
+
generateCsv: dr,
|
|
1206
|
+
generateImage: xn,
|
|
1207
|
+
generateSvg: Er,
|
|
1208
|
+
toggleTable: mr,
|
|
1209
|
+
toggleTooltip: hr,
|
|
1210
|
+
toggleAnnotator: _r,
|
|
1211
|
+
toggleFullscreen: pr,
|
|
1212
|
+
copyAlt: Mr
|
|
1193
1213
|
}), (e, t) => (x(), h("div", {
|
|
1194
1214
|
ref_key: "candlestickChart",
|
|
1195
1215
|
ref: M,
|
|
1196
1216
|
class: y(`vue-data-ui-component vue-ui-candlestick ${$.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${P.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
1197
|
-
style:
|
|
1217
|
+
style: Le(`position:relative;font-family:${P.value.style.fontFamily}; text-align:center;background:${P.value.style.backgroundColor}; ${P.value.responsive ? "height: 100%" : ""}`),
|
|
1198
1218
|
id: `vue-ui-candlestick_${A.value}`,
|
|
1199
|
-
onMouseenter:
|
|
1200
|
-
onMouseleave:
|
|
1219
|
+
onMouseenter: mn,
|
|
1220
|
+
onMouseleave: hn
|
|
1201
1221
|
}, [
|
|
1202
1222
|
g("div", {
|
|
1203
1223
|
id: `chart-instructions-${A.value}`,
|
|
1204
1224
|
class: "sr-only"
|
|
1205
|
-
}, [g("p", null, T(P.value.a11y.translations.keyboardNavigation), 1)], 8,
|
|
1206
|
-
|
|
1225
|
+
}, [g("p", null, T(P.value.a11y.translations.keyboardNavigation), 1)], 8, qe),
|
|
1226
|
+
Lr.value?.rows?.length ? (x(), p(Oe, {
|
|
1207
1227
|
key: 0,
|
|
1208
1228
|
uid: A.value,
|
|
1209
|
-
head:
|
|
1210
|
-
body:
|
|
1229
|
+
head: Lr.value.headers,
|
|
1230
|
+
body: Lr.value.rows,
|
|
1211
1231
|
notice: P.value.a11y.translations.tableAvailable,
|
|
1212
1232
|
caption: P.value.a11y.translations.tableCaption
|
|
1213
1233
|
}, null, 8, [
|
|
@@ -1217,14 +1237,14 @@ var Ue = /* @__PURE__ */ e({ default: () => Ct }), We = ["id"], Ge = ["id"], Ke
|
|
|
1217
1237
|
"notice",
|
|
1218
1238
|
"caption"
|
|
1219
1239
|
])) : m("", !0),
|
|
1220
|
-
P.value.userOptions.buttons.annotator ? (x(), p(E(
|
|
1240
|
+
P.value.userOptions.buttons.annotator ? (x(), p(E(kt), {
|
|
1221
1241
|
key: 1,
|
|
1222
1242
|
svgRef: E(L),
|
|
1223
1243
|
backgroundColor: P.value.style.backgroundColor,
|
|
1224
1244
|
color: P.value.style.color,
|
|
1225
|
-
active:
|
|
1226
|
-
isCursorPointer:
|
|
1227
|
-
onClose:
|
|
1245
|
+
active: gr.value,
|
|
1246
|
+
isCursorPointer: cn.value,
|
|
1247
|
+
onClose: _r
|
|
1228
1248
|
}, {
|
|
1229
1249
|
"annotator-action-close": D(() => [w(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
1230
1250
|
"annotator-action-color": D(({ color: t }) => [w(e.$slots, "annotator-action-color", b(v({ color: t })), void 0, !0)]),
|
|
@@ -1240,20 +1260,20 @@ var Ue = /* @__PURE__ */ e({ default: () => Ct }), We = ["id"], Ge = ["id"], Ke
|
|
|
1240
1260
|
"active",
|
|
1241
1261
|
"isCursorPointer"
|
|
1242
1262
|
])) : m("", !0),
|
|
1243
|
-
|
|
1263
|
+
Sn.value ? (x(), h("div", {
|
|
1244
1264
|
key: 2,
|
|
1245
1265
|
ref_key: "noTitle",
|
|
1246
|
-
ref:
|
|
1266
|
+
ref: Kt,
|
|
1247
1267
|
class: "vue-data-ui-no-title-space",
|
|
1248
1268
|
style: "height:36px; width: 100%;background:transparent"
|
|
1249
1269
|
}, null, 512)) : m("", !0),
|
|
1250
1270
|
P.value.style.title.text ? (x(), h("div", {
|
|
1251
1271
|
key: 3,
|
|
1252
1272
|
ref_key: "chartTitle",
|
|
1253
|
-
ref:
|
|
1273
|
+
ref: Ht,
|
|
1254
1274
|
style: "width:100%;background:transparent"
|
|
1255
|
-
}, [(x(), p(
|
|
1256
|
-
key: `title_${
|
|
1275
|
+
}, [(x(), p(Se, {
|
|
1276
|
+
key: `title_${Yt.value}`,
|
|
1257
1277
|
config: {
|
|
1258
1278
|
title: {
|
|
1259
1279
|
cy: "candlestick-div-title",
|
|
@@ -1265,14 +1285,14 @@ var Ue = /* @__PURE__ */ e({ default: () => Ct }), We = ["id"], Ge = ["id"], Ke
|
|
|
1265
1285
|
}
|
|
1266
1286
|
}
|
|
1267
1287
|
}, null, 8, ["config"]))], 512)) : m("", !0),
|
|
1268
|
-
P.value.userOptions.show &&
|
|
1288
|
+
P.value.userOptions.show && Lt.value && (E(pn) || E(dn)) ? (x(), p(E(At), {
|
|
1269
1289
|
ref_key: "userOptionsRef",
|
|
1270
|
-
ref:
|
|
1271
|
-
key: `user_options_${
|
|
1290
|
+
ref: $t,
|
|
1291
|
+
key: `user_options_${Vt.value}`,
|
|
1272
1292
|
backgroundColor: P.value.style.backgroundColor,
|
|
1273
1293
|
color: P.value.style.color,
|
|
1274
|
-
isImaging: E(
|
|
1275
|
-
isPrinting: E(
|
|
1294
|
+
isImaging: E(yn),
|
|
1295
|
+
isPrinting: E(vn),
|
|
1276
1296
|
uid: A.value,
|
|
1277
1297
|
hasTooltip: P.value.userOptions.buttons.tooltip && P.value.style.tooltip.show,
|
|
1278
1298
|
hasPdf: P.value.userOptions.buttons.pdf,
|
|
@@ -1288,22 +1308,22 @@ var Ue = /* @__PURE__ */ e({ default: () => Ct }), We = ["id"], Ge = ["id"], Ke
|
|
|
1288
1308
|
chartElement: M.value,
|
|
1289
1309
|
position: P.value.userOptions.position,
|
|
1290
1310
|
hasAnnotator: P.value.userOptions.buttons.annotator,
|
|
1291
|
-
isAnnotation:
|
|
1311
|
+
isAnnotation: gr.value,
|
|
1292
1312
|
callbacks: P.value.userOptions.callbacks,
|
|
1293
1313
|
printScale: P.value.userOptions.print.scale,
|
|
1294
1314
|
tableDialog: P.value.table.useDialog,
|
|
1295
|
-
isCursorPointer:
|
|
1296
|
-
onToggleFullscreen:
|
|
1297
|
-
onGeneratePdf: E(
|
|
1298
|
-
onGenerateCsv:
|
|
1299
|
-
onGenerateImage:
|
|
1300
|
-
onGenerateSvg:
|
|
1301
|
-
onToggleTable:
|
|
1302
|
-
onToggleTooltip:
|
|
1303
|
-
onToggleAnnotator:
|
|
1304
|
-
onCopyAlt:
|
|
1305
|
-
style:
|
|
1306
|
-
},
|
|
1315
|
+
isCursorPointer: cn.value,
|
|
1316
|
+
onToggleFullscreen: pr,
|
|
1317
|
+
onGeneratePdf: E(bn),
|
|
1318
|
+
onGenerateCsv: dr,
|
|
1319
|
+
onGenerateImage: jr,
|
|
1320
|
+
onGenerateSvg: Er,
|
|
1321
|
+
onToggleTable: mr,
|
|
1322
|
+
onToggleTooltip: hr,
|
|
1323
|
+
onToggleAnnotator: _r,
|
|
1324
|
+
onCopyAlt: Mr,
|
|
1325
|
+
style: Le({ visibility: E(pn) ? E(dn) ? "visible" : "hidden" : "visible" })
|
|
1326
|
+
}, Me({ _: 2 }, [
|
|
1307
1327
|
e.$slots.menuIcon ? {
|
|
1308
1328
|
name: "menuIcon",
|
|
1309
1329
|
fn: D(({ isOpen: t, color: n }) => [w(e.$slots, "menuIcon", b(v({
|
|
@@ -1374,23 +1394,24 @@ var Ue = /* @__PURE__ */ e({ default: () => Ct }), We = ["id"], Ge = ["id"], Ke
|
|
|
1374
1394
|
key: "11"
|
|
1375
1395
|
} : void 0
|
|
1376
1396
|
]), 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.style".split("."))) : m("", !0),
|
|
1377
|
-
g("div",
|
|
1397
|
+
g("div", Je, [(x(), h("svg", {
|
|
1378
1398
|
ref_key: "svgRef",
|
|
1379
1399
|
ref: L,
|
|
1380
|
-
xmlns: E(
|
|
1400
|
+
xmlns: E(ae),
|
|
1381
1401
|
"aria-describedby": `chart-instructions-${A.value}`,
|
|
1382
1402
|
class: y({
|
|
1383
1403
|
"vue-data-ui-fullscreen--on": $.value,
|
|
1384
|
-
"vue-data-ui-fulscreen--off": !$.value
|
|
1404
|
+
"vue-data-ui-fulscreen--off": !$.value,
|
|
1405
|
+
"vue-data-ui-no-transition": !E(sn)
|
|
1385
1406
|
}),
|
|
1386
1407
|
viewBox: `0 0 ${R.value.width <= 0 ? 10 : R.value.width} ${R.value.height <= 0 ? 10 : R.value.height}`,
|
|
1387
|
-
style:
|
|
1408
|
+
style: Le(`max-width:100%;overflow:visible;background:transparent;color:${P.value.style.color}`),
|
|
1388
1409
|
tabindex: "0",
|
|
1389
|
-
onFocus:
|
|
1390
|
-
onBlur:
|
|
1391
|
-
onKeydown:
|
|
1410
|
+
onFocus: Nr,
|
|
1411
|
+
onBlur: Pr,
|
|
1412
|
+
onKeydown: Fr
|
|
1392
1413
|
}, [
|
|
1393
|
-
|
|
1414
|
+
Pe(E(jt)),
|
|
1394
1415
|
e.$slots["chart-background"] ? (x(), h("foreignObject", {
|
|
1395
1416
|
key: 0,
|
|
1396
1417
|
x: W.value.left,
|
|
@@ -1398,9 +1419,9 @@ var Ue = /* @__PURE__ */ e({ default: () => Ct }), We = ["id"], Ge = ["id"], Ke
|
|
|
1398
1419
|
width: Math.max(.1, W.value.width),
|
|
1399
1420
|
height: Math.max(.1, W.value.height),
|
|
1400
1421
|
style: { pointerEvents: "none" }
|
|
1401
|
-
}, [w(e.$slots, "chart-background", {}, void 0, !0)], 8,
|
|
1402
|
-
Z.value.length > 0 ? (x(), h("g",
|
|
1403
|
-
g("defs", null, [
|
|
1422
|
+
}, [w(e.$slots, "chart-background", {}, void 0, !0)], 8, Xe)) : m("", !0),
|
|
1423
|
+
Z.value.length > 0 ? (x(), h("g", Ze, [
|
|
1424
|
+
g("defs", null, [Pe(Ee, {
|
|
1404
1425
|
t: "linear",
|
|
1405
1426
|
id: `bearish_gradient_${A.value}`,
|
|
1406
1427
|
x2: "0%",
|
|
@@ -1413,16 +1434,16 @@ var Ue = /* @__PURE__ */ e({ default: () => Ct }), We = ["id"], Ge = ["id"], Ke
|
|
|
1413
1434
|
],
|
|
1414
1435
|
[
|
|
1415
1436
|
"50%",
|
|
1416
|
-
E(
|
|
1437
|
+
E(a)(P.value.style.layout.candle.colors.bearish, .02),
|
|
1417
1438
|
.87
|
|
1418
1439
|
],
|
|
1419
1440
|
[
|
|
1420
1441
|
"100%",
|
|
1421
|
-
E(
|
|
1442
|
+
E(a)(P.value.style.layout.candle.colors.bearish, .05),
|
|
1422
1443
|
.4
|
|
1423
1444
|
]
|
|
1424
1445
|
]
|
|
1425
|
-
}, null, 8, ["id", "stops"]),
|
|
1446
|
+
}, null, 8, ["id", "stops"]), Pe(Ee, {
|
|
1426
1447
|
t: "linear",
|
|
1427
1448
|
id: `bullish_gradient_${A.value}`,
|
|
1428
1449
|
x2: "0%",
|
|
@@ -1435,17 +1456,17 @@ var Ue = /* @__PURE__ */ e({ default: () => Ct }), We = ["id"], Ge = ["id"], Ke
|
|
|
1435
1456
|
],
|
|
1436
1457
|
[
|
|
1437
1458
|
"50%",
|
|
1438
|
-
E(
|
|
1459
|
+
E(a)(P.value.style.layout.candle.colors.bullish, .02),
|
|
1439
1460
|
.87
|
|
1440
1461
|
],
|
|
1441
1462
|
[
|
|
1442
1463
|
"100%",
|
|
1443
|
-
E(
|
|
1464
|
+
E(a)(P.value.style.layout.candle.colors.bullish, .05),
|
|
1444
1465
|
.4
|
|
1445
1466
|
]
|
|
1446
1467
|
]
|
|
1447
1468
|
}, null, 8, ["id", "stops"])]),
|
|
1448
|
-
P.value.style.layout.grid.show ? (x(), h("g",
|
|
1469
|
+
P.value.style.layout.grid.show ? (x(), h("g", Qe, [
|
|
1449
1470
|
g("line", {
|
|
1450
1471
|
x1: U.value ? W.value.right : W.value.left,
|
|
1451
1472
|
x2: U.value ? W.value.right : W.value.left,
|
|
@@ -1454,7 +1475,7 @@ var Ue = /* @__PURE__ */ e({ default: () => Ct }), We = ["id"], Ge = ["id"], Ke
|
|
|
1454
1475
|
stroke: P.value.style.layout.grid.stroke,
|
|
1455
1476
|
"stroke-width": P.value.style.layout.grid.strokeWidth,
|
|
1456
1477
|
"stroke-linecap": "round"
|
|
1457
|
-
}, null, 8,
|
|
1478
|
+
}, null, 8, $e),
|
|
1458
1479
|
g("line", {
|
|
1459
1480
|
x1: W.value.left,
|
|
1460
1481
|
x2: W.value.right,
|
|
@@ -1463,8 +1484,8 @@ var Ue = /* @__PURE__ */ e({ default: () => Ct }), We = ["id"], Ge = ["id"], Ke
|
|
|
1463
1484
|
stroke: P.value.style.layout.grid.stroke,
|
|
1464
1485
|
"stroke-width": P.value.style.layout.grid.strokeWidth,
|
|
1465
1486
|
"stroke-linecap": "round"
|
|
1466
|
-
}, null, 8,
|
|
1467
|
-
P.value.style.layout.grid.horizontalLines.show ? (x(!0), h(d, { key: 0 }, C(
|
|
1487
|
+
}, null, 8, et),
|
|
1488
|
+
P.value.style.layout.grid.horizontalLines.show ? (x(!0), h(d, { key: 0 }, C(Bn.value, (e) => (x(), h("line", {
|
|
1468
1489
|
x1: W.value.left,
|
|
1469
1490
|
x2: W.value.right,
|
|
1470
1491
|
y1: e.y,
|
|
@@ -1473,8 +1494,8 @@ var Ue = /* @__PURE__ */ e({ default: () => Ct }), We = ["id"], Ge = ["id"], Ke
|
|
|
1473
1494
|
"stroke-width": P.value.style.layout.grid.horizontalLines.strokeWidth,
|
|
1474
1495
|
"stroke-dasharray": P.value.style.layout.grid.horizontalLines.strokeDasharray,
|
|
1475
1496
|
"stroke-linecap": "round"
|
|
1476
|
-
}, null, 8,
|
|
1477
|
-
P.value.style.layout.grid.verticalLines.show ? (x(!0), h(d, { key: 1 }, C(
|
|
1497
|
+
}, null, 8, tt))), 256)) : m("", !0),
|
|
1498
|
+
P.value.style.layout.grid.verticalLines.show ? (x(!0), h(d, { key: 1 }, C(Zn.value, (e, t) => (x(), h("g", null, [e.text ? (x(), h("line", {
|
|
1478
1499
|
key: 0,
|
|
1479
1500
|
x1: W.value.left + Y.value * t + Y.value / 2,
|
|
1480
1501
|
x2: W.value.left + Y.value * t + Y.value / 2,
|
|
@@ -1484,8 +1505,8 @@ var Ue = /* @__PURE__ */ e({ default: () => Ct }), We = ["id"], Ge = ["id"], Ke
|
|
|
1484
1505
|
"stroke-width": P.value.style.layout.grid.verticalLines.strokeWidth,
|
|
1485
1506
|
"stroke-dasharray": P.value.style.layout.grid.verticalLines.strokeDasharray,
|
|
1486
1507
|
"stroke-linecap": "round"
|
|
1487
|
-
}, null, 8,
|
|
1488
|
-
P.value.style.layout.grid.xAxis.ticks.show ? (x(!0), h(d, { key: 2 }, C(
|
|
1508
|
+
}, null, 8, nt)) : m("", !0)]))), 256)) : m("", !0),
|
|
1509
|
+
P.value.style.layout.grid.xAxis.ticks.show ? (x(!0), h(d, { key: 2 }, C(Zn.value, (e, t) => (x(), h("g", null, [e.text ? (x(), h("line", {
|
|
1489
1510
|
key: 0,
|
|
1490
1511
|
x1: W.value.left + Y.value * t + Y.value / 2,
|
|
1491
1512
|
x2: W.value.left + Y.value * t + Y.value / 2,
|
|
@@ -1494,13 +1515,13 @@ var Ue = /* @__PURE__ */ e({ default: () => Ct }), We = ["id"], Ge = ["id"], Ke
|
|
|
1494
1515
|
stroke: P.value.style.layout.grid.stroke,
|
|
1495
1516
|
"stroke-width": P.value.style.layout.grid.strokeWidth,
|
|
1496
1517
|
"stroke-linecap": "round"
|
|
1497
|
-
}, null, 8,
|
|
1518
|
+
}, null, 8, rt)) : m("", !0)]))), 256)) : m("", !0)
|
|
1498
1519
|
])) : m("", !0),
|
|
1499
1520
|
P.value.style.layout.grid.yAxis.dataLabels.show ? (x(), h("g", {
|
|
1500
1521
|
key: 1,
|
|
1501
1522
|
ref_key: "scaleLabels",
|
|
1502
|
-
ref:
|
|
1503
|
-
}, [(x(!0), h(d, null, C(
|
|
1523
|
+
ref: Xt
|
|
1524
|
+
}, [(x(!0), h(d, null, C(Bn.value, (e, t) => (x(), h("g", { key: `sl_${t}` }, [e.value >= X.value.min && e.value <= X.value.max ? (x(), h("line", {
|
|
1504
1525
|
key: 0,
|
|
1505
1526
|
x1: U.value ? W.value.right : W.value.left,
|
|
1506
1527
|
x2: U.value ? W.value.right + 5 : W.value.left - 5,
|
|
@@ -1509,44 +1530,44 @@ var Ue = /* @__PURE__ */ e({ default: () => Ct }), We = ["id"], Ge = ["id"], Ke
|
|
|
1509
1530
|
stroke: P.value.style.layout.grid.stroke,
|
|
1510
1531
|
"stroke-width": P.value.style.layout.grid.strokeWidth,
|
|
1511
1532
|
"stroke-linecap": "round"
|
|
1512
|
-
}, null, 8,
|
|
1533
|
+
}, null, 8, it)) : m("", !0), e.value >= X.value.min && e.value <= X.value.max ? (x(), h("text", {
|
|
1513
1534
|
key: 1,
|
|
1514
|
-
class: y({ "vue-data-ui-
|
|
1535
|
+
class: y({ "vue-data-ui-transition": E(sn) }),
|
|
1515
1536
|
transform: `translate(${U.value ? W.value.right + 8 + P.value.style.layout.grid.yAxis.dataLabels.offsetX : W.value.left - 8 + P.value.style.layout.grid.yAxis.dataLabels.offsetX}, ${e.y + R.value.yAxisFontSize / 3})`,
|
|
1516
1537
|
"text-anchor": U.value ? "start" : "end",
|
|
1517
1538
|
"font-size": R.value.yAxisFontSize,
|
|
1518
1539
|
fill: P.value.style.layout.grid.yAxis.dataLabels.color,
|
|
1519
1540
|
"font-weight": P.value.style.layout.grid.yAxis.dataLabels.bold ? "bold" : "normal"
|
|
1520
|
-
}, T(E(
|
|
1541
|
+
}, T(E(o)({
|
|
1521
1542
|
p: P.value.style.layout.grid.yAxis.dataLabels.prefix,
|
|
1522
1543
|
v: e.value,
|
|
1523
1544
|
s: P.value.style.layout.grid.yAxis.dataLabels.suffix,
|
|
1524
1545
|
r: P.value.style.layout.grid.yAxis.dataLabels.roundingValue
|
|
1525
|
-
})), 11,
|
|
1546
|
+
})), 11, at)) : m("", !0)]))), 128))], 512)) : m("", !0),
|
|
1526
1547
|
P.value.style.layout.grid.xAxis.dataLabels.show && !P.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? (x(), h("g", {
|
|
1527
1548
|
key: 2,
|
|
1528
1549
|
ref_key: "timeLabelsEls",
|
|
1529
|
-
ref:
|
|
1530
|
-
}, [(x(!0), h(d, null, C(
|
|
1550
|
+
ref: Zt
|
|
1551
|
+
}, [(x(!0), h(d, null, C(Vn.value, (e, t) => (x(), h("g", null, [g("text", {
|
|
1531
1552
|
class: "vue-data-ui-time-label",
|
|
1532
1553
|
transform: `translate(${W.value.left + Y.value * t + Y.value / 2}, ${W.value.bottom + R.value.xAxisFontSize * 1.5}), rotate(${P.value.style.layout.grid.xAxis.dataLabels.rotation})`,
|
|
1533
1554
|
"text-anchor": P.value.style.layout.grid.xAxis.dataLabels.rotation > 0 ? "start" : P.value.style.layout.grid.xAxis.dataLabels.rotation < 0 ? "end" : "middle",
|
|
1534
1555
|
"font-size": R.value.xAxisFontSize,
|
|
1535
1556
|
fill: P.value.style.layout.grid.xAxis.dataLabels.color,
|
|
1536
1557
|
"font-weight": P.value.style.layout.grid.xAxis.dataLabels.bold ? "bold" : "normal"
|
|
1537
|
-
}, T(e), 9,
|
|
1558
|
+
}, T(e), 9, ot)]))), 256))], 512)) : m("", !0),
|
|
1538
1559
|
P.value.style.layout.grid.xAxis.dataLabels.show && P.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? (x(), h("g", {
|
|
1539
1560
|
key: 3,
|
|
1540
1561
|
ref_key: "timeLabelsEls",
|
|
1541
|
-
ref:
|
|
1542
|
-
}, [(x(!0), h(d, null, C(
|
|
1562
|
+
ref: Zt
|
|
1563
|
+
}, [(x(!0), h(d, null, C(Zn.value, (e, t) => (x(), h("g", null, [g("text", {
|
|
1543
1564
|
class: "vue-data-ui-time-label",
|
|
1544
1565
|
transform: `translate(${W.value.left + Y.value * t + Y.value / 2}, ${W.value.bottom + R.value.xAxisFontSize * 1.5}), rotate(${P.value.style.layout.grid.xAxis.dataLabels.rotation})`,
|
|
1545
1566
|
"text-anchor": P.value.style.layout.grid.xAxis.dataLabels.rotation > 0 ? "start" : P.value.style.layout.grid.xAxis.dataLabels.rotation < 0 ? "end" : "middle",
|
|
1546
1567
|
"font-size": R.value.xAxisFontSize,
|
|
1547
1568
|
fill: P.value.style.layout.grid.xAxis.dataLabels.color,
|
|
1548
1569
|
"font-weight": P.value.style.layout.grid.xAxis.dataLabels.bold ? "bold" : "normal"
|
|
1549
|
-
}, T(e?.text ?? ""), 9,
|
|
1570
|
+
}, T(e?.text ?? ""), 9, st)]))), 256))], 512)) : m("", !0),
|
|
1550
1571
|
P.value.type === "candlestick" ? (x(), h(d, { key: 4 }, [g("g", null, [(x(!0), h(d, null, C(Z.value, (e, t) => (x(), h("g", null, [
|
|
1551
1572
|
g("rect", {
|
|
1552
1573
|
x: e.open.x - P.value.style.layout.wick.strokeWidth / 2,
|
|
@@ -1557,21 +1578,21 @@ var Ue = /* @__PURE__ */ e({ default: () => Ct }), We = ["id"], Ge = ["id"], Ke
|
|
|
1557
1578
|
stroke: "none",
|
|
1558
1579
|
rx: P.value.style.layout.wick.strokeWidth / 2,
|
|
1559
1580
|
class: y({ "vue-data-ui-transition": k.value && !E(F) })
|
|
1560
|
-
}, null, 10,
|
|
1561
|
-
P.value.style.layout.wick.extremity.shape === "circle" ? (x(), h("g",
|
|
1581
|
+
}, null, 10, ct),
|
|
1582
|
+
P.value.style.layout.wick.extremity.shape === "circle" ? (x(), h("g", lt, [g("circle", {
|
|
1562
1583
|
cx: e.high.x,
|
|
1563
1584
|
cy: e.high.y,
|
|
1564
1585
|
r: P.value.style.layout.wick.extremity.size === "auto" ? Y.value / 20 : P.value.style.layout.wick.extremity.size,
|
|
1565
1586
|
fill: P.value.style.layout.wick.extremity.color,
|
|
1566
1587
|
class: y({ "vue-data-ui-transition": k.value && !E(F) })
|
|
1567
|
-
}, null, 10,
|
|
1588
|
+
}, null, 10, ut), g("circle", {
|
|
1568
1589
|
cx: e.low.x,
|
|
1569
1590
|
cy: e.low.y,
|
|
1570
1591
|
r: P.value.style.layout.wick.extremity.size === "auto" ? Y.value / 20 : P.value.style.layout.wick.extremity.size,
|
|
1571
1592
|
fill: P.value.style.layout.wick.extremity.color,
|
|
1572
1593
|
class: y({ "vue-data-ui-transition": k.value && !E(F) })
|
|
1573
|
-
}, null, 10,
|
|
1574
|
-
P.value.style.layout.wick.extremity.shape === "line" ? (x(), h("g",
|
|
1594
|
+
}, null, 10, dt)])) : m("", !0),
|
|
1595
|
+
P.value.style.layout.wick.extremity.shape === "line" ? (x(), h("g", ft, [g("rect", {
|
|
1575
1596
|
x: e.high.x - (P.value.style.layout.wick.extremity.size === "auto" ? Y.value * P.value.style.layout.candle.widthRatio : P.value.style.layout.wick.extremity.size) / 2,
|
|
1576
1597
|
y: e.high.y - P.value.style.layout.wick.strokeWidth / 2,
|
|
1577
1598
|
width: Math.abs(e.high.x - (P.value.style.layout.wick.extremity.size === "auto" ? Y.value * P.value.style.layout.candle.widthRatio : P.value.style.layout.wick.extremity.size) / 2 - (e.high.x + (P.value.style.layout.wick.extremity.size === "auto" ? Y.value * P.value.style.layout.candle.widthRatio : P.value.style.layout.wick.extremity.size) / 2)),
|
|
@@ -1580,7 +1601,7 @@ var Ue = /* @__PURE__ */ e({ default: () => Ct }), We = ["id"], Ge = ["id"], Ke
|
|
|
1580
1601
|
fill: P.value.style.layout.wick.extremity.color,
|
|
1581
1602
|
stroke: "none",
|
|
1582
1603
|
class: y({ "vue-data-ui-transition": k.value && !E(F) })
|
|
1583
|
-
}, null, 10,
|
|
1604
|
+
}, null, 10, pt), g("rect", {
|
|
1584
1605
|
x: e.low.x - (P.value.style.layout.wick.extremity.size === "auto" ? Y.value * P.value.style.layout.candle.widthRatio : P.value.style.layout.wick.extremity.size) / 2,
|
|
1585
1606
|
y: e.low.y - P.value.style.layout.wick.strokeWidth / 2,
|
|
1586
1607
|
width: Math.abs(e.low.x - (P.value.style.layout.wick.extremity.size === "auto" ? Y.value * P.value.style.layout.candle.widthRatio : P.value.style.layout.wick.extremity.size) / 2 - (e.low.x + (P.value.style.layout.wick.extremity.size === "auto" ? Y.value * P.value.style.layout.candle.widthRatio : P.value.style.layout.wick.extremity.size) / 2)),
|
|
@@ -1589,7 +1610,7 @@ var Ue = /* @__PURE__ */ e({ default: () => Ct }), We = ["id"], Ge = ["id"], Ke
|
|
|
1589
1610
|
stroke: "none",
|
|
1590
1611
|
rx: P.value.style.layout.wick.strokeWidth / 2,
|
|
1591
1612
|
class: y({ "vue-data-ui-transition": k.value && !E(F) })
|
|
1592
|
-
}, null, 10,
|
|
1613
|
+
}, null, 10, mt)])) : m("", !0)
|
|
1593
1614
|
]))), 256))]), g("g", null, [(x(!0), h(d, null, C(Z.value, (e, t) => (x(), h("rect", {
|
|
1594
1615
|
x: e.open.x - Y.value / 2 + Y.value * (1 - P.value.style.layout.candle.widthRatio) / 2,
|
|
1595
1616
|
y: e.isBullish ? e.close.y : e.open.y,
|
|
@@ -1599,7 +1620,7 @@ var Ue = /* @__PURE__ */ e({ default: () => Ct }), We = ["id"], Ge = ["id"], Ke
|
|
|
1599
1620
|
rx: P.value.style.layout.candle.borderRadius,
|
|
1600
1621
|
stroke: "none",
|
|
1601
1622
|
class: y({ "vue-data-ui-transition": k.value && !E(F) })
|
|
1602
|
-
}, null, 10,
|
|
1623
|
+
}, null, 10, ht))), 256)), (x(!0), h(d, null, C(Z.value, (e, t) => (x(), h("rect", {
|
|
1603
1624
|
x: e.open.x - Y.value / 2 + Y.value * (1 - P.value.style.layout.candle.widthRatio) / 2,
|
|
1604
1625
|
y: e.isBullish ? e.close.y : e.open.y,
|
|
1605
1626
|
height: Math.abs(e.close.y - e.open.y) <= 0 ? 1e-4 : Math.abs(e.close.y - e.open.y),
|
|
@@ -1611,45 +1632,48 @@ var Ue = /* @__PURE__ */ e({ default: () => Ct }), We = ["id"], Ge = ["id"], Ke
|
|
|
1611
1632
|
"stroke-linecap": "round",
|
|
1612
1633
|
"stroke-linejoin": "round",
|
|
1613
1634
|
class: y({ "vue-data-ui-transition": k.value && !E(F) })
|
|
1614
|
-
}, null, 10,
|
|
1615
|
-
P.value.type === "ohlc" ? (x(!0), h(d, { key: 5 }, C(Z.value, (e, t) => (x(), h("g",
|
|
1635
|
+
}, null, 10, gt))), 256))])], 64)) : m("", !0),
|
|
1636
|
+
P.value.type === "ohlc" ? (x(!0), h(d, { key: 5 }, C(Z.value, (e, t) => (x(), h("g", { key: `ohlc_${e.absoluteIndex}` }, [g("path", {
|
|
1616
1637
|
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}`,
|
|
1617
1638
|
stroke: e.isBullish ? P.value.style.layout.candle.colors.bullish : P.value.style.layout.candle.colors.bearish,
|
|
1618
|
-
"stroke-width": 1
|
|
1619
|
-
|
|
1639
|
+
"stroke-width": 1,
|
|
1640
|
+
class: y({ "vue-data-ui-transition": E(sn) }),
|
|
1641
|
+
"stroke-linecap": "round",
|
|
1642
|
+
"stroke-linejoin": "round"
|
|
1643
|
+
}, null, 10, _t)]))), 128)) : m("", !0),
|
|
1620
1644
|
g("g", null, [(x(!0), h(d, null, C(Z.value, (e, t) => (x(), h("rect", {
|
|
1621
1645
|
x: W.value.left + t * Y.value,
|
|
1622
1646
|
y: W.value.top,
|
|
1623
1647
|
height: W.value.height <= 0 ? 1e-4 : W.value.height,
|
|
1624
1648
|
width: Y.value <= 0 ? 1e-4 : Y.value,
|
|
1625
|
-
fill: j.value === t ||
|
|
1626
|
-
onMouseover: () =>
|
|
1627
|
-
onMouseleave: () =>
|
|
1628
|
-
onClick: () =>
|
|
1629
|
-
}, null, 40,
|
|
1649
|
+
fill: j.value === t || en.value === t ? E(n)(P.value.style.layout.selector.color, P.value.style.layout.selector.opacity) : "transparent",
|
|
1650
|
+
onMouseover: () => nr(t, e, "pointer"),
|
|
1651
|
+
onMouseleave: () => tr(t, e),
|
|
1652
|
+
onClick: () => er(t, e)
|
|
1653
|
+
}, null, 40, vt))), 256))])
|
|
1630
1654
|
])) : m("", !0),
|
|
1631
|
-
|
|
1655
|
+
On.value ? (x(), h("rect", Fe({ key: 2 }, Dn.value, {
|
|
1632
1656
|
"data-start": K.value.start,
|
|
1633
1657
|
"data-end": K.value.end
|
|
1634
|
-
}), null, 16,
|
|
1658
|
+
}), null, 16, yt)) : m("", !0),
|
|
1635
1659
|
w(e.$slots, "svg", { svg: {
|
|
1636
1660
|
...R.value,
|
|
1637
1661
|
data: Z.value,
|
|
1638
1662
|
drawingArea: W.value,
|
|
1639
|
-
isPrintingImg: E(
|
|
1640
|
-
isPrintingSvg:
|
|
1663
|
+
isPrintingImg: E(vn) || E(yn) || tn.value,
|
|
1664
|
+
isPrintingSvg: nn.value
|
|
1641
1665
|
} }, void 0, !0)
|
|
1642
|
-
], 46,
|
|
1666
|
+
], 46, Ye)), e.$slots.hint ? (x(), h("div", bt, [w(e.$slots, "hint", b(v({
|
|
1643
1667
|
hint: P.value.a11y.translations.keyboardNavigation,
|
|
1644
|
-
isVisible:
|
|
1668
|
+
isVisible: on.value
|
|
1645
1669
|
})), void 0, !0)])) : m("", !0)]),
|
|
1646
|
-
e.$slots.watermark ? (x(), h("div",
|
|
1647
|
-
P.value.style.zoom.show && G.value > 6 &&
|
|
1670
|
+
e.$slots.watermark ? (x(), h("div", xt, [w(e.$slots, "watermark", b(v({ isPrinting: E(vn) || E(yn) || tn.value || nn.value })), void 0, !0)])) : m("", !0),
|
|
1671
|
+
P.value.style.zoom.show && G.value > 6 && Lt.value && sr.value ? (x(), p(De, {
|
|
1648
1672
|
key: 6,
|
|
1649
1673
|
ref_key: "chartSlicer",
|
|
1650
|
-
ref:
|
|
1674
|
+
ref: Wt,
|
|
1651
1675
|
"data-dom-to-png-ignore-layout": "",
|
|
1652
|
-
allMinimaps:
|
|
1676
|
+
allMinimaps: Rn.value,
|
|
1653
1677
|
background: P.value.style.zoom.color,
|
|
1654
1678
|
borderColor: P.value.style.backgroundColor,
|
|
1655
1679
|
customFormat: P.value.style.zoom.customFormat,
|
|
@@ -1662,9 +1686,9 @@ var Ue = /* @__PURE__ */ e({ default: () => Ct }), We = ["id"], Ge = ["id"], Ke
|
|
|
1662
1686
|
fontSize: P.value.style.zoom.fontSize,
|
|
1663
1687
|
immediate: !P.value.style.zoom.preview.enable,
|
|
1664
1688
|
inputColor: P.value.style.zoom.color,
|
|
1665
|
-
isPreview:
|
|
1666
|
-
labelLeft:
|
|
1667
|
-
labelRight:
|
|
1689
|
+
isPreview: On.value,
|
|
1690
|
+
labelLeft: Qn.value.start || "",
|
|
1691
|
+
labelRight: Qn.value.end || "",
|
|
1668
1692
|
max: G.value,
|
|
1669
1693
|
min: 0,
|
|
1670
1694
|
minimap: P.value.style.zoom.minimap.show ? E(I).map((e) => e[2]) : [],
|
|
@@ -1676,7 +1700,7 @@ var Ue = /* @__PURE__ */ e({ default: () => Ct }), We = ["id"], Ge = ["id"], Ke
|
|
|
1676
1700
|
minimapSelectedColorOpacity: P.value.style.zoom.minimap.selectedColorOpacity,
|
|
1677
1701
|
minimapSelectedIndex: j.value,
|
|
1678
1702
|
minimapSelectionRadius: 1,
|
|
1679
|
-
preciseLabels:
|
|
1703
|
+
preciseLabels: Xn.value,
|
|
1680
1704
|
refreshEndPoint: P.value.style.zoom.endIndex === null ? G.value : P.value.style.zoom.endIndex + 1,
|
|
1681
1705
|
refreshStartPoint: P.value.style.zoom.startIndex === null ? 0 : P.value.style.zoom.startIndex,
|
|
1682
1706
|
selectColor: P.value.style.zoom.highlightColor,
|
|
@@ -1684,7 +1708,7 @@ var Ue = /* @__PURE__ */ e({ default: () => Ct }), We = ["id"], Ge = ["id"], Ke
|
|
|
1684
1708
|
smoothMinimap: !1,
|
|
1685
1709
|
start: K.value.start,
|
|
1686
1710
|
textColor: P.value.style.color,
|
|
1687
|
-
timeLabels:
|
|
1711
|
+
timeLabels: Hn.value,
|
|
1688
1712
|
usePreciseLabels: P.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable && !P.value.style.zoom.useDefaultFormat,
|
|
1689
1713
|
useResetSlot: P.value.style.zoom.useResetSlot,
|
|
1690
1714
|
valueEnd: K.value.end,
|
|
@@ -1700,43 +1724,43 @@ var Ue = /* @__PURE__ */ e({ default: () => Ct }), We = ["id"], Ge = ["id"], Ke
|
|
|
1700
1724
|
handleBorderColor: P.value.style.zoom.minimap.handleBorderColor,
|
|
1701
1725
|
handleFill: P.value.style.zoom.minimap.handleFill,
|
|
1702
1726
|
handleWidth: P.value.style.zoom.minimap.handleWidth,
|
|
1703
|
-
"onUpdate:end":
|
|
1704
|
-
"onUpdate:start":
|
|
1705
|
-
onTrapMouse:
|
|
1706
|
-
onReset:
|
|
1707
|
-
onFutureEnd: t[0] ||= (e) =>
|
|
1708
|
-
onFutureStart: t[1] ||= (e) =>
|
|
1727
|
+
"onUpdate:end": kr,
|
|
1728
|
+
"onUpdate:start": Or,
|
|
1729
|
+
onTrapMouse: Dr,
|
|
1730
|
+
onReset: ar,
|
|
1731
|
+
onFutureEnd: t[0] ||= (e) => kn("end", e),
|
|
1732
|
+
onFutureStart: t[1] ||= (e) => kn("start", e)
|
|
1709
1733
|
}, {
|
|
1710
1734
|
"reset-action": D(({ reset: t }) => [w(e.$slots, "reset-action", b(v({ reset: t })), void 0, !0)]),
|
|
1711
|
-
slotMap: D(({ height: e, unitW: t }) => [(x(!0), h(d, null, C(
|
|
1735
|
+
slotMap: D(({ height: e, unitW: t }) => [(x(!0), h(d, null, C(Ln.value({
|
|
1712
1736
|
minimapH: e,
|
|
1713
1737
|
unitW: t
|
|
1714
1738
|
}), (e, n) => (x(), h("g", null, [g("path", {
|
|
1715
1739
|
d: `M ${e.high.x},${e.high.y} ${e.low.x},${e.low.y}`,
|
|
1716
1740
|
stroke: e.isBullish ? P.value.style.layout.candle.colors.bullish : P.value.style.layout.candle.colors.bearish,
|
|
1717
1741
|
"stroke-width": 1,
|
|
1718
|
-
style:
|
|
1719
|
-
}, null, 12,
|
|
1742
|
+
style: Le({ opacity: n >= q.value.start && n <= q.value.end ? 1 : .6 })
|
|
1743
|
+
}, null, 12, St), g("path", {
|
|
1720
1744
|
d: `M ${e.open.x},${e.open.y} ${e.close.x},${e.close.y}`,
|
|
1721
1745
|
stroke: e.isBullish ? P.value.style.layout.candle.colors.bullish : P.value.style.layout.candle.colors.bearish,
|
|
1722
1746
|
"stroke-width": Math.min(6, t / 1.5),
|
|
1723
|
-
style:
|
|
1724
|
-
}, null, 12,
|
|
1747
|
+
style: Le({ opacity: n >= q.value.start && n <= q.value.end ? 1 : .6 })
|
|
1748
|
+
}, null, 12, Ct)]))), 256))]),
|
|
1725
1749
|
_: 3
|
|
1726
1750
|
}, 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.additionalMinimapHeight.handleType.handleIconColor.handleBorderWidth.handleBorderColor.handleFill.handleWidth".split("."))) : m("", !0),
|
|
1727
1751
|
g("div", {
|
|
1728
1752
|
ref_key: "chartLegend",
|
|
1729
|
-
ref:
|
|
1753
|
+
ref: Ut
|
|
1730
1754
|
}, [w(e.$slots, "legend", { legend: Z.value }, void 0, !0)], 512),
|
|
1731
1755
|
e.$slots.source ? (x(), h("div", {
|
|
1732
1756
|
key: 7,
|
|
1733
1757
|
ref_key: "source",
|
|
1734
|
-
ref:
|
|
1758
|
+
ref: Gt,
|
|
1735
1759
|
dir: "auto"
|
|
1736
1760
|
}, [w(e.$slots, "source", {}, void 0, !0)], 512)) : m("", !0),
|
|
1737
|
-
|
|
1761
|
+
Pe(E(Et), {
|
|
1738
1762
|
teleportTo: P.value.style.tooltip.teleportTo,
|
|
1739
|
-
show: H.value.showTooltip &&
|
|
1763
|
+
show: H.value.showTooltip && zt.value,
|
|
1740
1764
|
backgroundColor: P.value.style.tooltip.backgroundColor,
|
|
1741
1765
|
color: P.value.style.tooltip.color,
|
|
1742
1766
|
borderRadius: P.value.style.tooltip.borderRadius,
|
|
@@ -1748,19 +1772,19 @@ var Ue = /* @__PURE__ */ e({ default: () => Ct }), We = ["id"], Ge = ["id"], Ke
|
|
|
1748
1772
|
offsetX: P.value.style.tooltip.offsetX,
|
|
1749
1773
|
offsetY: P.value.style.tooltip.offsetY,
|
|
1750
1774
|
parent: M.value,
|
|
1751
|
-
content:
|
|
1775
|
+
content: Bt.value,
|
|
1752
1776
|
isFullscreen: $.value,
|
|
1753
1777
|
isCustom: P.value.style.tooltip.customFormat && typeof P.value.style.tooltip.customFormat == "function",
|
|
1754
1778
|
smooth: P.value.style.tooltip.smooth,
|
|
1755
1779
|
backdropFilter: P.value.style.tooltip.backdropFilter,
|
|
1756
1780
|
smoothForce: P.value.style.tooltip.smoothForce,
|
|
1757
1781
|
smoothSnapThreshold: P.value.style.tooltip.smoothSnapThreshold,
|
|
1758
|
-
isA11yMode:
|
|
1759
|
-
a11yPosition:
|
|
1782
|
+
isA11yMode: an.value === "keyboard",
|
|
1783
|
+
a11yPosition: rn.value
|
|
1760
1784
|
}, {
|
|
1761
|
-
"tooltip-before": D(() => [w(e.$slots, "tooltip-before", b(v({
|
|
1762
|
-
tooltip: D(() => [w(e.$slots, "tooltip", b(v({
|
|
1763
|
-
"tooltip-after": D(() => [w(e.$slots, "tooltip-after", b(v({
|
|
1785
|
+
"tooltip-before": D(() => [w(e.$slots, "tooltip-before", b(v({ ...$n.value })), void 0, !0)]),
|
|
1786
|
+
tooltip: D(() => [w(e.$slots, "tooltip", b(v({ ...$n.value })), void 0, !0)]),
|
|
1787
|
+
"tooltip-after": D(() => [w(e.$slots, "tooltip-after", b(v({ ...$n.value })), void 0, !0)]),
|
|
1764
1788
|
_: 3
|
|
1765
1789
|
}, 8, [
|
|
1766
1790
|
"teleportTo",
|
|
@@ -1786,24 +1810,24 @@ var Ue = /* @__PURE__ */ e({ default: () => Ct }), We = ["id"], Ge = ["id"], Ke
|
|
|
1786
1810
|
"isA11yMode",
|
|
1787
1811
|
"a11yPosition"
|
|
1788
1812
|
]),
|
|
1789
|
-
|
|
1813
|
+
Lt.value && P.value.userOptions.buttons.table ? (x(), p(Be(xr.value.component), Fe({ key: 8 }, xr.value.props, {
|
|
1790
1814
|
ref_key: "tableUnit",
|
|
1791
|
-
ref:
|
|
1792
|
-
onClose:
|
|
1793
|
-
}),
|
|
1794
|
-
content: D(() => [(x(), p(E(
|
|
1795
|
-
key: `table_${
|
|
1796
|
-
colNames:
|
|
1797
|
-
head:
|
|
1798
|
-
body:
|
|
1799
|
-
config:
|
|
1800
|
-
title: P.value.table.useDialog ? "" :
|
|
1815
|
+
ref: Qt,
|
|
1816
|
+
onClose: Sr
|
|
1817
|
+
}), Me({
|
|
1818
|
+
content: D(() => [(x(), p(E(Ot), {
|
|
1819
|
+
key: `table_${Jt.value}`,
|
|
1820
|
+
colNames: fr.value.colNames,
|
|
1821
|
+
head: fr.value.head,
|
|
1822
|
+
body: fr.value.body,
|
|
1823
|
+
config: fr.value.config,
|
|
1824
|
+
title: P.value.table.useDialog ? "" : xr.value.title,
|
|
1801
1825
|
withCloseButton: !P.value.table.useDialog,
|
|
1802
|
-
isCursorPointer:
|
|
1803
|
-
onClose:
|
|
1826
|
+
isCursorPointer: cn.value,
|
|
1827
|
+
onClose: Sr
|
|
1804
1828
|
}, {
|
|
1805
|
-
th: D(({ th: e }) => [
|
|
1806
|
-
td: D(({ td: e }) => [g("div", { innerHTML: e }, null, 8,
|
|
1829
|
+
th: D(({ th: e }) => [Ne(T(e), 1)]),
|
|
1830
|
+
td: D(({ td: e }) => [g("div", { innerHTML: e }, null, 8, wt)]),
|
|
1807
1831
|
_: 1
|
|
1808
1832
|
}, 8, [
|
|
1809
1833
|
"colNames",
|
|
@@ -1817,24 +1841,24 @@ var Ue = /* @__PURE__ */ e({ default: () => Ct }), We = ["id"], Ge = ["id"], Ke
|
|
|
1817
1841
|
_: 2
|
|
1818
1842
|
}, [P.value.table.useDialog ? {
|
|
1819
1843
|
name: "title",
|
|
1820
|
-
fn: D(() => [
|
|
1844
|
+
fn: D(() => [Ne(T(xr.value.title), 1)]),
|
|
1821
1845
|
key: "0"
|
|
1822
1846
|
} : void 0, P.value.table.useDialog ? {
|
|
1823
1847
|
name: "actions",
|
|
1824
1848
|
fn: D(() => [g("button", {
|
|
1825
1849
|
tabindex: "0",
|
|
1826
1850
|
class: "vue-ui-user-options-button",
|
|
1827
|
-
onClick: t[2] ||= (e) =>
|
|
1828
|
-
style:
|
|
1829
|
-
}, [
|
|
1851
|
+
onClick: t[2] ||= (e) => dr(P.value.userOptions.callbacks.csv),
|
|
1852
|
+
style: Le({ cursor: cn.value ? "pointer" : "default" })
|
|
1853
|
+
}, [Pe(E(Tt), {
|
|
1830
1854
|
name: "fileCsv",
|
|
1831
|
-
stroke:
|
|
1855
|
+
stroke: xr.value.props.color
|
|
1832
1856
|
}, null, 8, ["stroke"])], 4)]),
|
|
1833
1857
|
key: "1"
|
|
1834
1858
|
} : void 0]), 1040)) : m("", !0),
|
|
1835
|
-
w(e.$slots, "skeleton", {}, () => [E(F) ? (x(), p(
|
|
1836
|
-
], 46,
|
|
1859
|
+
w(e.$slots, "skeleton", {}, () => [E(F) ? (x(), p(he, { key: 0 })) : m("", !0)], !0)
|
|
1860
|
+
], 46, Ke));
|
|
1837
1861
|
}
|
|
1838
|
-
}, [["__scopeId", "data-v-
|
|
1862
|
+
}, [["__scopeId", "data-v-43e57b60"]]);
|
|
1839
1863
|
//#endregion
|
|
1840
|
-
export {
|
|
1864
|
+
export { Ge as n, Tt as t };
|