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
|
@@ -1,725 +0,0 @@
|
|
|
1
|
-
import { computed as h, ref as n, watch as xe, onMounted as Ee, onBeforeUnmount as De, openBlock as s, createElementBlock as u, normalizeClass as ke, normalizeStyle as we, createBlock as _, createCommentVNode as d, unref as f, createSlots as We, withCtx as g, renderSlot as p, normalizeProps as A, guardReactiveProps as T, createVNode as $e, createElementVNode as r, Fragment as z, renderList as F, toDisplayString as O, createTextVNode as Ge, nextTick as Xe } from "vue";
|
|
2
|
-
import { u as je, c as He, t as Ye, o as qe, e as N, C as Je, v as V, X as Ke, w as W, D as Qe, s as Ze, x as et, y as tt, q as lt, r as ot, E as Ce } from "./index-B6Q1Fyk0.js";
|
|
3
|
-
import { t as at, u as st } from "./useResponsive-CoxXLe23.js";
|
|
4
|
-
import { _ as ut } from "./Title-BB0O0yol.js";
|
|
5
|
-
import { u as it, U as nt } from "./usePrinter-D8dIU7aG.js";
|
|
6
|
-
import { _ as rt } from "./Tooltip-GvLaModr.js";
|
|
7
|
-
import { D as vt } from "./DataTable-B5DiCrf_.js";
|
|
8
|
-
import dt from "./vue-ui-skeleton-D7rg5vFC.js";
|
|
9
|
-
import { S as ct } from "./Slicer-D9ASV60L.js";
|
|
10
|
-
import yt from "./vue-ui-accordion-BOHicozd.js";
|
|
11
|
-
import { u as _e } from "./useNestedProp-DQpuJSz3.js";
|
|
12
|
-
import { _ as ht } from "./PackageVersion-S7OD_s5u.js";
|
|
13
|
-
import { P as pt } from "./PenAndPaper-BxJZd7k9.js";
|
|
14
|
-
import { _ as ft } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
|
-
const gt = ["id"], bt = ["xmlns", "viewBox"], mt = { key: 0 }, xt = ["id"], kt = ["stop-color"], wt = ["stop-color"], $t = ["stop-color"], Ct = ["id"], _t = ["stop-color"], Nt = ["stop-color"], St = ["stop-color"], At = { key: 0 }, Tt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], zt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ft = { key: 1 }, Lt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Rt = ["x", "y", "font-size", "fill", "font-weight"], Ot = { key: 2 }, Vt = ["transform", "text-anchor", "font-size", "fill", "font-weight"], It = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Pt = { key: 0 }, Bt = ["cx", "cy", "r", "fill"], Mt = ["cx", "cy", "r", "fill"], Ut = { key: 1 }, Et = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Dt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Wt = ["x", "y", "height", "width", "fill", "rx"], Gt = ["x", "y", "height", "width", "fill", "rx", "stroke", "stroke-width"], Xt = ["x", "y", "height", "width", "fill", "onMouseover"], jt = {
|
|
16
|
-
key: 5,
|
|
17
|
-
class: "vue-data-ui-watermark"
|
|
18
|
-
}, Ht = ["innerHTML"], Yt = {
|
|
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: Ne }) {
|
|
35
|
-
const k = $, { vue_ui_candlestick: Se } = je(), L = h(() => !!k.dataset && k.dataset.length), x = n(He()), Ae = n(null), G = n(!1), X = n(""), j = n(void 0), K = n(0), S = n(null), Q = n(null), Z = n(null), ee = n(null), te = n(null), le = n(null), I = n(0), oe = n(0), ae = n(0), e = h({
|
|
36
|
-
get: () => se(),
|
|
37
|
-
set: (t) => t
|
|
38
|
-
});
|
|
39
|
-
function se() {
|
|
40
|
-
const t = _e({
|
|
41
|
-
userConfig: k.config,
|
|
42
|
-
defaultConfig: Se
|
|
43
|
-
});
|
|
44
|
-
return t.theme ? {
|
|
45
|
-
..._e({
|
|
46
|
-
userConfig: Ye.vue_ui_candlestick[t.theme] || k.config,
|
|
47
|
-
defaultConfig: t
|
|
48
|
-
})
|
|
49
|
-
} : t;
|
|
50
|
-
}
|
|
51
|
-
xe(() => k.config, (t) => {
|
|
52
|
-
e.value = se(), ue(), I.value += 1, ae.value += 1, oe.value += 1;
|
|
53
|
-
}, { deep: !0 }), xe(() => k.dataset, (t) => {
|
|
54
|
-
y.value.start = 0, y.value.end = t.length, I.value += 1;
|
|
55
|
-
}, { deep: !0 });
|
|
56
|
-
const c = n({
|
|
57
|
-
height: e.value.style.height,
|
|
58
|
-
width: e.value.style.width,
|
|
59
|
-
xAxisFontSize: e.value.style.layout.grid.xAxis.dataLabels.fontSize,
|
|
60
|
-
yAxisFontSize: e.value.style.layout.grid.yAxis.dataLabels.fontSize
|
|
61
|
-
}), P = n(null);
|
|
62
|
-
Ee(() => {
|
|
63
|
-
ue();
|
|
64
|
-
});
|
|
65
|
-
function ue() {
|
|
66
|
-
if (qe(k.dataset) && N({
|
|
67
|
-
componentName: "VueUiCandlestick",
|
|
68
|
-
type: "dataset"
|
|
69
|
-
}), e.value.responsive) {
|
|
70
|
-
const t = at(() => {
|
|
71
|
-
const { width: a, height: l } = st({
|
|
72
|
-
chart: S.value,
|
|
73
|
-
title: e.value.style.title.text ? Q.value : null,
|
|
74
|
-
slicer: ee.value,
|
|
75
|
-
legend: Z.value,
|
|
76
|
-
source: te.value,
|
|
77
|
-
noTitle: le.value
|
|
78
|
-
});
|
|
79
|
-
c.value.width = a, c.value.height = l, c.value.xAxisFontSize = Ce({
|
|
80
|
-
relator: Math.min(a, l),
|
|
81
|
-
adjuster: e.value.style.width,
|
|
82
|
-
source: e.value.style.layout.grid.xAxis.dataLabels.fontSize,
|
|
83
|
-
threshold: 6,
|
|
84
|
-
fallback: 6
|
|
85
|
-
}), c.value.yAxisFontSize = Ce({
|
|
86
|
-
relator: Math.min(a, l),
|
|
87
|
-
adjuster: e.value.style.width,
|
|
88
|
-
source: e.value.style.layout.grid.yAxis.dataLabels.fontSize,
|
|
89
|
-
threshold: 6,
|
|
90
|
-
fallback: 6
|
|
91
|
-
});
|
|
92
|
-
});
|
|
93
|
-
P.value = new ResizeObserver(t), P.value.observe(S.value.parentNode);
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
De(() => {
|
|
97
|
-
P.value && P.value.disconnect();
|
|
98
|
-
});
|
|
99
|
-
const { isPrinting: ie, isImaging: ne, generatePdf: re, generateImage: ve } = it({
|
|
100
|
-
elementId: `vue-ui-candlestick_${x.value}`,
|
|
101
|
-
fileName: e.value.style.title.text || "vue-ui-candlestick"
|
|
102
|
-
}), Te = h(() => e.value.userOptions.show && !e.value.style.title.text), w = n({
|
|
103
|
-
showTable: e.value.table.show,
|
|
104
|
-
showTooltip: e.value.style.tooltip.show
|
|
105
|
-
}), i = h(() => {
|
|
106
|
-
const { top: t, right: a, bottom: l, left: o } = e.value.style.layout.padding;
|
|
107
|
-
return {
|
|
108
|
-
top: t,
|
|
109
|
-
right: c.value.width - a,
|
|
110
|
-
left: o,
|
|
111
|
-
bottom: c.value.height - l,
|
|
112
|
-
width: c.value.width - o - a,
|
|
113
|
-
height: c.value.height - t - l
|
|
114
|
-
};
|
|
115
|
-
}), H = h(() => k.dataset.length), y = n({
|
|
116
|
-
start: 0,
|
|
117
|
-
end: H.value
|
|
118
|
-
}), de = h(() => k.dataset.slice(y.value.start, y.value.end)), Y = h(() => (k.dataset.forEach((t, a) => {
|
|
119
|
-
[null, void 0].includes(t[0]) && N({
|
|
120
|
-
componentName: "VueUiCandlestick",
|
|
121
|
-
type: "datasetAttribute",
|
|
122
|
-
property: "period (index 0)",
|
|
123
|
-
index: a
|
|
124
|
-
}), [null, void 0].includes(t[1]) && N({
|
|
125
|
-
componentName: "VueUiCandlestick",
|
|
126
|
-
type: "datasetAttribute",
|
|
127
|
-
property: "open (index 1)",
|
|
128
|
-
index: a
|
|
129
|
-
}), [null, void 0].includes(t[2]) && N({
|
|
130
|
-
componentName: "VueUiCandlestick",
|
|
131
|
-
type: "datasetAttribute",
|
|
132
|
-
property: "high (index 2)",
|
|
133
|
-
index: a
|
|
134
|
-
}), [null, void 0].includes(t[3]) && N({
|
|
135
|
-
componentName: "VueUiCandlestick",
|
|
136
|
-
type: "datasetAttribute",
|
|
137
|
-
property: "low (index 3)",
|
|
138
|
-
index: a
|
|
139
|
-
}), [null, void 0].includes(t[4]) && N({
|
|
140
|
-
componentName: "VueUiCandlestick",
|
|
141
|
-
type: "datasetAttribute",
|
|
142
|
-
property: "last (index 4)",
|
|
143
|
-
index: a
|
|
144
|
-
}), [null, void 0].includes(t[5]) && N({
|
|
145
|
-
componentName: "VueUiCandlestick",
|
|
146
|
-
type: "datasetAttribute",
|
|
147
|
-
property: "volume (index 5)",
|
|
148
|
-
index: a
|
|
149
|
-
});
|
|
150
|
-
}), de.value.map((t) => ({
|
|
151
|
-
period: t[0],
|
|
152
|
-
open: t[1],
|
|
153
|
-
high: t[2],
|
|
154
|
-
low: t[3],
|
|
155
|
-
last: t[4],
|
|
156
|
-
volume: t[5]
|
|
157
|
-
})))), v = h(() => i.value.width / de.value.length), ce = h(() => ({
|
|
158
|
-
max: Math.max(...Y.value.map((t) => t.high)),
|
|
159
|
-
min: 0
|
|
160
|
-
})), C = h(() => Je(ce.value.min, ce.value.max, e.value.style.layout.grid.yAxis.dataLabels.steps));
|
|
161
|
-
function B(t, a) {
|
|
162
|
-
return {
|
|
163
|
-
...t,
|
|
164
|
-
x: V(i.value.left + a * v.value + v.value / 2),
|
|
165
|
-
y: V(i.value.top + (1 - t / C.value.max) * i.value.height),
|
|
166
|
-
value: V(t)
|
|
167
|
-
};
|
|
168
|
-
}
|
|
169
|
-
const b = h(() => Y.value.map((t, a) => {
|
|
170
|
-
const l = B(t.open, a), o = B(t.high, a), m = B(t.low, a), E = B(t.last, a), D = t.last > t.open;
|
|
171
|
-
return {
|
|
172
|
-
period: t.period,
|
|
173
|
-
open: l,
|
|
174
|
-
high: o,
|
|
175
|
-
low: m,
|
|
176
|
-
last: E,
|
|
177
|
-
volume: t.volume,
|
|
178
|
-
isBullish: D
|
|
179
|
-
};
|
|
180
|
-
}));
|
|
181
|
-
function ze(t) {
|
|
182
|
-
return V(t / C.value.max);
|
|
183
|
-
}
|
|
184
|
-
const Fe = h(() => C.value.ticks.map((t) => ({
|
|
185
|
-
y: i.value.bottom - i.value.height * ze(t),
|
|
186
|
-
value: V(t)
|
|
187
|
-
}))), Le = h(() => Y.value.map((t) => t.period)), q = n(null);
|
|
188
|
-
function Re(t, a) {
|
|
189
|
-
j.value = t, q.value = {
|
|
190
|
-
datapoint: a,
|
|
191
|
-
seriesIndex: t,
|
|
192
|
-
series: b.value,
|
|
193
|
-
config: e.value
|
|
194
|
-
};
|
|
195
|
-
const l = e.value.style.tooltip.customFormat;
|
|
196
|
-
if (et(l) && tt(() => l({
|
|
197
|
-
seriesIndex: t,
|
|
198
|
-
datapoint: a,
|
|
199
|
-
series: b.value,
|
|
200
|
-
config: e.value
|
|
201
|
-
})))
|
|
202
|
-
X.value = l({
|
|
203
|
-
seriesIndex: t,
|
|
204
|
-
datapoint: a,
|
|
205
|
-
series: b.value,
|
|
206
|
-
config: e.value
|
|
207
|
-
});
|
|
208
|
-
else if (e.value.style.tooltip.show) {
|
|
209
|
-
let o = "";
|
|
210
|
-
const { period: m, open: E, high: D, low: fe, last: ge, volume: be, isBullish: me } = b.value[t], { period: qt, open: Ie, high: Pe, low: Be, last: Me, volume: Ue } = e.value.translations;
|
|
211
|
-
o += `<div><svg style="margin-right:6px" viewBox="0 0 12 12" height="12" width="12"><rect x="0" y="0" height="12" width="12" rx="${e.value.style.layout.candle.borderRadius * 3}" stroke="${e.value.style.layout.candle.stroke}" stroke-width="${e.value.style.layout.candle.strokeWidth}"
|
|
212
|
-
fill="${e.value.style.layout.candle.gradient.show ? me ? `url(#bullish_gradient_${x.value})` : `url(#bearish_gradient_${x.value})` : me ? e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.colors.bearish}"/></svg>${m}</div>`, o += `${Ue} : <b>${isNaN(be) ? "-" : Number(be.toFixed(e.value.style.tooltip.roundingValue)).toLocaleString()}</b>`, o += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${e.value.style.tooltip.borderColor}">`, o += `<div>${Ie}: <b>${e.value.style.tooltip.prefix} ${isNaN(E.value) ? "-" : Number(E.value.toFixed(e.value.style.tooltip.roundingValue)).toLocaleString()} ${e.value.style.tooltip.suffix}</b></div>`, o += `<div>${Pe}: <b>${e.value.style.tooltip.prefix} ${isNaN(D.value) ? "-" : Number(D.value.toFixed(e.value.style.tooltip.roundingValue)).toLocaleString()} ${e.value.style.tooltip.suffix}</b></div>`, o += `<div>${Be}: <b>${e.value.style.tooltip.prefix} ${isNaN(fe.value) ? "-" : Number(fe.value.toFixed(e.value.style.tooltip.roundingValue)).toLocaleString()} ${e.value.style.tooltip.suffix}</b></div>`, o += `<div>${Me}: <b>${e.value.style.tooltip.prefix} ${isNaN(ge.value) ? "-" : Number(ge.value.toFixed(e.value.style.tooltip.roundingValue)).toLocaleString()} ${e.value.style.tooltip.suffix}</b></div>`, o += "</div>", X.value = `<div style="text-align:right">${o}</div>`;
|
|
213
|
-
}
|
|
214
|
-
G.value = !0;
|
|
215
|
-
}
|
|
216
|
-
function Oe() {
|
|
217
|
-
y.value = {
|
|
218
|
-
start: 0,
|
|
219
|
-
end: H.value
|
|
220
|
-
}, I.value += 1;
|
|
221
|
-
}
|
|
222
|
-
function ye() {
|
|
223
|
-
Xe(() => {
|
|
224
|
-
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], a = b.value.map((m) => [
|
|
225
|
-
m.period,
|
|
226
|
-
m.open.value,
|
|
227
|
-
m.high.value,
|
|
228
|
-
m.low.value,
|
|
229
|
-
m.last.value,
|
|
230
|
-
m.volume
|
|
231
|
-
]), l = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([t]).concat(a), o = lt(l);
|
|
232
|
-
ot({ csvContent: o, title: e.value.style.title.text || "vue-ui-candlestick" });
|
|
233
|
-
});
|
|
234
|
-
}
|
|
235
|
-
const M = h(() => {
|
|
236
|
-
const t = b.value.map((o) => [
|
|
237
|
-
`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 12" height="12" width="12" style="margin-right: 6px"><rect x="0" y="0" height="12" width="12" :rx="${e.value.style.layout.candle.borderRadius * 3}" fill="${e.value.style.layout.candle.gradient.show ? o.isBullish ? `url(#bullish_gradient_${x.value}` : `url(#bearish_gradient_${x.value})` : o.isBullish ? e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.colors.bearish}"/></svg> ${o.period}`,
|
|
238
|
-
`${e.value.table.td.prefix} ${isNaN(o.open.value) ? "-" : Number(o.open.value.toFixed(e.value.table.td.roundingValue)).toLocaleString()} ${e.value.table.td.suffix}`,
|
|
239
|
-
`${e.value.table.td.prefix} ${isNaN(o.high.value) ? "-" : Number(o.high.value.toFixed(e.value.table.td.roundingValue)).toLocaleString()} ${e.value.table.td.suffix}`,
|
|
240
|
-
`${e.value.table.td.prefix} ${isNaN(o.low.value) ? "-" : Number(o.low.value.toFixed(e.value.table.td.roundingValue)).toLocaleString()} ${e.value.table.td.suffix}`,
|
|
241
|
-
`${e.value.table.td.prefix} ${isNaN(o.last.value) ? "-" : Number(o.last.value.toFixed(e.value.table.td.roundingValue)).toLocaleString()} ${e.value.table.td.suffix}`,
|
|
242
|
-
`${isNaN(o.volume) ? "-" : o.volume.toLocaleString()}`
|
|
243
|
-
]), a = {
|
|
244
|
-
th: {
|
|
245
|
-
backgroundColor: e.value.table.th.backgroundColor,
|
|
246
|
-
color: e.value.table.th.color,
|
|
247
|
-
outline: e.value.table.th.outline
|
|
248
|
-
},
|
|
249
|
-
td: {
|
|
250
|
-
backgroundColor: e.value.table.td.backgroundColor,
|
|
251
|
-
color: e.value.table.td.color,
|
|
252
|
-
outline: e.value.table.td.outline
|
|
253
|
-
},
|
|
254
|
-
breakpoint: e.value.table.responsiveBreakpoint
|
|
255
|
-
}, l = [
|
|
256
|
-
e.value.translations.period,
|
|
257
|
-
e.value.translations.open,
|
|
258
|
-
e.value.translations.high,
|
|
259
|
-
e.value.translations.low,
|
|
260
|
-
e.value.translations.last,
|
|
261
|
-
e.value.translations.volume
|
|
262
|
-
];
|
|
263
|
-
return { head: l, body: t, config: a, colNames: l };
|
|
264
|
-
}), R = n(!1);
|
|
265
|
-
function Ve(t) {
|
|
266
|
-
R.value = t, K.value += 1;
|
|
267
|
-
}
|
|
268
|
-
function he() {
|
|
269
|
-
w.value.showTable = !w.value.showTable;
|
|
270
|
-
}
|
|
271
|
-
function pe() {
|
|
272
|
-
w.value.showTooltip = !w.value.showTooltip;
|
|
273
|
-
}
|
|
274
|
-
const U = n(!1);
|
|
275
|
-
function J() {
|
|
276
|
-
U.value = !U.value;
|
|
277
|
-
}
|
|
278
|
-
return Ne({
|
|
279
|
-
generatePdf: re,
|
|
280
|
-
generateCsv: ye,
|
|
281
|
-
generateImage: ve,
|
|
282
|
-
toggleTable: he,
|
|
283
|
-
toggleTooltip: pe,
|
|
284
|
-
toggleAnnotator: J
|
|
285
|
-
}), (t, a) => (s(), u("div", {
|
|
286
|
-
ref_key: "candlestickChart",
|
|
287
|
-
ref: S,
|
|
288
|
-
class: ke(`vue-ui-candlestick ${R.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
289
|
-
style: we(`position:relative;font-family:${e.value.style.fontFamily}; text-align:center;background:${e.value.style.backgroundColor}; ${e.value.responsive ? "height: 100%" : ""}`),
|
|
290
|
-
id: `vue-ui-candlestick_${x.value}`
|
|
291
|
-
}, [
|
|
292
|
-
e.value.userOptions.buttons.annotator ? (s(), _(pt, {
|
|
293
|
-
key: 0,
|
|
294
|
-
parent: S.value,
|
|
295
|
-
backgroundColor: e.value.style.backgroundColor,
|
|
296
|
-
color: e.value.style.color,
|
|
297
|
-
active: U.value,
|
|
298
|
-
onClose: J
|
|
299
|
-
}, null, 8, ["parent", "backgroundColor", "color", "active"])) : d("", !0),
|
|
300
|
-
Te.value ? (s(), u("div", {
|
|
301
|
-
key: 1,
|
|
302
|
-
ref_key: "noTitle",
|
|
303
|
-
ref: le,
|
|
304
|
-
class: "vue-data-ui-no-title-space",
|
|
305
|
-
style: "height:36px; width: 100%;background:transparent"
|
|
306
|
-
}, null, 512)) : d("", !0),
|
|
307
|
-
e.value.style.title.text ? (s(), u("div", {
|
|
308
|
-
key: 2,
|
|
309
|
-
ref_key: "chartTitle",
|
|
310
|
-
ref: Q,
|
|
311
|
-
style: "width:100%;background:transparent"
|
|
312
|
-
}, [
|
|
313
|
-
(s(), _(ut, {
|
|
314
|
-
key: `title_${ae.value}`,
|
|
315
|
-
config: {
|
|
316
|
-
title: {
|
|
317
|
-
cy: "candlestick-div-title",
|
|
318
|
-
...e.value.style.title
|
|
319
|
-
},
|
|
320
|
-
subtitle: {
|
|
321
|
-
cy: "candlestick-div-subtitle",
|
|
322
|
-
...e.value.style.title.subtitle
|
|
323
|
-
}
|
|
324
|
-
}
|
|
325
|
-
}, null, 8, ["config"]))
|
|
326
|
-
], 512)) : d("", !0),
|
|
327
|
-
e.value.userOptions.show && L.value ? (s(), _(nt, {
|
|
328
|
-
ref_key: "details",
|
|
329
|
-
ref: Ae,
|
|
330
|
-
key: `user_options_${K.value}`,
|
|
331
|
-
backgroundColor: e.value.style.backgroundColor,
|
|
332
|
-
color: e.value.style.color,
|
|
333
|
-
isImaging: f(ne),
|
|
334
|
-
isPrinting: f(ie),
|
|
335
|
-
uid: x.value,
|
|
336
|
-
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.tooltip.show,
|
|
337
|
-
hasPdf: e.value.userOptions.buttons.pdf,
|
|
338
|
-
hasImg: e.value.userOptions.buttons.img,
|
|
339
|
-
hasXls: e.value.userOptions.buttons.csv,
|
|
340
|
-
hasTable: e.value.userOptions.buttons.table,
|
|
341
|
-
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
342
|
-
isFullscreen: R.value,
|
|
343
|
-
isTooltip: w.value.showTooltip,
|
|
344
|
-
titles: { ...e.value.userOptions.buttonTitles },
|
|
345
|
-
chartElement: S.value,
|
|
346
|
-
position: e.value.userOptions.position,
|
|
347
|
-
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
348
|
-
isAnnotation: U.value,
|
|
349
|
-
onToggleFullscreen: Ve,
|
|
350
|
-
onGeneratePdf: f(re),
|
|
351
|
-
onGenerateCsv: ye,
|
|
352
|
-
onGenerateImage: f(ve),
|
|
353
|
-
onToggleTable: he,
|
|
354
|
-
onToggleTooltip: pe,
|
|
355
|
-
onToggleAnnotator: J
|
|
356
|
-
}, We({ _: 2 }, [
|
|
357
|
-
t.$slots.optionTooltip ? {
|
|
358
|
-
name: "optionTooltip",
|
|
359
|
-
fn: g(() => [
|
|
360
|
-
p(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
361
|
-
]),
|
|
362
|
-
key: "0"
|
|
363
|
-
} : void 0,
|
|
364
|
-
t.$slots.optionPdf ? {
|
|
365
|
-
name: "optionPdf",
|
|
366
|
-
fn: g(() => [
|
|
367
|
-
p(t.$slots, "optionPdf", {}, void 0, !0)
|
|
368
|
-
]),
|
|
369
|
-
key: "1"
|
|
370
|
-
} : void 0,
|
|
371
|
-
t.$slots.optionCsv ? {
|
|
372
|
-
name: "optionCsv",
|
|
373
|
-
fn: g(() => [
|
|
374
|
-
p(t.$slots, "optionCsv", {}, void 0, !0)
|
|
375
|
-
]),
|
|
376
|
-
key: "2"
|
|
377
|
-
} : void 0,
|
|
378
|
-
t.$slots.optionImg ? {
|
|
379
|
-
name: "optionImg",
|
|
380
|
-
fn: g(() => [
|
|
381
|
-
p(t.$slots, "optionImg", {}, void 0, !0)
|
|
382
|
-
]),
|
|
383
|
-
key: "3"
|
|
384
|
-
} : void 0,
|
|
385
|
-
t.$slots.optionTable ? {
|
|
386
|
-
name: "optionTable",
|
|
387
|
-
fn: g(() => [
|
|
388
|
-
p(t.$slots, "optionTable", {}, void 0, !0)
|
|
389
|
-
]),
|
|
390
|
-
key: "4"
|
|
391
|
-
} : void 0,
|
|
392
|
-
t.$slots.optionFullscreen ? {
|
|
393
|
-
name: "optionFullscreen",
|
|
394
|
-
fn: g(({ toggleFullscreen: l, isFullscreen: o }) => [
|
|
395
|
-
p(t.$slots, "optionFullscreen", A(T({ toggleFullscreen: l, isFullscreen: o })), void 0, !0)
|
|
396
|
-
]),
|
|
397
|
-
key: "5"
|
|
398
|
-
} : void 0,
|
|
399
|
-
t.$slots.optionAnnotator ? {
|
|
400
|
-
name: "optionAnnotator",
|
|
401
|
-
fn: g(({ toggleAnnotator: l, isAnnotator: o }) => [
|
|
402
|
-
p(t.$slots, "optionAnnotator", A(T({ toggleAnnotator: l, isAnnotator: o })), void 0, !0)
|
|
403
|
-
]),
|
|
404
|
-
key: "6"
|
|
405
|
-
} : void 0
|
|
406
|
-
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage"])) : d("", !0),
|
|
407
|
-
L.value ? (s(), u("svg", {
|
|
408
|
-
key: 4,
|
|
409
|
-
xmlns: f(Ke),
|
|
410
|
-
class: ke({ "vue-data-ui-fullscreen--on": R.value, "vue-data-ui-fulscreen--off": !R.value }),
|
|
411
|
-
viewBox: `0 0 ${c.value.width <= 0 ? 10 : c.value.width} ${c.value.height <= 0 ? 10 : c.value.height}`,
|
|
412
|
-
style: we(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.color}`)
|
|
413
|
-
}, [
|
|
414
|
-
$e(ht),
|
|
415
|
-
b.value.length > 0 ? (s(), u("g", mt, [
|
|
416
|
-
r("defs", null, [
|
|
417
|
-
r("linearGradient", {
|
|
418
|
-
id: `bearish_gradient_${x.value}`,
|
|
419
|
-
x2: "0%",
|
|
420
|
-
y2: "100%"
|
|
421
|
-
}, [
|
|
422
|
-
r("stop", {
|
|
423
|
-
offset: "0%",
|
|
424
|
-
"stop-color": e.value.style.layout.candle.colors.bearish
|
|
425
|
-
}, null, 8, kt),
|
|
426
|
-
r("stop", {
|
|
427
|
-
offset: "50%",
|
|
428
|
-
"stop-color": `${f(W)(e.value.style.layout.candle.colors.bearish, 0.02)}DE`
|
|
429
|
-
}, null, 8, wt),
|
|
430
|
-
r("stop", {
|
|
431
|
-
offset: "100%",
|
|
432
|
-
"stop-color": `${f(W)(e.value.style.layout.candle.colors.bearish, 0.05)}66`
|
|
433
|
-
}, null, 8, $t)
|
|
434
|
-
], 8, xt),
|
|
435
|
-
r("linearGradient", {
|
|
436
|
-
id: `bullish_gradient_${x.value}`,
|
|
437
|
-
x2: "0%",
|
|
438
|
-
y2: "100%"
|
|
439
|
-
}, [
|
|
440
|
-
r("stop", {
|
|
441
|
-
offset: "0%",
|
|
442
|
-
"stop-color": e.value.style.layout.candle.colors.bullish
|
|
443
|
-
}, null, 8, _t),
|
|
444
|
-
r("stop", {
|
|
445
|
-
offset: "50%",
|
|
446
|
-
"stop-color": `${f(W)(e.value.style.layout.candle.colors.bullish, 0.02)}DE`
|
|
447
|
-
}, null, 8, Nt),
|
|
448
|
-
r("stop", {
|
|
449
|
-
offset: "100%",
|
|
450
|
-
"stop-color": `${f(W)(e.value.style.layout.candle.colors.bullish, 0.05)}66`
|
|
451
|
-
}, null, 8, St)
|
|
452
|
-
], 8, Ct)
|
|
453
|
-
]),
|
|
454
|
-
e.value.style.layout.grid.show ? (s(), u("g", At, [
|
|
455
|
-
r("line", {
|
|
456
|
-
x1: i.value.left,
|
|
457
|
-
x2: i.value.left,
|
|
458
|
-
y1: i.value.top,
|
|
459
|
-
y2: i.value.bottom,
|
|
460
|
-
stroke: e.value.style.layout.grid.stroke,
|
|
461
|
-
"stroke-width": e.value.style.layout.grid.strokeWidth,
|
|
462
|
-
"stroke-linecap": "round"
|
|
463
|
-
}, null, 8, Tt),
|
|
464
|
-
r("line", {
|
|
465
|
-
x1: i.value.left,
|
|
466
|
-
x2: i.value.right,
|
|
467
|
-
y1: i.value.bottom,
|
|
468
|
-
y2: i.value.bottom,
|
|
469
|
-
stroke: e.value.style.layout.grid.stroke,
|
|
470
|
-
"stroke-width": e.value.style.layout.grid.strokeWidth,
|
|
471
|
-
"stroke-linecap": "round"
|
|
472
|
-
}, null, 8, zt)
|
|
473
|
-
])) : d("", !0),
|
|
474
|
-
e.value.style.layout.grid.yAxis.dataLabels.show ? (s(), u("g", Ft, [
|
|
475
|
-
(s(!0), u(z, null, F(Fe.value, (l, o) => (s(), u("g", null, [
|
|
476
|
-
l.value >= C.value.min && l.value <= C.value.max ? (s(), u("line", {
|
|
477
|
-
key: 0,
|
|
478
|
-
x1: i.value.left,
|
|
479
|
-
x2: i.value.left - 5,
|
|
480
|
-
y1: l.y,
|
|
481
|
-
y2: l.y,
|
|
482
|
-
stroke: e.value.style.layout.grid.stroke,
|
|
483
|
-
"stroke-width": e.value.style.layout.grid.strokeWidth,
|
|
484
|
-
"stroke-linecap": "round"
|
|
485
|
-
}, null, 8, Lt)) : d("", !0),
|
|
486
|
-
l.value >= C.value.min && l.value <= C.value.max ? (s(), u("text", {
|
|
487
|
-
key: 1,
|
|
488
|
-
x: i.value.left - 8 + e.value.style.layout.grid.yAxis.dataLabels.offsetX,
|
|
489
|
-
y: l.y + c.value.yAxisFontSize / 3,
|
|
490
|
-
"font-size": c.value.yAxisFontSize,
|
|
491
|
-
"text-anchor": "end",
|
|
492
|
-
fill: e.value.style.layout.grid.yAxis.dataLabels.color,
|
|
493
|
-
"font-weight": e.value.style.layout.grid.yAxis.dataLabels.bold ? "bold" : "normal"
|
|
494
|
-
}, O(e.value.style.layout.grid.yAxis.dataLabels.prefix) + " " + O(f(Qe)(l.value) ? l.value.toFixed(e.value.style.layout.grid.yAxis.dataLabels.roundingValue) : "") + " " + O(e.value.style.layout.grid.yAxis.dataLabels.suffix), 9, Rt)) : d("", !0)
|
|
495
|
-
]))), 256))
|
|
496
|
-
])) : d("", !0),
|
|
497
|
-
e.value.style.layout.grid.xAxis.dataLabels.show ? (s(), u("g", Ot, [
|
|
498
|
-
(s(!0), u(z, null, F(Le.value, (l, o) => (s(), u("g", null, [
|
|
499
|
-
r("text", {
|
|
500
|
-
transform: `translate(${i.value.left + v.value * o + v.value / 2}, ${i.value.bottom + c.value.xAxisFontSize * 2 + e.value.style.layout.grid.xAxis.dataLabels.offsetY}), rotate(${e.value.style.layout.grid.xAxis.dataLabels.rotation})`,
|
|
501
|
-
"text-anchor": e.value.style.layout.grid.xAxis.dataLabels.rotation > 0 ? "start" : e.value.style.layout.grid.xAxis.dataLabels.rotation < 0 ? "end" : "middle",
|
|
502
|
-
"font-size": c.value.xAxisFontSize,
|
|
503
|
-
fill: e.value.style.layout.grid.xAxis.dataLabels.color,
|
|
504
|
-
"font-weight": e.value.style.layout.grid.xAxis.dataLabels.bold ? "bold" : "normal"
|
|
505
|
-
}, O(l), 9, Vt)
|
|
506
|
-
]))), 256))
|
|
507
|
-
])) : d("", !0),
|
|
508
|
-
r("g", null, [
|
|
509
|
-
(s(!0), u(z, null, F(b.value, (l, o) => (s(), u("g", null, [
|
|
510
|
-
r("line", {
|
|
511
|
-
x1: l.open.x,
|
|
512
|
-
x2: l.open.x,
|
|
513
|
-
y1: l.high.y,
|
|
514
|
-
y2: l.low.y,
|
|
515
|
-
stroke: e.value.style.layout.wick.stroke,
|
|
516
|
-
"stroke-width": e.value.style.layout.wick.strokeWidth,
|
|
517
|
-
"stroke-linecap": "round"
|
|
518
|
-
}, null, 8, It),
|
|
519
|
-
e.value.style.layout.wick.extremity.shape === "circle" ? (s(), u("g", Pt, [
|
|
520
|
-
r("circle", {
|
|
521
|
-
cx: l.high.x,
|
|
522
|
-
cy: l.high.y,
|
|
523
|
-
r: e.value.style.layout.wick.extremity.size === "auto" ? v.value / 20 : e.value.style.layout.wick.extremity.size,
|
|
524
|
-
fill: e.value.style.layout.wick.extremity.color
|
|
525
|
-
}, null, 8, Bt),
|
|
526
|
-
r("circle", {
|
|
527
|
-
cx: l.low.x,
|
|
528
|
-
cy: l.low.y,
|
|
529
|
-
r: e.value.style.layout.wick.extremity.size === "auto" ? v.value / 20 : e.value.style.layout.wick.extremity.size,
|
|
530
|
-
fill: e.value.style.layout.wick.extremity.color
|
|
531
|
-
}, null, 8, Mt)
|
|
532
|
-
])) : d("", !0),
|
|
533
|
-
e.value.style.layout.wick.extremity.shape === "line" ? (s(), u("g", Ut, [
|
|
534
|
-
r("line", {
|
|
535
|
-
x1: l.high.x - (e.value.style.layout.wick.extremity.size === "auto" ? v.value * e.value.style.layout.candle.widthRatio : e.value.style.layout.wick.extremity.size) / 2,
|
|
536
|
-
x2: l.high.x + (e.value.style.layout.wick.extremity.size === "auto" ? v.value * e.value.style.layout.candle.widthRatio : e.value.style.layout.wick.extremity.size) / 2,
|
|
537
|
-
y1: l.high.y,
|
|
538
|
-
y2: l.high.y,
|
|
539
|
-
stroke: e.value.style.layout.wick.extremity.color,
|
|
540
|
-
"stroke-width": e.value.style.layout.wick.strokeWidth,
|
|
541
|
-
"stroke-linecap": "round"
|
|
542
|
-
}, null, 8, Et),
|
|
543
|
-
r("line", {
|
|
544
|
-
x1: l.low.x - (e.value.style.layout.wick.extremity.size === "auto" ? v.value * e.value.style.layout.candle.widthRatio : e.value.style.layout.wick.extremity.size) / 2,
|
|
545
|
-
x2: l.low.x + (e.value.style.layout.wick.extremity.size === "auto" ? v.value * e.value.style.layout.candle.widthRatio : e.value.style.layout.wick.extremity.size) / 2,
|
|
546
|
-
y1: l.low.y,
|
|
547
|
-
y2: l.low.y,
|
|
548
|
-
stroke: e.value.style.layout.wick.extremity.color,
|
|
549
|
-
"stroke-width": e.value.style.layout.wick.strokeWidth,
|
|
550
|
-
"stroke-linecap": "round"
|
|
551
|
-
}, null, 8, Dt)
|
|
552
|
-
])) : d("", !0)
|
|
553
|
-
]))), 256))
|
|
554
|
-
]),
|
|
555
|
-
r("g", null, [
|
|
556
|
-
(s(!0), u(z, null, F(b.value, (l, o) => (s(), u("rect", {
|
|
557
|
-
x: l.open.x - v.value / 2 + v.value * (1 - e.value.style.layout.candle.widthRatio) / 2,
|
|
558
|
-
y: l.isBullish ? l.last.y : l.open.y,
|
|
559
|
-
height: Math.abs(l.last.y - l.open.y) <= 0 ? 1e-4 : Math.abs(l.last.y - l.open.y),
|
|
560
|
-
width: v.value * e.value.style.layout.candle.widthRatio <= 0 ? 1e-4 : v.value * e.value.style.layout.candle.widthRatio,
|
|
561
|
-
fill: e.value.style.layout.candle.gradient.underlayer,
|
|
562
|
-
rx: e.value.style.layout.candle.borderRadius,
|
|
563
|
-
stroke: "none"
|
|
564
|
-
}, null, 8, Wt))), 256)),
|
|
565
|
-
(s(!0), u(z, null, F(b.value, (l, o) => (s(), u("rect", {
|
|
566
|
-
x: l.open.x - v.value / 2 + v.value * (1 - e.value.style.layout.candle.widthRatio) / 2,
|
|
567
|
-
y: l.isBullish ? l.last.y : l.open.y,
|
|
568
|
-
height: Math.abs(l.last.y - l.open.y) <= 0 ? 1e-4 : Math.abs(l.last.y - l.open.y),
|
|
569
|
-
width: v.value * e.value.style.layout.candle.widthRatio <= 0 ? 1e-4 : v.value * e.value.style.layout.candle.widthRatio,
|
|
570
|
-
fill: l.isBullish ? e.value.style.layout.candle.gradient.show ? `url(#bullish_gradient_${x.value})` : e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.gradient.show ? `url(#bearish_gradient_${x.value})` : e.value.style.layout.candle.colors.bearish,
|
|
571
|
-
rx: e.value.style.layout.candle.borderRadius,
|
|
572
|
-
stroke: e.value.style.layout.candle.stroke,
|
|
573
|
-
"stroke-width": e.value.style.layout.candle.strokeWidth,
|
|
574
|
-
"stroke-linecap": "round",
|
|
575
|
-
"stroke-linejoin": "round"
|
|
576
|
-
}, null, 8, Gt))), 256))
|
|
577
|
-
]),
|
|
578
|
-
r("g", null, [
|
|
579
|
-
(s(!0), u(z, null, F(b.value, (l, o) => (s(), u("rect", {
|
|
580
|
-
x: i.value.left + o * v.value,
|
|
581
|
-
y: i.value.top,
|
|
582
|
-
height: i.value.height <= 0 ? 1e-4 : i.value.height,
|
|
583
|
-
width: v.value <= 0 ? 1e-4 : v.value,
|
|
584
|
-
fill: j.value === o ? f(Ze)(e.value.style.layout.selector.color, e.value.style.layout.selector.opacity) : "transparent",
|
|
585
|
-
onMouseover: (m) => Re(o, l),
|
|
586
|
-
onMouseleave: a[0] || (a[0] = (m) => {
|
|
587
|
-
j.value = void 0, G.value = !1;
|
|
588
|
-
})
|
|
589
|
-
}, null, 40, Xt))), 256))
|
|
590
|
-
])
|
|
591
|
-
])) : d("", !0),
|
|
592
|
-
p(t.$slots, "svg", { svg: c.value }, void 0, !0)
|
|
593
|
-
], 14, bt)) : d("", !0),
|
|
594
|
-
t.$slots.watermark ? (s(), u("div", jt, [
|
|
595
|
-
p(t.$slots, "watermark", A(T({ isPrinting: f(ie) || f(ne) })), void 0, !0)
|
|
596
|
-
])) : d("", !0),
|
|
597
|
-
L.value ? d("", !0) : (s(), _(dt, {
|
|
598
|
-
key: 6,
|
|
599
|
-
config: {
|
|
600
|
-
type: "candlesticks",
|
|
601
|
-
style: {
|
|
602
|
-
backgroundColor: e.value.style.backgroundColor,
|
|
603
|
-
candlesticks: {
|
|
604
|
-
axis: {
|
|
605
|
-
color: "#CCCCCC"
|
|
606
|
-
},
|
|
607
|
-
candle: {
|
|
608
|
-
color: "#CCCCCC"
|
|
609
|
-
}
|
|
610
|
-
}
|
|
611
|
-
}
|
|
612
|
-
}
|
|
613
|
-
}, null, 8, ["config"])),
|
|
614
|
-
e.value.style.zoom.show && L.value ? (s(), u("div", {
|
|
615
|
-
key: 7,
|
|
616
|
-
ref_key: "chartSlicer",
|
|
617
|
-
ref: ee
|
|
618
|
-
}, [
|
|
619
|
-
(s(), _(ct, {
|
|
620
|
-
key: `slicer_${I.value}`,
|
|
621
|
-
background: e.value.style.zoom.color,
|
|
622
|
-
borderColor: e.value.style.backgroundColor,
|
|
623
|
-
fontSize: e.value.style.zoom.fontSize,
|
|
624
|
-
useResetSlot: e.value.style.zoom.useResetSlot,
|
|
625
|
-
labelLeft: $.dataset[y.value.start] ? $.dataset[y.value.start][0] : $.dataset[0][0],
|
|
626
|
-
labelRight: $.dataset[y.value.end - 1] ? $.dataset[y.value.end - 1][0] : $.dataset.at(-1)[0],
|
|
627
|
-
textColor: e.value.style.color,
|
|
628
|
-
inputColor: e.value.style.zoom.color,
|
|
629
|
-
selectColor: e.value.style.zoom.highlightColor,
|
|
630
|
-
max: H.value,
|
|
631
|
-
min: 0,
|
|
632
|
-
valueStart: y.value.start,
|
|
633
|
-
valueEnd: y.value.end,
|
|
634
|
-
start: y.value.start,
|
|
635
|
-
"onUpdate:start": a[1] || (a[1] = (l) => y.value.start = l),
|
|
636
|
-
end: y.value.end,
|
|
637
|
-
"onUpdate:end": a[2] || (a[2] = (l) => y.value.end = l),
|
|
638
|
-
onReset: Oe
|
|
639
|
-
}, {
|
|
640
|
-
"reset-action": g(({ reset: l }) => [
|
|
641
|
-
p(t.$slots, "reset-action", A(T({ reset: l })), void 0, !0)
|
|
642
|
-
]),
|
|
643
|
-
_: 3
|
|
644
|
-
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end"]))
|
|
645
|
-
], 512)) : d("", !0),
|
|
646
|
-
r("div", {
|
|
647
|
-
ref_key: "chartLegend",
|
|
648
|
-
ref: Z
|
|
649
|
-
}, [
|
|
650
|
-
p(t.$slots, "legend", { legend: b.value }, void 0, !0)
|
|
651
|
-
], 512),
|
|
652
|
-
t.$slots.source ? (s(), u("div", {
|
|
653
|
-
key: 8,
|
|
654
|
-
ref_key: "source",
|
|
655
|
-
ref: te,
|
|
656
|
-
dir: "auto"
|
|
657
|
-
}, [
|
|
658
|
-
p(t.$slots, "source", {}, void 0, !0)
|
|
659
|
-
], 512)) : d("", !0),
|
|
660
|
-
$e(rt, {
|
|
661
|
-
show: w.value.showTooltip && G.value,
|
|
662
|
-
backgroundColor: e.value.style.tooltip.backgroundColor,
|
|
663
|
-
color: e.value.style.tooltip.color,
|
|
664
|
-
borderRadius: e.value.style.tooltip.borderRadius,
|
|
665
|
-
borderColor: e.value.style.tooltip.borderColor,
|
|
666
|
-
borderWidth: e.value.style.tooltip.borderWidth,
|
|
667
|
-
fontSize: e.value.style.tooltip.fontSize,
|
|
668
|
-
backgroundOpacity: e.value.style.tooltip.backgroundOpacity,
|
|
669
|
-
position: e.value.style.tooltip.position,
|
|
670
|
-
offsetY: e.value.style.tooltip.offsetY,
|
|
671
|
-
parent: S.value,
|
|
672
|
-
content: X.value,
|
|
673
|
-
isCustom: e.value.style.tooltip.customFormat && typeof e.value.style.tooltip.customFormat == "function"
|
|
674
|
-
}, {
|
|
675
|
-
"tooltip-before": g(() => [
|
|
676
|
-
p(t.$slots, "tooltip-before", A(T({ ...q.value })), void 0, !0)
|
|
677
|
-
]),
|
|
678
|
-
"tooltip-after": g(() => [
|
|
679
|
-
p(t.$slots, "tooltip-after", A(T({ ...q.value })), void 0, !0)
|
|
680
|
-
]),
|
|
681
|
-
_: 3
|
|
682
|
-
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
|
|
683
|
-
L.value ? (s(), _(yt, {
|
|
684
|
-
key: 9,
|
|
685
|
-
hideDetails: "",
|
|
686
|
-
config: {
|
|
687
|
-
open: w.value.showTable,
|
|
688
|
-
maxHeight: 1e4,
|
|
689
|
-
body: {
|
|
690
|
-
backgroundColor: e.value.style.backgroundColor,
|
|
691
|
-
color: e.value.style.color
|
|
692
|
-
},
|
|
693
|
-
head: {
|
|
694
|
-
backgroundColor: e.value.style.backgroundColor,
|
|
695
|
-
color: e.value.style.color
|
|
696
|
-
}
|
|
697
|
-
}
|
|
698
|
-
}, {
|
|
699
|
-
content: g(() => [
|
|
700
|
-
(s(), _(vt, {
|
|
701
|
-
key: `table_${oe.value}`,
|
|
702
|
-
colNames: M.value.colNames,
|
|
703
|
-
head: M.value.head,
|
|
704
|
-
body: M.value.body,
|
|
705
|
-
config: M.value.config,
|
|
706
|
-
title: `${e.value.style.title.text}${e.value.style.title.subtitle.text ? ` : ${e.value.style.title.subtitle.text}` : ""}`,
|
|
707
|
-
onClose: a[3] || (a[3] = (l) => w.value.showTable = !1)
|
|
708
|
-
}, {
|
|
709
|
-
th: g(({ th: l }) => [
|
|
710
|
-
Ge(O(l), 1)
|
|
711
|
-
]),
|
|
712
|
-
td: g(({ td: l }) => [
|
|
713
|
-
r("div", { innerHTML: l }, null, 8, Ht)
|
|
714
|
-
]),
|
|
715
|
-
_: 1
|
|
716
|
-
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
717
|
-
]),
|
|
718
|
-
_: 1
|
|
719
|
-
}, 8, ["config"])) : d("", !0)
|
|
720
|
-
], 14, gt));
|
|
721
|
-
}
|
|
722
|
-
}, vl = /* @__PURE__ */ ft(Yt, [["__scopeId", "data-v-bec260db"]]);
|
|
723
|
-
export {
|
|
724
|
-
vl as default
|
|
725
|
-
};
|