vue-data-ui 2.4.41 → 2.4.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +34 -34
- package/dist/{Arrow-6z0ZQva_.js → Arrow-BB6bdwAh.js} +1 -1
- package/dist/{Arrow-Cht76m69.cjs → Arrow-DGDnIooM.cjs} +1 -1
- package/dist/{BaseIcon-DCE3wRiG.js → BaseIcon-Cg6tqk_d.js} +1 -1
- package/dist/{BaseIcon-D-JUZiGA.cjs → BaseIcon-Cj2lO-KJ.cjs} +1 -1
- package/dist/{DataTable-Cr3Xkxe4.cjs → DataTable-DnaY4y8p.cjs} +1 -1
- package/dist/{DataTable-B5DiCrf_.js → DataTable-YQ5lDRtX.js} +2 -2
- package/dist/{Legend-DzxQIjDO.js → Legend-3DteuHjj.js} +1 -1
- package/dist/{Legend-BXG_XPom.cjs → Legend-BPogA3ac.cjs} +1 -1
- package/dist/{PackageVersion-CMtZxTqq.cjs → PackageVersion-CQ9hp4g5.cjs} +1 -1
- package/dist/{PackageVersion-S7OD_s5u.js → PackageVersion-CS8EAteX.js} +1 -1
- package/dist/{PenAndPaper-DWYhyZye.cjs → PenAndPaper-B1DxKWdn.cjs} +1 -1
- package/dist/{PenAndPaper-BxJZd7k9.js → PenAndPaper-D22t_fD9.js} +3 -3
- package/dist/{Shape-C3ywBhkW.js → Shape-7VxscoGH.js} +1 -1
- package/dist/{Shape-CvL90fNe.cjs → Shape-BIoU-M2b.cjs} +1 -1
- package/dist/Slicer-BcXvtaNe.js +423 -0
- package/dist/Slicer-C_1pd_Kh.cjs +1 -0
- package/dist/{Title-BB0O0yol.js → Title-DQcop8gI.js} +1 -1
- package/dist/{Title-D9gPXVTT.cjs → Title-DoxrpVfD.cjs} +1 -1
- package/dist/{Tooltip-GvLaModr.js → Tooltip-Dx07vASW.js} +33 -25
- package/dist/Tooltip-t5_yWU6c.cjs +1 -0
- package/dist/documentation/installation.md +34 -34
- package/dist/index-Ce0TFqvS.cjs +9 -0
- package/dist/{index-B6Q1Fyk0.js → index-CvhiHStv.js} +48 -42
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +6 -0
- package/dist/types/vue-data-ui.d.ts +6 -0
- package/dist/{useNestedProp-DQpuJSz3.js → useNestedProp-Ccre6tXM.js} +1 -1
- package/dist/{useNestedProp-bZitLnbb.cjs → useNestedProp-Dv81zO0o.cjs} +1 -1
- package/dist/{usePrinter-D8dIU7aG.js → usePrinter-BVA2_kNp.js} +1 -1
- package/dist/{usePrinter-DtpFEgOX.cjs → usePrinter-Dq9TRqqU.cjs} +1 -1
- package/dist/{vue-data-ui-H24TWcBx.js → vue-data-ui-CXGGUSE5.js} +60 -60
- package/dist/{vue-data-ui-DBN7iJHU.cjs → vue-data-ui-DBaa-Zm-.cjs} +1 -1
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +3 -3
- package/dist/{vue-ui-3d-bar-BaNI_M3v.cjs → vue-ui-3d-bar-B0eWYShT.cjs} +1 -1
- package/dist/{vue-ui-3d-bar-BA2CQYGW.js → vue-ui-3d-bar-Bvyn0JAH.js} +9 -9
- package/dist/{vue-ui-accordion-u4xDSvRn.cjs → vue-ui-accordion-2oBs8M8G.cjs} +1 -1
- package/dist/{vue-ui-accordion-BOHicozd.js → vue-ui-accordion-CzsbGsxC.js} +3 -3
- package/dist/{vue-ui-age-pyramid-DN25tjv-.cjs → vue-ui-age-pyramid-8dnWY_2V.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-vKWko9vn.js → vue-ui-age-pyramid-gy4b8534.js} +42 -41
- package/dist/{vue-ui-annotator-D4KNucw5.js → vue-ui-annotator-BOxVmY-t.js} +1 -1
- package/dist/{vue-ui-annotator-BcxUQ5tM.cjs → vue-ui-annotator-D4AFe-ds.cjs} +1 -1
- package/dist/{vue-ui-bullet-DZgtd_qb.js → vue-ui-bullet-CYRzrrdq.js} +15 -15
- package/dist/{vue-ui-bullet-C3DKTZbg.cjs → vue-ui-bullet-DS61aLmi.cjs} +1 -1
- package/dist/vue-ui-candlestick-CnMW4VI7.cjs +2 -0
- package/dist/vue-ui-candlestick-z1XCCmjs.js +740 -0
- package/dist/{vue-ui-carousel-table-Bpsrlbx9.js → vue-ui-carousel-table-Dusdq9C-.js} +4 -4
- package/dist/{vue-ui-carousel-table-C62szGjt.cjs → vue-ui-carousel-table-STfjKv04.cjs} +1 -1
- package/dist/{vue-ui-chestnut-VWwSZnUX.cjs → vue-ui-chestnut-CiOs7_Mn.cjs} +1 -1
- package/dist/{vue-ui-chestnut-DhPSNM96.js → vue-ui-chestnut-xOUxz__4.js} +8 -8
- package/dist/{vue-ui-cursor-BM2OiZnZ.js → vue-ui-cursor-BAZcn7gS.js} +2 -2
- package/dist/{vue-ui-cursor-BwnZYB4D.cjs → vue-ui-cursor-CgulNaZF.cjs} +1 -1
- package/dist/{vue-ui-dashboard-D8FU1GbE.cjs → vue-ui-dashboard-B-e6E048.cjs} +1 -1
- package/dist/{vue-ui-dashboard-BcnW7vDs.js → vue-ui-dashboard-CM5h0sJK.js} +2 -2
- package/dist/{vue-ui-digits-BmQBwho3.cjs → vue-ui-digits-DE-VUfnq.cjs} +1 -1
- package/dist/{vue-ui-digits-M4Pvrg0n.js → vue-ui-digits-DFYtiFpE.js} +2 -2
- package/dist/{vue-ui-donut-BgsQjURe.js → vue-ui-donut-B7WCvZ9X.js} +99 -98
- package/dist/{vue-ui-donut-CZZfvbPk.cjs → vue-ui-donut-Dh1MEQSX.cjs} +1 -1
- package/dist/vue-ui-donut-evolution-E8YRIlka.cjs +1 -0
- package/dist/vue-ui-donut-evolution-tseD-zkG.js +908 -0
- package/dist/{vue-ui-dumbbell-zv7yiPPM.js → vue-ui-dumbbell-CB-nTGSr.js} +10 -10
- package/dist/{vue-ui-dumbbell-CsMqgiGr.cjs → vue-ui-dumbbell-DoajPALb.cjs} +1 -1
- package/dist/{vue-ui-flow-E5MkZ3Yb.cjs → vue-ui-flow-DZo1e2BI.cjs} +1 -1
- package/dist/{vue-ui-flow-BqtIWBkz.js → vue-ui-flow-DgM7D7Kz.js} +46 -46
- package/dist/{vue-ui-funnel-CmVLAttG.js → vue-ui-funnel-Bae7zmv7.js} +19 -19
- package/dist/{vue-ui-funnel-QU0_JscL.cjs → vue-ui-funnel-FwQya4Js.cjs} +1 -1
- package/dist/{vue-ui-galaxy-BPDH-9KW.cjs → vue-ui-galaxy-BmQPNy0t.cjs} +1 -1
- package/dist/{vue-ui-galaxy-sy8zvgcg.js → vue-ui-galaxy-C1hMuu_6.js} +53 -52
- package/dist/{vue-ui-gauge-D_yokJMS.cjs → vue-ui-gauge-4Gy_NFvq.cjs} +1 -1
- package/dist/{vue-ui-gauge--hARSvgz.js → vue-ui-gauge-CvUdCkBJ.js} +7 -7
- package/dist/{vue-ui-gizmo-CvTeq5j0.js → vue-ui-gizmo-B6t4exHM.js} +3 -3
- package/dist/{vue-ui-gizmo-AUJq3EQL.cjs → vue-ui-gizmo-F0ACp4Ym.cjs} +1 -1
- package/dist/{vue-ui-heatmap-lI8oO-nh.js → vue-ui-heatmap-CNptUmPc.js} +60 -59
- package/dist/{vue-ui-heatmap-D-xNLuqW.cjs → vue-ui-heatmap-DeLrr3m8.cjs} +1 -1
- package/dist/{vue-ui-history-plot-D3CwJpll.js → vue-ui-history-plot-DnVFjg0P.js} +60 -59
- package/dist/{vue-ui-history-plot-BC0Rvo-r.cjs → vue-ui-history-plot-iK6KKQTl.cjs} +1 -1
- package/dist/{vue-ui-kpi-C0agq-Os.js → vue-ui-kpi-BIb8GWpr.js} +3 -3
- package/dist/{vue-ui-kpi-B4FQKZ_r.cjs → vue-ui-kpi-BOLWEQ7j.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-BJ70GAEv.cjs → vue-ui-mini-loader-dzvCTPe_.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-CkjJ5pRO.js → vue-ui-mini-loader-vn8l58Co.js} +2 -2
- package/dist/{vue-ui-molecule-V9UFJHeV.js → vue-ui-molecule-BXVfvrYp.js} +26 -25
- package/dist/{vue-ui-molecule-CsQfkIEE.cjs → vue-ui-molecule-CztdOxnV.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-CdU2vusL.cjs → vue-ui-mood-radar-COiSqYpY.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-Cj_wOEbY.js → vue-ui-mood-radar-FyUqJ_WI.js} +11 -11
- package/dist/{vue-ui-nested-donuts-DFVQwbHg.js → vue-ui-nested-donuts-C3mVKHnx.js} +78 -77
- package/dist/{vue-ui-nested-donuts-DevV-xZr.cjs → vue-ui-nested-donuts-CyzGIcRn.cjs} +2 -2
- package/dist/{vue-ui-onion-BJ-PjA7d.js → vue-ui-onion-C3uZpdTX.js} +49 -48
- package/dist/{vue-ui-onion-DGWktnME.cjs → vue-ui-onion-PCbFeTBq.cjs} +2 -2
- package/dist/{vue-ui-parallel-coordinate-plot-CjxZbVNa.cjs → vue-ui-parallel-coordinate-plot-BbyG3T_L.cjs} +3 -3
- package/dist/{vue-ui-parallel-coordinate-plot-33naX1Ss.js → vue-ui-parallel-coordinate-plot-_nN05_KZ.js} +70 -69
- package/dist/{vue-ui-quadrant-xJaZzXgo.js → vue-ui-quadrant-CqcqhOTk.js} +55 -54
- package/dist/{vue-ui-quadrant-DqZqBb2L.cjs → vue-ui-quadrant-D48AnGwm.cjs} +1 -1
- package/dist/vue-ui-quick-chart-CUG-kf3L.cjs +15 -0
- package/dist/{vue-ui-quick-chart-BwN9eLye.js → vue-ui-quick-chart-CvhtEA16.js} +637 -622
- package/dist/{vue-ui-radar-CQ66YUG5.cjs → vue-ui-radar-CKq_4-3B.cjs} +1 -1
- package/dist/{vue-ui-radar-B4EXwJDY.js → vue-ui-radar-o4cmO82a.js} +38 -37
- package/dist/{vue-ui-rating-DNkygw1i.js → vue-ui-rating-CuBodH3C.js} +2 -2
- package/dist/{vue-ui-rating-D334I4ju.cjs → vue-ui-rating-DG1svxO9.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-CP2Z6IWV.cjs → vue-ui-relation-circle-AXwyCjxM.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-BKeSh28h.js → vue-ui-relation-circle-C--j7Q0q.js} +19 -19
- package/dist/{vue-ui-rings-D6M3UNSE.js → vue-ui-rings-DpVKPZCb.js} +49 -48
- package/dist/vue-ui-rings-fAvuiSZU.cjs +2 -0
- package/dist/{vue-ui-scatter-C9ZoWV1q.cjs → vue-ui-scatter-CHY2sxci.cjs} +1 -1
- package/dist/{vue-ui-scatter-JUPbbsO7.js → vue-ui-scatter-D_KsmIg_.js} +26 -25
- package/dist/{vue-ui-screenshot-JMBX_AWn.cjs → vue-ui-screenshot-Baj16IKL.cjs} +1 -1
- package/dist/{vue-ui-screenshot-DmLDHfF9.js → vue-ui-screenshot-C21qDF26.js} +1 -1
- package/dist/{vue-ui-skeleton-E9_X0-sa.cjs → vue-ui-skeleton-BdbO4Bxt.cjs} +1 -1
- package/dist/{vue-ui-skeleton-D7rg5vFC.js → vue-ui-skeleton-p82n8dLi.js} +3 -3
- package/dist/{vue-ui-smiley-BAlHZm8H.js → vue-ui-smiley-DDBn_kg-.js} +2 -2
- package/dist/{vue-ui-smiley-aRTznf8z.cjs → vue-ui-smiley-DGdo7pOJ.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-J9swikF_.js → vue-ui-spark-trend-CM-XDvvj.js} +5 -5
- package/dist/{vue-ui-spark-trend-DZR6Fqu5.cjs → vue-ui-spark-trend-CyiYuOb3.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-B0tCpwZ9.js → vue-ui-sparkbar-BRWlzT5P.js} +4 -4
- package/dist/{vue-ui-sparkbar-Bjmi8pMf.cjs → vue-ui-sparkbar-Bi952P46.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-DVX2pIC3.js → vue-ui-sparkgauge-BPcFMY0I.js} +4 -4
- package/dist/{vue-ui-sparkgauge-Dhzbkn67.cjs → vue-ui-sparkgauge-bhzDdT-A.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-gIaXDrFh.cjs → vue-ui-sparkhistogram-BdiA32Fs.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-Wd6q0mqj.js → vue-ui-sparkhistogram-DAtbloqL.js} +5 -5
- package/dist/{vue-ui-sparkline-B5ySeM9y.cjs → vue-ui-sparkline-BXa0bOgm.cjs} +1 -1
- package/dist/{vue-ui-sparkline-DYT-gts9.js → vue-ui-sparkline-CbnPVyxs.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-ilvB3RBv.cjs → vue-ui-sparkstackbar-BDupdTEm.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-BMGA05VR.js → vue-ui-sparkstackbar-BdjWWadM.js} +5 -5
- package/dist/vue-ui-stackbar-CUXctt_2.js +1026 -0
- package/dist/vue-ui-stackbar-DvIG4zyP.cjs +6 -0
- package/dist/{vue-ui-strip-plot-DPo7osh_.cjs → vue-ui-strip-plot-C5r83jmv.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-B-r4luYX.js → vue-ui-strip-plot-lb-y68Hd.js} +71 -70
- package/dist/{vue-ui-table-wlXHwJVW.js → vue-ui-table-DFfsqpZU.js} +1 -1
- package/dist/{vue-ui-table-C6z56ODT.cjs → vue-ui-table-DgCMMvSx.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-CM-c7n0F.js → vue-ui-table-heatmap-BiSTfmrM.js} +9 -9
- package/dist/{vue-ui-table-heatmap-B05GifSw.cjs → vue-ui-table-heatmap-jp5xDCCO.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-Dx-ePVqW.cjs → vue-ui-table-sparkline-8itAuNdX.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-DHaEHFG_.js → vue-ui-table-sparkline-B7sNio6G.js} +5 -5
- package/dist/{vue-ui-thermometer-HCpOZBHv.cjs → vue-ui-thermometer-CsY6PZxF.cjs} +1 -1
- package/dist/{vue-ui-thermometer-BU_ckSdu.js → vue-ui-thermometer-Cvoq-NoB.js} +7 -7
- package/dist/{vue-ui-timer-CUChwyzF.cjs → vue-ui-timer-BBYru0Q7.cjs} +1 -1
- package/dist/{vue-ui-timer-DiRZ849L.js → vue-ui-timer-CKkmEEyh.js} +9 -9
- package/dist/{vue-ui-tiremarks-yoQtfbj7.cjs → vue-ui-tiremarks-CJyRAXGr.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-BHMNb_tq.js → vue-ui-tiremarks-CVDQcr2f.js} +7 -7
- package/dist/{vue-ui-treemap-BInwLSes.cjs → vue-ui-treemap-BKA7MrUz.cjs} +1 -1
- package/dist/{vue-ui-treemap-BpD6OdL3.js → vue-ui-treemap-BLDOoQdk.js} +98 -97
- package/dist/{vue-ui-vertical-bar-hS4gzdKs.cjs → vue-ui-vertical-bar-BNZ-jiBi.cjs} +2 -2
- package/dist/{vue-ui-vertical-bar-CBNWMmCg.js → vue-ui-vertical-bar-DgluCuy7.js} +58 -57
- package/dist/{vue-ui-waffle-Cmq6zhD8.cjs → vue-ui-waffle-COGvHmU8.cjs} +1 -1
- package/dist/{vue-ui-waffle-BE8iTrGF.js → vue-ui-waffle-DOZ8DM_y.js} +79 -78
- package/dist/{vue-ui-wheel-BXSIBRLM.js → vue-ui-wheel-BiHGxIWR.js} +7 -7
- package/dist/{vue-ui-wheel-BT0mLxln.cjs → vue-ui-wheel-DrhwR-Z-.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-3wvSYRbp.js → vue-ui-word-cloud-CEfsjt8Y.js} +10 -10
- package/dist/{vue-ui-word-cloud-BXHlm41O.cjs → vue-ui-word-cloud-ClzpBDxZ.cjs} +1 -1
- package/dist/{vue-ui-xy-D8XvOgW6.js → vue-ui-xy-BU03SArU.js} +888 -837
- package/dist/vue-ui-xy-CO99Ia72.cjs +3 -0
- package/dist/{vue-ui-xy-canvas-Cx7vPyfT.js → vue-ui-xy-canvas-D6xrOdYB.js} +378 -365
- package/dist/vue-ui-xy-canvas-lOb9PCZm.cjs +9 -0
- package/package.json +1 -1
- package/dist/Slicer-B2aHb4bj.cjs +0 -1
- package/dist/Slicer-D9ASV60L.js +0 -400
- package/dist/Tooltip-ypQtmi99.cjs +0 -1
- package/dist/index-B5Ugkauv.cjs +0 -9
- package/dist/vue-ui-candlestick-C8yBMu8-.js +0 -725
- package/dist/vue-ui-candlestick-DVEofXBZ.cjs +0 -2
- package/dist/vue-ui-donut-evolution-BO2-ARBX.js +0 -895
- package/dist/vue-ui-donut-evolution-DP14ctdf.cjs +0 -1
- package/dist/vue-ui-quick-chart-BzpXJYR_.cjs +0 -15
- package/dist/vue-ui-rings-2oDSTctd.cjs +0 -2
- package/dist/vue-ui-stackbar-BZKwsAjO.cjs +0 -6
- package/dist/vue-ui-stackbar-BZbOagnf.js +0 -947
- package/dist/vue-ui-xy-CfduqTWA.cjs +0 -3
- package/dist/vue-ui-xy-canvas-BTR-cL02.cjs +0 -9
|
@@ -0,0 +1,740 @@
|
|
|
1
|
+
import { computed as f, ref as n, watch as $e, onMounted as je, onBeforeUnmount as He, nextTick as V, openBlock as s, createElementBlock as u, normalizeClass as Ce, normalizeStyle as _e, createBlock as _, createCommentVNode as v, unref as g, createSlots as Ye, withCtx as m, renderSlot as p, normalizeProps as T, guardReactiveProps as I, createVNode as ze, createElementVNode as r, Fragment as F, renderList as L, toDisplayString as O, createTextVNode as qe } from "vue";
|
|
2
|
+
import { u as Je, c as Ke, t as Qe, C as Se, o as Ze, e as z, D as et, v as B, X as tt, w as j, E as lt, s as ot, x as at, y as st, q as ut, r as it, F as Ne } from "./index-CvhiHStv.js";
|
|
3
|
+
import { t as nt, u as rt } from "./useResponsive-CoxXLe23.js";
|
|
4
|
+
import { _ as dt } from "./Title-DQcop8gI.js";
|
|
5
|
+
import { u as vt, U as yt } from "./usePrinter-BVA2_kNp.js";
|
|
6
|
+
import { _ as ct } from "./Tooltip-Dx07vASW.js";
|
|
7
|
+
import { D as ht } from "./DataTable-YQ5lDRtX.js";
|
|
8
|
+
import ft from "./vue-ui-skeleton-p82n8dLi.js";
|
|
9
|
+
import { S as pt } from "./Slicer-BcXvtaNe.js";
|
|
10
|
+
import gt from "./vue-ui-accordion-CzsbGsxC.js";
|
|
11
|
+
import { u as Ae } from "./useNestedProp-Ccre6tXM.js";
|
|
12
|
+
import { _ as mt } from "./PackageVersion-CS8EAteX.js";
|
|
13
|
+
import { P as xt } from "./PenAndPaper-D22t_fD9.js";
|
|
14
|
+
import { _ as bt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
|
+
const kt = ["id"], wt = ["xmlns", "viewBox"], $t = { key: 0 }, Ct = ["id"], _t = ["stop-color"], zt = ["stop-color"], St = ["stop-color"], Nt = ["id"], At = ["stop-color"], Tt = ["stop-color"], It = ["stop-color"], Ft = { key: 0 }, Lt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Rt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Pt = { key: 1 }, Vt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ot = ["x", "y", "font-size", "fill", "font-weight"], Bt = { key: 2 }, Et = ["transform", "text-anchor", "font-size", "fill", "font-weight"], Mt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ut = { key: 0 }, Dt = ["cx", "cy", "r", "fill"], Wt = ["cx", "cy", "r", "fill"], Gt = { key: 1 }, Xt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], jt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ht = ["x", "y", "height", "width", "fill", "rx"], Yt = ["x", "y", "height", "width", "fill", "rx", "stroke", "stroke-width"], qt = ["x", "y", "height", "width", "fill", "onMouseover"], Jt = {
|
|
16
|
+
key: 5,
|
|
17
|
+
class: "vue-data-ui-watermark"
|
|
18
|
+
}, Kt = ["innerHTML"], Qt = {
|
|
19
|
+
__name: "vue-ui-candlestick",
|
|
20
|
+
props: {
|
|
21
|
+
config: {
|
|
22
|
+
type: Object,
|
|
23
|
+
default() {
|
|
24
|
+
return {};
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
dataset: {
|
|
28
|
+
type: Array,
|
|
29
|
+
default() {
|
|
30
|
+
return [];
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
setup($, { expose: Te }) {
|
|
35
|
+
const c = $, { vue_ui_candlestick: Ie } = Je(), R = f(() => !!c.dataset && c.dataset.length), k = n(Ke()), Fe = n(null), H = n(!1), Y = n(""), q = n(void 0), Z = n(0), S = n(null), ee = n(null), te = n(null), le = n(null), oe = n(null), ae = n(null), E = n(0), se = n(0), ue = n(0), e = f({
|
|
36
|
+
get: () => ie(),
|
|
37
|
+
set: (t) => t
|
|
38
|
+
});
|
|
39
|
+
function ie() {
|
|
40
|
+
const t = Ae({
|
|
41
|
+
userConfig: c.config,
|
|
42
|
+
defaultConfig: Ie
|
|
43
|
+
});
|
|
44
|
+
let o = {};
|
|
45
|
+
return t.theme ? o = {
|
|
46
|
+
...Ae({
|
|
47
|
+
userConfig: Qe.vue_ui_candlestick[t.theme] || c.config,
|
|
48
|
+
defaultConfig: t
|
|
49
|
+
})
|
|
50
|
+
} : o = t, c.config && Se(c.config, "style.zoom.startIndex") ? o.style.zoom.startIndex = c.config.style.zoom.startIndex : o.style.zoom.startIndex = null, c.config && Se(c.config, "style.zoom.endIndex") ? o.style.zoom.endIndex = c.config.style.zoom.endIndex : o.style.zoom.endIndex = null, o;
|
|
51
|
+
}
|
|
52
|
+
$e(() => c.config, (t) => {
|
|
53
|
+
e.value = ie(), ne(), E.value += 1, ue.value += 1, se.value += 1;
|
|
54
|
+
}, { deep: !0 }), $e(() => c.dataset, (t) => {
|
|
55
|
+
h.value.start = 0, h.value.end = t.length, E.value += 1;
|
|
56
|
+
}, { deep: !0 });
|
|
57
|
+
const y = n({
|
|
58
|
+
height: e.value.style.height,
|
|
59
|
+
width: e.value.style.width,
|
|
60
|
+
xAxisFontSize: e.value.style.layout.grid.xAxis.dataLabels.fontSize,
|
|
61
|
+
yAxisFontSize: e.value.style.layout.grid.yAxis.dataLabels.fontSize
|
|
62
|
+
}), M = n(null);
|
|
63
|
+
je(() => {
|
|
64
|
+
ne();
|
|
65
|
+
});
|
|
66
|
+
function ne() {
|
|
67
|
+
if (Ze(c.dataset) && z({
|
|
68
|
+
componentName: "VueUiCandlestick",
|
|
69
|
+
type: "dataset"
|
|
70
|
+
}), e.value.responsive) {
|
|
71
|
+
const t = nt(() => {
|
|
72
|
+
const { width: o, height: l } = rt({
|
|
73
|
+
chart: S.value,
|
|
74
|
+
title: e.value.style.title.text ? ee.value : null,
|
|
75
|
+
slicer: le.value,
|
|
76
|
+
legend: te.value,
|
|
77
|
+
source: oe.value,
|
|
78
|
+
noTitle: ae.value
|
|
79
|
+
});
|
|
80
|
+
y.value.width = o, y.value.height = l, y.value.xAxisFontSize = Ne({
|
|
81
|
+
relator: Math.min(o, l),
|
|
82
|
+
adjuster: e.value.style.width,
|
|
83
|
+
source: e.value.style.layout.grid.xAxis.dataLabels.fontSize,
|
|
84
|
+
threshold: 6,
|
|
85
|
+
fallback: 6
|
|
86
|
+
}), y.value.yAxisFontSize = Ne({
|
|
87
|
+
relator: Math.min(o, l),
|
|
88
|
+
adjuster: e.value.style.width,
|
|
89
|
+
source: e.value.style.layout.grid.yAxis.dataLabels.fontSize,
|
|
90
|
+
threshold: 6,
|
|
91
|
+
fallback: 6
|
|
92
|
+
});
|
|
93
|
+
});
|
|
94
|
+
M.value = new ResizeObserver(t), M.value.observe(S.value.parentNode);
|
|
95
|
+
}
|
|
96
|
+
fe();
|
|
97
|
+
}
|
|
98
|
+
He(() => {
|
|
99
|
+
M.value && M.value.disconnect();
|
|
100
|
+
});
|
|
101
|
+
const { isPrinting: re, isImaging: de, generatePdf: ve, generateImage: ye } = vt({
|
|
102
|
+
elementId: `vue-ui-candlestick_${k.value}`,
|
|
103
|
+
fileName: e.value.style.title.text || "vue-ui-candlestick"
|
|
104
|
+
}), Le = f(() => e.value.userOptions.show && !e.value.style.title.text), w = n({
|
|
105
|
+
showTable: e.value.table.show,
|
|
106
|
+
showTooltip: e.value.style.tooltip.show
|
|
107
|
+
}), i = f(() => {
|
|
108
|
+
const { top: t, right: o, bottom: l, left: a } = e.value.style.layout.padding;
|
|
109
|
+
return {
|
|
110
|
+
top: t,
|
|
111
|
+
right: y.value.width - o,
|
|
112
|
+
left: a,
|
|
113
|
+
bottom: y.value.height - l,
|
|
114
|
+
width: y.value.width - a - o,
|
|
115
|
+
height: y.value.height - t - l
|
|
116
|
+
};
|
|
117
|
+
}), P = f(() => c.dataset.length), h = n({
|
|
118
|
+
start: 0,
|
|
119
|
+
end: P.value
|
|
120
|
+
}), ce = f(() => c.dataset.slice(h.value.start, h.value.end)), J = f(() => (c.dataset.forEach((t, o) => {
|
|
121
|
+
[null, void 0].includes(t[0]) && z({
|
|
122
|
+
componentName: "VueUiCandlestick",
|
|
123
|
+
type: "datasetAttribute",
|
|
124
|
+
property: "period (index 0)",
|
|
125
|
+
index: o
|
|
126
|
+
}), [null, void 0].includes(t[1]) && z({
|
|
127
|
+
componentName: "VueUiCandlestick",
|
|
128
|
+
type: "datasetAttribute",
|
|
129
|
+
property: "open (index 1)",
|
|
130
|
+
index: o
|
|
131
|
+
}), [null, void 0].includes(t[2]) && z({
|
|
132
|
+
componentName: "VueUiCandlestick",
|
|
133
|
+
type: "datasetAttribute",
|
|
134
|
+
property: "high (index 2)",
|
|
135
|
+
index: o
|
|
136
|
+
}), [null, void 0].includes(t[3]) && z({
|
|
137
|
+
componentName: "VueUiCandlestick",
|
|
138
|
+
type: "datasetAttribute",
|
|
139
|
+
property: "low (index 3)",
|
|
140
|
+
index: o
|
|
141
|
+
}), [null, void 0].includes(t[4]) && z({
|
|
142
|
+
componentName: "VueUiCandlestick",
|
|
143
|
+
type: "datasetAttribute",
|
|
144
|
+
property: "last (index 4)",
|
|
145
|
+
index: o
|
|
146
|
+
}), [null, void 0].includes(t[5]) && z({
|
|
147
|
+
componentName: "VueUiCandlestick",
|
|
148
|
+
type: "datasetAttribute",
|
|
149
|
+
property: "volume (index 5)",
|
|
150
|
+
index: o
|
|
151
|
+
});
|
|
152
|
+
}), ce.value.map((t) => ({
|
|
153
|
+
period: t[0],
|
|
154
|
+
open: t[1],
|
|
155
|
+
high: t[2],
|
|
156
|
+
low: t[3],
|
|
157
|
+
last: t[4],
|
|
158
|
+
volume: t[5]
|
|
159
|
+
})))), d = f(() => i.value.width / ce.value.length), he = f(() => ({
|
|
160
|
+
max: Math.max(...J.value.map((t) => t.high)),
|
|
161
|
+
min: 0
|
|
162
|
+
})), C = f(() => et(he.value.min, he.value.max, e.value.style.layout.grid.yAxis.dataLabels.steps));
|
|
163
|
+
function U(t, o) {
|
|
164
|
+
return {
|
|
165
|
+
...t,
|
|
166
|
+
x: B(i.value.left + o * d.value + d.value / 2),
|
|
167
|
+
y: B(i.value.top + (1 - t / C.value.max) * i.value.height),
|
|
168
|
+
value: B(t)
|
|
169
|
+
};
|
|
170
|
+
}
|
|
171
|
+
const x = f(() => J.value.map((t, o) => {
|
|
172
|
+
const l = U(t.open, o), a = U(t.high, o), b = U(t.low, o), G = U(t.last, o), X = t.last > t.open;
|
|
173
|
+
return {
|
|
174
|
+
period: t.period,
|
|
175
|
+
open: l,
|
|
176
|
+
high: a,
|
|
177
|
+
low: b,
|
|
178
|
+
last: G,
|
|
179
|
+
volume: t.volume,
|
|
180
|
+
isBullish: X
|
|
181
|
+
};
|
|
182
|
+
}));
|
|
183
|
+
function Re(t) {
|
|
184
|
+
return B(t / C.value.max);
|
|
185
|
+
}
|
|
186
|
+
const Pe = f(() => C.value.ticks.map((t) => ({
|
|
187
|
+
y: i.value.bottom - i.value.height * Re(t),
|
|
188
|
+
value: B(t)
|
|
189
|
+
}))), Ve = f(() => J.value.map((t) => t.period)), K = n(null);
|
|
190
|
+
function Oe(t, o) {
|
|
191
|
+
q.value = t, K.value = {
|
|
192
|
+
datapoint: o,
|
|
193
|
+
seriesIndex: t,
|
|
194
|
+
series: x.value,
|
|
195
|
+
config: e.value
|
|
196
|
+
};
|
|
197
|
+
const l = e.value.style.tooltip.customFormat;
|
|
198
|
+
if (at(l) && st(() => l({
|
|
199
|
+
seriesIndex: t,
|
|
200
|
+
datapoint: o,
|
|
201
|
+
series: x.value,
|
|
202
|
+
config: e.value
|
|
203
|
+
})))
|
|
204
|
+
Y.value = l({
|
|
205
|
+
seriesIndex: t,
|
|
206
|
+
datapoint: o,
|
|
207
|
+
series: x.value,
|
|
208
|
+
config: e.value
|
|
209
|
+
});
|
|
210
|
+
else if (e.value.style.tooltip.show) {
|
|
211
|
+
let a = "";
|
|
212
|
+
const { period: b, open: G, high: X, low: xe, last: be, volume: ke, isBullish: we } = x.value[t], { period: Zt, open: Ue, high: De, low: We, last: Ge, volume: Xe } = e.value.translations;
|
|
213
|
+
a += `<div><svg style="margin-right:6px" viewBox="0 0 12 12" height="12" width="12"><rect x="0" y="0" height="12" width="12" rx="${e.value.style.layout.candle.borderRadius * 3}" stroke="${e.value.style.layout.candle.stroke}" stroke-width="${e.value.style.layout.candle.strokeWidth}"
|
|
214
|
+
fill="${e.value.style.layout.candle.gradient.show ? we ? `url(#bullish_gradient_${k.value})` : `url(#bearish_gradient_${k.value})` : we ? e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.colors.bearish}"/></svg>${b}</div>`, a += `${Xe} : <b>${isNaN(ke) ? "-" : Number(ke.toFixed(e.value.style.tooltip.roundingValue)).toLocaleString()}</b>`, a += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${e.value.style.tooltip.borderColor}">`, a += `<div>${Ue}: <b>${e.value.style.tooltip.prefix} ${isNaN(G.value) ? "-" : Number(G.value.toFixed(e.value.style.tooltip.roundingValue)).toLocaleString()} ${e.value.style.tooltip.suffix}</b></div>`, a += `<div>${De}: <b>${e.value.style.tooltip.prefix} ${isNaN(X.value) ? "-" : Number(X.value.toFixed(e.value.style.tooltip.roundingValue)).toLocaleString()} ${e.value.style.tooltip.suffix}</b></div>`, a += `<div>${We}: <b>${e.value.style.tooltip.prefix} ${isNaN(xe.value) ? "-" : Number(xe.value.toFixed(e.value.style.tooltip.roundingValue)).toLocaleString()} ${e.value.style.tooltip.suffix}</b></div>`, a += `<div>${Ge}: <b>${e.value.style.tooltip.prefix} ${isNaN(be.value) ? "-" : Number(be.value.toFixed(e.value.style.tooltip.roundingValue)).toLocaleString()} ${e.value.style.tooltip.suffix}</b></div>`, a += "</div>", Y.value = `<div style="text-align:right">${a}</div>`;
|
|
215
|
+
}
|
|
216
|
+
H.value = !0;
|
|
217
|
+
}
|
|
218
|
+
function Be() {
|
|
219
|
+
fe();
|
|
220
|
+
}
|
|
221
|
+
const N = n(null);
|
|
222
|
+
async function fe() {
|
|
223
|
+
(e.value.style.zoom.startIndex !== null || e.value.style.zoom.endIndex !== null) && N.value ? (e.value.style.zoom.startIndex !== null && (await V(), await V(), N.value && N.value.setStartValue(e.value.style.zoom.startIndex)), e.value.style.zoom.endIndex !== null && (await V(), await V(), N.value && N.value.setEndValue(Ee(e.value.style.zoom.endIndex + 1)))) : (h.value = {
|
|
224
|
+
start: 0,
|
|
225
|
+
end: P.value
|
|
226
|
+
}, E.value += 1);
|
|
227
|
+
}
|
|
228
|
+
function Ee(t) {
|
|
229
|
+
const o = P.value;
|
|
230
|
+
return t > o ? o : t < 0 || e.value.style.zoom.startIndex !== null && t < e.value.style.zoom.startIndex ? e.value.style.zoom.startIndex !== null ? e.value.style.zoom.startIndex + 1 : 1 : t;
|
|
231
|
+
}
|
|
232
|
+
function pe() {
|
|
233
|
+
V(() => {
|
|
234
|
+
const t = [e.value.translations.period, e.value.translations.open, e.value.translations.high, e.value.translations.low, e.value.translations.last, e.value.translations.volume], o = x.value.map((b) => [
|
|
235
|
+
b.period,
|
|
236
|
+
b.open.value,
|
|
237
|
+
b.high.value,
|
|
238
|
+
b.low.value,
|
|
239
|
+
b.last.value,
|
|
240
|
+
b.volume
|
|
241
|
+
]), l = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([t]).concat(o), a = ut(l);
|
|
242
|
+
it({ csvContent: a, title: e.value.style.title.text || "vue-ui-candlestick" });
|
|
243
|
+
});
|
|
244
|
+
}
|
|
245
|
+
const D = f(() => {
|
|
246
|
+
const t = x.value.map((a) => [
|
|
247
|
+
`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 12" height="12" width="12" style="margin-right: 6px"><rect x="0" y="0" height="12" width="12" :rx="${e.value.style.layout.candle.borderRadius * 3}" fill="${e.value.style.layout.candle.gradient.show ? a.isBullish ? `url(#bullish_gradient_${k.value}` : `url(#bearish_gradient_${k.value})` : a.isBullish ? e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.colors.bearish}"/></svg> ${a.period}`,
|
|
248
|
+
`${e.value.table.td.prefix} ${isNaN(a.open.value) ? "-" : Number(a.open.value.toFixed(e.value.table.td.roundingValue)).toLocaleString()} ${e.value.table.td.suffix}`,
|
|
249
|
+
`${e.value.table.td.prefix} ${isNaN(a.high.value) ? "-" : Number(a.high.value.toFixed(e.value.table.td.roundingValue)).toLocaleString()} ${e.value.table.td.suffix}`,
|
|
250
|
+
`${e.value.table.td.prefix} ${isNaN(a.low.value) ? "-" : Number(a.low.value.toFixed(e.value.table.td.roundingValue)).toLocaleString()} ${e.value.table.td.suffix}`,
|
|
251
|
+
`${e.value.table.td.prefix} ${isNaN(a.last.value) ? "-" : Number(a.last.value.toFixed(e.value.table.td.roundingValue)).toLocaleString()} ${e.value.table.td.suffix}`,
|
|
252
|
+
`${isNaN(a.volume) ? "-" : a.volume.toLocaleString()}`
|
|
253
|
+
]), o = {
|
|
254
|
+
th: {
|
|
255
|
+
backgroundColor: e.value.table.th.backgroundColor,
|
|
256
|
+
color: e.value.table.th.color,
|
|
257
|
+
outline: e.value.table.th.outline
|
|
258
|
+
},
|
|
259
|
+
td: {
|
|
260
|
+
backgroundColor: e.value.table.td.backgroundColor,
|
|
261
|
+
color: e.value.table.td.color,
|
|
262
|
+
outline: e.value.table.td.outline
|
|
263
|
+
},
|
|
264
|
+
breakpoint: e.value.table.responsiveBreakpoint
|
|
265
|
+
}, l = [
|
|
266
|
+
e.value.translations.period,
|
|
267
|
+
e.value.translations.open,
|
|
268
|
+
e.value.translations.high,
|
|
269
|
+
e.value.translations.low,
|
|
270
|
+
e.value.translations.last,
|
|
271
|
+
e.value.translations.volume
|
|
272
|
+
];
|
|
273
|
+
return { head: l, body: t, config: o, colNames: l };
|
|
274
|
+
}), A = n(!1);
|
|
275
|
+
function Me(t) {
|
|
276
|
+
A.value = t, Z.value += 1;
|
|
277
|
+
}
|
|
278
|
+
function ge() {
|
|
279
|
+
w.value.showTable = !w.value.showTable;
|
|
280
|
+
}
|
|
281
|
+
function me() {
|
|
282
|
+
w.value.showTooltip = !w.value.showTooltip;
|
|
283
|
+
}
|
|
284
|
+
const W = n(!1);
|
|
285
|
+
function Q() {
|
|
286
|
+
W.value = !W.value;
|
|
287
|
+
}
|
|
288
|
+
return Te({
|
|
289
|
+
generatePdf: ve,
|
|
290
|
+
generateCsv: pe,
|
|
291
|
+
generateImage: ye,
|
|
292
|
+
toggleTable: ge,
|
|
293
|
+
toggleTooltip: me,
|
|
294
|
+
toggleAnnotator: Q
|
|
295
|
+
}), (t, o) => (s(), u("div", {
|
|
296
|
+
ref_key: "candlestickChart",
|
|
297
|
+
ref: S,
|
|
298
|
+
class: Ce(`vue-ui-candlestick ${A.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
299
|
+
style: _e(`position:relative;font-family:${e.value.style.fontFamily}; text-align:center;background:${e.value.style.backgroundColor}; ${e.value.responsive ? "height: 100%" : ""}`),
|
|
300
|
+
id: `vue-ui-candlestick_${k.value}`
|
|
301
|
+
}, [
|
|
302
|
+
e.value.userOptions.buttons.annotator ? (s(), _(xt, {
|
|
303
|
+
key: 0,
|
|
304
|
+
parent: S.value,
|
|
305
|
+
backgroundColor: e.value.style.backgroundColor,
|
|
306
|
+
color: e.value.style.color,
|
|
307
|
+
active: W.value,
|
|
308
|
+
onClose: Q
|
|
309
|
+
}, null, 8, ["parent", "backgroundColor", "color", "active"])) : v("", !0),
|
|
310
|
+
Le.value ? (s(), u("div", {
|
|
311
|
+
key: 1,
|
|
312
|
+
ref_key: "noTitle",
|
|
313
|
+
ref: ae,
|
|
314
|
+
class: "vue-data-ui-no-title-space",
|
|
315
|
+
style: "height:36px; width: 100%;background:transparent"
|
|
316
|
+
}, null, 512)) : v("", !0),
|
|
317
|
+
e.value.style.title.text ? (s(), u("div", {
|
|
318
|
+
key: 2,
|
|
319
|
+
ref_key: "chartTitle",
|
|
320
|
+
ref: ee,
|
|
321
|
+
style: "width:100%;background:transparent"
|
|
322
|
+
}, [
|
|
323
|
+
(s(), _(dt, {
|
|
324
|
+
key: `title_${ue.value}`,
|
|
325
|
+
config: {
|
|
326
|
+
title: {
|
|
327
|
+
cy: "candlestick-div-title",
|
|
328
|
+
...e.value.style.title
|
|
329
|
+
},
|
|
330
|
+
subtitle: {
|
|
331
|
+
cy: "candlestick-div-subtitle",
|
|
332
|
+
...e.value.style.title.subtitle
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
}, null, 8, ["config"]))
|
|
336
|
+
], 512)) : v("", !0),
|
|
337
|
+
e.value.userOptions.show && R.value ? (s(), _(yt, {
|
|
338
|
+
ref_key: "details",
|
|
339
|
+
ref: Fe,
|
|
340
|
+
key: `user_options_${Z.value}`,
|
|
341
|
+
backgroundColor: e.value.style.backgroundColor,
|
|
342
|
+
color: e.value.style.color,
|
|
343
|
+
isImaging: g(de),
|
|
344
|
+
isPrinting: g(re),
|
|
345
|
+
uid: k.value,
|
|
346
|
+
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.tooltip.show,
|
|
347
|
+
hasPdf: e.value.userOptions.buttons.pdf,
|
|
348
|
+
hasImg: e.value.userOptions.buttons.img,
|
|
349
|
+
hasXls: e.value.userOptions.buttons.csv,
|
|
350
|
+
hasTable: e.value.userOptions.buttons.table,
|
|
351
|
+
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
352
|
+
isFullscreen: A.value,
|
|
353
|
+
isTooltip: w.value.showTooltip,
|
|
354
|
+
titles: { ...e.value.userOptions.buttonTitles },
|
|
355
|
+
chartElement: S.value,
|
|
356
|
+
position: e.value.userOptions.position,
|
|
357
|
+
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
358
|
+
isAnnotation: W.value,
|
|
359
|
+
onToggleFullscreen: Me,
|
|
360
|
+
onGeneratePdf: g(ve),
|
|
361
|
+
onGenerateCsv: pe,
|
|
362
|
+
onGenerateImage: g(ye),
|
|
363
|
+
onToggleTable: ge,
|
|
364
|
+
onToggleTooltip: me,
|
|
365
|
+
onToggleAnnotator: Q
|
|
366
|
+
}, Ye({ _: 2 }, [
|
|
367
|
+
t.$slots.optionTooltip ? {
|
|
368
|
+
name: "optionTooltip",
|
|
369
|
+
fn: m(() => [
|
|
370
|
+
p(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
371
|
+
]),
|
|
372
|
+
key: "0"
|
|
373
|
+
} : void 0,
|
|
374
|
+
t.$slots.optionPdf ? {
|
|
375
|
+
name: "optionPdf",
|
|
376
|
+
fn: m(() => [
|
|
377
|
+
p(t.$slots, "optionPdf", {}, void 0, !0)
|
|
378
|
+
]),
|
|
379
|
+
key: "1"
|
|
380
|
+
} : void 0,
|
|
381
|
+
t.$slots.optionCsv ? {
|
|
382
|
+
name: "optionCsv",
|
|
383
|
+
fn: m(() => [
|
|
384
|
+
p(t.$slots, "optionCsv", {}, void 0, !0)
|
|
385
|
+
]),
|
|
386
|
+
key: "2"
|
|
387
|
+
} : void 0,
|
|
388
|
+
t.$slots.optionImg ? {
|
|
389
|
+
name: "optionImg",
|
|
390
|
+
fn: m(() => [
|
|
391
|
+
p(t.$slots, "optionImg", {}, void 0, !0)
|
|
392
|
+
]),
|
|
393
|
+
key: "3"
|
|
394
|
+
} : void 0,
|
|
395
|
+
t.$slots.optionTable ? {
|
|
396
|
+
name: "optionTable",
|
|
397
|
+
fn: m(() => [
|
|
398
|
+
p(t.$slots, "optionTable", {}, void 0, !0)
|
|
399
|
+
]),
|
|
400
|
+
key: "4"
|
|
401
|
+
} : void 0,
|
|
402
|
+
t.$slots.optionFullscreen ? {
|
|
403
|
+
name: "optionFullscreen",
|
|
404
|
+
fn: m(({ toggleFullscreen: l, isFullscreen: a }) => [
|
|
405
|
+
p(t.$slots, "optionFullscreen", T(I({ toggleFullscreen: l, isFullscreen: a })), void 0, !0)
|
|
406
|
+
]),
|
|
407
|
+
key: "5"
|
|
408
|
+
} : void 0,
|
|
409
|
+
t.$slots.optionAnnotator ? {
|
|
410
|
+
name: "optionAnnotator",
|
|
411
|
+
fn: m(({ toggleAnnotator: l, isAnnotator: a }) => [
|
|
412
|
+
p(t.$slots, "optionAnnotator", T(I({ toggleAnnotator: l, isAnnotator: a })), void 0, !0)
|
|
413
|
+
]),
|
|
414
|
+
key: "6"
|
|
415
|
+
} : void 0
|
|
416
|
+
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage"])) : v("", !0),
|
|
417
|
+
R.value ? (s(), u("svg", {
|
|
418
|
+
key: 4,
|
|
419
|
+
xmlns: g(tt),
|
|
420
|
+
class: Ce({ "vue-data-ui-fullscreen--on": A.value, "vue-data-ui-fulscreen--off": !A.value }),
|
|
421
|
+
viewBox: `0 0 ${y.value.width <= 0 ? 10 : y.value.width} ${y.value.height <= 0 ? 10 : y.value.height}`,
|
|
422
|
+
style: _e(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.color}`)
|
|
423
|
+
}, [
|
|
424
|
+
ze(mt),
|
|
425
|
+
x.value.length > 0 ? (s(), u("g", $t, [
|
|
426
|
+
r("defs", null, [
|
|
427
|
+
r("linearGradient", {
|
|
428
|
+
id: `bearish_gradient_${k.value}`,
|
|
429
|
+
x2: "0%",
|
|
430
|
+
y2: "100%"
|
|
431
|
+
}, [
|
|
432
|
+
r("stop", {
|
|
433
|
+
offset: "0%",
|
|
434
|
+
"stop-color": e.value.style.layout.candle.colors.bearish
|
|
435
|
+
}, null, 8, _t),
|
|
436
|
+
r("stop", {
|
|
437
|
+
offset: "50%",
|
|
438
|
+
"stop-color": `${g(j)(e.value.style.layout.candle.colors.bearish, 0.02)}DE`
|
|
439
|
+
}, null, 8, zt),
|
|
440
|
+
r("stop", {
|
|
441
|
+
offset: "100%",
|
|
442
|
+
"stop-color": `${g(j)(e.value.style.layout.candle.colors.bearish, 0.05)}66`
|
|
443
|
+
}, null, 8, St)
|
|
444
|
+
], 8, Ct),
|
|
445
|
+
r("linearGradient", {
|
|
446
|
+
id: `bullish_gradient_${k.value}`,
|
|
447
|
+
x2: "0%",
|
|
448
|
+
y2: "100%"
|
|
449
|
+
}, [
|
|
450
|
+
r("stop", {
|
|
451
|
+
offset: "0%",
|
|
452
|
+
"stop-color": e.value.style.layout.candle.colors.bullish
|
|
453
|
+
}, null, 8, At),
|
|
454
|
+
r("stop", {
|
|
455
|
+
offset: "50%",
|
|
456
|
+
"stop-color": `${g(j)(e.value.style.layout.candle.colors.bullish, 0.02)}DE`
|
|
457
|
+
}, null, 8, Tt),
|
|
458
|
+
r("stop", {
|
|
459
|
+
offset: "100%",
|
|
460
|
+
"stop-color": `${g(j)(e.value.style.layout.candle.colors.bullish, 0.05)}66`
|
|
461
|
+
}, null, 8, It)
|
|
462
|
+
], 8, Nt)
|
|
463
|
+
]),
|
|
464
|
+
e.value.style.layout.grid.show ? (s(), u("g", Ft, [
|
|
465
|
+
r("line", {
|
|
466
|
+
x1: i.value.left,
|
|
467
|
+
x2: i.value.left,
|
|
468
|
+
y1: i.value.top,
|
|
469
|
+
y2: i.value.bottom,
|
|
470
|
+
stroke: e.value.style.layout.grid.stroke,
|
|
471
|
+
"stroke-width": e.value.style.layout.grid.strokeWidth,
|
|
472
|
+
"stroke-linecap": "round"
|
|
473
|
+
}, null, 8, Lt),
|
|
474
|
+
r("line", {
|
|
475
|
+
x1: i.value.left,
|
|
476
|
+
x2: i.value.right,
|
|
477
|
+
y1: i.value.bottom,
|
|
478
|
+
y2: i.value.bottom,
|
|
479
|
+
stroke: e.value.style.layout.grid.stroke,
|
|
480
|
+
"stroke-width": e.value.style.layout.grid.strokeWidth,
|
|
481
|
+
"stroke-linecap": "round"
|
|
482
|
+
}, null, 8, Rt)
|
|
483
|
+
])) : v("", !0),
|
|
484
|
+
e.value.style.layout.grid.yAxis.dataLabels.show ? (s(), u("g", Pt, [
|
|
485
|
+
(s(!0), u(F, null, L(Pe.value, (l, a) => (s(), u("g", null, [
|
|
486
|
+
l.value >= C.value.min && l.value <= C.value.max ? (s(), u("line", {
|
|
487
|
+
key: 0,
|
|
488
|
+
x1: i.value.left,
|
|
489
|
+
x2: i.value.left - 5,
|
|
490
|
+
y1: l.y,
|
|
491
|
+
y2: l.y,
|
|
492
|
+
stroke: e.value.style.layout.grid.stroke,
|
|
493
|
+
"stroke-width": e.value.style.layout.grid.strokeWidth,
|
|
494
|
+
"stroke-linecap": "round"
|
|
495
|
+
}, null, 8, Vt)) : v("", !0),
|
|
496
|
+
l.value >= C.value.min && l.value <= C.value.max ? (s(), u("text", {
|
|
497
|
+
key: 1,
|
|
498
|
+
x: i.value.left - 8 + e.value.style.layout.grid.yAxis.dataLabels.offsetX,
|
|
499
|
+
y: l.y + y.value.yAxisFontSize / 3,
|
|
500
|
+
"font-size": y.value.yAxisFontSize,
|
|
501
|
+
"text-anchor": "end",
|
|
502
|
+
fill: e.value.style.layout.grid.yAxis.dataLabels.color,
|
|
503
|
+
"font-weight": e.value.style.layout.grid.yAxis.dataLabels.bold ? "bold" : "normal"
|
|
504
|
+
}, O(e.value.style.layout.grid.yAxis.dataLabels.prefix) + " " + O(g(lt)(l.value) ? l.value.toFixed(e.value.style.layout.grid.yAxis.dataLabels.roundingValue) : "") + " " + O(e.value.style.layout.grid.yAxis.dataLabels.suffix), 9, Ot)) : v("", !0)
|
|
505
|
+
]))), 256))
|
|
506
|
+
])) : v("", !0),
|
|
507
|
+
e.value.style.layout.grid.xAxis.dataLabels.show ? (s(), u("g", Bt, [
|
|
508
|
+
(s(!0), u(F, null, L(Ve.value, (l, a) => (s(), u("g", null, [
|
|
509
|
+
r("text", {
|
|
510
|
+
transform: `translate(${i.value.left + d.value * a + d.value / 2}, ${i.value.bottom + y.value.xAxisFontSize * 2 + e.value.style.layout.grid.xAxis.dataLabels.offsetY}), rotate(${e.value.style.layout.grid.xAxis.dataLabels.rotation})`,
|
|
511
|
+
"text-anchor": e.value.style.layout.grid.xAxis.dataLabels.rotation > 0 ? "start" : e.value.style.layout.grid.xAxis.dataLabels.rotation < 0 ? "end" : "middle",
|
|
512
|
+
"font-size": y.value.xAxisFontSize,
|
|
513
|
+
fill: e.value.style.layout.grid.xAxis.dataLabels.color,
|
|
514
|
+
"font-weight": e.value.style.layout.grid.xAxis.dataLabels.bold ? "bold" : "normal"
|
|
515
|
+
}, O(l), 9, Et)
|
|
516
|
+
]))), 256))
|
|
517
|
+
])) : v("", !0),
|
|
518
|
+
r("g", null, [
|
|
519
|
+
(s(!0), u(F, null, L(x.value, (l, a) => (s(), u("g", null, [
|
|
520
|
+
r("line", {
|
|
521
|
+
x1: l.open.x,
|
|
522
|
+
x2: l.open.x,
|
|
523
|
+
y1: l.high.y,
|
|
524
|
+
y2: l.low.y,
|
|
525
|
+
stroke: e.value.style.layout.wick.stroke,
|
|
526
|
+
"stroke-width": e.value.style.layout.wick.strokeWidth,
|
|
527
|
+
"stroke-linecap": "round"
|
|
528
|
+
}, null, 8, Mt),
|
|
529
|
+
e.value.style.layout.wick.extremity.shape === "circle" ? (s(), u("g", Ut, [
|
|
530
|
+
r("circle", {
|
|
531
|
+
cx: l.high.x,
|
|
532
|
+
cy: l.high.y,
|
|
533
|
+
r: e.value.style.layout.wick.extremity.size === "auto" ? d.value / 20 : e.value.style.layout.wick.extremity.size,
|
|
534
|
+
fill: e.value.style.layout.wick.extremity.color
|
|
535
|
+
}, null, 8, Dt),
|
|
536
|
+
r("circle", {
|
|
537
|
+
cx: l.low.x,
|
|
538
|
+
cy: l.low.y,
|
|
539
|
+
r: e.value.style.layout.wick.extremity.size === "auto" ? d.value / 20 : e.value.style.layout.wick.extremity.size,
|
|
540
|
+
fill: e.value.style.layout.wick.extremity.color
|
|
541
|
+
}, null, 8, Wt)
|
|
542
|
+
])) : v("", !0),
|
|
543
|
+
e.value.style.layout.wick.extremity.shape === "line" ? (s(), u("g", Gt, [
|
|
544
|
+
r("line", {
|
|
545
|
+
x1: l.high.x - (e.value.style.layout.wick.extremity.size === "auto" ? d.value * e.value.style.layout.candle.widthRatio : e.value.style.layout.wick.extremity.size) / 2,
|
|
546
|
+
x2: l.high.x + (e.value.style.layout.wick.extremity.size === "auto" ? d.value * e.value.style.layout.candle.widthRatio : e.value.style.layout.wick.extremity.size) / 2,
|
|
547
|
+
y1: l.high.y,
|
|
548
|
+
y2: l.high.y,
|
|
549
|
+
stroke: e.value.style.layout.wick.extremity.color,
|
|
550
|
+
"stroke-width": e.value.style.layout.wick.strokeWidth,
|
|
551
|
+
"stroke-linecap": "round"
|
|
552
|
+
}, null, 8, Xt),
|
|
553
|
+
r("line", {
|
|
554
|
+
x1: l.low.x - (e.value.style.layout.wick.extremity.size === "auto" ? d.value * e.value.style.layout.candle.widthRatio : e.value.style.layout.wick.extremity.size) / 2,
|
|
555
|
+
x2: l.low.x + (e.value.style.layout.wick.extremity.size === "auto" ? d.value * e.value.style.layout.candle.widthRatio : e.value.style.layout.wick.extremity.size) / 2,
|
|
556
|
+
y1: l.low.y,
|
|
557
|
+
y2: l.low.y,
|
|
558
|
+
stroke: e.value.style.layout.wick.extremity.color,
|
|
559
|
+
"stroke-width": e.value.style.layout.wick.strokeWidth,
|
|
560
|
+
"stroke-linecap": "round"
|
|
561
|
+
}, null, 8, jt)
|
|
562
|
+
])) : v("", !0)
|
|
563
|
+
]))), 256))
|
|
564
|
+
]),
|
|
565
|
+
r("g", null, [
|
|
566
|
+
(s(!0), u(F, null, L(x.value, (l, a) => (s(), u("rect", {
|
|
567
|
+
x: l.open.x - d.value / 2 + d.value * (1 - e.value.style.layout.candle.widthRatio) / 2,
|
|
568
|
+
y: l.isBullish ? l.last.y : l.open.y,
|
|
569
|
+
height: Math.abs(l.last.y - l.open.y) <= 0 ? 1e-4 : Math.abs(l.last.y - l.open.y),
|
|
570
|
+
width: d.value * e.value.style.layout.candle.widthRatio <= 0 ? 1e-4 : d.value * e.value.style.layout.candle.widthRatio,
|
|
571
|
+
fill: e.value.style.layout.candle.gradient.underlayer,
|
|
572
|
+
rx: e.value.style.layout.candle.borderRadius,
|
|
573
|
+
stroke: "none"
|
|
574
|
+
}, null, 8, Ht))), 256)),
|
|
575
|
+
(s(!0), u(F, null, L(x.value, (l, a) => (s(), u("rect", {
|
|
576
|
+
x: l.open.x - d.value / 2 + d.value * (1 - e.value.style.layout.candle.widthRatio) / 2,
|
|
577
|
+
y: l.isBullish ? l.last.y : l.open.y,
|
|
578
|
+
height: Math.abs(l.last.y - l.open.y) <= 0 ? 1e-4 : Math.abs(l.last.y - l.open.y),
|
|
579
|
+
width: d.value * e.value.style.layout.candle.widthRatio <= 0 ? 1e-4 : d.value * e.value.style.layout.candle.widthRatio,
|
|
580
|
+
fill: l.isBullish ? e.value.style.layout.candle.gradient.show ? `url(#bullish_gradient_${k.value})` : e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.gradient.show ? `url(#bearish_gradient_${k.value})` : e.value.style.layout.candle.colors.bearish,
|
|
581
|
+
rx: e.value.style.layout.candle.borderRadius,
|
|
582
|
+
stroke: e.value.style.layout.candle.stroke,
|
|
583
|
+
"stroke-width": e.value.style.layout.candle.strokeWidth,
|
|
584
|
+
"stroke-linecap": "round",
|
|
585
|
+
"stroke-linejoin": "round"
|
|
586
|
+
}, null, 8, Yt))), 256))
|
|
587
|
+
]),
|
|
588
|
+
r("g", null, [
|
|
589
|
+
(s(!0), u(F, null, L(x.value, (l, a) => (s(), u("rect", {
|
|
590
|
+
x: i.value.left + a * d.value,
|
|
591
|
+
y: i.value.top,
|
|
592
|
+
height: i.value.height <= 0 ? 1e-4 : i.value.height,
|
|
593
|
+
width: d.value <= 0 ? 1e-4 : d.value,
|
|
594
|
+
fill: q.value === a ? g(ot)(e.value.style.layout.selector.color, e.value.style.layout.selector.opacity) : "transparent",
|
|
595
|
+
onMouseover: (b) => Oe(a, l),
|
|
596
|
+
onMouseleave: o[0] || (o[0] = (b) => {
|
|
597
|
+
q.value = void 0, H.value = !1;
|
|
598
|
+
})
|
|
599
|
+
}, null, 40, qt))), 256))
|
|
600
|
+
])
|
|
601
|
+
])) : v("", !0),
|
|
602
|
+
p(t.$slots, "svg", { svg: y.value }, void 0, !0)
|
|
603
|
+
], 14, wt)) : v("", !0),
|
|
604
|
+
t.$slots.watermark ? (s(), u("div", Jt, [
|
|
605
|
+
p(t.$slots, "watermark", T(I({ isPrinting: g(re) || g(de) })), void 0, !0)
|
|
606
|
+
])) : v("", !0),
|
|
607
|
+
R.value ? v("", !0) : (s(), _(ft, {
|
|
608
|
+
key: 6,
|
|
609
|
+
config: {
|
|
610
|
+
type: "candlesticks",
|
|
611
|
+
style: {
|
|
612
|
+
backgroundColor: e.value.style.backgroundColor,
|
|
613
|
+
candlesticks: {
|
|
614
|
+
axis: {
|
|
615
|
+
color: "#CCCCCC"
|
|
616
|
+
},
|
|
617
|
+
candle: {
|
|
618
|
+
color: "#CCCCCC"
|
|
619
|
+
}
|
|
620
|
+
}
|
|
621
|
+
}
|
|
622
|
+
}
|
|
623
|
+
}, null, 8, ["config"])),
|
|
624
|
+
e.value.style.zoom.show && R.value ? (s(), u("div", {
|
|
625
|
+
key: 7,
|
|
626
|
+
ref_key: "chartSlicer",
|
|
627
|
+
ref: le
|
|
628
|
+
}, [
|
|
629
|
+
(s(), _(pt, {
|
|
630
|
+
ref_key: "slicerComponent",
|
|
631
|
+
ref: N,
|
|
632
|
+
key: `slicer_${E.value}`,
|
|
633
|
+
background: e.value.style.zoom.color,
|
|
634
|
+
borderColor: e.value.style.backgroundColor,
|
|
635
|
+
fontSize: e.value.style.zoom.fontSize,
|
|
636
|
+
useResetSlot: e.value.style.zoom.useResetSlot,
|
|
637
|
+
labelLeft: $.dataset[h.value.start] ? $.dataset[h.value.start][0] : $.dataset[0][0],
|
|
638
|
+
labelRight: $.dataset[h.value.end - 1] ? $.dataset[h.value.end - 1][0] : $.dataset.at(-1)[0],
|
|
639
|
+
textColor: e.value.style.color,
|
|
640
|
+
inputColor: e.value.style.zoom.color,
|
|
641
|
+
selectColor: e.value.style.zoom.highlightColor,
|
|
642
|
+
max: P.value,
|
|
643
|
+
min: 0,
|
|
644
|
+
valueStart: h.value.start,
|
|
645
|
+
valueEnd: h.value.end,
|
|
646
|
+
start: h.value.start,
|
|
647
|
+
"onUpdate:start": o[1] || (o[1] = (l) => h.value.start = l),
|
|
648
|
+
end: h.value.end,
|
|
649
|
+
"onUpdate:end": o[2] || (o[2] = (l) => h.value.end = l),
|
|
650
|
+
refreshStartPoint: e.value.style.zoom.startIndex !== null ? e.value.style.zoom.startIndex : 0,
|
|
651
|
+
refreshEndPoint: e.value.style.zoom.endIndex !== null ? e.value.style.zoom.endIndex + 1 : P.value,
|
|
652
|
+
onReset: Be
|
|
653
|
+
}, {
|
|
654
|
+
"reset-action": m(({ reset: l }) => [
|
|
655
|
+
p(t.$slots, "reset-action", T(I({ reset: l })), void 0, !0)
|
|
656
|
+
]),
|
|
657
|
+
_: 3
|
|
658
|
+
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint"]))
|
|
659
|
+
], 512)) : v("", !0),
|
|
660
|
+
r("div", {
|
|
661
|
+
ref_key: "chartLegend",
|
|
662
|
+
ref: te
|
|
663
|
+
}, [
|
|
664
|
+
p(t.$slots, "legend", { legend: x.value }, void 0, !0)
|
|
665
|
+
], 512),
|
|
666
|
+
t.$slots.source ? (s(), u("div", {
|
|
667
|
+
key: 8,
|
|
668
|
+
ref_key: "source",
|
|
669
|
+
ref: oe,
|
|
670
|
+
dir: "auto"
|
|
671
|
+
}, [
|
|
672
|
+
p(t.$slots, "source", {}, void 0, !0)
|
|
673
|
+
], 512)) : v("", !0),
|
|
674
|
+
ze(ct, {
|
|
675
|
+
show: w.value.showTooltip && H.value,
|
|
676
|
+
backgroundColor: e.value.style.tooltip.backgroundColor,
|
|
677
|
+
color: e.value.style.tooltip.color,
|
|
678
|
+
borderRadius: e.value.style.tooltip.borderRadius,
|
|
679
|
+
borderColor: e.value.style.tooltip.borderColor,
|
|
680
|
+
borderWidth: e.value.style.tooltip.borderWidth,
|
|
681
|
+
fontSize: e.value.style.tooltip.fontSize,
|
|
682
|
+
backgroundOpacity: e.value.style.tooltip.backgroundOpacity,
|
|
683
|
+
position: e.value.style.tooltip.position,
|
|
684
|
+
offsetY: e.value.style.tooltip.offsetY,
|
|
685
|
+
parent: S.value,
|
|
686
|
+
content: Y.value,
|
|
687
|
+
isFullscreen: A.value,
|
|
688
|
+
isCustom: e.value.style.tooltip.customFormat && typeof e.value.style.tooltip.customFormat == "function"
|
|
689
|
+
}, {
|
|
690
|
+
"tooltip-before": m(() => [
|
|
691
|
+
p(t.$slots, "tooltip-before", T(I({ ...K.value })), void 0, !0)
|
|
692
|
+
]),
|
|
693
|
+
"tooltip-after": m(() => [
|
|
694
|
+
p(t.$slots, "tooltip-after", T(I({ ...K.value })), void 0, !0)
|
|
695
|
+
]),
|
|
696
|
+
_: 3
|
|
697
|
+
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
698
|
+
R.value ? (s(), _(gt, {
|
|
699
|
+
key: 9,
|
|
700
|
+
hideDetails: "",
|
|
701
|
+
config: {
|
|
702
|
+
open: w.value.showTable,
|
|
703
|
+
maxHeight: 1e4,
|
|
704
|
+
body: {
|
|
705
|
+
backgroundColor: e.value.style.backgroundColor,
|
|
706
|
+
color: e.value.style.color
|
|
707
|
+
},
|
|
708
|
+
head: {
|
|
709
|
+
backgroundColor: e.value.style.backgroundColor,
|
|
710
|
+
color: e.value.style.color
|
|
711
|
+
}
|
|
712
|
+
}
|
|
713
|
+
}, {
|
|
714
|
+
content: m(() => [
|
|
715
|
+
(s(), _(ht, {
|
|
716
|
+
key: `table_${se.value}`,
|
|
717
|
+
colNames: D.value.colNames,
|
|
718
|
+
head: D.value.head,
|
|
719
|
+
body: D.value.body,
|
|
720
|
+
config: D.value.config,
|
|
721
|
+
title: `${e.value.style.title.text}${e.value.style.title.subtitle.text ? ` : ${e.value.style.title.subtitle.text}` : ""}`,
|
|
722
|
+
onClose: o[3] || (o[3] = (l) => w.value.showTable = !1)
|
|
723
|
+
}, {
|
|
724
|
+
th: m(({ th: l }) => [
|
|
725
|
+
qe(O(l), 1)
|
|
726
|
+
]),
|
|
727
|
+
td: m(({ td: l }) => [
|
|
728
|
+
r("div", { innerHTML: l }, null, 8, Kt)
|
|
729
|
+
]),
|
|
730
|
+
_: 1
|
|
731
|
+
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
732
|
+
]),
|
|
733
|
+
_: 1
|
|
734
|
+
}, 8, ["config"])) : v("", !0)
|
|
735
|
+
], 14, kt));
|
|
736
|
+
}
|
|
737
|
+
}, hl = /* @__PURE__ */ bt(Qt, [["__scopeId", "data-v-c83d8995"]]);
|
|
738
|
+
export {
|
|
739
|
+
hl as default
|
|
740
|
+
};
|