vue-data-ui 3.0.0-next.14 → 3.0.0-next.15
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-Df8gUfKn.js → Arrow-ClIlyKfx.js} +1 -1
- package/dist/{BaseDraggableDialog-BCt4MsxV.js → BaseDraggableDialog-Byr4KHc8.js} +2 -2
- package/dist/{BaseIcon-BRbpfizy.js → BaseIcon-OdQ0r1YQ.js} +1 -1
- package/dist/{ColorPicker-I_IO8XQE.js → ColorPicker-KzdJB0w2.js} +2 -2
- package/dist/{DataTable-rKKFtHrS.js → DataTable-DD-YYbSP.js} +2 -2
- package/dist/{Legend-C8sMzjM5.js → Legend-QkCw3q-n.js} +2 -2
- package/dist/{NonSvgPenAndPaper-BeXXzLia.js → NonSvgPenAndPaper-CLRd_P0a.js} +3 -3
- package/dist/{PackageVersion-5SA7DsrF.js → PackageVersion-CwTQgTky.js} +1 -1
- package/dist/{PenAndPaper-BGxzp1tk.js → PenAndPaper-CJGWPJpV.js} +3 -3
- package/dist/{Shape-B8I8cX9P.js → Shape-T9udB7n2.js} +1 -1
- package/dist/{Slicer-CDDwWiXn.js → Slicer-XrQBC47t.js} +2 -2
- package/dist/{SparkTooltip-pC3sNWMM.js → SparkTooltip-Ca4VCfkN.js} +1 -1
- package/dist/{Title-DUpdvxB-.js → Title-Dr1vkryr.js} +1 -1
- package/dist/{Tooltip-CxwXrJ2u.js → Tooltip-DziB0nPv.js} +1 -1
- package/dist/{UserOptions-B-B0E6a5.js → UserOptions-CgOhoKqW.js} +2 -2
- package/dist/{dom-to-png-Bq_2sR69.js → dom-to-png-BkzGn320.js} +1 -1
- package/dist/{img-BQ7u3oEW.js → img-BbqJKhJk.js} +1 -1
- package/dist/{index-BTYCKUoi.js → index-0Dv-kKZf.js} +1 -1
- package/dist/{pdf-NTBK6dp2.js → pdf-BN1Io9kH.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-B-t-jGcw.js → useNestedProp-B_1ccIiP.js} +1 -1
- package/dist/{usePrinter-JUJEFx1t.js → usePrinter-Bs9Jf70r.js} +2 -2
- package/dist/{vue-data-ui-CYQK3vMW.js → vue-data-ui-BQK_RIPp.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-hGiJlcJT.js → vue-ui-3d-bar-Ci8Hac3B.js} +6 -6
- package/dist/{vue-ui-accordion-xabUfErM.js → vue-ui-accordion-Ei-A9Pcc.js} +3 -3
- package/dist/{vue-ui-age-pyramid-C7EIPKdt.js → vue-ui-age-pyramid-4ZWGNMEd.js} +6 -6
- package/dist/{vue-ui-annotator-BY5ktFWe.js → vue-ui-annotator-DVDfl261.js} +2 -2
- package/dist/{vue-ui-bullet-uDEZoL_W.js → vue-ui-bullet-Czu_Vjox.js} +7 -7
- package/dist/{vue-ui-candlestick-DZiJKV1j.js → vue-ui-candlestick-Varwiq4Y.js} +7 -7
- package/dist/{vue-ui-carousel-table-CaPCrEx5.js → vue-ui-carousel-table-yjkys0ec.js} +4 -4
- package/dist/{vue-ui-chestnut-D6XjQLZS.js → vue-ui-chestnut-tloUhBjk.js} +5 -5
- package/dist/{vue-ui-chord-VjnKLL_F.js → vue-ui-chord-LfVMFmZr.js} +8 -8
- package/dist/{vue-ui-circle-pack-Bxbsiblv.js → vue-ui-circle-pack-BNye6ayr.js} +6 -6
- package/dist/{vue-ui-cursor-CPaMzMTt.js → vue-ui-cursor-DoPJsK0I.js} +2 -2
- package/dist/{vue-ui-dashboard-CJFGrlam.js → vue-ui-dashboard-4oD-QarC.js} +62 -62
- package/dist/{vue-ui-digits-JdnhWHy3.js → vue-ui-digits-DucG5CL2.js} +2 -2
- package/dist/{vue-ui-donut-DW4Uuk1O.js → vue-ui-donut-Dv21i5X8.js} +8 -8
- package/dist/{vue-ui-donut-evolution-Ck7szypt.js → vue-ui-donut-evolution-C_7JOUDZ.js} +8 -8
- package/dist/{vue-ui-dumbbell-B4tM6L6O.js → vue-ui-dumbbell-D0IomeqU.js} +7 -7
- package/dist/{vue-ui-flow-CnKNdChb.js → vue-ui-flow-Dzxi1EZZ.js} +7 -7
- package/dist/{vue-ui-funnel-D9vN0K4N.js → vue-ui-funnel-yFGkgE1a.js} +6 -6
- package/dist/{vue-ui-galaxy-hqW8gZC8.js → vue-ui-galaxy-vI40lE3N.js} +5 -5
- package/dist/{vue-ui-gauge-BIHaFKGe.js → vue-ui-gauge-BW7GJGOO.js} +6 -6
- package/dist/{vue-ui-gizmo-BNx0RyLX.js → vue-ui-gizmo-D-lIS9iT.js} +3 -3
- package/dist/{vue-ui-heatmap-pI3leYdq.js → vue-ui-heatmap-DX38tbYl.js} +7 -7
- package/dist/{vue-ui-history-plot-CMvUONaA.js → vue-ui-history-plot-Cst-ySqJ.js} +7 -7
- package/dist/{vue-ui-kpi-BX98lOc3.js → vue-ui-kpi-BkT2rAGA.js} +3 -3
- package/dist/{vue-ui-mini-loader-BXMkA0X3.js → vue-ui-mini-loader-BtKsjJwF.js} +2 -2
- package/dist/{vue-ui-molecule-DBe7E0UX.js → vue-ui-molecule-B-_Ke4X9.js} +5 -5
- package/dist/{vue-ui-mood-radar-CqgqKMrU.js → vue-ui-mood-radar-DhDXdarr.js} +7 -7
- package/dist/{vue-ui-nested-donuts-B9IZOv55.js → vue-ui-nested-donuts-D77VqObk.js} +9 -9
- package/dist/{vue-ui-onion-Cve7udCr.js → vue-ui-onion-MW97isoK.js} +7 -7
- package/dist/{vue-ui-parallel-coordinate-plot-DrFuATLX.js → vue-ui-parallel-coordinate-plot-CK9s5w2n.js} +8 -8
- package/dist/{vue-ui-quadrant-Cd7rBFlO.js → vue-ui-quadrant-B6KmcmuM.js} +8 -8
- package/dist/{vue-ui-quick-chart-DOQqwKIm.js → vue-ui-quick-chart-BsFzKlQZ.js} +6 -6
- package/dist/{vue-ui-radar-B0qBtilD.js → vue-ui-radar-BYmyMJ3e.js} +7 -7
- package/dist/{vue-ui-rating-DVItAjf1.js → vue-ui-rating-C6-Wk4rF.js} +2 -2
- package/dist/{vue-ui-relation-circle-C52oNc3f.js → vue-ui-relation-circle-DtRJBp3c.js} +6 -6
- package/dist/{vue-ui-ridgeline-qoBnw17e.js → vue-ui-ridgeline-Cj69IDp2.js} +8 -8
- package/dist/{vue-ui-rings-BJk34upx.js → vue-ui-rings-Cyk490ro.js} +8 -8
- package/dist/{vue-ui-scatter-zTDbWgjG.js → vue-ui-scatter-T3ZeGt9I.js} +8 -8
- package/dist/{vue-ui-skeleton-UJqwc3T_.js → vue-ui-skeleton-KAJ8lszm.js} +3 -3
- package/dist/{vue-ui-smiley-FlvU1Ik1.js → vue-ui-smiley-C8mEQIS6.js} +2 -2
- package/dist/{vue-ui-spark-trend-ChyfTLAU.js → vue-ui-spark-trend-BXxIDIPr.js} +3 -3
- package/dist/{vue-ui-sparkbar-BooSOZvg.js → vue-ui-sparkbar-CvGDY2_X.js} +3 -3
- package/dist/{vue-ui-sparkgauge-BoEF2rBO.js → vue-ui-sparkgauge-WT9qrMnG.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-DNR15bO-.js → vue-ui-sparkhistogram-COLm3qZ6.js} +4 -4
- package/dist/{vue-ui-sparkline-DIUtAvF1.js → vue-ui-sparkline-DKWWR4z1.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-CpR2OkgM.js → vue-ui-sparkstackbar-Dii_oqmi.js} +3 -3
- package/dist/{vue-ui-stackbar-BlwJq3CC.js → vue-ui-stackbar-BXoOr016.js} +9 -9
- package/dist/{vue-ui-strip-plot-CVzDDHxi.js → vue-ui-strip-plot-ClBMAZxi.js} +7 -7
- package/dist/{vue-ui-table-CyDFGDdb.js → vue-ui-table-D0f4CH7e.js} +3 -3
- package/dist/{vue-ui-table-heatmap-CV8bTqJY.js → vue-ui-table-heatmap-DLt8wZ8E.js} +5 -5
- package/dist/{vue-ui-table-sparkline-BBfZ4a4I.js → vue-ui-table-sparkline-BDRsUSTk.js} +4 -4
- package/dist/{vue-ui-thermometer-BuLgCYzm.js → vue-ui-thermometer-CnmQ3Gf7.js} +6 -6
- package/dist/{vue-ui-timer-B4yLUrpp.js → vue-ui-timer-COlEIQ6e.js} +5 -5
- package/dist/{vue-ui-tiremarks-Di3CX421.js → vue-ui-tiremarks-DQ1s5kcm.js} +6 -6
- package/dist/{vue-ui-treemap-48PGiwvy.js → vue-ui-treemap-C8P5GJTb.js} +8 -8
- package/dist/{vue-ui-vertical-bar-CRMu_fga.js → vue-ui-vertical-bar-D2ulp-RN.js} +9 -9
- package/dist/{vue-ui-waffle-Dk3tTWdO.js → vue-ui-waffle-YByzu_z0.js} +8 -8
- package/dist/{vue-ui-wheel-BSS8Pwh9.js → vue-ui-wheel-D1QP2sMv.js} +6 -6
- package/dist/{vue-ui-word-cloud-ClzPci72.js → vue-ui-word-cloud-BFJz3Wy6.js} +6 -6
- package/dist/{vue-ui-world-B4Erd9j8.js → vue-ui-world-B25QIxJF.js} +6 -6
- package/dist/{vue-ui-xy-6RfR55GH.js → vue-ui-xy-Cjp-slHl.js} +79 -79
- package/dist/{vue-ui-xy-canvas-C1Yk4nEd.js → vue-ui-xy-canvas-D_8MZJyM.js} +8 -8
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineAsyncComponent as Fe, useSlots as Vt, getCurrentInstance as Pt, ref as w, computed as A, onMounted as la, toRefs as Ht, onBeforeUnmount as
|
|
2
|
-
import { u as Et, c as ta, e as oa, A as Wt, a5 as Ee, b as Gt, D as pl, ab as el, d as Xt, p as Dt, ac as Il, aa as R, ad as Ut, v as T, ae as
|
|
3
|
-
import { u as sa } from "./useNestedProp-
|
|
1
|
+
import { defineAsyncComponent as Fe, useSlots as Vt, getCurrentInstance as Pt, ref as w, computed as A, onMounted as la, toRefs as Ht, onBeforeUnmount as Wa, watch as Cl, nextTick as me, createElementBlock as r, openBlock as u, normalizeStyle as C, normalizeClass as Ke, createBlock as Ie, createCommentVNode as d, createVNode as yl, unref as v, createSlots as Rt, withCtx as se, renderSlot as U, normalizeProps as Qe, guardReactiveProps as je, createElementVNode as g, Fragment as h, renderList as y, toDisplayString as ae, mergeProps as aa, withDirectives as Bt, vModelCheckbox as Yt, createTextVNode as Ft } from "vue";
|
|
2
|
+
import { u as Et, c as ta, e as oa, A as Wt, a5 as Ee, b as Gt, D as pl, ab as el, d as Xt, p as Dt, ac as Il, aa as R, ad as Ut, v as T, ae as Ga, V as Xa, af as Da, U as Ua, ag as qt, ah as qa, ai as Za, x as Zt, y as Jt, _ as Ja, R as Te, i as ce, f as ye, w as ll, s as $e, a8 as G, L as Kt, F as We, aj as Tl, I as Qt, ak as Ge, C as ul, t as jt, a as eo, o as Ka, q as lo, r as ao, E as rl } from "./index-0Dv-kKZf.js";
|
|
3
|
+
import { u as sa } from "./useNestedProp-B_1ccIiP.js";
|
|
4
4
|
import { u as to } from "./useTimeLabels-DFkUfjfs.js";
|
|
5
|
-
import { S as oo } from "./Slicer-
|
|
6
|
-
import so from "./Title-
|
|
7
|
-
import { _ as Ol } from "./Shape-
|
|
8
|
-
import uo from "./img-
|
|
9
|
-
import { u as ro } from "./usePrinter-
|
|
5
|
+
import { S as oo } from "./Slicer-XrQBC47t.js";
|
|
6
|
+
import so from "./Title-Dr1vkryr.js";
|
|
7
|
+
import { _ as Ol } from "./Shape-T9udB7n2.js";
|
|
8
|
+
import uo from "./img-BbqJKhJk.js";
|
|
9
|
+
import { u as ro } from "./usePrinter-Bs9Jf70r.js";
|
|
10
10
|
import { u as io, B as no } from "./useLoading-Bt5Doa8m.js";
|
|
11
11
|
import { _ as co } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
12
|
const vo = ["id"], ho = ["width", "viewBox", "aria-label"], fo = ["x", "y", "width", "height"], go = { key: 1 }, xo = { class: "vue-ui-xy-grid" }, bo = ["stroke", "x1", "x2", "y1", "y2"], mo = ["stroke", "x1", "x2", "y1", "y2"], yo = { key: 1 }, po = ["x1", "x2", "y1", "y2", "stroke"], ko = ["x1", "x2", "y1", "y2", "stroke"], _o = ["x1", "x2", "y1", "y2", "stroke"], wo = { key: 3 }, So = ["d", "stroke"], $o = { key: 4 }, Lo = ["d", "stroke"], Ao = ["id"], Mo = ["stop-color"], zo = ["stop-color"], Co = ["stop-color"], Io = ["id"], To = ["stop-color"], Oo = ["stop-color"], No = ["stop-color"], Vo = ["id"], Po = ["stop-color"], Ho = ["stop-color"], Ro = ["id"], Bo = ["stop-color"], Yo = ["stop-color"], Fo = ["id"], Eo = ["stop-color"], Wo = ["stop-color"], Go = ["x", "y", "height", "width", "fill"], Xo = ["x", "y", "width"], Do = { key: 0 }, Uo = ["x", "y", "height", "width", "fill"], qo = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], Zo = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], Jo = ["width", "x", "y"], Ko = { key: 0 }, Qo = ["id"], jo = ["fill"], es = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], ls = ["x", "y", "font-size", "fill"], as = ["stroke", "x1", "x2", "y1", "y2"], ts = { key: 3 }, os = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], ss = ["x", "y", "width", "height", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin", "stroke-dasharray"], us = {
|
|
@@ -73,11 +73,11 @@ const vo = ["id"], ho = ["width", "viewBox", "aria-label"], fo = ["x", "y", "wid
|
|
|
73
73
|
}
|
|
74
74
|
},
|
|
75
75
|
emits: ["selectTimeLabel", "selectX", "selectLegend"],
|
|
76
|
-
setup(Nl, { expose:
|
|
77
|
-
const m = Nl,
|
|
76
|
+
setup(Nl, { expose: Qa, emit: ja }) {
|
|
77
|
+
const m = Nl, et = Fe(() => import("./DataTable-DD-YYbSP.js")), lt = Fe(() => import("./Tooltip-DziB0nPv.js")), at = Fe(() => import("./UserOptions-CgOhoKqW.js")), tt = Fe(() => import("./BaseIcon-OdQ0r1YQ.js")), ot = Fe(() => import("./vue-ui-table-sparkline-BDRsUSTk.js")), st = Fe(() => import("./vue-ui-accordion-Ei-A9Pcc.js")), ut = Fe(() => import("./PackageVersion-CwTQgTky.js")), rt = Fe(() => import("./PenAndPaper-CJGWPJpV.js")), Vl = ja, ua = Vt(), it = Pt(), { vue_ui_xy: Pl } = Et(), ge = w(null), il = w(null), Le = w(null), al = w(null), nl = w(null), cl = w(null), ra = w(null), Hl = w(null), Rl = w(null), Bl = w(null), Xe = w(null), Yl = w(null), Fl = w(0), M = w(null), ia = w(!0), ue = w(600), Z = w(1e3), De = w("0 0 1000 600"), nt = w({ x: 0, y: 0 }), vl = w({ line: "line", bar: "bar", plot: "plot" }), kl = w(!1), tl = w(!1), na = w(!1), _ = w(null), Ue = w(null), te = w([]), q = w(ta()), ca = w(0), va = w(0), da = w(0), dl = w(!0), El = w(0), O = w(null), ha = w(!1), Wl = w(!0), _l = w(!0), pe = w(null), Oe = w({}), wl = w(null), fa = w(0), ct = w(1), vt = A(() => ({
|
|
78
78
|
height: ue.value,
|
|
79
79
|
width: Z.value
|
|
80
|
-
})),
|
|
80
|
+
})), dt = m.config.downsample && m.config.downsample.threshold ? m.config.downsample.threshold : 500, f = w({
|
|
81
81
|
dataLabels: { show: !0 },
|
|
82
82
|
showTooltip: !0,
|
|
83
83
|
showTable: !1,
|
|
@@ -211,7 +211,7 @@ const vo = ["id"], ho = ["width", "viewBox", "aria-label"], fo = ["x", "y", "wid
|
|
|
211
211
|
}
|
|
212
212
|
})
|
|
213
213
|
}), He = A({
|
|
214
|
-
get: () => Math.max(...Ne.value.map((a) => Ee({ data: a.series, threshold:
|
|
214
|
+
get: () => Math.max(...Ne.value.map((a) => Ee({ data: a.series, threshold: dt }).length)),
|
|
215
215
|
set: (a) => a
|
|
216
216
|
}), S = w({ start: 0, end: He.value }), { isPrinting: Ul, isImaging: ga, generatePdf: xa, generateImage: ba } = ro({
|
|
217
217
|
elementId: `vue-ui-xy_${q.value}`,
|
|
@@ -266,13 +266,13 @@ const vo = ["id"], ho = ["width", "viewBox", "aria-label"], fo = ["x", "y", "wid
|
|
|
266
266
|
height: X.value ? ue.value : ue.value - (l.value.chart.padding.top + l.value.chart.padding.bottom),
|
|
267
267
|
width: X.value ? Z.value - e : Z.value - (l.value.chart.padding.right + l.value.chart.padding.left + e)
|
|
268
268
|
};
|
|
269
|
-
}),
|
|
269
|
+
}), ht = A(() => {
|
|
270
270
|
const a = l.value.chart.grid.position === "middle" ? 1 : 0, c = b.value + a, e = R(i.value.top), s = R(i.value.bottom);
|
|
271
271
|
return Array.from({ length: c }).map((t, n) => {
|
|
272
272
|
const o = i.value.width / b.value * n + i.value.left + Y.value;
|
|
273
273
|
return `M${o},${e} L${o},${s}`;
|
|
274
274
|
}).join(" ");
|
|
275
|
-
}),
|
|
275
|
+
}), ft = A(() => {
|
|
276
276
|
if (!l.value.chart.grid.labels.xAxis.showCrosshairs)
|
|
277
277
|
return "";
|
|
278
278
|
const {
|
|
@@ -290,9 +290,9 @@ const vo = ["id"], ho = ["width", "viewBox", "aria-label"], fo = ["x", "y", "wid
|
|
|
290
290
|
}).filter((t) => t !== null).join(" ");
|
|
291
291
|
});
|
|
292
292
|
function ya() {
|
|
293
|
-
return !!
|
|
293
|
+
return !!it?.vnode.props?.onSelectTimeLabel;
|
|
294
294
|
}
|
|
295
|
-
function
|
|
295
|
+
function gt(a, c, e) {
|
|
296
296
|
if (!wl.value) {
|
|
297
297
|
const s = document.createElement("canvas");
|
|
298
298
|
wl.value = s.getContext("2d");
|
|
@@ -341,20 +341,20 @@ const vo = ["id"], ho = ["width", "viewBox", "aria-label"], fo = ["x", "y", "wid
|
|
|
341
341
|
});
|
|
342
342
|
}
|
|
343
343
|
const b = A(() => S.value.end - S.value.start);
|
|
344
|
-
async function
|
|
344
|
+
async function xt() {
|
|
345
345
|
if (!Hl.value) return;
|
|
346
346
|
await me();
|
|
347
347
|
let a = i.value.bottom;
|
|
348
348
|
Bl.value && (a += Bl.value.getBBox().height), Hl.value.setAttribute("y", a + x.value.xAxis * 1.3 + l.value.chart.grid.labels.axis.xLabelOffsetY);
|
|
349
349
|
}
|
|
350
|
-
async function
|
|
350
|
+
async function bt() {
|
|
351
351
|
Rl.value && (await me(), Rl.value.setAttribute("transform", `translate(${ql.value.x + l.value.chart.grid.labels.axis.yLabelOffsetX + x.value.yAxis}, ${i.value.top + i.value.height / 2}) rotate(-90)`));
|
|
352
352
|
}
|
|
353
353
|
async function ol() {
|
|
354
354
|
await me();
|
|
355
355
|
const a = ra.value;
|
|
356
356
|
if (!a) return;
|
|
357
|
-
De.value = `0 0 ${l.value.chart.width} ${l.value.chart.height}`,
|
|
357
|
+
De.value = `0 0 ${l.value.chart.width} ${l.value.chart.height}`, xt(), await me(), bt();
|
|
358
358
|
const c = a.getBBox();
|
|
359
359
|
De.value = `${c.x} ${c.y - x.value.plotLabels} ${c.width + l.value.chart.padding.left} ${c.height + x.value.plotLabels + l.value.chart.padding.top}`, await me(), ge.value.classList.remove("no-transition");
|
|
360
360
|
}
|
|
@@ -369,7 +369,7 @@ const vo = ["id"], ho = ["width", "viewBox", "aria-label"], fo = ["x", "y", "wid
|
|
|
369
369
|
}
|
|
370
370
|
}
|
|
371
371
|
}
|
|
372
|
-
function
|
|
372
|
+
function mt(a) {
|
|
373
373
|
O.value = a;
|
|
374
374
|
}
|
|
375
375
|
function wa() {
|
|
@@ -378,23 +378,23 @@ const vo = ["id"], ho = ["width", "viewBox", "aria-label"], fo = ["x", "y", "wid
|
|
|
378
378
|
function jl(a) {
|
|
379
379
|
xl.value && a.autoScaling && (l.value.chart.grid.labels.yAxis.useIndividualScale || console.warn(`VueUiXy (datapoint: ${a.name}) : autoScaling only works when config.chart.grid.labels.yAxis.useIndividualScale is set to true`), l.value.chart.grid.labels.yAxis.stacked || console.warn(`VueUiXy (datapoint: ${a.name}) : autoScaling only works when config.chart.grid.labels.yAxis.stacked is set to true`));
|
|
380
380
|
}
|
|
381
|
-
function
|
|
381
|
+
function yt(a, c) {
|
|
382
382
|
let e = Array(a).fill(0);
|
|
383
383
|
for (let s = 0; s < c.length && s < a; s += 1)
|
|
384
384
|
e[s] = c[s];
|
|
385
385
|
return e;
|
|
386
386
|
}
|
|
387
|
-
function
|
|
387
|
+
function pt(a) {
|
|
388
388
|
const c = Math.max(...Ne.value.map((e) => Ee({ data: e.series, threshold: l.value.downsample.threshold }).length));
|
|
389
389
|
return a > c ? c : a < 0 || l.value.chart.zoom.startIndex !== null && a < l.value.chart.zoom.startIndex ? l.value.chart.zoom.startIndex !== null ? l.value.chart.zoom.startIndex + 1 : 1 : a;
|
|
390
390
|
}
|
|
391
391
|
async function ea() {
|
|
392
|
-
(l.value.chart.zoom.startIndex !== null || l.value.chart.zoom.endIndex !== null) && Le.value ? (l.value.chart.zoom.startIndex !== null && (await me(), await me(), Le.value.setStartValue(l.value.chart.zoom.startIndex)), l.value.chart.zoom.endIndex !== null && (await me(), await me(), Le.value.setEndValue(
|
|
392
|
+
(l.value.chart.zoom.startIndex !== null || l.value.chart.zoom.endIndex !== null) && Le.value ? (l.value.chart.zoom.startIndex !== null && (await me(), await me(), Le.value.setStartValue(l.value.chart.zoom.startIndex)), l.value.chart.zoom.endIndex !== null && (await me(), await me(), Le.value.setEndValue(pt(l.value.chart.zoom.endIndex + 1)))) : (S.value = {
|
|
393
393
|
start: 0,
|
|
394
394
|
end: Math.max(...Ne.value.map((a) => Ee({ data: a.series, threshold: l.value.downsample.threshold }).length))
|
|
395
395
|
}, Fl.value += 1);
|
|
396
396
|
}
|
|
397
|
-
function
|
|
397
|
+
function kt() {
|
|
398
398
|
ea();
|
|
399
399
|
}
|
|
400
400
|
function xe(a) {
|
|
@@ -429,7 +429,7 @@ const vo = ["id"], ho = ["width", "viewBox", "aria-label"], fo = ["x", "y", "wid
|
|
|
429
429
|
function Ma(a) {
|
|
430
430
|
return a.value >= 0 ? a.y : [null, void 0, NaN, 1 / 0, -1 / 0].includes(a.zeroPosition) ? 0 : a.zeroPosition;
|
|
431
431
|
}
|
|
432
|
-
function
|
|
432
|
+
function _t(a) {
|
|
433
433
|
Vl(
|
|
434
434
|
"selectX",
|
|
435
435
|
{
|
|
@@ -444,7 +444,7 @@ const vo = ["id"], ho = ["width", "viewBox", "aria-label"], fo = ["x", "y", "wid
|
|
|
444
444
|
}
|
|
445
445
|
);
|
|
446
446
|
}
|
|
447
|
-
function
|
|
447
|
+
function wt() {
|
|
448
448
|
return Me.value.map((a) => ({
|
|
449
449
|
values: a.absoluteValues,
|
|
450
450
|
color: a.color,
|
|
@@ -452,7 +452,7 @@ const vo = ["id"], ho = ["width", "viewBox", "aria-label"], fo = ["x", "y", "wid
|
|
|
452
452
|
type: a.type
|
|
453
453
|
}));
|
|
454
454
|
}
|
|
455
|
-
async function
|
|
455
|
+
async function St({ scale: a = 2 } = {}) {
|
|
456
456
|
if (!ge.value) return;
|
|
457
457
|
const { width: c, height: e } = ge.value.getBoundingClientRect(), s = c / e, { imageUri: t, base64: n } = await uo({ domElement: ge.value, base64: !0, img: !0, scale: a });
|
|
458
458
|
return {
|
|
@@ -478,12 +478,12 @@ const vo = ["id"], ho = ["width", "viewBox", "aria-label"], fo = ["x", "y", "wid
|
|
|
478
478
|
type: c.type
|
|
479
479
|
}))), El.value += 1;
|
|
480
480
|
}
|
|
481
|
-
const
|
|
481
|
+
const $t = A(() => {
|
|
482
482
|
const a = l.value.chart.title.text || "Chart visualization", c = l.value.chart.title.subtitle.text || "";
|
|
483
483
|
return `${a}. ${c}`;
|
|
484
484
|
}), Ca = A(() => ({
|
|
485
485
|
linePlot: b.value > l.value.line.dot.hideAboveMaxSerieLength
|
|
486
|
-
})),
|
|
486
|
+
})), Lt = A(() => l.value.chart.userOptions.show && (!l.value.chart.title.show || !l.value.chart.title.text)), At = A(() => {
|
|
487
487
|
if (Array.isArray(l.value.chart.highlightArea))
|
|
488
488
|
return l.value.chart.highlightArea.map((c) => {
|
|
489
489
|
const e = Math.min(c.to, He.value - 1);
|
|
@@ -497,22 +497,22 @@ const vo = ["id"], ho = ["width", "viewBox", "aria-label"], fo = ["x", "y", "wid
|
|
|
497
497
|
to: Math.min(l.value.chart.highlightArea.to, He.value - 1)
|
|
498
498
|
};
|
|
499
499
|
return [{ ...a, span: a.from === a.to ? 1 : a.to < a.from ? 0 : a.to - a.from + 1 }];
|
|
500
|
-
}),
|
|
500
|
+
}), Mt = A(() => ia.value ? Ne.value.map((a, c) => ({
|
|
501
501
|
...a,
|
|
502
502
|
series: Ee({
|
|
503
503
|
data: a.series,
|
|
504
504
|
threshold: l.value.downsample.threshold
|
|
505
505
|
}),
|
|
506
506
|
id: `uniqueId_${c}`
|
|
507
|
-
})) : Ne.value),
|
|
507
|
+
})) : Ne.value), zt = A(() => _e.value.map((a) => {
|
|
508
508
|
const c = a.absoluteValues.map((e) => [void 0, null].includes(e) ? 0 : e);
|
|
509
509
|
return {
|
|
510
510
|
id: a.id,
|
|
511
511
|
name: a.name,
|
|
512
512
|
color: a.color,
|
|
513
|
-
values:
|
|
513
|
+
values: yt(b.value, c)
|
|
514
514
|
};
|
|
515
|
-
})),
|
|
515
|
+
})), Ct = A(() => ({
|
|
516
516
|
responsiveBreakpoint: l.value.table.responsiveBreakpoint,
|
|
517
517
|
roundingValues: l.value.table.rounding,
|
|
518
518
|
showAverage: !1,
|
|
@@ -546,12 +546,12 @@ const vo = ["id"], ho = ["width", "viewBox", "aria-label"], fo = ["x", "y", "wid
|
|
|
546
546
|
};
|
|
547
547
|
}
|
|
548
548
|
return c;
|
|
549
|
-
}),
|
|
549
|
+
}), It = A(() => {
|
|
550
550
|
const a = Ve.value.filter((c) => c.type === "bar").filter((c) => !te.value.includes(c.id)).length;
|
|
551
551
|
return i.value.width / b.value / a - Pe.value * a;
|
|
552
|
-
}), Pe = A(() => J.value.line * l.value.bar.periodGap),
|
|
552
|
+
}), Pe = A(() => J.value.line * l.value.bar.periodGap), Tt = A(() => {
|
|
553
553
|
if (!l.value.chart.zoom.minimap.show) return [];
|
|
554
|
-
const a =
|
|
554
|
+
const a = Mt.value.filter((t) => !te.value.includes(t.id)), c = Math.max(...a.map((t) => t.series.length)), e = [];
|
|
555
555
|
for (let t = 0; t < c; t += 1)
|
|
556
556
|
e.push(a.map((n) => n.series[t] || 0).reduce((n, o) => (n || 0) + (o || 0), 0));
|
|
557
557
|
const s = Math.min(...e);
|
|
@@ -583,7 +583,7 @@ const vo = ["id"], ho = ["width", "viewBox", "aria-label"], fo = ["x", "y", "wid
|
|
|
583
583
|
return t - z * n;
|
|
584
584
|
};
|
|
585
585
|
return c.map(($) => {
|
|
586
|
-
const { yAxis: { yTop: z, yBottom: E, label: k } } = $, N = z != null && E != null && z !== E, L = z == null ? null : K(z), Q = E == null ? null : K(E), ie =
|
|
586
|
+
const { yAxis: { yTop: z, yBottom: E, label: k } } = $, N = z != null && E != null && z !== E, L = z == null ? null : K(z), Q = E == null ? null : K(E), ie = gt(k.fontSize);
|
|
587
587
|
ie.font = `${k.fontSize}px sans-serif`;
|
|
588
588
|
const D = ie.measureText(k.text).width, be = k.fontSize, Ce = (k.position === "start" ? e + k.padding.left : s - k.padding.right) + k.offsetX, he = (L != null && Q != null ? Math.min(L, Q) : L ?? Q) - k.fontSize / 3 + k.offsetY - k.padding.top;
|
|
589
589
|
let P;
|
|
@@ -626,7 +626,7 @@ const vo = ["id"], ho = ["width", "viewBox", "aria-label"], fo = ["x", "y", "wid
|
|
|
626
626
|
max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
|
|
627
627
|
min: o.scaleMin || Math.min(...o.absoluteValues.filter((V) => ![void 0, null].includes(V))) > 0 ? 0 : Math.min(...o.absoluteValues.filter((V) => ![null, void 0].includes(V)))
|
|
628
628
|
}, E = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps, k = 1.0000001, N = l.value.chart.grid.labels.yAxis.useNiceScale ? pl(z.min, z.max === z.min ? z.max * k : z.max, E) : el(z.min, z.max === z.min ? z.max * k : z.max, E), L = l.value.chart.grid.labels.yAxis.useNiceScale ? pl($.valueMin, $.valueMax === $.valueMin ? $.valueMax * k : $.valueMax, E) : el($.valueMin, $.valueMax === $.valueMin ? $.valueMax * k : $.valueMax, E), Q = N.min >= 0 ? 0 : Math.abs(N.min), ie = 0, D = N.max + Q, be = L.max + Math.abs(ie), Ce = o.stackIndex, sl = c - 1 - Ce, he = s ? 1 - o.cumulatedStackRatio : 0, P = s ? n * he + e * sl : 0, H = s ? n * o.stackRatio : i.value.height, j = i.value.bottom - P - H * Q / D, fe = i.value.bottom - P - H * ie / be, ne = Me.value.filter((V) => V.type === "bar").filter((V) => !te.value.includes(V.id)).length, bl = o.series.map((V, le) => {
|
|
629
|
-
const Ye = f.value.useIndividualScale ? (o.absoluteValues[le] + Q) / D : qe(V), Je = f.value.useIndividualScale && f.value.isStacked ? i.value.left + i.value.width / b.value * le : i.value.left + J.value.bar * B + J.value.bar * le * ne -
|
|
629
|
+
const Ye = f.value.useIndividualScale ? (o.absoluteValues[le] + Q) / D : qe(V), Je = f.value.useIndividualScale && f.value.isStacked ? i.value.left + i.value.width / b.value * le : i.value.left + J.value.bar * B + J.value.bar * le * ne - It.value / 2 - B * Pe.value;
|
|
630
630
|
return {
|
|
631
631
|
yOffset: T(P),
|
|
632
632
|
individualHeight: T(H),
|
|
@@ -708,7 +708,7 @@ const vo = ["id"], ho = ["width", "viewBox", "aria-label"], fo = ["x", "y", "wid
|
|
|
708
708
|
y: T(i.value.bottom - P - (H * bl[oe] || 0)),
|
|
709
709
|
value: o.absoluteValues[oe],
|
|
710
710
|
comment: o.comments && o.comments.slice(S.value.start, S.value.end)[oe] || ""
|
|
711
|
-
}), Be = l.value.line.cutNullValues ?
|
|
711
|
+
}), Be = l.value.line.cutNullValues ? Ga(ne) : Xa(ne.filter((I) => I.value !== null)), W = l.value.line.cutNullValues ? Ga(ve) : Xa(ve.filter((I) => I.value !== null)), ee = l.value.line.cutNullValues ? Da(ne) : Ua(ne.filter((I) => I.value !== null)), V = l.value.line.cutNullValues ? Da(ve) : Ua(ve.filter((I) => I.value !== null)), le = N.ticks.map((I) => ({
|
|
712
712
|
y: I >= 0 ? j - H * (I / D) : j + H * Math.abs(I) / D,
|
|
713
713
|
value: I,
|
|
714
714
|
prefix: o.prefix || l.value.chart.labels.prefix,
|
|
@@ -737,13 +737,13 @@ const vo = ["id"], ho = ["width", "viewBox", "aria-label"], fo = ["x", "y", "wid
|
|
|
737
737
|
zeroPosition: o.autoScaling ? fe : j,
|
|
738
738
|
curve: o.autoScaling ? W : Be,
|
|
739
739
|
plots: o.autoScaling ? ve : ne,
|
|
740
|
-
area: o.useArea ? f.value.useIndividualScale ? l.value.line.cutNullValues ?
|
|
740
|
+
area: o.useArea ? f.value.useIndividualScale ? l.value.line.cutNullValues ? qa(
|
|
741
741
|
o.autoScaling ? ve : ne,
|
|
742
742
|
ml
|
|
743
|
-
) :
|
|
743
|
+
) : Za(
|
|
744
744
|
o.autoScaling ? ve.filter((I) => I.value !== null) : ne.filter((I) => I.value !== null),
|
|
745
745
|
ml
|
|
746
|
-
) : l.value.line.cutNullValues ?
|
|
746
|
+
) : l.value.line.cutNullValues ? qa(ne, ml) : Za(ne.filter((I) => I.value !== null), ml) : "",
|
|
747
747
|
curveAreas: o.useArea ? qt(
|
|
748
748
|
o.autoScaling ? l.value.line.cutNullValues ? ve : ve.filter((I) => I.value !== null) : l.value.line.cutNullValues ? ne : ne.filter((I) => I.value !== null),
|
|
749
749
|
ml,
|
|
@@ -871,7 +871,7 @@ const vo = ["id"], ho = ["width", "viewBox", "aria-label"], fo = ["x", "y", "wid
|
|
|
871
871
|
lines: Se.value,
|
|
872
872
|
plots: ze.value,
|
|
873
873
|
config: l.value
|
|
874
|
-
})),
|
|
874
|
+
})), Ot = A(() => {
|
|
875
875
|
let a = "", c = fl.value.map((t) => t.value).filter((t) => Il(t) && t !== null).reduce((t, n) => Math.abs(t) + Math.abs(n), 0);
|
|
876
876
|
const e = de.value[_.value], s = l.value.chart.tooltip.customFormat;
|
|
877
877
|
return Zt(s) && Jt(() => s({
|
|
@@ -900,7 +900,7 @@ const vo = ["id"], ho = ["width", "viewBox", "aria-label"], fo = ["x", "y", "wid
|
|
|
900
900
|
n = `<svg viewBox="0 0 40 40" height="14" width="14">${ua.pattern ? `<rect x="0" y="0" rx="1" stroke="none" height="40" width="40" fill="${t.color}" />` : ""}<rect x="0" y="0" rx="1" stroke="none" height="40" width="40" fill="${ua.pattern ? `url(#pattern_${q.value}_${t.slotAbsoluteIndex}` : t.color}" /></svg>`;
|
|
901
901
|
break;
|
|
902
902
|
case "line":
|
|
903
|
-
!t.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(t.shape) ? o = `<circle cx="10" cy="8" r="4" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${t.color}" />` : t.shape === "triangle" ? o = `<path d="${Te({ plot: { x: 10, y: 8 }, radius: 4, sides: 3, rotation: 0.52 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "square" ? o = `<path d="${Te({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0.8 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "diamond" ? o = `<path d="${Te({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "pentagon" ? o = `<path d="${Te({ plot: { x: 10, y: 8 }, radius: 4, sides: 5, rotation: 0.95 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "hexagon" ? o = `<path d="${Te({ plot: { x: 10, y: 8 }, radius: 4, sides: 6, rotation: 0 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "star" && (o = `<polygon stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${t.color}" points="${
|
|
903
|
+
!t.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(t.shape) ? o = `<circle cx="10" cy="8" r="4" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${t.color}" />` : t.shape === "triangle" ? o = `<path d="${Te({ plot: { x: 10, y: 8 }, radius: 4, sides: 3, rotation: 0.52 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "square" ? o = `<path d="${Te({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0.8 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "diamond" ? o = `<path d="${Te({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "pentagon" ? o = `<path d="${Te({ plot: { x: 10, y: 8 }, radius: 4, sides: 5, rotation: 0.95 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "hexagon" ? o = `<path d="${Te({ plot: { x: 10, y: 8 }, radius: 4, sides: 6, rotation: 0 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "star" && (o = `<polygon stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${t.color}" points="${Ja({ plot: { x: 10, y: 8 }, radius: 4 })}" />`), n = `<svg viewBox="0 0 20 12" height="14" width="20"><rect rx="1.5" x="0" y="6.5" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" height="3" width="20" fill="${t.color}" />${o}</svg>`;
|
|
904
904
|
break;
|
|
905
905
|
case "plot":
|
|
906
906
|
if (!t.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(t.shape)) {
|
|
@@ -908,7 +908,7 @@ const vo = ["id"], ho = ["width", "viewBox", "aria-label"], fo = ["x", "y", "wid
|
|
|
908
908
|
break;
|
|
909
909
|
}
|
|
910
910
|
if (t.shape === "star") {
|
|
911
|
-
n = `<svg viewBox="0 0 12 12" height="14" width="14"><polygon stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" fill="${t.color}" points="${
|
|
911
|
+
n = `<svg viewBox="0 0 12 12" height="14" width="14"><polygon stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" fill="${t.color}" points="${Ja({ plot: { x: 6, y: 6 }, radius: 5 })}" /></svg>`;
|
|
912
912
|
break;
|
|
913
913
|
}
|
|
914
914
|
if (t.shape === "triangle") {
|
|
@@ -1067,7 +1067,7 @@ const vo = ["id"], ho = ["width", "viewBox", "aria-label"], fo = ["x", "y", "wid
|
|
|
1067
1067
|
}
|
|
1068
1068
|
const xl = A(() => !!l.value.debug);
|
|
1069
1069
|
function Fa() {
|
|
1070
|
-
|
|
1070
|
+
Ka(m.dataset) ? (oa({
|
|
1071
1071
|
componentName: "VueUiXy",
|
|
1072
1072
|
type: "dataset",
|
|
1073
1073
|
debug: xl.value
|
|
@@ -1085,7 +1085,7 @@ const vo = ["id"], ho = ["width", "viewBox", "aria-label"], fo = ["x", "y", "wid
|
|
|
1085
1085
|
-----> The serie '${c.name}' contains the value '${e}' at index ${s}.
|
|
1086
1086
|
'${e}' was converted to null to allow the chart to display.`);
|
|
1087
1087
|
});
|
|
1088
|
-
}),
|
|
1088
|
+
}), Ka(m.dataset) || (Sl.value = l.value.loading), ha.value = l.value.chart.userOptions.showOnChartHover, Wl.value = l.value.chart.userOptions.keepStateOnChartLeave, _l.value = !l.value.chart.userOptions.showOnChartHover, f.value = {
|
|
1089
1089
|
dataLabels: {
|
|
1090
1090
|
show: !0
|
|
1091
1091
|
},
|
|
@@ -1112,7 +1112,7 @@ const vo = ["id"], ho = ["width", "viewBox", "aria-label"], fo = ["x", "y", "wid
|
|
|
1112
1112
|
const k = new ResizeObserver((N) => {
|
|
1113
1113
|
for (const L of N)
|
|
1114
1114
|
l.value.chart.title.show && il.value ? o = il.value.getBoundingClientRect().height : o = 0, Le.value && Le.value.$el ? F = Le.value.$el.getBoundingClientRect().height : F = 0, al.value ? $ = al.value.getBoundingClientRect().height : $ = 0, nl.value ? z = nl.value.getBoundingClientRect().height : z = 0, cl.value ? E = cl.value.getBoundingClientRect().height : E = 0, X.value && ge.value.classList.add("no-transition"), requestAnimationFrame(() => {
|
|
1115
|
-
ue.value = L.contentRect.height - o - $ - F - z - E - (X.value ? 48 : a), X.value ? (fa.value = L.contentRect.height - ue.value, Z.value = L.contentBoxSize[0].inlineSize,
|
|
1115
|
+
ue.value = L.contentRect.height - o - $ - F - z - E - (X.value ? 48 : a), X.value ? (fa.value = L.contentRect.height - ue.value, Z.value = L.contentBoxSize[0].inlineSize, ct.value = Z.value / fa.value, ol()) : (Z.value = L.contentBoxSize[0].inlineSize, De.value = `0 0 ${Z.value < 0 ? 10 : Z.value} ${ue.value < 0 ? 10 : ue.value}`), Ya();
|
|
1116
1116
|
});
|
|
1117
1117
|
});
|
|
1118
1118
|
Xe.value = k, Yl.value = e, k.observe(e);
|
|
@@ -1121,18 +1121,18 @@ const vo = ["id"], ho = ["width", "viewBox", "aria-label"], fo = ["x", "y", "wid
|
|
|
1121
1121
|
}
|
|
1122
1122
|
la(() => {
|
|
1123
1123
|
Fa(), ea(), document.addEventListener("mousemove", (a) => {
|
|
1124
|
-
|
|
1124
|
+
nt.value = {
|
|
1125
1125
|
x: a.clientX,
|
|
1126
1126
|
y: a.clientY
|
|
1127
1127
|
};
|
|
1128
1128
|
}), document.addEventListener("scroll", pa);
|
|
1129
|
-
}),
|
|
1129
|
+
}), Wa(() => {
|
|
1130
1130
|
document.removeEventListener("scroll", pa), Xe.value && (Xe.value.unobserve(Yl.value), Xe.value.disconnect());
|
|
1131
1131
|
}), Cl(() => f.value.isStacked, async () => {
|
|
1132
1132
|
X.value && (await me(), ol(), Ql());
|
|
1133
1133
|
});
|
|
1134
1134
|
let zl;
|
|
1135
|
-
async function
|
|
1135
|
+
async function Ea() {
|
|
1136
1136
|
await me(), ol(), Ql(), zl.disconnect();
|
|
1137
1137
|
}
|
|
1138
1138
|
return la(() => {
|
|
@@ -1140,12 +1140,12 @@ const vo = ["id"], ho = ["width", "viewBox", "aria-label"], fo = ["x", "y", "wid
|
|
|
1140
1140
|
for (const c of a) {
|
|
1141
1141
|
const { width: e, height: s } = c.contentRect;
|
|
1142
1142
|
if (e > 0 && s > 0) {
|
|
1143
|
-
|
|
1143
|
+
Ea();
|
|
1144
1144
|
break;
|
|
1145
1145
|
}
|
|
1146
1146
|
}
|
|
1147
1147
|
}), zl.observe(ge.value.parentElement));
|
|
1148
|
-
}),
|
|
1148
|
+
}), Wa(() => {
|
|
1149
1149
|
zl?.disconnect();
|
|
1150
1150
|
}), Cl(() => m.dataset, (a) => {
|
|
1151
1151
|
Array.isArray(a) && a.length > 0 && (Sl.value = !1), He.value = Math.max(...Ne.value.map((c) => Ee({
|
|
@@ -1154,7 +1154,7 @@ const vo = ["id"], ho = ["width", "viewBox", "aria-label"], fo = ["x", "y", "wid
|
|
|
1154
1154
|
}).length)), S.value = {
|
|
1155
1155
|
start: 0,
|
|
1156
1156
|
end: He.value
|
|
1157
|
-
}, Fl.value += 1, El.value += 1;
|
|
1157
|
+
}, Fl.value += 1, El.value += 1, Ea();
|
|
1158
1158
|
}, { deep: !0 }), Cl(() => m.config, (a) => {
|
|
1159
1159
|
Dl.value || (l.value = Gl()), Fa(), da.value += 1, va.value += 1, f.value = {
|
|
1160
1160
|
dataLabels: {
|
|
@@ -1175,9 +1175,9 @@ const vo = ["id"], ho = ["width", "viewBox", "aria-label"], fo = ["x", "y", "wid
|
|
|
1175
1175
|
isStacked: l.value.chart.grid.labels.yAxis.stacked,
|
|
1176
1176
|
useIndividualScale: l.value.chart.grid.labels.yAxis.useIndividualScale
|
|
1177
1177
|
};
|
|
1178
|
-
}, { immediate: !0 }),
|
|
1179
|
-
getData:
|
|
1180
|
-
getImage:
|
|
1178
|
+
}, { immediate: !0 }), Qa({
|
|
1179
|
+
getData: wt,
|
|
1180
|
+
getImage: St,
|
|
1181
1181
|
generatePdf: xa,
|
|
1182
1182
|
generateImage: ba,
|
|
1183
1183
|
generateCsv: Na,
|
|
@@ -1196,7 +1196,7 @@ const vo = ["id"], ho = ["width", "viewBox", "aria-label"], fo = ["x", "y", "wid
|
|
|
1196
1196
|
onMouseenter: c[7] || (c[7] = () => ka(!0)),
|
|
1197
1197
|
onMouseleave: c[8] || (c[8] = () => ka(!1))
|
|
1198
1198
|
}, [
|
|
1199
|
-
l.value.chart.userOptions.buttons.annotator && pe.value ? (u(), Ie(v(
|
|
1199
|
+
l.value.chart.userOptions.buttons.annotator && pe.value ? (u(), Ie(v(rt), {
|
|
1200
1200
|
key: 0,
|
|
1201
1201
|
svgRef: pe.value,
|
|
1202
1202
|
backgroundColor: l.value.chart.backgroundColor,
|
|
@@ -1204,7 +1204,7 @@ const vo = ["id"], ho = ["width", "viewBox", "aria-label"], fo = ["x", "y", "wid
|
|
|
1204
1204
|
active: kl.value,
|
|
1205
1205
|
onClose: Kl
|
|
1206
1206
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : d("", !0),
|
|
1207
|
-
|
|
1207
|
+
Lt.value ? (u(), r("div", {
|
|
1208
1208
|
key: 1,
|
|
1209
1209
|
ref_key: "noTitle",
|
|
1210
1210
|
ref: cl,
|
|
@@ -1232,7 +1232,7 @@ const vo = ["id"], ho = ["width", "viewBox", "aria-label"], fo = ["x", "y", "wid
|
|
|
1232
1232
|
}
|
|
1233
1233
|
}, null, 8, ["config"]))
|
|
1234
1234
|
], 4)) : d("", !0),
|
|
1235
|
-
l.value.chart.userOptions.show && (Wl.value || _l.value) ? (u(), Ie(v(
|
|
1235
|
+
l.value.chart.userOptions.show && (Wl.value || _l.value) ? (u(), Ie(v(at), {
|
|
1236
1236
|
ref: "defails",
|
|
1237
1237
|
key: `user_options_${ca.value}`,
|
|
1238
1238
|
backgroundColor: l.value.chart.backgroundColor,
|
|
@@ -1350,7 +1350,7 @@ const vo = ["id"], ho = ["width", "viewBox", "aria-label"], fo = ["x", "y", "wid
|
|
|
1350
1350
|
width: X.value ? void 0 : "100%",
|
|
1351
1351
|
viewBox: De.value,
|
|
1352
1352
|
style: C(`background: transparent; color:${l.value.chart.color}; font-family:${l.value.chart.fontFamily}`),
|
|
1353
|
-
"aria-label":
|
|
1353
|
+
"aria-label": $t.value,
|
|
1354
1354
|
role: "img",
|
|
1355
1355
|
"aria-live": "polite",
|
|
1356
1356
|
preserveAspectRatio: "xMidYMid"
|
|
@@ -1360,7 +1360,7 @@ const vo = ["id"], ho = ["width", "viewBox", "aria-label"], fo = ["x", "y", "wid
|
|
|
1360
1360
|
ref: ra,
|
|
1361
1361
|
class: "vue-data-ui-g"
|
|
1362
1362
|
}, [
|
|
1363
|
-
yl(v(
|
|
1363
|
+
yl(v(ut)),
|
|
1364
1364
|
a.$slots["chart-background"] ? (u(), r("foreignObject", {
|
|
1365
1365
|
key: 0,
|
|
1366
1366
|
x: i.value.left + Y.value < 0 ? 0 : i.value.left + Y.value,
|
|
@@ -1433,7 +1433,7 @@ const vo = ["id"], ho = ["width", "viewBox", "aria-label"], fo = ["x", "y", "wid
|
|
|
1433
1433
|
], 64)),
|
|
1434
1434
|
l.value.chart.grid.showVerticalLines ? (u(), r("g", wo, [
|
|
1435
1435
|
g("path", {
|
|
1436
|
-
d:
|
|
1436
|
+
d: ht.value,
|
|
1437
1437
|
"stroke-width": 0.5,
|
|
1438
1438
|
stroke: l.value.chart.grid.stroke,
|
|
1439
1439
|
"stroke-linecap": "round",
|
|
@@ -1442,7 +1442,7 @@ const vo = ["id"], ho = ["width", "viewBox", "aria-label"], fo = ["x", "y", "wid
|
|
|
1442
1442
|
])) : d("", !0),
|
|
1443
1443
|
l.value.chart.grid.labels.xAxisLabels.show ? (u(), r("g", $o, [
|
|
1444
1444
|
g("path", {
|
|
1445
|
-
d:
|
|
1445
|
+
d: ft.value,
|
|
1446
1446
|
stroke: l.value.chart.grid.stroke,
|
|
1447
1447
|
"stroke-width": 1,
|
|
1448
1448
|
"stroke-linecap": "round",
|
|
@@ -1548,7 +1548,7 @@ const vo = ["id"], ho = ["width", "viewBox", "aria-label"], fo = ["x", "y", "wid
|
|
|
1548
1548
|
}, null, 8, Wo)
|
|
1549
1549
|
], 8, Fo)
|
|
1550
1550
|
]))), 128)),
|
|
1551
|
-
(u(!0), r(h, null, y(
|
|
1551
|
+
(u(!0), r(h, null, y(At.value, (e) => (u(), r("g", null, [
|
|
1552
1552
|
e.show ? (u(), r(h, { key: 0 }, [
|
|
1553
1553
|
(u(!0), r(h, null, y(e.span, (s, t) => (u(), r("g", null, [
|
|
1554
1554
|
g("rect", {
|
|
@@ -2516,7 +2516,7 @@ const vo = ["id"], ho = ["width", "viewBox", "aria-label"], fo = ["x", "y", "wid
|
|
|
2516
2516
|
fill: "transparent",
|
|
2517
2517
|
onMouseenter: (t) => Va(!0, s),
|
|
2518
2518
|
onMouseleave: c[1] || (c[1] = (t) => Va(!1)),
|
|
2519
|
-
onClick: (t) =>
|
|
2519
|
+
onClick: (t) => _t(s)
|
|
2520
2520
|
}, null, 40, pu))), 128))
|
|
2521
2521
|
])) : d("", !0),
|
|
2522
2522
|
l.value.chart.timeTag.show && (![null, void 0].includes(_.value) || ![null, void 0].includes(O.value)) ? (u(), r("g", ku, [
|
|
@@ -2540,7 +2540,7 @@ const vo = ["id"], ho = ["width", "viewBox", "aria-label"], fo = ["x", "y", "wid
|
|
|
2540
2540
|
}, null, 8, wu)
|
|
2541
2541
|
])) : d("", !0)
|
|
2542
2542
|
])) : d("", !0),
|
|
2543
|
-
U(a.$slots, "svg", { svg:
|
|
2543
|
+
U(a.$slots, "svg", { svg: vt.value }, void 0, !0)
|
|
2544
2544
|
], 512)
|
|
2545
2545
|
], 14, ho)),
|
|
2546
2546
|
a.$slots.watermark ? (u(), r("div", Su, [
|
|
@@ -2783,7 +2783,7 @@ const vo = ["id"], ho = ["width", "viewBox", "aria-label"], fo = ["x", "y", "wid
|
|
|
2783
2783
|
inputColor: l.value.chart.zoom.color,
|
|
2784
2784
|
selectColor: l.value.chart.zoom.highlightColor,
|
|
2785
2785
|
borderColor: l.value.chart.backgroundColor,
|
|
2786
|
-
minimap:
|
|
2786
|
+
minimap: Tt.value,
|
|
2787
2787
|
smoothMinimap: l.value.chart.zoom.minimap.smooth,
|
|
2788
2788
|
minimapSelectedColor: l.value.chart.zoom.minimap.selectedColor,
|
|
2789
2789
|
minimapSelectionRadius: l.value.chart.zoom.minimap.selectionRadius,
|
|
@@ -2804,8 +2804,8 @@ const vo = ["id"], ho = ["width", "viewBox", "aria-label"], fo = ["x", "y", "wid
|
|
|
2804
2804
|
refreshEndPoint: l.value.chart.zoom.endIndex !== null ? l.value.chart.zoom.endIndex + 1 : Math.max(...Nl.dataset.map((e) => v(Ee)({ data: e.series, threshold: l.value.downsample.threshold }).length)),
|
|
2805
2805
|
enableRangeHandles: l.value.chart.zoom.enableRangeHandles,
|
|
2806
2806
|
enableSelectionDrag: l.value.chart.zoom.enableSelectionDrag,
|
|
2807
|
-
onReset:
|
|
2808
|
-
onTrapMouse:
|
|
2807
|
+
onReset: kt,
|
|
2808
|
+
onTrapMouse: mt
|
|
2809
2809
|
}, {
|
|
2810
2810
|
"reset-action": se(({ reset: e }) => [
|
|
2811
2811
|
U(a.$slots, "reset-action", Qe(je({ reset: e })), void 0, !0)
|
|
@@ -2891,7 +2891,7 @@ const vo = ["id"], ho = ["width", "viewBox", "aria-label"], fo = ["x", "y", "wid
|
|
|
2891
2891
|
}, [
|
|
2892
2892
|
U(a.$slots, "source", {}, void 0, !0)
|
|
2893
2893
|
], 512)) : d("", !0),
|
|
2894
|
-
yl(v(
|
|
2894
|
+
yl(v(lt), {
|
|
2895
2895
|
show: f.value.showTooltip && na.value,
|
|
2896
2896
|
backgroundColor: l.value.chart.tooltip.backgroundColor,
|
|
2897
2897
|
color: l.value.chart.tooltip.color,
|
|
@@ -2903,7 +2903,7 @@ const vo = ["id"], ho = ["width", "viewBox", "aria-label"], fo = ["x", "y", "wid
|
|
|
2903
2903
|
position: l.value.chart.tooltip.position,
|
|
2904
2904
|
offsetY: l.value.chart.tooltip.offsetY,
|
|
2905
2905
|
parent: a.$refs.chart,
|
|
2906
|
-
content:
|
|
2906
|
+
content: Ot.value,
|
|
2907
2907
|
isFullscreen: tl.value,
|
|
2908
2908
|
isCustom: l.value.chart.tooltip.customFormat && typeof l.value.chart.tooltip.customFormat == "function"
|
|
2909
2909
|
}, {
|
|
@@ -2915,7 +2915,7 @@ const vo = ["id"], ho = ["width", "viewBox", "aria-label"], fo = ["x", "y", "wid
|
|
|
2915
2915
|
]),
|
|
2916
2916
|
_: 3
|
|
2917
2917
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
2918
|
-
Xl.value ? (u(), Ie(v(
|
|
2918
|
+
Xl.value ? (u(), Ie(v(st), {
|
|
2919
2919
|
key: 9,
|
|
2920
2920
|
hideDetails: "",
|
|
2921
2921
|
config: {
|
|
@@ -2946,18 +2946,18 @@ const vo = ["id"], ho = ["width", "viewBox", "aria-label"], fo = ["x", "y", "wid
|
|
|
2946
2946
|
onClick: c[5] || (c[5] = (e) => dl.value = !dl.value),
|
|
2947
2947
|
style: { cursor: "pointer" }
|
|
2948
2948
|
}, [
|
|
2949
|
-
yl(v(
|
|
2949
|
+
yl(v(tt), {
|
|
2950
2950
|
name: "chartLine",
|
|
2951
2951
|
size: 20,
|
|
2952
2952
|
stroke: l.value.chart.color
|
|
2953
2953
|
}, null, 8, ["stroke"])
|
|
2954
2954
|
])
|
|
2955
2955
|
]),
|
|
2956
|
-
dl.value ? (u(), Ie(v(
|
|
2956
|
+
dl.value ? (u(), Ie(v(ot), {
|
|
2957
2957
|
key: `sparkline_${El.value}`,
|
|
2958
|
-
dataset:
|
|
2959
|
-
config:
|
|
2960
|
-
}, null, 8, ["dataset", "config"])) : (u(), Ie(v(
|
|
2958
|
+
dataset: zt.value,
|
|
2959
|
+
config: Ct.value
|
|
2960
|
+
}, null, 8, ["dataset", "config"])) : (u(), Ie(v(et), {
|
|
2961
2961
|
key: `table_${va.value}`,
|
|
2962
2962
|
colNames: Ml.value.colNames,
|
|
2963
2963
|
head: Ml.value.head,
|
|
@@ -2986,7 +2986,7 @@ const vo = ["id"], ho = ["width", "viewBox", "aria-label"], fo = ["x", "y", "wid
|
|
|
2986
2986
|
v(Dl) ? (u(), Ie(no, { key: 10 })) : d("", !0)
|
|
2987
2987
|
], 46, vo));
|
|
2988
2988
|
}
|
|
2989
|
-
}, or = /* @__PURE__ */ co(Du, [["__scopeId", "data-v-
|
|
2989
|
+
}, or = /* @__PURE__ */ co(Du, [["__scopeId", "data-v-5ce859bf"]]);
|
|
2990
2990
|
export {
|
|
2991
2991
|
or as default
|
|
2992
2992
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { defineAsyncComponent as Q, ref as d, computed as L, useSlots as Va, onMounted as sa, watch as D, nextTick as pe, shallowRef as Ie, onBeforeUnmount as Ga, createElementBlock as ne, openBlock as S, unref as p, normalizeClass as Za, normalizeStyle as ee, createCommentVNode as X, createBlock as N, createElementVNode as ie, createSlots as ja, withCtx as x, renderSlot as k, normalizeProps as B, guardReactiveProps as _, createVNode as qa, toDisplayString as na, createTextVNode as Ja } from "vue";
|
|
2
|
-
import { u as Ka, c as Qa, t as el, p as V, a as al, C as me, b as ll, D as Me, i as ae, f as le, d as ia, a5 as tl, G as ol, ad as rl, o as ul, e as sl, x as va, q as nl, r as il, y as vl, s as ve, l as cl } from "./index-
|
|
2
|
+
import { u as Ka, c as Qa, t as el, p as V, a as al, C as me, b as ll, D as Me, i as ae, f as le, d as ia, a5 as tl, G as ol, ad as rl, o as ul, e as sl, x as va, q as nl, r as il, y as vl, s as ve, l as cl } from "./index-0Dv-kKZf.js";
|
|
3
3
|
import { d as dl, t as hl, u as yl, c as fl, a as ca, l as C, r as Te, b as R, p as da } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as ha } from "./useNestedProp-
|
|
5
|
-
import { u as gl } from "./usePrinter-
|
|
4
|
+
import { u as ha } from "./useNestedProp-B_1ccIiP.js";
|
|
5
|
+
import { u as gl } from "./usePrinter-Bs9Jf70r.js";
|
|
6
6
|
import { u as pl } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
7
|
import { u as ml } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
-
import bl from "./Legend-
|
|
9
|
-
import xl from "./Title-
|
|
10
|
-
import { S as Ll } from "./Slicer-
|
|
8
|
+
import bl from "./Legend-QkCw3q-n.js";
|
|
9
|
+
import xl from "./Title-Dr1vkryr.js";
|
|
10
|
+
import { S as Ll } from "./Slicer-XrQBC47t.js";
|
|
11
11
|
import { u as kl } from "./useTimeLabels-DFkUfjfs.js";
|
|
12
|
-
import Cl from "./img-
|
|
12
|
+
import Cl from "./img-BbqJKhJk.js";
|
|
13
13
|
import { _ as wl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
14
|
const Sl = ["id"], zl = ["onClick"], $l = {
|
|
15
15
|
key: 2,
|
|
@@ -32,7 +32,7 @@ const Sl = ["id"], zl = ["onClick"], $l = {
|
|
|
32
32
|
},
|
|
33
33
|
emits: ["selectLegend"],
|
|
34
34
|
setup(Oe, { expose: ya, emit: fa }) {
|
|
35
|
-
const ga = Q(() => import("./vue-ui-accordion-
|
|
35
|
+
const ga = Q(() => import("./vue-ui-accordion-Ei-A9Pcc.js")), pa = Q(() => import("./DataTable-DD-YYbSP.js")), ma = Q(() => import("./NonSvgPenAndPaper-CLRd_P0a.js")), ba = Q(() => import("./vue-ui-skeleton-KAJ8lszm.js")), xa = Q(() => import("./Tooltip-DziB0nPv.js")), La = Q(() => import("./UserOptions-CgOhoKqW.js")), { vue_ui_xy_canvas: ka } = Ka(), g = Oe, be = d(Qa()), P = d(null), te = d(null), s = d(null), y = d(1), E = d(1), ce = d(!1), c = d(null), de = d(""), Re = d(null), $ = d([]), G = d(1), H = d(!0), Z = d(!0), xe = d(null), Pe = d(0), Ee = d(0), he = d(!1), Fe = d(null), Ae = d(null), De = d(null), Ne = d(null), Le = d(0), ke = d(0), Ce = d(0), M = d(null), we = L(() => !!g.dataset && g.dataset.length), Ca = fa, wa = Va();
|
|
36
36
|
sa(() => {
|
|
37
37
|
wa["chart-background"] && console.warn("VueUiXyCanvas does not support the #chart-background slot.");
|
|
38
38
|
});
|
package/package.json
CHANGED