vue-data-ui 3.1.5 → 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-BFbcF5Sq.js → Arrow-DtlAIKPQ.js} +1 -1
- package/dist/{BaseDraggableDialog-BO4B1Kwa.js → BaseDraggableDialog-BVZPPMT9.js} +2 -2
- package/dist/{BaseIcon-BQQGRQ2U.js → BaseIcon-D_BjQBAR.js} +1 -1
- package/dist/{ColorPicker-d1kmGapq.js → ColorPicker-BeJGNqJl.js} +2 -2
- package/dist/{DataTable-D6voeZvO.js → DataTable-IycMkaTU.js} +2 -2
- package/dist/{Legend-nPGcCxG_.js → Legend-D7l8BJ7z.js} +2 -2
- package/dist/{NonSvgPenAndPaper-xRGRe41H.js → NonSvgPenAndPaper-BK5M9Lt9.js} +3 -3
- package/dist/{PackageVersion-BeStrsPr.js → PackageVersion-BtfT0hV9.js} +1 -1
- package/dist/{PenAndPaper-C6tiapdo.js → PenAndPaper-BdzDJYnr.js} +3 -3
- package/dist/{Shape-DBVq0fdK.js → Shape-DD3SLpa4.js} +1 -1
- package/dist/{Slicer-Duqm7KZK.js → Slicer-DoGlWyq_.js} +66 -67
- package/dist/{SparkTooltip-wNGmXZSx.js → SparkTooltip-DAfofSes.js} +1 -1
- package/dist/{Title-ydtId0LC.js → Title-DbQthJAs.js} +1 -1
- package/dist/{Tooltip-oeu9knGI.js → Tooltip-DvtYLrX2.js} +1 -1
- package/dist/{UserOptions-CnJxN2Vo.js → UserOptions-Dd5XOrwq.js} +2 -2
- package/dist/{dom-to-png-CMCYtLrX.js → dom-to-png-j6qE-sAL.js} +1 -1
- package/dist/{img-Neec0VVb.js → img-DLgjML7h.js} +1 -1
- package/dist/{index-BkfuZCRT.js → index-C0wrF8hm.js} +1 -1
- package/dist/{pdf-CpQ-dqJh.js → pdf-Csglybwj.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useAutoSizeLabelsInsideViewbox-DR2HExYc.js → useAutoSizeLabelsInsideViewbox-Bj3DhGbZ.js} +1 -1
- package/dist/{useNestedProp-BMzw9VUz.js → useNestedProp-Bg2FlIgI.js} +1 -1
- package/dist/{usePrinter-CEdg3j8S.js → usePrinter-C2jvouU0.js} +2 -2
- package/dist/{vue-data-ui-D5B7a84o.js → vue-data-ui-DaOijb0V.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-C8_Qu1rf.js → vue-ui-3d-bar-BbW6NaRc.js} +8 -8
- package/dist/{vue-ui-accordion-DFxAHGEZ.js → vue-ui-accordion-3JuSLBjV.js} +3 -3
- package/dist/{vue-ui-age-pyramid-D_kTImtX.js → vue-ui-age-pyramid-D94C1TOK.js} +8 -8
- package/dist/{vue-ui-annotator-B1vSlzfu.js → vue-ui-annotator-Jq_yw0h7.js} +2 -2
- package/dist/{vue-ui-bullet-VPchh2r2.js → vue-ui-bullet-ajwy7d-R.js} +7 -7
- package/dist/{vue-ui-candlestick-CB3bj7_-.js → vue-ui-candlestick-vMGbmNWA.js} +58 -58
- package/dist/{vue-ui-carousel-table-CUiSyrTY.js → vue-ui-carousel-table-DydTCm2Z.js} +4 -4
- package/dist/{vue-ui-chestnut-BE5ZEt1N.js → vue-ui-chestnut-D6AP76wU.js} +37 -37
- package/dist/{vue-ui-chord-DVSBY9ou.js → vue-ui-chord-Du8GJXPN.js} +11 -11
- package/dist/{vue-ui-circle-pack-BfDjZFaF.js → vue-ui-circle-pack-C-C3OGW_.js} +232 -228
- package/dist/{vue-ui-cursor-BIuc6nds.js → vue-ui-cursor-B70FlDqP.js} +2 -2
- package/dist/{vue-ui-dashboard-C7xIcrvD.js → vue-ui-dashboard-DrFCH7LP.js} +67 -67
- package/dist/{vue-ui-digits-C3mI-0Fg.js → vue-ui-digits-CQy-vOC2.js} +2 -2
- package/dist/{vue-ui-donut-BApz1ho5.js → vue-ui-donut-D0RdN18d.js} +10 -10
- package/dist/{vue-ui-donut-evolution-B2PJiYY9.js → vue-ui-donut-evolution-naYIvk-b.js} +38 -38
- package/dist/{vue-ui-dumbbell-DQjVvBH_.js → vue-ui-dumbbell-D6b7WMTy.js} +84 -84
- package/dist/{vue-ui-flow-COtJRNLE.js → vue-ui-flow-Dh8_ii-s.js} +55 -55
- package/dist/{vue-ui-funnel-BY2qeg-m.js → vue-ui-funnel-Ct4e9chO.js} +31 -31
- package/dist/{vue-ui-galaxy-3zec_QLi.js → vue-ui-galaxy-Dqklv14X.js} +31 -31
- package/dist/{vue-ui-gauge-CFUA5ORH.js → vue-ui-gauge-D-vHj5J1.js} +7 -7
- package/dist/{vue-ui-gizmo-CUPFU8GE.js → vue-ui-gizmo-Cn0d1lVH.js} +3 -3
- package/dist/{vue-ui-heatmap-DakytdCv.js → vue-ui-heatmap-BpcoDwpi.js} +10 -10
- package/dist/{vue-ui-history-plot-DnSB7au4.js → vue-ui-history-plot-D8tmNUHo.js} +88 -88
- package/dist/{vue-ui-kpi-UmcKQftv.js → vue-ui-kpi-88Bguk6S.js} +3 -3
- package/dist/{vue-ui-mini-loader-Bl8GHasa.js → vue-ui-mini-loader-VDpWxyls.js} +2 -2
- package/dist/{vue-ui-molecule-BZrmSVps.js → vue-ui-molecule-Cn8yeJLZ.js} +8 -8
- package/dist/{vue-ui-mood-radar-CVM8vl5N.js → vue-ui-mood-radar-DidC77_K.js} +9 -9
- package/dist/{vue-ui-nested-donuts-LTzijeVK.js → vue-ui-nested-donuts-D1EZ91Wm.js} +42 -42
- package/dist/{vue-ui-onion-aHCc3r7L.js → vue-ui-onion-B_mir5Ax.js} +12 -11
- package/dist/{vue-ui-parallel-coordinate-plot-0xXe6A-6.js → vue-ui-parallel-coordinate-plot-DRbJyqiQ.js} +10 -10
- package/dist/{vue-ui-quadrant-BlM9WNN7.js → vue-ui-quadrant-D7ihdCkd.js} +10 -10
- package/dist/{vue-ui-quick-chart-CJ2Wdln9.js → vue-ui-quick-chart-Dwc1xJtX.js} +6 -6
- package/dist/{vue-ui-radar-Cgnooz7-.js → vue-ui-radar-DhsgkGwF.js} +10 -10
- package/dist/{vue-ui-rating-DF71ymNG.js → vue-ui-rating-D_sWv7fR.js} +2 -2
- package/dist/{vue-ui-relation-circle-DsuEL1gY.js → vue-ui-relation-circle-CAvYwKpm.js} +7 -7
- package/dist/{vue-ui-ridgeline-DxP8uxgx.js → vue-ui-ridgeline-DuWQX2OI.js} +10 -10
- package/dist/{vue-ui-rings-C4hKgrft.js → vue-ui-rings-BrBkOGZk.js} +10 -10
- package/dist/{vue-ui-scatter-B_SzTSE5.js → vue-ui-scatter--kNBhPeG.js} +10 -10
- package/dist/{vue-ui-skeleton-DCAlHSMV.js → vue-ui-skeleton-B6Y0yxOn.js} +3 -3
- package/dist/{vue-ui-smiley-B_JFtrl6.js → vue-ui-smiley-B7tZsNRS.js} +2 -2
- package/dist/{vue-ui-spark-trend-CC7q1UbE.js → vue-ui-spark-trend-Dy5C9uny.js} +3 -3
- package/dist/{vue-ui-sparkbar-C2YRX4mJ.js → vue-ui-sparkbar-9NN07DOT.js} +3 -3
- package/dist/{vue-ui-sparkgauge-BO4c3j-8.js → vue-ui-sparkgauge-iV-u83Ie.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-BuGOHT9h.js → vue-ui-sparkhistogram-X47TDKC2.js} +4 -4
- package/dist/{vue-ui-sparkline-hOyPCIt8.js → vue-ui-sparkline-C67Y3c7l.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-DhSc-U8u.js → vue-ui-sparkstackbar-Bzmq9peq.js} +3 -3
- package/dist/{vue-ui-stackbar-VdBWv1wm.js → vue-ui-stackbar-C0cn-5Sz.js} +11 -11
- package/dist/{vue-ui-strip-plot-CBj5ntWM.js → vue-ui-strip-plot-D3StIxYT.js} +9 -9
- package/dist/{vue-ui-table-BItmKbvF.js → vue-ui-table-B-wP544v.js} +3 -3
- package/dist/{vue-ui-table-heatmap-DziHVKba.js → vue-ui-table-heatmap-_qJwOiYG.js} +5 -5
- package/dist/{vue-ui-table-sparkline-CpWDqm7q.js → vue-ui-table-sparkline-C6MoeyKm.js} +4 -4
- package/dist/{vue-ui-thermometer-CWt0q_Tu.js → vue-ui-thermometer-BmYZiNK4.js} +7 -7
- package/dist/{vue-ui-timer-BIv2sfQA.js → vue-ui-timer-XeLnI_ia.js} +5 -5
- package/dist/{vue-ui-tiremarks-BE_VWjK-.js → vue-ui-tiremarks-CnCSAQiH.js} +6 -6
- package/dist/{vue-ui-treemap-2AIbDpTo.js → vue-ui-treemap-Nd27H4H5.js} +10 -10
- package/dist/{vue-ui-vertical-bar-CP-XFVV5.js → vue-ui-vertical-bar-Dd1XUvnp.js} +50 -50
- package/dist/{vue-ui-waffle-CewP8k-W.js → vue-ui-waffle-Czg-z9KF.js} +32 -32
- package/dist/{vue-ui-wheel-Ik8FoLfz.js → vue-ui-wheel-DfPu-QQM.js} +6 -6
- package/dist/{vue-ui-word-cloud-CEEc5ep_.js → vue-ui-word-cloud-CB9_bPjO.js} +38 -38
- package/dist/{vue-ui-world-CuwXMI3D.js → vue-ui-world-Bo_NzzhJ.js} +8 -8
- package/dist/{vue-ui-xy-Bsh2OBHp.js → vue-ui-xy-Dc-o6Q3R.js} +944 -938
- package/dist/{vue-ui-xy-canvas-CKzjhhNg.js → vue-ui-xy-canvas-D1Do33ar.js} +12 -12
- package/package.json +4 -2
|
@@ -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 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-
|
|
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",
|
|
@@ -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,
|
|
@@ -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,7 +396,7 @@ 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
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,
|
|
@@ -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,
|
|
@@ -492,7 +492,7 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
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,
|
|
@@ -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
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,7 +673,7 @@ 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,
|
|
@@ -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, Tl)) :
|
|
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,
|
|
@@ -784,9 +784,9 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
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, Ll)) :
|
|
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", {
|
|
@@ -846,7 +846,7 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
846
846
|
fill: e.value.style.layout.wick.extremity.color,
|
|
847
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,
|
|
@@ -868,7 +868,7 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
868
868
|
rx: e.value.style.layout.wick.strokeWidth / 2,
|
|
869
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, [
|
|
@@ -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
|
|
@@ -965,7 +965,7 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
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,
|
|
@@ -987,14 +987,14 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
987
987
|
smoothSnapThreshold: e.value.style.tooltip.smoothSnapThreshold
|
|
988
988
|
}, {
|
|
989
989
|
"tooltip-before": b(() => [
|
|
990
|
-
m(t.$slots, "tooltip-before", B(E({ ...
|
|
990
|
+
m(t.$slots, "tooltip-before", B(E({ ...pe.value })), void 0, !0)
|
|
991
991
|
]),
|
|
992
992
|
"tooltip-after": b(() => [
|
|
993
|
-
m(t.$slots, "tooltip-after", B(E({ ...
|
|
993
|
+
m(t.$slots, "tooltip-after", B(E({ ...pe.value })), void 0, !0)
|
|
994
994
|
]),
|
|
995
995
|
_: 3
|
|
996
996
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
997
|
-
oe.value ? (s(), D(Wt(j.value.component), Ht({ key: 7 }, j.value.props, {
|
|
997
|
+
oe.value && e.value.userOptions.buttons.table ? (s(), D(Wt(j.value.component), Ht({ key: 7 }, j.value.props, {
|
|
998
998
|
ref_key: "tableUnit",
|
|
999
999
|
ref: G,
|
|
1000
1000
|
onClose: qe
|
|
@@ -1044,11 +1044,11 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
1044
1044
|
]),
|
|
1045
1045
|
key: "1"
|
|
1046
1046
|
} : void 0
|
|
1047
|
-
]), 1040)) :
|
|
1048
|
-
u(S) ? (s(), D(sl, { key: 8 })) :
|
|
1047
|
+
]), 1040)) : g("", !0),
|
|
1048
|
+
u(S) ? (s(), D(sl, { key: 8 })) : g("", !0)
|
|
1049
1049
|
], 46, hl));
|
|
1050
1050
|
}
|
|
1051
|
-
}, ia = /* @__PURE__ */ yl(Gl, [["__scopeId", "data-v-
|
|
1051
|
+
}, ia = /* @__PURE__ */ yl(Gl, [["__scopeId", "data-v-5de3d075"]]);
|
|
1052
1052
|
export {
|
|
1053
1053
|
ia as default
|
|
1054
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(() => {
|