vue-data-ui 2.10.2 → 2.10.3-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-D6UBVyNr.cjs → Arrow-B_t3knDx.cjs} +1 -1
- package/dist/{Arrow-B2-rOYz8.js → Arrow-GVrF9WOj.js} +1 -1
- package/dist/{BaseIcon-DfoJJxST.cjs → BaseIcon-DBgAUX2a.cjs} +1 -1
- package/dist/{BaseIcon-Br5G8Cdk.js → BaseIcon-h9TCYwJK.js} +1 -1
- package/dist/{ColorPicker-CiQzB3a-.js → ColorPicker-CtdVdLS4.js} +3 -3
- package/dist/{ColorPicker-Dvgprgpv.cjs → ColorPicker-YfLIuv-R.cjs} +1 -1
- package/dist/{DataTable-CGucPqAQ.cjs → DataTable-C3yxI_aI.cjs} +1 -1
- package/dist/{DataTable-Dk-94kK2.js → DataTable-DObvjXDX.js} +2 -2
- package/dist/{Legend-B9aoKeq3.cjs → Legend-DJ-i2IuD.cjs} +1 -1
- package/dist/{Legend-Cx6NYPTA.js → Legend-DzSy-IUq.js} +2 -2
- package/dist/{PackageVersion-C2bjLIu9.cjs → PackageVersion-BIgwvtuC.cjs} +1 -1
- package/dist/{PackageVersion-BdNfnIm2.js → PackageVersion-Bf6TS-QR.js} +1 -1
- package/dist/{PenAndPaper-CJIFAI78.cjs → PenAndPaper-Bz1D0jf7.cjs} +1 -1
- package/dist/{PenAndPaper-wrVNMaG8.js → PenAndPaper-DMTgFlFr.js} +3 -3
- package/dist/{Shape-vIKj52KP.js → Shape-BB_8PZCY.js} +1 -1
- package/dist/{Shape-Cn2RU1NY.cjs → Shape-DT1Q81L9.cjs} +1 -1
- package/dist/{Slicer-t3EfI94H.cjs → Slicer-Bp6W-Q1V.cjs} +1 -1
- package/dist/{Slicer-yki6JqTB.js → Slicer-DCUzf9fq.js} +2 -2
- package/dist/{Title-Bae0QJu7.cjs → Title-B1y-3QPQ.cjs} +1 -1
- package/dist/{Title-CDYBDpu3.js → Title-BD93Z93w.js} +1 -1
- package/dist/{Tooltip-BzsAOdBd.js → Tooltip-DrcHzDRM.js} +1 -1
- package/dist/{Tooltip-CfqYTd5O.cjs → Tooltip-RV5OVI3a.cjs} +1 -1
- package/dist/{dom-to-png-DgRl9bEH.cjs → dom-to-png-CCEeTdud.cjs} +1 -1
- package/dist/{dom-to-png-IAiARGiU.js → dom-to-png-GVD347Ix.js} +1 -1
- package/dist/{img-DxEvbX77.cjs → img-CzUIHHgH.cjs} +1 -1
- package/dist/{img-DaDUVggy.js → img-Dj_G_KYV.js} +1 -1
- package/dist/{index-BI6O7K58.js → index-DWq4s-ww.js} +243 -236
- package/dist/index-DmOqU2gc.cjs +9 -0
- package/dist/{pdf-Dq3h9PEr.cjs → pdf-CHnecAVX.cjs} +1 -1
- package/dist/{pdf-DBVNp7s2.js → pdf-DpksDzZW.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +7 -1
- package/dist/types/vue-data-ui.d.ts +7 -1
- package/dist/{useNestedProp-CCR03NVM.cjs → useNestedProp-CEwtxiO9.cjs} +1 -1
- package/dist/{useNestedProp-Cvz4MkSy.js → useNestedProp-CPAzMQW3.js} +1 -1
- package/dist/{usePrinter-Jr3eyr8H.js → usePrinter-BjxuB68l.js} +3 -3
- package/dist/{usePrinter-B2xVvtiy.cjs → usePrinter-GqLmuLI-.cjs} +1 -1
- package/dist/{vue-data-ui-bm5wfGa_.js → vue-data-ui-BhuxqKkJ.js} +62 -62
- package/dist/{vue-data-ui-DhWKehHS.cjs → vue-data-ui-DBEeag8i.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-CHOAZoDV.js → vue-ui-3d-bar-6npDtOUn.js} +9 -9
- package/dist/{vue-ui-3d-bar-Bpm8dKya.cjs → vue-ui-3d-bar-TWzcdbdy.cjs} +1 -1
- package/dist/{vue-ui-accordion-ldF7KsjV.js → vue-ui-accordion-Ca6nV8uf.js} +3 -3
- package/dist/{vue-ui-accordion-DE1isSE9.cjs → vue-ui-accordion-VK6Q6MAw.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-BuKSta-B.js → vue-ui-age-pyramid-BaBU4AkZ.js} +10 -10
- package/dist/{vue-ui-age-pyramid-BnHOxOPT.cjs → vue-ui-age-pyramid-CwqMewxq.cjs} +1 -1
- package/dist/{vue-ui-annotator-BBuH-QB4.js → vue-ui-annotator-BSfg2Cqh.js} +2 -2
- package/dist/{vue-ui-annotator-B9j16TKW.cjs → vue-ui-annotator-DBtx2PHg.cjs} +1 -1
- package/dist/{vue-ui-bullet-CRChR0Qe.cjs → vue-ui-bullet-DQGjRgXj.cjs} +1 -1
- package/dist/{vue-ui-bullet-B0C_rPTQ.js → vue-ui-bullet-vBhcJqBu.js} +8 -8
- package/dist/{vue-ui-candlestick-By5MsCcS.js → vue-ui-candlestick-AhsFFM0O.js} +11 -11
- package/dist/{vue-ui-candlestick-Bq66GLxw.cjs → vue-ui-candlestick-C8m29T8u.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-CyywZulq.cjs → vue-ui-carousel-table-B09sTudP.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-BOtjI2Ov.js → vue-ui-carousel-table-M69qs_tr.js} +4 -4
- package/dist/{vue-ui-chestnut-BS2kXrPU.js → vue-ui-chestnut-Cz_Aj8pX.js} +8 -8
- package/dist/{vue-ui-chestnut-D8QPZS8n.cjs → vue-ui-chestnut-uQ4QhJEu.cjs} +1 -1
- package/dist/{vue-ui-circle-pack-iOxdB75t.cjs → vue-ui-circle-pack-CN7nYxdb.cjs} +1 -1
- package/dist/{vue-ui-circle-pack-C8m10WZ0.js → vue-ui-circle-pack-CYIHdn-n.js} +9 -9
- package/dist/{vue-ui-cursor-Ccym3tFb.cjs → vue-ui-cursor-BaXtpkTz.cjs} +1 -1
- package/dist/{vue-ui-cursor-Bn-CCFO0.js → vue-ui-cursor-weHYxHaT.js} +2 -2
- package/dist/{vue-ui-dashboard-D-vs2N_7.js → vue-ui-dashboard-BNsg59hU.js} +62 -62
- package/dist/{vue-ui-dashboard-Cw4IXhXY.cjs → vue-ui-dashboard-CLYI8wEV.cjs} +1 -1
- package/dist/{vue-ui-digits-BXBXg7wv.js → vue-ui-digits-B0hyDETd.js} +2 -2
- package/dist/{vue-ui-digits-D66h3nUw.cjs → vue-ui-digits-wj8ka_eT.cjs} +1 -1
- package/dist/vue-ui-donut-B2acbY3c.js +1259 -0
- package/dist/vue-ui-donut-C4LxZkgt.cjs +1 -0
- package/dist/{vue-ui-donut-evolution-5yOibvNM.js → vue-ui-donut-evolution-2pYa-efH.js} +11 -11
- package/dist/{vue-ui-donut-evolution-xxrUJzgG.cjs → vue-ui-donut-evolution-UoUnPX6g.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-C-KqKhxI.js → vue-ui-dumbbell-DSxoHF9p.js} +10 -10
- package/dist/{vue-ui-dumbbell-CWn7cNsm.cjs → vue-ui-dumbbell-DwZPwUCk.cjs} +1 -1
- package/dist/{vue-ui-flow-D4_2VnaB.js → vue-ui-flow-BkpFuQkm.js} +9 -9
- package/dist/{vue-ui-flow-DFxWNRRJ.cjs → vue-ui-flow-aJq5srUA.cjs} +1 -1
- package/dist/{vue-ui-funnel-DIoqpwbm.cjs → vue-ui-funnel-BafVKO-m.cjs} +1 -1
- package/dist/{vue-ui-funnel-ADEjZ8yz.js → vue-ui-funnel-BuI-vnQb.js} +9 -9
- package/dist/{vue-ui-galaxy-BRle40mR.cjs → vue-ui-galaxy-DOAhW1MF.cjs} +1 -1
- package/dist/{vue-ui-galaxy-DLtA9Ebb.js → vue-ui-galaxy-DU1KQobN.js} +11 -11
- package/dist/{vue-ui-gauge-B4vEWkRk.cjs → vue-ui-gauge-D21wMdC_.cjs} +1 -1
- package/dist/{vue-ui-gauge-BVj-IBdi.js → vue-ui-gauge-D7sFY8c_.js} +7 -7
- package/dist/{vue-ui-gizmo-BwBtkZ5z.cjs → vue-ui-gizmo-BA1d9qdv.cjs} +1 -1
- package/dist/{vue-ui-gizmo-BTe8CPyi.js → vue-ui-gizmo-BXaLmym5.js} +3 -3
- package/dist/{vue-ui-heatmap-VdFtflO6.cjs → vue-ui-heatmap-CCoQHO_6.cjs} +1 -1
- package/dist/{vue-ui-heatmap-DrXMOxbe.js → vue-ui-heatmap-Cxss4QvF.js} +10 -10
- package/dist/{vue-ui-history-plot-B-ScOcEy.cjs → vue-ui-history-plot-C92Mp3Xp.cjs} +1 -1
- package/dist/{vue-ui-history-plot-_DfuZIMP.js → vue-ui-history-plot-DQO0n3Rf.js} +11 -11
- package/dist/{vue-ui-kpi-DfFiDtCP.js → vue-ui-kpi-BhvozR5s.js} +3 -3
- package/dist/{vue-ui-kpi-DSQV0Kf2.cjs → vue-ui-kpi-COo6m-Ks.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-CDOlO_1_.cjs → vue-ui-mini-loader-B-tISyPq.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-1JZipPcP.js → vue-ui-mini-loader-BwEHFWkC.js} +2 -2
- package/dist/{vue-ui-molecule-jEcRTe4V.cjs → vue-ui-molecule-DS-9YlFP.cjs} +1 -1
- package/dist/{vue-ui-molecule-Db_C7mVS.js → vue-ui-molecule-bcpIBsMm.js} +11 -11
- package/dist/{vue-ui-mood-radar-m48vvkft.js → vue-ui-mood-radar-C5PYCas_.js} +11 -11
- package/dist/{vue-ui-mood-radar-BoKSTE-Y.cjs → vue-ui-mood-radar-CtsnePEw.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-ihd00Tpn.cjs → vue-ui-nested-donuts-BM1drnr6.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-DNhMOryo.js → vue-ui-nested-donuts-DykqnDcp.js} +11 -11
- package/dist/{vue-ui-onion-D9AHOWa5.cjs → vue-ui-onion-C2ZBvIAR.cjs} +1 -1
- package/dist/{vue-ui-onion-YKxsqnI7.js → vue-ui-onion-gaJqwmrF.js} +11 -11
- package/dist/{vue-ui-parallel-coordinate-plot-7SCwFkrU.js → vue-ui-parallel-coordinate-plot-A1Gj_Ga7.js} +12 -12
- package/dist/{vue-ui-parallel-coordinate-plot-BmO6zenq.cjs → vue-ui-parallel-coordinate-plot-xu2Wocpp.cjs} +1 -1
- package/dist/{vue-ui-quadrant-Bi0by7IK.js → vue-ui-quadrant-DcbgFaxG.js} +12 -12
- package/dist/{vue-ui-quadrant-CAJ4dTBu.cjs → vue-ui-quadrant-n27JvM93.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-DlV0Qv_x.js → vue-ui-quick-chart-ByKtbyYB.js} +9 -9
- package/dist/{vue-ui-quick-chart-C37lGqa1.cjs → vue-ui-quick-chart-JcAbo_Ou.cjs} +1 -1
- package/dist/{vue-ui-radar-H08KmB3s.cjs → vue-ui-radar-ClfEAsg9.cjs} +1 -1
- package/dist/{vue-ui-radar-B14zLIww.js → vue-ui-radar-DxDuU7PC.js} +12 -12
- package/dist/{vue-ui-rating-CdSQUBG6.js → vue-ui-rating-BRsSp9rc.js} +2 -2
- package/dist/{vue-ui-rating-CYarWaTf.cjs → vue-ui-rating-wjKAMprc.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-IzAvPPGl.js → vue-ui-relation-circle-DFWEguaU.js} +7 -7
- package/dist/{vue-ui-relation-circle-A4Vw8kYl.cjs → vue-ui-relation-circle-DcsjQXnt.cjs} +1 -1
- package/dist/{vue-ui-ridgeline-BF5X6KQR.js → vue-ui-ridgeline-CwXRZCK1.js} +12 -12
- package/dist/{vue-ui-ridgeline-BaHgOn_p.cjs → vue-ui-ridgeline-D8nEWP-a.cjs} +1 -1
- package/dist/{vue-ui-rings-DUhnXy1h.js → vue-ui-rings-BUYVAbfZ.js} +12 -12
- package/dist/{vue-ui-rings-DnVeMrOw.cjs → vue-ui-rings-BjHcappB.cjs} +1 -1
- package/dist/{vue-ui-scatter-DoGX7iHp.cjs → vue-ui-scatter-C2G-V-rP.cjs} +1 -1
- package/dist/{vue-ui-scatter-D7bXuxob.js → vue-ui-scatter-CalyzpYZ.js} +12 -12
- package/dist/{vue-ui-skeleton-DeEGdJEn.cjs → vue-ui-skeleton-C2lcxV1r.cjs} +1 -1
- package/dist/{vue-ui-skeleton-Dxm7rqic.js → vue-ui-skeleton-CgSdY-i3.js} +3 -3
- package/dist/{vue-ui-smiley-95l4UiqT.js → vue-ui-smiley-CAp8amf3.js} +2 -2
- package/dist/{vue-ui-smiley-DmAtXVht.cjs → vue-ui-smiley-CyjuCEzK.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-C3CO25Jy.cjs → vue-ui-spark-trend-DNRog2VZ.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-DdH43oVm.js → vue-ui-spark-trend-g3JUDKWQ.js} +5 -5
- package/dist/{vue-ui-sparkbar-C2roDWfv.cjs → vue-ui-sparkbar-BPFUJ-XV.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-DTe3QrR3.js → vue-ui-sparkbar-Dgv-eGQT.js} +4 -4
- package/dist/{vue-ui-sparkgauge-BwclNj3C.js → vue-ui-sparkgauge-J4QKrqrr.js} +4 -4
- package/dist/{vue-ui-sparkgauge-nq6-9TjT.cjs → vue-ui-sparkgauge-Rm9WqJac.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-Brau127G.js → vue-ui-sparkhistogram-BamMJRbn.js} +5 -5
- package/dist/{vue-ui-sparkhistogram-BdWirDjI.cjs → vue-ui-sparkhistogram-CPJl4whz.cjs} +1 -1
- package/dist/{vue-ui-sparkline-qqfyQyVz.js → vue-ui-sparkline-BE6uxQJ1.js} +4 -4
- package/dist/{vue-ui-sparkline-B2mOJzkG.cjs → vue-ui-sparkline-BswJd-GI.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-DLlDU0B2.js → vue-ui-sparkstackbar-BH9sFANv.js} +5 -5
- package/dist/{vue-ui-sparkstackbar-BJl9lbBp.cjs → vue-ui-sparkstackbar-DkOoCVXL.cjs} +1 -1
- package/dist/{vue-ui-stackbar-CEvmDjq3.cjs → vue-ui-stackbar-CSHgiu-S.cjs} +1 -1
- package/dist/{vue-ui-stackbar-RRGnblUm.js → vue-ui-stackbar-bII9CH8i.js} +13 -13
- package/dist/{vue-ui-strip-plot-C9LKjSkW.js → vue-ui-strip-plot-BcxHXtpk.js} +11 -11
- package/dist/{vue-ui-strip-plot-Dlsv-yRI.cjs → vue-ui-strip-plot-DfAGuNRJ.cjs} +1 -1
- package/dist/{vue-ui-table-DxdJ151X.js → vue-ui-table-D2qlWdag.js} +3 -3
- package/dist/{vue-ui-table-heatmap-BhxOvDDW.cjs → vue-ui-table-heatmap-DrNGAq6g.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-CzGeU_uL.js → vue-ui-table-heatmap-Y9npl2qT.js} +4 -4
- package/dist/{vue-ui-table-qULtmHGA.cjs → vue-ui-table-kj_YAH7E.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-DSZhEDKX.js → vue-ui-table-sparkline-VeqlQ66b.js} +5 -5
- package/dist/{vue-ui-table-sparkline-D1hriLB0.cjs → vue-ui-table-sparkline-qFq-ga-b.cjs} +1 -1
- package/dist/{vue-ui-thermometer-Cvnh4jvE.cjs → vue-ui-thermometer-C1lDcGjT.cjs} +1 -1
- package/dist/{vue-ui-thermometer-Pw4X3Bun.js → vue-ui-thermometer-CgDYCC3w.js} +7 -7
- package/dist/{vue-ui-timer-CvvexEeN.js → vue-ui-timer-BY2dCjiN.js} +5 -5
- package/dist/{vue-ui-timer-BlmIXPv6.cjs → vue-ui-timer-CY2IxtRl.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-BAkMBz3o.cjs → vue-ui-tiremarks-BWQmACOn.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-DbZQvV_2.js → vue-ui-tiremarks-DTWdmj4v.js} +7 -7
- package/dist/{vue-ui-treemap-CF-RjM16.js → vue-ui-treemap-CtBynkdy.js} +12 -12
- package/dist/{vue-ui-treemap-a6b1vWy-.cjs → vue-ui-treemap-DrXwsion.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-ZJbSI-xR.js → vue-ui-vertical-bar-C_qWNcce.js} +12 -12
- package/dist/{vue-ui-vertical-bar-Dm5zMIeE.cjs → vue-ui-vertical-bar-DybIA-c5.cjs} +1 -1
- package/dist/{vue-ui-waffle-I9AKkwb4.js → vue-ui-waffle-3xEQ48b1.js} +12 -12
- package/dist/{vue-ui-waffle-XNiw-qtb.cjs → vue-ui-waffle-xCR4Q6fn.cjs} +1 -1
- package/dist/{vue-ui-wheel-DJUrO6CA.cjs → vue-ui-wheel-CweXDTzj.cjs} +1 -1
- package/dist/{vue-ui-wheel-BA7wZUZL.js → vue-ui-wheel-Dc8OZDxx.js} +7 -7
- package/dist/{vue-ui-word-cloud-ByjkRq1g.cjs → vue-ui-word-cloud-CJOHMRfq.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-BVqb1Yix.js → vue-ui-word-cloud-wwE8jKoI.js} +10 -10
- package/dist/{vue-ui-world-9nlcZMH1.cjs → vue-ui-world-DNYusHsf.cjs} +1 -1
- package/dist/{vue-ui-world-DkYRlp5s.js → vue-ui-world-kJodeH03.js} +11 -11
- package/dist/{vue-ui-xy-B1HwPMFi.js → vue-ui-xy-C5qR9CE2.js} +16 -16
- package/dist/{vue-ui-xy-B4sqGuw6.cjs → vue-ui-xy-DK2uwes1.cjs} +2 -2
- package/dist/{vue-ui-xy-canvas-C-rykR_6.cjs → vue-ui-xy-canvas-0s6cq6q8.cjs} +1 -1
- package/dist/{vue-ui-xy-canvas-CGCtkn9g.js → vue-ui-xy-canvas-DTaRiqld.js} +12 -12
- package/package.json +1 -1
- package/dist/index-DgIVCHLv.cjs +0 -9
- package/dist/vue-ui-donut-BGZIwC5D.js +0 -1191
- package/dist/vue-ui-donut-Bf3THSxi.cjs +0 -1
|
@@ -1,1191 +0,0 @@
|
|
|
1
|
-
import { useSlots as ct, computed as w, ref as d, onMounted as dt, onBeforeUnmount as ht, watch as je, createElementBlock as u, openBlock as o, unref as n, normalizeStyle as z, normalizeClass as de, createBlock as R, createCommentVNode as i, renderSlot as g, createElementVNode as p, createVNode as he, createSlots as We, withCtx as x, normalizeProps as E, guardReactiveProps as H, Fragment as b, renderList as F, mergeProps as Ee, toDisplayString as C, createTextVNode as He, nextTick as yt } from "vue";
|
|
2
|
-
import { u as ft, o as pt, e as qe, g as gt, c as bt, b as mt, d as Je, p as U, m as wt, Y as kt, f as O, X as _t, s as Z, w as xt, j as $t, L, i as A, k as ee, n as k, t as Ct, a as Pt, q as St, r as Ft, x as Lt } from "./index-BI6O7K58.js";
|
|
3
|
-
import { t as Tt, u as zt } from "./useResponsive-Cw4oZ8sQ.js";
|
|
4
|
-
import { _ as Ot } from "./Title-CDYBDpu3.js";
|
|
5
|
-
import { u as Yt, U as At } from "./usePrinter-Jr3eyr8H.js";
|
|
6
|
-
import { D as Nt } from "./DataTable-Dk-94kK2.js";
|
|
7
|
-
import { _ as Xt } from "./Tooltip-BzsAOdBd.js";
|
|
8
|
-
import { L as It } from "./Legend-Cx6NYPTA.js";
|
|
9
|
-
import Dt from "./vue-ui-skeleton-Dxm7rqic.js";
|
|
10
|
-
import Mt from "./vue-ui-accordion-ldF7KsjV.js";
|
|
11
|
-
import { u as Ke } from "./useNestedProp-Cvz4MkSy.js";
|
|
12
|
-
import { _ as Bt } from "./PackageVersion-BdNfnIm2.js";
|
|
13
|
-
import { _ as Vt } from "./PenAndPaper-wrVNMaG8.js";
|
|
14
|
-
import { u as Gt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
15
|
-
import { _ as Rt } from "./Shape-vIKj52KP.js";
|
|
16
|
-
import { u as Ut } from "./useChartAccessibility-BWojgys7.js";
|
|
17
|
-
import { _ as jt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
18
|
-
const Wt = ["id"], Et = ["xmlns", "viewBox"], Ht = ["width", "height"], qt = { key: 1 }, Jt = ["id"], Kt = ["stop-color"], Qt = ["offset", "stop-color"], Zt = ["offset", "stop-color"], el = ["stop-color"], tl = { key: 2 }, ll = ["id", "cx", "cy"], al = ["stop-color", "stop-opacity"], ol = ["stop-color"], ul = ["id"], sl = ["id"], nl = ["id"], rl = ["flood-color"], il = ["id"], vl = ["flood-color"], cl = ["d", "stroke", "filter"], dl = ["x1", "y1", "x2", "y2", "stroke", "filter"], hl = ["cx", "cy", "r", "fill", "filter"], yl = { key: 6 }, fl = ["stroke", "d"], pl = { key: 0 }, gl = ["d", "fill", "stroke", "stroke-width", "filter"], bl = ["d", "fill", "stroke", "stroke-width", "filter"], ml = { key: 0 }, wl = ["stroke", "d"], kl = { key: 0 }, _l = ["d", "stroke", "stroke-width", "filter"], xl = { key: 1 }, $l = ["d", "fill", "stroke", "stroke-width", "filter"], Cl = ["d", "fill", "stroke", "stroke-width", "filter"], Pl = { key: 1 }, Sl = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Fl = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Ll = ["cx", "cy", "r", "stroke"], Tl = ["cx", "cy", "r", "fill"], zl = { key: 0 }, Ol = ["d", "fill", "onMouseenter", "onClick"], Yl = { key: 1 }, Al = ["cx", "cy", "r", "fill"], Nl = ["x", "y", "fill", "font-size"], Xl = ["x", "y", "fill", "font-size"], Il = ["x", "y", "fill", "font-size"], Dl = ["x", "y", "fill", "font-size"], Ml = ["filter"], Bl = { key: 0 }, Vl = ["x", "y"], Gl = { key: 1 }, Rl = ["cx", "cy", "fill", "stroke", "filter", "onClick"], Ul = ["cx", "cy", "fill", "stroke", "filter", "onClick"], jl = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], Wl = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], El = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], Hl = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], ql = { key: 2 }, Jl = ["x", "y", "width"], Kl = ["x", "y", "width"], Ql = {
|
|
19
|
-
key: 5,
|
|
20
|
-
class: "vue-data-ui-watermark"
|
|
21
|
-
}, Zl = ["onClick"], ea = {
|
|
22
|
-
key: 0,
|
|
23
|
-
style: { "font-variant-numeric": "tabular-nums" }
|
|
24
|
-
}, ta = { key: 1 }, la = ["innerHTML"], aa = {
|
|
25
|
-
__name: "vue-ui-donut",
|
|
26
|
-
props: {
|
|
27
|
-
config: {
|
|
28
|
-
type: Object,
|
|
29
|
-
default() {
|
|
30
|
-
return {};
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
dataset: {
|
|
34
|
-
type: Array,
|
|
35
|
-
default() {
|
|
36
|
-
return [];
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
},
|
|
40
|
-
emits: ["selectLegend", "selectDatapoint"],
|
|
41
|
-
setup(Qe, { expose: Ze, emit: et }) {
|
|
42
|
-
const { vue_ui_donut: tt } = ft(), lt = ct(), N = Qe, q = w({
|
|
43
|
-
get() {
|
|
44
|
-
return !!N.dataset && N.dataset.length;
|
|
45
|
-
},
|
|
46
|
-
set(l) {
|
|
47
|
-
return l;
|
|
48
|
-
}
|
|
49
|
-
}), J = d(null), ye = d(null), fe = d(null), te = d(null), pe = d(null), ge = d(null), be = d(0), me = d(0), we = d(0);
|
|
50
|
-
dt(() => {
|
|
51
|
-
ke();
|
|
52
|
-
}), ht(() => {
|
|
53
|
-
te.value && te.value.disconnect();
|
|
54
|
-
});
|
|
55
|
-
function ke() {
|
|
56
|
-
if (pt(N.dataset) ? qe({
|
|
57
|
-
componentName: "VueUiDonut",
|
|
58
|
-
type: "dataset"
|
|
59
|
-
}) : N.dataset.forEach((l, r) => {
|
|
60
|
-
gt({
|
|
61
|
-
datasetObject: l,
|
|
62
|
-
requiredAttributes: ["name", "values"]
|
|
63
|
-
}).forEach((t) => {
|
|
64
|
-
q.value = !1, qe({
|
|
65
|
-
componentName: "VueUiDonut",
|
|
66
|
-
type: "datasetSerieAttribute",
|
|
67
|
-
property: t,
|
|
68
|
-
index: r
|
|
69
|
-
});
|
|
70
|
-
});
|
|
71
|
-
}), e.value.responsive) {
|
|
72
|
-
const l = Tt(() => {
|
|
73
|
-
const { width: r, height: t } = zt({
|
|
74
|
-
chart: J.value,
|
|
75
|
-
title: e.value.style.chart.title.text ? ye.value : null,
|
|
76
|
-
legend: e.value.style.chart.legend.show ? fe.value : null,
|
|
77
|
-
source: pe.value,
|
|
78
|
-
noTitle: ge.value,
|
|
79
|
-
padding: Pe.value
|
|
80
|
-
});
|
|
81
|
-
requestAnimationFrame(() => {
|
|
82
|
-
s.value.width = r, s.value.height = t;
|
|
83
|
-
});
|
|
84
|
-
});
|
|
85
|
-
te.value = new ResizeObserver(l), te.value.observe(J.value.parentNode);
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
const y = d(bt()), at = d(null), le = d(!1), ue = d(""), P = d(null), _e = d(0);
|
|
89
|
-
function xe() {
|
|
90
|
-
const l = Ke({
|
|
91
|
-
userConfig: N.config,
|
|
92
|
-
defaultConfig: tt
|
|
93
|
-
});
|
|
94
|
-
return l.theme ? {
|
|
95
|
-
...Ke({
|
|
96
|
-
userConfig: Pt.vue_ui_donut[l.theme] || N.config,
|
|
97
|
-
defaultConfig: l
|
|
98
|
-
}),
|
|
99
|
-
customPalette: Ct[l.theme] || U
|
|
100
|
-
} : l;
|
|
101
|
-
}
|
|
102
|
-
const e = w({
|
|
103
|
-
get: () => xe(),
|
|
104
|
-
set: (l) => l
|
|
105
|
-
}), { userOptionsVisible: se, setUserOptionsVisibility: $e, keepUserOptionState: Ce } = Gt({ config: e.value }), { svgRef: ne } = Ut({ config: e.value.style.chart.title });
|
|
106
|
-
je(() => N.config, (l) => {
|
|
107
|
-
e.value = xe(), se.value = !e.value.userOptions.showOnChartHover, ke(), be.value += 1, me.value += 1, we.value += 1, f.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, f.value.showTable = e.value.table.show, f.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
108
|
-
}, { deep: !0 });
|
|
109
|
-
const Pe = w(() => {
|
|
110
|
-
const { top: l, right: r, bottom: t, left: a } = e.value.style.chart.padding;
|
|
111
|
-
return {
|
|
112
|
-
css: `padding:${l}px ${r}px ${t}px ${a}px`,
|
|
113
|
-
top: l,
|
|
114
|
-
right: r,
|
|
115
|
-
bottom: t,
|
|
116
|
-
left: a
|
|
117
|
-
};
|
|
118
|
-
}), { isPrinting: Se, isImaging: Fe, generatePdf: Le, generateImage: Te } = Yt({
|
|
119
|
-
elementId: `donut__${y.value}`,
|
|
120
|
-
fileName: e.value.style.chart.title.text || "vue-ui-donut",
|
|
121
|
-
options: e.value.userOptions.print
|
|
122
|
-
}), ot = w(() => e.value.userOptions.show && !e.value.style.chart.title.text), ze = w(() => mt(e.value.customPalette)), f = d({
|
|
123
|
-
dataLabels: {
|
|
124
|
-
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
125
|
-
},
|
|
126
|
-
showTable: e.value.table.show,
|
|
127
|
-
showTooltip: e.value.style.chart.tooltip.show
|
|
128
|
-
}), s = d({
|
|
129
|
-
height: 360,
|
|
130
|
-
width: 512
|
|
131
|
-
}), K = w(() => {
|
|
132
|
-
const l = e.value.style.chart.layout.donut.strokeWidth / 512, r = Math.min(s.value.width, s.value.height) * l, t = r > $.value ? $.value : r;
|
|
133
|
-
return Math.max(t, 3);
|
|
134
|
-
}), Oe = et, B = w(() => N.dataset.map((l, r) => ({
|
|
135
|
-
name: l.name,
|
|
136
|
-
color: Je(l.color) || ze.value[r] || U[r] || U[r % U.length],
|
|
137
|
-
value: l.values.reduce((t, a) => t + a, 0),
|
|
138
|
-
absoluteValues: l.values,
|
|
139
|
-
comment: l.comment || "",
|
|
140
|
-
patternIndex: r
|
|
141
|
-
}))), T = d(B.value);
|
|
142
|
-
je(() => B.value, (l) => T.value = l);
|
|
143
|
-
function ut() {
|
|
144
|
-
return B.value.map((l) => ({
|
|
145
|
-
name: l.name,
|
|
146
|
-
color: l.color,
|
|
147
|
-
value: l.value
|
|
148
|
-
}));
|
|
149
|
-
}
|
|
150
|
-
const X = d([]), Ye = d(null), Ae = d(null), V = d(!1);
|
|
151
|
-
function Ne(l) {
|
|
152
|
-
const r = B.value.find((v, m) => m === l), t = T.value.find((v, m) => m === l);
|
|
153
|
-
let a = t.value;
|
|
154
|
-
if (X.value.includes(l)) {
|
|
155
|
-
let m = function() {
|
|
156
|
-
a > v ? (cancelAnimationFrame(Ye.value), T.value = T.value.map((_, ce) => l === ce ? {
|
|
157
|
-
..._,
|
|
158
|
-
value: v
|
|
159
|
-
} : _), V.value = !1) : (V.value = !0, a += v * 0.025, T.value = T.value.map((_, ce) => l === ce ? {
|
|
160
|
-
..._,
|
|
161
|
-
value: a
|
|
162
|
-
} : _), Ye.value = requestAnimationFrame(m));
|
|
163
|
-
};
|
|
164
|
-
X.value = X.value.filter((_) => _ !== l);
|
|
165
|
-
const v = r.value;
|
|
166
|
-
m();
|
|
167
|
-
} else if (X.value.length < B.value.length - 1) {
|
|
168
|
-
let v = function() {
|
|
169
|
-
a < t.value / 100 ? (cancelAnimationFrame(Ae.value), X.value.push(l), T.value = T.value.map((m, _) => l === _ ? {
|
|
170
|
-
...m,
|
|
171
|
-
value: 0
|
|
172
|
-
} : m), V.value = !1) : (V.value = !0, a /= 1.1, T.value = T.value.map((m, _) => l === _ ? {
|
|
173
|
-
...m,
|
|
174
|
-
value: a
|
|
175
|
-
} : m), Ae.value = requestAnimationFrame(v));
|
|
176
|
-
};
|
|
177
|
-
v();
|
|
178
|
-
}
|
|
179
|
-
Oe("selectLegend", I.value.map((v) => ({
|
|
180
|
-
name: v.name,
|
|
181
|
-
color: v.color,
|
|
182
|
-
value: v.value
|
|
183
|
-
})));
|
|
184
|
-
}
|
|
185
|
-
const I = w(() => (T.value.forEach((l, r) => {
|
|
186
|
-
if ([null, void 0].includes(l.values))
|
|
187
|
-
return {
|
|
188
|
-
...l,
|
|
189
|
-
values: []
|
|
190
|
-
};
|
|
191
|
-
}), T.value.map((l, r) => ({
|
|
192
|
-
...l,
|
|
193
|
-
seriesIndex: r
|
|
194
|
-
})).filter((l, r) => !X.value.includes(r)))), Xe = w(() => N.dataset.map((l, r) => ({
|
|
195
|
-
name: l.name,
|
|
196
|
-
color: Je(l.color) || ze.value[r] || U[r] || U[r % U.length],
|
|
197
|
-
value: (l.values || []).reduce((t, a) => t + a, 0),
|
|
198
|
-
shape: "circle",
|
|
199
|
-
patternIndex: r
|
|
200
|
-
})).map((l, r) => ({
|
|
201
|
-
...l,
|
|
202
|
-
proportion: l.value / N.dataset.map((t) => (t.values || []).reduce((a, v) => a + v, 0)).reduce((t, a) => t + a, 0),
|
|
203
|
-
opacity: X.value.includes(r) ? 0.5 : 1,
|
|
204
|
-
segregate: () => !V.value && Ne(r),
|
|
205
|
-
isSegregated: X.value.includes(r)
|
|
206
|
-
}))), st = w(() => ({
|
|
207
|
-
cy: "donut-div-legend",
|
|
208
|
-
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
209
|
-
color: e.value.style.chart.legend.color,
|
|
210
|
-
fontSize: e.value.style.chart.legend.fontSize,
|
|
211
|
-
paddingBottom: 12,
|
|
212
|
-
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
213
|
-
})), $ = w(() => {
|
|
214
|
-
const l = Math.min(s.value.width / 3, s.value.height / 3);
|
|
215
|
-
return l < 55 ? 55 : l;
|
|
216
|
-
}), h = w(() => wt({ series: I.value }, s.value.width / 2, s.value.height / 2, $.value, $.value, 1.99999, 2, 1, 360, 105.25, K.value)), c = w(() => {
|
|
217
|
-
const l = Math.max(...I.value.map((t) => t.value)), r = I.value.map((t) => t.value / l);
|
|
218
|
-
return kt({
|
|
219
|
-
series: r,
|
|
220
|
-
center: {
|
|
221
|
-
x: s.value.width / 2,
|
|
222
|
-
y: s.value.height / 2
|
|
223
|
-
},
|
|
224
|
-
maxRadius: Math.min(s.value.width, s.value.height) / 3
|
|
225
|
-
});
|
|
226
|
-
});
|
|
227
|
-
function j(l) {
|
|
228
|
-
return l.x > s.value.width / 2 + 6 ? "start" : l.x < s.value.width / 2 - 6 ? "end" : "middle";
|
|
229
|
-
}
|
|
230
|
-
function nt(l) {
|
|
231
|
-
return l.middlePoint.y > s.value.height / 2 ? L({ initX: l.middlePoint.x, initY: l.middlePoint.y, offset: 100, centerX: s.value.width / 2, centerY: s.value.height / 2 }).y : L({ initX: l.middlePoint.x, initY: l.middlePoint.y, offset: 0, centerX: s.value.width / 2, centerY: s.value.height / 2 }).y - 100;
|
|
232
|
-
}
|
|
233
|
-
function Y(l) {
|
|
234
|
-
return l.proportion * 100 > e.value.style.chart.layout.labels.dataLabels.hideUnderValue;
|
|
235
|
-
}
|
|
236
|
-
function re(l, r) {
|
|
237
|
-
const t = l.value / rt(r);
|
|
238
|
-
return isNaN(t) ? 0 : A(
|
|
239
|
-
e.value.style.chart.layout.labels.percentage.formatter,
|
|
240
|
-
t * 100,
|
|
241
|
-
O({
|
|
242
|
-
v: t * 100,
|
|
243
|
-
s: "%",
|
|
244
|
-
r: e.value.style.chart.layout.labels.percentage.rounding
|
|
245
|
-
}),
|
|
246
|
-
{ datapoint: l }
|
|
247
|
-
);
|
|
248
|
-
}
|
|
249
|
-
function rt(l) {
|
|
250
|
-
return [...l].map((r) => r.value).reduce((r, t) => r + t, 0);
|
|
251
|
-
}
|
|
252
|
-
const S = w(() => I.value.map((l) => l.value).reduce((l, r) => l + r, 0)), Ie = w(() => S.value / I.value.length), De = w(() => (l) => V.value ? l.proportion * 100 : l.value / S.value * 100), ie = d(null), Q = d(!1);
|
|
253
|
-
function Me({ datapoint: l, relativeIndex: r, seriesIndex: t, show: a = !1 }) {
|
|
254
|
-
ie.value = { datapoint: l, seriesIndex: t, config: e.value, series: B.value }, le.value = a, P.value = r;
|
|
255
|
-
let v = "";
|
|
256
|
-
const m = e.value.style.chart.tooltip.customFormat;
|
|
257
|
-
if (Q.value = !1, Lt(m))
|
|
258
|
-
try {
|
|
259
|
-
const _ = m({
|
|
260
|
-
seriesIndex: t,
|
|
261
|
-
datapoint: l,
|
|
262
|
-
series: B.value,
|
|
263
|
-
config: e.value
|
|
264
|
-
});
|
|
265
|
-
typeof _ == "string" && (ue.value = _, Q.value = !0);
|
|
266
|
-
} catch {
|
|
267
|
-
console.warn("Custom format cannot be applied."), Q.value = !1;
|
|
268
|
-
}
|
|
269
|
-
if (!Q.value) {
|
|
270
|
-
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}"/>${lt.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>${A(
|
|
271
|
-
e.value.style.chart.layout.labels.value.formatter,
|
|
272
|
-
l.value,
|
|
273
|
-
O({
|
|
274
|
-
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
275
|
-
v: l.value,
|
|
276
|
-
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
277
|
-
r: e.value.style.chart.tooltip.roundingValue
|
|
278
|
-
}),
|
|
279
|
-
{
|
|
280
|
-
datapoint: l,
|
|
281
|
-
relativeIndex: r,
|
|
282
|
-
seriesIndex: t
|
|
283
|
-
}
|
|
284
|
-
)}</b>`), e.value.style.chart.tooltip.showPercentage) {
|
|
285
|
-
const _ = A(
|
|
286
|
-
e.value.style.chart.layout.labels.percentage.formatter,
|
|
287
|
-
l.proportion * 100,
|
|
288
|
-
O({
|
|
289
|
-
v: l.proportion * 100,
|
|
290
|
-
s: "%",
|
|
291
|
-
r: e.value.style.chart.tooltip.roundingPercentage
|
|
292
|
-
}),
|
|
293
|
-
{
|
|
294
|
-
datapoint: l,
|
|
295
|
-
relativeIndex: r,
|
|
296
|
-
seriesIndex: t
|
|
297
|
-
}
|
|
298
|
-
);
|
|
299
|
-
e.value.style.chart.tooltip.showValue ? v += `<span>(${_})</span></div>` : v += `<b>${_}</b></div>`;
|
|
300
|
-
}
|
|
301
|
-
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>`), ue.value = `<div>${v}</div>`;
|
|
302
|
-
}
|
|
303
|
-
}
|
|
304
|
-
function G(l) {
|
|
305
|
-
return e.value.useBlurOnHover && ![null, void 0].includes(P.value) && P.value !== l ? `url(#blur_${y.value})` : "";
|
|
306
|
-
}
|
|
307
|
-
const D = w(() => {
|
|
308
|
-
const l = I.value.map((t) => ({
|
|
309
|
-
name: t.name,
|
|
310
|
-
color: t.color
|
|
311
|
-
})), r = I.value.map((t) => t.value);
|
|
312
|
-
return { head: l, body: r };
|
|
313
|
-
});
|
|
314
|
-
function Be() {
|
|
315
|
-
yt(() => {
|
|
316
|
-
const l = D.value.head.map((a, v) => [[
|
|
317
|
-
a.name
|
|
318
|
-
], [D.value.body[v]], [isNaN(D.value.body[v] / S.value) ? "-" : D.value.body[v] / S.value * 100]]), r = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(l), t = St(r);
|
|
319
|
-
Ft({ csvContent: t, title: e.value.style.chart.title.text || "vue-ui-donut" });
|
|
320
|
-
});
|
|
321
|
-
}
|
|
322
|
-
const ae = w(() => {
|
|
323
|
-
const l = [
|
|
324
|
-
' <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>',
|
|
325
|
-
O({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: S.value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
|
|
326
|
-
"100%"
|
|
327
|
-
], r = D.value.head.map((v, m) => [
|
|
328
|
-
{
|
|
329
|
-
color: v.color,
|
|
330
|
-
name: v.name
|
|
331
|
-
},
|
|
332
|
-
D.value.body[m],
|
|
333
|
-
isNaN(D.value.body[m] / S.value) ? "-" : (D.value.body[m] / S.value * 100).toFixed(e.value.table.td.roundingPercentage) + "%"
|
|
334
|
-
]), t = {
|
|
335
|
-
th: {
|
|
336
|
-
backgroundColor: e.value.table.th.backgroundColor,
|
|
337
|
-
color: e.value.table.th.color,
|
|
338
|
-
outline: e.value.table.th.outline
|
|
339
|
-
},
|
|
340
|
-
td: {
|
|
341
|
-
backgroundColor: e.value.table.td.backgroundColor,
|
|
342
|
-
color: e.value.table.td.color,
|
|
343
|
-
outline: e.value.table.td.outline
|
|
344
|
-
},
|
|
345
|
-
breakpoint: e.value.table.responsiveBreakpoint
|
|
346
|
-
};
|
|
347
|
-
return {
|
|
348
|
-
colNames: [
|
|
349
|
-
e.value.table.columnNames.series,
|
|
350
|
-
e.value.table.columnNames.value,
|
|
351
|
-
e.value.table.columnNames.percentage
|
|
352
|
-
],
|
|
353
|
-
head: l,
|
|
354
|
-
body: r,
|
|
355
|
-
config: t
|
|
356
|
-
};
|
|
357
|
-
}), W = d(!1);
|
|
358
|
-
function it(l) {
|
|
359
|
-
W.value = l, _e.value += 1;
|
|
360
|
-
}
|
|
361
|
-
const Ve = w(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent));
|
|
362
|
-
function vt(l) {
|
|
363
|
-
return l.toFixed(e.value.style.chart.legend.roundingPercentage).split("").map((r) => "-").join("");
|
|
364
|
-
}
|
|
365
|
-
function M(l, r) {
|
|
366
|
-
Oe("selectDatapoint", { datapoint: l, index: r });
|
|
367
|
-
}
|
|
368
|
-
function Ge() {
|
|
369
|
-
f.value.showTable = !f.value.showTable;
|
|
370
|
-
}
|
|
371
|
-
function Re() {
|
|
372
|
-
f.value.dataLabels.show = !f.value.dataLabels.show;
|
|
373
|
-
}
|
|
374
|
-
function Ue() {
|
|
375
|
-
f.value.showTooltip = !f.value.showTooltip;
|
|
376
|
-
}
|
|
377
|
-
const oe = d(!1);
|
|
378
|
-
function ve() {
|
|
379
|
-
oe.value = !oe.value;
|
|
380
|
-
}
|
|
381
|
-
return Ze({
|
|
382
|
-
getData: ut,
|
|
383
|
-
generatePdf: Le,
|
|
384
|
-
generateCsv: Be,
|
|
385
|
-
generateImage: Te,
|
|
386
|
-
toggleTable: Ge,
|
|
387
|
-
toggleLabels: Re,
|
|
388
|
-
toggleTooltip: Ue,
|
|
389
|
-
toggleAnnotator: ve
|
|
390
|
-
}), (l, r) => (o(), u("div", {
|
|
391
|
-
ref_key: "donutChart",
|
|
392
|
-
ref: J,
|
|
393
|
-
class: de(`vue-ui-donut ${W.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
394
|
-
style: z(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height:100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
395
|
-
id: `donut__${y.value}`,
|
|
396
|
-
onMouseenter: r[6] || (r[6] = () => n($e)(!0)),
|
|
397
|
-
onMouseleave: r[7] || (r[7] = () => n($e)(!1))
|
|
398
|
-
}, [
|
|
399
|
-
e.value.userOptions.buttons.annotator && n(ne) ? (o(), R(Vt, {
|
|
400
|
-
key: 0,
|
|
401
|
-
color: e.value.style.chart.color,
|
|
402
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
403
|
-
active: oe.value,
|
|
404
|
-
svgRef: n(ne),
|
|
405
|
-
onClose: ve
|
|
406
|
-
}, null, 8, ["color", "backgroundColor", "active", "svgRef"])) : i("", !0),
|
|
407
|
-
g(l.$slots, "userConfig", {}, void 0, !0),
|
|
408
|
-
ot.value ? (o(), u("div", {
|
|
409
|
-
key: 1,
|
|
410
|
-
ref_key: "noTitle",
|
|
411
|
-
ref: ge,
|
|
412
|
-
class: "vue-data-ui-no-title-space",
|
|
413
|
-
style: "height:36px; width: 100%;background:transparent"
|
|
414
|
-
}, null, 512)) : i("", !0),
|
|
415
|
-
e.value.style.chart.title.text ? (o(), u("div", {
|
|
416
|
-
key: 2,
|
|
417
|
-
ref_key: "chartTitle",
|
|
418
|
-
ref: ye,
|
|
419
|
-
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
420
|
-
}, [
|
|
421
|
-
(o(), R(Ot, {
|
|
422
|
-
key: `title_${be.value}`,
|
|
423
|
-
config: {
|
|
424
|
-
title: {
|
|
425
|
-
cy: "donut-div-title",
|
|
426
|
-
...e.value.style.chart.title
|
|
427
|
-
},
|
|
428
|
-
subtitle: {
|
|
429
|
-
cy: "donut-div-subtitle",
|
|
430
|
-
...e.value.style.chart.title.subtitle
|
|
431
|
-
}
|
|
432
|
-
}
|
|
433
|
-
}, null, 8, ["config"]))
|
|
434
|
-
], 512)) : i("", !0),
|
|
435
|
-
e.value.userOptions.show && q.value && (n(Ce) || n(se)) ? (o(), R(At, {
|
|
436
|
-
ref_key: "details",
|
|
437
|
-
ref: at,
|
|
438
|
-
key: `user_option_${_e.value}`,
|
|
439
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
440
|
-
color: e.value.style.chart.color,
|
|
441
|
-
isPrinting: n(Se),
|
|
442
|
-
isImaging: n(Fe),
|
|
443
|
-
uid: y.value,
|
|
444
|
-
hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
|
|
445
|
-
hasPdf: e.value.userOptions.buttons.pdf,
|
|
446
|
-
hasImg: e.value.userOptions.buttons.img,
|
|
447
|
-
hasXls: e.value.userOptions.buttons.csv,
|
|
448
|
-
hasTable: e.value.userOptions.buttons.table,
|
|
449
|
-
hasLabel: e.value.userOptions.buttons.labels,
|
|
450
|
-
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
451
|
-
isFullscreen: W.value,
|
|
452
|
-
chartElement: J.value,
|
|
453
|
-
position: e.value.userOptions.position,
|
|
454
|
-
isTooltip: f.value.showTooltip,
|
|
455
|
-
titles: { ...e.value.userOptions.buttonTitles },
|
|
456
|
-
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
457
|
-
isAnnotation: oe.value,
|
|
458
|
-
onToggleFullscreen: it,
|
|
459
|
-
onGeneratePdf: n(Le),
|
|
460
|
-
onGenerateCsv: Be,
|
|
461
|
-
onGenerateImage: n(Te),
|
|
462
|
-
onToggleTable: Ge,
|
|
463
|
-
onToggleLabels: Re,
|
|
464
|
-
onToggleTooltip: Ue,
|
|
465
|
-
onToggleAnnotator: ve,
|
|
466
|
-
style: z({
|
|
467
|
-
visibility: n(Ce) ? n(se) ? "visible" : "hidden" : "visible"
|
|
468
|
-
})
|
|
469
|
-
}, We({ _: 2 }, [
|
|
470
|
-
l.$slots.menuIcon ? {
|
|
471
|
-
name: "menuIcon",
|
|
472
|
-
fn: x(({ isOpen: t, color: a }) => [
|
|
473
|
-
g(l.$slots, "menuIcon", E(H({ isOpen: t, color: a })), void 0, !0)
|
|
474
|
-
]),
|
|
475
|
-
key: "0"
|
|
476
|
-
} : void 0,
|
|
477
|
-
l.$slots.optionTooltip ? {
|
|
478
|
-
name: "optionTooltip",
|
|
479
|
-
fn: x(() => [
|
|
480
|
-
g(l.$slots, "optionTooltip", {}, void 0, !0)
|
|
481
|
-
]),
|
|
482
|
-
key: "1"
|
|
483
|
-
} : void 0,
|
|
484
|
-
l.$slots.optionPdf ? {
|
|
485
|
-
name: "optionPdf",
|
|
486
|
-
fn: x(() => [
|
|
487
|
-
g(l.$slots, "optionPdf", {}, void 0, !0)
|
|
488
|
-
]),
|
|
489
|
-
key: "2"
|
|
490
|
-
} : void 0,
|
|
491
|
-
l.$slots.optionCsv ? {
|
|
492
|
-
name: "optionCsv",
|
|
493
|
-
fn: x(() => [
|
|
494
|
-
g(l.$slots, "optionCsv", {}, void 0, !0)
|
|
495
|
-
]),
|
|
496
|
-
key: "3"
|
|
497
|
-
} : void 0,
|
|
498
|
-
l.$slots.optionImg ? {
|
|
499
|
-
name: "optionImg",
|
|
500
|
-
fn: x(() => [
|
|
501
|
-
g(l.$slots, "optionImg", {}, void 0, !0)
|
|
502
|
-
]),
|
|
503
|
-
key: "4"
|
|
504
|
-
} : void 0,
|
|
505
|
-
l.$slots.optionTable ? {
|
|
506
|
-
name: "optionTable",
|
|
507
|
-
fn: x(() => [
|
|
508
|
-
g(l.$slots, "optionTable", {}, void 0, !0)
|
|
509
|
-
]),
|
|
510
|
-
key: "5"
|
|
511
|
-
} : void 0,
|
|
512
|
-
l.$slots.optionLabels ? {
|
|
513
|
-
name: "optionLabels",
|
|
514
|
-
fn: x(() => [
|
|
515
|
-
g(l.$slots, "optionLabels", {}, void 0, !0)
|
|
516
|
-
]),
|
|
517
|
-
key: "6"
|
|
518
|
-
} : void 0,
|
|
519
|
-
l.$slots.optionFullscreen ? {
|
|
520
|
-
name: "optionFullscreen",
|
|
521
|
-
fn: x(({ toggleFullscreen: t, isFullscreen: a }) => [
|
|
522
|
-
g(l.$slots, "optionFullscreen", E(H({ toggleFullscreen: t, isFullscreen: a })), void 0, !0)
|
|
523
|
-
]),
|
|
524
|
-
key: "7"
|
|
525
|
-
} : void 0,
|
|
526
|
-
l.$slots.optionAnnotator ? {
|
|
527
|
-
name: "optionAnnotator",
|
|
528
|
-
fn: x(({ toggleAnnotator: t, isAnnotator: a }) => [
|
|
529
|
-
g(l.$slots, "optionAnnotator", E(H({ toggleAnnotator: t, isAnnotator: a })), void 0, !0)
|
|
530
|
-
]),
|
|
531
|
-
key: "8"
|
|
532
|
-
} : void 0
|
|
533
|
-
]), 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),
|
|
534
|
-
q.value ? (o(), u("svg", {
|
|
535
|
-
key: 4,
|
|
536
|
-
ref_key: "svgRef",
|
|
537
|
-
ref: ne,
|
|
538
|
-
xmlns: n(_t),
|
|
539
|
-
class: de({ "vue-data-ui-fullscreen--on": W.value, "vue-data-ui-fulscreen--off": !W.value }),
|
|
540
|
-
viewBox: `0 0 ${s.value.width <= 0 ? 10 : s.value.width} ${s.value.height <= 0 ? 10 : s.value.height}`,
|
|
541
|
-
style: z(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};${Pe.value.css}`)
|
|
542
|
-
}, [
|
|
543
|
-
he(Bt),
|
|
544
|
-
l.$slots["chart-background"] ? (o(), u("foreignObject", {
|
|
545
|
-
key: 0,
|
|
546
|
-
x: 0,
|
|
547
|
-
y: 0,
|
|
548
|
-
width: s.value.width <= 0 ? 10 : s.value.width,
|
|
549
|
-
height: s.value.height <= 0 ? 10 : s.value.height,
|
|
550
|
-
style: {
|
|
551
|
-
pointerEvents: "none"
|
|
552
|
-
}
|
|
553
|
-
}, [
|
|
554
|
-
g(l.$slots, "chart-background", {}, void 0, !0)
|
|
555
|
-
], 8, Ht)) : i("", !0),
|
|
556
|
-
e.value.type === "classic" ? (o(), u("defs", qt, [
|
|
557
|
-
e.value.style.chart.useGradient ? (o(), u("radialGradient", {
|
|
558
|
-
key: 0,
|
|
559
|
-
id: `gradient_${y.value}`
|
|
560
|
-
}, [
|
|
561
|
-
p("stop", {
|
|
562
|
-
offset: "0%",
|
|
563
|
-
"stop-color": n(Z)(e.value.style.chart.backgroundColor, 0),
|
|
564
|
-
"stop-opacity": "0"
|
|
565
|
-
}, null, 8, Kt),
|
|
566
|
-
p("stop", {
|
|
567
|
-
offset: `${(1 - K.value / $.value) * 100}%`,
|
|
568
|
-
"stop-color": n(Z)("#FFFFFF", 0),
|
|
569
|
-
"stop-opacity": "0"
|
|
570
|
-
}, null, 8, Qt),
|
|
571
|
-
p("stop", {
|
|
572
|
-
offset: `${(1 - K.value / $.value / 2) * 100}%`,
|
|
573
|
-
"stop-color": n(Z)("#FFFFFF", e.value.style.chart.gradientIntensity)
|
|
574
|
-
}, null, 8, Zt),
|
|
575
|
-
p("stop", {
|
|
576
|
-
offset: "100%",
|
|
577
|
-
"stop-color": n(Z)(e.value.style.chart.backgroundColor, 0),
|
|
578
|
-
"stop-opacity": "0"
|
|
579
|
-
}, null, 8, el)
|
|
580
|
-
], 8, Jt)) : i("", !0)
|
|
581
|
-
])) : i("", !0),
|
|
582
|
-
e.value.type === "polar" ? (o(), u("defs", tl, [
|
|
583
|
-
(o(!0), u(b, null, F(c.value, (t, a) => (o(), u("radialGradient", {
|
|
584
|
-
id: `polar_gradient_${a}_${y.value}`,
|
|
585
|
-
cx: t.middlePoint.x / s.value.width * 100 + "%",
|
|
586
|
-
cy: t.middlePoint.y / s.value.height * 100 + "%",
|
|
587
|
-
r: "62%"
|
|
588
|
-
}, [
|
|
589
|
-
p("stop", {
|
|
590
|
-
offset: "0%",
|
|
591
|
-
"stop-color": n(xt)(h.value[a].color, 0.05),
|
|
592
|
-
"stop-opacity": e.value.style.chart.gradientIntensity / 100
|
|
593
|
-
}, null, 8, al),
|
|
594
|
-
p("stop", {
|
|
595
|
-
offset: "100%",
|
|
596
|
-
"stop-color": h.value[a].color
|
|
597
|
-
}, null, 8, ol)
|
|
598
|
-
], 8, ll))), 256))
|
|
599
|
-
])) : i("", !0),
|
|
600
|
-
p("defs", null, [
|
|
601
|
-
p("filter", {
|
|
602
|
-
id: `blur_${y.value}`,
|
|
603
|
-
x: "-50%",
|
|
604
|
-
y: "-50%",
|
|
605
|
-
width: "200%",
|
|
606
|
-
height: "200%"
|
|
607
|
-
}, [
|
|
608
|
-
p("feGaussianBlur", {
|
|
609
|
-
in: "SourceGraphic",
|
|
610
|
-
stdDeviation: 2,
|
|
611
|
-
id: `blur_std_${y.value}`
|
|
612
|
-
}, null, 8, sl),
|
|
613
|
-
r[8] || (r[8] = p("feColorMatrix", {
|
|
614
|
-
type: "saturate",
|
|
615
|
-
values: "0"
|
|
616
|
-
}, null, -1))
|
|
617
|
-
], 8, ul),
|
|
618
|
-
p("filter", {
|
|
619
|
-
id: `shadow_${y.value}`,
|
|
620
|
-
"color-interpolation-filters": "sRGB"
|
|
621
|
-
}, [
|
|
622
|
-
p("feDropShadow", {
|
|
623
|
-
dx: "0",
|
|
624
|
-
dy: "0",
|
|
625
|
-
stdDeviation: "10",
|
|
626
|
-
"flood-opacity": "0.5",
|
|
627
|
-
"flood-color": e.value.style.chart.layout.donut.shadowColor
|
|
628
|
-
}, null, 8, rl)
|
|
629
|
-
], 8, nl),
|
|
630
|
-
p("filter", {
|
|
631
|
-
id: `drop_shadow_${y.value}`,
|
|
632
|
-
"color-interpolation-filters": "sRGB",
|
|
633
|
-
x: "-50%",
|
|
634
|
-
y: "-50%",
|
|
635
|
-
width: "200%",
|
|
636
|
-
height: "200%"
|
|
637
|
-
}, [
|
|
638
|
-
p("feDropShadow", {
|
|
639
|
-
dx: "0",
|
|
640
|
-
dy: "0",
|
|
641
|
-
stdDeviation: "3",
|
|
642
|
-
"flood-opacity": "1",
|
|
643
|
-
"flood-color": e.value.style.chart.layout.donut.shadowColor
|
|
644
|
-
}, null, 8, vl)
|
|
645
|
-
], 8, il)
|
|
646
|
-
]),
|
|
647
|
-
e.value.type === "classic" ? (o(!0), u(b, { key: 3 }, F(h.value, (t, a) => (o(), u("g", null, [
|
|
648
|
-
Y(t) && f.value.dataLabels.show ? (o(), u("path", {
|
|
649
|
-
key: 0,
|
|
650
|
-
d: n($t)(t, { x: s.value.width / 2, y: s.value.height / 2 }, 16, 16, !1, !1, K.value, 12, e.value.style.chart.layout.curvedMarkers),
|
|
651
|
-
stroke: t.color,
|
|
652
|
-
"stroke-width": "1",
|
|
653
|
-
"stroke-linecap": "round",
|
|
654
|
-
"stroke-linejoin": "round",
|
|
655
|
-
fill: "none",
|
|
656
|
-
filter: G(a)
|
|
657
|
-
}, null, 8, cl)) : i("", !0)
|
|
658
|
-
]))), 256)) : i("", !0),
|
|
659
|
-
e.value.type === "polar" ? (o(!0), u(b, { key: 4 }, F(h.value, (t, a) => (o(), u("g", null, [
|
|
660
|
-
Y(t) && f.value.dataLabels.show ? (o(), u("line", {
|
|
661
|
-
key: 0,
|
|
662
|
-
x1: n(L)({ 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,
|
|
663
|
-
y1: n(L)({ 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,
|
|
664
|
-
x2: c.value[a].middlePoint.x,
|
|
665
|
-
y2: c.value[a].middlePoint.y,
|
|
666
|
-
stroke: t.color,
|
|
667
|
-
"stroke-width": "1",
|
|
668
|
-
"stroke-linecap": "round",
|
|
669
|
-
"stroke-linejoin": "round",
|
|
670
|
-
fill: "none",
|
|
671
|
-
filter: G(a)
|
|
672
|
-
}, null, 8, dl)) : i("", !0)
|
|
673
|
-
]))), 256)) : i("", !0),
|
|
674
|
-
e.value.type === "classic" && e.value.style.chart.layout.donut.useShadow ? (o(), u("circle", {
|
|
675
|
-
key: 5,
|
|
676
|
-
cx: s.value.width / 2,
|
|
677
|
-
cy: s.value.height / 2,
|
|
678
|
-
r: $.value <= 0 ? 10 : $.value,
|
|
679
|
-
fill: e.value.style.chart.backgroundColor,
|
|
680
|
-
filter: `url(#shadow_${y.value})`
|
|
681
|
-
}, null, 8, hl)) : i("", !0),
|
|
682
|
-
l.$slots.pattern ? (o(), u("g", yl, [
|
|
683
|
-
(o(!0), u(b, null, F(h.value, (t, a) => (o(), u("defs", null, [
|
|
684
|
-
g(l.$slots, "pattern", Ee({ ref_for: !0 }, { ...t, patternId: `pattern_${y.value}_${t.patternIndex}` }), void 0, !0)
|
|
685
|
-
]))), 256))
|
|
686
|
-
])) : i("", !0),
|
|
687
|
-
S.value && e.value.type === "classic" ? (o(), u(b, { key: 7 }, [
|
|
688
|
-
(o(!0), u(b, null, F(h.value, (t, a) => (o(), u("path", {
|
|
689
|
-
stroke: e.value.style.chart.backgroundColor,
|
|
690
|
-
d: t.arcSlice,
|
|
691
|
-
fill: "#FFFFFF"
|
|
692
|
-
}, null, 8, fl))), 256)),
|
|
693
|
-
l.$slots.pattern ? (o(), u("g", pl, [
|
|
694
|
-
(o(!0), u(b, null, F(h.value, (t, a) => (o(), u("path", {
|
|
695
|
-
class: "vue-ui-donut-arc-path",
|
|
696
|
-
d: t.arcSlice,
|
|
697
|
-
fill: `url(#pattern_${y.value}_${t.patternIndex})`,
|
|
698
|
-
stroke: e.value.style.chart.backgroundColor,
|
|
699
|
-
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
700
|
-
filter: G(a)
|
|
701
|
-
}, null, 8, gl))), 256))
|
|
702
|
-
])) : i("", !0),
|
|
703
|
-
(o(!0), u(b, null, F(h.value, (t, a) => (o(), u("path", {
|
|
704
|
-
class: "vue-ui-donut-arc-path",
|
|
705
|
-
d: t.arcSlice,
|
|
706
|
-
fill: n(Z)(t.color, 80),
|
|
707
|
-
stroke: e.value.style.chart.backgroundColor,
|
|
708
|
-
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
709
|
-
filter: G(a)
|
|
710
|
-
}, null, 8, bl))), 256))
|
|
711
|
-
], 64)) : i("", !0),
|
|
712
|
-
S.value && e.value.type === "polar" ? (o(), u(b, { key: 8 }, [
|
|
713
|
-
h.value.length > 1 ? (o(), u("g", ml, [
|
|
714
|
-
(o(!0), u(b, null, F(h.value, (t, a) => (o(), u("path", {
|
|
715
|
-
stroke: e.value.style.chart.backgroundColor,
|
|
716
|
-
d: c.value[a].path,
|
|
717
|
-
fill: "#FFFFFF"
|
|
718
|
-
}, null, 8, wl))), 256)),
|
|
719
|
-
e.value.style.chart.layout.donut.useShadow ? (o(), u("g", kl, [
|
|
720
|
-
(o(!0), u(b, null, F(h.value, (t, a) => (o(), u("path", {
|
|
721
|
-
class: "vue-ui-donut-arc-path",
|
|
722
|
-
d: c.value[a].path,
|
|
723
|
-
fill: "transparent",
|
|
724
|
-
stroke: e.value.style.chart.backgroundColor,
|
|
725
|
-
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
726
|
-
filter: `url(#drop_shadow_${y.value})`
|
|
727
|
-
}, null, 8, _l))), 256))
|
|
728
|
-
])) : i("", !0),
|
|
729
|
-
l.$slots.pattern ? (o(), u("g", xl, [
|
|
730
|
-
(o(!0), u(b, null, F(h.value, (t, a) => (o(), u("path", {
|
|
731
|
-
class: "vue-ui-donut-arc-path",
|
|
732
|
-
d: c.value[a].path,
|
|
733
|
-
fill: `url(#pattern_${y.value}_${t.patternIndex})`,
|
|
734
|
-
stroke: e.value.style.chart.backgroundColor,
|
|
735
|
-
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
736
|
-
filter: G(a)
|
|
737
|
-
}, null, 8, $l))), 256))
|
|
738
|
-
])) : i("", !0),
|
|
739
|
-
(o(!0), u(b, null, F(h.value, (t, a) => (o(), u("path", {
|
|
740
|
-
class: "vue-ui-donut-arc-path",
|
|
741
|
-
d: c.value[a].path,
|
|
742
|
-
fill: e.value.style.chart.useGradient ? `url(#polar_gradient_${a}_${y.value})` : t.color,
|
|
743
|
-
stroke: e.value.style.chart.backgroundColor,
|
|
744
|
-
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
745
|
-
filter: G(a)
|
|
746
|
-
}, null, 8, Cl))), 256))
|
|
747
|
-
])) : (o(), u("g", Pl, [
|
|
748
|
-
l.$slots.pattern ? (o(), u("circle", {
|
|
749
|
-
key: 0,
|
|
750
|
-
cx: s.value.width / 2,
|
|
751
|
-
cy: s.value.height / 2,
|
|
752
|
-
r: $.value,
|
|
753
|
-
fill: `url(#pattern_${y.value}_${h.value[0].patternIndex})`,
|
|
754
|
-
stroke: e.value.style.chart.backgroundColor,
|
|
755
|
-
"stroke-width": e.value.style.chart.layout.donut.borderWidth
|
|
756
|
-
}, null, 8, Sl)) : i("", !0),
|
|
757
|
-
p("circle", {
|
|
758
|
-
cx: s.value.width / 2,
|
|
759
|
-
cy: s.value.height / 2,
|
|
760
|
-
r: $.value,
|
|
761
|
-
fill: e.value.style.chart.useGradient ? `url(#polar_gradient_0_${y.value})` : h.value[0].color,
|
|
762
|
-
stroke: e.value.style.chart.backgroundColor,
|
|
763
|
-
"stroke-width": e.value.style.chart.layout.donut.borderWidth
|
|
764
|
-
}, null, 8, Fl)
|
|
765
|
-
]))
|
|
766
|
-
], 64)) : (o(), u("circle", {
|
|
767
|
-
key: 9,
|
|
768
|
-
cx: s.value.width / 2,
|
|
769
|
-
cy: s.value.height / 2,
|
|
770
|
-
r: $.value <= 0 ? 10 : $.value,
|
|
771
|
-
fill: "transparent",
|
|
772
|
-
stroke: e.value.style.chart.backgroundColor
|
|
773
|
-
}, null, 8, Ll)),
|
|
774
|
-
e.value.style.chart.useGradient && e.value.type === "classic" ? (o(), u("circle", {
|
|
775
|
-
key: 10,
|
|
776
|
-
cx: s.value.width / 2,
|
|
777
|
-
cy: s.value.height / 2,
|
|
778
|
-
r: (
|
|
779
|
-
/* This might require adjustments */
|
|
780
|
-
$.value <= 0 ? 10 : $.value
|
|
781
|
-
),
|
|
782
|
-
fill: `url(#gradient_${y.value})`
|
|
783
|
-
}, null, 8, Tl)) : i("", !0),
|
|
784
|
-
S.value ? (o(), u(b, { key: 11 }, [
|
|
785
|
-
h.value.length > 1 || e.value.type === "classic" ? (o(), u("g", zl, [
|
|
786
|
-
(o(!0), u(b, null, F(h.value, (t, a) => (o(), u("path", {
|
|
787
|
-
d: e.value.type === "classic" ? t.arcSlice : c.value[a].path,
|
|
788
|
-
fill: P.value === a ? "rgba(0,0,0,0.1)" : "transparent",
|
|
789
|
-
onMouseenter: (v) => Me({
|
|
790
|
-
datapoint: t,
|
|
791
|
-
relativeIndex: a,
|
|
792
|
-
seriesIndex: t.seriesIndex,
|
|
793
|
-
show: !0
|
|
794
|
-
}),
|
|
795
|
-
onMouseleave: r[0] || (r[0] = (v) => {
|
|
796
|
-
le.value = !1, P.value = null;
|
|
797
|
-
}),
|
|
798
|
-
onClick: (v) => M(t, a)
|
|
799
|
-
}, null, 40, Ol))), 256))
|
|
800
|
-
])) : (o(), u("g", Yl, [
|
|
801
|
-
p("circle", {
|
|
802
|
-
cx: s.value.width / 2,
|
|
803
|
-
cy: s.value.height / 2,
|
|
804
|
-
r: $.value,
|
|
805
|
-
fill: P.value === l.i ? "rgba(0,0,0,0.1)" : "transparent",
|
|
806
|
-
onMouseenter: r[1] || (r[1] = (t) => Me({
|
|
807
|
-
datapoint: h.value[0],
|
|
808
|
-
relativeIndex: 0,
|
|
809
|
-
seriesIndex: h.value[0].seriesIndex,
|
|
810
|
-
show: !0
|
|
811
|
-
})),
|
|
812
|
-
onMouseleave: r[2] || (r[2] = (t) => {
|
|
813
|
-
le.value = !1, P.value = null;
|
|
814
|
-
}),
|
|
815
|
-
onClick: r[3] || (r[3] = (t) => M(h.value[0], l.i))
|
|
816
|
-
}, null, 40, Al)
|
|
817
|
-
]))
|
|
818
|
-
], 64)) : i("", !0),
|
|
819
|
-
e.value.type === "classic" ? (o(), u(b, { key: 12 }, [
|
|
820
|
-
e.value.style.chart.layout.labels.hollow.total.show ? (o(), u("text", {
|
|
821
|
-
key: 0,
|
|
822
|
-
"text-anchor": "middle",
|
|
823
|
-
x: s.value.width / 2,
|
|
824
|
-
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,
|
|
825
|
-
fill: e.value.style.chart.layout.labels.hollow.total.color,
|
|
826
|
-
"font-size": e.value.style.chart.layout.labels.hollow.total.fontSize,
|
|
827
|
-
style: z(`font-weight:${e.value.style.chart.layout.labels.hollow.total.bold ? "bold" : ""}`)
|
|
828
|
-
}, C(e.value.style.chart.layout.labels.hollow.total.text), 13, Nl)) : i("", !0),
|
|
829
|
-
e.value.style.chart.layout.labels.hollow.total.show ? (o(), u("text", {
|
|
830
|
-
key: 1,
|
|
831
|
-
"text-anchor": "middle",
|
|
832
|
-
x: s.value.width / 2,
|
|
833
|
-
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,
|
|
834
|
-
fill: e.value.style.chart.layout.labels.hollow.total.value.color,
|
|
835
|
-
"font-size": e.value.style.chart.layout.labels.hollow.total.value.fontSize,
|
|
836
|
-
style: z(`font-weight:${e.value.style.chart.layout.labels.hollow.total.value.bold ? "bold" : ""}`)
|
|
837
|
-
}, C(n(A)(
|
|
838
|
-
e.value.style.chart.layout.labels.hollow.total.value.formatter,
|
|
839
|
-
S.value,
|
|
840
|
-
n(O)({
|
|
841
|
-
p: e.value.style.chart.layout.labels.hollow.total.value.prefix,
|
|
842
|
-
v: S.value,
|
|
843
|
-
s: e.value.style.chart.layout.labels.hollow.total.value.suffix
|
|
844
|
-
})
|
|
845
|
-
)), 13, Xl)) : i("", !0),
|
|
846
|
-
e.value.style.chart.layout.labels.hollow.average.show ? (o(), u("text", {
|
|
847
|
-
key: 2,
|
|
848
|
-
"text-anchor": "middle",
|
|
849
|
-
x: s.value.width / 2,
|
|
850
|
-
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,
|
|
851
|
-
fill: e.value.style.chart.layout.labels.hollow.average.color,
|
|
852
|
-
"font-size": e.value.style.chart.layout.labels.hollow.average.fontSize,
|
|
853
|
-
style: z(`font-weight:${e.value.style.chart.layout.labels.hollow.average.bold ? "bold" : ""}`)
|
|
854
|
-
}, C(e.value.style.chart.layout.labels.hollow.average.text), 13, Il)) : i("", !0),
|
|
855
|
-
e.value.style.chart.layout.labels.hollow.average.show ? (o(), u("text", {
|
|
856
|
-
key: 3,
|
|
857
|
-
"text-anchor": "middle",
|
|
858
|
-
x: s.value.width / 2,
|
|
859
|
-
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,
|
|
860
|
-
fill: e.value.style.chart.layout.labels.hollow.average.value.color,
|
|
861
|
-
"font-size": e.value.style.chart.layout.labels.hollow.average.value.fontSize,
|
|
862
|
-
style: z(`font-weight:${e.value.style.chart.layout.labels.hollow.average.value.bold ? "bold" : ""}`)
|
|
863
|
-
}, C(V.value ? "--" : n(A)(
|
|
864
|
-
e.value.style.chart.layout.labels.hollow.average.value.formatter,
|
|
865
|
-
Ie.value,
|
|
866
|
-
n(O)({
|
|
867
|
-
p: e.value.style.chart.layout.labels.hollow.average.value.prefix,
|
|
868
|
-
v: Ie.value,
|
|
869
|
-
s: e.value.style.chart.layout.labels.hollow.average.value.suffix,
|
|
870
|
-
r: e.value.style.chart.layout.labels.hollow.average.value.rounding
|
|
871
|
-
})
|
|
872
|
-
)), 13, Dl)) : i("", !0)
|
|
873
|
-
], 64)) : i("", !0),
|
|
874
|
-
(o(!0), u(b, null, F(h.value, (t, a) => (o(), u("g", {
|
|
875
|
-
filter: G(a),
|
|
876
|
-
class: de({ animated: e.value.useCssAnimation })
|
|
877
|
-
}, [
|
|
878
|
-
e.value.style.chart.layout.labels.dataLabels.useLabelSlots ? (o(), u("g", Bl, [
|
|
879
|
-
(o(), u("foreignObject", {
|
|
880
|
-
x: n(k)(t, !0).anchor === "end" ? n(k)(t).x - 120 : n(k)(t, !0).anchor === "middle" ? n(k)(t).x - 60 : n(k)(t).x,
|
|
881
|
-
y: n(ee)(t) - (Ve.value ? 20 : 0),
|
|
882
|
-
width: "120",
|
|
883
|
-
height: "60",
|
|
884
|
-
style: { overflow: "visible" }
|
|
885
|
-
}, [
|
|
886
|
-
p("div", null, [
|
|
887
|
-
g(l.$slots, "dataLabel", Ee({ ref_for: !0 }, {
|
|
888
|
-
datapoint: t,
|
|
889
|
-
isBlur: !e.value.useBlurOnHover || [null, void 0].includes(P.value) || P.value === a,
|
|
890
|
-
isSafari: Ve.value,
|
|
891
|
-
isVisible: Y(t) && f.value.dataLabels.show,
|
|
892
|
-
textAlign: n(k)(t, !0, 16, !0).anchor,
|
|
893
|
-
flexAlign: n(k)(t, !0, 16).anchor,
|
|
894
|
-
percentage: re(t, h.value)
|
|
895
|
-
}), void 0, !0)
|
|
896
|
-
])
|
|
897
|
-
], 8, Vl))
|
|
898
|
-
])) : (o(), u("g", Gl, [
|
|
899
|
-
e.value.type === "classic" ? (o(), u(b, { key: 0 }, [
|
|
900
|
-
Y(t) && f.value.dataLabels.show ? (o(), u("circle", {
|
|
901
|
-
key: 0,
|
|
902
|
-
cx: n(k)(t).x,
|
|
903
|
-
cy: n(ee)(t) - 3.5,
|
|
904
|
-
fill: t.color,
|
|
905
|
-
stroke: e.value.style.chart.backgroundColor,
|
|
906
|
-
"stroke-width": 1,
|
|
907
|
-
r: 3,
|
|
908
|
-
filter: !e.value.useBlurOnHover || [null, void 0].includes(P.value) || P.value === a ? "" : `url(#blur_${y.value})`,
|
|
909
|
-
onClick: (v) => M(t, a)
|
|
910
|
-
}, null, 8, Rl)) : i("", !0)
|
|
911
|
-
], 64)) : i("", !0),
|
|
912
|
-
e.value.type === "polar" ? (o(), u(b, { key: 1 }, [
|
|
913
|
-
Y(t) && f.value.dataLabels.show ? (o(), u("circle", {
|
|
914
|
-
key: 0,
|
|
915
|
-
cx: n(L)({ 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,
|
|
916
|
-
cy: n(L)({ 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,
|
|
917
|
-
fill: t.color,
|
|
918
|
-
stroke: e.value.style.chart.backgroundColor,
|
|
919
|
-
"stroke-width": 1,
|
|
920
|
-
r: 3,
|
|
921
|
-
filter: !e.value.useBlurOnHover || [null, void 0].includes(P.value) || P.value === a ? "" : `url(#blur_${y.value})`,
|
|
922
|
-
onClick: (v) => M(t, a)
|
|
923
|
-
}, null, 8, Ul)) : i("", !0)
|
|
924
|
-
], 64)) : i("", !0),
|
|
925
|
-
e.value.type === "classic" ? (o(), u(b, { key: 2 }, [
|
|
926
|
-
Y(t) && f.value.dataLabels.show ? (o(), u("text", {
|
|
927
|
-
key: 0,
|
|
928
|
-
"text-anchor": n(k)(t, !0, 12).anchor,
|
|
929
|
-
x: n(k)(t, !0, 12).x,
|
|
930
|
-
y: n(ee)(t),
|
|
931
|
-
fill: e.value.style.chart.layout.labels.percentage.color,
|
|
932
|
-
"font-size": e.value.style.chart.layout.labels.percentage.fontSize,
|
|
933
|
-
style: z(`font-weight:${e.value.style.chart.layout.labels.percentage.bold ? "bold" : ""}`),
|
|
934
|
-
onClick: (v) => M(t, a)
|
|
935
|
-
}, C(re(t, h.value)) + " " + C(e.value.style.chart.layout.labels.value.show ? `(${n(A)(
|
|
936
|
-
e.value.style.chart.layout.labels.value.formatter,
|
|
937
|
-
t.value,
|
|
938
|
-
n(O)({
|
|
939
|
-
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
940
|
-
v: t.value,
|
|
941
|
-
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
942
|
-
r: e.value.style.chart.layout.labels.value.rounding
|
|
943
|
-
}),
|
|
944
|
-
{ datapoint: t }
|
|
945
|
-
)})` : ""), 13, jl)) : i("", !0),
|
|
946
|
-
Y(t) && f.value.dataLabels.show ? (o(), u("text", {
|
|
947
|
-
key: 1,
|
|
948
|
-
"text-anchor": n(k)(t).anchor,
|
|
949
|
-
x: n(k)(t, !0, 12).x,
|
|
950
|
-
y: n(ee)(t) + e.value.style.chart.layout.labels.percentage.fontSize,
|
|
951
|
-
fill: e.value.style.chart.layout.labels.name.color,
|
|
952
|
-
"font-size": e.value.style.chart.layout.labels.name.fontSize,
|
|
953
|
-
style: z(`font-weight:${e.value.style.chart.layout.labels.name.bold ? "bold" : ""}`),
|
|
954
|
-
onClick: (v) => M(t, a)
|
|
955
|
-
}, C(t.name), 13, Wl)) : i("", !0)
|
|
956
|
-
], 64)) : i("", !0),
|
|
957
|
-
e.value.type === "polar" ? (o(), u(b, { key: 3 }, [
|
|
958
|
-
Y(t) && f.value.dataLabels.show ? (o(), u("text", {
|
|
959
|
-
key: 0,
|
|
960
|
-
"text-anchor": j(c.value[a].middlePoint),
|
|
961
|
-
x: n(L)({ 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,
|
|
962
|
-
y: n(L)({ 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,
|
|
963
|
-
fill: e.value.style.chart.layout.labels.percentage.color,
|
|
964
|
-
"font-size": e.value.style.chart.layout.labels.percentage.fontSize,
|
|
965
|
-
style: z(`font-weight:${e.value.style.chart.layout.labels.percentage.bold ? "bold" : ""}`),
|
|
966
|
-
onClick: (v) => M(t, a)
|
|
967
|
-
}, C(re(t, h.value)) + " " + C(e.value.style.chart.layout.labels.value.show ? `(${n(A)(
|
|
968
|
-
e.value.style.chart.layout.labels.value.formatter,
|
|
969
|
-
t.value,
|
|
970
|
-
n(O)({
|
|
971
|
-
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
972
|
-
v: t.value,
|
|
973
|
-
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
974
|
-
r: e.value.style.chart.layout.labels.value.rounding
|
|
975
|
-
}),
|
|
976
|
-
{ datapoint: t }
|
|
977
|
-
)})` : ""), 13, El)) : i("", !0),
|
|
978
|
-
Y(t) && f.value.dataLabels.show ? (o(), u("text", {
|
|
979
|
-
key: 1,
|
|
980
|
-
"text-anchor": j(c.value[a].middlePoint),
|
|
981
|
-
x: n(L)({ 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,
|
|
982
|
-
y: n(L)({ 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,
|
|
983
|
-
fill: e.value.style.chart.layout.labels.name.color,
|
|
984
|
-
"font-size": e.value.style.chart.layout.labels.name.fontSize,
|
|
985
|
-
style: z(`font-weight:${e.value.style.chart.layout.labels.name.bold ? "bold" : ""}`),
|
|
986
|
-
onClick: (v) => M(t, a)
|
|
987
|
-
}, C(t.name), 13, Hl)) : i("", !0)
|
|
988
|
-
], 64)) : i("", !0)
|
|
989
|
-
])),
|
|
990
|
-
f.value.dataLabels.show && e.value.style.chart.comments.show && t.comment ? (o(), u("g", ql, [
|
|
991
|
-
Y(t) && e.value.type === "classic" ? (o(), u("foreignObject", {
|
|
992
|
-
key: 0,
|
|
993
|
-
x: e.value.style.chart.comments.offsetX + (n(k)(t, !0).anchor === "end" ? n(k)(t).x - e.value.style.chart.comments.width : n(k)(t, !0).anchor === "middle" ? n(k)(t).x - e.value.style.chart.comments.width / 2 : n(k)(t).x),
|
|
994
|
-
y: n(ee)(t) + 24 + e.value.style.chart.comments.offsetY,
|
|
995
|
-
width: e.value.style.chart.comments.width,
|
|
996
|
-
height: "200",
|
|
997
|
-
style: { overflow: "visible", "pointer-events": "none" }
|
|
998
|
-
}, [
|
|
999
|
-
p("div", null, [
|
|
1000
|
-
g(l.$slots, "plot-comment", {
|
|
1001
|
-
plot: { ...t, textAlign: n(k)(t, !0, 16, !0).anchor, flexAlign: n(k)(t, !0, 16).anchor }
|
|
1002
|
-
}, void 0, !0)
|
|
1003
|
-
])
|
|
1004
|
-
], 8, Jl)) : i("", !0),
|
|
1005
|
-
Y(t) && e.value.type === "polar" ? (o(), u("foreignObject", {
|
|
1006
|
-
key: 1,
|
|
1007
|
-
x: e.value.style.chart.comments.offsetX + (j(c.value[a].middlePoint) === "end" ? n(L)({ 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" ? n(L)({ 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 : n(L)({ 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),
|
|
1008
|
-
y: nt(c.value[a]) + e.value.style.chart.comments.offsetY,
|
|
1009
|
-
width: e.value.style.chart.comments.width,
|
|
1010
|
-
height: "200",
|
|
1011
|
-
style: { overflow: "visible", "pointer-events": "none" }
|
|
1012
|
-
}, [
|
|
1013
|
-
p("div", null, [
|
|
1014
|
-
g(l.$slots, "plot-comment", {
|
|
1015
|
-
plot: { ...t, textAlign: j(c.value[a].middlePoint), flexAlign: j(c.value[a].middlePoint) }
|
|
1016
|
-
}, void 0, !0)
|
|
1017
|
-
])
|
|
1018
|
-
], 8, Kl)) : i("", !0)
|
|
1019
|
-
])) : i("", !0)
|
|
1020
|
-
], 10, Ml))), 256)),
|
|
1021
|
-
g(l.$slots, "svg", { svg: s.value }, void 0, !0)
|
|
1022
|
-
], 14, Et)) : i("", !0),
|
|
1023
|
-
l.$slots.watermark ? (o(), u("div", Ql, [
|
|
1024
|
-
g(l.$slots, "watermark", E(H({ isPrinting: n(Se) || n(Fe) })), void 0, !0)
|
|
1025
|
-
])) : i("", !0),
|
|
1026
|
-
q.value ? i("", !0) : (o(), R(Dt, {
|
|
1027
|
-
key: 6,
|
|
1028
|
-
config: {
|
|
1029
|
-
type: "donut",
|
|
1030
|
-
style: {
|
|
1031
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
1032
|
-
donut: {
|
|
1033
|
-
color: "#CCCCCC",
|
|
1034
|
-
strokeWidth: K.value * 0.8
|
|
1035
|
-
}
|
|
1036
|
-
}
|
|
1037
|
-
}
|
|
1038
|
-
}, null, 8, ["config"])),
|
|
1039
|
-
p("div", {
|
|
1040
|
-
ref_key: "chartLegend",
|
|
1041
|
-
ref: fe
|
|
1042
|
-
}, [
|
|
1043
|
-
e.value.style.chart.legend.show ? (o(), R(It, {
|
|
1044
|
-
key: `legend_${we.value}`,
|
|
1045
|
-
legendSet: Xe.value,
|
|
1046
|
-
config: st.value,
|
|
1047
|
-
onClickMarker: r[4] || (r[4] = ({ i: t }) => Ne(t))
|
|
1048
|
-
}, We({
|
|
1049
|
-
item: x(({ legend: t, index: a }) => [
|
|
1050
|
-
p("div", {
|
|
1051
|
-
style: z(`opacity:${X.value.includes(a) ? 0.5 : 1}`),
|
|
1052
|
-
onClick: (v) => t.segregate()
|
|
1053
|
-
}, [
|
|
1054
|
-
He(C(t.name) + ": " + C(n(A)(
|
|
1055
|
-
e.value.style.chart.layout.labels.value.formatter,
|
|
1056
|
-
t.value,
|
|
1057
|
-
n(O)({
|
|
1058
|
-
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
1059
|
-
v: t.value,
|
|
1060
|
-
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
1061
|
-
r: e.value.style.chart.legend.roundingValue
|
|
1062
|
-
}),
|
|
1063
|
-
{
|
|
1064
|
-
datapoint: t,
|
|
1065
|
-
index: a
|
|
1066
|
-
}
|
|
1067
|
-
)) + " ", 1),
|
|
1068
|
-
X.value.includes(a) ? (o(), u("span", ta, " ( " + C(vt(t.proportion * 100)) + " % ) ", 1)) : (o(), u("span", ea, " (" + C(isNaN(t.value / S.value) ? "-" : n(A)(
|
|
1069
|
-
e.value.style.chart.layout.labels.percentage.formatter,
|
|
1070
|
-
De.value(t),
|
|
1071
|
-
n(O)({
|
|
1072
|
-
v: De.value(t),
|
|
1073
|
-
s: "%",
|
|
1074
|
-
r: e.value.style.chart.legend.roundingPercentage
|
|
1075
|
-
})
|
|
1076
|
-
)) + ") ", 1))
|
|
1077
|
-
], 12, Zl)
|
|
1078
|
-
]),
|
|
1079
|
-
_: 2
|
|
1080
|
-
}, [
|
|
1081
|
-
l.$slots.pattern ? {
|
|
1082
|
-
name: "legend-pattern",
|
|
1083
|
-
fn: x(({ legend: t, index: a }) => [
|
|
1084
|
-
he(Rt, {
|
|
1085
|
-
shape: t.shape,
|
|
1086
|
-
radius: 30,
|
|
1087
|
-
stroke: "none",
|
|
1088
|
-
plot: { x: 30, y: 30 },
|
|
1089
|
-
fill: `url(#pattern_${y.value}_${a})`
|
|
1090
|
-
}, null, 8, ["shape", "fill"])
|
|
1091
|
-
]),
|
|
1092
|
-
key: "0"
|
|
1093
|
-
} : void 0
|
|
1094
|
-
]), 1032, ["legendSet", "config"])) : i("", !0),
|
|
1095
|
-
g(l.$slots, "legend", { legend: Xe.value }, void 0, !0)
|
|
1096
|
-
], 512),
|
|
1097
|
-
l.$slots.source ? (o(), u("div", {
|
|
1098
|
-
key: 7,
|
|
1099
|
-
ref_key: "source",
|
|
1100
|
-
ref: pe,
|
|
1101
|
-
dir: "auto"
|
|
1102
|
-
}, [
|
|
1103
|
-
g(l.$slots, "source", {}, void 0, !0)
|
|
1104
|
-
], 512)) : i("", !0),
|
|
1105
|
-
he(Xt, {
|
|
1106
|
-
show: f.value.showTooltip && le.value,
|
|
1107
|
-
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
1108
|
-
color: e.value.style.chart.tooltip.color,
|
|
1109
|
-
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
1110
|
-
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
1111
|
-
borderColor: e.value.style.chart.tooltip.borderColor,
|
|
1112
|
-
borderWidth: e.value.style.chart.tooltip.borderWidth,
|
|
1113
|
-
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
1114
|
-
position: e.value.style.chart.tooltip.position,
|
|
1115
|
-
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
1116
|
-
parent: J.value,
|
|
1117
|
-
content: ue.value,
|
|
1118
|
-
isCustom: Q.value,
|
|
1119
|
-
isFullscreen: W.value
|
|
1120
|
-
}, {
|
|
1121
|
-
"tooltip-before": x(() => [
|
|
1122
|
-
g(l.$slots, "tooltip-before", E(H({ ...ie.value })), void 0, !0)
|
|
1123
|
-
]),
|
|
1124
|
-
"tooltip-after": x(() => [
|
|
1125
|
-
g(l.$slots, "tooltip-after", E(H({ ...ie.value })), void 0, !0)
|
|
1126
|
-
]),
|
|
1127
|
-
_: 3
|
|
1128
|
-
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen"]),
|
|
1129
|
-
q.value ? (o(), R(Mt, {
|
|
1130
|
-
key: 8,
|
|
1131
|
-
hideDetails: "",
|
|
1132
|
-
config: {
|
|
1133
|
-
open: f.value.showTable,
|
|
1134
|
-
maxHeight: 1e4,
|
|
1135
|
-
body: {
|
|
1136
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
1137
|
-
color: e.value.style.chart.color
|
|
1138
|
-
},
|
|
1139
|
-
head: {
|
|
1140
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
1141
|
-
color: e.value.style.chart.color
|
|
1142
|
-
}
|
|
1143
|
-
}
|
|
1144
|
-
}, {
|
|
1145
|
-
content: x(() => [
|
|
1146
|
-
(o(), R(Nt, {
|
|
1147
|
-
key: `table_${me.value}`,
|
|
1148
|
-
colNames: ae.value.colNames,
|
|
1149
|
-
head: ae.value.head,
|
|
1150
|
-
body: ae.value.body,
|
|
1151
|
-
config: ae.value.config,
|
|
1152
|
-
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
1153
|
-
onClose: r[5] || (r[5] = (t) => f.value.showTable = !1)
|
|
1154
|
-
}, {
|
|
1155
|
-
th: x(({ th: t }) => [
|
|
1156
|
-
p("div", {
|
|
1157
|
-
innerHTML: t,
|
|
1158
|
-
style: { display: "flex", "align-items": "center" }
|
|
1159
|
-
}, null, 8, la)
|
|
1160
|
-
]),
|
|
1161
|
-
td: x(({ td: t }) => [
|
|
1162
|
-
He(C(t.name ? t.name : isNaN(Number(t)) ? t.includes("%") ? t : n(A)(
|
|
1163
|
-
e.value.style.chart.layout.labels.percentage.formatter,
|
|
1164
|
-
t,
|
|
1165
|
-
n(O)({
|
|
1166
|
-
v: t,
|
|
1167
|
-
s: "%",
|
|
1168
|
-
r: e.value.style.chart.layout.labels.percentage.rounding
|
|
1169
|
-
})
|
|
1170
|
-
) : n(A)(
|
|
1171
|
-
e.value.style.chart.layout.labels.value.formatter,
|
|
1172
|
-
t,
|
|
1173
|
-
n(O)({
|
|
1174
|
-
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
1175
|
-
v: t,
|
|
1176
|
-
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
1177
|
-
r: e.value.style.chart.layout.labels.value.rounding
|
|
1178
|
-
})
|
|
1179
|
-
)), 1)
|
|
1180
|
-
]),
|
|
1181
|
-
_: 1
|
|
1182
|
-
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
1183
|
-
]),
|
|
1184
|
-
_: 1
|
|
1185
|
-
}, 8, ["config"])) : i("", !0)
|
|
1186
|
-
], 46, Wt));
|
|
1187
|
-
}
|
|
1188
|
-
}, ka = /* @__PURE__ */ jt(aa, [["__scopeId", "data-v-f24dec2a"]]);
|
|
1189
|
-
export {
|
|
1190
|
-
ka as default
|
|
1191
|
-
};
|