vue-data-ui 3.3.1 → 3.3.2
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/{PackageVersion-BfykJm_B.js → PackageVersion-r-Q1R3nV.js} +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-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-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-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-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/useResizeObserverEffect-DfnWps4W.js +109 -0
- package/dist/{vue-data-ui-j8Dnx_Ui.js → vue-data-ui-BFdGl7rL.js} +54 -54
- package/dist/vue-data-ui.js +54 -54
- package/dist/{vue-ui-3d-bar-Cml_eeEU.js → vue-ui-3d-bar-kzlIaqHU.js} +1 -1
- package/dist/{vue-ui-age-pyramid-MULKSv5c.js → vue-ui-age-pyramid-YFzQ15k1.js} +26 -33
- package/dist/{vue-ui-bullet-BHO5zu9m.js → vue-ui-bullet-DdjpiM-T.js} +1 -1
- package/dist/{vue-ui-candlestick-B7EjAlSi.js → vue-ui-candlestick-x9U5Ni0N.js} +28 -35
- package/dist/{vue-ui-carousel-table-DXnYj0Gc.js → vue-ui-carousel-table-CRI_iPLn.js} +1 -1
- package/dist/{vue-ui-chestnut-B1Usqda-.js → vue-ui-chestnut-YrEA5Gq3.js} +1 -1
- package/dist/{vue-ui-chord-DgXH82Hg.js → vue-ui-chord-D_2DdvpZ.js} +1 -1
- package/dist/{vue-ui-circle-pack-BQfaZFFz.js → vue-ui-circle-pack-xm9-OOAR.js} +1 -1
- package/dist/{vue-ui-dashboard-C6xHAPp8.js → vue-ui-dashboard-29ZuFoLn.js} +54 -54
- package/dist/{vue-ui-donut-swJu7UL2.js → vue-ui-donut-BQptfVfE.js} +1 -1
- package/dist/{vue-ui-donut-evolution-D_CKlaay.js → vue-ui-donut-evolution-fiqngEFW.js} +72 -79
- package/dist/{vue-ui-dumbbell-siD31WFG.js → vue-ui-dumbbell-Cw45EBO0.js} +28 -35
- package/dist/{vue-ui-flow-BZCnqIs-.js → vue-ui-flow-DPu9BjPy.js} +1 -1
- package/dist/{vue-ui-funnel-DmgcIRzW.js → vue-ui-funnel-CtlDuNjO.js} +1 -1
- package/dist/{vue-ui-galaxy-C-zegxf9.js → vue-ui-galaxy-BiVjoNHW.js} +1 -1
- package/dist/{vue-ui-gauge-D6C8eUvP.js → vue-ui-gauge-CoM6Q3Nb.js} +1 -1
- package/dist/{vue-ui-gizmo-iSYUVKlt.js → vue-ui-gizmo-DXG8dS5u.js} +1 -1
- package/dist/{vue-ui-heatmap-RHDxexNf.js → vue-ui-heatmap-D6n8AnCc.js} +135 -156
- package/dist/{vue-ui-history-plot-4nwAd1qA.js → vue-ui-history-plot-C8WMHda_.js} +35 -42
- package/dist/{vue-ui-molecule-BhisFSGQ.js → vue-ui-molecule-DC4_vXt_.js} +1 -1
- package/dist/{vue-ui-mood-radar-B8yHPdrV.js → vue-ui-mood-radar-BgT5wMS0.js} +1 -1
- package/dist/{vue-ui-nested-donuts-Bfp0oVSK.js → vue-ui-nested-donuts-D2gSqe1f.js} +1 -1
- package/dist/{vue-ui-onion-f1B0W_oT.js → vue-ui-onion-CEbv2ii4.js} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-DcY-0R-7.js → vue-ui-parallel-coordinate-plot-budrvcwU.js} +34 -41
- package/dist/{vue-ui-quadrant-DuzopA33.js → vue-ui-quadrant-PpymeiXe.js} +1 -1
- package/dist/{vue-ui-quick-chart-45Tm1UnC.js → vue-ui-quick-chart-k6mjTD56.js} +205 -212
- package/dist/{vue-ui-radar-DDS405TF.js → vue-ui-radar-C5NvYMnv.js} +1 -1
- package/dist/{vue-ui-relation-circle-BqXHJEvi.js → vue-ui-relation-circle-Df33aaUT.js} +1 -1
- package/dist/{vue-ui-ridgeline-Lx7YOCRg.js → vue-ui-ridgeline-BTw-37RS.js} +34 -41
- package/dist/{vue-ui-rings-crjrV65X.js → vue-ui-rings-C_s9xOtZ.js} +1 -1
- package/dist/{vue-ui-scatter-Bk4liS2c.js → vue-ui-scatter-Jd8bQ0S5.js} +1 -1
- package/dist/{vue-ui-skeleton-Pu9gPf97.js → vue-ui-skeleton-Ce7H57o7.js} +1 -1
- package/dist/{vue-ui-spark-trend-BmaybxJn.js → vue-ui-spark-trend-DQy4iSO7.js} +1 -1
- package/dist/{vue-ui-sparkbar-DvhcXniz.js → vue-ui-sparkbar-CUFTHql0.js} +1 -1
- package/dist/{vue-ui-sparkgauge-D4Brfset.js → vue-ui-sparkgauge-CcykuBps.js} +1 -1
- package/dist/{vue-ui-sparkhistogram-D5_lR__d.js → vue-ui-sparkhistogram-CyGvYpYn.js} +1 -1
- package/dist/{vue-ui-sparkline-DxNG5QQg.js → vue-ui-sparkline-CLWJM6hA.js} +1 -1
- package/dist/{vue-ui-sparkstackbar-BTFzo3fq.js → vue-ui-sparkstackbar-Cln1pduE.js} +1 -1
- package/dist/{vue-ui-stackbar-B8glHsE6.js → vue-ui-stackbar-DIUil9DO.js} +24 -39
- package/dist/{vue-ui-strip-plot-C5Bro8-W.js → vue-ui-strip-plot-C4U0fT5D.js} +104 -111
- package/dist/{vue-ui-table-Ddu9yx2S.js → vue-ui-table-DpdP3PDq.js} +2 -2
- package/dist/{vue-ui-table-sparkline-D3tgrV_k.js → vue-ui-table-sparkline-Chf5YY4A.js} +1 -1
- package/dist/{vue-ui-thermometer-BxQIZoXd.js → vue-ui-thermometer-D6RmaNE6.js} +1 -1
- package/dist/{vue-ui-timer-BwFlr_19.js → vue-ui-timer-C5E1kJRt.js} +1 -1
- package/dist/{vue-ui-tiremarks-KwISwJS6.js → vue-ui-tiremarks-D0erVBnj.js} +1 -1
- package/dist/{vue-ui-treemap-C6PLDL2Y.js → vue-ui-treemap-K8FYxuYz.js} +1 -1
- package/dist/{vue-ui-vertical-bar-CTmRo06n.js → vue-ui-vertical-bar-BA3OY8Sh.js} +1 -1
- package/dist/{vue-ui-waffle-BwOLL9aa.js → vue-ui-waffle-CgLgPuro.js} +1 -1
- package/dist/{vue-ui-wheel-KI9mkz8y.js → vue-ui-wheel-C_cOUhCs.js} +1 -1
- package/dist/{vue-ui-word-cloud-DTyjx6X4.js → vue-ui-word-cloud-uvHNOIpN.js} +1 -1
- package/dist/{vue-ui-world-C3QXAlC7.js → vue-ui-world-DmeNMwpX.js} +1 -1
- package/dist/{vue-ui-xy-canvas-CdkE1NHd.js → vue-ui-xy-canvas-BQKR36bd.js} +1 -1
- package/dist/{vue-ui-xy-b-CN-G4J.js → vue-ui-xy-tWE4H5ij.js} +274 -281
- package/package.json +1 -1
- package/dist/useTimeLabelCollider-CIsgDrl9.js +0 -78
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { defineAsyncComponent as E, ref as i, shallowRef as xt, computed as y, onMounted as il, toRefs as cl, nextTick as Ie, watch as re,
|
|
2
|
-
import { c as
|
|
3
|
-
import { t as $t, u as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import { u as
|
|
10
|
-
import { u as
|
|
11
|
-
import { u as El } from "./
|
|
1
|
+
import { defineAsyncComponent as E, ref as i, shallowRef as xt, computed as y, onMounted as il, toRefs as cl, nextTick as Ie, watch as re, onBeforeUnmount as vl, createElementBlock as n, openBlock as u, unref as c, normalizeStyle as Q, normalizeClass as N, createBlock as O, createCommentVNode as v, createElementVNode as b, createSlots as pt, withCtx as p, renderSlot as S, normalizeProps as Z, guardReactiveProps as ee, createVNode as kt, Fragment as $, renderList as z, toDisplayString as k, Teleport as dl, resolveDynamicComponent as hl, mergeProps as yl, createTextVNode as De } from "vue";
|
|
2
|
+
import { c as Ct, o as wt, f as ie, g as gl, t as fl, b as bl, p as ce, B as _t, e as ml, h as Oe, J as xl, C as Lt, n as Te, a as Ne, d as ve, X as pl, s as te, K as kl, L as Cl, u as wl, v as _l, w as At, x as Ll, y as Al, M as St, N as Sl } from "./lib-CEjkWSLj.js";
|
|
3
|
+
import { t as $t, u as $l } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as zl, a as zt } from "./useNestedProp-Ce3PwN8T.js";
|
|
5
|
+
import { u as Il } from "./usePrinter-DJ1iH-F_.js";
|
|
6
|
+
import { u as Dl, B as Ol } from "./BaseScanner-BgWxam9d.js";
|
|
7
|
+
import { u as Tl } from "./useSvgExport-DrjCWun4.js";
|
|
8
|
+
import { u as Nl } from "./useTimeLabels-BGFjWgrv.js";
|
|
9
|
+
import { u as Pl } from "./useUserOptionState-BIvW1Kz7.js";
|
|
10
|
+
import { u as Rl } from "./useChartAccessibility-9icAAmYg.js";
|
|
11
|
+
import { u as Fl, a as El } from "./useResizeObserverEffect-DfnWps4W.js";
|
|
12
12
|
import Vl from "./img-J2dLIr8Y.js";
|
|
13
13
|
import Bl from "./Title-Camz1Lce.js";
|
|
14
14
|
import { t as Ml } from "./themes-Dw-dDudK.js";
|
|
15
15
|
import Hl from "./Legend-By4rru90.js";
|
|
16
16
|
import { S as Ul } from "./Slicer-Znzt0gSE.js";
|
|
17
17
|
import { _ as Xl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
18
|
-
const Wl = ["id"], Gl = ["id"], Yl = ["xmlns", "viewBox"], jl = ["x", "y", "width", "height"], ql = ["id"], Jl = ["stop-color"], Kl = ["stop-color"], Ql = ["id"], Zl = ["stop-color"], ea = ["stop-color"], ta = ["stop-color"], la = { key: 1 }, aa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], oa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ua = { key: 0 }, sa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], na = ["font-size", "fill", "transform"], ra = ["x", "y", "font-size", "fill"], ia = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ca = ["x", "y", "font-size", "fill", "font-weight"], va = { key: 0 }, da = ["text-anchor", "font-size", "fill", "transform"], ha = ["text-anchor", "font-size", "fill", "transform", "innerHTML"], ya = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], ga = { key: 1 }, fa = ["cx", "cy", "r", "fill"], ba = { key: 0 }, ma = { key: 0 }, xa = ["d", "stroke"], pa = ["text-anchor", "x", "y", "fill"], ka = ["cx", "cy", "r", "fill"],
|
|
18
|
+
const Wl = ["id"], Gl = ["id"], Yl = ["xmlns", "viewBox"], jl = ["x", "y", "width", "height"], ql = ["id"], Jl = ["stop-color"], Kl = ["stop-color"], Ql = ["id"], Zl = ["stop-color"], ea = ["stop-color"], ta = ["stop-color"], la = { key: 1 }, aa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], oa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ua = { key: 0 }, sa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], na = ["font-size", "fill", "transform"], ra = ["x", "y", "font-size", "fill"], ia = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ca = ["x", "y", "font-size", "fill", "font-weight"], va = { key: 0 }, da = ["text-anchor", "font-size", "fill", "transform"], ha = ["text-anchor", "font-size", "fill", "transform", "innerHTML"], ya = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], ga = { key: 1 }, fa = ["cx", "cy", "r", "fill"], ba = { key: 0 }, ma = { key: 0 }, xa = ["d", "stroke"], pa = ["text-anchor", "x", "y", "fill"], ka = ["cx", "cy", "r", "fill"], Ca = { key: 0 }, wa = ["cx", "cy", "fill"], _a = { key: 1 }, La = ["d", "fill", "stroke"], Aa = { key: 2 }, Sa = ["d", "fill", "stroke"], $a = ["x", "y", "font-size", "fill"], za = ["x", "y", "width", "height", "fill"], Ia = ["x", "y", "width", "height", "onMouseenter", "onMouseleave", "onClick"], Da = {
|
|
19
19
|
key: 4,
|
|
20
20
|
class: "vue-data-ui-watermark"
|
|
21
21
|
}, Oa = ["id"], Ta = ["onClick"], Na = { key: 0 }, Pa = { key: 1 }, Ra = {
|
|
@@ -36,18 +36,18 @@ const Wl = ["id"], Gl = ["id"], Yl = ["xmlns", "viewBox"], jl = ["x", "y", "widt
|
|
|
36
36
|
},
|
|
37
37
|
emits: ["selectLegend"],
|
|
38
38
|
setup(It, { expose: Dt, emit: Ot }) {
|
|
39
|
-
const Tt = E(() => import("./vue-ui-accordion-VTP418mC.js")), Nt = E(() => import("./BaseIcon-eZbszQrv.js")), Pt = E(() => import("./DataTable-yAMEyP6y.js")), Rt = E(() => import("./PackageVersion-
|
|
39
|
+
const Tt = E(() => import("./vue-ui-accordion-VTP418mC.js")), Nt = E(() => import("./BaseIcon-eZbszQrv.js")), Pt = E(() => import("./DataTable-yAMEyP6y.js")), Rt = E(() => import("./PackageVersion-r-Q1R3nV.js")), Ft = E(() => import("./PenAndPaper-Bo-lMUik.js")), Et = E(() => import("./UserOptions-CSja1SGU.js")), Vt = E(() => import("./vue-ui-donut-BQptfVfE.js")), Pe = E(() => import("./BaseDraggableDialog-CVGErydD.js")), { vue_ui_donut_evolution: Bt } = zl(), m = It, T = i(Ct()), w = i([]), f = i(null), le = i(null), de = i(!1), V = i(null), P = i(null), Mt = i(null), Re = i(0), Fe = i(0), Ee = i(0), Ve = i(0), Be = i(0), he = i(null), ae = i(null), ye = i(null), ge = i(null), Me = i(!1), Y = i(null), fe = i(null), He = i(null), Ue = i(null), Xe = i(null), We = i(null), Ge = i(null), be = i(!1), j = xt(null), oe = xt(null), Ye = i(null), je = Ot, qe = y(() => !!m.dataset && m.dataset.length);
|
|
40
40
|
il(() => {
|
|
41
41
|
Me.value = !0, Je();
|
|
42
42
|
});
|
|
43
43
|
const ue = y(() => !!e.value.debug);
|
|
44
44
|
function Je() {
|
|
45
|
-
if (
|
|
45
|
+
if (wt(m.dataset) ? (ie({
|
|
46
46
|
componentName: "VueUiDonutEvolution",
|
|
47
47
|
type: "dataset",
|
|
48
48
|
debug: ue.value
|
|
49
49
|
}), se.value = !0) : m.dataset.length && m.dataset.forEach((t, a) => {
|
|
50
|
-
|
|
50
|
+
gl({
|
|
51
51
|
datasetObject: t,
|
|
52
52
|
requiredAttributes: ["name", "values"]
|
|
53
53
|
}).forEach((l) => {
|
|
@@ -59,12 +59,12 @@ const Wl = ["id"], Gl = ["id"], Yl = ["xmlns", "viewBox"], jl = ["x", "y", "widt
|
|
|
59
59
|
debug: ue.value
|
|
60
60
|
}), se.value = !0;
|
|
61
61
|
});
|
|
62
|
-
}),
|
|
62
|
+
}), wt(m.dataset) || (se.value = e.value.loading), setTimeout(() => {
|
|
63
63
|
be.value = !0;
|
|
64
64
|
}, 10), xe(), e.value.responsive) {
|
|
65
65
|
const t = $t(() => {
|
|
66
66
|
be.value = !1;
|
|
67
|
-
const { width: a, height: l } =
|
|
67
|
+
const { width: a, height: l } = $l({
|
|
68
68
|
chart: P.value,
|
|
69
69
|
title: e.value.style.chart.title.text ? He.value : null,
|
|
70
70
|
legend: e.value.style.chart.legend.show ? Ue.value : null,
|
|
@@ -80,10 +80,10 @@ const Wl = ["id"], Gl = ["id"], Yl = ["xmlns", "viewBox"], jl = ["x", "y", "widt
|
|
|
80
80
|
j.value && (oe.value && j.value.unobserve(oe.value), j.value.disconnect()), j.value = new ResizeObserver(t), oe.value = P.value.parentNode, j.value.observe(oe.value);
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
|
-
const e = i(
|
|
83
|
+
const e = i(Ce()), { loading: Ke, FINAL_DATASET: me, manualLoading: se } = Dl({
|
|
84
84
|
...cl(m),
|
|
85
85
|
FINAL_CONFIG: e,
|
|
86
|
-
prepareConfig:
|
|
86
|
+
prepareConfig: Ce,
|
|
87
87
|
callback: () => {
|
|
88
88
|
Promise.resolve().then(async () => {
|
|
89
89
|
await xe();
|
|
@@ -106,7 +106,7 @@ const Wl = ["id"], Gl = ["id"], Yl = ["xmlns", "viewBox"], jl = ["x", "y", "widt
|
|
|
106
106
|
color: "#CACACA"
|
|
107
107
|
}
|
|
108
108
|
],
|
|
109
|
-
skeletonConfig:
|
|
109
|
+
skeletonConfig: fl({
|
|
110
110
|
defaultConfig: e.value,
|
|
111
111
|
userConfig: {
|
|
112
112
|
useCssAnimation: !1,
|
|
@@ -170,8 +170,8 @@ const Wl = ["id"], Gl = ["id"], Yl = ["xmlns", "viewBox"], jl = ["x", "y", "widt
|
|
|
170
170
|
const a = I.value;
|
|
171
171
|
return t > a ? a : t < 0 || e.value.style.chart.zoom.startIndex !== null && t < e.value.style.chart.zoom.startIndex ? e.value.style.chart.zoom.startIndex !== null ? e.value.style.chart.zoom.startIndex + 1 : 1 : t;
|
|
172
172
|
}
|
|
173
|
-
const { userOptionsVisible: pe, setUserOptionsVisibility: et, keepUserOptionState: tt } =
|
|
174
|
-
function
|
|
173
|
+
const { userOptionsVisible: pe, setUserOptionsVisibility: et, keepUserOptionState: tt } = Pl({ config: e.value }), { svgRef: ke } = Rl({ config: e.value.style.chart.title });
|
|
174
|
+
function Ce() {
|
|
175
175
|
const t = zt({
|
|
176
176
|
userConfig: m.config,
|
|
177
177
|
defaultConfig: Bt
|
|
@@ -182,19 +182,19 @@ const Wl = ["id"], Gl = ["id"], Yl = ["xmlns", "viewBox"], jl = ["x", "y", "widt
|
|
|
182
182
|
userConfig: Ml.vue_ui_donut_evolution[t.theme] || m.config,
|
|
183
183
|
defaultConfig: t
|
|
184
184
|
}),
|
|
185
|
-
customPalette:
|
|
185
|
+
customPalette: bl[t.theme] || ce
|
|
186
186
|
} : a = t, m.config && _t(m.config, "style.chart.zoom.startIndex") ? a.style.chart.zoom.startIndex = m.config.style.chart.zoom.startIndex : a.style.chart.zoom.startIndex = null, m.config && _t(m.config, "style.chart.zoom.endIndex") ? a.style.chart.zoom.endIndex = m.config.style.chart.zoom.endIndex : a.style.chart.zoom.endIndex = null, a;
|
|
187
187
|
}
|
|
188
188
|
re(() => m.config, (t) => {
|
|
189
|
-
Ke.value || (e.value =
|
|
189
|
+
Ke.value || (e.value = Ce()), pe.value = !e.value.userOptions.showOnChartHover, Je(), Ee.value += 1, Ve.value += 1, Be.value += 1, B.value.showTable = e.value.table.show;
|
|
190
190
|
}, { deep: !0 }), re(() => m.dataset, (t) => {
|
|
191
191
|
Array.isArray(t) && t.length > 0 && (se.value = !1), Ze();
|
|
192
192
|
}, { deep: !0 });
|
|
193
|
-
const { isPrinting: lt, isImaging: at, generatePdf: ot, generateImage: ut } =
|
|
193
|
+
const { isPrinting: lt, isImaging: at, generatePdf: ot, generateImage: ut } = Il({
|
|
194
194
|
elementId: T.value,
|
|
195
195
|
fileName: e.value.style.chart.title.text || "vue-ui-donut-evolution",
|
|
196
196
|
options: e.value.userOptions.print
|
|
197
|
-
}), Ut = y(() => e.value.userOptions.show && !e.value.style.chart.title.text), Xt = y(() =>
|
|
197
|
+
}), Ut = y(() => e.value.userOptions.show && !e.value.style.chart.title.text), Xt = y(() => ml(e.value.customPalette)), B = i({
|
|
198
198
|
showTable: e.value.table.show
|
|
199
199
|
});
|
|
200
200
|
re(e, () => {
|
|
@@ -217,24 +217,17 @@ const Wl = ["id"], Gl = ["id"], Yl = ["xmlns", "viewBox"], jl = ["x", "y", "widt
|
|
|
217
217
|
const a = ge.value ? ge.value.getBoundingClientRect().width + e.value.style.chart.layout.grid.axis.yLabelOffsetX + e.value.style.chart.layout.grid.axis.fontSize : 0;
|
|
218
218
|
return t + a + 5;
|
|
219
219
|
}
|
|
220
|
-
const
|
|
221
|
-
|
|
220
|
+
const we = i(0), Gt = $t((t) => {
|
|
221
|
+
we.value = t;
|
|
222
222
|
}, 100);
|
|
223
|
-
vl((
|
|
224
|
-
|
|
225
|
-
if (!a) return;
|
|
226
|
-
const l = new ResizeObserver((s) => {
|
|
227
|
-
Gt(s[0].contentRect.height);
|
|
228
|
-
});
|
|
229
|
-
l.observe(a), t(() => l.disconnect());
|
|
230
|
-
}), dl(() => {
|
|
231
|
-
Ce.value = 0;
|
|
223
|
+
Fl({ elementRef: ae, callback: Gt, attr: "height" }), vl(() => {
|
|
224
|
+
we.value = 0;
|
|
232
225
|
});
|
|
233
226
|
const st = y(() => {
|
|
234
227
|
let t = 0;
|
|
235
228
|
ye.value && (t = ye.value.getBBox().height);
|
|
236
229
|
let a = 0;
|
|
237
|
-
return ae.value && (a =
|
|
230
|
+
return ae.value && (a = we.value), t + a + e.value.style.chart.layout.grid.axis.fontSize + e.value.style.chart.layout.grid.xAxis.dataLabels.offsetY;
|
|
238
231
|
}), r = y(() => {
|
|
239
232
|
const t = Wt(), a = e.value.style.chart.layout.dataLabels.fontSize * 3, l = U.value.width, s = U.value.height, o = M.value.left + t, g = l - M.value.right, d = l - o - M.value.right, x = s - M.value.top - M.value.bottom - a - st.value, G = M.value.top + a, F = s - M.value.bottom - st.value;
|
|
240
233
|
return {
|
|
@@ -265,23 +258,23 @@ const Wl = ["id"], Gl = ["id"], Yl = ["xmlns", "viewBox"], jl = ["x", "y", "widt
|
|
|
265
258
|
});
|
|
266
259
|
}), me.value.map((t, a) => ({
|
|
267
260
|
...t,
|
|
268
|
-
values:
|
|
261
|
+
values: xl(t.values),
|
|
269
262
|
color: Oe(t.color) || Xt.value[a] || ce[a] || ce[a % ce.length],
|
|
270
263
|
length: (t.values || []).length,
|
|
271
|
-
uid:
|
|
272
|
-
})))), q = y(() => R.value.filter((t) => !
|
|
264
|
+
uid: Ct()
|
|
265
|
+
})))), q = y(() => R.value.filter((t) => !w.value.includes(t.uid)).map((t) => ({
|
|
273
266
|
...t,
|
|
274
267
|
values: t.values.filter((a, l) => l >= h.value.start && l <= h.value.end)
|
|
275
|
-
}))), I = y(() => Math.max(...q.value.map((t) => t.length))), _ = y(() =>
|
|
268
|
+
}))), I = y(() => Math.max(...q.value.map((t) => t.length))), _ = y(() => Nl({
|
|
276
269
|
values: e.value.style.chart.layout.grid.xAxis.dataLabels.values,
|
|
277
270
|
maxDatapoints: I.value,
|
|
278
271
|
formatter: e.value.style.chart.layout.grid.xAxis.dataLabels.datetimeFormatter,
|
|
279
272
|
start: h.value.start,
|
|
280
273
|
end: h.value.end
|
|
281
|
-
})),
|
|
274
|
+
})), C = y(() => r.value.width / (h.value.end - h.value.start)), L = y(() => {
|
|
282
275
|
const t = [];
|
|
283
276
|
for (let o = 0; o < h.value.end - h.value.start; o += 1) {
|
|
284
|
-
const g = q.value.map((D) => D.values[o] ?? null), d = g.filter((D) => [void 0, null].includes(D)).length === g.length, x = g.reduce((D, A) => D + A, 0), G = g.map((D) => D / x), F = r.value.left +
|
|
277
|
+
const g = q.value.map((D) => D.values[o] ?? null), d = g.filter((D) => [void 0, null].includes(D)).length === g.length, x = g.reduce((D, A) => D + A, 0), G = g.map((D) => D / x), F = r.value.left + C.value * o + C.value / 2;
|
|
285
278
|
t.push({
|
|
286
279
|
index: o,
|
|
287
280
|
percentages: G,
|
|
@@ -292,7 +285,7 @@ const Wl = ["id"], Gl = ["id"], Yl = ["xmlns", "viewBox"], jl = ["x", "y", "widt
|
|
|
292
285
|
}
|
|
293
286
|
const a = 0, l = Math.max(...t.map((o) => o.subtotal)), s = t.length === 1 ? l * 2 : l;
|
|
294
287
|
return t.map((o, g) => {
|
|
295
|
-
const d = Math.min(r.value.width / 24,
|
|
288
|
+
const d = Math.min(r.value.width / 24, C.value / 2 * 0.7), x = d > r.value.width / 16 ? r.value.width / 16 : d, G = f.value === o.index ? r.value.width / 16 : x, F = t.length > 4 ? d * 2 : d * 2 > C.value / 2 * 0.7 ? C.value / 2 * 0.7 : d * 2, D = r.value.bottom - r.value.height * o.subtotal / Lt(a, s, e.value.style.chart.layout.grid.yAxis.dataLabels.steps).max;
|
|
296
289
|
return {
|
|
297
290
|
...o,
|
|
298
291
|
y: D,
|
|
@@ -371,9 +364,9 @@ const Wl = ["id"], Gl = ["id"], Yl = ["xmlns", "viewBox"], jl = ["x", "y", "widt
|
|
|
371
364
|
color: t.color
|
|
372
365
|
})).sort((t, a) => a.value - t.value).map((t, a) => ({
|
|
373
366
|
...t,
|
|
374
|
-
opacity:
|
|
367
|
+
opacity: w.value.includes(t.uid) ? 0.5 : 1,
|
|
375
368
|
segregate: () => Ae(t.uid),
|
|
376
|
-
isSegregated:
|
|
369
|
+
isSegregated: w.value.includes(t.uid),
|
|
377
370
|
display: `${t.name}${e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ": " : ""}${e.value.style.chart.legend.showValue ? Ne(
|
|
378
371
|
e.value.style.chart.layout.dataLabels.formatter,
|
|
379
372
|
t.value,
|
|
@@ -384,7 +377,7 @@ const Wl = ["id"], Gl = ["id"], Yl = ["xmlns", "viewBox"], jl = ["x", "y", "widt
|
|
|
384
377
|
r: e.value.style.chart.legend.roundingValue
|
|
385
378
|
}),
|
|
386
379
|
{ datapoint: t, seriesIndex: a }
|
|
387
|
-
) : ""}${e.value.style.chart.legend.showPercentage ?
|
|
380
|
+
) : ""}${e.value.style.chart.legend.showPercentage ? w.value.includes(t.uid) ? `${e.value.style.chart.legend.showValue ? " (" : ""}- %${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? " (" : ""}${isNaN(t.value / ct.value) ? "-" : ve({
|
|
388
381
|
v: t.value / ct.value * 100,
|
|
389
382
|
s: "%",
|
|
390
383
|
r: e.value.style.chart.legend.roundingPercentage
|
|
@@ -398,23 +391,23 @@ const Wl = ["id"], Gl = ["id"], Yl = ["xmlns", "viewBox"], jl = ["x", "y", "widt
|
|
|
398
391
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
399
392
|
}));
|
|
400
393
|
function Ae(t) {
|
|
401
|
-
if (
|
|
402
|
-
|
|
394
|
+
if (w.value.includes(t))
|
|
395
|
+
w.value = w.value.filter((a) => a !== t), je("selectLegend", null);
|
|
403
396
|
else {
|
|
404
|
-
if (
|
|
405
|
-
|
|
397
|
+
if (w.value.length === R.value.length - 1) return;
|
|
398
|
+
w.value.push(t), je("selectLegend", R.value.find((a) => a.uid === t));
|
|
406
399
|
}
|
|
407
400
|
V.value && it(L.value.find((a, l) => l === J.value));
|
|
408
401
|
}
|
|
409
402
|
const W = y(() => {
|
|
410
|
-
const t = [""].concat(R.value.filter((o) => !
|
|
403
|
+
const t = [""].concat(R.value.filter((o) => !w.value.includes(o.uid)).map((o) => ({
|
|
411
404
|
name: o.name,
|
|
412
405
|
color: o.color
|
|
413
406
|
}))).concat(["Σ"]);
|
|
414
407
|
let a = [];
|
|
415
408
|
for (let o = 0; o < I.value; o += 1) {
|
|
416
|
-
const g = R.value.filter((d) => !
|
|
417
|
-
a.push([_.value[o] ? _.value[o].text : "-"].concat(R.value.filter((d) => !
|
|
409
|
+
const g = R.value.filter((d) => !w.value.includes(d.uid)).map((d) => d.values[o] ?? 0).reduce((d, x) => d + x, 0);
|
|
410
|
+
a.push([_.value[o] ? _.value[o].text : "-"].concat(R.value.filter((d) => !w.value.includes(d.uid)).map((d) => ({
|
|
418
411
|
value: d.values[o] ?? 0,
|
|
419
412
|
percentage: d.values[o] ? d.values[o] / g * 100 : 0
|
|
420
413
|
}))).concat([`${e.value.style.chart.layout.dataLabels.prefix}${Number(g.toFixed(e.value.table.td.roundingValue))}${e.value.style.chart.layout.dataLabels.suffix}`]));
|
|
@@ -433,7 +426,7 @@ const Wl = ["id"], Gl = ["id"], Yl = ["xmlns", "viewBox"], jl = ["x", "y", "widt
|
|
|
433
426
|
breakpoint: e.value.table.responsiveBreakpoint
|
|
434
427
|
}, s = [
|
|
435
428
|
e.value.table.columnNames.period
|
|
436
|
-
].concat(R.value.filter((o) => !
|
|
429
|
+
].concat(R.value.filter((o) => !w.value.includes(o.uid)).map((o) => o.name)).concat(e.value.table.columnNames.total);
|
|
437
430
|
return { head: t, body: a, config: l, colNames: s };
|
|
438
431
|
});
|
|
439
432
|
function Qt() {
|
|
@@ -441,8 +434,8 @@ const Wl = ["id"], Gl = ["id"], Yl = ["xmlns", "viewBox"], jl = ["x", "y", "widt
|
|
|
441
434
|
}
|
|
442
435
|
function Se(t = null) {
|
|
443
436
|
Ie(() => {
|
|
444
|
-
const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], l = [...W.value.head.map((d) => d.name ?? d)], s = [...W.value.body.map((d) => d.map((x) => x.value ?? x))], o = a.concat([l]).concat(s), g =
|
|
445
|
-
t ? t(g) :
|
|
437
|
+
const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], l = [...W.value.head.map((d) => d.name ?? d)], s = [...W.value.body.map((d) => d.map((x) => x.value ?? x))], o = a.concat([l]).concat(s), g = Ll(o);
|
|
438
|
+
t ? t(g) : Al({ csvContent: g, title: e.value.style.chart.title.text || "vue-ui-donut-evolution" });
|
|
446
439
|
});
|
|
447
440
|
}
|
|
448
441
|
const H = i(!1);
|
|
@@ -465,7 +458,7 @@ const Wl = ["id"], Gl = ["id"], Yl = ["xmlns", "viewBox"], jl = ["x", "y", "widt
|
|
|
465
458
|
name: a.name,
|
|
466
459
|
values: [a.value],
|
|
467
460
|
color: a.color
|
|
468
|
-
})), gt.value =
|
|
461
|
+
})), gt.value = Sl({
|
|
469
462
|
...e.value.style.chart.dialog.donutChart,
|
|
470
463
|
responsive: !0,
|
|
471
464
|
theme: e.value.theme
|
|
@@ -535,7 +528,7 @@ const Wl = ["id"], Gl = ["id"], Yl = ["xmlns", "viewBox"], jl = ["x", "y", "widt
|
|
|
535
528
|
const al = y(() => Le.value.map((t) => ({
|
|
536
529
|
...t,
|
|
537
530
|
name: t.display
|
|
538
|
-
}))), ol = y(() => e.value.style.chart.backgroundColor), ul = y(() => e.value.style.chart.legend), sl = y(() => e.value.style.chart.title), { exportSvg: nl, getSvg: rl } =
|
|
531
|
+
}))), ol = y(() => e.value.style.chart.backgroundColor), ul = y(() => e.value.style.chart.legend), sl = y(() => e.value.style.chart.title), { exportSvg: nl, getSvg: rl } = Tl({
|
|
539
532
|
svg: ke,
|
|
540
533
|
title: sl,
|
|
541
534
|
legend: ul,
|
|
@@ -695,7 +688,7 @@ const Wl = ["id"], Gl = ["id"], Yl = ["xmlns", "viewBox"], jl = ["x", "y", "widt
|
|
|
695
688
|
(u(), n("svg", {
|
|
696
689
|
ref_key: "svgRef",
|
|
697
690
|
ref: ke,
|
|
698
|
-
xmlns: c(
|
|
691
|
+
xmlns: c(pl),
|
|
699
692
|
class: N({ "vue-data-ui-fullscreen--on": H.value, "vue-data-ui-fulscreen--off": !H.value }),
|
|
700
693
|
viewBox: `0 0 ${r.value.absoluteWidth} ${r.value.absoluteHeight}`,
|
|
701
694
|
style: Q(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};`)
|
|
@@ -768,8 +761,8 @@ const Wl = ["id"], Gl = ["id"], Yl = ["xmlns", "viewBox"], jl = ["x", "y", "widt
|
|
|
768
761
|
}, null, 8, oa),
|
|
769
762
|
e.value.style.chart.layout.grid.showVerticalLines ? (u(), n("g", ua, [
|
|
770
763
|
(u(!0), n($, null, z(h.value.end - h.value.start, (l, s) => (u(), n("line", {
|
|
771
|
-
x1: r.value.left + (s + 1) *
|
|
772
|
-
x2: r.value.left + (s + 1) *
|
|
764
|
+
x1: r.value.left + (s + 1) * C.value,
|
|
765
|
+
x2: r.value.left + (s + 1) * C.value,
|
|
773
766
|
y1: r.value.top,
|
|
774
767
|
y2: r.value.bottom,
|
|
775
768
|
stroke: e.value.style.chart.layout.grid.stroke,
|
|
@@ -824,7 +817,7 @@ const Wl = ["id"], Gl = ["id"], Yl = ["xmlns", "viewBox"], jl = ["x", "y", "widt
|
|
|
824
817
|
"text-anchor": "end",
|
|
825
818
|
fill: e.value.style.chart.layout.grid.yAxis.dataLabels.color,
|
|
826
819
|
"font-weight": e.value.style.chart.layout.grid.yAxis.dataLabels.bold ? "bold" : "normal"
|
|
827
|
-
}, k(c(
|
|
820
|
+
}, k(c(kl)(l.value) ? c(Ne)(
|
|
828
821
|
e.value.style.chart.layout.dataLabels.formatter,
|
|
829
822
|
l.value,
|
|
830
823
|
c(ve)({
|
|
@@ -852,7 +845,7 @@ const Wl = ["id"], Gl = ["id"], Yl = ["xmlns", "viewBox"], jl = ["x", "y", "widt
|
|
|
852
845
|
"text-anchor": e.value.style.chart.layout.grid.xAxis.dataLabels.rotation > 0 ? "start" : e.value.style.chart.layout.grid.xAxis.dataLabels.rotation < 0 ? "end" : "middle",
|
|
853
846
|
"font-size": e.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,
|
|
854
847
|
fill: e.value.style.chart.layout.grid.xAxis.dataLabels.color,
|
|
855
|
-
transform: `translate(${r.value.left +
|
|
848
|
+
transform: `translate(${r.value.left + C.value * s + C.value / 2}, ${r.value.bottom + e.value.style.chart.layout.grid.xAxis.dataLabels.fontSize + e.value.style.chart.layout.grid.xAxis.dataLabels.offsetY}), rotate(${e.value.style.chart.layout.grid.xAxis.dataLabels.rotation})`,
|
|
856
849
|
innerHTML: c(Cl)({
|
|
857
850
|
content: String(_.value[s].text),
|
|
858
851
|
fontSize: e.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,
|
|
@@ -866,7 +859,7 @@ const Wl = ["id"], Gl = ["id"], Yl = ["xmlns", "viewBox"], jl = ["x", "y", "widt
|
|
|
866
859
|
"text-anchor": e.value.style.chart.layout.grid.xAxis.dataLabels.rotation > 0 ? "start" : e.value.style.chart.layout.grid.xAxis.dataLabels.rotation < 0 ? "end" : "middle",
|
|
867
860
|
"font-size": e.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,
|
|
868
861
|
fill: e.value.style.chart.layout.grid.xAxis.dataLabels.color,
|
|
869
|
-
transform: `translate(${r.value.left +
|
|
862
|
+
transform: `translate(${r.value.left + C.value * s + C.value / 2}, ${r.value.bottom + e.value.style.chart.layout.grid.xAxis.dataLabels.fontSize + e.value.style.chart.layout.grid.xAxis.dataLabels.offsetY}), rotate(${e.value.style.chart.layout.grid.xAxis.dataLabels.rotation})`
|
|
870
863
|
}, k(_.value[s].text || ""), 9, da))
|
|
871
864
|
])) : v("", !0)
|
|
872
865
|
]))), 256))
|
|
@@ -902,7 +895,7 @@ const Wl = ["id"], Gl = ["id"], Yl = ["xmlns", "viewBox"], jl = ["x", "y", "widt
|
|
|
902
895
|
(u(!0), n($, null, z(l.donutHover, (o) => (u(), n("g", null, [
|
|
903
896
|
ht(o) ? (u(), n("path", {
|
|
904
897
|
key: 0,
|
|
905
|
-
d: c(
|
|
898
|
+
d: c(wl)(o, { x: o.center.endX, y: o.center.endY }, 12, 12, { x: l.x, y: l.y }, !1, 20),
|
|
906
899
|
stroke: o.color,
|
|
907
900
|
"stroke-width": "1",
|
|
908
901
|
"stroke-linecap": "round",
|
|
@@ -916,7 +909,7 @@ const Wl = ["id"], Gl = ["id"], Yl = ["xmlns", "viewBox"], jl = ["x", "y", "widt
|
|
|
916
909
|
"data-cy-hover-label": "",
|
|
917
910
|
"text-anchor": c(At)(o, !0, 0).anchor,
|
|
918
911
|
x: c(At)(o, !0, 9).x,
|
|
919
|
-
y: c(
|
|
912
|
+
y: c(_l)(o, 14, 10),
|
|
920
913
|
fill: e.value.style.chart.layout.grid.yAxis.dataLabels.color,
|
|
921
914
|
"font-size": 8,
|
|
922
915
|
"font-weight": "bold"
|
|
@@ -936,14 +929,14 @@ const Wl = ["id"], Gl = ["id"], Yl = ["xmlns", "viewBox"], jl = ["x", "y", "widt
|
|
|
936
929
|
(u(!0), n($, null, z(L.value, (l, s) => (u(), n("g", {
|
|
937
930
|
class: N({ "donut-opacity": !0, "donut-behind": s !== f.value && f.value !== null })
|
|
938
931
|
}, [
|
|
939
|
-
l.subtotal !== null ? (u(), n("g",
|
|
932
|
+
l.subtotal !== null ? (u(), n("g", Ca, [
|
|
940
933
|
l.subtotal === 0 ? (u(), n("circle", {
|
|
941
934
|
key: 0,
|
|
942
935
|
cx: l.x,
|
|
943
936
|
cy: l.y,
|
|
944
937
|
r: 3,
|
|
945
938
|
fill: e.value.style.chart.color
|
|
946
|
-
}, null, 8,
|
|
939
|
+
}, null, 8, wa)) : f.value !== null && f.value === s ? (u(), n("g", _a, [
|
|
947
940
|
(u(!0), n($, null, z(l.donutHover, (o, g) => (u(), n("path", {
|
|
948
941
|
d: o.arcSlice,
|
|
949
942
|
fill: `${o.color}`,
|
|
@@ -974,9 +967,9 @@ const Wl = ["id"], Gl = ["id"], Yl = ["xmlns", "viewBox"], jl = ["x", "y", "widt
|
|
|
974
967
|
}, k(nt(l.subtotal, l, s)), 9, $a)) : v("", !0)
|
|
975
968
|
], 2))), 256)),
|
|
976
969
|
(u(!0), n($, null, z(L.value, (l, s) => (u(), n("rect", {
|
|
977
|
-
x: r.value.left + s *
|
|
970
|
+
x: r.value.left + s * C.value,
|
|
978
971
|
y: r.value.top,
|
|
979
|
-
width:
|
|
972
|
+
width: C.value,
|
|
980
973
|
height: r.value.height,
|
|
981
974
|
fill: [f.value, J.value].includes(l.index) ? `url(#hover_${T.value})` : "transparent",
|
|
982
975
|
class: N({ "donut-hover": l.subtotal && [f.value, J.value].includes(l.index) }),
|
|
@@ -986,9 +979,9 @@ const Wl = ["id"], Gl = ["id"], Yl = ["xmlns", "viewBox"], jl = ["x", "y", "widt
|
|
|
986
979
|
}, null, 10, za))), 256)),
|
|
987
980
|
(u(!0), n($, null, z(L.value, (l, s) => (u(), n("rect", {
|
|
988
981
|
"data-cy-trap": "",
|
|
989
|
-
x: r.value.left + s *
|
|
982
|
+
x: r.value.left + s * C.value,
|
|
990
983
|
y: r.value.top,
|
|
991
|
-
width:
|
|
984
|
+
width: C.value,
|
|
992
985
|
height: r.value.height,
|
|
993
986
|
fill: "transparent",
|
|
994
987
|
onMouseenter: (o) => Jt(l),
|
|
@@ -1045,7 +1038,7 @@ const Wl = ["id"], Gl = ["id"], Yl = ["xmlns", "viewBox"], jl = ["x", "y", "widt
|
|
|
1045
1038
|
b("div", {
|
|
1046
1039
|
id: `legend-bottom-${T.value}`
|
|
1047
1040
|
}, null, 8, Oa),
|
|
1048
|
-
Me.value ? (u(), O(
|
|
1041
|
+
Me.value ? (u(), O(dl, {
|
|
1049
1042
|
key: 5,
|
|
1050
1043
|
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${T.value}` : `#legend-bottom-${T.value}`
|
|
1051
1044
|
}, [
|
|
@@ -1062,7 +1055,7 @@ const Wl = ["id"], Gl = ["id"], Yl = ["xmlns", "viewBox"], jl = ["x", "y", "widt
|
|
|
1062
1055
|
item: p(({ legend: l, index: s }) => [
|
|
1063
1056
|
b("div", {
|
|
1064
1057
|
onClick: (o) => Ae(l.uid),
|
|
1065
|
-
style: Q(`opacity:${
|
|
1058
|
+
style: Q(`opacity:${w.value.includes(l.uid) ? 0.5 : 1}`)
|
|
1066
1059
|
}, k(l.display), 13, Ta)
|
|
1067
1060
|
]),
|
|
1068
1061
|
_: 1
|
|
@@ -1078,7 +1071,7 @@ const Wl = ["id"], Gl = ["id"], Yl = ["xmlns", "viewBox"], jl = ["x", "y", "widt
|
|
|
1078
1071
|
}, [
|
|
1079
1072
|
S(t.$slots, "source", {}, void 0, !0)
|
|
1080
1073
|
], 512)) : v("", !0),
|
|
1081
|
-
qe.value && e.value.userOptions.buttons.table ? (u(), O(
|
|
1074
|
+
qe.value && e.value.userOptions.buttons.table ? (u(), O(hl(K.value.component), yl({ key: 7 }, K.value.props, {
|
|
1082
1075
|
ref_key: "tableUnit",
|
|
1083
1076
|
ref: Y,
|
|
1084
1077
|
onClose: ft
|
|
@@ -1156,10 +1149,10 @@ const Wl = ["id"], Gl = ["id"], Yl = ["xmlns", "viewBox"], jl = ["x", "y", "widt
|
|
|
1156
1149
|
]),
|
|
1157
1150
|
_: 1
|
|
1158
1151
|
}, 8, ["backgroundColor", "color", "headerBg", "headerColor", "isFullscreen", "fullscreenParent"])) : v("", !0),
|
|
1159
|
-
c(Ke) ? (u(), O(
|
|
1152
|
+
c(Ke) ? (u(), O(Ol, { key: 9 })) : v("", !0)
|
|
1160
1153
|
], 46, Wl));
|
|
1161
1154
|
}
|
|
1162
|
-
}, eo = /* @__PURE__ */ Xl(Ra, [["__scopeId", "data-v-
|
|
1155
|
+
}, eo = /* @__PURE__ */ Xl(Ra, [["__scopeId", "data-v-91d66917"]]);
|
|
1163
1156
|
export {
|
|
1164
1157
|
eo as default
|
|
1165
1158
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineAsyncComponent as H, computed as g, ref as h, toRefs as Et, watch as le, shallowRef as tt, onMounted as lt, onBeforeUnmount as at,
|
|
2
|
-
import { c as rt, t as
|
|
3
|
-
import { t as $e, u as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import { u as
|
|
10
|
-
import { u as rl } from "./
|
|
1
|
+
import { defineAsyncComponent as H, computed as g, ref as h, toRefs as Et, watch as le, shallowRef as tt, onMounted as lt, onBeforeUnmount as at, createElementBlock as v, openBlock as n, unref as i, normalizeStyle as ae, normalizeClass as st, createBlock as O, createCommentVNode as y, createElementVNode as c, createSlots as ot, withCtx as p, renderSlot as x, normalizeProps as se, guardReactiveProps as oe, createVNode as nt, withDirectives as Y, Fragment as C, renderList as A, toDisplayString as _, vShow as j, Teleport as Rt, createTextVNode as we, resolveDynamicComponent as Bt, mergeProps as Vt, nextTick as Ut } from "vue";
|
|
2
|
+
import { c as rt, t as Wt, o as qt, f as ut, g as Yt, q as it, C as jt, d as w, a as P, X as ct, s as vt, m as Z, r as J, x as Zt, y as Jt } from "./lib-CEjkWSLj.js";
|
|
3
|
+
import { t as $e, u as Kt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Qt, a as dt } from "./useNestedProp-Ce3PwN8T.js";
|
|
5
|
+
import { u as el } from "./usePrinter-DJ1iH-F_.js";
|
|
6
|
+
import { u as tl, B as ll } from "./BaseScanner-BgWxam9d.js";
|
|
7
|
+
import { u as al } from "./useSvgExport-DrjCWun4.js";
|
|
8
|
+
import { u as sl } from "./useUserOptionState-BIvW1Kz7.js";
|
|
9
|
+
import { u as ol } from "./useChartAccessibility-9icAAmYg.js";
|
|
10
|
+
import { u as nl, a as rl } from "./useResizeObserverEffect-DfnWps4W.js";
|
|
11
11
|
import ul from "./img-J2dLIr8Y.js";
|
|
12
12
|
import il from "./Title-Camz1Lce.js";
|
|
13
13
|
import { t as cl } from "./themes-Dw-dDudK.js";
|
|
@@ -34,14 +34,14 @@ const hl = ["id"], fl = ["id"], bl = ["xmlns", "viewBox"], yl = ["x", "y", "widt
|
|
|
34
34
|
},
|
|
35
35
|
emits: ["selectDatapoint"],
|
|
36
36
|
setup(ht, { expose: ft, emit: _a }) {
|
|
37
|
-
const bt = H(() => import("./BaseIcon-eZbszQrv.js")), yt = H(() => import("./vue-ui-accordion-VTP418mC.js")), gt = H(() => import("./DataTable-yAMEyP6y.js")), mt = H(() => import("./PenAndPaper-Bo-lMUik.js")), pt = H(() => import("./UserOptions-CSja1SGU.js")), xt = H(() => import("./PackageVersion-
|
|
37
|
+
const bt = H(() => import("./BaseIcon-eZbszQrv.js")), yt = H(() => import("./vue-ui-accordion-VTP418mC.js")), gt = H(() => import("./DataTable-yAMEyP6y.js")), mt = H(() => import("./PenAndPaper-Bo-lMUik.js")), pt = H(() => import("./UserOptions-CSja1SGU.js")), xt = H(() => import("./PackageVersion-r-Q1R3nV.js")), _t = H(() => import("./BaseDraggableDialog-CVGErydD.js")), { vue_ui_dumbbell: kt } = Qt(), S = ht, K = g({
|
|
38
38
|
get() {
|
|
39
39
|
return !!S.dataset && S.dataset.length;
|
|
40
40
|
},
|
|
41
41
|
set(l) {
|
|
42
42
|
return l;
|
|
43
43
|
}
|
|
44
|
-
}), f = h(rt()), Le = h(0), N = h(null), Ae = h(null), Se = h(null), Ne = h(null), Me = h(null), Xe = h(0), ze = h(0), Te = h(0), Oe = h(!1), U = h(null), ne = h(null), re = h(null), ue = h(null), Q = h(null), ie = h(null), D = h(null), r = h(null), I = h(!1), e = h(fe()), { loading: ce, FINAL_DATASET: ve, manualLoading: Ct } =
|
|
44
|
+
}), f = h(rt()), Le = h(0), N = h(null), Ae = h(null), Se = h(null), Ne = h(null), Me = h(null), Xe = h(0), ze = h(0), Te = h(0), Oe = h(!1), U = h(null), ne = h(null), re = h(null), ue = h(null), Q = h(null), ie = h(null), D = h(null), r = h(null), I = h(!1), e = h(fe()), { loading: ce, FINAL_DATASET: ve, manualLoading: Ct } = tl({
|
|
45
45
|
...Et(S),
|
|
46
46
|
FINAL_CONFIG: e,
|
|
47
47
|
prepareConfig: fe,
|
|
@@ -52,7 +52,7 @@ const hl = ["id"], fl = ["id"], bl = ["xmlns", "viewBox"], yl = ["x", "y", "widt
|
|
|
52
52
|
{ name: "_", start: 5, end: 8 },
|
|
53
53
|
{ name: "_", start: 3, end: 5 }
|
|
54
54
|
],
|
|
55
|
-
skeletonConfig:
|
|
55
|
+
skeletonConfig: Wt({
|
|
56
56
|
defaultConfig: e.value,
|
|
57
57
|
userConfig: {
|
|
58
58
|
userOptions: { show: !1 },
|
|
@@ -94,7 +94,7 @@ const hl = ["id"], fl = ["id"], bl = ["xmlns", "viewBox"], yl = ["x", "y", "widt
|
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
96
|
})
|
|
97
|
-
}), { userOptionsVisible: de, setUserOptionsVisibility: De, keepUserOptionState: Ie } =
|
|
97
|
+
}), { userOptionsVisible: de, setUserOptionsVisibility: De, keepUserOptionState: Ie } = sl({ config: e.value }), { svgRef: he } = ol({ config: e.value.style.chart.title });
|
|
98
98
|
function fe() {
|
|
99
99
|
const l = dt({
|
|
100
100
|
userConfig: S.config,
|
|
@@ -118,12 +118,12 @@ const hl = ["id"], fl = ["id"], bl = ["xmlns", "viewBox"], yl = ["x", "y", "widt
|
|
|
118
118
|
});
|
|
119
119
|
const Fe = g(() => !!e.value.debug);
|
|
120
120
|
function He() {
|
|
121
|
-
if (
|
|
121
|
+
if (qt(S.dataset) ? ut({
|
|
122
122
|
componentName: "VueUiDumbbell",
|
|
123
123
|
type: "dataset",
|
|
124
124
|
debug: Fe.value
|
|
125
125
|
}) : S.dataset.forEach((l, s) => {
|
|
126
|
-
|
|
126
|
+
Yt({
|
|
127
127
|
datasetObject: l,
|
|
128
128
|
requiredAttributes: ["name", "start", "end"]
|
|
129
129
|
}).forEach((t) => {
|
|
@@ -137,7 +137,7 @@ const hl = ["id"], fl = ["id"], bl = ["xmlns", "viewBox"], yl = ["x", "y", "widt
|
|
|
137
137
|
});
|
|
138
138
|
}), e.value.responsive) {
|
|
139
139
|
const l = $e(() => {
|
|
140
|
-
const { width: s, height: t } =
|
|
140
|
+
const { width: s, height: t } = Kt({
|
|
141
141
|
chart: N.value,
|
|
142
142
|
title: e.value.style.chart.title.text ? Ae.value : null,
|
|
143
143
|
legend: e.value.style.chart.legend.show ? Se.value : null,
|
|
@@ -155,7 +155,7 @@ const hl = ["id"], fl = ["id"], bl = ["xmlns", "viewBox"], yl = ["x", "y", "widt
|
|
|
155
155
|
at(() => {
|
|
156
156
|
L.value != null && (cancelAnimationFrame(L.value), L.value = null), M.value && (G.value && M.value.unobserve(G.value), M.value.disconnect());
|
|
157
157
|
});
|
|
158
|
-
const { isPrinting: Pe, isImaging: Ge, generatePdf: Ee, generateImage: Re } =
|
|
158
|
+
const { isPrinting: Pe, isImaging: Ge, generatePdf: Ee, generateImage: Re } = el({
|
|
159
159
|
elementId: `dumbbell_${f.value}`,
|
|
160
160
|
fileName: e.value.style.chart.title.text || "vue-ui-dumbbell",
|
|
161
161
|
options: e.value.userOptions.print
|
|
@@ -175,7 +175,7 @@ const hl = ["id"], fl = ["id"], bl = ["xmlns", "viewBox"], yl = ["x", "y", "widt
|
|
|
175
175
|
}))), Be = g(() => {
|
|
176
176
|
const l = e.value.style.chart.grid, s = E.value.flatMap((b) => [b.start, b.end]).map((b) => Number(b)).filter((b) => Number.isFinite(b)), t = s.length ? Math.min(...s) : 0, a = s.length ? Math.max(...s) : 0, u = l.scaleMin ?? Math.min(t, 0), d = l.scaleMax ?? a;
|
|
177
177
|
return { min: u, max: d };
|
|
178
|
-
}), $ = g(() =>
|
|
178
|
+
}), $ = g(() => jt(Be.value.min, Be.value.max, e.value.style.chart.grid.scaleSteps)), R = h(e.value.style.chart.rowHeight), B = h(e.value.style.chart.width);
|
|
179
179
|
function $t() {
|
|
180
180
|
let l = 0;
|
|
181
181
|
ue.value && (l = Array.from(ue.value.querySelectorAll("text")).reduce((a, u) => {
|
|
@@ -188,14 +188,7 @@ const hl = ["id"], fl = ["id"], bl = ["xmlns", "viewBox"], yl = ["x", "y", "widt
|
|
|
188
188
|
const be = h(0), Lt = $e((l) => {
|
|
189
189
|
be.value = l;
|
|
190
190
|
}, 100);
|
|
191
|
-
|
|
192
|
-
const s = Q.value;
|
|
193
|
-
if (!s) return;
|
|
194
|
-
const t = new ResizeObserver((a) => {
|
|
195
|
-
Lt(a[0].contentRect.height);
|
|
196
|
-
});
|
|
197
|
-
t.observe(s), l(() => t.disconnect());
|
|
198
|
-
}), at(() => {
|
|
191
|
+
nl({ elementRef: Q, callback: Lt, attr: "height" }), at(() => {
|
|
199
192
|
be.value = 0;
|
|
200
193
|
});
|
|
201
194
|
const Ve = g(() => {
|
|
@@ -359,11 +352,11 @@ const hl = ["id"], fl = ["id"], bl = ["xmlns", "viewBox"], yl = ["x", "y", "widt
|
|
|
359
352
|
};
|
|
360
353
|
});
|
|
361
354
|
function me(l = null) {
|
|
362
|
-
|
|
355
|
+
Ut(() => {
|
|
363
356
|
const s = z.value.head.map((u, d) => [[
|
|
364
357
|
u.name
|
|
365
|
-
], [z.value.body[d].start], [z.value.body[d].end]]), t = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[e.value.table.columnNames.series], [e.value.table.columnNames.start], [e.value.table.columnNames.end]]].concat(s), a =
|
|
366
|
-
l ? l(a) :
|
|
358
|
+
], [z.value.body[d].start], [z.value.body[d].end]]), t = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[e.value.table.columnNames.series], [e.value.table.columnNames.start], [e.value.table.columnNames.end]]].concat(s), a = Zt(t);
|
|
359
|
+
l ? l(a) : Jt({ csvContent: a, title: e.value.style.chart.title.text || "vue-ui-dumbbell" });
|
|
367
360
|
});
|
|
368
361
|
}
|
|
369
362
|
const V = h(!1);
|
|
@@ -514,7 +507,7 @@ const hl = ["id"], fl = ["id"], bl = ["xmlns", "viewBox"], yl = ["x", "y", "widt
|
|
|
514
507
|
const Ot = g(() => ge.value.map((l) => ({
|
|
515
508
|
...l,
|
|
516
509
|
shape: "circle"
|
|
517
|
-
}))), Dt = g(() => e.value.style.chart.backgroundColor), It = g(() => e.value.style.chart.legend), Ft = g(() => e.value.style.chart.title), { exportSvg: Ht, getSvg: Pt } =
|
|
510
|
+
}))), Dt = g(() => e.value.style.chart.backgroundColor), It = g(() => e.value.style.chart.legend), Ft = g(() => e.value.style.chart.title), { exportSvg: Ht, getSvg: Pt } = al({
|
|
518
511
|
svg: he,
|
|
519
512
|
title: Ft,
|
|
520
513
|
legend: It,
|
|
@@ -1090,7 +1083,7 @@ const hl = ["id"], fl = ["id"], bl = ["xmlns", "viewBox"], yl = ["x", "y", "widt
|
|
|
1090
1083
|
c("div", {
|
|
1091
1084
|
id: `legend-bottom-${f.value}`
|
|
1092
1085
|
}, null, 8, ya),
|
|
1093
|
-
Oe.value ? (n(), O(
|
|
1086
|
+
Oe.value ? (n(), O(Rt, {
|
|
1094
1087
|
key: 5,
|
|
1095
1088
|
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${f.value}` : `#legend-bottom-${f.value}`
|
|
1096
1089
|
}, [
|
|
@@ -1141,7 +1134,7 @@ const hl = ["id"], fl = ["id"], bl = ["xmlns", "viewBox"], yl = ["x", "y", "widt
|
|
|
1141
1134
|
}, [
|
|
1142
1135
|
x(l.$slots, "source", {}, void 0, !0)
|
|
1143
1136
|
], 512)) : y("", !0),
|
|
1144
|
-
K.value && e.value.userOptions.buttons.table ? (n(), O(
|
|
1137
|
+
K.value && e.value.userOptions.buttons.table ? (n(), O(Bt(q.value.component), Vt({ key: 7 }, q.value.props, {
|
|
1145
1138
|
ref_key: "tableUnit",
|
|
1146
1139
|
ref: U,
|
|
1147
1140
|
onClose: Ke
|
|
@@ -1195,10 +1188,10 @@ const hl = ["id"], fl = ["id"], bl = ["xmlns", "viewBox"], yl = ["x", "y", "widt
|
|
|
1195
1188
|
key: "1"
|
|
1196
1189
|
} : void 0
|
|
1197
1190
|
]), 1040)) : y("", !0),
|
|
1198
|
-
i(ce) ? (n(), O(
|
|
1191
|
+
i(ce) ? (n(), O(ll, { key: 8 })) : y("", !0)
|
|
1199
1192
|
], 46, hl));
|
|
1200
1193
|
}
|
|
1201
|
-
}, Fa = /* @__PURE__ */ dl(xa, [["__scopeId", "data-v-
|
|
1194
|
+
}, Fa = /* @__PURE__ */ dl(xa, [["__scopeId", "data-v-276f03ce"]]);
|
|
1202
1195
|
export {
|
|
1203
1196
|
Fa as default
|
|
1204
1197
|
};
|
|
@@ -37,7 +37,7 @@ const Do = ["id"], Lo = {
|
|
|
37
37
|
}
|
|
38
38
|
},
|
|
39
39
|
setup(_t, { expose: Ot }) {
|
|
40
|
-
const Nt = H(() => import("./Tooltip-VOcQEHa4.js")), Ft = H(() => import("./BaseIcon-eZbszQrv.js")), Et = H(() => import("./vue-ui-accordion-VTP418mC.js")), It = H(() => import("./DataTable-yAMEyP6y.js")), Pt = H(() => import("./PenAndPaper-Bo-lMUik.js")), Mt = H(() => import("./UserOptions-CSja1SGU.js")), Dt = H(() => import("./PackageVersion-
|
|
40
|
+
const Nt = H(() => import("./Tooltip-VOcQEHa4.js")), Ft = H(() => import("./BaseIcon-eZbszQrv.js")), Et = H(() => import("./vue-ui-accordion-VTP418mC.js")), It = H(() => import("./DataTable-yAMEyP6y.js")), Pt = H(() => import("./PenAndPaper-Bo-lMUik.js")), Mt = H(() => import("./UserOptions-CSja1SGU.js")), Dt = H(() => import("./PackageVersion-r-Q1R3nV.js")), Lt = H(() => import("./BaseDraggableDialog-CVGErydD.js")), { vue_ui_flow: zt } = Ao(), F = _t, U = c(Ge()), M = c(null), Ye = c(0), je = c(0), Se = c(!1), _e = c(""), Ve = c(null), Xe = c(null), qe = c(null), te = c(null), pe = c(null), Ke = c(!1), oe = c(null), Oe = c(null), Ze = d(() => !!F.dataset && F.dataset.length);
|
|
41
41
|
no(() => {
|
|
42
42
|
Ke.value = !0, Qe();
|
|
43
43
|
});
|