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