vue-data-ui 3.0.0-next.0 → 3.0.0-next.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 +108 -67
- package/dist/{Arrow-CzFtSJ1v.js → Arrow-Dck2Ea5K.js} +1 -1
- package/dist/{BaseDraggableDialog-0S5xhs2P.js → BaseDraggableDialog-CatHZ1ns.js} +2 -2
- package/dist/{BaseIcon-DoDjTdD5.js → BaseIcon-BmZ4MREl.js} +1 -1
- package/dist/{ColorPicker-BGRchgqQ.js → ColorPicker-C1MXyD9Q.js} +2 -2
- package/dist/{DataTable-BBbOgI-a.js → DataTable-CgL0Rz0x.js} +2 -2
- package/dist/{Legend-Q4bOb-Nf.js → Legend-CYbP3Kfg.js} +12 -11
- package/dist/{NonSvgPenAndPaper-DNKRvsBB.js → NonSvgPenAndPaper-CcbcJm_U.js} +3 -3
- package/dist/{PackageVersion-D0VPY8-5.js → PackageVersion-CAkNkiIG.js} +1 -1
- package/dist/{PenAndPaper-DhBJsnob.js → PenAndPaper-Cx1-5zdD.js} +32 -32
- package/dist/{Shape-DbsLJ-SE.js → Shape-DBXkGxKt.js} +1 -1
- package/dist/{Slicer-DZEFp2GU.js → Slicer-nrMi5hzj.js} +2 -2
- package/dist/{SparkTooltip-CoOJR62O.js → SparkTooltip-fNzL4pIU.js} +1 -1
- package/dist/{Title-D29apS4l.js → Title-pVYRzQXY.js} +1 -1
- package/dist/Tooltip-NwATo4ZJ.js +157 -0
- package/dist/{UserOptions-Bdit7AWO.js → UserOptions-DAsRxxrf.js} +137 -129
- package/dist/{dom-to-png-BdPIrHOF.js → dom-to-png-BF_4H_6u.js} +1 -1
- package/dist/img-ku4zevVD.js +33 -0
- package/dist/{index-DMqAxz7R.js → index-BzfnuLnw.js} +1199 -1135
- package/dist/pdf-CguiIsUc.js +58 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +1051 -217
- package/dist/types/vue-data-ui.d.ts +1051 -217
- package/dist/useLoading-Bt5Doa8m.js +28 -0
- package/dist/{useNestedProp-YgN3FV_8.js → useNestedProp-DorElw91.js} +1 -1
- package/dist/{usePrinter-COkTjv6C.js → usePrinter-C9qkgv0r.js} +2 -2
- package/dist/vue-data-ui-DQef_oFO.js +314 -0
- package/dist/vue-data-ui.js +13 -13
- package/dist/{vue-ui-3d-bar-Ojgjl20n.js → vue-ui-3d-bar-DPSamIA-.js} +261 -245
- package/dist/{vue-ui-accordion-P6eFHGQp.js → vue-ui-accordion-DgZK-qDz.js} +3 -3
- package/dist/{vue-ui-age-pyramid-IcMpAhiw.js → vue-ui-age-pyramid-DVeGKvf9.js} +233 -217
- package/dist/{vue-ui-annotator-Bk7d86-x.js → vue-ui-annotator-6ikkK-FK.js} +2 -2
- package/dist/{vue-ui-bullet-DCvWbCPk.js → vue-ui-bullet-Bg4hfFk2.js} +172 -156
- package/dist/{vue-ui-candlestick-DCf-88Yv.js → vue-ui-candlestick-Bi59FGXn.js} +271 -254
- package/dist/{vue-ui-carousel-table-DEsl0XUh.js → vue-ui-carousel-table-DitKhrFT.js} +17 -16
- package/dist/{vue-ui-chestnut-Cg10-3wu.js → vue-ui-chestnut-D8wGAZod.js} +419 -403
- package/dist/{vue-ui-chord-BWYzR6vf.js → vue-ui-chord-C-uTVCDP.js} +256 -240
- package/dist/{vue-ui-circle-pack-CO2Ra2-5.js → vue-ui-circle-pack-CPy6xcxv.js} +230 -214
- package/dist/{vue-ui-cursor-BbYHJDbV.js → vue-ui-cursor-Dd7vUd0q.js} +2 -2
- package/dist/{vue-ui-dashboard-DkCnNuse.js → vue-ui-dashboard-CKurbu8M.js} +62 -62
- package/dist/{vue-ui-digits-DRsphHt2.js → vue-ui-digits-DfdZI11G.js} +2 -2
- package/dist/{vue-ui-donut-evolution-B5F2-0bh.js → vue-ui-donut-evolution-CKbLO8yR.js} +370 -357
- package/dist/vue-ui-donut-tECBFvud.js +1532 -0
- package/dist/{vue-ui-dumbbell-DqqSxoSh.js → vue-ui-dumbbell-DI5Lj3r_.js} +216 -200
- package/dist/{vue-ui-flow-CTIcUJgV.js → vue-ui-flow-CjU48s9z.js} +217 -201
- package/dist/{vue-ui-funnel-k7KD7Xoc.js → vue-ui-funnel-DM_5vHZ4.js} +213 -197
- package/dist/{vue-ui-galaxy-C9EHaP4I.js → vue-ui-galaxy-ocvZgZJx.js} +215 -202
- package/dist/{vue-ui-gauge-CBiM_1-n.js → vue-ui-gauge-DajNoY-D.js} +220 -204
- package/dist/{vue-ui-gizmo-CAc7b2oK.js → vue-ui-gizmo-DTnzeQbm.js} +3 -3
- package/dist/{vue-ui-heatmap-B3ubrP2v.js → vue-ui-heatmap-CfBS8jQe.js} +244 -224
- package/dist/{vue-ui-history-plot-XCqccO3b.js → vue-ui-history-plot-BuOPWQoP.js} +268 -252
- package/dist/{vue-ui-kpi-DTGMDjaZ.js → vue-ui-kpi-DLGHOIRj.js} +3 -3
- package/dist/{vue-ui-mini-loader-Cn_7nvVq.js → vue-ui-mini-loader-CHAHi4c9.js} +2 -2
- package/dist/{vue-ui-molecule-BugMXFAK.js → vue-ui-molecule-R5-oDFeW.js} +204 -188
- package/dist/{vue-ui-mood-radar-Cv4dHZPL.js → vue-ui-mood-radar-Ddf2gaES.js} +206 -190
- package/dist/vue-ui-nested-donuts-CksklV83.js +1177 -0
- package/dist/{vue-ui-onion-Bha2hRAb.js → vue-ui-onion-D2n4zUkV.js} +196 -180
- package/dist/{vue-ui-parallel-coordinate-plot-DWJ2DWx4.js → vue-ui-parallel-coordinate-plot-CNWQqlxf.js} +194 -178
- package/dist/{vue-ui-quadrant-BKHZoTml.js → vue-ui-quadrant-CxNj2FEx.js} +321 -305
- package/dist/{vue-ui-quick-chart-D_k3lbU8.js → vue-ui-quick-chart-Bm_VmhJR.js} +347 -331
- package/dist/{vue-ui-radar-Co4EOjSk.js → vue-ui-radar-DSYMQJ6K.js} +193 -177
- package/dist/{vue-ui-rating-dtNN0EdX.js → vue-ui-rating-BiQpwXnc.js} +2 -2
- package/dist/{vue-ui-relation-circle-CR4UpQzM.js → vue-ui-relation-circle-Cdxe78Bm.js} +188 -172
- package/dist/{vue-ui-ridgeline-BKX97EnR.js → vue-ui-ridgeline-DpeM2hRi.js} +212 -196
- package/dist/{vue-ui-rings-EPTwyt6D.js → vue-ui-rings-BenmQHKv.js} +223 -210
- package/dist/{vue-ui-scatter-BlxzblSR.js → vue-ui-scatter-mDMY1H6U.js} +288 -273
- package/dist/{vue-ui-skeleton-CjN2ZdgT.js → vue-ui-skeleton-Ch_XkFuP.js} +3 -3
- package/dist/{vue-ui-smiley-DdF_ErYG.js → vue-ui-smiley-DTig5lTU.js} +2 -2
- package/dist/{vue-ui-spark-trend-RdOlCuT9.js → vue-ui-spark-trend-BkDsp8E0.js} +3 -3
- package/dist/{vue-ui-sparkbar-DWufRGcN.js → vue-ui-sparkbar-CgqoyBOm.js} +3 -3
- package/dist/{vue-ui-sparkgauge-IP1O3qyT.js → vue-ui-sparkgauge-B4jR_Y62.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-Cnv9xZ8H.js → vue-ui-sparkhistogram-DfxjglLy.js} +4 -4
- package/dist/{vue-ui-sparkline-CYgeD5V3.js → vue-ui-sparkline-M3QR8xJE.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-BCwoK9xd.js → vue-ui-sparkstackbar-B2Ls-Mb8.js} +3 -3
- package/dist/{vue-ui-stackbar-CqFIvfrK.js → vue-ui-stackbar-DIHkn6__.js} +497 -474
- package/dist/{vue-ui-strip-plot-Dq-kDRai.js → vue-ui-strip-plot-B_ZLbu2D.js} +241 -225
- package/dist/{vue-ui-table-vaIdQnPl.js → vue-ui-table-BhymhDOh.js} +3 -3
- package/dist/{vue-ui-table-heatmap-U_Td0cdh.js → vue-ui-table-heatmap-DokRh4dS.js} +26 -25
- package/dist/{vue-ui-table-sparkline-DkOaHx5L.js → vue-ui-table-sparkline-DxBZGKZJ.js} +8 -7
- package/dist/{vue-ui-thermometer-CzckBZgs.js → vue-ui-thermometer-e2L6IdF-.js} +170 -154
- package/dist/{vue-ui-timer-DSdUshUs.js → vue-ui-timer-BG2EwK3o.js} +5 -5
- package/dist/vue-ui-tiremarks-nzQH7woJ.js +358 -0
- package/dist/vue-ui-treemap-CZxyi6fl.js +965 -0
- package/dist/{vue-ui-vertical-bar-Dd4sYeAC.js → vue-ui-vertical-bar-DahdX1Sn.js} +382 -360
- package/dist/{vue-ui-waffle-DusUVY6y.js → vue-ui-waffle-D399D4UE.js} +234 -221
- package/dist/vue-ui-wheel-DtcwtHzJ.js +352 -0
- package/dist/{vue-ui-word-cloud-_7uYjJ5A.js → vue-ui-word-cloud-CTDceQsf.js} +249 -233
- package/dist/{vue-ui-world-COIyBHII.js → vue-ui-world-BjNSbqMZ.js} +239 -223
- package/dist/vue-ui-xy-BkTP-JpK.js +2958 -0
- package/dist/{vue-ui-xy-canvas-CuYRyub2.js → vue-ui-xy-canvas-BKAowbe0.js} +447 -431
- package/package.json +2 -2
- package/dist/Tooltip-hVZUY_s5.js +0 -149
- package/dist/img-BeMVTwmF.js +0 -20
- package/dist/pdf-DPxOdzfi.js +0 -51
- package/dist/useMouse-AicQS8Vf.js +0 -13
- package/dist/vue-data-ui-nceqWRts.js +0 -301
- package/dist/vue-ui-donut-DSE7ubVv.js +0 -1315
- package/dist/vue-ui-nested-donuts-CYe0Are_.js +0 -1154
- package/dist/vue-ui-tiremarks-B2WWklqG.js +0 -342
- package/dist/vue-ui-treemap-D1dgDhjG.js +0 -952
- package/dist/vue-ui-wheel-ClsKBh52.js +0 -336
- package/dist/vue-ui-xy-C_OUyzTC.js +0 -3135
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { u as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import _t from "./Legend-
|
|
9
|
-
import
|
|
10
|
-
import { _ as
|
|
11
|
-
import
|
|
12
|
-
|
|
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-BzfnuLnw.js";
|
|
3
|
+
import { t as wt, u as Ct } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Ne } from "./useNestedProp-DorElw91.js";
|
|
5
|
+
import { u as $t } from "./usePrinter-C9qkgv0r.js";
|
|
6
|
+
import { u as Tt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
|
+
import { u as xt } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
+
import _t from "./Legend-CYbP3Kfg.js";
|
|
9
|
+
import Ot from "./Title-pVYRzQXY.js";
|
|
10
|
+
import { _ as It } from "./Shape-DBXkGxKt.js";
|
|
11
|
+
import Pt from "./img-ku4zevVD.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 = {
|
|
13
14
|
key: 5,
|
|
14
15
|
class: "vue-data-ui-watermark"
|
|
15
|
-
},
|
|
16
|
+
}, Dt = ["onClick"], Gt = ["innerHTML"], Ht = {
|
|
16
17
|
__name: "vue-ui-rings",
|
|
17
18
|
props: {
|
|
18
19
|
config: {
|
|
@@ -29,40 +30,40 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], At = ["width", "height"], St = ["i
|
|
|
29
30
|
}
|
|
30
31
|
},
|
|
31
32
|
emits: ["selectLegend"],
|
|
32
|
-
setup(
|
|
33
|
-
const
|
|
34
|
-
get: () =>
|
|
33
|
+
setup(Ae, { expose: Fe, emit: Le }) {
|
|
34
|
+
const Ve = P(() => import("./vue-ui-accordion-DgZK-qDz.js")), Re = P(() => import("./DataTable-CgL0Rz0x.js")), Me = P(() => import("./PackageVersion-CAkNkiIG.js")), ze = P(() => import("./PenAndPaper-Cx1-5zdD.js")), Ue = P(() => import("./vue-ui-skeleton-Ch_XkFuP.js")), Be = P(() => import("./Tooltip-NwATo4ZJ.js")), Ee = P(() => import("./UserOptions-DAsRxxrf.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(),
|
|
35
36
|
set: (t) => t
|
|
36
|
-
}), { userOptionsVisible: q, setUserOptionsVisibility: ve, keepUserOptionState: ce } =
|
|
37
|
-
function
|
|
38
|
-
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({
|
|
39
40
|
userConfig: b.config,
|
|
40
|
-
defaultConfig:
|
|
41
|
+
defaultConfig: We
|
|
41
42
|
});
|
|
42
43
|
return t.theme ? {
|
|
43
|
-
...
|
|
44
|
-
userConfig:
|
|
44
|
+
...Ne({
|
|
45
|
+
userConfig: it.vue_ui_rings[t.theme] || b.config,
|
|
45
46
|
defaultConfig: t
|
|
46
47
|
}),
|
|
47
|
-
customPalette:
|
|
48
|
+
customPalette: rt[t.theme] || A
|
|
48
49
|
} : t;
|
|
49
50
|
}
|
|
50
51
|
tt(() => b.config, (t) => {
|
|
51
|
-
e.value =
|
|
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;
|
|
52
53
|
}, { deep: !0 });
|
|
53
|
-
const _ = _e(null),
|
|
54
|
+
const _ = _e(null), L = _e(null);
|
|
54
55
|
lt(() => {
|
|
55
|
-
|
|
56
|
+
pe();
|
|
56
57
|
});
|
|
57
|
-
function
|
|
58
|
-
if (
|
|
58
|
+
function pe() {
|
|
59
|
+
if (vt(b.dataset) ? te({
|
|
59
60
|
componentName: "VueUiRings",
|
|
60
61
|
type: "dataset"
|
|
61
62
|
}) : b.dataset.forEach((t, o) => {
|
|
62
63
|
t.values.length || te({
|
|
63
64
|
componentName: "VueUiRings",
|
|
64
65
|
type: "dataset"
|
|
65
|
-
}),
|
|
66
|
+
}), ct({
|
|
66
67
|
datasetObject: t,
|
|
67
68
|
requiredAttributes: ["name", "values"]
|
|
68
69
|
}).forEach((l) => {
|
|
@@ -74,9 +75,9 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], At = ["width", "height"], St = ["i
|
|
|
74
75
|
});
|
|
75
76
|
});
|
|
76
77
|
}), e.value.responsive) {
|
|
77
|
-
const t =
|
|
78
|
+
const t = wt(() => {
|
|
78
79
|
const { width: o, height: l } = Ct({
|
|
79
|
-
chart:
|
|
80
|
+
chart: x.value,
|
|
80
81
|
title: e.value.style.chart.title.text ? oe.value : null,
|
|
81
82
|
legend: e.value.style.chart.legend.show ? ae.value : null,
|
|
82
83
|
source: se.value,
|
|
@@ -86,20 +87,20 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], At = ["width", "height"], St = ["i
|
|
|
86
87
|
n.value.width = o, n.value.height = l;
|
|
87
88
|
});
|
|
88
89
|
});
|
|
89
|
-
_.value && (
|
|
90
|
+
_.value && (L.value && _.value.unobserve(L.value), _.value.disconnect()), _.value = new ResizeObserver(t), L.value = x.value.parentNode, _.value.observe(L.value);
|
|
90
91
|
}
|
|
91
92
|
setTimeout(() => {
|
|
92
|
-
|
|
93
|
+
I.value = !0;
|
|
93
94
|
}, 600);
|
|
94
95
|
}
|
|
95
96
|
ot(() => {
|
|
96
|
-
_.value && (
|
|
97
|
+
_.value && (L.value && _.value.unobserve(L.value), _.value.disconnect());
|
|
97
98
|
});
|
|
98
|
-
const { isPrinting: ge, isImaging: fe, generatePdf: ye, generateImage: me } =
|
|
99
|
-
elementId: `rings_${
|
|
99
|
+
const { isPrinting: ge, isImaging: fe, generatePdf: ye, generateImage: me } = $t({
|
|
100
|
+
elementId: `rings_${C.value}`,
|
|
100
101
|
fileName: e.value.style.chart.title.text || "vue-ui-rings",
|
|
101
102
|
options: e.value.userOptions.print
|
|
102
|
-
}), He = f(() => e.value.userOptions.show && !e.value.style.chart.title.text), be = f(() =>
|
|
103
|
+
}), He = f(() => e.value.userOptions.show && !e.value.style.chart.title.text), be = f(() => dt(e.value.customPalette)), k = i({
|
|
103
104
|
showTable: e.value.table.show,
|
|
104
105
|
showTooltip: e.value.style.chart.tooltip.show
|
|
105
106
|
}), n = i({
|
|
@@ -114,22 +115,22 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], At = ["width", "height"], St = ["i
|
|
|
114
115
|
})));
|
|
115
116
|
}
|
|
116
117
|
const qe = f(() => Math.max(
|
|
117
|
-
...
|
|
118
|
+
...D.value.filter((t) => !y.value.includes(t.uid)).map(({ value: t }) => t)
|
|
118
119
|
));
|
|
119
120
|
function ke(t) {
|
|
120
121
|
return t / qe.value;
|
|
121
122
|
}
|
|
122
|
-
const
|
|
123
|
-
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);
|
|
124
125
|
return {
|
|
125
126
|
name: o,
|
|
126
|
-
color: l ||
|
|
127
|
-
value:
|
|
128
|
-
proportion:
|
|
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),
|
|
129
130
|
uid: Ie(),
|
|
130
131
|
absoluteIndex: a
|
|
131
132
|
};
|
|
132
|
-
})),
|
|
133
|
+
})), we = f(() => D.value.map((t) => ({
|
|
133
134
|
...t,
|
|
134
135
|
shape: "circle",
|
|
135
136
|
opacity: y.value.includes(t.uid) ? 0.5 : 1,
|
|
@@ -142,28 +143,28 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], At = ["width", "height"], St = ["i
|
|
|
142
143
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
143
144
|
paddingBottom: 12,
|
|
144
145
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
145
|
-
})),
|
|
146
|
-
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,
|
|
147
148
|
uid: a,
|
|
148
149
|
name: t,
|
|
149
|
-
color: l ||
|
|
150
|
+
color: l || Pe(l) || be.value[v] || A[v] || A[v % A.length],
|
|
150
151
|
value: o,
|
|
151
152
|
proportion: ke(o),
|
|
152
|
-
percentage: o /
|
|
153
|
+
percentage: o / w.value * 100,
|
|
153
154
|
strokeWidth: e.value.style.chart.layout.rings.strokeWidth * ke(o)
|
|
154
155
|
})).toSorted((t, o) => o.value - t.value));
|
|
155
156
|
function Je() {
|
|
156
157
|
return h.value.map(
|
|
157
|
-
({ name: t, color: o, value: l, absoluteValues: a, percentage:
|
|
158
|
+
({ name: t, color: o, value: l, absoluteValues: a, percentage: u }) => ({
|
|
158
159
|
name: t,
|
|
159
160
|
color: o,
|
|
160
161
|
value: l,
|
|
161
162
|
absoluteValues: a,
|
|
162
|
-
percentage:
|
|
163
|
+
percentage: u
|
|
163
164
|
})
|
|
164
165
|
);
|
|
165
166
|
}
|
|
166
|
-
const
|
|
167
|
+
const c = f(() => je.value - e.value.style.chart.layout.rings.strokeWidth * 2), J = i(null);
|
|
167
168
|
function Ke(t, o) {
|
|
168
169
|
if (y.value.length === b.dataset.length) return;
|
|
169
170
|
J.value = {
|
|
@@ -173,7 +174,7 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], At = ["width", "height"], St = ["i
|
|
|
173
174
|
config: e.value
|
|
174
175
|
}, $.value = t;
|
|
175
176
|
const l = h.value[t], a = e.value.style.chart.tooltip.customFormat;
|
|
176
|
-
if (
|
|
177
|
+
if (bt(a) && kt(() => a({
|
|
177
178
|
seriesIndex: t,
|
|
178
179
|
datapoint: o,
|
|
179
180
|
series: h.value,
|
|
@@ -186,11 +187,11 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], At = ["width", "height"], St = ["i
|
|
|
186
187
|
config: e.value
|
|
187
188
|
});
|
|
188
189
|
else {
|
|
189
|
-
let
|
|
190
|
-
|
|
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(
|
|
191
192
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
192
193
|
l.value,
|
|
193
|
-
|
|
194
|
+
F({
|
|
194
195
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
195
196
|
v: l.value,
|
|
196
197
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -198,36 +199,36 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], At = ["width", "height"], St = ["i
|
|
|
198
199
|
}),
|
|
199
200
|
{ datapoint: o, seriesIndex: t }
|
|
200
201
|
)}
|
|
201
|
-
</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ?
|
|
202
|
-
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,
|
|
203
204
|
s: "%",
|
|
204
205
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
205
|
-
})})</span></div>` :
|
|
206
|
-
v: l.value /
|
|
206
|
+
})})</span></div>` : u += `<b>${F({
|
|
207
|
+
v: l.value / w.value * 100,
|
|
207
208
|
s: "%",
|
|
208
209
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
209
|
-
})}</b></div>`), X.value =
|
|
210
|
+
})}</b></div>`), X.value = u;
|
|
210
211
|
}
|
|
211
|
-
|
|
212
|
+
W.value = !0;
|
|
212
213
|
}
|
|
213
|
-
const
|
|
214
|
+
const O = f(() => {
|
|
214
215
|
const t = h.value.map((l) => ({
|
|
215
216
|
name: l.name,
|
|
216
217
|
color: l.color
|
|
217
218
|
})), o = h.value.map((l) => l.value);
|
|
218
219
|
return { head: t, body: o };
|
|
219
|
-
}),
|
|
220
|
+
}), G = f(() => {
|
|
220
221
|
const t = [
|
|
221
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>',
|
|
222
|
-
|
|
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 }),
|
|
223
224
|
"100%"
|
|
224
|
-
], o =
|
|
225
|
+
], o = O.value.head.map((u, v) => [
|
|
225
226
|
{
|
|
226
|
-
color:
|
|
227
|
-
name:
|
|
227
|
+
color: u.color,
|
|
228
|
+
name: u.name
|
|
228
229
|
},
|
|
229
|
-
|
|
230
|
-
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) + "%"
|
|
231
232
|
]), l = {
|
|
232
233
|
th: {
|
|
233
234
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
@@ -252,69 +253,83 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], At = ["width", "height"], St = ["i
|
|
|
252
253
|
colNames: a
|
|
253
254
|
};
|
|
254
255
|
});
|
|
255
|
-
function
|
|
256
|
-
|
|
257
|
-
const o =
|
|
258
|
-
|
|
259
|
-
], [
|
|
260
|
-
t ? t(a) :
|
|
256
|
+
function Ce(t = null) {
|
|
257
|
+
nt(() => {
|
|
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
|
+
t ? t(a) : mt({ csvContent: a, title: e.value.style.chart.title.text || "vue-ui-rings" });
|
|
261
262
|
});
|
|
262
263
|
}
|
|
263
|
-
const
|
|
264
|
-
function
|
|
265
|
-
|
|
264
|
+
const V = i(!1);
|
|
265
|
+
function $e(t) {
|
|
266
|
+
V.value = t, le.value += 1;
|
|
266
267
|
}
|
|
267
|
-
function
|
|
268
|
+
function Te() {
|
|
268
269
|
k.value.showTable = !k.value.showTable;
|
|
269
270
|
}
|
|
270
|
-
function
|
|
271
|
+
function xe() {
|
|
271
272
|
k.value.showTooltip = !k.value.showTooltip;
|
|
272
273
|
}
|
|
273
|
-
const
|
|
274
|
+
const H = i(!1);
|
|
274
275
|
function K() {
|
|
275
|
-
|
|
276
|
+
H.value = !H.value;
|
|
277
|
+
}
|
|
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
|
+
};
|
|
276
289
|
}
|
|
277
290
|
return Fe({
|
|
278
291
|
getData: Je,
|
|
292
|
+
getImage: Qe,
|
|
279
293
|
generatePdf: ye,
|
|
280
|
-
generateCsv:
|
|
294
|
+
generateCsv: Ce,
|
|
281
295
|
generateImage: me,
|
|
282
|
-
toggleTable:
|
|
283
|
-
toggleTooltip:
|
|
284
|
-
toggleAnnotator: K
|
|
285
|
-
|
|
296
|
+
toggleTable: Te,
|
|
297
|
+
toggleTooltip: xe,
|
|
298
|
+
toggleAnnotator: K,
|
|
299
|
+
toggleFullscreen: $e
|
|
300
|
+
}), (t, o) => (r(), p("div", {
|
|
286
301
|
ref_key: "ringsChart",
|
|
287
|
-
ref:
|
|
288
|
-
class: U(`vue-ui-rings ${
|
|
289
|
-
style:
|
|
290
|
-
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}`,
|
|
291
306
|
onMouseleave: o[3] || (o[3] = (l) => {
|
|
292
|
-
$.value = null,
|
|
307
|
+
$.value = null, W.value = !1, s(ve)(!1);
|
|
293
308
|
}),
|
|
294
309
|
onMouseenter: o[4] || (o[4] = () => s(ve)(!0))
|
|
295
310
|
}, [
|
|
296
|
-
e.value.userOptions.buttons.annotator ? (
|
|
311
|
+
e.value.userOptions.buttons.annotator ? (r(), N(s(ze), {
|
|
297
312
|
key: 0,
|
|
298
313
|
svgRef: s(de),
|
|
299
314
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
300
315
|
color: e.value.style.chart.color,
|
|
301
|
-
active:
|
|
316
|
+
active: H.value,
|
|
302
317
|
onClose: K
|
|
303
318
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : m("", !0),
|
|
304
|
-
He.value ? (
|
|
319
|
+
He.value ? (r(), p("div", {
|
|
305
320
|
key: 1,
|
|
306
321
|
ref_key: "noTitle",
|
|
307
322
|
ref: ne,
|
|
308
323
|
class: "vue-data-ui-no-title-space",
|
|
309
324
|
style: "height:36px; width: 100%;background:transparent"
|
|
310
325
|
}, null, 512)) : m("", !0),
|
|
311
|
-
e.value.style.chart.title.text ? (
|
|
326
|
+
e.value.style.chart.title.text ? (r(), p("div", {
|
|
312
327
|
key: 2,
|
|
313
328
|
ref_key: "chartTitle",
|
|
314
329
|
ref: oe,
|
|
315
330
|
style: "width:100%;background:transparent"
|
|
316
331
|
}, [
|
|
317
|
-
(
|
|
332
|
+
(r(), N(Ot, {
|
|
318
333
|
key: `title_${ue.value}`,
|
|
319
334
|
config: {
|
|
320
335
|
title: {
|
|
@@ -328,7 +343,7 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], At = ["width", "height"], St = ["i
|
|
|
328
343
|
}
|
|
329
344
|
}, null, 8, ["config"]))
|
|
330
345
|
], 512)) : m("", !0),
|
|
331
|
-
e.value.userOptions.show &&
|
|
346
|
+
e.value.userOptions.show && E.value && (s(ce) || s(q)) ? (r(), N(s(Ee), {
|
|
332
347
|
ref_key: "details",
|
|
333
348
|
ref: Ge,
|
|
334
349
|
key: `user_options_${le.value}`,
|
|
@@ -336,7 +351,7 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], At = ["width", "height"], St = ["i
|
|
|
336
351
|
color: e.value.style.chart.color,
|
|
337
352
|
isPrinting: s(ge),
|
|
338
353
|
isImaging: s(fe),
|
|
339
|
-
uid:
|
|
354
|
+
uid: C.value,
|
|
340
355
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
341
356
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
342
357
|
hasXls: e.value.userOptions.buttons.csv,
|
|
@@ -344,92 +359,93 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], At = ["width", "height"], St = ["i
|
|
|
344
359
|
hasTable: e.value.userOptions.buttons.table,
|
|
345
360
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
346
361
|
isTooltip: k.value.showTooltip,
|
|
347
|
-
isFullscreen:
|
|
362
|
+
isFullscreen: V.value,
|
|
348
363
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
349
|
-
chartElement:
|
|
364
|
+
chartElement: x.value,
|
|
350
365
|
position: e.value.userOptions.position,
|
|
351
366
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
352
|
-
isAnnotation:
|
|
367
|
+
isAnnotation: H.value,
|
|
353
368
|
callbacks: e.value.userOptions.callbacks,
|
|
354
|
-
|
|
369
|
+
printScale: e.value.userOptions.print.scale,
|
|
370
|
+
onToggleFullscreen: $e,
|
|
355
371
|
onGeneratePdf: s(ye),
|
|
356
|
-
onGenerateCsv:
|
|
372
|
+
onGenerateCsv: Ce,
|
|
357
373
|
onGenerateImage: s(me),
|
|
358
|
-
onToggleTable:
|
|
359
|
-
onToggleTooltip:
|
|
374
|
+
onToggleTable: Te,
|
|
375
|
+
onToggleTooltip: xe,
|
|
360
376
|
onToggleAnnotator: K,
|
|
361
|
-
style:
|
|
377
|
+
style: S({
|
|
362
378
|
visibility: s(ce) ? s(q) ? "visible" : "hidden" : "visible"
|
|
363
379
|
})
|
|
364
|
-
},
|
|
380
|
+
}, Oe({ _: 2 }, [
|
|
365
381
|
t.$slots.menuIcon ? {
|
|
366
382
|
name: "menuIcon",
|
|
367
383
|
fn: g(({ isOpen: l, color: a }) => [
|
|
368
|
-
|
|
384
|
+
d(t.$slots, "menuIcon", R(M({ isOpen: l, color: a })), void 0, !0)
|
|
369
385
|
]),
|
|
370
386
|
key: "0"
|
|
371
387
|
} : void 0,
|
|
372
388
|
t.$slots.optionTooltip ? {
|
|
373
389
|
name: "optionTooltip",
|
|
374
390
|
fn: g(() => [
|
|
375
|
-
|
|
391
|
+
d(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
376
392
|
]),
|
|
377
393
|
key: "1"
|
|
378
394
|
} : void 0,
|
|
379
395
|
t.$slots.optionPdf ? {
|
|
380
396
|
name: "optionPdf",
|
|
381
397
|
fn: g(() => [
|
|
382
|
-
|
|
398
|
+
d(t.$slots, "optionPdf", {}, void 0, !0)
|
|
383
399
|
]),
|
|
384
400
|
key: "2"
|
|
385
401
|
} : void 0,
|
|
386
402
|
t.$slots.optionCsv ? {
|
|
387
403
|
name: "optionCsv",
|
|
388
404
|
fn: g(() => [
|
|
389
|
-
|
|
405
|
+
d(t.$slots, "optionCsv", {}, void 0, !0)
|
|
390
406
|
]),
|
|
391
407
|
key: "3"
|
|
392
408
|
} : void 0,
|
|
393
409
|
t.$slots.optionImg ? {
|
|
394
410
|
name: "optionImg",
|
|
395
411
|
fn: g(() => [
|
|
396
|
-
|
|
412
|
+
d(t.$slots, "optionImg", {}, void 0, !0)
|
|
397
413
|
]),
|
|
398
414
|
key: "4"
|
|
399
415
|
} : void 0,
|
|
400
416
|
t.$slots.optionTable ? {
|
|
401
417
|
name: "optionTable",
|
|
402
418
|
fn: g(() => [
|
|
403
|
-
|
|
419
|
+
d(t.$slots, "optionTable", {}, void 0, !0)
|
|
404
420
|
]),
|
|
405
421
|
key: "5"
|
|
406
422
|
} : void 0,
|
|
407
423
|
t.$slots.optionFullscreen ? {
|
|
408
424
|
name: "optionFullscreen",
|
|
409
425
|
fn: g(({ toggleFullscreen: l, isFullscreen: a }) => [
|
|
410
|
-
|
|
426
|
+
d(t.$slots, "optionFullscreen", R(M({ toggleFullscreen: l, isFullscreen: a })), void 0, !0)
|
|
411
427
|
]),
|
|
412
428
|
key: "6"
|
|
413
429
|
} : void 0,
|
|
414
430
|
t.$slots.optionAnnotator ? {
|
|
415
431
|
name: "optionAnnotator",
|
|
416
432
|
fn: g(({ toggleAnnotator: l, isAnnotator: a }) => [
|
|
417
|
-
|
|
433
|
+
d(t.$slots, "optionAnnotator", R(M({ toggleAnnotator: l, isAnnotator: a })), void 0, !0)
|
|
418
434
|
]),
|
|
419
435
|
key: "7"
|
|
420
436
|
} : void 0
|
|
421
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) : m("", !0),
|
|
422
|
-
|
|
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),
|
|
438
|
+
E.value ? (r(), p("svg", {
|
|
423
439
|
key: 4,
|
|
424
440
|
ref_key: "svgRef",
|
|
425
441
|
ref: de,
|
|
426
442
|
xmlns: s(pt),
|
|
427
|
-
class: U({ "vue-data-ui-fullscreen--on":
|
|
443
|
+
class: U({ "vue-data-ui-fullscreen--on": V.value, "vue-data-ui-fulscreen--off": !V.value }),
|
|
428
444
|
viewBox: `0 0 ${n.value.width <= 0 ? 10 : n.value.width} ${n.value.height <= 0 ? 10 : n.value.height}`,
|
|
429
|
-
style:
|
|
445
|
+
style: S(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
430
446
|
}, [
|
|
431
|
-
Q(s(
|
|
432
|
-
t.$slots["chart-background"] ? (
|
|
447
|
+
Q(s(Me)),
|
|
448
|
+
t.$slots["chart-background"] ? (r(), p("foreignObject", {
|
|
433
449
|
key: 0,
|
|
434
450
|
x: 0,
|
|
435
451
|
y: 0,
|
|
@@ -439,95 +455,95 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], At = ["width", "height"], St = ["i
|
|
|
439
455
|
pointerEvents: "none"
|
|
440
456
|
}
|
|
441
457
|
}, [
|
|
442
|
-
|
|
443
|
-
], 8,
|
|
458
|
+
d(t.$slots, "chart-background", {}, void 0, !0)
|
|
459
|
+
], 8, Ft)) : m("", !0),
|
|
444
460
|
T("defs", null, [
|
|
445
|
-
(
|
|
461
|
+
(r(!0), p(Z, null, ee(h.value, (l, a) => (r(), p("radialGradient", {
|
|
446
462
|
cx: "50%",
|
|
447
463
|
cy: "30%",
|
|
448
464
|
r: "50%",
|
|
449
465
|
fx: "50%",
|
|
450
466
|
fy: "50%",
|
|
451
|
-
id: `gradient_${
|
|
467
|
+
id: `gradient_${C.value}_${a}`
|
|
452
468
|
}, [
|
|
453
469
|
T("stop", {
|
|
454
470
|
offset: "0%",
|
|
455
|
-
"stop-color": s(
|
|
456
|
-
}, null, 8,
|
|
471
|
+
"stop-color": s(gt)(s(ft)(l.color, 0.05), 100 - e.value.style.chart.layout.rings.gradient.intensity)
|
|
472
|
+
}, null, 8, Vt),
|
|
457
473
|
T("stop", {
|
|
458
474
|
offset: "100%",
|
|
459
475
|
"stop-color": l.color
|
|
460
|
-
}, null, 8,
|
|
461
|
-
], 8,
|
|
476
|
+
}, null, 8, Rt)
|
|
477
|
+
], 8, Lt))), 256))
|
|
462
478
|
]),
|
|
463
|
-
t.$slots.pattern ? (
|
|
464
|
-
(
|
|
465
|
-
|
|
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)
|
|
466
482
|
]))), 256))
|
|
467
483
|
])) : m("", !0),
|
|
468
|
-
(
|
|
484
|
+
(r(!0), p(Z, null, ee(h.value, (l, a) => (r(), p("g", null, [
|
|
469
485
|
T("circle", {
|
|
470
486
|
class: U({
|
|
471
|
-
"vue-ui-rings-item":
|
|
472
|
-
"vue-rings-item-onload": !
|
|
487
|
+
"vue-ui-rings-item": I.value && e.value.useCssAnimation,
|
|
488
|
+
"vue-rings-item-onload": !I.value && e.value.useCssAnimation,
|
|
473
489
|
"vue-ui-rings-opacity": $.value !== null && $.value !== a
|
|
474
490
|
}),
|
|
475
|
-
style:
|
|
491
|
+
style: S(`animation-delay:${a * 100}ms`),
|
|
476
492
|
stroke: e.value.style.chart.layout.rings.stroke,
|
|
477
493
|
cx: n.value.width / 2,
|
|
478
|
-
cy: a === 0 ? n.value.height / 2 : n.value.height / 2 +
|
|
479
|
-
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),
|
|
480
496
|
fill: e.value.style.chart.layout.rings.gradient.underlayerColor
|
|
481
|
-
}, null, 14,
|
|
497
|
+
}, null, 14, zt),
|
|
482
498
|
T("circle", {
|
|
483
499
|
class: U({
|
|
484
|
-
"vue-ui-rings-item":
|
|
485
|
-
"vue-rings-item-onload": !
|
|
500
|
+
"vue-ui-rings-item": I.value && e.value.useCssAnimation,
|
|
501
|
+
"vue-rings-item-onload": !I.value && e.value.useCssAnimation,
|
|
486
502
|
"vue-ui-rings-shadow": e.value.style.chart.layout.rings.useShadow,
|
|
487
503
|
"vue-ui-rings-blur": $.value !== null && $.value !== a
|
|
488
504
|
}),
|
|
489
|
-
style:
|
|
505
|
+
style: S(`animation-delay:${a * 100}ms`),
|
|
490
506
|
stroke: e.value.style.chart.layout.rings.stroke,
|
|
491
507
|
"stroke-width": l.strokeWidth < 0.5 ? 0.5 : l.strokeWidth,
|
|
492
508
|
cx: n.value.width / 2,
|
|
493
|
-
cy: a === 0 ? n.value.height / 2 : n.value.height / 2 +
|
|
494
|
-
r: s(j)(
|
|
495
|
-
fill: e.value.style.chart.layout.rings.gradient.show ? `url(#gradient_${
|
|
496
|
-
}, null, 14,
|
|
497
|
-
t.$slots.pattern ? (
|
|
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
|
|
512
|
+
}, null, 14, Ut),
|
|
513
|
+
t.$slots.pattern ? (r(), p("circle", {
|
|
498
514
|
key: 0,
|
|
499
515
|
class: U({
|
|
500
|
-
"vue-ui-rings-item":
|
|
501
|
-
"vue-rings-item-onload": !
|
|
516
|
+
"vue-ui-rings-item": I.value && e.value.useCssAnimation,
|
|
517
|
+
"vue-rings-item-onload": !I.value && e.value.useCssAnimation,
|
|
502
518
|
"vue-ui-rings-shadow": e.value.style.chart.layout.rings.useShadow,
|
|
503
519
|
"vue-ui-rings-blur": $.value !== null && $.value !== a
|
|
504
520
|
}),
|
|
505
|
-
style:
|
|
521
|
+
style: S(`animation-delay:${a * 100}ms`),
|
|
506
522
|
stroke: e.value.style.chart.layout.rings.stroke,
|
|
507
523
|
"stroke-width": l.strokeWidth < 0.5 ? 0.5 : l.strokeWidth,
|
|
508
524
|
cx: n.value.width / 2,
|
|
509
|
-
cy: a === 0 ? n.value.height / 2 : n.value.height / 2 +
|
|
510
|
-
r: s(j)(
|
|
511
|
-
fill: `url(#pattern_${
|
|
512
|
-
}, 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),
|
|
513
529
|
T("circle", {
|
|
514
530
|
stroke: "none",
|
|
515
531
|
cx: n.value.width / 2,
|
|
516
|
-
cy: a === 0 ? n.value.height / 2 : n.value.height / 2 +
|
|
517
|
-
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),
|
|
518
534
|
fill: "transparent",
|
|
519
|
-
onMouseenter: (
|
|
520
|
-
onMouseleave: o[0] || (o[0] = (
|
|
521
|
-
$.value = null,
|
|
535
|
+
onMouseenter: (u) => Ke(a, l),
|
|
536
|
+
onMouseleave: o[0] || (o[0] = (u) => {
|
|
537
|
+
$.value = null, W.value = !1;
|
|
522
538
|
})
|
|
523
|
-
}, null, 40,
|
|
539
|
+
}, null, 40, Et)
|
|
524
540
|
]))), 256)),
|
|
525
|
-
|
|
526
|
-
], 14,
|
|
527
|
-
t.$slots.watermark ? (
|
|
528
|
-
|
|
541
|
+
d(t.$slots, "svg", { svg: n.value }, void 0, !0)
|
|
542
|
+
], 14, At)) : m("", !0),
|
|
543
|
+
t.$slots.watermark ? (r(), p("div", Wt, [
|
|
544
|
+
d(t.$slots, "watermark", R(M({ isPrinting: s(ge) || s(fe) })), void 0, !0)
|
|
529
545
|
])) : m("", !0),
|
|
530
|
-
|
|
546
|
+
E.value ? m("", !0) : (r(), N(s(Ue), {
|
|
531
547
|
key: 6,
|
|
532
548
|
config: {
|
|
533
549
|
type: "rings",
|
|
@@ -543,65 +559,62 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], At = ["width", "height"], St = ["i
|
|
|
543
559
|
ref_key: "chartLegend",
|
|
544
560
|
ref: ae
|
|
545
561
|
}, [
|
|
546
|
-
e.value.style.chart.legend.show ? (
|
|
562
|
+
e.value.style.chart.legend.show ? (r(), N(_t, {
|
|
547
563
|
key: `legend_${ie.value}`,
|
|
548
|
-
legendSet:
|
|
564
|
+
legendSet: we.value,
|
|
549
565
|
config: Ye.value,
|
|
550
566
|
onClickMarker: o[1] || (o[1] = ({ legend: l }) => Y(l.uid))
|
|
551
|
-
},
|
|
567
|
+
}, Oe({
|
|
552
568
|
item: g(({ legend: l, index: a }) => [
|
|
553
569
|
T("div", {
|
|
554
|
-
onClick: (
|
|
555
|
-
style:
|
|
556
|
-
},
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
r: e.value.style.chart.legend.roundingPercentage
|
|
572
|
-
})) + ") ", 1))
|
|
573
|
-
], 12, Bt)
|
|
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)
|
|
574
587
|
]),
|
|
575
588
|
_: 2
|
|
576
589
|
}, [
|
|
577
590
|
t.$slots.pattern ? {
|
|
578
591
|
name: "legend-pattern",
|
|
579
592
|
fn: g(({ legend: l, index: a }) => [
|
|
580
|
-
Q(
|
|
593
|
+
Q(It, {
|
|
581
594
|
shape: l.shape,
|
|
582
595
|
radius: 30,
|
|
583
596
|
stroke: "none",
|
|
584
597
|
plot: { x: 30, y: 30 },
|
|
585
|
-
fill: `url(#pattern_${
|
|
598
|
+
fill: `url(#pattern_${C.value}_${a})`
|
|
586
599
|
}, null, 8, ["shape", "fill"])
|
|
587
600
|
]),
|
|
588
601
|
key: "0"
|
|
589
602
|
} : void 0
|
|
590
|
-
]), 1032, ["legendSet", "config"])) :
|
|
603
|
+
]), 1032, ["legendSet", "config"])) : d(t.$slots, "legend", {
|
|
591
604
|
key: 1,
|
|
592
|
-
legend:
|
|
605
|
+
legend: we.value
|
|
593
606
|
}, void 0, !0)
|
|
594
607
|
], 512),
|
|
595
|
-
t.$slots.source ? (
|
|
608
|
+
t.$slots.source ? (r(), p("div", {
|
|
596
609
|
key: 7,
|
|
597
610
|
ref_key: "source",
|
|
598
611
|
ref: se,
|
|
599
612
|
dir: "auto"
|
|
600
613
|
}, [
|
|
601
|
-
|
|
614
|
+
d(t.$slots, "source", {}, void 0, !0)
|
|
602
615
|
], 512)) : m("", !0),
|
|
603
|
-
Q(s(
|
|
604
|
-
show: k.value.showTooltip &&
|
|
616
|
+
Q(s(Be), {
|
|
617
|
+
show: k.value.showTooltip && W.value && y.value.length < b.dataset.length,
|
|
605
618
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
606
619
|
color: e.value.style.chart.tooltip.color,
|
|
607
620
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -611,20 +624,20 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], At = ["width", "height"], St = ["i
|
|
|
611
624
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
612
625
|
position: e.value.style.chart.tooltip.position,
|
|
613
626
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
614
|
-
parent:
|
|
627
|
+
parent: x.value,
|
|
615
628
|
content: X.value,
|
|
616
|
-
isFullscreen:
|
|
629
|
+
isFullscreen: V.value,
|
|
617
630
|
isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function"
|
|
618
631
|
}, {
|
|
619
632
|
"tooltip-before": g(() => [
|
|
620
|
-
|
|
633
|
+
d(t.$slots, "tooltip-before", R(M({ ...J.value })), void 0, !0)
|
|
621
634
|
]),
|
|
622
635
|
"tooltip-after": g(() => [
|
|
623
|
-
|
|
636
|
+
d(t.$slots, "tooltip-after", R(M({ ...J.value })), void 0, !0)
|
|
624
637
|
]),
|
|
625
638
|
_: 3
|
|
626
639
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
627
|
-
|
|
640
|
+
E.value ? (r(), N(s(Ve), {
|
|
628
641
|
key: 8,
|
|
629
642
|
hideDetails: "",
|
|
630
643
|
config: {
|
|
@@ -641,12 +654,12 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], At = ["width", "height"], St = ["i
|
|
|
641
654
|
}
|
|
642
655
|
}, {
|
|
643
656
|
content: g(() => [
|
|
644
|
-
(
|
|
657
|
+
(r(), N(s(Re), {
|
|
645
658
|
key: `table_${re.value}`,
|
|
646
|
-
colNames:
|
|
647
|
-
head:
|
|
648
|
-
body:
|
|
649
|
-
config:
|
|
659
|
+
colNames: G.value.colNames,
|
|
660
|
+
head: G.value.head,
|
|
661
|
+
body: G.value.body,
|
|
662
|
+
config: G.value.config,
|
|
650
663
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
651
664
|
onClose: o[2] || (o[2] = (l) => k.value.showTable = !1)
|
|
652
665
|
}, {
|
|
@@ -657,7 +670,7 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], At = ["width", "height"], St = ["i
|
|
|
657
670
|
}, null, 8, Gt)
|
|
658
671
|
]),
|
|
659
672
|
td: g(({ td: l }) => [
|
|
660
|
-
|
|
673
|
+
st(B(l.name || l), 1)
|
|
661
674
|
]),
|
|
662
675
|
_: 1
|
|
663
676
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
@@ -666,7 +679,7 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], At = ["width", "height"], St = ["i
|
|
|
666
679
|
}, 8, ["config"])) : m("", !0)
|
|
667
680
|
], 46, Nt));
|
|
668
681
|
}
|
|
669
|
-
},
|
|
682
|
+
}, al = /* @__PURE__ */ St(Ht, [["__scopeId", "data-v-a8630f5d"]]);
|
|
670
683
|
export {
|
|
671
|
-
|
|
684
|
+
al as default
|
|
672
685
|
};
|