vue-data-ui 2.15.0 → 2.15.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/dist/{Arrow-DKw6950J.js → Arrow-DwANSJOY.js} +1 -1
- package/dist/{BaseDraggableDialog-BO8fFfAb.js → BaseDraggableDialog-DQdF6qOC.js} +2 -2
- package/dist/{BaseIcon-JM7bAYf6.js → BaseIcon-CYiu1cpW.js} +1 -1
- package/dist/{ColorPicker-CtdrdDuN.js → ColorPicker-CnQrtzVM.js} +2 -2
- package/dist/{DataTable-CD2q7tjj.js → DataTable-Cm_GJw0b.js} +2 -2
- package/dist/{Legend-R-8Q66YR.js → Legend-CgtCMjDL.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DXUlGXql.js → NonSvgPenAndPaper-CFa5qMqz.js} +3 -3
- package/dist/{PenAndPaper-lvQKUG-x.js → PenAndPaper-CF8MOhzS.js} +3 -3
- package/dist/{Shape-CY4386Ox.js → Shape-DWUzGGp4.js} +1 -1
- package/dist/{Slicer-DcqyQpMv.js → Slicer-DZ7IzAkP.js} +2 -2
- package/dist/{SparkTooltip-DQbXpDUg.js → SparkTooltip-BdeQT9Z9.js} +1 -1
- package/dist/{Title-DX1Pj6u8.js → Title-CSUbkA4W.js} +1 -1
- package/dist/{Tooltip-jN48xe9l.js → Tooltip-wFU7JwQL.js} +1 -1
- package/dist/{UserOptions-DYC8tFSC.js → UserOptions-C72U1mPN.js} +2 -2
- package/dist/{dom-to-png-DgmC_4tW.js → dom-to-png-DeqUSL_Y.js} +1 -1
- package/dist/{img-B90c22Kx.js → img-zmN6-yO1.js} +1 -1
- package/dist/{index-qLjCmB1J.js → index-CFxgtqnt.js} +1 -1
- package/dist/{pdf-FFi0pe-v.js → pdf-M2xyR2QC.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-Cv2n6auT.js → useNestedProp-Cwa5NEME.js} +1 -1
- package/dist/{usePrinter-Dh3NHc5Q.js → usePrinter-AfZAUxa7.js} +2 -2
- package/dist/{vue-data-ui-8wiBgcV4.js → vue-data-ui-CJ7CvGLc.js} +63 -63
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-DdUMyN0e.js → vue-ui-3d-bar-BOGfsBpk.js} +5 -5
- package/dist/{vue-ui-accordion-C9TQ7MO4.js → vue-ui-accordion-un8Cf2VZ.js} +3 -3
- package/dist/{vue-ui-age-pyramid-Dhy5XNw5.js → vue-ui-age-pyramid-CWyGWQe8.js} +5 -5
- package/dist/{vue-ui-annotator-DV1apulf.js → vue-ui-annotator-CDhTSwXn.js} +2 -2
- package/dist/{vue-ui-bullet-BdI1gdbT.js → vue-ui-bullet-DiksLI4z.js} +6 -6
- package/dist/{vue-ui-candlestick-D38UytRA.js → vue-ui-candlestick-C8IGwjcr.js} +6 -6
- package/dist/{vue-ui-carousel-table-upPKN2Ap.js → vue-ui-carousel-table-CCvksAgG.js} +4 -4
- package/dist/{vue-ui-chestnut-D2Jw2GKp.js → vue-ui-chestnut-DcUz8diI.js} +4 -4
- package/dist/{vue-ui-chord-D-N7F12j.js → vue-ui-chord-BlVV-YuE.js} +7 -7
- package/dist/{vue-ui-circle-pack-CHDE9pKa.js → vue-ui-circle-pack-TjeTNtjm.js} +5 -5
- package/dist/{vue-ui-cursor-BshRfAz-.js → vue-ui-cursor-CS3QT6QH.js} +2 -2
- package/dist/{vue-ui-dashboard-DcxMfQbm.js → vue-ui-dashboard-D48zFeQp.js} +62 -62
- package/dist/{vue-ui-digits-CJrt5BJ1.js → vue-ui-digits-DPnLXvr7.js} +2 -2
- package/dist/{vue-ui-donut-CnL_oyDf.js → vue-ui-donut-DVqw5vtF.js} +98 -98
- package/dist/{vue-ui-donut-evolution-Ds3gml6r.js → vue-ui-donut-evolution-DRtuLXs1.js} +7 -7
- package/dist/{vue-ui-dumbbell-9LSenoFZ.js → vue-ui-dumbbell-BUG2lBqH.js} +6 -6
- package/dist/{vue-ui-flow-C22v5GN2.js → vue-ui-flow-DQnOvqqZ.js} +6 -6
- package/dist/{vue-ui-funnel-B1nlsC-X.js → vue-ui-funnel-CWnwh3ot.js} +5 -5
- package/dist/{vue-ui-galaxy-B6BpVGEN.js → vue-ui-galaxy-Cw8wUzZc.js} +4 -4
- package/dist/{vue-ui-gauge-CxIA82Oi.js → vue-ui-gauge-Ctj-2pjJ.js} +5 -5
- package/dist/{vue-ui-gizmo-DoKv0gEe.js → vue-ui-gizmo-CRR5ELx2.js} +2 -2
- package/dist/{vue-ui-heatmap-DHZfILtm.js → vue-ui-heatmap-CidNRz38.js} +6 -6
- package/dist/{vue-ui-history-plot-CA3K02gG.js → vue-ui-history-plot-CXsCloRw.js} +6 -6
- package/dist/{vue-ui-kpi-Cl4-a765.js → vue-ui-kpi-B_d2ZvBt.js} +3 -3
- package/dist/{vue-ui-mini-loader-otB8K5br.js → vue-ui-mini-loader-BZl8N6l8.js} +2 -2
- package/dist/{vue-ui-molecule-Cpzuuc_E.js → vue-ui-molecule-Crjs9G1f.js} +4 -4
- package/dist/{vue-ui-mood-radar-C9gjpo76.js → vue-ui-mood-radar-Cb3mGtHM.js} +6 -6
- package/dist/{vue-ui-nested-donuts-DIMdD7XN.js → vue-ui-nested-donuts-CXJOUrH9.js} +259 -258
- package/dist/{vue-ui-onion-DZuOWHN2.js → vue-ui-onion-C5Gii_OS.js} +6 -6
- package/dist/{vue-ui-parallel-coordinate-plot-DFaCAOJ4.js → vue-ui-parallel-coordinate-plot-B47cE7x1.js} +7 -7
- package/dist/{vue-ui-quadrant-B69rCR3d.js → vue-ui-quadrant-BoUV_9eX.js} +7 -7
- package/dist/{vue-ui-quick-chart-D3ViBIuY.js → vue-ui-quick-chart-Cdh-VrA5.js} +5 -5
- package/dist/{vue-ui-radar-CL29WxOp.js → vue-ui-radar-6qaFOhCO.js} +6 -6
- package/dist/{vue-ui-rating-CSUNb7yY.js → vue-ui-rating-BVOAx0Z9.js} +2 -2
- package/dist/{vue-ui-relation-circle-MKe1JnkD.js → vue-ui-relation-circle-Dca25bGQ.js} +5 -5
- package/dist/{vue-ui-ridgeline-WutbT4di.js → vue-ui-ridgeline-8gaNTH3e.js} +7 -7
- package/dist/{vue-ui-rings-DrZTS5Im.js → vue-ui-rings-vP9LLpEg.js} +7 -7
- package/dist/{vue-ui-scatter-BlLXM8Bx.js → vue-ui-scatter-KVB6x4QY.js} +7 -7
- package/dist/{vue-ui-skeleton-Cj6SRkhT.js → vue-ui-skeleton-D6E8A35W.js} +2 -2
- package/dist/{vue-ui-smiley-DUydiLLl.js → vue-ui-smiley-DYTOHlaK.js} +2 -2
- package/dist/{vue-ui-spark-trend-CvmlasIX.js → vue-ui-spark-trend-BARGEqPt.js} +3 -3
- package/dist/{vue-ui-sparkbar-Dz6SDThS.js → vue-ui-sparkbar-Bu5AgACq.js} +3 -3
- package/dist/{vue-ui-sparkgauge-D2JyRos2.js → vue-ui-sparkgauge-Bw-TfafI.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-BdI9frTN.js → vue-ui-sparkhistogram-DFF1Q-Oh.js} +4 -4
- package/dist/{vue-ui-sparkline-BAISGFMq.js → vue-ui-sparkline-BVi5o4JQ.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-Da7IAbHx.js → vue-ui-sparkstackbar-Dj5979cI.js} +3 -3
- package/dist/{vue-ui-stackbar-eMnoUkhf.js → vue-ui-stackbar-BS-i25iw.js} +8 -8
- package/dist/{vue-ui-strip-plot-DYUHvHpY.js → vue-ui-strip-plot-EzMEy1tY.js} +6 -6
- package/dist/{vue-ui-table-CB6cwGXN.js → vue-ui-table-D09r27CS.js} +3 -3
- package/dist/{vue-ui-table-heatmap-CPk8caYe.js → vue-ui-table-heatmap-DmMBhZEy.js} +5 -5
- package/dist/{vue-ui-table-sparkline-NBtUQVOW.js → vue-ui-table-sparkline-DsahaIU8.js} +4 -4
- package/dist/{vue-ui-thermometer-1QS5hzkW.js → vue-ui-thermometer-CIPWWgjC.js} +5 -5
- package/dist/{vue-ui-timer-C0n7n4ne.js → vue-ui-timer-By4e5K_e.js} +4 -4
- package/dist/{vue-ui-tiremarks-DfBTlpK1.js → vue-ui-tiremarks-D99xRKxa.js} +5 -5
- package/dist/{vue-ui-treemap-BTvd5pVa.js → vue-ui-treemap-BEVSWBXq.js} +7 -7
- package/dist/{vue-ui-vertical-bar-COH9EX2H.js → vue-ui-vertical-bar-CBDSbJ47.js} +8 -8
- package/dist/{vue-ui-waffle-BdDGN-F-.js → vue-ui-waffle-CBtRK0VM.js} +7 -7
- package/dist/{vue-ui-wheel-Cd8GfuiY.js → vue-ui-wheel-BeKXUTAO.js} +5 -5
- package/dist/{vue-ui-word-cloud-BquWmmCH.js → vue-ui-word-cloud-14WZg5tB.js} +5 -5
- package/dist/{vue-ui-world-BX4K7BvL.js → vue-ui-world-BRn7KBHE.js} +5 -5
- package/dist/{vue-ui-xy-jhm3Dnsm.js → vue-ui-xy-Dcy4PxLW.js} +15 -15
- package/dist/{vue-ui-xy-canvas-BwJTSCIj.js → vue-ui-xy-canvas-CXYQlPPC.js} +7 -7
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref as k, computed as d, createElementBlock as i, openBlock as $, Fragment as o, createCommentVNode as m, createElementVNode as l, normalizeStyle as v, unref as C, renderList as b, createBlock as N } from "vue";
|
|
2
|
-
import { u as q } from "./useNestedProp-
|
|
3
|
-
import { u as M, X as S } from "./index-
|
|
2
|
+
import { u as q } from "./useNestedProp-Cwa5NEME.js";
|
|
3
|
+
import { u as M, X as S } from "./index-CFxgtqnt.js";
|
|
4
4
|
const w = { key: 0 }, B = ["d", "fill"], F = ["d", "fill"], X = ["d", "fill"], E = ["d", "fill"], I = ["d", "fill"], O = ["d", "fill"], A = ["d", "fill"], D = { key: 1 }, G = ["cx", "cy", "fill"], V = {
|
|
5
5
|
__name: "Digit",
|
|
6
6
|
props: {
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { defineAsyncComponent as K, useSlots as Nt, computed as p, shallowRef as W, ref as _, onMounted as tt, onBeforeUnmount as Mt, watch as lt, createElementBlock as r, openBlock as o, normalizeStyle as b, normalizeClass as _e, createBlock as Q, createCommentVNode as i, renderSlot as g, createElementVNode as f, createVNode as $e, unref as n, createSlots as at, withCtx as C, normalizeProps as oe, guardReactiveProps as se, Fragment as m, renderList as S, mergeProps as ot, toDisplayString as P, createTextVNode as st, nextTick as Yt } from "vue";
|
|
2
|
-
import { u as Xt, o as It, e as ut, g as Dt, c as Vt, b as Bt, d as nt, p as Z, m as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as it } from "./useNestedProp-
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { _ as
|
|
11
|
-
import { _ as
|
|
12
|
-
const
|
|
2
|
+
import { u as Xt, o as It, e as ut, g as Dt, c as Vt, b as Bt, v as Gt, d as nt, p as Z, m as Rt, $ as Wt, f as M, X as Et, s as fe, w as Ut, j as jt, N as L, i as D, k as ve, n as w, t as Ht, a as qt, q as Jt, r as Kt, x as Qt, T as rt } from "./index-CFxgtqnt.js";
|
|
3
|
+
import { t as Zt, u as el } from "./useResponsive-JZ9xq-JV.js";
|
|
4
|
+
import { u as it } from "./useNestedProp-Cwa5NEME.js";
|
|
5
|
+
import { u as tl } from "./usePrinter-AfZAUxa7.js";
|
|
6
|
+
import { u as ll } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
|
+
import { u as al } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
+
import ol from "./Legend-CgtCMjDL.js";
|
|
9
|
+
import sl from "./Title-CSUbkA4W.js";
|
|
10
|
+
import { _ as ul } from "./Shape-DWUzGGp4.js";
|
|
11
|
+
import { _ as nl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
|
+
const rl = ["id"], il = ["xmlns", "viewBox"], vl = ["width", "height"], cl = { key: 1 }, dl = ["id"], hl = ["stop-color"], yl = ["offset", "stop-color"], fl = ["offset", "stop-color"], pl = ["stop-color"], gl = { key: 2 }, ml = ["id", "cx", "cy"], bl = ["stop-color", "stop-opacity"], wl = ["stop-color"], kl = ["id"], _l = ["id"], $l = ["id"], xl = ["flood-color"], Cl = ["id"], Tl = ["flood-color"], Pl = ["d", "stroke", "filter"], Al = ["d", "stroke", "filter"], Fl = ["cx", "cy", "r", "fill", "filter"], Sl = { key: 6 }, Ll = ["stroke", "d"], zl = ["d", "fill", "stroke", "stroke-width", "filter"], Ol = { key: 0 }, Nl = ["d", "fill", "stroke", "stroke-width", "filter"], Ml = { key: 0 }, Yl = ["stroke", "d"], Xl = { key: 0 }, Il = ["d", "stroke", "stroke-width", "filter"], Dl = { key: 1 }, Vl = ["d", "fill", "stroke", "stroke-width", "filter"], Bl = ["d", "fill", "stroke", "stroke-width", "filter"], Gl = { key: 1 }, Rl = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Wl = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], El = ["cx", "cy", "r", "stroke"], Ul = ["cx", "cy", "r", "fill"], jl = { key: 0 }, Hl = ["d", "fill", "onMouseenter", "onClick"], ql = { key: 1 }, Jl = ["cx", "cy", "r"], Kl = ["x", "y", "fill", "font-size"], Ql = ["x", "y", "fill", "font-size"], Zl = ["x", "y", "fill", "font-size"], ea = ["x", "y", "fill", "font-size"], ta = ["filter"], la = { key: 0 }, aa = ["x", "y"], oa = { key: 1 }, sa = ["cx", "cy", "fill", "stroke", "filter", "onClick"], ua = ["cx", "cy", "fill", "stroke", "filter", "onClick"], na = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], ra = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], ia = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], va = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], ca = { key: 2 }, da = ["x", "y", "width"], ha = ["x", "y", "width"], ya = {
|
|
13
13
|
key: 5,
|
|
14
14
|
class: "vue-data-ui-watermark"
|
|
15
|
-
},
|
|
15
|
+
}, fa = ["onClick"], pa = {
|
|
16
16
|
key: 0,
|
|
17
17
|
style: { "font-variant-numeric": "tabular-nums" }
|
|
18
|
-
},
|
|
18
|
+
}, ga = { key: 1 }, ma = ["innerHTML"], ba = {
|
|
19
19
|
__name: "vue-ui-donut",
|
|
20
20
|
props: {
|
|
21
21
|
config: {
|
|
@@ -33,7 +33,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
33
33
|
},
|
|
34
34
|
emits: ["selectLegend", "selectDatapoint"],
|
|
35
35
|
setup(xe, { expose: vt, emit: ct }) {
|
|
36
|
-
const dt = K(() => import("./vue-ui-accordion-
|
|
36
|
+
const dt = K(() => import("./vue-ui-accordion-un8Cf2VZ.js")), ht = K(() => import("./DataTable-Cm_GJw0b.js")), yt = K(() => import("./PackageVersion-gLNy4C0t.js")), ft = K(() => import("./PenAndPaper-CF8MOhzS.js")), pt = K(() => import("./vue-ui-skeleton-D6E8A35W.js")), gt = K(() => import("./Tooltip-wFU7JwQL.js")), mt = K(() => import("./UserOptions-C72U1mPN.js")), { vue_ui_donut: bt } = Xt(), wt = Nt(), z = xe, ue = p({
|
|
37
37
|
get() {
|
|
38
38
|
return !!z.dataset && z.dataset.length;
|
|
39
39
|
},
|
|
@@ -63,8 +63,8 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
63
63
|
});
|
|
64
64
|
});
|
|
65
65
|
}), e.value.responsive) {
|
|
66
|
-
const l =
|
|
67
|
-
const { width: s, height: t } =
|
|
66
|
+
const l = Zt(() => {
|
|
67
|
+
const { width: s, height: t } = el({
|
|
68
68
|
chart: ne.value,
|
|
69
69
|
title: e.value.style.chart.title.text ? Ce.value : null,
|
|
70
70
|
legend: e.value.style.chart.legend.show ? Te.value : null,
|
|
@@ -87,10 +87,10 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
87
87
|
});
|
|
88
88
|
return l.theme ? {
|
|
89
89
|
...it({
|
|
90
|
-
userConfig:
|
|
90
|
+
userConfig: qt.vue_ui_donut[l.theme] || z.config,
|
|
91
91
|
defaultConfig: l
|
|
92
92
|
}),
|
|
93
|
-
customPalette:
|
|
93
|
+
customPalette: Ht[l.theme] || Z
|
|
94
94
|
} : l;
|
|
95
95
|
}
|
|
96
96
|
const e = p({
|
|
@@ -122,7 +122,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
122
122
|
e.value.startAnimation.staggerMs
|
|
123
123
|
), T.value = !1;
|
|
124
124
|
});
|
|
125
|
-
const { userOptionsVisible: ge, setUserOptionsVisibility: Me, keepUserOptionState: Ye } =
|
|
125
|
+
const { userOptionsVisible: ge, setUserOptionsVisibility: Me, keepUserOptionState: Ye } = ll({ config: e.value }), { svgRef: me } = al({ config: e.value.style.chart.title });
|
|
126
126
|
function $t() {
|
|
127
127
|
Me(!0);
|
|
128
128
|
}
|
|
@@ -141,7 +141,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
141
141
|
bottom: t,
|
|
142
142
|
left: a
|
|
143
143
|
};
|
|
144
|
-
}), { isPrinting: Ie, isImaging: De, generatePdf: Ve, generateImage: Be } =
|
|
144
|
+
}), { isPrinting: Ie, isImaging: De, generatePdf: Ve, generateImage: Be } = tl({
|
|
145
145
|
elementId: `donut__${y.value}`,
|
|
146
146
|
fileName: e.value.style.chart.title.text || "vue-ui-donut",
|
|
147
147
|
options: e.value.userOptions.print
|
|
@@ -160,7 +160,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
160
160
|
}), Re = ct, G = p(() => z.dataset.map((l, s) => ({
|
|
161
161
|
name: l.name,
|
|
162
162
|
color: nt(l.color) || Ge.value[s] || Z[s] || Z[s % Z.length],
|
|
163
|
-
value: l.values.reduce((t, a) => t + a, 0),
|
|
163
|
+
value: Gt(l.values.reduce((t, a) => t + a, 0)),
|
|
164
164
|
absoluteValues: l.values,
|
|
165
165
|
comment: l.comment || "",
|
|
166
166
|
patternIndex: s,
|
|
@@ -286,9 +286,9 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
286
286
|
})), $ = p(() => {
|
|
287
287
|
const l = Math.min(u.value.width / 3, u.value.height / 3);
|
|
288
288
|
return l < 55 ? 55 : l;
|
|
289
|
-
}), A = p(() =>
|
|
289
|
+
}), A = p(() => Rt({ series: U.value }, u.value.width / 2, u.value.height / 2, $.value, $.value, 1.99999, 2, 1, 360, 105.25, te.value)), Y = p(() => A.value.filter((l) => !l.ghost)), c = p(() => {
|
|
290
290
|
const l = Math.max(...U.value.map((t) => t.value)), s = U.value.map((t) => t.value / l);
|
|
291
|
-
return
|
|
291
|
+
return Wt({
|
|
292
292
|
series: s,
|
|
293
293
|
center: {
|
|
294
294
|
x: u.value.width / 2,
|
|
@@ -328,7 +328,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
328
328
|
we.value = { datapoint: l, seriesIndex: t, config: e.value, series: G.value }, ce.value = a, O.value = s;
|
|
329
329
|
let v = "";
|
|
330
330
|
const d = e.value.style.chart.tooltip.customFormat;
|
|
331
|
-
if (re.value = !1,
|
|
331
|
+
if (re.value = !1, Qt(d))
|
|
332
332
|
try {
|
|
333
333
|
const k = d({
|
|
334
334
|
seriesIndex: t,
|
|
@@ -389,8 +389,8 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
389
389
|
Yt(() => {
|
|
390
390
|
const s = j.value.head.map((v, d) => [[
|
|
391
391
|
v.name
|
|
392
|
-
], [j.value.body[d]], [isNaN(j.value.body[d] / F.value) ? "-" : j.value.body[d] / F.value * 100]]), t = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(s), a =
|
|
393
|
-
l ? l(a) :
|
|
392
|
+
], [j.value.body[d]], [isNaN(j.value.body[d] / F.value) ? "-" : j.value.body[d] / F.value * 100]]), t = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(s), a = Jt(t);
|
|
393
|
+
l ? l(a) : Kt({ csvContent: a, title: e.value.style.chart.title.text || "vue-ui-donut" });
|
|
394
394
|
});
|
|
395
395
|
}
|
|
396
396
|
const de = p(() => {
|
|
@@ -492,7 +492,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
492
492
|
ref: Ce,
|
|
493
493
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
494
494
|
}, [
|
|
495
|
-
(o(), Q(
|
|
495
|
+
(o(), Q(sl, {
|
|
496
496
|
key: `title_${Fe.value}`,
|
|
497
497
|
config: {
|
|
498
498
|
title: {
|
|
@@ -610,7 +610,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
610
610
|
key: 4,
|
|
611
611
|
ref_key: "svgRef",
|
|
612
612
|
ref: me,
|
|
613
|
-
xmlns: n(
|
|
613
|
+
xmlns: n(Et),
|
|
614
614
|
class: _e({ "vue-data-ui-fullscreen--on": ae.value, "vue-data-ui-fulscreen--off": !ae.value }),
|
|
615
615
|
viewBox: `0 0 ${u.value.width <= 0 ? 10 : u.value.width} ${u.value.height <= 0 ? 10 : u.value.height}`,
|
|
616
616
|
style: b(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};${Xe.value.css}`)
|
|
@@ -627,8 +627,8 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
627
627
|
}
|
|
628
628
|
}, [
|
|
629
629
|
g(l.$slots, "chart-background", {}, void 0, !0)
|
|
630
|
-
], 8,
|
|
631
|
-
e.value.type === "classic" && !isNaN(te.value / $.value) ? (o(), r("defs",
|
|
630
|
+
], 8, vl)) : i("", !0),
|
|
631
|
+
e.value.type === "classic" && !isNaN(te.value / $.value) ? (o(), r("defs", cl, [
|
|
632
632
|
e.value.style.chart.useGradient ? (o(), r("radialGradient", {
|
|
633
633
|
key: 0,
|
|
634
634
|
id: `gradient_${y.value}`
|
|
@@ -637,24 +637,24 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
637
637
|
offset: "0%",
|
|
638
638
|
"stop-color": n(fe)(e.value.style.chart.backgroundColor, 0),
|
|
639
639
|
"stop-opacity": "0"
|
|
640
|
-
}, null, 8,
|
|
640
|
+
}, null, 8, hl),
|
|
641
641
|
f("stop", {
|
|
642
642
|
offset: `${(1 - te.value / $.value) * 100}%`,
|
|
643
643
|
"stop-color": n(fe)("#FFFFFF", 0),
|
|
644
644
|
"stop-opacity": "0"
|
|
645
|
-
}, null, 8,
|
|
645
|
+
}, null, 8, yl),
|
|
646
646
|
f("stop", {
|
|
647
647
|
offset: `${(1 - te.value / $.value / 2) * 100}%`,
|
|
648
648
|
"stop-color": n(fe)("#FFFFFF", e.value.style.chart.gradientIntensity)
|
|
649
|
-
}, null, 8,
|
|
649
|
+
}, null, 8, fl),
|
|
650
650
|
f("stop", {
|
|
651
651
|
offset: "100%",
|
|
652
652
|
"stop-color": n(fe)(e.value.style.chart.backgroundColor, 0),
|
|
653
653
|
"stop-opacity": "0"
|
|
654
|
-
}, null, 8,
|
|
655
|
-
], 8,
|
|
654
|
+
}, null, 8, pl)
|
|
655
|
+
], 8, dl)) : i("", !0)
|
|
656
656
|
])) : i("", !0),
|
|
657
|
-
e.value.type === "polar" ? (o(), r("defs",
|
|
657
|
+
e.value.type === "polar" ? (o(), r("defs", gl, [
|
|
658
658
|
(o(!0), r(m, null, S(c.value, (t, a) => (o(), r("radialGradient", {
|
|
659
659
|
id: `polar_gradient_${a}_${y.value}`,
|
|
660
660
|
cx: (isNaN(t.middlePoint.x / u.value.width * 100) ? 0 : t.middlePoint.x / u.value.width * 100) + "%",
|
|
@@ -663,14 +663,14 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
663
663
|
}, [
|
|
664
664
|
f("stop", {
|
|
665
665
|
offset: "0%",
|
|
666
|
-
"stop-color": n(
|
|
666
|
+
"stop-color": n(Ut)(A.value[a].color, 0.05),
|
|
667
667
|
"stop-opacity": e.value.style.chart.gradientIntensity / 100
|
|
668
|
-
}, null, 8,
|
|
668
|
+
}, null, 8, bl),
|
|
669
669
|
f("stop", {
|
|
670
670
|
offset: "100%",
|
|
671
671
|
"stop-color": A.value[a].color
|
|
672
|
-
}, null, 8,
|
|
673
|
-
], 8,
|
|
672
|
+
}, null, 8, wl)
|
|
673
|
+
], 8, ml))), 256))
|
|
674
674
|
])) : i("", !0),
|
|
675
675
|
f("defs", null, [
|
|
676
676
|
f("filter", {
|
|
@@ -684,12 +684,12 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
684
684
|
in: "SourceGraphic",
|
|
685
685
|
stdDeviation: 2,
|
|
686
686
|
id: `blur_std_${y.value}`
|
|
687
|
-
}, null, 8,
|
|
687
|
+
}, null, 8, _l),
|
|
688
688
|
s[6] || (s[6] = f("feColorMatrix", {
|
|
689
689
|
type: "saturate",
|
|
690
690
|
values: "0"
|
|
691
691
|
}, null, -1))
|
|
692
|
-
], 8,
|
|
692
|
+
], 8, kl),
|
|
693
693
|
f("filter", {
|
|
694
694
|
id: `shadow_${y.value}`,
|
|
695
695
|
"color-interpolation-filters": "sRGB"
|
|
@@ -700,8 +700,8 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
700
700
|
stdDeviation: "10",
|
|
701
701
|
"flood-opacity": "0.5",
|
|
702
702
|
"flood-color": e.value.style.chart.layout.donut.shadowColor
|
|
703
|
-
}, null, 8,
|
|
704
|
-
], 8,
|
|
703
|
+
}, null, 8, xl)
|
|
704
|
+
], 8, $l),
|
|
705
705
|
f("filter", {
|
|
706
706
|
id: `drop_shadow_${y.value}`,
|
|
707
707
|
"color-interpolation-filters": "sRGB",
|
|
@@ -716,20 +716,20 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
716
716
|
stdDeviation: "3",
|
|
717
717
|
"flood-opacity": "1",
|
|
718
718
|
"flood-color": e.value.style.chart.layout.donut.shadowColor
|
|
719
|
-
}, null, 8,
|
|
720
|
-
], 8,
|
|
719
|
+
}, null, 8, Tl)
|
|
720
|
+
], 8, Cl)
|
|
721
721
|
]),
|
|
722
722
|
e.value.type === "classic" ? (o(!0), r(m, { key: 3 }, S(A.value.filter((t) => !t.ghost), (t, a) => (o(), r("g", null, [
|
|
723
723
|
X(t) && h.value.dataLabels.show ? (o(), r("path", {
|
|
724
724
|
key: 0,
|
|
725
|
-
d: n(
|
|
725
|
+
d: n(jt)(t, { x: u.value.width / 2, y: u.value.height / 2 }, 16, 16, !1, !1, te.value, 12, e.value.style.chart.layout.curvedMarkers),
|
|
726
726
|
stroke: t.color,
|
|
727
727
|
"stroke-width": "1",
|
|
728
728
|
"stroke-linecap": "round",
|
|
729
729
|
"stroke-linejoin": "round",
|
|
730
730
|
fill: "none",
|
|
731
731
|
filter: J(a)
|
|
732
|
-
}, null, 8,
|
|
732
|
+
}, null, 8, Pl)) : i("", !0)
|
|
733
733
|
]))), 256)) : i("", !0),
|
|
734
734
|
e.value.type === "polar" ? (o(!0), r(m, { key: 4 }, S(A.value.filter((t) => !t.ghost), (t, a) => (o(), r("g", null, [
|
|
735
735
|
X(t) && h.value.dataLabels.show ? (o(), r("path", {
|
|
@@ -744,7 +744,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
744
744
|
style: b({
|
|
745
745
|
transition: T.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
746
746
|
})
|
|
747
|
-
}, null, 12,
|
|
747
|
+
}, null, 12, Al)) : i("", !0)
|
|
748
748
|
]))), 256)) : i("", !0),
|
|
749
749
|
e.value.type === "classic" && e.value.style.chart.layout.donut.useShadow ? (o(), r("circle", {
|
|
750
750
|
key: 5,
|
|
@@ -753,8 +753,8 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
753
753
|
r: $.value <= 0 ? 10 : $.value,
|
|
754
754
|
fill: e.value.style.chart.backgroundColor,
|
|
755
755
|
filter: `url(#shadow_${y.value})`
|
|
756
|
-
}, null, 8,
|
|
757
|
-
l.$slots.pattern ? (o(), r("g",
|
|
756
|
+
}, null, 8, Fl)) : i("", !0),
|
|
757
|
+
l.$slots.pattern ? (o(), r("g", Sl, [
|
|
758
758
|
(o(!0), r(m, null, S(xe.dataset, (t, a) => (o(), r("defs", {
|
|
759
759
|
key: `pattern-${t.patternIndex}`
|
|
760
760
|
}, [
|
|
@@ -766,7 +766,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
766
766
|
stroke: e.value.style.chart.backgroundColor,
|
|
767
767
|
d: t.arcSlice,
|
|
768
768
|
fill: "#FFFFFF"
|
|
769
|
-
}, null, 8,
|
|
769
|
+
}, null, 8, Ll))), 256)),
|
|
770
770
|
(o(!0), r(m, null, S(Y.value, (t, a) => (o(), r("path", {
|
|
771
771
|
class: "vue-ui-donut-arc-path",
|
|
772
772
|
d: t.arcSlice,
|
|
@@ -774,8 +774,8 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
774
774
|
stroke: e.value.style.chart.backgroundColor,
|
|
775
775
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
776
776
|
filter: J(a)
|
|
777
|
-
}, null, 8,
|
|
778
|
-
l.$slots.pattern ? (o(), r("g",
|
|
777
|
+
}, null, 8, zl))), 256)),
|
|
778
|
+
l.$slots.pattern ? (o(), r("g", Ol, [
|
|
779
779
|
(o(!0), r(m, null, S(Y.value, (t, a) => (o(), r("path", {
|
|
780
780
|
class: "vue-ui-donut-arc-path",
|
|
781
781
|
d: t.arcSlice,
|
|
@@ -783,11 +783,11 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
783
783
|
stroke: e.value.style.chart.backgroundColor,
|
|
784
784
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
785
785
|
filter: J(a)
|
|
786
|
-
}, null, 8,
|
|
786
|
+
}, null, 8, Nl))), 256))
|
|
787
787
|
])) : i("", !0)
|
|
788
788
|
], 64)) : i("", !0),
|
|
789
789
|
F.value && e.value.type === "polar" ? (o(), r(m, { key: 8 }, [
|
|
790
|
-
A.value.length > 1 ? (o(), r("g",
|
|
790
|
+
A.value.length > 1 ? (o(), r("g", Ml, [
|
|
791
791
|
(o(!0), r(m, null, S(Y.value, (t, a) => (o(), r("path", {
|
|
792
792
|
stroke: e.value.style.chart.backgroundColor,
|
|
793
793
|
d: c.value[a].path,
|
|
@@ -795,8 +795,8 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
795
795
|
style: b({
|
|
796
796
|
transition: T.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
797
797
|
})
|
|
798
|
-
}, null, 12,
|
|
799
|
-
e.value.style.chart.layout.donut.useShadow ? (o(), r("g",
|
|
798
|
+
}, null, 12, Yl))), 256)),
|
|
799
|
+
e.value.style.chart.layout.donut.useShadow ? (o(), r("g", Xl, [
|
|
800
800
|
(o(!0), r(m, null, S(Y.value, (t, a) => (o(), r("path", {
|
|
801
801
|
class: "vue-ui-donut-arc-path",
|
|
802
802
|
d: c.value[a].path,
|
|
@@ -807,9 +807,9 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
807
807
|
style: b({
|
|
808
808
|
transition: T.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
809
809
|
})
|
|
810
|
-
}, null, 12,
|
|
810
|
+
}, null, 12, Il))), 256))
|
|
811
811
|
])) : i("", !0),
|
|
812
|
-
l.$slots.pattern ? (o(), r("g",
|
|
812
|
+
l.$slots.pattern ? (o(), r("g", Dl, [
|
|
813
813
|
(o(!0), r(m, null, S(Y.value, (t, a) => (o(), r("path", {
|
|
814
814
|
class: "vue-ui-donut-arc-path",
|
|
815
815
|
d: c.value[a].path,
|
|
@@ -820,7 +820,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
820
820
|
style: b({
|
|
821
821
|
transition: T.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
822
822
|
})
|
|
823
|
-
}, null, 12,
|
|
823
|
+
}, null, 12, Vl))), 256))
|
|
824
824
|
])) : i("", !0),
|
|
825
825
|
(o(!0), r(m, null, S(Y.value, (t, a) => (o(), r("path", {
|
|
826
826
|
class: "vue-ui-donut-arc-path",
|
|
@@ -832,8 +832,8 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
832
832
|
style: b({
|
|
833
833
|
transition: T.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
834
834
|
})
|
|
835
|
-
}, null, 12,
|
|
836
|
-
])) : (o(), r("g",
|
|
835
|
+
}, null, 12, Bl))), 256))
|
|
836
|
+
])) : (o(), r("g", Gl, [
|
|
837
837
|
l.$slots.pattern ? (o(), r("circle", {
|
|
838
838
|
key: 0,
|
|
839
839
|
cx: u.value.width / 2,
|
|
@@ -842,7 +842,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
842
842
|
fill: `url(#pattern_${y.value}_${A.value[0].patternIndex})`,
|
|
843
843
|
stroke: e.value.style.chart.backgroundColor,
|
|
844
844
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth
|
|
845
|
-
}, null, 8,
|
|
845
|
+
}, null, 8, Rl)) : i("", !0),
|
|
846
846
|
f("circle", {
|
|
847
847
|
cx: u.value.width / 2,
|
|
848
848
|
cy: u.value.height / 2,
|
|
@@ -850,7 +850,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
850
850
|
fill: e.value.style.chart.useGradient ? `url(#polar_gradient_0_${y.value})` : A.value[0].color,
|
|
851
851
|
stroke: e.value.style.chart.backgroundColor,
|
|
852
852
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth
|
|
853
|
-
}, null, 8,
|
|
853
|
+
}, null, 8, Wl)
|
|
854
854
|
]))
|
|
855
855
|
], 64)) : (o(), r("circle", {
|
|
856
856
|
key: 9,
|
|
@@ -859,7 +859,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
859
859
|
r: $.value <= 0 ? 10 : $.value,
|
|
860
860
|
fill: "transparent",
|
|
861
861
|
stroke: e.value.style.chart.backgroundColor
|
|
862
|
-
}, null, 8,
|
|
862
|
+
}, null, 8, El)),
|
|
863
863
|
e.value.style.chart.useGradient && e.value.type === "classic" ? (o(), r("circle", {
|
|
864
864
|
key: 10,
|
|
865
865
|
cx: u.value.width / 2,
|
|
@@ -869,9 +869,9 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
869
869
|
$.value <= 0 ? 10 : $.value
|
|
870
870
|
),
|
|
871
871
|
fill: `url(#gradient_${y.value})`
|
|
872
|
-
}, null, 8,
|
|
872
|
+
}, null, 8, Ul)) : i("", !0),
|
|
873
873
|
F.value ? (o(), r(m, { key: 11 }, [
|
|
874
|
-
A.value.length > 1 || e.value.type === "classic" ? (o(), r("g",
|
|
874
|
+
A.value.length > 1 || e.value.type === "classic" ? (o(), r("g", jl, [
|
|
875
875
|
(o(!0), r(m, null, S(A.value.filter((t) => !t.ghost), (t, a) => (o(), r("path", {
|
|
876
876
|
d: e.value.type === "classic" ? t.arcSlice : c.value[a].path,
|
|
877
877
|
fill: O.value === a ? "rgba(0,0,0,0.1)" : "transparent",
|
|
@@ -885,8 +885,8 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
885
885
|
ce.value = !1, O.value = null;
|
|
886
886
|
}),
|
|
887
887
|
onClick: (v) => H(t, a)
|
|
888
|
-
}, null, 40,
|
|
889
|
-
])) : (o(), r("g",
|
|
888
|
+
}, null, 40, Hl))), 256))
|
|
889
|
+
])) : (o(), r("g", ql, [
|
|
890
890
|
f("circle", {
|
|
891
891
|
cx: u.value.width / 2,
|
|
892
892
|
cy: u.value.height / 2,
|
|
@@ -902,7 +902,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
902
902
|
ce.value = !1, O.value = null;
|
|
903
903
|
}),
|
|
904
904
|
onClick: s[3] || (s[3] = (t) => H(A.value[0], l.i))
|
|
905
|
-
}, null, 40,
|
|
905
|
+
}, null, 40, Jl)
|
|
906
906
|
]))
|
|
907
907
|
], 64)) : i("", !0),
|
|
908
908
|
e.value.type === "classic" ? (o(), r(m, { key: 12 }, [
|
|
@@ -914,7 +914,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
914
914
|
fill: e.value.style.chart.layout.labels.hollow.total.color,
|
|
915
915
|
"font-size": e.value.style.chart.layout.labels.hollow.total.fontSize,
|
|
916
916
|
style: b(`font-weight:${e.value.style.chart.layout.labels.hollow.total.bold ? "bold" : ""}`)
|
|
917
|
-
}, P(e.value.style.chart.layout.labels.hollow.total.text), 13,
|
|
917
|
+
}, P(e.value.style.chart.layout.labels.hollow.total.text), 13, Kl)) : i("", !0),
|
|
918
918
|
e.value.style.chart.layout.labels.hollow.total.show ? (o(), r("text", {
|
|
919
919
|
key: 1,
|
|
920
920
|
"text-anchor": "middle",
|
|
@@ -931,7 +931,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
931
931
|
v: F.value,
|
|
932
932
|
s: e.value.style.chart.layout.labels.hollow.total.value.suffix
|
|
933
933
|
})
|
|
934
|
-
)), 13,
|
|
934
|
+
)), 13, Ql)) : i("", !0),
|
|
935
935
|
e.value.style.chart.layout.labels.hollow.average.show ? (o(), r("text", {
|
|
936
936
|
key: 2,
|
|
937
937
|
"text-anchor": "middle",
|
|
@@ -940,7 +940,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
940
940
|
fill: e.value.style.chart.layout.labels.hollow.average.color,
|
|
941
941
|
"font-size": e.value.style.chart.layout.labels.hollow.average.fontSize,
|
|
942
942
|
style: b(`font-weight:${e.value.style.chart.layout.labels.hollow.average.bold ? "bold" : ""}`)
|
|
943
|
-
}, P(e.value.style.chart.layout.labels.hollow.average.text), 13,
|
|
943
|
+
}, P(e.value.style.chart.layout.labels.hollow.average.text), 13, Zl)) : i("", !0),
|
|
944
944
|
e.value.style.chart.layout.labels.hollow.average.show ? (o(), r("text", {
|
|
945
945
|
key: 3,
|
|
946
946
|
"text-anchor": "middle",
|
|
@@ -958,13 +958,13 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
958
958
|
s: e.value.style.chart.layout.labels.hollow.average.value.suffix,
|
|
959
959
|
r: e.value.style.chart.layout.labels.hollow.average.value.rounding
|
|
960
960
|
})
|
|
961
|
-
)), 13,
|
|
961
|
+
)), 13, ea)) : i("", !0)
|
|
962
962
|
], 64)) : i("", !0),
|
|
963
963
|
(o(!0), r(m, null, S(Y.value.filter((t) => !t.ghost), (t, a) => (o(), r("g", {
|
|
964
964
|
filter: J(a),
|
|
965
965
|
class: _e({ animated: e.value.useCssAnimation })
|
|
966
966
|
}, [
|
|
967
|
-
e.value.style.chart.layout.labels.dataLabels.useLabelSlots ? (o(), r("g",
|
|
967
|
+
e.value.style.chart.layout.labels.dataLabels.useLabelSlots ? (o(), r("g", la, [
|
|
968
968
|
(o(), r("foreignObject", {
|
|
969
969
|
x: n(w)(t, !0).anchor === "end" ? n(w)(t).x - 120 : n(w)(t, !0).anchor === "middle" ? n(w)(t).x - 60 : n(w)(t).x,
|
|
970
970
|
y: n(ve)(t) - (Ke.value ? 20 : 0),
|
|
@@ -983,8 +983,8 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
983
983
|
percentage: be(t, Y.value)
|
|
984
984
|
}), void 0, !0)
|
|
985
985
|
])
|
|
986
|
-
], 8,
|
|
987
|
-
])) : (o(), r("g",
|
|
986
|
+
], 8, aa))
|
|
987
|
+
])) : (o(), r("g", oa, [
|
|
988
988
|
e.value.type === "classic" ? (o(), r(m, { key: 0 }, [
|
|
989
989
|
X(t) && h.value.dataLabels.show ? (o(), r("circle", {
|
|
990
990
|
key: 0,
|
|
@@ -996,7 +996,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
996
996
|
r: 3,
|
|
997
997
|
filter: !e.value.useBlurOnHover || [null, void 0].includes(O.value) || O.value === a ? "" : `url(#blur_${y.value})`,
|
|
998
998
|
onClick: (v) => H(t, a)
|
|
999
|
-
}, null, 8,
|
|
999
|
+
}, null, 8, sa)) : i("", !0)
|
|
1000
1000
|
], 64)) : i("", !0),
|
|
1001
1001
|
e.value.type === "polar" ? (o(), r(m, { key: 1 }, [
|
|
1002
1002
|
X(t) && h.value.dataLabels.show ? (o(), r("circle", {
|
|
@@ -1012,7 +1012,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
1012
1012
|
style: b({
|
|
1013
1013
|
transition: T.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
1014
1014
|
})
|
|
1015
|
-
}, null, 12,
|
|
1015
|
+
}, null, 12, ua)) : i("", !0)
|
|
1016
1016
|
], 64)) : i("", !0),
|
|
1017
1017
|
e.value.type === "classic" ? (o(), r(m, { key: 2 }, [
|
|
1018
1018
|
X(t) && h.value.dataLabels.show ? (o(), r("text", {
|
|
@@ -1034,7 +1034,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
1034
1034
|
r: e.value.style.chart.layout.labels.value.rounding
|
|
1035
1035
|
}),
|
|
1036
1036
|
{ datapoint: t }
|
|
1037
|
-
)})` : ""), 13,
|
|
1037
|
+
)})` : ""), 13, na)) : i("", !0),
|
|
1038
1038
|
X(t) && h.value.dataLabels.show ? (o(), r("text", {
|
|
1039
1039
|
key: 1,
|
|
1040
1040
|
"text-anchor": n(w)(t).anchor,
|
|
@@ -1044,7 +1044,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
1044
1044
|
"font-size": e.value.style.chart.layout.labels.name.fontSize,
|
|
1045
1045
|
style: b(`font-weight:${e.value.style.chart.layout.labels.name.bold ? "bold" : ""}`),
|
|
1046
1046
|
onClick: (v) => H(t, a)
|
|
1047
|
-
}, P(t.name), 13,
|
|
1047
|
+
}, P(t.name), 13, ra)) : i("", !0)
|
|
1048
1048
|
], 64)) : i("", !0),
|
|
1049
1049
|
e.value.type === "polar" ? (o(), r(m, { key: 3 }, [
|
|
1050
1050
|
X(t) && h.value.dataLabels.show ? (o(), r("text", {
|
|
@@ -1069,7 +1069,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
1069
1069
|
r: e.value.style.chart.layout.labels.value.rounding
|
|
1070
1070
|
}),
|
|
1071
1071
|
{ datapoint: t }
|
|
1072
|
-
)})` : ""), 13,
|
|
1072
|
+
)})` : ""), 13, ia)) : i("", !0),
|
|
1073
1073
|
X(t) && h.value.dataLabels.show ? (o(), r("text", {
|
|
1074
1074
|
key: 1,
|
|
1075
1075
|
"text-anchor": le(c.value[a].middlePoint),
|
|
@@ -1082,10 +1082,10 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
1082
1082
|
fontWeight: e.value.style.chart.layout.labels.name.bold ? "bold" : "normal"
|
|
1083
1083
|
}),
|
|
1084
1084
|
onClick: (v) => H(t, a)
|
|
1085
|
-
}, P(t.name), 13,
|
|
1085
|
+
}, P(t.name), 13, va)) : i("", !0)
|
|
1086
1086
|
], 64)) : i("", !0)
|
|
1087
1087
|
])),
|
|
1088
|
-
h.value.dataLabels.show && e.value.style.chart.comments.show && t.comment ? (o(), r("g",
|
|
1088
|
+
h.value.dataLabels.show && e.value.style.chart.comments.show && t.comment ? (o(), r("g", ca, [
|
|
1089
1089
|
X(t) && e.value.type === "classic" ? (o(), r("foreignObject", {
|
|
1090
1090
|
key: 0,
|
|
1091
1091
|
x: e.value.style.chart.comments.offsetX + (n(w)(t, !0).anchor === "end" ? n(w)(t).x - e.value.style.chart.comments.width : n(w)(t, !0).anchor === "middle" ? n(w)(t).x - e.value.style.chart.comments.width / 2 : n(w)(t).x),
|
|
@@ -1099,7 +1099,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
1099
1099
|
plot: { ...t, textAlign: n(w)(t, !0, 16, !0).anchor, flexAlign: n(w)(t, !0, 16).anchor, isFirstLoad: T.value }
|
|
1100
1100
|
}, void 0, !0)
|
|
1101
1101
|
])
|
|
1102
|
-
], 8,
|
|
1102
|
+
], 8, da)) : i("", !0),
|
|
1103
1103
|
X(t) && e.value.type === "polar" ? (o(), r("foreignObject", {
|
|
1104
1104
|
key: 1,
|
|
1105
1105
|
x: e.value.style.chart.comments.offsetX + (le(c.value[a].middlePoint) === "end" ? n(L)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: u.value.width / 2, centerY: u.value.height / 2 }).x - e.value.style.chart.comments.width : le(c.value[a].middlePoint) === "middle" ? n(L)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: u.value.width / 2, centerY: u.value.height / 2 }).x - e.value.style.chart.comments.width / 2 : n(L)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: u.value.width / 2, centerY: u.value.height / 2 }).x),
|
|
@@ -1117,12 +1117,12 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
1117
1117
|
plot: { ...t, textAlign: le(c.value[a].middlePoint), flexAlign: le(c.value[a].middlePoint), isFirstLoad: T.value }
|
|
1118
1118
|
}, void 0, !0)
|
|
1119
1119
|
])
|
|
1120
|
-
], 12,
|
|
1120
|
+
], 12, ha)) : i("", !0)
|
|
1121
1121
|
])) : i("", !0)
|
|
1122
|
-
], 10,
|
|
1122
|
+
], 10, ta))), 256)),
|
|
1123
1123
|
g(l.$slots, "svg", { svg: u.value }, void 0, !0)
|
|
1124
|
-
], 14,
|
|
1125
|
-
l.$slots.watermark ? (o(), r("div",
|
|
1124
|
+
], 14, il)) : i("", !0),
|
|
1125
|
+
l.$slots.watermark ? (o(), r("div", ya, [
|
|
1126
1126
|
g(l.$slots, "watermark", oe(se({ isPrinting: n(Ie) || n(De) })), void 0, !0)
|
|
1127
1127
|
])) : i("", !0),
|
|
1128
1128
|
ue.value ? i("", !0) : (o(), Q(n(pt), {
|
|
@@ -1142,7 +1142,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
1142
1142
|
ref_key: "chartLegend",
|
|
1143
1143
|
ref: Te
|
|
1144
1144
|
}, [
|
|
1145
|
-
e.value.style.chart.legend.show ? (o(), Q(
|
|
1145
|
+
e.value.style.chart.legend.show ? (o(), Q(ol, {
|
|
1146
1146
|
key: `legend_${Le.value}`,
|
|
1147
1147
|
legendSet: Ue.value,
|
|
1148
1148
|
config: At.value,
|
|
@@ -1167,7 +1167,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
1167
1167
|
index: a
|
|
1168
1168
|
}
|
|
1169
1169
|
)) + " ", 1),
|
|
1170
|
-
V.value.includes(a) ? (o(), r("span",
|
|
1170
|
+
V.value.includes(a) ? (o(), r("span", ga, " ( " + P(zt(t.proportion * 100)) + " % ) ", 1)) : (o(), r("span", pa, " (" + P(isNaN(t.value / F.value) ? "-" : n(D)(
|
|
1171
1171
|
e.value.style.chart.layout.labels.percentage.formatter,
|
|
1172
1172
|
He.value(t),
|
|
1173
1173
|
n(M)({
|
|
@@ -1176,14 +1176,14 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
1176
1176
|
r: e.value.style.chart.legend.roundingPercentage
|
|
1177
1177
|
})
|
|
1178
1178
|
)) + ") ", 1))
|
|
1179
|
-
], 12,
|
|
1179
|
+
], 12, fa)
|
|
1180
1180
|
]),
|
|
1181
1181
|
_: 2
|
|
1182
1182
|
}, [
|
|
1183
1183
|
l.$slots.pattern ? {
|
|
1184
1184
|
name: "legend-pattern",
|
|
1185
1185
|
fn: C(({ legend: t, index: a }) => [
|
|
1186
|
-
$e(
|
|
1186
|
+
$e(ul, {
|
|
1187
1187
|
shape: t.shape,
|
|
1188
1188
|
radius: 30,
|
|
1189
1189
|
stroke: "none",
|
|
@@ -1258,7 +1258,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
1258
1258
|
f("div", {
|
|
1259
1259
|
innerHTML: t,
|
|
1260
1260
|
style: { display: "flex", "align-items": "center" }
|
|
1261
|
-
}, null, 8,
|
|
1261
|
+
}, null, 8, ma)
|
|
1262
1262
|
]),
|
|
1263
1263
|
td: C(({ td: t }) => [
|
|
1264
1264
|
st(P(t.name ? t.name : isNaN(Number(t)) ? t.includes("%") ? t : n(D)(
|
|
@@ -1285,9 +1285,9 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
1285
1285
|
]),
|
|
1286
1286
|
_: 1
|
|
1287
1287
|
}, 8, ["config"])) : i("", !0)
|
|
1288
|
-
], 46,
|
|
1288
|
+
], 46, rl));
|
|
1289
1289
|
}
|
|
1290
|
-
},
|
|
1290
|
+
}, La = /* @__PURE__ */ nl(ba, [["__scopeId", "data-v-2d2d806a"]]);
|
|
1291
1291
|
export {
|
|
1292
|
-
|
|
1292
|
+
La as default
|
|
1293
1293
|
};
|