vue-data-ui 3.16.5 → 3.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +64 -46
- package/dist/{PackageVersion-CvtT2-UH.js → PackageVersion-B3kmPxTR.js} +1 -1
- package/dist/{Slicer-DUycDH_N.js → Slicer-CIHwwuNR.js} +107 -110
- package/dist/SlicerPreview-BIvxyb5W.js +1484 -0
- package/dist/{Tooltip-Bf-kM3_A.js → Tooltip-C8KGyqQk.js} +19 -17
- 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-bump.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-dag.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-geo.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-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-stackline.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/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +1 -1
- package/dist/{useConfig-CpJA0VZa.js → useConfig-ChRble71.js} +1 -0
- package/dist/{useObjectBindings-DToqZaRC.js → useObjectBindings-BVFCsss5.js} +1 -1
- package/dist/utils.js +1 -1
- package/dist/{vue-data-ui-XhJQD-ri.js → vue-data-ui-BX3I-ZQt.js} +67 -67
- package/dist/vue-data-ui.js +68 -68
- package/dist/{vue-ui-3d-bar-BhzRmNak.js → vue-ui-3d-bar-DsSxN6Xl.js} +2 -2
- package/dist/{vue-ui-accordion-BF4v32wv.js → vue-ui-accordion-CnDW2UQL.js} +1 -1
- package/dist/{vue-ui-age-pyramid-CZCn6OMX.js → vue-ui-age-pyramid-DgAJXx1F.js} +112 -109
- package/dist/{vue-ui-annotator-U961V1Kc.js → vue-ui-annotator-BA4hRkfX.js} +2 -2
- package/dist/{vue-ui-bullet-BRyBDt56.js → vue-ui-bullet-BCuT1zVr.js} +2 -2
- package/dist/{vue-ui-bump-Dulq2vNg.js → vue-ui-bump-BTnwgB5Q.js} +2 -2
- package/dist/{vue-ui-candlestick-BJD25FJV.js → vue-ui-candlestick-BMvM7WIc.js} +148 -145
- package/dist/{vue-ui-carousel-table-DCHtRFDV.js → vue-ui-carousel-table-DCtWIG49.js} +2 -2
- package/dist/{vue-ui-chestnut-46054xSO.js → vue-ui-chestnut-DJ0R3Aqx.js} +2 -2
- package/dist/{vue-ui-chord-CSdFVJx2.js → vue-ui-chord-BbWToSBq.js} +2 -2
- package/dist/{vue-ui-circle-pack-CmPyW4rp.js → vue-ui-circle-pack-CwuEfQPE.js} +117 -114
- package/dist/{vue-ui-cursor-QZjpAemm.js → vue-ui-cursor-C4MnK_CE.js} +2 -2
- package/dist/{vue-ui-dag-C051dx6c.js → vue-ui-dag-HKbeFOit.js} +2 -2
- package/dist/{vue-ui-dashboard-zCwCXCfe.js → vue-ui-dashboard-DTYz-idn.js} +65 -65
- package/dist/{vue-ui-digits-HPy7kRgm.js → vue-ui-digits-CrFH4BlD.js} +2 -2
- package/dist/{vue-ui-donut-DxOwX8nC.js → vue-ui-donut-B1C7vzFY.js} +100 -97
- package/dist/{vue-ui-donut-evolution-KD1WwwLS.js → vue-ui-donut-evolution-BUIQwZ-c.js} +3 -3
- package/dist/{vue-ui-dumbbell-0BJ1t72z.js → vue-ui-dumbbell-Bq-X5L24.js} +2 -2
- package/dist/{vue-ui-flow-lPRZK-_Q.js → vue-ui-flow-DUn9hp_J.js} +141 -138
- package/dist/{vue-ui-funnel-WJG6UU4c.js → vue-ui-funnel-CNF2ULOQ.js} +2 -2
- package/dist/{vue-ui-galaxy-Cnqgwc0G.js → vue-ui-galaxy-BzlU9OSU.js} +75 -72
- package/dist/{vue-ui-gauge-BXFwr3H7.js → vue-ui-gauge-aF_V6ynK.js} +2 -2
- package/dist/{vue-ui-geo-DeYdEiHT.js → vue-ui-geo-xaZvHjAP.js} +116 -113
- package/dist/{vue-ui-gizmo-C0-M2WoG.js → vue-ui-gizmo-BGvS_AHj.js} +2 -2
- package/dist/{vue-ui-heatmap-DctMvoRr.js → vue-ui-heatmap-B_BmpyVy.js} +191 -188
- package/dist/{vue-ui-history-plot-sLaCn8jd.js → vue-ui-history-plot-DsoLp3aL.js} +124 -121
- package/dist/{vue-ui-horizontal-bar-reisxCWX.js → vue-ui-horizontal-bar-JVjE88ZW.js} +218 -215
- package/dist/{vue-ui-kpi-z3S4DcoQ.js → vue-ui-kpi-B-v1zpd4.js} +2 -2
- package/dist/{vue-ui-mini-loader-DSQ9kcmW.js → vue-ui-mini-loader-CPfZsqWP.js} +1 -1
- package/dist/{vue-ui-molecule-CQEaLq9E.js → vue-ui-molecule-Di9_wsME.js} +61 -58
- package/dist/{vue-ui-mood-radar-BGIt_k-N.js → vue-ui-mood-radar-CetQpdnu.js} +2 -2
- package/dist/{vue-ui-nested-donuts-BxXAWrhM.js → vue-ui-nested-donuts-Y-UMjjYV.js} +131 -128
- package/dist/{vue-ui-onion-CMKIYAuh.js → vue-ui-onion-MM3QZLzF.js} +142 -139
- package/dist/{vue-ui-parallel-coordinate-plot-Tb8aJ91r.js → vue-ui-parallel-coordinate-plot-CcHmB0MQ.js} +91 -88
- package/dist/{vue-ui-quadrant-CLAqGLQH.js → vue-ui-quadrant-CQIMUggy.js} +58 -55
- package/dist/{vue-ui-quick-chart-BK2SOFv9.js → vue-ui-quick-chart-lwGufdDj.js} +235 -232
- package/dist/{vue-ui-radar-BY7vIWHL.js → vue-ui-radar-CS74L65M.js} +117 -114
- package/dist/{vue-ui-rating-hudM2QS0.js → vue-ui-rating-DiLLVHq3.js} +1 -1
- package/dist/{vue-ui-relation-circle-BlUbhTZ5.js → vue-ui-relation-circle-D3dO8RTC.js} +2 -2
- package/dist/{vue-ui-ridgeline-Bsfw_4y_.js → vue-ui-ridgeline-Dpvq9yp2.js} +2 -2
- package/dist/{vue-ui-rings-BaORhzZH.js → vue-ui-rings-D-45pPpZ.js} +122 -119
- package/dist/{vue-ui-scatter-D8afRw4d.js → vue-ui-scatter-BzCjfGB9.js} +121 -118
- package/dist/{vue-ui-skeleton-BE5ADLxq.js → vue-ui-skeleton-Dai-bZZw.js} +2 -2
- package/dist/{vue-ui-smiley-CQ_rGHFe.js → vue-ui-smiley-BioqmYwT.js} +1 -1
- package/dist/{vue-ui-spark-trend-C2QdubPf.js → vue-ui-spark-trend-DiC9V0VU.js} +2 -2
- package/dist/{vue-ui-sparkbar-BxP_TDR3.js → vue-ui-sparkbar-D6EsbW6u.js} +2 -2
- package/dist/{vue-ui-sparkgauge-CgHAoaeu.js → vue-ui-sparkgauge-BHDXZgJH.js} +2 -2
- package/dist/{vue-ui-sparkhistogram-0m7QAV93.js → vue-ui-sparkhistogram-DzuOjuNH.js} +2 -2
- package/dist/{vue-ui-sparkline-DNt9nHQ9.js → vue-ui-sparkline-B-zOqzrC.js} +2 -2
- package/dist/{vue-ui-sparkstackbar-RU8zQLfe.js → vue-ui-sparkstackbar-bqKzIKSg.js} +147 -144
- package/dist/{vue-ui-stackbar-C3qGXmTQ.js → vue-ui-stackbar-DPfxqQUG.js} +435 -424
- package/dist/{vue-ui-stackline-W24y7z12.js → vue-ui-stackline-Ctqe1OuF.js} +627 -609
- package/dist/{vue-ui-strip-plot--MWxAM0R.js → vue-ui-strip-plot-Dg2URhvc.js} +72 -69
- package/dist/{vue-ui-table-heatmap-DU7w6PrX.js → vue-ui-table-heatmap-Da6sqBlI.js} +1 -1
- package/dist/{vue-ui-table-sparkline-DKbkhX_x.js → vue-ui-table-sparkline-Bkv6Qz6V.js} +2 -2
- package/dist/{vue-ui-table-BtkypjfT.js → vue-ui-table-xrD-xqis.js} +3 -3
- package/dist/{vue-ui-thermometer-qaGYZUMd.js → vue-ui-thermometer-D7VVeA2i.js} +2 -2
- package/dist/{vue-ui-timer-CpQYSD-K.js → vue-ui-timer-D7XYgZfb.js} +2 -2
- package/dist/{vue-ui-tiremarks-CUiSLMlj.js → vue-ui-tiremarks-i6e8GTI9.js} +2 -2
- package/dist/{vue-ui-treemap-CMfWyA5N.js → vue-ui-treemap-D8Mbfeuc.js} +220 -217
- package/dist/{vue-ui-waffle-H02mH3Rc.js → vue-ui-waffle-7rVD530d.js} +123 -120
- package/dist/{vue-ui-wheel-agcFNYTs.js → vue-ui-wheel-HQNWtsvJ.js} +2 -2
- package/dist/{vue-ui-word-cloud-B0fNWUVr.js → vue-ui-word-cloud-DFAEbzUa.js} +159 -156
- package/dist/{vue-ui-world-B8mANOO8.js → vue-ui-world-YvmrdfIm.js} +86 -83
- package/dist/vue-ui-xy-canvas-CEaAQ_tr.js +1819 -0
- package/dist/{vue-ui-xy-DgyEEqnJ.js → vue-ui-xy-n4juEarQ.js} +402 -398
- package/package.json +1 -1
- package/dist/SlicerPreview-DTjwV0iY.js +0 -1372
- package/dist/vue-ui-xy-canvas-CaoWw3AU.js +0 -1810
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineAsyncComponent as E, ref as u, shallowRef as ct, computed as h, onMounted as yl, onBeforeUnmount as fl, toRefs as pl, watch as
|
|
2
|
-
import { j as ht, o as yt, q as ft, r as kl, t as pt, n as wl, p as
|
|
1
|
+
import { defineAsyncComponent as E, ref as u, shallowRef as ct, computed as h, onMounted as yl, onBeforeUnmount as fl, toRefs as pl, watch as he, watchEffect as gl, openBlock as s, createElementBlock as r, unref as c, normalizeStyle as M, normalizeClass as H, createElementVNode as C, toDisplayString as D, createBlock as F, createCommentVNode as y, renderSlot as f, withCtx as p, normalizeProps as A, guardReactiveProps as S, createSlots as vt, createVNode as Le, Fragment as T, renderList as $, Teleport as xl, resolveDynamicComponent as bl, mergeProps as ml, createTextVNode as dt, nextTick as _e } from "vue";
|
|
2
|
+
import { j as ht, o as yt, q as ft, r as kl, t as pt, n as wl, p as ye, s as Cl, D as gt, k as K, l as G, X as Al, x as Sl, w as Tl, Z as $l, W as Il, a2 as U, m as Ll, a0 as _l, a1 as Pl, T as zl, a3 as Ol } from "./lib-DBptbyyI.js";
|
|
3
3
|
import { t as xt, u as Ml } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as Nl } from "./useConfig-
|
|
4
|
+
import { u as Nl } from "./useConfig-ChRble71.js";
|
|
5
5
|
import { u as Dl, B as Fl } from "./BaseScanner-BhhkKVoj.js";
|
|
6
6
|
import { u as Xl } from "./usePrinter-CEpYU3r5.js";
|
|
7
7
|
import { u as Bl } from "./useSvgExport-ByUukOZt.js";
|
|
@@ -17,7 +17,7 @@ import Vl from "./Legend-CS7Xo5LK.js";
|
|
|
17
17
|
import { A as Kl } from "./A11yDataTable-KcVAX2cP.js";
|
|
18
18
|
import { B as Gl } from "./BaseLegendToggle-BQVIawmA.js";
|
|
19
19
|
import { _ as ql } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
20
|
-
const Zl = ["id"], Jl = ["id"], Ql = ["id"], ea = { style: { position: "relative" } }, ta = ["xmlns", "viewBox", "aria-describedby"], la = ["x", "y", "width", "height"], aa = { key: 1 }, oa = ["id"], sa = ["stop-color"], na = ["stop-color"], ra = ["stop-color"], ia = { key: 2 }, ua = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ca = { key: 3 }, va = ["stroke", "stroke-width", "x1", "x2", "y1", "y2"], da = ["x", "y", "fill", "font-size"], ha = ["transform", "font-size", "fill", "font-weight"], ya = { key: 6 }, fa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], pa = { key: 7 }, ga = ["stroke", "stroke-width", "x1", "x2", "y1", "y2"], xa = ["transform", "fill", "font-size", "text-anchor"], ba = ["x", "y", "font-size", "fill", "font-weight"], ma = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ka = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], wa = ["d", "stroke", "stroke-width"], Ca = ["d", "stroke", "stroke-width"], Aa = ["cx", "cy", "fill", "r"], Sa = ["cx", "cy", "fill", "r", "stroke", "stroke-width"], Ta = { key: 1 }, $a = ["x", "y", "font-size", "fill", "font-weight"], Ia = ["x", "y", "font-size", "fill", "font-weight", "innerHTML"],
|
|
20
|
+
const Zl = ["id"], Jl = ["id"], Ql = ["id"], ea = { style: { position: "relative" } }, ta = ["xmlns", "viewBox", "aria-describedby"], la = ["x", "y", "width", "height"], aa = { key: 1 }, oa = ["id"], sa = ["stop-color"], na = ["stop-color"], ra = ["stop-color"], ia = { key: 2 }, ua = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ca = { key: 3 }, va = ["stroke", "stroke-width", "x1", "x2", "y1", "y2"], da = ["x", "y", "fill", "font-size"], ha = ["transform", "font-size", "fill", "font-weight"], ya = { key: 6 }, fa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], pa = { key: 7 }, ga = ["stroke", "stroke-width", "x1", "x2", "y1", "y2"], xa = ["transform", "fill", "font-size", "text-anchor"], ba = ["x", "y", "font-size", "fill", "font-weight"], ma = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ka = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], wa = ["d", "stroke", "stroke-width"], Ca = ["d", "stroke", "stroke-width"], Aa = ["cx", "cy", "fill", "r"], Sa = ["cx", "cy", "fill", "r", "stroke", "stroke-width"], Ta = { key: 1 }, $a = ["x", "y", "font-size", "fill", "font-weight"], Ia = ["x", "y", "font-size", "fill", "font-weight", "innerHTML"], La = { key: 2 }, _a = ["x", "y", "font-size", "font-weight", "fill"], Pa = ["cx", "cy", "r", "onMouseenter", "onMouseleave", "onClick"], za = {
|
|
21
21
|
key: 0,
|
|
22
22
|
style: { position: "absolute", top: "100%", left: "0", width: "100%" },
|
|
23
23
|
"data-dom-to-png-ignore": "",
|
|
@@ -43,20 +43,20 @@ const Zl = ["id"], Jl = ["id"], Ql = ["id"], ea = { style: { position: "relative
|
|
|
43
43
|
},
|
|
44
44
|
emits: ["selectLegend", "selectDatapoint", "copyAlt"],
|
|
45
45
|
setup(bt, { expose: mt, emit: kt }) {
|
|
46
|
-
const wt = E(() => import("./Tooltip-
|
|
47
|
-
get: () => !!
|
|
46
|
+
const wt = E(() => import("./Tooltip-C8KGyqQk.js")), Ct = E(() => import("./BaseIcon-Cb3zzG6s.js")), At = E(() => import("./vue-ui-accordion-CnDW2UQL.js")), St = E(() => import("./DataTable-DT2kIdQ6.js")), Tt = E(() => import("./PenAndPaper-Ct3qJ4lA.js")), $t = E(() => import("./UserOptions-rW2fRf3V.js")), It = E(() => import("./PackageVersion-B3kmPxTR.js")), Lt = E(() => import("./BaseDraggableDialog-CIb-iD9g.js")), { vue_ui_history_plot: _t } = Nl(), { isThemeValid: Pt, warnInvalidTheme: zt } = Rl(), L = bt, X = u(null), ze = u(null), Oe = u(0), Me = u(null), Ne = u(0), De = u(0), Fe = u(0), R = ct(null), W = ct(null), Xe = u(null), _ = u(ht()), oe = u(!1), fe = u(""), x = u([]), q = u(!1), P = u(null), Z = u(!1), Be = u(null), Re = u(!1), J = u(null), pe = u(null), se = u(!1), ne = u(!1), ge = u(null), xe = u(null), re = u(null), be = u(null), k = u(null), w = u(null), Ee = u({ x: 0, y: 0 }), ie = u("pointer"), me = u(!1), ue = h({
|
|
47
|
+
get: () => !!L.dataset && L.dataset.length,
|
|
48
48
|
set: (t) => t
|
|
49
|
-
}),
|
|
49
|
+
}), ke = kt;
|
|
50
50
|
yl(() => {
|
|
51
51
|
Re.value = !0, He();
|
|
52
52
|
});
|
|
53
53
|
const Ye = h(() => !!e.value.debug);
|
|
54
54
|
function He() {
|
|
55
|
-
if (yt(
|
|
55
|
+
if (yt(L.dataset) ? (ft({
|
|
56
56
|
componentName: "VueUiHistoryPlot",
|
|
57
57
|
type: "dataset",
|
|
58
58
|
debug: Ye.value
|
|
59
|
-
}),
|
|
59
|
+
}), Ce.value = !0) : L.dataset.forEach((t, a) => {
|
|
60
60
|
kl({
|
|
61
61
|
datasetObject: t,
|
|
62
62
|
requiredAttributes: ["name", "values"]
|
|
@@ -69,7 +69,7 @@ const Zl = ["id"], Jl = ["id"], Ql = ["id"], ea = { style: { position: "relative
|
|
|
69
69
|
debug: Ye.value
|
|
70
70
|
});
|
|
71
71
|
});
|
|
72
|
-
}), yt(
|
|
72
|
+
}), yt(L.dataset) || (Ce.value = e.value.loading), e.value.responsive) {
|
|
73
73
|
const t = xt(() => {
|
|
74
74
|
const { width: a, height: l } = Ml({
|
|
75
75
|
chart: X.value,
|
|
@@ -130,10 +130,10 @@ const Zl = ["id"], Jl = ["id"], Ql = ["id"], ea = { style: { position: "relative
|
|
|
130
130
|
fl(() => {
|
|
131
131
|
R.value && (W.value && R.value.unobserve(W.value), R.value.disconnect());
|
|
132
132
|
});
|
|
133
|
-
function
|
|
133
|
+
function we() {
|
|
134
134
|
const t = Pe({
|
|
135
|
-
userConfig:
|
|
136
|
-
defaultConfig:
|
|
135
|
+
userConfig: L.config,
|
|
136
|
+
defaultConfig: _t
|
|
137
137
|
});
|
|
138
138
|
let a = {};
|
|
139
139
|
const l = t.theme;
|
|
@@ -142,22 +142,22 @@ const Zl = ["id"], Jl = ["id"], Ql = ["id"], ea = { style: { position: "relative
|
|
|
142
142
|
zt(t), a = t;
|
|
143
143
|
else {
|
|
144
144
|
const n = Pe({
|
|
145
|
-
userConfig: jl[l] ||
|
|
145
|
+
userConfig: jl[l] || L.config,
|
|
146
146
|
defaultConfig: t
|
|
147
147
|
});
|
|
148
148
|
a = {
|
|
149
149
|
...Pe({
|
|
150
|
-
userConfig:
|
|
150
|
+
userConfig: L.config,
|
|
151
151
|
defaultConfig: n
|
|
152
152
|
}),
|
|
153
|
-
customPalette: t.customPalette.length ? t.customPalette :
|
|
153
|
+
customPalette: t.customPalette.length ? t.customPalette : Ll[l] || ye
|
|
154
154
|
};
|
|
155
155
|
}
|
|
156
156
|
else
|
|
157
157
|
a = t;
|
|
158
158
|
return a;
|
|
159
159
|
}
|
|
160
|
-
const e = u(
|
|
160
|
+
const e = u(we()), j = h(() => e.value.userOptions.useCursorPointer), Ot = h(() => pt({
|
|
161
161
|
defaultConfig: {
|
|
162
162
|
userOptions: { show: !1 },
|
|
163
163
|
table: { show: !1 },
|
|
@@ -208,11 +208,11 @@ const Zl = ["id"], Jl = ["id"], Ql = ["id"], ea = { style: { position: "relative
|
|
|
208
208
|
}
|
|
209
209
|
},
|
|
210
210
|
userConfig: e.value.skeletonConfig ?? {}
|
|
211
|
-
})), { loading: B, FINAL_DATASET: Mt, manualLoading:
|
|
212
|
-
...pl(
|
|
211
|
+
})), { loading: B, FINAL_DATASET: Mt, manualLoading: Ce } = Dl({
|
|
212
|
+
...pl(L),
|
|
213
213
|
FINAL_CONFIG: e,
|
|
214
|
-
prepareConfig:
|
|
215
|
-
skeletonDataset:
|
|
214
|
+
prepareConfig: we,
|
|
215
|
+
skeletonDataset: L.config?.skeletonDataset ?? [
|
|
216
216
|
{
|
|
217
217
|
name: "",
|
|
218
218
|
color: "#CACACA",
|
|
@@ -228,21 +228,21 @@ const Zl = ["id"], Jl = ["id"], Ql = ["id"], ea = { style: { position: "relative
|
|
|
228
228
|
defaultConfig: e.value,
|
|
229
229
|
userConfig: Ot.value
|
|
230
230
|
})
|
|
231
|
-
}), { userOptionsVisible:
|
|
232
|
-
|
|
233
|
-
B.value || (e.value =
|
|
234
|
-
}, { deep: !0 }),
|
|
235
|
-
Array.isArray(t) && t.length > 0 && (
|
|
231
|
+
}), { userOptionsVisible: Ae, setUserOptionsVisibility: Ue, keepUserOptionState: We } = El({ config: e.value }), { svgRef: Y } = Yl({ config: e.value.style.chart.title });
|
|
232
|
+
he(() => L.config, (t) => {
|
|
233
|
+
B.value || (e.value = we()), Ae.value = !e.value.userOptions.showOnChartHover, He(), Oe.value += 1, De.value += 1, Ne.value += 1, b.value.height = e.value.style.chart.height, b.value.width = e.value.style.chart.width, i.value.plots = e.value.style.chart.plots.radius, i.value.indexLabels = e.value.style.chart.plots.indexLabels.fontSize, i.value.labels = e.value.style.chart.plots.labels.fontSize, i.value.xAxisLabels = e.value.style.chart.axes.x.labels.fontSize, i.value.xAxisName = e.value.style.chart.axes.x.name.fontSize, i.value.yAxisLabels = e.value.style.chart.axes.y.labels.fontSize, i.value.yAxisName = e.value.style.chart.axes.y.name.fontSize, z.value.showTable = e.value.table.show, z.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
234
|
+
}, { deep: !0 }), he(() => L.dataset, (t) => {
|
|
235
|
+
Array.isArray(t) && t.length > 0 && (Ce.value = !1);
|
|
236
236
|
}, { deep: !0 });
|
|
237
|
-
const { isPrinting:
|
|
238
|
-
elementId: `history_plot_${
|
|
237
|
+
const { isPrinting: Se, isImaging: Te, generatePdf: je, generateImage: Ve } = Xl({
|
|
238
|
+
elementId: `history_plot_${_.value}`,
|
|
239
239
|
fileName: e.value.style.chart.title.text || "vue-ui-history-plot",
|
|
240
240
|
options: e.value.userOptions.print
|
|
241
241
|
}), Nt = h(() => e.value.userOptions.show && !e.value.style.chart.title.text), Dt = h(() => wl(e.value.customPalette)), z = u({
|
|
242
242
|
showTable: e.value.table.show,
|
|
243
243
|
showTooltip: e.value.style.chart.tooltip.show
|
|
244
244
|
});
|
|
245
|
-
|
|
245
|
+
he(e, () => {
|
|
246
246
|
z.value = {
|
|
247
247
|
showTable: e.value.table.show,
|
|
248
248
|
showTooltip: e.value.style.chart.tooltip.show
|
|
@@ -254,11 +254,11 @@ const Zl = ["id"], Jl = ["id"], Ql = ["id"], ea = { style: { position: "relative
|
|
|
254
254
|
}), Ft = h(() => b.value.width), Xt = h(() => b.value.height);
|
|
255
255
|
function Bt() {
|
|
256
256
|
let t = 0;
|
|
257
|
-
|
|
257
|
+
be.value && (t = Array.from(be.value.querySelectorAll("text")).reduce((n, o) => {
|
|
258
258
|
const d = o.getComputedTextLength();
|
|
259
259
|
return d > n ? d : n;
|
|
260
260
|
}, 0));
|
|
261
|
-
const a =
|
|
261
|
+
const a = xe.value ? xe.value.getBoundingClientRect().width : 0;
|
|
262
262
|
return t + a + (a ? 24 : 0);
|
|
263
263
|
}
|
|
264
264
|
const Ke = u(0), Rt = xt((t) => {
|
|
@@ -274,7 +274,7 @@ const Zl = ["id"], Jl = ["id"], Ql = ["id"], ea = { style: { position: "relative
|
|
|
274
274
|
});
|
|
275
275
|
const Ge = h(() => {
|
|
276
276
|
let t = 0;
|
|
277
|
-
|
|
277
|
+
ge.value && (t = ge.value.getBBox().height + i.value.xAxisName / 2);
|
|
278
278
|
let a = 0;
|
|
279
279
|
return re.value && (a = Ke.value), t + a;
|
|
280
280
|
}), v = h(() => {
|
|
@@ -297,7 +297,7 @@ const Zl = ["id"], Jl = ["id"], Ql = ["id"], ea = { style: { position: "relative
|
|
|
297
297
|
yAxisName: e.value.style.chart.axes.y.name.fontSize
|
|
298
298
|
}), N = h(() => Mt.value.map((t, a) => ({
|
|
299
299
|
...t,
|
|
300
|
-
color: t.color ? Cl(t.color) : Dt.value[a] ||
|
|
300
|
+
color: t.color ? Cl(t.color) : Dt.value[a] || ye[a] || ye[a % ye.length],
|
|
301
301
|
seriesIndex: a
|
|
302
302
|
}))), Et = h(() => Math.max(...N.value.filter((t) => !x.value.includes(t.seriesIndex)).flatMap((t) => t.values.map((a) => a.x)))), Yt = h(() => {
|
|
303
303
|
const t = Math.min(...N.value.filter((a) => !x.value.includes(a.seriesIndex)).flatMap((a) => a.values.map((l) => l.x)));
|
|
@@ -394,10 +394,10 @@ const Zl = ["id"], Jl = ["id"], Ql = ["id"], ea = { style: { position: "relative
|
|
|
394
394
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
395
395
|
}));
|
|
396
396
|
function Ze({ datapoint: t, plotIndex: a, seriesIndex: l }) {
|
|
397
|
-
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: { ...t, plotIndex: a, seriesIndex: l }, seriesIndex: l }),
|
|
397
|
+
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: { ...t, plotIndex: a, seriesIndex: l }, seriesIndex: l }), ke("selectDatapoint", t);
|
|
398
398
|
}
|
|
399
399
|
function Je(t) {
|
|
400
|
-
|
|
400
|
+
ke("selectLegend", {
|
|
401
401
|
...t,
|
|
402
402
|
isSegregated: !t.isSegregated,
|
|
403
403
|
opacity: t.isSegregated ? 1 : 0.5
|
|
@@ -406,7 +406,7 @@ const Zl = ["id"], Jl = ["id"], Ql = ["id"], ea = { style: { position: "relative
|
|
|
406
406
|
function Qe(t) {
|
|
407
407
|
q.value = t, Fe.value += 1;
|
|
408
408
|
}
|
|
409
|
-
const
|
|
409
|
+
const ve = u(null);
|
|
410
410
|
function et({ datapoint: t, plotIndex: a, seriesIndex: l }) {
|
|
411
411
|
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: { ...t, plotIndex: a, seriesIndex: l }, seriesIndex: l }), !(ie.value === "keyboard" && k.value === l && w.value === a) && (oe.value = !1, P.value = null);
|
|
412
412
|
}
|
|
@@ -420,7 +420,7 @@ const Zl = ["id"], Jl = ["id"], Ql = ["id"], ea = { style: { position: "relative
|
|
|
420
420
|
o && (Ee.value = o);
|
|
421
421
|
}
|
|
422
422
|
function tt({ datapoint: t, plotIndex: a, seriesIndex: l, triggerMode: n = "pointer" }) {
|
|
423
|
-
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: { ...t, plotIndex: a, seriesIndex: l }, seriesIndex: l }), k.value = l, w.value = a, ie.value = n,
|
|
423
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: { ...t, plotIndex: a, seriesIndex: l }, seriesIndex: l }), k.value = l, w.value = a, ie.value = n, ve.value = { datapoint: t, seriesIndex: l, plotIndex: a, config: e.value, series: N.value }, P.value = t;
|
|
424
424
|
const o = e.value.style.chart.tooltip.customFormat;
|
|
425
425
|
if (Z.value = !1, zl(o))
|
|
426
426
|
try {
|
|
@@ -431,7 +431,7 @@ const Zl = ["id"], Jl = ["id"], Ql = ["id"], ea = { style: { position: "relative
|
|
|
431
431
|
series: N.value,
|
|
432
432
|
config: e.value
|
|
433
433
|
});
|
|
434
|
-
typeof d == "string" && (
|
|
434
|
+
typeof d == "string" && (fe.value = d, Z.value = !0);
|
|
435
435
|
} catch {
|
|
436
436
|
console.warn("Custom format cannot be applied."), Z.value = !1;
|
|
437
437
|
}
|
|
@@ -455,9 +455,9 @@ const Zl = ["id"], Jl = ["id"], Ql = ["id"], ea = { style: { position: "relative
|
|
|
455
455
|
s: e.value.style.chart.axes.y.labels.suffix,
|
|
456
456
|
r: e.value.style.chart.axes.y.labels.rounding
|
|
457
457
|
})
|
|
458
|
-
)}</div>`,
|
|
458
|
+
)}</div>`, fe.value = `<div>${d}</div>`;
|
|
459
459
|
}
|
|
460
|
-
oe.value = !0, n === "keyboard" &&
|
|
460
|
+
oe.value = !0, n === "keyboard" && _e(() => {
|
|
461
461
|
Zt(l, a);
|
|
462
462
|
});
|
|
463
463
|
}
|
|
@@ -518,22 +518,22 @@ const Zl = ["id"], Jl = ["id"], Ql = ["id"], ea = { style: { position: "relative
|
|
|
518
518
|
};
|
|
519
519
|
});
|
|
520
520
|
function $e(t = null) {
|
|
521
|
-
|
|
521
|
+
_e(() => {
|
|
522
522
|
const a = [
|
|
523
523
|
[e.value.table.columnNames.series],
|
|
524
524
|
[e.value.table.columnNames.datapoint],
|
|
525
525
|
[e.value.table.columnNames.x],
|
|
526
526
|
[e.value.table.columnNames.y]
|
|
527
|
-
], l = g.value.flatMap((d) => d.plots.map((
|
|
528
|
-
[
|
|
529
|
-
[
|
|
530
|
-
[
|
|
531
|
-
[
|
|
527
|
+
], l = g.value.flatMap((d) => d.plots.map((I) => [
|
|
528
|
+
[I.seriesName],
|
|
529
|
+
[I.label],
|
|
530
|
+
[I.valueX],
|
|
531
|
+
[I.valueY]
|
|
532
532
|
])), n = [
|
|
533
533
|
[e.value.style.chart.title.text],
|
|
534
534
|
[e.value.style.chart.title.subtitle.text],
|
|
535
535
|
a
|
|
536
|
-
].concat(l), o =
|
|
536
|
+
].concat(l), o = _l(n);
|
|
537
537
|
t ? t(o) : Pl({
|
|
538
538
|
csvContent: o,
|
|
539
539
|
title: e.value.style.chart.title.text || "vue-ui-history-plot"
|
|
@@ -582,7 +582,7 @@ const Zl = ["id"], Jl = ["id"], Ql = ["id"], ea = { style: { position: "relative
|
|
|
582
582
|
const te = h(() => {
|
|
583
583
|
const t = e.value.table.useDialog && !e.value.table.show, a = z.value.showTable;
|
|
584
584
|
return {
|
|
585
|
-
component: t ?
|
|
585
|
+
component: t ? Lt : At,
|
|
586
586
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
587
587
|
props: t ? {
|
|
588
588
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
@@ -609,11 +609,11 @@ const Zl = ["id"], Jl = ["id"], Ql = ["id"], ea = { style: { position: "relative
|
|
|
609
609
|
}
|
|
610
610
|
};
|
|
611
611
|
});
|
|
612
|
-
|
|
612
|
+
he(() => z.value.showTable, (t) => {
|
|
613
613
|
e.value.table.show || (t && e.value.table.useDialog && J.value ? J.value.open() : "close" in J.value && J.value.close());
|
|
614
614
|
});
|
|
615
615
|
function ot() {
|
|
616
|
-
z.value.showTable = !1,
|
|
616
|
+
z.value.showTable = !1, pe.value && pe.value.setTableIconState(!1);
|
|
617
617
|
}
|
|
618
618
|
const ll = h(() => e.value.style.chart.backgroundColor), al = h(() => e.value.style.chart.legend), ol = h(() => e.value.style.chart.title), { exportSvg: sl, getSvg: nl } = Bl({
|
|
619
619
|
svg: Y,
|
|
@@ -623,7 +623,7 @@ const Zl = ["id"], Jl = ["id"], Ql = ["id"], ea = { style: { position: "relative
|
|
|
623
623
|
backgroundColor: ll
|
|
624
624
|
});
|
|
625
625
|
async function st({ isCb: t }) {
|
|
626
|
-
ne.value = !0, await
|
|
626
|
+
ne.value = !0, await _e();
|
|
627
627
|
try {
|
|
628
628
|
if (t) {
|
|
629
629
|
const { blob: a, url: l, text: n, dataUrl: o } = await nl();
|
|
@@ -646,7 +646,7 @@ const Zl = ["id"], Jl = ["id"], Ql = ["id"], ea = { style: { position: "relative
|
|
|
646
646
|
Ve();
|
|
647
647
|
}
|
|
648
648
|
async function nt() {
|
|
649
|
-
if (
|
|
649
|
+
if (ke("copyAlt", {
|
|
650
650
|
config: e.value,
|
|
651
651
|
dataset: g.value
|
|
652
652
|
}), !e.value.userOptions.callbacks.altCopy) {
|
|
@@ -684,35 +684,35 @@ const Zl = ["id"], Jl = ["id"], Ql = ["id"], ea = { style: { position: "relative
|
|
|
684
684
|
k.value = null, w.value = null, ie.value = "pointer", oe.value = !1, P.value = null;
|
|
685
685
|
}
|
|
686
686
|
function ul() {
|
|
687
|
-
k.value = null, w.value = null,
|
|
687
|
+
k.value = null, w.value = null, me.value = !0;
|
|
688
688
|
}
|
|
689
689
|
function cl() {
|
|
690
|
-
rt(),
|
|
690
|
+
rt(), me.value = !1;
|
|
691
691
|
}
|
|
692
692
|
function vl(t, a) {
|
|
693
693
|
if (!t?.plots?.length) return null;
|
|
694
694
|
const l = t.plots.length;
|
|
695
695
|
return (a % l + l) % l;
|
|
696
696
|
}
|
|
697
|
-
function
|
|
697
|
+
function de({ seriesIndex: t, plotIndex: a, direction: l }) {
|
|
698
698
|
if (!g.value.length) return null;
|
|
699
699
|
const n = il(t);
|
|
700
700
|
if (n === -1) return null;
|
|
701
701
|
if (l === "up" || l === "down") {
|
|
702
702
|
const o = g.value[n];
|
|
703
703
|
if (!o?.plots?.length) return null;
|
|
704
|
-
const
|
|
704
|
+
const I = vl(o, a + (l === "up" ? -1 : 1));
|
|
705
705
|
return {
|
|
706
706
|
seriesIndex: o.seriesIndex,
|
|
707
|
-
plotIndex:
|
|
707
|
+
plotIndex: I
|
|
708
708
|
};
|
|
709
709
|
}
|
|
710
710
|
if (l === "left" || l === "right") {
|
|
711
|
-
const d = ((n + (l === "left" ? -1 : 1)) % g.value.length + g.value.length) % g.value.length,
|
|
712
|
-
if (!
|
|
713
|
-
const O = Math.min(a,
|
|
711
|
+
const d = ((n + (l === "left" ? -1 : 1)) % g.value.length + g.value.length) % g.value.length, I = g.value[d];
|
|
712
|
+
if (!I?.plots?.length) return null;
|
|
713
|
+
const O = Math.min(a, I.plots.length - 1);
|
|
714
714
|
return {
|
|
715
|
-
seriesIndex:
|
|
715
|
+
seriesIndex: I.seriesIndex,
|
|
716
716
|
plotIndex: O
|
|
717
717
|
};
|
|
718
718
|
}
|
|
@@ -720,9 +720,9 @@ const Zl = ["id"], Jl = ["id"], Ql = ["id"], ea = { style: { position: "relative
|
|
|
720
720
|
}
|
|
721
721
|
function dl(t) {
|
|
722
722
|
if (!Y.value || ee.value || document.activeElement !== Y.value || !g.value.length) return;
|
|
723
|
-
const a = t.key === "ArrowLeft", l = t.key === "ArrowRight", n = t.key === "ArrowUp", o = t.key === "ArrowDown", d = t.key === "Enter" || t.key === " ",
|
|
724
|
-
if (!a && !l && !n && !o && !d && !
|
|
725
|
-
if (t.preventDefault(), t.stopPropagation(),
|
|
723
|
+
const a = t.key === "ArrowLeft", l = t.key === "ArrowRight", n = t.key === "ArrowUp", o = t.key === "ArrowDown", d = t.key === "Enter" || t.key === " ", I = t.key === "Escape";
|
|
724
|
+
if (!a && !l && !n && !o && !d && !I) return;
|
|
725
|
+
if (t.preventDefault(), t.stopPropagation(), I) {
|
|
726
726
|
rt();
|
|
727
727
|
return;
|
|
728
728
|
}
|
|
@@ -745,19 +745,19 @@ const Zl = ["id"], Jl = ["id"], Ql = ["id"], ea = { style: { position: "relative
|
|
|
745
745
|
seriesIndex: ae.seriesIndex,
|
|
746
746
|
plotIndex: 0
|
|
747
747
|
};
|
|
748
|
-
} else n ? O =
|
|
748
|
+
} else n ? O = de({
|
|
749
749
|
seriesIndex: k.value,
|
|
750
750
|
plotIndex: w.value,
|
|
751
751
|
direction: "up"
|
|
752
|
-
}) : o ? O =
|
|
752
|
+
}) : o ? O = de({
|
|
753
753
|
seriesIndex: k.value,
|
|
754
754
|
plotIndex: w.value,
|
|
755
755
|
direction: "down"
|
|
756
|
-
}) : a ? O =
|
|
756
|
+
}) : a ? O = de({
|
|
757
757
|
seriesIndex: k.value,
|
|
758
758
|
plotIndex: w.value,
|
|
759
759
|
direction: "left"
|
|
760
|
-
}) : l && (O =
|
|
760
|
+
}) : l && (O = de({
|
|
761
761
|
seriesIndex: k.value,
|
|
762
762
|
plotIndex: w.value,
|
|
763
763
|
direction: "right"
|
|
@@ -786,7 +786,7 @@ const Zl = ["id"], Jl = ["id"], Ql = ["id"], ea = { style: { position: "relative
|
|
|
786
786
|
toggleFullscreen: Qe,
|
|
787
787
|
copyAlt: nt
|
|
788
788
|
}), (t, a) => (s(), r("div", {
|
|
789
|
-
id: `history_plot_${
|
|
789
|
+
id: `history_plot_${_.value}`,
|
|
790
790
|
ref_key: "historyPlotChart",
|
|
791
791
|
ref: X,
|
|
792
792
|
class: H({ "vue-data-ui-component": !0, "vue-ui-history-plot": !0, "vue-data-ui-wrapper-fullscreen": q.value }),
|
|
@@ -795,14 +795,14 @@ const Zl = ["id"], Jl = ["id"], Ql = ["id"], ea = { style: { position: "relative
|
|
|
795
795
|
onMouseleave: a[3] || (a[3] = () => c(Ue)(!1))
|
|
796
796
|
}, [
|
|
797
797
|
C("div", {
|
|
798
|
-
id: `chart-instructions-${
|
|
798
|
+
id: `chart-instructions-${_.value}`,
|
|
799
799
|
class: "sr-only"
|
|
800
800
|
}, [
|
|
801
801
|
C("p", null, D(e.value.a11y.translations.keyboardNavigation), 1)
|
|
802
802
|
], 8, Jl),
|
|
803
803
|
le.value.body.length ? (s(), F(Kl, {
|
|
804
804
|
key: 0,
|
|
805
|
-
uid:
|
|
805
|
+
uid: _.value,
|
|
806
806
|
head: le.value.head,
|
|
807
807
|
body: le.value.body,
|
|
808
808
|
caption: le.value.caption,
|
|
@@ -822,19 +822,19 @@ const Zl = ["id"], Jl = ["id"], Ql = ["id"], ea = { style: { position: "relative
|
|
|
822
822
|
f(t.$slots, "annotator-action-close", {}, void 0, !0)
|
|
823
823
|
]),
|
|
824
824
|
"annotator-action-color": p(({ color: l }) => [
|
|
825
|
-
f(t.$slots, "annotator-action-color",
|
|
825
|
+
f(t.$slots, "annotator-action-color", A(S({ color: l })), void 0, !0)
|
|
826
826
|
]),
|
|
827
827
|
"annotator-action-draw": p(({ mode: l }) => [
|
|
828
|
-
f(t.$slots, "annotator-action-draw",
|
|
828
|
+
f(t.$slots, "annotator-action-draw", A(S({ mode: l })), void 0, !0)
|
|
829
829
|
]),
|
|
830
830
|
"annotator-action-undo": p(({ disabled: l }) => [
|
|
831
|
-
f(t.$slots, "annotator-action-undo",
|
|
831
|
+
f(t.$slots, "annotator-action-undo", A(S({ disabled: l })), void 0, !0)
|
|
832
832
|
]),
|
|
833
833
|
"annotator-action-redo": p(({ disabled: l }) => [
|
|
834
|
-
f(t.$slots, "annotator-action-redo",
|
|
834
|
+
f(t.$slots, "annotator-action-redo", A(S({ disabled: l })), void 0, !0)
|
|
835
835
|
]),
|
|
836
836
|
"annotator-action-delete": p(({ disabled: l }) => [
|
|
837
|
-
f(t.$slots, "annotator-action-delete",
|
|
837
|
+
f(t.$slots, "annotator-action-delete", A(S({ disabled: l })), void 0, !0)
|
|
838
838
|
]),
|
|
839
839
|
_: 3
|
|
840
840
|
}, 8, ["svgRef", "backgroundColor", "color", "active", "isCursorPointer"])) : y("", !0),
|
|
@@ -867,17 +867,17 @@ const Zl = ["id"], Jl = ["id"], Ql = ["id"], ea = { style: { position: "relative
|
|
|
867
867
|
}, null, 8, ["config"]))
|
|
868
868
|
], 4)) : y("", !0),
|
|
869
869
|
C("div", {
|
|
870
|
-
id: `legend-top-${
|
|
870
|
+
id: `legend-top-${_.value}`
|
|
871
871
|
}, null, 8, Ql),
|
|
872
|
-
e.value.userOptions.show && ue.value && (c(We) || c(
|
|
872
|
+
e.value.userOptions.show && ue.value && (c(We) || c(Ae)) ? (s(), F(c($t), {
|
|
873
873
|
ref_key: "userOptionsRef",
|
|
874
|
-
ref:
|
|
874
|
+
ref: pe,
|
|
875
875
|
key: `user_option_${Fe.value}`,
|
|
876
876
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
877
877
|
color: e.value.style.chart.color,
|
|
878
|
-
isPrinting: c(
|
|
879
|
-
isImaging: c(
|
|
880
|
-
uid:
|
|
878
|
+
isPrinting: c(Se),
|
|
879
|
+
isImaging: c(Te),
|
|
880
|
+
uid: _.value,
|
|
881
881
|
hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
|
|
882
882
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
883
883
|
hasImg: e.value.userOptions.buttons.img,
|
|
@@ -908,13 +908,13 @@ const Zl = ["id"], Jl = ["id"], Ql = ["id"], ea = { style: { position: "relative
|
|
|
908
908
|
onToggleAnnotator: Ie,
|
|
909
909
|
onCopyAlt: nt,
|
|
910
910
|
style: M({
|
|
911
|
-
visibility: c(We) ? c(
|
|
911
|
+
visibility: c(We) ? c(Ae) ? "visible" : "hidden" : "visible"
|
|
912
912
|
})
|
|
913
913
|
}, vt({ _: 2 }, [
|
|
914
914
|
t.$slots.menuIcon ? {
|
|
915
915
|
name: "menuIcon",
|
|
916
916
|
fn: p(({ isOpen: l, color: n }) => [
|
|
917
|
-
f(t.$slots, "menuIcon",
|
|
917
|
+
f(t.$slots, "menuIcon", A(S({ isOpen: l, color: n })), void 0, !0)
|
|
918
918
|
]),
|
|
919
919
|
key: "0"
|
|
920
920
|
} : void 0,
|
|
@@ -963,21 +963,21 @@ const Zl = ["id"], Jl = ["id"], Ql = ["id"], ea = { style: { position: "relative
|
|
|
963
963
|
t.$slots.optionFullscreen ? {
|
|
964
964
|
name: "optionFullscreen",
|
|
965
965
|
fn: p(({ toggleFullscreen: l, isFullscreen: n }) => [
|
|
966
|
-
f(t.$slots, "optionFullscreen",
|
|
966
|
+
f(t.$slots, "optionFullscreen", A(S({ toggleFullscreen: l, isFullscreen: n })), void 0, !0)
|
|
967
967
|
]),
|
|
968
968
|
key: "7"
|
|
969
969
|
} : void 0,
|
|
970
970
|
t.$slots.optionAnnotator ? {
|
|
971
971
|
name: "optionAnnotator",
|
|
972
972
|
fn: p(({ toggleAnnotator: l, isAnnotator: n }) => [
|
|
973
|
-
f(t.$slots, "optionAnnotator",
|
|
973
|
+
f(t.$slots, "optionAnnotator", A(S({ toggleAnnotator: l, isAnnotator: n })), void 0, !0)
|
|
974
974
|
]),
|
|
975
975
|
key: "8"
|
|
976
976
|
} : void 0,
|
|
977
977
|
t.$slots.optionAltCopy ? {
|
|
978
978
|
name: "optionAltCopy",
|
|
979
979
|
fn: p(({ altCopy: l }) => [
|
|
980
|
-
f(t.$slots, "optionAltCopy",
|
|
980
|
+
f(t.$slots, "optionAltCopy", A(S({ altCopy: l })), void 0, !0)
|
|
981
981
|
]),
|
|
982
982
|
key: "9"
|
|
983
983
|
} : void 0
|
|
@@ -989,13 +989,13 @@ const Zl = ["id"], Jl = ["id"], Ql = ["id"], ea = { style: { position: "relative
|
|
|
989
989
|
xmlns: c(Al),
|
|
990
990
|
viewBox: `0 0 ${b.value.width < 0 ? 0.1 : b.value.width} ${b.value.height < 0 ? 0.1 : b.value.height}`,
|
|
991
991
|
style: M(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`),
|
|
992
|
-
"aria-describedby": `chart-instructions-${
|
|
992
|
+
"aria-describedby": `chart-instructions-${_.value}`,
|
|
993
993
|
tabindex: "0",
|
|
994
994
|
onFocus: ul,
|
|
995
995
|
onBlur: cl,
|
|
996
996
|
onKeydown: dl
|
|
997
997
|
}, [
|
|
998
|
-
|
|
998
|
+
Le(c(It)),
|
|
999
999
|
t.$slots["chart-background"] ? (s(), r("foreignObject", {
|
|
1000
1000
|
key: 0,
|
|
1001
1001
|
x: v.value.left,
|
|
@@ -1009,8 +1009,8 @@ const Zl = ["id"], Jl = ["id"], Ql = ["id"], ea = { style: { position: "relative
|
|
|
1009
1009
|
f(t.$slots, "chart-background", {}, void 0, !0)
|
|
1010
1010
|
], 8, la)) : y("", !0),
|
|
1011
1011
|
e.value.style.chart.plots.gradient.show ? (s(), r("defs", aa, [
|
|
1012
|
-
(s(!0), r(
|
|
1013
|
-
id: `gradient_${n}_${
|
|
1012
|
+
(s(!0), r(T, null, $(g.value, (l, n) => (s(), r("radialGradient", {
|
|
1013
|
+
id: `gradient_${n}_${_.value}`,
|
|
1014
1014
|
fy: "30%"
|
|
1015
1015
|
}, [
|
|
1016
1016
|
C("stop", {
|
|
@@ -1028,7 +1028,7 @@ const Zl = ["id"], Jl = ["id"], Ql = ["id"], ea = { style: { position: "relative
|
|
|
1028
1028
|
], 8, oa))), 256))
|
|
1029
1029
|
])) : y("", !0),
|
|
1030
1030
|
e.value.style.chart.grid.verticalLines.show ? (s(), r("g", ia, [
|
|
1031
|
-
(s(!0), r(
|
|
1031
|
+
(s(!0), r(T, null, $(m.value.tickX, (l) => (s(), r("line", {
|
|
1032
1032
|
x1: l.x,
|
|
1033
1033
|
x2: l.x,
|
|
1034
1034
|
y1: l.y1,
|
|
@@ -1039,7 +1039,7 @@ const Zl = ["id"], Jl = ["id"], Ql = ["id"], ea = { style: { position: "relative
|
|
|
1039
1039
|
}, null, 8, ua))), 256))
|
|
1040
1040
|
])) : y("", !0),
|
|
1041
1041
|
e.value.style.chart.axes.y.labels.show ? (s(), r("g", ca, [
|
|
1042
|
-
(s(!0), r(
|
|
1042
|
+
(s(!0), r(T, null, $(m.value.tickY, (l) => (s(), r("line", {
|
|
1043
1043
|
stroke: e.value.style.chart.grid.verticalLines.stroke,
|
|
1044
1044
|
"stroke-width": e.value.style.chart.grid.verticalLines.strokeWidth,
|
|
1045
1045
|
"stroke-linecap": "round",
|
|
@@ -1052,9 +1052,9 @@ const Zl = ["id"], Jl = ["id"], Ql = ["id"], ea = { style: { position: "relative
|
|
|
1052
1052
|
e.value.style.chart.axes.y.labels.show ? (s(), r("g", {
|
|
1053
1053
|
key: 4,
|
|
1054
1054
|
ref_key: "yAxisScales",
|
|
1055
|
-
ref:
|
|
1055
|
+
ref: be
|
|
1056
1056
|
}, [
|
|
1057
|
-
(s(!0), r(
|
|
1057
|
+
(s(!0), r(T, null, $(m.value.tickY, (l) => (s(), r("text", {
|
|
1058
1058
|
x: v.value.left + e.value.style.chart.axes.y.labels.offsetX - 4 - e.value.style.chart.plots.radius,
|
|
1059
1059
|
y: l.y + i.value.yAxisLabels / 3,
|
|
1060
1060
|
fill: e.value.style.chart.axes.y.labels.color,
|
|
@@ -1074,7 +1074,7 @@ const Zl = ["id"], Jl = ["id"], Ql = ["id"], ea = { style: { position: "relative
|
|
|
1074
1074
|
e.value.style.chart.axes.y.name.text ? (s(), r("text", {
|
|
1075
1075
|
key: 5,
|
|
1076
1076
|
ref_key: "yAxisLabel",
|
|
1077
|
-
ref:
|
|
1077
|
+
ref: xe,
|
|
1078
1078
|
transform: `translate(${i.value.yAxisName}, ${b.value.height / 2 + e.value.style.chart.axes.y.name.offsetY}), rotate(-90)`,
|
|
1079
1079
|
"font-size": i.value.yAxisName,
|
|
1080
1080
|
fill: e.value.style.chart.axes.y.name.color,
|
|
@@ -1082,7 +1082,7 @@ const Zl = ["id"], Jl = ["id"], Ql = ["id"], ea = { style: { position: "relative
|
|
|
1082
1082
|
"text-anchor": "middle"
|
|
1083
1083
|
}, D(e.value.style.chart.axes.y.name.text), 9, ha)) : y("", !0),
|
|
1084
1084
|
e.value.style.chart.grid.horizontalLines.show ? (s(), r("g", ya, [
|
|
1085
|
-
(s(!0), r(
|
|
1085
|
+
(s(!0), r(T, null, $(m.value.tickY, (l) => (s(), r("line", {
|
|
1086
1086
|
x1: l.x1,
|
|
1087
1087
|
x2: l.x2,
|
|
1088
1088
|
y1: l.y,
|
|
@@ -1093,7 +1093,7 @@ const Zl = ["id"], Jl = ["id"], Ql = ["id"], ea = { style: { position: "relative
|
|
|
1093
1093
|
}, null, 8, fa))), 256))
|
|
1094
1094
|
])) : y("", !0),
|
|
1095
1095
|
e.value.style.chart.axes.x.labels.show ? (s(), r("g", pa, [
|
|
1096
|
-
(s(!0), r(
|
|
1096
|
+
(s(!0), r(T, null, $(m.value.tickX, (l) => (s(), r("line", {
|
|
1097
1097
|
stroke: e.value.style.chart.grid.verticalLines.stroke,
|
|
1098
1098
|
"stroke-width": e.value.style.chart.grid.verticalLines.strokeWidth,
|
|
1099
1099
|
"stroke-linecap": "round",
|
|
@@ -1108,7 +1108,7 @@ const Zl = ["id"], Jl = ["id"], Ql = ["id"], ea = { style: { position: "relative
|
|
|
1108
1108
|
ref_key: "xAxisScales",
|
|
1109
1109
|
ref: re
|
|
1110
1110
|
}, [
|
|
1111
|
-
(s(!0), r(
|
|
1111
|
+
(s(!0), r(T, null, $(m.value.tickX, (l) => (s(), r("text", {
|
|
1112
1112
|
class: "vue-ui-history-plot-x-axis-scale",
|
|
1113
1113
|
transform: `translate(${l.x}, ${v.value.bottom + e.value.style.chart.axes.x.labels.offsetY + i.value.xAxisLabels + e.value.style.chart.plots.radius}), rotate(${e.value.style.chart.axes.x.labels.rotation})`,
|
|
1114
1114
|
fill: e.value.style.chart.axes.x.labels.color,
|
|
@@ -1128,7 +1128,7 @@ const Zl = ["id"], Jl = ["id"], Ql = ["id"], ea = { style: { position: "relative
|
|
|
1128
1128
|
e.value.style.chart.axes.x.name.text ? (s(), r("text", {
|
|
1129
1129
|
key: 9,
|
|
1130
1130
|
ref_key: "xAxisLabel",
|
|
1131
|
-
ref:
|
|
1131
|
+
ref: ge,
|
|
1132
1132
|
x: b.value.width / 2 + e.value.style.chart.axes.x.name.offsetX,
|
|
1133
1133
|
y: b.value.height,
|
|
1134
1134
|
"font-size": i.value.xAxisName,
|
|
@@ -1156,7 +1156,7 @@ const Zl = ["id"], Jl = ["id"], Ql = ["id"], ea = { style: { position: "relative
|
|
|
1156
1156
|
"stroke-width": e.value.style.chart.grid.yAxis.strokeWidth,
|
|
1157
1157
|
"stroke-linecap": "round"
|
|
1158
1158
|
}, null, 8, ka)) : y("", !0),
|
|
1159
|
-
(s(!0), r(
|
|
1159
|
+
(s(!0), r(T, null, $(g.value, (l, n) => (s(), r("g", null, [
|
|
1160
1160
|
e.value.style.chart.paths.show ? (s(), r("g", {
|
|
1161
1161
|
key: 0,
|
|
1162
1162
|
style: M({
|
|
@@ -1182,17 +1182,17 @@ const Zl = ["id"], Jl = ["id"], Ql = ["id"], ea = { style: { position: "relative
|
|
|
1182
1182
|
class: H({ animated: e.value.useCssAnimation && !c(B) })
|
|
1183
1183
|
}, null, 10, Ca)
|
|
1184
1184
|
], 4)) : y("", !0),
|
|
1185
|
-
(s(!0), r(
|
|
1185
|
+
(s(!0), r(T, null, $(l.plots, (o) => (s(), r("circle", {
|
|
1186
1186
|
cx: o.x,
|
|
1187
1187
|
cy: o.y,
|
|
1188
1188
|
fill: e.value.style.chart.backgroundColor,
|
|
1189
1189
|
r: i.value.plots,
|
|
1190
1190
|
stroke: "none"
|
|
1191
1191
|
}, null, 8, Aa))), 256)),
|
|
1192
|
-
(s(!0), r(
|
|
1192
|
+
(s(!0), r(T, null, $(l.plots, (o) => (s(), r("circle", {
|
|
1193
1193
|
cx: o.x,
|
|
1194
1194
|
cy: o.y,
|
|
1195
|
-
fill: e.value.style.chart.plots.gradient.show ? `url(#gradient_${n}_${
|
|
1195
|
+
fill: e.value.style.chart.plots.gradient.show ? `url(#gradient_${n}_${_.value})` : o.color,
|
|
1196
1196
|
r: i.value.plots,
|
|
1197
1197
|
stroke: e.value.style.chart.plots.stroke,
|
|
1198
1198
|
"stroke-width": e.value.style.chart.plots.strokeWidth,
|
|
@@ -1203,7 +1203,7 @@ const Zl = ["id"], Jl = ["id"], Ql = ["id"], ea = { style: { position: "relative
|
|
|
1203
1203
|
})
|
|
1204
1204
|
}, null, 14, Sa))), 256)),
|
|
1205
1205
|
e.value.style.chart.plots.labels.show ? (s(), r("g", Ta, [
|
|
1206
|
-
(s(!0), r(
|
|
1206
|
+
(s(!0), r(T, null, $(l.plots, (o) => (s(), r("g", null, [
|
|
1207
1207
|
String(o.label).includes(`
|
|
1208
1208
|
`) ? (s(), r("text", {
|
|
1209
1209
|
key: 1,
|
|
@@ -1241,8 +1241,8 @@ const Zl = ["id"], Jl = ["id"], Ql = ["id"], ea = { style: { position: "relative
|
|
|
1241
1241
|
}, D(o.label), 15, $a))
|
|
1242
1242
|
]))), 256))
|
|
1243
1243
|
])) : y("", !0),
|
|
1244
|
-
e.value.style.chart.plots.indexLabels.show ? (s(), r("g",
|
|
1245
|
-
(s(!0), r(
|
|
1244
|
+
e.value.style.chart.plots.indexLabels.show ? (s(), r("g", La, [
|
|
1245
|
+
(s(!0), r(T, null, $(l.plots, (o, d) => (s(), r("text", {
|
|
1246
1246
|
x: o.x + e.value.style.chart.plots.indexLabels.offsetX,
|
|
1247
1247
|
y: o.y + e.value.style.chart.plots.indexLabels.offsetY + i.value.indexLabels / 3,
|
|
1248
1248
|
"font-size": i.value.indexLabels,
|
|
@@ -1254,11 +1254,11 @@ const Zl = ["id"], Jl = ["id"], Ql = ["id"], ea = { style: { position: "relative
|
|
|
1254
1254
|
opacity: P.value === null || P.value.id === o.id ? 1 : 0.3,
|
|
1255
1255
|
transition: "opacity 0.2s ease-in-out"
|
|
1256
1256
|
})
|
|
1257
|
-
}, D(e.value.style.chart.plots.indexLabels.startAtZero ? d : d + 1), 15,
|
|
1257
|
+
}, D(e.value.style.chart.plots.indexLabels.startAtZero ? d : d + 1), 15, _a))), 256))
|
|
1258
1258
|
])) : y("", !0)
|
|
1259
1259
|
]))), 256)),
|
|
1260
|
-
(s(!0), r(
|
|
1261
|
-
(s(!0), r(
|
|
1260
|
+
(s(!0), r(T, null, $(g.value, (l) => (s(), r("g", null, [
|
|
1261
|
+
(s(!0), r(T, null, $(l.plots, (n, o) => (s(), r("circle", {
|
|
1262
1262
|
cx: n.x,
|
|
1263
1263
|
cy: n.y,
|
|
1264
1264
|
fill: "transparent",
|
|
@@ -1285,24 +1285,24 @@ const Zl = ["id"], Jl = ["id"], Ql = ["id"], ea = { style: { position: "relative
|
|
|
1285
1285
|
f(t.$slots, "svg", {
|
|
1286
1286
|
svg: {
|
|
1287
1287
|
...b.value,
|
|
1288
|
-
isPrintingImg: c(
|
|
1288
|
+
isPrintingImg: c(Se) | c(Te) | se.value,
|
|
1289
1289
|
isPrintingSvg: ne.value
|
|
1290
1290
|
}
|
|
1291
1291
|
}, void 0, !0)
|
|
1292
1292
|
], 44, ta)),
|
|
1293
1293
|
t.$slots.hint ? (s(), r("div", za, [
|
|
1294
|
-
f(t.$slots, "hint",
|
|
1294
|
+
f(t.$slots, "hint", A(S({ hint: e.value.a11y.translations.keyboardNavigation, isVisible: me.value })), void 0, !0)
|
|
1295
1295
|
])) : y("", !0)
|
|
1296
1296
|
]),
|
|
1297
1297
|
t.$slots.watermark ? (s(), r("div", Oa, [
|
|
1298
|
-
f(t.$slots, "watermark",
|
|
1298
|
+
f(t.$slots, "watermark", A(S({ isPrinting: c(Se) || c(Te) || se.value || ne.value })), void 0, !0)
|
|
1299
1299
|
])) : y("", !0),
|
|
1300
1300
|
C("div", {
|
|
1301
|
-
id: `legend-bottom-${
|
|
1301
|
+
id: `legend-bottom-${_.value}`
|
|
1302
1302
|
}, null, 8, Ma),
|
|
1303
1303
|
Re.value ? (s(), F(xl, {
|
|
1304
1304
|
key: 6,
|
|
1305
|
-
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${
|
|
1305
|
+
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${_.value}` : `#legend-bottom-${_.value}`
|
|
1306
1306
|
}, [
|
|
1307
1307
|
C("div", {
|
|
1308
1308
|
ref_key: "chartLegend",
|
|
@@ -1351,7 +1351,7 @@ const Zl = ["id"], Jl = ["id"], Ql = ["id"], ea = { style: { position: "relative
|
|
|
1351
1351
|
}, [
|
|
1352
1352
|
f(t.$slots, "source", {}, void 0, !0)
|
|
1353
1353
|
], 512)) : y("", !0),
|
|
1354
|
-
|
|
1354
|
+
Le(c(wt), {
|
|
1355
1355
|
teleportTo: e.value.style.chart.tooltip.teleportTo,
|
|
1356
1356
|
show: z.value.showTooltip && oe.value,
|
|
1357
1357
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
@@ -1364,7 +1364,7 @@ const Zl = ["id"], Jl = ["id"], Ql = ["id"], ea = { style: { position: "relative
|
|
|
1364
1364
|
position: e.value.style.chart.tooltip.position,
|
|
1365
1365
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
1366
1366
|
parent: X.value,
|
|
1367
|
-
content:
|
|
1367
|
+
content: fe.value,
|
|
1368
1368
|
isCustom: Z.value,
|
|
1369
1369
|
isFullscreen: q.value,
|
|
1370
1370
|
smooth: e.value.style.chart.tooltip.smooth,
|
|
@@ -1375,10 +1375,13 @@ const Zl = ["id"], Jl = ["id"], Ql = ["id"], ea = { style: { position: "relative
|
|
|
1375
1375
|
a11yPosition: Ee.value
|
|
1376
1376
|
}, {
|
|
1377
1377
|
"tooltip-before": p(() => [
|
|
1378
|
-
f(t.$slots, "tooltip-before",
|
|
1378
|
+
f(t.$slots, "tooltip-before", A(S({ ...ve.value })), void 0, !0)
|
|
1379
|
+
]),
|
|
1380
|
+
tooltip: p(() => [
|
|
1381
|
+
f(t.$slots, "tooltip", A(S({ ...ve.value })), void 0, !0)
|
|
1379
1382
|
]),
|
|
1380
1383
|
"tooltip-after": p(() => [
|
|
1381
|
-
f(t.$slots, "tooltip-after",
|
|
1384
|
+
f(t.$slots, "tooltip-after", A(S({ ...ve.value })), void 0, !0)
|
|
1382
1385
|
]),
|
|
1383
1386
|
_: 3
|
|
1384
1387
|
}, 8, ["teleportTo", "show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold", "isA11yMode", "a11yPosition"]),
|
|
@@ -1429,7 +1432,7 @@ const Zl = ["id"], Jl = ["id"], Ql = ["id"], ea = { style: { position: "relative
|
|
|
1429
1432
|
onClick: a[1] || (a[1] = (l) => $e(e.value.userOptions.callbacks.csv)),
|
|
1430
1433
|
style: M({ cursor: j.value ? "pointer" : "default" })
|
|
1431
1434
|
}, [
|
|
1432
|
-
|
|
1435
|
+
Le(c(Ct), {
|
|
1433
1436
|
name: "fileCsv",
|
|
1434
1437
|
stroke: te.value.props.color
|
|
1435
1438
|
}, null, 8, ["stroke"])
|
|
@@ -1443,7 +1446,7 @@ const Zl = ["id"], Jl = ["id"], Ql = ["id"], ea = { style: { position: "relative
|
|
|
1443
1446
|
], !0)
|
|
1444
1447
|
], 46, Zl));
|
|
1445
1448
|
}
|
|
1446
|
-
}, oo = /* @__PURE__ */ ql(Fa, [["__scopeId", "data-v-
|
|
1449
|
+
}, oo = /* @__PURE__ */ ql(Fa, [["__scopeId", "data-v-9f997071"]]);
|
|
1447
1450
|
export {
|
|
1448
1451
|
oo as default
|
|
1449
1452
|
};
|