vue-data-ui 3.2.8 → 3.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-Bb0bGghy.js → Arrow-DLi6NnGD.js} +1 -1
- package/dist/{BaseDraggableDialog-CHhZIht2.js → BaseDraggableDialog-CVGErydD.js} +2 -2
- package/dist/{BaseIcon-Bz-1GQhu.js → BaseIcon-eZbszQrv.js} +4 -3
- package/dist/{ColorPicker-B-WUqMoV.js → ColorPicker-BoPM4Ejg.js} +2 -2
- package/dist/{DataTable-BvjacRbw.js → DataTable-yAMEyP6y.js} +2 -2
- package/dist/{Legend-BpoFJ8fc.js → Legend-By4rru90.js} +2 -2
- package/dist/{NonSvgPenAndPaper-l9giyY1Z.js → NonSvgPenAndPaper-C7QqIewT.js} +3 -3
- package/dist/{PackageVersion-C40g0Rfc.js → PackageVersion-BfykJm_B.js} +1 -1
- package/dist/{PenAndPaper-CR8q353D.js → PenAndPaper-Bo-lMUik.js} +3 -3
- package/dist/{Shape-C_C_OmqR.js → Shape-BceHSLHf.js} +1 -1
- package/dist/{Slicer-BA2GhOmY.js → Slicer-Znzt0gSE.js} +2 -2
- package/dist/{SparkTooltip-Dz1PDE_h.js → SparkTooltip--YwqrrgZ.js} +1 -1
- package/dist/{Title-DG2nloSB.js → Title-Camz1Lce.js} +1 -1
- package/dist/{Tooltip-BOXz8skU.js → Tooltip-VOcQEHa4.js} +1 -1
- package/dist/{UserOptions-DsTgvAok.js → UserOptions-CSja1SGU.js} +168 -126
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{dom-to-png-BgvOdfyW.js → dom-to-png-DxyZSvDx.js} +1 -1
- package/dist/{img-DjWwQXVS.js → img-J2dLIr8Y.js} +1 -1
- package/dist/{lib-BEpWEyMm.js → lib-CEjkWSLj.js} +462 -446
- package/dist/{pdf-YD0ShN36.js → pdf-anN8VbM7.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +8 -1
- package/dist/{useAutoSizeLabelsInsideViewbox-BVJkib7z.js → useAutoSizeLabelsInsideViewbox-CovTrBjm.js} +1 -1
- package/dist/{useNestedProp-BOk-tPdu.js → useNestedProp-Ce3PwN8T.js} +291 -246
- package/dist/{usePrinter-w23K-ezx.js → usePrinter-DJ1iH-F_.js} +2 -2
- package/dist/useSvgExport-DrjCWun4.js +750 -0
- package/dist/vue-data-ui-j8Dnx_Ui.js +326 -0
- package/dist/vue-data-ui.js +68 -68
- package/dist/{vue-ui-3d-bar-Cf7zHemQ.js → vue-ui-3d-bar-Cml_eeEU.js} +358 -342
- package/dist/{vue-ui-accordion-CDIzGCG1.js → vue-ui-accordion-VTP418mC.js} +3 -3
- package/dist/{vue-ui-age-pyramid-T09D0LHr.js → vue-ui-age-pyramid-MULKSv5c.js} +228 -212
- package/dist/{vue-ui-annotator-3bUg-1Zy.js → vue-ui-annotator-CmwDyy9m.js} +7 -7
- package/dist/{vue-ui-bullet-DKgdFa2v.js → vue-ui-bullet-BHO5zu9m.js} +197 -179
- package/dist/{vue-ui-candlestick-g6PO_L_7.js → vue-ui-candlestick-B7EjAlSi.js} +278 -262
- package/dist/{vue-ui-carousel-table-Ch2xooE8.js → vue-ui-carousel-table-DXnYj0Gc.js} +4 -4
- package/dist/{vue-ui-chestnut-B-nzp0b6.js → vue-ui-chestnut-B1Usqda-.js} +425 -379
- package/dist/{vue-ui-chord-BqS8DoTd.js → vue-ui-chord-DgXH82Hg.js} +317 -299
- package/dist/{vue-ui-circle-pack-B1axDP9l.js → vue-ui-circle-pack-BQfaZFFz.js} +249 -233
- package/dist/{vue-ui-cursor-Detis-4Y.js → vue-ui-cursor-Dt8Zzw22.js} +2 -2
- package/dist/{vue-ui-dashboard-TXcw45j_.js → vue-ui-dashboard-C6xHAPp8.js} +67 -67
- package/dist/{vue-ui-digits-pW7YVqxy.js → vue-ui-digits-nKPRJ9Vz.js} +2 -2
- package/dist/{vue-ui-donut-evolution-BoVslTri.js → vue-ui-donut-evolution-D_CKlaay.js} +406 -384
- package/dist/{vue-ui-donut-BFpWEe2s.js → vue-ui-donut-swJu7UL2.js} +662 -645
- package/dist/{vue-ui-dumbbell-CRHvtmq9.js → vue-ui-dumbbell-siD31WFG.js} +295 -274
- package/dist/vue-ui-flow-BZCnqIs-.js +931 -0
- package/dist/{vue-ui-funnel-CKUlzitM.js → vue-ui-funnel-DmgcIRzW.js} +174 -158
- package/dist/{vue-ui-galaxy-DZqCAK9c.js → vue-ui-galaxy-C-zegxf9.js} +265 -252
- package/dist/{vue-ui-gauge-D3bPFF59.js → vue-ui-gauge-D6C8eUvP.js} +256 -240
- package/dist/{vue-ui-gizmo-oVLp367W.js → vue-ui-gizmo-iSYUVKlt.js} +3 -3
- package/dist/{vue-ui-heatmap-C1RctcPx.js → vue-ui-heatmap-RHDxexNf.js} +386 -365
- package/dist/{vue-ui-history-plot-CoQYOlF4.js → vue-ui-history-plot-4nwAd1qA.js} +307 -289
- package/dist/{vue-ui-kpi-BZX-tqIm.js → vue-ui-kpi-Dphnwumo.js} +3 -3
- package/dist/{vue-ui-mini-loader-hMqB-KQI.js → vue-ui-mini-loader-DFk9GZ5V.js} +2 -2
- package/dist/{vue-ui-molecule-D0Kr_w-v.js → vue-ui-molecule-BhisFSGQ.js} +176 -160
- package/dist/vue-ui-mood-radar-B8yHPdrV.js +876 -0
- package/dist/{vue-ui-nested-donuts-94Gu95Z9.js → vue-ui-nested-donuts-Bfp0oVSK.js} +541 -518
- package/dist/{vue-ui-onion-Dy_aTvGI.js → vue-ui-onion-f1B0W_oT.js} +318 -289
- package/dist/{vue-ui-parallel-coordinate-plot-D_oo5lQW.js → vue-ui-parallel-coordinate-plot-DcY-0R-7.js} +252 -233
- package/dist/{vue-ui-quadrant-CRYpRl_q.js → vue-ui-quadrant-DuzopA33.js} +294 -276
- package/dist/{vue-ui-quick-chart-B1s047tz.js → vue-ui-quick-chart-45Tm1UnC.js} +723 -685
- package/dist/{vue-ui-radar-DA7EuchK.js → vue-ui-radar-DDS405TF.js} +307 -282
- package/dist/{vue-ui-rating-z2bsnprP.js → vue-ui-rating-eKlTJch9.js} +2 -2
- package/dist/{vue-ui-relation-circle-DZ8IiUNu.js → vue-ui-relation-circle-BqXHJEvi.js} +146 -131
- package/dist/{vue-ui-ridgeline-5IWuJgs6.js → vue-ui-ridgeline-Lx7YOCRg.js} +320 -299
- package/dist/{vue-ui-rings-gY2f8mVf.js → vue-ui-rings-crjrV65X.js} +323 -310
- package/dist/{vue-ui-scatter-OLidvHlx.js → vue-ui-scatter-Bk4liS2c.js} +390 -372
- package/dist/{vue-ui-skeleton-BaysGsg0.js → vue-ui-skeleton-Pu9gPf97.js} +3 -3
- package/dist/{vue-ui-smiley-Dn2IR0oC.js → vue-ui-smiley-C4mhT7ZV.js} +2 -2
- package/dist/{vue-ui-spark-trend-gp5B9uF7.js → vue-ui-spark-trend-BmaybxJn.js} +3 -3
- package/dist/{vue-ui-sparkbar-8t63RYc7.js → vue-ui-sparkbar-DvhcXniz.js} +3 -3
- package/dist/{vue-ui-sparkgauge-BWSykUpn.js → vue-ui-sparkgauge-D4Brfset.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-BEjxKMG5.js → vue-ui-sparkhistogram-D5_lR__d.js} +4 -4
- package/dist/{vue-ui-sparkline-bFF-ZCCH.js → vue-ui-sparkline-DxNG5QQg.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-HtAlEtzK.js → vue-ui-sparkstackbar-BTFzo3fq.js} +3 -3
- package/dist/{vue-ui-stackbar-CUIWPgfk.js → vue-ui-stackbar-B8glHsE6.js} +355 -337
- package/dist/{vue-ui-strip-plot-DwS52yGc.js → vue-ui-strip-plot-C5Bro8-W.js} +368 -352
- package/dist/{vue-ui-table-BYqPx7k4.js → vue-ui-table-Ddu9yx2S.js} +5 -5
- package/dist/{vue-ui-table-heatmap-CRfjUoa1.js → vue-ui-table-heatmap-J29d8nds.js} +5 -5
- package/dist/{vue-ui-table-sparkline-Bvf0ZBOi.js → vue-ui-table-sparkline-D3tgrV_k.js} +4 -4
- package/dist/{vue-ui-thermometer-BB7cHec0.js → vue-ui-thermometer-BxQIZoXd.js} +148 -133
- package/dist/{vue-ui-timer-BVDKvC4v.js → vue-ui-timer-BwFlr_19.js} +5 -5
- package/dist/vue-ui-tiremarks-KwISwJS6.js +423 -0
- package/dist/{vue-ui-treemap-nGgRTw0l.js → vue-ui-treemap-C6PLDL2Y.js} +403 -373
- package/dist/{vue-ui-vertical-bar-BJOm2JQh.js → vue-ui-vertical-bar-CTmRo06n.js} +295 -260
- package/dist/{vue-ui-waffle-aCMPaHbw.js → vue-ui-waffle-BwOLL9aa.js} +396 -377
- package/dist/{vue-ui-wheel-D_q23eOk.js → vue-ui-wheel-KI9mkz8y.js} +196 -180
- package/dist/{vue-ui-word-cloud-C7TMR4Zq.js → vue-ui-word-cloud-DTyjx6X4.js} +233 -217
- package/dist/{vue-ui-world-DtMYYQ6T.js → vue-ui-world-C3QXAlC7.js} +344 -326
- package/dist/{vue-ui-xy-Dputm9QT.js → vue-ui-xy-b-CN-G4J.js} +1601 -1707
- package/dist/{vue-ui-xy-canvas-BCeQoXNM.js → vue-ui-xy-canvas-CdkE1NHd.js} +10 -10
- package/package.json +1 -1
- package/dist/vue-data-ui-BcRg499t.js +0 -325
- package/dist/vue-ui-flow-CKGjSZoj.js +0 -909
- package/dist/vue-ui-mood-radar-C6UCofDb.js +0 -853
- package/dist/vue-ui-tiremarks-CBVuu_Zi.js +0 -407
|
@@ -1,22 +1,23 @@
|
|
|
1
|
-
import { defineAsyncComponent as R, computed as
|
|
2
|
-
import { c as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import { u as
|
|
10
|
-
import { u as
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
|
|
1
|
+
import { defineAsyncComponent as R, computed as h, ref as r, toRefs as Gt, watch as te, shallowRef as Qe, onMounted as Xt, onBeforeUnmount as Ze, watchEffect as jt, nextTick as Ae, createElementBlock as i, openBlock as s, unref as u, normalizeStyle as Ce, normalizeClass as T, createBlock as N, createCommentVNode as p, createElementVNode as y, createVNode as _e, createSlots as et, withCtx as m, renderSlot as x, normalizeProps as B, guardReactiveProps as E, Fragment as V, renderList as M, toDisplayString as Y, resolveDynamicComponent as Yt, mergeProps as qt, createTextVNode as tt } from "vue";
|
|
2
|
+
import { c as Jt, t as Kt, B as le, o as lt, f as U, C as Qt, q, d as L, X as Zt, i as ae, s as el, D as at, x as tl, y as ll, z as al, A as ol } from "./lib-CEjkWSLj.js";
|
|
3
|
+
import { t as ot, u as sl } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as ul, a as st } from "./useNestedProp-Ce3PwN8T.js";
|
|
5
|
+
import { u as il } from "./usePrinter-DJ1iH-F_.js";
|
|
6
|
+
import { u as nl, B as rl } from "./BaseScanner-BgWxam9d.js";
|
|
7
|
+
import { u as vl } from "./useSvgExport-DrjCWun4.js";
|
|
8
|
+
import { u as dl } from "./useTimeLabels-BGFjWgrv.js";
|
|
9
|
+
import { u as cl } from "./useUserOptionState-BIvW1Kz7.js";
|
|
10
|
+
import { u as yl } from "./useChartAccessibility-9icAAmYg.js";
|
|
11
|
+
import { u as hl } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
12
|
+
import fl from "./img-J2dLIr8Y.js";
|
|
13
|
+
import gl from "./Title-Camz1Lce.js";
|
|
14
|
+
import { t as pl } from "./themes-Dw-dDudK.js";
|
|
15
|
+
import { S as bl } from "./Slicer-Znzt0gSE.js";
|
|
16
|
+
import { _ as ml } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
17
|
+
const xl = ["id"], kl = ["xmlns", "aria-label", "viewBox"], wl = ["x", "y", "width", "height"], Al = { key: 1 }, Cl = ["id"], _l = ["stop-color"], zl = ["stop-color"], $l = ["stop-color"], Sl = ["id"], Tl = ["stop-color"], Ll = ["stop-color"], Il = ["stop-color"], Rl = { key: 0 }, Fl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ol = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Dl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Pl = ["x", "y", "font-size", "fill", "font-weight"], Nl = ["transform", "text-anchor", "font-size", "fill", "font-weight"], Bl = ["transform", "text-anchor", "font-size", "fill", "font-weight"], El = ["x", "y", "width", "height", "fill", "rx"], Vl = { key: 0 }, Ml = ["cx", "cy", "r", "fill"], Ul = ["cx", "cy", "r", "fill"], Wl = { key: 1 }, Hl = ["x", "y", "width", "height", "rx", "fill"], Gl = ["x", "y", "width", "height", "fill", "rx"], Xl = ["x", "y", "height", "width", "fill", "rx"], jl = ["x", "y", "height", "width", "fill", "rx", "stroke", "stroke-width"], Yl = ["x", "y", "height", "width", "fill", "onMouseover", "onMouseleave", "onClick"], ql = {
|
|
17
18
|
key: 4,
|
|
18
19
|
class: "vue-data-ui-watermark"
|
|
19
|
-
},
|
|
20
|
+
}, Jl = ["innerHTML"], Kl = {
|
|
20
21
|
__name: "vue-ui-candlestick",
|
|
21
22
|
props: {
|
|
22
23
|
config: {
|
|
@@ -32,14 +33,14 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
32
33
|
}
|
|
33
34
|
}
|
|
34
35
|
},
|
|
35
|
-
setup(
|
|
36
|
-
const
|
|
37
|
-
...
|
|
36
|
+
setup(ut, { expose: it }) {
|
|
37
|
+
const nt = R(() => import("./BaseIcon-eZbszQrv.js")), rt = R(() => import("./Tooltip-VOcQEHa4.js")), vt = R(() => import("./vue-ui-accordion-VTP418mC.js")), dt = R(() => import("./DataTable-yAMEyP6y.js")), ct = R(() => import("./PenAndPaper-Bo-lMUik.js")), yt = R(() => import("./UserOptions-CSja1SGU.js")), ht = R(() => import("./PackageVersion-BfykJm_B.js")), ft = R(() => import("./BaseDraggableDialog-CVGErydD.js")), { vue_ui_candlestick: gt } = ul(), f = ut, oe = h(() => !!f.dataset && f.dataset.length), z = r(!1), se = r(null), A = r(Jt()), ue = r(!1), ie = r(""), ne = r(void 0), ze = r(0), $ = r(null), $e = r(null), Se = r(null), Te = r(null), Le = r(null), Ie = r(null), J = r(0), Re = r(0), Fe = r(0), re = r(null), H = r(null), G = r(null), ve = r(null), e = r(he()), { loading: S, FINAL_DATASET: C, manualLoading: de } = nl({
|
|
38
|
+
...Gt(f),
|
|
38
39
|
FINAL_CONFIG: e,
|
|
39
|
-
prepareConfig:
|
|
40
|
+
prepareConfig: he,
|
|
40
41
|
callback: () => {
|
|
41
42
|
Promise.resolve().then(async () => {
|
|
42
|
-
await
|
|
43
|
+
await be();
|
|
43
44
|
});
|
|
44
45
|
},
|
|
45
46
|
skeletonDataset: [
|
|
@@ -56,7 +57,7 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
56
57
|
[17304192e5, 890, 2330, 550, 1950, 3770],
|
|
57
58
|
[17330112e5, 1440, 3770, 890, 3200, 5100]
|
|
58
59
|
],
|
|
59
|
-
skeletonConfig:
|
|
60
|
+
skeletonConfig: Kt({
|
|
60
61
|
defaultConfig: e.value,
|
|
61
62
|
userConfig: {
|
|
62
63
|
useCssAnimation: !1,
|
|
@@ -97,23 +98,23 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
97
98
|
}
|
|
98
99
|
}
|
|
99
100
|
})
|
|
100
|
-
}), { userOptionsVisible: ce, setUserOptionsVisibility:
|
|
101
|
-
function
|
|
102
|
-
const t =
|
|
103
|
-
userConfig:
|
|
104
|
-
defaultConfig:
|
|
101
|
+
}), { userOptionsVisible: ce, setUserOptionsVisibility: Oe, keepUserOptionState: De } = cl({ config: e.value }), { svgRef: ye } = yl({ config: e.value.style.title });
|
|
102
|
+
function he() {
|
|
103
|
+
const t = st({
|
|
104
|
+
userConfig: f.config,
|
|
105
|
+
defaultConfig: gt
|
|
105
106
|
});
|
|
106
107
|
let a = {};
|
|
107
108
|
return t.theme ? a = {
|
|
108
|
-
...
|
|
109
|
-
userConfig:
|
|
109
|
+
...st({
|
|
110
|
+
userConfig: pl.vue_ui_candlestick[t.theme] || f.config,
|
|
110
111
|
defaultConfig: t
|
|
111
112
|
})
|
|
112
|
-
} : a = t,
|
|
113
|
+
} : a = t, f.config && le(f.config, "style.zoom.startIndex") ? a.style.zoom.startIndex = f.config.style.zoom.startIndex : a.style.zoom.startIndex = null, f.config && le(f.config, "style.zoom.endIndex") ? a.style.zoom.endIndex = f.config.style.zoom.endIndex : a.style.zoom.endIndex = null, f.config && le(f.config, "style.layout.grid.yAxis.scale.min") ? a.style.layout.grid.yAxis.scale.min = f.config.style.layout.grid.yAxis.scale.min : a.style.layout.grid.yAxis.scale.min = null, f.config && le(f.config, "style.layout.grid.yAxis.scale.max") ? a.style.layout.grid.yAxis.scale.max = f.config.style.layout.grid.yAxis.scale.max : a.style.layout.grid.yAxis.scale.max = null, a;
|
|
113
114
|
}
|
|
114
|
-
te(() =>
|
|
115
|
-
S.value || (e.value =
|
|
116
|
-
}, { deep: !0 }), te(() =>
|
|
115
|
+
te(() => f.config, (t) => {
|
|
116
|
+
S.value || (e.value = he()), ce.value = !e.value.userOptions.showOnChartHover, Pe(), J.value += 1, Fe.value += 1, Re.value += 1, k.value.showTable = e.value.table.show, k.value.showTooltip = e.value.style.tooltip.show;
|
|
117
|
+
}, { deep: !0 }), te(() => f.dataset, (t) => {
|
|
117
118
|
Array.isArray(t) && t.length > 0 && (de.value = !1), v.value.start = 0, v.value.end = t.length, J.value += 1;
|
|
118
119
|
}, { deep: !0 });
|
|
119
120
|
const c = r({
|
|
@@ -121,37 +122,37 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
121
122
|
width: e.value.style.width,
|
|
122
123
|
xAxisFontSize: e.value.style.layout.grid.xAxis.dataLabels.fontSize,
|
|
123
124
|
yAxisFontSize: e.value.style.layout.grid.yAxis.dataLabels.fontSize
|
|
124
|
-
}), I =
|
|
125
|
-
|
|
125
|
+
}), I = Qe(null), W = Qe(null);
|
|
126
|
+
Xt(() => {
|
|
126
127
|
Pe();
|
|
127
128
|
});
|
|
128
|
-
const F =
|
|
129
|
+
const F = h(() => !!e.value.debug);
|
|
129
130
|
function Pe() {
|
|
130
|
-
if (
|
|
131
|
+
if (lt(f.dataset) && (U({
|
|
131
132
|
componentName: "VueUiCandlestick",
|
|
132
133
|
type: "dataset",
|
|
133
134
|
debug: F.value
|
|
134
|
-
}), de.value = !0),
|
|
135
|
+
}), de.value = !0), lt(f.dataset) || (de.value = e.value.loading), setTimeout(() => {
|
|
135
136
|
z.value = !0;
|
|
136
137
|
}, 10), e.value.responsive) {
|
|
137
|
-
const a =
|
|
138
|
+
const a = ot(() => {
|
|
138
139
|
z.value = !1;
|
|
139
|
-
const { width: l, height: o } =
|
|
140
|
+
const { width: l, height: o } = sl({
|
|
140
141
|
chart: $.value,
|
|
141
|
-
title: e.value.style.title.text ?
|
|
142
|
-
slicer:
|
|
143
|
-
legend:
|
|
144
|
-
source:
|
|
145
|
-
noTitle:
|
|
142
|
+
title: e.value.style.title.text ? $e.value : null,
|
|
143
|
+
slicer: Te.value,
|
|
144
|
+
legend: Se.value,
|
|
145
|
+
source: Le.value,
|
|
146
|
+
noTitle: Ie.value
|
|
146
147
|
});
|
|
147
148
|
requestAnimationFrame(() => {
|
|
148
|
-
c.value.width = l, c.value.height = o - 12, e.value.responsiveProportionalSizing ? (c.value.xAxisFontSize =
|
|
149
|
+
c.value.width = l, c.value.height = o - 12, e.value.responsiveProportionalSizing ? (c.value.xAxisFontSize = at({
|
|
149
150
|
relator: Math.min(l, o),
|
|
150
151
|
adjuster: e.value.style.width,
|
|
151
152
|
source: e.value.style.layout.grid.xAxis.dataLabels.fontSize,
|
|
152
153
|
threshold: 6,
|
|
153
154
|
fallback: 6
|
|
154
|
-
}), c.value.yAxisFontSize =
|
|
155
|
+
}), c.value.yAxisFontSize = at({
|
|
155
156
|
relator: Math.min(l, o),
|
|
156
157
|
adjuster: e.value.style.width,
|
|
157
158
|
source: e.value.style.layout.grid.yAxis.dataLabels.fontSize,
|
|
@@ -164,59 +165,59 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
164
165
|
});
|
|
165
166
|
I.value && (W.value && I.value.unobserve(W.value), I.value.disconnect()), I.value = new ResizeObserver(a), W.value = $.value.parentNode, I.value.observe(W.value);
|
|
166
167
|
}
|
|
167
|
-
|
|
168
|
+
be();
|
|
168
169
|
}
|
|
169
|
-
|
|
170
|
+
Ze(() => {
|
|
170
171
|
I.value && (W.value && I.value.unobserve(W.value), I.value.disconnect());
|
|
171
172
|
});
|
|
172
|
-
const { isPrinting: Ne, isImaging: Be, generatePdf:
|
|
173
|
+
const { isPrinting: Ne, isImaging: Be, generatePdf: Ee, generateImage: Ve } = il({
|
|
173
174
|
elementId: `vue-ui-candlestick_${A.value}`,
|
|
174
175
|
fileName: e.value.style.title.text || "vue-ui-candlestick",
|
|
175
176
|
options: e.value.userOptions.print
|
|
176
|
-
}),
|
|
177
|
+
}), pt = h(() => e.value.userOptions.show && !e.value.style.title.text), k = r({
|
|
177
178
|
showTable: e.value.table.show,
|
|
178
179
|
showTooltip: e.value.style.tooltip.show
|
|
179
|
-
}),
|
|
180
|
-
|
|
180
|
+
}), fe = r(0), bt = ot((t) => {
|
|
181
|
+
fe.value = t;
|
|
181
182
|
}, 100);
|
|
182
|
-
|
|
183
|
+
jt((t) => {
|
|
183
184
|
const a = H.value;
|
|
184
185
|
if (!a) return;
|
|
185
186
|
const l = new ResizeObserver((o) => {
|
|
186
|
-
|
|
187
|
+
bt(o[0].contentRect.height);
|
|
187
188
|
});
|
|
188
189
|
l.observe(a), t(() => l.disconnect());
|
|
189
|
-
}),
|
|
190
|
-
|
|
190
|
+
}), Ze(() => {
|
|
191
|
+
fe.value = 0;
|
|
191
192
|
});
|
|
192
|
-
const Me =
|
|
193
|
+
const Me = h(() => {
|
|
193
194
|
let t = 0;
|
|
194
|
-
return H.value && (t =
|
|
195
|
+
return H.value && (t = fe.value + c.value.xAxisFontSize), t;
|
|
195
196
|
});
|
|
196
|
-
function
|
|
197
|
+
function mt() {
|
|
197
198
|
let t = e.value.style.layout.grid.yAxis.dataLabels.offsetX;
|
|
198
|
-
return re.value && (t = Array.from(re.value.querySelectorAll("text")).reduce((o,
|
|
199
|
-
const
|
|
200
|
-
return
|
|
199
|
+
return re.value && (t = Array.from(re.value.querySelectorAll("text")).reduce((o, b) => {
|
|
200
|
+
const g = b.getComputedTextLength();
|
|
201
|
+
return g > o ? g : o;
|
|
201
202
|
}, 0)), t + 13;
|
|
202
203
|
}
|
|
203
|
-
const n =
|
|
204
|
-
const { top: t, right: a, bottom: l, left: o } = e.value.style.layout.padding,
|
|
204
|
+
const n = h(() => {
|
|
205
|
+
const { top: t, right: a, bottom: l, left: o } = e.value.style.layout.padding, b = mt(), g = 12;
|
|
205
206
|
return {
|
|
206
|
-
top: t +
|
|
207
|
+
top: t + g,
|
|
207
208
|
right: c.value.width - a,
|
|
208
|
-
left: o +
|
|
209
|
+
left: o + b,
|
|
209
210
|
bottom: c.value.height - l - Me.value,
|
|
210
|
-
width: c.value.width - o - a -
|
|
211
|
-
height: c.value.height - t - l - Me.value -
|
|
211
|
+
width: c.value.width - o - a - b,
|
|
212
|
+
height: c.value.height - t - l - Me.value - g
|
|
212
213
|
};
|
|
213
|
-
}), X =
|
|
214
|
+
}), X = h(() => C.value.length), v = r({
|
|
214
215
|
start: 0,
|
|
215
216
|
end: X.value
|
|
216
|
-
}), Ue =
|
|
217
|
+
}), Ue = h(() => C.value.map((t, a) => ({
|
|
217
218
|
...t,
|
|
218
219
|
absoluteIndex: a
|
|
219
|
-
})).slice(v.value.start, v.value.end)),
|
|
220
|
+
})).slice(v.value.start, v.value.end)), ge = h(() => (C.value.forEach((t, a) => {
|
|
220
221
|
[null, void 0].includes(t[0]) && U({
|
|
221
222
|
componentName: "VueUiCandlestick",
|
|
222
223
|
type: "datasetAttribute",
|
|
@@ -262,13 +263,13 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
262
263
|
low: t[3],
|
|
263
264
|
last: t[4],
|
|
264
265
|
volume: t[5]
|
|
265
|
-
})))), d =
|
|
266
|
-
const t = e.value.style.layout.grid.yAxis.scale.max === null ? Math.max(...
|
|
266
|
+
})))), d = h(() => n.value.width / Ue.value.length), We = h(() => {
|
|
267
|
+
const t = e.value.style.layout.grid.yAxis.scale.max === null ? Math.max(...ge.value.map((l) => l.high)) : e.value.style.layout.grid.yAxis.scale.max, a = e.value.style.layout.grid.yAxis.scale.min === null ? 0 : e.value.style.layout.grid.yAxis.scale.min;
|
|
267
268
|
return {
|
|
268
269
|
max: t,
|
|
269
270
|
min: a
|
|
270
271
|
};
|
|
271
|
-
}), _ =
|
|
272
|
+
}), _ = h(() => Qt(We.value.min, We.value.max, e.value.style.layout.grid.yAxis.dataLabels.steps));
|
|
272
273
|
function K(t, a) {
|
|
273
274
|
return {
|
|
274
275
|
...t,
|
|
@@ -277,53 +278,53 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
277
278
|
value: q(t)
|
|
278
279
|
};
|
|
279
280
|
}
|
|
280
|
-
const w =
|
|
281
|
-
const l = K(t.open, a), o = K(t.high, a),
|
|
281
|
+
const w = h(() => ge.value.map((t, a) => {
|
|
282
|
+
const l = K(t.open, a), o = K(t.high, a), b = K(t.low, a), g = K(t.last, a), P = t.last > t.open;
|
|
282
283
|
return {
|
|
283
284
|
period: t.period,
|
|
284
285
|
open: l,
|
|
285
286
|
high: o,
|
|
286
|
-
low:
|
|
287
|
-
last:
|
|
287
|
+
low: b,
|
|
288
|
+
last: g,
|
|
288
289
|
volume: t.volume,
|
|
289
290
|
isBullish: P,
|
|
290
291
|
absoluteIndex: t.absoluteIndex
|
|
291
292
|
};
|
|
292
293
|
}));
|
|
293
|
-
function
|
|
294
|
+
function xt(t) {
|
|
294
295
|
return q((t - _.value.min) / (_.value.max - _.value.min));
|
|
295
296
|
}
|
|
296
|
-
const
|
|
297
|
-
y: n.value.bottom - n.value.height *
|
|
297
|
+
const kt = h(() => _.value.ticks.map((t) => ({
|
|
298
|
+
y: n.value.bottom - n.value.height * xt(t),
|
|
298
299
|
value: q(t)
|
|
299
|
-
}))),
|
|
300
|
+
}))), wt = h(() => ge.value.map((t) => t.period)), O = h(() => dl({
|
|
300
301
|
values: C.value.map((t) => t[0]),
|
|
301
302
|
maxDatapoints: C.value.length,
|
|
302
303
|
formatter: e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter,
|
|
303
304
|
start: v.value.start,
|
|
304
305
|
end: v.value.end
|
|
305
|
-
})), He =
|
|
306
|
+
})), He = h(() => e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? {
|
|
306
307
|
start: O.value.find((t) => t.absoluteIndex === v.value.start).text,
|
|
307
308
|
end: O.value.find((t) => t.absoluteIndex === v.value.end - 1).text
|
|
308
309
|
} : {
|
|
309
310
|
start: C.value[v.value.start] ? C.value[v.value.start][0] : C.value[0][0],
|
|
310
311
|
end: C.value[v.value.end - 1] ? C.value[v.value.end - 1][0] : C.value.at(-1)[0]
|
|
311
|
-
}),
|
|
312
|
-
function
|
|
312
|
+
}), pe = r(null);
|
|
313
|
+
function At(t, a) {
|
|
313
314
|
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: a, seriesIndex: t + v.value.start });
|
|
314
315
|
}
|
|
315
|
-
function
|
|
316
|
+
function Ct(t, a) {
|
|
316
317
|
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: a, seriesIndex: t + v.value.start }), ne.value = void 0, ue.value = !1;
|
|
317
318
|
}
|
|
318
|
-
function
|
|
319
|
-
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: a, seriesIndex: t + v.value.start }), ne.value = t,
|
|
319
|
+
function _t(t, a) {
|
|
320
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: a, seriesIndex: t + v.value.start }), ne.value = t, pe.value = {
|
|
320
321
|
datapoint: a,
|
|
321
322
|
seriesIndex: t,
|
|
322
323
|
series: w.value,
|
|
323
324
|
config: e.value
|
|
324
325
|
};
|
|
325
326
|
const l = e.value.style.tooltip.customFormat;
|
|
326
|
-
if (
|
|
327
|
+
if (al(l) && ol(() => l({
|
|
327
328
|
seriesIndex: t,
|
|
328
329
|
datapoint: a,
|
|
329
330
|
series: w.value,
|
|
@@ -337,79 +338,79 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
337
338
|
});
|
|
338
339
|
else if (e.value.style.tooltip.show) {
|
|
339
340
|
let o = "";
|
|
340
|
-
const { period:
|
|
341
|
+
const { period: b, open: g, high: P, low: ke, last: we, volume: ee, isBullish: Ke } = w.value[t], { period: Ql, open: Dt, high: Pt, low: Nt, last: Bt, volume: Et } = e.value.translations, Vt = e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? O.value[t].text : b;
|
|
341
342
|
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}"
|
|
342
|
-
fill="${e.value.style.layout.candle.gradient.show ?
|
|
343
|
-
const
|
|
343
|
+
fill="${e.value.style.layout.candle.gradient.show ? Ke ? `url(#bullish_gradient_${A.value})` : `url(#bearish_gradient_${A.value})` : Ke ? e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.colors.bearish}"/></svg>${Vt}</div>`, o += `${Et} : <b>${isNaN(ee) ? "-" : Number(ee.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}">`;
|
|
344
|
+
const Mt = L({
|
|
344
345
|
p: e.value.style.tooltip.prefix,
|
|
345
|
-
v:
|
|
346
|
+
v: g.value,
|
|
346
347
|
s: e.value.style.tooltip.suffix,
|
|
347
348
|
r: e.value.style.tooltip.roundingValue
|
|
348
349
|
});
|
|
349
|
-
o += `<div>${
|
|
350
|
-
const
|
|
350
|
+
o += `<div>${Dt}: <b>${Mt}</b></div>`;
|
|
351
|
+
const Ut = L({
|
|
351
352
|
p: e.value.style.tooltip.prefix,
|
|
352
353
|
v: P.value,
|
|
353
354
|
s: e.value.style.tooltip.suffix,
|
|
354
355
|
r: e.value.style.tooltip.roundingValue
|
|
355
356
|
});
|
|
356
|
-
o += `<div>${
|
|
357
|
-
const
|
|
357
|
+
o += `<div>${Pt}: <b>${Ut}</b></div>`;
|
|
358
|
+
const Wt = L({
|
|
358
359
|
p: e.value.style.tooltip.prefix,
|
|
359
|
-
v:
|
|
360
|
+
v: ke.value,
|
|
360
361
|
s: e.value.style.tooltip.suffix,
|
|
361
362
|
r: e.value.style.tooltip.roundingValue
|
|
362
363
|
});
|
|
363
|
-
o += `<div>${
|
|
364
|
-
const
|
|
364
|
+
o += `<div>${Nt}: <b>${Wt}</b></div>`;
|
|
365
|
+
const Ht = L({
|
|
365
366
|
p: e.value.style.tooltip.prefix,
|
|
366
|
-
v:
|
|
367
|
+
v: we.value,
|
|
367
368
|
s: e.value.style.tooltip.suffix,
|
|
368
369
|
r: e.value.style.tooltip.roundingValue
|
|
369
370
|
});
|
|
370
|
-
o += `<div>${
|
|
371
|
+
o += `<div>${Bt}: <b>${Ht}</b></div>`, o += "</div>", ie.value = `<div style="text-align:right">${o}</div>`;
|
|
371
372
|
}
|
|
372
373
|
ue.value = !0;
|
|
373
374
|
}
|
|
374
|
-
function
|
|
375
|
-
|
|
375
|
+
function zt() {
|
|
376
|
+
be();
|
|
376
377
|
}
|
|
377
378
|
const Ge = r(null);
|
|
378
|
-
async function
|
|
379
|
-
await
|
|
379
|
+
async function be() {
|
|
380
|
+
await Ae(), await Ae();
|
|
380
381
|
const { startIndex: t, endIndex: a } = e.value.style.zoom, l = Ge.value, o = X.value;
|
|
381
|
-
v.value = { start: 0, end: o }, (t != null || a != null) && l ? (t != null ? l.setStartValue(t) : (v.value.start = 0, l.setStartValue(0)), a != null ? l.setEndValue(
|
|
382
|
+
v.value = { start: 0, end: o }, (t != null || a != null) && l ? (t != null ? l.setStartValue(t) : (v.value.start = 0, l.setStartValue(0)), a != null ? l.setEndValue($t(a + 1)) : (v.value.end = o, l.setEndValue(o))) : (v.value = { start: 0, end: o }, J.value += 1);
|
|
382
383
|
}
|
|
383
|
-
function
|
|
384
|
+
function $t(t) {
|
|
384
385
|
const a = X.value;
|
|
385
386
|
return t > a ? a : 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;
|
|
386
387
|
}
|
|
387
|
-
function
|
|
388
|
-
|
|
389
|
-
const a = [e.value.translations.period, e.value.translations.open, e.value.translations.high, e.value.translations.low, e.value.translations.last, e.value.translations.volume], l = w.value.map((
|
|
390
|
-
e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? O.value[P].text :
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
]), o = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([a]).concat(l),
|
|
397
|
-
t ? t(
|
|
388
|
+
function me(t = null) {
|
|
389
|
+
Ae(() => {
|
|
390
|
+
const a = [e.value.translations.period, e.value.translations.open, e.value.translations.high, e.value.translations.low, e.value.translations.last, e.value.translations.volume], l = w.value.map((g, P) => [
|
|
391
|
+
e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? O.value[P].text : g.period,
|
|
392
|
+
g.open.value,
|
|
393
|
+
g.high.value,
|
|
394
|
+
g.low.value,
|
|
395
|
+
g.last.value,
|
|
396
|
+
g.volume
|
|
397
|
+
]), o = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([a]).concat(l), b = tl(o);
|
|
398
|
+
t ? t(b) : ll({ csvContent: b, title: e.value.style.title.text || "vue-ui-candlestick" });
|
|
398
399
|
});
|
|
399
400
|
}
|
|
400
|
-
const Q =
|
|
401
|
-
const t = w.value.map((o,
|
|
402
|
-
const
|
|
401
|
+
const Q = h(() => {
|
|
402
|
+
const t = w.value.map((o, b) => {
|
|
403
|
+
const g = e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? O.value[b].text : o.period, P = L({
|
|
403
404
|
p: e.value.table.td.prefix,
|
|
404
405
|
v: o.open.value,
|
|
405
406
|
s: e.value.table.td.suffix,
|
|
406
407
|
r: e.value.table.td.roundingValue
|
|
407
|
-
}),
|
|
408
|
+
}), ke = L({
|
|
408
409
|
p: e.value.table.td.prefix,
|
|
409
410
|
v: o.high.value,
|
|
410
411
|
s: e.value.table.td.suffix,
|
|
411
412
|
r: e.value.table.td.roundingValue
|
|
412
|
-
}),
|
|
413
|
+
}), we = L({
|
|
413
414
|
p: e.value.table.td.prefix,
|
|
414
415
|
v: o.low.value,
|
|
415
416
|
s: e.value.table.td.suffix,
|
|
@@ -421,10 +422,10 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
421
422
|
r: e.value.table.td.roundingValue
|
|
422
423
|
});
|
|
423
424
|
return [
|
|
424
|
-
`<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_${A.value}` : `url(#bearish_gradient_${A.value})` : o.isBullish ? e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.colors.bearish}"/></svg> ${
|
|
425
|
+
`<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_${A.value}` : `url(#bearish_gradient_${A.value})` : o.isBullish ? e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.colors.bearish}"/></svg> ${g}`,
|
|
425
426
|
P,
|
|
426
|
-
xe,
|
|
427
427
|
ke,
|
|
428
|
+
we,
|
|
428
429
|
ee,
|
|
429
430
|
`${isNaN(o.volume) ? "-" : o.volume.toLocaleString()}`
|
|
430
431
|
];
|
|
@@ -451,7 +452,7 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
451
452
|
return { head: l, body: t, config: a, colNames: l };
|
|
452
453
|
}), D = r(!1);
|
|
453
454
|
function Xe(t) {
|
|
454
|
-
D.value = t,
|
|
455
|
+
D.value = t, ze.value += 1;
|
|
455
456
|
}
|
|
456
457
|
function je() {
|
|
457
458
|
k.value.showTable = !k.value.showTable;
|
|
@@ -460,23 +461,23 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
460
461
|
k.value.showTooltip = !k.value.showTooltip;
|
|
461
462
|
}
|
|
462
463
|
const Z = r(!1);
|
|
463
|
-
function
|
|
464
|
+
function xe() {
|
|
464
465
|
Z.value = !Z.value;
|
|
465
466
|
}
|
|
466
|
-
async function
|
|
467
|
+
async function St({ scale: t = 2 } = {}) {
|
|
467
468
|
if (!$.value) return;
|
|
468
|
-
const { width: a, height: l } = $.value.getBoundingClientRect(), o = a / l, { imageUri:
|
|
469
|
+
const { width: a, height: l } = $.value.getBoundingClientRect(), o = a / l, { imageUri: b, base64: g } = await fl({ domElement: $.value, base64: !0, img: !0, scale: t });
|
|
469
470
|
return {
|
|
470
|
-
imageUri:
|
|
471
|
-
base64:
|
|
471
|
+
imageUri: b,
|
|
472
|
+
base64: g,
|
|
472
473
|
title: e.value.style.title.text,
|
|
473
474
|
width: a,
|
|
474
475
|
height: l,
|
|
475
476
|
aspectRatio: o
|
|
476
477
|
};
|
|
477
478
|
}
|
|
478
|
-
const
|
|
479
|
-
|
|
479
|
+
const Tt = h(() => c.value.width), Lt = h(() => c.value.height);
|
|
480
|
+
hl({
|
|
480
481
|
timeLabelsEls: H,
|
|
481
482
|
timeLabels: O,
|
|
482
483
|
slicer: v,
|
|
@@ -485,18 +486,18 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
485
486
|
autoRotatePath: ["style", "layout", "grid", "xAxis", "dataLabels", "autoRotate", "enable"],
|
|
486
487
|
isAutoSize: !1,
|
|
487
488
|
rotation: e.value.style.layout.grid.xAxis.dataLabels.autoRotate.angle,
|
|
488
|
-
width:
|
|
489
|
-
height:
|
|
489
|
+
width: Tt,
|
|
490
|
+
height: Lt
|
|
490
491
|
}), te(e, () => {
|
|
491
492
|
k.value = {
|
|
492
493
|
showTable: e.value.table.show,
|
|
493
494
|
showTooltip: e.value.style.tooltip.show
|
|
494
495
|
};
|
|
495
496
|
}, { immediate: !0 });
|
|
496
|
-
const j =
|
|
497
|
+
const j = h(() => {
|
|
497
498
|
const t = e.value.table.useDialog && !e.value.table.show, a = k.value.showTable;
|
|
498
499
|
return {
|
|
499
|
-
component: t ?
|
|
500
|
+
component: t ? ft : vt,
|
|
500
501
|
title: `${e.value.style.title.text}${e.value.style.title.subtitle.text ? `: ${e.value.style.title.subtitle.text}` : ""}`,
|
|
501
502
|
props: t ? {
|
|
502
503
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
@@ -529,47 +530,60 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
529
530
|
function qe() {
|
|
530
531
|
k.value.showTable = !1, ve.value && ve.value.setTableIconState(!1);
|
|
531
532
|
}
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
533
|
+
const It = h(() => e.value.style.backgroundColor), Rt = h(() => e.value.style.title), { exportSvg: Ft, getSvg: Ot } = vl({
|
|
534
|
+
svg: ye,
|
|
535
|
+
title: Rt,
|
|
536
|
+
backgroundColor: It
|
|
537
|
+
});
|
|
538
|
+
async function Je({ isCb: t }) {
|
|
539
|
+
if (t) {
|
|
540
|
+
const { blob: a, url: l, text: o, dataUrl: b } = await Ot();
|
|
541
|
+
e.value.userOptions.callbacks.svg({ blob: a, url: l, text: o, dataUrl: b });
|
|
542
|
+
} else
|
|
543
|
+
Ft();
|
|
544
|
+
}
|
|
545
|
+
return it({
|
|
546
|
+
getImage: St,
|
|
547
|
+
generatePdf: Ee,
|
|
548
|
+
generateCsv: me,
|
|
549
|
+
generateImage: Ve,
|
|
550
|
+
generateSvg: Je,
|
|
537
551
|
toggleTable: je,
|
|
538
552
|
toggleTooltip: Ye,
|
|
539
|
-
toggleAnnotator:
|
|
553
|
+
toggleAnnotator: xe,
|
|
540
554
|
toggleFullscreen: Xe
|
|
541
555
|
}), (t, a) => (s(), i("div", {
|
|
542
556
|
ref_key: "candlestickChart",
|
|
543
557
|
ref: $,
|
|
544
558
|
class: T(`vue-data-ui-component vue-ui-candlestick ${D.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
545
|
-
style:
|
|
559
|
+
style: Ce(`position:relative;font-family:${e.value.style.fontFamily}; text-align:center;background:${e.value.style.backgroundColor}; ${e.value.responsive ? "height: 100%" : ""}`),
|
|
546
560
|
id: `vue-ui-candlestick_${A.value}`,
|
|
547
|
-
onMouseenter: a[3] || (a[3] = () => u(
|
|
548
|
-
onMouseleave: a[4] || (a[4] = () => u(
|
|
561
|
+
onMouseenter: a[3] || (a[3] = () => u(Oe)(!0)),
|
|
562
|
+
onMouseleave: a[4] || (a[4] = () => u(Oe)(!1))
|
|
549
563
|
}, [
|
|
550
|
-
e.value.userOptions.buttons.annotator ? (s(), N(u(
|
|
564
|
+
e.value.userOptions.buttons.annotator ? (s(), N(u(ct), {
|
|
551
565
|
key: 0,
|
|
552
|
-
svgRef: u(
|
|
566
|
+
svgRef: u(ye),
|
|
553
567
|
backgroundColor: e.value.style.backgroundColor,
|
|
554
568
|
color: e.value.style.color,
|
|
555
569
|
active: Z.value,
|
|
556
|
-
onClose:
|
|
570
|
+
onClose: xe
|
|
557
571
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : p("", !0),
|
|
558
|
-
|
|
572
|
+
pt.value ? (s(), i("div", {
|
|
559
573
|
key: 1,
|
|
560
574
|
ref_key: "noTitle",
|
|
561
|
-
ref:
|
|
575
|
+
ref: Ie,
|
|
562
576
|
class: "vue-data-ui-no-title-space",
|
|
563
577
|
style: "height:36px; width: 100%;background:transparent"
|
|
564
578
|
}, null, 512)) : p("", !0),
|
|
565
579
|
e.value.style.title.text ? (s(), i("div", {
|
|
566
580
|
key: 2,
|
|
567
581
|
ref_key: "chartTitle",
|
|
568
|
-
ref:
|
|
582
|
+
ref: $e,
|
|
569
583
|
style: "width:100%;background:transparent"
|
|
570
584
|
}, [
|
|
571
|
-
(s(), N(
|
|
572
|
-
key: `title_${
|
|
585
|
+
(s(), N(gl, {
|
|
586
|
+
key: `title_${Fe.value}`,
|
|
573
587
|
config: {
|
|
574
588
|
title: {
|
|
575
589
|
cy: "candlestick-div-title",
|
|
@@ -582,10 +596,10 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
582
596
|
}
|
|
583
597
|
}, null, 8, ["config"]))
|
|
584
598
|
], 512)) : p("", !0),
|
|
585
|
-
e.value.userOptions.show && oe.value && (u(
|
|
599
|
+
e.value.userOptions.show && oe.value && (u(De) || u(ce)) ? (s(), N(u(yt), {
|
|
586
600
|
ref_key: "userOptionsRef",
|
|
587
601
|
ref: ve,
|
|
588
|
-
key: `user_options_${
|
|
602
|
+
key: `user_options_${ze.value}`,
|
|
589
603
|
backgroundColor: e.value.style.backgroundColor,
|
|
590
604
|
color: e.value.style.color,
|
|
591
605
|
isImaging: u(Be),
|
|
@@ -594,6 +608,7 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
594
608
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.tooltip.show,
|
|
595
609
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
596
610
|
hasImg: e.value.userOptions.buttons.img,
|
|
611
|
+
hasSvg: e.value.userOptions.buttons.svg,
|
|
597
612
|
hasXls: e.value.userOptions.buttons.csv,
|
|
598
613
|
hasTable: e.value.userOptions.buttons.table,
|
|
599
614
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
@@ -608,83 +623,84 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
608
623
|
printScale: e.value.userOptions.print.scale,
|
|
609
624
|
tableDialog: e.value.table.useDialog,
|
|
610
625
|
onToggleFullscreen: Xe,
|
|
611
|
-
onGeneratePdf: u(
|
|
612
|
-
onGenerateCsv:
|
|
613
|
-
onGenerateImage: u(
|
|
626
|
+
onGeneratePdf: u(Ee),
|
|
627
|
+
onGenerateCsv: me,
|
|
628
|
+
onGenerateImage: u(Ve),
|
|
629
|
+
onGenerateSvg: Je,
|
|
614
630
|
onToggleTable: je,
|
|
615
631
|
onToggleTooltip: Ye,
|
|
616
|
-
onToggleAnnotator:
|
|
617
|
-
style:
|
|
618
|
-
visibility: u(
|
|
632
|
+
onToggleAnnotator: xe,
|
|
633
|
+
style: Ce({
|
|
634
|
+
visibility: u(De) ? u(ce) ? "visible" : "hidden" : "visible"
|
|
619
635
|
})
|
|
620
|
-
},
|
|
636
|
+
}, et({ _: 2 }, [
|
|
621
637
|
t.$slots.menuIcon ? {
|
|
622
638
|
name: "menuIcon",
|
|
623
|
-
fn:
|
|
624
|
-
|
|
639
|
+
fn: m(({ isOpen: l, color: o }) => [
|
|
640
|
+
x(t.$slots, "menuIcon", B(E({ isOpen: l, color: o })), void 0, !0)
|
|
625
641
|
]),
|
|
626
642
|
key: "0"
|
|
627
643
|
} : void 0,
|
|
628
644
|
t.$slots.optionTooltip ? {
|
|
629
645
|
name: "optionTooltip",
|
|
630
|
-
fn:
|
|
631
|
-
|
|
646
|
+
fn: m(() => [
|
|
647
|
+
x(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
632
648
|
]),
|
|
633
649
|
key: "1"
|
|
634
650
|
} : void 0,
|
|
635
651
|
t.$slots.optionPdf ? {
|
|
636
652
|
name: "optionPdf",
|
|
637
|
-
fn:
|
|
638
|
-
|
|
653
|
+
fn: m(() => [
|
|
654
|
+
x(t.$slots, "optionPdf", {}, void 0, !0)
|
|
639
655
|
]),
|
|
640
656
|
key: "2"
|
|
641
657
|
} : void 0,
|
|
642
658
|
t.$slots.optionCsv ? {
|
|
643
659
|
name: "optionCsv",
|
|
644
|
-
fn:
|
|
645
|
-
|
|
660
|
+
fn: m(() => [
|
|
661
|
+
x(t.$slots, "optionCsv", {}, void 0, !0)
|
|
646
662
|
]),
|
|
647
663
|
key: "3"
|
|
648
664
|
} : void 0,
|
|
649
665
|
t.$slots.optionImg ? {
|
|
650
666
|
name: "optionImg",
|
|
651
|
-
fn:
|
|
652
|
-
|
|
667
|
+
fn: m(() => [
|
|
668
|
+
x(t.$slots, "optionImg", {}, void 0, !0)
|
|
653
669
|
]),
|
|
654
670
|
key: "4"
|
|
655
671
|
} : void 0,
|
|
656
672
|
t.$slots.optionTable ? {
|
|
657
673
|
name: "optionTable",
|
|
658
|
-
fn:
|
|
659
|
-
|
|
674
|
+
fn: m(() => [
|
|
675
|
+
x(t.$slots, "optionTable", {}, void 0, !0)
|
|
660
676
|
]),
|
|
661
677
|
key: "5"
|
|
662
678
|
} : void 0,
|
|
663
679
|
t.$slots.optionFullscreen ? {
|
|
664
680
|
name: "optionFullscreen",
|
|
665
|
-
fn:
|
|
666
|
-
|
|
681
|
+
fn: m(({ toggleFullscreen: l, isFullscreen: o }) => [
|
|
682
|
+
x(t.$slots, "optionFullscreen", B(E({ toggleFullscreen: l, isFullscreen: o })), void 0, !0)
|
|
667
683
|
]),
|
|
668
684
|
key: "6"
|
|
669
685
|
} : void 0,
|
|
670
686
|
t.$slots.optionAnnotator ? {
|
|
671
687
|
name: "optionAnnotator",
|
|
672
|
-
fn:
|
|
673
|
-
|
|
688
|
+
fn: m(({ toggleAnnotator: l, isAnnotator: o }) => [
|
|
689
|
+
x(t.$slots, "optionAnnotator", B(E({ toggleAnnotator: l, isAnnotator: o })), void 0, !0)
|
|
674
690
|
]),
|
|
675
691
|
key: "7"
|
|
676
692
|
} : void 0
|
|
677
|
-
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : p("", !0),
|
|
693
|
+
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : p("", !0),
|
|
678
694
|
(s(), i("svg", {
|
|
679
695
|
ref_key: "svgRef",
|
|
680
|
-
ref:
|
|
681
|
-
xmlns: u(
|
|
696
|
+
ref: ye,
|
|
697
|
+
xmlns: u(Zt),
|
|
682
698
|
"aria-label": e.value.style.title.text || "candlestick chart",
|
|
683
699
|
class: T({ "vue-data-ui-fullscreen--on": D.value, "vue-data-ui-fulscreen--off": !D.value }),
|
|
684
700
|
viewBox: `0 0 ${c.value.width <= 0 ? 10 : c.value.width} ${c.value.height <= 0 ? 10 : c.value.height}`,
|
|
685
|
-
style:
|
|
701
|
+
style: Ce(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.color}`)
|
|
686
702
|
}, [
|
|
687
|
-
|
|
703
|
+
_e(u(ht)),
|
|
688
704
|
t.$slots["chart-background"] ? (s(), i("foreignObject", {
|
|
689
705
|
key: 0,
|
|
690
706
|
x: n.value.left,
|
|
@@ -695,9 +711,9 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
695
711
|
pointerEvents: "none"
|
|
696
712
|
}
|
|
697
713
|
}, [
|
|
698
|
-
|
|
699
|
-
], 8,
|
|
700
|
-
w.value.length > 0 ? (s(), i("g",
|
|
714
|
+
x(t.$slots, "chart-background", {}, void 0, !0)
|
|
715
|
+
], 8, wl)) : p("", !0),
|
|
716
|
+
w.value.length > 0 ? (s(), i("g", Al, [
|
|
701
717
|
y("defs", null, [
|
|
702
718
|
y("linearGradient", {
|
|
703
719
|
id: `bearish_gradient_${A.value}`,
|
|
@@ -707,16 +723,16 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
707
723
|
y("stop", {
|
|
708
724
|
offset: "0%",
|
|
709
725
|
"stop-color": e.value.style.layout.candle.colors.bearish
|
|
710
|
-
}, null, 8,
|
|
726
|
+
}, null, 8, _l),
|
|
711
727
|
y("stop", {
|
|
712
728
|
offset: "50%",
|
|
713
729
|
"stop-color": `${u(ae)(e.value.style.layout.candle.colors.bearish, 0.02)}DE`
|
|
714
|
-
}, null, 8,
|
|
730
|
+
}, null, 8, zl),
|
|
715
731
|
y("stop", {
|
|
716
732
|
offset: "100%",
|
|
717
733
|
"stop-color": `${u(ae)(e.value.style.layout.candle.colors.bearish, 0.05)}66`
|
|
718
|
-
}, null, 8,
|
|
719
|
-
], 8,
|
|
734
|
+
}, null, 8, $l)
|
|
735
|
+
], 8, Cl),
|
|
720
736
|
y("linearGradient", {
|
|
721
737
|
id: `bullish_gradient_${A.value}`,
|
|
722
738
|
x2: "0%",
|
|
@@ -725,18 +741,18 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
725
741
|
y("stop", {
|
|
726
742
|
offset: "0%",
|
|
727
743
|
"stop-color": e.value.style.layout.candle.colors.bullish
|
|
728
|
-
}, null, 8,
|
|
744
|
+
}, null, 8, Tl),
|
|
729
745
|
y("stop", {
|
|
730
746
|
offset: "50%",
|
|
731
747
|
"stop-color": `${u(ae)(e.value.style.layout.candle.colors.bullish, 0.02)}DE`
|
|
732
|
-
}, null, 8,
|
|
748
|
+
}, null, 8, Ll),
|
|
733
749
|
y("stop", {
|
|
734
750
|
offset: "100%",
|
|
735
751
|
"stop-color": `${u(ae)(e.value.style.layout.candle.colors.bullish, 0.05)}66`
|
|
736
|
-
}, null, 8,
|
|
737
|
-
], 8,
|
|
752
|
+
}, null, 8, Il)
|
|
753
|
+
], 8, Sl)
|
|
738
754
|
]),
|
|
739
|
-
e.value.style.layout.grid.show ? (s(), i("g",
|
|
755
|
+
e.value.style.layout.grid.show ? (s(), i("g", Rl, [
|
|
740
756
|
y("line", {
|
|
741
757
|
x1: n.value.left,
|
|
742
758
|
x2: n.value.left,
|
|
@@ -745,7 +761,7 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
745
761
|
stroke: e.value.style.layout.grid.stroke,
|
|
746
762
|
"stroke-width": e.value.style.layout.grid.strokeWidth,
|
|
747
763
|
"stroke-linecap": "round"
|
|
748
|
-
}, null, 8,
|
|
764
|
+
}, null, 8, Fl),
|
|
749
765
|
y("line", {
|
|
750
766
|
x1: n.value.left,
|
|
751
767
|
x2: n.value.right,
|
|
@@ -754,14 +770,14 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
754
770
|
stroke: e.value.style.layout.grid.stroke,
|
|
755
771
|
"stroke-width": e.value.style.layout.grid.strokeWidth,
|
|
756
772
|
"stroke-linecap": "round"
|
|
757
|
-
}, null, 8,
|
|
773
|
+
}, null, 8, Ol)
|
|
758
774
|
])) : p("", !0),
|
|
759
775
|
e.value.style.layout.grid.yAxis.dataLabels.show ? (s(), i("g", {
|
|
760
776
|
key: 1,
|
|
761
777
|
ref_key: "scaleLabels",
|
|
762
778
|
ref: re
|
|
763
779
|
}, [
|
|
764
|
-
(s(!0), i(
|
|
780
|
+
(s(!0), i(V, null, M(kt.value, (l, o) => (s(), i("g", null, [
|
|
765
781
|
l.value >= _.value.min && l.value <= _.value.max ? (s(), i("line", {
|
|
766
782
|
key: 0,
|
|
767
783
|
x1: n.value.left,
|
|
@@ -771,7 +787,7 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
771
787
|
stroke: e.value.style.layout.grid.stroke,
|
|
772
788
|
"stroke-width": e.value.style.layout.grid.strokeWidth,
|
|
773
789
|
"stroke-linecap": "round"
|
|
774
|
-
}, null, 8,
|
|
790
|
+
}, null, 8, Dl)) : p("", !0),
|
|
775
791
|
l.value >= _.value.min && l.value <= _.value.max ? (s(), i("text", {
|
|
776
792
|
key: 1,
|
|
777
793
|
x: n.value.left - 8 + e.value.style.layout.grid.yAxis.dataLabels.offsetX,
|
|
@@ -785,7 +801,7 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
785
801
|
v: l.value,
|
|
786
802
|
s: e.value.style.layout.grid.yAxis.dataLabels.suffix,
|
|
787
803
|
r: e.value.style.layout.grid.yAxis.dataLabels.roundingValue
|
|
788
|
-
})), 9,
|
|
804
|
+
})), 9, Pl)) : p("", !0)
|
|
789
805
|
]))), 256))
|
|
790
806
|
], 512)) : p("", !0),
|
|
791
807
|
e.value.style.layout.grid.xAxis.dataLabels.show && !e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? (s(), i("g", {
|
|
@@ -793,7 +809,7 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
793
809
|
ref_key: "timeLabelsEls",
|
|
794
810
|
ref: H
|
|
795
811
|
}, [
|
|
796
|
-
(s(!0), i(
|
|
812
|
+
(s(!0), i(V, null, M(wt.value, (l, o) => (s(), i("g", null, [
|
|
797
813
|
y("text", {
|
|
798
814
|
class: "vue-data-ui-time-label",
|
|
799
815
|
transform: `translate(${n.value.left + d.value * o + d.value / 2}, ${n.value.bottom + c.value.xAxisFontSize * 1.5}), rotate(${e.value.style.layout.grid.xAxis.dataLabels.rotation})`,
|
|
@@ -801,7 +817,7 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
801
817
|
"font-size": c.value.xAxisFontSize,
|
|
802
818
|
fill: e.value.style.layout.grid.xAxis.dataLabels.color,
|
|
803
819
|
"font-weight": e.value.style.layout.grid.xAxis.dataLabels.bold ? "bold" : "normal"
|
|
804
|
-
}, Y(l), 9,
|
|
820
|
+
}, Y(l), 9, Nl)
|
|
805
821
|
]))), 256))
|
|
806
822
|
], 512)) : p("", !0),
|
|
807
823
|
e.value.style.layout.grid.xAxis.dataLabels.show && e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? (s(), i("g", {
|
|
@@ -809,7 +825,7 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
809
825
|
ref_key: "timeLabelsEls",
|
|
810
826
|
ref: H
|
|
811
827
|
}, [
|
|
812
|
-
(s(!0), i(
|
|
828
|
+
(s(!0), i(V, null, M(O.value, (l, o) => (s(), i("g", null, [
|
|
813
829
|
y("text", {
|
|
814
830
|
class: "vue-data-ui-time-label",
|
|
815
831
|
transform: `translate(${n.value.left + d.value * o + d.value / 2}, ${n.value.bottom + c.value.xAxisFontSize * 1.5}), rotate(${e.value.style.layout.grid.xAxis.dataLabels.rotation})`,
|
|
@@ -817,11 +833,11 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
817
833
|
"font-size": c.value.xAxisFontSize,
|
|
818
834
|
fill: e.value.style.layout.grid.xAxis.dataLabels.color,
|
|
819
835
|
"font-weight": e.value.style.layout.grid.xAxis.dataLabels.bold ? "bold" : "normal"
|
|
820
|
-
}, Y(l.text), 9,
|
|
836
|
+
}, Y(l.text), 9, Bl)
|
|
821
837
|
]))), 256))
|
|
822
838
|
], 512)) : p("", !0),
|
|
823
839
|
y("g", null, [
|
|
824
|
-
(s(!0), i(
|
|
840
|
+
(s(!0), i(V, null, M(w.value, (l, o) => (s(), i("g", null, [
|
|
825
841
|
y("rect", {
|
|
826
842
|
x: l.open.x - e.value.style.layout.wick.strokeWidth / 2,
|
|
827
843
|
y: l.high.y,
|
|
@@ -831,24 +847,24 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
831
847
|
stroke: "none",
|
|
832
848
|
rx: e.value.style.layout.wick.strokeWidth / 2,
|
|
833
849
|
class: T({ "vue-data-ui-transition": z.value && !u(S) })
|
|
834
|
-
}, null, 10,
|
|
835
|
-
e.value.style.layout.wick.extremity.shape === "circle" ? (s(), i("g",
|
|
850
|
+
}, null, 10, El),
|
|
851
|
+
e.value.style.layout.wick.extremity.shape === "circle" ? (s(), i("g", Vl, [
|
|
836
852
|
y("circle", {
|
|
837
853
|
cx: l.high.x,
|
|
838
854
|
cy: l.high.y,
|
|
839
855
|
r: e.value.style.layout.wick.extremity.size === "auto" ? d.value / 20 : e.value.style.layout.wick.extremity.size,
|
|
840
856
|
fill: e.value.style.layout.wick.extremity.color,
|
|
841
857
|
class: T({ "vue-data-ui-transition": z.value && !u(S) })
|
|
842
|
-
}, null, 10,
|
|
858
|
+
}, null, 10, Ml),
|
|
843
859
|
y("circle", {
|
|
844
860
|
cx: l.low.x,
|
|
845
861
|
cy: l.low.y,
|
|
846
862
|
r: e.value.style.layout.wick.extremity.size === "auto" ? d.value / 20 : e.value.style.layout.wick.extremity.size,
|
|
847
863
|
fill: e.value.style.layout.wick.extremity.color,
|
|
848
864
|
class: T({ "vue-data-ui-transition": z.value && !u(S) })
|
|
849
|
-
}, null, 10,
|
|
865
|
+
}, null, 10, Ul)
|
|
850
866
|
])) : p("", !0),
|
|
851
|
-
e.value.style.layout.wick.extremity.shape === "line" ? (s(), i("g",
|
|
867
|
+
e.value.style.layout.wick.extremity.shape === "line" ? (s(), i("g", Wl, [
|
|
852
868
|
y("rect", {
|
|
853
869
|
x: 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,
|
|
854
870
|
y: l.high.y - e.value.style.layout.wick.strokeWidth / 2,
|
|
@@ -858,7 +874,7 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
858
874
|
fill: e.value.style.layout.wick.extremity.color,
|
|
859
875
|
stroke: "none",
|
|
860
876
|
class: T({ "vue-data-ui-transition": z.value && !u(S) })
|
|
861
|
-
}, null, 10,
|
|
877
|
+
}, null, 10, Hl),
|
|
862
878
|
y("rect", {
|
|
863
879
|
x: 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,
|
|
864
880
|
y: l.low.y - e.value.style.layout.wick.strokeWidth / 2,
|
|
@@ -868,12 +884,12 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
868
884
|
stroke: "none",
|
|
869
885
|
rx: e.value.style.layout.wick.strokeWidth / 2,
|
|
870
886
|
class: T({ "vue-data-ui-transition": z.value && !u(S) })
|
|
871
|
-
}, null, 10,
|
|
887
|
+
}, null, 10, Gl)
|
|
872
888
|
])) : p("", !0)
|
|
873
889
|
]))), 256))
|
|
874
890
|
]),
|
|
875
891
|
y("g", null, [
|
|
876
|
-
(s(!0), i(
|
|
892
|
+
(s(!0), i(V, null, M(w.value, (l, o) => (s(), i("rect", {
|
|
877
893
|
x: l.open.x - d.value / 2 + d.value * (1 - e.value.style.layout.candle.widthRatio) / 2,
|
|
878
894
|
y: l.isBullish ? l.last.y : l.open.y,
|
|
879
895
|
height: Math.abs(l.last.y - l.open.y) <= 0 ? 1e-4 : Math.abs(l.last.y - l.open.y),
|
|
@@ -882,8 +898,8 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
882
898
|
rx: e.value.style.layout.candle.borderRadius,
|
|
883
899
|
stroke: "none",
|
|
884
900
|
class: T({ "vue-data-ui-transition": z.value && !u(S) })
|
|
885
|
-
}, null, 10,
|
|
886
|
-
(s(!0), i(
|
|
901
|
+
}, null, 10, Xl))), 256)),
|
|
902
|
+
(s(!0), i(V, null, M(w.value, (l, o) => (s(), i("rect", {
|
|
887
903
|
x: l.open.x - d.value / 2 + d.value * (1 - e.value.style.layout.candle.widthRatio) / 2,
|
|
888
904
|
y: l.isBullish ? l.last.y : l.open.y,
|
|
889
905
|
height: Math.abs(l.last.y - l.open.y) <= 0 ? 1e-4 : Math.abs(l.last.y - l.open.y),
|
|
@@ -895,32 +911,32 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
895
911
|
"stroke-linecap": "round",
|
|
896
912
|
"stroke-linejoin": "round",
|
|
897
913
|
class: T({ "vue-data-ui-transition": z.value && !u(S) })
|
|
898
|
-
}, null, 10,
|
|
914
|
+
}, null, 10, jl))), 256))
|
|
899
915
|
]),
|
|
900
916
|
y("g", null, [
|
|
901
|
-
(s(!0), i(
|
|
917
|
+
(s(!0), i(V, null, M(w.value, (l, o) => (s(), i("rect", {
|
|
902
918
|
x: n.value.left + o * d.value,
|
|
903
919
|
y: n.value.top,
|
|
904
920
|
height: n.value.height <= 0 ? 1e-4 : n.value.height,
|
|
905
921
|
width: d.value <= 0 ? 1e-4 : d.value,
|
|
906
|
-
fill: ne.value === o ? u(
|
|
907
|
-
onMouseover: () =>
|
|
908
|
-
onMouseleave: () =>
|
|
909
|
-
onClick: () =>
|
|
910
|
-
}, null, 40,
|
|
922
|
+
fill: ne.value === o ? u(el)(e.value.style.layout.selector.color, e.value.style.layout.selector.opacity) : "transparent",
|
|
923
|
+
onMouseover: () => _t(o, l),
|
|
924
|
+
onMouseleave: () => Ct(o, l),
|
|
925
|
+
onClick: () => At(o, l)
|
|
926
|
+
}, null, 40, Yl))), 256))
|
|
911
927
|
])
|
|
912
928
|
])) : p("", !0),
|
|
913
|
-
|
|
914
|
-
], 14,
|
|
915
|
-
t.$slots.watermark ? (s(), i("div",
|
|
916
|
-
|
|
929
|
+
x(t.$slots, "svg", { svg: c.value }, void 0, !0)
|
|
930
|
+
], 14, kl)),
|
|
931
|
+
t.$slots.watermark ? (s(), i("div", ql, [
|
|
932
|
+
x(t.$slots, "watermark", B(E({ isPrinting: u(Ne) || u(Be) })), void 0, !0)
|
|
917
933
|
])) : p("", !0),
|
|
918
934
|
e.value.style.zoom.show && oe.value ? (s(), i("div", {
|
|
919
935
|
key: 5,
|
|
920
936
|
ref_key: "chartSlicer",
|
|
921
|
-
ref:
|
|
937
|
+
ref: Te
|
|
922
938
|
}, [
|
|
923
|
-
(s(), N(
|
|
939
|
+
(s(), N(bl, {
|
|
924
940
|
ref_key: "slicerComponent",
|
|
925
941
|
ref: Ge,
|
|
926
942
|
key: `slicer_${J.value}`,
|
|
@@ -947,29 +963,29 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
947
963
|
enableSelectionDrag: e.value.style.zoom.enableSelectionDrag,
|
|
948
964
|
focusOnDrag: e.value.style.zoom.focusOnDrag,
|
|
949
965
|
focusRangeRatio: e.value.style.zoom.focusRangeRatio,
|
|
950
|
-
onReset:
|
|
966
|
+
onReset: zt
|
|
951
967
|
}, {
|
|
952
|
-
"reset-action":
|
|
953
|
-
|
|
968
|
+
"reset-action": m(({ reset: l }) => [
|
|
969
|
+
x(t.$slots, "reset-action", B(E({ reset: l })), void 0, !0)
|
|
954
970
|
]),
|
|
955
971
|
_: 3
|
|
956
972
|
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag", "focusOnDrag", "focusRangeRatio"]))
|
|
957
973
|
], 512)) : p("", !0),
|
|
958
974
|
y("div", {
|
|
959
975
|
ref_key: "chartLegend",
|
|
960
|
-
ref:
|
|
976
|
+
ref: Se
|
|
961
977
|
}, [
|
|
962
|
-
|
|
978
|
+
x(t.$slots, "legend", { legend: w.value }, void 0, !0)
|
|
963
979
|
], 512),
|
|
964
980
|
t.$slots.source ? (s(), i("div", {
|
|
965
981
|
key: 6,
|
|
966
982
|
ref_key: "source",
|
|
967
|
-
ref:
|
|
983
|
+
ref: Le,
|
|
968
984
|
dir: "auto"
|
|
969
985
|
}, [
|
|
970
|
-
|
|
986
|
+
x(t.$slots, "source", {}, void 0, !0)
|
|
971
987
|
], 512)) : p("", !0),
|
|
972
|
-
|
|
988
|
+
_e(u(rt), {
|
|
973
989
|
show: k.value.showTooltip && ue.value,
|
|
974
990
|
backgroundColor: e.value.style.tooltip.backgroundColor,
|
|
975
991
|
color: e.value.style.tooltip.color,
|
|
@@ -989,22 +1005,22 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
989
1005
|
smoothForce: e.value.style.tooltip.smoothForce,
|
|
990
1006
|
smoothSnapThreshold: e.value.style.tooltip.smoothSnapThreshold
|
|
991
1007
|
}, {
|
|
992
|
-
"tooltip-before":
|
|
993
|
-
|
|
1008
|
+
"tooltip-before": m(() => [
|
|
1009
|
+
x(t.$slots, "tooltip-before", B(E({ ...pe.value })), void 0, !0)
|
|
994
1010
|
]),
|
|
995
|
-
"tooltip-after":
|
|
996
|
-
|
|
1011
|
+
"tooltip-after": m(() => [
|
|
1012
|
+
x(t.$slots, "tooltip-after", B(E({ ...pe.value })), void 0, !0)
|
|
997
1013
|
]),
|
|
998
1014
|
_: 3
|
|
999
1015
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
1000
|
-
oe.value && e.value.userOptions.buttons.table ? (s(), N(
|
|
1016
|
+
oe.value && e.value.userOptions.buttons.table ? (s(), N(Yt(j.value.component), qt({ key: 7 }, j.value.props, {
|
|
1001
1017
|
ref_key: "tableUnit",
|
|
1002
1018
|
ref: G,
|
|
1003
1019
|
onClose: qe
|
|
1004
|
-
}),
|
|
1005
|
-
content:
|
|
1006
|
-
(s(), N(u(
|
|
1007
|
-
key: `table_${
|
|
1020
|
+
}), et({
|
|
1021
|
+
content: m(() => [
|
|
1022
|
+
(s(), N(u(dt), {
|
|
1023
|
+
key: `table_${Re.value}`,
|
|
1008
1024
|
colNames: Q.value.colNames,
|
|
1009
1025
|
head: Q.value.head,
|
|
1010
1026
|
body: Q.value.body,
|
|
@@ -1013,11 +1029,11 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
1013
1029
|
withCloseButton: !e.value.table.useDialog,
|
|
1014
1030
|
onClose: qe
|
|
1015
1031
|
}, {
|
|
1016
|
-
th:
|
|
1017
|
-
|
|
1032
|
+
th: m(({ th: l }) => [
|
|
1033
|
+
tt(Y(l), 1)
|
|
1018
1034
|
]),
|
|
1019
|
-
td:
|
|
1020
|
-
y("div", { innerHTML: l }, null, 8,
|
|
1035
|
+
td: m(({ td: l }) => [
|
|
1036
|
+
y("div", { innerHTML: l }, null, 8, Jl)
|
|
1021
1037
|
]),
|
|
1022
1038
|
_: 1
|
|
1023
1039
|
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
|
|
@@ -1026,20 +1042,20 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
1026
1042
|
}, [
|
|
1027
1043
|
e.value.table.useDialog ? {
|
|
1028
1044
|
name: "title",
|
|
1029
|
-
fn:
|
|
1030
|
-
|
|
1045
|
+
fn: m(() => [
|
|
1046
|
+
tt(Y(j.value.title), 1)
|
|
1031
1047
|
]),
|
|
1032
1048
|
key: "0"
|
|
1033
1049
|
} : void 0,
|
|
1034
1050
|
e.value.table.useDialog ? {
|
|
1035
1051
|
name: "actions",
|
|
1036
|
-
fn:
|
|
1052
|
+
fn: m(() => [
|
|
1037
1053
|
y("button", {
|
|
1038
1054
|
tabindex: "0",
|
|
1039
1055
|
class: "vue-ui-user-options-button",
|
|
1040
|
-
onClick: a[2] || (a[2] = (l) =>
|
|
1056
|
+
onClick: a[2] || (a[2] = (l) => me(e.value.userOptions.callbacks.csv))
|
|
1041
1057
|
}, [
|
|
1042
|
-
|
|
1058
|
+
_e(u(nt), {
|
|
1043
1059
|
name: "excel",
|
|
1044
1060
|
stroke: j.value.props.color
|
|
1045
1061
|
}, null, 8, ["stroke"])
|
|
@@ -1048,10 +1064,10 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
1048
1064
|
key: "1"
|
|
1049
1065
|
} : void 0
|
|
1050
1066
|
]), 1040)) : p("", !0),
|
|
1051
|
-
u(S) ? (s(), N(
|
|
1052
|
-
], 46,
|
|
1067
|
+
u(S) ? (s(), N(rl, { key: 8 })) : p("", !0)
|
|
1068
|
+
], 46, xl));
|
|
1053
1069
|
}
|
|
1054
|
-
},
|
|
1070
|
+
}, fa = /* @__PURE__ */ ml(Kl, [["__scopeId", "data-v-2c20d4e0"]]);
|
|
1055
1071
|
export {
|
|
1056
|
-
|
|
1072
|
+
fa as default
|
|
1057
1073
|
};
|