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
|
@@ -0,0 +1,650 @@
|
|
|
1
|
+
import { computed as d, ref as s, watch as pe, onMounted as De, onBeforeUnmount as Le, openBlock as n, createElementBlock as u, normalizeClass as V, normalizeStyle as q, createBlock as C, createCommentVNode as p, unref as v, createSlots as ze, withCtx as h, renderSlot as f, normalizeProps as S, guardReactiveProps as M, createVNode as ye, Fragment as F, renderList as N, createElementVNode as _, toDisplayString as P, createTextVNode as Ye, nextTick as Be } from "vue";
|
|
2
|
+
import { u as Ve, c as Xe, t as Ge, a as Ue, p as me, b as Ee, o as He, e as J, d as We, X as je, f as R, i as K, x as be, q as qe, r as Je, y as Ke } from "./index-Bya_q1J-.js";
|
|
3
|
+
import { t as Qe, u as Ze } from "./useResponsive-BY8tgM1n.js";
|
|
4
|
+
import { _ as et } from "./Title-C5pIfQAz.js";
|
|
5
|
+
import { u as tt, U as at } from "./usePrinter-CiHd1FwD.js";
|
|
6
|
+
import { L as lt } from "./Legend-DNgTCgEK.js";
|
|
7
|
+
import { D as ot } from "./DataTable-DYqC2pqu.js";
|
|
8
|
+
import { _ as rt } from "./Tooltip-Cz24YLfw.js";
|
|
9
|
+
import nt from "./vue-ui-skeleton-BYssP0K4.js";
|
|
10
|
+
import st from "./vue-ui-accordion-DfUfL2dI.js";
|
|
11
|
+
import { u as ke } from "./useNestedProp-B33hazbH.js";
|
|
12
|
+
import { _ as ut } from "./PackageVersion-VkaUzgmt.js";
|
|
13
|
+
import { P as it } from "./PenAndPaper-DAZYA8Ew.js";
|
|
14
|
+
import { _ as ct } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
|
+
const dt = ["id"], vt = ["xmlns", "viewBox"], ht = ["cx", "cy", "r", "stroke", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], ft = ["cx", "cy", "r", "stroke", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], gt = ["id"], pt = ["stdDeviation"], yt = ["filter"], mt = ["cx", "cy", "r", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], bt = ["cx", "cy", "r", "stroke-width", "stroke-dasharray", "stroke-dashoffset", "onMouseenter"], kt = { key: 1 }, $t = ["onMouseenter"], wt = ["x", "y", "font-size", "fill", "font-weight"], Ct = {
|
|
16
|
+
key: 4,
|
|
17
|
+
class: "vue-data-ui-watermark"
|
|
18
|
+
}, xt = ["onClick"], Tt = ["innerHTML"], _t = {
|
|
19
|
+
__name: "vue-ui-onion",
|
|
20
|
+
props: {
|
|
21
|
+
config: {
|
|
22
|
+
type: Object,
|
|
23
|
+
default() {
|
|
24
|
+
return {};
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
dataset: {
|
|
28
|
+
type: Array,
|
|
29
|
+
default() {
|
|
30
|
+
return [];
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
emits: ["selectLegend"],
|
|
35
|
+
setup($e, { expose: we, emit: Ce }) {
|
|
36
|
+
const k = $e, { vue_ui_onion: xe } = Ve(), D = d(() => !!k.dataset && k.dataset.length), x = s(Xe()), Te = s(null), Q = s(0), L = s(!1), X = s(""), y = s([]), T = s(null), Z = s(null), ee = s(null), te = s(null), ae = s(0), le = s(0), oe = s(0), e = d({
|
|
37
|
+
get: () => re(),
|
|
38
|
+
set: (t) => t
|
|
39
|
+
});
|
|
40
|
+
function re() {
|
|
41
|
+
const t = ke({
|
|
42
|
+
userConfig: k.config,
|
|
43
|
+
defaultConfig: xe
|
|
44
|
+
});
|
|
45
|
+
return t.theme ? {
|
|
46
|
+
...ke({
|
|
47
|
+
userConfig: Ge.vue_ui_onion[t.theme] || k.config,
|
|
48
|
+
defaultConfig: t
|
|
49
|
+
}),
|
|
50
|
+
customPalette: Ue[t.theme] || me
|
|
51
|
+
} : t;
|
|
52
|
+
}
|
|
53
|
+
pe(() => k.config, (t) => {
|
|
54
|
+
e.value = re(), ce(), ae.value += 1, le.value += 1, oe.value += 1;
|
|
55
|
+
}, { deep: !0 });
|
|
56
|
+
const { isPrinting: ne, isImaging: se, generatePdf: ue, generateImage: ie } = tt({
|
|
57
|
+
elementId: `vue-ui-onion_${x.value}`,
|
|
58
|
+
fileName: e.value.style.chart.title.text || "vue-ui-onion"
|
|
59
|
+
}), _e = d(() => Ee(e.value.customPalette)), $ = s({
|
|
60
|
+
showTable: e.value.table.show,
|
|
61
|
+
showTooltip: e.value.style.chart.tooltip.show
|
|
62
|
+
}), r = s({
|
|
63
|
+
height: 512,
|
|
64
|
+
width: 512,
|
|
65
|
+
padding: {
|
|
66
|
+
top: 64,
|
|
67
|
+
left: 64,
|
|
68
|
+
right: 64,
|
|
69
|
+
bottom: 64
|
|
70
|
+
},
|
|
71
|
+
minRadius: 64
|
|
72
|
+
}), z = s(null);
|
|
73
|
+
De(() => {
|
|
74
|
+
ce();
|
|
75
|
+
});
|
|
76
|
+
function ce() {
|
|
77
|
+
if (He(k.dataset) && J({
|
|
78
|
+
componentName: "VueUiOnion",
|
|
79
|
+
type: "dataset"
|
|
80
|
+
}), e.value.responsive) {
|
|
81
|
+
const o = Qe(() => {
|
|
82
|
+
const { width: a, height: l } = Ze({
|
|
83
|
+
chart: T.value,
|
|
84
|
+
title: e.value.style.chart.title.text ? Z.value : null,
|
|
85
|
+
legend: e.value.style.chart.legend.show ? ee.value : null,
|
|
86
|
+
source: te.value
|
|
87
|
+
});
|
|
88
|
+
r.value.width = a, r.value.height = l, r.value.padding.top = Math.max(a, l) * 0.125, r.value.padding.right = Math.max(a, l) * 0.125, r.value.padding.bottom = Math.max(a, l) * 0.125, r.value.padding.left = Math.max(a, l) * 0.125, r.value.minRadius = Math.min(a, l) * 0.125;
|
|
89
|
+
});
|
|
90
|
+
z.value = new ResizeObserver(o), z.value.observe(T.value.parentNode);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
Le(() => {
|
|
94
|
+
z.value && z.value.disconnect();
|
|
95
|
+
});
|
|
96
|
+
const i = d(() => ({
|
|
97
|
+
top: r.value.padding.top,
|
|
98
|
+
left: r.value.padding.left,
|
|
99
|
+
right: r.value.width - r.value.padding.right,
|
|
100
|
+
bottom: r.value.height - r.value.padding.bottom,
|
|
101
|
+
centerX: r.value.width / 2,
|
|
102
|
+
centerY: r.value.height / 2,
|
|
103
|
+
width: r.value.width - r.value.padding.right - r.value.padding.left,
|
|
104
|
+
height: r.value.height - r.value.padding.bottom - r.value.padding.top,
|
|
105
|
+
minRadius: r.value.minRadius,
|
|
106
|
+
maxRadius: Math.min(r.value.width, r.value.height) - r.value.padding.top * 2
|
|
107
|
+
})), c = d(() => (k.dataset.forEach((t, o) => {
|
|
108
|
+
[null, void 0].includes(t.name) && J({
|
|
109
|
+
componentName: "VueUiOnion",
|
|
110
|
+
type: "datasetSerieAttribute",
|
|
111
|
+
property: "name",
|
|
112
|
+
index: o
|
|
113
|
+
}), [void 0].includes(t.percentage) && J({
|
|
114
|
+
componentName: "VueUiOnion",
|
|
115
|
+
type: "datasetSerieAttribute",
|
|
116
|
+
property: "percentage",
|
|
117
|
+
index: o
|
|
118
|
+
});
|
|
119
|
+
}), k.dataset.map((t, o) => {
|
|
120
|
+
const a = `onion_serie_${o}_${x.value}`;
|
|
121
|
+
return {
|
|
122
|
+
...t,
|
|
123
|
+
percentage: t.percentage || 0,
|
|
124
|
+
targetPercentage: t.percentage || 0,
|
|
125
|
+
color: We(t.color) || _e.value[o] || me[o],
|
|
126
|
+
id: a,
|
|
127
|
+
shape: "circle",
|
|
128
|
+
opacity: y.value.includes(a) ? 0.5 : 1,
|
|
129
|
+
absoluteIndex: o,
|
|
130
|
+
segregate: () => de(a),
|
|
131
|
+
isSegregated: y.value.includes(a)
|
|
132
|
+
};
|
|
133
|
+
}))), O = s(c.value), Pe = d(() => e.value.useStartAnimation), Oe = s(null), Ae = d(() => Math.max(...c.value.map((t) => t.percentage))), G = s(!1);
|
|
134
|
+
pe(() => c.value, Ie, { immediate: !0 });
|
|
135
|
+
function Ie() {
|
|
136
|
+
if (Pe.value && !G.value) {
|
|
137
|
+
let o = function() {
|
|
138
|
+
t >= Ae.value ? (cancelAnimationFrame(Oe.value), O.value = c.value, G.value = !0) : (O.value = c.value.map((a) => ({
|
|
139
|
+
...a,
|
|
140
|
+
percentage: t < a.targetPercentage ? t : a.targetPercentage
|
|
141
|
+
})), t += 1, requestAnimationFrame(o), G.value = !0);
|
|
142
|
+
};
|
|
143
|
+
O.value = c.value.map((a) => ({
|
|
144
|
+
...a,
|
|
145
|
+
percentage: 0
|
|
146
|
+
}));
|
|
147
|
+
let t = 0;
|
|
148
|
+
o();
|
|
149
|
+
} else
|
|
150
|
+
O.value = c.value;
|
|
151
|
+
}
|
|
152
|
+
const Se = d(() => ({
|
|
153
|
+
cy: "onion-div-legend",
|
|
154
|
+
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
155
|
+
color: e.value.style.chart.legend.color,
|
|
156
|
+
fontSize: e.value.style.chart.legend.fontSize,
|
|
157
|
+
paddingBottom: 12,
|
|
158
|
+
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
159
|
+
})), Me = d(() => c.value.filter((t) => !y.value.includes(t.id)).length), w = d(() => {
|
|
160
|
+
const t = Math.min(i.value.width, i.value.height) / 2 / c.value.length;
|
|
161
|
+
return {
|
|
162
|
+
gutter: (t > e.value.style.chart.layout.maxThickness ? e.value.style.chart.layout.maxThickness : t) * e.value.style.chart.layout.gutter.width,
|
|
163
|
+
track: (t > e.value.style.chart.layout.maxThickness ? e.value.style.chart.layout.maxThickness : t) * e.value.style.chart.layout.track.width
|
|
164
|
+
};
|
|
165
|
+
}), m = d(() => O.value.filter((t) => !y.value.includes(t.id)).map((t, o) => {
|
|
166
|
+
const a = (i.value.maxRadius - w.value.track) / Me.value / 2 * (1 + o), l = i.value.centerY - a;
|
|
167
|
+
return {
|
|
168
|
+
percentage: t.percentage || 0,
|
|
169
|
+
...t,
|
|
170
|
+
labelY: l,
|
|
171
|
+
radius: a,
|
|
172
|
+
path: Fe(a, t.percentage || 0)
|
|
173
|
+
};
|
|
174
|
+
}));
|
|
175
|
+
function Fe(t, o) {
|
|
176
|
+
const a = 2 * Math.PI * t, l = a * 0.75, g = `${l} ${a}`, I = l * (1 - o / 100);
|
|
177
|
+
return {
|
|
178
|
+
bgDashArray: `${l} ${a}`,
|
|
179
|
+
bgDashOffset: 0,
|
|
180
|
+
dashArray: g,
|
|
181
|
+
dashOffset: I,
|
|
182
|
+
fullOffset: 0,
|
|
183
|
+
active: `
|
|
184
|
+
M ${i.value.centerX},${i.value.centerY - t}
|
|
185
|
+
A ${t},${t} 0 1 1
|
|
186
|
+
${i.value.centerX + t * Math.cos(Math.PI * 3 / 4)},${i.value.centerY + t * Math.sin(Math.PI * 3 / 4)}
|
|
187
|
+
`.trim()
|
|
188
|
+
};
|
|
189
|
+
}
|
|
190
|
+
function de(t) {
|
|
191
|
+
y.value.includes(t) ? y.value = y.value.filter((o) => o !== t) : y.value.push(t), Ce("selectLegend", m.value);
|
|
192
|
+
}
|
|
193
|
+
function Ne() {
|
|
194
|
+
return m.value;
|
|
195
|
+
}
|
|
196
|
+
const U = d(() => {
|
|
197
|
+
const t = [e.value.table.translations.serie, e.value.table.translations.percentage, e.value.table.translations.value], o = m.value.map((a) => [
|
|
198
|
+
a.name,
|
|
199
|
+
a.percentage,
|
|
200
|
+
a.value
|
|
201
|
+
]);
|
|
202
|
+
return { head: t, body: o };
|
|
203
|
+
}), Y = d(() => {
|
|
204
|
+
const t = U.value.head, o = m.value.map((l) => [
|
|
205
|
+
`<span style="color:${l.color}">⬤</span> ${l.name}`,
|
|
206
|
+
`${Number(l.percentage ?? 0).toFixed(e.value.table.td.roundingPercentage).toLocaleString()}%`,
|
|
207
|
+
`${l.prefix || ""}${[null, void 0, NaN, "NaN"].includes(l.value) ? "-" : l.value.toFixed(e.value.table.td.roundingValue).toLocaleString()}${l.suffix || ""}`
|
|
208
|
+
]), a = {
|
|
209
|
+
th: {
|
|
210
|
+
backgroundColor: e.value.table.th.backgroundColor,
|
|
211
|
+
color: e.value.table.th.color,
|
|
212
|
+
outline: e.value.table.th.outline
|
|
213
|
+
},
|
|
214
|
+
td: {
|
|
215
|
+
backgroundColor: e.value.table.td.backgroundColor,
|
|
216
|
+
color: e.value.table.td.color,
|
|
217
|
+
outline: e.value.table.td.outline
|
|
218
|
+
},
|
|
219
|
+
breakpoint: e.value.table.responsiveBreakpoint
|
|
220
|
+
};
|
|
221
|
+
return { head: t, body: o, config: a, colNames: t };
|
|
222
|
+
});
|
|
223
|
+
function ve() {
|
|
224
|
+
Be(() => {
|
|
225
|
+
const t = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], o = U.value.head, a = U.value.body, l = t.concat([o]).concat(a), g = qe(l);
|
|
226
|
+
Je({ csvContent: g, title: e.value.style.chart.title.text || "vue-ui-onion" });
|
|
227
|
+
});
|
|
228
|
+
}
|
|
229
|
+
const b = s(void 0), A = s(!1);
|
|
230
|
+
function Re(t) {
|
|
231
|
+
A.value = t, Q.value += 1;
|
|
232
|
+
}
|
|
233
|
+
const E = s(null);
|
|
234
|
+
function he({ datapoint: t, seriesIndex: o, show: a = !0 }) {
|
|
235
|
+
const l = t.absoluteIndex;
|
|
236
|
+
b.value = o, E.value = {
|
|
237
|
+
datapoint: t,
|
|
238
|
+
seriesIndex: l,
|
|
239
|
+
series: c.value,
|
|
240
|
+
config: e.value
|
|
241
|
+
}, L.value = a;
|
|
242
|
+
let g = "";
|
|
243
|
+
const I = e.value.style.chart.tooltip.customFormat;
|
|
244
|
+
if (be(I) && Ke(() => I({
|
|
245
|
+
seriesIndex: l,
|
|
246
|
+
datapoint: t,
|
|
247
|
+
series: c.value,
|
|
248
|
+
config: e.value
|
|
249
|
+
})))
|
|
250
|
+
X.value = I({
|
|
251
|
+
seriesIndex: l,
|
|
252
|
+
datapoint: t,
|
|
253
|
+
series: c.value,
|
|
254
|
+
config: e.value
|
|
255
|
+
});
|
|
256
|
+
else {
|
|
257
|
+
const W = e.value.style.chart.tooltip.showPercentage, j = e.value.style.chart.tooltip.showValue;
|
|
258
|
+
g += `<div style="width: 100%; border-bottom: 1px solid ${e.value.style.chart.tooltip.borderColor}; padding-bottom: 6px;margin-bottom:3px;display:flex;flex-direction:row;gap:3px;align-items:center"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${t.color}"/></svg><span></span>${t.name}</span></div>`, g += `<div style="width:100%;text-align:left;"><b>${W ? R({ p: "", v: t.percentage, s: "%", r: e.value.style.chart.tooltip.roundingPercentage }) : ""}</b> ${W && j ? "(" : ""}${j ? K(
|
|
259
|
+
e.value.style.chart.layout.labels.value.formatter,
|
|
260
|
+
t.value,
|
|
261
|
+
R({
|
|
262
|
+
p: t.prefix || "",
|
|
263
|
+
v: t.value,
|
|
264
|
+
s: t.suffix || "",
|
|
265
|
+
r: e.value.style.chart.tooltip.roundingValue
|
|
266
|
+
}),
|
|
267
|
+
{ datapoint: t, seriesIndex: o }
|
|
268
|
+
) : ""}${W && j ? ")" : ""}</div>`, X.value = `<div>${g}</div>`;
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
function fe() {
|
|
272
|
+
$.value.showTable = !$.value.showTable;
|
|
273
|
+
}
|
|
274
|
+
function ge() {
|
|
275
|
+
$.value.showTooltip = !$.value.showTooltip;
|
|
276
|
+
}
|
|
277
|
+
const B = s(!1);
|
|
278
|
+
function H() {
|
|
279
|
+
B.value = !B.value;
|
|
280
|
+
}
|
|
281
|
+
return we({
|
|
282
|
+
getData: Ne,
|
|
283
|
+
generatePdf: ue,
|
|
284
|
+
generateCsv: ve,
|
|
285
|
+
generateImage: ie,
|
|
286
|
+
toggleTable: fe,
|
|
287
|
+
toggleTooltip: ge,
|
|
288
|
+
toggleAnnotator: H
|
|
289
|
+
}), (t, o) => (n(), u("div", {
|
|
290
|
+
class: V(`vue-ui-onion ${A.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
291
|
+
ref_key: "onionChart",
|
|
292
|
+
ref: T,
|
|
293
|
+
id: `vue-ui-onion_${x.value}`,
|
|
294
|
+
style: q(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height: 100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`)
|
|
295
|
+
}, [
|
|
296
|
+
e.value.userOptions.buttons.annotator ? (n(), C(it, {
|
|
297
|
+
key: 0,
|
|
298
|
+
parent: T.value,
|
|
299
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
300
|
+
color: e.value.style.chart.color,
|
|
301
|
+
active: B.value,
|
|
302
|
+
onClose: H
|
|
303
|
+
}, null, 8, ["parent", "backgroundColor", "color", "active"])) : p("", !0),
|
|
304
|
+
e.value.style.chart.title.text ? (n(), u("div", {
|
|
305
|
+
key: 1,
|
|
306
|
+
ref_key: "chartTitle",
|
|
307
|
+
ref: Z,
|
|
308
|
+
style: "width:100%;background:transparent"
|
|
309
|
+
}, [
|
|
310
|
+
(n(), C(et, {
|
|
311
|
+
key: `title_${ae.value}`,
|
|
312
|
+
config: {
|
|
313
|
+
title: {
|
|
314
|
+
cy: "onion-div-title",
|
|
315
|
+
...e.value.style.chart.title
|
|
316
|
+
},
|
|
317
|
+
subtitle: {
|
|
318
|
+
cy: "onion-div-subtitle",
|
|
319
|
+
...e.value.style.chart.title.subtitle
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
}, null, 8, ["config"]))
|
|
323
|
+
], 512)) : p("", !0),
|
|
324
|
+
e.value.userOptions.show && D.value ? (n(), C(at, {
|
|
325
|
+
ref_key: "details",
|
|
326
|
+
ref: Te,
|
|
327
|
+
key: `user_options${Q.value}`,
|
|
328
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
329
|
+
color: e.value.style.chart.color,
|
|
330
|
+
isImaging: v(se),
|
|
331
|
+
isPrinting: v(ne),
|
|
332
|
+
uid: x.value,
|
|
333
|
+
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
334
|
+
hasPdf: e.value.userOptions.buttons.pdf,
|
|
335
|
+
hasImg: e.value.userOptions.buttons.img,
|
|
336
|
+
hasXls: e.value.userOptions.buttons.csv,
|
|
337
|
+
hasTable: e.value.userOptions.buttons.table,
|
|
338
|
+
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
339
|
+
isFullscreen: A.value,
|
|
340
|
+
isTooltip: $.value.showTooltip,
|
|
341
|
+
titles: { ...e.value.userOptions.buttonTitles },
|
|
342
|
+
chartElement: T.value,
|
|
343
|
+
position: e.value.userOptions.position,
|
|
344
|
+
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
345
|
+
isAnnotation: B.value,
|
|
346
|
+
onToggleFullscreen: Re,
|
|
347
|
+
onGeneratePdf: v(ue),
|
|
348
|
+
onGenerateCsv: ve,
|
|
349
|
+
onGenerateImage: v(ie),
|
|
350
|
+
onToggleTable: fe,
|
|
351
|
+
onToggleTooltip: ge,
|
|
352
|
+
onToggleAnnotator: H
|
|
353
|
+
}, ze({ _: 2 }, [
|
|
354
|
+
t.$slots.optionTooltip ? {
|
|
355
|
+
name: "optionTooltip",
|
|
356
|
+
fn: h(() => [
|
|
357
|
+
f(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
358
|
+
]),
|
|
359
|
+
key: "0"
|
|
360
|
+
} : void 0,
|
|
361
|
+
t.$slots.optionPdf ? {
|
|
362
|
+
name: "optionPdf",
|
|
363
|
+
fn: h(() => [
|
|
364
|
+
f(t.$slots, "optionPdf", {}, void 0, !0)
|
|
365
|
+
]),
|
|
366
|
+
key: "1"
|
|
367
|
+
} : void 0,
|
|
368
|
+
t.$slots.optionCsv ? {
|
|
369
|
+
name: "optionCsv",
|
|
370
|
+
fn: h(() => [
|
|
371
|
+
f(t.$slots, "optionCsv", {}, void 0, !0)
|
|
372
|
+
]),
|
|
373
|
+
key: "2"
|
|
374
|
+
} : void 0,
|
|
375
|
+
t.$slots.optionImg ? {
|
|
376
|
+
name: "optionImg",
|
|
377
|
+
fn: h(() => [
|
|
378
|
+
f(t.$slots, "optionImg", {}, void 0, !0)
|
|
379
|
+
]),
|
|
380
|
+
key: "3"
|
|
381
|
+
} : void 0,
|
|
382
|
+
t.$slots.optionTable ? {
|
|
383
|
+
name: "optionTable",
|
|
384
|
+
fn: h(() => [
|
|
385
|
+
f(t.$slots, "optionTable", {}, void 0, !0)
|
|
386
|
+
]),
|
|
387
|
+
key: "4"
|
|
388
|
+
} : void 0,
|
|
389
|
+
t.$slots.optionFullscreen ? {
|
|
390
|
+
name: "optionFullscreen",
|
|
391
|
+
fn: h(({ toggleFullscreen: a, isFullscreen: l }) => [
|
|
392
|
+
f(t.$slots, "optionFullscreen", S(M({ toggleFullscreen: a, isFullscreen: l })), void 0, !0)
|
|
393
|
+
]),
|
|
394
|
+
key: "5"
|
|
395
|
+
} : void 0,
|
|
396
|
+
t.$slots.optionAnnotator ? {
|
|
397
|
+
name: "optionAnnotator",
|
|
398
|
+
fn: h(({ toggleAnnotator: a, isAnnotator: l }) => [
|
|
399
|
+
f(t.$slots, "optionAnnotator", S(M({ toggleAnnotator: a, isAnnotator: l })), void 0, !0)
|
|
400
|
+
]),
|
|
401
|
+
key: "6"
|
|
402
|
+
} : void 0
|
|
403
|
+
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage"])) : p("", !0),
|
|
404
|
+
D.value ? (n(), u("svg", {
|
|
405
|
+
key: 3,
|
|
406
|
+
xmlns: v(je),
|
|
407
|
+
class: V({ "vue-data-ui-fullscreen--on": A.value, "vue-data-ui-fulscreen--off": !A.value }),
|
|
408
|
+
viewBox: `0 0 ${r.value.width <= 0 ? 1e-4 : r.value.width} ${r.value.height <= 0 ? 1e-4 : r.value.height}`,
|
|
409
|
+
style: q(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
410
|
+
}, [
|
|
411
|
+
ye(ut),
|
|
412
|
+
(n(!0), u(F, null, N(m.value, (a, l) => (n(), u("circle", {
|
|
413
|
+
cx: i.value.centerX,
|
|
414
|
+
cy: i.value.centerY,
|
|
415
|
+
r: a.radius <= 0 ? 1e-4 : a.radius,
|
|
416
|
+
stroke: e.value.style.chart.layout.gutter.color,
|
|
417
|
+
"stroke-width": w.value.gutter,
|
|
418
|
+
fill: "none",
|
|
419
|
+
"stroke-dasharray": a.path.bgDashArray,
|
|
420
|
+
"stroke-dashoffset": a.path.fullOffset,
|
|
421
|
+
"stroke-linecap": "round",
|
|
422
|
+
class: V({ "vue-ui-onion-path": !0, "vue-ui-onion-blur": e.value.useBlurOnHover && ![null, void 0].includes(b.value) && b.value !== l }),
|
|
423
|
+
style: { transform: "rotate(-90deg)", "transform-origin": "50% 50%" }
|
|
424
|
+
}, null, 10, ht))), 256)),
|
|
425
|
+
(n(!0), u(F, null, N(m.value, (a, l) => (n(), u("circle", {
|
|
426
|
+
cx: i.value.centerX,
|
|
427
|
+
cy: i.value.centerY,
|
|
428
|
+
r: a.radius < 0 ? 1e-4 : a.radius,
|
|
429
|
+
stroke: `${a.color}`,
|
|
430
|
+
"stroke-width": w.value.track,
|
|
431
|
+
fill: "none",
|
|
432
|
+
"stroke-dasharray": a.path.dashArray,
|
|
433
|
+
"stroke-dashoffset": a.path.dashOffset,
|
|
434
|
+
class: V({ "vue-ui-onion-path": !0, "vue-ui-onion-blur": e.value.useBlurOnHover && ![null, void 0].includes(b.value) && b.value !== l }),
|
|
435
|
+
"stroke-linecap": "round",
|
|
436
|
+
style: { transform: "rotate(-90deg)", "transform-origin": "50% 50%" }
|
|
437
|
+
}, null, 10, ft))), 256)),
|
|
438
|
+
_("defs", null, [
|
|
439
|
+
_("filter", {
|
|
440
|
+
id: `blur_${x.value}`,
|
|
441
|
+
x: "-50%",
|
|
442
|
+
y: "-50%",
|
|
443
|
+
width: "200%",
|
|
444
|
+
height: "200%"
|
|
445
|
+
}, [
|
|
446
|
+
_("feGaussianBlur", {
|
|
447
|
+
in: "SourceGraphic",
|
|
448
|
+
stdDeviation: 100 / e.value.style.chart.gradientIntensity
|
|
449
|
+
}, null, 8, pt)
|
|
450
|
+
], 8, gt)
|
|
451
|
+
]),
|
|
452
|
+
e.value.style.chart.useGradient ? (n(), u("g", {
|
|
453
|
+
key: 0,
|
|
454
|
+
filter: `url(#blur_${x.value})`
|
|
455
|
+
}, [
|
|
456
|
+
(n(!0), u(F, null, N(m.value, (a, l) => (n(), u("circle", {
|
|
457
|
+
cx: i.value.centerX,
|
|
458
|
+
cy: i.value.centerY,
|
|
459
|
+
r: a.radius <= 0 ? 1e-4 : a.radius,
|
|
460
|
+
stroke: "white",
|
|
461
|
+
"stroke-width": w.value.track / 3,
|
|
462
|
+
fill: "none",
|
|
463
|
+
"stroke-linecap": "round",
|
|
464
|
+
"stroke-dasharray": a.path.dashArray,
|
|
465
|
+
"stroke-dashoffset": a.path.dashOffset,
|
|
466
|
+
style: { transform: "rotate(-90deg)", "transform-origin": "50% 50%" }
|
|
467
|
+
}, null, 8, mt))), 256))
|
|
468
|
+
], 8, yt)) : p("", !0),
|
|
469
|
+
(n(!0), u(F, null, N(m.value, (a, l) => (n(), u("circle", {
|
|
470
|
+
"data-cy-trap": "",
|
|
471
|
+
cx: i.value.centerX,
|
|
472
|
+
cy: i.value.centerY,
|
|
473
|
+
r: a.radius <= 0 ? 1e-4 : a.radius,
|
|
474
|
+
stroke: "transparent",
|
|
475
|
+
"stroke-width": Math.max(w.value.track, w.value.gutter),
|
|
476
|
+
fill: "none",
|
|
477
|
+
"stroke-dasharray": a.path.bgDashArray,
|
|
478
|
+
"stroke-dashoffset": a.path.fullOffset,
|
|
479
|
+
"stroke-linecap": "round",
|
|
480
|
+
class: "vue-ui-onion-path",
|
|
481
|
+
style: { transform: "rotate(-90deg)", "transform-origin": "50% 50%" },
|
|
482
|
+
onMouseenter: (g) => he({
|
|
483
|
+
datapoint: a,
|
|
484
|
+
show: !0,
|
|
485
|
+
seriesIndex: l
|
|
486
|
+
}),
|
|
487
|
+
onMouseleave: o[0] || (o[0] = (g) => {
|
|
488
|
+
b.value = void 0, L.value = !1;
|
|
489
|
+
})
|
|
490
|
+
}, null, 40, bt))), 256)),
|
|
491
|
+
e.value.style.chart.layout.labels.show ? (n(), u("g", kt, [
|
|
492
|
+
(n(!0), u(F, null, N(m.value, (a, l) => (n(), u("g", {
|
|
493
|
+
onMouseenter: (g) => he({
|
|
494
|
+
datapoint: a,
|
|
495
|
+
show: !0,
|
|
496
|
+
seriesIndex: l
|
|
497
|
+
}),
|
|
498
|
+
onMouseleave: o[1] || (o[1] = (g) => {
|
|
499
|
+
b.value = void 0, L.value = !1;
|
|
500
|
+
})
|
|
501
|
+
}, [
|
|
502
|
+
y.value.includes(a.id) ? p("", !0) : (n(), u("text", {
|
|
503
|
+
key: 0,
|
|
504
|
+
x: r.value.width / 2 - w.value.gutter * 0.8 + e.value.style.chart.layout.labels.offsetX,
|
|
505
|
+
y: a.labelY + e.value.style.chart.layout.labels.offsetY,
|
|
506
|
+
"text-anchor": "end",
|
|
507
|
+
"font-size": e.value.style.chart.layout.labels.fontSize,
|
|
508
|
+
fill: e.value.useBlurOnHover && ![null, void 0].includes(b.value) && b.value === l ? a.color : e.value.style.chart.layout.labels.color,
|
|
509
|
+
"font-weight": e.value.style.chart.layout.labels.bold ? "bold" : "normal"
|
|
510
|
+
}, P(a.name ? a.name + ": " : "") + " " + P(e.value.style.chart.layout.labels.percentage.show ? v(R)({
|
|
511
|
+
v: a.percentage,
|
|
512
|
+
s: "%",
|
|
513
|
+
r: e.value.style.chart.layout.labels.roundingPercentage
|
|
514
|
+
}) : "") + " " + P(!e.value.style.chart.layout.labels.percentage.show && e.value.style.chart.layout.labels.value.show ? `: ${v(K)(
|
|
515
|
+
e.value.style.chart.layout.labels.value.formatter,
|
|
516
|
+
a.value,
|
|
517
|
+
v(R)({
|
|
518
|
+
p: a.prefix || "",
|
|
519
|
+
v: a.value || 0,
|
|
520
|
+
s: a.suffix || "",
|
|
521
|
+
r: e.value.style.chart.layout.labels.roundingValue
|
|
522
|
+
}),
|
|
523
|
+
{ datapoint: a, seriesIndex: l }
|
|
524
|
+
)}` : `${e.value.style.chart.layout.labels.value.show && a.value ? `(${v(K)(
|
|
525
|
+
e.value.style.chart.layout.labels.value.formatter,
|
|
526
|
+
a.value,
|
|
527
|
+
v(R)({
|
|
528
|
+
p: a.prefix || "",
|
|
529
|
+
v: a.value || 0,
|
|
530
|
+
s: a.suffix || "",
|
|
531
|
+
r: e.value.style.chart.layout.labels.roundingValue
|
|
532
|
+
}),
|
|
533
|
+
{ datapoint: a, seriesIndex: l }
|
|
534
|
+
)})` : ""}`), 9, wt))
|
|
535
|
+
], 40, $t))), 256))
|
|
536
|
+
])) : p("", !0),
|
|
537
|
+
f(t.$slots, "svg", { svg: r.value }, void 0, !0)
|
|
538
|
+
], 14, vt)) : p("", !0),
|
|
539
|
+
t.$slots.watermark ? (n(), u("div", Ct, [
|
|
540
|
+
f(t.$slots, "watermark", S(M({ isPrinting: v(ne) || v(se) })), void 0, !0)
|
|
541
|
+
])) : p("", !0),
|
|
542
|
+
D.value ? p("", !0) : (n(), C(nt, {
|
|
543
|
+
key: 5,
|
|
544
|
+
config: {
|
|
545
|
+
type: "onion",
|
|
546
|
+
style: {
|
|
547
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
548
|
+
onion: {
|
|
549
|
+
color: e.value.style.chart.layout.gutter.color
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
}
|
|
553
|
+
}, null, 8, ["config"])),
|
|
554
|
+
_("div", {
|
|
555
|
+
ref_key: "chartLegend",
|
|
556
|
+
ref: ee
|
|
557
|
+
}, [
|
|
558
|
+
e.value.style.chart.legend.show ? (n(), C(lt, {
|
|
559
|
+
key: `legend_${oe.value}`,
|
|
560
|
+
legendSet: c.value,
|
|
561
|
+
config: Se.value,
|
|
562
|
+
onClickMarker: o[2] || (o[2] = ({ legend: a }) => de(a.id))
|
|
563
|
+
}, {
|
|
564
|
+
item: h(({ legend: a }) => [
|
|
565
|
+
_("div", {
|
|
566
|
+
"data-cy-legend-item": "",
|
|
567
|
+
onClick: (l) => a.segregate(),
|
|
568
|
+
style: q(`opacity:${y.value.includes(a.id) ? 0.5 : 1}`)
|
|
569
|
+
}, P(a.name ? a.name + ": " : "") + " " + P((a.percentage || 0).toFixed(e.value.style.chart.legend.roundingPercentage)) + "% ", 13, xt)
|
|
570
|
+
]),
|
|
571
|
+
_: 1
|
|
572
|
+
}, 8, ["legendSet", "config"])) : f(t.$slots, "legend", {
|
|
573
|
+
key: 1,
|
|
574
|
+
legend: c.value
|
|
575
|
+
}, void 0, !0)
|
|
576
|
+
], 512),
|
|
577
|
+
t.$slots.source ? (n(), u("div", {
|
|
578
|
+
key: 6,
|
|
579
|
+
ref_key: "source",
|
|
580
|
+
ref: te,
|
|
581
|
+
dir: "auto"
|
|
582
|
+
}, [
|
|
583
|
+
f(t.$slots, "source", {}, void 0, !0)
|
|
584
|
+
], 512)) : p("", !0),
|
|
585
|
+
ye(rt, {
|
|
586
|
+
show: $.value.showTooltip && L.value,
|
|
587
|
+
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
588
|
+
color: e.value.style.chart.tooltip.color,
|
|
589
|
+
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
590
|
+
borderColor: e.value.style.chart.tooltip.borderColor,
|
|
591
|
+
borderWidth: e.value.style.chart.tooltip.borderWidth,
|
|
592
|
+
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
593
|
+
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
594
|
+
position: e.value.style.chart.tooltip.position,
|
|
595
|
+
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
596
|
+
parent: T.value,
|
|
597
|
+
content: X.value,
|
|
598
|
+
isCustom: v(be)(e.value.style.chart.tooltip.customFormat)
|
|
599
|
+
}, {
|
|
600
|
+
"tooltip-before": h(() => [
|
|
601
|
+
f(t.$slots, "tooltip-before", S(M({ ...E.value })), void 0, !0)
|
|
602
|
+
]),
|
|
603
|
+
"tooltip-after": h(() => [
|
|
604
|
+
f(t.$slots, "tooltip-after", S(M({ ...E.value })), void 0, !0)
|
|
605
|
+
]),
|
|
606
|
+
_: 3
|
|
607
|
+
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
|
|
608
|
+
D.value ? (n(), C(st, {
|
|
609
|
+
key: 7,
|
|
610
|
+
hideDetails: "",
|
|
611
|
+
config: {
|
|
612
|
+
open: $.value.showTable,
|
|
613
|
+
maxHeight: 1e4,
|
|
614
|
+
head: {
|
|
615
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
616
|
+
color: e.value.style.chart.color
|
|
617
|
+
},
|
|
618
|
+
body: {
|
|
619
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
620
|
+
color: e.value.style.chart.color
|
|
621
|
+
}
|
|
622
|
+
}
|
|
623
|
+
}, {
|
|
624
|
+
content: h(() => [
|
|
625
|
+
(n(), C(ot, {
|
|
626
|
+
key: `table_${le.value}`,
|
|
627
|
+
colNames: Y.value.colNames,
|
|
628
|
+
head: Y.value.head,
|
|
629
|
+
body: Y.value.body,
|
|
630
|
+
config: Y.value.config,
|
|
631
|
+
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
632
|
+
onClose: o[3] || (o[3] = (a) => $.value.showTable = !1)
|
|
633
|
+
}, {
|
|
634
|
+
th: h(({ th: a }) => [
|
|
635
|
+
Ye(P(a), 1)
|
|
636
|
+
]),
|
|
637
|
+
td: h(({ td: a }) => [
|
|
638
|
+
_("div", { innerHTML: a }, null, 8, Tt)
|
|
639
|
+
]),
|
|
640
|
+
_: 1
|
|
641
|
+
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
642
|
+
]),
|
|
643
|
+
_: 1
|
|
644
|
+
}, 8, ["config"])) : p("", !0)
|
|
645
|
+
], 14, dt));
|
|
646
|
+
}
|
|
647
|
+
}, Vt = /* @__PURE__ */ ct(_t, [["__scopeId", "data-v-71fb43d0"]]);
|
|
648
|
+
export {
|
|
649
|
+
Vt as default
|
|
650
|
+
};
|