vue-data-ui 3.4.8 → 3.5.0
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 +88 -37
- package/dist/{PackageVersion-D-auaEEJ.js → PackageVersion-Cyx_s25h.js} +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/style.css +1 -1
- package/dist/{vue-data-ui-CzqHcPqG.js → vue-data-ui-DxgRqCAo.js} +104 -98
- package/dist/vue-data-ui.js +54 -54
- package/dist/{vue-ui-3d-bar-CwXiD8zD.js → vue-ui-3d-bar-DmNJp8SY.js} +1 -1
- package/dist/{vue-ui-age-pyramid-DlEPlWmV.js → vue-ui-age-pyramid-CPAP3sNY.js} +1 -1
- package/dist/{vue-ui-bullet-DtzpeIu4.js → vue-ui-bullet-Ce6uvCQJ.js} +1 -1
- package/dist/{vue-ui-candlestick-DzoiyaeB.js → vue-ui-candlestick-DewevWV_.js} +1 -1
- package/dist/{vue-ui-carousel-table-BqRERrjs.js → vue-ui-carousel-table-Dv1CDfE5.js} +1 -1
- package/dist/{vue-ui-chestnut-CzBGckif.js → vue-ui-chestnut-D9sdFZ4E.js} +1 -1
- package/dist/{vue-ui-chord-B4waG93A.js → vue-ui-chord-BG4dxKNA.js} +1 -1
- package/dist/{vue-ui-circle-pack-DiTw_p5r.js → vue-ui-circle-pack-Be74QB_0.js} +1 -1
- package/dist/{vue-ui-dashboard-Bt-MUKqy.js → vue-ui-dashboard-C4BLwHey.js} +54 -54
- package/dist/{vue-ui-donut-Bc492JeS.js → vue-ui-donut-BRGFcgxS.js} +542 -526
- package/dist/{vue-ui-donut-evolution-D6TaZK2x.js → vue-ui-donut-evolution-DJ0C-7jH.js} +364 -348
- package/dist/{vue-ui-dumbbell-BlZr68Sq.js → vue-ui-dumbbell-iQJ0BUhm.js} +1 -1
- package/dist/{vue-ui-flow-ByEP18dA.js → vue-ui-flow-CTYFoib3.js} +1 -1
- package/dist/{vue-ui-funnel-BU7d_U6T.js → vue-ui-funnel-CG55Xcdy.js} +1 -1
- package/dist/{vue-ui-galaxy-CpVrxaTr.js → vue-ui-galaxy-BQrxjKZJ.js} +221 -205
- package/dist/{vue-ui-gauge-B9Z4EXoj.js → vue-ui-gauge-Tc-0NI0Y.js} +1 -1
- package/dist/{vue-ui-gizmo-T1paJEJ3.js → vue-ui-gizmo-P8h-gnLd.js} +1 -1
- package/dist/{vue-ui-heatmap-Uw83eEMz.js → vue-ui-heatmap-BZimPzsL.js} +1 -1
- package/dist/{vue-ui-history-plot-C93VwVCY.js → vue-ui-history-plot-BVzbuqYY.js} +383 -367
- package/dist/{vue-ui-molecule-CFMWwXFN.js → vue-ui-molecule-BALqwB8c.js} +1 -1
- package/dist/{vue-ui-mood-radar-FkVaaOVG.js → vue-ui-mood-radar-QJ5nlZby.js} +1 -1
- package/dist/{vue-ui-nested-donuts-Cyi98NXq.js → vue-ui-nested-donuts-CmUabkkQ.js} +404 -384
- package/dist/{vue-ui-onion-BCENNhsY.js → vue-ui-onion-DAOCf3f8.js} +331 -309
- package/dist/{vue-ui-parallel-coordinate-plot-Dca9wkD0.js → vue-ui-parallel-coordinate-plot-D8jTuFjq.js} +378 -361
- package/dist/{vue-ui-quadrant-CEtFEZT3.js → vue-ui-quadrant-CO52mSRY.js} +428 -411
- package/dist/{vue-ui-quick-chart-bqcp6BIl.js → vue-ui-quick-chart-DEaVSldE.js} +1 -1
- package/dist/{vue-ui-radar-lgRCmyNP.js → vue-ui-radar-C5V4hhbW.js} +393 -374
- package/dist/{vue-ui-relation-circle-cRRrbaIT.js → vue-ui-relation-circle-CbMM0Jka.js} +1 -1
- package/dist/{vue-ui-ridgeline-CaeFJq9a.js → vue-ui-ridgeline-CXCIRDq6.js} +454 -438
- package/dist/{vue-ui-rings-DbsYfGjx.js → vue-ui-rings-BpUcyqo7.js} +285 -263
- package/dist/{vue-ui-scatter-DcMnoNrY.js → vue-ui-scatter--Dxe-hfO.js} +629 -613
- package/dist/{vue-ui-skeleton-b5fdgyHv.js → vue-ui-skeleton-BWq-VDzg.js} +1 -1
- package/dist/{vue-ui-spark-trend-DrQ26BzL.js → vue-ui-spark-trend-T4J_YOa_.js} +1 -1
- package/dist/{vue-ui-sparkbar-BlvXLcfO.js → vue-ui-sparkbar-DnKP55Vu.js} +1 -1
- package/dist/{vue-ui-sparkgauge-CQmNePxu.js → vue-ui-sparkgauge-BDQLP-zi.js} +1 -1
- package/dist/{vue-ui-sparkhistogram-CJatqy8x.js → vue-ui-sparkhistogram-Dm7QXrA-.js} +1 -1
- package/dist/{vue-ui-sparkline-5m7hFiMq.js → vue-ui-sparkline-tXGDLHRy.js} +1 -1
- package/dist/vue-ui-sparkstackbar-M53Nt07M.js +441 -0
- package/dist/{vue-ui-stackbar-WrexTg8_.js → vue-ui-stackbar-CkBOjryQ.js} +438 -421
- package/dist/{vue-ui-strip-plot-DqX7yya9.js → vue-ui-strip-plot-BX9i3wMn.js} +1 -1
- package/dist/{vue-ui-table-BhrP9BCp.js → vue-ui-table-7r02N9R9.js} +2 -2
- package/dist/{vue-ui-table-sparkline-BECa8n5_.js → vue-ui-table-sparkline-DZaAh10E.js} +1 -1
- package/dist/{vue-ui-thermometer-BxBGrsSR.js → vue-ui-thermometer-CFPt3MOv.js} +1 -1
- package/dist/{vue-ui-timer-BbHY5Ed5.js → vue-ui-timer-Ds-MJoW2.js} +1 -1
- package/dist/{vue-ui-tiremarks-DzL3Sc1f.js → vue-ui-tiremarks-2eIQ6vxu.js} +1 -1
- package/dist/{vue-ui-treemap-DoHoS5NK.js → vue-ui-treemap-BEvl8hiw.js} +500 -484
- package/dist/{vue-ui-vertical-bar-D0N5btU-.js → vue-ui-vertical-bar-D8dtM8sw.js} +350 -334
- package/dist/{vue-ui-waffle-CTt7dxCY.js → vue-ui-waffle-B3q-2SCR.js} +302 -286
- package/dist/{vue-ui-wheel--TIPvQ9I.js → vue-ui-wheel-BpirIgAG.js} +1 -1
- package/dist/{vue-ui-word-cloud-D5pZq4Jq.js → vue-ui-word-cloud-ChT7uLbN.js} +1 -1
- package/dist/{vue-ui-world-BERHgePa.js → vue-ui-world-CdP4g_3_.js} +1 -1
- package/dist/{vue-ui-xy-BI5stV8f.js → vue-ui-xy-B68qQ-gX.js} +1089 -1073
- package/dist/{vue-ui-xy-canvas-DXnLFwW3.js → vue-ui-xy-canvas-DDngEA1s.js} +338 -322
- package/package.json +1 -1
- package/dist/vue-ui-sparkstackbar-Z5g6L2Hj.js +0 -424
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { defineAsyncComponent as z, computed as
|
|
2
|
-
import { c as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import { u as
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import { t as
|
|
13
|
-
import
|
|
14
|
-
import { _ as
|
|
15
|
-
const
|
|
1
|
+
import { defineAsyncComponent as z, computed as m, ref as c, toRefs as vl, watch as ae, onMounted as cl, shallowRef as wt, onBeforeUnmount as hl, createElementBlock as r, openBlock as u, unref as i, normalizeStyle as he, normalizeClass as M, createBlock as B, createCommentVNode as C, createElementVNode as y, createVNode as Ve, createSlots as $t, withCtx as L, renderSlot as _, normalizeProps as Q, guardReactiveProps as J, Fragment as A, renderList as T, toDisplayString as I, withDirectives as kt, vShow as Ct, Teleport as fl, resolveDynamicComponent as pl, mergeProps as yl, createTextVNode as Lt, nextTick as xt } from "vue";
|
|
2
|
+
import { c as gl, t as bl, b as ml, p as ze, O as Me, o as wl, f as K, e as $l, a1 as E, h as kl, T as Be, a as oe, d as F, X as Cl, s as Ll, I as _t, W as Ee, Y as Z, G as At, P as xl, Q as _l, H as Al, a0 as Tt, x as Ue } from "./lib-C_mNZmhD.js";
|
|
3
|
+
import { t as Tl, u as Sl } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Ol, a as St } from "./useNestedProp-BjZe1Y85.js";
|
|
5
|
+
import { u as Fl, B as Nl } from "./BaseScanner-BgWxam9d.js";
|
|
6
|
+
import { u as Dl } from "./usePrinter-DTzqpYKF.js";
|
|
7
|
+
import { u as Il } from "./useSvgExport-DrjCWun4.js";
|
|
8
|
+
import { u as Pl } from "./useUserOptionState-BIvW1Kz7.js";
|
|
9
|
+
import { u as Vl } from "./useChartAccessibility-9icAAmYg.js";
|
|
10
|
+
import zl from "./img-BecE5qXd.js";
|
|
11
|
+
import Ml from "./Title-l36lOBMx.js";
|
|
12
|
+
import { t as Bl } from "./themes-AUNCOb2G.js";
|
|
13
|
+
import El from "./Legend-G6GMcdAc.js";
|
|
14
|
+
import { _ as Ul } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
|
+
const Rl = ["id"], Gl = ["id"], Yl = ["xmlns", "viewBox"], Wl = ["width", "height"], Xl = ["id"], Hl = ["offset", "stop-color"], ql = ["offset", "stop-opacity"], Ql = ["id"], Jl = ["id"], Kl = ["id"], Zl = ["flood-color"], jl = ["id", "d"], ea = ["d", "fill", "stroke", "stroke-width", "filter"], ta = ["d", "fill", "stroke", "stroke-width"], la = { key: 1 }, aa = ["d", "fill"], oa = { key: 2 }, sa = ["font-size", "font-weight", "fill", "dy"], ua = ["href"], na = ["x", "y", "font-size", "font-weight", "fill"], ra = { key: 3 }, ia = ["filter"], da = ["opacity", "text-anchor", "x", "y", "fill", "font-size", "font-weight"], va = ["opacity", "text-anchor", "x", "y", "fill", "font-size", "font-weight"], ca = ["text-anchor", "x", "y", "fill", "font-size", "font-weight"], ha = ["d", "fill", "onMouseenter", "onClick", "onMouseleave"], fa = {
|
|
16
16
|
key: 4,
|
|
17
17
|
class: "vue-data-ui-watermark"
|
|
18
|
-
},
|
|
18
|
+
}, pa = ["id"], ya = {
|
|
19
19
|
key: 0,
|
|
20
20
|
class: "vue-ui-nested-donuts-legend-title"
|
|
21
|
-
},
|
|
21
|
+
}, ga = ["onClick"], ba = ["innerHTML"], ma = {
|
|
22
22
|
__name: "vue-ui-nested-donuts",
|
|
23
23
|
props: {
|
|
24
24
|
config: {
|
|
@@ -35,19 +35,19 @@ const Bl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Ul = ["width", "heigh
|
|
|
35
35
|
}
|
|
36
36
|
},
|
|
37
37
|
emits: ["selectLegend", "selectDatapoint"],
|
|
38
|
-
setup(
|
|
39
|
-
const
|
|
38
|
+
setup(Ot, { expose: Ft, emit: Nt }) {
|
|
39
|
+
const Dt = z(() => import("./Tooltip-oWCO1HKy.js")), It = z(() => import("./BaseIcon-BmMbm4d0.js")), Pt = z(() => import("./vue-ui-accordion-CZ0thhxa.js")), Vt = z(() => import("./DataTable-BT7VF2ua.js")), zt = z(() => import("./UserOptions-CGnQt6Fd.js")), Mt = z(() => import("./PenAndPaper-DSvu9dwa.js")), Bt = z(() => import("./PackageVersion-Cyx_s25h.js")), Et = z(() => import("./BaseDraggableDialog-ymf2sfB8.js")), { vue_ui_nested_donuts: Ut } = Ol(), $ = Ot, fe = m({
|
|
40
40
|
get() {
|
|
41
|
-
return
|
|
41
|
+
return !!$.dataset && $.dataset.length;
|
|
42
42
|
},
|
|
43
43
|
set(t) {
|
|
44
44
|
return t;
|
|
45
45
|
}
|
|
46
|
-
}), p = c(
|
|
46
|
+
}), p = c(gl()), pe = c(!1), ye = c(""), ge = c(null), Re = c(0), N = c(null), Ge = c(null), be = c(null), Ye = c(null), We = c(null), Xe = c(0), He = c(0), qe = c(0), U = c(!0), R = c([]), j = c([]), Qe = c(!1), ee = c(null), me = c(null), G = c(!1);
|
|
47
47
|
function Je(t) {
|
|
48
|
-
G.value = t,
|
|
48
|
+
G.value = t, Re.value += 1;
|
|
49
49
|
}
|
|
50
|
-
const e = c(
|
|
50
|
+
const e = c(Ce()), Ke = {
|
|
51
51
|
name: "",
|
|
52
52
|
series: [
|
|
53
53
|
{
|
|
@@ -66,17 +66,17 @@ const Bl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Ul = ["width", "heigh
|
|
|
66
66
|
color: "#CACACA"
|
|
67
67
|
}
|
|
68
68
|
]
|
|
69
|
-
}, { loading:
|
|
70
|
-
...
|
|
69
|
+
}, { loading: we, FINAL_DATASET: Y, manualLoading: $e } = Fl({
|
|
70
|
+
...vl($),
|
|
71
71
|
FINAL_CONFIG: e,
|
|
72
|
-
prepareConfig:
|
|
72
|
+
prepareConfig: Ce,
|
|
73
73
|
callback: () => {
|
|
74
74
|
Promise.resolve().then(async () => {
|
|
75
75
|
await tt();
|
|
76
76
|
});
|
|
77
77
|
},
|
|
78
78
|
skeletonDataset: [Ke, Ke],
|
|
79
|
-
skeletonConfig:
|
|
79
|
+
skeletonConfig: bl({
|
|
80
80
|
defaultConfig: e.value,
|
|
81
81
|
userConfig: {
|
|
82
82
|
useCssAnimation: !1,
|
|
@@ -102,31 +102,31 @@ const Bl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Ul = ["width", "heigh
|
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
104
|
})
|
|
105
|
-
}), { userOptionsVisible:
|
|
105
|
+
}), { userOptionsVisible: ke, setUserOptionsVisibility: Ze, keepUserOptionState: je } = Pl({ config: e.value }), { svgRef: te } = Vl({
|
|
106
106
|
config: e.value.style.chart.title
|
|
107
107
|
});
|
|
108
|
-
function
|
|
109
|
-
const t =
|
|
110
|
-
userConfig:
|
|
111
|
-
defaultConfig:
|
|
108
|
+
function Ce() {
|
|
109
|
+
const t = St({
|
|
110
|
+
userConfig: $.config,
|
|
111
|
+
defaultConfig: Ut
|
|
112
112
|
});
|
|
113
113
|
let s = {};
|
|
114
114
|
return t.theme ? s = {
|
|
115
|
-
...
|
|
116
|
-
userConfig:
|
|
115
|
+
...St({
|
|
116
|
+
userConfig: Bl.vue_ui_nested_donuts[t.theme] || $.config,
|
|
117
117
|
defaultConfig: t
|
|
118
118
|
}),
|
|
119
|
-
customPalette:
|
|
120
|
-
} : s = t,
|
|
119
|
+
customPalette: ml[t.theme] || ze
|
|
120
|
+
} : s = t, $.config && Me($.config, "events.datapointEnter") ? s.events.datapointEnter = $.config.events.datapointEnter : s.events.datapointEnter = null, $.config && Me($.config, "events.datapointLeave") ? s.events.datapointLeave = $.config.events.datapointLeave : s.events.datapointLeave = null, $.config && Me($.config, "events.datapointClick") ? s.events.datapointClick = $.config.events.datapointClick : s.events.datapointClick = null, s;
|
|
121
121
|
}
|
|
122
|
-
|
|
123
|
-
() =>
|
|
122
|
+
ae(
|
|
123
|
+
() => $.config,
|
|
124
124
|
(t) => {
|
|
125
|
-
|
|
125
|
+
we.value || (e.value = Ce()), ke.value = !e.value.userOptions.showOnChartHover, lt(), Xe.value += 1, He.value += 1, qe.value += 1, x.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, x.value.showTable = e.value.table.show, x.value.showTooltip = e.value.style.chart.tooltip.show, h.value.width = e.value.style.chart.width, h.value.height = e.value.style.chart.height;
|
|
126
126
|
},
|
|
127
127
|
{ deep: !0 }
|
|
128
128
|
);
|
|
129
|
-
const et =
|
|
129
|
+
const et = m(() => {
|
|
130
130
|
const { top: t, right: s, bottom: a, left: o } = e.value.style.chart.padding;
|
|
131
131
|
return {
|
|
132
132
|
css: `padding:${t}px ${s}px ${a}px ${o}px`,
|
|
@@ -139,35 +139,35 @@ const Bl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Ul = ["width", "heigh
|
|
|
139
139
|
function Rt(t, s = 1e3, a = 50) {
|
|
140
140
|
return new Promise((o) => {
|
|
141
141
|
const l = t.length;
|
|
142
|
-
|
|
142
|
+
R.value = Array(l).fill(0), j.value = [];
|
|
143
143
|
let n = 0;
|
|
144
144
|
t.forEach((v, f) => {
|
|
145
145
|
setTimeout(() => {
|
|
146
|
-
const
|
|
146
|
+
const w = performance.now();
|
|
147
147
|
function d(g) {
|
|
148
|
-
const S = Math.min((g -
|
|
149
|
-
|
|
150
|
-
const
|
|
148
|
+
const S = Math.min((g - w) / s, 1), Se = Tt(S), Oe = v * Se;
|
|
149
|
+
R.value[f] = Oe, R.value = [...R.value];
|
|
150
|
+
const ve = [];
|
|
151
151
|
let Fe = 0;
|
|
152
|
-
|
|
153
|
-
const
|
|
154
|
-
(
|
|
152
|
+
$.dataset.forEach((ce, Ne) => {
|
|
153
|
+
const nl = Ue(ce.series.reduce(
|
|
154
|
+
(Ie, Pe) => Ie + Ue(E(Pe.values).reduce((il, dl) => il + dl, 0)),
|
|
155
155
|
0
|
|
156
|
-
)),
|
|
157
|
-
|
|
156
|
+
)), rl = Ue(R.value.slice(Fe, Fe + ce.series.length).reduce((Ie, Pe) => Ie + Pe, 0)), De = nl - rl;
|
|
157
|
+
De > Number.MIN_VALUE && ve.push({
|
|
158
158
|
name: "__ghost__",
|
|
159
|
-
arcOf:
|
|
160
|
-
arcOfId: `${p.value}_${
|
|
161
|
-
id: `ghost_${p.value}_${
|
|
159
|
+
arcOf: ce.name,
|
|
160
|
+
arcOfId: `${p.value}_${Ne}`,
|
|
161
|
+
id: `ghost_${p.value}_${Ne}`,
|
|
162
162
|
seriesIndex: -1,
|
|
163
|
-
datasetIndex:
|
|
163
|
+
datasetIndex: Ne,
|
|
164
164
|
color: "transparent",
|
|
165
|
-
value:
|
|
166
|
-
fullValue:
|
|
165
|
+
value: De,
|
|
166
|
+
fullValue: De,
|
|
167
167
|
absoluteValues: [],
|
|
168
168
|
ghost: !0
|
|
169
|
-
}), Fe +=
|
|
170
|
-
}),
|
|
169
|
+
}), Fe += ce.series.length;
|
|
170
|
+
}), j.value = ve, S < 1 ? requestAnimationFrame(d) : (n += 1, n === l && o());
|
|
171
171
|
}
|
|
172
172
|
requestAnimationFrame(d);
|
|
173
173
|
}, f * a);
|
|
@@ -179,9 +179,9 @@ const Bl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Ul = ["width", "heigh
|
|
|
179
179
|
const s = Y.value.flatMap((a) => a.series).map(
|
|
180
180
|
(a) => E(a.values).reduce((o, l) => o + l, 0)
|
|
181
181
|
);
|
|
182
|
-
|
|
182
|
+
R.value = s.map(() => 0), U.value = !0, j.value = Y.value.map((a, o) => {
|
|
183
183
|
const l = a.series.reduce(
|
|
184
|
-
(n, v) => n + E(v.values).reduce((f,
|
|
184
|
+
(n, v) => n + E(v.values).reduce((f, w) => f + w, 0),
|
|
185
185
|
0
|
|
186
186
|
);
|
|
187
187
|
return {
|
|
@@ -197,31 +197,31 @@ const Bl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Ul = ["width", "heigh
|
|
|
197
197
|
absoluteValues: [],
|
|
198
198
|
ghost: !0
|
|
199
199
|
};
|
|
200
|
-
}), await
|
|
200
|
+
}), await xt(), Rt(
|
|
201
201
|
s,
|
|
202
202
|
e.value.startAnimation.durationMs,
|
|
203
203
|
e.value.startAnimation.staggerMs
|
|
204
204
|
).then(() => {
|
|
205
|
-
|
|
205
|
+
U.value = !1, j.value = [];
|
|
206
206
|
});
|
|
207
207
|
} else
|
|
208
|
-
|
|
208
|
+
U.value = !1;
|
|
209
209
|
}
|
|
210
|
-
|
|
210
|
+
cl(async () => {
|
|
211
211
|
Qe.value = !0, lt(), await tt();
|
|
212
212
|
});
|
|
213
|
-
const P =
|
|
213
|
+
const P = wt(null), X = wt(null), H = m(() => !!e.value.debug);
|
|
214
214
|
function lt() {
|
|
215
|
-
if (
|
|
215
|
+
if (wl($.dataset) ? (K({
|
|
216
216
|
componentName: "VueUiNestedDonuts",
|
|
217
217
|
type: "dataset",
|
|
218
|
-
debug:
|
|
219
|
-
}),
|
|
220
|
-
const t =
|
|
221
|
-
const { width: s, height: a } =
|
|
222
|
-
chart:
|
|
218
|
+
debug: H.value
|
|
219
|
+
}), fe.value = !1, $e.value = !0) : $e.value = e.value.loading, e.value.responsive) {
|
|
220
|
+
const t = Tl(() => {
|
|
221
|
+
const { width: s, height: a } = Sl({
|
|
222
|
+
chart: N.value,
|
|
223
223
|
title: e.value.style.chart.title.text ? Ge.value : null,
|
|
224
|
-
legend: e.value.style.chart.legend.show ?
|
|
224
|
+
legend: e.value.style.chart.legend.show ? be.value : null,
|
|
225
225
|
source: Ye.value,
|
|
226
226
|
noTitle: We.value,
|
|
227
227
|
padding: et.value
|
|
@@ -230,25 +230,25 @@ const Bl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Ul = ["width", "heigh
|
|
|
230
230
|
h.value.width = s, h.value.height = a;
|
|
231
231
|
});
|
|
232
232
|
});
|
|
233
|
-
P.value && (
|
|
233
|
+
P.value && (X.value && P.value.unobserve(X.value), P.value.disconnect()), P.value = new ResizeObserver(t), X.value = N.value.parentNode, P.value.observe(X.value);
|
|
234
234
|
}
|
|
235
235
|
}
|
|
236
|
-
|
|
237
|
-
P.value && (
|
|
236
|
+
hl(() => {
|
|
237
|
+
P.value && (X.value && P.value.unobserve(X.value), P.value.disconnect());
|
|
238
238
|
});
|
|
239
|
-
const { isPrinting: at, isImaging: ot, generatePdf: st, generateImage: ut } =
|
|
239
|
+
const { isPrinting: at, isImaging: ot, generatePdf: st, generateImage: ut } = Dl({
|
|
240
240
|
elementId: `nested_donuts_${p.value}`,
|
|
241
241
|
fileName: e.value.style.chart.title.text || "vue-ui-nested-donuts",
|
|
242
242
|
options: e.value.userOptions.print
|
|
243
|
-
}),
|
|
243
|
+
}), Gt = m(() => e.value.userOptions.show && !e.value.style.chart.title.text), Yt = m(() => $l(e.value.customPalette)), x = c({
|
|
244
244
|
dataLabels: {
|
|
245
245
|
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
246
246
|
},
|
|
247
247
|
showTable: e.value.table.show,
|
|
248
248
|
showTooltip: e.value.style.chart.tooltip.show
|
|
249
249
|
});
|
|
250
|
-
|
|
251
|
-
|
|
250
|
+
ae(e, () => {
|
|
251
|
+
x.value = {
|
|
252
252
|
dataLabels: {
|
|
253
253
|
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
254
254
|
},
|
|
@@ -259,8 +259,8 @@ const Bl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Ul = ["width", "heigh
|
|
|
259
259
|
const h = c({
|
|
260
260
|
width: e.value.style.chart.width,
|
|
261
261
|
height: e.value.style.chart.height
|
|
262
|
-
}), nt =
|
|
263
|
-
function
|
|
262
|
+
}), nt = Nt;
|
|
263
|
+
function Wt({ datapoint: t, index: s, seriesIndex: a }) {
|
|
264
264
|
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: a }), nt("selectDatapoint", { datapoint: t, index: s });
|
|
265
265
|
}
|
|
266
266
|
function rt({
|
|
@@ -269,56 +269,56 @@ const Bl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Ul = ["width", "heigh
|
|
|
269
269
|
duration: a,
|
|
270
270
|
onUpdate: o,
|
|
271
271
|
onDone: l,
|
|
272
|
-
easing: n =
|
|
272
|
+
easing: n = Tt
|
|
273
273
|
}) {
|
|
274
274
|
const v = performance.now();
|
|
275
|
-
function f(
|
|
276
|
-
const d = Math.min((
|
|
275
|
+
function f(w) {
|
|
276
|
+
const d = Math.min((w - v) / a, 1), g = n(d), S = t + (s - t) * g;
|
|
277
277
|
o(S, d), d < 1 ? requestAnimationFrame(f) : (o(s, 1), l && l());
|
|
278
278
|
}
|
|
279
279
|
requestAnimationFrame(f);
|
|
280
280
|
}
|
|
281
|
-
const
|
|
282
|
-
|
|
283
|
-
[null, void 0].includes(s.name) &&
|
|
281
|
+
const b = c([]), O = m(() => {
|
|
282
|
+
we.value, Y.value.forEach((s, a) => {
|
|
283
|
+
[null, void 0].includes(s.name) && K({
|
|
284
284
|
componentName: "VueUiNestedDonuts",
|
|
285
285
|
type: "datasetSerieAttribute",
|
|
286
286
|
property: "name",
|
|
287
287
|
index: a,
|
|
288
|
-
debug:
|
|
289
|
-
}), [null, void 0].includes(s.series) ?
|
|
288
|
+
debug: H.value
|
|
289
|
+
}), [null, void 0].includes(s.series) ? K({
|
|
290
290
|
componentName: "VueUiNestedDonuts",
|
|
291
291
|
type: "datasetSerieAttribute",
|
|
292
292
|
property: "series",
|
|
293
293
|
index: a,
|
|
294
|
-
debug:
|
|
295
|
-
}) : s.series.length === 0 ?
|
|
294
|
+
debug: H.value
|
|
295
|
+
}) : s.series.length === 0 ? K({
|
|
296
296
|
componentName: "VueUiNestedDonuts",
|
|
297
297
|
type: "datasetAttributeEmpty",
|
|
298
298
|
property: `series at index ${a}`,
|
|
299
|
-
debug:
|
|
299
|
+
debug: H.value
|
|
300
300
|
}) : s.series.forEach((o, l) => {
|
|
301
|
-
[null, void 0].includes(o.name) &&
|
|
301
|
+
[null, void 0].includes(o.name) && K({
|
|
302
302
|
componentName: "VueUiNestedDonuts",
|
|
303
303
|
type: "datasetSerieAttribute",
|
|
304
304
|
property: "name",
|
|
305
305
|
index: l,
|
|
306
306
|
key: "serie",
|
|
307
|
-
debug:
|
|
308
|
-
}), [null, void 0].includes(o.values) &&
|
|
307
|
+
debug: H.value
|
|
308
|
+
}), [null, void 0].includes(o.values) && K({
|
|
309
309
|
componentName: "VueUiNestedDonuts",
|
|
310
310
|
type: "datasetSerieAttribute",
|
|
311
311
|
property: "values",
|
|
312
312
|
index: l,
|
|
313
313
|
key: "serie",
|
|
314
|
-
debug:
|
|
314
|
+
debug: H.value
|
|
315
315
|
});
|
|
316
316
|
});
|
|
317
317
|
});
|
|
318
318
|
let t = 0;
|
|
319
319
|
return Y.value.map((s, a) => ({
|
|
320
320
|
...s,
|
|
321
|
-
total: s.series.filter((o) => !
|
|
321
|
+
total: s.series.filter((o) => !b.value.includes(o.id)).map((o) => E(o.values).reduce((l, n) => l + n, 0)).reduce((o, l) => o + l, 0),
|
|
322
322
|
datasetIndex: a,
|
|
323
323
|
id: `${p.value}_${a}`,
|
|
324
324
|
series: s.series.map((o, l) => {
|
|
@@ -330,94 +330,112 @@ const Bl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Ul = ["width", "heigh
|
|
|
330
330
|
id: `${p.value}_${a}_${l}`,
|
|
331
331
|
seriesIndex: l,
|
|
332
332
|
datasetIndex: a,
|
|
333
|
-
color:
|
|
334
|
-
value:
|
|
333
|
+
color: kl(o.color) || Yt.value[l] || ze[l % ze.length],
|
|
334
|
+
value: U.value ? R.value[t++] ?? 0 : n,
|
|
335
335
|
absoluteValues: o.values || []
|
|
336
336
|
};
|
|
337
337
|
})
|
|
338
338
|
}));
|
|
339
339
|
});
|
|
340
|
-
|
|
341
|
-
Array.isArray(t) && t.length > 0 && (
|
|
340
|
+
ae(() => $.dataset, (t) => {
|
|
341
|
+
Array.isArray(t) && t.length > 0 && ($e.value = !1);
|
|
342
342
|
}, { immediate: !0 });
|
|
343
|
-
const
|
|
344
|
-
const a = t.series.filter((o) => !
|
|
343
|
+
const D = m(() => Math.min(h.value.height, h.value.width) * (e.value.style.chart.layout.donut.strokeWidth / 512)), it = m(() => [...O.value].map((t, s) => {
|
|
344
|
+
const a = t.series.filter((o) => !b.value.includes(o.id)).map((o) => o.value).reduce((o, l) => o + l, 0);
|
|
345
345
|
return {
|
|
346
346
|
...t,
|
|
347
347
|
total: a,
|
|
348
|
-
series: t.series.filter((o) => !
|
|
348
|
+
series: t.series.filter((o) => !b.value.includes(o.id)).map((o) => ({
|
|
349
349
|
...o,
|
|
350
350
|
proportion: o.value / a
|
|
351
351
|
}))
|
|
352
352
|
};
|
|
353
353
|
}));
|
|
354
|
-
function
|
|
354
|
+
function Xt(t, s, a) {
|
|
355
355
|
let o = 0;
|
|
356
356
|
for (let l = 0; l < t.length; l += 1)
|
|
357
357
|
a.includes(t[l]) && (o += 1);
|
|
358
358
|
return o < s;
|
|
359
359
|
}
|
|
360
|
-
const
|
|
361
|
-
|
|
360
|
+
const k = c(it.value);
|
|
361
|
+
ae(
|
|
362
362
|
() => it.value,
|
|
363
|
-
(t) =>
|
|
363
|
+
(t) => k.value = t
|
|
364
364
|
);
|
|
365
|
-
function
|
|
365
|
+
function W(t) {
|
|
366
366
|
nt("selectLegend", t);
|
|
367
|
-
const s =
|
|
367
|
+
const s = $.dataset.flatMap(
|
|
368
368
|
(d, g) => d.series.map((S, Se) => ({
|
|
369
|
-
value: E(S.values).reduce((Oe,
|
|
369
|
+
value: E(S.values).reduce((Oe, ve) => Oe + ve, 0),
|
|
370
370
|
id: `${p.value}_${g}_${Se}`,
|
|
371
371
|
arcOfId: `${p.value}_${g}`
|
|
372
372
|
}))
|
|
373
373
|
).find((d) => d.id === t.id);
|
|
374
374
|
if (!s) return;
|
|
375
|
-
const a =
|
|
375
|
+
const a = O.value.flatMap((d) => d.series).find((d) => d.id === t.id)?.value ?? 0, o = k.value.flatMap((d) => d.series).find((d) => d.id === t.id);
|
|
376
376
|
let n = o ? o.value : 0;
|
|
377
|
-
const v =
|
|
377
|
+
const v = O.value.find(
|
|
378
378
|
(d) => d.id === s.arcOfId
|
|
379
379
|
);
|
|
380
380
|
if (!v) return;
|
|
381
|
-
const f = v.series.map((d) => d.id),
|
|
381
|
+
const f = v.series.map((d) => d.id), w = Xt(
|
|
382
382
|
f,
|
|
383
383
|
f.length - 1,
|
|
384
|
-
|
|
384
|
+
b.value
|
|
385
385
|
);
|
|
386
|
-
|
|
386
|
+
b.value.includes(t.id) ? (b.value = b.value.filter((d) => d !== t.id), e.value.serieToggleAnimation.show ? rt({
|
|
387
387
|
from: n,
|
|
388
388
|
to: a,
|
|
389
389
|
duration: e.value.serieToggleAnimation.durationMs,
|
|
390
390
|
onUpdate: (d) => {
|
|
391
|
-
|
|
391
|
+
k.value = k.value.map((g) => ({
|
|
392
392
|
...g,
|
|
393
393
|
series: g.series.map((S) => S.id === t.id ? { ...S, value: d } : S)
|
|
394
394
|
}));
|
|
395
395
|
}
|
|
396
|
-
}) :
|
|
396
|
+
}) : k.value = k.value.map((d) => ({
|
|
397
397
|
...d,
|
|
398
398
|
series: d.series.map((g) => g.id === t.id ? { ...g, value: a } : g)
|
|
399
|
-
}))) :
|
|
399
|
+
}))) : w && (e.value.serieToggleAnimation.show ? rt({
|
|
400
400
|
from: n,
|
|
401
401
|
to: 0,
|
|
402
402
|
duration: e.value.serieToggleAnimation.durationMs,
|
|
403
403
|
onUpdate: (d) => {
|
|
404
|
-
|
|
404
|
+
k.value = k.value.map((g) => ({
|
|
405
405
|
...g,
|
|
406
406
|
series: g.series.map((S) => S.id === t.id ? { ...S, value: d } : S)
|
|
407
407
|
}));
|
|
408
408
|
},
|
|
409
409
|
onDone: () => {
|
|
410
|
-
|
|
410
|
+
b.value.push(t.id);
|
|
411
411
|
}
|
|
412
|
-
}) : (
|
|
412
|
+
}) : (k.value = k.value.map((d) => ({
|
|
413
413
|
...d,
|
|
414
414
|
series: d.series.map((g) => g.id === t.id ? { ...g, value: 0 } : g)
|
|
415
|
-
})),
|
|
415
|
+
})), b.value.push(t.id)));
|
|
416
416
|
}
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
417
|
+
function dt(t) {
|
|
418
|
+
if (!O.value.length)
|
|
419
|
+
return e.value.debug && console.warn("VueUiNestedDonuts - There are no series to show."), null;
|
|
420
|
+
const s = O.value.flatMap((a) => a.series).filter((a) => a.name === t);
|
|
421
|
+
return s || (e.value.debug && console.warn(`VueUiNestedDonuts - Series name not found "${t}"`), null);
|
|
422
|
+
}
|
|
423
|
+
function Ht(t) {
|
|
424
|
+
const s = dt(t);
|
|
425
|
+
s !== null && (Array.isArray(s) ? s.forEach((a) => {
|
|
426
|
+
b.value.includes(a.id) && W({ id: a.id });
|
|
427
|
+
}) : b.value.includes(s.id) && W({ id: s.id }));
|
|
428
|
+
}
|
|
429
|
+
function qt(t) {
|
|
430
|
+
const s = dt(t);
|
|
431
|
+
s !== null && (Array.isArray(s) ? s.forEach((a) => {
|
|
432
|
+
b.value.includes(a.id) || W({ id: a.id });
|
|
433
|
+
}) : b.value.includes(s.id) || W({ id: s.id }));
|
|
434
|
+
}
|
|
435
|
+
const se = m(() => D.value / O.value.length * e.value.style.chart.layout.donut.spacingRatio), vt = m(() => k.value.map((t, s) => D.value - s * D.value / O.value.length)), q = m(() => k.value.map((t, s) => {
|
|
436
|
+
const a = Math.abs(t.series.map((w) => w.value).reduce((w, d) => w + d, 0)) > 0, o = D.value - s * D.value / k.value.length, l = U.value ? j.value.find((w) => w.datasetIndex === s) : null, n = [...t.series, ...l ? [l] : []].map((w) => ({
|
|
437
|
+
...w,
|
|
438
|
+
value: w.value < 1e-11 ? Number.MIN_VALUE : w.value
|
|
421
439
|
})), v = Be(
|
|
422
440
|
{ series: [
|
|
423
441
|
{ name: "_", color: e.value.style.chart.layout.donut.emptyFill, value: 1 }
|
|
@@ -431,7 +449,7 @@ const Bl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Ul = ["width", "heigh
|
|
|
431
449
|
1,
|
|
432
450
|
360,
|
|
433
451
|
105.25,
|
|
434
|
-
|
|
452
|
+
se.value
|
|
435
453
|
), f = `M ${h.value.width / 2},${h.value.height / 2 + o}
|
|
436
454
|
a ${o},${o} 0 1,1 0,${-2 * o}
|
|
437
455
|
a ${o},${o} 0 1,1 0,${2 * o}`;
|
|
@@ -452,57 +470,57 @@ const Bl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Ul = ["width", "heigh
|
|
|
452
470
|
1,
|
|
453
471
|
360,
|
|
454
472
|
105.25,
|
|
455
|
-
|
|
473
|
+
se.value
|
|
456
474
|
)
|
|
457
475
|
};
|
|
458
|
-
})),
|
|
459
|
-
const a = s *
|
|
476
|
+
})), ct = m(() => [...O.value].map((t, s) => {
|
|
477
|
+
const a = s * D.value / O.value.length;
|
|
460
478
|
return {
|
|
461
479
|
sizeRatio: a,
|
|
462
480
|
donut: Be(
|
|
463
481
|
{ series: [{ value: 1 }] },
|
|
464
482
|
h.value.width / 2,
|
|
465
483
|
h.value.height / 2,
|
|
466
|
-
|
|
467
|
-
|
|
484
|
+
D.value - a,
|
|
485
|
+
D.value - a,
|
|
468
486
|
1.99999,
|
|
469
487
|
2,
|
|
470
488
|
1,
|
|
471
489
|
360,
|
|
472
490
|
105.25,
|
|
473
|
-
|
|
491
|
+
D.value / O.value.length * e.value.style.chart.layout.donut.spacingRatio
|
|
474
492
|
)[0]
|
|
475
493
|
};
|
|
476
|
-
})),
|
|
477
|
-
function
|
|
478
|
-
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: s }),
|
|
494
|
+
})), ht = c(null), ue = c(null), ne = c(null), Le = c(null);
|
|
495
|
+
function Qt({ datapoint: t, seriesIndex: s }) {
|
|
496
|
+
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: s }), pe.value = !1, ht.value = null, ge.value = null, ue.value = null, ne.value = null;
|
|
479
497
|
}
|
|
480
|
-
function
|
|
481
|
-
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: a }),
|
|
498
|
+
function Jt({ datapoint: t, _relativeIndex: s, seriesIndex: a }) {
|
|
499
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: a }), ht.value = t.arcOfId, ue.value = t.id, ne.value = a, ge.value = t.id, Le.value = {
|
|
482
500
|
datapoint: t,
|
|
483
501
|
seriesIndex: a,
|
|
484
|
-
series:
|
|
502
|
+
series: k.value,
|
|
485
503
|
config: e.value
|
|
486
504
|
};
|
|
487
505
|
const o = e.value.style.chart.tooltip.customFormat;
|
|
488
|
-
if (
|
|
506
|
+
if (At(o) && Al(
|
|
489
507
|
() => o({
|
|
490
508
|
seriesIndex: a,
|
|
491
509
|
datapoint: t,
|
|
492
|
-
series:
|
|
510
|
+
series: k.value,
|
|
493
511
|
config: e.value
|
|
494
512
|
})
|
|
495
513
|
))
|
|
496
|
-
|
|
514
|
+
ye.value = o({
|
|
497
515
|
seriesIndex: a,
|
|
498
516
|
datapoint: t,
|
|
499
|
-
series:
|
|
517
|
+
series: k.value,
|
|
500
518
|
config: e.value
|
|
501
519
|
});
|
|
502
520
|
else {
|
|
503
521
|
let l = "";
|
|
504
|
-
if (e.value.style.chart.tooltip.showAllItemsAtIndex &&
|
|
505
|
-
const n =
|
|
522
|
+
if (e.value.style.chart.tooltip.showAllItemsAtIndex && b.value.length === 0) {
|
|
523
|
+
const n = k.value.map((v) => v.series.find((f) => f.seriesIndex === a));
|
|
506
524
|
n.forEach((v, f) => {
|
|
507
525
|
if (!v) return "";
|
|
508
526
|
l += `
|
|
@@ -516,10 +534,10 @@ const Bl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Ul = ["width", "heigh
|
|
|
516
534
|
</span>
|
|
517
535
|
</div>
|
|
518
536
|
<span>
|
|
519
|
-
${e.value.style.chart.tooltip.showValue ? `<b>${
|
|
537
|
+
${e.value.style.chart.tooltip.showValue ? `<b>${oe(
|
|
520
538
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
521
539
|
t.value,
|
|
522
|
-
|
|
540
|
+
F({
|
|
523
541
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
524
542
|
v: t.value,
|
|
525
543
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -528,7 +546,7 @@ const Bl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Ul = ["width", "heigh
|
|
|
528
546
|
{ datapoint: t, seriesIndex: a }
|
|
529
547
|
)}
|
|
530
548
|
</b>` : ""}
|
|
531
|
-
${e.value.style.chart.tooltip.showPercentage ? `(${
|
|
549
|
+
${e.value.style.chart.tooltip.showPercentage ? `(${F({
|
|
532
550
|
v: v.proportion * 100,
|
|
533
551
|
s: "%",
|
|
534
552
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
@@ -538,44 +556,44 @@ const Bl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Ul = ["width", "heigh
|
|
|
538
556
|
`;
|
|
539
557
|
});
|
|
540
558
|
} else
|
|
541
|
-
l += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${t.arcOf ?? ""} - ${t.name}</div>`, l += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${t.color}"/></svg>`, e.value.style.chart.tooltip.showValue && (l += `<b>${
|
|
559
|
+
l += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${t.arcOf ?? ""} - ${t.name}</div>`, l += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${t.color}"/></svg>`, e.value.style.chart.tooltip.showValue && (l += `<b>${oe(
|
|
542
560
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
543
561
|
t.value,
|
|
544
|
-
|
|
562
|
+
F({
|
|
545
563
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
546
564
|
v: t.value,
|
|
547
565
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
548
566
|
r: e.value.style.chart.tooltip.roundingValue
|
|
549
567
|
}),
|
|
550
568
|
{ datapoint: t, seriesIndex: a }
|
|
551
|
-
)}</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? l += `<span>(${
|
|
569
|
+
)}</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? l += `<span>(${F({
|
|
552
570
|
v: t.proportion * 100,
|
|
553
571
|
s: "%",
|
|
554
572
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
555
|
-
})})</span></div>` : l += `<b>${
|
|
573
|
+
})})</span></div>` : l += `<b>${F({
|
|
556
574
|
v: t.proportion * 100,
|
|
557
575
|
s: "%",
|
|
558
576
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
559
577
|
})}</b></div>`);
|
|
560
|
-
|
|
578
|
+
ye.value = `<div style="font-size:${e.value.style.chart.tooltip.fontSize}px">${l}</div>`;
|
|
561
579
|
}
|
|
562
|
-
|
|
580
|
+
pe.value = !0;
|
|
563
581
|
}
|
|
564
582
|
function xe(t) {
|
|
565
583
|
return t.proportion * 100 > e.value.style.chart.layout.labels.dataLabels.hideUnderValue;
|
|
566
584
|
}
|
|
567
|
-
function
|
|
585
|
+
function ft(t, s) {
|
|
568
586
|
if (!e.value.useBlurOnHover)
|
|
569
587
|
return "";
|
|
570
|
-
if (e.value.style.chart.tooltip.showAllItemsAtIndex &&
|
|
571
|
-
return [null, void 0].includes(
|
|
572
|
-
if (!e.value.style.chart.tooltip.showAllItemsAtIndex ||
|
|
573
|
-
return [null, void 0].includes(
|
|
588
|
+
if (e.value.style.chart.tooltip.showAllItemsAtIndex && b.value.length === 0)
|
|
589
|
+
return [null, void 0].includes(ne.value) || ne.value === s ? "" : `url(#blur_${p.value})`;
|
|
590
|
+
if (!e.value.style.chart.tooltip.showAllItemsAtIndex || b.value.length)
|
|
591
|
+
return [null, void 0].includes(ue.value) || ue.value === t.id ? "" : `url(#blur_${p.value})`;
|
|
574
592
|
}
|
|
575
|
-
const
|
|
593
|
+
const re = m(() => O.value.map((t, s) => {
|
|
576
594
|
const a = t.series.filter(
|
|
577
|
-
(l) => !
|
|
578
|
-
), o =
|
|
595
|
+
(l) => !b.value.includes(l.id)
|
|
596
|
+
), o = U.value ? a.map((l) => {
|
|
579
597
|
const n = Y.value[s].series.findIndex(
|
|
580
598
|
(v) => v.name === l.name
|
|
581
599
|
);
|
|
@@ -587,17 +605,17 @@ const Bl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Ul = ["width", "heigh
|
|
|
587
605
|
const v = E(Y.value[s].series[n].values).reduce(
|
|
588
606
|
(d, g) => d + g,
|
|
589
607
|
0
|
|
590
|
-
), f =
|
|
608
|
+
), f = U.value ? v : l.value, w = `${l.name}${e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ": " : ""}${e.value.style.chart.legend.showValue ? oe(
|
|
591
609
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
592
610
|
f,
|
|
593
|
-
|
|
611
|
+
F({
|
|
594
612
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
595
613
|
v: f,
|
|
596
614
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
597
615
|
r: e.value.style.chart.legend.roundingValue
|
|
598
616
|
}),
|
|
599
617
|
{ datapoint: l, seriesIndex: n }
|
|
600
|
-
) : ""}${e.value.style.chart.legend.showPercentage ?
|
|
618
|
+
) : ""}${e.value.style.chart.legend.showPercentage ? b.value.includes(l.id) ? `${e.value.style.chart.legend.showValue ? "(" : ""}- %${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? "(" : ""}${isNaN(f / o) ? "-" : F({
|
|
601
619
|
v: f / o * 100,
|
|
602
620
|
s: "%",
|
|
603
621
|
r: e.value.style.chart.legend.roundingPercentage
|
|
@@ -606,36 +624,36 @@ const Bl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Ul = ["width", "heigh
|
|
|
606
624
|
name: l.name,
|
|
607
625
|
color: l.color,
|
|
608
626
|
value: f,
|
|
609
|
-
display:
|
|
610
|
-
svgDisplay: `${l.arcOf ? `${l.arcOf} - ` : ""}${
|
|
627
|
+
display: w,
|
|
628
|
+
svgDisplay: `${l.arcOf ? `${l.arcOf} - ` : ""}${w}`,
|
|
611
629
|
shape: "circle",
|
|
612
630
|
arcOf: l.arcOf,
|
|
613
631
|
id: l.id,
|
|
614
632
|
seriesIndex: n,
|
|
615
633
|
datasetIndex: s,
|
|
616
634
|
total: o,
|
|
617
|
-
opacity:
|
|
618
|
-
segregate: () =>
|
|
619
|
-
isSegregated:
|
|
635
|
+
opacity: b.value.includes(l.id) ? 0.5 : 1,
|
|
636
|
+
segregate: () => W(l),
|
|
637
|
+
isSegregated: b.value.includes(l.id)
|
|
620
638
|
};
|
|
621
639
|
});
|
|
622
|
-
})),
|
|
640
|
+
})), Kt = m(() => ({
|
|
623
641
|
cy: "nested-donuts-legend",
|
|
624
642
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
625
643
|
color: e.value.style.chart.legend.color,
|
|
626
644
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
627
645
|
paddingBottom: 12,
|
|
628
646
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
629
|
-
})), V =
|
|
630
|
-
const t =
|
|
647
|
+
})), V = m(() => {
|
|
648
|
+
const t = k.value.flatMap((a) => a.series.map((o) => ({
|
|
631
649
|
name: `${a.name} - ${o.name}`,
|
|
632
650
|
color: o.color,
|
|
633
651
|
total: a.total
|
|
634
|
-
}))), s =
|
|
652
|
+
}))), s = k.value.flatMap((a) => a.series.map((o) => o.value));
|
|
635
653
|
return { head: t, body: s };
|
|
636
654
|
});
|
|
637
655
|
function _e(t = null) {
|
|
638
|
-
|
|
656
|
+
xt(() => {
|
|
639
657
|
const s = V.value.head.map((l, n) => [
|
|
640
658
|
[l.name],
|
|
641
659
|
[V.value.body[n]],
|
|
@@ -646,20 +664,20 @@ const Bl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Ul = ["width", "heigh
|
|
|
646
664
|
[e.value.style.chart.title.text],
|
|
647
665
|
[e.value.style.chart.title.subtitle.text],
|
|
648
666
|
[[""], ["val"], ["%"]]
|
|
649
|
-
].concat(s), o =
|
|
650
|
-
t ? t(o) :
|
|
667
|
+
].concat(s), o = xl(a);
|
|
668
|
+
t ? t(o) : _l({
|
|
651
669
|
csvContent: o,
|
|
652
670
|
title: e.value.style.chart.title.text || "vue-ui-nested-donuts"
|
|
653
671
|
});
|
|
654
672
|
});
|
|
655
673
|
}
|
|
656
|
-
const
|
|
674
|
+
const ie = m(() => {
|
|
657
675
|
const t = [
|
|
658
676
|
e.value.table.columnNames.series,
|
|
659
677
|
e.value.table.columnNames.value,
|
|
660
678
|
e.value.table.columnNames.percentage
|
|
661
679
|
], s = V.value.head.map((l, n) => {
|
|
662
|
-
const v =
|
|
680
|
+
const v = F({
|
|
663
681
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
664
682
|
v: V.value.body[n],
|
|
665
683
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -671,7 +689,7 @@ const Bl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Ul = ["width", "heigh
|
|
|
671
689
|
name: l.name
|
|
672
690
|
},
|
|
673
691
|
v,
|
|
674
|
-
isNaN(V.value.body[n] / l.total) ? "-" :
|
|
692
|
+
isNaN(V.value.body[n] / l.total) ? "-" : F({
|
|
675
693
|
v: V.value.body[n] / l.total * 100,
|
|
676
694
|
s: "%",
|
|
677
695
|
r: e.value.table.td.roundingPercentage
|
|
@@ -701,25 +719,25 @@ const Bl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Ul = ["width", "heigh
|
|
|
701
719
|
config: a
|
|
702
720
|
};
|
|
703
721
|
});
|
|
704
|
-
function
|
|
705
|
-
return
|
|
706
|
-
}
|
|
707
|
-
function ft() {
|
|
708
|
-
L.value.showTable = !L.value.showTable;
|
|
722
|
+
function Zt() {
|
|
723
|
+
return O.value;
|
|
709
724
|
}
|
|
710
725
|
function pt() {
|
|
711
|
-
|
|
726
|
+
x.value.showTable = !x.value.showTable;
|
|
712
727
|
}
|
|
713
728
|
function yt() {
|
|
714
|
-
|
|
729
|
+
x.value.dataLabels.show = !x.value.dataLabels.show;
|
|
715
730
|
}
|
|
716
|
-
|
|
731
|
+
function gt() {
|
|
732
|
+
x.value.showTooltip = !x.value.showTooltip;
|
|
733
|
+
}
|
|
734
|
+
const de = c(!1);
|
|
717
735
|
function Ae() {
|
|
718
|
-
|
|
736
|
+
de.value = !de.value;
|
|
719
737
|
}
|
|
720
|
-
async function
|
|
721
|
-
if (!
|
|
722
|
-
const { width: s, height: a } =
|
|
738
|
+
async function jt({ scale: t = 2 } = {}) {
|
|
739
|
+
if (!N.value) return;
|
|
740
|
+
const { width: s, height: a } = N.value.getBoundingClientRect(), o = s / a, { imageUri: l, base64: n } = await zl({ domElement: N.value, base64: !0, img: !0, scale: t });
|
|
723
741
|
return {
|
|
724
742
|
imageUri: l,
|
|
725
743
|
base64: n,
|
|
@@ -730,15 +748,15 @@ const Bl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Ul = ["width", "heigh
|
|
|
730
748
|
};
|
|
731
749
|
}
|
|
732
750
|
const Te = c(null);
|
|
733
|
-
function
|
|
751
|
+
function el() {
|
|
734
752
|
if (!Te.value) return;
|
|
735
753
|
const { x: t, y: s, width: a, height: o } = Te.value.getBBox();
|
|
736
|
-
|
|
754
|
+
te.value && te.value.setAttribute("viewBox", `${t} ${s} ${a + Math.min(0, t)} ${o + Math.min(0, s)}`);
|
|
737
755
|
}
|
|
738
|
-
const
|
|
739
|
-
const t = e.value.table.useDialog && !e.value.table.show, s =
|
|
756
|
+
const le = m(() => {
|
|
757
|
+
const t = e.value.table.useDialog && !e.value.table.show, s = x.value.showTable;
|
|
740
758
|
return {
|
|
741
|
-
component: t ?
|
|
759
|
+
component: t ? Et : Pt,
|
|
742
760
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
743
761
|
props: t ? {
|
|
744
762
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
@@ -746,7 +764,7 @@ const Bl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Ul = ["width", "heigh
|
|
|
746
764
|
headerColor: e.value.table.th.color,
|
|
747
765
|
headerBg: e.value.table.th.backgroundColor,
|
|
748
766
|
isFullscreen: G.value,
|
|
749
|
-
fullscreenParent:
|
|
767
|
+
fullscreenParent: N.value,
|
|
750
768
|
forcedWidth: Math.min(800, window.innerWidth * 0.8)
|
|
751
769
|
} : {
|
|
752
770
|
hideDetails: !0,
|
|
@@ -765,72 +783,74 @@ const Bl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Ul = ["width", "heigh
|
|
|
765
783
|
}
|
|
766
784
|
};
|
|
767
785
|
});
|
|
768
|
-
|
|
769
|
-
e.value.table.show || (t && e.value.table.useDialog &&
|
|
786
|
+
ae(() => x.value.showTable, (t) => {
|
|
787
|
+
e.value.table.show || (t && e.value.table.useDialog && ee.value ? ee.value.open() : "close" in ee.value && ee.value.close());
|
|
770
788
|
});
|
|
771
|
-
function
|
|
772
|
-
|
|
789
|
+
function bt() {
|
|
790
|
+
x.value.showTable = !1, me.value && me.value.setTableIconState(!1);
|
|
773
791
|
}
|
|
774
|
-
const
|
|
792
|
+
const tl = m(() => e.value.style.chart.backgroundColor), ll = m(() => e.value.style.chart.legend), al = m(() => e.value.style.chart.title), ol = m(() => re.value.flat().map((t) => ({
|
|
775
793
|
...t,
|
|
776
794
|
name: t.svgDisplay
|
|
777
|
-
}))), { exportSvg:
|
|
778
|
-
svg:
|
|
779
|
-
title:
|
|
780
|
-
legend:
|
|
781
|
-
legendItems:
|
|
782
|
-
backgroundColor:
|
|
795
|
+
}))), { exportSvg: sl, getSvg: ul } = Il({
|
|
796
|
+
svg: te,
|
|
797
|
+
title: al,
|
|
798
|
+
legend: ll,
|
|
799
|
+
legendItems: ol,
|
|
800
|
+
backgroundColor: tl
|
|
783
801
|
});
|
|
784
|
-
async function
|
|
802
|
+
async function mt({ isCb: t }) {
|
|
785
803
|
if (t) {
|
|
786
|
-
const { blob: s, url: a, text: o, dataUrl: l } = await
|
|
804
|
+
const { blob: s, url: a, text: o, dataUrl: l } = await ul();
|
|
787
805
|
e.value.userOptions.callbacks.svg({ blob: s, url: a, text: o, dataUrl: l });
|
|
788
806
|
} else
|
|
789
|
-
|
|
807
|
+
sl();
|
|
790
808
|
}
|
|
791
|
-
return
|
|
792
|
-
autoSize:
|
|
793
|
-
getData:
|
|
794
|
-
getImage:
|
|
809
|
+
return Ft({
|
|
810
|
+
autoSize: el,
|
|
811
|
+
getData: Zt,
|
|
812
|
+
getImage: jt,
|
|
795
813
|
generatePdf: st,
|
|
796
814
|
generateCsv: _e,
|
|
797
815
|
generateImage: ut,
|
|
798
|
-
generateSvg:
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
816
|
+
generateSvg: mt,
|
|
817
|
+
hideSeries: qt,
|
|
818
|
+
showSeries: Ht,
|
|
819
|
+
toggleTable: pt,
|
|
820
|
+
toggleLabels: yt,
|
|
821
|
+
toggleTooltip: gt,
|
|
802
822
|
toggleAnnotator: Ae,
|
|
803
823
|
toggleFullscreen: Je
|
|
804
824
|
}), (t, s) => (u(), r("div", {
|
|
805
825
|
ref_key: "nestedDonutsChart",
|
|
806
|
-
ref:
|
|
826
|
+
ref: N,
|
|
807
827
|
class: M(`vue-data-ui-component vue-ui-nested-donuts ${G.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
808
|
-
style:
|
|
828
|
+
style: he(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
809
829
|
id: `nested_donuts_${p.value}`,
|
|
810
830
|
onMouseenter: s[2] || (s[2] = () => i(Ze)(!0)),
|
|
811
831
|
onMouseleave: s[3] || (s[3] = () => i(Ze)(!1))
|
|
812
832
|
}, [
|
|
813
|
-
e.value.userOptions.buttons.annotator ? (u(), B(i(
|
|
833
|
+
e.value.userOptions.buttons.annotator ? (u(), B(i(Mt), {
|
|
814
834
|
key: 0,
|
|
815
|
-
svgRef: i(
|
|
835
|
+
svgRef: i(te),
|
|
816
836
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
817
837
|
color: e.value.style.chart.color,
|
|
818
|
-
active:
|
|
838
|
+
active: de.value,
|
|
819
839
|
onClose: Ae
|
|
820
|
-
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) :
|
|
821
|
-
|
|
840
|
+
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : C("", !0),
|
|
841
|
+
Gt.value ? (u(), r("div", {
|
|
822
842
|
key: 1,
|
|
823
843
|
ref_key: "noTitle",
|
|
824
844
|
ref: We,
|
|
825
845
|
class: "vue-data-ui-no-title-space",
|
|
826
846
|
style: "height:36px; width: 100%;background:transparent"
|
|
827
|
-
}, null, 512)) :
|
|
847
|
+
}, null, 512)) : C("", !0),
|
|
828
848
|
e.value.style.chart.title.text ? (u(), r("div", {
|
|
829
849
|
key: 2,
|
|
830
850
|
ref_key: "chartTitle",
|
|
831
851
|
ref: Ge
|
|
832
852
|
}, [
|
|
833
|
-
(u(), B(
|
|
853
|
+
(u(), B(Ml, {
|
|
834
854
|
key: `title_${Xe.value}`,
|
|
835
855
|
config: {
|
|
836
856
|
title: {
|
|
@@ -843,14 +863,14 @@ const Bl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Ul = ["width", "heigh
|
|
|
843
863
|
}
|
|
844
864
|
}
|
|
845
865
|
}, null, 8, ["config"]))
|
|
846
|
-
], 512)) :
|
|
866
|
+
], 512)) : C("", !0),
|
|
847
867
|
y("div", {
|
|
848
868
|
id: `legend-top-${p.value}`
|
|
849
|
-
}, null, 8,
|
|
850
|
-
e.value.userOptions.show &&
|
|
869
|
+
}, null, 8, Gl),
|
|
870
|
+
e.value.userOptions.show && fe.value && (i(je) || i(ke)) ? (u(), B(i(zt), {
|
|
851
871
|
ref_key: "userOptionsRef",
|
|
852
|
-
ref:
|
|
853
|
-
key: `user_option_${
|
|
872
|
+
ref: me,
|
|
873
|
+
key: `user_option_${Re.value}`,
|
|
854
874
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
855
875
|
color: e.value.style.chart.color,
|
|
856
876
|
isPrinting: i(at),
|
|
@@ -865,12 +885,12 @@ const Bl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Ul = ["width", "heigh
|
|
|
865
885
|
hasLabel: e.value.userOptions.buttons.labels,
|
|
866
886
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
867
887
|
isFullscreen: G.value,
|
|
868
|
-
isTooltip:
|
|
888
|
+
isTooltip: x.value.showTooltip,
|
|
869
889
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
870
|
-
chartElement:
|
|
890
|
+
chartElement: N.value,
|
|
871
891
|
position: e.value.userOptions.position,
|
|
872
892
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
873
|
-
isAnnotation:
|
|
893
|
+
isAnnotation: de.value,
|
|
874
894
|
callbacks: e.value.userOptions.callbacks,
|
|
875
895
|
printScale: e.value.userOptions.print.scale,
|
|
876
896
|
tableDialog: e.value.table.useDialog,
|
|
@@ -878,104 +898,104 @@ const Bl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Ul = ["width", "heigh
|
|
|
878
898
|
onGeneratePdf: i(st),
|
|
879
899
|
onGenerateCsv: _e,
|
|
880
900
|
onGenerateImage: i(ut),
|
|
881
|
-
onGenerateSvg:
|
|
882
|
-
onToggleTable:
|
|
883
|
-
onToggleLabels:
|
|
884
|
-
onToggleTooltip:
|
|
901
|
+
onGenerateSvg: mt,
|
|
902
|
+
onToggleTable: pt,
|
|
903
|
+
onToggleLabels: yt,
|
|
904
|
+
onToggleTooltip: gt,
|
|
885
905
|
onToggleAnnotator: Ae,
|
|
886
|
-
style:
|
|
887
|
-
visibility: i(je) ? i(
|
|
906
|
+
style: he({
|
|
907
|
+
visibility: i(je) ? i(ke) ? "visible" : "hidden" : "visible"
|
|
888
908
|
})
|
|
889
|
-
},
|
|
909
|
+
}, $t({ _: 2 }, [
|
|
890
910
|
t.$slots.menuIcon ? {
|
|
891
911
|
name: "menuIcon",
|
|
892
|
-
fn:
|
|
893
|
-
_(t.$slots, "menuIcon",
|
|
912
|
+
fn: L(({ isOpen: a, color: o }) => [
|
|
913
|
+
_(t.$slots, "menuIcon", Q(J({ isOpen: a, color: o })), void 0, !0)
|
|
894
914
|
]),
|
|
895
915
|
key: "0"
|
|
896
916
|
} : void 0,
|
|
897
917
|
t.$slots.optionTooltip ? {
|
|
898
918
|
name: "optionTooltip",
|
|
899
|
-
fn:
|
|
919
|
+
fn: L(() => [
|
|
900
920
|
_(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
901
921
|
]),
|
|
902
922
|
key: "1"
|
|
903
923
|
} : void 0,
|
|
904
924
|
t.$slots.optionPdf ? {
|
|
905
925
|
name: "optionPdf",
|
|
906
|
-
fn:
|
|
926
|
+
fn: L(() => [
|
|
907
927
|
_(t.$slots, "optionPdf", {}, void 0, !0)
|
|
908
928
|
]),
|
|
909
929
|
key: "2"
|
|
910
930
|
} : void 0,
|
|
911
931
|
t.$slots.optionCsv ? {
|
|
912
932
|
name: "optionCsv",
|
|
913
|
-
fn:
|
|
933
|
+
fn: L(() => [
|
|
914
934
|
_(t.$slots, "optionCsv", {}, void 0, !0)
|
|
915
935
|
]),
|
|
916
936
|
key: "3"
|
|
917
937
|
} : void 0,
|
|
918
938
|
t.$slots.optionImg ? {
|
|
919
939
|
name: "optionImg",
|
|
920
|
-
fn:
|
|
940
|
+
fn: L(() => [
|
|
921
941
|
_(t.$slots, "optionImg", {}, void 0, !0)
|
|
922
942
|
]),
|
|
923
943
|
key: "4"
|
|
924
944
|
} : void 0,
|
|
925
945
|
t.$slots.optionSvg ? {
|
|
926
946
|
name: "optionSvg",
|
|
927
|
-
fn:
|
|
947
|
+
fn: L(() => [
|
|
928
948
|
_(t.$slots, "optionSvg", {}, void 0, !0)
|
|
929
949
|
]),
|
|
930
950
|
key: "5"
|
|
931
951
|
} : void 0,
|
|
932
952
|
t.$slots.optionTable ? {
|
|
933
953
|
name: "optionTable",
|
|
934
|
-
fn:
|
|
954
|
+
fn: L(() => [
|
|
935
955
|
_(t.$slots, "optionTable", {}, void 0, !0)
|
|
936
956
|
]),
|
|
937
957
|
key: "6"
|
|
938
958
|
} : void 0,
|
|
939
959
|
t.$slots.optionLabels ? {
|
|
940
960
|
name: "optionLabels",
|
|
941
|
-
fn:
|
|
961
|
+
fn: L(() => [
|
|
942
962
|
_(t.$slots, "optionLabels", {}, void 0, !0)
|
|
943
963
|
]),
|
|
944
964
|
key: "7"
|
|
945
965
|
} : void 0,
|
|
946
966
|
t.$slots.optionFullscreen ? {
|
|
947
967
|
name: "optionFullscreen",
|
|
948
|
-
fn:
|
|
949
|
-
_(t.$slots, "optionFullscreen",
|
|
968
|
+
fn: L(({ toggleFullscreen: a, isFullscreen: o }) => [
|
|
969
|
+
_(t.$slots, "optionFullscreen", Q(J({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
|
|
950
970
|
]),
|
|
951
971
|
key: "8"
|
|
952
972
|
} : void 0,
|
|
953
973
|
t.$slots.optionAnnotator ? {
|
|
954
974
|
name: "optionAnnotator",
|
|
955
|
-
fn:
|
|
956
|
-
_(t.$slots, "optionAnnotator",
|
|
975
|
+
fn: L(({ toggleAnnotator: a, isAnnotator: o }) => [
|
|
976
|
+
_(t.$slots, "optionAnnotator", Q(J({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
|
|
957
977
|
]),
|
|
958
978
|
key: "9"
|
|
959
979
|
} : void 0
|
|
960
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasSvg", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) :
|
|
980
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasSvg", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : C("", !0),
|
|
961
981
|
(u(), r("svg", {
|
|
962
982
|
ref_key: "svgRef",
|
|
963
|
-
ref:
|
|
964
|
-
xmlns: i(
|
|
983
|
+
ref: te,
|
|
984
|
+
xmlns: i(Cl),
|
|
965
985
|
class: M({
|
|
966
986
|
"vue-data-ui-fullscreen--on": G.value,
|
|
967
987
|
"vue-data-ui-fulscreen--off": !G.value,
|
|
968
988
|
"vue-data-ui-svg": !0
|
|
969
989
|
}),
|
|
970
990
|
viewBox: `0 0 ${h.value.width <= 0 ? 1e-3 : h.value.width} ${h.value.height < 0 ? 1e-3 : h.value.height}`,
|
|
971
|
-
style:
|
|
991
|
+
style: he(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};${et.value.css}`)
|
|
972
992
|
}, [
|
|
973
993
|
y("g", {
|
|
974
994
|
ref_key: "G",
|
|
975
995
|
ref: Te,
|
|
976
996
|
class: "vue-data-ui-g"
|
|
977
997
|
}, [
|
|
978
|
-
Ve(i(
|
|
998
|
+
Ve(i(Bt)),
|
|
979
999
|
t.$slots["chart-background"] ? (u(), r("foreignObject", {
|
|
980
1000
|
key: 0,
|
|
981
1001
|
x: 0,
|
|
@@ -987,9 +1007,9 @@ const Bl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Ul = ["width", "heigh
|
|
|
987
1007
|
}
|
|
988
1008
|
}, [
|
|
989
1009
|
_(t.$slots, "chart-background", {}, void 0, !0)
|
|
990
|
-
], 8,
|
|
1010
|
+
], 8, Wl)) : C("", !0),
|
|
991
1011
|
y("defs", null, [
|
|
992
|
-
(u(!0), r(A, null, T(
|
|
1012
|
+
(u(!0), r(A, null, T(ct.value, (a, o) => (u(), r("radialGradient", {
|
|
993
1013
|
id: `radial_${p.value}_${o}`
|
|
994
1014
|
}, [
|
|
995
1015
|
s[4] || (s[4] = y("stop", {
|
|
@@ -998,21 +1018,21 @@ const Bl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Ul = ["width", "heigh
|
|
|
998
1018
|
"stop-opacity": "0"
|
|
999
1019
|
}, null, -1)),
|
|
1000
1020
|
y("stop", {
|
|
1001
|
-
offset: `${(1 -
|
|
1002
|
-
"stop-color": i(
|
|
1021
|
+
offset: `${(1 - se.value / vt.value[o]) * 100}%`,
|
|
1022
|
+
"stop-color": i(Ll)("#FFFFFF", 0),
|
|
1003
1023
|
"stop-opacity": "0"
|
|
1004
|
-
}, null, 8,
|
|
1024
|
+
}, null, 8, Hl),
|
|
1005
1025
|
y("stop", {
|
|
1006
|
-
offset: `${(1 -
|
|
1026
|
+
offset: `${(1 - se.value / vt.value[o] / 2) * 100}%`,
|
|
1007
1027
|
"stop-color": "#FFFFFF",
|
|
1008
1028
|
"stop-opacity": e.value.style.chart.gradientIntensity / 100
|
|
1009
|
-
}, null, 8,
|
|
1029
|
+
}, null, 8, ql),
|
|
1010
1030
|
s[5] || (s[5] = y("stop", {
|
|
1011
1031
|
offset: "100%",
|
|
1012
1032
|
"stop-color": "#FFFFFF",
|
|
1013
1033
|
"stop-opacity": "0"
|
|
1014
1034
|
}, null, -1))
|
|
1015
|
-
], 8,
|
|
1035
|
+
], 8, Xl))), 256))
|
|
1016
1036
|
]),
|
|
1017
1037
|
y("defs", null, [
|
|
1018
1038
|
y("filter", {
|
|
@@ -1026,12 +1046,12 @@ const Bl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Ul = ["width", "heigh
|
|
|
1026
1046
|
in: "SourceGraphic",
|
|
1027
1047
|
stdDeviation: 2,
|
|
1028
1048
|
id: `blur_std_${p.value}`
|
|
1029
|
-
}, null, 8,
|
|
1049
|
+
}, null, 8, Jl),
|
|
1030
1050
|
s[6] || (s[6] = y("feColorMatrix", {
|
|
1031
1051
|
type: "saturate",
|
|
1032
1052
|
values: "0"
|
|
1033
1053
|
}, null, -1))
|
|
1034
|
-
], 8,
|
|
1054
|
+
], 8, Ql),
|
|
1035
1055
|
y("filter", {
|
|
1036
1056
|
id: `shadow_${p.value}`,
|
|
1037
1057
|
"color-interpolation-filters": "sRGB"
|
|
@@ -1042,18 +1062,18 @@ const Bl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Ul = ["width", "heigh
|
|
|
1042
1062
|
stdDeviation: "10",
|
|
1043
1063
|
"flood-opacity": "0.5",
|
|
1044
1064
|
"flood-color": e.value.style.chart.layout.donut.shadowColor
|
|
1045
|
-
}, null, 8,
|
|
1046
|
-
], 8,
|
|
1065
|
+
}, null, 8, Zl)
|
|
1066
|
+
], 8, Kl)
|
|
1047
1067
|
]),
|
|
1048
1068
|
y("defs", null, [
|
|
1049
|
-
(u(!0), r(A, null, T(
|
|
1069
|
+
(u(!0), r(A, null, T(q.value, (a, o) => (u(), r("path", {
|
|
1050
1070
|
key: `path-full-${o}`,
|
|
1051
1071
|
id: `path-full-${o}-${p.value}`,
|
|
1052
1072
|
d: a.fullCirclePath,
|
|
1053
1073
|
fill: "none"
|
|
1054
|
-
}, null, 8,
|
|
1074
|
+
}, null, 8, jl))), 128))
|
|
1055
1075
|
]),
|
|
1056
|
-
(u(!0), r(A, null, T(
|
|
1076
|
+
(u(!0), r(A, null, T(q.value, (a, o) => (u(), r("g", null, [
|
|
1057
1077
|
a.hasData ? (u(!0), r(A, { key: 0 }, T(a.donut.filter((l) => !l.ghost), (l, n) => (u(), r("g", null, [
|
|
1058
1078
|
y("path", {
|
|
1059
1079
|
class: "vue-ui-donut-arc-path",
|
|
@@ -1061,8 +1081,8 @@ const Bl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Ul = ["width", "heigh
|
|
|
1061
1081
|
fill: l.color,
|
|
1062
1082
|
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
1063
1083
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
1064
|
-
filter:
|
|
1065
|
-
}, null, 8,
|
|
1084
|
+
filter: ft(l, n)
|
|
1085
|
+
}, null, 8, ea)
|
|
1066
1086
|
]))), 256)) : (u(!0), r(A, { key: 1 }, T(a.skeleton, (l, n) => (u(), r("g", null, [
|
|
1067
1087
|
y("path", {
|
|
1068
1088
|
class: "vue-ui-donut-arc-path",
|
|
@@ -1070,21 +1090,21 @@ const Bl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Ul = ["width", "heigh
|
|
|
1070
1090
|
fill: l.color,
|
|
1071
1091
|
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
1072
1092
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth
|
|
1073
|
-
}, null, 8,
|
|
1093
|
+
}, null, 8, ta)
|
|
1074
1094
|
]))), 256))
|
|
1075
1095
|
]))), 256)),
|
|
1076
|
-
e.value.style.chart.useGradient ? (u(), r("g",
|
|
1077
|
-
(u(!0), r(A, null, T(
|
|
1096
|
+
e.value.style.chart.useGradient ? (u(), r("g", la, [
|
|
1097
|
+
(u(!0), r(A, null, T(ct.value, (a, o) => (u(), r("g", null, [
|
|
1078
1098
|
y("path", {
|
|
1079
1099
|
d: a.donut.arcSlice,
|
|
1080
1100
|
fill: `url(#radial_${p.value}_${o})`,
|
|
1081
1101
|
stroke: "transparent",
|
|
1082
1102
|
"stroke-width": "0"
|
|
1083
|
-
}, null, 8,
|
|
1103
|
+
}, null, 8, aa)
|
|
1084
1104
|
]))), 256))
|
|
1085
|
-
])) :
|
|
1086
|
-
e.value.style.chart.layout.labels.dataLabels.showDonutName ? (u(), r("g",
|
|
1087
|
-
e.value.style.chart.layout.labels.dataLabels.curvedDonutName ? (u(!0), r(A, { key: 0 }, T(
|
|
1105
|
+
])) : C("", !0),
|
|
1106
|
+
e.value.style.chart.layout.labels.dataLabels.showDonutName ? (u(), r("g", oa, [
|
|
1107
|
+
e.value.style.chart.layout.labels.dataLabels.curvedDonutName ? (u(!0), r(A, { key: 0 }, T(q.value, (a, o) => (u(), r("g", null, [
|
|
1088
1108
|
(u(!0), r(A, null, T(a.donut, (l, n) => (u(), r("g", null, [
|
|
1089
1109
|
n === 0 && h.value.width && h.value.height ? (u(), r("text", {
|
|
1090
1110
|
key: 0,
|
|
@@ -1101,13 +1121,13 @@ const Bl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Ul = ["width", "heigh
|
|
|
1101
1121
|
"text-anchor": "middle",
|
|
1102
1122
|
method: "align",
|
|
1103
1123
|
spacing: "auto"
|
|
1104
|
-
},
|
|
1124
|
+
}, I(e.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? i(_t)({
|
|
1105
1125
|
source: a.name,
|
|
1106
1126
|
length: e.value.style.chart.layout.labels.dataLabels.donutNameMaxAbbreviationSize
|
|
1107
|
-
}) : a.name), 9,
|
|
1108
|
-
], 10,
|
|
1127
|
+
}) : a.name), 9, ua)
|
|
1128
|
+
], 10, sa)) : C("", !0)
|
|
1109
1129
|
]))), 256))
|
|
1110
|
-
]))), 256)) : (u(!0), r(A, { key: 1 }, T(
|
|
1130
|
+
]))), 256)) : (u(!0), r(A, { key: 1 }, T(q.value, (a, o) => (u(), r("g", null, [
|
|
1111
1131
|
(u(!0), r(A, null, T(a.donut, (l, n) => (u(), r("g", null, [
|
|
1112
1132
|
n === 0 && h.value.width && h.value.height ? (u(), r("text", {
|
|
1113
1133
|
key: 0,
|
|
@@ -1118,23 +1138,23 @@ const Bl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Ul = ["width", "heigh
|
|
|
1118
1138
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
1119
1139
|
"font-weight": e.value.style.chart.layout.labels.dataLabels.boldDonutName ? "bold" : "normal",
|
|
1120
1140
|
fill: e.value.style.chart.layout.labels.dataLabels.color
|
|
1121
|
-
},
|
|
1141
|
+
}, I(e.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? i(_t)({
|
|
1122
1142
|
source: a.name,
|
|
1123
1143
|
length: e.value.style.chart.layout.labels.dataLabels.donutNameMaxAbbreviationSize
|
|
1124
|
-
}) : a.name), 11,
|
|
1144
|
+
}) : a.name), 11, na)) : C("", !0)
|
|
1125
1145
|
]))), 256))
|
|
1126
1146
|
]))), 256))
|
|
1127
|
-
])) :
|
|
1128
|
-
e.value.style.chart.layout.labels.dataLabels.show ? (u(), r("g",
|
|
1129
|
-
(u(!0), r(A, null, T(
|
|
1147
|
+
])) : C("", !0),
|
|
1148
|
+
e.value.style.chart.layout.labels.dataLabels.show ? (u(), r("g", ra, [
|
|
1149
|
+
(u(!0), r(A, null, T(q.value, (a, o) => (u(), r("g", null, [
|
|
1130
1150
|
(u(!0), r(A, null, T(a.donut.filter((l) => !l.ghost), (l, n) => (u(), r("g", {
|
|
1131
|
-
filter:
|
|
1151
|
+
filter: ft(l, n)
|
|
1132
1152
|
}, [
|
|
1133
|
-
|
|
1153
|
+
kt(y("text", {
|
|
1134
1154
|
class: M({ animated: e.value.useCssAnimation }),
|
|
1135
1155
|
opacity: xe(l) ? 1 : 0,
|
|
1136
|
-
"text-anchor": i(
|
|
1137
|
-
x: i(
|
|
1156
|
+
"text-anchor": i(Z)(l, !0).anchor,
|
|
1157
|
+
x: i(Z)(
|
|
1138
1158
|
l,
|
|
1139
1159
|
!1,
|
|
1140
1160
|
e.value.style.chart.layout.labels.dataLabels.offsetX
|
|
@@ -1147,21 +1167,21 @@ const Bl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Ul = ["width", "heigh
|
|
|
1147
1167
|
fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? l.color : e.value.style.chart.layout.labels.dataLabels.color,
|
|
1148
1168
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
1149
1169
|
"font-weight": e.value.style.chart.layout.labels.dataLabels.boldPercentage ? "bold" : "normal"
|
|
1150
|
-
},
|
|
1170
|
+
}, I(i(F)({
|
|
1151
1171
|
v: l.proportion * 100,
|
|
1152
1172
|
s: "%",
|
|
1153
1173
|
r: e.value.style.chart.layout.labels.dataLabels.roundingPercentage
|
|
1154
|
-
})), 11,
|
|
1174
|
+
})), 11, da), [
|
|
1155
1175
|
[
|
|
1156
|
-
|
|
1157
|
-
|
|
1176
|
+
Ct,
|
|
1177
|
+
x.value.dataLabels.show && e.value.style.chart.layout.labels.dataLabels.showPercentage
|
|
1158
1178
|
]
|
|
1159
1179
|
]),
|
|
1160
|
-
|
|
1180
|
+
kt(y("text", {
|
|
1161
1181
|
class: M({ animated: e.value.useCssAnimation }),
|
|
1162
1182
|
opacity: xe(l) ? 1 : 0,
|
|
1163
|
-
"text-anchor": i(
|
|
1164
|
-
x: i(
|
|
1183
|
+
"text-anchor": i(Z)(l, !0).anchor,
|
|
1184
|
+
x: i(Z)(
|
|
1165
1185
|
l,
|
|
1166
1186
|
!1,
|
|
1167
1187
|
e.value.style.chart.layout.labels.dataLabels.offsetX
|
|
@@ -1174,27 +1194,27 @@ const Bl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Ul = ["width", "heigh
|
|
|
1174
1194
|
fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? l.color : e.value.style.chart.layout.labels.dataLabels.color,
|
|
1175
1195
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
1176
1196
|
"font-weight": e.value.style.chart.layout.labels.dataLabels.boldValue ? "bold" : "normal"
|
|
1177
|
-
}, " (" +
|
|
1197
|
+
}, " (" + I(i(oe)(
|
|
1178
1198
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
1179
1199
|
l.value,
|
|
1180
|
-
i(
|
|
1200
|
+
i(F)({
|
|
1181
1201
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
1182
1202
|
v: l.value,
|
|
1183
1203
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
1184
1204
|
r: e.value.style.chart.layout.labels.dataLabels.roundingValue
|
|
1185
1205
|
}),
|
|
1186
1206
|
{ datapoint: l, seriesIndex: o, datapointIndex: n }
|
|
1187
|
-
)) + ") ", 11,
|
|
1207
|
+
)) + ") ", 11, va), [
|
|
1188
1208
|
[
|
|
1189
|
-
|
|
1190
|
-
|
|
1209
|
+
Ct,
|
|
1210
|
+
x.value.dataLabels.show && e.value.style.chart.layout.labels.dataLabels.showPercentage && e.value.style.chart.layout.labels.dataLabels.showValue
|
|
1191
1211
|
]
|
|
1192
1212
|
]),
|
|
1193
|
-
xe(l) &&
|
|
1213
|
+
xe(l) && x.value.dataLabels.show && !e.value.style.chart.layout.labels.dataLabels.showPercentage && e.value.style.chart.layout.labels.dataLabels.showValue ? (u(), r("text", {
|
|
1194
1214
|
key: 0,
|
|
1195
1215
|
class: M({ animated: e.value.useCssAnimation }),
|
|
1196
|
-
"text-anchor": i(
|
|
1197
|
-
x: i(
|
|
1216
|
+
"text-anchor": i(Z)(l, !0).anchor,
|
|
1217
|
+
x: i(Z)(
|
|
1198
1218
|
l,
|
|
1199
1219
|
!1,
|
|
1200
1220
|
e.value.style.chart.layout.labels.dataLabels.offsetX
|
|
@@ -1207,42 +1227,42 @@ const Bl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Ul = ["width", "heigh
|
|
|
1207
1227
|
fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? l.color : e.value.style.chart.layout.labels.dataLabels.color,
|
|
1208
1228
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
1209
1229
|
"font-weight": e.value.style.chart.layout.labels.dataLabels.boldValue ? "bold" : "normal"
|
|
1210
|
-
},
|
|
1230
|
+
}, I(i(oe)(
|
|
1211
1231
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
1212
1232
|
l.value,
|
|
1213
|
-
i(
|
|
1233
|
+
i(F)({
|
|
1214
1234
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
1215
1235
|
v: l.value,
|
|
1216
1236
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
1217
1237
|
r: e.value.style.chart.layout.labels.dataLabels.roundingValue
|
|
1218
1238
|
}),
|
|
1219
1239
|
{ datapoint: l, seriesIndex: o, datapointIndex: n }
|
|
1220
|
-
)), 11,
|
|
1221
|
-
], 8,
|
|
1240
|
+
)), 11, ca)) : C("", !0)
|
|
1241
|
+
], 8, ia))), 256))
|
|
1222
1242
|
]))), 256))
|
|
1223
|
-
])) :
|
|
1224
|
-
(u(!0), r(A, null, T(
|
|
1243
|
+
])) : C("", !0),
|
|
1244
|
+
(u(!0), r(A, null, T(q.value, (a, o) => (u(), r("g", null, [
|
|
1225
1245
|
(u(!0), r(A, null, T(a.donut, (l, n) => (u(), r("g", null, [
|
|
1226
1246
|
y("path", {
|
|
1227
1247
|
d: l.arcSlice,
|
|
1228
|
-
fill:
|
|
1229
|
-
onMouseenter: (v) =>
|
|
1248
|
+
fill: ge.value === l.id ? e.value.style.chart.layout.donut.selectedColor : "transparent",
|
|
1249
|
+
onMouseenter: (v) => Jt({
|
|
1230
1250
|
datapoint: l,
|
|
1231
1251
|
seriesIndex: l.seriesIndex
|
|
1232
1252
|
}),
|
|
1233
|
-
onClick: (v) =>
|
|
1234
|
-
onMouseleave: (v) =>
|
|
1235
|
-
}, null, 40,
|
|
1253
|
+
onClick: (v) => Wt({ datapoint: l, index: n, seriesIndex: l.seriesIndex }),
|
|
1254
|
+
onMouseleave: (v) => Qt({ datapoint: l, seriesIndex: l.seriesIndex })
|
|
1255
|
+
}, null, 40, ha)
|
|
1236
1256
|
]))), 256))
|
|
1237
1257
|
]))), 256)),
|
|
1238
1258
|
_(t.$slots, "svg", { svg: h.value }, void 0, !0)
|
|
1239
1259
|
], 512)
|
|
1240
|
-
], 14,
|
|
1241
|
-
t.$slots.watermark ? (u(), r("div",
|
|
1242
|
-
_(t.$slots, "watermark",
|
|
1243
|
-
])) :
|
|
1244
|
-
Ve(i(
|
|
1245
|
-
show:
|
|
1260
|
+
], 14, Yl)),
|
|
1261
|
+
t.$slots.watermark ? (u(), r("div", fa, [
|
|
1262
|
+
_(t.$slots, "watermark", Q(J({ isPrinting: i(at) || i(ot) })), void 0, !0)
|
|
1263
|
+
])) : C("", !0),
|
|
1264
|
+
Ve(i(Dt), {
|
|
1265
|
+
show: x.value.showTooltip && pe.value,
|
|
1246
1266
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
1247
1267
|
color: e.value.style.chart.tooltip.color,
|
|
1248
1268
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -1252,61 +1272,61 @@ const Bl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Ul = ["width", "heigh
|
|
|
1252
1272
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
1253
1273
|
position: e.value.style.chart.tooltip.position,
|
|
1254
1274
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
1255
|
-
parent:
|
|
1256
|
-
content:
|
|
1275
|
+
parent: N.value,
|
|
1276
|
+
content: ye.value,
|
|
1257
1277
|
isFullscreen: G.value,
|
|
1258
|
-
isCustom: i(
|
|
1278
|
+
isCustom: i(At)(e.value.style.chart.tooltip.customFormat),
|
|
1259
1279
|
smooth: e.value.style.chart.tooltip.smooth,
|
|
1260
1280
|
backdropFilter: e.value.style.chart.tooltip.backdropFilter,
|
|
1261
1281
|
smoothForce: e.value.style.chart.tooltip.smoothForce,
|
|
1262
1282
|
smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
|
|
1263
1283
|
}, {
|
|
1264
|
-
"tooltip-before":
|
|
1265
|
-
_(t.$slots, "tooltip-before",
|
|
1284
|
+
"tooltip-before": L(() => [
|
|
1285
|
+
_(t.$slots, "tooltip-before", Q(J({ ...Le.value })), void 0, !0)
|
|
1266
1286
|
]),
|
|
1267
|
-
"tooltip-after":
|
|
1268
|
-
_(t.$slots, "tooltip-after",
|
|
1287
|
+
"tooltip-after": L(() => [
|
|
1288
|
+
_(t.$slots, "tooltip-after", Q(J({ ...Le.value })), void 0, !0)
|
|
1269
1289
|
]),
|
|
1270
1290
|
_: 3
|
|
1271
1291
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
1272
1292
|
y("div", {
|
|
1273
1293
|
id: `legend-bottom-${p.value}`
|
|
1274
|
-
}, null, 8,
|
|
1275
|
-
Qe.value ? (u(), B(
|
|
1294
|
+
}, null, 8, pa),
|
|
1295
|
+
Qe.value ? (u(), B(fl, {
|
|
1276
1296
|
key: 5,
|
|
1277
1297
|
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${p.value}` : `#legend-bottom-${p.value}`
|
|
1278
1298
|
}, [
|
|
1279
1299
|
e.value.style.chart.legend.show ? (u(), r("div", {
|
|
1280
1300
|
key: 0,
|
|
1281
1301
|
ref_key: "chartLegend",
|
|
1282
|
-
ref:
|
|
1283
|
-
class: M({ "vue-ui-nested-donuts-legend":
|
|
1302
|
+
ref: be,
|
|
1303
|
+
class: M({ "vue-ui-nested-donuts-legend": re.value.length > 1 })
|
|
1284
1304
|
}, [
|
|
1285
|
-
(u(!0), r(A, null, T(
|
|
1305
|
+
(u(!0), r(A, null, T(re.value, (a, o) => (u(), B(El, {
|
|
1286
1306
|
key: `legend_${o}_${qe.value}`,
|
|
1287
1307
|
legendSet: a,
|
|
1288
|
-
config:
|
|
1289
|
-
onClickMarker: s[0] || (s[0] = ({ legend: l }) =>
|
|
1308
|
+
config: Kt.value,
|
|
1309
|
+
onClickMarker: s[0] || (s[0] = ({ legend: l }) => W(l))
|
|
1290
1310
|
}, {
|
|
1291
|
-
legendTitle:
|
|
1292
|
-
l[0] && l[0].arcOf ? (u(), r("div",
|
|
1311
|
+
legendTitle: L(({ titleSet: l }) => [
|
|
1312
|
+
l[0] && l[0].arcOf ? (u(), r("div", ya, I(l[0].arcOf), 1)) : C("", !0)
|
|
1293
1313
|
]),
|
|
1294
|
-
item:
|
|
1314
|
+
item: L(({ legend: l, index: n }) => [
|
|
1295
1315
|
y("div", {
|
|
1296
|
-
onClick: (v) =>
|
|
1297
|
-
style:
|
|
1298
|
-
},
|
|
1316
|
+
onClick: (v) => W(l),
|
|
1317
|
+
style: he(`opacity:${b.value.includes(l.id) ? 0.5 : 1}`)
|
|
1318
|
+
}, I(l.display), 13, ga)
|
|
1299
1319
|
]),
|
|
1300
1320
|
_: 1
|
|
1301
1321
|
}, 8, ["legendSet", "config"]))), 128))
|
|
1302
|
-
], 2)) :
|
|
1303
|
-
], 8, ["to"])) :
|
|
1304
|
-
e.value.style.chart.legend.show ?
|
|
1322
|
+
], 2)) : C("", !0)
|
|
1323
|
+
], 8, ["to"])) : C("", !0),
|
|
1324
|
+
e.value.style.chart.legend.show ? C("", !0) : (u(), r("div", {
|
|
1305
1325
|
key: 6,
|
|
1306
1326
|
ref_key: "chartLegend",
|
|
1307
|
-
ref:
|
|
1327
|
+
ref: be
|
|
1308
1328
|
}, [
|
|
1309
|
-
_(t.$slots, "legend", { legend:
|
|
1329
|
+
_(t.$slots, "legend", { legend: re.value }, void 0, !0)
|
|
1310
1330
|
], 512)),
|
|
1311
1331
|
t.$slots.source ? (u(), r("div", {
|
|
1312
1332
|
key: 7,
|
|
@@ -1315,31 +1335,31 @@ const Bl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Ul = ["width", "heigh
|
|
|
1315
1335
|
dir: "auto"
|
|
1316
1336
|
}, [
|
|
1317
1337
|
_(t.$slots, "source", {}, void 0, !0)
|
|
1318
|
-
], 512)) :
|
|
1319
|
-
|
|
1338
|
+
], 512)) : C("", !0),
|
|
1339
|
+
fe.value && e.value.userOptions.buttons.table ? (u(), B(pl(le.value.component), yl({ key: 8 }, le.value.props, {
|
|
1320
1340
|
ref_key: "tableUnit",
|
|
1321
|
-
ref:
|
|
1322
|
-
onClose:
|
|
1323
|
-
}),
|
|
1324
|
-
content:
|
|
1325
|
-
(u(), B(i(
|
|
1341
|
+
ref: ee,
|
|
1342
|
+
onClose: bt
|
|
1343
|
+
}), $t({
|
|
1344
|
+
content: L(() => [
|
|
1345
|
+
(u(), B(i(Vt), {
|
|
1326
1346
|
key: `table_${He.value}`,
|
|
1327
|
-
colNames:
|
|
1328
|
-
head:
|
|
1329
|
-
body:
|
|
1330
|
-
config:
|
|
1331
|
-
title: e.value.table.useDialog ? "" :
|
|
1347
|
+
colNames: ie.value.colNames,
|
|
1348
|
+
head: ie.value.head,
|
|
1349
|
+
body: ie.value.body,
|
|
1350
|
+
config: ie.value.config,
|
|
1351
|
+
title: e.value.table.useDialog ? "" : le.value.title,
|
|
1332
1352
|
withCloseButton: !e.value.table.useDialog,
|
|
1333
|
-
onClose:
|
|
1353
|
+
onClose: bt
|
|
1334
1354
|
}, {
|
|
1335
|
-
th:
|
|
1355
|
+
th: L(({ th: a }) => [
|
|
1336
1356
|
y("div", {
|
|
1337
1357
|
innerHTML: a,
|
|
1338
1358
|
style: { display: "flex", "align-items": "center" }
|
|
1339
|
-
}, null, 8,
|
|
1359
|
+
}, null, 8, ba)
|
|
1340
1360
|
]),
|
|
1341
|
-
td:
|
|
1342
|
-
|
|
1361
|
+
td: L(({ td: a }) => [
|
|
1362
|
+
Lt(I(a.name || a), 1)
|
|
1343
1363
|
]),
|
|
1344
1364
|
_: 1
|
|
1345
1365
|
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
|
|
@@ -1348,32 +1368,32 @@ const Bl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Ul = ["width", "heigh
|
|
|
1348
1368
|
}, [
|
|
1349
1369
|
e.value.table.useDialog ? {
|
|
1350
1370
|
name: "title",
|
|
1351
|
-
fn:
|
|
1352
|
-
|
|
1371
|
+
fn: L(() => [
|
|
1372
|
+
Lt(I(le.value.title), 1)
|
|
1353
1373
|
]),
|
|
1354
1374
|
key: "0"
|
|
1355
1375
|
} : void 0,
|
|
1356
1376
|
e.value.table.useDialog ? {
|
|
1357
1377
|
name: "actions",
|
|
1358
|
-
fn:
|
|
1378
|
+
fn: L(() => [
|
|
1359
1379
|
y("button", {
|
|
1360
1380
|
tabindex: "0",
|
|
1361
1381
|
class: "vue-ui-user-options-button",
|
|
1362
1382
|
onClick: s[1] || (s[1] = (a) => _e(e.value.userOptions.callbacks.csv))
|
|
1363
1383
|
}, [
|
|
1364
|
-
Ve(i(
|
|
1384
|
+
Ve(i(It), {
|
|
1365
1385
|
name: "excel",
|
|
1366
|
-
stroke:
|
|
1386
|
+
stroke: le.value.props.color
|
|
1367
1387
|
}, null, 8, ["stroke"])
|
|
1368
1388
|
])
|
|
1369
1389
|
]),
|
|
1370
1390
|
key: "1"
|
|
1371
1391
|
} : void 0
|
|
1372
|
-
]), 1040)) :
|
|
1373
|
-
i(
|
|
1374
|
-
], 46,
|
|
1392
|
+
]), 1040)) : C("", !0),
|
|
1393
|
+
i(we) ? (u(), B(Nl, { key: 9 })) : C("", !0)
|
|
1394
|
+
], 46, Rl));
|
|
1375
1395
|
}
|
|
1376
|
-
},
|
|
1396
|
+
}, Ia = /* @__PURE__ */ Ul(ma, [["__scopeId", "data-v-2263029b"]]);
|
|
1377
1397
|
export {
|
|
1378
|
-
|
|
1398
|
+
Ia as default
|
|
1379
1399
|
};
|