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,19 +1,19 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { u as ut, c as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as $t } from "./usePrinter-
|
|
1
|
+
import { defineAsyncComponent as P, useSlots as et, ref as i, computed as f, watch as tt, shallowRef as _e, onMounted as lt, onBeforeUnmount as ot, createElementBlock as p, openBlock as r, unref as s, normalizeStyle as S, normalizeClass as U, createBlock as N, createCommentVNode as m, createElementVNode as T, createVNode as Q, createSlots as Oe, withCtx as g, renderSlot as d, normalizeProps as R, guardReactiveProps as M, Fragment as Z, renderList as ee, mergeProps as at, toDisplayString as B, createTextVNode as st, nextTick as nt } from "vue";
|
|
2
|
+
import { u as ut, c as Ie, t as rt, p as A, a as it, o as vt, e as te, g as ct, b as dt, G as ht, d as Pe, f as F, X as pt, s as gt, w as ft, v as j, i as Se, q as yt, r as mt, x as bt, y as kt } from "./index-JzUbx__y.js";
|
|
3
|
+
import { t as wt, u as Ct } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Ne } from "./useNestedProp-D_jd2dz9.js";
|
|
5
|
+
import { u as $t } from "./usePrinter-CsyliflB.js";
|
|
6
6
|
import { u as Tt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
|
-
import { u as
|
|
8
|
-
import
|
|
9
|
-
import Ot from "./Title-
|
|
10
|
-
import { _ as It } from "./Shape-
|
|
11
|
-
import
|
|
12
|
-
import { _ as
|
|
13
|
-
const
|
|
7
|
+
import { u as xt } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
+
import _t from "./Legend-1R-B-7st.js";
|
|
9
|
+
import Ot from "./Title-BQb7X_OR.js";
|
|
10
|
+
import { _ as It } from "./Shape-DJKQgAbU.js";
|
|
11
|
+
import Pt from "./img-D0DpKcFX.js";
|
|
12
|
+
import { _ as St } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
|
+
const Nt = ["id"], At = ["xmlns", "viewBox"], Ft = ["width", "height"], Lt = ["id"], Vt = ["stop-color"], Rt = ["stop-color"], Mt = { key: 1 }, zt = ["stroke", "cx", "cy", "r", "fill"], Ut = ["stroke", "stroke-width", "cx", "cy", "r", "fill"], Bt = ["stroke", "stroke-width", "cx", "cy", "r", "fill"], Et = ["cx", "cy", "r", "onMouseenter"], Wt = {
|
|
14
14
|
key: 5,
|
|
15
15
|
class: "vue-data-ui-watermark"
|
|
16
|
-
}, Dt = ["onClick"], Gt =
|
|
16
|
+
}, Dt = ["onClick"], Gt = ["innerHTML"], Ht = {
|
|
17
17
|
__name: "vue-ui-rings",
|
|
18
18
|
props: {
|
|
19
19
|
config: {
|
|
@@ -30,32 +30,32 @@ const Pt = ["id"], At = ["xmlns", "viewBox"], Ft = ["width", "height"], Lt = ["i
|
|
|
30
30
|
}
|
|
31
31
|
},
|
|
32
32
|
emits: ["selectLegend"],
|
|
33
|
-
setup(
|
|
34
|
-
const
|
|
35
|
-
get: () =>
|
|
33
|
+
setup(Ae, { expose: Fe, emit: Le }) {
|
|
34
|
+
const Ve = P(() => import("./vue-ui-accordion-CcTUbiHq.js")), Re = P(() => import("./DataTable-6BxhjBzt.js")), Me = P(() => import("./PackageVersion-CIX1W_aa.js")), ze = P(() => import("./PenAndPaper-CqJ4wudB.js")), Ue = P(() => import("./vue-ui-skeleton-B4KQLEQy.js")), Be = P(() => import("./Tooltip-BTnTpPdO.js")), Ee = P(() => import("./UserOptions-lneAyZKu.js")), { vue_ui_rings: We } = ut(), De = et(), b = Ae, I = i(!1), E = f(() => !!b.dataset && b.dataset.length), C = i(Ie()), Ge = i(null), W = i(!1), X = i(""), $ = i(null), le = i(0), x = i(null), oe = i(null), ae = i(null), se = i(null), ne = i(null), ue = i(0), re = i(0), ie = i(0), e = f({
|
|
35
|
+
get: () => he(),
|
|
36
36
|
set: (t) => t
|
|
37
|
-
}), { userOptionsVisible: q, setUserOptionsVisibility: ve, keepUserOptionState: ce } = Tt({ config: e.value }), { svgRef: de } =
|
|
38
|
-
function
|
|
39
|
-
const t =
|
|
37
|
+
}), { userOptionsVisible: q, setUserOptionsVisibility: ve, keepUserOptionState: ce } = Tt({ config: e.value }), { svgRef: de } = xt({ config: e.value.style.chart.title });
|
|
38
|
+
function he() {
|
|
39
|
+
const t = Ne({
|
|
40
40
|
userConfig: b.config,
|
|
41
|
-
defaultConfig:
|
|
41
|
+
defaultConfig: We
|
|
42
42
|
});
|
|
43
43
|
return t.theme ? {
|
|
44
|
-
...
|
|
44
|
+
...Ne({
|
|
45
45
|
userConfig: it.vue_ui_rings[t.theme] || b.config,
|
|
46
46
|
defaultConfig: t
|
|
47
47
|
}),
|
|
48
48
|
customPalette: rt[t.theme] || A
|
|
49
49
|
} : t;
|
|
50
50
|
}
|
|
51
|
-
|
|
52
|
-
e.value =
|
|
51
|
+
tt(() => b.config, (t) => {
|
|
52
|
+
e.value = he(), q.value = !e.value.userOptions.showOnChartHover, pe(), ue.value += 1, re.value += 1, ie.value += 1, k.value.showTable = e.value.table.show, k.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
53
53
|
}, { deep: !0 });
|
|
54
|
-
const _ =
|
|
55
|
-
|
|
56
|
-
|
|
54
|
+
const _ = _e(null), L = _e(null);
|
|
55
|
+
lt(() => {
|
|
56
|
+
pe();
|
|
57
57
|
});
|
|
58
|
-
function
|
|
58
|
+
function pe() {
|
|
59
59
|
if (vt(b.dataset) ? te({
|
|
60
60
|
componentName: "VueUiRings",
|
|
61
61
|
type: "dataset"
|
|
@@ -75,9 +75,9 @@ const Pt = ["id"], At = ["xmlns", "viewBox"], Ft = ["width", "height"], Lt = ["i
|
|
|
75
75
|
});
|
|
76
76
|
});
|
|
77
77
|
}), e.value.responsive) {
|
|
78
|
-
const t =
|
|
79
|
-
const { width: o, height: l } =
|
|
80
|
-
chart:
|
|
78
|
+
const t = wt(() => {
|
|
79
|
+
const { width: o, height: l } = Ct({
|
|
80
|
+
chart: x.value,
|
|
81
81
|
title: e.value.style.chart.title.text ? oe.value : null,
|
|
82
82
|
legend: e.value.style.chart.legend.show ? ae.value : null,
|
|
83
83
|
source: se.value,
|
|
@@ -87,85 +87,85 @@ const Pt = ["id"], At = ["xmlns", "viewBox"], Ft = ["width", "height"], Lt = ["i
|
|
|
87
87
|
n.value.width = o, n.value.height = l;
|
|
88
88
|
});
|
|
89
89
|
});
|
|
90
|
-
_.value && (L.value && _.value.unobserve(L.value), _.value.disconnect()), _.value = new ResizeObserver(t), L.value =
|
|
90
|
+
_.value && (L.value && _.value.unobserve(L.value), _.value.disconnect()), _.value = new ResizeObserver(t), L.value = x.value.parentNode, _.value.observe(L.value);
|
|
91
91
|
}
|
|
92
92
|
setTimeout(() => {
|
|
93
|
-
|
|
93
|
+
I.value = !0;
|
|
94
94
|
}, 600);
|
|
95
95
|
}
|
|
96
|
-
|
|
96
|
+
ot(() => {
|
|
97
97
|
_.value && (L.value && _.value.unobserve(L.value), _.value.disconnect());
|
|
98
98
|
});
|
|
99
99
|
const { isPrinting: ge, isImaging: fe, generatePdf: ye, generateImage: me } = $t({
|
|
100
|
-
elementId: `rings_${
|
|
100
|
+
elementId: `rings_${C.value}`,
|
|
101
101
|
fileName: e.value.style.chart.title.text || "vue-ui-rings",
|
|
102
102
|
options: e.value.userOptions.print
|
|
103
|
-
}),
|
|
103
|
+
}), He = f(() => e.value.userOptions.show && !e.value.style.chart.title.text), be = f(() => dt(e.value.customPalette)), k = i({
|
|
104
104
|
showTable: e.value.table.show,
|
|
105
105
|
showTooltip: e.value.style.chart.tooltip.show
|
|
106
106
|
}), n = i({
|
|
107
107
|
height: 360,
|
|
108
108
|
width: 360
|
|
109
|
-
}),
|
|
109
|
+
}), je = f(() => Math.min(n.value.height, n.value.width)), Xe = Le, y = i([]);
|
|
110
110
|
function Y(t) {
|
|
111
|
-
y.value.includes(t) ? y.value = y.value.filter((o) => o !== t) : y.value.push(t),
|
|
111
|
+
y.value.includes(t) ? y.value = y.value.filter((o) => o !== t) : y.value.push(t), Xe("selectLegend", h.value.map((o) => ({
|
|
112
112
|
name: o.name,
|
|
113
113
|
color: o.color,
|
|
114
114
|
value: o.value
|
|
115
115
|
})));
|
|
116
116
|
}
|
|
117
|
-
const
|
|
118
|
-
...
|
|
117
|
+
const qe = f(() => Math.max(
|
|
118
|
+
...D.value.filter((t) => !y.value.includes(t.uid)).map(({ value: t }) => t)
|
|
119
119
|
));
|
|
120
120
|
function ke(t) {
|
|
121
|
-
return t /
|
|
121
|
+
return t / qe.value;
|
|
122
122
|
}
|
|
123
|
-
const
|
|
124
|
-
const
|
|
123
|
+
const D = f(() => b.dataset.map(({ values: t, name: o, color: l = null }, a) => {
|
|
124
|
+
const u = ht(t).reduce((v, z) => v + z, 0);
|
|
125
125
|
return {
|
|
126
126
|
name: o,
|
|
127
|
-
color: l ||
|
|
128
|
-
value:
|
|
129
|
-
proportion:
|
|
130
|
-
uid:
|
|
127
|
+
color: l || Pe(l) || be.value[a] || A[a] || A[a % A.length],
|
|
128
|
+
value: u,
|
|
129
|
+
proportion: u / b.dataset.map((v) => (v.values || []).reduce((z, Ze) => z + Ze, 0)).reduce((v, z) => v + z, 0),
|
|
130
|
+
uid: Ie(),
|
|
131
131
|
absoluteIndex: a
|
|
132
132
|
};
|
|
133
|
-
})),
|
|
133
|
+
})), we = f(() => D.value.map((t) => ({
|
|
134
134
|
...t,
|
|
135
135
|
shape: "circle",
|
|
136
136
|
opacity: y.value.includes(t.uid) ? 0.5 : 1,
|
|
137
137
|
segregate: () => Y(t.uid),
|
|
138
138
|
isSegregated: y.value.includes(t.uid)
|
|
139
|
-
})).toSorted((t, o) => o.value - t.value)),
|
|
139
|
+
})).toSorted((t, o) => o.value - t.value)), Ye = f(() => ({
|
|
140
140
|
cy: "rings-div-legend",
|
|
141
141
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
142
142
|
color: e.value.style.chart.legend.color,
|
|
143
143
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
144
144
|
paddingBottom: 12,
|
|
145
145
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
146
|
-
})),
|
|
147
|
-
absoluteIndex:
|
|
146
|
+
})), w = f(() => D.value.filter((t) => !y.value.includes(t.uid)).map(({ value: t }) => t).reduce((t, o) => t + o, 0)), h = f(() => D.value.filter((t) => !y.value.includes(t.uid)).map(({ name: t, value: o, color: l = null, uid: a, absoluteIndex: u }, v) => ({
|
|
147
|
+
absoluteIndex: u,
|
|
148
148
|
uid: a,
|
|
149
149
|
name: t,
|
|
150
|
-
color: l ||
|
|
150
|
+
color: l || Pe(l) || be.value[v] || A[v] || A[v % A.length],
|
|
151
151
|
value: o,
|
|
152
152
|
proportion: ke(o),
|
|
153
|
-
percentage: o /
|
|
153
|
+
percentage: o / w.value * 100,
|
|
154
154
|
strokeWidth: e.value.style.chart.layout.rings.strokeWidth * ke(o)
|
|
155
155
|
})).toSorted((t, o) => o.value - t.value));
|
|
156
|
-
function
|
|
156
|
+
function Je() {
|
|
157
157
|
return h.value.map(
|
|
158
|
-
({ name: t, color: o, value: l, absoluteValues: a, percentage:
|
|
158
|
+
({ name: t, color: o, value: l, absoluteValues: a, percentage: u }) => ({
|
|
159
159
|
name: t,
|
|
160
160
|
color: o,
|
|
161
161
|
value: l,
|
|
162
162
|
absoluteValues: a,
|
|
163
|
-
percentage:
|
|
163
|
+
percentage: u
|
|
164
164
|
})
|
|
165
165
|
);
|
|
166
166
|
}
|
|
167
|
-
const
|
|
168
|
-
function
|
|
167
|
+
const c = f(() => je.value - e.value.style.chart.layout.rings.strokeWidth * 2), J = i(null);
|
|
168
|
+
function Ke(t, o) {
|
|
169
169
|
if (y.value.length === b.dataset.length) return;
|
|
170
170
|
J.value = {
|
|
171
171
|
datapoint: o,
|
|
@@ -187,8 +187,8 @@ const Pt = ["id"], At = ["xmlns", "viewBox"], Ft = ["width", "height"], Lt = ["i
|
|
|
187
187
|
config: e.value
|
|
188
188
|
});
|
|
189
189
|
else {
|
|
190
|
-
let
|
|
191
|
-
|
|
190
|
+
let u = "";
|
|
191
|
+
u += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l.name}</div>`, u += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><circle cx="30" cy="30" r="30" stroke="none" fill="${l.color}" />${De.pattern ? `<circle cx="30" cy="30" r="30" stroke="none" fill="url(#pattern_${C.value}_${o.absoluteIndex})" />` : ""}</svg>`, e.value.style.chart.tooltip.showValue && (u += `<b>${Se(
|
|
192
192
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
193
193
|
l.value,
|
|
194
194
|
F({
|
|
@@ -199,36 +199,36 @@ const Pt = ["id"], At = ["xmlns", "viewBox"], Ft = ["width", "height"], Lt = ["i
|
|
|
199
199
|
}),
|
|
200
200
|
{ datapoint: o, seriesIndex: t }
|
|
201
201
|
)}
|
|
202
|
-
</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ?
|
|
203
|
-
v: l.value /
|
|
202
|
+
</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? u += `<span>(${F({
|
|
203
|
+
v: l.value / w.value * 100,
|
|
204
204
|
s: "%",
|
|
205
205
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
206
|
-
})})</span></div>` :
|
|
207
|
-
v: l.value /
|
|
206
|
+
})})</span></div>` : u += `<b>${F({
|
|
207
|
+
v: l.value / w.value * 100,
|
|
208
208
|
s: "%",
|
|
209
209
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
210
|
-
})}</b></div>`), X.value =
|
|
210
|
+
})}</b></div>`), X.value = u;
|
|
211
211
|
}
|
|
212
212
|
W.value = !0;
|
|
213
213
|
}
|
|
214
|
-
const
|
|
214
|
+
const O = f(() => {
|
|
215
215
|
const t = h.value.map((l) => ({
|
|
216
216
|
name: l.name,
|
|
217
217
|
color: l.color
|
|
218
218
|
})), o = h.value.map((l) => l.value);
|
|
219
219
|
return { head: t, body: o };
|
|
220
|
-
}),
|
|
220
|
+
}), G = f(() => {
|
|
221
221
|
const t = [
|
|
222
222
|
' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>',
|
|
223
|
-
F({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v:
|
|
223
|
+
F({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: w.value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
|
|
224
224
|
"100%"
|
|
225
|
-
], o =
|
|
225
|
+
], o = O.value.head.map((u, v) => [
|
|
226
226
|
{
|
|
227
|
-
color:
|
|
228
|
-
name:
|
|
227
|
+
color: u.color,
|
|
228
|
+
name: u.name
|
|
229
229
|
},
|
|
230
|
-
F({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v:
|
|
231
|
-
isNaN(
|
|
230
|
+
F({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: O.value.body[v], s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
|
|
231
|
+
isNaN(O.value.body[v] / w.value) ? "-" : (O.value.body[v] / w.value * 100).toFixed(e.value.table.td.roundingPercentage) + "%"
|
|
232
232
|
]), l = {
|
|
233
233
|
th: {
|
|
234
234
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
@@ -253,76 +253,83 @@ const Pt = ["id"], At = ["xmlns", "viewBox"], Ft = ["width", "height"], Lt = ["i
|
|
|
253
253
|
colNames: a
|
|
254
254
|
};
|
|
255
255
|
});
|
|
256
|
-
function
|
|
256
|
+
function Ce(t = null) {
|
|
257
257
|
nt(() => {
|
|
258
|
-
const o =
|
|
259
|
-
|
|
260
|
-
], [
|
|
258
|
+
const o = O.value.head.map((u, v) => [[
|
|
259
|
+
u.name
|
|
260
|
+
], [O.value.body[v]], [isNaN(O.value.body[v] / w.value) ? "-" : O.value.body[v] / w.value * 100]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(o), a = yt(l);
|
|
261
261
|
t ? t(a) : mt({ csvContent: a, title: e.value.style.chart.title.text || "vue-ui-rings" });
|
|
262
262
|
});
|
|
263
263
|
}
|
|
264
|
-
const
|
|
264
|
+
const V = i(!1);
|
|
265
265
|
function $e(t) {
|
|
266
|
-
|
|
266
|
+
V.value = t, le.value += 1;
|
|
267
267
|
}
|
|
268
268
|
function Te() {
|
|
269
269
|
k.value.showTable = !k.value.showTable;
|
|
270
270
|
}
|
|
271
|
-
function
|
|
271
|
+
function xe() {
|
|
272
272
|
k.value.showTooltip = !k.value.showTooltip;
|
|
273
273
|
}
|
|
274
|
-
const
|
|
274
|
+
const H = i(!1);
|
|
275
275
|
function K() {
|
|
276
|
-
|
|
276
|
+
H.value = !H.value;
|
|
277
277
|
}
|
|
278
|
-
async function
|
|
279
|
-
if (!
|
|
280
|
-
const {
|
|
281
|
-
return {
|
|
278
|
+
async function Qe({ scale: t = 2 } = {}) {
|
|
279
|
+
if (!x.value) return;
|
|
280
|
+
const { width: o, height: l } = x.value.getBoundingClientRect(), a = o / l, { imageUri: u, base64: v } = await Pt({ domElement: x.value, base64: !0, img: !0, scale: t });
|
|
281
|
+
return {
|
|
282
|
+
imageUri: u,
|
|
283
|
+
base64: v,
|
|
284
|
+
title: e.value.style.chart.title.text,
|
|
285
|
+
width: o,
|
|
286
|
+
height: l,
|
|
287
|
+
aspectRatio: a
|
|
288
|
+
};
|
|
282
289
|
}
|
|
283
|
-
return
|
|
284
|
-
getData:
|
|
285
|
-
getImage:
|
|
290
|
+
return Fe({
|
|
291
|
+
getData: Je,
|
|
292
|
+
getImage: Qe,
|
|
286
293
|
generatePdf: ye,
|
|
287
|
-
generateCsv:
|
|
294
|
+
generateCsv: Ce,
|
|
288
295
|
generateImage: me,
|
|
289
296
|
toggleTable: Te,
|
|
290
|
-
toggleTooltip:
|
|
297
|
+
toggleTooltip: xe,
|
|
291
298
|
toggleAnnotator: K,
|
|
292
299
|
toggleFullscreen: $e
|
|
293
|
-
}), (t, o) => (
|
|
300
|
+
}), (t, o) => (r(), p("div", {
|
|
294
301
|
ref_key: "ringsChart",
|
|
295
|
-
ref:
|
|
296
|
-
class: U(`vue-ui-rings ${
|
|
297
|
-
style:
|
|
298
|
-
id: `rings_${
|
|
302
|
+
ref: x,
|
|
303
|
+
class: U(`vue-ui-rings ${V.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
304
|
+
style: S(`font-family:${e.value.style.fontFamily};text-align:center;width:100%;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
|
|
305
|
+
id: `rings_${C.value}`,
|
|
299
306
|
onMouseleave: o[3] || (o[3] = (l) => {
|
|
300
307
|
$.value = null, W.value = !1, s(ve)(!1);
|
|
301
308
|
}),
|
|
302
309
|
onMouseenter: o[4] || (o[4] = () => s(ve)(!0))
|
|
303
310
|
}, [
|
|
304
|
-
e.value.userOptions.buttons.annotator ? (
|
|
311
|
+
e.value.userOptions.buttons.annotator ? (r(), N(s(ze), {
|
|
305
312
|
key: 0,
|
|
306
313
|
svgRef: s(de),
|
|
307
314
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
308
315
|
color: e.value.style.chart.color,
|
|
309
|
-
active:
|
|
316
|
+
active: H.value,
|
|
310
317
|
onClose: K
|
|
311
318
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : m("", !0),
|
|
312
|
-
|
|
319
|
+
He.value ? (r(), p("div", {
|
|
313
320
|
key: 1,
|
|
314
321
|
ref_key: "noTitle",
|
|
315
322
|
ref: ne,
|
|
316
323
|
class: "vue-data-ui-no-title-space",
|
|
317
324
|
style: "height:36px; width: 100%;background:transparent"
|
|
318
325
|
}, null, 512)) : m("", !0),
|
|
319
|
-
e.value.style.chart.title.text ? (
|
|
326
|
+
e.value.style.chart.title.text ? (r(), p("div", {
|
|
320
327
|
key: 2,
|
|
321
328
|
ref_key: "chartTitle",
|
|
322
329
|
ref: oe,
|
|
323
330
|
style: "width:100%;background:transparent"
|
|
324
331
|
}, [
|
|
325
|
-
(
|
|
332
|
+
(r(), N(Ot, {
|
|
326
333
|
key: `title_${ue.value}`,
|
|
327
334
|
config: {
|
|
328
335
|
title: {
|
|
@@ -336,15 +343,15 @@ const Pt = ["id"], At = ["xmlns", "viewBox"], Ft = ["width", "height"], Lt = ["i
|
|
|
336
343
|
}
|
|
337
344
|
}, null, 8, ["config"]))
|
|
338
345
|
], 512)) : m("", !0),
|
|
339
|
-
e.value.userOptions.show && E.value && (s(ce) || s(q)) ? (
|
|
346
|
+
e.value.userOptions.show && E.value && (s(ce) || s(q)) ? (r(), N(s(Ee), {
|
|
340
347
|
ref_key: "details",
|
|
341
|
-
ref:
|
|
348
|
+
ref: Ge,
|
|
342
349
|
key: `user_options_${le.value}`,
|
|
343
350
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
344
351
|
color: e.value.style.chart.color,
|
|
345
352
|
isPrinting: s(ge),
|
|
346
353
|
isImaging: s(fe),
|
|
347
|
-
uid:
|
|
354
|
+
uid: C.value,
|
|
348
355
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
349
356
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
350
357
|
hasXls: e.value.userOptions.buttons.csv,
|
|
@@ -352,93 +359,93 @@ const Pt = ["id"], At = ["xmlns", "viewBox"], Ft = ["width", "height"], Lt = ["i
|
|
|
352
359
|
hasTable: e.value.userOptions.buttons.table,
|
|
353
360
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
354
361
|
isTooltip: k.value.showTooltip,
|
|
355
|
-
isFullscreen:
|
|
362
|
+
isFullscreen: V.value,
|
|
356
363
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
357
|
-
chartElement:
|
|
364
|
+
chartElement: x.value,
|
|
358
365
|
position: e.value.userOptions.position,
|
|
359
366
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
360
|
-
isAnnotation:
|
|
367
|
+
isAnnotation: H.value,
|
|
361
368
|
callbacks: e.value.userOptions.callbacks,
|
|
362
369
|
printScale: e.value.userOptions.print.scale,
|
|
363
370
|
onToggleFullscreen: $e,
|
|
364
371
|
onGeneratePdf: s(ye),
|
|
365
|
-
onGenerateCsv:
|
|
372
|
+
onGenerateCsv: Ce,
|
|
366
373
|
onGenerateImage: s(me),
|
|
367
374
|
onToggleTable: Te,
|
|
368
|
-
onToggleTooltip:
|
|
375
|
+
onToggleTooltip: xe,
|
|
369
376
|
onToggleAnnotator: K,
|
|
370
|
-
style:
|
|
377
|
+
style: S({
|
|
371
378
|
visibility: s(ce) ? s(q) ? "visible" : "hidden" : "visible"
|
|
372
379
|
})
|
|
373
380
|
}, Oe({ _: 2 }, [
|
|
374
381
|
t.$slots.menuIcon ? {
|
|
375
382
|
name: "menuIcon",
|
|
376
383
|
fn: g(({ isOpen: l, color: a }) => [
|
|
377
|
-
|
|
384
|
+
d(t.$slots, "menuIcon", R(M({ isOpen: l, color: a })), void 0, !0)
|
|
378
385
|
]),
|
|
379
386
|
key: "0"
|
|
380
387
|
} : void 0,
|
|
381
388
|
t.$slots.optionTooltip ? {
|
|
382
389
|
name: "optionTooltip",
|
|
383
390
|
fn: g(() => [
|
|
384
|
-
|
|
391
|
+
d(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
385
392
|
]),
|
|
386
393
|
key: "1"
|
|
387
394
|
} : void 0,
|
|
388
395
|
t.$slots.optionPdf ? {
|
|
389
396
|
name: "optionPdf",
|
|
390
397
|
fn: g(() => [
|
|
391
|
-
|
|
398
|
+
d(t.$slots, "optionPdf", {}, void 0, !0)
|
|
392
399
|
]),
|
|
393
400
|
key: "2"
|
|
394
401
|
} : void 0,
|
|
395
402
|
t.$slots.optionCsv ? {
|
|
396
403
|
name: "optionCsv",
|
|
397
404
|
fn: g(() => [
|
|
398
|
-
|
|
405
|
+
d(t.$slots, "optionCsv", {}, void 0, !0)
|
|
399
406
|
]),
|
|
400
407
|
key: "3"
|
|
401
408
|
} : void 0,
|
|
402
409
|
t.$slots.optionImg ? {
|
|
403
410
|
name: "optionImg",
|
|
404
411
|
fn: g(() => [
|
|
405
|
-
|
|
412
|
+
d(t.$slots, "optionImg", {}, void 0, !0)
|
|
406
413
|
]),
|
|
407
414
|
key: "4"
|
|
408
415
|
} : void 0,
|
|
409
416
|
t.$slots.optionTable ? {
|
|
410
417
|
name: "optionTable",
|
|
411
418
|
fn: g(() => [
|
|
412
|
-
|
|
419
|
+
d(t.$slots, "optionTable", {}, void 0, !0)
|
|
413
420
|
]),
|
|
414
421
|
key: "5"
|
|
415
422
|
} : void 0,
|
|
416
423
|
t.$slots.optionFullscreen ? {
|
|
417
424
|
name: "optionFullscreen",
|
|
418
425
|
fn: g(({ toggleFullscreen: l, isFullscreen: a }) => [
|
|
419
|
-
|
|
426
|
+
d(t.$slots, "optionFullscreen", R(M({ toggleFullscreen: l, isFullscreen: a })), void 0, !0)
|
|
420
427
|
]),
|
|
421
428
|
key: "6"
|
|
422
429
|
} : void 0,
|
|
423
430
|
t.$slots.optionAnnotator ? {
|
|
424
431
|
name: "optionAnnotator",
|
|
425
432
|
fn: g(({ toggleAnnotator: l, isAnnotator: a }) => [
|
|
426
|
-
|
|
433
|
+
d(t.$slots, "optionAnnotator", R(M({ toggleAnnotator: l, isAnnotator: a })), void 0, !0)
|
|
427
434
|
]),
|
|
428
435
|
key: "7"
|
|
429
436
|
} : void 0
|
|
430
437
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : m("", !0),
|
|
431
|
-
E.value ? (
|
|
438
|
+
E.value ? (r(), p("svg", {
|
|
432
439
|
key: 4,
|
|
433
440
|
ref_key: "svgRef",
|
|
434
441
|
ref: de,
|
|
435
|
-
xmlns: s(
|
|
436
|
-
class: U({ "vue-data-ui-fullscreen--on":
|
|
442
|
+
xmlns: s(pt),
|
|
443
|
+
class: U({ "vue-data-ui-fullscreen--on": V.value, "vue-data-ui-fulscreen--off": !V.value }),
|
|
437
444
|
viewBox: `0 0 ${n.value.width <= 0 ? 10 : n.value.width} ${n.value.height <= 0 ? 10 : n.value.height}`,
|
|
438
|
-
style:
|
|
445
|
+
style: S(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
439
446
|
}, [
|
|
440
|
-
Q(s(
|
|
441
|
-
t.$slots["chart-background"] ? (
|
|
447
|
+
Q(s(Me)),
|
|
448
|
+
t.$slots["chart-background"] ? (r(), p("foreignObject", {
|
|
442
449
|
key: 0,
|
|
443
450
|
x: 0,
|
|
444
451
|
y: 0,
|
|
@@ -448,95 +455,95 @@ const Pt = ["id"], At = ["xmlns", "viewBox"], Ft = ["width", "height"], Lt = ["i
|
|
|
448
455
|
pointerEvents: "none"
|
|
449
456
|
}
|
|
450
457
|
}, [
|
|
451
|
-
|
|
458
|
+
d(t.$slots, "chart-background", {}, void 0, !0)
|
|
452
459
|
], 8, Ft)) : m("", !0),
|
|
453
460
|
T("defs", null, [
|
|
454
|
-
(
|
|
461
|
+
(r(!0), p(Z, null, ee(h.value, (l, a) => (r(), p("radialGradient", {
|
|
455
462
|
cx: "50%",
|
|
456
463
|
cy: "30%",
|
|
457
464
|
r: "50%",
|
|
458
465
|
fx: "50%",
|
|
459
466
|
fy: "50%",
|
|
460
|
-
id: `gradient_${
|
|
467
|
+
id: `gradient_${C.value}_${a}`
|
|
461
468
|
}, [
|
|
462
469
|
T("stop", {
|
|
463
470
|
offset: "0%",
|
|
464
471
|
"stop-color": s(gt)(s(ft)(l.color, 0.05), 100 - e.value.style.chart.layout.rings.gradient.intensity)
|
|
465
|
-
}, null, 8,
|
|
472
|
+
}, null, 8, Vt),
|
|
466
473
|
T("stop", {
|
|
467
474
|
offset: "100%",
|
|
468
475
|
"stop-color": l.color
|
|
469
|
-
}, null, 8,
|
|
476
|
+
}, null, 8, Rt)
|
|
470
477
|
], 8, Lt))), 256))
|
|
471
478
|
]),
|
|
472
|
-
t.$slots.pattern ? (
|
|
473
|
-
(
|
|
474
|
-
|
|
479
|
+
t.$slots.pattern ? (r(), p("g", Mt, [
|
|
480
|
+
(r(!0), p(Z, null, ee(h.value, (l) => (r(), p("defs", null, [
|
|
481
|
+
d(t.$slots, "pattern", at({ ref_for: !0 }, { seriesIndex: l.absoluteIndex, patternId: `pattern_${C.value}_${l.absoluteIndex}` }), void 0, !0)
|
|
475
482
|
]))), 256))
|
|
476
483
|
])) : m("", !0),
|
|
477
|
-
(
|
|
484
|
+
(r(!0), p(Z, null, ee(h.value, (l, a) => (r(), p("g", null, [
|
|
478
485
|
T("circle", {
|
|
479
486
|
class: U({
|
|
480
|
-
"vue-ui-rings-item":
|
|
481
|
-
"vue-rings-item-onload": !
|
|
487
|
+
"vue-ui-rings-item": I.value && e.value.useCssAnimation,
|
|
488
|
+
"vue-rings-item-onload": !I.value && e.value.useCssAnimation,
|
|
482
489
|
"vue-ui-rings-opacity": $.value !== null && $.value !== a
|
|
483
490
|
}),
|
|
484
|
-
style:
|
|
491
|
+
style: S(`animation-delay:${a * 100}ms`),
|
|
485
492
|
stroke: e.value.style.chart.layout.rings.stroke,
|
|
486
493
|
cx: n.value.width / 2,
|
|
487
|
-
cy: a === 0 ? n.value.height / 2 : n.value.height / 2 +
|
|
488
|
-
r: s(j)(
|
|
494
|
+
cy: a === 0 ? n.value.height / 2 : n.value.height / 2 + c.value * h.value[0].proportion / 2 - c.value * l.proportion / 2 - 2 * (a + 1),
|
|
495
|
+
r: s(j)(c.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : c.value * l.proportion / 2 * 0.9),
|
|
489
496
|
fill: e.value.style.chart.layout.rings.gradient.underlayerColor
|
|
490
497
|
}, null, 14, zt),
|
|
491
498
|
T("circle", {
|
|
492
499
|
class: U({
|
|
493
|
-
"vue-ui-rings-item":
|
|
494
|
-
"vue-rings-item-onload": !
|
|
500
|
+
"vue-ui-rings-item": I.value && e.value.useCssAnimation,
|
|
501
|
+
"vue-rings-item-onload": !I.value && e.value.useCssAnimation,
|
|
495
502
|
"vue-ui-rings-shadow": e.value.style.chart.layout.rings.useShadow,
|
|
496
503
|
"vue-ui-rings-blur": $.value !== null && $.value !== a
|
|
497
504
|
}),
|
|
498
|
-
style:
|
|
505
|
+
style: S(`animation-delay:${a * 100}ms`),
|
|
499
506
|
stroke: e.value.style.chart.layout.rings.stroke,
|
|
500
507
|
"stroke-width": l.strokeWidth < 0.5 ? 0.5 : l.strokeWidth,
|
|
501
508
|
cx: n.value.width / 2,
|
|
502
|
-
cy: a === 0 ? n.value.height / 2 : n.value.height / 2 +
|
|
503
|
-
r: s(j)(
|
|
504
|
-
fill: e.value.style.chart.layout.rings.gradient.show ? `url(#gradient_${
|
|
509
|
+
cy: a === 0 ? n.value.height / 2 : n.value.height / 2 + c.value * h.value[0].proportion / 2 - c.value * l.proportion / 2 - 2 * (a + 1),
|
|
510
|
+
r: s(j)(c.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : c.value * l.proportion / 2 * 0.9),
|
|
511
|
+
fill: e.value.style.chart.layout.rings.gradient.show ? `url(#gradient_${C.value}_${a})` : l.color
|
|
505
512
|
}, null, 14, Ut),
|
|
506
|
-
t.$slots.pattern ? (
|
|
513
|
+
t.$slots.pattern ? (r(), p("circle", {
|
|
507
514
|
key: 0,
|
|
508
515
|
class: U({
|
|
509
|
-
"vue-ui-rings-item":
|
|
510
|
-
"vue-rings-item-onload": !
|
|
516
|
+
"vue-ui-rings-item": I.value && e.value.useCssAnimation,
|
|
517
|
+
"vue-rings-item-onload": !I.value && e.value.useCssAnimation,
|
|
511
518
|
"vue-ui-rings-shadow": e.value.style.chart.layout.rings.useShadow,
|
|
512
519
|
"vue-ui-rings-blur": $.value !== null && $.value !== a
|
|
513
520
|
}),
|
|
514
|
-
style:
|
|
521
|
+
style: S(`animation-delay:${a * 100}ms`),
|
|
515
522
|
stroke: e.value.style.chart.layout.rings.stroke,
|
|
516
523
|
"stroke-width": l.strokeWidth < 0.5 ? 0.5 : l.strokeWidth,
|
|
517
524
|
cx: n.value.width / 2,
|
|
518
|
-
cy: a === 0 ? n.value.height / 2 : n.value.height / 2 +
|
|
519
|
-
r: s(j)(
|
|
520
|
-
fill: `url(#pattern_${
|
|
521
|
-
}, null, 14,
|
|
525
|
+
cy: a === 0 ? n.value.height / 2 : n.value.height / 2 + c.value * h.value[0].proportion / 2 - c.value * l.proportion / 2 - 2 * (a + 1),
|
|
526
|
+
r: s(j)(c.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : c.value * l.proportion / 2 * 0.9),
|
|
527
|
+
fill: `url(#pattern_${C.value}_${l.absoluteIndex})`
|
|
528
|
+
}, null, 14, Bt)) : m("", !0),
|
|
522
529
|
T("circle", {
|
|
523
530
|
stroke: "none",
|
|
524
531
|
cx: n.value.width / 2,
|
|
525
|
-
cy: a === 0 ? n.value.height / 2 : n.value.height / 2 +
|
|
526
|
-
r: s(j)(
|
|
532
|
+
cy: a === 0 ? n.value.height / 2 : n.value.height / 2 + c.value * h.value[0].proportion / 2 - c.value * l.proportion / 2 - 2 * (a + 1),
|
|
533
|
+
r: s(j)(c.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : c.value * l.proportion / 2 * 0.9),
|
|
527
534
|
fill: "transparent",
|
|
528
|
-
onMouseenter: (
|
|
529
|
-
onMouseleave: o[0] || (o[0] = (
|
|
535
|
+
onMouseenter: (u) => Ke(a, l),
|
|
536
|
+
onMouseleave: o[0] || (o[0] = (u) => {
|
|
530
537
|
$.value = null, W.value = !1;
|
|
531
538
|
})
|
|
532
|
-
}, null, 40,
|
|
539
|
+
}, null, 40, Et)
|
|
533
540
|
]))), 256)),
|
|
534
|
-
|
|
541
|
+
d(t.$slots, "svg", { svg: n.value }, void 0, !0)
|
|
535
542
|
], 14, At)) : m("", !0),
|
|
536
|
-
t.$slots.watermark ? (
|
|
537
|
-
|
|
543
|
+
t.$slots.watermark ? (r(), p("div", Wt, [
|
|
544
|
+
d(t.$slots, "watermark", R(M({ isPrinting: s(ge) || s(fe) })), void 0, !0)
|
|
538
545
|
])) : m("", !0),
|
|
539
|
-
E.value ? m("", !0) : (
|
|
546
|
+
E.value ? m("", !0) : (r(), N(s(Ue), {
|
|
540
547
|
key: 6,
|
|
541
548
|
config: {
|
|
542
549
|
type: "rings",
|
|
@@ -552,34 +559,31 @@ const Pt = ["id"], At = ["xmlns", "viewBox"], Ft = ["width", "height"], Lt = ["i
|
|
|
552
559
|
ref_key: "chartLegend",
|
|
553
560
|
ref: ae
|
|
554
561
|
}, [
|
|
555
|
-
e.value.style.chart.legend.show ? (
|
|
562
|
+
e.value.style.chart.legend.show ? (r(), N(_t, {
|
|
556
563
|
key: `legend_${ie.value}`,
|
|
557
|
-
legendSet:
|
|
558
|
-
config:
|
|
564
|
+
legendSet: we.value,
|
|
565
|
+
config: Ye.value,
|
|
559
566
|
onClickMarker: o[1] || (o[1] = ({ legend: l }) => Y(l.uid))
|
|
560
567
|
}, Oe({
|
|
561
568
|
item: g(({ legend: l, index: a }) => [
|
|
562
569
|
T("div", {
|
|
563
|
-
onClick: (
|
|
564
|
-
style:
|
|
565
|
-
},
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
r: e.value.style.chart.legend.roundingPercentage
|
|
581
|
-
})) + ") ", 1))
|
|
582
|
-
], 12, Dt)
|
|
570
|
+
onClick: (u) => Y(l.uid),
|
|
571
|
+
style: S(`opacity:${y.value.includes(l.uid) ? 0.5 : 1}`)
|
|
572
|
+
}, B(l.name) + B(e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ":" : "") + " " + B(e.value.style.chart.legend.showValue ? s(Se)(
|
|
573
|
+
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
574
|
+
l.value,
|
|
575
|
+
s(F)({
|
|
576
|
+
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
577
|
+
v: l.value,
|
|
578
|
+
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
579
|
+
r: e.value.style.chart.legend.roundingValue
|
|
580
|
+
}),
|
|
581
|
+
{ datapoint: l, seriesIndex: a }
|
|
582
|
+
) : "") + " " + B(e.value.style.chart.legend.showPercentage ? y.value.includes(l.uid) ? `${e.value.style.chart.legend.showValue ? "(" : ""}- %${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? "(" : ""}${isNaN(l.value / w.value) ? "-" : s(F)({
|
|
583
|
+
v: l.value / w.value * 100,
|
|
584
|
+
s: "%",
|
|
585
|
+
r: e.value.style.chart.legend.roundingPercentage
|
|
586
|
+
})}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""), 13, Dt)
|
|
583
587
|
]),
|
|
584
588
|
_: 2
|
|
585
589
|
}, [
|
|
@@ -591,25 +595,25 @@ const Pt = ["id"], At = ["xmlns", "viewBox"], Ft = ["width", "height"], Lt = ["i
|
|
|
591
595
|
radius: 30,
|
|
592
596
|
stroke: "none",
|
|
593
597
|
plot: { x: 30, y: 30 },
|
|
594
|
-
fill: `url(#pattern_${
|
|
598
|
+
fill: `url(#pattern_${C.value}_${a})`
|
|
595
599
|
}, null, 8, ["shape", "fill"])
|
|
596
600
|
]),
|
|
597
601
|
key: "0"
|
|
598
602
|
} : void 0
|
|
599
|
-
]), 1032, ["legendSet", "config"])) :
|
|
603
|
+
]), 1032, ["legendSet", "config"])) : d(t.$slots, "legend", {
|
|
600
604
|
key: 1,
|
|
601
|
-
legend:
|
|
605
|
+
legend: we.value
|
|
602
606
|
}, void 0, !0)
|
|
603
607
|
], 512),
|
|
604
|
-
t.$slots.source ? (
|
|
608
|
+
t.$slots.source ? (r(), p("div", {
|
|
605
609
|
key: 7,
|
|
606
610
|
ref_key: "source",
|
|
607
611
|
ref: se,
|
|
608
612
|
dir: "auto"
|
|
609
613
|
}, [
|
|
610
|
-
|
|
614
|
+
d(t.$slots, "source", {}, void 0, !0)
|
|
611
615
|
], 512)) : m("", !0),
|
|
612
|
-
Q(s(
|
|
616
|
+
Q(s(Be), {
|
|
613
617
|
show: k.value.showTooltip && W.value && y.value.length < b.dataset.length,
|
|
614
618
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
615
619
|
color: e.value.style.chart.tooltip.color,
|
|
@@ -620,20 +624,20 @@ const Pt = ["id"], At = ["xmlns", "viewBox"], Ft = ["width", "height"], Lt = ["i
|
|
|
620
624
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
621
625
|
position: e.value.style.chart.tooltip.position,
|
|
622
626
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
623
|
-
parent:
|
|
627
|
+
parent: x.value,
|
|
624
628
|
content: X.value,
|
|
625
|
-
isFullscreen:
|
|
629
|
+
isFullscreen: V.value,
|
|
626
630
|
isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function"
|
|
627
631
|
}, {
|
|
628
632
|
"tooltip-before": g(() => [
|
|
629
|
-
|
|
633
|
+
d(t.$slots, "tooltip-before", R(M({ ...J.value })), void 0, !0)
|
|
630
634
|
]),
|
|
631
635
|
"tooltip-after": g(() => [
|
|
632
|
-
|
|
636
|
+
d(t.$slots, "tooltip-after", R(M({ ...J.value })), void 0, !0)
|
|
633
637
|
]),
|
|
634
638
|
_: 3
|
|
635
639
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
636
|
-
E.value ? (
|
|
640
|
+
E.value ? (r(), N(s(Ve), {
|
|
637
641
|
key: 8,
|
|
638
642
|
hideDetails: "",
|
|
639
643
|
config: {
|
|
@@ -650,12 +654,12 @@ const Pt = ["id"], At = ["xmlns", "viewBox"], Ft = ["width", "height"], Lt = ["i
|
|
|
650
654
|
}
|
|
651
655
|
}, {
|
|
652
656
|
content: g(() => [
|
|
653
|
-
(
|
|
657
|
+
(r(), N(s(Re), {
|
|
654
658
|
key: `table_${re.value}`,
|
|
655
|
-
colNames:
|
|
656
|
-
head:
|
|
657
|
-
body:
|
|
658
|
-
config:
|
|
659
|
+
colNames: G.value.colNames,
|
|
660
|
+
head: G.value.head,
|
|
661
|
+
body: G.value.body,
|
|
662
|
+
config: G.value.config,
|
|
659
663
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
660
664
|
onClose: o[2] || (o[2] = (l) => k.value.showTable = !1)
|
|
661
665
|
}, {
|
|
@@ -663,19 +667,19 @@ const Pt = ["id"], At = ["xmlns", "viewBox"], Ft = ["width", "height"], Lt = ["i
|
|
|
663
667
|
T("div", {
|
|
664
668
|
innerHTML: l,
|
|
665
669
|
style: { display: "flex", "align-items": "center" }
|
|
666
|
-
}, null, 8,
|
|
670
|
+
}, null, 8, Gt)
|
|
667
671
|
]),
|
|
668
672
|
td: g(({ td: l }) => [
|
|
669
|
-
|
|
673
|
+
st(B(l.name || l), 1)
|
|
670
674
|
]),
|
|
671
675
|
_: 1
|
|
672
676
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
673
677
|
]),
|
|
674
678
|
_: 1
|
|
675
679
|
}, 8, ["config"])) : m("", !0)
|
|
676
|
-
], 46,
|
|
680
|
+
], 46, Nt));
|
|
677
681
|
}
|
|
678
|
-
},
|
|
682
|
+
}, al = /* @__PURE__ */ St(Ht, [["__scopeId", "data-v-ff5839f6"]]);
|
|
679
683
|
export {
|
|
680
|
-
|
|
684
|
+
al as default
|
|
681
685
|
};
|