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,23 +1,28 @@
|
|
|
1
|
-
import { computed as
|
|
2
|
-
import { u as
|
|
3
|
-
import { _ as
|
|
4
|
-
import { u as
|
|
5
|
-
import { D as
|
|
6
|
-
import { L as
|
|
7
|
-
import
|
|
8
|
-
import { S as
|
|
9
|
-
import xt from "./vue-ui-accordion-
|
|
10
|
-
import { u as
|
|
11
|
-
import { _ as
|
|
12
|
-
import {
|
|
13
|
-
|
|
1
|
+
import { computed as m, ref as p, onMounted as Je, watch as De, openBlock as a, createElementBlock as o, normalizeClass as D, normalizeStyle as re, createBlock as I, createCommentVNode as v, unref as c, createSlots as Qe, withCtx as F, renderSlot as P, normalizeProps as Y, guardReactiveProps as K, createVNode as Ze, createElementVNode as d, Fragment as x, renderList as k, toDisplayString as b, withKeys as et, createTextVNode as Te, nextTick as tt } from "vue";
|
|
2
|
+
import { u as lt, o as at, e as q, g as ot, c as Ie, t as ut, a as st, p as J, b as nt, I as rt, d as ie, C as Ee, m as ce, X as it, s as U, D as ct, i as ve, f as Q, j as Oe, k as Z, n as Ve, J as He, q as vt, r as dt } from "./index-Bya_q1J-.js";
|
|
3
|
+
import { _ as ht } from "./Title-C5pIfQAz.js";
|
|
4
|
+
import { u as yt, U as ft } from "./usePrinter-CiHd1FwD.js";
|
|
5
|
+
import { D as gt } from "./DataTable-DYqC2pqu.js";
|
|
6
|
+
import { L as bt } from "./Legend-DNgTCgEK.js";
|
|
7
|
+
import mt from "./vue-ui-skeleton-BYssP0K4.js";
|
|
8
|
+
import { S as pt } from "./Slicer-TfpN2Cr4.js";
|
|
9
|
+
import xt from "./vue-ui-accordion-DfUfL2dI.js";
|
|
10
|
+
import { u as Me } from "./useNestedProp-B33hazbH.js";
|
|
11
|
+
import { _ as kt } from "./PackageVersion-VkaUzgmt.js";
|
|
12
|
+
import { P as _t } from "./PenAndPaper-DAZYA8Ew.js";
|
|
13
|
+
import { _ as Ct } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
|
+
const wt = ["id"], Lt = ["xmlns", "viewBox"], At = ["id"], $t = ["stop-color"], St = ["stop-color"], Nt = ["id"], zt = ["stop-color"], Ft = ["stop-color"], Pt = ["stop-color"], Dt = { key: 0 }, Tt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], It = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Et = { key: 0 }, Ot = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Vt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ht = ["x", "y", "font-size", "fill", "font-weight"], Mt = ["text-anchor", "font-size", "fill", "transform"], Wt = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Rt = { key: 1 }, Ut = ["cx", "cy", "r", "fill"], Xt = { key: 0 }, Gt = { key: 0 }, jt = ["d", "stroke"], Bt = ["text-anchor", "x", "y", "fill"], Yt = ["cx", "cy", "r", "fill"], Kt = { key: 0 }, qt = ["cx", "cy", "fill"], Jt = { key: 1 }, Qt = ["d", "fill", "stroke"], Zt = { key: 2 }, el = ["d", "fill", "stroke"], tl = ["x", "y", "font-size", "fill"], ll = ["x", "y", "width", "fill", "onClick"], al = ["x", "y", "width", "height", "onMouseenter", "onClick"], ol = {
|
|
14
15
|
key: 3,
|
|
15
16
|
"data-cy-zoom": "",
|
|
16
17
|
class: "vue-ui-donut-evolution-dialog"
|
|
17
|
-
},
|
|
18
|
-
key:
|
|
18
|
+
}, ul = ["x", "y", "width", "height", "fill"], sl = ["x1", "y1", "x2", "y2", "stroke"], nl = ["x1", "y2", "x2", "y1", "stroke"], rl = ["onKeypress", "cx", "cy", "r"], il = ["d", "stroke"], cl = ["cx", "cy", "r", "fill"], vl = ["d", "fill", "stroke"], dl = { class: "vue-ui-donut-evolution-focus" }, hl = ["text-anchor", "x", "y", "fill"], yl = ["cx", "cy", "r", "fill"], fl = ["cx", "cy", "r", "fill"], gl = ["x", "y", "fill"], bl = ["x", "y", "font-size", "fill"], ml = {
|
|
19
|
+
key: 4,
|
|
19
20
|
class: "vue-data-ui-watermark"
|
|
20
|
-
},
|
|
21
|
+
}, pl = ["onClick"], xl = { key: 0 }, kl = { key: 1 }, _l = {
|
|
22
|
+
key: 8,
|
|
23
|
+
ref: "source",
|
|
24
|
+
dir: "auto"
|
|
25
|
+
}, Cl = { key: 0 }, wl = { key: 1 }, Ll = {
|
|
21
26
|
__name: "vue-ui-donut-evolution",
|
|
22
27
|
props: {
|
|
23
28
|
config: {
|
|
@@ -34,30 +39,30 @@ const kt = ["id"], _t = ["xmlns", "viewBox"], Ct = ["id"], wt = ["stop-color"],
|
|
|
34
39
|
}
|
|
35
40
|
},
|
|
36
41
|
emits: ["selectLegend"],
|
|
37
|
-
setup(
|
|
38
|
-
const
|
|
42
|
+
setup(We, { expose: Re, emit: de }) {
|
|
43
|
+
const A = We, { vue_ui_donut_evolution: Ue } = lt(), X = m(() => !!A.dataset && A.dataset.length), h = p({
|
|
39
44
|
start: 0,
|
|
40
|
-
end: Math.max(
|
|
45
|
+
end: Math.max(...A.dataset.map((l) => l.values.length))
|
|
41
46
|
});
|
|
42
|
-
function
|
|
47
|
+
function he() {
|
|
43
48
|
h.value = {
|
|
44
49
|
start: 0,
|
|
45
50
|
end: W.value
|
|
46
|
-
},
|
|
51
|
+
}, ge.value += 1;
|
|
47
52
|
}
|
|
48
|
-
|
|
49
|
-
|
|
53
|
+
Je(() => {
|
|
54
|
+
ye();
|
|
50
55
|
});
|
|
51
|
-
function
|
|
52
|
-
|
|
56
|
+
function ye() {
|
|
57
|
+
at(A.dataset) ? q({
|
|
53
58
|
componentName: "VueUiDonutEvolution",
|
|
54
59
|
type: "dataset"
|
|
55
|
-
}) :
|
|
56
|
-
|
|
60
|
+
}) : A.dataset.length && A.dataset.forEach((l, i) => {
|
|
61
|
+
ot({
|
|
57
62
|
datasetObject: l,
|
|
58
63
|
requiredAttributes: ["name", "values"]
|
|
59
64
|
}).forEach((t) => {
|
|
60
|
-
|
|
65
|
+
q({
|
|
61
66
|
componentName: "VueUiDonutEvolution",
|
|
62
67
|
type: "datasetSerieAttribute",
|
|
63
68
|
property: t,
|
|
@@ -66,39 +71,39 @@ const kt = ["id"], _t = ["xmlns", "viewBox"], Ct = ["id"], wt = ["stop-color"],
|
|
|
66
71
|
});
|
|
67
72
|
});
|
|
68
73
|
}
|
|
69
|
-
const
|
|
74
|
+
const E = p(Ie()), _ = p([]), g = p(null), ee = p(null), $ = p(!1), S = p(null), te = p(null), fe = p(0), ge = p(0), be = p(0), me = p(0), pe = p(0), e = m({
|
|
70
75
|
get: () => xe(),
|
|
71
76
|
set: (l) => l
|
|
72
77
|
});
|
|
73
78
|
function xe() {
|
|
74
|
-
const l =
|
|
75
|
-
userConfig:
|
|
76
|
-
defaultConfig:
|
|
79
|
+
const l = Me({
|
|
80
|
+
userConfig: A.config,
|
|
81
|
+
defaultConfig: Ue
|
|
77
82
|
});
|
|
78
83
|
return l.theme ? {
|
|
79
|
-
...
|
|
80
|
-
userConfig:
|
|
84
|
+
...Me({
|
|
85
|
+
userConfig: ut.vue_ui_donut_evolution[l.theme] || A.config,
|
|
81
86
|
defaultConfig: l
|
|
82
87
|
}),
|
|
83
|
-
customPalette:
|
|
88
|
+
customPalette: st[l.theme] || J
|
|
84
89
|
} : l;
|
|
85
90
|
}
|
|
86
|
-
|
|
87
|
-
e.value = xe(),
|
|
88
|
-
}, { deep: !0 }),
|
|
89
|
-
|
|
91
|
+
De(() => A.config, (l) => {
|
|
92
|
+
e.value = xe(), ye(), be.value += 1, me.value += 1, pe.value += 1;
|
|
93
|
+
}, { deep: !0 }), De(() => A.dataset, (l) => {
|
|
94
|
+
he();
|
|
90
95
|
}, { deep: !0 });
|
|
91
|
-
const { isPrinting:
|
|
92
|
-
elementId:
|
|
96
|
+
const { isPrinting: ke, isImaging: _e, generatePdf: Ce, generateImage: we } = yt({
|
|
97
|
+
elementId: E.value,
|
|
93
98
|
fileName: e.value.style.chart.title.text || "vue-ui-donut-evolution"
|
|
94
|
-
}),
|
|
99
|
+
}), Xe = m(() => nt(e.value.customPalette)), G = p({
|
|
95
100
|
showTable: e.value.table.show
|
|
96
|
-
}), s =
|
|
101
|
+
}), s = m(() => ({
|
|
97
102
|
top: e.value.style.chart.layout.padding.top,
|
|
98
103
|
right: e.value.style.chart.layout.padding.right,
|
|
99
104
|
bottom: e.value.style.chart.layout.padding.bottom,
|
|
100
105
|
left: e.value.style.chart.layout.padding.left
|
|
101
|
-
})), r =
|
|
106
|
+
})), r = m(() => {
|
|
102
107
|
const l = e.value.style.chart.layout.height, i = e.value.style.chart.layout.width, t = l - s.value.top - s.value.bottom, n = i - s.value.left - s.value.right;
|
|
103
108
|
return {
|
|
104
109
|
absoluteHeight: l,
|
|
@@ -108,64 +113,64 @@ const kt = ["id"], _t = ["xmlns", "viewBox"], Ct = ["id"], wt = ["stop-color"],
|
|
|
108
113
|
height: t,
|
|
109
114
|
width: n
|
|
110
115
|
};
|
|
111
|
-
}),
|
|
112
|
-
[null, void 0].includes(l.name) &&
|
|
116
|
+
}), T = m(() => (A.dataset.forEach((l, i) => {
|
|
117
|
+
[null, void 0].includes(l.name) && q({
|
|
113
118
|
componentName: "VueUiDonutEvolution",
|
|
114
119
|
type: "datasetSerieAttribute",
|
|
115
120
|
property: "name",
|
|
116
121
|
index: i
|
|
117
|
-
}), [null, void 0].includes(l.values) &&
|
|
122
|
+
}), [null, void 0].includes(l.values) && q({
|
|
118
123
|
componentName: "VueUiDonutEvolution",
|
|
119
124
|
type: "datasetSerieAttribute",
|
|
120
125
|
property: "values",
|
|
121
126
|
index: i
|
|
122
127
|
});
|
|
123
|
-
}),
|
|
128
|
+
}), A.dataset.map((l, i) => ({
|
|
124
129
|
...l,
|
|
125
|
-
values:
|
|
126
|
-
color:
|
|
130
|
+
values: rt(l.values),
|
|
131
|
+
color: ie(l.color) || Xe.value[i] || J[i] || J[i % J.length],
|
|
127
132
|
length: (l.values || []).length,
|
|
128
|
-
uid:
|
|
129
|
-
})))), M =
|
|
133
|
+
uid: Ie()
|
|
134
|
+
})))), M = m(() => T.value.filter((l) => !_.value.includes(l.uid)).map((l) => ({
|
|
130
135
|
...l,
|
|
131
136
|
values: l.values.filter((i, t) => t >= h.value.start && t <= h.value.end)
|
|
132
|
-
}))), W =
|
|
137
|
+
}))), W = m(() => Math.max(...M.value.map((l) => l.length))), w = m(() => r.value.width / (h.value.end - h.value.start)), C = m(() => {
|
|
133
138
|
const l = [];
|
|
134
|
-
for (let
|
|
135
|
-
const f = M.value.map((z) => z.values[
|
|
139
|
+
for (let u = 0; u < h.value.end - h.value.start; u += 1) {
|
|
140
|
+
const f = M.value.map((z) => z.values[u] ?? null), y = f.filter((z) => [void 0, null].includes(z)).length === f.length, N = f.reduce((z, L) => z + L, 0), ne = f.map((z) => z / N), H = s.value.left + w.value * u + w.value / 2;
|
|
136
141
|
l.push({
|
|
137
|
-
index:
|
|
138
|
-
percentages:
|
|
142
|
+
index: u,
|
|
143
|
+
percentages: ne,
|
|
139
144
|
subtotal: y || N < 0 ? null : N,
|
|
140
145
|
values: f,
|
|
141
146
|
x: H
|
|
142
147
|
});
|
|
143
148
|
}
|
|
144
|
-
const i = 0, t = Math.max(...l.map((
|
|
145
|
-
return l.map((
|
|
146
|
-
const y = w.value / 2 * 0.7, N = y > r.value.width / 16 ? r.value.width / 16 : y,
|
|
149
|
+
const i = 0, t = Math.max(...l.map((u) => u.subtotal)), n = l.length === 1 ? t * 2 : t;
|
|
150
|
+
return l.map((u, f) => {
|
|
151
|
+
const y = w.value / 2 * 0.7, N = y > r.value.width / 16 ? r.value.width / 16 : y, ne = g.value === u.index ? r.value.width / 16 : N, H = l.length > 4 ? y * 2 : y * 2 > w.value / 2 * 0.7 ? w.value / 2 * 0.7 : y * 2, z = r.value.absoluteHeight - s.value.bottom - r.value.height * u.subtotal / Ee(i, n, e.value.style.chart.layout.grid.yAxis.dataLabels.steps).max;
|
|
147
152
|
return {
|
|
148
|
-
...
|
|
153
|
+
...u,
|
|
149
154
|
y: z,
|
|
150
155
|
radius: N,
|
|
151
|
-
activeRadius:
|
|
156
|
+
activeRadius: ne,
|
|
152
157
|
hoverRadius: H,
|
|
153
|
-
donut:
|
|
154
|
-
series: M.value.map((L,
|
|
158
|
+
donut: ce({
|
|
159
|
+
series: M.value.map((L, Pe) => ({
|
|
155
160
|
color: L.color,
|
|
156
161
|
name: L.name,
|
|
157
162
|
value: L.values[f] ?? 0
|
|
158
163
|
}))
|
|
159
|
-
},
|
|
160
|
-
donutHover:
|
|
161
|
-
series: M.value.map((L,
|
|
164
|
+
}, u.x, z, N, N, 1.99999, 2, 1, 360, 105.25, N / 2),
|
|
165
|
+
donutHover: ce({
|
|
166
|
+
series: M.value.map((L, Pe) => ({
|
|
162
167
|
color: L.color,
|
|
163
168
|
name: L.name,
|
|
164
169
|
value: L.values[f] ?? 0
|
|
165
170
|
}))
|
|
166
|
-
},
|
|
167
|
-
donutFocus:
|
|
168
|
-
series: M.value.map((L,
|
|
171
|
+
}, u.x, z, H, H, 1.99999, 2, 1, 360, 105.25, H / 2),
|
|
172
|
+
donutFocus: ce({
|
|
173
|
+
series: M.value.map((L, Pe) => ({
|
|
169
174
|
color: L.color,
|
|
170
175
|
name: L.name,
|
|
171
176
|
value: L.values[f] ?? 0
|
|
@@ -175,10 +180,10 @@ const kt = ["id"], _t = ["xmlns", "viewBox"], Ct = ["id"], wt = ["stop-color"],
|
|
|
175
180
|
});
|
|
176
181
|
});
|
|
177
182
|
function j(l, i, t) {
|
|
178
|
-
return
|
|
183
|
+
return ve(
|
|
179
184
|
e.value.style.chart.layout.dataLabels.formatter,
|
|
180
185
|
l,
|
|
181
|
-
|
|
186
|
+
Q({
|
|
182
187
|
p: e.value.style.chart.layout.dataLabels.prefix,
|
|
183
188
|
v: l,
|
|
184
189
|
s: e.value.style.chart.layout.dataLabels.suffix,
|
|
@@ -187,37 +192,37 @@ const kt = ["id"], _t = ["xmlns", "viewBox"], Ct = ["id"], wt = ["stop-color"],
|
|
|
187
192
|
{ datapoint: i, index: t }
|
|
188
193
|
);
|
|
189
194
|
}
|
|
190
|
-
const
|
|
195
|
+
const le = m(() => ({
|
|
191
196
|
max: Math.max(...C.value.map((l) => l.subtotal)),
|
|
192
197
|
min: 0
|
|
193
|
-
})), O =
|
|
194
|
-
const l = C.value.length === 1 ?
|
|
195
|
-
return
|
|
198
|
+
})), O = m(() => {
|
|
199
|
+
const l = C.value.length === 1 ? le.value.max * 2 : le.value.max;
|
|
200
|
+
return Ee(le.value.min, l, e.value.style.chart.layout.grid.yAxis.dataLabels.steps);
|
|
196
201
|
});
|
|
197
|
-
function
|
|
202
|
+
function Ge(l) {
|
|
198
203
|
return l / O.value.max;
|
|
199
204
|
}
|
|
200
|
-
const
|
|
201
|
-
y: r.value.absoluteHeight - s.value.bottom - r.value.height *
|
|
205
|
+
const je = m(() => O.value.ticks.map((l) => ({
|
|
206
|
+
y: r.value.absoluteHeight - s.value.bottom - r.value.height * Ge(l),
|
|
202
207
|
value: l
|
|
203
208
|
})));
|
|
204
|
-
function
|
|
205
|
-
return isNaN(l.value /
|
|
209
|
+
function Le(l, i) {
|
|
210
|
+
return isNaN(l.value / He(i, "value")) ? 0 : (l.value / He(i, "value") * 100).toFixed(0) + "%";
|
|
206
211
|
}
|
|
207
|
-
function
|
|
208
|
-
|
|
212
|
+
function Ae() {
|
|
213
|
+
$.value || (g.value = null, ee.value = null);
|
|
209
214
|
}
|
|
210
|
-
function
|
|
211
|
-
|
|
215
|
+
function Be(l) {
|
|
216
|
+
$.value || (g.value = l.index, ee.value = l);
|
|
212
217
|
}
|
|
213
|
-
const
|
|
214
|
-
function
|
|
215
|
-
l.subtotal && (
|
|
218
|
+
const ae = p(null);
|
|
219
|
+
function oe(l, i) {
|
|
220
|
+
l.subtotal && (ee.value = null, g.value = null, $.value = !0, S.value = l, [null, void 0].includes(i) || (ae.value = i));
|
|
216
221
|
}
|
|
217
|
-
function
|
|
218
|
-
|
|
222
|
+
function $e() {
|
|
223
|
+
S.value = null, $.value = !1, ae.value = null;
|
|
219
224
|
}
|
|
220
|
-
const
|
|
225
|
+
const Se = m(() => T.value.map((l, i) => ({
|
|
221
226
|
name: l.name,
|
|
222
227
|
value: l.values.slice(h.value.start, h.value.end).reduce((t, n) => t + n, 0),
|
|
223
228
|
shape: "circle",
|
|
@@ -226,9 +231,9 @@ const kt = ["id"], _t = ["xmlns", "viewBox"], Ct = ["id"], wt = ["stop-color"],
|
|
|
226
231
|
})).sort((l, i) => i.value - l.value).map((l) => ({
|
|
227
232
|
...l,
|
|
228
233
|
opacity: _.value.includes(l.uid) ? 0.5 : 1,
|
|
229
|
-
segregate: () =>
|
|
234
|
+
segregate: () => ue(l.uid),
|
|
230
235
|
isSegregated: _.value.includes(l.uid)
|
|
231
|
-
}))),
|
|
236
|
+
}))), Ne = m(() => C.value.map((l) => l.subtotal).reduce((l, i) => l + i, 0)), Ye = m(() => ({
|
|
232
237
|
cy: "donut-div-legend",
|
|
233
238
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
234
239
|
color: e.value.style.chart.legend.color,
|
|
@@ -236,26 +241,26 @@ const kt = ["id"], _t = ["xmlns", "viewBox"], Ct = ["id"], wt = ["stop-color"],
|
|
|
236
241
|
paddingBottom: 12,
|
|
237
242
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
238
243
|
}));
|
|
239
|
-
function
|
|
244
|
+
function ue(l) {
|
|
240
245
|
if (_.value.includes(l))
|
|
241
|
-
_.value = _.value.filter((i) => i !== l),
|
|
246
|
+
_.value = _.value.filter((i) => i !== l), de("selectLegend", null);
|
|
242
247
|
else {
|
|
243
|
-
if (_.value.length ===
|
|
244
|
-
_.value.push(l),
|
|
248
|
+
if (_.value.length === T.value.length - 1) return;
|
|
249
|
+
_.value.push(l), de("selectLegend", T.value.find((i) => i.uid === l));
|
|
245
250
|
}
|
|
246
|
-
|
|
251
|
+
S.value && oe(C.value.find((i, t) => t === ae.value));
|
|
247
252
|
}
|
|
248
|
-
const V =
|
|
249
|
-
const l = [""].concat(
|
|
250
|
-
name:
|
|
251
|
-
color:
|
|
253
|
+
const V = m(() => {
|
|
254
|
+
const l = [""].concat(T.value.filter((u) => !_.value.includes(u.uid)).map((u) => ({
|
|
255
|
+
name: u.name,
|
|
256
|
+
color: u.color
|
|
252
257
|
}))).concat(["Σ"]);
|
|
253
258
|
let i = [];
|
|
254
|
-
for (let
|
|
255
|
-
const f =
|
|
256
|
-
i.push([e.value.style.chart.layout.grid.xAxis.dataLabels.values[
|
|
257
|
-
value: y.values[
|
|
258
|
-
percentage: y.values[
|
|
259
|
+
for (let u = 0; u < W.value; u += 1) {
|
|
260
|
+
const f = T.value.filter((y) => !_.value.includes(y.uid)).map((y) => y.values[u] ?? 0).reduce((y, N) => y + N, 0);
|
|
261
|
+
i.push([e.value.style.chart.layout.grid.xAxis.dataLabels.values[u] ?? "-"].concat(T.value.filter((y) => !_.value.includes(y.uid)).map((y) => ({
|
|
262
|
+
value: y.values[u] ?? 0,
|
|
263
|
+
percentage: y.values[u] ? y.values[u] / f * 100 : 0
|
|
259
264
|
}))).concat([`${e.value.style.chart.layout.dataLabels.prefix}${Number(f.toFixed(e.value.table.td.roundingValue))}${e.value.style.chart.layout.dataLabels.suffix}`]));
|
|
260
265
|
}
|
|
261
266
|
const t = {
|
|
@@ -272,45 +277,58 @@ const kt = ["id"], _t = ["xmlns", "viewBox"], Ct = ["id"], wt = ["stop-color"],
|
|
|
272
277
|
breakpoint: e.value.table.responsiveBreakpoint
|
|
273
278
|
}, n = [
|
|
274
279
|
e.value.table.columnNames.period
|
|
275
|
-
].concat(
|
|
280
|
+
].concat(T.value.filter((u) => !_.value.includes(u.uid)).map((u) => u.name)).concat(e.value.table.columnNames.total);
|
|
276
281
|
return { head: l, body: i, config: t, colNames: n };
|
|
277
282
|
});
|
|
278
|
-
function
|
|
279
|
-
return
|
|
283
|
+
function Ke() {
|
|
284
|
+
return T.value;
|
|
280
285
|
}
|
|
281
|
-
function
|
|
282
|
-
|
|
283
|
-
const l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], i = [...V.value.head.map((f) => f.name ?? f)], t = [...V.value.body.map((f) => f.map((y) => y.value ?? y))], n = l.concat([i]).concat(t),
|
|
284
|
-
|
|
286
|
+
function ze() {
|
|
287
|
+
tt(() => {
|
|
288
|
+
const l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], i = [...V.value.head.map((f) => f.name ?? f)], t = [...V.value.body.map((f) => f.map((y) => y.value ?? y))], n = l.concat([i]).concat(t), u = vt(n);
|
|
289
|
+
dt({ csvContent: u, title: e.value.style.chart.title.text || "vue-ui-donut-evolution" });
|
|
285
290
|
});
|
|
286
291
|
}
|
|
287
|
-
const R =
|
|
288
|
-
function
|
|
289
|
-
R.value = l,
|
|
292
|
+
const R = p(!1);
|
|
293
|
+
function qe(l) {
|
|
294
|
+
R.value = l, fe.value += 1;
|
|
290
295
|
}
|
|
291
|
-
function
|
|
296
|
+
function Fe() {
|
|
292
297
|
G.value.showTable = !G.value.showTable;
|
|
293
298
|
}
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
299
|
+
const B = p(!1);
|
|
300
|
+
function se() {
|
|
301
|
+
B.value = !B.value;
|
|
302
|
+
}
|
|
303
|
+
return Re({
|
|
304
|
+
getData: Ke,
|
|
305
|
+
generatePdf: Ce,
|
|
306
|
+
generateCsv: ze,
|
|
307
|
+
generateImage: we,
|
|
308
|
+
toggleTable: Fe,
|
|
309
|
+
toggleAnnotator: se
|
|
310
|
+
}), (l, i) => (a(), o("div", {
|
|
301
311
|
ref_key: "donutEvolutionChart",
|
|
302
|
-
ref:
|
|
303
|
-
class:
|
|
304
|
-
style:
|
|
305
|
-
id:
|
|
312
|
+
ref: te,
|
|
313
|
+
class: D(`vue-ui-donut-evolution ${R.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
314
|
+
style: re(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;${e.value.style.chart.title.text ? "" : "padding-top:36px"};background:${e.value.style.chart.backgroundColor}`),
|
|
315
|
+
id: E.value
|
|
306
316
|
}, [
|
|
307
|
-
e.value.
|
|
317
|
+
e.value.userOptions.buttons.annotator ? (a(), I(_t, {
|
|
308
318
|
key: 0,
|
|
319
|
+
parent: te.value,
|
|
320
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
321
|
+
color: e.value.style.chart.color,
|
|
322
|
+
active: B.value,
|
|
323
|
+
onClose: se
|
|
324
|
+
}, null, 8, ["parent", "backgroundColor", "color", "active"])) : v("", !0),
|
|
325
|
+
e.value.style.chart.title.text ? (a(), o("div", {
|
|
326
|
+
key: 1,
|
|
309
327
|
style: "width:100%;background:transparent;padding-bottom:24px",
|
|
310
|
-
onMouseleave:
|
|
328
|
+
onMouseleave: Ae
|
|
311
329
|
}, [
|
|
312
|
-
(a(),
|
|
313
|
-
key: `title_${
|
|
330
|
+
(a(), I(ht, {
|
|
331
|
+
key: `title_${be.value}`,
|
|
314
332
|
config: {
|
|
315
333
|
title: {
|
|
316
334
|
cy: "donut-evolution-div-title",
|
|
@@ -322,15 +340,15 @@ const kt = ["id"], _t = ["xmlns", "viewBox"], Ct = ["id"], wt = ["stop-color"],
|
|
|
322
340
|
}
|
|
323
341
|
}
|
|
324
342
|
}, null, 8, ["config"]))
|
|
325
|
-
], 32)) :
|
|
326
|
-
e.value.userOptions.show && X.value ? (a(),
|
|
343
|
+
], 32)) : v("", !0),
|
|
344
|
+
e.value.userOptions.show && X.value ? (a(), I(ft, {
|
|
327
345
|
ref: "details",
|
|
328
|
-
key: `user_options_${
|
|
346
|
+
key: `user_options_${fe.value}`,
|
|
329
347
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
330
348
|
color: e.value.style.chart.color,
|
|
331
|
-
isPrinting: c(
|
|
332
|
-
isImaging: c(
|
|
333
|
-
uid:
|
|
349
|
+
isPrinting: c(ke),
|
|
350
|
+
isImaging: c(_e),
|
|
351
|
+
uid: E.value,
|
|
334
352
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
335
353
|
hasImg: e.value.userOptions.buttons.img,
|
|
336
354
|
hasXls: e.value.userOptions.buttons.csv,
|
|
@@ -338,94 +356,104 @@ const kt = ["id"], _t = ["xmlns", "viewBox"], Ct = ["id"], wt = ["stop-color"],
|
|
|
338
356
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
339
357
|
isFullscreen: R.value,
|
|
340
358
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
341
|
-
chartElement:
|
|
359
|
+
chartElement: te.value,
|
|
342
360
|
position: e.value.userOptions.position,
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
361
|
+
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
362
|
+
isAnnotation: B.value,
|
|
363
|
+
onToggleFullscreen: qe,
|
|
364
|
+
onGeneratePdf: c(Ce),
|
|
365
|
+
onGenerateCsv: ze,
|
|
366
|
+
onGenerateImage: c(we),
|
|
367
|
+
onToggleTable: Fe,
|
|
368
|
+
onToggleAnnotator: se
|
|
369
|
+
}, Qe({ _: 2 }, [
|
|
349
370
|
l.$slots.optionPdf ? {
|
|
350
371
|
name: "optionPdf",
|
|
351
|
-
fn:
|
|
352
|
-
|
|
372
|
+
fn: F(() => [
|
|
373
|
+
P(l.$slots, "optionPdf", {}, void 0, !0)
|
|
353
374
|
]),
|
|
354
375
|
key: "0"
|
|
355
376
|
} : void 0,
|
|
356
377
|
l.$slots.optionCsv ? {
|
|
357
378
|
name: "optionCsv",
|
|
358
|
-
fn:
|
|
359
|
-
|
|
379
|
+
fn: F(() => [
|
|
380
|
+
P(l.$slots, "optionCsv", {}, void 0, !0)
|
|
360
381
|
]),
|
|
361
382
|
key: "1"
|
|
362
383
|
} : void 0,
|
|
363
384
|
l.$slots.optionImg ? {
|
|
364
385
|
name: "optionImg",
|
|
365
|
-
fn:
|
|
366
|
-
|
|
386
|
+
fn: F(() => [
|
|
387
|
+
P(l.$slots, "optionImg", {}, void 0, !0)
|
|
367
388
|
]),
|
|
368
389
|
key: "2"
|
|
369
390
|
} : void 0,
|
|
370
391
|
l.$slots.optionTable ? {
|
|
371
392
|
name: "optionTable",
|
|
372
|
-
fn:
|
|
373
|
-
|
|
393
|
+
fn: F(() => [
|
|
394
|
+
P(l.$slots, "optionTable", {}, void 0, !0)
|
|
374
395
|
]),
|
|
375
396
|
key: "3"
|
|
376
397
|
} : void 0,
|
|
377
398
|
l.$slots.optionFullscreen ? {
|
|
378
399
|
name: "optionFullscreen",
|
|
379
|
-
fn:
|
|
380
|
-
|
|
400
|
+
fn: F(({ toggleFullscreen: t, isFullscreen: n }) => [
|
|
401
|
+
P(l.$slots, "optionFullscreen", Y(K({ toggleFullscreen: t, isFullscreen: n })), void 0, !0)
|
|
381
402
|
]),
|
|
382
403
|
key: "4"
|
|
404
|
+
} : void 0,
|
|
405
|
+
l.$slots.optionAnnotator ? {
|
|
406
|
+
name: "optionAnnotator",
|
|
407
|
+
fn: F(({ toggleAnnotator: t, isAnnotator: n }) => [
|
|
408
|
+
P(l.$slots, "optionAnnotator", Y(K({ toggleAnnotator: t, isAnnotator: n })), void 0, !0)
|
|
409
|
+
]),
|
|
410
|
+
key: "5"
|
|
383
411
|
} : void 0
|
|
384
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "onGeneratePdf", "onGenerateImage"])) :
|
|
385
|
-
X.value ? (a(),
|
|
386
|
-
key:
|
|
387
|
-
xmlns: c(
|
|
388
|
-
class:
|
|
412
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage"])) : v("", !0),
|
|
413
|
+
X.value ? (a(), o("svg", {
|
|
414
|
+
key: 3,
|
|
415
|
+
xmlns: c(it),
|
|
416
|
+
class: D({ "vue-data-ui-fullscreen--on": R.value, "vue-data-ui-fulscreen--off": !R.value }),
|
|
389
417
|
viewBox: `0 0 ${r.value.absoluteWidth} ${r.value.absoluteHeight}`,
|
|
390
|
-
style:
|
|
418
|
+
style: re(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
|
|
391
419
|
}, [
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
id: `hover_${
|
|
420
|
+
Ze(kt),
|
|
421
|
+
d("defs", null, [
|
|
422
|
+
d("linearGradient", {
|
|
423
|
+
id: `hover_${E.value}`,
|
|
396
424
|
x1: "0%",
|
|
397
425
|
y1: "0%",
|
|
398
426
|
x2: "0%",
|
|
399
427
|
y2: "100%"
|
|
400
428
|
}, [
|
|
401
|
-
|
|
429
|
+
d("stop", {
|
|
402
430
|
offset: "0%",
|
|
403
431
|
"stop-color": c(U)(e.value.style.chart.backgroundColor, e.value.style.chart.layout.highlighter.opacity)
|
|
404
|
-
}, null, 8,
|
|
405
|
-
|
|
432
|
+
}, null, 8, $t),
|
|
433
|
+
d("stop", {
|
|
406
434
|
offset: "100%",
|
|
407
435
|
"stop-color": c(U)(e.value.style.chart.layout.highlighter.color, e.value.style.chart.layout.highlighter.opacity)
|
|
408
|
-
}, null, 8,
|
|
409
|
-
], 8,
|
|
410
|
-
|
|
411
|
-
id: `focus_${
|
|
436
|
+
}, null, 8, St)
|
|
437
|
+
], 8, At),
|
|
438
|
+
d("radialGradient", {
|
|
439
|
+
id: `focus_${E.value}`
|
|
412
440
|
}, [
|
|
413
|
-
|
|
441
|
+
d("stop", {
|
|
414
442
|
offset: "0%",
|
|
415
|
-
"stop-color": c(U)(c(
|
|
416
|
-
}, null, 8,
|
|
417
|
-
|
|
443
|
+
"stop-color": c(U)(c(ie)(e.value.style.chart.backgroundColor), 0)
|
|
444
|
+
}, null, 8, zt),
|
|
445
|
+
d("stop", {
|
|
418
446
|
offset: "77%",
|
|
419
447
|
"stop-color": c(U)("#FFFFFF", 30)
|
|
420
|
-
}, null, 8,
|
|
421
|
-
|
|
448
|
+
}, null, 8, Ft),
|
|
449
|
+
d("stop", {
|
|
422
450
|
offset: "100%",
|
|
423
|
-
"stop-color": c(U)(c(
|
|
424
|
-
}, null, 8,
|
|
425
|
-
], 8,
|
|
451
|
+
"stop-color": c(U)(c(ie)(e.value.style.chart.backgroundColor), 0)
|
|
452
|
+
}, null, 8, Pt)
|
|
453
|
+
], 8, Nt)
|
|
426
454
|
]),
|
|
427
|
-
e.value.style.chart.layout.grid.show ? (a(),
|
|
428
|
-
|
|
455
|
+
e.value.style.chart.layout.grid.show ? (a(), o("g", Dt, [
|
|
456
|
+
d("line", {
|
|
429
457
|
x1: s.value.left,
|
|
430
458
|
x2: s.value.left,
|
|
431
459
|
y1: s.value.top,
|
|
@@ -433,8 +461,8 @@ const kt = ["id"], _t = ["xmlns", "viewBox"], Ct = ["id"], wt = ["stop-color"],
|
|
|
433
461
|
stroke: e.value.style.chart.layout.grid.stroke,
|
|
434
462
|
"stroke-width": e.value.style.chart.layout.grid.strokeWidth,
|
|
435
463
|
"stroke-linecap": "round"
|
|
436
|
-
}, null, 8,
|
|
437
|
-
|
|
464
|
+
}, null, 8, Tt),
|
|
465
|
+
d("line", {
|
|
438
466
|
x1: s.value.left,
|
|
439
467
|
x2: r.value.absoluteWidth - s.value.right,
|
|
440
468
|
y1: r.value.absoluteHeight - s.value.bottom,
|
|
@@ -442,9 +470,9 @@ const kt = ["id"], _t = ["xmlns", "viewBox"], Ct = ["id"], wt = ["stop-color"],
|
|
|
442
470
|
stroke: e.value.style.chart.layout.grid.stroke,
|
|
443
471
|
"stroke-width": e.value.style.chart.layout.grid.strokeWidth,
|
|
444
472
|
"stroke-linecap": "round"
|
|
445
|
-
}, null, 8,
|
|
446
|
-
e.value.style.chart.layout.grid.showVerticalLines ? (a(),
|
|
447
|
-
(a(!0),
|
|
473
|
+
}, null, 8, It),
|
|
474
|
+
e.value.style.chart.layout.grid.showVerticalLines ? (a(), o("g", Et, [
|
|
475
|
+
(a(!0), o(x, null, k(h.value.end - h.value.start, (t, n) => (a(), o("line", {
|
|
448
476
|
x1: s.value.left + (n + 1) * w.value,
|
|
449
477
|
x2: s.value.left + (n + 1) * w.value,
|
|
450
478
|
y1: s.value.top,
|
|
@@ -452,15 +480,15 @@ const kt = ["id"], _t = ["xmlns", "viewBox"], Ct = ["id"], wt = ["stop-color"],
|
|
|
452
480
|
stroke: e.value.style.chart.layout.grid.stroke,
|
|
453
481
|
"stroke-width": e.value.style.chart.layout.grid.strokeWidth,
|
|
454
482
|
"stroke-linecap": "round"
|
|
455
|
-
}, null, 8,
|
|
456
|
-
])) :
|
|
457
|
-
])) :
|
|
458
|
-
e.value.style.chart.layout.grid.yAxis.dataLabels.show ? (a(),
|
|
483
|
+
}, null, 8, Ot))), 256))
|
|
484
|
+
])) : v("", !0)
|
|
485
|
+
])) : v("", !0),
|
|
486
|
+
e.value.style.chart.layout.grid.yAxis.dataLabels.show ? (a(), o("g", {
|
|
459
487
|
key: 1,
|
|
460
|
-
class:
|
|
488
|
+
class: D({ "donut-opacity": !0, "donut-behind": g.value !== null || $.value })
|
|
461
489
|
}, [
|
|
462
|
-
(a(!0),
|
|
463
|
-
t.value >= O.value.min && t.value <= O.value.max ? (a(),
|
|
490
|
+
(a(!0), o(x, null, k(je.value, (t, n) => (a(), o("g", null, [
|
|
491
|
+
t.value >= O.value.min && t.value <= O.value.max ? (a(), o("line", {
|
|
464
492
|
key: 0,
|
|
465
493
|
x1: s.value.left,
|
|
466
494
|
x2: s.value.left - 5,
|
|
@@ -468,8 +496,8 @@ const kt = ["id"], _t = ["xmlns", "viewBox"], Ct = ["id"], wt = ["stop-color"],
|
|
|
468
496
|
y2: t.y,
|
|
469
497
|
stroke: e.value.style.chart.layout.grid.stroke,
|
|
470
498
|
"stroke-width": e.value.style.chart.layout.grid.strokeWidth
|
|
471
|
-
}, null, 8,
|
|
472
|
-
t.value >= O.value.min && t.value <= O.value.max ? (a(),
|
|
499
|
+
}, null, 8, Vt)) : v("", !0),
|
|
500
|
+
t.value >= O.value.min && t.value <= O.value.max ? (a(), o("text", {
|
|
473
501
|
key: 1,
|
|
474
502
|
x: s.value.left - 8 + e.value.style.chart.layout.grid.yAxis.dataLabels.offsetX,
|
|
475
503
|
y: t.y + e.value.style.chart.layout.grid.yAxis.dataLabels.fontSize / 3,
|
|
@@ -477,37 +505,37 @@ const kt = ["id"], _t = ["xmlns", "viewBox"], Ct = ["id"], wt = ["stop-color"],
|
|
|
477
505
|
"text-anchor": "end",
|
|
478
506
|
fill: e.value.style.chart.layout.grid.yAxis.dataLabels.color,
|
|
479
507
|
"font-weight": e.value.style.chart.layout.grid.yAxis.dataLabels.bold ? "bold" : "normal"
|
|
480
|
-
}, b(c(
|
|
508
|
+
}, b(c(ct)(t.value) ? c(ve)(
|
|
481
509
|
e.value.style.chart.layout.dataLabels.formatter,
|
|
482
510
|
t.value,
|
|
483
|
-
c(
|
|
511
|
+
c(Q)({
|
|
484
512
|
p: e.value.style.chart.layout.dataLabels.prefix,
|
|
485
513
|
v: t.value,
|
|
486
514
|
s: e.value.style.chart.layout.dataLabels.suffix,
|
|
487
515
|
r: e.value.style.chart.layout.grid.yAxis.dataLabels.roundingValue
|
|
488
516
|
}),
|
|
489
517
|
{ datapoint: t, seriesIndex: n }
|
|
490
|
-
) : ""), 9,
|
|
518
|
+
) : ""), 9, Ht)) : v("", !0)
|
|
491
519
|
]))), 256))
|
|
492
|
-
], 2)) :
|
|
493
|
-
e.value.style.chart.layout.grid.xAxis.dataLabels.show ? (a(),
|
|
520
|
+
], 2)) : v("", !0),
|
|
521
|
+
e.value.style.chart.layout.grid.xAxis.dataLabels.show ? (a(), o("g", {
|
|
494
522
|
key: 2,
|
|
495
|
-
class:
|
|
523
|
+
class: D({ "donut-opacity": !0, "donut-behind": $.value })
|
|
496
524
|
}, [
|
|
497
|
-
(a(!0),
|
|
498
|
-
e.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast && (n === 0 || n === W.value - 1) || !e.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast ? (a(),
|
|
525
|
+
(a(!0), o(x, null, k(h.value.end - h.value.start, (t, n) => (a(), o("g", null, [
|
|
526
|
+
e.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast && (n === 0 || n === W.value - 1) || !e.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast ? (a(), o("text", {
|
|
499
527
|
key: 0,
|
|
500
528
|
"text-anchor": e.value.style.chart.layout.grid.xAxis.dataLabels.rotation > 0 ? "start" : e.value.style.chart.layout.grid.xAxis.dataLabels.rotation < 0 ? "end" : "middle",
|
|
501
529
|
"font-size": e.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,
|
|
502
530
|
fill: e.value.style.chart.layout.grid.xAxis.dataLabels.color,
|
|
503
531
|
transform: `translate(${s.value.left + w.value * n + w.value / 2}, ${e.value.style.chart.layout.grid.xAxis.dataLabels.offsetY + r.value.absoluteHeight - s.value.bottom + e.value.style.chart.layout.grid.xAxis.dataLabels.fontSize * 2}), rotate(${e.value.style.chart.layout.grid.xAxis.dataLabels.rotation})`
|
|
504
|
-
}, b(e.value.style.chart.layout.grid.xAxis.dataLabels.values[Number(n) + Number(h.value.start)] ?? ""), 9,
|
|
532
|
+
}, b(e.value.style.chart.layout.grid.xAxis.dataLabels.values[Number(n) + Number(h.value.start)] ?? ""), 9, Mt)) : v("", !0)
|
|
505
533
|
]))), 256))
|
|
506
|
-
], 2)) :
|
|
507
|
-
(a(!0),
|
|
508
|
-
e.value.style.chart.layout.line.show && n < C.value.length - 1 && ![t.subtotal, C.value[n + 1].subtotal].includes(null) ? (a(),
|
|
534
|
+
], 2)) : v("", !0),
|
|
535
|
+
(a(!0), o(x, null, k(C.value, (t, n) => (a(), o("g", null, [
|
|
536
|
+
e.value.style.chart.layout.line.show && n < C.value.length - 1 && ![t.subtotal, C.value[n + 1].subtotal].includes(null) ? (a(), o("line", {
|
|
509
537
|
key: 0,
|
|
510
|
-
class:
|
|
538
|
+
class: D({ "donut-opacity": !0, "donut-behind": g.value !== null || $.value }),
|
|
511
539
|
x1: t.x,
|
|
512
540
|
y1: t.y,
|
|
513
541
|
x2: C.value[n + 1].x,
|
|
@@ -516,85 +544,85 @@ const kt = ["id"], _t = ["xmlns", "viewBox"], Ct = ["id"], wt = ["stop-color"],
|
|
|
516
544
|
"stroke-width": e.value.style.chart.layout.line.strokeWidth,
|
|
517
545
|
"stroke-linecap": "round",
|
|
518
546
|
"stroke-linejoin": "round"
|
|
519
|
-
}, null, 10,
|
|
520
|
-
t.subtotal !== null ? (a(),
|
|
521
|
-
t.subtotal ? (a(),
|
|
547
|
+
}, null, 10, Wt)) : v("", !0),
|
|
548
|
+
t.subtotal !== null ? (a(), o("g", Rt, [
|
|
549
|
+
t.subtotal ? (a(), o("circle", {
|
|
522
550
|
key: 0,
|
|
523
551
|
cx: t.x,
|
|
524
552
|
cy: t.y,
|
|
525
553
|
r: t.activeRadius,
|
|
526
554
|
fill: e.value.style.chart.backgroundColor
|
|
527
|
-
}, null, 8,
|
|
528
|
-
])) :
|
|
555
|
+
}, null, 8, Ut)) : v("", !0)
|
|
556
|
+
])) : v("", !0)
|
|
529
557
|
]))), 256)),
|
|
530
|
-
(a(!0),
|
|
531
|
-
class:
|
|
558
|
+
(a(!0), o(x, null, k(C.value, (t, n) => (a(), o("g", {
|
|
559
|
+
class: D({ "donut-opacity": !0, "donut-behind": n !== g.value && g.value !== null || $.value })
|
|
532
560
|
}, [
|
|
533
|
-
t.subtotal ? (a(),
|
|
534
|
-
g.value !== null && g.value === n ? (a(),
|
|
535
|
-
(a(!0),
|
|
536
|
-
|
|
537
|
-
d: c(
|
|
538
|
-
stroke:
|
|
561
|
+
t.subtotal ? (a(), o("g", Xt, [
|
|
562
|
+
g.value !== null && g.value === n ? (a(), o("g", Gt, [
|
|
563
|
+
(a(!0), o(x, null, k(t.donutHover, (u) => (a(), o("g", null, [
|
|
564
|
+
d("path", {
|
|
565
|
+
d: c(Oe)(u, { x: u.center.endX, y: u.center.endY }, 12, 12, { x: t.x, y: t.y }, !0, 20),
|
|
566
|
+
stroke: u.color,
|
|
539
567
|
"stroke-width": "1",
|
|
540
568
|
"stroke-linecap": "round",
|
|
541
569
|
"stroke-linejoin": "round",
|
|
542
570
|
fill: "none"
|
|
543
|
-
}, null, 8,
|
|
571
|
+
}, null, 8, jt)
|
|
544
572
|
]))), 256)),
|
|
545
|
-
(a(!0),
|
|
546
|
-
|
|
573
|
+
(a(!0), o(x, null, k(t.donutHover, (u, f) => (a(), o("g", null, [
|
|
574
|
+
d("text", {
|
|
547
575
|
"data-cy-hover-label": "",
|
|
548
|
-
"text-anchor": c(
|
|
549
|
-
x: c(
|
|
550
|
-
y: c(
|
|
576
|
+
"text-anchor": c(Z)(u, !0, 0).anchor,
|
|
577
|
+
x: c(Z)(u, !0, 3).x,
|
|
578
|
+
y: c(Ve)(u),
|
|
551
579
|
fill: e.value.style.chart.layout.grid.yAxis.dataLabels.color,
|
|
552
580
|
"font-size": 8,
|
|
553
581
|
"font-weight": "bold"
|
|
554
|
-
}, b(
|
|
582
|
+
}, b(u.name) + ": " + b(Le(u, t.donut)) + " (" + b(u.value === null ? "-" : j(u.value, u, f)) + ") ", 9, Bt)
|
|
555
583
|
]))), 256)),
|
|
556
|
-
|
|
557
|
-
|
|
584
|
+
d("g", null, [
|
|
585
|
+
d("circle", {
|
|
558
586
|
cx: t.x,
|
|
559
587
|
cy: t.y,
|
|
560
588
|
r: t.hoverRadius,
|
|
561
589
|
fill: e.value.style.chart.backgroundColor
|
|
562
|
-
}, null, 8,
|
|
590
|
+
}, null, 8, Yt)
|
|
563
591
|
])
|
|
564
|
-
])) :
|
|
565
|
-
])) :
|
|
592
|
+
])) : v("", !0)
|
|
593
|
+
])) : v("", !0)
|
|
566
594
|
], 2))), 256)),
|
|
567
|
-
(a(!0),
|
|
568
|
-
class:
|
|
595
|
+
(a(!0), o(x, null, k(C.value, (t, n) => (a(), o("g", {
|
|
596
|
+
class: D({ "donut-opacity": !0, "donut-behind": n !== g.value && g.value !== null || $.value })
|
|
569
597
|
}, [
|
|
570
|
-
t.subtotal !== null ? (a(),
|
|
571
|
-
t.subtotal === 0 ? (a(),
|
|
598
|
+
t.subtotal !== null ? (a(), o("g", Kt, [
|
|
599
|
+
t.subtotal === 0 ? (a(), o("circle", {
|
|
572
600
|
key: 0,
|
|
573
601
|
cx: t.x,
|
|
574
602
|
cy: t.y,
|
|
575
603
|
r: 3,
|
|
576
604
|
fill: e.value.style.chart.color
|
|
577
|
-
}, null, 8,
|
|
578
|
-
(a(!0),
|
|
579
|
-
d:
|
|
580
|
-
fill: `${
|
|
605
|
+
}, null, 8, qt)) : g.value !== null && g.value === n ? (a(), o("g", Jt, [
|
|
606
|
+
(a(!0), o(x, null, k(t.donutHover, (u, f) => (a(), o("path", {
|
|
607
|
+
d: u.arcSlice,
|
|
608
|
+
fill: `${u.color}`,
|
|
581
609
|
"stroke-width": 1,
|
|
582
610
|
stroke: e.value.style.chart.backgroundColor
|
|
583
|
-
}, null, 8,
|
|
584
|
-
])) : (a(),
|
|
585
|
-
(a(!0),
|
|
586
|
-
d:
|
|
587
|
-
fill: `${
|
|
611
|
+
}, null, 8, Qt))), 256))
|
|
612
|
+
])) : (a(), o("g", Zt, [
|
|
613
|
+
(a(!0), o(x, null, k(t.donut, (u, f) => (a(), o("path", {
|
|
614
|
+
d: u.arcSlice,
|
|
615
|
+
fill: `${u.color}`,
|
|
588
616
|
"stroke-width": 0.5,
|
|
589
617
|
stroke: e.value.style.chart.backgroundColor
|
|
590
|
-
}, null, 8,
|
|
618
|
+
}, null, 8, el))), 256))
|
|
591
619
|
]))
|
|
592
|
-
])) :
|
|
620
|
+
])) : v("", !0)
|
|
593
621
|
], 2))), 256)),
|
|
594
|
-
(a(!0),
|
|
595
|
-
class:
|
|
622
|
+
(a(!0), o(x, null, k(C.value, (t, n) => (a(), o("g", {
|
|
623
|
+
class: D({ "donut-opacity": !0, "donut-behind": n !== g.value && g.value !== null || $.value })
|
|
596
624
|
}, [
|
|
597
|
-
t.subtotal !== null && e.value.style.chart.layout.dataLabels.show ? (a(),
|
|
625
|
+
t.subtotal !== null && e.value.style.chart.layout.dataLabels.show ? (a(), o("text", {
|
|
598
626
|
key: 0,
|
|
599
627
|
"text-anchor": "middle",
|
|
600
628
|
x: t.x,
|
|
@@ -602,31 +630,31 @@ const kt = ["id"], _t = ["xmlns", "viewBox"], Ct = ["id"], wt = ["stop-color"],
|
|
|
602
630
|
"font-size": e.value.style.chart.layout.dataLabels.fontSize,
|
|
603
631
|
"font-weight": "bold",
|
|
604
632
|
fill: e.value.style.chart.layout.dataLabels.color
|
|
605
|
-
}, b(j(t.subtotal, t, n)), 9,
|
|
633
|
+
}, b(j(t.subtotal, t, n)), 9, tl)) : v("", !0)
|
|
606
634
|
], 2))), 256)),
|
|
607
|
-
(a(!0),
|
|
635
|
+
(a(!0), o(x, null, k(C.value, (t, n) => (a(), o("rect", {
|
|
608
636
|
x: s.value.left + n * w.value,
|
|
609
637
|
y: r.value.absoluteHeight - s.value.bottom - 10,
|
|
610
638
|
width: w.value,
|
|
611
639
|
height: 10,
|
|
612
|
-
fill: g.value === t.index ? `url(#hover_${
|
|
613
|
-
onClick: (
|
|
614
|
-
class:
|
|
615
|
-
}, null, 10,
|
|
616
|
-
(a(!0),
|
|
640
|
+
fill: g.value === t.index ? `url(#hover_${E.value})` : "transparent",
|
|
641
|
+
onClick: (u) => oe(t, n),
|
|
642
|
+
class: D({ "donut-hover": g.value === t.index && t.subtotal })
|
|
643
|
+
}, null, 10, ll))), 256)),
|
|
644
|
+
(a(!0), o(x, null, k(C.value, (t, n) => (a(), o("rect", {
|
|
617
645
|
"data-cy-trap": "",
|
|
618
646
|
x: s.value.left + n * w.value,
|
|
619
647
|
y: s.value.top,
|
|
620
648
|
width: w.value,
|
|
621
649
|
height: r.value.height,
|
|
622
650
|
fill: "transparent",
|
|
623
|
-
onMouseenter: (
|
|
624
|
-
onMouseleave:
|
|
625
|
-
onClick: (
|
|
626
|
-
class:
|
|
627
|
-
}, null, 42,
|
|
628
|
-
|
|
629
|
-
|
|
651
|
+
onMouseenter: (u) => Be(t),
|
|
652
|
+
onMouseleave: Ae,
|
|
653
|
+
onClick: (u) => oe(t, n),
|
|
654
|
+
class: D({ "donut-hover": g.value === t.index && t.subtotal })
|
|
655
|
+
}, null, 42, al))), 256)),
|
|
656
|
+
$.value ? (a(), o("g", ol, [
|
|
657
|
+
d("rect", {
|
|
630
658
|
rx: 4,
|
|
631
659
|
x: s.value.left,
|
|
632
660
|
y: s.value.top,
|
|
@@ -634,8 +662,8 @@ const kt = ["id"], _t = ["xmlns", "viewBox"], Ct = ["id"], wt = ["stop-color"],
|
|
|
634
662
|
height: r.value.height,
|
|
635
663
|
fill: e.value.style.chart.backgroundColor,
|
|
636
664
|
style: { filter: "drop-shadow(0 12px 12px rgba(0,0,0,0.3))" }
|
|
637
|
-
}, null, 8,
|
|
638
|
-
|
|
665
|
+
}, null, 8, ul),
|
|
666
|
+
d("line", {
|
|
639
667
|
"data-html2canvas-ignore": "",
|
|
640
668
|
x1: r.value.absoluteWidth - s.value.right - 15,
|
|
641
669
|
y1: s.value.top + 5,
|
|
@@ -644,8 +672,8 @@ const kt = ["id"], _t = ["xmlns", "viewBox"], Ct = ["id"], wt = ["stop-color"],
|
|
|
644
672
|
"stroke-linecap": "round",
|
|
645
673
|
stroke: e.value.style.chart.color,
|
|
646
674
|
"stroke-width": "1.5"
|
|
647
|
-
}, null, 8,
|
|
648
|
-
|
|
675
|
+
}, null, 8, sl),
|
|
676
|
+
d("line", {
|
|
649
677
|
"data-html2canvas-ignore": "",
|
|
650
678
|
x1: r.value.absoluteWidth - s.value.right - 15,
|
|
651
679
|
y2: s.value.top + 5,
|
|
@@ -654,66 +682,66 @@ const kt = ["id"], _t = ["xmlns", "viewBox"], Ct = ["id"], wt = ["stop-color"],
|
|
|
654
682
|
"stroke-linecap": "round",
|
|
655
683
|
stroke: e.value.style.chart.color,
|
|
656
684
|
"stroke-width": "1.5"
|
|
657
|
-
}, null, 8,
|
|
658
|
-
|
|
685
|
+
}, null, 8, nl),
|
|
686
|
+
d("circle", {
|
|
659
687
|
"data-cy-close": "",
|
|
660
|
-
onClick:
|
|
661
|
-
onKeypress:
|
|
688
|
+
onClick: $e,
|
|
689
|
+
onKeypress: et($e, ["enter"]),
|
|
662
690
|
cx: r.value.absoluteWidth - s.value.right - r.value.width / 40,
|
|
663
691
|
cy: s.value.top + r.value.height / 30,
|
|
664
692
|
r: r.value.height / 12,
|
|
665
693
|
fill: "transparent",
|
|
666
694
|
style: { cursor: "pointer" },
|
|
667
695
|
tabindex: "0"
|
|
668
|
-
}, null, 40,
|
|
669
|
-
(a(!0),
|
|
670
|
-
|
|
696
|
+
}, null, 40, rl),
|
|
697
|
+
(a(!0), o(x, null, k(S.value.donutFocus, (t) => (a(), o("g", null, [
|
|
698
|
+
d("path", {
|
|
671
699
|
"data-cy-zoom-donut": "",
|
|
672
|
-
d: c(
|
|
700
|
+
d: c(Oe)(t, { x: r.value.centerX, y: r.value.centerY }, 12, 12, !1, !1, 15),
|
|
673
701
|
stroke: t.color,
|
|
674
702
|
"stroke-width": "1",
|
|
675
703
|
"stroke-linecap": "round",
|
|
676
704
|
"stroke-linejoin": "round",
|
|
677
705
|
fill: "none",
|
|
678
706
|
class: "vue-ui-donut-evolution-focus"
|
|
679
|
-
}, null, 8,
|
|
707
|
+
}, null, 8, il)
|
|
680
708
|
]))), 256)),
|
|
681
|
-
|
|
709
|
+
d("circle", {
|
|
682
710
|
cx: s.value.left + r.value.width / 2,
|
|
683
711
|
cy: s.value.top + r.value.height / 2,
|
|
684
712
|
r: r.value.height / 7,
|
|
685
713
|
fill: e.value.style.chart.backgroundColor
|
|
686
|
-
}, null, 8,
|
|
687
|
-
(a(!0),
|
|
714
|
+
}, null, 8, cl),
|
|
715
|
+
(a(!0), o(x, null, k(S.value.donutFocus, (t, n) => (a(), o("path", {
|
|
688
716
|
d: t.arcSlice,
|
|
689
717
|
fill: `${t.color}`,
|
|
690
718
|
"stroke-width": 1,
|
|
691
719
|
stroke: e.value.style.chart.backgroundColor,
|
|
692
720
|
class: "vue-ui-donut-evolution-focus"
|
|
693
|
-
}, null, 8,
|
|
694
|
-
(a(!0),
|
|
695
|
-
|
|
696
|
-
"text-anchor": c(
|
|
697
|
-
x: c(
|
|
698
|
-
y: c(
|
|
721
|
+
}, null, 8, vl))), 256)),
|
|
722
|
+
(a(!0), o(x, null, k(S.value.donutFocus, (t, n) => (a(), o("g", dl, [
|
|
723
|
+
d("text", {
|
|
724
|
+
"text-anchor": c(Z)(t, !0, 20).anchor,
|
|
725
|
+
x: c(Z)(t, !0, 10).x,
|
|
726
|
+
y: c(Ve)(t),
|
|
699
727
|
fill: e.value.style.chart.layout.grid.yAxis.dataLabels.color,
|
|
700
728
|
"font-size": 10,
|
|
701
729
|
"font-weight": "bold"
|
|
702
|
-
}, b(t.name) + ": " + b(
|
|
730
|
+
}, b(t.name) + ": " + b(Le(t, S.value.donutFocus)) + " (" + b(t.value === null ? "-" : j(t.value, t, n)) + ") ", 9, hl)
|
|
703
731
|
]))), 256)),
|
|
704
|
-
|
|
732
|
+
d("circle", {
|
|
705
733
|
cx: s.value.left + r.value.width / 2,
|
|
706
734
|
cy: s.value.top + r.value.height / 2,
|
|
707
735
|
r: r.value.height / 3.8,
|
|
708
|
-
fill: `url(#focus_${
|
|
709
|
-
}, null, 8,
|
|
710
|
-
|
|
736
|
+
fill: `url(#focus_${E.value})`
|
|
737
|
+
}, null, 8, yl),
|
|
738
|
+
d("circle", {
|
|
711
739
|
cx: s.value.left + r.value.width / 2,
|
|
712
740
|
cy: s.value.top + r.value.height / 2,
|
|
713
741
|
r: r.value.height / 7.7,
|
|
714
742
|
fill: e.value.style.chart.backgroundColor
|
|
715
|
-
}, null, 8,
|
|
716
|
-
|
|
743
|
+
}, null, 8, fl),
|
|
744
|
+
d("text", {
|
|
717
745
|
"text-anchor": "middle",
|
|
718
746
|
x: s.value.left + r.value.width / 2,
|
|
719
747
|
y: s.value.top + r.value.height / 2 + 14 / 3,
|
|
@@ -721,22 +749,22 @@ const kt = ["id"], _t = ["xmlns", "viewBox"], Ct = ["id"], wt = ["stop-color"],
|
|
|
721
749
|
"font-weight": "bold",
|
|
722
750
|
fill: e.value.style.chart.layout.dataLabels.color,
|
|
723
751
|
class: "vue-ui-donut-evolution-focus"
|
|
724
|
-
}, b(j(
|
|
725
|
-
e.value.style.chart.layout.grid.xAxis.dataLabels.values[
|
|
752
|
+
}, b(j(S.value.subtotal, S.value, null)), 9, gl),
|
|
753
|
+
e.value.style.chart.layout.grid.xAxis.dataLabels.values[S.value.index] ? (a(), o("text", {
|
|
726
754
|
key: 0,
|
|
727
755
|
x: s.value.left + 6,
|
|
728
756
|
y: s.value.top + e.value.style.chart.layout.grid.xAxis.dataLabels.fontSize * 2,
|
|
729
757
|
"font-size": e.value.style.chart.layout.grid.xAxis.dataLabels.fontSize * 1.6,
|
|
730
758
|
fill: e.value.style.chart.layout.dataLabels.color
|
|
731
|
-
}, b(e.value.style.chart.layout.grid.xAxis.dataLabels.values[Number(
|
|
732
|
-
])) :
|
|
733
|
-
|
|
734
|
-
], 14,
|
|
735
|
-
l.$slots.watermark ? (a(),
|
|
736
|
-
|
|
737
|
-
])) :
|
|
738
|
-
X.value ?
|
|
739
|
-
key:
|
|
759
|
+
}, b(e.value.style.chart.layout.grid.xAxis.dataLabels.values[Number(S.value.index) + Number(h.value.start)]), 9, bl)) : v("", !0)
|
|
760
|
+
])) : v("", !0),
|
|
761
|
+
P(l.$slots, "svg", { svg: r.value }, void 0, !0)
|
|
762
|
+
], 14, Lt)) : v("", !0),
|
|
763
|
+
l.$slots.watermark ? (a(), o("div", ml, [
|
|
764
|
+
P(l.$slots, "watermark", Y(K({ isPrinting: c(ke) || c(_e) })), void 0, !0)
|
|
765
|
+
])) : v("", !0),
|
|
766
|
+
X.value ? v("", !0) : (a(), I(mt, {
|
|
767
|
+
key: 5,
|
|
740
768
|
config: {
|
|
741
769
|
type: "donutEvolution",
|
|
742
770
|
style: {
|
|
@@ -752,8 +780,8 @@ const kt = ["id"], _t = ["xmlns", "viewBox"], Ct = ["id"], wt = ["stop-color"],
|
|
|
752
780
|
}
|
|
753
781
|
}
|
|
754
782
|
}, null, 8, ["config"])),
|
|
755
|
-
W.value > 1 && e.value.style.chart.zoom.show ? (a(),
|
|
756
|
-
key: `slicer_${
|
|
783
|
+
W.value > 1 && e.value.style.chart.zoom.show ? (a(), I(pt, {
|
|
784
|
+
key: `slicer_${ge.value}`,
|
|
757
785
|
background: e.value.style.chart.zoom.color,
|
|
758
786
|
borderColor: e.value.style.chart.backgroundColor,
|
|
759
787
|
fontSize: e.value.style.chart.zoom.fontSize,
|
|
@@ -771,29 +799,29 @@ const kt = ["id"], _t = ["xmlns", "viewBox"], Ct = ["id"], wt = ["stop-color"],
|
|
|
771
799
|
"onUpdate:start": i[0] || (i[0] = (t) => h.value.start = t),
|
|
772
800
|
end: h.value.end,
|
|
773
801
|
"onUpdate:end": i[1] || (i[1] = (t) => h.value.end = t),
|
|
774
|
-
onReset:
|
|
802
|
+
onReset: he
|
|
775
803
|
}, {
|
|
776
|
-
"reset-action":
|
|
777
|
-
|
|
804
|
+
"reset-action": F(({ reset: t }) => [
|
|
805
|
+
P(l.$slots, "reset-action", Y(K({ reset: t })), void 0, !0)
|
|
778
806
|
]),
|
|
779
807
|
_: 3
|
|
780
|
-
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end"])) :
|
|
781
|
-
e.value.style.chart.legend.show ? (a(),
|
|
782
|
-
key: `legend_${
|
|
783
|
-
legendSet:
|
|
784
|
-
config:
|
|
785
|
-
onClickMarker: i[2] || (i[2] = ({ legend: t }) =>
|
|
808
|
+
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end"])) : v("", !0),
|
|
809
|
+
e.value.style.chart.legend.show ? (a(), I(bt, {
|
|
810
|
+
key: `legend_${pe.value}`,
|
|
811
|
+
legendSet: Se.value,
|
|
812
|
+
config: Ye.value,
|
|
813
|
+
onClickMarker: i[2] || (i[2] = ({ legend: t }) => ue(t.uid))
|
|
786
814
|
}, {
|
|
787
|
-
item:
|
|
788
|
-
|
|
815
|
+
item: F(({ legend: t, index: n }) => [
|
|
816
|
+
d("div", {
|
|
789
817
|
"data-cy-legend-item": "",
|
|
790
|
-
onClick: (
|
|
791
|
-
style:
|
|
818
|
+
onClick: (u) => ue(t.uid),
|
|
819
|
+
style: re(`opacity:${_.value.includes(t.uid) ? 0.5 : 1}`)
|
|
792
820
|
}, [
|
|
793
|
-
|
|
821
|
+
Te(b(t.name) + ": " + b(c(ve)(
|
|
794
822
|
e.value.style.chart.layout.dataLabels.formatter,
|
|
795
823
|
t.value,
|
|
796
|
-
c(
|
|
824
|
+
c(Q)({
|
|
797
825
|
p: e.value.style.chart.layout.dataLabels.prefix,
|
|
798
826
|
v: t.value,
|
|
799
827
|
s: e.value.style.chart.layout.dataLabels.suffix,
|
|
@@ -801,18 +829,21 @@ const kt = ["id"], _t = ["xmlns", "viewBox"], Ct = ["id"], wt = ["stop-color"],
|
|
|
801
829
|
}),
|
|
802
830
|
{ datapoint: t, seriesIndex: n }
|
|
803
831
|
)) + " ", 1),
|
|
804
|
-
_.value.includes(t.uid) ? (a(),
|
|
805
|
-
v: t.value /
|
|
832
|
+
_.value.includes(t.uid) ? (a(), o("span", kl, " ( - % ) ")) : (a(), o("span", xl, " (" + b(isNaN(t.value / Ne.value) ? "-" : c(Q)({
|
|
833
|
+
v: t.value / Ne.value * 100,
|
|
806
834
|
s: "%",
|
|
807
835
|
r: e.value.style.chart.legend.roundingPercentage
|
|
808
836
|
})) + ") ", 1))
|
|
809
|
-
], 12,
|
|
837
|
+
], 12, pl)
|
|
810
838
|
]),
|
|
811
839
|
_: 1
|
|
812
|
-
}, 8, ["legendSet", "config"])) :
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
840
|
+
}, 8, ["legendSet", "config"])) : v("", !0),
|
|
841
|
+
P(l.$slots, "legend", { legend: Se.value }, void 0, !0),
|
|
842
|
+
l.$slots.source ? (a(), o("div", _l, [
|
|
843
|
+
P(l.$slots, "source", {}, void 0, !0)
|
|
844
|
+
], 512)) : v("", !0),
|
|
845
|
+
X.value ? (a(), I(xt, {
|
|
846
|
+
key: 9,
|
|
816
847
|
hideDetails: "",
|
|
817
848
|
config: {
|
|
818
849
|
open: G.value.showTable,
|
|
@@ -827,9 +858,9 @@ const kt = ["id"], _t = ["xmlns", "viewBox"], Ct = ["id"], wt = ["stop-color"],
|
|
|
827
858
|
}
|
|
828
859
|
}
|
|
829
860
|
}, {
|
|
830
|
-
content:
|
|
831
|
-
(a(),
|
|
832
|
-
key: `table_${
|
|
861
|
+
content: F(() => [
|
|
862
|
+
(a(), I(gt, {
|
|
863
|
+
key: `table_${me.value}`,
|
|
833
864
|
colNames: V.value.colNames,
|
|
834
865
|
head: V.value.head,
|
|
835
866
|
body: V.value.body,
|
|
@@ -837,21 +868,21 @@ const kt = ["id"], _t = ["xmlns", "viewBox"], Ct = ["id"], wt = ["stop-color"],
|
|
|
837
868
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
838
869
|
onClose: i[3] || (i[3] = (t) => G.value.showTable = !1)
|
|
839
870
|
}, {
|
|
840
|
-
th:
|
|
841
|
-
|
|
871
|
+
th: F(({ th: t }) => [
|
|
872
|
+
Te(b(t.name ?? t), 1)
|
|
842
873
|
]),
|
|
843
|
-
td:
|
|
844
|
-
t.value === null ? (a(),
|
|
845
|
-
|
|
874
|
+
td: F(({ td: t }) => [
|
|
875
|
+
t.value === null ? (a(), o("span", Cl, "-")) : (a(), o("b", wl, b(isNaN(t.value) ? "" : e.value.style.chart.layout.dataLabels.prefix) + b(!isNaN(t.value) && t.value !== null ? Number(t.value.toFixed(e.value.table.td.roundingValue)).toLocaleString() : t) + b(isNaN(t.value) ? "" : e.value.style.chart.layout.dataLabels.suffix), 1)),
|
|
876
|
+
d("span", null, b(t.percentage && !isNaN(t.percentage) ? `(${Number(t.percentage.toFixed(e.value.table.td.roundingPercentage)).toLocaleString()}%)` : ""), 1)
|
|
846
877
|
]),
|
|
847
878
|
_: 1
|
|
848
879
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
849
880
|
]),
|
|
850
881
|
_: 1
|
|
851
|
-
}, 8, ["config"])) :
|
|
852
|
-
], 14,
|
|
882
|
+
}, 8, ["config"])) : v("", !0)
|
|
883
|
+
], 14, wt));
|
|
853
884
|
}
|
|
854
|
-
},
|
|
885
|
+
}, Hl = /* @__PURE__ */ Ct(Ll, [["__scopeId", "data-v-e52a9024"]]);
|
|
855
886
|
export {
|
|
856
|
-
|
|
887
|
+
Hl as default
|
|
857
888
|
};
|