vue-data-ui 2.12.3 → 2.12.5
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-7DZD153U.js → Arrow-CD7YT-M0.js} +1 -1
- package/dist/BaseDraggableDialog-BjFEob7i.js +186 -0
- package/dist/{BaseIcon-4Tt-jDsF.js → BaseIcon-CgSWwnK7.js} +1 -1
- package/dist/{ColorPicker-D9cQ_1h3.js → ColorPicker-w8R8Tqdv.js} +3 -3
- package/dist/{DataTable-CXRbXtrU.js → DataTable-CicthvOV.js} +2 -2
- package/dist/{Legend-CMVT8Hmn.js → Legend-0UY0Mmli.js} +4 -4
- package/dist/{PackageVersion-DrcIKw3H.js → PackageVersion-Cw2caN1c.js} +1 -1
- package/dist/{PenAndPaper-B52M1Af-.js → PenAndPaper-DLsvRwoD.js} +3 -3
- package/dist/{Shape-DsC3hyrC.js → Shape-DICeBEtN.js} +1 -1
- package/dist/{Slicer-9d1_C4bi.js → Slicer-D1nsbsWE.js} +2 -2
- package/dist/{Title-9qKNVCMA.js → Title-xO1jFsSw.js} +1 -1
- package/dist/{Tooltip-n2JxyMqg.js → Tooltip-LKe8L-Mg.js} +1 -1
- package/dist/{dom-to-png-mBFxJrIS.js → dom-to-png-CS4NRYd_.js} +1 -1
- package/dist/{img-DrpWNEaa.js → img-CsXjm5I4.js} +1 -1
- package/dist/{index-CK9QG5R4.js → index-vjCxtaM0.js} +441 -393
- package/dist/{pdf-BalkhgZX.js → pdf-DHexTTpK.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +12 -0
- package/dist/types/vue-data-ui.d.ts +12 -0
- package/dist/{useNestedProp-X5zYwXdP.js → useNestedProp-Du1hnYFA.js} +1 -1
- package/dist/{usePrinter-BZsCVIwN.js → usePrinter-CcgJXHIK.js} +3 -3
- package/dist/{vue-data-ui-65FSOU9n.js → vue-data-ui-BOrA3Tc9.js} +63 -63
- package/dist/vue-data-ui.js +23 -23
- package/dist/{vue-ui-3d-bar-CaLDkBVj.js → vue-ui-3d-bar-Z8yAd4bw.js} +9 -9
- package/dist/{vue-ui-accordion-BA3mkouQ.js → vue-ui-accordion-CAN430Oy.js} +3 -3
- package/dist/{vue-ui-age-pyramid-DdlGpZy9.js → vue-ui-age-pyramid-C6PZU9Ez.js} +10 -10
- package/dist/{vue-ui-annotator-CKvRES98.js → vue-ui-annotator-CqoDLx3t.js} +2 -2
- package/dist/{vue-ui-bullet-CdcJXA6l.js → vue-ui-bullet-DZC3aY3d.js} +8 -8
- package/dist/{vue-ui-candlestick-CkllTOUY.js → vue-ui-candlestick-B5mq_lgW.js} +11 -11
- package/dist/{vue-ui-carousel-table-D3vCB81N.js → vue-ui-carousel-table-CBwerU49.js} +4 -4
- package/dist/{vue-ui-chestnut-BE16kanb.js → vue-ui-chestnut-COyOAY28.js} +8 -8
- package/dist/{vue-ui-chord-BpsjJuE7.js → vue-ui-chord-Cw0F_jHM.js} +12 -12
- package/dist/{vue-ui-circle-pack-C438GSXx.js → vue-ui-circle-pack-BtpaZLYs.js} +9 -9
- package/dist/{vue-ui-cursor-a30lAfyb.js → vue-ui-cursor-CWXqmlVy.js} +2 -2
- package/dist/{vue-ui-dashboard-BkRc89ac.js → vue-ui-dashboard-Ba2tF4md.js} +62 -62
- package/dist/{vue-ui-digits-C3f9FAdw.js → vue-ui-digits-BV7yyUdY.js} +2 -2
- package/dist/{vue-ui-donut-Dwsm3xe8.js → vue-ui-donut-CRdQFQgA.js} +103 -103
- package/dist/vue-ui-donut-evolution-De3-5OgR.js +871 -0
- package/dist/{vue-ui-dumbbell-CIICXHWw.js → vue-ui-dumbbell-SDCcLJIc.js} +10 -10
- package/dist/{vue-ui-flow-Bs4GfLdc.js → vue-ui-flow-CrqGSDNK.js} +24 -24
- package/dist/{vue-ui-funnel-CASIJPoW.js → vue-ui-funnel-CcDOoxp8.js} +9 -9
- package/dist/{vue-ui-galaxy-BoTSH1dz.js → vue-ui-galaxy-jlDp0DRJ.js} +32 -32
- package/dist/{vue-ui-gauge-Cfvwu5jW.js → vue-ui-gauge-8t8rWb1C.js} +19 -19
- package/dist/{vue-ui-gizmo-HB1PEZIT.js → vue-ui-gizmo-CFwdrMYP.js} +3 -3
- package/dist/{vue-ui-heatmap-BXQslQxq.js → vue-ui-heatmap-BT-mIeZp.js} +32 -32
- package/dist/{vue-ui-history-plot-qW_cLH2J.js → vue-ui-history-plot-crLloc7J.js} +11 -11
- package/dist/{vue-ui-kpi-CHTFlQmm.js → vue-ui-kpi-96v4ZIYo.js} +3 -3
- package/dist/{vue-ui-mini-loader-CZFa8WdC.js → vue-ui-mini-loader-rBHBxNIT.js} +2 -2
- package/dist/{vue-ui-molecule-2XWcGAxa.js → vue-ui-molecule-DSr_bHGG.js} +22 -22
- package/dist/{vue-ui-mood-radar-B0wwOAcZ.js → vue-ui-mood-radar-DrVSXIY4.js} +11 -11
- package/dist/{vue-ui-nested-donuts-CD47r6S8.js → vue-ui-nested-donuts-C9Ah9lgv.js} +56 -56
- package/dist/{vue-ui-onion-BrefEoKM.js → vue-ui-onion-DwNPyn4X.js} +11 -11
- package/dist/{vue-ui-parallel-coordinate-plot-Ci9k0ZMR.js → vue-ui-parallel-coordinate-plot-tSuK6xWu.js} +36 -36
- package/dist/{vue-ui-quadrant-DRd3t6uQ.js → vue-ui-quadrant-C0Kaoo7K.js} +41 -41
- package/dist/{vue-ui-quick-chart-DVyuMMNZ.js → vue-ui-quick-chart-xMh_Ygct.js} +9 -9
- package/dist/{vue-ui-radar-BMlo5wj_.js → vue-ui-radar-C1jSDQt_.js} +12 -12
- package/dist/{vue-ui-rating-BZLepZbE.js → vue-ui-rating-6Kb7hsKF.js} +11 -11
- package/dist/{vue-ui-relation-circle-BMWf_-ts.js → vue-ui-relation-circle-fh0Hl9m0.js} +7 -7
- package/dist/vue-ui-ridgeline-BBvPVQjC.js +924 -0
- package/dist/{vue-ui-rings-CyN6PZZw.js → vue-ui-rings-B92cXv7f.js} +12 -12
- package/dist/{vue-ui-scatter-Dm24n28E.js → vue-ui-scatter-Bt1aty87.js} +60 -60
- package/dist/{vue-ui-skeleton-CCPLO_mW.js → vue-ui-skeleton-DfOIDTJM.js} +19 -19
- package/dist/{vue-ui-smiley-D5GLTCkV.js → vue-ui-smiley-sVgBnkbx.js} +2 -2
- package/dist/{vue-ui-spark-trend-DM-YH2Vz.js → vue-ui-spark-trend-D6uzJ4Qd.js} +5 -5
- package/dist/{vue-ui-sparkbar-Dp-Vp0Bz.js → vue-ui-sparkbar-D4c2EE7J.js} +4 -4
- package/dist/{vue-ui-sparkgauge-AhGrljqS.js → vue-ui-sparkgauge-DaQ6iz98.js} +9 -9
- package/dist/{vue-ui-sparkhistogram-C_WzbJka.js → vue-ui-sparkhistogram-D_YnmM2T.js} +5 -5
- package/dist/{vue-ui-sparkline-D3TgSaqu.js → vue-ui-sparkline-C2HuTMDz.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-Dx1gnUfv.js → vue-ui-sparkstackbar-DecnmqgJ.js} +5 -5
- package/dist/{vue-ui-stackbar-kPpS5ytk.js → vue-ui-stackbar-D1eNs1j_.js} +13 -13
- package/dist/{vue-ui-strip-plot-DMgQkOFL.js → vue-ui-strip-plot-iPZ8Hhmr.js} +11 -11
- package/dist/{vue-ui-table-DhN_orHh.js → vue-ui-table-BFjE28sw.js} +3 -3
- package/dist/{vue-ui-table-heatmap-CghBmNfB.js → vue-ui-table-heatmap-DipFDu39.js} +4 -4
- package/dist/{vue-ui-table-sparkline-DwZ6dDd7.js → vue-ui-table-sparkline-CGAecOZh.js} +5 -5
- package/dist/{vue-ui-thermometer-Bk2nGclO.js → vue-ui-thermometer-Cx_yr-hs.js} +7 -7
- package/dist/{vue-ui-timer-C7G-xWU0.js → vue-ui-timer-ClVmS8MH.js} +5 -5
- package/dist/{vue-ui-tiremarks-DInEjYlc.js → vue-ui-tiremarks-4Sa3RCSv.js} +7 -7
- package/dist/{vue-ui-treemap-BKvkNCsR.js → vue-ui-treemap-CD5pPg7v.js} +12 -12
- package/dist/{vue-ui-vertical-bar-DiQI4bPT.js → vue-ui-vertical-bar-BHYCnFEN.js} +12 -12
- package/dist/{vue-ui-waffle-z1dbL3gf.js → vue-ui-waffle-DEPUbrOt.js} +27 -27
- package/dist/{vue-ui-wheel-cH-wbQMg.js → vue-ui-wheel-qU0bgJsi.js} +7 -7
- package/dist/{vue-ui-word-cloud-L7hmGLCt.js → vue-ui-word-cloud-z2ZguOdy.js} +49 -49
- package/dist/{vue-ui-world-DNbRBwbT.js → vue-ui-world-DStJ5i0i.js} +11 -11
- package/dist/{vue-ui-xy-CHkLFwbF.js → vue-ui-xy-CEop49z6.js} +16 -16
- package/dist/{vue-ui-xy-canvas-CXZZH9wb.js → vue-ui-xy-canvas-DV0BVdZb.js} +12 -12
- package/package.json +1 -1
- package/dist/vue-ui-donut-evolution-HVTx2TzC.js +0 -948
- package/dist/vue-ui-ridgeline-DoNIDa-r.js +0 -1102
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { useSlots as _t, computed as g, ref as d, onMounted as
|
|
2
|
-
import { u as Ct, o as Tt, e as at, g as Pt, c as At, b as Ft, d as ot, p as
|
|
1
|
+
import { useSlots as _t, computed as g, ref as d, onMounted as Qe, onBeforeUnmount as $t, watch as Ze, createElementBlock as n, openBlock as s, unref as r, normalizeStyle as w, normalizeClass as be, createBlock as q, createCommentVNode as i, renderSlot as p, createElementVNode as f, createVNode as we, createSlots as et, withCtx as C, normalizeProps as ee, guardReactiveProps as te, Fragment as m, renderList as L, mergeProps as tt, toDisplayString as P, createTextVNode as lt, nextTick as xt } from "vue";
|
|
2
|
+
import { u as Ct, o as Tt, e as at, g as Pt, c as At, b as Ft, d as ot, p as J, m as St, _ as Lt, f as N, X as zt, s as ue, w as Ot, j as Mt, M as z, i as D, k as ne, n as k, t as Nt, a as Yt, q as Xt, r as It, x as Dt, S as st } from "./index-vjCxtaM0.js";
|
|
3
3
|
import { t as Vt, u as Bt } from "./useResponsive-JZ9xq-JV.js";
|
|
4
|
-
import { _ as Gt } from "./Title-
|
|
5
|
-
import { u as
|
|
6
|
-
import { D as Ut } from "./DataTable-
|
|
7
|
-
import { _ as jt } from "./Tooltip-
|
|
8
|
-
import { L as Et } from "./Legend-
|
|
9
|
-
import Ht from "./vue-ui-skeleton-
|
|
10
|
-
import qt from "./vue-ui-accordion-
|
|
11
|
-
import { u as ut } from "./useNestedProp-
|
|
12
|
-
import { _ as
|
|
13
|
-
import { _ as
|
|
14
|
-
import { u as
|
|
15
|
-
import { _ as
|
|
4
|
+
import { _ as Gt } from "./Title-xO1jFsSw.js";
|
|
5
|
+
import { u as Wt, U as Rt } from "./usePrinter-CcgJXHIK.js";
|
|
6
|
+
import { D as Ut } from "./DataTable-CicthvOV.js";
|
|
7
|
+
import { _ as jt } from "./Tooltip-LKe8L-Mg.js";
|
|
8
|
+
import { L as Et } from "./Legend-0UY0Mmli.js";
|
|
9
|
+
import Ht from "./vue-ui-skeleton-DfOIDTJM.js";
|
|
10
|
+
import qt from "./vue-ui-accordion-CAN430Oy.js";
|
|
11
|
+
import { u as ut } from "./useNestedProp-Du1hnYFA.js";
|
|
12
|
+
import { _ as Jt } from "./PackageVersion-Cw2caN1c.js";
|
|
13
|
+
import { _ as Kt } from "./PenAndPaper-DLsvRwoD.js";
|
|
14
|
+
import { u as Qt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
15
|
+
import { _ as Zt } from "./Shape-DICeBEtN.js";
|
|
16
16
|
import { u as el } from "./useChartAccessibility-BWojgys7.js";
|
|
17
17
|
import { _ as tl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
18
|
-
const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { key: 1 }, ul = ["id"], nl = ["stop-color"], rl = ["offset", "stop-color"], il = ["offset", "stop-color"], vl = ["stop-color"], cl = { key: 2 }, dl = ["id", "cx", "cy"], hl = ["stop-color", "stop-opacity"], yl = ["stop-color"], fl = ["id"], gl = ["id"], pl = ["id"], ml = ["flood-color"], bl = ["id"], wl = ["flood-color"], kl = ["d", "stroke", "filter"], _l = ["d", "stroke", "filter"], $l = ["cx", "cy", "r", "fill", "filter"], xl = { key: 6 }, Cl = ["stroke", "d"], Tl = { key: 0 }, Pl = ["d", "fill", "stroke", "stroke-width", "filter"], Al = ["d", "fill", "stroke", "stroke-width", "filter"], Fl = { key: 0 }, Sl = ["stroke", "d"], Ll = { key: 0 }, zl = ["d", "stroke", "stroke-width", "filter"], Ol = { key: 1 },
|
|
18
|
+
const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { key: 1 }, ul = ["id"], nl = ["stop-color"], rl = ["offset", "stop-color"], il = ["offset", "stop-color"], vl = ["stop-color"], cl = { key: 2 }, dl = ["id", "cx", "cy"], hl = ["stop-color", "stop-opacity"], yl = ["stop-color"], fl = ["id"], gl = ["id"], pl = ["id"], ml = ["flood-color"], bl = ["id"], wl = ["flood-color"], kl = ["d", "stroke", "filter"], _l = ["d", "stroke", "filter"], $l = ["cx", "cy", "r", "fill", "filter"], xl = { key: 6 }, Cl = ["stroke", "d"], Tl = { key: 0 }, Pl = ["d", "fill", "stroke", "stroke-width", "filter"], Al = ["d", "fill", "stroke", "stroke-width", "filter"], Fl = { key: 0 }, Sl = ["stroke", "d"], Ll = { key: 0 }, zl = ["d", "stroke", "stroke-width", "filter"], Ol = { key: 1 }, Ml = ["d", "fill", "stroke", "stroke-width", "filter"], Nl = ["d", "fill", "stroke", "stroke-width", "filter"], Yl = { key: 1 }, Xl = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Il = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Dl = ["cx", "cy", "r", "stroke"], Vl = ["cx", "cy", "r", "fill"], Bl = { key: 0 }, Gl = ["d", "fill", "onMouseenter", "onClick"], Wl = { key: 1 }, Rl = ["cx", "cy", "r", "fill"], Ul = ["x", "y", "fill", "font-size"], jl = ["x", "y", "fill", "font-size"], El = ["x", "y", "fill", "font-size"], Hl = ["x", "y", "fill", "font-size"], ql = ["filter"], Jl = { key: 0 }, Kl = ["x", "y"], Ql = { key: 1 }, Zl = ["cx", "cy", "fill", "stroke", "filter", "onClick"], ea = ["cx", "cy", "fill", "stroke", "filter", "onClick"], ta = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], la = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], aa = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], oa = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], sa = { key: 2 }, ua = ["x", "y", "width"], na = ["x", "y", "width"], ra = {
|
|
19
19
|
key: 5,
|
|
20
20
|
class: "vue-data-ui-watermark"
|
|
21
21
|
}, ia = ["onClick"], va = {
|
|
@@ -47,7 +47,7 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
47
47
|
return l;
|
|
48
48
|
}
|
|
49
49
|
}), ae = d(null), _e = d(null), $e = d(null), re = d(null), xe = d(null), Ce = d(null), Te = d(0), Pe = d(0), Ae = d(0);
|
|
50
|
-
|
|
50
|
+
Qe(() => {
|
|
51
51
|
Fe();
|
|
52
52
|
}), $t(() => {
|
|
53
53
|
re.value && re.value.disconnect();
|
|
@@ -76,7 +76,7 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
76
76
|
legend: e.value.style.chart.legend.show ? $e.value : null,
|
|
77
77
|
source: xe.value,
|
|
78
78
|
noTitle: Ce.value,
|
|
79
|
-
padding:
|
|
79
|
+
padding: Me.value
|
|
80
80
|
});
|
|
81
81
|
requestAnimationFrame(() => {
|
|
82
82
|
u.value.width = o, u.value.height = t;
|
|
@@ -96,7 +96,7 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
96
96
|
userConfig: Yt.vue_ui_donut[l.theme] || O.config,
|
|
97
97
|
defaultConfig: l
|
|
98
98
|
}),
|
|
99
|
-
customPalette:
|
|
99
|
+
customPalette: Nt[l.theme] || J
|
|
100
100
|
} : l;
|
|
101
101
|
}
|
|
102
102
|
const e = g({
|
|
@@ -110,9 +110,9 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
110
110
|
let b = 0;
|
|
111
111
|
l.forEach((_, x) => {
|
|
112
112
|
setTimeout(() => {
|
|
113
|
-
const
|
|
113
|
+
const W = performance.now();
|
|
114
114
|
function I(se) {
|
|
115
|
-
const de = Math.min((se -
|
|
115
|
+
const de = Math.min((se - W) / o, 1), kt = st(de);
|
|
116
116
|
B.value[x] = _ * kt, B.value = [...B.value], de < 1 ? requestAnimationFrame(I) : (B.value[x] = _, B.value = [...B.value], b += 1, b === v && a());
|
|
117
117
|
}
|
|
118
118
|
requestAnimationFrame(I);
|
|
@@ -120,7 +120,7 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
120
120
|
});
|
|
121
121
|
});
|
|
122
122
|
}
|
|
123
|
-
|
|
123
|
+
Qe(async () => {
|
|
124
124
|
const l = O.dataset.map((o) => o.values.reduce((t, a) => t + a, 0));
|
|
125
125
|
e.value.startAnimation.show && await dt(
|
|
126
126
|
l,
|
|
@@ -128,11 +128,11 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
128
128
|
e.value.startAnimation.staggerMs
|
|
129
129
|
), T.value = !1;
|
|
130
130
|
});
|
|
131
|
-
const { userOptionsVisible: ye, setUserOptionsVisibility: ze, keepUserOptionState: Oe } =
|
|
132
|
-
|
|
131
|
+
const { userOptionsVisible: ye, setUserOptionsVisibility: ze, keepUserOptionState: Oe } = Qt({ config: e.value }), { svgRef: fe } = el({ config: e.value.style.chart.title });
|
|
132
|
+
Ze(() => O.config, (l) => {
|
|
133
133
|
e.value = Le(), ye.value = !e.value.userOptions.showOnChartHover, Fe(), Te.value += 1, Pe.value += 1, Ae.value += 1, h.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, h.value.showTable = e.value.table.show, h.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
134
134
|
}, { deep: !0 });
|
|
135
|
-
const
|
|
135
|
+
const Me = g(() => {
|
|
136
136
|
const { top: l, right: o, bottom: t, left: a } = e.value.style.chart.padding;
|
|
137
137
|
return {
|
|
138
138
|
css: `padding:${l}px ${o}px ${t}px ${a}px`,
|
|
@@ -141,7 +141,7 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
141
141
|
bottom: t,
|
|
142
142
|
left: a
|
|
143
143
|
};
|
|
144
|
-
}), { isPrinting:
|
|
144
|
+
}), { isPrinting: Ne, isImaging: Ye, generatePdf: Xe, generateImage: Ie } = Wt({
|
|
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
|
|
@@ -154,12 +154,12 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
154
154
|
}), u = d({
|
|
155
155
|
height: 360,
|
|
156
156
|
width: 512
|
|
157
|
-
}),
|
|
157
|
+
}), K = g(() => {
|
|
158
158
|
const l = e.value.style.chart.layout.donut.strokeWidth / 512, o = Math.min(u.value.width, u.value.height) * l, t = o > $.value ? $.value : o;
|
|
159
159
|
return Math.max(t, 3);
|
|
160
160
|
}), Ve = rt, G = g(() => O.dataset.map((l, o) => ({
|
|
161
161
|
name: l.name,
|
|
162
|
-
color: ot(l.color) || De.value[o] ||
|
|
162
|
+
color: ot(l.color) || De.value[o] || J[o] || J[o % J.length],
|
|
163
163
|
value: l.values.reduce((t, a) => t + a, 0),
|
|
164
164
|
absoluteValues: l.values,
|
|
165
165
|
comment: l.comment || "",
|
|
@@ -167,8 +167,8 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
167
167
|
seriesIndex: o,
|
|
168
168
|
ghost: !1,
|
|
169
169
|
pattern: `pattern_${y.value}_${o}`
|
|
170
|
-
}))),
|
|
171
|
-
|
|
170
|
+
}))), M = d(G.value);
|
|
171
|
+
Ze(() => G.value, (l) => M.value = l);
|
|
172
172
|
function yt() {
|
|
173
173
|
return G.value.map((l) => ({
|
|
174
174
|
name: l.name,
|
|
@@ -179,27 +179,27 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
179
179
|
const V = d([]), E = d(!1);
|
|
180
180
|
function Be({ from: l, to: o, duration: t, onUpdate: a, onDone: v, easing: b = st }) {
|
|
181
181
|
const _ = performance.now();
|
|
182
|
-
function x(
|
|
183
|
-
const I = Math.min((
|
|
182
|
+
function x(W) {
|
|
183
|
+
const I = Math.min((W - _) / t, 1), se = b(I), de = l + (o - l) * se;
|
|
184
184
|
a(de, I), I < 1 ? requestAnimationFrame(x) : (a(o, 1), v && v());
|
|
185
185
|
}
|
|
186
186
|
requestAnimationFrame(x);
|
|
187
187
|
}
|
|
188
188
|
function Ge(l) {
|
|
189
189
|
const o = G.value.find((v, b) => b === l);
|
|
190
|
-
let a =
|
|
190
|
+
let a = M.value.find((v, b) => b === l).value;
|
|
191
191
|
if (V.value.includes(l)) {
|
|
192
192
|
let b = function() {
|
|
193
|
-
|
|
194
|
-
(x,
|
|
193
|
+
M.value = M.value.map(
|
|
194
|
+
(x, W) => l === W ? { ...x, value: v } : x
|
|
195
195
|
);
|
|
196
196
|
}, _ = function() {
|
|
197
197
|
E.value = !0, Be({
|
|
198
198
|
from: a,
|
|
199
199
|
to: v,
|
|
200
200
|
duration: e.value.serieToggleAnimation.durationMs,
|
|
201
|
-
onUpdate: (x,
|
|
202
|
-
|
|
201
|
+
onUpdate: (x, W) => {
|
|
202
|
+
M.value = M.value.map(
|
|
203
203
|
(I, se) => l === se ? { ...I, value: x } : I
|
|
204
204
|
);
|
|
205
205
|
},
|
|
@@ -213,7 +213,7 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
213
213
|
e.value.serieToggleAnimation.show && e.value.type === "classic" ? _() : b();
|
|
214
214
|
} else if (V.value.length < G.value.length - 1) {
|
|
215
215
|
let v = function() {
|
|
216
|
-
V.value.push(l),
|
|
216
|
+
V.value.push(l), M.value = M.value.map(
|
|
217
217
|
(_, x) => l === x ? { ..._, value: 0 } : _
|
|
218
218
|
);
|
|
219
219
|
}, b = function() {
|
|
@@ -222,8 +222,8 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
222
222
|
to: 0,
|
|
223
223
|
duration: e.value.serieToggleAnimation.durationMs,
|
|
224
224
|
onUpdate: (_, x) => {
|
|
225
|
-
|
|
226
|
-
(
|
|
225
|
+
M.value = M.value.map(
|
|
226
|
+
(W, I) => l === I ? { ...W, value: _ } : W
|
|
227
227
|
);
|
|
228
228
|
},
|
|
229
229
|
onDone: () => {
|
|
@@ -233,13 +233,13 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
233
233
|
};
|
|
234
234
|
e.value.serieToggleAnimation.show && e.value.type === "classic" ? b() : v();
|
|
235
235
|
}
|
|
236
|
-
Ve("selectLegend",
|
|
236
|
+
Ve("selectLegend", R.value.map((v) => ({
|
|
237
237
|
name: v.name,
|
|
238
238
|
color: v.color,
|
|
239
239
|
value: v.value
|
|
240
240
|
})));
|
|
241
241
|
}
|
|
242
|
-
const ft = g(() => O.dataset.reduce((l, o) => l + o.values.reduce((t, a) => t + a, 0), 0)),
|
|
242
|
+
const ft = g(() => O.dataset.reduce((l, o) => l + o.values.reduce((t, a) => t + a, 0), 0)), R = g(() => {
|
|
243
243
|
if (T.value) {
|
|
244
244
|
const l = B.value.map((t, a) => ({
|
|
245
245
|
...G.value[a],
|
|
@@ -254,19 +254,19 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
254
254
|
ghost: !0
|
|
255
255
|
}), l;
|
|
256
256
|
} else
|
|
257
|
-
return
|
|
257
|
+
return M.value.forEach((l, o) => {
|
|
258
258
|
if ([null, void 0].includes(l.values))
|
|
259
259
|
return {
|
|
260
260
|
...l,
|
|
261
261
|
values: []
|
|
262
262
|
};
|
|
263
|
-
}),
|
|
263
|
+
}), M.value.map((l, o) => ({
|
|
264
264
|
...l,
|
|
265
265
|
seriesIndex: o
|
|
266
266
|
})).filter((l, o) => !V.value.includes(o));
|
|
267
|
-
}),
|
|
267
|
+
}), We = g(() => O.dataset.map((l, o) => ({
|
|
268
268
|
name: l.name,
|
|
269
|
-
color: ot(l.color) || De.value[o] ||
|
|
269
|
+
color: ot(l.color) || De.value[o] || J[o] || J[o % J.length],
|
|
270
270
|
value: (l.values || []).reduce((t, a) => t + a, 0),
|
|
271
271
|
shape: "circle",
|
|
272
272
|
patternIndex: o
|
|
@@ -286,8 +286,8 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
286
286
|
})), $ = g(() => {
|
|
287
287
|
const l = Math.min(u.value.width / 3, u.value.height / 3);
|
|
288
288
|
return l < 55 ? 55 : l;
|
|
289
|
-
}), F = g(() => St({ series:
|
|
290
|
-
const l = Math.max(...
|
|
289
|
+
}), F = g(() => St({ series: R.value }, u.value.width / 2, u.value.height / 2, $.value, $.value, 1.99999, 2, 1, 360, 105.25, K.value)), Y = g(() => F.value.filter((l) => !l.ghost)), c = g(() => {
|
|
290
|
+
const l = Math.max(...R.value.map((t) => t.value)), o = R.value.map((t) => t.value / l);
|
|
291
291
|
return Lt({
|
|
292
292
|
series: o,
|
|
293
293
|
center: {
|
|
@@ -298,7 +298,7 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
298
298
|
hasGhost: T.value
|
|
299
299
|
});
|
|
300
300
|
});
|
|
301
|
-
function
|
|
301
|
+
function Q(l) {
|
|
302
302
|
return l.x > u.value.width / 2 + 6 ? "start" : l.x < u.value.width / 2 - 6 ? "end" : "middle";
|
|
303
303
|
}
|
|
304
304
|
function pt(l) {
|
|
@@ -312,7 +312,7 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
312
312
|
return isNaN(t) ? 0 : D(
|
|
313
313
|
e.value.style.chart.layout.labels.percentage.formatter,
|
|
314
314
|
t * 100,
|
|
315
|
-
|
|
315
|
+
N({
|
|
316
316
|
v: t * 100,
|
|
317
317
|
s: "%",
|
|
318
318
|
r: e.value.style.chart.layout.labels.percentage.rounding
|
|
@@ -323,7 +323,7 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
323
323
|
function mt(l) {
|
|
324
324
|
return [...l].map((o) => o.value).reduce((o, t) => o + t, 0);
|
|
325
325
|
}
|
|
326
|
-
const S = g(() =>
|
|
326
|
+
const S = g(() => R.value.map((l) => l.value).reduce((l, o) => l + o, 0)), Re = g(() => S.value / R.value.length), Ue = g(() => (l) => E.value ? l.proportion * 100 : l.value / S.value * 100), pe = d(null), oe = d(!1);
|
|
327
327
|
function je({ datapoint: l, relativeIndex: o, seriesIndex: t, show: a = !1 }) {
|
|
328
328
|
pe.value = { datapoint: l, seriesIndex: t, config: e.value, series: G.value }, ie.value = a, A.value = o;
|
|
329
329
|
let v = "";
|
|
@@ -344,7 +344,7 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
344
344
|
if (v += `<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>`, v += `<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}"/>${vt.pattern ? `<circle cx="30" cy="30" r="30" stroke="none" fill="url(#pattern_${y.value}_${t})"/>` : ""}</svg>`, e.value.style.chart.tooltip.showValue && (v += `<b>${D(
|
|
345
345
|
e.value.style.chart.layout.labels.value.formatter,
|
|
346
346
|
l.value,
|
|
347
|
-
|
|
347
|
+
N({
|
|
348
348
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
349
349
|
v: l.value,
|
|
350
350
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -359,7 +359,7 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
359
359
|
const _ = D(
|
|
360
360
|
e.value.style.chart.layout.labels.percentage.formatter,
|
|
361
361
|
l.proportion * 100,
|
|
362
|
-
|
|
362
|
+
N({
|
|
363
363
|
v: l.proportion * 100,
|
|
364
364
|
s: "%",
|
|
365
365
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
@@ -379,10 +379,10 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
379
379
|
return e.value.useBlurOnHover && ![null, void 0].includes(A.value) && A.value !== l ? `url(#blur_${y.value})` : "";
|
|
380
380
|
}
|
|
381
381
|
const U = g(() => {
|
|
382
|
-
const l =
|
|
382
|
+
const l = R.value.map((t) => ({
|
|
383
383
|
name: t.name,
|
|
384
384
|
color: t.color
|
|
385
|
-
})), o =
|
|
385
|
+
})), o = R.value.map((t) => t.value);
|
|
386
386
|
return { head: l, body: o };
|
|
387
387
|
});
|
|
388
388
|
function Ee() {
|
|
@@ -396,7 +396,7 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
396
396
|
const ve = g(() => {
|
|
397
397
|
const l = [
|
|
398
398
|
' <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>',
|
|
399
|
-
|
|
399
|
+
N({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: S.value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
|
|
400
400
|
"100%"
|
|
401
401
|
], o = U.value.head.map((v, b) => [
|
|
402
402
|
{
|
|
@@ -428,9 +428,9 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
428
428
|
body: o,
|
|
429
429
|
config: t
|
|
430
430
|
};
|
|
431
|
-
}),
|
|
431
|
+
}), Z = d(!1);
|
|
432
432
|
function bt(l) {
|
|
433
|
-
|
|
433
|
+
Z.value = l, Se.value += 1;
|
|
434
434
|
}
|
|
435
435
|
const He = g(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent));
|
|
436
436
|
function wt(l) {
|
|
@@ -442,10 +442,10 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
442
442
|
function qe() {
|
|
443
443
|
h.value.showTable = !h.value.showTable;
|
|
444
444
|
}
|
|
445
|
-
function
|
|
445
|
+
function Je() {
|
|
446
446
|
h.value.dataLabels.show = !h.value.dataLabels.show;
|
|
447
447
|
}
|
|
448
|
-
function
|
|
448
|
+
function Ke() {
|
|
449
449
|
h.value.showTooltip = !h.value.showTooltip;
|
|
450
450
|
}
|
|
451
451
|
const ce = d(!1);
|
|
@@ -458,19 +458,19 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
458
458
|
generateCsv: Ee,
|
|
459
459
|
generateImage: Ie,
|
|
460
460
|
toggleTable: qe,
|
|
461
|
-
toggleLabels:
|
|
462
|
-
toggleTooltip:
|
|
461
|
+
toggleLabels: Je,
|
|
462
|
+
toggleTooltip: Ke,
|
|
463
463
|
toggleAnnotator: me
|
|
464
464
|
}), (l, o) => (s(), n("div", {
|
|
465
465
|
ref_key: "donutChart",
|
|
466
466
|
ref: ae,
|
|
467
|
-
class: be(`vue-ui-donut ${
|
|
467
|
+
class: be(`vue-ui-donut ${Z.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
468
468
|
style: w(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height:100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
469
469
|
id: `donut__${y.value}`,
|
|
470
470
|
onMouseenter: o[6] || (o[6] = () => r(ze)(!0)),
|
|
471
471
|
onMouseleave: o[7] || (o[7] = () => r(ze)(!1))
|
|
472
472
|
}, [
|
|
473
|
-
e.value.userOptions.buttons.annotator && r(fe) ? (s(), q(
|
|
473
|
+
e.value.userOptions.buttons.annotator && r(fe) ? (s(), q(Kt, {
|
|
474
474
|
key: 0,
|
|
475
475
|
color: e.value.style.chart.color,
|
|
476
476
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -506,13 +506,13 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
506
506
|
}
|
|
507
507
|
}, null, 8, ["config"]))
|
|
508
508
|
], 512)) : i("", !0),
|
|
509
|
-
e.value.userOptions.show && le.value && (r(Oe) || r(ye)) ? (s(), q(
|
|
509
|
+
e.value.userOptions.show && le.value && (r(Oe) || r(ye)) ? (s(), q(Rt, {
|
|
510
510
|
ref_key: "details",
|
|
511
511
|
ref: ct,
|
|
512
512
|
key: `user_option_${Se.value}`,
|
|
513
513
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
514
514
|
color: e.value.style.chart.color,
|
|
515
|
-
isPrinting: r(
|
|
515
|
+
isPrinting: r(Ne),
|
|
516
516
|
isImaging: r(Ye),
|
|
517
517
|
uid: y.value,
|
|
518
518
|
hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
|
|
@@ -522,7 +522,7 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
522
522
|
hasTable: e.value.userOptions.buttons.table,
|
|
523
523
|
hasLabel: e.value.userOptions.buttons.labels,
|
|
524
524
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
525
|
-
isFullscreen:
|
|
525
|
+
isFullscreen: Z.value,
|
|
526
526
|
chartElement: ae.value,
|
|
527
527
|
position: e.value.userOptions.position,
|
|
528
528
|
isTooltip: h.value.showTooltip,
|
|
@@ -534,8 +534,8 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
534
534
|
onGenerateCsv: Ee,
|
|
535
535
|
onGenerateImage: r(Ie),
|
|
536
536
|
onToggleTable: qe,
|
|
537
|
-
onToggleLabels:
|
|
538
|
-
onToggleTooltip:
|
|
537
|
+
onToggleLabels: Je,
|
|
538
|
+
onToggleTooltip: Ke,
|
|
539
539
|
onToggleAnnotator: me,
|
|
540
540
|
style: w({
|
|
541
541
|
visibility: r(Oe) ? r(ye) ? "visible" : "hidden" : "visible"
|
|
@@ -610,11 +610,11 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
610
610
|
ref_key: "svgRef",
|
|
611
611
|
ref: fe,
|
|
612
612
|
xmlns: r(zt),
|
|
613
|
-
class: be({ "vue-data-ui-fullscreen--on":
|
|
613
|
+
class: be({ "vue-data-ui-fullscreen--on": Z.value, "vue-data-ui-fulscreen--off": !Z.value }),
|
|
614
614
|
viewBox: `0 0 ${u.value.width <= 0 ? 10 : u.value.width} ${u.value.height <= 0 ? 10 : u.value.height}`,
|
|
615
|
-
style: w(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};${
|
|
615
|
+
style: w(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};${Me.value.css}`)
|
|
616
616
|
}, [
|
|
617
|
-
we(
|
|
617
|
+
we(Jt),
|
|
618
618
|
l.$slots["chart-background"] ? (s(), n("foreignObject", {
|
|
619
619
|
key: 0,
|
|
620
620
|
x: 0,
|
|
@@ -627,7 +627,7 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
627
627
|
}, [
|
|
628
628
|
p(l.$slots, "chart-background", {}, void 0, !0)
|
|
629
629
|
], 8, ol)) : i("", !0),
|
|
630
|
-
e.value.type === "classic" && !isNaN(
|
|
630
|
+
e.value.type === "classic" && !isNaN(K.value / $.value) ? (s(), n("defs", sl, [
|
|
631
631
|
e.value.style.chart.useGradient ? (s(), n("radialGradient", {
|
|
632
632
|
key: 0,
|
|
633
633
|
id: `gradient_${y.value}`
|
|
@@ -638,12 +638,12 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
638
638
|
"stop-opacity": "0"
|
|
639
639
|
}, null, 8, nl),
|
|
640
640
|
f("stop", {
|
|
641
|
-
offset: `${(1 -
|
|
641
|
+
offset: `${(1 - K.value / $.value) * 100}%`,
|
|
642
642
|
"stop-color": r(ue)("#FFFFFF", 0),
|
|
643
643
|
"stop-opacity": "0"
|
|
644
644
|
}, null, 8, rl),
|
|
645
645
|
f("stop", {
|
|
646
|
-
offset: `${(1 -
|
|
646
|
+
offset: `${(1 - K.value / $.value / 2) * 100}%`,
|
|
647
647
|
"stop-color": r(ue)("#FFFFFF", e.value.style.chart.gradientIntensity)
|
|
648
648
|
}, null, 8, il),
|
|
649
649
|
f("stop", {
|
|
@@ -721,7 +721,7 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
721
721
|
e.value.type === "classic" ? (s(!0), n(m, { key: 3 }, L(F.value.filter((t) => !t.ghost), (t, a) => (s(), n("g", null, [
|
|
722
722
|
X(t) && h.value.dataLabels.show ? (s(), n("path", {
|
|
723
723
|
key: 0,
|
|
724
|
-
d: r(
|
|
724
|
+
d: r(Mt)(t, { x: u.value.width / 2, y: u.value.height / 2 }, 16, 16, !1, !1, K.value, 12, e.value.style.chart.layout.curvedMarkers),
|
|
725
725
|
stroke: t.color,
|
|
726
726
|
"stroke-width": "1",
|
|
727
727
|
"stroke-linecap": "round",
|
|
@@ -819,7 +819,7 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
819
819
|
style: w({
|
|
820
820
|
transition: T.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
821
821
|
})
|
|
822
|
-
}, null, 12,
|
|
822
|
+
}, null, 12, Ml))), 256))
|
|
823
823
|
])) : i("", !0),
|
|
824
824
|
(s(!0), n(m, null, L(Y.value, (t, a) => (s(), n("path", {
|
|
825
825
|
class: "vue-ui-donut-arc-path",
|
|
@@ -831,7 +831,7 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
831
831
|
style: w({
|
|
832
832
|
transition: T.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
833
833
|
})
|
|
834
|
-
}, null, 12,
|
|
834
|
+
}, null, 12, Nl))), 256))
|
|
835
835
|
])) : (s(), n("g", Yl, [
|
|
836
836
|
l.$slots.pattern ? (s(), n("circle", {
|
|
837
837
|
key: 0,
|
|
@@ -885,7 +885,7 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
885
885
|
}),
|
|
886
886
|
onClick: (v) => j(t, a)
|
|
887
887
|
}, null, 40, Gl))), 256))
|
|
888
|
-
])) : (s(), n("g",
|
|
888
|
+
])) : (s(), n("g", Wl, [
|
|
889
889
|
f("circle", {
|
|
890
890
|
cx: u.value.width / 2,
|
|
891
891
|
cy: u.value.height / 2,
|
|
@@ -901,7 +901,7 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
901
901
|
ie.value = !1, A.value = null;
|
|
902
902
|
}),
|
|
903
903
|
onClick: o[3] || (o[3] = (t) => j(F.value[0], l.i))
|
|
904
|
-
}, null, 40,
|
|
904
|
+
}, null, 40, Rl)
|
|
905
905
|
]))
|
|
906
906
|
], 64)) : i("", !0),
|
|
907
907
|
e.value.type === "classic" ? (s(), n(m, { key: 12 }, [
|
|
@@ -925,7 +925,7 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
925
925
|
}, P(r(D)(
|
|
926
926
|
e.value.style.chart.layout.labels.hollow.total.value.formatter,
|
|
927
927
|
S.value,
|
|
928
|
-
r(
|
|
928
|
+
r(N)({
|
|
929
929
|
p: e.value.style.chart.layout.labels.hollow.total.value.prefix,
|
|
930
930
|
v: S.value,
|
|
931
931
|
s: e.value.style.chart.layout.labels.hollow.total.value.suffix
|
|
@@ -950,10 +950,10 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
950
950
|
style: w(`font-weight:${e.value.style.chart.layout.labels.hollow.average.value.bold ? "bold" : ""}`)
|
|
951
951
|
}, P(E.value || T.value ? "--" : r(D)(
|
|
952
952
|
e.value.style.chart.layout.labels.hollow.average.value.formatter,
|
|
953
|
-
|
|
954
|
-
r(
|
|
953
|
+
Re.value,
|
|
954
|
+
r(N)({
|
|
955
955
|
p: e.value.style.chart.layout.labels.hollow.average.value.prefix,
|
|
956
|
-
v:
|
|
956
|
+
v: Re.value,
|
|
957
957
|
s: e.value.style.chart.layout.labels.hollow.average.value.suffix,
|
|
958
958
|
r: e.value.style.chart.layout.labels.hollow.average.value.rounding
|
|
959
959
|
})
|
|
@@ -963,7 +963,7 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
963
963
|
filter: H(a),
|
|
964
964
|
class: be({ animated: e.value.useCssAnimation })
|
|
965
965
|
}, [
|
|
966
|
-
e.value.style.chart.layout.labels.dataLabels.useLabelSlots ? (s(), n("g",
|
|
966
|
+
e.value.style.chart.layout.labels.dataLabels.useLabelSlots ? (s(), n("g", Jl, [
|
|
967
967
|
(s(), n("foreignObject", {
|
|
968
968
|
x: r(k)(t, !0).anchor === "end" ? r(k)(t).x - 120 : r(k)(t, !0).anchor === "middle" ? r(k)(t).x - 60 : r(k)(t).x,
|
|
969
969
|
y: r(ne)(t) - (He.value ? 20 : 0),
|
|
@@ -982,8 +982,8 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
982
982
|
percentage: ge(t, Y.value)
|
|
983
983
|
}), void 0, !0)
|
|
984
984
|
])
|
|
985
|
-
], 8,
|
|
986
|
-
])) : (s(), n("g",
|
|
985
|
+
], 8, Kl))
|
|
986
|
+
])) : (s(), n("g", Ql, [
|
|
987
987
|
e.value.type === "classic" ? (s(), n(m, { key: 0 }, [
|
|
988
988
|
X(t) && h.value.dataLabels.show ? (s(), n("circle", {
|
|
989
989
|
key: 0,
|
|
@@ -995,7 +995,7 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
995
995
|
r: 3,
|
|
996
996
|
filter: !e.value.useBlurOnHover || [null, void 0].includes(A.value) || A.value === a ? "" : `url(#blur_${y.value})`,
|
|
997
997
|
onClick: (v) => j(t, a)
|
|
998
|
-
}, null, 8,
|
|
998
|
+
}, null, 8, Zl)) : i("", !0)
|
|
999
999
|
], 64)) : i("", !0),
|
|
1000
1000
|
e.value.type === "polar" ? (s(), n(m, { key: 1 }, [
|
|
1001
1001
|
X(t) && h.value.dataLabels.show ? (s(), n("circle", {
|
|
@@ -1026,7 +1026,7 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
1026
1026
|
}, P(ge(t, Y.value)) + " " + P(e.value.style.chart.layout.labels.value.show ? `(${r(D)(
|
|
1027
1027
|
e.value.style.chart.layout.labels.value.formatter,
|
|
1028
1028
|
t.value,
|
|
1029
|
-
r(
|
|
1029
|
+
r(N)({
|
|
1030
1030
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
1031
1031
|
v: t.value,
|
|
1032
1032
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -1048,7 +1048,7 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
1048
1048
|
e.value.type === "polar" ? (s(), n(m, { key: 3 }, [
|
|
1049
1049
|
X(t) && h.value.dataLabels.show ? (s(), n("text", {
|
|
1050
1050
|
key: 0,
|
|
1051
|
-
"text-anchor":
|
|
1051
|
+
"text-anchor": Q(c.value[a].middlePoint),
|
|
1052
1052
|
x: r(z)({ 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,
|
|
1053
1053
|
y: r(z)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: u.value.width / 2, centerY: u.value.height / 2 }).y,
|
|
1054
1054
|
fill: e.value.style.chart.layout.labels.percentage.color,
|
|
@@ -1061,7 +1061,7 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
1061
1061
|
}, P(ge(t, Y.value)) + " " + P(e.value.style.chart.layout.labels.value.show ? `(${r(D)(
|
|
1062
1062
|
e.value.style.chart.layout.labels.value.formatter,
|
|
1063
1063
|
t.value,
|
|
1064
|
-
r(
|
|
1064
|
+
r(N)({
|
|
1065
1065
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
1066
1066
|
v: t.value,
|
|
1067
1067
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -1071,7 +1071,7 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
1071
1071
|
)})` : ""), 13, aa)) : i("", !0),
|
|
1072
1072
|
X(t) && h.value.dataLabels.show ? (s(), n("text", {
|
|
1073
1073
|
key: 1,
|
|
1074
|
-
"text-anchor":
|
|
1074
|
+
"text-anchor": Q(c.value[a].middlePoint),
|
|
1075
1075
|
x: r(z)({ 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,
|
|
1076
1076
|
y: r(z)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: u.value.width / 2, centerY: u.value.height / 2 }).y + e.value.style.chart.layout.labels.percentage.fontSize,
|
|
1077
1077
|
fill: e.value.style.chart.layout.labels.name.color,
|
|
@@ -1101,7 +1101,7 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
1101
1101
|
], 8, ua)) : i("", !0),
|
|
1102
1102
|
X(t) && e.value.type === "polar" ? (s(), n("foreignObject", {
|
|
1103
1103
|
key: 1,
|
|
1104
|
-
x: e.value.style.chart.comments.offsetX + (
|
|
1104
|
+
x: e.value.style.chart.comments.offsetX + (Q(c.value[a].middlePoint) === "end" ? r(z)({ 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 : Q(c.value[a].middlePoint) === "middle" ? r(z)({ 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 : r(z)({ 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),
|
|
1105
1105
|
y: pt(c.value[a]) + e.value.style.chart.comments.offsetY,
|
|
1106
1106
|
width: e.value.style.chart.comments.width,
|
|
1107
1107
|
height: "200",
|
|
@@ -1113,7 +1113,7 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
1113
1113
|
}, [
|
|
1114
1114
|
f("div", null, [
|
|
1115
1115
|
p(l.$slots, "plot-comment", {
|
|
1116
|
-
plot: { ...t, textAlign:
|
|
1116
|
+
plot: { ...t, textAlign: Q(c.value[a].middlePoint), flexAlign: Q(c.value[a].middlePoint), isFirstLoad: T.value }
|
|
1117
1117
|
}, void 0, !0)
|
|
1118
1118
|
])
|
|
1119
1119
|
], 12, na)) : i("", !0)
|
|
@@ -1122,7 +1122,7 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
1122
1122
|
p(l.$slots, "svg", { svg: u.value }, void 0, !0)
|
|
1123
1123
|
], 14, al)) : i("", !0),
|
|
1124
1124
|
l.$slots.watermark ? (s(), n("div", ra, [
|
|
1125
|
-
p(l.$slots, "watermark", ee(te({ isPrinting: r(
|
|
1125
|
+
p(l.$slots, "watermark", ee(te({ isPrinting: r(Ne) || r(Ye) })), void 0, !0)
|
|
1126
1126
|
])) : i("", !0),
|
|
1127
1127
|
le.value ? i("", !0) : (s(), q(Ht, {
|
|
1128
1128
|
key: 6,
|
|
@@ -1132,7 +1132,7 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
1132
1132
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
1133
1133
|
donut: {
|
|
1134
1134
|
color: "#CCCCCC",
|
|
1135
|
-
strokeWidth:
|
|
1135
|
+
strokeWidth: K.value * 0.8
|
|
1136
1136
|
}
|
|
1137
1137
|
}
|
|
1138
1138
|
}
|
|
@@ -1143,7 +1143,7 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
1143
1143
|
}, [
|
|
1144
1144
|
e.value.style.chart.legend.show ? (s(), q(Et, {
|
|
1145
1145
|
key: `legend_${Ae.value}`,
|
|
1146
|
-
legendSet:
|
|
1146
|
+
legendSet: We.value,
|
|
1147
1147
|
config: gt.value,
|
|
1148
1148
|
onClickMarker: o[4] || (o[4] = ({ i: t }) => Ge(t))
|
|
1149
1149
|
}, et({
|
|
@@ -1155,7 +1155,7 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
1155
1155
|
lt(P(t.name) + ": " + P(r(D)(
|
|
1156
1156
|
e.value.style.chart.layout.labels.value.formatter,
|
|
1157
1157
|
t.value,
|
|
1158
|
-
r(
|
|
1158
|
+
r(N)({
|
|
1159
1159
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
1160
1160
|
v: t.value,
|
|
1161
1161
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -1169,7 +1169,7 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
1169
1169
|
V.value.includes(a) ? (s(), n("span", ca, " ( " + P(wt(t.proportion * 100)) + " % ) ", 1)) : (s(), n("span", va, " (" + P(isNaN(t.value / S.value) ? "-" : r(D)(
|
|
1170
1170
|
e.value.style.chart.layout.labels.percentage.formatter,
|
|
1171
1171
|
Ue.value(t),
|
|
1172
|
-
r(
|
|
1172
|
+
r(N)({
|
|
1173
1173
|
v: Ue.value(t),
|
|
1174
1174
|
s: "%",
|
|
1175
1175
|
r: e.value.style.chart.legend.roundingPercentage
|
|
@@ -1182,7 +1182,7 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
1182
1182
|
l.$slots.pattern ? {
|
|
1183
1183
|
name: "legend-pattern",
|
|
1184
1184
|
fn: C(({ legend: t, index: a }) => [
|
|
1185
|
-
we(
|
|
1185
|
+
we(Zt, {
|
|
1186
1186
|
shape: t.shape,
|
|
1187
1187
|
radius: 30,
|
|
1188
1188
|
stroke: "none",
|
|
@@ -1193,7 +1193,7 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
1193
1193
|
key: "0"
|
|
1194
1194
|
} : void 0
|
|
1195
1195
|
]), 1032, ["legendSet", "config"])) : i("", !0),
|
|
1196
|
-
p(l.$slots, "legend", { legend:
|
|
1196
|
+
p(l.$slots, "legend", { legend: We.value }, void 0, !0)
|
|
1197
1197
|
], 512),
|
|
1198
1198
|
l.$slots.source ? (s(), n("div", {
|
|
1199
1199
|
key: 7,
|
|
@@ -1217,7 +1217,7 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
1217
1217
|
parent: ae.value,
|
|
1218
1218
|
content: he.value,
|
|
1219
1219
|
isCustom: oe.value,
|
|
1220
|
-
isFullscreen:
|
|
1220
|
+
isFullscreen: Z.value
|
|
1221
1221
|
}, {
|
|
1222
1222
|
"tooltip-before": C(() => [
|
|
1223
1223
|
p(l.$slots, "tooltip-before", ee(te({ ...pe.value })), void 0, !0)
|
|
@@ -1263,7 +1263,7 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
1263
1263
|
lt(P(t.name ? t.name : isNaN(Number(t)) ? t.includes("%") ? t : r(D)(
|
|
1264
1264
|
e.value.style.chart.layout.labels.percentage.formatter,
|
|
1265
1265
|
t,
|
|
1266
|
-
r(
|
|
1266
|
+
r(N)({
|
|
1267
1267
|
v: t,
|
|
1268
1268
|
s: "%",
|
|
1269
1269
|
r: e.value.style.chart.layout.labels.percentage.rounding
|
|
@@ -1271,7 +1271,7 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = { k
|
|
|
1271
1271
|
) : r(D)(
|
|
1272
1272
|
e.value.style.chart.layout.labels.value.formatter,
|
|
1273
1273
|
t,
|
|
1274
|
-
r(
|
|
1274
|
+
r(N)({
|
|
1275
1275
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
1276
1276
|
v: t,
|
|
1277
1277
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|