vue-data-ui 2.16.6 → 2.17.1
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 +84 -53
- package/dist/{Arrow-DCqxVwey.js → Arrow-BDCVJzQB.js} +1 -1
- package/dist/{BaseDraggableDialog-6DIKXIBU.js → BaseDraggableDialog-BvuWrldK.js} +2 -2
- package/dist/{BaseIcon-Bn996RXm.js → BaseIcon-D9Tz8ARD.js} +1 -1
- package/dist/{ColorPicker-OFfLkKNb.js → ColorPicker-wGf46G2G.js} +2 -2
- package/dist/{DataTable-CHBLjKtZ.js → DataTable-Dt-TIOyY.js} +2 -2
- package/dist/{Legend-nBXoxXJH.js → Legend-3LNqqLDg.js} +2 -2
- package/dist/{NonSvgPenAndPaper-Cls2idJS.js → NonSvgPenAndPaper-iDdMuUEo.js} +3 -3
- package/dist/{PackageVersion-Bg_9KCU-.js → PackageVersion-C-4Ee8BQ.js} +1 -1
- package/dist/{PenAndPaper-BPTpbnay.js → PenAndPaper-Cde-wJ3N.js} +32 -32
- package/dist/{Shape-Bnf512BA.js → Shape-C75836Jl.js} +1 -1
- package/dist/{Slicer-BrqtJG2E.js → Slicer-CpSu7plp.js} +2 -2
- package/dist/{SparkTooltip-C-rLATAw.js → SparkTooltip-B_GXa2tb.js} +1 -1
- package/dist/{Title-Gi81VwUM.js → Title-DpERl1yr.js} +1 -1
- package/dist/{Tooltip-CJxVw7-T.js → Tooltip-DA0bYKFG.js} +1 -1
- package/dist/{UserOptions-CBEK6_jo.js → UserOptions-DTEJ3UM_.js} +2 -2
- package/dist/{dom-to-png-CRHNL8VU.js → dom-to-png-DWDGYXFL.js} +1 -1
- package/dist/{img-BgOg8opa.js → img-utitT2Gd.js} +1 -1
- package/dist/{index-DvIXJm6t.js → index-CobsZUkv.js} +22 -8
- package/dist/{pdf-DhTxBrbJ.js → pdf-DWZ8IB56.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +999 -160
- package/dist/types/vue-data-ui.d.ts +999 -160
- package/dist/{useNestedProp-DrYHm61t.js → useNestedProp-BwL5wmVa.js} +1 -1
- package/dist/{usePrinter-CWnXbGMb.js → usePrinter-DPh6U_Qk.js} +2 -2
- package/dist/vue-data-ui-D7ZgRDQ_.js +312 -0
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-CtlB4p7i.js → vue-ui-3d-bar-ORUAjkg7.js} +246 -231
- package/dist/{vue-ui-accordion-D55kCO5G.js → vue-ui-accordion-UewqY6OI.js} +3 -3
- package/dist/{vue-ui-age-pyramid-DSshyUn-.js → vue-ui-age-pyramid-Yl4aRpNc.js} +225 -210
- package/dist/{vue-ui-annotator-DQSMv_k2.js → vue-ui-annotator-B1gqiBqq.js} +2 -2
- package/dist/{vue-ui-bullet-FeScjj7q.js → vue-ui-bullet-C307lCPt.js} +168 -153
- package/dist/{vue-ui-candlestick-Drupgyoi.js → vue-ui-candlestick-BE6PcEdh.js} +218 -203
- package/dist/{vue-ui-carousel-table-BTZQRZfO.js → vue-ui-carousel-table-Cpvjr677.js} +4 -4
- package/dist/{vue-ui-chestnut-DLWjPwRL.js → vue-ui-chestnut-CUw74AgC.js} +412 -397
- package/dist/{vue-ui-chord-BgLbFBT9.js → vue-ui-chord-CCPGeAiY.js} +202 -187
- package/dist/{vue-ui-circle-pack-VXcRh2gy.js → vue-ui-circle-pack-dfyPiQmy.js} +222 -207
- package/dist/{vue-ui-cursor-DWmfnM25.js → vue-ui-cursor-C2zmfeoD.js} +2 -2
- package/dist/{vue-ui-dashboard-CGIocEHj.js → vue-ui-dashboard-CotAqRbX.js} +62 -62
- package/dist/{vue-ui-digits-BgQch3Fc.js → vue-ui-digits-7qJFCuoI.js} +2 -2
- package/dist/{vue-ui-donut-B59bCV5_.js → vue-ui-donut-D41WeqQU.js} +420 -411
- package/dist/{vue-ui-donut-evolution-CI8qBIQd.js → vue-ui-donut-evolution-Deg0dsYg.js} +352 -340
- package/dist/{vue-ui-dumbbell-CXv7sk88.js → vue-ui-dumbbell-DDwNoTPG.js} +214 -199
- package/dist/{vue-ui-flow-DxF0ELtv.js → vue-ui-flow-6oR7IMyi.js} +215 -200
- package/dist/{vue-ui-funnel-Bco8rqF8.js → vue-ui-funnel-BnXtOJmh.js} +212 -197
- package/dist/{vue-ui-galaxy-CaPJwwOj.js → vue-ui-galaxy-75XC8SpV.js} +213 -201
- package/dist/{vue-ui-gauge-D7arhDmb.js → vue-ui-gauge-w31j915C.js} +218 -203
- package/dist/{vue-ui-gizmo-Dwli-Mip.js → vue-ui-gizmo-bZqk6oZS.js} +3 -3
- package/dist/{vue-ui-heatmap-Cyn-ahGO.js → vue-ui-heatmap-BfU62tMW.js} +242 -223
- package/dist/{vue-ui-history-plot-C2AEToqx.js → vue-ui-history-plot-CFfco-Yj.js} +267 -252
- package/dist/{vue-ui-kpi-DKDibSdl.js → vue-ui-kpi-DaJ1U3wf.js} +3 -3
- package/dist/{vue-ui-mini-loader-B8OVutUx.js → vue-ui-mini-loader-CF_2jAI8.js} +2 -2
- package/dist/{vue-ui-molecule-BVSrqIGw.js → vue-ui-molecule-Tdk3Gd8M.js} +207 -192
- package/dist/{vue-ui-mood-radar-DvlyS3RN.js → vue-ui-mood-radar-Dg5wS7W5.js} +204 -189
- package/dist/{vue-ui-nested-donuts-D9ssSus6.js → vue-ui-nested-donuts-CpRe0sQB.js} +248 -240
- package/dist/{vue-ui-onion-Buu4VX3u.js → vue-ui-onion-B8o4ft2v.js} +184 -169
- package/dist/{vue-ui-parallel-coordinate-plot-DFLUvhxD.js → vue-ui-parallel-coordinate-plot-zW-CNqWC.js} +192 -177
- package/dist/{vue-ui-quadrant-BMC7NBGd.js → vue-ui-quadrant-DiRtZ16w.js} +259 -244
- package/dist/{vue-ui-quick-chart-DB9RKUkb.js → vue-ui-quick-chart-BRlYC_yT.js} +324 -309
- package/dist/{vue-ui-radar-68NMPxxQ.js → vue-ui-radar-DKgX1Ibx.js} +195 -180
- package/dist/{vue-ui-rating-swH9kRr3.js → vue-ui-rating-DlklKr-X.js} +2 -2
- package/dist/{vue-ui-relation-circle-CT-EdSjO.js → vue-ui-relation-circle-MHiAp8dC.js} +186 -171
- package/dist/{vue-ui-ridgeline-DftROPaX.js → vue-ui-ridgeline-DA8verAe.js} +227 -212
- package/dist/{vue-ui-rings-M-9dPI5D.js → vue-ui-rings-Dh6lFqun.js} +214 -202
- package/dist/{vue-ui-scatter-CsGhaFJh.js → vue-ui-scatter-CLC5sTOi.js} +270 -256
- package/dist/{vue-ui-skeleton-BAOt2neL.js → vue-ui-skeleton-8s4xts8z.js} +3 -3
- package/dist/{vue-ui-smiley-7_kIgPg-.js → vue-ui-smiley-utuzw8uI.js} +2 -2
- package/dist/{vue-ui-spark-trend-DHlQQpwz.js → vue-ui-spark-trend-BODEqGRr.js} +3 -3
- package/dist/{vue-ui-sparkbar-BnHhzuKf.js → vue-ui-sparkbar-B8MB-kn9.js} +3 -3
- package/dist/{vue-ui-sparkgauge-WtfkCK8g.js → vue-ui-sparkgauge-CuD7kTS3.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-B2u4XLVd.js → vue-ui-sparkhistogram-BYJszvna.js} +4 -4
- package/dist/{vue-ui-sparkline-DKIyUlSm.js → vue-ui-sparkline-D77GyWzG.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-BLGz2qIb.js → vue-ui-sparkstackbar-DNb1yD64.js} +3 -3
- package/dist/{vue-ui-stackbar-BDpMsTYe.js → vue-ui-stackbar-C6rjCYDD.js} +251 -236
- package/dist/{vue-ui-strip-plot-5qDcYPnR.js → vue-ui-strip-plot-B6cYojHQ.js} +239 -224
- package/dist/{vue-ui-table-Bg5HIQ3O.js → vue-ui-table-IC7SmWVd.js} +3 -3
- package/dist/{vue-ui-table-heatmap-DmjNy1q1.js → vue-ui-table-heatmap-DHFpJMpA.js} +5 -5
- package/dist/{vue-ui-table-sparkline-CnkJkBk5.js → vue-ui-table-sparkline-D7wz-sCj.js} +4 -4
- package/dist/{vue-ui-thermometer-RlD-9mJf.js → vue-ui-thermometer-D-oiVT3n.js} +168 -153
- package/dist/{vue-ui-timer-Bes74INL.js → vue-ui-timer-C9jVyX5l.js} +5 -5
- package/dist/vue-ui-tiremarks-B1bM9Aoo.js +358 -0
- package/dist/{vue-ui-treemap-BG1Omm38.js → vue-ui-treemap-DX48YlU5.js} +374 -362
- package/dist/{vue-ui-vertical-bar-CwqQyZFX.js → vue-ui-vertical-bar-6SjKPQWR.js} +252 -237
- package/dist/{vue-ui-waffle-Ce3T4BPp.js → vue-ui-waffle-CYao9MMw.js} +232 -220
- package/dist/vue-ui-wheel-USuDhMwW.js +352 -0
- package/dist/vue-ui-word-cloud-TOBTs7yF.js +659 -0
- package/dist/{vue-ui-world-B9PxVO4n.js → vue-ui-world-C2qikqBa.js} +237 -222
- package/dist/{vue-ui-xy-DtJ7qJib.js → vue-ui-xy-DxwgKoO-.js} +557 -544
- package/dist/{vue-ui-xy-canvas-S6YpFgzs.js → vue-ui-xy-canvas-N69OpVn8.js} +395 -380
- package/package.json +1 -1
- package/dist/vue-data-ui-B8EWlMIK.js +0 -301
- package/dist/vue-ui-tiremarks-DiLS3akQ.js +0 -343
- package/dist/vue-ui-wheel-6B0WTkf2.js +0 -337
- package/dist/vue-ui-word-cloud-ByYZCOh7.js +0 -644
|
@@ -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-CobsZUkv.js";
|
|
3
|
+
import { t as wt, u as Ct } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Ne } from "./useNestedProp-BwL5wmVa.js";
|
|
5
|
+
import { u as $t } from "./usePrinter-DPh6U_Qk.js";
|
|
6
|
+
import { u as Tt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
|
+
import { u as xt } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
+
import _t from "./Legend-3LNqqLDg.js";
|
|
9
|
+
import Ot from "./Title-DpERl1yr.js";
|
|
10
|
+
import { _ as It } from "./Shape-C75836Jl.js";
|
|
11
|
+
import Pt from "./img-utitT2Gd.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: {
|
|
@@ -30,39 +31,39 @@ const St = ["id"], Nt = ["xmlns", "viewBox"], Pt = ["width", "height"], At = ["i
|
|
|
30
31
|
},
|
|
31
32
|
emits: ["selectLegend"],
|
|
32
33
|
setup(Ae, { expose: Fe, emit: Le }) {
|
|
33
|
-
const
|
|
34
|
-
get: () =>
|
|
34
|
+
const Ve = P(() => import("./vue-ui-accordion-UewqY6OI.js")), Re = P(() => import("./DataTable-Dt-TIOyY.js")), Me = P(() => import("./PackageVersion-C-4Ee8BQ.js")), ze = P(() => import("./PenAndPaper-Cde-wJ3N.js")), Ue = P(() => import("./vue-ui-skeleton-8s4xts8z.js")), Be = P(() => import("./Tooltip-DA0bYKFG.js")), Ee = P(() => import("./UserOptions-DTEJ3UM_.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 St = ["id"], Nt = ["xmlns", "viewBox"], Pt = ["width", "height"], At = ["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 St = ["id"], Nt = ["xmlns", "viewBox"], Pt = ["width", "height"], At = ["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 St = ["id"], Nt = ["xmlns", "viewBox"], Pt = ["width", "height"], At = ["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 St = ["id"], Nt = ["xmlns", "viewBox"], Pt = ["width", "height"], At = ["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 St = ["id"], Nt = ["xmlns", "viewBox"], Pt = ["width", "height"], At = ["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 St = ["id"], Nt = ["xmlns", "viewBox"], Pt = ["width", "height"], At = ["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 St = ["id"], Nt = ["xmlns", "viewBox"], Pt = ["width", "height"], At = ["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 St = ["id"], Nt = ["xmlns", "viewBox"], Pt = ["width", "height"], At = ["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 ${
|
|
302
|
+
ref: x,
|
|
303
|
+
class: U(`vue-ui-rings ${V.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
289
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%" : ""}`),
|
|
290
|
-
id: `rings_${
|
|
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 St = ["id"], Nt = ["xmlns", "viewBox"], Pt = ["width", "height"], At = ["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 St = ["id"], Nt = ["xmlns", "viewBox"], Pt = ["width", "height"], At = ["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,93 +359,93 @@ const St = ["id"], Nt = ["xmlns", "viewBox"], Pt = ["width", "height"], At = ["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,
|
|
355
|
-
onToggleFullscreen:
|
|
370
|
+
onToggleFullscreen: $e,
|
|
356
371
|
onGeneratePdf: s(ye),
|
|
357
|
-
onGenerateCsv:
|
|
372
|
+
onGenerateCsv: Ce,
|
|
358
373
|
onGenerateImage: s(me),
|
|
359
|
-
onToggleTable:
|
|
360
|
-
onToggleTooltip:
|
|
374
|
+
onToggleTable: Te,
|
|
375
|
+
onToggleTooltip: xe,
|
|
361
376
|
onToggleAnnotator: K,
|
|
362
377
|
style: S({
|
|
363
378
|
visibility: s(ce) ? s(q) ? "visible" : "hidden" : "visible"
|
|
364
379
|
})
|
|
365
|
-
},
|
|
380
|
+
}, Oe({ _: 2 }, [
|
|
366
381
|
t.$slots.menuIcon ? {
|
|
367
382
|
name: "menuIcon",
|
|
368
383
|
fn: g(({ isOpen: l, color: a }) => [
|
|
369
|
-
|
|
384
|
+
d(t.$slots, "menuIcon", R(M({ isOpen: l, color: a })), void 0, !0)
|
|
370
385
|
]),
|
|
371
386
|
key: "0"
|
|
372
387
|
} : void 0,
|
|
373
388
|
t.$slots.optionTooltip ? {
|
|
374
389
|
name: "optionTooltip",
|
|
375
390
|
fn: g(() => [
|
|
376
|
-
|
|
391
|
+
d(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
377
392
|
]),
|
|
378
393
|
key: "1"
|
|
379
394
|
} : void 0,
|
|
380
395
|
t.$slots.optionPdf ? {
|
|
381
396
|
name: "optionPdf",
|
|
382
397
|
fn: g(() => [
|
|
383
|
-
|
|
398
|
+
d(t.$slots, "optionPdf", {}, void 0, !0)
|
|
384
399
|
]),
|
|
385
400
|
key: "2"
|
|
386
401
|
} : void 0,
|
|
387
402
|
t.$slots.optionCsv ? {
|
|
388
403
|
name: "optionCsv",
|
|
389
404
|
fn: g(() => [
|
|
390
|
-
|
|
405
|
+
d(t.$slots, "optionCsv", {}, void 0, !0)
|
|
391
406
|
]),
|
|
392
407
|
key: "3"
|
|
393
408
|
} : void 0,
|
|
394
409
|
t.$slots.optionImg ? {
|
|
395
410
|
name: "optionImg",
|
|
396
411
|
fn: g(() => [
|
|
397
|
-
|
|
412
|
+
d(t.$slots, "optionImg", {}, void 0, !0)
|
|
398
413
|
]),
|
|
399
414
|
key: "4"
|
|
400
415
|
} : void 0,
|
|
401
416
|
t.$slots.optionTable ? {
|
|
402
417
|
name: "optionTable",
|
|
403
418
|
fn: g(() => [
|
|
404
|
-
|
|
419
|
+
d(t.$slots, "optionTable", {}, void 0, !0)
|
|
405
420
|
]),
|
|
406
421
|
key: "5"
|
|
407
422
|
} : void 0,
|
|
408
423
|
t.$slots.optionFullscreen ? {
|
|
409
424
|
name: "optionFullscreen",
|
|
410
425
|
fn: g(({ toggleFullscreen: l, isFullscreen: a }) => [
|
|
411
|
-
|
|
426
|
+
d(t.$slots, "optionFullscreen", R(M({ toggleFullscreen: l, isFullscreen: a })), void 0, !0)
|
|
412
427
|
]),
|
|
413
428
|
key: "6"
|
|
414
429
|
} : void 0,
|
|
415
430
|
t.$slots.optionAnnotator ? {
|
|
416
431
|
name: "optionAnnotator",
|
|
417
432
|
fn: g(({ toggleAnnotator: l, isAnnotator: a }) => [
|
|
418
|
-
|
|
433
|
+
d(t.$slots, "optionAnnotator", R(M({ toggleAnnotator: l, isAnnotator: a })), void 0, !0)
|
|
419
434
|
]),
|
|
420
435
|
key: "7"
|
|
421
436
|
} : void 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),
|
|
423
|
-
|
|
438
|
+
E.value ? (r(), p("svg", {
|
|
424
439
|
key: 4,
|
|
425
440
|
ref_key: "svgRef",
|
|
426
441
|
ref: de,
|
|
427
442
|
xmlns: s(pt),
|
|
428
|
-
class: U({ "vue-data-ui-fullscreen--on":
|
|
443
|
+
class: U({ "vue-data-ui-fullscreen--on": V.value, "vue-data-ui-fulscreen--off": !V.value }),
|
|
429
444
|
viewBox: `0 0 ${n.value.width <= 0 ? 10 : n.value.width} ${n.value.height <= 0 ? 10 : n.value.height}`,
|
|
430
445
|
style: S(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
431
446
|
}, [
|
|
432
|
-
Q(s(
|
|
433
|
-
t.$slots["chart-background"] ? (
|
|
447
|
+
Q(s(Me)),
|
|
448
|
+
t.$slots["chart-background"] ? (r(), p("foreignObject", {
|
|
434
449
|
key: 0,
|
|
435
450
|
x: 0,
|
|
436
451
|
y: 0,
|
|
@@ -440,50 +455,50 @@ const St = ["id"], Nt = ["xmlns", "viewBox"], Pt = ["width", "height"], At = ["i
|
|
|
440
455
|
pointerEvents: "none"
|
|
441
456
|
}
|
|
442
457
|
}, [
|
|
443
|
-
|
|
444
|
-
], 8,
|
|
458
|
+
d(t.$slots, "chart-background", {}, void 0, !0)
|
|
459
|
+
], 8, Ft)) : m("", !0),
|
|
445
460
|
T("defs", null, [
|
|
446
|
-
(
|
|
461
|
+
(r(!0), p(Z, null, ee(h.value, (l, a) => (r(), p("radialGradient", {
|
|
447
462
|
cx: "50%",
|
|
448
463
|
cy: "30%",
|
|
449
464
|
r: "50%",
|
|
450
465
|
fx: "50%",
|
|
451
466
|
fy: "50%",
|
|
452
|
-
id: `gradient_${
|
|
467
|
+
id: `gradient_${C.value}_${a}`
|
|
453
468
|
}, [
|
|
454
469
|
T("stop", {
|
|
455
470
|
offset: "0%",
|
|
456
|
-
"stop-color": s(
|
|
457
|
-
}, 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),
|
|
458
473
|
T("stop", {
|
|
459
474
|
offset: "100%",
|
|
460
475
|
"stop-color": l.color
|
|
461
|
-
}, null, 8,
|
|
462
|
-
], 8,
|
|
476
|
+
}, null, 8, Rt)
|
|
477
|
+
], 8, Lt))), 256))
|
|
463
478
|
]),
|
|
464
|
-
t.$slots.pattern ? (
|
|
465
|
-
(
|
|
466
|
-
|
|
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)
|
|
467
482
|
]))), 256))
|
|
468
483
|
])) : m("", !0),
|
|
469
|
-
(
|
|
484
|
+
(r(!0), p(Z, null, ee(h.value, (l, a) => (r(), p("g", null, [
|
|
470
485
|
T("circle", {
|
|
471
486
|
class: U({
|
|
472
|
-
"vue-ui-rings-item":
|
|
473
|
-
"vue-rings-item-onload": !
|
|
487
|
+
"vue-ui-rings-item": I.value && e.value.useCssAnimation,
|
|
488
|
+
"vue-rings-item-onload": !I.value && e.value.useCssAnimation,
|
|
474
489
|
"vue-ui-rings-opacity": $.value !== null && $.value !== a
|
|
475
490
|
}),
|
|
476
491
|
style: S(`animation-delay:${a * 100}ms`),
|
|
477
492
|
stroke: e.value.style.chart.layout.rings.stroke,
|
|
478
493
|
cx: n.value.width / 2,
|
|
479
|
-
cy: a === 0 ? n.value.height / 2 : n.value.height / 2 +
|
|
480
|
-
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),
|
|
481
496
|
fill: e.value.style.chart.layout.rings.gradient.underlayerColor
|
|
482
|
-
}, null, 14,
|
|
497
|
+
}, null, 14, zt),
|
|
483
498
|
T("circle", {
|
|
484
499
|
class: U({
|
|
485
|
-
"vue-ui-rings-item":
|
|
486
|
-
"vue-rings-item-onload": !
|
|
500
|
+
"vue-ui-rings-item": I.value && e.value.useCssAnimation,
|
|
501
|
+
"vue-rings-item-onload": !I.value && e.value.useCssAnimation,
|
|
487
502
|
"vue-ui-rings-shadow": e.value.style.chart.layout.rings.useShadow,
|
|
488
503
|
"vue-ui-rings-blur": $.value !== null && $.value !== a
|
|
489
504
|
}),
|
|
@@ -491,15 +506,15 @@ const St = ["id"], Nt = ["xmlns", "viewBox"], Pt = ["width", "height"], At = ["i
|
|
|
491
506
|
stroke: e.value.style.chart.layout.rings.stroke,
|
|
492
507
|
"stroke-width": l.strokeWidth < 0.5 ? 0.5 : l.strokeWidth,
|
|
493
508
|
cx: n.value.width / 2,
|
|
494
|
-
cy: a === 0 ? n.value.height / 2 : n.value.height / 2 +
|
|
495
|
-
r: s(j)(
|
|
496
|
-
fill: e.value.style.chart.layout.rings.gradient.show ? `url(#gradient_${
|
|
497
|
-
}, null, 14,
|
|
498
|
-
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", {
|
|
499
514
|
key: 0,
|
|
500
515
|
class: U({
|
|
501
|
-
"vue-ui-rings-item":
|
|
502
|
-
"vue-rings-item-onload": !
|
|
516
|
+
"vue-ui-rings-item": I.value && e.value.useCssAnimation,
|
|
517
|
+
"vue-rings-item-onload": !I.value && e.value.useCssAnimation,
|
|
503
518
|
"vue-ui-rings-shadow": e.value.style.chart.layout.rings.useShadow,
|
|
504
519
|
"vue-ui-rings-blur": $.value !== null && $.value !== a
|
|
505
520
|
}),
|
|
@@ -507,28 +522,28 @@ const St = ["id"], Nt = ["xmlns", "viewBox"], Pt = ["width", "height"], At = ["i
|
|
|
507
522
|
stroke: e.value.style.chart.layout.rings.stroke,
|
|
508
523
|
"stroke-width": l.strokeWidth < 0.5 ? 0.5 : l.strokeWidth,
|
|
509
524
|
cx: n.value.width / 2,
|
|
510
|
-
cy: a === 0 ? n.value.height / 2 : n.value.height / 2 +
|
|
511
|
-
r: s(j)(
|
|
512
|
-
fill: `url(#pattern_${
|
|
513
|
-
}, 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),
|
|
514
529
|
T("circle", {
|
|
515
530
|
stroke: "none",
|
|
516
531
|
cx: n.value.width / 2,
|
|
517
|
-
cy: a === 0 ? n.value.height / 2 : n.value.height / 2 +
|
|
518
|
-
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),
|
|
519
534
|
fill: "transparent",
|
|
520
|
-
onMouseenter: (
|
|
521
|
-
onMouseleave: o[0] || (o[0] = (
|
|
522
|
-
$.value = null,
|
|
535
|
+
onMouseenter: (u) => Ke(a, l),
|
|
536
|
+
onMouseleave: o[0] || (o[0] = (u) => {
|
|
537
|
+
$.value = null, W.value = !1;
|
|
523
538
|
})
|
|
524
|
-
}, null, 40,
|
|
539
|
+
}, null, 40, Et)
|
|
525
540
|
]))), 256)),
|
|
526
|
-
|
|
527
|
-
], 14,
|
|
528
|
-
t.$slots.watermark ? (
|
|
529
|
-
|
|
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)
|
|
530
545
|
])) : m("", !0),
|
|
531
|
-
|
|
546
|
+
E.value ? m("", !0) : (r(), N(s(Ue), {
|
|
532
547
|
key: 6,
|
|
533
548
|
config: {
|
|
534
549
|
type: "rings",
|
|
@@ -544,65 +559,62 @@ const St = ["id"], Nt = ["xmlns", "viewBox"], Pt = ["width", "height"], At = ["i
|
|
|
544
559
|
ref_key: "chartLegend",
|
|
545
560
|
ref: ae
|
|
546
561
|
}, [
|
|
547
|
-
e.value.style.chart.legend.show ? (
|
|
562
|
+
e.value.style.chart.legend.show ? (r(), N(_t, {
|
|
548
563
|
key: `legend_${ie.value}`,
|
|
549
|
-
legendSet:
|
|
564
|
+
legendSet: we.value,
|
|
550
565
|
config: Ye.value,
|
|
551
566
|
onClickMarker: o[1] || (o[1] = ({ legend: l }) => Y(l.uid))
|
|
552
|
-
},
|
|
567
|
+
}, Oe({
|
|
553
568
|
item: g(({ legend: l, index: a }) => [
|
|
554
569
|
T("div", {
|
|
555
|
-
onClick: (
|
|
570
|
+
onClick: (u) => Y(l.uid),
|
|
556
571
|
style: S(`opacity:${y.value.includes(l.uid) ? 0.5 : 1}`)
|
|
557
|
-
},
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
r: e.value.style.chart.legend.roundingPercentage
|
|
573
|
-
})) + ") ", 1))
|
|
574
|
-
], 12, Bt)
|
|
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)
|
|
575
587
|
]),
|
|
576
588
|
_: 2
|
|
577
589
|
}, [
|
|
578
590
|
t.$slots.pattern ? {
|
|
579
591
|
name: "legend-pattern",
|
|
580
592
|
fn: g(({ legend: l, index: a }) => [
|
|
581
|
-
Q(
|
|
593
|
+
Q(It, {
|
|
582
594
|
shape: l.shape,
|
|
583
595
|
radius: 30,
|
|
584
596
|
stroke: "none",
|
|
585
597
|
plot: { x: 30, y: 30 },
|
|
586
|
-
fill: `url(#pattern_${
|
|
598
|
+
fill: `url(#pattern_${C.value}_${a})`
|
|
587
599
|
}, null, 8, ["shape", "fill"])
|
|
588
600
|
]),
|
|
589
601
|
key: "0"
|
|
590
602
|
} : void 0
|
|
591
|
-
]), 1032, ["legendSet", "config"])) :
|
|
603
|
+
]), 1032, ["legendSet", "config"])) : d(t.$slots, "legend", {
|
|
592
604
|
key: 1,
|
|
593
|
-
legend:
|
|
605
|
+
legend: we.value
|
|
594
606
|
}, void 0, !0)
|
|
595
607
|
], 512),
|
|
596
|
-
t.$slots.source ? (
|
|
608
|
+
t.$slots.source ? (r(), p("div", {
|
|
597
609
|
key: 7,
|
|
598
610
|
ref_key: "source",
|
|
599
611
|
ref: se,
|
|
600
612
|
dir: "auto"
|
|
601
613
|
}, [
|
|
602
|
-
|
|
614
|
+
d(t.$slots, "source", {}, void 0, !0)
|
|
603
615
|
], 512)) : m("", !0),
|
|
604
|
-
Q(s(
|
|
605
|
-
show: k.value.showTooltip &&
|
|
616
|
+
Q(s(Be), {
|
|
617
|
+
show: k.value.showTooltip && W.value && y.value.length < b.dataset.length,
|
|
606
618
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
607
619
|
color: e.value.style.chart.tooltip.color,
|
|
608
620
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -612,20 +624,20 @@ const St = ["id"], Nt = ["xmlns", "viewBox"], Pt = ["width", "height"], At = ["i
|
|
|
612
624
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
613
625
|
position: e.value.style.chart.tooltip.position,
|
|
614
626
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
615
|
-
parent:
|
|
627
|
+
parent: x.value,
|
|
616
628
|
content: X.value,
|
|
617
|
-
isFullscreen:
|
|
629
|
+
isFullscreen: V.value,
|
|
618
630
|
isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function"
|
|
619
631
|
}, {
|
|
620
632
|
"tooltip-before": g(() => [
|
|
621
|
-
|
|
633
|
+
d(t.$slots, "tooltip-before", R(M({ ...J.value })), void 0, !0)
|
|
622
634
|
]),
|
|
623
635
|
"tooltip-after": g(() => [
|
|
624
|
-
|
|
636
|
+
d(t.$slots, "tooltip-after", R(M({ ...J.value })), void 0, !0)
|
|
625
637
|
]),
|
|
626
638
|
_: 3
|
|
627
639
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
628
|
-
|
|
640
|
+
E.value ? (r(), N(s(Ve), {
|
|
629
641
|
key: 8,
|
|
630
642
|
hideDetails: "",
|
|
631
643
|
config: {
|
|
@@ -642,12 +654,12 @@ const St = ["id"], Nt = ["xmlns", "viewBox"], Pt = ["width", "height"], At = ["i
|
|
|
642
654
|
}
|
|
643
655
|
}, {
|
|
644
656
|
content: g(() => [
|
|
645
|
-
(
|
|
657
|
+
(r(), N(s(Re), {
|
|
646
658
|
key: `table_${re.value}`,
|
|
647
|
-
colNames:
|
|
648
|
-
head:
|
|
649
|
-
body:
|
|
650
|
-
config:
|
|
659
|
+
colNames: G.value.colNames,
|
|
660
|
+
head: G.value.head,
|
|
661
|
+
body: G.value.body,
|
|
662
|
+
config: G.value.config,
|
|
651
663
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
652
664
|
onClose: o[2] || (o[2] = (l) => k.value.showTable = !1)
|
|
653
665
|
}, {
|
|
@@ -658,16 +670,16 @@ const St = ["id"], Nt = ["xmlns", "viewBox"], Pt = ["width", "height"], At = ["i
|
|
|
658
670
|
}, null, 8, Gt)
|
|
659
671
|
]),
|
|
660
672
|
td: g(({ td: l }) => [
|
|
661
|
-
|
|
673
|
+
st(B(l.name || l), 1)
|
|
662
674
|
]),
|
|
663
675
|
_: 1
|
|
664
676
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
665
677
|
]),
|
|
666
678
|
_: 1
|
|
667
679
|
}, 8, ["config"])) : m("", !0)
|
|
668
|
-
], 46,
|
|
680
|
+
], 46, Nt));
|
|
669
681
|
}
|
|
670
|
-
},
|
|
682
|
+
}, al = /* @__PURE__ */ St(Ht, [["__scopeId", "data-v-ff5839f6"]]);
|
|
671
683
|
export {
|
|
672
|
-
|
|
684
|
+
al as default
|
|
673
685
|
};
|