vue-data-ui 2.10.3-beta.0 → 2.10.3-beta.2
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-D3wZDJiJ.cjs → Arrow-D2Pi70sk.cjs} +1 -1
- package/dist/{Arrow-Bumy-rfd.js → Arrow-Dh_Fpbqg.js} +1 -1
- package/dist/{BaseIcon-Cq2eFZ52.cjs → BaseIcon-Bal8YWHd.cjs} +1 -1
- package/dist/{BaseIcon-Dwgmj_qL.js → BaseIcon-DDXu6LPD.js} +1 -1
- package/dist/{ColorPicker-B5sIe2fM.cjs → ColorPicker-CJ3V6DBg.cjs} +1 -1
- package/dist/{ColorPicker-C7HGlp41.js → ColorPicker-DFdr_v0e.js} +3 -3
- package/dist/{DataTable-CqpvgLhR.js → DataTable-BEgGQ4D3.js} +2 -2
- package/dist/{DataTable-mJxOnAtF.cjs → DataTable-BgEOVOhs.cjs} +1 -1
- package/dist/{Legend-Chgo5qJ9.js → Legend-D3fzSDzv.js} +2 -2
- package/dist/{Legend-C8L_Z6Ik.cjs → Legend-ywuPKha1.cjs} +1 -1
- package/dist/{PackageVersion-Do_gkQuR.js → PackageVersion-BtYm4WhX.js} +3 -3
- package/dist/PackageVersion-D9Y0IJOt.cjs +1 -0
- package/dist/{PenAndPaper-BeVm8Gw_.js → PenAndPaper-C0mD6paN.js} +3 -3
- package/dist/{PenAndPaper-Ck4J-N0f.cjs → PenAndPaper-dMpMHvEy.cjs} +1 -1
- package/dist/{Shape-CvjmV_jA.js → Shape-BlXVxC09.js} +1 -1
- package/dist/{Shape-BzzRLhdD.cjs → Shape-DF1rpvBr.cjs} +1 -1
- package/dist/{Slicer-Dk5MzzXJ.cjs → Slicer-BaB88GFk.cjs} +1 -1
- package/dist/{Slicer-Cv3oVUkB.js → Slicer-CaBTnAu_.js} +2 -2
- package/dist/{Title-Hz1-uq3Z.js → Title-9xdQbKmK.js} +1 -1
- package/dist/{Title-Dm0Mve4x.cjs → Title-CduBjJSc.cjs} +1 -1
- package/dist/{Tooltip-D_aFdI-k.js → Tooltip-DAG_w755.js} +1 -1
- package/dist/{Tooltip-Cndiepq8.cjs → Tooltip-KPaPh0AB.cjs} +1 -1
- package/dist/{dom-to-png-D43ddGU-.cjs → dom-to-png-9Doy7r6I.cjs} +1 -1
- package/dist/{dom-to-png-CjGqSFTh.js → dom-to-png-BHePseM4.js} +1 -1
- package/dist/{img-DDTs4XTo.cjs → img-BBbAfJQR.cjs} +1 -1
- package/dist/{img-oevKz27t.js → img-Di1y0Ikf.js} +1 -1
- package/dist/{index-B-gGjNsT.cjs → index-BS69wmdK.cjs} +1 -1
- package/dist/{index-BqAuY8YO.js → index-Cq9SFWKh.js} +1 -1
- package/dist/{pdf-DrJEYjvv.cjs → pdf-CJjcR9vj.cjs} +1 -1
- package/dist/{pdf-C4D1wSDl.js → pdf-DQ1mgiex.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-KHLCjp3b.js → useNestedProp-D3PTIhO4.js} +1 -1
- package/dist/{useNestedProp-DgX4T8TO.cjs → useNestedProp-Dv_NLIAp.cjs} +1 -1
- package/dist/{usePrinter-CYDRiSnN.js → usePrinter-Ca40kS6V.js} +3 -3
- package/dist/{usePrinter-D6exRhr5.cjs → usePrinter-uYxKqDEn.cjs} +1 -1
- package/dist/{vue-data-ui-Cm9vpJvb.js → vue-data-ui-Bjik9H-H.js} +62 -62
- package/dist/{vue-data-ui-DWGDpg6O.cjs → vue-data-ui-JrJq4CRi.cjs} +1 -1
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-B4uKEahX.cjs → vue-ui-3d-bar-CDnuvl7-.cjs} +1 -1
- package/dist/{vue-ui-3d-bar-CIV72Eqi.js → vue-ui-3d-bar-vqgTXxnJ.js} +9 -9
- package/dist/{vue-ui-accordion-B5gHS5Ty.cjs → vue-ui-accordion-CMi53Y4v.cjs} +1 -1
- package/dist/{vue-ui-accordion-DHobGrxA.js → vue-ui-accordion-DqMoC-KV.js} +3 -3
- package/dist/{vue-ui-age-pyramid-0xBHgxli.cjs → vue-ui-age-pyramid-Asn7VBGh.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-CUCSwF_R.js → vue-ui-age-pyramid-DOd1r-qj.js} +10 -10
- package/dist/{vue-ui-annotator-DCxKDa_f.cjs → vue-ui-annotator-CQcK254t.cjs} +1 -1
- package/dist/{vue-ui-annotator-CwaPRuNd.js → vue-ui-annotator-DgGB9Xkp.js} +2 -2
- package/dist/{vue-ui-bullet-Df80ArZY.cjs → vue-ui-bullet-00HOqfX-.cjs} +1 -1
- package/dist/{vue-ui-bullet-0Rw6Te3z.js → vue-ui-bullet-Bb9jWm8_.js} +8 -8
- package/dist/{vue-ui-candlestick-D1tpxi8L.js → vue-ui-candlestick-D0PW4-P1.js} +11 -11
- package/dist/{vue-ui-candlestick-CwssaEPI.cjs → vue-ui-candlestick-wHpHbQrl.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-jJq33mu9.js → vue-ui-carousel-table-Dqm7cpU6.js} +4 -4
- package/dist/{vue-ui-carousel-table-Cka-p4av.cjs → vue-ui-carousel-table-kYZBRDac.cjs} +1 -1
- package/dist/{vue-ui-chestnut-DApLcH2S.cjs → vue-ui-chestnut-Bs9m2OhK.cjs} +1 -1
- package/dist/{vue-ui-chestnut-DGja6XYi.js → vue-ui-chestnut-C225mv_7.js} +8 -8
- package/dist/{vue-ui-circle-pack-Cylfx9-W.js → vue-ui-circle-pack-0zHx3DG_.js} +9 -9
- package/dist/{vue-ui-circle-pack-CWbR-Pfe.cjs → vue-ui-circle-pack-BYpSP8TK.cjs} +1 -1
- package/dist/{vue-ui-cursor--1udElwj.cjs → vue-ui-cursor-BAe0sXM-.cjs} +1 -1
- package/dist/{vue-ui-cursor-PBkTDCT1.js → vue-ui-cursor-DiCXcRu4.js} +2 -2
- package/dist/{vue-ui-dashboard-DcgkkeLu.cjs → vue-ui-dashboard-CHPhLJJX.cjs} +1 -1
- package/dist/{vue-ui-dashboard-W6ldLtpR.js → vue-ui-dashboard-CTgsMPIT.js} +62 -62
- package/dist/{vue-ui-digits-BzOm_izd.cjs → vue-ui-digits-8R3Ru4a1.cjs} +1 -1
- package/dist/{vue-ui-digits-DljDm2K-.js → vue-ui-digits-Bp9d897p.js} +2 -2
- package/dist/{vue-ui-donut-DNclMe34.js → vue-ui-donut-C-4-X-rY.js} +288 -286
- package/dist/vue-ui-donut-CrIbNaOx.cjs +1 -0
- package/dist/{vue-ui-donut-evolution-C252mEPR.js → vue-ui-donut-evolution-YHz8IrSU.js} +11 -11
- package/dist/{vue-ui-donut-evolution-BusvcTbs.cjs → vue-ui-donut-evolution-vOVT8Cqx.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-1FsNzown.cjs → vue-ui-dumbbell-BaWWoQp_.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-IxKoeDaO.js → vue-ui-dumbbell-CZ8OUBMa.js} +10 -10
- package/dist/{vue-ui-flow-DOSWbb_j.js → vue-ui-flow-CPkqQVYz.js} +9 -9
- package/dist/{vue-ui-flow-DfJiWvjW.cjs → vue-ui-flow-CkaBfjze.cjs} +1 -1
- package/dist/{vue-ui-funnel-BuBdPPAD.cjs → vue-ui-funnel-DJzbSo8T.cjs} +1 -1
- package/dist/{vue-ui-funnel-CSTYYBs8.js → vue-ui-funnel-DZi6LrXD.js} +9 -9
- package/dist/{vue-ui-galaxy-BBe3Vdj7.js → vue-ui-galaxy-C3k2rRb6.js} +11 -11
- package/dist/{vue-ui-galaxy-DkbxVxf5.cjs → vue-ui-galaxy-Cf47Bk_F.cjs} +1 -1
- package/dist/{vue-ui-gauge-DC3iic8u.js → vue-ui-gauge-BnOUtuf2.js} +7 -7
- package/dist/{vue-ui-gauge-DFlBuTMt.cjs → vue-ui-gauge-Mjyb4wHf.cjs} +1 -1
- package/dist/{vue-ui-gizmo-Cfvr-UXI.js → vue-ui-gizmo-BBLhRulv.js} +3 -3
- package/dist/{vue-ui-gizmo-BBMAfyj3.cjs → vue-ui-gizmo-C0iAMf4L.cjs} +1 -1
- package/dist/{vue-ui-heatmap-CpXR1mzq.cjs → vue-ui-heatmap-C5_iy1I6.cjs} +1 -1
- package/dist/{vue-ui-heatmap-BM56izP9.js → vue-ui-heatmap-C5ucCKcZ.js} +10 -10
- package/dist/{vue-ui-history-plot-CSP8TC8A.cjs → vue-ui-history-plot-RiYWJmxF.cjs} +1 -1
- package/dist/{vue-ui-history-plot-IOSBb5Qn.js → vue-ui-history-plot-xDuhK9RB.js} +11 -11
- package/dist/{vue-ui-kpi-Dgfg9GR0.js → vue-ui-kpi-C_fH20jQ.js} +3 -3
- package/dist/{vue-ui-kpi-fHB7esA1.cjs → vue-ui-kpi-GVxO3gjv.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-BZ2GPcR2.js → vue-ui-mini-loader-CPtBDnXj.js} +2 -2
- package/dist/{vue-ui-mini-loader-CYNEvgUJ.cjs → vue-ui-mini-loader-CggXnACM.cjs} +1 -1
- package/dist/{vue-ui-molecule-DrZVhiXO.cjs → vue-ui-molecule-BSrG4A0E.cjs} +1 -1
- package/dist/{vue-ui-molecule-u-eGaTE3.js → vue-ui-molecule-CIp-rk8k.js} +11 -11
- package/dist/{vue-ui-mood-radar-BkC7hC7V.js → vue-ui-mood-radar-D6gH60DF.js} +11 -11
- package/dist/{vue-ui-mood-radar-CTiMfM1y.cjs → vue-ui-mood-radar-DspivlWW.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-DZMDijJ4.js → vue-ui-nested-donuts-CcGcaTsb.js} +11 -11
- package/dist/{vue-ui-nested-donuts-nEgRtofQ.cjs → vue-ui-nested-donuts-D6QCg4MP.cjs} +1 -1
- package/dist/{vue-ui-onion-nuYVFd93.js → vue-ui-onion-CqhUwNIA.js} +11 -11
- package/dist/{vue-ui-onion-Mtdb4cAZ.cjs → vue-ui-onion-Dx6zuimZ.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-BTmrUV-C.js → vue-ui-parallel-coordinate-plot-CtNlO3V9.js} +12 -12
- package/dist/{vue-ui-parallel-coordinate-plot-CO4Zxhfp.cjs → vue-ui-parallel-coordinate-plot-DyS5MQKG.cjs} +1 -1
- package/dist/{vue-ui-quadrant-DCTtsWB9.js → vue-ui-quadrant-CzN4-r-5.js} +12 -12
- package/dist/{vue-ui-quadrant-DPpFxvPe.cjs → vue-ui-quadrant-Omh6HelC.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-tC6DpSV-.cjs → vue-ui-quick-chart-BjCA0MlK.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-DR9X_LD9.js → vue-ui-quick-chart-Dw7durcc.js} +9 -9
- package/dist/{vue-ui-radar-DMWgcTCk.cjs → vue-ui-radar-BrRw8hK5.cjs} +1 -1
- package/dist/{vue-ui-radar-DNcTO8W-.js → vue-ui-radar-CacbmFtH.js} +12 -12
- package/dist/{vue-ui-rating-b2iWUEkV.js → vue-ui-rating-CQX3iJ-l.js} +2 -2
- package/dist/{vue-ui-rating-jdX6DH4v.cjs → vue-ui-rating-dmcWyFJL.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-BC6_QCeg.cjs → vue-ui-relation-circle-bSpbFWDy.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-B1a7eORw.js → vue-ui-relation-circle-wQOpbtiz.js} +7 -7
- package/dist/{vue-ui-ridgeline-C2DXbb0I.cjs → vue-ui-ridgeline-B3UC7scn.cjs} +1 -1
- package/dist/{vue-ui-ridgeline-I-6Is-n4.js → vue-ui-ridgeline-CW1ZWqY3.js} +12 -12
- package/dist/{vue-ui-rings-ThgBQeT1.cjs → vue-ui-rings-CcZO3uzz.cjs} +1 -1
- package/dist/{vue-ui-rings-DXX2SBLG.js → vue-ui-rings-cQmDPKw_.js} +12 -12
- package/dist/{vue-ui-scatter-D2m2bMpR.cjs → vue-ui-scatter-BXL-s1EX.cjs} +1 -1
- package/dist/{vue-ui-scatter-CV8gkb-Q.js → vue-ui-scatter-BzscpnA6.js} +12 -12
- package/dist/{vue-ui-skeleton-Ddje55hh.js → vue-ui-skeleton-CEUPs326.js} +3 -3
- package/dist/{vue-ui-skeleton-BYqsYQ4h.cjs → vue-ui-skeleton-Dqs4vHnY.cjs} +1 -1
- package/dist/{vue-ui-smiley-BRn0xayM.cjs → vue-ui-smiley-Cm0XM44X.cjs} +1 -1
- package/dist/{vue-ui-smiley-D3KPrtnP.js → vue-ui-smiley-WaDKRlg_.js} +2 -2
- package/dist/{vue-ui-spark-trend-COQGi1sX.cjs → vue-ui-spark-trend-BpPFjrqX.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-D97nzZaD.js → vue-ui-spark-trend-u1NaH34Q.js} +5 -5
- package/dist/{vue-ui-sparkbar-F-1VVXo8.js → vue-ui-sparkbar-C7hFS6Sx.js} +4 -4
- package/dist/{vue-ui-sparkbar-BXUJgWZG.cjs → vue-ui-sparkbar-DbinWHG4.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-6abJlb6T.cjs → vue-ui-sparkgauge-BBQjJUfu.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-B7Rv-U7s.js → vue-ui-sparkgauge-BS3MWXh7.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-B4H9goyw.js → vue-ui-sparkhistogram-CALOiQXU.js} +5 -5
- package/dist/{vue-ui-sparkhistogram-CsR44dxt.cjs → vue-ui-sparkhistogram-DgI4On_t.cjs} +1 -1
- package/dist/{vue-ui-sparkline-Ck77aev4.cjs → vue-ui-sparkline-DSN96c9R.cjs} +1 -1
- package/dist/{vue-ui-sparkline-Bl6lI2Hf.js → vue-ui-sparkline-Sm8GP_gE.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-tgyiyk1O.cjs → vue-ui-sparkstackbar-CP-f0RiJ.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-CVDvoryM.js → vue-ui-sparkstackbar-C_BjsR_9.js} +5 -5
- package/dist/{vue-ui-stackbar-BGDTPfoR.js → vue-ui-stackbar-CsXTzibp.js} +13 -13
- package/dist/{vue-ui-stackbar-YgiHH1a2.cjs → vue-ui-stackbar-umPic16O.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-D3bgR8XL.js → vue-ui-strip-plot-DanwoFZA.js} +11 -11
- package/dist/{vue-ui-strip-plot-hn4z1rhV.cjs → vue-ui-strip-plot-EohSje2m.cjs} +1 -1
- package/dist/{vue-ui-table-Ckxsotd8.cjs → vue-ui-table-BxE_5O0R.cjs} +1 -1
- package/dist/{vue-ui-table-B0bcyF4M.js → vue-ui-table-CcxyWlGr.js} +3 -3
- package/dist/{vue-ui-table-heatmap-CyYGu7nd.cjs → vue-ui-table-heatmap-BS6gDxAV.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-CYA9xsnY.js → vue-ui-table-heatmap-CYTrU1IM.js} +4 -4
- package/dist/{vue-ui-table-sparkline-BRO7LDbN.cjs → vue-ui-table-sparkline-CEUN2DKK.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-C65k-q8K.js → vue-ui-table-sparkline-VQRxKokd.js} +5 -5
- package/dist/{vue-ui-thermometer-BpeWgB2o.js → vue-ui-thermometer-BGo9JVPi.js} +7 -7
- package/dist/{vue-ui-thermometer-DARrujvQ.cjs → vue-ui-thermometer-DDEWBlJX.cjs} +1 -1
- package/dist/{vue-ui-timer-BSwNbGDR.js → vue-ui-timer-BOYI9dj1.js} +5 -5
- package/dist/{vue-ui-timer-C1Bvofxb.cjs → vue-ui-timer-iHHHozQk.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-BdrEeoqL.cjs → vue-ui-tiremarks-4wzRyfkY.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-bIb0oA6e.js → vue-ui-tiremarks-C6AOzn6M.js} +7 -7
- package/dist/{vue-ui-treemap-9M2bI-wV.js → vue-ui-treemap-D6tGxfkH.js} +12 -12
- package/dist/{vue-ui-treemap-DrJgENbP.cjs → vue-ui-treemap-Dsbtoqmc.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-ClbY74d-.js → vue-ui-vertical-bar-CCG0RzzH.js} +12 -12
- package/dist/{vue-ui-vertical-bar-D4XrZQkI.cjs → vue-ui-vertical-bar-DFtT4E0d.cjs} +1 -1
- package/dist/{vue-ui-waffle-BJCkIVRP.cjs → vue-ui-waffle-Cm6ldzLl.cjs} +1 -1
- package/dist/{vue-ui-waffle-DkGImTHk.js → vue-ui-waffle-Cs2lFmZk.js} +12 -12
- package/dist/{vue-ui-wheel-BTw-ybex.cjs → vue-ui-wheel-CGA_ObLc.cjs} +1 -1
- package/dist/{vue-ui-wheel-Cd7gw2RB.js → vue-ui-wheel-DwHygX8h.js} +7 -7
- package/dist/{vue-ui-word-cloud-rQGgIEAR.cjs → vue-ui-word-cloud-B5xsdE9W.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-CTK01N6Y.js → vue-ui-word-cloud-DruVUuqq.js} +10 -10
- package/dist/{vue-ui-world-DXi9YTS8.cjs → vue-ui-world-AmEJJ8Ml.cjs} +1 -1
- package/dist/{vue-ui-world-DLBxsj8V.js → vue-ui-world-D-R7ZstC.js} +11 -11
- package/dist/{vue-ui-xy-WuNFctyV.js → vue-ui-xy-DwvS7yTz.js} +16 -16
- package/dist/{vue-ui-xy-DCvVPrTQ.cjs → vue-ui-xy-UDsyRd42.cjs} +2 -2
- package/dist/{vue-ui-xy-canvas-BjE3V0Gd.js → vue-ui-xy-canvas-DQ8Ubrlv.js} +12 -12
- package/dist/{vue-ui-xy-canvas-BPOUkOoA.cjs → vue-ui-xy-canvas-DUmkN9El.cjs} +1 -1
- package/package.json +1 -1
- package/dist/PackageVersion-Yra8stiB.cjs +0 -1
- package/dist/vue-ui-donut-BznGR_Pv.cjs +0 -1
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { useSlots as xt, computed as p, ref as d, onMounted as Qe, onBeforeUnmount as $t, watch as Ze, createElementBlock as n, openBlock as
|
|
2
|
-
import { u as Pt, o as
|
|
1
|
+
import { useSlots as xt, computed as p, ref as d, onMounted as Qe, onBeforeUnmount as $t, watch as Ze, createElementBlock as n, openBlock as u, unref as r, normalizeStyle as _, normalizeClass as pe, createBlock as E, createCommentVNode as i, renderSlot as g, createElementVNode as f, createVNode as ge, createSlots as et, withCtx as $, normalizeProps as Q, guardReactiveProps as Z, Fragment as m, renderList as T, mergeProps as tt, toDisplayString as P, createTextVNode as lt, nextTick as Ct } from "vue";
|
|
2
|
+
import { u as Pt, o as Ft, e as at, g as St, c as Lt, b as Tt, d as ot, p as H, m as zt, Y as At, f as N, X as Ot, s as oe, w as Nt, j as Yt, L as z, i as M, k as ue, n as w, t as Xt, a as It, q as Mt, r as Dt, x as Vt } from "./index-Cq9SFWKh.js";
|
|
3
3
|
import { t as Bt, u as Gt } from "./useResponsive-Cw4oZ8sQ.js";
|
|
4
|
-
import { _ as Rt } from "./Title-
|
|
5
|
-
import { u as Ut, U as Wt } from "./usePrinter-
|
|
6
|
-
import { D as jt } from "./DataTable-
|
|
7
|
-
import { _ as Et } from "./Tooltip-
|
|
8
|
-
import { L as Ht } from "./Legend-
|
|
9
|
-
import qt from "./vue-ui-skeleton-
|
|
10
|
-
import Jt from "./vue-ui-accordion-
|
|
11
|
-
import { u as ut } from "./useNestedProp-
|
|
12
|
-
import { _ as Kt } from "./PackageVersion-
|
|
13
|
-
import { _ as Qt } from "./PenAndPaper-
|
|
4
|
+
import { _ as Rt } from "./Title-9xdQbKmK.js";
|
|
5
|
+
import { u as Ut, U as Wt } from "./usePrinter-Ca40kS6V.js";
|
|
6
|
+
import { D as jt } from "./DataTable-BEgGQ4D3.js";
|
|
7
|
+
import { _ as Et } from "./Tooltip-DAG_w755.js";
|
|
8
|
+
import { L as Ht } from "./Legend-D3fzSDzv.js";
|
|
9
|
+
import qt from "./vue-ui-skeleton-CEUPs326.js";
|
|
10
|
+
import Jt from "./vue-ui-accordion-DqMoC-KV.js";
|
|
11
|
+
import { u as ut } from "./useNestedProp-D3PTIhO4.js";
|
|
12
|
+
import { _ as Kt } from "./PackageVersion-BtYm4WhX.js";
|
|
13
|
+
import { _ as Qt } from "./PenAndPaper-C0mD6paN.js";
|
|
14
14
|
import { u as Zt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
15
|
-
import { _ as el } from "./Shape-
|
|
15
|
+
import { _ as el } from "./Shape-BlXVxC09.js";
|
|
16
16
|
import { u as tl } from "./useChartAccessibility-BWojgys7.js";
|
|
17
17
|
import { _ as ll } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
18
|
-
const al = ["id"], ol = ["xmlns", "viewBox"], ul = ["width", "height"], sl = { key: 1 }, nl = ["id"], rl = ["stop-color"], il = ["offset", "stop-color"], vl = ["offset", "stop-color"], cl = ["stop-color"], dl = { key: 2 }, hl = ["id", "cx", "cy"], yl = ["stop-color", "stop-opacity"], fl = ["stop-color"], pl = ["id"], gl = ["id"], ml = ["id"], bl = ["flood-color"], wl = ["id"], kl = ["flood-color"], _l = ["d", "stroke", "filter"], xl = ["x1", "y1", "x2", "y2", "stroke", "filter"], $l = ["cx", "cy", "r", "fill", "filter"], Cl = { key: 6 }, Pl = ["stroke", "d"],
|
|
18
|
+
const al = ["id"], ol = ["xmlns", "viewBox"], ul = ["width", "height"], sl = { key: 1 }, nl = ["id"], rl = ["stop-color"], il = ["offset", "stop-color"], vl = ["offset", "stop-color"], cl = ["stop-color"], dl = { key: 2 }, hl = ["id", "cx", "cy"], yl = ["stop-color", "stop-opacity"], fl = ["stop-color"], pl = ["id"], gl = ["id"], ml = ["id"], bl = ["flood-color"], wl = ["id"], kl = ["flood-color"], _l = ["d", "stroke", "filter"], xl = ["x1", "y1", "x2", "y2", "stroke", "filter"], $l = ["cx", "cy", "r", "fill", "filter"], Cl = { key: 6 }, Pl = ["stroke", "d"], Fl = { key: 0 }, Sl = ["d", "fill", "stroke", "stroke-width", "filter"], Ll = ["d", "fill", "stroke", "stroke-width", "filter"], Tl = { key: 0 }, zl = ["stroke", "d"], Al = { key: 0 }, Ol = ["d", "stroke", "stroke-width", "filter"], Nl = { key: 1 }, Yl = ["d", "fill", "stroke", "stroke-width", "filter"], Xl = ["d", "fill", "stroke", "stroke-width", "filter"], Il = { key: 1 }, Ml = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Dl = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Vl = ["cx", "cy", "r", "stroke"], Bl = ["cx", "cy", "r", "fill"], Gl = { key: 0 }, Rl = ["d", "fill", "onMouseenter", "onClick"], Ul = { key: 1 }, Wl = ["cx", "cy", "r", "fill"], jl = ["x", "y", "fill", "font-size"], El = ["x", "y", "fill", "font-size"], Hl = ["x", "y", "fill", "font-size"], ql = ["x", "y", "fill", "font-size"], Jl = ["filter"], Kl = { key: 0 }, Ql = ["x", "y"], Zl = { key: 1 }, ea = ["cx", "cy", "fill", "stroke", "filter", "onClick"], ta = ["cx", "cy", "fill", "stroke", "filter", "onClick"], la = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], aa = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], oa = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], ua = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], sa = { key: 2 }, na = ["x", "y", "width"], ra = ["x", "y", "width"], ia = {
|
|
19
19
|
key: 5,
|
|
20
20
|
class: "vue-data-ui-watermark"
|
|
21
21
|
}, va = ["onClick"], ca = {
|
|
@@ -53,11 +53,11 @@ const al = ["id"], ol = ["xmlns", "viewBox"], ul = ["width", "height"], sl = { k
|
|
|
53
53
|
se.value && se.value.disconnect();
|
|
54
54
|
});
|
|
55
55
|
function Pe() {
|
|
56
|
-
if (
|
|
56
|
+
if (Ft(A.dataset) ? at({
|
|
57
57
|
componentName: "VueUiDonut",
|
|
58
58
|
type: "dataset"
|
|
59
|
-
}) : A.dataset.forEach((l,
|
|
60
|
-
|
|
59
|
+
}) : A.dataset.forEach((l, o) => {
|
|
60
|
+
St({
|
|
61
61
|
datasetObject: l,
|
|
62
62
|
requiredAttributes: ["name", "values"]
|
|
63
63
|
}).forEach((t) => {
|
|
@@ -65,12 +65,12 @@ const al = ["id"], ol = ["xmlns", "viewBox"], ul = ["width", "height"], sl = { k
|
|
|
65
65
|
componentName: "VueUiDonut",
|
|
66
66
|
type: "datasetSerieAttribute",
|
|
67
67
|
property: t,
|
|
68
|
-
index:
|
|
68
|
+
index: o
|
|
69
69
|
});
|
|
70
70
|
});
|
|
71
71
|
}), e.value.responsive) {
|
|
72
72
|
const l = Bt(() => {
|
|
73
|
-
const { width:
|
|
73
|
+
const { width: o, height: t } = Gt({
|
|
74
74
|
chart: te.value,
|
|
75
75
|
title: e.value.style.chart.title.text ? be.value : null,
|
|
76
76
|
legend: e.value.style.chart.legend.show ? we.value : null,
|
|
@@ -79,14 +79,14 @@ const al = ["id"], ol = ["xmlns", "viewBox"], ul = ["width", "height"], sl = { k
|
|
|
79
79
|
padding: ze.value
|
|
80
80
|
});
|
|
81
81
|
requestAnimationFrame(() => {
|
|
82
|
-
s.value.width =
|
|
82
|
+
s.value.width = o, s.value.height = t;
|
|
83
83
|
});
|
|
84
84
|
});
|
|
85
85
|
se.value = new ResizeObserver(l), se.value.observe(te.value.parentNode);
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
|
-
const y = d(Lt()), vt = d(null), ne = d(!1), ve = d(""), F = d(null),
|
|
89
|
-
function
|
|
88
|
+
const y = d(Lt()), vt = d(null), ne = d(!1), ve = d(""), F = d(null), Fe = d(0);
|
|
89
|
+
function Se() {
|
|
90
90
|
const l = ut({
|
|
91
91
|
userConfig: A.config,
|
|
92
92
|
defaultConfig: rt
|
|
@@ -96,51 +96,51 @@ const al = ["id"], ol = ["xmlns", "viewBox"], ul = ["width", "height"], sl = { k
|
|
|
96
96
|
userConfig: It.vue_ui_donut[l.theme] || A.config,
|
|
97
97
|
defaultConfig: l
|
|
98
98
|
}),
|
|
99
|
-
customPalette: Xt[l.theme] ||
|
|
99
|
+
customPalette: Xt[l.theme] || H
|
|
100
100
|
} : l;
|
|
101
101
|
}
|
|
102
102
|
const e = p({
|
|
103
|
-
get: () =>
|
|
103
|
+
get: () => Se(),
|
|
104
104
|
set: (l) => l
|
|
105
|
-
}),
|
|
105
|
+
}), Y = d(!0), V = d([]);
|
|
106
106
|
function ct(l) {
|
|
107
107
|
return 1 - Math.pow(1 - l, 3);
|
|
108
108
|
}
|
|
109
|
-
function dt(l,
|
|
109
|
+
function dt(l, o = 1e3, t = 50) {
|
|
110
110
|
return new Promise((a) => {
|
|
111
111
|
const v = l.length;
|
|
112
|
-
|
|
112
|
+
V.value = Array(v).fill(0);
|
|
113
113
|
let b = 0;
|
|
114
|
-
l.forEach((
|
|
114
|
+
l.forEach((k, C) => {
|
|
115
115
|
setTimeout(() => {
|
|
116
116
|
const ae = performance.now();
|
|
117
117
|
function Je(kt) {
|
|
118
|
-
const Ke = Math.min((kt - ae) /
|
|
119
|
-
|
|
118
|
+
const Ke = Math.min((kt - ae) / o, 1), _t = ct(Ke);
|
|
119
|
+
V.value[C] = k * _t, V.value = [...V.value], Ke < 1 ? requestAnimationFrame(Je) : (V.value[C] = k, V.value = [...V.value], b += 1, b === v && a());
|
|
120
120
|
}
|
|
121
121
|
requestAnimationFrame(Je);
|
|
122
|
-
},
|
|
122
|
+
}, C * t);
|
|
123
123
|
});
|
|
124
124
|
});
|
|
125
125
|
}
|
|
126
126
|
Qe(async () => {
|
|
127
|
-
const l = A.dataset.map((
|
|
127
|
+
const l = A.dataset.map((o) => o.values.reduce((t, a) => t + a, 0));
|
|
128
128
|
e.value.startAnimation.show && await dt(
|
|
129
129
|
l,
|
|
130
130
|
e.value.startAnimation.durationMs,
|
|
131
131
|
e.value.startAnimation.staggerMs
|
|
132
|
-
),
|
|
132
|
+
), Y.value = !1;
|
|
133
133
|
});
|
|
134
134
|
const { userOptionsVisible: ce, setUserOptionsVisibility: Le, keepUserOptionState: Te } = Zt({ config: e.value }), { svgRef: de } = tl({ config: e.value.style.chart.title });
|
|
135
135
|
Ze(() => A.config, (l) => {
|
|
136
|
-
e.value =
|
|
136
|
+
e.value = Se(), ce.value = !e.value.userOptions.showOnChartHover, Pe(), xe.value += 1, $e.value += 1, Ce.value += 1, h.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, h.value.showTable = e.value.table.show, h.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
137
137
|
}, { deep: !0 });
|
|
138
138
|
const ze = p(() => {
|
|
139
|
-
const { top: l, right:
|
|
139
|
+
const { top: l, right: o, bottom: t, left: a } = e.value.style.chart.padding;
|
|
140
140
|
return {
|
|
141
|
-
css: `padding:${l}px ${
|
|
141
|
+
css: `padding:${l}px ${o}px ${t}px ${a}px`,
|
|
142
142
|
top: l,
|
|
143
|
-
right:
|
|
143
|
+
right: o,
|
|
144
144
|
bottom: t,
|
|
145
145
|
left: a
|
|
146
146
|
};
|
|
@@ -157,102 +157,104 @@ const al = ["id"], ol = ["xmlns", "viewBox"], ul = ["width", "height"], sl = { k
|
|
|
157
157
|
}), s = d({
|
|
158
158
|
height: 360,
|
|
159
159
|
width: 512
|
|
160
|
-
}),
|
|
161
|
-
const l = e.value.style.chart.layout.donut.strokeWidth / 512,
|
|
160
|
+
}), q = p(() => {
|
|
161
|
+
const l = e.value.style.chart.layout.donut.strokeWidth / 512, o = Math.min(s.value.width, s.value.height) * l, t = o > x.value ? x.value : o;
|
|
162
162
|
return Math.max(t, 3);
|
|
163
|
-
}), Ie = nt,
|
|
163
|
+
}), Ie = nt, B = p(() => A.dataset.map((l, o) => ({
|
|
164
164
|
name: l.name,
|
|
165
|
-
color: ot(l.color) || Xe.value[
|
|
165
|
+
color: ot(l.color) || Xe.value[o] || H[o] || H[o % H.length],
|
|
166
166
|
value: l.values.reduce((t, a) => t + a, 0),
|
|
167
167
|
absoluteValues: l.values,
|
|
168
168
|
comment: l.comment || "",
|
|
169
|
-
patternIndex:
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
169
|
+
patternIndex: o,
|
|
170
|
+
seriesIndex: o,
|
|
171
|
+
ghost: !1,
|
|
172
|
+
pattern: `pattern_${y.value}_${o}`
|
|
173
|
+
}))), O = d(B.value);
|
|
174
|
+
Ze(() => B.value, (l) => O.value = l);
|
|
173
175
|
function yt() {
|
|
174
|
-
return
|
|
176
|
+
return B.value.map((l) => ({
|
|
175
177
|
name: l.name,
|
|
176
178
|
color: l.color,
|
|
177
179
|
value: l.value
|
|
178
180
|
}));
|
|
179
181
|
}
|
|
180
|
-
const
|
|
182
|
+
const D = d([]), Me = d(null), De = d(null), W = d(!1);
|
|
181
183
|
function Ve(l) {
|
|
182
|
-
const
|
|
184
|
+
const o = B.value.find((v, b) => b === l), t = O.value.find((v, b) => b === l);
|
|
183
185
|
let a = t.value;
|
|
184
|
-
if (
|
|
186
|
+
if (D.value.includes(l)) {
|
|
185
187
|
let b = function() {
|
|
186
|
-
O.value = O.value.map((
|
|
187
|
-
...
|
|
188
|
+
O.value = O.value.map((C, ae) => l === ae ? {
|
|
189
|
+
...C,
|
|
188
190
|
value: v
|
|
189
|
-
} :
|
|
190
|
-
},
|
|
191
|
-
a > v ? (cancelAnimationFrame(Me.value), b(),
|
|
192
|
-
...
|
|
191
|
+
} : C);
|
|
192
|
+
}, k = function() {
|
|
193
|
+
a > v ? (cancelAnimationFrame(Me.value), b(), W.value = !1) : (W.value = !0, a += v * (e.value.type === "polar" ? 1 : 0.045), O.value = O.value.map((C, ae) => l === ae ? {
|
|
194
|
+
...C,
|
|
193
195
|
value: a
|
|
194
|
-
} :
|
|
196
|
+
} : C), Me.value = requestAnimationFrame(k));
|
|
195
197
|
};
|
|
196
|
-
|
|
197
|
-
const v =
|
|
198
|
-
e.value.useSerieToggleAnimation ?
|
|
199
|
-
} else if (
|
|
198
|
+
D.value = D.value.filter((C) => C !== l);
|
|
199
|
+
const v = o.value;
|
|
200
|
+
e.value.useSerieToggleAnimation ? k() : b();
|
|
201
|
+
} else if (D.value.length < B.value.length - 1) {
|
|
200
202
|
let v = function() {
|
|
201
|
-
|
|
202
|
-
...
|
|
203
|
+
D.value.push(l), O.value = O.value.map((k, C) => l === C ? {
|
|
204
|
+
...k,
|
|
203
205
|
value: 0
|
|
204
|
-
} :
|
|
206
|
+
} : k);
|
|
205
207
|
}, b = function() {
|
|
206
|
-
a < t.value / 100 ? (cancelAnimationFrame(De.value), v(),
|
|
207
|
-
...
|
|
208
|
+
a < t.value / 100 ? (cancelAnimationFrame(De.value), v(), W.value = !1) : (W.value = !0, a /= e.value.type === "polar" ? 20 : 1.18, O.value = O.value.map((k, C) => l === C ? {
|
|
209
|
+
...k,
|
|
208
210
|
value: a
|
|
209
|
-
} :
|
|
211
|
+
} : k), De.value = requestAnimationFrame(b));
|
|
210
212
|
};
|
|
211
213
|
e.value.useSerieToggleAnimation ? b() : v();
|
|
212
214
|
}
|
|
213
|
-
Ie("selectLegend",
|
|
215
|
+
Ie("selectLegend", G.value.map((v) => ({
|
|
214
216
|
name: v.name,
|
|
215
217
|
color: v.color,
|
|
216
218
|
value: v.value
|
|
217
219
|
})));
|
|
218
220
|
}
|
|
219
|
-
const ft = p(() => A.dataset.reduce((l,
|
|
220
|
-
if (
|
|
221
|
-
const l =
|
|
222
|
-
...
|
|
221
|
+
const ft = p(() => A.dataset.reduce((l, o) => l + o.values.reduce((t, a) => t + a, 0), 0)), G = p(() => {
|
|
222
|
+
if (Y.value) {
|
|
223
|
+
const l = V.value.map((t, a) => ({
|
|
224
|
+
...B.value[a],
|
|
223
225
|
value: t,
|
|
224
|
-
color:
|
|
226
|
+
color: B.value[a].color,
|
|
225
227
|
ghost: !1
|
|
226
|
-
})),
|
|
227
|
-
return
|
|
228
|
+
})), o = ft.value - V.value.reduce((t, a) => t + a, 0);
|
|
229
|
+
return o > 0 && l.push({
|
|
228
230
|
name: "__ghost__",
|
|
229
|
-
value:
|
|
231
|
+
value: o,
|
|
230
232
|
color: "transparent",
|
|
231
233
|
ghost: !0
|
|
232
234
|
}), l;
|
|
233
235
|
} else
|
|
234
|
-
return O.value.forEach((l,
|
|
236
|
+
return O.value.forEach((l, o) => {
|
|
235
237
|
if ([null, void 0].includes(l.values))
|
|
236
238
|
return {
|
|
237
239
|
...l,
|
|
238
240
|
values: []
|
|
239
241
|
};
|
|
240
|
-
}), O.value.map((l,
|
|
242
|
+
}), O.value.map((l, o) => ({
|
|
241
243
|
...l,
|
|
242
|
-
seriesIndex:
|
|
243
|
-
})).filter((l,
|
|
244
|
-
}), Be = p(() => A.dataset.map((l,
|
|
244
|
+
seriesIndex: o
|
|
245
|
+
})).filter((l, o) => !D.value.includes(o));
|
|
246
|
+
}), Be = p(() => A.dataset.map((l, o) => ({
|
|
245
247
|
name: l.name,
|
|
246
|
-
color: ot(l.color) || Xe.value[
|
|
248
|
+
color: ot(l.color) || Xe.value[o] || H[o] || H[o % H.length],
|
|
247
249
|
value: (l.values || []).reduce((t, a) => t + a, 0),
|
|
248
250
|
shape: "circle",
|
|
249
|
-
patternIndex:
|
|
250
|
-
})).map((l,
|
|
251
|
+
patternIndex: o
|
|
252
|
+
})).map((l, o) => ({
|
|
251
253
|
...l,
|
|
252
254
|
proportion: l.value / A.dataset.map((t) => (t.values || []).reduce((a, v) => a + v, 0)).reduce((t, a) => t + a, 0),
|
|
253
|
-
opacity:
|
|
254
|
-
segregate: () => !
|
|
255
|
-
isSegregated:
|
|
255
|
+
opacity: D.value.includes(o) ? 0.5 : 1,
|
|
256
|
+
segregate: () => !W.value && Ve(o),
|
|
257
|
+
isSegregated: D.value.includes(o)
|
|
256
258
|
}))), pt = p(() => ({
|
|
257
259
|
cy: "donut-div-legend",
|
|
258
260
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
@@ -260,19 +262,19 @@ const al = ["id"], ol = ["xmlns", "viewBox"], ul = ["width", "height"], sl = { k
|
|
|
260
262
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
261
263
|
paddingBottom: 12,
|
|
262
264
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
263
|
-
})),
|
|
265
|
+
})), x = p(() => {
|
|
264
266
|
const l = Math.min(s.value.width / 3, s.value.height / 3);
|
|
265
267
|
return l < 55 ? 55 : l;
|
|
266
|
-
}),
|
|
267
|
-
const l = Math.max(...
|
|
268
|
+
}), S = p(() => zt({ series: G.value }, s.value.width / 2, s.value.height / 2, x.value, x.value, 1.99999, 2, 1, 360, 105.25, q.value)), X = p(() => S.value.filter((l) => !l.ghost)), c = p(() => {
|
|
269
|
+
const l = Math.max(...G.value.map((t) => t.value)), o = G.value.map((t) => t.value / l);
|
|
268
270
|
return At({
|
|
269
|
-
series:
|
|
271
|
+
series: o,
|
|
270
272
|
center: {
|
|
271
273
|
x: s.value.width / 2,
|
|
272
274
|
y: s.value.height / 2
|
|
273
275
|
},
|
|
274
276
|
maxRadius: Math.min(s.value.width, s.value.height) / 3,
|
|
275
|
-
hasGhost:
|
|
277
|
+
hasGhost: Y.value
|
|
276
278
|
});
|
|
277
279
|
});
|
|
278
280
|
function J(l) {
|
|
@@ -281,12 +283,12 @@ const al = ["id"], ol = ["xmlns", "viewBox"], ul = ["width", "height"], sl = { k
|
|
|
281
283
|
function gt(l) {
|
|
282
284
|
return l.middlePoint.y > s.value.height / 2 ? z({ initX: l.middlePoint.x, initY: l.middlePoint.y, offset: 100, centerX: s.value.width / 2, centerY: s.value.height / 2 }).y : z({ initX: l.middlePoint.x, initY: l.middlePoint.y, offset: 0, centerX: s.value.width / 2, centerY: s.value.height / 2 }).y - 100;
|
|
283
285
|
}
|
|
284
|
-
function
|
|
286
|
+
function I(l) {
|
|
285
287
|
return l.proportion * 100 > e.value.style.chart.layout.labels.dataLabels.hideUnderValue;
|
|
286
288
|
}
|
|
287
|
-
function he(l,
|
|
288
|
-
const t = l.value / mt(
|
|
289
|
-
return isNaN(t) ? 0 :
|
|
289
|
+
function he(l, o) {
|
|
290
|
+
const t = l.value / mt(o);
|
|
291
|
+
return isNaN(t) ? 0 : M(
|
|
290
292
|
e.value.style.chart.layout.labels.percentage.formatter,
|
|
291
293
|
t * 100,
|
|
292
294
|
N({
|
|
@@ -298,27 +300,27 @@ const al = ["id"], ol = ["xmlns", "viewBox"], ul = ["width", "height"], sl = { k
|
|
|
298
300
|
);
|
|
299
301
|
}
|
|
300
302
|
function mt(l) {
|
|
301
|
-
return [...l].map((
|
|
303
|
+
return [...l].map((o) => o.value).reduce((o, t) => o + t, 0);
|
|
302
304
|
}
|
|
303
|
-
const L = p(() =>
|
|
304
|
-
function Ue({ datapoint: l, relativeIndex:
|
|
305
|
-
ye.value = { datapoint: l, seriesIndex: t, config: e.value, series:
|
|
305
|
+
const L = p(() => G.value.map((l) => l.value).reduce((l, o) => l + o, 0)), Ge = p(() => L.value / G.value.length), Re = p(() => (l) => W.value ? l.proportion * 100 : l.value / L.value * 100), ye = d(null), le = d(!1);
|
|
306
|
+
function Ue({ datapoint: l, relativeIndex: o, seriesIndex: t, show: a = !1 }) {
|
|
307
|
+
ye.value = { datapoint: l, seriesIndex: t, config: e.value, series: B.value }, ne.value = a, F.value = o;
|
|
306
308
|
let v = "";
|
|
307
309
|
const b = e.value.style.chart.tooltip.customFormat;
|
|
308
310
|
if (le.value = !1, Vt(b))
|
|
309
311
|
try {
|
|
310
|
-
const
|
|
312
|
+
const k = b({
|
|
311
313
|
seriesIndex: t,
|
|
312
314
|
datapoint: l,
|
|
313
|
-
series:
|
|
315
|
+
series: B.value,
|
|
314
316
|
config: e.value
|
|
315
317
|
});
|
|
316
|
-
typeof
|
|
318
|
+
typeof k == "string" && (ve.value = k, le.value = !0);
|
|
317
319
|
} catch {
|
|
318
320
|
console.warn("Custom format cannot be applied."), le.value = !1;
|
|
319
321
|
}
|
|
320
322
|
if (!le.value) {
|
|
321
|
-
if (v += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l.name}</div>`, v += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><circle cx="30" cy="30" r="30" stroke="none" fill="${l.color}"/>${it.pattern ? `<circle cx="30" cy="30" r="30" stroke="none" fill="url(#pattern_${y.value}_${t})"/>` : ""}</svg>`, e.value.style.chart.tooltip.showValue && (v += `<b>${
|
|
323
|
+
if (v += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l.name}</div>`, v += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><circle cx="30" cy="30" r="30" stroke="none" fill="${l.color}"/>${it.pattern ? `<circle cx="30" cy="30" r="30" stroke="none" fill="url(#pattern_${y.value}_${t})"/>` : ""}</svg>`, e.value.style.chart.tooltip.showValue && (v += `<b>${M(
|
|
322
324
|
e.value.style.chart.layout.labels.value.formatter,
|
|
323
325
|
l.value,
|
|
324
326
|
N({
|
|
@@ -329,11 +331,11 @@ const al = ["id"], ol = ["xmlns", "viewBox"], ul = ["width", "height"], sl = { k
|
|
|
329
331
|
}),
|
|
330
332
|
{
|
|
331
333
|
datapoint: l,
|
|
332
|
-
relativeIndex:
|
|
334
|
+
relativeIndex: o,
|
|
333
335
|
seriesIndex: t
|
|
334
336
|
}
|
|
335
337
|
)}</b>`), e.value.style.chart.tooltip.showPercentage) {
|
|
336
|
-
const
|
|
338
|
+
const k = M(
|
|
337
339
|
e.value.style.chart.layout.labels.percentage.formatter,
|
|
338
340
|
l.proportion * 100,
|
|
339
341
|
N({
|
|
@@ -343,30 +345,30 @@ const al = ["id"], ol = ["xmlns", "viewBox"], ul = ["width", "height"], sl = { k
|
|
|
343
345
|
}),
|
|
344
346
|
{
|
|
345
347
|
datapoint: l,
|
|
346
|
-
relativeIndex:
|
|
348
|
+
relativeIndex: o,
|
|
347
349
|
seriesIndex: t
|
|
348
350
|
}
|
|
349
351
|
);
|
|
350
|
-
e.value.style.chart.tooltip.showValue ? v += `<span>(${
|
|
352
|
+
e.value.style.chart.tooltip.showValue ? v += `<span>(${k})</span></div>` : v += `<b>${k}</b></div>`;
|
|
351
353
|
}
|
|
352
354
|
e.value.style.chart.comments.showInTooltip && l.comment && (v += `<div class="vue-data-ui-tooltip-comment" style="background:${l.color}20; padding: 6px; margin-bottom: 6px; margin-top:6px; border-left: 1px solid ${l.color}">${l.comment}</div>`), ve.value = `<div>${v}</div>`;
|
|
353
355
|
}
|
|
354
356
|
}
|
|
355
|
-
function
|
|
357
|
+
function j(l) {
|
|
356
358
|
return e.value.useBlurOnHover && ![null, void 0].includes(F.value) && F.value !== l ? `url(#blur_${y.value})` : "";
|
|
357
359
|
}
|
|
358
|
-
const
|
|
359
|
-
const l =
|
|
360
|
+
const R = p(() => {
|
|
361
|
+
const l = G.value.map((t) => ({
|
|
360
362
|
name: t.name,
|
|
361
363
|
color: t.color
|
|
362
|
-
})),
|
|
363
|
-
return { head: l, body:
|
|
364
|
+
})), o = G.value.map((t) => t.value);
|
|
365
|
+
return { head: l, body: o };
|
|
364
366
|
});
|
|
365
367
|
function We() {
|
|
366
368
|
Ct(() => {
|
|
367
|
-
const l =
|
|
369
|
+
const l = R.value.head.map((a, v) => [[
|
|
368
370
|
a.name
|
|
369
|
-
], [
|
|
371
|
+
], [R.value.body[v]], [isNaN(R.value.body[v] / L.value) ? "-" : R.value.body[v] / L.value * 100]]), o = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(l), t = Mt(o);
|
|
370
372
|
Dt({ csvContent: t, title: e.value.style.chart.title.text || "vue-ui-donut" });
|
|
371
373
|
});
|
|
372
374
|
}
|
|
@@ -375,13 +377,13 @@ const al = ["id"], ol = ["xmlns", "viewBox"], ul = ["width", "height"], sl = { k
|
|
|
375
377
|
' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>',
|
|
376
378
|
N({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: L.value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
|
|
377
379
|
"100%"
|
|
378
|
-
],
|
|
380
|
+
], o = R.value.head.map((v, b) => [
|
|
379
381
|
{
|
|
380
382
|
color: v.color,
|
|
381
383
|
name: v.name
|
|
382
384
|
},
|
|
383
|
-
|
|
384
|
-
isNaN(
|
|
385
|
+
R.value.body[b],
|
|
386
|
+
isNaN(R.value.body[b] / L.value) ? "-" : (R.value.body[b] / L.value * 100).toFixed(e.value.table.td.roundingPercentage) + "%"
|
|
385
387
|
]), t = {
|
|
386
388
|
th: {
|
|
387
389
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
@@ -402,19 +404,19 @@ const al = ["id"], ol = ["xmlns", "viewBox"], ul = ["width", "height"], sl = { k
|
|
|
402
404
|
e.value.table.columnNames.percentage
|
|
403
405
|
],
|
|
404
406
|
head: l,
|
|
405
|
-
body:
|
|
407
|
+
body: o,
|
|
406
408
|
config: t
|
|
407
409
|
};
|
|
408
410
|
}), K = d(!1);
|
|
409
411
|
function bt(l) {
|
|
410
|
-
K.value = l,
|
|
412
|
+
K.value = l, Fe.value += 1;
|
|
411
413
|
}
|
|
412
414
|
const je = p(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent));
|
|
413
415
|
function wt(l) {
|
|
414
|
-
return l.toFixed(e.value.style.chart.legend.roundingPercentage).split("").map((
|
|
416
|
+
return l.toFixed(e.value.style.chart.legend.roundingPercentage).split("").map((o) => "-").join("");
|
|
415
417
|
}
|
|
416
|
-
function
|
|
417
|
-
Ie("selectDatapoint", { datapoint: l, index:
|
|
418
|
+
function U(l, o) {
|
|
419
|
+
Ie("selectDatapoint", { datapoint: l, index: o });
|
|
418
420
|
}
|
|
419
421
|
function Ee() {
|
|
420
422
|
h.value.showTable = !h.value.showTable;
|
|
@@ -438,16 +440,16 @@ const al = ["id"], ol = ["xmlns", "viewBox"], ul = ["width", "height"], sl = { k
|
|
|
438
440
|
toggleLabels: He,
|
|
439
441
|
toggleTooltip: qe,
|
|
440
442
|
toggleAnnotator: fe
|
|
441
|
-
}), (l,
|
|
443
|
+
}), (l, o) => (u(), n("div", {
|
|
442
444
|
ref_key: "donutChart",
|
|
443
445
|
ref: te,
|
|
444
446
|
class: pe(`vue-ui-donut ${K.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
445
|
-
style:
|
|
447
|
+
style: _(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height:100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
446
448
|
id: `donut__${y.value}`,
|
|
447
|
-
onMouseenter:
|
|
448
|
-
onMouseleave:
|
|
449
|
+
onMouseenter: o[6] || (o[6] = () => r(Le)(!0)),
|
|
450
|
+
onMouseleave: o[7] || (o[7] = () => r(Le)(!1))
|
|
449
451
|
}, [
|
|
450
|
-
e.value.userOptions.buttons.annotator && r(de) ? (
|
|
452
|
+
e.value.userOptions.buttons.annotator && r(de) ? (u(), E(Qt, {
|
|
451
453
|
key: 0,
|
|
452
454
|
color: e.value.style.chart.color,
|
|
453
455
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -456,20 +458,20 @@ const al = ["id"], ol = ["xmlns", "viewBox"], ul = ["width", "height"], sl = { k
|
|
|
456
458
|
onClose: fe
|
|
457
459
|
}, null, 8, ["color", "backgroundColor", "active", "svgRef"])) : i("", !0),
|
|
458
460
|
g(l.$slots, "userConfig", {}, void 0, !0),
|
|
459
|
-
ht.value ? (
|
|
461
|
+
ht.value ? (u(), n("div", {
|
|
460
462
|
key: 1,
|
|
461
463
|
ref_key: "noTitle",
|
|
462
464
|
ref: _e,
|
|
463
465
|
class: "vue-data-ui-no-title-space",
|
|
464
466
|
style: "height:36px; width: 100%;background:transparent"
|
|
465
467
|
}, null, 512)) : i("", !0),
|
|
466
|
-
e.value.style.chart.title.text ? (
|
|
468
|
+
e.value.style.chart.title.text ? (u(), n("div", {
|
|
467
469
|
key: 2,
|
|
468
470
|
ref_key: "chartTitle",
|
|
469
471
|
ref: be,
|
|
470
472
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
471
473
|
}, [
|
|
472
|
-
(
|
|
474
|
+
(u(), E(Rt, {
|
|
473
475
|
key: `title_${xe.value}`,
|
|
474
476
|
config: {
|
|
475
477
|
title: {
|
|
@@ -483,10 +485,10 @@ const al = ["id"], ol = ["xmlns", "viewBox"], ul = ["width", "height"], sl = { k
|
|
|
483
485
|
}
|
|
484
486
|
}, null, 8, ["config"]))
|
|
485
487
|
], 512)) : i("", !0),
|
|
486
|
-
e.value.userOptions.show && ee.value && (r(Te) || r(ce)) ? (
|
|
488
|
+
e.value.userOptions.show && ee.value && (r(Te) || r(ce)) ? (u(), E(Wt, {
|
|
487
489
|
ref_key: "details",
|
|
488
490
|
ref: vt,
|
|
489
|
-
key: `user_option_${
|
|
491
|
+
key: `user_option_${Fe.value}`,
|
|
490
492
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
491
493
|
color: e.value.style.chart.color,
|
|
492
494
|
isPrinting: r(Ae),
|
|
@@ -514,85 +516,85 @@ const al = ["id"], ol = ["xmlns", "viewBox"], ul = ["width", "height"], sl = { k
|
|
|
514
516
|
onToggleLabels: He,
|
|
515
517
|
onToggleTooltip: qe,
|
|
516
518
|
onToggleAnnotator: fe,
|
|
517
|
-
style:
|
|
519
|
+
style: _({
|
|
518
520
|
visibility: r(Te) ? r(ce) ? "visible" : "hidden" : "visible"
|
|
519
521
|
})
|
|
520
522
|
}, et({ _: 2 }, [
|
|
521
523
|
l.$slots.menuIcon ? {
|
|
522
524
|
name: "menuIcon",
|
|
523
|
-
fn:
|
|
525
|
+
fn: $(({ isOpen: t, color: a }) => [
|
|
524
526
|
g(l.$slots, "menuIcon", Q(Z({ isOpen: t, color: a })), void 0, !0)
|
|
525
527
|
]),
|
|
526
528
|
key: "0"
|
|
527
529
|
} : void 0,
|
|
528
530
|
l.$slots.optionTooltip ? {
|
|
529
531
|
name: "optionTooltip",
|
|
530
|
-
fn:
|
|
532
|
+
fn: $(() => [
|
|
531
533
|
g(l.$slots, "optionTooltip", {}, void 0, !0)
|
|
532
534
|
]),
|
|
533
535
|
key: "1"
|
|
534
536
|
} : void 0,
|
|
535
537
|
l.$slots.optionPdf ? {
|
|
536
538
|
name: "optionPdf",
|
|
537
|
-
fn:
|
|
539
|
+
fn: $(() => [
|
|
538
540
|
g(l.$slots, "optionPdf", {}, void 0, !0)
|
|
539
541
|
]),
|
|
540
542
|
key: "2"
|
|
541
543
|
} : void 0,
|
|
542
544
|
l.$slots.optionCsv ? {
|
|
543
545
|
name: "optionCsv",
|
|
544
|
-
fn:
|
|
546
|
+
fn: $(() => [
|
|
545
547
|
g(l.$slots, "optionCsv", {}, void 0, !0)
|
|
546
548
|
]),
|
|
547
549
|
key: "3"
|
|
548
550
|
} : void 0,
|
|
549
551
|
l.$slots.optionImg ? {
|
|
550
552
|
name: "optionImg",
|
|
551
|
-
fn:
|
|
553
|
+
fn: $(() => [
|
|
552
554
|
g(l.$slots, "optionImg", {}, void 0, !0)
|
|
553
555
|
]),
|
|
554
556
|
key: "4"
|
|
555
557
|
} : void 0,
|
|
556
558
|
l.$slots.optionTable ? {
|
|
557
559
|
name: "optionTable",
|
|
558
|
-
fn:
|
|
560
|
+
fn: $(() => [
|
|
559
561
|
g(l.$slots, "optionTable", {}, void 0, !0)
|
|
560
562
|
]),
|
|
561
563
|
key: "5"
|
|
562
564
|
} : void 0,
|
|
563
565
|
l.$slots.optionLabels ? {
|
|
564
566
|
name: "optionLabels",
|
|
565
|
-
fn:
|
|
567
|
+
fn: $(() => [
|
|
566
568
|
g(l.$slots, "optionLabels", {}, void 0, !0)
|
|
567
569
|
]),
|
|
568
570
|
key: "6"
|
|
569
571
|
} : void 0,
|
|
570
572
|
l.$slots.optionFullscreen ? {
|
|
571
573
|
name: "optionFullscreen",
|
|
572
|
-
fn:
|
|
574
|
+
fn: $(({ toggleFullscreen: t, isFullscreen: a }) => [
|
|
573
575
|
g(l.$slots, "optionFullscreen", Q(Z({ toggleFullscreen: t, isFullscreen: a })), void 0, !0)
|
|
574
576
|
]),
|
|
575
577
|
key: "7"
|
|
576
578
|
} : void 0,
|
|
577
579
|
l.$slots.optionAnnotator ? {
|
|
578
580
|
name: "optionAnnotator",
|
|
579
|
-
fn:
|
|
581
|
+
fn: $(({ toggleAnnotator: t, isAnnotator: a }) => [
|
|
580
582
|
g(l.$slots, "optionAnnotator", Q(Z({ toggleAnnotator: t, isAnnotator: a })), void 0, !0)
|
|
581
583
|
]),
|
|
582
584
|
key: "8"
|
|
583
585
|
} : void 0
|
|
584
586
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : i("", !0),
|
|
585
|
-
ee.value ? (
|
|
587
|
+
ee.value ? (u(), n("svg", {
|
|
586
588
|
key: 4,
|
|
587
589
|
ref_key: "svgRef",
|
|
588
590
|
ref: de,
|
|
589
591
|
xmlns: r(Ot),
|
|
590
592
|
class: pe({ "vue-data-ui-fullscreen--on": K.value, "vue-data-ui-fulscreen--off": !K.value }),
|
|
591
593
|
viewBox: `0 0 ${s.value.width <= 0 ? 10 : s.value.width} ${s.value.height <= 0 ? 10 : s.value.height}`,
|
|
592
|
-
style:
|
|
594
|
+
style: _(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};${ze.value.css}`)
|
|
593
595
|
}, [
|
|
594
596
|
ge(Kt),
|
|
595
|
-
l.$slots["chart-background"] ? (
|
|
597
|
+
l.$slots["chart-background"] ? (u(), n("foreignObject", {
|
|
596
598
|
key: 0,
|
|
597
599
|
x: 0,
|
|
598
600
|
y: 0,
|
|
@@ -604,8 +606,8 @@ const al = ["id"], ol = ["xmlns", "viewBox"], ul = ["width", "height"], sl = { k
|
|
|
604
606
|
}, [
|
|
605
607
|
g(l.$slots, "chart-background", {}, void 0, !0)
|
|
606
608
|
], 8, ul)) : i("", !0),
|
|
607
|
-
e.value.type === "classic" && !isNaN(
|
|
608
|
-
e.value.style.chart.useGradient ? (
|
|
609
|
+
e.value.type === "classic" && !isNaN(q.value / x.value) ? (u(), n("defs", sl, [
|
|
610
|
+
e.value.style.chart.useGradient ? (u(), n("radialGradient", {
|
|
609
611
|
key: 0,
|
|
610
612
|
id: `gradient_${y.value}`
|
|
611
613
|
}, [
|
|
@@ -615,12 +617,12 @@ const al = ["id"], ol = ["xmlns", "viewBox"], ul = ["width", "height"], sl = { k
|
|
|
615
617
|
"stop-opacity": "0"
|
|
616
618
|
}, null, 8, rl),
|
|
617
619
|
f("stop", {
|
|
618
|
-
offset: `${(1 -
|
|
620
|
+
offset: `${(1 - q.value / x.value) * 100}%`,
|
|
619
621
|
"stop-color": r(oe)("#FFFFFF", 0),
|
|
620
622
|
"stop-opacity": "0"
|
|
621
623
|
}, null, 8, il),
|
|
622
624
|
f("stop", {
|
|
623
|
-
offset: `${(1 -
|
|
625
|
+
offset: `${(1 - q.value / x.value / 2) * 100}%`,
|
|
624
626
|
"stop-color": r(oe)("#FFFFFF", e.value.style.chart.gradientIntensity)
|
|
625
627
|
}, null, 8, vl),
|
|
626
628
|
f("stop", {
|
|
@@ -630,8 +632,8 @@ const al = ["id"], ol = ["xmlns", "viewBox"], ul = ["width", "height"], sl = { k
|
|
|
630
632
|
}, null, 8, cl)
|
|
631
633
|
], 8, nl)) : i("", !0)
|
|
632
634
|
])) : i("", !0),
|
|
633
|
-
e.value.type === "polar" ? (
|
|
634
|
-
(
|
|
635
|
+
e.value.type === "polar" ? (u(), n("defs", dl, [
|
|
636
|
+
(u(!0), n(m, null, T(c.value, (t, a) => (u(), n("radialGradient", {
|
|
635
637
|
id: `polar_gradient_${a}_${y.value}`,
|
|
636
638
|
cx: (isNaN(t.middlePoint.x / s.value.width * 100) ? 0 : t.middlePoint.x / s.value.width * 100) + "%",
|
|
637
639
|
cy: (isNaN(t.middlePoint.y / s.value.height * 100) ? 0 : t.middlePoint.y / s.value.height * 100) + "%",
|
|
@@ -639,12 +641,12 @@ const al = ["id"], ol = ["xmlns", "viewBox"], ul = ["width", "height"], sl = { k
|
|
|
639
641
|
}, [
|
|
640
642
|
f("stop", {
|
|
641
643
|
offset: "0%",
|
|
642
|
-
"stop-color": r(Nt)(
|
|
644
|
+
"stop-color": r(Nt)(S.value[a].color, 0.05),
|
|
643
645
|
"stop-opacity": e.value.style.chart.gradientIntensity / 100
|
|
644
646
|
}, null, 8, yl),
|
|
645
647
|
f("stop", {
|
|
646
648
|
offset: "100%",
|
|
647
|
-
"stop-color":
|
|
649
|
+
"stop-color": S.value[a].color
|
|
648
650
|
}, null, 8, fl)
|
|
649
651
|
], 8, hl))), 256))
|
|
650
652
|
])) : i("", !0),
|
|
@@ -661,7 +663,7 @@ const al = ["id"], ol = ["xmlns", "viewBox"], ul = ["width", "height"], sl = { k
|
|
|
661
663
|
stdDeviation: 2,
|
|
662
664
|
id: `blur_std_${y.value}`
|
|
663
665
|
}, null, 8, gl),
|
|
664
|
-
|
|
666
|
+
o[8] || (o[8] = f("feColorMatrix", {
|
|
665
667
|
type: "saturate",
|
|
666
668
|
values: "0"
|
|
667
669
|
}, null, -1))
|
|
@@ -695,20 +697,20 @@ const al = ["id"], ol = ["xmlns", "viewBox"], ul = ["width", "height"], sl = { k
|
|
|
695
697
|
}, null, 8, kl)
|
|
696
698
|
], 8, wl)
|
|
697
699
|
]),
|
|
698
|
-
e.value.type === "classic" ? (
|
|
699
|
-
|
|
700
|
+
e.value.type === "classic" ? (u(!0), n(m, { key: 3 }, T(S.value.filter((t) => !t.ghost), (t, a) => (u(), n("g", null, [
|
|
701
|
+
I(t) && h.value.dataLabels.show ? (u(), n("path", {
|
|
700
702
|
key: 0,
|
|
701
|
-
d: r(Yt)(t, { x: s.value.width / 2, y: s.value.height / 2 }, 16, 16, !1, !1,
|
|
703
|
+
d: r(Yt)(t, { x: s.value.width / 2, y: s.value.height / 2 }, 16, 16, !1, !1, q.value, 12, e.value.style.chart.layout.curvedMarkers),
|
|
702
704
|
stroke: t.color,
|
|
703
705
|
"stroke-width": "1",
|
|
704
706
|
"stroke-linecap": "round",
|
|
705
707
|
"stroke-linejoin": "round",
|
|
706
708
|
fill: "none",
|
|
707
|
-
filter:
|
|
709
|
+
filter: j(a)
|
|
708
710
|
}, null, 8, _l)) : i("", !0)
|
|
709
711
|
]))), 256)) : i("", !0),
|
|
710
|
-
e.value.type === "polar" ? (
|
|
711
|
-
|
|
712
|
+
e.value.type === "polar" ? (u(!0), n(m, { key: 4 }, T(S.value.filter((t) => !t.ghost), (t, a) => (u(), n("g", null, [
|
|
713
|
+
I(t) && h.value.dataLabels.show ? (u(), n("line", {
|
|
712
714
|
key: 0,
|
|
713
715
|
x1: r(z)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 24, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x,
|
|
714
716
|
y1: r(z)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 24, centerX: s.value.width / 2, centerY: s.value.height / 2 }).y,
|
|
@@ -719,139 +721,139 @@ const al = ["id"], ol = ["xmlns", "viewBox"], ul = ["width", "height"], sl = { k
|
|
|
719
721
|
"stroke-linecap": "round",
|
|
720
722
|
"stroke-linejoin": "round",
|
|
721
723
|
fill: "none",
|
|
722
|
-
filter:
|
|
723
|
-
style:
|
|
724
|
-
transition:
|
|
724
|
+
filter: j(a),
|
|
725
|
+
style: _({
|
|
726
|
+
transition: Y.value ? "" : "all 0.1s ease-in-out"
|
|
725
727
|
})
|
|
726
728
|
}, null, 12, xl)) : i("", !0)
|
|
727
729
|
]))), 256)) : i("", !0),
|
|
728
|
-
e.value.type === "classic" && e.value.style.chart.layout.donut.useShadow ? (
|
|
730
|
+
e.value.type === "classic" && e.value.style.chart.layout.donut.useShadow ? (u(), n("circle", {
|
|
729
731
|
key: 5,
|
|
730
732
|
cx: s.value.width / 2,
|
|
731
733
|
cy: s.value.height / 2,
|
|
732
|
-
r:
|
|
734
|
+
r: x.value <= 0 ? 10 : x.value,
|
|
733
735
|
fill: e.value.style.chart.backgroundColor,
|
|
734
736
|
filter: `url(#shadow_${y.value})`
|
|
735
737
|
}, null, 8, $l)) : i("", !0),
|
|
736
|
-
l.$slots.pattern ? (
|
|
737
|
-
(
|
|
738
|
+
l.$slots.pattern ? (u(), n("g", Cl, [
|
|
739
|
+
(u(!0), n(m, null, T(me.dataset, (t, a) => (u(), n("defs", {
|
|
738
740
|
key: `pattern-${t.patternIndex}`
|
|
739
741
|
}, [
|
|
740
742
|
g(l.$slots, "pattern", tt({ ref_for: !0 }, { seriesIndex: a, patternId: `pattern_${y.value}_${a}` }), void 0, !0)
|
|
741
743
|
]))), 128))
|
|
742
744
|
])) : i("", !0),
|
|
743
|
-
L.value && e.value.type === "classic" ? (
|
|
744
|
-
(
|
|
745
|
+
L.value && e.value.type === "classic" ? (u(), n(m, { key: 7 }, [
|
|
746
|
+
(u(!0), n(m, null, T(X.value, (t, a) => (u(), n("path", {
|
|
745
747
|
stroke: e.value.style.chart.backgroundColor,
|
|
746
748
|
d: t.arcSlice,
|
|
747
749
|
fill: "#FFFFFF"
|
|
748
750
|
}, null, 8, Pl))), 256)),
|
|
749
|
-
l.$slots.pattern ? (
|
|
750
|
-
(
|
|
751
|
+
l.$slots.pattern ? (u(), n("g", Fl, [
|
|
752
|
+
(u(!0), n(m, null, T(X.value, (t, a) => (u(), n("path", {
|
|
751
753
|
class: "vue-ui-donut-arc-path",
|
|
752
754
|
d: t.arcSlice,
|
|
753
755
|
fill: `url(#${t.pattern})`,
|
|
754
756
|
stroke: e.value.style.chart.backgroundColor,
|
|
755
757
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
756
|
-
filter:
|
|
757
|
-
}, null, 8,
|
|
758
|
+
filter: j(a)
|
|
759
|
+
}, null, 8, Sl))), 256))
|
|
758
760
|
])) : i("", !0),
|
|
759
|
-
(
|
|
761
|
+
(u(!0), n(m, null, T(X.value, (t, a) => (u(), n("path", {
|
|
760
762
|
class: "vue-ui-donut-arc-path",
|
|
761
763
|
d: t.arcSlice,
|
|
762
764
|
fill: r(oe)(t.color, 80),
|
|
763
765
|
stroke: e.value.style.chart.backgroundColor,
|
|
764
766
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
765
|
-
filter:
|
|
767
|
+
filter: j(a)
|
|
766
768
|
}, null, 8, Ll))), 256))
|
|
767
769
|
], 64)) : i("", !0),
|
|
768
|
-
L.value && e.value.type === "polar" ? (
|
|
769
|
-
|
|
770
|
-
(
|
|
770
|
+
L.value && e.value.type === "polar" ? (u(), n(m, { key: 8 }, [
|
|
771
|
+
S.value.length > 1 ? (u(), n("g", Tl, [
|
|
772
|
+
(u(!0), n(m, null, T(X.value, (t, a) => (u(), n("path", {
|
|
771
773
|
stroke: e.value.style.chart.backgroundColor,
|
|
772
774
|
d: c.value[a].path,
|
|
773
775
|
fill: "#FFFFFF",
|
|
774
|
-
style:
|
|
775
|
-
transition:
|
|
776
|
+
style: _({
|
|
777
|
+
transition: Y.value ? "none" : "all 0.1s ease-in-out"
|
|
776
778
|
})
|
|
777
779
|
}, null, 12, zl))), 256)),
|
|
778
|
-
e.value.style.chart.layout.donut.useShadow ? (
|
|
779
|
-
(
|
|
780
|
+
e.value.style.chart.layout.donut.useShadow ? (u(), n("g", Al, [
|
|
781
|
+
(u(!0), n(m, null, T(X.value, (t, a) => (u(), n("path", {
|
|
780
782
|
class: "vue-ui-donut-arc-path",
|
|
781
783
|
d: c.value[a].path,
|
|
782
784
|
fill: "transparent",
|
|
783
785
|
stroke: e.value.style.chart.backgroundColor,
|
|
784
786
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
785
787
|
filter: `url(#drop_shadow_${y.value})`,
|
|
786
|
-
style:
|
|
787
|
-
transition:
|
|
788
|
+
style: _({
|
|
789
|
+
transition: Y.value ? "none" : "all 0.1s ease-in-out"
|
|
788
790
|
})
|
|
789
791
|
}, null, 12, Ol))), 256))
|
|
790
792
|
])) : i("", !0),
|
|
791
|
-
l.$slots.pattern ? (
|
|
792
|
-
(
|
|
793
|
+
l.$slots.pattern ? (u(), n("g", Nl, [
|
|
794
|
+
(u(!0), n(m, null, T(X.value, (t, a) => (u(), n("path", {
|
|
793
795
|
class: "vue-ui-donut-arc-path",
|
|
794
796
|
d: c.value[a].path,
|
|
795
797
|
fill: `url(#${t.pattern})`,
|
|
796
798
|
stroke: e.value.style.chart.backgroundColor,
|
|
797
799
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
798
|
-
filter:
|
|
799
|
-
style:
|
|
800
|
-
transition:
|
|
800
|
+
filter: j(a),
|
|
801
|
+
style: _({
|
|
802
|
+
transition: Y.value ? "none" : "all 0.1s ease-in-out"
|
|
801
803
|
})
|
|
802
804
|
}, null, 12, Yl))), 256))
|
|
803
805
|
])) : i("", !0),
|
|
804
|
-
(
|
|
806
|
+
(u(!0), n(m, null, T(X.value, (t, a) => (u(), n("path", {
|
|
805
807
|
class: "vue-ui-donut-arc-path",
|
|
806
808
|
d: c.value[a].path,
|
|
807
809
|
fill: e.value.style.chart.useGradient ? `url(#polar_gradient_${a}_${y.value})` : t.color,
|
|
808
810
|
stroke: e.value.style.chart.backgroundColor,
|
|
809
811
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
810
|
-
filter:
|
|
811
|
-
style:
|
|
812
|
-
transition:
|
|
812
|
+
filter: j(a),
|
|
813
|
+
style: _({
|
|
814
|
+
transition: Y.value ? "none" : "all 0.1s ease-in-out"
|
|
813
815
|
})
|
|
814
816
|
}, null, 12, Xl))), 256))
|
|
815
|
-
])) : (
|
|
816
|
-
l.$slots.pattern ? (
|
|
817
|
+
])) : (u(), n("g", Il, [
|
|
818
|
+
l.$slots.pattern ? (u(), n("circle", {
|
|
817
819
|
key: 0,
|
|
818
820
|
cx: s.value.width / 2,
|
|
819
821
|
cy: s.value.height / 2,
|
|
820
|
-
r:
|
|
821
|
-
fill: `url(#pattern_${y.value}_${
|
|
822
|
+
r: x.value,
|
|
823
|
+
fill: `url(#pattern_${y.value}_${S.value[0].patternIndex})`,
|
|
822
824
|
stroke: e.value.style.chart.backgroundColor,
|
|
823
825
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth
|
|
824
826
|
}, null, 8, Ml)) : i("", !0),
|
|
825
827
|
f("circle", {
|
|
826
828
|
cx: s.value.width / 2,
|
|
827
829
|
cy: s.value.height / 2,
|
|
828
|
-
r:
|
|
829
|
-
fill: e.value.style.chart.useGradient ? `url(#polar_gradient_0_${y.value})` :
|
|
830
|
+
r: x.value,
|
|
831
|
+
fill: e.value.style.chart.useGradient ? `url(#polar_gradient_0_${y.value})` : S.value[0].color,
|
|
830
832
|
stroke: e.value.style.chart.backgroundColor,
|
|
831
833
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth
|
|
832
834
|
}, null, 8, Dl)
|
|
833
835
|
]))
|
|
834
|
-
], 64)) : (
|
|
836
|
+
], 64)) : (u(), n("circle", {
|
|
835
837
|
key: 9,
|
|
836
838
|
cx: s.value.width / 2,
|
|
837
839
|
cy: s.value.height / 2,
|
|
838
|
-
r:
|
|
840
|
+
r: x.value <= 0 ? 10 : x.value,
|
|
839
841
|
fill: "transparent",
|
|
840
842
|
stroke: e.value.style.chart.backgroundColor
|
|
841
843
|
}, null, 8, Vl)),
|
|
842
|
-
e.value.style.chart.useGradient && e.value.type === "classic" ? (
|
|
844
|
+
e.value.style.chart.useGradient && e.value.type === "classic" ? (u(), n("circle", {
|
|
843
845
|
key: 10,
|
|
844
846
|
cx: s.value.width / 2,
|
|
845
847
|
cy: s.value.height / 2,
|
|
846
848
|
r: (
|
|
847
849
|
/* This might require adjustments */
|
|
848
|
-
|
|
850
|
+
x.value <= 0 ? 10 : x.value
|
|
849
851
|
),
|
|
850
852
|
fill: `url(#gradient_${y.value})`
|
|
851
853
|
}, null, 8, Bl)) : i("", !0),
|
|
852
|
-
L.value ? (
|
|
853
|
-
|
|
854
|
-
(
|
|
854
|
+
L.value ? (u(), n(m, { key: 11 }, [
|
|
855
|
+
S.value.length > 1 || e.value.type === "classic" ? (u(), n("g", Gl, [
|
|
856
|
+
(u(!0), n(m, null, T(S.value.filter((t) => !t.ghost), (t, a) => (u(), n("path", {
|
|
855
857
|
d: e.value.type === "classic" ? t.arcSlice : c.value[a].path,
|
|
856
858
|
fill: F.value === a ? "rgba(0,0,0,0.1)" : "transparent",
|
|
857
859
|
onMouseenter: (v) => Ue({
|
|
@@ -860,49 +862,49 @@ const al = ["id"], ol = ["xmlns", "viewBox"], ul = ["width", "height"], sl = { k
|
|
|
860
862
|
seriesIndex: t.seriesIndex,
|
|
861
863
|
show: !0
|
|
862
864
|
}),
|
|
863
|
-
onMouseleave:
|
|
865
|
+
onMouseleave: o[0] || (o[0] = (v) => {
|
|
864
866
|
ne.value = !1, F.value = null;
|
|
865
867
|
}),
|
|
866
|
-
onClick: (v) =>
|
|
868
|
+
onClick: (v) => U(t, a)
|
|
867
869
|
}, null, 40, Rl))), 256))
|
|
868
|
-
])) : (
|
|
870
|
+
])) : (u(), n("g", Ul, [
|
|
869
871
|
f("circle", {
|
|
870
872
|
cx: s.value.width / 2,
|
|
871
873
|
cy: s.value.height / 2,
|
|
872
|
-
r:
|
|
874
|
+
r: x.value,
|
|
873
875
|
fill: F.value === l.i ? "rgba(0,0,0,0.1)" : "transparent",
|
|
874
|
-
onMouseenter:
|
|
875
|
-
datapoint:
|
|
876
|
+
onMouseenter: o[1] || (o[1] = (t) => Ue({
|
|
877
|
+
datapoint: S.value[0],
|
|
876
878
|
relativeIndex: 0,
|
|
877
|
-
seriesIndex:
|
|
879
|
+
seriesIndex: S.value[0].seriesIndex,
|
|
878
880
|
show: !0
|
|
879
881
|
})),
|
|
880
|
-
onMouseleave:
|
|
882
|
+
onMouseleave: o[2] || (o[2] = (t) => {
|
|
881
883
|
ne.value = !1, F.value = null;
|
|
882
884
|
}),
|
|
883
|
-
onClick:
|
|
885
|
+
onClick: o[3] || (o[3] = (t) => U(S.value[0], l.i))
|
|
884
886
|
}, null, 40, Wl)
|
|
885
887
|
]))
|
|
886
888
|
], 64)) : i("", !0),
|
|
887
|
-
e.value.type === "classic" ? (
|
|
888
|
-
e.value.style.chart.layout.labels.hollow.total.show ? (
|
|
889
|
+
e.value.type === "classic" ? (u(), n(m, { key: 12 }, [
|
|
890
|
+
e.value.style.chart.layout.labels.hollow.total.show ? (u(), n("text", {
|
|
889
891
|
key: 0,
|
|
890
892
|
"text-anchor": "middle",
|
|
891
893
|
x: s.value.width / 2,
|
|
892
894
|
y: s.value.height / 2 - (e.value.style.chart.layout.labels.hollow.average.show ? e.value.style.chart.layout.labels.hollow.total.fontSize : 0) + e.value.style.chart.layout.labels.hollow.total.offsetY,
|
|
893
895
|
fill: e.value.style.chart.layout.labels.hollow.total.color,
|
|
894
896
|
"font-size": e.value.style.chart.layout.labels.hollow.total.fontSize,
|
|
895
|
-
style:
|
|
896
|
-
},
|
|
897
|
-
e.value.style.chart.layout.labels.hollow.total.show ? (
|
|
897
|
+
style: _(`font-weight:${e.value.style.chart.layout.labels.hollow.total.bold ? "bold" : ""}`)
|
|
898
|
+
}, P(e.value.style.chart.layout.labels.hollow.total.text), 13, jl)) : i("", !0),
|
|
899
|
+
e.value.style.chart.layout.labels.hollow.total.show ? (u(), n("text", {
|
|
898
900
|
key: 1,
|
|
899
901
|
"text-anchor": "middle",
|
|
900
902
|
x: s.value.width / 2,
|
|
901
903
|
y: s.value.height / 2 + e.value.style.chart.layout.labels.hollow.total.fontSize - (e.value.style.chart.layout.labels.hollow.average.show ? e.value.style.chart.layout.labels.hollow.total.fontSize : 0) + e.value.style.chart.layout.labels.hollow.total.value.offsetY,
|
|
902
904
|
fill: e.value.style.chart.layout.labels.hollow.total.value.color,
|
|
903
905
|
"font-size": e.value.style.chart.layout.labels.hollow.total.value.fontSize,
|
|
904
|
-
style:
|
|
905
|
-
},
|
|
906
|
+
style: _(`font-weight:${e.value.style.chart.layout.labels.hollow.total.value.bold ? "bold" : ""}`)
|
|
907
|
+
}, P(r(M)(
|
|
906
908
|
e.value.style.chart.layout.labels.hollow.total.value.formatter,
|
|
907
909
|
L.value,
|
|
908
910
|
r(N)({
|
|
@@ -911,24 +913,24 @@ const al = ["id"], ol = ["xmlns", "viewBox"], ul = ["width", "height"], sl = { k
|
|
|
911
913
|
s: e.value.style.chart.layout.labels.hollow.total.value.suffix
|
|
912
914
|
})
|
|
913
915
|
)), 13, El)) : i("", !0),
|
|
914
|
-
e.value.style.chart.layout.labels.hollow.average.show ? (
|
|
916
|
+
e.value.style.chart.layout.labels.hollow.average.show ? (u(), n("text", {
|
|
915
917
|
key: 2,
|
|
916
918
|
"text-anchor": "middle",
|
|
917
919
|
x: s.value.width / 2,
|
|
918
920
|
y: s.value.height / 2 + (e.value.style.chart.layout.labels.hollow.total.show ? e.value.style.chart.layout.labels.hollow.average.fontSize : 0) + e.value.style.chart.layout.labels.hollow.average.offsetY,
|
|
919
921
|
fill: e.value.style.chart.layout.labels.hollow.average.color,
|
|
920
922
|
"font-size": e.value.style.chart.layout.labels.hollow.average.fontSize,
|
|
921
|
-
style:
|
|
922
|
-
},
|
|
923
|
-
e.value.style.chart.layout.labels.hollow.average.show ? (
|
|
923
|
+
style: _(`font-weight:${e.value.style.chart.layout.labels.hollow.average.bold ? "bold" : ""}`)
|
|
924
|
+
}, P(e.value.style.chart.layout.labels.hollow.average.text), 13, Hl)) : i("", !0),
|
|
925
|
+
e.value.style.chart.layout.labels.hollow.average.show ? (u(), n("text", {
|
|
924
926
|
key: 3,
|
|
925
927
|
"text-anchor": "middle",
|
|
926
928
|
x: s.value.width / 2,
|
|
927
929
|
y: s.value.height / 2 + (e.value.style.chart.layout.labels.hollow.total.show ? e.value.style.chart.layout.labels.hollow.average.fontSize : 0) + e.value.style.chart.layout.labels.hollow.average.fontSize + e.value.style.chart.layout.labels.hollow.average.value.offsetY,
|
|
928
930
|
fill: e.value.style.chart.layout.labels.hollow.average.value.color,
|
|
929
931
|
"font-size": e.value.style.chart.layout.labels.hollow.average.value.fontSize,
|
|
930
|
-
style:
|
|
931
|
-
},
|
|
932
|
+
style: _(`font-weight:${e.value.style.chart.layout.labels.hollow.average.value.bold ? "bold" : ""}`)
|
|
933
|
+
}, P(W.value || Y.value ? "--" : r(M)(
|
|
932
934
|
e.value.style.chart.layout.labels.hollow.average.value.formatter,
|
|
933
935
|
Ge.value,
|
|
934
936
|
r(N)({
|
|
@@ -939,12 +941,12 @@ const al = ["id"], ol = ["xmlns", "viewBox"], ul = ["width", "height"], sl = { k
|
|
|
939
941
|
})
|
|
940
942
|
)), 13, ql)) : i("", !0)
|
|
941
943
|
], 64)) : i("", !0),
|
|
942
|
-
(
|
|
943
|
-
filter:
|
|
944
|
+
(u(!0), n(m, null, T(X.value.filter((t) => !t.ghost), (t, a) => (u(), n("g", {
|
|
945
|
+
filter: j(a),
|
|
944
946
|
class: pe({ animated: e.value.useCssAnimation })
|
|
945
947
|
}, [
|
|
946
|
-
e.value.style.chart.layout.labels.dataLabels.useLabelSlots ? (
|
|
947
|
-
(
|
|
948
|
+
e.value.style.chart.layout.labels.dataLabels.useLabelSlots ? (u(), n("g", Kl, [
|
|
949
|
+
(u(), n("foreignObject", {
|
|
948
950
|
x: r(w)(t, !0).anchor === "end" ? r(w)(t).x - 120 : r(w)(t, !0).anchor === "middle" ? r(w)(t).x - 60 : r(w)(t).x,
|
|
949
951
|
y: r(ue)(t) - (je.value ? 20 : 0),
|
|
950
952
|
width: "120",
|
|
@@ -956,16 +958,16 @@ const al = ["id"], ol = ["xmlns", "viewBox"], ul = ["width", "height"], sl = { k
|
|
|
956
958
|
datapoint: t,
|
|
957
959
|
isBlur: !e.value.useBlurOnHover || [null, void 0].includes(F.value) || F.value === a,
|
|
958
960
|
isSafari: je.value,
|
|
959
|
-
isVisible:
|
|
961
|
+
isVisible: I(t) && h.value.dataLabels.show,
|
|
960
962
|
textAlign: r(w)(t, !0, 16, !0).anchor,
|
|
961
963
|
flexAlign: r(w)(t, !0, 16).anchor,
|
|
962
|
-
percentage: he(t,
|
|
964
|
+
percentage: he(t, X.value)
|
|
963
965
|
}), void 0, !0)
|
|
964
966
|
])
|
|
965
967
|
], 8, Ql))
|
|
966
|
-
])) : (
|
|
967
|
-
e.value.type === "classic" ? (
|
|
968
|
-
|
|
968
|
+
])) : (u(), n("g", Zl, [
|
|
969
|
+
e.value.type === "classic" ? (u(), n(m, { key: 0 }, [
|
|
970
|
+
I(t) && h.value.dataLabels.show ? (u(), n("circle", {
|
|
969
971
|
key: 0,
|
|
970
972
|
cx: r(w)(t).x,
|
|
971
973
|
cy: r(ue)(t) - 3.5,
|
|
@@ -974,11 +976,11 @@ const al = ["id"], ol = ["xmlns", "viewBox"], ul = ["width", "height"], sl = { k
|
|
|
974
976
|
"stroke-width": 1,
|
|
975
977
|
r: 3,
|
|
976
978
|
filter: !e.value.useBlurOnHover || [null, void 0].includes(F.value) || F.value === a ? "" : `url(#blur_${y.value})`,
|
|
977
|
-
onClick: (v) =>
|
|
979
|
+
onClick: (v) => U(t, a)
|
|
978
980
|
}, null, 8, ea)) : i("", !0)
|
|
979
981
|
], 64)) : i("", !0),
|
|
980
|
-
e.value.type === "polar" ? (
|
|
981
|
-
|
|
982
|
+
e.value.type === "polar" ? (u(), n(m, { key: 1 }, [
|
|
983
|
+
I(t) && h.value.dataLabels.show ? (u(), n("circle", {
|
|
982
984
|
key: 0,
|
|
983
985
|
cx: r(z)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 24, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x,
|
|
984
986
|
cy: r(z)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 24, centerX: s.value.width / 2, centerY: s.value.height / 2 }).y,
|
|
@@ -987,20 +989,20 @@ const al = ["id"], ol = ["xmlns", "viewBox"], ul = ["width", "height"], sl = { k
|
|
|
987
989
|
"stroke-width": 1,
|
|
988
990
|
r: 3,
|
|
989
991
|
filter: !e.value.useBlurOnHover || [null, void 0].includes(F.value) || F.value === a ? "" : `url(#blur_${y.value})`,
|
|
990
|
-
onClick: (v) =>
|
|
992
|
+
onClick: (v) => U(t, a)
|
|
991
993
|
}, null, 8, ta)) : i("", !0)
|
|
992
994
|
], 64)) : i("", !0),
|
|
993
|
-
e.value.type === "classic" ? (
|
|
994
|
-
|
|
995
|
+
e.value.type === "classic" ? (u(), n(m, { key: 2 }, [
|
|
996
|
+
I(t) && h.value.dataLabels.show ? (u(), n("text", {
|
|
995
997
|
key: 0,
|
|
996
998
|
"text-anchor": r(w)(t, !0, 12).anchor,
|
|
997
999
|
x: r(w)(t, !0, 12).x,
|
|
998
1000
|
y: r(ue)(t),
|
|
999
1001
|
fill: e.value.style.chart.layout.labels.percentage.color,
|
|
1000
1002
|
"font-size": e.value.style.chart.layout.labels.percentage.fontSize,
|
|
1001
|
-
style:
|
|
1002
|
-
onClick: (v) =>
|
|
1003
|
-
},
|
|
1003
|
+
style: _(`font-weight:${e.value.style.chart.layout.labels.percentage.bold ? "bold" : ""}`),
|
|
1004
|
+
onClick: (v) => U(t, a)
|
|
1005
|
+
}, P(he(t, X.value)) + " " + P(e.value.style.chart.layout.labels.value.show ? `(${r(M)(
|
|
1004
1006
|
e.value.style.chart.layout.labels.value.formatter,
|
|
1005
1007
|
t.value,
|
|
1006
1008
|
r(N)({
|
|
@@ -1011,28 +1013,28 @@ const al = ["id"], ol = ["xmlns", "viewBox"], ul = ["width", "height"], sl = { k
|
|
|
1011
1013
|
}),
|
|
1012
1014
|
{ datapoint: t }
|
|
1013
1015
|
)})` : ""), 13, la)) : i("", !0),
|
|
1014
|
-
|
|
1016
|
+
I(t) && h.value.dataLabels.show ? (u(), n("text", {
|
|
1015
1017
|
key: 1,
|
|
1016
1018
|
"text-anchor": r(w)(t).anchor,
|
|
1017
1019
|
x: r(w)(t, !0, 12).x,
|
|
1018
1020
|
y: r(ue)(t) + e.value.style.chart.layout.labels.percentage.fontSize,
|
|
1019
1021
|
fill: e.value.style.chart.layout.labels.name.color,
|
|
1020
1022
|
"font-size": e.value.style.chart.layout.labels.name.fontSize,
|
|
1021
|
-
style:
|
|
1022
|
-
onClick: (v) =>
|
|
1023
|
-
},
|
|
1023
|
+
style: _(`font-weight:${e.value.style.chart.layout.labels.name.bold ? "bold" : ""}`),
|
|
1024
|
+
onClick: (v) => U(t, a)
|
|
1025
|
+
}, P(t.name), 13, aa)) : i("", !0)
|
|
1024
1026
|
], 64)) : i("", !0),
|
|
1025
|
-
e.value.type === "polar" ? (
|
|
1026
|
-
|
|
1027
|
+
e.value.type === "polar" ? (u(), n(m, { key: 3 }, [
|
|
1028
|
+
I(t) && h.value.dataLabels.show ? (u(), n("text", {
|
|
1027
1029
|
key: 0,
|
|
1028
1030
|
"text-anchor": J(c.value[a].middlePoint),
|
|
1029
1031
|
x: r(z)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x,
|
|
1030
1032
|
y: r(z)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).y,
|
|
1031
1033
|
fill: e.value.style.chart.layout.labels.percentage.color,
|
|
1032
1034
|
"font-size": e.value.style.chart.layout.labels.percentage.fontSize,
|
|
1033
|
-
style:
|
|
1034
|
-
onClick: (v) =>
|
|
1035
|
-
},
|
|
1035
|
+
style: _(`transition: all 0.1s ease-in-out; font-weight:${e.value.style.chart.layout.labels.percentage.bold ? "bold" : ""}`),
|
|
1036
|
+
onClick: (v) => U(t, a)
|
|
1037
|
+
}, P(he(t, X.value)) + " " + P(e.value.style.chart.layout.labels.value.show ? `(${r(M)(
|
|
1036
1038
|
e.value.style.chart.layout.labels.value.formatter,
|
|
1037
1039
|
t.value,
|
|
1038
1040
|
r(N)({
|
|
@@ -1043,20 +1045,20 @@ const al = ["id"], ol = ["xmlns", "viewBox"], ul = ["width", "height"], sl = { k
|
|
|
1043
1045
|
}),
|
|
1044
1046
|
{ datapoint: t }
|
|
1045
1047
|
)})` : ""), 13, oa)) : i("", !0),
|
|
1046
|
-
|
|
1048
|
+
I(t) && h.value.dataLabels.show ? (u(), n("text", {
|
|
1047
1049
|
key: 1,
|
|
1048
1050
|
"text-anchor": J(c.value[a].middlePoint),
|
|
1049
1051
|
x: r(z)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x,
|
|
1050
1052
|
y: r(z)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).y + e.value.style.chart.layout.labels.percentage.fontSize,
|
|
1051
1053
|
fill: e.value.style.chart.layout.labels.name.color,
|
|
1052
1054
|
"font-size": e.value.style.chart.layout.labels.name.fontSize,
|
|
1053
|
-
style:
|
|
1054
|
-
onClick: (v) =>
|
|
1055
|
-
},
|
|
1055
|
+
style: _(`transition: all 0.1s ease-in-out; font-weight:${e.value.style.chart.layout.labels.name.bold ? "bold" : ""}`),
|
|
1056
|
+
onClick: (v) => U(t, a)
|
|
1057
|
+
}, P(t.name), 13, ua)) : i("", !0)
|
|
1056
1058
|
], 64)) : i("", !0)
|
|
1057
1059
|
])),
|
|
1058
|
-
h.value.dataLabels.show && e.value.style.chart.comments.show && t.comment ? (
|
|
1059
|
-
|
|
1060
|
+
h.value.dataLabels.show && e.value.style.chart.comments.show && t.comment ? (u(), n("g", sa, [
|
|
1061
|
+
I(t) && e.value.type === "classic" ? (u(), n("foreignObject", {
|
|
1060
1062
|
key: 0,
|
|
1061
1063
|
x: e.value.style.chart.comments.offsetX + (r(w)(t, !0).anchor === "end" ? r(w)(t).x - e.value.style.chart.comments.width : r(w)(t, !0).anchor === "middle" ? r(w)(t).x - e.value.style.chart.comments.width / 2 : r(w)(t).x),
|
|
1062
1064
|
y: r(ue)(t) + 24 + e.value.style.chart.comments.offsetY,
|
|
@@ -1066,11 +1068,11 @@ const al = ["id"], ol = ["xmlns", "viewBox"], ul = ["width", "height"], sl = { k
|
|
|
1066
1068
|
}, [
|
|
1067
1069
|
f("div", null, [
|
|
1068
1070
|
g(l.$slots, "plot-comment", {
|
|
1069
|
-
plot: { ...t, textAlign: r(w)(t, !0, 16, !0).anchor, flexAlign: r(w)(t, !0, 16).anchor }
|
|
1071
|
+
plot: { ...t, textAlign: r(w)(t, !0, 16, !0).anchor, flexAlign: r(w)(t, !0, 16).anchor, isFirstLoad: Y.value }
|
|
1070
1072
|
}, void 0, !0)
|
|
1071
1073
|
])
|
|
1072
1074
|
], 8, na)) : i("", !0),
|
|
1073
|
-
|
|
1075
|
+
I(t) && e.value.type === "polar" ? (u(), n("foreignObject", {
|
|
1074
1076
|
key: 1,
|
|
1075
1077
|
x: e.value.style.chart.comments.offsetX + (J(c.value[a].middlePoint) === "end" ? r(z)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x - e.value.style.chart.comments.width : J(c.value[a].middlePoint) === "middle" ? r(z)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x - e.value.style.chart.comments.width / 2 : r(z)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x),
|
|
1076
1078
|
y: gt(c.value[a]) + e.value.style.chart.comments.offsetY,
|
|
@@ -1080,7 +1082,7 @@ const al = ["id"], ol = ["xmlns", "viewBox"], ul = ["width", "height"], sl = { k
|
|
|
1080
1082
|
}, [
|
|
1081
1083
|
f("div", null, [
|
|
1082
1084
|
g(l.$slots, "plot-comment", {
|
|
1083
|
-
plot: { ...t, textAlign: J(c.value[a].middlePoint), flexAlign: J(c.value[a].middlePoint) }
|
|
1085
|
+
plot: { ...t, textAlign: J(c.value[a].middlePoint), flexAlign: J(c.value[a].middlePoint), isFirstLoad: Y.value }
|
|
1084
1086
|
}, void 0, !0)
|
|
1085
1087
|
])
|
|
1086
1088
|
], 8, ra)) : i("", !0)
|
|
@@ -1088,10 +1090,10 @@ const al = ["id"], ol = ["xmlns", "viewBox"], ul = ["width", "height"], sl = { k
|
|
|
1088
1090
|
], 10, Jl))), 256)),
|
|
1089
1091
|
g(l.$slots, "svg", { svg: s.value }, void 0, !0)
|
|
1090
1092
|
], 14, ol)) : i("", !0),
|
|
1091
|
-
l.$slots.watermark ? (
|
|
1093
|
+
l.$slots.watermark ? (u(), n("div", ia, [
|
|
1092
1094
|
g(l.$slots, "watermark", Q(Z({ isPrinting: r(Ae) || r(Oe) })), void 0, !0)
|
|
1093
1095
|
])) : i("", !0),
|
|
1094
|
-
ee.value ? i("", !0) : (
|
|
1096
|
+
ee.value ? i("", !0) : (u(), E(qt, {
|
|
1095
1097
|
key: 6,
|
|
1096
1098
|
config: {
|
|
1097
1099
|
type: "donut",
|
|
@@ -1099,7 +1101,7 @@ const al = ["id"], ol = ["xmlns", "viewBox"], ul = ["width", "height"], sl = { k
|
|
|
1099
1101
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
1100
1102
|
donut: {
|
|
1101
1103
|
color: "#CCCCCC",
|
|
1102
|
-
strokeWidth:
|
|
1104
|
+
strokeWidth: q.value * 0.8
|
|
1103
1105
|
}
|
|
1104
1106
|
}
|
|
1105
1107
|
}
|
|
@@ -1108,18 +1110,18 @@ const al = ["id"], ol = ["xmlns", "viewBox"], ul = ["width", "height"], sl = { k
|
|
|
1108
1110
|
ref_key: "chartLegend",
|
|
1109
1111
|
ref: we
|
|
1110
1112
|
}, [
|
|
1111
|
-
e.value.style.chart.legend.show ? (
|
|
1113
|
+
e.value.style.chart.legend.show ? (u(), E(Ht, {
|
|
1112
1114
|
key: `legend_${Ce.value}`,
|
|
1113
1115
|
legendSet: Be.value,
|
|
1114
1116
|
config: pt.value,
|
|
1115
|
-
onClickMarker:
|
|
1117
|
+
onClickMarker: o[4] || (o[4] = ({ i: t }) => Ve(t))
|
|
1116
1118
|
}, et({
|
|
1117
|
-
item:
|
|
1119
|
+
item: $(({ legend: t, index: a }) => [
|
|
1118
1120
|
f("div", {
|
|
1119
|
-
style:
|
|
1121
|
+
style: _(`opacity:${D.value.includes(a) ? 0.5 : 1}`),
|
|
1120
1122
|
onClick: (v) => t.segregate()
|
|
1121
1123
|
}, [
|
|
1122
|
-
lt(
|
|
1124
|
+
lt(P(t.name) + ": " + P(r(M)(
|
|
1123
1125
|
e.value.style.chart.layout.labels.value.formatter,
|
|
1124
1126
|
t.value,
|
|
1125
1127
|
r(N)({
|
|
@@ -1133,7 +1135,7 @@ const al = ["id"], ol = ["xmlns", "viewBox"], ul = ["width", "height"], sl = { k
|
|
|
1133
1135
|
index: a
|
|
1134
1136
|
}
|
|
1135
1137
|
)) + " ", 1),
|
|
1136
|
-
|
|
1138
|
+
D.value.includes(a) ? (u(), n("span", da, " ( " + P(wt(t.proportion * 100)) + " % ) ", 1)) : (u(), n("span", ca, " (" + P(isNaN(t.value / L.value) ? "-" : r(M)(
|
|
1137
1139
|
e.value.style.chart.layout.labels.percentage.formatter,
|
|
1138
1140
|
Re.value(t),
|
|
1139
1141
|
r(N)({
|
|
@@ -1148,7 +1150,7 @@ const al = ["id"], ol = ["xmlns", "viewBox"], ul = ["width", "height"], sl = { k
|
|
|
1148
1150
|
}, [
|
|
1149
1151
|
l.$slots.pattern ? {
|
|
1150
1152
|
name: "legend-pattern",
|
|
1151
|
-
fn:
|
|
1153
|
+
fn: $(({ legend: t, index: a }) => [
|
|
1152
1154
|
ge(el, {
|
|
1153
1155
|
shape: t.shape,
|
|
1154
1156
|
radius: 30,
|
|
@@ -1162,7 +1164,7 @@ const al = ["id"], ol = ["xmlns", "viewBox"], ul = ["width", "height"], sl = { k
|
|
|
1162
1164
|
]), 1032, ["legendSet", "config"])) : i("", !0),
|
|
1163
1165
|
g(l.$slots, "legend", { legend: Be.value }, void 0, !0)
|
|
1164
1166
|
], 512),
|
|
1165
|
-
l.$slots.source ? (
|
|
1167
|
+
l.$slots.source ? (u(), n("div", {
|
|
1166
1168
|
key: 7,
|
|
1167
1169
|
ref_key: "source",
|
|
1168
1170
|
ref: ke,
|
|
@@ -1186,15 +1188,15 @@ const al = ["id"], ol = ["xmlns", "viewBox"], ul = ["width", "height"], sl = { k
|
|
|
1186
1188
|
isCustom: le.value,
|
|
1187
1189
|
isFullscreen: K.value
|
|
1188
1190
|
}, {
|
|
1189
|
-
"tooltip-before":
|
|
1191
|
+
"tooltip-before": $(() => [
|
|
1190
1192
|
g(l.$slots, "tooltip-before", Q(Z({ ...ye.value })), void 0, !0)
|
|
1191
1193
|
]),
|
|
1192
|
-
"tooltip-after":
|
|
1194
|
+
"tooltip-after": $(() => [
|
|
1193
1195
|
g(l.$slots, "tooltip-after", Q(Z({ ...ye.value })), void 0, !0)
|
|
1194
1196
|
]),
|
|
1195
1197
|
_: 3
|
|
1196
1198
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen"]),
|
|
1197
|
-
ee.value ? (
|
|
1199
|
+
ee.value ? (u(), E(Jt, {
|
|
1198
1200
|
key: 8,
|
|
1199
1201
|
hideDetails: "",
|
|
1200
1202
|
config: {
|
|
@@ -1210,24 +1212,24 @@ const al = ["id"], ol = ["xmlns", "viewBox"], ul = ["width", "height"], sl = { k
|
|
|
1210
1212
|
}
|
|
1211
1213
|
}
|
|
1212
1214
|
}, {
|
|
1213
|
-
content:
|
|
1214
|
-
(
|
|
1215
|
+
content: $(() => [
|
|
1216
|
+
(u(), E(jt, {
|
|
1215
1217
|
key: `table_${$e.value}`,
|
|
1216
1218
|
colNames: re.value.colNames,
|
|
1217
1219
|
head: re.value.head,
|
|
1218
1220
|
body: re.value.body,
|
|
1219
1221
|
config: re.value.config,
|
|
1220
1222
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
1221
|
-
onClose:
|
|
1223
|
+
onClose: o[5] || (o[5] = (t) => h.value.showTable = !1)
|
|
1222
1224
|
}, {
|
|
1223
|
-
th:
|
|
1225
|
+
th: $(({ th: t }) => [
|
|
1224
1226
|
f("div", {
|
|
1225
1227
|
innerHTML: t,
|
|
1226
1228
|
style: { display: "flex", "align-items": "center" }
|
|
1227
1229
|
}, null, 8, ha)
|
|
1228
1230
|
]),
|
|
1229
|
-
td:
|
|
1230
|
-
lt(
|
|
1231
|
+
td: $(({ td: t }) => [
|
|
1232
|
+
lt(P(t.name ? t.name : isNaN(Number(t)) ? t.includes("%") ? t : r(M)(
|
|
1231
1233
|
e.value.style.chart.layout.labels.percentage.formatter,
|
|
1232
1234
|
t,
|
|
1233
1235
|
r(N)({
|
|
@@ -1235,7 +1237,7 @@ const al = ["id"], ol = ["xmlns", "viewBox"], ul = ["width", "height"], sl = { k
|
|
|
1235
1237
|
s: "%",
|
|
1236
1238
|
r: e.value.style.chart.layout.labels.percentage.rounding
|
|
1237
1239
|
})
|
|
1238
|
-
) : r(
|
|
1240
|
+
) : r(M)(
|
|
1239
1241
|
e.value.style.chart.layout.labels.value.formatter,
|
|
1240
1242
|
t,
|
|
1241
1243
|
r(N)({
|
|
@@ -1253,7 +1255,7 @@ const al = ["id"], ol = ["xmlns", "viewBox"], ul = ["width", "height"], sl = { k
|
|
|
1253
1255
|
}, 8, ["config"])) : i("", !0)
|
|
1254
1256
|
], 46, al));
|
|
1255
1257
|
}
|
|
1256
|
-
}, Aa = /* @__PURE__ */ ll(ya, [["__scopeId", "data-v-
|
|
1258
|
+
}, Aa = /* @__PURE__ */ ll(ya, [["__scopeId", "data-v-9e4a77ed"]]);
|
|
1257
1259
|
export {
|
|
1258
1260
|
Aa as default
|
|
1259
1261
|
};
|