vue-data-ui 3.1.4 → 3.1.6
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-COJRk3pc.js → Arrow-DtlAIKPQ.js} +1 -1
- package/dist/{BaseDraggableDialog-BdAp3qr9.js → BaseDraggableDialog-BVZPPMT9.js} +2 -2
- package/dist/{BaseIcon-B5nQNkmd.js → BaseIcon-D_BjQBAR.js} +1 -1
- package/dist/{ColorPicker-CPqHwp1V.js → ColorPicker-BeJGNqJl.js} +2 -2
- package/dist/{DataTable-CzO3oHys.js → DataTable-IycMkaTU.js} +2 -2
- package/dist/{Legend-BQqnf4BN.js → Legend-D7l8BJ7z.js} +2 -2
- package/dist/{NonSvgPenAndPaper-D_g27Foy.js → NonSvgPenAndPaper-BK5M9Lt9.js} +3 -3
- package/dist/{PackageVersion-7CxQB-mx.js → PackageVersion-BtfT0hV9.js} +1 -1
- package/dist/{PenAndPaper-C8hICPzL.js → PenAndPaper-BdzDJYnr.js} +3 -3
- package/dist/{Shape-BEVQVI0z.js → Shape-DD3SLpa4.js} +1 -1
- package/dist/Slicer-DoGlWyq_.js +596 -0
- package/dist/{SparkTooltip-BSgzljwP.js → SparkTooltip-DAfofSes.js} +1 -1
- package/dist/{Title-nHtPyPd9.js → Title-DbQthJAs.js} +1 -1
- package/dist/Tooltip-DvtYLrX2.js +200 -0
- package/dist/{UserOptions-D3pVnvAB.js → UserOptions-Dd5XOrwq.js} +2 -2
- package/dist/{dom-to-png-CcijTM69.js → dom-to-png-j6qE-sAL.js} +1 -1
- package/dist/{img-Bl0o2UAr.js → img-DLgjML7h.js} +1 -1
- package/dist/{index-INqbM37s.js → index-C0wrF8hm.js} +6 -2
- package/dist/{pdf-BeeAdG2m.js → pdf-Csglybwj.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +4 -0
- package/dist/types/vue-data-ui.d.ts +4 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-DXkvjSDn.js → useAutoSizeLabelsInsideViewbox-Bj3DhGbZ.js} +1 -1
- package/dist/{useNestedProp-BKprMEaB.js → useNestedProp-Bg2FlIgI.js} +1 -1
- package/dist/{usePrinter-9WO5mDzj.js → usePrinter-C2jvouU0.js} +2 -2
- package/dist/{vue-data-ui-IMHc9Ta4.js → vue-data-ui-DaOijb0V.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-D-1TVi2s.js → vue-ui-3d-bar-BbW6NaRc.js} +8 -8
- package/dist/{vue-ui-accordion-CQZjxT5U.js → vue-ui-accordion-3JuSLBjV.js} +3 -3
- package/dist/{vue-ui-age-pyramid-B31NbBxS.js → vue-ui-age-pyramid-D94C1TOK.js} +44 -42
- package/dist/{vue-ui-annotator-BmFYtzWW.js → vue-ui-annotator-Jq_yw0h7.js} +2 -2
- package/dist/{vue-ui-bullet-BvMlcux3.js → vue-ui-bullet-ajwy7d-R.js} +7 -7
- package/dist/{vue-ui-candlestick-CCrNcgjy.js → vue-ui-candlestick-vMGbmNWA.js} +87 -85
- package/dist/{vue-ui-carousel-table-DrGj7_CL.js → vue-ui-carousel-table-DydTCm2Z.js} +4 -4
- package/dist/{vue-ui-chestnut-Dz0E-AxZ.js → vue-ui-chestnut-D6AP76wU.js} +37 -37
- package/dist/{vue-ui-chord-BxOzgPka.js → vue-ui-chord-Du8GJXPN.js} +11 -11
- package/dist/{vue-ui-circle-pack-CaWwzEF0.js → vue-ui-circle-pack-C-C3OGW_.js} +232 -228
- package/dist/{vue-ui-cursor-CG-oJITu.js → vue-ui-cursor-B70FlDqP.js} +2 -2
- package/dist/{vue-ui-dashboard-BFLQYXuo.js → vue-ui-dashboard-DrFCH7LP.js} +67 -67
- package/dist/{vue-ui-digits-BlZsS_qz.js → vue-ui-digits-CQy-vOC2.js} +2 -2
- package/dist/{vue-ui-donut-COXIRkz4.js → vue-ui-donut-D0RdN18d.js} +53 -51
- package/dist/{vue-ui-donut-evolution-DSGLD4z5.js → vue-ui-donut-evolution-naYIvk-b.js} +38 -38
- package/dist/{vue-ui-dumbbell-DgUPMy2W.js → vue-ui-dumbbell-D6b7WMTy.js} +84 -84
- package/dist/{vue-ui-flow-E8_jp5Qc.js → vue-ui-flow-Dh8_ii-s.js} +82 -80
- package/dist/{vue-ui-funnel-NMcBpYTQ.js → vue-ui-funnel-Ct4e9chO.js} +31 -31
- package/dist/{vue-ui-galaxy-Cay4NZ6o.js → vue-ui-galaxy-Dqklv14X.js} +49 -47
- package/dist/{vue-ui-gauge-DWOH8_Z2.js → vue-ui-gauge-D-vHj5J1.js} +7 -7
- package/dist/{vue-ui-gizmo-DtZu2tcU.js → vue-ui-gizmo-Cn0d1lVH.js} +3 -3
- package/dist/{vue-ui-heatmap-Dk5515tQ.js → vue-ui-heatmap-BpcoDwpi.js} +69 -67
- package/dist/{vue-ui-history-plot-X_jPheWu.js → vue-ui-history-plot-D8tmNUHo.js} +148 -146
- package/dist/{vue-ui-kpi-DwNsapLR.js → vue-ui-kpi-88Bguk6S.js} +3 -3
- package/dist/{vue-ui-mini-loader-uyATuTz5.js → vue-ui-mini-loader-VDpWxyls.js} +2 -2
- package/dist/{vue-ui-molecule-BOeCt8b2.js → vue-ui-molecule-Cn8yeJLZ.js} +63 -61
- package/dist/{vue-ui-mood-radar-BeHjc5Ty.js → vue-ui-mood-radar-DidC77_K.js} +9 -9
- package/dist/{vue-ui-nested-donuts-CPoaD2py.js → vue-ui-nested-donuts-D1EZ91Wm.js} +71 -69
- package/dist/{vue-ui-onion-C8H8i77u.js → vue-ui-onion-B_mir5Ax.js} +40 -37
- package/dist/{vue-ui-parallel-coordinate-plot-Cblzs6mf.js → vue-ui-parallel-coordinate-plot-DRbJyqiQ.js} +54 -52
- package/dist/{vue-ui-quadrant-BLYsMAey.js → vue-ui-quadrant-D7ihdCkd.js} +204 -202
- package/dist/{vue-ui-quick-chart-D-7cooqG.js → vue-ui-quick-chart-Dwc1xJtX.js} +63 -61
- package/dist/{vue-ui-radar-BBR8cYGx.js → vue-ui-radar-DhsgkGwF.js} +121 -119
- package/dist/{vue-ui-rating-Ccn8aUMA.js → vue-ui-rating-D_sWv7fR.js} +2 -2
- package/dist/{vue-ui-relation-circle-SKeIJXHs.js → vue-ui-relation-circle-CAvYwKpm.js} +7 -7
- package/dist/{vue-ui-ridgeline-CuHSBPB8.js → vue-ui-ridgeline-DuWQX2OI.js} +10 -10
- package/dist/{vue-ui-rings-SusI7pff.js → vue-ui-rings-BrBkOGZk.js} +162 -160
- package/dist/{vue-ui-scatter-Do8NoLng.js → vue-ui-scatter--kNBhPeG.js} +158 -156
- package/dist/{vue-ui-skeleton-FONviv9G.js → vue-ui-skeleton-B6Y0yxOn.js} +3 -3
- package/dist/{vue-ui-smiley-Bbt8bZxB.js → vue-ui-smiley-B7tZsNRS.js} +2 -2
- package/dist/{vue-ui-spark-trend-DB7RPBwQ.js → vue-ui-spark-trend-Dy5C9uny.js} +3 -3
- package/dist/{vue-ui-sparkbar-B8inUR_m.js → vue-ui-sparkbar-9NN07DOT.js} +3 -3
- package/dist/{vue-ui-sparkgauge-B4_YoY5M.js → vue-ui-sparkgauge-iV-u83Ie.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-DXSLenC7.js → vue-ui-sparkhistogram-X47TDKC2.js} +4 -4
- package/dist/{vue-ui-sparkline-BQ6Voxky.js → vue-ui-sparkline-C67Y3c7l.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-BgFJQKhq.js → vue-ui-sparkstackbar-Bzmq9peq.js} +36 -34
- package/dist/{vue-ui-stackbar-CBB-kH1C.js → vue-ui-stackbar-C0cn-5Sz.js} +15 -13
- package/dist/{vue-ui-strip-plot-3gWivNhR.js → vue-ui-strip-plot-D3StIxYT.js} +59 -57
- package/dist/{vue-ui-table-NJNp95Us.js → vue-ui-table-B-wP544v.js} +3 -3
- package/dist/{vue-ui-table-heatmap-CRzHSurU.js → vue-ui-table-heatmap-_qJwOiYG.js} +5 -5
- package/dist/{vue-ui-table-sparkline-DxGr1WNr.js → vue-ui-table-sparkline-C6MoeyKm.js} +4 -4
- package/dist/{vue-ui-thermometer-B6NudPzq.js → vue-ui-thermometer-BmYZiNK4.js} +7 -7
- package/dist/{vue-ui-timer-DO3oJlhi.js → vue-ui-timer-XeLnI_ia.js} +5 -5
- package/dist/{vue-ui-tiremarks-Dv39xDlL.js → vue-ui-tiremarks-CnCSAQiH.js} +6 -6
- package/dist/{vue-ui-treemap-D9jbccaW.js → vue-ui-treemap-Nd27H4H5.js} +41 -39
- package/dist/{vue-ui-vertical-bar-CxJNWczK.js → vue-ui-vertical-bar-Dd1XUvnp.js} +54 -52
- package/dist/{vue-ui-waffle-BMjk9LhH.js → vue-ui-waffle-Czg-z9KF.js} +56 -54
- package/dist/{vue-ui-wheel-CMACWJLJ.js → vue-ui-wheel-DfPu-QQM.js} +6 -6
- package/dist/{vue-ui-word-cloud-BbwSabN0.js → vue-ui-word-cloud-CB9_bPjO.js} +107 -104
- package/dist/{vue-ui-world-DCp2i-uy.js → vue-ui-world-Bo_NzzhJ.js} +12 -10
- package/dist/{vue-ui-xy-CRQHfrGQ.js → vue-ui-xy-Dc-o6Q3R.js} +1234 -1231
- package/dist/{vue-ui-xy-canvas-D-iziyn0.js → vue-ui-xy-canvas-D1Do33ar.js} +46 -44
- package/package.json +4 -2
- package/dist/Slicer-Cmc94zkG.js +0 -604
- package/dist/Tooltip-RCWHeRDV.js +0 -161
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { defineAsyncComponent as F, computed as
|
|
2
|
-
import { u as Gt, c as Xt, t as jt, b as Yt, C as le, o as tt, f as U, D as qt, h as q, i as
|
|
1
|
+
import { defineAsyncComponent as F, computed as p, ref as r, toRefs as Vt, watch as te, shallowRef as Ke, onMounted as Mt, onBeforeUnmount as Qe, watchEffect as Ut, nextTick as we, createElementBlock as i, openBlock as s, unref as u, normalizeStyle as Ae, normalizeClass as T, createBlock as D, createCommentVNode as g, createElementVNode as y, createVNode as Ce, createSlots as Ze, withCtx as b, renderSlot as m, normalizeProps as B, guardReactiveProps as E, Fragment as V, renderList as M, toDisplayString as Y, resolveDynamicComponent as Wt, mergeProps as Ht, createTextVNode as et } from "vue";
|
|
2
|
+
import { u as Gt, c as Xt, t as jt, b as Yt, C as le, o as tt, f as U, D as qt, h as q, i as L, X as Jt, x as ae, s as Kt, E as lt, v as Qt, w as Zt, y as el, z as tl } from "./index-C0wrF8hm.js";
|
|
3
3
|
import { t as at, u as ll } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as al } from "./usePrinter-
|
|
4
|
+
import { u as al } from "./usePrinter-C2jvouU0.js";
|
|
5
5
|
import { u as ol, B as sl } from "./BaseScanner-BgWxam9d.js";
|
|
6
|
-
import { u as ot } from "./useNestedProp-
|
|
6
|
+
import { u as ot } from "./useNestedProp-Bg2FlIgI.js";
|
|
7
7
|
import { u as ul } from "./useTimeLabels-BGFjWgrv.js";
|
|
8
8
|
import { u as il } from "./useUserOptionState-BIvW1Kz7.js";
|
|
9
9
|
import { u as nl } from "./useChartAccessibility-9icAAmYg.js";
|
|
10
10
|
import { u as rl } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
11
|
-
import vl from "./img-
|
|
12
|
-
import dl from "./Title-
|
|
13
|
-
import { S as cl } from "./Slicer-
|
|
11
|
+
import vl from "./img-DLgjML7h.js";
|
|
12
|
+
import dl from "./Title-DbQthJAs.js";
|
|
13
|
+
import { S as cl } from "./Slicer-DoGlWyq_.js";
|
|
14
14
|
import { _ as yl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
|
-
const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"],
|
|
15
|
+
const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], pl = ["x", "y", "width", "height"], gl = { key: 1 }, bl = ["id"], ml = ["stop-color"], xl = ["stop-color"], kl = ["stop-color"], wl = ["id"], Al = ["stop-color"], Cl = ["stop-color"], _l = ["stop-color"], $l = { key: 0 }, zl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Sl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Tl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ll = ["x", "y", "font-size", "fill", "font-weight"], Il = ["transform", "text-anchor", "font-size", "fill", "font-weight"], Fl = ["transform", "text-anchor", "font-size", "fill", "font-weight"], Rl = ["x", "y", "width", "height", "fill", "rx"], Ol = { key: 0 }, Pl = ["cx", "cy", "r", "fill"], Nl = ["cx", "cy", "r", "fill"], Dl = { key: 1 }, Bl = ["x", "y", "width", "height", "rx", "fill"], El = ["x", "y", "width", "height", "fill", "rx"], Vl = ["x", "y", "height", "width", "fill", "rx"], Ml = ["x", "y", "height", "width", "fill", "rx", "stroke", "stroke-width"], Ul = ["x", "y", "height", "width", "fill", "onMouseover", "onMouseleave", "onClick"], Wl = {
|
|
16
16
|
key: 4,
|
|
17
17
|
class: "vue-data-ui-watermark"
|
|
18
18
|
}, Hl = ["innerHTML"], Gl = {
|
|
@@ -32,13 +32,13 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
32
32
|
}
|
|
33
33
|
},
|
|
34
34
|
setup(st, { expose: ut }) {
|
|
35
|
-
const it = F(() => import("./BaseIcon-
|
|
35
|
+
const it = F(() => import("./BaseIcon-D_BjQBAR.js")), nt = F(() => import("./Tooltip-DvtYLrX2.js")), rt = F(() => import("./vue-ui-accordion-3JuSLBjV.js")), vt = F(() => import("./DataTable-IycMkaTU.js")), dt = F(() => import("./PenAndPaper-BdzDJYnr.js")), ct = F(() => import("./UserOptions-Dd5XOrwq.js")), yt = F(() => import("./PackageVersion-BtfT0hV9.js")), ht = F(() => import("./BaseDraggableDialog-BVZPPMT9.js")), { vue_ui_candlestick: ft } = Gt(), h = st, oe = p(() => !!h.dataset && h.dataset.length), $ = r(!1), se = r(null), A = r(Xt()), ue = r(!1), ie = r(""), ne = r(void 0), _e = r(0), z = r(null), $e = r(null), ze = r(null), Se = r(null), Te = r(null), Le = r(null), J = r(0), Ie = r(0), Fe = r(0), re = r(null), H = r(null), G = r(null), ve = r(null), e = r(ye()), { loading: S, FINAL_DATASET: C, manualLoading: de } = ol({
|
|
36
36
|
...Vt(h),
|
|
37
37
|
FINAL_CONFIG: e,
|
|
38
38
|
prepareConfig: ye,
|
|
39
39
|
callback: () => {
|
|
40
40
|
Promise.resolve().then(async () => {
|
|
41
|
-
await
|
|
41
|
+
await ge();
|
|
42
42
|
});
|
|
43
43
|
},
|
|
44
44
|
skeletonDataset: [
|
|
@@ -124,7 +124,7 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
124
124
|
Mt(() => {
|
|
125
125
|
Ne();
|
|
126
126
|
});
|
|
127
|
-
const R =
|
|
127
|
+
const R = p(() => !!e.value.debug);
|
|
128
128
|
function Ne() {
|
|
129
129
|
if (tt(h.dataset) && (U({
|
|
130
130
|
componentName: "VueUiCandlestick",
|
|
@@ -140,8 +140,8 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
140
140
|
title: e.value.style.title.text ? $e.value : null,
|
|
141
141
|
slicer: Se.value,
|
|
142
142
|
legend: ze.value,
|
|
143
|
-
source:
|
|
144
|
-
noTitle:
|
|
143
|
+
source: Te.value,
|
|
144
|
+
noTitle: Le.value
|
|
145
145
|
});
|
|
146
146
|
requestAnimationFrame(() => {
|
|
147
147
|
c.value.width = l, c.value.height = o - 12, e.value.responsiveProportionalSizing ? (c.value.xAxisFontSize = lt({
|
|
@@ -163,7 +163,7 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
163
163
|
});
|
|
164
164
|
I.value && (W.value && I.value.unobserve(W.value), I.value.disconnect()), I.value = new ResizeObserver(a), W.value = z.value.parentNode, I.value.observe(W.value);
|
|
165
165
|
}
|
|
166
|
-
|
|
166
|
+
ge();
|
|
167
167
|
}
|
|
168
168
|
Qe(() => {
|
|
169
169
|
I.value && (W.value && I.value.unobserve(W.value), I.value.disconnect());
|
|
@@ -172,23 +172,23 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
172
172
|
elementId: `vue-ui-candlestick_${A.value}`,
|
|
173
173
|
fileName: e.value.style.title.text || "vue-ui-candlestick",
|
|
174
174
|
options: e.value.userOptions.print
|
|
175
|
-
}),
|
|
175
|
+
}), pt = p(() => e.value.userOptions.show && !e.value.style.title.text), k = r({
|
|
176
176
|
showTable: e.value.table.show,
|
|
177
177
|
showTooltip: e.value.style.tooltip.show
|
|
178
|
-
}), he = r(0),
|
|
178
|
+
}), he = r(0), gt = at((t) => {
|
|
179
179
|
he.value = t;
|
|
180
180
|
}, 100);
|
|
181
181
|
Ut((t) => {
|
|
182
182
|
const a = H.value;
|
|
183
183
|
if (!a) return;
|
|
184
184
|
const l = new ResizeObserver((o) => {
|
|
185
|
-
|
|
185
|
+
gt(o[0].contentRect.height);
|
|
186
186
|
});
|
|
187
187
|
l.observe(a), t(() => l.disconnect());
|
|
188
188
|
}), Qe(() => {
|
|
189
189
|
he.value = 0;
|
|
190
190
|
});
|
|
191
|
-
const Me =
|
|
191
|
+
const Me = p(() => {
|
|
192
192
|
let t = 0;
|
|
193
193
|
return H.value && (t = he.value + c.value.xAxisFontSize), t;
|
|
194
194
|
});
|
|
@@ -199,7 +199,7 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
199
199
|
return f > o ? f : o;
|
|
200
200
|
}, 0)), t + 13;
|
|
201
201
|
}
|
|
202
|
-
const n =
|
|
202
|
+
const n = p(() => {
|
|
203
203
|
const { top: t, right: a, bottom: l, left: o } = e.value.style.layout.padding, x = bt(), f = 12;
|
|
204
204
|
return {
|
|
205
205
|
top: t + f,
|
|
@@ -209,13 +209,13 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
209
209
|
width: c.value.width - o - a - x,
|
|
210
210
|
height: c.value.height - t - l - Me.value - f
|
|
211
211
|
};
|
|
212
|
-
}), X =
|
|
212
|
+
}), X = p(() => C.value.length), v = r({
|
|
213
213
|
start: 0,
|
|
214
214
|
end: X.value
|
|
215
|
-
}), Ue =
|
|
215
|
+
}), Ue = p(() => C.value.map((t, a) => ({
|
|
216
216
|
...t,
|
|
217
217
|
absoluteIndex: a
|
|
218
|
-
})).slice(v.value.start, v.value.end)), fe =
|
|
218
|
+
})).slice(v.value.start, v.value.end)), fe = p(() => (C.value.forEach((t, a) => {
|
|
219
219
|
[null, void 0].includes(t[0]) && U({
|
|
220
220
|
componentName: "VueUiCandlestick",
|
|
221
221
|
type: "datasetAttribute",
|
|
@@ -261,13 +261,13 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
261
261
|
low: t[3],
|
|
262
262
|
last: t[4],
|
|
263
263
|
volume: t[5]
|
|
264
|
-
})))), d =
|
|
264
|
+
})))), d = p(() => n.value.width / Ue.value.length), We = p(() => {
|
|
265
265
|
const t = e.value.style.layout.grid.yAxis.scale.max === null ? Math.max(...fe.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;
|
|
266
266
|
return {
|
|
267
267
|
max: t,
|
|
268
268
|
min: a
|
|
269
269
|
};
|
|
270
|
-
}), _ =
|
|
270
|
+
}), _ = p(() => qt(We.value.min, We.value.max, e.value.style.layout.grid.yAxis.dataLabels.steps));
|
|
271
271
|
function K(t, a) {
|
|
272
272
|
return {
|
|
273
273
|
...t,
|
|
@@ -276,7 +276,7 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
276
276
|
value: q(t)
|
|
277
277
|
};
|
|
278
278
|
}
|
|
279
|
-
const w =
|
|
279
|
+
const w = p(() => fe.value.map((t, a) => {
|
|
280
280
|
const l = K(t.open, a), o = K(t.high, a), x = K(t.low, a), f = K(t.last, a), N = t.last > t.open;
|
|
281
281
|
return {
|
|
282
282
|
period: t.period,
|
|
@@ -292,22 +292,22 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
292
292
|
function mt(t) {
|
|
293
293
|
return q((t - _.value.min) / (_.value.max - _.value.min));
|
|
294
294
|
}
|
|
295
|
-
const xt =
|
|
295
|
+
const xt = p(() => _.value.ticks.map((t) => ({
|
|
296
296
|
y: n.value.bottom - n.value.height * mt(t),
|
|
297
297
|
value: q(t)
|
|
298
|
-
}))), kt =
|
|
298
|
+
}))), kt = p(() => fe.value.map((t) => t.period)), O = p(() => ul({
|
|
299
299
|
values: C.value.map((t) => t[0]),
|
|
300
300
|
maxDatapoints: C.value.length,
|
|
301
301
|
formatter: e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter,
|
|
302
302
|
start: v.value.start,
|
|
303
303
|
end: v.value.end
|
|
304
|
-
})), He =
|
|
304
|
+
})), He = p(() => e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? {
|
|
305
305
|
start: O.value.find((t) => t.absoluteIndex === v.value.start).text,
|
|
306
306
|
end: O.value.find((t) => t.absoluteIndex === v.value.end - 1).text
|
|
307
307
|
} : {
|
|
308
308
|
start: C.value[v.value.start] ? C.value[v.value.start][0] : C.value[0][0],
|
|
309
309
|
end: C.value[v.value.end - 1] ? C.value[v.value.end - 1][0] : C.value.at(-1)[0]
|
|
310
|
-
}),
|
|
310
|
+
}), pe = r(null);
|
|
311
311
|
function wt(t, a) {
|
|
312
312
|
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: a, seriesIndex: t + v.value.start });
|
|
313
313
|
}
|
|
@@ -315,7 +315,7 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
315
315
|
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: a, seriesIndex: t + v.value.start }), ne.value = void 0, ue.value = !1;
|
|
316
316
|
}
|
|
317
317
|
function Ct(t, a) {
|
|
318
|
-
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: a, seriesIndex: t + v.value.start }), ne.value = t,
|
|
318
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: a, seriesIndex: t + v.value.start }), ne.value = t, pe.value = {
|
|
319
319
|
datapoint: a,
|
|
320
320
|
seriesIndex: t,
|
|
321
321
|
series: w.value,
|
|
@@ -336,31 +336,31 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
336
336
|
});
|
|
337
337
|
else if (e.value.style.tooltip.show) {
|
|
338
338
|
let o = "";
|
|
339
|
-
const { period: x, open: f, high: N, low: xe, last: ke, volume: ee, isBullish: Je } = w.value[t], { period: Xl, open:
|
|
339
|
+
const { period: x, open: f, high: N, low: xe, last: ke, volume: ee, isBullish: Je } = w.value[t], { period: Xl, open: Lt, high: It, low: Ft, last: Rt, volume: Ot } = e.value.translations, Pt = e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? O.value[t].text : x;
|
|
340
340
|
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}"
|
|
341
341
|
fill="${e.value.style.layout.candle.gradient.show ? Je ? `url(#bullish_gradient_${A.value})` : `url(#bearish_gradient_${A.value})` : Je ? e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.colors.bearish}"/></svg>${Pt}</div>`, o += `${Ot} : <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}">`;
|
|
342
|
-
const Nt =
|
|
342
|
+
const Nt = L({
|
|
343
343
|
p: e.value.style.tooltip.prefix,
|
|
344
344
|
v: f.value,
|
|
345
345
|
s: e.value.style.tooltip.suffix,
|
|
346
346
|
r: e.value.style.tooltip.roundingValue
|
|
347
347
|
});
|
|
348
|
-
o += `<div>${
|
|
349
|
-
const Dt =
|
|
348
|
+
o += `<div>${Lt}: <b>${Nt}</b></div>`;
|
|
349
|
+
const Dt = L({
|
|
350
350
|
p: e.value.style.tooltip.prefix,
|
|
351
351
|
v: N.value,
|
|
352
352
|
s: e.value.style.tooltip.suffix,
|
|
353
353
|
r: e.value.style.tooltip.roundingValue
|
|
354
354
|
});
|
|
355
355
|
o += `<div>${It}: <b>${Dt}</b></div>`;
|
|
356
|
-
const Bt =
|
|
356
|
+
const Bt = L({
|
|
357
357
|
p: e.value.style.tooltip.prefix,
|
|
358
358
|
v: xe.value,
|
|
359
359
|
s: e.value.style.tooltip.suffix,
|
|
360
360
|
r: e.value.style.tooltip.roundingValue
|
|
361
361
|
});
|
|
362
362
|
o += `<div>${Ft}: <b>${Bt}</b></div>`;
|
|
363
|
-
const Et =
|
|
363
|
+
const Et = L({
|
|
364
364
|
p: e.value.style.tooltip.prefix,
|
|
365
365
|
v: ke.value,
|
|
366
366
|
s: e.value.style.tooltip.suffix,
|
|
@@ -371,10 +371,10 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
371
371
|
ue.value = !0;
|
|
372
372
|
}
|
|
373
373
|
function _t() {
|
|
374
|
-
|
|
374
|
+
ge();
|
|
375
375
|
}
|
|
376
376
|
const Ge = r(null);
|
|
377
|
-
async function
|
|
377
|
+
async function ge() {
|
|
378
378
|
await we(), await we();
|
|
379
379
|
const { startIndex: t, endIndex: a } = e.value.style.zoom, l = Ge.value, o = X.value;
|
|
380
380
|
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);
|
|
@@ -396,24 +396,24 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
396
396
|
t ? t(x) : Zt({ csvContent: x, title: e.value.style.title.text || "vue-ui-candlestick" });
|
|
397
397
|
});
|
|
398
398
|
}
|
|
399
|
-
const Q =
|
|
399
|
+
const Q = p(() => {
|
|
400
400
|
const t = w.value.map((o, x) => {
|
|
401
|
-
const f = e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? O.value[x].text : o.period, N =
|
|
401
|
+
const f = e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? O.value[x].text : o.period, N = L({
|
|
402
402
|
p: e.value.table.td.prefix,
|
|
403
403
|
v: o.open.value,
|
|
404
404
|
s: e.value.table.td.suffix,
|
|
405
405
|
r: e.value.table.td.roundingValue
|
|
406
|
-
}), xe =
|
|
406
|
+
}), xe = L({
|
|
407
407
|
p: e.value.table.td.prefix,
|
|
408
408
|
v: o.high.value,
|
|
409
409
|
s: e.value.table.td.suffix,
|
|
410
410
|
r: e.value.table.td.roundingValue
|
|
411
|
-
}), ke =
|
|
411
|
+
}), ke = L({
|
|
412
412
|
p: e.value.table.td.prefix,
|
|
413
413
|
v: o.low.value,
|
|
414
414
|
s: e.value.table.td.suffix,
|
|
415
415
|
r: e.value.table.td.roundingValue
|
|
416
|
-
}), ee =
|
|
416
|
+
}), ee = L({
|
|
417
417
|
p: e.value.table.td.prefix,
|
|
418
418
|
v: o.last.value,
|
|
419
419
|
s: e.value.table.td.suffix,
|
|
@@ -474,7 +474,7 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
474
474
|
aspectRatio: o
|
|
475
475
|
};
|
|
476
476
|
}
|
|
477
|
-
const St =
|
|
477
|
+
const St = p(() => c.value.width), Tt = p(() => c.value.height);
|
|
478
478
|
rl({
|
|
479
479
|
timeLabelsEls: H,
|
|
480
480
|
timeLabels: O,
|
|
@@ -485,14 +485,14 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
485
485
|
isAutoSize: !1,
|
|
486
486
|
rotation: e.value.style.layout.grid.xAxis.dataLabels.autoRotate.angle,
|
|
487
487
|
width: St,
|
|
488
|
-
height:
|
|
488
|
+
height: Tt
|
|
489
489
|
}), te(e, () => {
|
|
490
490
|
k.value = {
|
|
491
491
|
showTable: e.value.table.show,
|
|
492
492
|
showTooltip: e.value.style.tooltip.show
|
|
493
493
|
};
|
|
494
494
|
}, { immediate: !0 });
|
|
495
|
-
const j =
|
|
495
|
+
const j = p(() => {
|
|
496
496
|
const t = e.value.table.useDialog && !e.value.table.show, a = k.value.showTable;
|
|
497
497
|
return {
|
|
498
498
|
component: t ? ht : rt,
|
|
@@ -540,7 +540,7 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
540
540
|
}), (t, a) => (s(), i("div", {
|
|
541
541
|
ref_key: "candlestickChart",
|
|
542
542
|
ref: z,
|
|
543
|
-
class:
|
|
543
|
+
class: T(`vue-ui-candlestick ${P.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
544
544
|
style: Ae(`position:relative;font-family:${e.value.style.fontFamily}; text-align:center;background:${e.value.style.backgroundColor}; ${e.value.responsive ? "height: 100%" : ""}`),
|
|
545
545
|
id: `vue-ui-candlestick_${A.value}`,
|
|
546
546
|
onMouseenter: a[3] || (a[3] = () => u(Re)(!0)),
|
|
@@ -553,14 +553,14 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
553
553
|
color: e.value.style.color,
|
|
554
554
|
active: Z.value,
|
|
555
555
|
onClose: me
|
|
556
|
-
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) :
|
|
557
|
-
|
|
556
|
+
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : g("", !0),
|
|
557
|
+
pt.value ? (s(), i("div", {
|
|
558
558
|
key: 1,
|
|
559
559
|
ref_key: "noTitle",
|
|
560
|
-
ref:
|
|
560
|
+
ref: Le,
|
|
561
561
|
class: "vue-data-ui-no-title-space",
|
|
562
562
|
style: "height:36px; width: 100%;background:transparent"
|
|
563
|
-
}, null, 512)) :
|
|
563
|
+
}, null, 512)) : g("", !0),
|
|
564
564
|
e.value.style.title.text ? (s(), i("div", {
|
|
565
565
|
key: 2,
|
|
566
566
|
ref_key: "chartTitle",
|
|
@@ -580,7 +580,7 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
580
580
|
}
|
|
581
581
|
}
|
|
582
582
|
}, null, 8, ["config"]))
|
|
583
|
-
], 512)) :
|
|
583
|
+
], 512)) : g("", !0),
|
|
584
584
|
e.value.userOptions.show && oe.value && (u(Oe) || u(ce)) ? (s(), D(u(ct), {
|
|
585
585
|
ref_key: "userOptionsRef",
|
|
586
586
|
ref: ve,
|
|
@@ -673,13 +673,13 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
673
673
|
]),
|
|
674
674
|
key: "7"
|
|
675
675
|
} : void 0
|
|
676
|
-
]), 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"])) :
|
|
676
|
+
]), 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"])) : g("", !0),
|
|
677
677
|
(s(), i("svg", {
|
|
678
678
|
ref_key: "svgRef",
|
|
679
679
|
ref: Pe,
|
|
680
680
|
xmlns: u(Jt),
|
|
681
681
|
"aria-label": e.value.style.title.text || "candlestick chart",
|
|
682
|
-
class:
|
|
682
|
+
class: T({ "vue-data-ui-fullscreen--on": P.value, "vue-data-ui-fulscreen--off": !P.value }),
|
|
683
683
|
viewBox: `0 0 ${c.value.width <= 0 ? 10 : c.value.width} ${c.value.height <= 0 ? 10 : c.value.height}`,
|
|
684
684
|
style: Ae(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.color}`)
|
|
685
685
|
}, [
|
|
@@ -695,8 +695,8 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
695
695
|
}
|
|
696
696
|
}, [
|
|
697
697
|
m(t.$slots, "chart-background", {}, void 0, !0)
|
|
698
|
-
], 8,
|
|
699
|
-
w.value.length > 0 ? (s(), i("g",
|
|
698
|
+
], 8, pl)) : g("", !0),
|
|
699
|
+
w.value.length > 0 ? (s(), i("g", gl, [
|
|
700
700
|
y("defs", null, [
|
|
701
701
|
y("linearGradient", {
|
|
702
702
|
id: `bearish_gradient_${A.value}`,
|
|
@@ -754,7 +754,7 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
754
754
|
"stroke-width": e.value.style.layout.grid.strokeWidth,
|
|
755
755
|
"stroke-linecap": "round"
|
|
756
756
|
}, null, 8, Sl)
|
|
757
|
-
])) :
|
|
757
|
+
])) : g("", !0),
|
|
758
758
|
e.value.style.layout.grid.yAxis.dataLabels.show ? (s(), i("g", {
|
|
759
759
|
key: 1,
|
|
760
760
|
ref_key: "scaleLabels",
|
|
@@ -770,7 +770,7 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
770
770
|
stroke: e.value.style.layout.grid.stroke,
|
|
771
771
|
"stroke-width": e.value.style.layout.grid.strokeWidth,
|
|
772
772
|
"stroke-linecap": "round"
|
|
773
|
-
}, null, 8,
|
|
773
|
+
}, null, 8, Tl)) : g("", !0),
|
|
774
774
|
l.value >= _.value.min && l.value <= _.value.max ? (s(), i("text", {
|
|
775
775
|
key: 1,
|
|
776
776
|
x: n.value.left - 8 + e.value.style.layout.grid.yAxis.dataLabels.offsetX,
|
|
@@ -779,14 +779,14 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
779
779
|
"text-anchor": "end",
|
|
780
780
|
fill: e.value.style.layout.grid.yAxis.dataLabels.color,
|
|
781
781
|
"font-weight": e.value.style.layout.grid.yAxis.dataLabels.bold ? "bold" : "normal"
|
|
782
|
-
}, Y(u(
|
|
782
|
+
}, Y(u(L)({
|
|
783
783
|
p: e.value.style.layout.grid.yAxis.dataLabels.prefix,
|
|
784
784
|
v: l.value,
|
|
785
785
|
s: e.value.style.layout.grid.yAxis.dataLabels.suffix,
|
|
786
786
|
r: e.value.style.layout.grid.yAxis.dataLabels.roundingValue
|
|
787
|
-
})), 9,
|
|
787
|
+
})), 9, Ll)) : g("", !0)
|
|
788
788
|
]))), 256))
|
|
789
|
-
], 512)) :
|
|
789
|
+
], 512)) : g("", !0),
|
|
790
790
|
e.value.style.layout.grid.xAxis.dataLabels.show && !e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? (s(), i("g", {
|
|
791
791
|
key: 2,
|
|
792
792
|
ref_key: "timeLabelsEls",
|
|
@@ -802,7 +802,7 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
802
802
|
"font-weight": e.value.style.layout.grid.xAxis.dataLabels.bold ? "bold" : "normal"
|
|
803
803
|
}, Y(l), 9, Il)
|
|
804
804
|
]))), 256))
|
|
805
|
-
], 512)) :
|
|
805
|
+
], 512)) : g("", !0),
|
|
806
806
|
e.value.style.layout.grid.xAxis.dataLabels.show && e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? (s(), i("g", {
|
|
807
807
|
key: 3,
|
|
808
808
|
ref_key: "timeLabelsEls",
|
|
@@ -818,7 +818,7 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
818
818
|
"font-weight": e.value.style.layout.grid.xAxis.dataLabels.bold ? "bold" : "normal"
|
|
819
819
|
}, Y(l.text), 9, Fl)
|
|
820
820
|
]))), 256))
|
|
821
|
-
], 512)) :
|
|
821
|
+
], 512)) : g("", !0),
|
|
822
822
|
y("g", null, [
|
|
823
823
|
(s(!0), i(V, null, M(w.value, (l, o) => (s(), i("g", null, [
|
|
824
824
|
y("rect", {
|
|
@@ -829,7 +829,7 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
829
829
|
fill: e.value.style.layout.wick.stroke,
|
|
830
830
|
stroke: "none",
|
|
831
831
|
rx: e.value.style.layout.wick.strokeWidth / 2,
|
|
832
|
-
class:
|
|
832
|
+
class: T({ "vue-data-ui-transition": $.value && !u(S) })
|
|
833
833
|
}, null, 10, Rl),
|
|
834
834
|
e.value.style.layout.wick.extremity.shape === "circle" ? (s(), i("g", Ol, [
|
|
835
835
|
y("circle", {
|
|
@@ -837,16 +837,16 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
837
837
|
cy: l.high.y,
|
|
838
838
|
r: e.value.style.layout.wick.extremity.size === "auto" ? d.value / 20 : e.value.style.layout.wick.extremity.size,
|
|
839
839
|
fill: e.value.style.layout.wick.extremity.color,
|
|
840
|
-
class:
|
|
840
|
+
class: T({ "vue-data-ui-transition": $.value && !u(S) })
|
|
841
841
|
}, null, 10, Pl),
|
|
842
842
|
y("circle", {
|
|
843
843
|
cx: l.low.x,
|
|
844
844
|
cy: l.low.y,
|
|
845
845
|
r: e.value.style.layout.wick.extremity.size === "auto" ? d.value / 20 : e.value.style.layout.wick.extremity.size,
|
|
846
846
|
fill: e.value.style.layout.wick.extremity.color,
|
|
847
|
-
class:
|
|
847
|
+
class: T({ "vue-data-ui-transition": $.value && !u(S) })
|
|
848
848
|
}, null, 10, Nl)
|
|
849
|
-
])) :
|
|
849
|
+
])) : g("", !0),
|
|
850
850
|
e.value.style.layout.wick.extremity.shape === "line" ? (s(), i("g", Dl, [
|
|
851
851
|
y("rect", {
|
|
852
852
|
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,
|
|
@@ -856,7 +856,7 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
856
856
|
rx: e.value.style.layout.wick.strokeWidth / 2,
|
|
857
857
|
fill: e.value.style.layout.wick.extremity.color,
|
|
858
858
|
stroke: "none",
|
|
859
|
-
class:
|
|
859
|
+
class: T({ "vue-data-ui-transition": $.value && !u(S) })
|
|
860
860
|
}, null, 10, Bl),
|
|
861
861
|
y("rect", {
|
|
862
862
|
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,
|
|
@@ -866,9 +866,9 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
866
866
|
fill: e.value.style.layout.wick.extremity.color,
|
|
867
867
|
stroke: "none",
|
|
868
868
|
rx: e.value.style.layout.wick.strokeWidth / 2,
|
|
869
|
-
class:
|
|
869
|
+
class: T({ "vue-data-ui-transition": $.value && !u(S) })
|
|
870
870
|
}, null, 10, El)
|
|
871
|
-
])) :
|
|
871
|
+
])) : g("", !0)
|
|
872
872
|
]))), 256))
|
|
873
873
|
]),
|
|
874
874
|
y("g", null, [
|
|
@@ -880,7 +880,7 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
880
880
|
fill: e.value.style.layout.candle.gradient.underlayer,
|
|
881
881
|
rx: e.value.style.layout.candle.borderRadius,
|
|
882
882
|
stroke: "none",
|
|
883
|
-
class:
|
|
883
|
+
class: T({ "vue-data-ui-transition": $.value && !u(S) })
|
|
884
884
|
}, null, 10, Vl))), 256)),
|
|
885
885
|
(s(!0), i(V, null, M(w.value, (l, o) => (s(), i("rect", {
|
|
886
886
|
x: l.open.x - d.value / 2 + d.value * (1 - e.value.style.layout.candle.widthRatio) / 2,
|
|
@@ -893,7 +893,7 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
893
893
|
"stroke-width": e.value.style.layout.candle.strokeWidth,
|
|
894
894
|
"stroke-linecap": "round",
|
|
895
895
|
"stroke-linejoin": "round",
|
|
896
|
-
class:
|
|
896
|
+
class: T({ "vue-data-ui-transition": $.value && !u(S) })
|
|
897
897
|
}, null, 10, Ml))), 256))
|
|
898
898
|
]),
|
|
899
899
|
y("g", null, [
|
|
@@ -908,12 +908,12 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
908
908
|
onClick: () => wt(o, l)
|
|
909
909
|
}, null, 40, Ul))), 256))
|
|
910
910
|
])
|
|
911
|
-
])) :
|
|
911
|
+
])) : g("", !0),
|
|
912
912
|
m(t.$slots, "svg", { svg: c.value }, void 0, !0)
|
|
913
913
|
], 14, fl)),
|
|
914
914
|
t.$slots.watermark ? (s(), i("div", Wl, [
|
|
915
915
|
m(t.$slots, "watermark", B(E({ isPrinting: u(De) || u(Be) })), void 0, !0)
|
|
916
|
-
])) :
|
|
916
|
+
])) : g("", !0),
|
|
917
917
|
e.value.style.zoom.show && oe.value ? (s(), i("div", {
|
|
918
918
|
key: 5,
|
|
919
919
|
ref_key: "chartSlicer",
|
|
@@ -951,7 +951,7 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
951
951
|
]),
|
|
952
952
|
_: 3
|
|
953
953
|
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"]))
|
|
954
|
-
], 512)) :
|
|
954
|
+
], 512)) : g("", !0),
|
|
955
955
|
y("div", {
|
|
956
956
|
ref_key: "chartLegend",
|
|
957
957
|
ref: ze
|
|
@@ -961,11 +961,11 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
961
961
|
t.$slots.source ? (s(), i("div", {
|
|
962
962
|
key: 6,
|
|
963
963
|
ref_key: "source",
|
|
964
|
-
ref:
|
|
964
|
+
ref: Te,
|
|
965
965
|
dir: "auto"
|
|
966
966
|
}, [
|
|
967
967
|
m(t.$slots, "source", {}, void 0, !0)
|
|
968
|
-
], 512)) :
|
|
968
|
+
], 512)) : g("", !0),
|
|
969
969
|
Ce(u(nt), {
|
|
970
970
|
show: k.value.showTooltip && ue.value,
|
|
971
971
|
backgroundColor: e.value.style.tooltip.backgroundColor,
|
|
@@ -982,17 +982,19 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
982
982
|
isFullscreen: P.value,
|
|
983
983
|
isCustom: e.value.style.tooltip.customFormat && typeof e.value.style.tooltip.customFormat == "function",
|
|
984
984
|
smooth: e.value.style.tooltip.smooth,
|
|
985
|
-
backdropFilter: e.value.style.tooltip.backdropFilter
|
|
985
|
+
backdropFilter: e.value.style.tooltip.backdropFilter,
|
|
986
|
+
smoothForce: e.value.style.tooltip.smoothForce,
|
|
987
|
+
smoothSnapThreshold: e.value.style.tooltip.smoothSnapThreshold
|
|
986
988
|
}, {
|
|
987
989
|
"tooltip-before": b(() => [
|
|
988
|
-
m(t.$slots, "tooltip-before", B(E({ ...
|
|
990
|
+
m(t.$slots, "tooltip-before", B(E({ ...pe.value })), void 0, !0)
|
|
989
991
|
]),
|
|
990
992
|
"tooltip-after": b(() => [
|
|
991
|
-
m(t.$slots, "tooltip-after", B(E({ ...
|
|
993
|
+
m(t.$slots, "tooltip-after", B(E({ ...pe.value })), void 0, !0)
|
|
992
994
|
]),
|
|
993
995
|
_: 3
|
|
994
|
-
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter"]),
|
|
995
|
-
oe.value ? (s(), D(Wt(j.value.component), Ht({ key: 7 }, j.value.props, {
|
|
996
|
+
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
997
|
+
oe.value && e.value.userOptions.buttons.table ? (s(), D(Wt(j.value.component), Ht({ key: 7 }, j.value.props, {
|
|
996
998
|
ref_key: "tableUnit",
|
|
997
999
|
ref: G,
|
|
998
1000
|
onClose: qe
|
|
@@ -1042,11 +1044,11 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
1042
1044
|
]),
|
|
1043
1045
|
key: "1"
|
|
1044
1046
|
} : void 0
|
|
1045
|
-
]), 1040)) :
|
|
1046
|
-
u(S) ? (s(), D(sl, { key: 8 })) :
|
|
1047
|
+
]), 1040)) : g("", !0),
|
|
1048
|
+
u(S) ? (s(), D(sl, { key: 8 })) : g("", !0)
|
|
1047
1049
|
], 46, hl));
|
|
1048
1050
|
}
|
|
1049
|
-
}, ia = /* @__PURE__ */ yl(Gl, [["__scopeId", "data-v-
|
|
1051
|
+
}, ia = /* @__PURE__ */ yl(Gl, [["__scopeId", "data-v-5de3d075"]]);
|
|
1050
1052
|
export {
|
|
1051
1053
|
ia as default
|
|
1052
1054
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineAsyncComponent as ce, ref as n, useSlots as Se, onMounted as w, computed as R, watch as N, onBeforeUnmount as G, shallowRef as ze, nextTick as fe, createElementBlock as v, openBlock as r, unref as u, createElementVNode as U, createBlock as he, createCommentVNode as S, normalizeClass as Ee, normalizeStyle as h, createTextVNode as D, renderSlot as p, toDisplayString as X, Fragment as j, renderList as J, mergeProps as me, createSlots as He, withCtx as A, normalizeProps as ge, guardReactiveProps as be } from "vue";
|
|
2
|
-
import { u as Ne, c as Ue, o as K, f as Q, s as Ve, v as Me, w as Le } from "./index-
|
|
3
|
-
import { u as qe } from "./useNestedProp-
|
|
4
|
-
import { u as Ge } from "./usePrinter-
|
|
2
|
+
import { u as Ne, c as Ue, o as K, f as Q, s as Ve, v as Me, w as Le } from "./index-C0wrF8hm.js";
|
|
3
|
+
import { u as qe } from "./useNestedProp-Bg2FlIgI.js";
|
|
4
|
+
import { u as Ge } from "./usePrinter-C2jvouU0.js";
|
|
5
5
|
import { u as De } from "./useUserOptionState-BIvW1Kz7.js";
|
|
6
6
|
import { _ as Xe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
7
|
const je = ["id"], Je = ["height"], Ke = ["data-cell", "height"], Qe = {
|
|
@@ -25,7 +25,7 @@ const je = ["id"], Je = ["height"], Ke = ["data-cell", "height"], Qe = {
|
|
|
25
25
|
}
|
|
26
26
|
},
|
|
27
27
|
setup(T, { expose: ye }) {
|
|
28
|
-
const Ce = ce(() => import("./vue-ui-skeleton-
|
|
28
|
+
const Ce = ce(() => import("./vue-ui-skeleton-B6Y0yxOn.js")), $e = ce(() => import("./UserOptions-Dd5XOrwq.js")), { vue_ui_carousel_table: Te } = Ne(), i = T, V = n(Ue()), W = n(!1), O = n(!!i.dataset), ke = Se();
|
|
29
29
|
w(() => {
|
|
30
30
|
Y();
|
|
31
31
|
}), w(() => {
|