vue-data-ui 2.17.0 → 2.17.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/README.md +2 -1
- package/dist/{Arrow-BAEkZGzL.js → Arrow-Dr2lyXds.js} +1 -1
- package/dist/{BaseDraggableDialog-ChCkcmj_.js → BaseDraggableDialog-DQ6yA8di.js} +2 -2
- package/dist/{BaseIcon-naqtCxVi.js → BaseIcon-C2f-EcZc.js} +1 -1
- package/dist/{ColorPicker-CfIPgxcj.js → ColorPicker-D-JmDe31.js} +2 -2
- package/dist/{DataTable-D0VYDhfx.js → DataTable-6BxhjBzt.js} +2 -2
- package/dist/{Legend-Bxlv67uY.js → Legend-1R-B-7st.js} +11 -11
- package/dist/{NonSvgPenAndPaper-b_oVy-Dd.js → NonSvgPenAndPaper-CLNy5uCL.js} +3 -3
- package/dist/{PackageVersion-5TR4ocqp.js → PackageVersion-CIX1W_aa.js} +1 -1
- package/dist/{PenAndPaper-D6AqipIO.js → PenAndPaper-CqJ4wudB.js} +3 -3
- package/dist/{Shape-DtFT5EJa.js → Shape-DJKQgAbU.js} +1 -1
- package/dist/{Slicer-CL6-MRI6.js → Slicer-Dju6LE-h.js} +2 -2
- package/dist/{SparkTooltip-Bcv1aoA5.js → SparkTooltip-D2mROH3o.js} +1 -1
- package/dist/{Title-B-2bV0SW.js → Title-BQb7X_OR.js} +1 -1
- package/dist/{Tooltip-CoQnTnr-.js → Tooltip-BTnTpPdO.js} +1 -1
- package/dist/{UserOptions-Dd34lEKb.js → UserOptions-lneAyZKu.js} +2 -2
- package/dist/{dom-to-png-2AA0wHlX.js → dom-to-png-C-9BWdwN.js} +1 -1
- package/dist/{img-Y_hYz-ZC.js → img-D0DpKcFX.js} +1 -1
- package/dist/{index-pPGk-uhD.js → index-JzUbx__y.js} +22 -8
- package/dist/{pdf-yfk3d1is.js → pdf-BgVDfZPT.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +65 -160
- package/dist/types/vue-data-ui.d.ts +65 -160
- package/dist/{useNestedProp-DjACxgdZ.js → useNestedProp-D_jd2dz9.js} +1 -1
- package/dist/{usePrinter-DDHcrl0A.js → usePrinter-CsyliflB.js} +2 -2
- package/dist/{vue-data-ui-CIWxgKjd.js → vue-data-ui-BMv8hEcb.js} +99 -97
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-D5Wpdqfk.js → vue-ui-3d-bar-CrdssfKx.js} +41 -34
- package/dist/{vue-ui-accordion-CVnA550V.js → vue-ui-accordion-CcTUbiHq.js} +3 -3
- package/dist/{vue-ui-age-pyramid-BuAl-zC5.js → vue-ui-age-pyramid-ZYFAAcwc.js} +134 -127
- package/dist/{vue-ui-annotator-gl2A20m3.js → vue-ui-annotator-BEgBoRWQ.js} +2 -2
- package/dist/{vue-ui-bullet-D-VMKpwe.js → vue-ui-bullet-DYzLfkYB.js} +90 -83
- package/dist/{vue-ui-candlestick-1r6YwiUV.js → vue-ui-candlestick-Cdu2ozig.js} +101 -94
- package/dist/{vue-ui-carousel-table-B6UJoNtP.js → vue-ui-carousel-table-Dce2wfVw.js} +4 -4
- package/dist/{vue-ui-chestnut-DnlBYpC5.js → vue-ui-chestnut-CCMAbLrw.js} +270 -263
- package/dist/{vue-ui-chord-D3kpzYjp.js → vue-ui-chord-B8Sl_FwD.js} +60 -53
- package/dist/{vue-ui-circle-pack-CHgdpoYu.js → vue-ui-circle-pack-BX6_ToJl.js} +121 -114
- package/dist/{vue-ui-cursor-63EAvElT.js → vue-ui-cursor-CyaF0qp7.js} +2 -2
- package/dist/{vue-ui-dashboard-Da6CPET-.js → vue-ui-dashboard-BmL_vnj5.js} +62 -62
- package/dist/{vue-ui-digits-CA8pUKej.js → vue-ui-digits-BRKjd-LQ.js} +2 -2
- package/dist/vue-ui-donut-LZR-vpdS.js +1338 -0
- package/dist/{vue-ui-donut-evolution-qeBEA4W8.js → vue-ui-donut-evolution-dax3dN9r.js} +215 -211
- package/dist/{vue-ui-dumbbell-Bm0PvAKT.js → vue-ui-dumbbell-C7ZNBVSy.js} +117 -110
- package/dist/{vue-ui-flow-C2dqXvrU.js → vue-ui-flow-BeLwkeHo.js} +105 -98
- package/dist/{vue-ui-funnel-Dvy5rRld.js → vue-ui-funnel-BywaRLZR.js} +138 -131
- package/dist/{vue-ui-galaxy-Y8LYp5n2.js → vue-ui-galaxy-DYavEd4o.js} +150 -146
- package/dist/{vue-ui-gauge-BBo0jWAP.js → vue-ui-gauge-DwQRlRWp.js} +125 -118
- package/dist/{vue-ui-gizmo-DjXfTOWn.js → vue-ui-gizmo-CjRczit6.js} +3 -3
- package/dist/{vue-ui-heatmap-BbxRpltP.js → vue-ui-heatmap-cRy0tcES.js} +155 -148
- package/dist/{vue-ui-history-plot-ChYf3Nvc.js → vue-ui-history-plot-D8aTdU23.js} +141 -134
- package/dist/{vue-ui-kpi-Vfc5-JnE.js → vue-ui-kpi-B10h_Hbt.js} +3 -3
- package/dist/{vue-ui-mini-loader-C0-Nsz8K.js → vue-ui-mini-loader-DNhr_0fr.js} +2 -2
- package/dist/{vue-ui-molecule-B7Yu7vzF.js → vue-ui-molecule-4MeyWn0c.js} +141 -134
- package/dist/{vue-ui-mood-radar-C8JUTwNw.js → vue-ui-mood-radar-DJmgRVT2.js} +126 -119
- package/dist/vue-ui-nested-donuts-CgaPLxV2.js +1177 -0
- package/dist/{vue-ui-onion-D4U7TL_N.js → vue-ui-onion-swDxtTT3.js} +88 -81
- package/dist/{vue-ui-parallel-coordinate-plot-CXMT7Rjr.js → vue-ui-parallel-coordinate-plot-DayzzOmK.js} +123 -116
- package/dist/{vue-ui-quadrant-B13pTVVZ.js → vue-ui-quadrant-CLf81ioF.js} +151 -144
- package/dist/{vue-ui-quick-chart-C0UL4o63.js → vue-ui-quick-chart-smKrpIwq.js} +39 -32
- package/dist/{vue-ui-radar-XpdiXnhz.js → vue-ui-radar-D8CIvG2q.js} +58 -51
- package/dist/{vue-ui-rating-CM8ZrUb1.js → vue-ui-rating-YZivkWBI.js} +2 -2
- package/dist/{vue-ui-relation-circle-CYoFNekk.js → vue-ui-relation-circle-DsEYbNs_.js} +127 -120
- package/dist/{vue-ui-ridgeline-QUquE6ck.js → vue-ui-ridgeline-Do6C5lMY.js} +98 -91
- package/dist/{vue-ui-rings-DwT0IfOh.js → vue-ui-rings-CMryJR1g.js} +208 -204
- package/dist/{vue-ui-scatter-zDpy1udm.js → vue-ui-scatter-BtLKWQbX.js} +172 -165
- package/dist/{vue-ui-skeleton-DJPjyNYn.js → vue-ui-skeleton-B4KQLEQy.js} +3 -3
- package/dist/{vue-ui-smiley-DoDXl6k0.js → vue-ui-smiley-CZBuA-1x.js} +2 -2
- package/dist/{vue-ui-spark-trend-CniV6Cpr.js → vue-ui-spark-trend-CdgyexDu.js} +3 -3
- package/dist/{vue-ui-sparkbar-Ds2ITgwn.js → vue-ui-sparkbar-DuZulYgD.js} +3 -3
- package/dist/{vue-ui-sparkgauge-CosfK-kw.js → vue-ui-sparkgauge-Di0FmUXs.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-C7O1wPAJ.js → vue-ui-sparkhistogram-CHNHz9Gm.js} +4 -4
- package/dist/{vue-ui-sparkline-B_iUj3F2.js → vue-ui-sparkline-TaWMi8gF.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-DBhWrysr.js → vue-ui-sparkstackbar-Bv2HEegT.js} +3 -3
- package/dist/{vue-ui-stackbar-C3aV4IcL.js → vue-ui-stackbar-Bk3Bbzjk.js} +61 -54
- package/dist/{vue-ui-strip-plot-Bvr1GAzH.js → vue-ui-strip-plot-BNMDY4GI.js} +116 -109
- package/dist/{vue-ui-table-DQKKRgyo.js → vue-ui-table-JG0B8HuS.js} +3 -3
- package/dist/{vue-ui-table-heatmap-Dyqj5XJC.js → vue-ui-table-heatmap-CCdWeNZj.js} +5 -5
- package/dist/{vue-ui-table-sparkline-D4RubyLj.js → vue-ui-table-sparkline-C1u_b0RG.js} +4 -4
- package/dist/{vue-ui-thermometer-B0FKI5cG.js → vue-ui-thermometer-DkldIXw7.js} +88 -81
- package/dist/{vue-ui-timer-DUCBRIl-.js → vue-ui-timer-0KDTN-Gt.js} +5 -5
- package/dist/{vue-ui-tiremarks-CRt4UQZD.js → vue-ui-tiremarks-FPtGzTGi.js} +127 -120
- package/dist/vue-ui-treemap-BA5wC5Bs.js +965 -0
- package/dist/{vue-ui-vertical-bar-C5fPYltO.js → vue-ui-vertical-bar-DUJWYMRn.js} +233 -226
- package/dist/{vue-ui-waffle-BpWLlfpg.js → vue-ui-waffle-BIngg99N.js} +183 -179
- package/dist/{vue-ui-wheel-CTzuCroy.js → vue-ui-wheel-l5U2UH9c.js} +121 -114
- package/dist/{vue-ui-word-cloud-BPokdaP1.js → vue-ui-word-cloud-CTKuxhFY.js} +152 -145
- package/dist/{vue-ui-world-CS6k-oil.js → vue-ui-world-Dx5O9Is5.js} +77 -70
- package/dist/{vue-ui-xy-CQ425kLR.js → vue-ui-xy-JjA1CMAo.js} +229 -222
- package/dist/{vue-ui-xy-canvas-D2IFwAr7.js → vue-ui-xy-canvas-CH82b2Lp.js} +154 -147
- package/package.json +1 -1
- package/dist/vue-ui-donut-CKa7nFjt.js +0 -1324
- package/dist/vue-ui-nested-donuts-D0RgFifU.js +0 -1163
- package/dist/vue-ui-treemap-CWP5nYDx.js +0 -961
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineAsyncComponent as O, computed as
|
|
2
|
-
import { u as Ye, c as we, a as Ze, o as Je, e as Ce, g as Ke, v as $e, D as Qe, f as
|
|
1
|
+
import { defineAsyncComponent as O, computed as m, ref as d, watch as pe, shallowRef as me, onMounted as ke, onBeforeUnmount as Ue, createElementBlock as r, openBlock as o, unref as n, normalizeStyle as V, normalizeClass as _e, createBlock as z, createCommentVNode as v, createElementVNode as i, createSlots as Be, withCtx as _, renderSlot as k, normalizeProps as E, guardReactiveProps as H, createVNode as je, Fragment as $, renderList as L, toDisplayString as S, createTextVNode as xe, nextTick as qe } from "vue";
|
|
2
|
+
import { u as Ye, c as we, a as Ze, o as Je, e as Ce, g as Ke, v as $e, D as Qe, f as X, X as Le, i as q, l as Ae, h as ze, q as et, r as tt } from "./index-JzUbx__y.js";
|
|
3
3
|
import { t as lt, u as at } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as Se } from "./useNestedProp-
|
|
5
|
-
import { u as st } from "./usePrinter-
|
|
4
|
+
import { u as Se } from "./useNestedProp-D_jd2dz9.js";
|
|
5
|
+
import { u as st } from "./usePrinter-CsyliflB.js";
|
|
6
6
|
import { u as ot } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
7
|
import { u as rt } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
-
import nt from "./Legend-
|
|
9
|
-
import ut from "./Title-
|
|
10
|
-
import it from "./img-
|
|
8
|
+
import nt from "./Legend-1R-B-7st.js";
|
|
9
|
+
import ut from "./Title-BQb7X_OR.js";
|
|
10
|
+
import it from "./img-D0DpKcFX.js";
|
|
11
11
|
import { _ as ct } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
|
-
const dt = ["id"], vt = ["xmlns", "viewBox"], ht = ["x", "y", "width", "height"], yt = { key: 1 }, ft = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], bt = { key: 2 }, gt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], pt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], mt = { key: 3 }, kt = ["x", "y", "font-size", "fill", "font-weight"], _t = ["x", "y", "font-size", "fill"], xt = { key: 4 }, wt = ["x", "y", "font-size", "fill", "font-weight"], Ct = ["id"], $t = ["stop-color"], Lt = ["stop-color"], At = ["stop-color"], zt = ["id"], St = ["stop-color"], Xt = ["stop-color"], Nt = ["stop-color"], Tt = ["id"], Ot = ["stop-color"], Pt = ["stop-color"], It = ["id"], Mt = ["stop-color"], Gt = ["stop-color"], Dt = { key: 0 }, Ft = ["d", "fill"],
|
|
12
|
+
const dt = ["id"], vt = ["xmlns", "viewBox"], ht = ["x", "y", "width", "height"], yt = { key: 1 }, ft = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], bt = { key: 2 }, gt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], pt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], mt = { key: 3 }, kt = ["x", "y", "font-size", "fill", "font-weight"], _t = ["x", "y", "font-size", "fill"], xt = { key: 4 }, wt = ["x", "y", "font-size", "fill", "font-weight"], Ct = ["id"], $t = ["stop-color"], Lt = ["stop-color"], At = ["stop-color"], zt = ["id"], St = ["stop-color"], Xt = ["stop-color"], Nt = ["stop-color"], Tt = ["id"], Ot = ["stop-color"], Pt = ["stop-color"], It = ["id"], Mt = ["stop-color"], Gt = ["stop-color"], Dt = { key: 0 }, Ft = ["d", "fill"], Rt = { key: 1 }, Vt = ["x", "y", "height", "width", "fill"], Et = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Ht = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Wt = { key: 5 }, Ut = ["x", "y", "fill", "font-size"], Bt = { key: 6 }, jt = ["x", "y", "fill", "font-size"], qt = {
|
|
13
13
|
key: 5,
|
|
14
14
|
class: "vue-data-ui-watermark"
|
|
15
15
|
}, Yt = ["xmlns", "height", "width"], Zt = ["fill"], Jt = ["innerHTML"], Kt = {
|
|
@@ -30,32 +30,32 @@ const dt = ["id"], vt = ["xmlns", "viewBox"], ht = ["x", "y", "width", "height"]
|
|
|
30
30
|
},
|
|
31
31
|
emits: ["selectDatapoint"],
|
|
32
32
|
setup(Xe, { expose: Ne, emit: Qt }) {
|
|
33
|
-
const Te = O(() => import("./vue-ui-accordion-
|
|
33
|
+
const Te = O(() => import("./vue-ui-accordion-CcTUbiHq.js")), Oe = O(() => import("./DataTable-6BxhjBzt.js")), Pe = O(() => import("./PackageVersion-CIX1W_aa.js")), Ie = O(() => import("./PenAndPaper-CqJ4wudB.js")), Me = O(() => import("./vue-ui-skeleton-B4KQLEQy.js")), Ge = O(() => import("./UserOptions-lneAyZKu.js")), { vue_ui_dumbbell: De } = Ye(), g = Xe, N = m({
|
|
34
34
|
get() {
|
|
35
|
-
return !!
|
|
35
|
+
return !!g.dataset && g.dataset.length;
|
|
36
36
|
},
|
|
37
37
|
set(l) {
|
|
38
38
|
return l;
|
|
39
39
|
}
|
|
40
|
-
}), y = d(we()), Y = d(0),
|
|
40
|
+
}), y = d(we()), Y = d(0), A = d(null), Z = d(null), J = d(null), K = d(null), Q = d(null), ee = d(0), te = d(0), le = d(0), e = m({
|
|
41
41
|
get: () => re(),
|
|
42
42
|
set: (l) => l
|
|
43
43
|
}), { userOptionsVisible: W, setUserOptionsVisibility: ae, keepUserOptionState: se } = ot({ config: e.value }), { svgRef: oe } = rt({ config: e.value.style.chart.title });
|
|
44
44
|
function re() {
|
|
45
45
|
const l = Se({
|
|
46
|
-
userConfig:
|
|
46
|
+
userConfig: g.config,
|
|
47
47
|
defaultConfig: De
|
|
48
48
|
});
|
|
49
49
|
return l.theme ? {
|
|
50
50
|
...Se({
|
|
51
|
-
userConfig: Ze.vue_ui_dumbbell[l.theme] ||
|
|
51
|
+
userConfig: Ze.vue_ui_dumbbell[l.theme] || g.config,
|
|
52
52
|
defaultConfig: l
|
|
53
53
|
})
|
|
54
54
|
} : l;
|
|
55
55
|
}
|
|
56
|
-
pe(() =>
|
|
56
|
+
pe(() => g.config, (l) => {
|
|
57
57
|
e.value = re(), W.value = !e.value.userOptions.showOnChartHover, ne(), ee.value += 1, te.value += 1, le.value += 1, h.value = e.value.style.chart.rowHeight, I.value = e.value.style.chart.width, P.value.showTable = e.value.table.show;
|
|
58
|
-
}, { deep: !0 }), pe(() =>
|
|
58
|
+
}, { deep: !0 }), pe(() => g.dataset, (l) => {
|
|
59
59
|
he();
|
|
60
60
|
}, { deep: !0 });
|
|
61
61
|
const w = me(null), T = me(null);
|
|
@@ -63,15 +63,15 @@ const dt = ["id"], vt = ["xmlns", "viewBox"], ht = ["x", "y", "width", "height"]
|
|
|
63
63
|
ne();
|
|
64
64
|
});
|
|
65
65
|
function ne() {
|
|
66
|
-
if (Je(
|
|
66
|
+
if (Je(g.dataset) ? Ce({
|
|
67
67
|
componentName: "VueUiDumbbell",
|
|
68
68
|
type: "dataset"
|
|
69
|
-
}) :
|
|
69
|
+
}) : g.dataset.forEach((l, u) => {
|
|
70
70
|
Ke({
|
|
71
71
|
datasetObject: l,
|
|
72
72
|
requiredAttributes: ["name", "start", "end"]
|
|
73
73
|
}).forEach((t) => {
|
|
74
|
-
|
|
74
|
+
N.value = !1, Ce({
|
|
75
75
|
componentName: "VueUiDumbbell",
|
|
76
76
|
type: "datasetSerieAttribute",
|
|
77
77
|
property: t,
|
|
@@ -81,17 +81,17 @@ const dt = ["id"], vt = ["xmlns", "viewBox"], ht = ["x", "y", "width", "height"]
|
|
|
81
81
|
}), e.value.responsive) {
|
|
82
82
|
const l = lt(() => {
|
|
83
83
|
const { width: u, height: t } = at({
|
|
84
|
-
chart:
|
|
84
|
+
chart: A.value,
|
|
85
85
|
title: e.value.style.chart.title.text ? Z.value : null,
|
|
86
86
|
legend: e.value.style.chart.legend.show ? J.value : null,
|
|
87
87
|
source: K.value,
|
|
88
88
|
noTitle: Q.value
|
|
89
89
|
});
|
|
90
90
|
requestAnimationFrame(() => {
|
|
91
|
-
I.value = u, h.value = t /
|
|
91
|
+
I.value = u, h.value = t / g.dataset.length, f.value = G();
|
|
92
92
|
});
|
|
93
93
|
});
|
|
94
|
-
w.value && (T.value && w.value.unobserve(T.value), w.value.disconnect()), w.value = new ResizeObserver(l), T.value =
|
|
94
|
+
w.value && (T.value && w.value.unobserve(T.value), w.value.disconnect()), w.value = new ResizeObserver(l), T.value = A.value.parentNode, w.value.observe(T.value);
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
97
|
Ue(() => {
|
|
@@ -101,25 +101,25 @@ const dt = ["id"], vt = ["xmlns", "viewBox"], ht = ["x", "y", "width", "height"]
|
|
|
101
101
|
elementId: `dumbbell_${y.value}`,
|
|
102
102
|
fileName: e.value.style.chart.title.text || "vue-ui-dumbbell",
|
|
103
103
|
options: e.value.userOptions.print
|
|
104
|
-
}), Fe =
|
|
104
|
+
}), Fe = m(() => e.value.userOptions.show && !e.value.style.chart.title.text), P = d({
|
|
105
105
|
showTable: e.value.table.show
|
|
106
|
-
}), x =
|
|
106
|
+
}), x = m(() => g.dataset.map((l, u) => ({
|
|
107
107
|
...l,
|
|
108
108
|
start: $e(l.start),
|
|
109
109
|
end: $e(l.end),
|
|
110
110
|
id: we()
|
|
111
|
-
}))), U =
|
|
111
|
+
}))), U = m(() => ({
|
|
112
112
|
max: Math.max(...x.value.flatMap((l) => [l.start, l.end])),
|
|
113
113
|
min: Math.min(...x.value.flatMap((l) => [l.start, l.end]))
|
|
114
|
-
})), c =
|
|
115
|
-
const l = h.value, u = e.value.style.chart.padding.left + e.value.style.chart.padding.right + I.value, t = e.value.style.chart.padding.top + e.value.style.chart.padding.bottom + l *
|
|
114
|
+
})), c = m(() => Qe(U.value.min < 0 ? U.value.min : 0, U.value.max, e.value.style.chart.grid.scaleSteps)), h = d(e.value.style.chart.rowHeight), I = d(e.value.style.chart.width), s = m(() => {
|
|
115
|
+
const l = h.value, u = e.value.style.chart.padding.left + e.value.style.chart.padding.right + I.value, t = e.value.style.chart.padding.top + e.value.style.chart.padding.bottom + l * g.dataset.length, a = c.value.ticks.length * (I.value / c.value.ticks.length);
|
|
116
116
|
return {
|
|
117
117
|
left: e.value.style.chart.padding.left,
|
|
118
118
|
right: u - e.value.style.chart.padding.right,
|
|
119
119
|
top: e.value.style.chart.padding.top,
|
|
120
120
|
bottom: t - e.value.style.chart.padding.bottom,
|
|
121
121
|
width: I.value,
|
|
122
|
-
height: l *
|
|
122
|
+
height: l * g.dataset.length,
|
|
123
123
|
rowHeight: l,
|
|
124
124
|
absoluteHeight: t,
|
|
125
125
|
absoluteWidth: u,
|
|
@@ -128,18 +128,18 @@ const dt = ["id"], vt = ["xmlns", "viewBox"], ht = ["x", "y", "width", "height"]
|
|
|
128
128
|
});
|
|
129
129
|
function G() {
|
|
130
130
|
return x.value.map((l, u) => {
|
|
131
|
-
const t = s.value.left + (l.start + Math.abs(c.value.min)) / (c.value.max + Math.abs(c.value.min)) * s.value.widthPlotReference, a = s.value.left + (l.end + Math.abs(c.value.min)) / (c.value.max + Math.abs(c.value.min)) * s.value.widthPlotReference,
|
|
131
|
+
const t = s.value.left + (l.start + Math.abs(c.value.min)) / (c.value.max + Math.abs(c.value.min)) * s.value.widthPlotReference, a = s.value.left + (l.end + Math.abs(c.value.min)) / (c.value.max + Math.abs(c.value.min)) * s.value.widthPlotReference, p = t + (a - t) / 2;
|
|
132
132
|
return {
|
|
133
133
|
...l,
|
|
134
134
|
startX: t,
|
|
135
135
|
endX: a,
|
|
136
|
-
centerX:
|
|
136
|
+
centerX: p,
|
|
137
137
|
y: s.value.top + u * h.value + h.value / 2,
|
|
138
138
|
endVal: l.start
|
|
139
139
|
};
|
|
140
140
|
});
|
|
141
141
|
}
|
|
142
|
-
const f = d([]), ve = d(null),
|
|
142
|
+
const f = d([]), ve = d(null), Re = m(() => x.value.map((l) => l.end).reduce((l, u) => l + u, 0));
|
|
143
143
|
ke(() => {
|
|
144
144
|
he();
|
|
145
145
|
});
|
|
@@ -148,25 +148,25 @@ const dt = ["id"], vt = ["xmlns", "viewBox"], ht = ["x", "y", "width", "height"]
|
|
|
148
148
|
let l = f.value.map((t) => t.start).reduce((t, a) => t + a, 0);
|
|
149
149
|
function u() {
|
|
150
150
|
const t = x.value.map((a) => a.end - a.start);
|
|
151
|
-
l >=
|
|
152
|
-
a.endVal += t[
|
|
153
|
-
const
|
|
151
|
+
l >= Re.value ? (cancelAnimationFrame(ve.value), f.value = G()) : (f.value = f.value.map((a, p) => {
|
|
152
|
+
a.endVal += t[p] * (e.value.animationSpeed / 100);
|
|
153
|
+
const b = s.value.left + (a.start + Math.abs(c.value.min)) / (c.value.max + Math.abs(c.value.min)) * s.value.widthPlotReference, R = s.value.left + (a.endVal + Math.abs(c.value.min)) / (c.value.max + Math.abs(c.value.min)) * s.value.widthPlotReference, j = b + (R - b) / 2;
|
|
154
154
|
return {
|
|
155
155
|
...a,
|
|
156
|
-
startX:
|
|
157
|
-
endX:
|
|
156
|
+
startX: b,
|
|
157
|
+
endX: R,
|
|
158
158
|
centerX: j,
|
|
159
|
-
y: s.value.top +
|
|
159
|
+
y: s.value.top + p * h.value + h.value / 2,
|
|
160
160
|
endVal: a.endVal
|
|
161
161
|
};
|
|
162
|
-
}), l = f.value.map((a) => a.endVal).reduce((a,
|
|
162
|
+
}), l = f.value.map((a) => a.endVal).reduce((a, p) => a + p, 0), ve.value = requestAnimationFrame(u));
|
|
163
163
|
}
|
|
164
164
|
e.value.useAnimation ? u() : f.value = G();
|
|
165
165
|
}
|
|
166
|
-
const ye =
|
|
166
|
+
const ye = m(() => [
|
|
167
167
|
{ name: e.value.style.chart.legend.labelStart, color: e.value.style.chart.plots.gradient.show ? `url(#start_grad_${y.value})` : e.value.style.chart.plots.startColor },
|
|
168
168
|
{ name: e.value.style.chart.legend.labelEnd, color: e.value.style.chart.plots.gradient.show ? `url(#end_grad_${y.value})` : e.value.style.chart.plots.endColor }
|
|
169
|
-
]),
|
|
169
|
+
]), Ve = m(() => ({
|
|
170
170
|
cy: "donut-div-legend",
|
|
171
171
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
172
172
|
color: e.value.style.chart.legend.color,
|
|
@@ -174,7 +174,7 @@ const dt = ["id"], vt = ["xmlns", "viewBox"], ht = ["x", "y", "width", "height"]
|
|
|
174
174
|
paddingBottom: 12,
|
|
175
175
|
paddingTop: 12,
|
|
176
176
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
177
|
-
})), C =
|
|
177
|
+
})), C = m(() => {
|
|
178
178
|
const l = f.value.map((t) => ({
|
|
179
179
|
name: t.name
|
|
180
180
|
})), u = f.value.map((t) => ({
|
|
@@ -182,31 +182,31 @@ const dt = ["id"], vt = ["xmlns", "viewBox"], ht = ["x", "y", "width", "height"]
|
|
|
182
182
|
end: t.end
|
|
183
183
|
}));
|
|
184
184
|
return { head: l, body: u };
|
|
185
|
-
}), D =
|
|
185
|
+
}), D = m(() => {
|
|
186
186
|
const l = [
|
|
187
187
|
e.value.table.columnNames.series,
|
|
188
188
|
e.value.table.columnNames.start,
|
|
189
189
|
e.value.table.columnNames.end,
|
|
190
190
|
e.value.table.columnNames.progression
|
|
191
|
-
], u = C.value.head.map((
|
|
192
|
-
const
|
|
191
|
+
], u = C.value.head.map((p, b) => {
|
|
192
|
+
const R = X({
|
|
193
193
|
p: e.value.style.chart.labels.prefix,
|
|
194
|
-
v: C.value.body[
|
|
194
|
+
v: C.value.body[b].start,
|
|
195
195
|
s: e.value.style.chart.labels.suffix,
|
|
196
196
|
r: e.value.table.td.roundingValue
|
|
197
|
-
}), j =
|
|
197
|
+
}), j = X({
|
|
198
198
|
p: e.value.style.chart.labels.prefix,
|
|
199
|
-
v: C.value.body[
|
|
199
|
+
v: C.value.body[b].end,
|
|
200
200
|
s: e.value.style.chart.labels.suffix,
|
|
201
201
|
r: e.value.table.td.roundingValue
|
|
202
|
-
}), We =
|
|
203
|
-
v: 100 * (C.value.body[
|
|
202
|
+
}), We = X({
|
|
203
|
+
v: 100 * (C.value.body[b].end / C.value.body[b].start - 1),
|
|
204
204
|
s: "%",
|
|
205
205
|
r: e.value.table.td.roundingPercentage
|
|
206
206
|
});
|
|
207
207
|
return [
|
|
208
|
-
{ name:
|
|
209
|
-
|
|
208
|
+
{ name: p.name },
|
|
209
|
+
R,
|
|
210
210
|
j,
|
|
211
211
|
We
|
|
212
212
|
];
|
|
@@ -237,9 +237,9 @@ const dt = ["id"], vt = ["xmlns", "viewBox"], ht = ["x", "y", "width", "height"]
|
|
|
237
237
|
});
|
|
238
238
|
function fe(l = null) {
|
|
239
239
|
qe(() => {
|
|
240
|
-
const u = C.value.head.map((
|
|
241
|
-
|
|
242
|
-
], [C.value.body[
|
|
240
|
+
const u = C.value.head.map((p, b) => [[
|
|
241
|
+
p.name
|
|
242
|
+
], [C.value.body[b].start], [C.value.body[b].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(u), a = et(t);
|
|
243
243
|
l ? l(a) : tt({ csvContent: a, title: e.value.style.chart.title.text || "vue-ui-dumbbell" });
|
|
244
244
|
});
|
|
245
245
|
}
|
|
@@ -247,7 +247,7 @@ const dt = ["id"], vt = ["xmlns", "viewBox"], ht = ["x", "y", "width", "height"]
|
|
|
247
247
|
function be(l) {
|
|
248
248
|
M.value = l, Y.value += 1;
|
|
249
249
|
}
|
|
250
|
-
function
|
|
250
|
+
function Ee() {
|
|
251
251
|
return x.value;
|
|
252
252
|
}
|
|
253
253
|
function ge() {
|
|
@@ -258,12 +258,19 @@ const dt = ["id"], vt = ["xmlns", "viewBox"], ht = ["x", "y", "width", "height"]
|
|
|
258
258
|
F.value = !F.value;
|
|
259
259
|
}
|
|
260
260
|
async function He({ scale: l = 2 } = {}) {
|
|
261
|
-
if (!
|
|
262
|
-
const {
|
|
263
|
-
return {
|
|
261
|
+
if (!A.value) return;
|
|
262
|
+
const { width: u, height: t } = A.value.getBoundingClientRect(), a = u / t, { imageUri: p, base64: b } = await it({ domElement: A.value, base64: !0, img: !0, scale: l });
|
|
263
|
+
return {
|
|
264
|
+
imageUri: p,
|
|
265
|
+
base64: b,
|
|
266
|
+
title: e.value.style.chart.title.text,
|
|
267
|
+
width: u,
|
|
268
|
+
height: t,
|
|
269
|
+
aspectRatio: a
|
|
270
|
+
};
|
|
264
271
|
}
|
|
265
272
|
return Ne({
|
|
266
|
-
getData:
|
|
273
|
+
getData: Ee,
|
|
267
274
|
getImage: He,
|
|
268
275
|
generatePdf: ce,
|
|
269
276
|
generateCsv: fe,
|
|
@@ -273,14 +280,14 @@ const dt = ["id"], vt = ["xmlns", "viewBox"], ht = ["x", "y", "width", "height"]
|
|
|
273
280
|
toggleFullscreen: be
|
|
274
281
|
}), (l, u) => (o(), r("div", {
|
|
275
282
|
ref_key: "dumbbellChart",
|
|
276
|
-
ref:
|
|
283
|
+
ref: A,
|
|
277
284
|
class: _e(`vue-ui-dumbbell ${M.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
278
|
-
style:
|
|
285
|
+
style: V(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
|
|
279
286
|
id: `dumbbell_${y.value}`,
|
|
280
287
|
onMouseenter: u[1] || (u[1] = () => n(ae)(!0)),
|
|
281
288
|
onMouseleave: u[2] || (u[2] = () => n(ae)(!1))
|
|
282
289
|
}, [
|
|
283
|
-
e.value.userOptions.buttons.annotator ? (o(),
|
|
290
|
+
e.value.userOptions.buttons.annotator ? (o(), z(n(Ie), {
|
|
284
291
|
key: 0,
|
|
285
292
|
svgRef: n(oe),
|
|
286
293
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -301,7 +308,7 @@ const dt = ["id"], vt = ["xmlns", "viewBox"], ht = ["x", "y", "width", "height"]
|
|
|
301
308
|
ref: Z,
|
|
302
309
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
303
310
|
}, [
|
|
304
|
-
(o(),
|
|
311
|
+
(o(), z(ut, {
|
|
305
312
|
key: `title_${ee.value}`,
|
|
306
313
|
config: {
|
|
307
314
|
title: {
|
|
@@ -315,7 +322,7 @@ const dt = ["id"], vt = ["xmlns", "viewBox"], ht = ["x", "y", "width", "height"]
|
|
|
315
322
|
}
|
|
316
323
|
}, null, 8, ["config"]))
|
|
317
324
|
], 512)) : v("", !0),
|
|
318
|
-
e.value.userOptions.show &&
|
|
325
|
+
e.value.userOptions.show && N.value && (n(se) || n(W)) ? (o(), z(n(Ge), {
|
|
319
326
|
ref: "details",
|
|
320
327
|
key: `user_option_${Y.value}`,
|
|
321
328
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -330,7 +337,7 @@ const dt = ["id"], vt = ["xmlns", "viewBox"], ht = ["x", "y", "width", "height"]
|
|
|
330
337
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
331
338
|
isFullscreen: M.value,
|
|
332
339
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
333
|
-
chartElement:
|
|
340
|
+
chartElement: A.value,
|
|
334
341
|
position: e.value.userOptions.position,
|
|
335
342
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
336
343
|
isAnnotation: F.value,
|
|
@@ -342,68 +349,68 @@ const dt = ["id"], vt = ["xmlns", "viewBox"], ht = ["x", "y", "width", "height"]
|
|
|
342
349
|
onGenerateImage: n(de),
|
|
343
350
|
onToggleTable: ge,
|
|
344
351
|
onToggleAnnotator: B,
|
|
345
|
-
style:
|
|
352
|
+
style: V({
|
|
346
353
|
visibility: n(se) ? n(W) ? "visible" : "hidden" : "visible"
|
|
347
354
|
})
|
|
348
355
|
}, Be({ _: 2 }, [
|
|
349
356
|
l.$slots.menuIcon ? {
|
|
350
357
|
name: "menuIcon",
|
|
351
|
-
fn:
|
|
352
|
-
|
|
358
|
+
fn: _(({ isOpen: t, color: a }) => [
|
|
359
|
+
k(l.$slots, "menuIcon", E(H({ isOpen: t, color: a })), void 0, !0)
|
|
353
360
|
]),
|
|
354
361
|
key: "0"
|
|
355
362
|
} : void 0,
|
|
356
363
|
l.$slots.optionPdf ? {
|
|
357
364
|
name: "optionPdf",
|
|
358
|
-
fn:
|
|
359
|
-
|
|
365
|
+
fn: _(() => [
|
|
366
|
+
k(l.$slots, "optionPdf", {}, void 0, !0)
|
|
360
367
|
]),
|
|
361
368
|
key: "1"
|
|
362
369
|
} : void 0,
|
|
363
370
|
l.$slots.optionCsv ? {
|
|
364
371
|
name: "optionCsv",
|
|
365
|
-
fn:
|
|
366
|
-
|
|
372
|
+
fn: _(() => [
|
|
373
|
+
k(l.$slots, "optionCsv", {}, void 0, !0)
|
|
367
374
|
]),
|
|
368
375
|
key: "2"
|
|
369
376
|
} : void 0,
|
|
370
377
|
l.$slots.optionImg ? {
|
|
371
378
|
name: "optionImg",
|
|
372
|
-
fn:
|
|
373
|
-
|
|
379
|
+
fn: _(() => [
|
|
380
|
+
k(l.$slots, "optionImg", {}, void 0, !0)
|
|
374
381
|
]),
|
|
375
382
|
key: "3"
|
|
376
383
|
} : void 0,
|
|
377
384
|
l.$slots.optionTable ? {
|
|
378
385
|
name: "optionTable",
|
|
379
|
-
fn:
|
|
380
|
-
|
|
386
|
+
fn: _(() => [
|
|
387
|
+
k(l.$slots, "optionTable", {}, void 0, !0)
|
|
381
388
|
]),
|
|
382
389
|
key: "4"
|
|
383
390
|
} : void 0,
|
|
384
391
|
l.$slots.optionFullscreen ? {
|
|
385
392
|
name: "optionFullscreen",
|
|
386
|
-
fn:
|
|
387
|
-
|
|
393
|
+
fn: _(({ toggleFullscreen: t, isFullscreen: a }) => [
|
|
394
|
+
k(l.$slots, "optionFullscreen", E(H({ toggleFullscreen: t, isFullscreen: a })), void 0, !0)
|
|
388
395
|
]),
|
|
389
396
|
key: "5"
|
|
390
397
|
} : void 0,
|
|
391
398
|
l.$slots.optionAnnotator ? {
|
|
392
399
|
name: "optionAnnotator",
|
|
393
|
-
fn:
|
|
394
|
-
|
|
400
|
+
fn: _(({ toggleAnnotator: t, isAnnotator: a }) => [
|
|
401
|
+
k(l.$slots, "optionAnnotator", E(H({ toggleAnnotator: t, isAnnotator: a })), void 0, !0)
|
|
395
402
|
]),
|
|
396
403
|
key: "6"
|
|
397
404
|
} : void 0
|
|
398
405
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : v("", !0),
|
|
399
|
-
|
|
406
|
+
N.value ? (o(), r("svg", {
|
|
400
407
|
key: 4,
|
|
401
408
|
ref_key: "svgRef",
|
|
402
409
|
ref: oe,
|
|
403
410
|
xmlns: n(Le),
|
|
404
411
|
class: _e({ "vue-data-ui-fullscreen--on": M.value, "vue-data-ui-fulscreen--off": !M.value }),
|
|
405
412
|
viewBox: `0 0 ${s.value.absoluteWidth <= 0 ? 10 : s.value.absoluteWidth} ${s.value.absoluteHeight <= 0 ? 10 : s.value.absoluteHeight}`,
|
|
406
|
-
style:
|
|
413
|
+
style: V(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
|
|
407
414
|
}, [
|
|
408
415
|
je(n(Pe)),
|
|
409
416
|
l.$slots["chart-background"] ? (o(), r("foreignObject", {
|
|
@@ -416,7 +423,7 @@ const dt = ["id"], vt = ["xmlns", "viewBox"], ht = ["x", "y", "width", "height"]
|
|
|
416
423
|
pointerEvents: "none"
|
|
417
424
|
}
|
|
418
425
|
}, [
|
|
419
|
-
|
|
426
|
+
k(l.$slots, "chart-background", {}, void 0, !0)
|
|
420
427
|
], 8, ht)) : v("", !0),
|
|
421
428
|
e.value.style.chart.grid.verticalGrid.show ? (o(), r("g", yt, [
|
|
422
429
|
(o(!0), r($, null, L(c.value.ticks, (t, a) => (o(), r("line", {
|
|
@@ -457,14 +464,14 @@ const dt = ["id"], vt = ["xmlns", "viewBox"], ht = ["x", "y", "width", "height"]
|
|
|
457
464
|
fill: e.value.style.chart.labels.yAxisLabels.color,
|
|
458
465
|
"font-weight": e.value.style.chart.labels.yAxisLabels.bold ? "bold" : "normal",
|
|
459
466
|
"text-anchor": "end"
|
|
460
|
-
},
|
|
467
|
+
}, S(t.name), 9, kt))), 256)),
|
|
461
468
|
e.value.style.chart.labels.yAxisLabels.showProgression ? (o(!0), r($, { key: 0 }, L(x.value, (t, a) => (o(), r("text", {
|
|
462
469
|
x: s.value.left - 6 + e.value.style.chart.labels.yAxisLabels.offsetX,
|
|
463
470
|
y: s.value.top + a * h.value + h.value / 1.3 + e.value.style.chart.labels.yAxisLabels.fontSize / 3,
|
|
464
471
|
"font-size": e.value.style.chart.labels.yAxisLabels.fontSize,
|
|
465
472
|
fill: e.value.style.chart.labels.yAxisLabels.color,
|
|
466
473
|
"text-anchor": "end"
|
|
467
|
-
},
|
|
474
|
+
}, S(n(X)({
|
|
468
475
|
v: 100 * (t.end / t.start - 1),
|
|
469
476
|
s: "%",
|
|
470
477
|
r: e.value.style.chart.labels.yAxisLabels.rounding
|
|
@@ -478,10 +485,10 @@ const dt = ["id"], vt = ["xmlns", "viewBox"], ht = ["x", "y", "width", "height"]
|
|
|
478
485
|
fill: e.value.style.chart.labels.xAxisLabels.color,
|
|
479
486
|
"font-weight": e.value.style.chart.labels.xAxisLabels.bold ? "bold" : "normal",
|
|
480
487
|
"text-anchor": "middle"
|
|
481
|
-
},
|
|
488
|
+
}, S(n(q)(
|
|
482
489
|
e.value.style.chart.labels.formatter,
|
|
483
490
|
t,
|
|
484
|
-
n(
|
|
491
|
+
n(X)({
|
|
485
492
|
p: e.value.style.chart.labels.prefix,
|
|
486
493
|
v: t,
|
|
487
494
|
s: e.value.style.chart.labels.suffix,
|
|
@@ -574,14 +581,14 @@ const dt = ["id"], vt = ["xmlns", "viewBox"], ht = ["x", "y", "width", "height"]
|
|
|
574
581
|
`,
|
|
575
582
|
fill: t.endX > t.startX ? `url(#grad_positive_${y.value})` : `url(#grad_negative_${y.value})`
|
|
576
583
|
}, null, 8, Ft)
|
|
577
|
-
])) : (o(), r("g",
|
|
584
|
+
])) : (o(), r("g", Rt, [
|
|
578
585
|
i("rect", {
|
|
579
586
|
x: t.endX > t.startX ? t.startX : t.endX,
|
|
580
587
|
y: t.y - e.value.style.chart.plots.link.strokeWidth / 2,
|
|
581
588
|
height: e.value.style.chart.plots.link.strokeWidth,
|
|
582
589
|
width: Math.abs(t.endX - t.startX),
|
|
583
590
|
fill: t.endX > t.startX ? `url(#grad_positive_${y.value})` : `url(#grad_negative_${y.value})`
|
|
584
|
-
}, null, 8,
|
|
591
|
+
}, null, 8, Vt)
|
|
585
592
|
])),
|
|
586
593
|
i("circle", {
|
|
587
594
|
cx: t.startX,
|
|
@@ -590,7 +597,7 @@ const dt = ["id"], vt = ["xmlns", "viewBox"], ht = ["x", "y", "width", "height"]
|
|
|
590
597
|
fill: e.value.style.chart.plots.gradient.show ? `url(#start_grad_${y.value})` : e.value.style.chart.plots.startColor,
|
|
591
598
|
stroke: e.value.style.chart.plots.stroke,
|
|
592
599
|
"stroke-width": e.value.style.chart.plots.strokeWidth
|
|
593
|
-
}, null, 8,
|
|
600
|
+
}, null, 8, Et),
|
|
594
601
|
i("circle", {
|
|
595
602
|
cx: t.endX,
|
|
596
603
|
cy: t.y,
|
|
@@ -607,10 +614,10 @@ const dt = ["id"], vt = ["xmlns", "viewBox"], ht = ["x", "y", "width", "height"]
|
|
|
607
614
|
fill: e.value.style.chart.labels.startLabels.useStartColor ? e.value.style.chart.plots.startColor : e.value.style.chart.labels.startLabels.color,
|
|
608
615
|
"font-size": e.value.style.chart.labels.startLabels.fontSize,
|
|
609
616
|
"text-anchor": "middle"
|
|
610
|
-
},
|
|
617
|
+
}, S(n(q)(
|
|
611
618
|
e.value.style.chart.labels.formatter,
|
|
612
619
|
t.start,
|
|
613
|
-
n(
|
|
620
|
+
n(X)({
|
|
614
621
|
p: e.value.style.chart.labels.prefix,
|
|
615
622
|
v: t.start,
|
|
616
623
|
s: e.value.style.chart.labels.suffix,
|
|
@@ -626,10 +633,10 @@ const dt = ["id"], vt = ["xmlns", "viewBox"], ht = ["x", "y", "width", "height"]
|
|
|
626
633
|
fill: e.value.style.chart.labels.endLabels.useEndColor ? e.value.style.chart.plots.endColor : e.value.style.chart.labels.endLabels.color,
|
|
627
634
|
"font-size": e.value.style.chart.labels.endLabels.fontSize,
|
|
628
635
|
"text-anchor": "middle"
|
|
629
|
-
},
|
|
636
|
+
}, S(n(q)(
|
|
630
637
|
e.value.style.chart.labels.formatter,
|
|
631
638
|
t.end,
|
|
632
|
-
n(
|
|
639
|
+
n(X)({
|
|
633
640
|
p: e.value.style.chart.labels.prefix,
|
|
634
641
|
v: t.end,
|
|
635
642
|
s: e.value.style.chart.labels.suffix,
|
|
@@ -638,12 +645,12 @@ const dt = ["id"], vt = ["xmlns", "viewBox"], ht = ["x", "y", "width", "height"]
|
|
|
638
645
|
{ datapoint: t, seriesIndex: a }
|
|
639
646
|
)), 9, jt))), 256))
|
|
640
647
|
])) : v("", !0),
|
|
641
|
-
|
|
648
|
+
k(l.$slots, "svg", { svg: s.value }, void 0, !0)
|
|
642
649
|
], 14, vt)) : v("", !0),
|
|
643
650
|
l.$slots.watermark ? (o(), r("div", qt, [
|
|
644
|
-
|
|
651
|
+
k(l.$slots, "watermark", E(H({ isPrinting: n(ue) || n(ie) })), void 0, !0)
|
|
645
652
|
])) : v("", !0),
|
|
646
|
-
|
|
653
|
+
N.value ? v("", !0) : (o(), z(n(Me), {
|
|
647
654
|
key: 6,
|
|
648
655
|
config: {
|
|
649
656
|
type: "dumbbell",
|
|
@@ -659,14 +666,14 @@ const dt = ["id"], vt = ["xmlns", "viewBox"], ht = ["x", "y", "width", "height"]
|
|
|
659
666
|
ref_key: "chartLegend",
|
|
660
667
|
ref: J
|
|
661
668
|
}, [
|
|
662
|
-
e.value.style.chart.legend.show &&
|
|
669
|
+
e.value.style.chart.legend.show && N.value ? (o(), z(nt, {
|
|
663
670
|
key: `legend_${le.value}`,
|
|
664
671
|
legendSet: ye.value,
|
|
665
|
-
config:
|
|
672
|
+
config: Ve.value
|
|
666
673
|
}, {
|
|
667
|
-
item:
|
|
674
|
+
item: _(({ legend: t }) => [
|
|
668
675
|
i("div", {
|
|
669
|
-
style:
|
|
676
|
+
style: V(`display:flex;align-items:center;gap:4px;font-size:${e.value.style.chart.legend.fontSize}px`)
|
|
670
677
|
}, [
|
|
671
678
|
(o(), r("svg", {
|
|
672
679
|
xmlns: n(Le),
|
|
@@ -681,11 +688,11 @@ const dt = ["id"], vt = ["xmlns", "viewBox"], ht = ["x", "y", "width", "height"]
|
|
|
681
688
|
fill: t.color
|
|
682
689
|
}, null, 8, Zt)
|
|
683
690
|
], 8, Yt)),
|
|
684
|
-
xe(" " +
|
|
691
|
+
xe(" " + S(t.name), 1)
|
|
685
692
|
], 4)
|
|
686
693
|
]),
|
|
687
694
|
_: 1
|
|
688
|
-
}, 8, ["legendSet", "config"])) :
|
|
695
|
+
}, 8, ["legendSet", "config"])) : k(l.$slots, "legend", {
|
|
689
696
|
key: 1,
|
|
690
697
|
legend: ye.value
|
|
691
698
|
}, void 0, !0)
|
|
@@ -696,9 +703,9 @@ const dt = ["id"], vt = ["xmlns", "viewBox"], ht = ["x", "y", "width", "height"]
|
|
|
696
703
|
ref: K,
|
|
697
704
|
dir: "auto"
|
|
698
705
|
}, [
|
|
699
|
-
|
|
706
|
+
k(l.$slots, "source", {}, void 0, !0)
|
|
700
707
|
], 512)) : v("", !0),
|
|
701
|
-
|
|
708
|
+
N.value ? (o(), z(n(Te), {
|
|
702
709
|
key: 8,
|
|
703
710
|
hideDetails: "",
|
|
704
711
|
config: {
|
|
@@ -714,8 +721,8 @@ const dt = ["id"], vt = ["xmlns", "viewBox"], ht = ["x", "y", "width", "height"]
|
|
|
714
721
|
}
|
|
715
722
|
}
|
|
716
723
|
}, {
|
|
717
|
-
content:
|
|
718
|
-
(o(),
|
|
724
|
+
content: _(() => [
|
|
725
|
+
(o(), z(n(Oe), {
|
|
719
726
|
key: `table_${te.value}`,
|
|
720
727
|
colNames: D.value.colNames,
|
|
721
728
|
head: D.value.head,
|
|
@@ -724,14 +731,14 @@ const dt = ["id"], vt = ["xmlns", "viewBox"], ht = ["x", "y", "width", "height"]
|
|
|
724
731
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
725
732
|
onClose: u[0] || (u[0] = (t) => P.value.showTable = !1)
|
|
726
733
|
}, {
|
|
727
|
-
th:
|
|
734
|
+
th: _(({ th: t }) => [
|
|
728
735
|
i("div", {
|
|
729
736
|
innerHTML: t,
|
|
730
737
|
style: { display: "flex", "align-items": "center" }
|
|
731
738
|
}, null, 8, Jt)
|
|
732
739
|
]),
|
|
733
|
-
td:
|
|
734
|
-
xe(
|
|
740
|
+
td: _(({ td: t }) => [
|
|
741
|
+
xe(S(t.name || t), 1)
|
|
735
742
|
]),
|
|
736
743
|
_: 1
|
|
737
744
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
@@ -740,7 +747,7 @@ const dt = ["id"], vt = ["xmlns", "viewBox"], ht = ["x", "y", "width", "height"]
|
|
|
740
747
|
}, 8, ["config"])) : v("", !0)
|
|
741
748
|
], 46, dt));
|
|
742
749
|
}
|
|
743
|
-
}, dl = /* @__PURE__ */ ct(Kt, [["__scopeId", "data-v-
|
|
750
|
+
}, dl = /* @__PURE__ */ ct(Kt, [["__scopeId", "data-v-0d68d11a"]]);
|
|
744
751
|
export {
|
|
745
752
|
dl as default
|
|
746
753
|
};
|