vue-data-ui 2.4.1 → 2.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +44 -44
- package/dist/{Arrow-BIs_9yK8.js → Arrow-C7lNL7sY.js} +1 -1
- package/dist/{Arrow-DpMf3yPs.cjs → Arrow-Dz6AomGr.cjs} +1 -1
- package/dist/{BaseIcon-CXDdkPfN.js → BaseIcon-BbvG1AlW.js} +7 -4
- package/dist/BaseIcon-uALK38Ov.cjs +1 -0
- package/dist/{DataTable-BTgMVOwp.cjs → DataTable-DTzynbND.cjs} +1 -1
- package/dist/{DataTable-DL2agEJ3.js → DataTable-DYqC2pqu.js} +2 -2
- package/dist/{Legend-Dj9KiaLv.cjs → Legend-Cgw4lO2O.cjs} +1 -1
- package/dist/{Legend-DXLiSLHd.js → Legend-DNgTCgEK.js} +1 -1
- package/dist/{PackageVersion-D4D0WicU.cjs → PackageVersion-DwI-KhXH.cjs} +1 -1
- package/dist/{PackageVersion-DtnhR89q.js → PackageVersion-VkaUzgmt.js} +1 -1
- package/dist/PenAndPaper-CDFVOo7X.cjs +1 -0
- package/dist/PenAndPaper-DAZYA8Ew.js +269 -0
- package/dist/{Shape-CO_Ak9Zm.js → Shape-Bwon0l0g.js} +1 -1
- package/dist/{Shape-7EC2UKDK.cjs → Shape-D2Dpshg1.cjs} +1 -1
- package/dist/{Slicer-BZfUZr1J.js → Slicer-TfpN2Cr4.js} +3 -3
- package/dist/{Slicer-CLAVjSQP.cjs → Slicer-uSjfNJjG.cjs} +1 -1
- package/dist/{Title-C-lm3Mkl.cjs → Title-0Tp4hZ4u.cjs} +1 -1
- package/dist/{Title-DYNLqCCT.js → Title-C5pIfQAz.js} +1 -1
- package/dist/{Tooltip-t-3mVhcz.cjs → Tooltip-9Tp2Yrd1.cjs} +1 -1
- package/dist/{Tooltip-CICAYyQj.js → Tooltip-Cz24YLfw.js} +1 -1
- package/dist/{index-DDXisDKy.js → index-Bya_q1J-.js} +883 -842
- package/dist/index-eFox7weK.cjs +9 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +22 -17
- package/dist/types/vue-data-ui.d.ts +22 -17
- package/dist/{useNestedProp-S1UXxUgm.js → useNestedProp-B33hazbH.js} +1 -1
- package/dist/{useNestedProp-CC9zGr7C.cjs → useNestedProp-BkgEhTQY.cjs} +1 -1
- package/dist/usePrinter-CSRFnDBU.cjs +1 -0
- package/dist/{usePrinter-8ofTb2MJ.js → usePrinter-CiHd1FwD.js} +230 -185
- package/dist/useResponsive-BY8tgM1n.js +188 -0
- package/dist/useResponsive-CodiGUOE.cjs +1 -0
- package/dist/vue-data-ui-BTtxyUc3.cjs +9 -0
- package/dist/vue-data-ui-Bduq4f2p.js +261 -0
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/vue-ui-3d-bar-B-P7PMHs.cjs +19 -0
- package/dist/{vue-ui-3d-bar-DcF1nyGW.js → vue-ui-3d-bar-BUEq_VdY.js} +421 -390
- package/dist/{vue-ui-accordion-D_1fE5EF.js → vue-ui-accordion-DfUfL2dI.js} +3 -3
- package/dist/{vue-ui-accordion-Cc9958th.cjs → vue-ui-accordion-TEMpM1hO.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-Oe_yHDL0.js → vue-ui-age-pyramid-CH72tAMb.js} +255 -222
- package/dist/vue-ui-age-pyramid-DsbZ1qcQ.cjs +1 -0
- package/dist/{vue-ui-annotator-Dix6_Gm6.js → vue-ui-annotator-DPeJ2its.js} +1 -1
- package/dist/{vue-ui-annotator-Dbp6cWMr.cjs → vue-ui-annotator-DU_DJKCw.cjs} +1 -1
- package/dist/vue-ui-bullet-CtP3MlUT.js +464 -0
- package/dist/vue-ui-bullet-D8ks_rKr.cjs +34 -0
- package/dist/vue-ui-candlestick-D1jdr0bv.cjs +2 -0
- package/dist/{vue-ui-candlestick-CRwzWF6j.js → vue-ui-candlestick-DDil13a0.js} +278 -245
- package/dist/{vue-ui-carousel-table-BHeEbRKY.js → vue-ui-carousel-table-BaeIxyc0.js} +76 -69
- package/dist/vue-ui-carousel-table-C7SJIOG-.cjs +1 -0
- package/dist/{vue-ui-chestnut-CRk0RCB9.js → vue-ui-chestnut-BczSJF6S.js} +322 -291
- package/dist/vue-ui-chestnut-ih5r0Bj9.cjs +6 -0
- package/dist/{vue-ui-cursor-lU1rts1B.cjs → vue-ui-cursor-C2Pj_CI_.cjs} +1 -1
- package/dist/{vue-ui-cursor-y0kdr0uA.js → vue-ui-cursor-Dg_Dmww-.js} +2 -2
- package/dist/{vue-ui-dashboard-OyihaKdu.js → vue-ui-dashboard-Bul9dqx1.js} +2 -2
- package/dist/{vue-ui-dashboard-BfC0jS-X.cjs → vue-ui-dashboard-Cg020NiT.cjs} +1 -1
- package/dist/{vue-ui-digits-IKt4qT2-.js → vue-ui-digits-B8iAa4YZ.js} +2 -2
- package/dist/{vue-ui-digits-BJfcAiq_.cjs → vue-ui-digits-Ctgd84JR.cjs} +1 -1
- package/dist/vue-ui-donut-D7KT9EAp.cjs +1 -0
- package/dist/{vue-ui-donut-DFaGk4fI.js → vue-ui-donut-DUcp-fat.js} +376 -343
- package/dist/vue-ui-donut-evolution-CHtJ8iOK.cjs +1 -0
- package/dist/{vue-ui-donut-evolution-Dd4o37RP.js → vue-ui-donut-evolution-C_YMbTwq.js} +375 -344
- package/dist/vue-ui-dumbbell-B0dikuqO.cjs +9 -0
- package/dist/{vue-ui-dumbbell-B7j1_JoQ.js → vue-ui-dumbbell-Buwngz_V.js} +294 -261
- package/dist/vue-ui-flow-Bz3c0K5P.js +515 -0
- package/dist/vue-ui-flow-D6rc8J-8.cjs +1 -0
- package/dist/{vue-ui-galaxy-CH1BDtWl.js → vue-ui-galaxy-Cjh0XGTX.js} +212 -181
- package/dist/vue-ui-galaxy-CmTt0vBf.cjs +1 -0
- package/dist/vue-ui-gauge-B1UvGkQa.js +527 -0
- package/dist/vue-ui-gauge-B_TKuyM7.cjs +1 -0
- package/dist/{vue-ui-gizmo-DVwQaEH1.cjs → vue-ui-gizmo-DFW6HnHp.cjs} +1 -1
- package/dist/{vue-ui-gizmo-CKQcbe_7.js → vue-ui-gizmo-DUQ4t-At.js} +3 -3
- package/dist/{vue-ui-heatmap-B-zWMk0Y.js → vue-ui-heatmap-C-poazUw.js} +308 -277
- package/dist/vue-ui-heatmap-C2HlnqzO.cjs +1 -0
- package/dist/{vue-ui-kpi-CghbfSdM.js → vue-ui-kpi-DXe-vxAk.js} +3 -3
- package/dist/{vue-ui-kpi-CuY3xlVq.cjs → vue-ui-kpi-Z4Oi4raz.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-C7roqZ4p.js → vue-ui-mini-loader-BVtHTqxS.js} +2 -2
- package/dist/{vue-ui-mini-loader-CH_PfeDc.cjs → vue-ui-mini-loader-MMvpm9pz.cjs} +1 -1
- package/dist/vue-ui-molecule-BaJpDZND.js +805 -0
- package/dist/vue-ui-molecule-BiYIcOKN.cjs +1 -0
- package/dist/{vue-ui-mood-radar-DSznHxLS.js → vue-ui-mood-radar-BUNDwsEI.js} +259 -228
- package/dist/vue-ui-mood-radar-C6jMyFkb.cjs +1 -0
- package/dist/vue-ui-nested-donuts-DKO2dFKo.cjs +17 -0
- package/dist/{vue-ui-nested-donuts-CiE4DdEQ.js → vue-ui-nested-donuts-mDy2hXa6.js} +371 -338
- package/dist/vue-ui-onion-DwFG3HAI.js +650 -0
- package/dist/vue-ui-onion-GWNoZRhw.cjs +5 -0
- package/dist/vue-ui-parallel-coordinate-plot-DODn4Ohf.cjs +8 -0
- package/dist/vue-ui-parallel-coordinate-plot-ImET_zeo.js +719 -0
- package/dist/{vue-ui-quadrant-Cs3A77us.js → vue-ui-quadrant-BeveRihK.js} +359 -326
- package/dist/vue-ui-quadrant-yuFAxV-5.cjs +1 -0
- package/dist/{vue-ui-quick-chart-CiiSUexi.js → vue-ui-quick-chart-DAhllTfa.js} +585 -552
- package/dist/vue-ui-quick-chart-DgFDBzjS.cjs +15 -0
- package/dist/vue-ui-radar-BJH5SE6-.cjs +1 -0
- package/dist/{vue-ui-radar-CNSpiNrM.js → vue-ui-radar-BllatzRa.js} +279 -246
- package/dist/{vue-ui-rating-GoUNDOdZ.cjs → vue-ui-rating-BoZo7caL.cjs} +1 -1
- package/dist/{vue-ui-rating-b_iYZWF8.js → vue-ui-rating-D1ykV4xO.js} +2 -2
- package/dist/vue-ui-relation-circle-CKmjOle7.cjs +1 -0
- package/dist/vue-ui-relation-circle-xv2l5Be9.js +358 -0
- package/dist/vue-ui-rings-B-ZcX6y1.js +602 -0
- package/dist/vue-ui-rings-DjH3CK23.cjs +2 -0
- package/dist/{vue-ui-scatter-CVuoW-cD.js → vue-ui-scatter-DG43ck1g.js} +440 -407
- package/dist/vue-ui-scatter-SBCXAl7q.cjs +1 -0
- package/dist/{vue-ui-screenshot-Co2o48d6.cjs → vue-ui-screenshot-C1JBP_N0.cjs} +1 -1
- package/dist/{vue-ui-screenshot-Csc0dQL9.js → vue-ui-screenshot-p3ca8cAl.js} +1 -1
- package/dist/{vue-ui-skeleton-B2sRnIXX.js → vue-ui-skeleton-BYssP0K4.js} +419 -379
- package/dist/vue-ui-skeleton-BqKzuhkB.cjs +41 -0
- package/dist/{vue-ui-smiley-Ci3uMgVh.cjs → vue-ui-smiley-BXKVpHl2.cjs} +1 -1
- package/dist/{vue-ui-smiley-D4s-AdIE.js → vue-ui-smiley-D7dDCdpq.js} +2 -2
- package/dist/vue-ui-spark-trend-9V60hM3Z.cjs +1 -0
- package/dist/{vue-ui-spark-trend-CHKQGMLs.js → vue-ui-spark-trend-GWFrO_0z.js} +86 -79
- package/dist/vue-ui-sparkbar-Bgn6AY0q.cjs +1 -0
- package/dist/{vue-ui-sparkbar-Bb1fq2GR.js → vue-ui-sparkbar-CwqlyAyv.js} +90 -83
- package/dist/vue-ui-sparkgauge-Dqntz2Zv.cjs +1 -0
- package/dist/{vue-ui-sparkgauge-DWuaAQbo.js → vue-ui-sparkgauge-F2XbiXyA.js} +57 -50
- package/dist/{vue-ui-sparkhistogram-CjeJ3ch1.js → vue-ui-sparkhistogram-DRIKK6Ym.js} +74 -67
- package/dist/vue-ui-sparkhistogram-DnY4-Sdn.cjs +1 -0
- package/dist/vue-ui-sparkline-CAEs-gtK.cjs +1 -0
- package/dist/{vue-ui-sparkline-DGJDBArr.js → vue-ui-sparkline-Cxtzdlhi.js} +134 -125
- package/dist/{vue-ui-sparkstackbar-B3ul3qUZ.js → vue-ui-sparkstackbar-0A1klq9s.js} +84 -77
- package/dist/vue-ui-sparkstackbar-D37ms1rx.cjs +1 -0
- package/dist/vue-ui-stackbar-ByOuJSdM.js +947 -0
- package/dist/vue-ui-stackbar-wun4S3C0.cjs +6 -0
- package/dist/{vue-ui-strip-plot-CIb2LSV8.js → vue-ui-strip-plot-CMD0MSqY.js} +297 -264
- package/dist/vue-ui-strip-plot-IQrypGvz.cjs +1 -0
- package/dist/{vue-ui-table-CmVi0nv2.js → vue-ui-table-B75DJ39t.js} +1 -1
- package/dist/{vue-ui-table-B_sFrAO9.cjs → vue-ui-table-aj0XZ7T5.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-CgFr38QT.js → vue-ui-table-heatmap-BO2ugWqD.js} +55 -48
- package/dist/vue-ui-table-heatmap-Ce93TyBF.cjs +1 -0
- package/dist/{vue-ui-table-sparkline-eg2Qd8ws.js → vue-ui-table-sparkline-CbjfAaj2.js} +88 -81
- package/dist/vue-ui-table-sparkline-D6KJjDnU.cjs +1 -0
- package/dist/vue-ui-thermometer-Pq4PvSIP.js +447 -0
- package/dist/vue-ui-thermometer-swmi4FmH.cjs +1 -0
- package/dist/{vue-ui-timer-DM1IStj1.cjs → vue-ui-timer-B6IB6yS6.cjs} +1 -1
- package/dist/{vue-ui-timer-COSI3Q5T.js → vue-ui-timer-Bk3BvB-B.js} +6 -6
- package/dist/vue-ui-tiremarks-CU9HJIqf.js +310 -0
- package/dist/vue-ui-tiremarks-Cn79uQH2.cjs +1 -0
- package/dist/vue-ui-treemap-BEMuKV7x.cjs +1 -0
- package/dist/vue-ui-treemap-DY-lRAhC.js +825 -0
- package/dist/vue-ui-vertical-bar-B1e2RxTv.cjs +4 -0
- package/dist/vue-ui-vertical-bar-CtnIKsM1.js +861 -0
- package/dist/vue-ui-waffle-BqP7Okgu.cjs +1 -0
- package/dist/vue-ui-waffle-reOsx-gJ.js +791 -0
- package/dist/vue-ui-wheel-BuWUGnkC.cjs +1 -0
- package/dist/vue-ui-wheel-kYxny3vn.js +291 -0
- package/dist/vue-ui-word-cloud-DbMqrHAf.js +607 -0
- package/dist/vue-ui-word-cloud-DwLY4QdB.cjs +1 -0
- package/dist/vue-ui-xy-CGWzriYn.cjs +3 -0
- package/dist/{vue-ui-xy-canvas-BYdTxzi6.js → vue-ui-xy-canvas-B0HTR7OV.js} +441 -408
- package/dist/vue-ui-xy-canvas-CgJd5FiT.cjs +9 -0
- package/dist/{vue-ui-xy-x8KEsGV-.js → vue-ui-xy-rbACig0h.js} +824 -791
- package/package.json +1 -1
- package/dist/BaseIcon-E7FmzMcY.cjs +0 -1
- package/dist/index-C7_6YjWN.cjs +0 -9
- package/dist/usePrinter-8EP4iaGm.cjs +0 -1
- package/dist/useResponsive-B3TrDDIG.cjs +0 -1
- package/dist/useResponsive-NZB-WLRF.js +0 -187
- package/dist/vue-data-ui-4Yd255Ia.cjs +0 -9
- package/dist/vue-data-ui-Cp7bO_tj.js +0 -258
- package/dist/vue-ui-3d-bar-BeR2aBgQ.cjs +0 -19
- package/dist/vue-ui-age-pyramid-R-C4P4mI.cjs +0 -1
- package/dist/vue-ui-bullet-CQKaC4wG.js +0 -409
- package/dist/vue-ui-bullet-DSZox236.cjs +0 -23
- package/dist/vue-ui-candlestick-Dilozp3V.cjs +0 -2
- package/dist/vue-ui-carousel-table-C0GDDSW9.cjs +0 -1
- package/dist/vue-ui-chestnut-DdEcEI04.cjs +0 -6
- package/dist/vue-ui-donut-DTSVlGMg.cjs +0 -1
- package/dist/vue-ui-donut-evolution-BuUafabD.cjs +0 -1
- package/dist/vue-ui-dumbbell-CVfgnyKi.cjs +0 -9
- package/dist/vue-ui-flow-C45dODaB.cjs +0 -1
- package/dist/vue-ui-flow-DkPTzNv9.js +0 -484
- package/dist/vue-ui-galaxy-DlPavMK0.cjs +0 -1
- package/dist/vue-ui-gauge-BXiy515T.js +0 -494
- package/dist/vue-ui-gauge-vMFUYHYH.cjs +0 -1
- package/dist/vue-ui-heatmap-CMQqQnxc.cjs +0 -1
- package/dist/vue-ui-molecule-BwmkMEVN.js +0 -774
- package/dist/vue-ui-molecule-nOuD0hR5.cjs +0 -1
- package/dist/vue-ui-mood-radar-Bof_C9Ae.cjs +0 -1
- package/dist/vue-ui-nested-donuts-DIb6YyWv.cjs +0 -17
- package/dist/vue-ui-onion-D9o6Rcgu.js +0 -617
- package/dist/vue-ui-onion-N3tRNc4u.cjs +0 -5
- package/dist/vue-ui-parallel-coordinate-plot-BcYrYXhG.js +0 -686
- package/dist/vue-ui-parallel-coordinate-plot-qKGk2bX6.cjs +0 -8
- package/dist/vue-ui-quadrant-Do48rGrX.cjs +0 -1
- package/dist/vue-ui-quick-chart-BxU4d-sJ.cjs +0 -15
- package/dist/vue-ui-radar-CooAvwPA.cjs +0 -1
- package/dist/vue-ui-relation-circle-nRf1pvD0.js +0 -325
- package/dist/vue-ui-relation-circle-uNgJni4x.cjs +0 -1
- package/dist/vue-ui-rings-BgRc1o4_.js +0 -569
- package/dist/vue-ui-rings-iIgQI9Ws.cjs +0 -2
- package/dist/vue-ui-scatter-CkrpmLxP.cjs +0 -1
- package/dist/vue-ui-skeleton-CGV1dEUD.cjs +0 -41
- package/dist/vue-ui-spark-trend-BfoEoJEy.cjs +0 -1
- package/dist/vue-ui-sparkbar-DB2DeXti.cjs +0 -1
- package/dist/vue-ui-sparkgauge-CJepIY2u.cjs +0 -1
- package/dist/vue-ui-sparkhistogram-B7B36LLT.cjs +0 -1
- package/dist/vue-ui-sparkline-BcqmwDAb.cjs +0 -1
- package/dist/vue-ui-sparkstackbar-DT3aKNeV.cjs +0 -1
- package/dist/vue-ui-stackbar-CRcUugkl.cjs +0 -6
- package/dist/vue-ui-stackbar-DNROvZII.js +0 -915
- package/dist/vue-ui-strip-plot-Ck9Fmt_b.cjs +0 -1
- package/dist/vue-ui-table-heatmap-Chvdf2Gi.cjs +0 -1
- package/dist/vue-ui-table-sparkline-DUUYQ5dH.cjs +0 -1
- package/dist/vue-ui-thermometer-BFfN4aat.cjs +0 -1
- package/dist/vue-ui-thermometer-BePmFiwy.js +0 -416
- package/dist/vue-ui-tiremarks-BkYXzU3R.cjs +0 -1
- package/dist/vue-ui-tiremarks-d6TmSHY7.js +0 -279
- package/dist/vue-ui-treemap-BgeZnbl3.cjs +0 -1
- package/dist/vue-ui-treemap-Qg0858o6.js +0 -792
- package/dist/vue-ui-vertical-bar-CieqHVD5.js +0 -828
- package/dist/vue-ui-vertical-bar-D3atbdvl.cjs +0 -4
- package/dist/vue-ui-waffle-CD7C9Lu4.cjs +0 -1
- package/dist/vue-ui-waffle-CjNhM-mV.js +0 -758
- package/dist/vue-ui-wheel-B8mbO6ht.js +0 -258
- package/dist/vue-ui-wheel-CYmM7J61.cjs +0 -1
- package/dist/vue-ui-word-cloud-DMXrUmX5.js +0 -574
- package/dist/vue-ui-word-cloud-Dm9yZ1zQ.cjs +0 -1
- package/dist/vue-ui-xy-DoWnidom.cjs +0 -3
- package/dist/vue-ui-xy-canvas-DHs5sb3t.cjs +0 -9
|
@@ -1,569 +0,0 @@
|
|
|
1
|
-
import { ref as u, computed as d, watch as Fe, onMounted as Oe, onBeforeUnmount as Me, openBlock as n, createElementBlock as m, normalizeClass as B, normalizeStyle as O, createBlock as x, createCommentVNode as N, unref as i, createSlots as ze, withCtx as h, renderSlot as f, normalizeProps as D, guardReactiveProps as U, createVNode as de, createElementVNode as k, Fragment as pe, renderList as he, createTextVNode as ge, toDisplayString as W, nextTick as Ae } from "vue";
|
|
2
|
-
import { u as Re, c as fe, t as Ve, a as Be, p as T, o as De, e as X, g as Ue, b as We, I as Ee, d as ye, f as _, X as Ge, s as He, w as Xe, v as j, i as me, x as je, y as Ye, q as qe, r as Je } from "./index-DDXisDKy.js";
|
|
3
|
-
import { t as Ke, u as Qe } from "./useResponsive-NZB-WLRF.js";
|
|
4
|
-
import { _ as Ze } from "./Title-DYNLqCCT.js";
|
|
5
|
-
import { u as et, U as tt } from "./usePrinter-8ofTb2MJ.js";
|
|
6
|
-
import { _ as lt } from "./Tooltip-CICAYyQj.js";
|
|
7
|
-
import { D as at } from "./DataTable-DL2agEJ3.js";
|
|
8
|
-
import { L as ot } from "./Legend-DXLiSLHd.js";
|
|
9
|
-
import st from "./vue-ui-skeleton-B2sRnIXX.js";
|
|
10
|
-
import ut from "./vue-ui-accordion-D_1fE5EF.js";
|
|
11
|
-
import { u as be } from "./useNestedProp-S1UXxUgm.js";
|
|
12
|
-
import { _ as rt } from "./PackageVersion-DtnhR89q.js";
|
|
13
|
-
import { _ as nt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
|
-
const it = ["id"], vt = ["xmlns", "viewBox"], ct = ["id"], dt = ["stop-color"], pt = ["stop-color"], ht = ["stroke", "cx", "cy", "r", "fill"], gt = ["stroke", "stroke-width", "cx", "cy", "r", "fill"], ft = ["cx", "cy", "r", "onMouseenter"], yt = {
|
|
15
|
-
key: 3,
|
|
16
|
-
class: "vue-data-ui-watermark"
|
|
17
|
-
}, mt = ["onClick"], bt = { key: 0 }, kt = { key: 1 }, Ct = ["innerHTML"], wt = {
|
|
18
|
-
__name: "vue-ui-rings",
|
|
19
|
-
props: {
|
|
20
|
-
config: {
|
|
21
|
-
type: Object,
|
|
22
|
-
default() {
|
|
23
|
-
return {};
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
dataset: {
|
|
27
|
-
type: Array,
|
|
28
|
-
default() {
|
|
29
|
-
return [];
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
emits: ["selectLegend"],
|
|
34
|
-
setup(ke, { expose: Ce, emit: we }) {
|
|
35
|
-
const g = ke, { vue_ui_rings: $e } = Re(), P = u(!1), M = d(() => !!g.dataset && g.dataset.length), L = u(fe()), Te = u(null), z = u(!1), E = u(""), $ = u(null), Y = u(0), S = u(null), q = u(null), J = u(null), K = u(0), Q = u(0), Z = u(0), e = d({
|
|
36
|
-
get: () => ee(),
|
|
37
|
-
set: (t) => t
|
|
38
|
-
});
|
|
39
|
-
function ee() {
|
|
40
|
-
const t = be({
|
|
41
|
-
userConfig: g.config,
|
|
42
|
-
defaultConfig: $e
|
|
43
|
-
});
|
|
44
|
-
return t.theme ? {
|
|
45
|
-
...be({
|
|
46
|
-
userConfig: Ve.vue_ui_rings[t.theme] || g.config,
|
|
47
|
-
defaultConfig: t
|
|
48
|
-
}),
|
|
49
|
-
customPalette: Be[t.theme] || T
|
|
50
|
-
} : t;
|
|
51
|
-
}
|
|
52
|
-
Fe(() => g.config, (t) => {
|
|
53
|
-
e.value = ee(), te(), K.value += 1, Q.value += 1, Z.value += 1;
|
|
54
|
-
}, { deep: !0 });
|
|
55
|
-
const A = u(null);
|
|
56
|
-
Oe(() => {
|
|
57
|
-
te();
|
|
58
|
-
});
|
|
59
|
-
function te() {
|
|
60
|
-
if (De(g.dataset) ? X({
|
|
61
|
-
componentName: "VueUiRings",
|
|
62
|
-
type: "dataset"
|
|
63
|
-
}) : g.dataset.forEach((t, a) => {
|
|
64
|
-
t.values.length || X({
|
|
65
|
-
componentName: "VueUiRings",
|
|
66
|
-
type: "dataset"
|
|
67
|
-
}), Ue({
|
|
68
|
-
datasetObject: t,
|
|
69
|
-
requiredAttributes: ["name", "values"]
|
|
70
|
-
}).forEach((l) => {
|
|
71
|
-
X({
|
|
72
|
-
componentName: "VueUiRings",
|
|
73
|
-
type: "datasetSerieAttribute",
|
|
74
|
-
property: l,
|
|
75
|
-
index: a
|
|
76
|
-
});
|
|
77
|
-
});
|
|
78
|
-
}), e.value.responsive) {
|
|
79
|
-
const t = Ke(() => {
|
|
80
|
-
const { width: a, height: l } = Qe({
|
|
81
|
-
chart: S.value,
|
|
82
|
-
title: e.value.style.chart.title.text ? q.value : null,
|
|
83
|
-
legend: e.value.style.chart.legend.show ? J.value : null
|
|
84
|
-
});
|
|
85
|
-
r.value.width = a, r.value.height = l;
|
|
86
|
-
});
|
|
87
|
-
A.value = new ResizeObserver(t), A.value.observe(S.value.parentNode);
|
|
88
|
-
}
|
|
89
|
-
setTimeout(() => {
|
|
90
|
-
P.value = !0;
|
|
91
|
-
}, 600);
|
|
92
|
-
}
|
|
93
|
-
Me(() => {
|
|
94
|
-
A.value && A.value.disconnect();
|
|
95
|
-
});
|
|
96
|
-
const { isPrinting: le, isImaging: ae, generatePdf: oe, generateImage: se } = et({
|
|
97
|
-
elementId: `rings_${L.value}`,
|
|
98
|
-
fileName: e.value.style.chart.title.text || "vue-ui-rings"
|
|
99
|
-
}), ue = d(() => We(e.value.customPalette)), C = u({
|
|
100
|
-
showTable: e.value.table.show,
|
|
101
|
-
showTooltip: e.value.style.chart.tooltip.show
|
|
102
|
-
}), r = u({
|
|
103
|
-
height: 360,
|
|
104
|
-
width: 360
|
|
105
|
-
}), _e = d(() => Math.min(r.value.height, r.value.width)), v = u([]);
|
|
106
|
-
function G(t) {
|
|
107
|
-
v.value.includes(t) ? v.value = v.value.filter((a) => a !== t) : v.value.push(t), we("selectLegend", c.value.map((a) => ({
|
|
108
|
-
name: a.name,
|
|
109
|
-
color: a.color,
|
|
110
|
-
value: a.value
|
|
111
|
-
})));
|
|
112
|
-
}
|
|
113
|
-
const xe = d(() => Math.max(
|
|
114
|
-
...R.value.filter((t) => !v.value.includes(t.uid)).map(({ value: t }) => t)
|
|
115
|
-
));
|
|
116
|
-
function re(t) {
|
|
117
|
-
return t / xe.value;
|
|
118
|
-
}
|
|
119
|
-
const R = d(() => g.dataset.map(({ values: t, name: a, color: l = null }, o) => {
|
|
120
|
-
const s = Ee(t).reduce((b, F) => b + F, 0);
|
|
121
|
-
return {
|
|
122
|
-
name: a,
|
|
123
|
-
color: l || ye(l) || ue.value[o] || T[o] || T[o % T.length],
|
|
124
|
-
value: s,
|
|
125
|
-
proportion: s / g.dataset.map((b) => (b.values || []).reduce((F, Ie) => F + Ie, 0)).reduce((b, F) => b + F, 0),
|
|
126
|
-
uid: fe()
|
|
127
|
-
};
|
|
128
|
-
})), ne = d(() => R.value.map((t) => ({
|
|
129
|
-
...t,
|
|
130
|
-
shape: "circle",
|
|
131
|
-
opacity: v.value.includes(t.uid) ? 0.5 : 1,
|
|
132
|
-
segregate: () => G(t.uid),
|
|
133
|
-
isSegregated: v.value.includes(t.uid)
|
|
134
|
-
})).toSorted((t, a) => a.value - t.value)), Ne = d(() => ({
|
|
135
|
-
cy: "rings-div-legend",
|
|
136
|
-
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
137
|
-
color: e.value.style.chart.legend.color,
|
|
138
|
-
fontSize: e.value.style.chart.legend.fontSize,
|
|
139
|
-
paddingBottom: 12,
|
|
140
|
-
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
141
|
-
})), y = d(() => R.value.filter((t) => !v.value.includes(t.uid)).map(({ value: t }) => t).reduce((t, a) => t + a, 0)), c = d(() => R.value.filter((t) => !v.value.includes(t.uid)).map(({ name: t, value: a, color: l = null, uid: o }, s) => ({
|
|
142
|
-
uid: o,
|
|
143
|
-
name: t,
|
|
144
|
-
color: l || ye(l) || ue.value[s] || T[s] || T[s % T.length],
|
|
145
|
-
value: a,
|
|
146
|
-
proportion: re(a),
|
|
147
|
-
percentage: a / y.value * 100,
|
|
148
|
-
strokeWidth: e.value.style.chart.layout.rings.strokeWidth * re(a)
|
|
149
|
-
})).toSorted((t, a) => a.value - t.value));
|
|
150
|
-
function Pe() {
|
|
151
|
-
return c.value.map(
|
|
152
|
-
({ name: t, color: a, value: l, absoluteValues: o, percentage: s }) => ({
|
|
153
|
-
name: t,
|
|
154
|
-
color: a,
|
|
155
|
-
value: l,
|
|
156
|
-
absoluteValues: o,
|
|
157
|
-
percentage: s
|
|
158
|
-
})
|
|
159
|
-
);
|
|
160
|
-
}
|
|
161
|
-
const p = d(() => _e.value - e.value.style.chart.layout.rings.strokeWidth * 2), H = u(null);
|
|
162
|
-
function Le(t, a) {
|
|
163
|
-
if (v.value.length === g.dataset.length) return;
|
|
164
|
-
H.value = {
|
|
165
|
-
datapoint: a,
|
|
166
|
-
seriesIndex: t,
|
|
167
|
-
series: c.value,
|
|
168
|
-
config: e.value
|
|
169
|
-
}, $.value = t;
|
|
170
|
-
const l = c.value[t], o = e.value.style.chart.tooltip.customFormat;
|
|
171
|
-
if (je(o) && Ye(() => o({
|
|
172
|
-
seriesIndex: t,
|
|
173
|
-
datapoint: a,
|
|
174
|
-
series: c.value,
|
|
175
|
-
config: e.value
|
|
176
|
-
})))
|
|
177
|
-
E.value = o({
|
|
178
|
-
seriesIndex: t,
|
|
179
|
-
datapoint: a,
|
|
180
|
-
series: c.value,
|
|
181
|
-
config: e.value
|
|
182
|
-
});
|
|
183
|
-
else {
|
|
184
|
-
let s = "";
|
|
185
|
-
s += `<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>`, s += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${l.color}" /></svg>`, e.value.style.chart.tooltip.showValue && (s += `<b>${me(
|
|
186
|
-
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
187
|
-
l.value,
|
|
188
|
-
_({
|
|
189
|
-
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
190
|
-
v: l.value,
|
|
191
|
-
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
192
|
-
r: e.value.style.chart.tooltip.roundingValue
|
|
193
|
-
}),
|
|
194
|
-
{ datapoint: a, seriesIndex: t }
|
|
195
|
-
)}
|
|
196
|
-
</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? s += `<span>(${_({
|
|
197
|
-
v: l.value / y.value * 100,
|
|
198
|
-
s: "%",
|
|
199
|
-
r: e.value.style.chart.tooltip.roundingPercentage
|
|
200
|
-
})})</span></div>` : s += `<b>${_({
|
|
201
|
-
v: l.value / y.value * 100,
|
|
202
|
-
s: "%",
|
|
203
|
-
r: e.value.style.chart.tooltip.roundingPercentage
|
|
204
|
-
})}</b></div>`), E.value = s;
|
|
205
|
-
}
|
|
206
|
-
z.value = !0;
|
|
207
|
-
}
|
|
208
|
-
const w = d(() => {
|
|
209
|
-
const t = c.value.map((l) => ({
|
|
210
|
-
name: l.name,
|
|
211
|
-
color: l.color
|
|
212
|
-
})), a = c.value.map((l) => l.value);
|
|
213
|
-
return { head: t, body: a };
|
|
214
|
-
}), V = d(() => {
|
|
215
|
-
const t = [
|
|
216
|
-
' <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>',
|
|
217
|
-
_({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: y.value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
|
|
218
|
-
"100%"
|
|
219
|
-
], a = w.value.head.map((s, b) => [
|
|
220
|
-
{
|
|
221
|
-
color: s.color,
|
|
222
|
-
name: s.name
|
|
223
|
-
},
|
|
224
|
-
_({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: w.value.body[b], s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
|
|
225
|
-
isNaN(w.value.body[b] / y.value) ? "-" : (w.value.body[b] / y.value * 100).toFixed(e.value.table.td.roundingPercentage) + "%"
|
|
226
|
-
]), l = {
|
|
227
|
-
th: {
|
|
228
|
-
backgroundColor: e.value.table.th.backgroundColor,
|
|
229
|
-
color: e.value.table.th.color,
|
|
230
|
-
outline: e.value.table.th.outline
|
|
231
|
-
},
|
|
232
|
-
td: {
|
|
233
|
-
backgroundColor: e.value.table.td.backgroundColor,
|
|
234
|
-
color: e.value.table.td.color,
|
|
235
|
-
outline: e.value.table.td.outline
|
|
236
|
-
},
|
|
237
|
-
breakpoint: e.value.table.responsiveBreakpoint
|
|
238
|
-
}, o = [
|
|
239
|
-
e.value.table.columnNames.series,
|
|
240
|
-
e.value.table.columnNames.value,
|
|
241
|
-
e.value.table.columnNames.percentage
|
|
242
|
-
];
|
|
243
|
-
return {
|
|
244
|
-
head: t,
|
|
245
|
-
body: a,
|
|
246
|
-
config: l,
|
|
247
|
-
colNames: o
|
|
248
|
-
};
|
|
249
|
-
});
|
|
250
|
-
function ie() {
|
|
251
|
-
Ae(() => {
|
|
252
|
-
const t = w.value.head.map((o, s) => [[
|
|
253
|
-
o.name
|
|
254
|
-
], [w.value.body[s]], [isNaN(w.value.body[s] / y.value) ? "-" : w.value.body[s] / y.value * 100]]), a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(t), l = qe(a);
|
|
255
|
-
Je({ csvContent: l, title: e.value.style.chart.title.text || "vue-ui-rings" });
|
|
256
|
-
});
|
|
257
|
-
}
|
|
258
|
-
const I = u(!1);
|
|
259
|
-
function Se(t) {
|
|
260
|
-
I.value = t, Y.value += 1;
|
|
261
|
-
}
|
|
262
|
-
function ve() {
|
|
263
|
-
C.value.showTable = !C.value.showTable;
|
|
264
|
-
}
|
|
265
|
-
function ce() {
|
|
266
|
-
C.value.showTooltip = !C.value.showTooltip;
|
|
267
|
-
}
|
|
268
|
-
return Ce({
|
|
269
|
-
getData: Pe,
|
|
270
|
-
generatePdf: oe,
|
|
271
|
-
generateCsv: ie,
|
|
272
|
-
generateImage: se,
|
|
273
|
-
toggleTable: ve,
|
|
274
|
-
toggleTooltip: ce
|
|
275
|
-
}), (t, a) => (n(), m("div", {
|
|
276
|
-
ref_key: "ringsChart",
|
|
277
|
-
ref: S,
|
|
278
|
-
class: B(`vue-ui-rings ${I.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
279
|
-
style: O(`font-family:${e.value.style.fontFamily};text-align:center;width:100%;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
|
|
280
|
-
id: `rings_${L.value}`,
|
|
281
|
-
onMouseleave: a[3] || (a[3] = (l) => {
|
|
282
|
-
$.value = null, z.value = !1;
|
|
283
|
-
})
|
|
284
|
-
}, [
|
|
285
|
-
e.value.style.chart.title.text ? (n(), m("div", {
|
|
286
|
-
key: 0,
|
|
287
|
-
ref_key: "chartTitle",
|
|
288
|
-
ref: q,
|
|
289
|
-
style: "width:100%;background:transparent"
|
|
290
|
-
}, [
|
|
291
|
-
(n(), x(Ze, {
|
|
292
|
-
key: `title_${K.value}`,
|
|
293
|
-
config: {
|
|
294
|
-
title: {
|
|
295
|
-
cy: "rings-div-title",
|
|
296
|
-
...e.value.style.chart.title
|
|
297
|
-
},
|
|
298
|
-
subtitle: {
|
|
299
|
-
cy: "rings-div-subtitle",
|
|
300
|
-
...e.value.style.chart.title.subtitle
|
|
301
|
-
}
|
|
302
|
-
}
|
|
303
|
-
}, null, 8, ["config"]))
|
|
304
|
-
], 512)) : N("", !0),
|
|
305
|
-
e.value.userOptions.show && M.value ? (n(), x(tt, {
|
|
306
|
-
ref_key: "details",
|
|
307
|
-
ref: Te,
|
|
308
|
-
key: `user_options_${Y.value}`,
|
|
309
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
310
|
-
color: e.value.style.chart.color,
|
|
311
|
-
isPrinting: i(le),
|
|
312
|
-
isImaging: i(ae),
|
|
313
|
-
uid: L.value,
|
|
314
|
-
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
315
|
-
hasPdf: e.value.userOptions.buttons.pdf,
|
|
316
|
-
hasXls: e.value.userOptions.buttons.csv,
|
|
317
|
-
hasImg: e.value.userOptions.buttons.img,
|
|
318
|
-
hasTable: e.value.userOptions.buttons.table,
|
|
319
|
-
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
320
|
-
isTooltip: C.value.showTooltip,
|
|
321
|
-
isFullscreen: I.value,
|
|
322
|
-
titles: { ...e.value.userOptions.buttonTitles },
|
|
323
|
-
chartElement: S.value,
|
|
324
|
-
position: e.value.userOptions.position,
|
|
325
|
-
onToggleFullscreen: Se,
|
|
326
|
-
onGeneratePdf: i(oe),
|
|
327
|
-
onGenerateCsv: ie,
|
|
328
|
-
onGenerateImage: i(se),
|
|
329
|
-
onToggleTable: ve,
|
|
330
|
-
onToggleTooltip: ce
|
|
331
|
-
}, ze({ _: 2 }, [
|
|
332
|
-
t.$slots.optionTooltip ? {
|
|
333
|
-
name: "optionTooltip",
|
|
334
|
-
fn: h(() => [
|
|
335
|
-
f(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
336
|
-
]),
|
|
337
|
-
key: "0"
|
|
338
|
-
} : void 0,
|
|
339
|
-
t.$slots.optionPdf ? {
|
|
340
|
-
name: "optionPdf",
|
|
341
|
-
fn: h(() => [
|
|
342
|
-
f(t.$slots, "optionPdf", {}, void 0, !0)
|
|
343
|
-
]),
|
|
344
|
-
key: "1"
|
|
345
|
-
} : void 0,
|
|
346
|
-
t.$slots.optionCsv ? {
|
|
347
|
-
name: "optionCsv",
|
|
348
|
-
fn: h(() => [
|
|
349
|
-
f(t.$slots, "optionCsv", {}, void 0, !0)
|
|
350
|
-
]),
|
|
351
|
-
key: "2"
|
|
352
|
-
} : void 0,
|
|
353
|
-
t.$slots.optionImg ? {
|
|
354
|
-
name: "optionImg",
|
|
355
|
-
fn: h(() => [
|
|
356
|
-
f(t.$slots, "optionImg", {}, void 0, !0)
|
|
357
|
-
]),
|
|
358
|
-
key: "3"
|
|
359
|
-
} : void 0,
|
|
360
|
-
t.$slots.optionTable ? {
|
|
361
|
-
name: "optionTable",
|
|
362
|
-
fn: h(() => [
|
|
363
|
-
f(t.$slots, "optionTable", {}, void 0, !0)
|
|
364
|
-
]),
|
|
365
|
-
key: "4"
|
|
366
|
-
} : void 0,
|
|
367
|
-
t.$slots.optionFullscreen ? {
|
|
368
|
-
name: "optionFullscreen",
|
|
369
|
-
fn: h(({ toggleFullscreen: l, isFullscreen: o }) => [
|
|
370
|
-
f(t.$slots, "optionFullscreen", D(U({ toggleFullscreen: l, isFullscreen: o })), void 0, !0)
|
|
371
|
-
]),
|
|
372
|
-
key: "5"
|
|
373
|
-
} : void 0
|
|
374
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "onGeneratePdf", "onGenerateImage"])) : N("", !0),
|
|
375
|
-
M.value ? (n(), m("svg", {
|
|
376
|
-
key: 2,
|
|
377
|
-
xmlns: i(Ge),
|
|
378
|
-
class: B({ "vue-data-ui-fullscreen--on": I.value, "vue-data-ui-fulscreen--off": !I.value }),
|
|
379
|
-
viewBox: `0 0 ${r.value.width <= 0 ? 10 : r.value.width} ${r.value.height <= 0 ? 10 : r.value.height}`,
|
|
380
|
-
style: O(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
381
|
-
}, [
|
|
382
|
-
de(rt),
|
|
383
|
-
k("defs", null, [
|
|
384
|
-
(n(!0), m(pe, null, he(c.value, (l, o) => (n(), m("radialGradient", {
|
|
385
|
-
cx: "50%",
|
|
386
|
-
cy: "30%",
|
|
387
|
-
r: "50%",
|
|
388
|
-
fx: "50%",
|
|
389
|
-
fy: "50%",
|
|
390
|
-
id: `gradient_${L.value}_${o}`
|
|
391
|
-
}, [
|
|
392
|
-
k("stop", {
|
|
393
|
-
offset: "0%",
|
|
394
|
-
"stop-color": i(He)(i(Xe)(l.color, 0.05), 100 - e.value.style.chart.layout.rings.gradient.intensity)
|
|
395
|
-
}, null, 8, dt),
|
|
396
|
-
k("stop", {
|
|
397
|
-
offset: "100%",
|
|
398
|
-
"stop-color": l.color
|
|
399
|
-
}, null, 8, pt)
|
|
400
|
-
], 8, ct))), 256))
|
|
401
|
-
]),
|
|
402
|
-
(n(!0), m(pe, null, he(c.value, (l, o) => (n(), m("g", null, [
|
|
403
|
-
k("circle", {
|
|
404
|
-
class: B({
|
|
405
|
-
"vue-ui-rings-item": P.value && e.value.useCssAnimation,
|
|
406
|
-
"vue-rings-item-onload": !P.value && e.value.useCssAnimation,
|
|
407
|
-
"vue-ui-rings-opacity": $.value !== null && $.value !== o
|
|
408
|
-
}),
|
|
409
|
-
style: O(`animation-delay:${o * 100}ms`),
|
|
410
|
-
stroke: e.value.style.chart.layout.rings.stroke,
|
|
411
|
-
cx: r.value.width / 2,
|
|
412
|
-
cy: o === 0 ? r.value.height / 2 : r.value.height / 2 + p.value * c.value[0].proportion / 2 - p.value * l.proportion / 2 - 2 * (o + 1),
|
|
413
|
-
r: i(j)(p.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : p.value * l.proportion / 2 * 0.9),
|
|
414
|
-
fill: e.value.style.chart.layout.rings.gradient.underlayerColor
|
|
415
|
-
}, null, 14, ht),
|
|
416
|
-
k("circle", {
|
|
417
|
-
class: B({
|
|
418
|
-
"vue-ui-rings-item": P.value && e.value.useCssAnimation,
|
|
419
|
-
"vue-rings-item-onload": !P.value && e.value.useCssAnimation,
|
|
420
|
-
"vue-ui-rings-shadow": e.value.style.chart.layout.rings.useShadow,
|
|
421
|
-
"vue-ui-rings-blur": $.value !== null && $.value !== o
|
|
422
|
-
}),
|
|
423
|
-
style: O(`animation-delay:${o * 100}ms`),
|
|
424
|
-
stroke: e.value.style.chart.layout.rings.stroke,
|
|
425
|
-
"stroke-width": l.strokeWidth < 0.5 ? 0.5 : l.strokeWidth,
|
|
426
|
-
cx: r.value.width / 2,
|
|
427
|
-
cy: o === 0 ? r.value.height / 2 : r.value.height / 2 + p.value * c.value[0].proportion / 2 - p.value * l.proportion / 2 - 2 * (o + 1),
|
|
428
|
-
r: i(j)(p.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : p.value * l.proportion / 2 * 0.9),
|
|
429
|
-
fill: e.value.style.chart.layout.rings.gradient.show ? `url(#gradient_${L.value}_${o})` : l.color
|
|
430
|
-
}, null, 14, gt),
|
|
431
|
-
k("circle", {
|
|
432
|
-
"data-cy-trap": "",
|
|
433
|
-
stroke: "none",
|
|
434
|
-
cx: r.value.width / 2,
|
|
435
|
-
cy: o === 0 ? r.value.height / 2 : r.value.height / 2 + p.value * c.value[0].proportion / 2 - p.value * l.proportion / 2 - 2 * (o + 1),
|
|
436
|
-
r: i(j)(p.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : p.value * l.proportion / 2 * 0.9),
|
|
437
|
-
fill: "transparent",
|
|
438
|
-
onMouseenter: (s) => Le(o, l),
|
|
439
|
-
onMouseleave: a[0] || (a[0] = (s) => {
|
|
440
|
-
$.value = null, z.value = !1;
|
|
441
|
-
})
|
|
442
|
-
}, null, 40, ft)
|
|
443
|
-
]))), 256)),
|
|
444
|
-
f(t.$slots, "svg", { svg: r.value }, void 0, !0)
|
|
445
|
-
], 14, vt)) : N("", !0),
|
|
446
|
-
t.$slots.watermark ? (n(), m("div", yt, [
|
|
447
|
-
f(t.$slots, "watermark", D(U({ isPrinting: i(le) || i(ae) })), void 0, !0)
|
|
448
|
-
])) : N("", !0),
|
|
449
|
-
M.value ? N("", !0) : (n(), x(st, {
|
|
450
|
-
key: 4,
|
|
451
|
-
config: {
|
|
452
|
-
type: "rings",
|
|
453
|
-
style: {
|
|
454
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
455
|
-
rings: {
|
|
456
|
-
color: "#CCCCCC"
|
|
457
|
-
}
|
|
458
|
-
}
|
|
459
|
-
}
|
|
460
|
-
}, null, 8, ["config"])),
|
|
461
|
-
k("div", {
|
|
462
|
-
ref_key: "chartLegend",
|
|
463
|
-
ref: J
|
|
464
|
-
}, [
|
|
465
|
-
e.value.style.chart.legend.show ? (n(), x(ot, {
|
|
466
|
-
key: `legend_${Z.value}`,
|
|
467
|
-
legendSet: ne.value,
|
|
468
|
-
config: Ne.value,
|
|
469
|
-
onClickMarker: a[1] || (a[1] = ({ legend: l }) => G(l.uid))
|
|
470
|
-
}, {
|
|
471
|
-
item: h(({ legend: l, index: o }) => [
|
|
472
|
-
k("div", {
|
|
473
|
-
"data-cy-legend-item": "",
|
|
474
|
-
onClick: (s) => G(l.uid),
|
|
475
|
-
style: O(`opacity:${v.value.includes(l.uid) ? 0.5 : 1}`)
|
|
476
|
-
}, [
|
|
477
|
-
ge(W(l.name) + ": " + W(i(me)(
|
|
478
|
-
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
479
|
-
l.value,
|
|
480
|
-
i(_)({
|
|
481
|
-
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
482
|
-
v: l.value,
|
|
483
|
-
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
484
|
-
r: e.value.style.chart.legend.roundingValue
|
|
485
|
-
}),
|
|
486
|
-
{ datapoint: l, seriesIndex: o }
|
|
487
|
-
)) + " ", 1),
|
|
488
|
-
v.value.includes(l.uid) ? (n(), m("span", kt, " ( - % ) ")) : (n(), m("span", bt, " (" + W(isNaN(l.value / y.value) ? "-" : i(_)({
|
|
489
|
-
v: l.value / y.value * 100,
|
|
490
|
-
s: "%",
|
|
491
|
-
r: e.value.style.chart.legend.roundingPercentage
|
|
492
|
-
})) + ") ", 1))
|
|
493
|
-
], 12, mt)
|
|
494
|
-
]),
|
|
495
|
-
_: 1
|
|
496
|
-
}, 8, ["legendSet", "config"])) : f(t.$slots, "legend", {
|
|
497
|
-
key: 1,
|
|
498
|
-
legend: ne.value
|
|
499
|
-
}, void 0, !0)
|
|
500
|
-
], 512),
|
|
501
|
-
de(lt, {
|
|
502
|
-
show: C.value.showTooltip && z.value && v.value.length < g.dataset.length,
|
|
503
|
-
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
504
|
-
color: e.value.style.chart.tooltip.color,
|
|
505
|
-
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
506
|
-
borderColor: e.value.style.chart.tooltip.borderColor,
|
|
507
|
-
borderWidth: e.value.style.chart.tooltip.borderWidth,
|
|
508
|
-
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
509
|
-
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
510
|
-
position: e.value.style.chart.tooltip.position,
|
|
511
|
-
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
512
|
-
parent: S.value,
|
|
513
|
-
content: E.value,
|
|
514
|
-
isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function"
|
|
515
|
-
}, {
|
|
516
|
-
"tooltip-before": h(() => [
|
|
517
|
-
f(t.$slots, "tooltip-before", D(U({ ...H.value })), void 0, !0)
|
|
518
|
-
]),
|
|
519
|
-
"tooltip-after": h(() => [
|
|
520
|
-
f(t.$slots, "tooltip-after", D(U({ ...H.value })), void 0, !0)
|
|
521
|
-
]),
|
|
522
|
-
_: 3
|
|
523
|
-
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
|
|
524
|
-
M.value ? (n(), x(ut, {
|
|
525
|
-
key: 5,
|
|
526
|
-
hideDetails: "",
|
|
527
|
-
config: {
|
|
528
|
-
open: C.value.showTable,
|
|
529
|
-
maxHeight: 1e4,
|
|
530
|
-
body: {
|
|
531
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
532
|
-
color: e.value.style.chart.color
|
|
533
|
-
},
|
|
534
|
-
head: {
|
|
535
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
536
|
-
color: e.value.style.chart.color
|
|
537
|
-
}
|
|
538
|
-
}
|
|
539
|
-
}, {
|
|
540
|
-
content: h(() => [
|
|
541
|
-
(n(), x(at, {
|
|
542
|
-
key: `table_${Q.value}`,
|
|
543
|
-
colNames: V.value.colNames,
|
|
544
|
-
head: V.value.head,
|
|
545
|
-
body: V.value.body,
|
|
546
|
-
config: V.value.config,
|
|
547
|
-
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
548
|
-
onClose: a[2] || (a[2] = (l) => C.value.showTable = !1)
|
|
549
|
-
}, {
|
|
550
|
-
th: h(({ th: l }) => [
|
|
551
|
-
k("div", {
|
|
552
|
-
innerHTML: l,
|
|
553
|
-
style: { display: "flex", "align-items": "center" }
|
|
554
|
-
}, null, 8, Ct)
|
|
555
|
-
]),
|
|
556
|
-
td: h(({ td: l }) => [
|
|
557
|
-
ge(W(l.name || l), 1)
|
|
558
|
-
]),
|
|
559
|
-
_: 1
|
|
560
|
-
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
561
|
-
]),
|
|
562
|
-
_: 1
|
|
563
|
-
}, 8, ["config"])) : N("", !0)
|
|
564
|
-
], 46, it));
|
|
565
|
-
}
|
|
566
|
-
}, At = /* @__PURE__ */ nt(wt, [["__scopeId", "data-v-08656179"]]);
|
|
567
|
-
export {
|
|
568
|
-
At as default
|
|
569
|
-
};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-C7_6YjWN.cjs"),Y=require("./useResponsive-B3TrDDIG.cjs"),ce=require("./Title-C-lm3Mkl.cjs"),J=require("./usePrinter-8EP4iaGm.cjs"),de=require("./Tooltip-t-3mVhcz.cjs"),ve=require("./DataTable-BTgMVOwp.cjs"),pe=require("./Legend-Dj9KiaLv.cjs"),he=require("./vue-ui-skeleton-CGV1dEUD.cjs"),ge=require("./vue-ui-accordion-Cc9958th.cjs"),K=require("./useNestedProp-CC9zGr7C.cjs"),fe=require("./PackageVersion-D4D0WicU.cjs"),me=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ye=["id"],be=["xmlns","viewBox"],ke=["id"],Ce=["stop-color"],we=["stop-color"],xe=["stroke","cx","cy","r","fill"],Te=["stroke","stroke-width","cx","cy","r","fill"],Ne=["cx","cy","r","onMouseenter"],$e={key:3,class:"vue-data-ui-watermark"},_e=["onClick"],Se={key:0},Be={key:1},Pe=["innerHTML"],Le={__name:"vue-ui-rings",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend"],setup(Q,{expose:Z,emit:ee}){const v=Q,{vue_ui_rings:te}=r.useConfig(),y=e.ref(!1),x=e.computed(()=>!!v.dataset&&v.dataset.length),b=e.ref(r.createUid()),le=e.ref(null),T=e.ref(!1),S=e.ref(""),m=e.ref(null),L=e.ref(0),k=e.ref(null),V=e.ref(null),E=e.ref(null),z=e.ref(0),F=e.ref(0),I=e.ref(0),t=e.computed({get:()=>O(),set:l=>l});function O(){const l=K.useNestedProp({userConfig:v.config,defaultConfig:te});return l.theme?{...K.useNestedProp({userConfig:r.themes.vue_ui_rings[l.theme]||v.config,defaultConfig:l}),customPalette:r.themePalettes[l.theme]||r.palette}:l}e.watch(()=>v.config,l=>{t.value=O(),R(),z.value+=1,F.value+=1,I.value+=1},{deep:!0});const N=e.ref(null);e.onMounted(()=>{R()});function R(){if(r.objectIsEmpty(v.dataset)?r.error({componentName:"VueUiRings",type:"dataset"}):v.dataset.forEach((l,a)=>{l.values.length||r.error({componentName:"VueUiRings",type:"dataset"}),r.getMissingDatasetAttributes({datasetObject:l,requiredAttributes:["name","values"]}).forEach(o=>{r.error({componentName:"VueUiRings",type:"datasetSerieAttribute",property:o,index:a})})}),t.value.responsive){const l=Y.throttle(()=>{const{width:a,height:o}=Y.useResponsive({chart:k.value,title:t.value.style.chart.title.text?V.value:null,legend:t.value.style.chart.legend.show?E.value:null});s.value.width=a,s.value.height=o});N.value=new ResizeObserver(l),N.value.observe(k.value.parentNode)}setTimeout(()=>{y.value=!0},600)}e.onBeforeUnmount(()=>{N.value&&N.value.disconnect()});const{isPrinting:M,isImaging:q,generatePdf:D,generateImage:A}=J.usePrinter({elementId:`rings_${b.value}`,fileName:t.value.style.chart.title.text||"vue-ui-rings"}),U=e.computed(()=>r.convertCustomPalette(t.value.customPalette)),g=e.ref({showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show}),s=e.ref({height:360,width:360}),oe=e.computed(()=>Math.min(s.value.height,s.value.width)),i=e.ref([]);function B(l){i.value.includes(l)?i.value=i.value.filter(a=>a!==l):i.value.push(l),ee("selectLegend",c.value.map(a=>({name:a.name,color:a.color,value:a.value})))}const ae=e.computed(()=>Math.max(...$.value.filter(l=>!i.value.includes(l.uid)).map(({value:l})=>l)));function H(l){return l/ae.value}const $=e.computed(()=>v.dataset.map(({values:l,name:a,color:o=null},n)=>{const u=r.sanitizeArray(l).reduce((h,w)=>h+w,0);return{name:a,color:o||r.convertColorToHex(o)||U.value[n]||r.palette[n]||r.palette[n%r.palette.length],value:u,proportion:u/v.dataset.map(h=>(h.values||[]).reduce((w,ie)=>w+ie,0)).reduce((h,w)=>h+w,0),uid:r.createUid()}})),W=e.computed(()=>$.value.map(l=>({...l,shape:"circle",opacity:i.value.includes(l.uid)?.5:1,segregate:()=>B(l.uid),isSegregated:i.value.includes(l.uid)})).toSorted((l,a)=>a.value-l.value)),re=e.computed(()=>({cy:"rings-div-legend",backgroundColor:t.value.style.chart.legend.backgroundColor,color:t.value.style.chart.legend.color,fontSize:t.value.style.chart.legend.fontSize,paddingBottom:12,fontWeight:t.value.style.chart.legend.bold?"bold":""})),p=e.computed(()=>$.value.filter(l=>!i.value.includes(l.uid)).map(({value:l})=>l).reduce((l,a)=>l+a,0)),c=e.computed(()=>$.value.filter(l=>!i.value.includes(l.uid)).map(({name:l,value:a,color:o=null,uid:n},u)=>({uid:n,name:l,color:o||r.convertColorToHex(o)||U.value[u]||r.palette[u]||r.palette[u%r.palette.length],value:a,proportion:H(a),percentage:a/p.value*100,strokeWidth:t.value.style.chart.layout.rings.strokeWidth*H(a)})).toSorted((l,a)=>a.value-l.value));function ne(){return c.value.map(({name:l,color:a,value:o,absoluteValues:n,percentage:u})=>({name:l,color:a,value:o,absoluteValues:n,percentage:u}))}const d=e.computed(()=>oe.value-t.value.style.chart.layout.rings.strokeWidth*2),P=e.ref(null);function ue(l,a){if(i.value.length===v.dataset.length)return;P.value={datapoint:a,seriesIndex:l,series:c.value,config:t.value},m.value=l;const o=c.value[l],n=t.value.style.chart.tooltip.customFormat;if(r.isFunction(n)&&r.functionReturnsString(()=>n({seriesIndex:l,datapoint:a,series:c.value,config:t.value})))S.value=n({seriesIndex:l,datapoint:a,series:c.value,config:t.value});else{let u="";u+=`<div style="width:100%;text-align:center;border-bottom:1px solid ${t.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${o.name}</div>`,u+=`<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${o.color}" /></svg>`,t.value.style.chart.tooltip.showValue&&(u+=`<b>${r.applyDataLabel(t.value.style.chart.layout.labels.dataLabels.formatter,o.value,r.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:o.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.tooltip.roundingValue}),{datapoint:a,seriesIndex:l})}
|
|
2
|
-
</b>`),t.value.style.chart.tooltip.showPercentage&&(t.value.style.chart.tooltip.showValue?u+=`<span>(${r.dataLabel({v:o.value/p.value*100,s:"%",r:t.value.style.chart.tooltip.roundingPercentage})})</span></div>`:u+=`<b>${r.dataLabel({v:o.value/p.value*100,s:"%",r:t.value.style.chart.tooltip.roundingPercentage})}</b></div>`),S.value=u}T.value=!0}const f=e.computed(()=>{const l=c.value.map(o=>({name:o.name,color:o.color})),a=c.value.map(o=>o.value);return{head:l,body:a}}),_=e.computed(()=>{const l=[' <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>',r.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:p.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.table.td.roundingValue}),"100%"],a=f.value.head.map((u,h)=>[{color:u.color,name:u.name},r.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:f.value.body[h],s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.table.td.roundingValue}),isNaN(f.value.body[h]/p.value)?"-":(f.value.body[h]/p.value*100).toFixed(t.value.table.td.roundingPercentage)+"%"]),o={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint},n=[t.value.table.columnNames.series,t.value.table.columnNames.value,t.value.table.columnNames.percentage];return{head:l,body:a,config:o,colNames:n}});function G(){e.nextTick(()=>{const l=f.value.head.map((n,u)=>[[n.name],[f.value.body[u]],[isNaN(f.value.body[u]/p.value)?"-":f.value.body[u]/p.value*100]]),a=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[""],["val"],["%"]]].concat(l),o=r.createCsvContent(a);r.downloadCsv({csvContent:o,title:t.value.style.chart.title.text||"vue-ui-rings"})})}const C=e.ref(!1);function se(l){C.value=l,L.value+=1}function j(){g.value.showTable=!g.value.showTable}function X(){g.value.showTooltip=!g.value.showTooltip}return Z({getData:ne,generatePdf:D,generateCsv:G,generateImage:A,toggleTable:j,toggleTooltip:X}),(l,a)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"ringsChart",ref:k,class:e.normalizeClass(`vue-ui-rings ${C.value?"vue-data-ui-wrapper-fullscreen":""} ${t.value.useCssAnimation?"":"vue-ui-dna"}`),style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};text-align:center;width:100%;background:${t.value.style.chart.backgroundColor};${t.value.responsive?"height: 100%":""}`),id:`rings_${b.value}`,onMouseleave:a[3]||(a[3]=o=>{m.value=null,T.value=!1})},[t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"chartTitle",ref:V,style:"width:100%;background:transparent"},[(e.openBlock(),e.createBlock(ce._sfc_main,{key:`title_${z.value}`,config:{title:{cy:"rings-div-title",...t.value.style.chart.title},subtitle:{cy:"rings-div-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&x.value?(e.openBlock(),e.createBlock(J.UserOptions,{ref_key:"details",ref:le,key:`user_options_${L.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(M),isImaging:e.unref(q),uid:b.value,hasTooltip:t.value.userOptions.buttons.tooltip&&t.value.style.chart.tooltip.show,hasPdf:t.value.userOptions.buttons.pdf,hasXls:t.value.userOptions.buttons.csv,hasImg:t.value.userOptions.buttons.img,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isTooltip:g.value.showTooltip,isFullscreen:C.value,titles:{...t.value.userOptions.buttonTitles},chartElement:k.value,position:t.value.userOptions.position,onToggleFullscreen:se,onGeneratePdf:e.unref(D),onGenerateCsv:G,onGenerateImage:e.unref(A),onToggleTable:j,onToggleTooltip:X},e.createSlots({_:2},[l.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,l.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,l.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:o,isFullscreen:n})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:o,isFullscreen:n})),void 0,!0)]),key:"5"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasTooltip","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","isTooltip","isFullscreen","titles","chartElement","position","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),x.value?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(r.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":C.value,"vue-data-ui-fulscreen--off":!C.value}),viewBox:`0 0 ${s.value.width<=0?10:s.value.width} ${s.value.height<=0?10:s.value.height}`,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(fe._sfc_main),e.createElementVNode("defs",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(o,n)=>(e.openBlock(),e.createElementBlock("radialGradient",{cx:"50%",cy:"30%",r:"50%",fx:"50%",fy:"50%",id:`gradient_${b.value}_${n}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(r.setOpacity)(e.unref(r.shiftHue)(o.color,.05),100-t.value.style.chart.layout.rings.gradient.intensity)},null,8,Ce),e.createElementVNode("stop",{offset:"100%","stop-color":o.color},null,8,we)],8,ke))),256))]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(o,n)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("circle",{class:e.normalizeClass({"vue-ui-rings-item":y.value&&t.value.useCssAnimation,"vue-rings-item-onload":!y.value&&t.value.useCssAnimation,"vue-ui-rings-opacity":m.value!==null&&m.value!==n}),style:e.normalizeStyle(`animation-delay:${n*100}ms`),stroke:t.value.style.chart.layout.rings.stroke,cx:s.value.width/2,cy:n===0?s.value.height/2:s.value.height/2+d.value*c.value[0].proportion/2-d.value*o.proportion/2-2*(n+1),r:e.unref(r.checkNaN)(d.value*o.proportion/2*.9<=0?1e-4:d.value*o.proportion/2*.9),fill:t.value.style.chart.layout.rings.gradient.underlayerColor},null,14,xe),e.createElementVNode("circle",{class:e.normalizeClass({"vue-ui-rings-item":y.value&&t.value.useCssAnimation,"vue-rings-item-onload":!y.value&&t.value.useCssAnimation,"vue-ui-rings-shadow":t.value.style.chart.layout.rings.useShadow,"vue-ui-rings-blur":m.value!==null&&m.value!==n}),style:e.normalizeStyle(`animation-delay:${n*100}ms`),stroke:t.value.style.chart.layout.rings.stroke,"stroke-width":o.strokeWidth<.5?.5:o.strokeWidth,cx:s.value.width/2,cy:n===0?s.value.height/2:s.value.height/2+d.value*c.value[0].proportion/2-d.value*o.proportion/2-2*(n+1),r:e.unref(r.checkNaN)(d.value*o.proportion/2*.9<=0?1e-4:d.value*o.proportion/2*.9),fill:t.value.style.chart.layout.rings.gradient.show?`url(#gradient_${b.value}_${n})`:o.color},null,14,Te),e.createElementVNode("circle",{"data-cy-trap":"",stroke:"none",cx:s.value.width/2,cy:n===0?s.value.height/2:s.value.height/2+d.value*c.value[0].proportion/2-d.value*o.proportion/2-2*(n+1),r:e.unref(r.checkNaN)(d.value*o.proportion/2*.9<=0?1e-4:d.value*o.proportion/2*.9),fill:"transparent",onMouseenter:u=>ue(n,o),onMouseleave:a[0]||(a[0]=u=>{m.value=null,T.value=!1})},null,40,Ne)]))),256)),e.renderSlot(l.$slots,"svg",{svg:s.value},void 0,!0)],14,be)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",$e,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(M)||e.unref(q)})),void 0,!0)])):e.createCommentVNode("",!0),x.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(he.default,{key:4,config:{type:"rings",style:{backgroundColor:t.value.style.chart.backgroundColor,rings:{color:"#CCCCCC"}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:E},[t.value.style.chart.legend.show?(e.openBlock(),e.createBlock(pe.Legend,{key:`legend_${I.value}`,legendSet:W.value,config:re.value,onClickMarker:a[1]||(a[1]=({legend:o})=>B(o.uid))},{item:e.withCtx(({legend:o,index:n})=>[e.createElementVNode("div",{"data-cy-legend-item":"",onClick:u=>B(o.uid),style:e.normalizeStyle(`opacity:${i.value.includes(o.uid)?.5:1}`)},[e.createTextVNode(e.toDisplayString(o.name)+": "+e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.chart.layout.labels.dataLabels.formatter,o.value,e.unref(r.dataLabel)({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:o.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.legend.roundingValue}),{datapoint:o,seriesIndex:n}))+" ",1),i.value.includes(o.uid)?(e.openBlock(),e.createElementBlock("span",Be," ( - % ) ")):(e.openBlock(),e.createElementBlock("span",Se," ("+e.toDisplayString(isNaN(o.value/p.value)?"-":e.unref(r.dataLabel)({v:o.value/p.value*100,s:"%",r:t.value.style.chart.legend.roundingPercentage}))+") ",1))],12,_e)]),_:1},8,["legendSet","config"])):e.renderSlot(l.$slots,"legend",{key:1,legend:W.value},void 0,!0)],512),e.createVNode(de._sfc_main,{show:g.value.showTooltip&&T.value&&i.value.length<v.dataset.length,backgroundColor:t.value.style.chart.tooltip.backgroundColor,color:t.value.style.chart.tooltip.color,borderRadius:t.value.style.chart.tooltip.borderRadius,borderColor:t.value.style.chart.tooltip.borderColor,borderWidth:t.value.style.chart.tooltip.borderWidth,fontSize:t.value.style.chart.tooltip.fontSize,backgroundOpacity:t.value.style.chart.tooltip.backgroundOpacity,position:t.value.style.chart.tooltip.position,offsetY:t.value.style.chart.tooltip.offsetY,parent:k.value,content:S.value,isCustom:t.value.style.chart.tooltip.customFormat&&typeof t.value.style.chart.tooltip.customFormat=="function"},{"tooltip-before":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...P.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...P.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","fontSize","backgroundOpacity","position","offsetY","parent","content","isCustom"]),x.value?(e.openBlock(),e.createBlock(ge.default,{key:5,hideDetails:"",config:{open:g.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color},head:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color}}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock(ve.DataTable,{key:`table_${F.value}`,colNames:_.value.colNames,head:_.value.head,body:_.value.body,config:_.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:a[2]||(a[2]=o=>g.value.showTable=!1)},{th:e.withCtx(({th:o})=>[e.createElementVNode("div",{innerHTML:o,style:{display:"flex","align-items":"center"}},null,8,Pe)]),td:e.withCtx(({td:o})=>[e.createTextVNode(e.toDisplayString(o.name||o),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],46,ye))}},Ve=me._export_sfc(Le,[["__scopeId","data-v-08656179"]]);exports.default=Ve;
|