vue-data-ui 2.3.78 → 2.3.80
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-BCYtOwX7.js → Arrow-BI2HWbkl.js} +1 -1
- package/dist/{Arrow-DWkvIpW8.cjs → Arrow-BwOfAkTh.cjs} +1 -1
- package/dist/{BaseIcon-BIQXWVMS.js → BaseIcon-BhdIp3HQ.js} +1 -1
- package/dist/{BaseIcon-Bcpzfk34.cjs → BaseIcon-DU-oJKBy.cjs} +1 -1
- package/dist/{DataTable-y1lX5jVj.js → DataTable-CThhaAYT.js} +2 -2
- package/dist/{DataTable-C5TOiC61.cjs → DataTable-ysqfWT9v.cjs} +1 -1
- package/dist/{Legend-CGGD8NhP.cjs → Legend-DtnPX_Dc.cjs} +1 -1
- package/dist/{Legend-BLXcdrri.js → Legend-DxRA5XXC.js} +1 -1
- package/dist/{Shape-qJYTY2BC.cjs → Shape-DJdHakOl.cjs} +1 -1
- package/dist/{Shape-CsoTtJx6.js → Shape-EntBaNbX.js} +1 -1
- package/dist/{Slicer-DzJZ4axa.js → Slicer-BLFTdmNs.js} +2 -2
- package/dist/{Slicer-CZJXKSeE.cjs → Slicer-xJl1pkRn.cjs} +1 -1
- package/dist/{Title-Bx-VO3md.js → Title-Bgh58KWs.js} +1 -1
- package/dist/{Title-BSpa3uge.cjs → Title-DOzi72Pu.cjs} +1 -1
- package/dist/{Tooltip-rmhZhv96.cjs → Tooltip-DWx3KcqE.cjs} +1 -1
- package/dist/{Tooltip-Dk-cimhQ.js → Tooltip-HqwVgkYT.js} +1 -1
- package/dist/{index-CzjC8LfY.cjs → index-BofUHMEw.cjs} +1 -1
- package/dist/{index-DP8dqFNd.js → index-C_xZ1jJj.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-B-oZxD4x.js → useNestedProp-9QKvGow8.js} +1 -1
- package/dist/{useNestedProp-CY7DebVH.cjs → useNestedProp-DGK0LGfN.cjs} +1 -1
- package/dist/{usePrinter-DiuHo4LO.js → usePrinter-BJ7GxAOO.js} +1 -1
- package/dist/{usePrinter-DiLM6jav.cjs → usePrinter-_JYb_33H.cjs} +1 -1
- package/dist/{vue-data-ui-Ce5IFSYA.cjs → vue-data-ui-BDRU4x1z.cjs} +1 -1
- package/dist/{vue-data-ui-Ct7n5wkM.js → vue-data-ui-MIo8xmC1.js} +57 -57
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-B_i2EoFu.cjs → vue-ui-3d-bar-Clct1WMZ.cjs} +1 -1
- package/dist/{vue-ui-3d-bar-O3fB5J7V.js → vue-ui-3d-bar-Dul4M5zs.js} +7 -7
- package/dist/{vue-ui-accordion-DpI7fTKZ.cjs → vue-ui-accordion-XtygMpX7.cjs} +1 -1
- package/dist/{vue-ui-accordion-Dl8zkZPk.js → vue-ui-accordion-issoIPFd.js} +3 -3
- package/dist/{vue-ui-age-pyramid-BeiREI6d.js → vue-ui-age-pyramid-DnfnIupT.js} +8 -8
- package/dist/{vue-ui-age-pyramid-BsAfxkN4.cjs → vue-ui-age-pyramid-EsCLRd6s.cjs} +1 -1
- package/dist/{vue-ui-annotator-0yje27Qq.js → vue-ui-annotator-CmrenuBi.js} +1 -1
- package/dist/{vue-ui-annotator-DpN-6IwB.cjs → vue-ui-annotator-zFbcfeEs.cjs} +1 -1
- package/dist/{vue-ui-candlestick-lv78wnpS.cjs → vue-ui-candlestick-Bdo2RhhM.cjs} +1 -1
- package/dist/{vue-ui-candlestick-D9UteVvx.js → vue-ui-candlestick-DlwYwMdG.js} +9 -9
- package/dist/{vue-ui-carousel-table-Br6FwMKM.cjs → vue-ui-carousel-table-IN0an_Jc.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-jxZ3h5pq.js → vue-ui-carousel-table-mo9C1GJ9.js} +4 -4
- package/dist/{vue-ui-chestnut-DbYHeNaL.cjs → vue-ui-chestnut-C9jiVBGB.cjs} +1 -1
- package/dist/{vue-ui-chestnut-DXuHRJy4.js → vue-ui-chestnut-DUeStDzz.js} +6 -6
- package/dist/{vue-ui-cursor-iss6SJ1Y.cjs → vue-ui-cursor-BoetT349.cjs} +1 -1
- package/dist/{vue-ui-cursor-BzPbdVRJ.js → vue-ui-cursor-x_Ai6P6S.js} +2 -2
- package/dist/{vue-ui-dashboard-CGjWuFrI.js → vue-ui-dashboard-B8IRsFc3.js} +2 -2
- package/dist/{vue-ui-dashboard-DKT82yQ4.cjs → vue-ui-dashboard-DUH23G5u.cjs} +1 -1
- package/dist/{vue-ui-digits-BCguvLxB.js → vue-ui-digits-BO5Bxyib.js} +2 -2
- package/dist/{vue-ui-digits-BfwDCfYp.cjs → vue-ui-digits-ByNeTvE4.cjs} +1 -1
- package/dist/vue-ui-donut-CDizH2x3.cjs +1 -0
- package/dist/{vue-ui-donut-DJTeGLVG.js → vue-ui-donut-DC6mZWdM.js} +318 -318
- package/dist/{vue-ui-donut-evolution-BaLDZNDG.js → vue-ui-donut-evolution-B2U3g0Yw.js} +9 -9
- package/dist/{vue-ui-donut-evolution-Bil1AIhX.cjs → vue-ui-donut-evolution-B7G4UB_e.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-BqtDdV5w.js → vue-ui-dumbbell-81Azsrmw.js} +8 -8
- package/dist/{vue-ui-dumbbell-DiL3xhKY.cjs → vue-ui-dumbbell-DD7RtYjl.cjs} +1 -1
- package/dist/{vue-ui-flow-BVTbbsCK.cjs → vue-ui-flow-BbJmSWr4.cjs} +1 -1
- package/dist/{vue-ui-flow-zfTGon4s.js → vue-ui-flow-CTobijfD.js} +7 -7
- package/dist/{vue-ui-galaxy-5iRb5sQ-.js → vue-ui-galaxy-B9U-hTWd.js} +9 -9
- package/dist/{vue-ui-galaxy-GSO_6KIe.cjs → vue-ui-galaxy-BxkH3rZs.cjs} +1 -1
- package/dist/{vue-ui-gauge-DljHYdCS.js → vue-ui-gauge-BvS6Ep8K.js} +5 -5
- package/dist/{vue-ui-gauge-Bz7oLa51.cjs → vue-ui-gauge-DezT9Iw3.cjs} +1 -1
- package/dist/{vue-ui-gizmo-B-fxFOZy.js → vue-ui-gizmo-CCSV95Cw.js} +2 -2
- package/dist/{vue-ui-gizmo-KL0OJY2K.cjs → vue-ui-gizmo-CdGlyolL.cjs} +1 -1
- package/dist/{vue-ui-heatmap-ketn_NV3.js → vue-ui-heatmap-DQntMs3y.js} +8 -8
- package/dist/{vue-ui-heatmap-thMJPCfo.cjs → vue-ui-heatmap-Decb4BRV.cjs} +1 -1
- package/dist/{vue-ui-kpi-e1QWa8D4.cjs → vue-ui-kpi-MZSJlc3i.cjs} +1 -1
- package/dist/{vue-ui-kpi-Bxu8uZ21.js → vue-ui-kpi-yDsCX1qh.js} +3 -3
- package/dist/{vue-ui-mini-loader-BZ_2aV8O.js → vue-ui-mini-loader-DluKyWjA.js} +2 -2
- package/dist/{vue-ui-mini-loader-paRZQU8H.cjs → vue-ui-mini-loader-Dz3LxxFJ.cjs} +1 -1
- package/dist/{vue-ui-molecule-Bpp5unvI.js → vue-ui-molecule-BG1BbGts.js} +9 -9
- package/dist/{vue-ui-molecule-VOBL4Osc.cjs → vue-ui-molecule-rmhSL2tT.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-BY8XP_Q5.js → vue-ui-mood-radar-EO6jRkGF.js} +9 -9
- package/dist/{vue-ui-mood-radar-CwtMLwP8.cjs → vue-ui-mood-radar-owAd1Twe.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-5uuLi3If.js → vue-ui-nested-donuts-HDfFuFhB.js} +302 -308
- package/dist/vue-ui-nested-donuts-u-4RFRIE.cjs +17 -0
- package/dist/{vue-ui-onion-CMSPSSSG.cjs → vue-ui-onion-BUOOD3WG.cjs} +1 -1
- package/dist/{vue-ui-onion-zDy4ecPl.js → vue-ui-onion-DqMY1iPE.js} +9 -9
- package/dist/{vue-ui-parallel-coordinate-plot-1PFxiI__.cjs → vue-ui-parallel-coordinate-plot-2JGpf8SJ.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-BeEkL7Dq.js → vue-ui-parallel-coordinate-plot-CUU74I_R.js} +10 -10
- package/dist/{vue-ui-quadrant-Cx5z_c90.cjs → vue-ui-quadrant-BXUtKBlK.cjs} +1 -1
- package/dist/{vue-ui-quadrant-MCIlbbsW.js → vue-ui-quadrant-BrbrrHLN.js} +10 -10
- package/dist/{vue-ui-quick-chart-r6Qa7qg_.js → vue-ui-quick-chart-BeJMzQZr.js} +7 -7
- package/dist/{vue-ui-quick-chart-Xn-47NQG.cjs → vue-ui-quick-chart-CNn9Wt0K.cjs} +1 -1
- package/dist/{vue-ui-radar-DFV5cFkl.js → vue-ui-radar-BMbWx0XC.js} +10 -10
- package/dist/{vue-ui-radar-ANQ1wXFc.cjs → vue-ui-radar-yFYbYYI9.cjs} +1 -1
- package/dist/{vue-ui-rating-BVzCbQbv.cjs → vue-ui-rating-Ckh6xyv1.cjs} +1 -1
- package/dist/{vue-ui-rating-DYu1EuJF.js → vue-ui-rating-D19QGpzZ.js} +2 -2
- package/dist/{vue-ui-relation-circle-BAcmDQB_.js → vue-ui-relation-circle-DqdXa6V6.js} +5 -5
- package/dist/{vue-ui-relation-circle-DEM6C6Or.cjs → vue-ui-relation-circle-YH6EpWSC.cjs} +1 -1
- package/dist/{vue-ui-rings-BiLlYpgu.js → vue-ui-rings-CDqf78PA.js} +9 -9
- package/dist/{vue-ui-rings-Ce4G4hat.cjs → vue-ui-rings-Dbi3uWQh.cjs} +1 -1
- package/dist/{vue-ui-scatter-OtlcTCUF.cjs → vue-ui-scatter-Ch3iYYoX.cjs} +1 -1
- package/dist/{vue-ui-scatter-D2ndYfkQ.js → vue-ui-scatter-D3IFY9II.js} +10 -10
- package/dist/{vue-ui-screenshot-DTQx4VsM.cjs → vue-ui-screenshot-DBmmftjw.cjs} +1 -1
- package/dist/{vue-ui-screenshot-CKCNPn-e.js → vue-ui-screenshot-Xtz1BC-w.js} +1 -1
- package/dist/{vue-ui-skeleton-CwqzJlQf.cjs → vue-ui-skeleton-Bx_kbjKr.cjs} +1 -1
- package/dist/{vue-ui-skeleton-B30ZhUV7.js → vue-ui-skeleton-C3UWXP3Q.js} +2 -2
- package/dist/{vue-ui-smiley-L6o24M6h.cjs → vue-ui-smiley-BCorPn2E.cjs} +1 -1
- package/dist/{vue-ui-smiley-DzLvZR1k.js → vue-ui-smiley-FhcqViE3.js} +2 -2
- package/dist/{vue-ui-spark-trend-BoWeviHk.cjs → vue-ui-spark-trend-C1BmsVRe.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-BKsmENbH.js → vue-ui-spark-trend-RJUm-CJC.js} +4 -4
- package/dist/{vue-ui-sparkbar-DNzZkp8z.js → vue-ui-sparkbar-C6sZ4mYK.js} +3 -3
- package/dist/{vue-ui-sparkbar-DY3iOLo4.cjs → vue-ui-sparkbar-CtQSQySy.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-B2DngjVP.js → vue-ui-sparkgauge-C1pOZo8V.js} +3 -3
- package/dist/{vue-ui-sparkgauge-BlZ-lJm4.cjs → vue-ui-sparkgauge-CoyqAUDp.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-BUBewgdH.cjs → vue-ui-sparkhistogram-DvBJHfyk.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-Co9N3BeQ.js → vue-ui-sparkhistogram-Mh93EuLF.js} +4 -4
- package/dist/{vue-ui-sparkline-BhL0mxXD.cjs → vue-ui-sparkline-CXIAmE5m.cjs} +1 -1
- package/dist/{vue-ui-sparkline-Dpqo4aRJ.js → vue-ui-sparkline-DiAIsoI3.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-_JwfRxF8.js → vue-ui-sparkstackbar-Bb8ZtMfn.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-DtNbx3EV.cjs → vue-ui-sparkstackbar-BePzQn-H.cjs} +1 -1
- package/dist/{vue-ui-stackbar-BtN7ZM7-.js → vue-ui-stackbar-B7KyGHZZ.js} +10 -10
- package/dist/{vue-ui-stackbar-C7AWHP6m.cjs → vue-ui-stackbar-BiNZ2pBZ.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-6L9a7BSw.js → vue-ui-strip-plot-8d_juyi7.js} +9 -9
- package/dist/{vue-ui-strip-plot-cgOFTunJ.cjs → vue-ui-strip-plot-CY5rDwjh.cjs} +1 -1
- package/dist/{vue-ui-table-BFYHRMCS.js → vue-ui-table-CSm91gHM.js} +1 -1
- package/dist/{vue-ui-table-4Pf9tmFg.cjs → vue-ui-table-CoGh4xvF.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap--kPCu8mA.js → vue-ui-table-heatmap-B30TipjK.js} +4 -4
- package/dist/{vue-ui-table-heatmap-CltKb2V9.cjs → vue-ui-table-heatmap-CwDproVr.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-B5OjJud8.cjs → vue-ui-table-sparkline-B8lCOsfc.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-CsWx1Ksy.js → vue-ui-table-sparkline-BcFIKA8V.js} +5 -5
- package/dist/{vue-ui-thermometer-nTD7sp8r.js → vue-ui-thermometer-CPqFKYwL.js} +5 -5
- package/dist/{vue-ui-thermometer-62_4QovL.cjs → vue-ui-thermometer-D6rDq4hj.cjs} +1 -1
- package/dist/{vue-ui-timer-BU0s7Vt9.cjs → vue-ui-timer-C70sw9Rc.cjs} +1 -1
- package/dist/{vue-ui-timer-DMFHjnzA.js → vue-ui-timer-DdQB8bF5.js} +4 -4
- package/dist/{vue-ui-tiremarks-1X9B1VKM.js → vue-ui-tiremarks-DDCOUKU9.js} +5 -5
- package/dist/{vue-ui-tiremarks-mwBeBMJY.cjs → vue-ui-tiremarks-o-KdCzZV.cjs} +1 -1
- package/dist/{vue-ui-treemap-CVTwqPFA.js → vue-ui-treemap-BOCZ8x4F.js} +9 -9
- package/dist/{vue-ui-treemap-DQmBbm7e.cjs → vue-ui-treemap-C3XRZk0P.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-BXiy8KRC.cjs → vue-ui-vertical-bar-C2ZIoY0I.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-Br6Z0A3F.js → vue-ui-vertical-bar-CAlQekf-.js} +9 -9
- package/dist/{vue-ui-waffle-DEXMh07q.js → vue-ui-waffle-CasLSUzY.js} +9 -9
- package/dist/{vue-ui-waffle-CLCsHw9j.cjs → vue-ui-waffle-D1eYO-NM.cjs} +1 -1
- package/dist/{vue-ui-wheel-DSFKKX65.cjs → vue-ui-wheel-C4ODblPX.cjs} +1 -1
- package/dist/{vue-ui-wheel-CwjuVi6U.js → vue-ui-wheel-CHn24pYD.js} +5 -5
- package/dist/{vue-ui-word-cloud-DZS4hCeR.cjs → vue-ui-word-cloud-XCS_A5_a.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-BKeD3fHb.js → vue-ui-word-cloud-uGJLXPYv.js} +7 -7
- package/dist/{vue-ui-xy-B5aCogSL.cjs → vue-ui-xy-CH9wvh8w.cjs} +1 -1
- package/dist/{vue-ui-xy-DA3qqL8u.js → vue-ui-xy-KnfMOUv4.js} +12 -12
- package/dist/{vue-ui-xy-canvas-B7DH4RK5.js → vue-ui-xy-canvas-DVjSzeFt.js} +10 -10
- package/dist/{vue-ui-xy-canvas-heCdqh5X.cjs → vue-ui-xy-canvas-Yy7FaFLS.cjs} +1 -1
- package/package.json +1 -1
- package/dist/vue-ui-donut-uVPdO4UH.cjs +0 -1
- package/dist/vue-ui-nested-donuts-CLnVnAiD.cjs +0 -17
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { computed as
|
|
2
|
-
import { u as
|
|
3
|
-
import { t as
|
|
4
|
-
import { _ as
|
|
5
|
-
import { u as
|
|
6
|
-
import { D as
|
|
7
|
-
import { _ as
|
|
8
|
-
import { L as
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { u as
|
|
1
|
+
import { computed as g, ref as d, watch as De, onMounted as qe, onBeforeUnmount as Je, openBlock as u, createElementBlock as n, normalizeClass as O, normalizeStyle as ue, createBlock as P, createCommentVNode as y, unref as r, createSlots as Ke, withCtx as m, renderSlot as $, normalizeProps as q, guardReactiveProps as J, createElementVNode as p, Fragment as x, renderList as S, toDisplayString as T, createVNode as Qe, createTextVNode as K, nextTick as Ze, pushScopeId as je, popScopeId as et } from "vue";
|
|
2
|
+
import { u as tt, c as lt, t as at, a as ot, p as Q, o as st, e as A, b as ut, G as ze, d as nt, m as Oe, f as L, X as rt, s as Pe, I as it, k as V, n as ne, i as G, x as Ae, y as dt, q as ct, r as vt } from "./index-C_xZ1jJj.js";
|
|
3
|
+
import { t as ft, u as ht } from "./useResponsive-NZB-WLRF.js";
|
|
4
|
+
import { _ as yt } from "./Title-Bgh58KWs.js";
|
|
5
|
+
import { u as pt, U as bt } from "./usePrinter-BJ7GxAOO.js";
|
|
6
|
+
import { D as gt } from "./DataTable-CThhaAYT.js";
|
|
7
|
+
import { _ as mt } from "./Tooltip-HqwVgkYT.js";
|
|
8
|
+
import { L as wt } from "./Legend-DxRA5XXC.js";
|
|
9
|
+
import kt from "./vue-ui-skeleton-C3UWXP3Q.js";
|
|
10
|
+
import _t from "./vue-ui-accordion-issoIPFd.js";
|
|
11
|
+
import { u as Ve } from "./useNestedProp-9QKvGow8.js";
|
|
12
12
|
import { _ as xt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
|
-
const
|
|
13
|
+
const re = (M) => (je("data-v-e6e70e76"), M = M(), et(), M), $t = ["id"], Lt = ["xmlns", "viewBox"], Ct = ["id"], Ft = /* @__PURE__ */ re(() => /* @__PURE__ */ p("stop", {
|
|
14
14
|
offset: "0%",
|
|
15
15
|
"stop-color": "#FFFFFF",
|
|
16
16
|
"stop-opacity": "0"
|
|
17
|
-
}, null, -1)),
|
|
17
|
+
}, null, -1)), St = ["offset", "stop-color"], Nt = ["offset", "stop-opacity"], Tt = /* @__PURE__ */ re(() => /* @__PURE__ */ p("stop", {
|
|
18
18
|
offset: "100%",
|
|
19
19
|
"stop-color": "#FFFFFF",
|
|
20
20
|
"stop-opacity": "0"
|
|
21
|
-
}, null, -1)),
|
|
21
|
+
}, null, -1)), It = ["id"], Dt = ["id"], zt = /* @__PURE__ */ re(() => /* @__PURE__ */ p("feColorMatrix", {
|
|
22
22
|
type: "saturate",
|
|
23
23
|
values: "0"
|
|
24
|
-
}, null, -1)),
|
|
24
|
+
}, null, -1)), Ot = ["id"], Pt = ["flood-color"], At = ["d", "fill", "stroke", "stroke-width", "filter"], Vt = { key: 0 }, Mt = ["d", "fill"], Bt = { key: 1 }, Ut = ["x", "y", "font-size", "font-weight", "fill"], Gt = { key: 2 }, Rt = ["filter"], Et = ["text-anchor", "x", "y", "fill", "font-size", "font-weight"], Yt = ["text-anchor", "x", "y", "fill", "font-size", "font-weight"], Xt = ["text-anchor", "x", "y", "fill", "font-size", "font-weight"], Wt = ["d", "fill", "onMouseenter", "onClick"], Ht = {
|
|
25
25
|
key: 3,
|
|
26
26
|
class: "vue-data-ui-watermark"
|
|
27
|
-
},
|
|
27
|
+
}, qt = {
|
|
28
28
|
key: 0,
|
|
29
29
|
class: "vue-ui-nested-donuts-legend-title"
|
|
30
|
-
},
|
|
30
|
+
}, Jt = ["onClick"], Kt = ["innerHTML"], Qt = {
|
|
31
31
|
__name: "vue-ui-nested-donuts",
|
|
32
32
|
props: {
|
|
33
33
|
config: {
|
|
@@ -44,85 +44,85 @@ const ne = (M) => (Ke("data-v-8ee0a3c3"), M = M(), Qe(), M), _t = ["id"], kt = [
|
|
|
44
44
|
}
|
|
45
45
|
},
|
|
46
46
|
emits: ["selectLegend", "selectDatapoint"],
|
|
47
|
-
setup(M, { expose:
|
|
48
|
-
const I = M, { vue_ui_nested_donuts:
|
|
49
|
-
function
|
|
50
|
-
U.value = t,
|
|
47
|
+
setup(M, { expose: Me, emit: ie }) {
|
|
48
|
+
const I = M, { vue_ui_nested_donuts: Be } = tt(), R = g(() => !!I.dataset && I.dataset.length), w = d(lt()), Z = d(!1), j = d(""), Ue = d(null), de = d(0), B = d(null), ce = d(null), ee = d(null), ve = d(0), fe = d(0), he = d(0), U = d(!1);
|
|
49
|
+
function Ge(t) {
|
|
50
|
+
U.value = t, de.value += 1;
|
|
51
51
|
}
|
|
52
|
-
const e =
|
|
53
|
-
get: () =>
|
|
52
|
+
const e = g({
|
|
53
|
+
get: () => ye(),
|
|
54
54
|
set: (t) => t
|
|
55
55
|
});
|
|
56
|
-
function
|
|
57
|
-
const t =
|
|
56
|
+
function ye() {
|
|
57
|
+
const t = Ve({
|
|
58
58
|
userConfig: I.config,
|
|
59
|
-
defaultConfig:
|
|
59
|
+
defaultConfig: Be
|
|
60
60
|
});
|
|
61
61
|
return t.theme ? {
|
|
62
|
-
...
|
|
63
|
-
userConfig:
|
|
62
|
+
...Ve({
|
|
63
|
+
userConfig: at.vue_ui_nested_donuts[t.theme] || I.config,
|
|
64
64
|
defaultConfig: t
|
|
65
65
|
}),
|
|
66
|
-
customPalette:
|
|
66
|
+
customPalette: ot[t.theme] || Q
|
|
67
67
|
} : t;
|
|
68
68
|
}
|
|
69
|
-
|
|
70
|
-
e.value =
|
|
69
|
+
De(() => I.config, (t) => {
|
|
70
|
+
e.value = ye(), pe(), ve.value += 1, fe.value += 1, he.value += 1;
|
|
71
71
|
}, { deep: !0 });
|
|
72
|
-
const
|
|
73
|
-
|
|
74
|
-
|
|
72
|
+
const E = d(null);
|
|
73
|
+
qe(() => {
|
|
74
|
+
pe();
|
|
75
75
|
});
|
|
76
|
-
function
|
|
77
|
-
if (
|
|
76
|
+
function pe() {
|
|
77
|
+
if (st(I.dataset) && A({
|
|
78
78
|
componentName: "VueUiNestedDonuts",
|
|
79
79
|
type: "dataset"
|
|
80
80
|
}), e.value.responsive) {
|
|
81
|
-
const t =
|
|
82
|
-
const { width:
|
|
81
|
+
const t = ft(() => {
|
|
82
|
+
const { width: s, height: a } = ht({
|
|
83
83
|
chart: B.value,
|
|
84
|
-
title: e.value.style.chart.title.text ?
|
|
84
|
+
title: e.value.style.chart.title.text ? ce.value : null,
|
|
85
85
|
legend: e.value.style.chart.legend.show ? ee.value : null
|
|
86
86
|
});
|
|
87
|
-
|
|
87
|
+
f.value.width = s, f.value.height = a;
|
|
88
88
|
});
|
|
89
|
-
|
|
89
|
+
E.value = new ResizeObserver(t), E.value.observe(B.value.parentNode);
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
|
-
|
|
93
|
-
|
|
92
|
+
Je(() => {
|
|
93
|
+
E.value && E.value.disconnect();
|
|
94
94
|
});
|
|
95
|
-
const { isPrinting:
|
|
96
|
-
elementId: `nested_donuts_${
|
|
95
|
+
const { isPrinting: be, isImaging: ge, generatePdf: me, generateImage: we } = pt({
|
|
96
|
+
elementId: `nested_donuts_${w.value}`,
|
|
97
97
|
fileName: e.value.style.chart.title.text || "vue-ui-nested-donuts"
|
|
98
|
-
}),
|
|
98
|
+
}), Re = g(() => ut(e.value.customPalette)), k = d({
|
|
99
99
|
dataLabels: {
|
|
100
100
|
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
101
101
|
},
|
|
102
102
|
showTable: e.value.table.show,
|
|
103
103
|
showTooltip: e.value.style.chart.tooltip.show
|
|
104
|
-
}),
|
|
104
|
+
}), f = d({
|
|
105
105
|
height: 512,
|
|
106
106
|
width: 512
|
|
107
107
|
});
|
|
108
|
-
function
|
|
109
|
-
|
|
108
|
+
function Ee({ datapoint: t, index: s }) {
|
|
109
|
+
ie("selectDatapoint", { datapoint: t, index: s });
|
|
110
110
|
}
|
|
111
|
-
const
|
|
111
|
+
const h = d([]), C = g(() => (I.dataset.forEach((t, s) => {
|
|
112
112
|
[null, void 0].includes(t.name) && A({
|
|
113
113
|
componentName: "VueUiNestedDonuts",
|
|
114
114
|
type: "datasetSerieAttribute",
|
|
115
115
|
property: "name",
|
|
116
|
-
index:
|
|
116
|
+
index: s
|
|
117
117
|
}), [null, void 0].includes(t.series) ? A({
|
|
118
118
|
componentName: "VueUiNestedDonuts",
|
|
119
119
|
type: "datasetSerieAttribute",
|
|
120
120
|
property: "series",
|
|
121
|
-
index:
|
|
121
|
+
index: s
|
|
122
122
|
}) : t.series.length === 0 ? A({
|
|
123
123
|
componentName: "VueUiNestedDonuts",
|
|
124
124
|
type: "datasetAttributeEmpty",
|
|
125
|
-
property: `series at index ${
|
|
125
|
+
property: `series at index ${s}`
|
|
126
126
|
}) : t.series.forEach((a, o) => {
|
|
127
127
|
[null, void 0].includes(a.name) && A({
|
|
128
128
|
componentName: "VueUiNestedDonuts",
|
|
@@ -138,162 +138,162 @@ const ne = (M) => (Ke("data-v-8ee0a3c3"), M = M(), Qe(), M), _t = ["id"], kt = [
|
|
|
138
138
|
key: "serie"
|
|
139
139
|
});
|
|
140
140
|
});
|
|
141
|
-
}), I.dataset.map((t,
|
|
141
|
+
}), I.dataset.map((t, s) => ({
|
|
142
142
|
...t,
|
|
143
|
-
total: t.series.filter((a) => !
|
|
144
|
-
datasetIndex:
|
|
145
|
-
id: `${
|
|
143
|
+
total: t.series.filter((a) => !h.value.includes(a.id)).map((a) => ze(a.values).reduce((o, l) => o + l, 0)).reduce((a, o) => a + o, 0),
|
|
144
|
+
datasetIndex: s,
|
|
145
|
+
id: `${w.value}_${s}`,
|
|
146
146
|
series: t.series.map((a, o) => ({
|
|
147
147
|
name: a.name,
|
|
148
148
|
arcOf: t.name,
|
|
149
|
-
arcOfId: `${
|
|
150
|
-
id: `${
|
|
149
|
+
arcOfId: `${w.value}_${s}`,
|
|
150
|
+
id: `${w.value}_${s}_${o}`,
|
|
151
151
|
seriesIndex: o,
|
|
152
|
-
datasetIndex:
|
|
153
|
-
color:
|
|
154
|
-
value:
|
|
152
|
+
datasetIndex: s,
|
|
153
|
+
color: nt(a.color) || Re.value[o] || Q[o] || Q[o % Q.length],
|
|
154
|
+
value: ze(a.values).reduce((l, i) => l + i, 0),
|
|
155
155
|
absoluteValues: a.values || []
|
|
156
156
|
}))
|
|
157
|
-
})))),
|
|
158
|
-
const a = t.series.filter((o) => !
|
|
157
|
+
})))), F = g(() => Math.min(f.value.height, f.value.width) * (e.value.style.chart.layout.donut.strokeWidth / 512)), ke = g(() => [...C.value].map((t, s) => {
|
|
158
|
+
const a = t.series.filter((o) => !h.value.includes(o.id)).map((o) => o.value).reduce((o, l) => o + l, 0);
|
|
159
159
|
return {
|
|
160
160
|
...t,
|
|
161
161
|
total: a,
|
|
162
|
-
series: t.series.filter((o) => !
|
|
162
|
+
series: t.series.filter((o) => !h.value.includes(o.id)).map((o) => ({
|
|
163
163
|
...o,
|
|
164
164
|
proportion: o.value / a
|
|
165
165
|
}))
|
|
166
166
|
};
|
|
167
167
|
}));
|
|
168
|
-
function
|
|
168
|
+
function Ye(t, s, a) {
|
|
169
169
|
let o = 0;
|
|
170
170
|
for (let l = 0; l < t.length; l += 1)
|
|
171
171
|
a.includes(t[l]) && (o += 1);
|
|
172
|
-
return o <
|
|
172
|
+
return o < s;
|
|
173
173
|
}
|
|
174
|
-
const
|
|
175
|
-
|
|
176
|
-
const
|
|
174
|
+
const v = d(ke.value);
|
|
175
|
+
De(() => ke.value, (t) => v.value = t);
|
|
176
|
+
const _e = d(null), xe = d(null);
|
|
177
177
|
function te(t) {
|
|
178
|
-
|
|
179
|
-
const
|
|
178
|
+
ie("selectLegend", t);
|
|
179
|
+
const s = C.value.flatMap((c) => c.series).find((c) => c.id === t.id), a = v.value.flatMap((c) => c.series).find((c) => c.id === t.id);
|
|
180
180
|
let l = a ? a.value : 0;
|
|
181
|
-
const i =
|
|
182
|
-
if (
|
|
181
|
+
const i = C.value.find((c) => c.id === s.arcOfId).series.map((c) => c.id), b = Ye(i, i.length - 1, h.value);
|
|
182
|
+
if (h.value.includes(t.id)) {
|
|
183
183
|
let c = function() {
|
|
184
|
-
l >
|
|
184
|
+
l > s.value ? (cancelAnimationFrame(_e.value), v.value = v.value.map((_) => ({
|
|
185
185
|
..._,
|
|
186
|
-
series: _.series.map((
|
|
187
|
-
...
|
|
188
|
-
value:
|
|
189
|
-
} :
|
|
190
|
-
}))) : (l +=
|
|
186
|
+
series: _.series.map((N) => N.id == t.id ? {
|
|
187
|
+
...N,
|
|
188
|
+
value: s.value
|
|
189
|
+
} : N)
|
|
190
|
+
}))) : (l += s.value * 0.025, v.value = v.value.map((_) => ({
|
|
191
191
|
..._,
|
|
192
|
-
series: _.series.map((
|
|
193
|
-
...
|
|
192
|
+
series: _.series.map((N) => N.id === t.id ? {
|
|
193
|
+
...N,
|
|
194
194
|
value: l
|
|
195
|
-
} :
|
|
196
|
-
})),
|
|
195
|
+
} : N)
|
|
196
|
+
})), _e.value = requestAnimationFrame(c));
|
|
197
197
|
};
|
|
198
|
-
|
|
199
|
-
} else if (
|
|
198
|
+
h.value = h.value.filter((_) => _ !== t.id), c();
|
|
199
|
+
} else if (b) {
|
|
200
200
|
let c = function() {
|
|
201
|
-
l < 0.1 ? (cancelAnimationFrame(
|
|
201
|
+
l < 0.1 ? (cancelAnimationFrame(xe.value), h.value.push(t.id), v.value = v.value.map((_, N) => ({
|
|
202
202
|
..._,
|
|
203
203
|
series: _.series.map((z) => z.id === t.id ? {
|
|
204
204
|
...z,
|
|
205
205
|
value: 0
|
|
206
206
|
} : z)
|
|
207
|
-
}))) : (l /= 1.1,
|
|
207
|
+
}))) : (l /= 1.1, v.value = v.value.map((_, N) => ({
|
|
208
208
|
..._,
|
|
209
209
|
series: _.series.map((z) => z.id === t.id ? {
|
|
210
210
|
...z,
|
|
211
211
|
value: l
|
|
212
212
|
} : z)
|
|
213
|
-
})),
|
|
213
|
+
})), xe.value = requestAnimationFrame(c));
|
|
214
214
|
};
|
|
215
215
|
c();
|
|
216
216
|
}
|
|
217
217
|
}
|
|
218
|
-
const
|
|
219
|
-
const a =
|
|
218
|
+
const le = g(() => F.value / C.value.length * e.value.style.chart.layout.donut.spacingRatio), $e = g(() => v.value.map((t, s) => F.value - s * F.value / C.value.length)), Y = g(() => v.value.map((t, s) => {
|
|
219
|
+
const a = s * F.value / C.value.length;
|
|
220
220
|
return {
|
|
221
221
|
...t,
|
|
222
|
-
radius:
|
|
223
|
-
donut:
|
|
222
|
+
radius: F.value - a,
|
|
223
|
+
donut: Oe(
|
|
224
224
|
{ series: t.series },
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
225
|
+
f.value.width / 2,
|
|
226
|
+
f.value.height / 2,
|
|
227
|
+
F.value - a,
|
|
228
|
+
F.value - a,
|
|
229
229
|
1.99999,
|
|
230
230
|
2,
|
|
231
231
|
1,
|
|
232
232
|
360,
|
|
233
233
|
105.25,
|
|
234
|
-
|
|
234
|
+
le.value
|
|
235
235
|
)
|
|
236
236
|
};
|
|
237
|
-
})),
|
|
238
|
-
const a =
|
|
237
|
+
})), Le = g(() => [...C.value].map((t, s) => {
|
|
238
|
+
const a = s * F.value / C.value.length;
|
|
239
239
|
return {
|
|
240
240
|
sizeRatio: a,
|
|
241
|
-
donut:
|
|
241
|
+
donut: Oe(
|
|
242
242
|
{ series: [{ value: 1 }] },
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
243
|
+
f.value.width / 2,
|
|
244
|
+
f.value.height / 2,
|
|
245
|
+
F.value - a,
|
|
246
|
+
F.value - a,
|
|
247
247
|
1.99999,
|
|
248
248
|
2,
|
|
249
249
|
1,
|
|
250
250
|
360,
|
|
251
251
|
105.25,
|
|
252
|
-
|
|
252
|
+
F.value / C.value.length * e.value.style.chart.layout.donut.spacingRatio
|
|
253
253
|
)[0]
|
|
254
254
|
};
|
|
255
|
-
})),
|
|
256
|
-
function
|
|
257
|
-
|
|
255
|
+
})), Ce = d(null), X = d(null), W = d(null), ae = d(null);
|
|
256
|
+
function Xe({ datapoint: t, _relativeIndex: s, seriesIndex: a }) {
|
|
257
|
+
Ce.value = t.arcOfId, X.value = t.id, W.value = a, ae.value = {
|
|
258
258
|
datapoint: t,
|
|
259
259
|
seriesIndex: a,
|
|
260
|
-
series:
|
|
260
|
+
series: v.value,
|
|
261
261
|
config: e.value
|
|
262
262
|
};
|
|
263
263
|
const o = e.value.style.chart.tooltip.customFormat;
|
|
264
|
-
if (
|
|
264
|
+
if (Ae(o) && dt(() => o({
|
|
265
265
|
seriesIndex: a,
|
|
266
266
|
datapoint: t,
|
|
267
|
-
series:
|
|
267
|
+
series: v.value,
|
|
268
268
|
config: e.value
|
|
269
269
|
})))
|
|
270
270
|
j.value = o({
|
|
271
271
|
seriesIndex: a,
|
|
272
272
|
datapoint: t,
|
|
273
|
-
series:
|
|
273
|
+
series: v.value,
|
|
274
274
|
config: e.value
|
|
275
275
|
});
|
|
276
276
|
else {
|
|
277
277
|
let l = "";
|
|
278
|
-
if (e.value.style.chart.tooltip.showAllItemsAtIndex &&
|
|
279
|
-
const i =
|
|
280
|
-
i.forEach((
|
|
281
|
-
if (!
|
|
278
|
+
if (e.value.style.chart.tooltip.showAllItemsAtIndex && h.value.length === 0) {
|
|
279
|
+
const i = v.value.map((b) => b.series.find((c) => c.seriesIndex === a));
|
|
280
|
+
i.forEach((b, c) => {
|
|
281
|
+
if (!b) return "";
|
|
282
282
|
l += `
|
|
283
283
|
<div style="display:flex; flex-direction: column; justify-content:flex-start; align-items:flex-start;padding:6px 0; ${c < i.length - 1 ? `border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor}` : ""}">
|
|
284
284
|
<div style="display:flex; flex-direction: row; gap: 3px; justify-content:flex-start; align-items:center;">
|
|
285
285
|
<svg viewBox="0 0 20 20" height="${e.value.style.chart.tooltip.fontSize}" width="${e.value.style.chart.tooltip.fontSize}">
|
|
286
|
-
<circle cx="10" cy="10" r="10" fill="${
|
|
286
|
+
<circle cx="10" cy="10" r="10" fill="${b.color}"/>
|
|
287
287
|
</svg>
|
|
288
288
|
<span>
|
|
289
|
-
${
|
|
289
|
+
${b.arcOf ?? ""} - ${b.name}
|
|
290
290
|
</span>
|
|
291
291
|
</div>
|
|
292
292
|
<span>
|
|
293
|
-
${e.value.style.chart.tooltip.showValue ? `<b>${
|
|
293
|
+
${e.value.style.chart.tooltip.showValue ? `<b>${G(
|
|
294
294
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
295
295
|
t.value,
|
|
296
|
-
|
|
296
|
+
L({
|
|
297
297
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
298
298
|
v: t.value,
|
|
299
299
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -302,8 +302,8 @@ const ne = (M) => (Ke("data-v-8ee0a3c3"), M = M(), Qe(), M), _t = ["id"], kt = [
|
|
|
302
302
|
{ datapoint: t, seriesIndex: a }
|
|
303
303
|
)}
|
|
304
304
|
</b>` : ""}
|
|
305
|
-
${e.value.style.chart.tooltip.showPercentage ? `(${
|
|
306
|
-
v:
|
|
305
|
+
${e.value.style.chart.tooltip.showPercentage ? `(${L({
|
|
306
|
+
v: b.proportion * 100,
|
|
307
307
|
s: "%",
|
|
308
308
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
309
309
|
})})` : ""}
|
|
@@ -312,21 +312,21 @@ const ne = (M) => (Ke("data-v-8ee0a3c3"), M = M(), Qe(), M), _t = ["id"], kt = [
|
|
|
312
312
|
`;
|
|
313
313
|
});
|
|
314
314
|
} else
|
|
315
|
-
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>${
|
|
315
|
+
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>${G(
|
|
316
316
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
317
317
|
t.value,
|
|
318
|
-
|
|
318
|
+
L({
|
|
319
319
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
320
320
|
v: t.value,
|
|
321
321
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
322
322
|
r: e.value.style.chart.tooltip.roundingValue
|
|
323
323
|
}),
|
|
324
324
|
{ datapoint: t, seriesIndex: a }
|
|
325
|
-
)}</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? l += `<span>(${
|
|
325
|
+
)}</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? l += `<span>(${L({
|
|
326
326
|
v: t.proportion * 100,
|
|
327
327
|
s: "%",
|
|
328
328
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
329
|
-
})})</span></div>` : l += `<b>${
|
|
329
|
+
})})</span></div>` : l += `<b>${L({
|
|
330
330
|
v: t.proportion * 100,
|
|
331
331
|
s: "%",
|
|
332
332
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
@@ -335,18 +335,18 @@ const ne = (M) => (Ke("data-v-8ee0a3c3"), M = M(), Qe(), M), _t = ["id"], kt = [
|
|
|
335
335
|
}
|
|
336
336
|
Z.value = !0;
|
|
337
337
|
}
|
|
338
|
-
function
|
|
338
|
+
function oe(t) {
|
|
339
339
|
return t.proportion * 100 > e.value.style.chart.layout.labels.dataLabels.hideUnderValue;
|
|
340
340
|
}
|
|
341
|
-
function
|
|
341
|
+
function Fe(t, s) {
|
|
342
342
|
if (!e.value.useBlurOnHover)
|
|
343
343
|
return "";
|
|
344
|
-
if (e.value.style.chart.tooltip.showAllItemsAtIndex &&
|
|
345
|
-
return [null, void 0].includes(W.value) || W.value ===
|
|
346
|
-
if (!e.value.style.chart.tooltip.showAllItemsAtIndex ||
|
|
347
|
-
return [null, void 0].includes(X.value) || X.value === t.id ? "" : `url(#blur_${
|
|
344
|
+
if (e.value.style.chart.tooltip.showAllItemsAtIndex && h.value.length === 0)
|
|
345
|
+
return [null, void 0].includes(W.value) || W.value === s ? "" : `url(#blur_${w.value})`;
|
|
346
|
+
if (!e.value.style.chart.tooltip.showAllItemsAtIndex || h.value.length)
|
|
347
|
+
return [null, void 0].includes(X.value) || X.value === t.id ? "" : `url(#blur_${w.value})`;
|
|
348
348
|
}
|
|
349
|
-
const
|
|
349
|
+
const se = g(() => C.value.map((t, s) => t.series.map((a, o) => ({
|
|
350
350
|
name: a.name,
|
|
351
351
|
color: a.color,
|
|
352
352
|
value: a.value,
|
|
@@ -354,50 +354,50 @@ const ne = (M) => (Ke("data-v-8ee0a3c3"), M = M(), Qe(), M), _t = ["id"], kt = [
|
|
|
354
354
|
arcOf: a.arcOf,
|
|
355
355
|
id: a.id,
|
|
356
356
|
seriesIndex: o,
|
|
357
|
-
datasetIndex:
|
|
358
|
-
total: t.series.filter((l) => !
|
|
357
|
+
datasetIndex: s,
|
|
358
|
+
total: t.series.filter((l) => !h.value.includes(l.id)).map((l) => l.value).reduce((l, i) => l + i, 0)
|
|
359
359
|
})).map((a) => ({
|
|
360
360
|
...a,
|
|
361
|
-
opacity:
|
|
361
|
+
opacity: h.value.includes(a.id) ? 0.5 : 1,
|
|
362
362
|
segregate: () => te(a),
|
|
363
|
-
isSegregated:
|
|
364
|
-
})))),
|
|
363
|
+
isSegregated: h.value.includes(a.id)
|
|
364
|
+
})))), We = g(() => ({
|
|
365
365
|
cy: "nested-donuts-legend",
|
|
366
366
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
367
367
|
color: e.value.style.chart.legend.color,
|
|
368
368
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
369
369
|
paddingBottom: 12,
|
|
370
370
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
371
|
-
})), D =
|
|
372
|
-
const t =
|
|
371
|
+
})), D = g(() => {
|
|
372
|
+
const t = v.value.flatMap((a) => a.series.map((o) => ({
|
|
373
373
|
name: `${a.name} - ${o.name}`,
|
|
374
374
|
color: o.color,
|
|
375
375
|
total: a.total
|
|
376
|
-
}))),
|
|
377
|
-
return { head: t, body:
|
|
376
|
+
}))), s = v.value.flatMap((a) => a.series.map((o) => o.value));
|
|
377
|
+
return { head: t, body: s };
|
|
378
378
|
});
|
|
379
|
-
function
|
|
380
|
-
|
|
379
|
+
function Se() {
|
|
380
|
+
Ze(() => {
|
|
381
381
|
const t = D.value.head.map((o, l) => [[
|
|
382
382
|
o.name
|
|
383
|
-
], [D.value.body[l]], [isNaN(D.value.body[l] / o.total) ? "-" : D.value.body[l] / o.total * 100]]),
|
|
384
|
-
|
|
383
|
+
], [D.value.body[l]], [isNaN(D.value.body[l] / o.total) ? "-" : D.value.body[l] / o.total * 100]]), s = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(t), a = ct(s);
|
|
384
|
+
vt({ csvContent: a, title: e.value.style.chart.title.text || "vue-ui-nested-donuts" });
|
|
385
385
|
});
|
|
386
386
|
}
|
|
387
|
-
const H =
|
|
387
|
+
const H = g(() => {
|
|
388
388
|
const t = [
|
|
389
389
|
e.value.table.columnNames.series,
|
|
390
390
|
e.value.table.columnNames.value,
|
|
391
391
|
e.value.table.columnNames.percentage
|
|
392
|
-
],
|
|
393
|
-
const
|
|
392
|
+
], s = D.value.head.map((l, i) => {
|
|
393
|
+
const b = L({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: D.value.body[i], s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue });
|
|
394
394
|
return [
|
|
395
395
|
{
|
|
396
396
|
color: l.color,
|
|
397
397
|
name: l.name
|
|
398
398
|
},
|
|
399
|
-
|
|
400
|
-
isNaN(D.value.body[i] / l.total) ? "-" :
|
|
399
|
+
b,
|
|
400
|
+
isNaN(D.value.body[i] / l.total) ? "-" : L({
|
|
401
401
|
v: D.value.body[i] / l.total * 100,
|
|
402
402
|
s: "%",
|
|
403
403
|
r: e.value.table.td.roundingPercentage
|
|
@@ -423,44 +423,44 @@ const ne = (M) => (Ke("data-v-8ee0a3c3"), M = M(), Qe(), M), _t = ["id"], kt = [
|
|
|
423
423
|
e.value.table.columnNames.percentage
|
|
424
424
|
],
|
|
425
425
|
head: t,
|
|
426
|
-
body:
|
|
426
|
+
body: s,
|
|
427
427
|
config: a
|
|
428
428
|
};
|
|
429
429
|
});
|
|
430
|
-
function
|
|
431
|
-
return
|
|
432
|
-
}
|
|
433
|
-
function Se() {
|
|
434
|
-
x.value.showTable = !x.value.showTable;
|
|
430
|
+
function He() {
|
|
431
|
+
return C.value;
|
|
435
432
|
}
|
|
436
433
|
function Ne() {
|
|
437
|
-
|
|
434
|
+
k.value.showTable = !k.value.showTable;
|
|
438
435
|
}
|
|
439
436
|
function Te() {
|
|
440
|
-
|
|
437
|
+
k.value.dataLabels.show = !k.value.dataLabels.show;
|
|
441
438
|
}
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
439
|
+
function Ie() {
|
|
440
|
+
k.value.showTooltip = !k.value.showTooltip;
|
|
441
|
+
}
|
|
442
|
+
return Me({
|
|
443
|
+
getData: He,
|
|
444
|
+
generatePdf: me,
|
|
445
|
+
generateCsv: Se,
|
|
446
|
+
generateImage: we,
|
|
447
|
+
toggleTable: Ne,
|
|
448
|
+
toggleLabels: Te,
|
|
449
|
+
toggleTooltip: Ie
|
|
450
|
+
}), (t, s) => (u(), n("div", {
|
|
451
451
|
ref_key: "nestedDonutsChart",
|
|
452
452
|
ref: B,
|
|
453
453
|
class: O(`vue-ui-nested-donuts ${U.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
454
|
-
style:
|
|
455
|
-
id: `nested_donuts_${
|
|
454
|
+
style: ue(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;${!e.value.style.chart.title.text && e.value.userOptions.show ? "padding-top:36px" : ""};background:${e.value.style.chart.backgroundColor}`),
|
|
455
|
+
id: `nested_donuts_${w.value}`
|
|
456
456
|
}, [
|
|
457
|
-
e.value.style.chart.title.text ? (
|
|
457
|
+
e.value.style.chart.title.text ? (u(), n("div", {
|
|
458
458
|
key: 0,
|
|
459
459
|
ref_key: "chartTitle",
|
|
460
|
-
ref:
|
|
460
|
+
ref: ce
|
|
461
461
|
}, [
|
|
462
|
-
(
|
|
463
|
-
key: `title_${
|
|
462
|
+
(u(), P(yt, {
|
|
463
|
+
key: `title_${ve.value}`,
|
|
464
464
|
config: {
|
|
465
465
|
title: {
|
|
466
466
|
cy: "donut-div-title",
|
|
@@ -473,14 +473,14 @@ const ne = (M) => (Ke("data-v-8ee0a3c3"), M = M(), Qe(), M), _t = ["id"], kt = [
|
|
|
473
473
|
}
|
|
474
474
|
}, null, 8, ["config"]))
|
|
475
475
|
], 512)) : y("", !0),
|
|
476
|
-
e.value.userOptions.show &&
|
|
476
|
+
e.value.userOptions.show && R.value ? (u(), P(bt, {
|
|
477
477
|
ref: "details",
|
|
478
|
-
key: `user_option_${
|
|
478
|
+
key: `user_option_${de.value}`,
|
|
479
479
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
480
480
|
color: e.value.style.chart.color,
|
|
481
|
-
isPrinting: r(
|
|
482
|
-
isImaging: r(
|
|
483
|
-
uid:
|
|
481
|
+
isPrinting: r(be),
|
|
482
|
+
isImaging: r(ge),
|
|
483
|
+
uid: w.value,
|
|
484
484
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
485
485
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
486
486
|
hasXls: e.value.userOptions.buttons.csv,
|
|
@@ -489,17 +489,17 @@ const ne = (M) => (Ke("data-v-8ee0a3c3"), M = M(), Qe(), M), _t = ["id"], kt = [
|
|
|
489
489
|
hasLabel: e.value.userOptions.buttons.labels,
|
|
490
490
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
491
491
|
isFullscreen: U.value,
|
|
492
|
-
isTooltip:
|
|
492
|
+
isTooltip: k.value.showTooltip,
|
|
493
493
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
494
494
|
chartElement: B.value,
|
|
495
|
-
onToggleFullscreen:
|
|
496
|
-
onGeneratePdf: r(
|
|
497
|
-
onGenerateCsv:
|
|
498
|
-
onGenerateImage: r(
|
|
499
|
-
onToggleTable:
|
|
500
|
-
onToggleLabels:
|
|
501
|
-
onToggleTooltip:
|
|
502
|
-
},
|
|
495
|
+
onToggleFullscreen: Ge,
|
|
496
|
+
onGeneratePdf: r(me),
|
|
497
|
+
onGenerateCsv: Se,
|
|
498
|
+
onGenerateImage: r(we),
|
|
499
|
+
onToggleTable: Ne,
|
|
500
|
+
onToggleLabels: Te,
|
|
501
|
+
onToggleTooltip: Ie
|
|
502
|
+
}, Ke({ _: 2 }, [
|
|
503
503
|
t.$slots.optionTooltip ? {
|
|
504
504
|
name: "optionTooltip",
|
|
505
505
|
fn: m(() => [
|
|
@@ -550,185 +550,179 @@ const ne = (M) => (Ke("data-v-8ee0a3c3"), M = M(), Qe(), M), _t = ["id"], kt = [
|
|
|
550
550
|
key: "6"
|
|
551
551
|
} : void 0
|
|
552
552
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) : y("", !0),
|
|
553
|
-
|
|
553
|
+
R.value ? (u(), n("svg", {
|
|
554
554
|
key: 2,
|
|
555
|
-
xmlns: r(
|
|
555
|
+
xmlns: r(rt),
|
|
556
556
|
class: O({ "vue-data-ui-fullscreen--on": U.value, "vue-data-ui-fulscreen--off": !U.value }),
|
|
557
|
-
viewBox: `0 0 ${
|
|
558
|
-
style:
|
|
557
|
+
viewBox: `0 0 ${f.value.width <= 0 ? 1e-3 : f.value.width} ${f.value.height < 0 ? 1e-3 : f.value.height}`,
|
|
558
|
+
style: ue(`max-width:100%; overflow: visible; background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color}`)
|
|
559
559
|
}, [
|
|
560
|
-
|
|
561
|
-
(
|
|
562
|
-
id: `radial_${
|
|
563
|
-
cx: "50%",
|
|
564
|
-
cy: "50%",
|
|
565
|
-
r: "50%",
|
|
566
|
-
fr: 30 - 1 * (o + 1) + "%"
|
|
560
|
+
p("defs", null, [
|
|
561
|
+
(u(!0), n(x, null, S(Le.value, (a, o) => (u(), n("radialGradient", {
|
|
562
|
+
id: `radial_${w.value}_${o}`
|
|
567
563
|
}, [
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
offset:
|
|
564
|
+
Ft,
|
|
565
|
+
p("stop", {
|
|
566
|
+
offset: `${(1 - le.value / $e.value[o]) * 100}%`,
|
|
567
|
+
"stop-color": r(Pe)("#FFFFFF", 0),
|
|
568
|
+
"stop-opacity": "0"
|
|
569
|
+
}, null, 8, St),
|
|
570
|
+
p("stop", {
|
|
571
|
+
offset: `${(1 - le.value / $e.value[o] / 2) * 100}%`,
|
|
571
572
|
"stop-color": "#FFFFFF",
|
|
572
573
|
"stop-opacity": e.value.style.chart.gradientIntensity / 100
|
|
573
|
-
}, null, 8,
|
|
574
|
-
|
|
575
|
-
], 8,
|
|
574
|
+
}, null, 8, Nt),
|
|
575
|
+
Tt
|
|
576
|
+
], 8, Ct))), 256))
|
|
576
577
|
]),
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
id: `blur_${
|
|
578
|
+
p("defs", null, [
|
|
579
|
+
p("filter", {
|
|
580
|
+
id: `blur_${w.value}`,
|
|
580
581
|
x: "-50%",
|
|
581
582
|
y: "-50%",
|
|
582
583
|
width: "200%",
|
|
583
584
|
height: "200%"
|
|
584
585
|
}, [
|
|
585
|
-
|
|
586
|
+
p("feGaussianBlur", {
|
|
586
587
|
in: "SourceGraphic",
|
|
587
588
|
stdDeviation: 2,
|
|
588
|
-
id: `blur_std_${
|
|
589
|
-
}, null, 8,
|
|
590
|
-
|
|
591
|
-
], 8,
|
|
592
|
-
|
|
593
|
-
id: `shadow_${
|
|
589
|
+
id: `blur_std_${w.value}`
|
|
590
|
+
}, null, 8, Dt),
|
|
591
|
+
zt
|
|
592
|
+
], 8, It),
|
|
593
|
+
p("filter", {
|
|
594
|
+
id: `shadow_${w.value}`,
|
|
594
595
|
"color-interpolation-filters": "sRGB"
|
|
595
596
|
}, [
|
|
596
|
-
|
|
597
|
+
p("feDropShadow", {
|
|
597
598
|
dx: "0",
|
|
598
599
|
dy: "0",
|
|
599
600
|
stdDeviation: "10",
|
|
600
601
|
"flood-opacity": "0.5",
|
|
601
602
|
"flood-color": e.value.style.chart.layout.donut.shadowColor
|
|
602
|
-
}, null, 8,
|
|
603
|
-
], 8,
|
|
603
|
+
}, null, 8, Pt)
|
|
604
|
+
], 8, Ot)
|
|
604
605
|
]),
|
|
605
|
-
(
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
r: a.radius < 0 ? 1e-5 : a.radius,
|
|
609
|
-
fill: e.value.style.chart.backgroundColor,
|
|
610
|
-
filter: e.value.style.chart.layout.donut.useShadow ? `url(#shadow_${g.value})` : ""
|
|
611
|
-
}, null, 8, zt))), 256)),
|
|
612
|
-
(s(!0), n(w, null, L(G.value, (a, o) => (s(), n("g", null, [
|
|
613
|
-
(s(!0), n(w, null, L(a.donut, (l, i) => (s(), n("g", null, [
|
|
614
|
-
b("path", {
|
|
606
|
+
(u(!0), n(x, null, S(Y.value, (a, o) => (u(), n("g", null, [
|
|
607
|
+
(u(!0), n(x, null, S(a.donut, (l, i) => (u(), n("g", null, [
|
|
608
|
+
p("path", {
|
|
615
609
|
class: "vue-ui-donut-arc-path",
|
|
616
610
|
d: l.arcSlice,
|
|
617
|
-
fill: r(
|
|
611
|
+
fill: r(Pe)(l.color, 80),
|
|
618
612
|
stroke: e.value.style.chart.backgroundColor,
|
|
619
613
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
620
|
-
filter:
|
|
621
|
-
}, null, 8,
|
|
614
|
+
filter: Fe(l, i)
|
|
615
|
+
}, null, 8, At)
|
|
622
616
|
]))), 256))
|
|
623
617
|
]))), 256)),
|
|
624
|
-
e.value.style.chart.useGradient ? (
|
|
625
|
-
(
|
|
626
|
-
|
|
618
|
+
e.value.style.chart.useGradient ? (u(), n("g", Vt, [
|
|
619
|
+
(u(!0), n(x, null, S(Le.value, (a, o) => (u(), n("g", null, [
|
|
620
|
+
p("path", {
|
|
627
621
|
d: a.donut.arcSlice,
|
|
628
|
-
fill: `url(#radial_${
|
|
622
|
+
fill: `url(#radial_${w.value}_${o})`,
|
|
629
623
|
stroke: "transparent",
|
|
630
624
|
"stroke-width": "0"
|
|
631
|
-
}, null, 8,
|
|
625
|
+
}, null, 8, Mt)
|
|
632
626
|
]))), 256))
|
|
633
627
|
])) : y("", !0),
|
|
634
|
-
e.value.style.chart.layout.labels.dataLabels.showDonutName ? (
|
|
635
|
-
(
|
|
636
|
-
(
|
|
637
|
-
i === 0 &&
|
|
628
|
+
e.value.style.chart.layout.labels.dataLabels.showDonutName ? (u(), n("g", Bt, [
|
|
629
|
+
(u(!0), n(x, null, S(Y.value, (a, o) => (u(), n("g", null, [
|
|
630
|
+
(u(!0), n(x, null, S(a.donut, (l, i) => (u(), n("g", null, [
|
|
631
|
+
i === 0 && f.value.width && f.value.height ? (u(), n("text", {
|
|
638
632
|
key: 0,
|
|
639
633
|
class: O({ animated: e.value.useCssAnimation }),
|
|
640
|
-
x:
|
|
634
|
+
x: f.value.width / 2,
|
|
641
635
|
y: l.startY - e.value.style.chart.layout.labels.dataLabels.fontSize + e.value.style.chart.layout.labels.dataLabels.donutNameOffsetY,
|
|
642
636
|
"text-anchor": "middle",
|
|
643
637
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
644
638
|
"font-weight": e.value.style.chart.layout.labels.dataLabels.boldDonutName ? "bold" : "normal",
|
|
645
639
|
fill: e.value.style.chart.layout.labels.dataLabels.color
|
|
646
|
-
},
|
|
640
|
+
}, T(e.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? r(it)({ source: a.name, length: e.value.style.chart.layout.labels.dataLabels.donutNameMaxAbbreviationSize }) : a.name), 11, Ut)) : y("", !0)
|
|
647
641
|
]))), 256))
|
|
648
642
|
]))), 256))
|
|
649
643
|
])) : y("", !0),
|
|
650
|
-
e.value.style.chart.layout.labels.dataLabels.show ? (
|
|
651
|
-
(
|
|
652
|
-
(
|
|
653
|
-
filter:
|
|
644
|
+
e.value.style.chart.layout.labels.dataLabels.show ? (u(), n("g", Gt, [
|
|
645
|
+
(u(!0), n(x, null, S(Y.value, (a, o) => (u(), n("g", null, [
|
|
646
|
+
(u(!0), n(x, null, S(a.donut, (l, i) => (u(), n("g", {
|
|
647
|
+
filter: Fe(l, i)
|
|
654
648
|
}, [
|
|
655
|
-
|
|
649
|
+
oe(l) && k.value.dataLabels.show && e.value.style.chart.layout.labels.dataLabels.showPercentage ? (u(), n("text", {
|
|
656
650
|
key: 0,
|
|
657
651
|
class: O({ animated: e.value.useCssAnimation }),
|
|
658
652
|
"text-anchor": r(V)(l, !0).anchor,
|
|
659
653
|
x: r(V)(l, !1, e.value.style.chart.layout.labels.dataLabels.offsetX).x || 0,
|
|
660
|
-
y: r(
|
|
654
|
+
y: r(ne)(l, e.value.style.chart.layout.labels.dataLabels.offsetY, e.value.style.chart.layout.labels.dataLabels.offsetY),
|
|
661
655
|
fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? l.color : e.value.style.chart.layout.labels.dataLabels.color,
|
|
662
656
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
663
657
|
"font-weight": e.value.style.chart.layout.labels.dataLabels.boldPercentage ? "bold" : "normal"
|
|
664
|
-
},
|
|
665
|
-
|
|
658
|
+
}, T(r(L)({ v: l.proportion * 100, s: "%", r: e.value.style.chart.layout.labels.dataLabels.roundingPercentage })), 11, Et)) : y("", !0),
|
|
659
|
+
oe(l) && k.value.dataLabels.show && e.value.style.chart.layout.labels.dataLabels.showPercentage && e.value.style.chart.layout.labels.dataLabels.showValue ? (u(), n("text", {
|
|
666
660
|
key: 1,
|
|
667
661
|
class: O({ animated: e.value.useCssAnimation }),
|
|
668
662
|
"text-anchor": r(V)(l, !0).anchor,
|
|
669
663
|
x: r(V)(l, !1, e.value.style.chart.layout.labels.dataLabels.offsetX).x || 0,
|
|
670
|
-
y: r(
|
|
664
|
+
y: r(ne)(l, e.value.style.chart.layout.labels.dataLabels.offsetY, e.value.style.chart.layout.labels.dataLabels.offsetY) + e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
671
665
|
fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? l.color : e.value.style.chart.layout.labels.dataLabels.color,
|
|
672
666
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
673
667
|
"font-weight": e.value.style.chart.layout.labels.dataLabels.boldValue ? "bold" : "normal"
|
|
674
|
-
}, " (" +
|
|
668
|
+
}, " (" + T(r(G)(
|
|
675
669
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
676
670
|
l.value,
|
|
677
|
-
r(
|
|
671
|
+
r(L)({
|
|
678
672
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
679
673
|
v: l.value,
|
|
680
674
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
681
675
|
r: e.value.style.chart.layout.labels.dataLabels.roundingValue
|
|
682
676
|
}),
|
|
683
677
|
{ datapoint: l, seriesIndex: o, datapointIndex: i }
|
|
684
|
-
)) + ") ", 11,
|
|
685
|
-
|
|
678
|
+
)) + ") ", 11, Yt)) : y("", !0),
|
|
679
|
+
oe(l) && k.value.dataLabels.show && !e.value.style.chart.layout.labels.dataLabels.showPercentage && e.value.style.chart.layout.labels.dataLabels.showValue ? (u(), n("text", {
|
|
686
680
|
key: 2,
|
|
687
681
|
class: O({ animated: e.value.useCssAnimation }),
|
|
688
682
|
"text-anchor": r(V)(l, !0).anchor,
|
|
689
683
|
x: r(V)(l, !1, e.value.style.chart.layout.labels.dataLabels.offsetX).x || 0,
|
|
690
|
-
y: r(
|
|
684
|
+
y: r(ne)(l, e.value.style.chart.layout.labels.dataLabels.offsetY, e.value.style.chart.layout.labels.dataLabels.offsetY),
|
|
691
685
|
fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? l.color : e.value.style.chart.layout.labels.dataLabels.color,
|
|
692
686
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
693
687
|
"font-weight": e.value.style.chart.layout.labels.dataLabels.boldValue ? "bold" : "normal"
|
|
694
|
-
},
|
|
688
|
+
}, T(r(G)(
|
|
695
689
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
696
690
|
l.value,
|
|
697
|
-
r(
|
|
691
|
+
r(L)({
|
|
698
692
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
699
693
|
v: l.value,
|
|
700
694
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
701
695
|
r: e.value.style.chart.layout.labels.dataLabels.roundingValue
|
|
702
696
|
}),
|
|
703
697
|
{ datapoint: l, seriesIndex: o, datapointIndex: i }
|
|
704
|
-
)), 11,
|
|
705
|
-
], 8,
|
|
698
|
+
)), 11, Xt)) : y("", !0)
|
|
699
|
+
], 8, Rt))), 256))
|
|
706
700
|
]))), 256))
|
|
707
701
|
])) : y("", !0),
|
|
708
|
-
(
|
|
709
|
-
(
|
|
710
|
-
|
|
702
|
+
(u(!0), n(x, null, S(Y.value, (a, o) => (u(), n("g", null, [
|
|
703
|
+
(u(!0), n(x, null, S(a.donut, (l, i) => (u(), n("g", null, [
|
|
704
|
+
p("path", {
|
|
711
705
|
"data-cy-donut-trap": "",
|
|
712
706
|
d: l.arcSlice,
|
|
713
|
-
fill:
|
|
714
|
-
onMouseenter: (
|
|
707
|
+
fill: Ue.value === o ? "rgba(0,0,0,0.1)" : "transparent",
|
|
708
|
+
onMouseenter: (b) => Xe({
|
|
715
709
|
datapoint: l,
|
|
716
710
|
relativeIndex: o,
|
|
717
711
|
seriesIndex: l.seriesIndex
|
|
718
712
|
}),
|
|
719
|
-
onClick: (
|
|
720
|
-
onMouseleave:
|
|
721
|
-
Z.value = !1,
|
|
713
|
+
onClick: (b) => Ee({ datapoint: l, index: i }),
|
|
714
|
+
onMouseleave: s[0] || (s[0] = (b) => {
|
|
715
|
+
Z.value = !1, Ce.value = null, X.value = null, W.value = null;
|
|
722
716
|
})
|
|
723
|
-
}, null, 40,
|
|
717
|
+
}, null, 40, Wt)
|
|
724
718
|
]))), 256))
|
|
725
719
|
]))), 256)),
|
|
726
|
-
$(t.$slots, "svg", { svg:
|
|
727
|
-
], 14,
|
|
728
|
-
t.$slots.watermark ? (
|
|
729
|
-
$(t.$slots, "watermark", q(J({ isPrinting: r(
|
|
720
|
+
$(t.$slots, "svg", { svg: f.value }, void 0, !0)
|
|
721
|
+
], 14, Lt)) : y("", !0),
|
|
722
|
+
t.$slots.watermark ? (u(), n("div", Ht, [
|
|
723
|
+
$(t.$slots, "watermark", q(J({ isPrinting: r(be) || r(ge) })), void 0, !0)
|
|
730
724
|
])) : y("", !0),
|
|
731
|
-
|
|
725
|
+
R.value ? y("", !0) : (u(), P(kt, {
|
|
732
726
|
key: 4,
|
|
733
727
|
config: {
|
|
734
728
|
type: "donut",
|
|
@@ -740,8 +734,8 @@ const ne = (M) => (Ke("data-v-8ee0a3c3"), M = M(), Qe(), M), _t = ["id"], kt = [
|
|
|
740
734
|
}
|
|
741
735
|
}
|
|
742
736
|
}, null, 8, ["config"])),
|
|
743
|
-
|
|
744
|
-
show:
|
|
737
|
+
Qe(mt, {
|
|
738
|
+
show: k.value.showTooltip && Z.value,
|
|
745
739
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
746
740
|
color: e.value.style.chart.tooltip.color,
|
|
747
741
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -753,40 +747,40 @@ const ne = (M) => (Ke("data-v-8ee0a3c3"), M = M(), Qe(), M), _t = ["id"], kt = [
|
|
|
753
747
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
754
748
|
parent: B.value,
|
|
755
749
|
content: j.value,
|
|
756
|
-
isCustom: r(
|
|
750
|
+
isCustom: r(Ae)(e.value.style.chart.tooltip.customFormat)
|
|
757
751
|
}, {
|
|
758
752
|
"tooltip-before": m(() => [
|
|
759
|
-
$(t.$slots, "tooltip-before", q(J({ ...
|
|
753
|
+
$(t.$slots, "tooltip-before", q(J({ ...ae.value })), void 0, !0)
|
|
760
754
|
]),
|
|
761
755
|
"tooltip-after": m(() => [
|
|
762
|
-
$(t.$slots, "tooltip-after", q(J({ ...
|
|
756
|
+
$(t.$slots, "tooltip-after", q(J({ ...ae.value })), void 0, !0)
|
|
763
757
|
]),
|
|
764
758
|
_: 3
|
|
765
759
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
|
|
766
|
-
e.value.style.chart.legend.show ? (
|
|
760
|
+
e.value.style.chart.legend.show ? (u(), n("div", {
|
|
767
761
|
key: 5,
|
|
768
762
|
ref_key: "chartLegend",
|
|
769
763
|
ref: ee,
|
|
770
|
-
class: O({ "vue-ui-nested-donuts-legend":
|
|
764
|
+
class: O({ "vue-ui-nested-donuts-legend": se.value.length > 1 })
|
|
771
765
|
}, [
|
|
772
|
-
(
|
|
766
|
+
(u(!0), n(x, null, S(se.value, (a, o) => (u(), P(wt, {
|
|
773
767
|
key: `legend_${o}_${he.value}`,
|
|
774
768
|
legendSet: a,
|
|
775
|
-
config:
|
|
776
|
-
onClickMarker:
|
|
769
|
+
config: We.value,
|
|
770
|
+
onClickMarker: s[1] || (s[1] = ({ legend: l }) => te(l))
|
|
777
771
|
}, {
|
|
778
772
|
legendTitle: m(({ titleSet: l }) => [
|
|
779
|
-
l[0] && l[0].arcOf ? (
|
|
773
|
+
l[0] && l[0].arcOf ? (u(), n("div", qt, T(l[0].arcOf), 1)) : y("", !0)
|
|
780
774
|
]),
|
|
781
775
|
item: m(({ legend: l, index: i }) => [
|
|
782
|
-
|
|
783
|
-
onClick: (
|
|
784
|
-
style:
|
|
776
|
+
p("div", {
|
|
777
|
+
onClick: (b) => te(l),
|
|
778
|
+
style: ue(`opacity:${h.value.includes(l.id) ? 0.5 : 1}`)
|
|
785
779
|
}, [
|
|
786
|
-
K(
|
|
780
|
+
K(T(l.name) + ": " + T(r(G)(
|
|
787
781
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
788
782
|
l.value,
|
|
789
|
-
r(
|
|
783
|
+
r(L)({
|
|
790
784
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
791
785
|
v: l.value,
|
|
792
786
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -794,28 +788,28 @@ const ne = (M) => (Ke("data-v-8ee0a3c3"), M = M(), Qe(), M), _t = ["id"], kt = [
|
|
|
794
788
|
}),
|
|
795
789
|
{ datapoint: l, seriesIndex: i }
|
|
796
790
|
)) + " ", 1),
|
|
797
|
-
|
|
791
|
+
h.value.includes(l.id) ? (u(), n(x, { key: 1 }, [
|
|
798
792
|
K(" ( - % ) ")
|
|
799
|
-
], 64)) : (
|
|
800
|
-
K(" (" +
|
|
793
|
+
], 64)) : (u(), n(x, { key: 0 }, [
|
|
794
|
+
K(" (" + T(isNaN(l.value / l.total) ? "-" : r(L)({ v: l.value / l.total * 100, s: "%", r: e.value.style.chart.legend.roundingPercentage })) + ") ", 1)
|
|
801
795
|
], 64))
|
|
802
|
-
], 12,
|
|
796
|
+
], 12, Jt)
|
|
803
797
|
]),
|
|
804
798
|
_: 2
|
|
805
799
|
}, 1032, ["legendSet", "config"]))), 128))
|
|
806
800
|
], 2)) : y("", !0),
|
|
807
|
-
e.value.style.chart.legend.show ? y("", !0) : (
|
|
801
|
+
e.value.style.chart.legend.show ? y("", !0) : (u(), n("div", {
|
|
808
802
|
key: 6,
|
|
809
803
|
ref_key: "chartLegend",
|
|
810
804
|
ref: ee
|
|
811
805
|
}, [
|
|
812
|
-
$(t.$slots, "legend", { legend:
|
|
806
|
+
$(t.$slots, "legend", { legend: se.value }, void 0, !0)
|
|
813
807
|
], 512)),
|
|
814
|
-
|
|
808
|
+
R.value ? (u(), P(_t, {
|
|
815
809
|
key: 7,
|
|
816
810
|
hideDetails: "",
|
|
817
811
|
config: {
|
|
818
|
-
open:
|
|
812
|
+
open: k.value.showTable,
|
|
819
813
|
maxHeight: 1e4,
|
|
820
814
|
body: {
|
|
821
815
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -828,32 +822,32 @@ const ne = (M) => (Ke("data-v-8ee0a3c3"), M = M(), Qe(), M), _t = ["id"], kt = [
|
|
|
828
822
|
}
|
|
829
823
|
}, {
|
|
830
824
|
content: m(() => [
|
|
831
|
-
(
|
|
832
|
-
key: `table_${
|
|
825
|
+
(u(), P(gt, {
|
|
826
|
+
key: `table_${fe.value}`,
|
|
833
827
|
colNames: H.value.colNames,
|
|
834
828
|
head: H.value.head,
|
|
835
829
|
body: H.value.body,
|
|
836
830
|
config: H.value.config,
|
|
837
831
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
838
|
-
onClose:
|
|
832
|
+
onClose: s[2] || (s[2] = (a) => k.value.showTable = !1)
|
|
839
833
|
}, {
|
|
840
834
|
th: m(({ th: a }) => [
|
|
841
|
-
|
|
835
|
+
p("div", {
|
|
842
836
|
innerHTML: a,
|
|
843
837
|
style: { display: "flex", "align-items": "center" }
|
|
844
|
-
}, null, 8,
|
|
838
|
+
}, null, 8, Kt)
|
|
845
839
|
]),
|
|
846
840
|
td: m(({ td: a }) => [
|
|
847
|
-
K(
|
|
841
|
+
K(T(a.name || a), 1)
|
|
848
842
|
]),
|
|
849
843
|
_: 1
|
|
850
844
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
851
845
|
]),
|
|
852
846
|
_: 1
|
|
853
847
|
}, 8, ["config"])) : y("", !0)
|
|
854
|
-
], 14,
|
|
848
|
+
], 14, $t));
|
|
855
849
|
}
|
|
856
|
-
},
|
|
850
|
+
}, dl = /* @__PURE__ */ xt(Qt, [["__scopeId", "data-v-e6e70e76"]]);
|
|
857
851
|
export {
|
|
858
|
-
|
|
852
|
+
dl as default
|
|
859
853
|
};
|