vue-data-ui 2.4.1 → 2.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +44 -44
- package/dist/{Arrow-DpMf3yPs.cjs → Arrow-DLTRnzcG.cjs} +1 -1
- package/dist/{Arrow-BIs_9yK8.js → Arrow-JuK2z9IB.js} +1 -1
- package/dist/BaseIcon-BGExhz6v.cjs +1 -0
- package/dist/{BaseIcon-CXDdkPfN.js → BaseIcon-rRli6Sfv.js} +7 -4
- package/dist/{DataTable-BTgMVOwp.cjs → DataTable-DJzhv96s.cjs} +1 -1
- package/dist/{DataTable-DL2agEJ3.js → DataTable-DTk7C4Pr.js} +2 -2
- package/dist/{Legend-DXLiSLHd.js → Legend-CYF2gpXG.js} +1 -1
- package/dist/{Legend-Dj9KiaLv.cjs → Legend-YZ7Hz3o1.cjs} +1 -1
- package/dist/{PackageVersion-DtnhR89q.js → PackageVersion-CvCRsT5_.js} +1 -1
- package/dist/{PackageVersion-D4D0WicU.cjs → PackageVersion-DVZtsuy4.cjs} +1 -1
- package/dist/PenAndPaper-CyXm-yVL.cjs +1 -0
- package/dist/PenAndPaper-Jb0pLt3G.js +269 -0
- package/dist/{Shape-CO_Ak9Zm.js → Shape-BpPn4eWR.js} +1 -1
- package/dist/{Shape-7EC2UKDK.cjs → Shape-X2F-QV_B.cjs} +1 -1
- package/dist/{Slicer-CLAVjSQP.cjs → Slicer-CL0tP5a5.cjs} +1 -1
- package/dist/{Slicer-BZfUZr1J.js → Slicer-CU7dRZR0.js} +2 -2
- package/dist/{Title-DYNLqCCT.js → Title-5VmBwT4i.js} +1 -1
- package/dist/{Title-C-lm3Mkl.cjs → Title-Co5jI5ed.cjs} +1 -1
- package/dist/{Tooltip-t-3mVhcz.cjs → Tooltip-Bl6W8Zn7.cjs} +1 -1
- package/dist/{Tooltip-CICAYyQj.js → Tooltip-Cj4EF7v1.js} +1 -1
- package/dist/{index-DDXisDKy.js → index-DnVHQ2xI.js} +880 -842
- package/dist/index-FfZRtJ6A.cjs +9 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +18 -16
- package/dist/types/vue-data-ui.d.ts +18 -16
- package/dist/{useNestedProp-S1UXxUgm.js → useNestedProp-Cox0K0Y5.js} +1 -1
- package/dist/{useNestedProp-CC9zGr7C.cjs → useNestedProp-q7byAAIJ.cjs} +1 -1
- package/dist/usePrinter-BCAFeO_J.cjs +1 -0
- package/dist/{usePrinter-8ofTb2MJ.js → usePrinter-BEeNAqS5.js} +230 -185
- package/dist/vue-data-ui-CRLLZpt0.cjs +9 -0
- package/dist/vue-data-ui-W7nnqn0v.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-DcF1nyGW.js → vue-ui-3d-bar-BwBrUabe.js} +414 -390
- package/dist/vue-ui-3d-bar-bD_n6qL_.cjs +19 -0
- package/dist/{vue-ui-accordion-D_1fE5EF.js → vue-ui-accordion-DspS4q3f.js} +3 -3
- package/dist/{vue-ui-accordion-Cc9958th.cjs → vue-ui-accordion-xXgqfR2l.cjs} +1 -1
- package/dist/vue-ui-age-pyramid-BZcAwcVQ.cjs +1 -0
- package/dist/{vue-ui-age-pyramid-Oe_yHDL0.js → vue-ui-age-pyramid-CxBvm3uM.js} +218 -194
- package/dist/{vue-ui-annotator-Dix6_Gm6.js → vue-ui-annotator-BOofWpzv.js} +1 -1
- package/dist/{vue-ui-annotator-Dbp6cWMr.cjs → vue-ui-annotator-C6T5_7ZV.cjs} +1 -1
- package/dist/vue-ui-bullet-ChaEgXvR.cjs +23 -0
- package/dist/vue-ui-bullet-DraC-oFu.js +433 -0
- package/dist/vue-ui-candlestick--hPCfMFH.cjs +2 -0
- package/dist/{vue-ui-candlestick-CRwzWF6j.js → vue-ui-candlestick-DQZ5eT1f.js} +267 -243
- package/dist/{vue-ui-carousel-table-C0GDDSW9.cjs → vue-ui-carousel-table-DpRQklDZ.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-BHeEbRKY.js → vue-ui-carousel-table-PdLjpH1p.js} +4 -4
- package/dist/{vue-ui-chestnut-CRk0RCB9.js → vue-ui-chestnut-ByI_O5hB.js} +293 -269
- package/dist/vue-ui-chestnut-ae6x87wl.cjs +6 -0
- package/dist/{vue-ui-cursor-y0kdr0uA.js → vue-ui-cursor-BM74l93B.js} +2 -2
- package/dist/{vue-ui-cursor-lU1rts1B.cjs → vue-ui-cursor-BvadpA2m.cjs} +1 -1
- package/dist/{vue-ui-dashboard-OyihaKdu.js → vue-ui-dashboard-CoANBhAM.js} +2 -2
- package/dist/{vue-ui-dashboard-BfC0jS-X.cjs → vue-ui-dashboard-OP51Gs8I.cjs} +1 -1
- package/dist/{vue-ui-digits-BJfcAiq_.cjs → vue-ui-digits-C7jJJg9k.cjs} +1 -1
- package/dist/{vue-ui-digits-IKt4qT2-.js → vue-ui-digits-DioaBnkB.js} +2 -2
- package/dist/vue-ui-donut-CplNylps.cjs +1 -0
- package/dist/vue-ui-donut-evolution-CQpr-6IS.cjs +1 -0
- package/dist/{vue-ui-donut-evolution-Dd4o37RP.js → vue-ui-donut-evolution-DAb1xzNd.js} +330 -306
- package/dist/{vue-ui-donut-DFaGk4fI.js → vue-ui-donut-ldqSm_JV.js} +345 -321
- package/dist/{vue-ui-dumbbell-B7j1_JoQ.js → vue-ui-dumbbell-Dg7PkiKJ.js} +265 -241
- package/dist/vue-ui-dumbbell-_ijaYr8W.cjs +9 -0
- package/dist/vue-ui-flow-BPt35d5K.cjs +1 -0
- package/dist/vue-ui-flow-DKT7ZEnr.js +508 -0
- package/dist/vue-ui-galaxy-e06PkTmp.cjs +1 -0
- package/dist/{vue-ui-galaxy-CH1BDtWl.js → vue-ui-galaxy-qAA9be3S.js} +193 -169
- package/dist/vue-ui-gauge-D8yVTIgP.js +518 -0
- package/dist/vue-ui-gauge-DiZVIU0D.cjs +1 -0
- package/dist/{vue-ui-gizmo-CKQcbe_7.js → vue-ui-gizmo-DC0uUwI3.js} +3 -3
- package/dist/{vue-ui-gizmo-DVwQaEH1.cjs → vue-ui-gizmo-W6bTkg59.cjs} +1 -1
- package/dist/vue-ui-heatmap-CbZcv_2I.cjs +1 -0
- package/dist/{vue-ui-heatmap-B-zWMk0Y.js → vue-ui-heatmap-u1raIzBQ.js} +252 -228
- package/dist/{vue-ui-kpi-CghbfSdM.js → vue-ui-kpi-C-iTxMD2.js} +3 -3
- package/dist/{vue-ui-kpi-CuY3xlVq.cjs → vue-ui-kpi-DY_2WF7U.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-CH_PfeDc.cjs → vue-ui-mini-loader-Bfq2MNWu.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-C7roqZ4p.js → vue-ui-mini-loader-C7x7S0hi.js} +2 -2
- package/dist/vue-ui-molecule-BFnOIxxs.js +798 -0
- package/dist/vue-ui-molecule-CbKMLrDT.cjs +1 -0
- package/dist/vue-ui-mood-radar-6LmFXuiw.cjs +1 -0
- package/dist/{vue-ui-mood-radar-DSznHxLS.js → vue-ui-mood-radar-CR1v5v2x.js} +263 -239
- package/dist/{vue-ui-nested-donuts-CiE4DdEQ.js → vue-ui-nested-donuts-DEiloQzq.js} +342 -318
- package/dist/vue-ui-nested-donuts-DS0fjiLi.cjs +17 -0
- package/dist/vue-ui-onion-CLvvu4Ku.cjs +5 -0
- package/dist/{vue-ui-onion-D9o6Rcgu.js → vue-ui-onion-LsEhBe4x.js} +226 -202
- package/dist/vue-ui-parallel-coordinate-plot-BWg8OFqH.cjs +8 -0
- package/dist/{vue-ui-parallel-coordinate-plot-BcYrYXhG.js → vue-ui-parallel-coordinate-plot-CTlIjJqG.js} +243 -219
- package/dist/{vue-ui-quadrant-Cs3A77us.js → vue-ui-quadrant-DKVVFufb.js} +350 -326
- package/dist/vue-ui-quadrant-OM5J1mG3.cjs +1 -0
- package/dist/{vue-ui-quick-chart-CiiSUexi.js → vue-ui-quick-chart-8vJikiGH.js} +505 -481
- package/dist/vue-ui-quick-chart-gG5Ar8-i.cjs +15 -0
- package/dist/{vue-ui-radar-CNSpiNrM.js → vue-ui-radar-20QhOUer.js} +255 -231
- package/dist/vue-ui-radar-CAaHjDO7.cjs +1 -0
- package/dist/{vue-ui-rating-GoUNDOdZ.cjs → vue-ui-rating-Bbzm5nUK.cjs} +1 -1
- package/dist/{vue-ui-rating-b_iYZWF8.js → vue-ui-rating-DRWJsve1.js} +2 -2
- package/dist/vue-ui-relation-circle-BoGAFXuS.cjs +1 -0
- package/dist/vue-ui-relation-circle-I45_Sk5l.js +349 -0
- package/dist/vue-ui-rings-B9WQ7S5m.cjs +2 -0
- package/dist/vue-ui-rings-DG8GCi3y.js +593 -0
- package/dist/vue-ui-scatter-BZfg1YIN.cjs +1 -0
- package/dist/{vue-ui-scatter-CVuoW-cD.js → vue-ui-scatter-Hqu5-F2H.js} +369 -345
- package/dist/{vue-ui-screenshot-Co2o48d6.cjs → vue-ui-screenshot-D8nxd5RV.cjs} +1 -1
- package/dist/{vue-ui-screenshot-Csc0dQL9.js → vue-ui-screenshot-cjiqbtLK.js} +1 -1
- package/dist/{vue-ui-skeleton-CGV1dEUD.cjs → vue-ui-skeleton-Djv08J67.cjs} +1 -1
- package/dist/{vue-ui-skeleton-B2sRnIXX.js → vue-ui-skeleton-aZmkNzAe.js} +3 -3
- package/dist/{vue-ui-smiley-Ci3uMgVh.cjs → vue-ui-smiley-B1TA19Hv.cjs} +1 -1
- package/dist/{vue-ui-smiley-D4s-AdIE.js → vue-ui-smiley-ChNvxygm.js} +2 -2
- package/dist/{vue-ui-spark-trend-BfoEoJEy.cjs → vue-ui-spark-trend-BqrPr63O.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-CHKQGMLs.js → vue-ui-spark-trend-CQxELQcf.js} +5 -5
- package/dist/{vue-ui-sparkbar-Bb1fq2GR.js → vue-ui-sparkbar-0ixbKZzf.js} +4 -4
- package/dist/{vue-ui-sparkbar-DB2DeXti.cjs → vue-ui-sparkbar-CrTEPTU5.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-CJepIY2u.cjs → vue-ui-sparkgauge-BYxpe_WV.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-DWuaAQbo.js → vue-ui-sparkgauge-pdYb7OwH.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-B7B36LLT.cjs → vue-ui-sparkhistogram-D21XDUH2.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-CjeJ3ch1.js → vue-ui-sparkhistogram-N69h2q0U.js} +5 -5
- package/dist/{vue-ui-sparkline-DGJDBArr.js → vue-ui-sparkline-2BKYZMOb.js} +4 -4
- package/dist/{vue-ui-sparkline-BcqmwDAb.cjs → vue-ui-sparkline-Cf4m-Fxo.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-DT3aKNeV.cjs → vue-ui-sparkstackbar-dAS8XoJs.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-B3ul3qUZ.js → vue-ui-sparkstackbar-sh03cuOU.js} +4 -4
- package/dist/vue-ui-stackbar-B1si-1RM.js +938 -0
- package/dist/vue-ui-stackbar-Dy_saeSe.cjs +6 -0
- package/dist/{vue-ui-strip-plot-CIb2LSV8.js → vue-ui-strip-plot-BYn-QrTQ.js} +274 -250
- package/dist/vue-ui-strip-plot-D53LABpZ.cjs +1 -0
- package/dist/{vue-ui-table-B_sFrAO9.cjs → vue-ui-table-Ce4waJaj.cjs} +1 -1
- package/dist/{vue-ui-table-CmVi0nv2.js → vue-ui-table-DQORPCDJ.js} +1 -1
- package/dist/{vue-ui-table-heatmap-CgFr38QT.js → vue-ui-table-heatmap-Csp7Tx8N.js} +4 -4
- package/dist/{vue-ui-table-heatmap-Chvdf2Gi.cjs → vue-ui-table-heatmap-EqHt-O7Y.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-DUUYQ5dH.cjs → vue-ui-table-sparkline-DONmVOMh.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-eg2Qd8ws.js → vue-ui-table-sparkline-DdwVrfUj.js} +5 -5
- package/dist/vue-ui-thermometer-I6ZnlfAv.js +440 -0
- package/dist/vue-ui-thermometer-hQBkMa7u.cjs +1 -0
- package/dist/{vue-ui-timer-DM1IStj1.cjs → vue-ui-timer-COOXcn14.cjs} +1 -1
- package/dist/{vue-ui-timer-COSI3Q5T.js → vue-ui-timer-pi1SazTU.js} +5 -5
- package/dist/vue-ui-tiremarks-hdNqoGyd.cjs +1 -0
- package/dist/vue-ui-tiremarks-vdPQYiDp.js +303 -0
- package/dist/vue-ui-treemap-3FNUlKxL.js +816 -0
- package/dist/vue-ui-treemap-Cv0TSFQa.cjs +1 -0
- package/dist/vue-ui-vertical-bar-C--Ma0Dw.cjs +4 -0
- package/dist/{vue-ui-vertical-bar-CieqHVD5.js → vue-ui-vertical-bar-DwxpB46q.js} +312 -288
- package/dist/vue-ui-waffle-CKM0QyJN.cjs +1 -0
- package/dist/vue-ui-waffle-XecHJIc-.js +782 -0
- package/dist/vue-ui-wheel-Bbih5sSL.js +282 -0
- package/dist/vue-ui-wheel-C0dJrzOJ.cjs +1 -0
- package/dist/vue-ui-word-cloud-Cfd2wxsT.cjs +1 -0
- package/dist/vue-ui-word-cloud-DnhXUn5x.js +598 -0
- package/dist/vue-ui-xy-BDpqVzAq.cjs +3 -0
- package/dist/{vue-ui-xy-x8KEsGV-.js → vue-ui-xy-CqlRuFMc.js} +775 -751
- package/dist/{vue-ui-xy-canvas-BYdTxzi6.js → vue-ui-xy-canvas-C8c2X5fk.js} +409 -385
- package/dist/vue-ui-xy-canvas-Cansjd3L.cjs +9 -0
- 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/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-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-N3tRNc4u.cjs +0 -5
- 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-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-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-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,34 +1,35 @@
|
|
|
1
|
-
import { computed as
|
|
2
|
-
import { u as
|
|
3
|
-
import { t as
|
|
4
|
-
import { _ as
|
|
5
|
-
import { u as
|
|
6
|
-
import { D as
|
|
7
|
-
import { _ as
|
|
8
|
-
import { L as _t } from "./Legend-
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { u as
|
|
12
|
-
import { _ as
|
|
13
|
-
import {
|
|
14
|
-
|
|
1
|
+
import { computed as m, ref as d, watch as Pe, onMounted as Qe, onBeforeUnmount as Ze, openBlock as u, createElementBlock as n, normalizeClass as P, normalizeStyle as re, createBlock as D, createCommentVNode as f, unref as r, createSlots as je, withCtx as g, renderSlot as $, normalizeProps as R, guardReactiveProps as E, createVNode as De, createElementVNode as y, Fragment as x, renderList as S, toDisplayString as N, createTextVNode as Q, nextTick as et, pushScopeId as tt, popScopeId as lt } from "vue";
|
|
2
|
+
import { u as at, c as ot, t as st, a as ut, p as Z, o as nt, e as V, b as rt, I as ze, d as it, m as Ve, f as L, X as dt, s as Me, K as ct, k as M, n as ie, i as G, x as Be, y as vt, q as ft, r as ht } from "./index-DnVHQ2xI.js";
|
|
3
|
+
import { t as pt, u as yt } from "./useResponsive-NZB-WLRF.js";
|
|
4
|
+
import { _ as bt } from "./Title-5VmBwT4i.js";
|
|
5
|
+
import { u as gt, U as mt } from "./usePrinter-BEeNAqS5.js";
|
|
6
|
+
import { D as kt } from "./DataTable-DTk7C4Pr.js";
|
|
7
|
+
import { _ as wt } from "./Tooltip-Cj4EF7v1.js";
|
|
8
|
+
import { L as _t } from "./Legend-CYF2gpXG.js";
|
|
9
|
+
import $t from "./vue-ui-skeleton-aZmkNzAe.js";
|
|
10
|
+
import xt from "./vue-ui-accordion-DspS4q3f.js";
|
|
11
|
+
import { u as Ue } from "./useNestedProp-Cox0K0Y5.js";
|
|
12
|
+
import { _ as Lt } from "./PackageVersion-CvCRsT5_.js";
|
|
13
|
+
import { P as Ct } from "./PenAndPaper-Jb0pLt3G.js";
|
|
14
|
+
import { _ as Ft } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
|
+
const de = (B) => (tt("data-v-ab64cd29"), B = B(), lt(), B), St = ["id"], Tt = ["xmlns", "viewBox"], Nt = ["id"], It = /* @__PURE__ */ de(() => /* @__PURE__ */ y("stop", {
|
|
15
16
|
offset: "0%",
|
|
16
17
|
"stop-color": "#FFFFFF",
|
|
17
18
|
"stop-opacity": "0"
|
|
18
|
-
}, null, -1)),
|
|
19
|
+
}, null, -1)), At = ["offset", "stop-color"], Ot = ["offset", "stop-opacity"], Pt = /* @__PURE__ */ de(() => /* @__PURE__ */ y("stop", {
|
|
19
20
|
offset: "100%",
|
|
20
21
|
"stop-color": "#FFFFFF",
|
|
21
22
|
"stop-opacity": "0"
|
|
22
|
-
}, null, -1)), Dt = ["id"],
|
|
23
|
+
}, null, -1)), Dt = ["id"], zt = ["id"], Vt = /* @__PURE__ */ de(() => /* @__PURE__ */ y("feColorMatrix", {
|
|
23
24
|
type: "saturate",
|
|
24
25
|
values: "0"
|
|
25
|
-
}, null, -1)),
|
|
26
|
-
key:
|
|
26
|
+
}, null, -1)), Mt = ["id"], Bt = ["flood-color"], Ut = ["d", "fill", "stroke", "stroke-width", "filter"], Rt = { key: 0 }, Et = ["d", "fill"], Gt = { key: 1 }, Yt = ["x", "y", "font-size", "font-weight", "fill"], Xt = { key: 2 }, Wt = ["filter"], Ht = ["text-anchor", "x", "y", "fill", "font-size", "font-weight"], qt = ["text-anchor", "x", "y", "fill", "font-size", "font-weight"], Kt = ["text-anchor", "x", "y", "fill", "font-size", "font-weight"], Jt = ["d", "fill", "onMouseenter", "onClick"], Qt = {
|
|
27
|
+
key: 4,
|
|
27
28
|
class: "vue-data-ui-watermark"
|
|
28
|
-
},
|
|
29
|
+
}, Zt = {
|
|
29
30
|
key: 0,
|
|
30
31
|
class: "vue-ui-nested-donuts-legend-title"
|
|
31
|
-
},
|
|
32
|
+
}, jt = ["onClick"], el = ["innerHTML"], tl = {
|
|
32
33
|
__name: "vue-ui-nested-donuts",
|
|
33
34
|
props: {
|
|
34
35
|
config: {
|
|
@@ -45,93 +46,93 @@ const re = (M) => (je("data-v-e05474aa"), M = M(), et(), M), Lt = ["id"], Ct = [
|
|
|
45
46
|
}
|
|
46
47
|
},
|
|
47
48
|
emits: ["selectLegend", "selectDatapoint"],
|
|
48
|
-
setup(
|
|
49
|
-
const I =
|
|
50
|
-
function
|
|
51
|
-
U.value = t,
|
|
49
|
+
setup(B, { expose: Re, emit: ce }) {
|
|
50
|
+
const I = B, { vue_ui_nested_donuts: Ee } = at(), Y = m(() => !!I.dataset && I.dataset.length), k = d(ot()), j = d(!1), ee = d(""), Ge = d(null), ve = d(0), z = d(null), fe = d(null), te = d(null), he = d(0), pe = d(0), ye = d(0), U = d(!1);
|
|
51
|
+
function Ye(t) {
|
|
52
|
+
U.value = t, ve.value += 1;
|
|
52
53
|
}
|
|
53
|
-
const e =
|
|
54
|
-
get: () =>
|
|
54
|
+
const e = m({
|
|
55
|
+
get: () => be(),
|
|
55
56
|
set: (t) => t
|
|
56
57
|
});
|
|
57
|
-
function
|
|
58
|
-
const t =
|
|
58
|
+
function be() {
|
|
59
|
+
const t = Ue({
|
|
59
60
|
userConfig: I.config,
|
|
60
|
-
defaultConfig:
|
|
61
|
+
defaultConfig: Ee
|
|
61
62
|
});
|
|
62
63
|
return t.theme ? {
|
|
63
|
-
...
|
|
64
|
-
userConfig:
|
|
64
|
+
...Ue({
|
|
65
|
+
userConfig: st.vue_ui_nested_donuts[t.theme] || I.config,
|
|
65
66
|
defaultConfig: t
|
|
66
67
|
}),
|
|
67
|
-
customPalette:
|
|
68
|
+
customPalette: ut[t.theme] || Z
|
|
68
69
|
} : t;
|
|
69
70
|
}
|
|
70
|
-
|
|
71
|
-
e.value =
|
|
71
|
+
Pe(() => I.config, (t) => {
|
|
72
|
+
e.value = be(), ge(), he.value += 1, pe.value += 1, ye.value += 1;
|
|
72
73
|
}, { deep: !0 });
|
|
73
|
-
const
|
|
74
|
-
|
|
75
|
-
|
|
74
|
+
const X = d(null);
|
|
75
|
+
Qe(() => {
|
|
76
|
+
ge();
|
|
76
77
|
});
|
|
77
|
-
function
|
|
78
|
-
if (
|
|
78
|
+
function ge() {
|
|
79
|
+
if (nt(I.dataset) && V({
|
|
79
80
|
componentName: "VueUiNestedDonuts",
|
|
80
81
|
type: "dataset"
|
|
81
82
|
}), e.value.responsive) {
|
|
82
|
-
const t =
|
|
83
|
-
const { width: s, height: a } =
|
|
84
|
-
chart:
|
|
85
|
-
title: e.value.style.chart.title.text ?
|
|
86
|
-
legend: e.value.style.chart.legend.show ?
|
|
83
|
+
const t = pt(() => {
|
|
84
|
+
const { width: s, height: a } = yt({
|
|
85
|
+
chart: z.value,
|
|
86
|
+
title: e.value.style.chart.title.text ? fe.value : null,
|
|
87
|
+
legend: e.value.style.chart.legend.show ? te.value : null
|
|
87
88
|
});
|
|
88
|
-
|
|
89
|
+
h.value.width = s, h.value.height = a;
|
|
89
90
|
});
|
|
90
|
-
|
|
91
|
+
X.value = new ResizeObserver(t), X.value.observe(z.value.parentNode);
|
|
91
92
|
}
|
|
92
93
|
}
|
|
93
|
-
|
|
94
|
-
|
|
94
|
+
Ze(() => {
|
|
95
|
+
X.value && X.value.disconnect();
|
|
95
96
|
});
|
|
96
|
-
const { isPrinting:
|
|
97
|
-
elementId: `nested_donuts_${
|
|
97
|
+
const { isPrinting: me, isImaging: ke, generatePdf: we, generateImage: _e } = gt({
|
|
98
|
+
elementId: `nested_donuts_${k.value}`,
|
|
98
99
|
fileName: e.value.style.chart.title.text || "vue-ui-nested-donuts"
|
|
99
|
-
}),
|
|
100
|
+
}), Xe = m(() => rt(e.value.customPalette)), w = d({
|
|
100
101
|
dataLabels: {
|
|
101
102
|
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
102
103
|
},
|
|
103
104
|
showTable: e.value.table.show,
|
|
104
105
|
showTooltip: e.value.style.chart.tooltip.show
|
|
105
|
-
}),
|
|
106
|
+
}), h = d({
|
|
106
107
|
height: 512,
|
|
107
108
|
width: 512
|
|
108
109
|
});
|
|
109
|
-
function
|
|
110
|
-
|
|
110
|
+
function We({ datapoint: t, index: s }) {
|
|
111
|
+
ce("selectDatapoint", { datapoint: t, index: s });
|
|
111
112
|
}
|
|
112
|
-
const
|
|
113
|
-
[null, void 0].includes(t.name) &&
|
|
113
|
+
const p = d([]), C = m(() => (I.dataset.forEach((t, s) => {
|
|
114
|
+
[null, void 0].includes(t.name) && V({
|
|
114
115
|
componentName: "VueUiNestedDonuts",
|
|
115
116
|
type: "datasetSerieAttribute",
|
|
116
117
|
property: "name",
|
|
117
118
|
index: s
|
|
118
|
-
}), [null, void 0].includes(t.series) ?
|
|
119
|
+
}), [null, void 0].includes(t.series) ? V({
|
|
119
120
|
componentName: "VueUiNestedDonuts",
|
|
120
121
|
type: "datasetSerieAttribute",
|
|
121
122
|
property: "series",
|
|
122
123
|
index: s
|
|
123
|
-
}) : t.series.length === 0 ?
|
|
124
|
+
}) : t.series.length === 0 ? V({
|
|
124
125
|
componentName: "VueUiNestedDonuts",
|
|
125
126
|
type: "datasetAttributeEmpty",
|
|
126
127
|
property: `series at index ${s}`
|
|
127
128
|
}) : t.series.forEach((a, o) => {
|
|
128
|
-
[null, void 0].includes(a.name) &&
|
|
129
|
+
[null, void 0].includes(a.name) && V({
|
|
129
130
|
componentName: "VueUiNestedDonuts",
|
|
130
131
|
type: "datasetSerieAttribute",
|
|
131
132
|
property: "name",
|
|
132
133
|
index: o,
|
|
133
134
|
key: "serie"
|
|
134
|
-
}), [null, void 0].includes(a.values) &&
|
|
135
|
+
}), [null, void 0].includes(a.values) && V({
|
|
135
136
|
componentName: "VueUiNestedDonuts",
|
|
136
137
|
type: "datasetSerieAttribute",
|
|
137
138
|
property: "values",
|
|
@@ -141,90 +142,90 @@ const re = (M) => (je("data-v-e05474aa"), M = M(), et(), M), Lt = ["id"], Ct = [
|
|
|
141
142
|
});
|
|
142
143
|
}), I.dataset.map((t, s) => ({
|
|
143
144
|
...t,
|
|
144
|
-
total: t.series.filter((a) => !
|
|
145
|
+
total: t.series.filter((a) => !p.value.includes(a.id)).map((a) => ze(a.values).reduce((o, l) => o + l, 0)).reduce((a, o) => a + o, 0),
|
|
145
146
|
datasetIndex: s,
|
|
146
|
-
id: `${
|
|
147
|
+
id: `${k.value}_${s}`,
|
|
147
148
|
series: t.series.map((a, o) => ({
|
|
148
149
|
name: a.name,
|
|
149
150
|
arcOf: t.name,
|
|
150
|
-
arcOfId: `${
|
|
151
|
-
id: `${
|
|
151
|
+
arcOfId: `${k.value}_${s}`,
|
|
152
|
+
id: `${k.value}_${s}_${o}`,
|
|
152
153
|
seriesIndex: o,
|
|
153
154
|
datasetIndex: s,
|
|
154
|
-
color:
|
|
155
|
+
color: it(a.color) || Xe.value[o] || Z[o] || Z[o % Z.length],
|
|
155
156
|
value: ze(a.values).reduce((l, i) => l + i, 0),
|
|
156
157
|
absoluteValues: a.values || []
|
|
157
158
|
}))
|
|
158
|
-
})))), F =
|
|
159
|
-
const a = t.series.filter((o) => !
|
|
159
|
+
})))), F = m(() => Math.min(h.value.height, h.value.width) * (e.value.style.chart.layout.donut.strokeWidth / 512)), $e = m(() => [...C.value].map((t, s) => {
|
|
160
|
+
const a = t.series.filter((o) => !p.value.includes(o.id)).map((o) => o.value).reduce((o, l) => o + l, 0);
|
|
160
161
|
return {
|
|
161
162
|
...t,
|
|
162
163
|
total: a,
|
|
163
|
-
series: t.series.filter((o) => !
|
|
164
|
+
series: t.series.filter((o) => !p.value.includes(o.id)).map((o) => ({
|
|
164
165
|
...o,
|
|
165
166
|
proportion: o.value / a
|
|
166
167
|
}))
|
|
167
168
|
};
|
|
168
169
|
}));
|
|
169
|
-
function
|
|
170
|
+
function He(t, s, a) {
|
|
170
171
|
let o = 0;
|
|
171
172
|
for (let l = 0; l < t.length; l += 1)
|
|
172
173
|
a.includes(t[l]) && (o += 1);
|
|
173
174
|
return o < s;
|
|
174
175
|
}
|
|
175
|
-
const v = d(
|
|
176
|
-
|
|
177
|
-
const
|
|
178
|
-
function
|
|
179
|
-
|
|
176
|
+
const v = d($e.value);
|
|
177
|
+
Pe(() => $e.value, (t) => v.value = t);
|
|
178
|
+
const xe = d(null), Le = d(null);
|
|
179
|
+
function le(t) {
|
|
180
|
+
ce("selectLegend", t);
|
|
180
181
|
const s = C.value.flatMap((c) => c.series).find((c) => c.id === t.id), a = v.value.flatMap((c) => c.series).find((c) => c.id === t.id);
|
|
181
182
|
let l = a ? a.value : 0;
|
|
182
|
-
const i = C.value.find((c) => c.id === s.arcOfId).series.map((c) => c.id), b =
|
|
183
|
-
if (
|
|
183
|
+
const i = C.value.find((c) => c.id === s.arcOfId).series.map((c) => c.id), b = He(i, i.length - 1, p.value);
|
|
184
|
+
if (p.value.includes(t.id)) {
|
|
184
185
|
let c = function() {
|
|
185
|
-
l > s.value ? (cancelAnimationFrame(
|
|
186
|
-
...
|
|
187
|
-
series:
|
|
188
|
-
...
|
|
186
|
+
l > s.value ? (cancelAnimationFrame(xe.value), v.value = v.value.map((_) => ({
|
|
187
|
+
..._,
|
|
188
|
+
series: _.series.map((T) => T.id == t.id ? {
|
|
189
|
+
...T,
|
|
189
190
|
value: s.value
|
|
190
|
-
} :
|
|
191
|
-
}))) : (l += s.value * 0.025, v.value = v.value.map((
|
|
192
|
-
...
|
|
193
|
-
series:
|
|
194
|
-
...
|
|
191
|
+
} : T)
|
|
192
|
+
}))) : (l += s.value * 0.025, v.value = v.value.map((_) => ({
|
|
193
|
+
..._,
|
|
194
|
+
series: _.series.map((T) => T.id === t.id ? {
|
|
195
|
+
...T,
|
|
195
196
|
value: l
|
|
196
|
-
} :
|
|
197
|
-
})),
|
|
197
|
+
} : T)
|
|
198
|
+
})), xe.value = requestAnimationFrame(c));
|
|
198
199
|
};
|
|
199
|
-
|
|
200
|
+
p.value = p.value.filter((_) => _ !== t.id), c();
|
|
200
201
|
} else if (b) {
|
|
201
202
|
let c = function() {
|
|
202
|
-
l < 0.1 ? (cancelAnimationFrame(
|
|
203
|
-
...
|
|
204
|
-
series:
|
|
203
|
+
l < 0.1 ? (cancelAnimationFrame(Le.value), p.value.push(t.id), v.value = v.value.map((_, T) => ({
|
|
204
|
+
..._,
|
|
205
|
+
series: _.series.map((O) => O.id === t.id ? {
|
|
205
206
|
...O,
|
|
206
207
|
value: 0
|
|
207
208
|
} : O)
|
|
208
|
-
}))) : (l /= 1.1, v.value = v.value.map((
|
|
209
|
-
...
|
|
210
|
-
series:
|
|
209
|
+
}))) : (l /= 1.1, v.value = v.value.map((_, T) => ({
|
|
210
|
+
..._,
|
|
211
|
+
series: _.series.map((O) => O.id === t.id ? {
|
|
211
212
|
...O,
|
|
212
213
|
value: l
|
|
213
214
|
} : O)
|
|
214
|
-
})),
|
|
215
|
+
})), Le.value = requestAnimationFrame(c));
|
|
215
216
|
};
|
|
216
217
|
c();
|
|
217
218
|
}
|
|
218
219
|
}
|
|
219
|
-
const
|
|
220
|
+
const ae = m(() => F.value / C.value.length * e.value.style.chart.layout.donut.spacingRatio), Ce = m(() => v.value.map((t, s) => F.value - s * F.value / C.value.length)), W = m(() => v.value.map((t, s) => {
|
|
220
221
|
const a = s * F.value / C.value.length;
|
|
221
222
|
return {
|
|
222
223
|
...t,
|
|
223
224
|
radius: F.value - a,
|
|
224
|
-
donut:
|
|
225
|
+
donut: Ve(
|
|
225
226
|
{ series: t.series },
|
|
226
|
-
|
|
227
|
-
|
|
227
|
+
h.value.width / 2,
|
|
228
|
+
h.value.height / 2,
|
|
228
229
|
F.value - a,
|
|
229
230
|
F.value - a,
|
|
230
231
|
1.99999,
|
|
@@ -232,17 +233,17 @@ const re = (M) => (je("data-v-e05474aa"), M = M(), et(), M), Lt = ["id"], Ct = [
|
|
|
232
233
|
1,
|
|
233
234
|
360,
|
|
234
235
|
105.25,
|
|
235
|
-
|
|
236
|
+
ae.value
|
|
236
237
|
)
|
|
237
238
|
};
|
|
238
|
-
})),
|
|
239
|
+
})), Fe = m(() => [...C.value].map((t, s) => {
|
|
239
240
|
const a = s * F.value / C.value.length;
|
|
240
241
|
return {
|
|
241
242
|
sizeRatio: a,
|
|
242
|
-
donut:
|
|
243
|
+
donut: Ve(
|
|
243
244
|
{ series: [{ value: 1 }] },
|
|
244
|
-
|
|
245
|
-
|
|
245
|
+
h.value.width / 2,
|
|
246
|
+
h.value.height / 2,
|
|
246
247
|
F.value - a,
|
|
247
248
|
F.value - a,
|
|
248
249
|
1.99999,
|
|
@@ -253,22 +254,22 @@ const re = (M) => (je("data-v-e05474aa"), M = M(), et(), M), Lt = ["id"], Ct = [
|
|
|
253
254
|
F.value / C.value.length * e.value.style.chart.layout.donut.spacingRatio
|
|
254
255
|
)[0]
|
|
255
256
|
};
|
|
256
|
-
})),
|
|
257
|
-
function
|
|
258
|
-
|
|
257
|
+
})), Se = d(null), H = d(null), q = d(null), oe = d(null);
|
|
258
|
+
function qe({ datapoint: t, _relativeIndex: s, seriesIndex: a }) {
|
|
259
|
+
Se.value = t.arcOfId, H.value = t.id, q.value = a, oe.value = {
|
|
259
260
|
datapoint: t,
|
|
260
261
|
seriesIndex: a,
|
|
261
262
|
series: v.value,
|
|
262
263
|
config: e.value
|
|
263
264
|
};
|
|
264
265
|
const o = e.value.style.chart.tooltip.customFormat;
|
|
265
|
-
if (
|
|
266
|
+
if (Be(o) && vt(() => o({
|
|
266
267
|
seriesIndex: a,
|
|
267
268
|
datapoint: t,
|
|
268
269
|
series: v.value,
|
|
269
270
|
config: e.value
|
|
270
271
|
})))
|
|
271
|
-
|
|
272
|
+
ee.value = o({
|
|
272
273
|
seriesIndex: a,
|
|
273
274
|
datapoint: t,
|
|
274
275
|
series: v.value,
|
|
@@ -276,7 +277,7 @@ const re = (M) => (je("data-v-e05474aa"), M = M(), et(), M), Lt = ["id"], Ct = [
|
|
|
276
277
|
});
|
|
277
278
|
else {
|
|
278
279
|
let l = "";
|
|
279
|
-
if (e.value.style.chart.tooltip.showAllItemsAtIndex &&
|
|
280
|
+
if (e.value.style.chart.tooltip.showAllItemsAtIndex && p.value.length === 0) {
|
|
280
281
|
const i = v.value.map((b) => b.series.find((c) => c.seriesIndex === a));
|
|
281
282
|
i.forEach((b, c) => {
|
|
282
283
|
if (!b) return "";
|
|
@@ -291,7 +292,7 @@ const re = (M) => (je("data-v-e05474aa"), M = M(), et(), M), Lt = ["id"], Ct = [
|
|
|
291
292
|
</span>
|
|
292
293
|
</div>
|
|
293
294
|
<span>
|
|
294
|
-
${e.value.style.chart.tooltip.showValue ? `<b>${
|
|
295
|
+
${e.value.style.chart.tooltip.showValue ? `<b>${G(
|
|
295
296
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
296
297
|
t.value,
|
|
297
298
|
L({
|
|
@@ -313,7 +314,7 @@ const re = (M) => (je("data-v-e05474aa"), M = M(), et(), M), Lt = ["id"], Ct = [
|
|
|
313
314
|
`;
|
|
314
315
|
});
|
|
315
316
|
} else
|
|
316
|
-
l += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${t.arcOf ?? ""} - ${t.name}</div>`, l += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${t.color}"/></svg>`, e.value.style.chart.tooltip.showValue && (l += `<b>${
|
|
317
|
+
l += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${t.arcOf ?? ""} - ${t.name}</div>`, l += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${t.color}"/></svg>`, e.value.style.chart.tooltip.showValue && (l += `<b>${G(
|
|
317
318
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
318
319
|
t.value,
|
|
319
320
|
L({
|
|
@@ -332,22 +333,22 @@ const re = (M) => (je("data-v-e05474aa"), M = M(), et(), M), Lt = ["id"], Ct = [
|
|
|
332
333
|
s: "%",
|
|
333
334
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
334
335
|
})}</b></div>`);
|
|
335
|
-
|
|
336
|
+
ee.value = `<div style="font-size:${e.value.style.chart.tooltip.fontSize}px">${l}</div>`;
|
|
336
337
|
}
|
|
337
|
-
|
|
338
|
+
j.value = !0;
|
|
338
339
|
}
|
|
339
|
-
function
|
|
340
|
+
function se(t) {
|
|
340
341
|
return t.proportion * 100 > e.value.style.chart.layout.labels.dataLabels.hideUnderValue;
|
|
341
342
|
}
|
|
342
|
-
function
|
|
343
|
+
function Te(t, s) {
|
|
343
344
|
if (!e.value.useBlurOnHover)
|
|
344
345
|
return "";
|
|
345
|
-
if (e.value.style.chart.tooltip.showAllItemsAtIndex &&
|
|
346
|
-
return [null, void 0].includes(
|
|
347
|
-
if (!e.value.style.chart.tooltip.showAllItemsAtIndex ||
|
|
348
|
-
return [null, void 0].includes(
|
|
346
|
+
if (e.value.style.chart.tooltip.showAllItemsAtIndex && p.value.length === 0)
|
|
347
|
+
return [null, void 0].includes(q.value) || q.value === s ? "" : `url(#blur_${k.value})`;
|
|
348
|
+
if (!e.value.style.chart.tooltip.showAllItemsAtIndex || p.value.length)
|
|
349
|
+
return [null, void 0].includes(H.value) || H.value === t.id ? "" : `url(#blur_${k.value})`;
|
|
349
350
|
}
|
|
350
|
-
const
|
|
351
|
+
const ue = m(() => C.value.map((t, s) => t.series.map((a, o) => ({
|
|
351
352
|
name: a.name,
|
|
352
353
|
color: a.color,
|
|
353
354
|
value: a.value,
|
|
@@ -356,20 +357,20 @@ const re = (M) => (je("data-v-e05474aa"), M = M(), et(), M), Lt = ["id"], Ct = [
|
|
|
356
357
|
id: a.id,
|
|
357
358
|
seriesIndex: o,
|
|
358
359
|
datasetIndex: s,
|
|
359
|
-
total: t.series.filter((l) => !
|
|
360
|
+
total: t.series.filter((l) => !p.value.includes(l.id)).map((l) => l.value).reduce((l, i) => l + i, 0)
|
|
360
361
|
})).map((a) => ({
|
|
361
362
|
...a,
|
|
362
|
-
opacity:
|
|
363
|
-
segregate: () =>
|
|
364
|
-
isSegregated:
|
|
365
|
-
})))),
|
|
363
|
+
opacity: p.value.includes(a.id) ? 0.5 : 1,
|
|
364
|
+
segregate: () => le(a),
|
|
365
|
+
isSegregated: p.value.includes(a.id)
|
|
366
|
+
})))), Ke = m(() => ({
|
|
366
367
|
cy: "nested-donuts-legend",
|
|
367
368
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
368
369
|
color: e.value.style.chart.legend.color,
|
|
369
370
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
370
371
|
paddingBottom: 12,
|
|
371
372
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
372
|
-
})),
|
|
373
|
+
})), A = m(() => {
|
|
373
374
|
const t = v.value.flatMap((a) => a.series.map((o) => ({
|
|
374
375
|
name: `${a.name} - ${o.name}`,
|
|
375
376
|
color: o.color,
|
|
@@ -377,29 +378,29 @@ const re = (M) => (je("data-v-e05474aa"), M = M(), et(), M), Lt = ["id"], Ct = [
|
|
|
377
378
|
}))), s = v.value.flatMap((a) => a.series.map((o) => o.value));
|
|
378
379
|
return { head: t, body: s };
|
|
379
380
|
});
|
|
380
|
-
function
|
|
381
|
-
|
|
382
|
-
const t =
|
|
381
|
+
function Ne() {
|
|
382
|
+
et(() => {
|
|
383
|
+
const t = A.value.head.map((o, l) => [[
|
|
383
384
|
o.name
|
|
384
|
-
], [
|
|
385
|
-
|
|
385
|
+
], [A.value.body[l]], [isNaN(A.value.body[l] / o.total) ? "-" : A.value.body[l] / o.total * 100]]), s = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(t), a = ft(s);
|
|
386
|
+
ht({ csvContent: a, title: e.value.style.chart.title.text || "vue-ui-nested-donuts" });
|
|
386
387
|
});
|
|
387
388
|
}
|
|
388
|
-
const
|
|
389
|
+
const K = m(() => {
|
|
389
390
|
const t = [
|
|
390
391
|
e.value.table.columnNames.series,
|
|
391
392
|
e.value.table.columnNames.value,
|
|
392
393
|
e.value.table.columnNames.percentage
|
|
393
|
-
], s =
|
|
394
|
-
const b = L({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v:
|
|
394
|
+
], s = A.value.head.map((l, i) => {
|
|
395
|
+
const b = L({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: A.value.body[i], s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue });
|
|
395
396
|
return [
|
|
396
397
|
{
|
|
397
398
|
color: l.color,
|
|
398
399
|
name: l.name
|
|
399
400
|
},
|
|
400
401
|
b,
|
|
401
|
-
isNaN(
|
|
402
|
-
v:
|
|
402
|
+
isNaN(A.value.body[i] / l.total) ? "-" : L({
|
|
403
|
+
v: A.value.body[i] / l.total * 100,
|
|
403
404
|
s: "%",
|
|
404
405
|
r: e.value.table.td.roundingPercentage
|
|
405
406
|
})
|
|
@@ -428,40 +429,53 @@ const re = (M) => (je("data-v-e05474aa"), M = M(), et(), M), Lt = ["id"], Ct = [
|
|
|
428
429
|
config: a
|
|
429
430
|
};
|
|
430
431
|
});
|
|
431
|
-
function
|
|
432
|
+
function Je() {
|
|
432
433
|
return C.value;
|
|
433
434
|
}
|
|
434
|
-
function
|
|
435
|
+
function Ie() {
|
|
435
436
|
w.value.showTable = !w.value.showTable;
|
|
436
437
|
}
|
|
437
|
-
function
|
|
438
|
+
function Ae() {
|
|
438
439
|
w.value.dataLabels.show = !w.value.dataLabels.show;
|
|
439
440
|
}
|
|
440
|
-
function
|
|
441
|
+
function Oe() {
|
|
441
442
|
w.value.showTooltip = !w.value.showTooltip;
|
|
442
443
|
}
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
444
|
+
const J = d(!1);
|
|
445
|
+
function ne() {
|
|
446
|
+
J.value = !J.value;
|
|
447
|
+
}
|
|
448
|
+
return Re({
|
|
449
|
+
getData: Je,
|
|
450
|
+
generatePdf: we,
|
|
451
|
+
generateCsv: Ne,
|
|
447
452
|
generateImage: _e,
|
|
448
|
-
toggleTable:
|
|
449
|
-
toggleLabels:
|
|
450
|
-
toggleTooltip:
|
|
453
|
+
toggleTable: Ie,
|
|
454
|
+
toggleLabels: Ae,
|
|
455
|
+
toggleTooltip: Oe,
|
|
456
|
+
toggleAnnotator: ne
|
|
451
457
|
}), (t, s) => (u(), n("div", {
|
|
452
458
|
ref_key: "nestedDonutsChart",
|
|
453
|
-
ref:
|
|
454
|
-
class:
|
|
455
|
-
style:
|
|
456
|
-
id: `nested_donuts_${
|
|
459
|
+
ref: z,
|
|
460
|
+
class: P(`vue-ui-nested-donuts ${U.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
461
|
+
style: re(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;${!e.value.style.chart.title.text && e.value.userOptions.show ? "padding-top:36px" : ""};background:${e.value.style.chart.backgroundColor}`),
|
|
462
|
+
id: `nested_donuts_${k.value}`
|
|
457
463
|
}, [
|
|
458
|
-
e.value.
|
|
464
|
+
e.value.userOptions.buttons.annotator ? (u(), D(Ct, {
|
|
459
465
|
key: 0,
|
|
466
|
+
parent: z.value,
|
|
467
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
468
|
+
color: e.value.style.chart.color,
|
|
469
|
+
active: J.value,
|
|
470
|
+
onClose: ne
|
|
471
|
+
}, null, 8, ["parent", "backgroundColor", "color", "active"])) : f("", !0),
|
|
472
|
+
e.value.style.chart.title.text ? (u(), n("div", {
|
|
473
|
+
key: 1,
|
|
460
474
|
ref_key: "chartTitle",
|
|
461
|
-
ref:
|
|
475
|
+
ref: fe
|
|
462
476
|
}, [
|
|
463
|
-
(u(),
|
|
464
|
-
key: `title_${
|
|
477
|
+
(u(), D(bt, {
|
|
478
|
+
key: `title_${he.value}`,
|
|
465
479
|
config: {
|
|
466
480
|
title: {
|
|
467
481
|
cy: "donut-div-title",
|
|
@@ -473,15 +487,15 @@ const re = (M) => (je("data-v-e05474aa"), M = M(), et(), M), Lt = ["id"], Ct = [
|
|
|
473
487
|
}
|
|
474
488
|
}
|
|
475
489
|
}, null, 8, ["config"]))
|
|
476
|
-
], 512)) :
|
|
477
|
-
e.value.userOptions.show &&
|
|
490
|
+
], 512)) : f("", !0),
|
|
491
|
+
e.value.userOptions.show && Y.value ? (u(), D(mt, {
|
|
478
492
|
ref: "details",
|
|
479
|
-
key: `user_option_${
|
|
493
|
+
key: `user_option_${ve.value}`,
|
|
480
494
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
481
495
|
color: e.value.style.chart.color,
|
|
482
|
-
isPrinting: r(
|
|
483
|
-
isImaging: r(
|
|
484
|
-
uid:
|
|
496
|
+
isPrinting: r(me),
|
|
497
|
+
isImaging: r(ke),
|
|
498
|
+
uid: k.value,
|
|
485
499
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
486
500
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
487
501
|
hasXls: e.value.userOptions.buttons.csv,
|
|
@@ -492,183 +506,193 @@ const re = (M) => (je("data-v-e05474aa"), M = M(), et(), M), Lt = ["id"], Ct = [
|
|
|
492
506
|
isFullscreen: U.value,
|
|
493
507
|
isTooltip: w.value.showTooltip,
|
|
494
508
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
495
|
-
chartElement:
|
|
509
|
+
chartElement: z.value,
|
|
496
510
|
position: e.value.userOptions.position,
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
511
|
+
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
512
|
+
isAnnotation: J.value,
|
|
513
|
+
onToggleFullscreen: Ye,
|
|
514
|
+
onGeneratePdf: r(we),
|
|
515
|
+
onGenerateCsv: Ne,
|
|
500
516
|
onGenerateImage: r(_e),
|
|
501
|
-
onToggleTable:
|
|
502
|
-
onToggleLabels:
|
|
503
|
-
onToggleTooltip:
|
|
504
|
-
|
|
517
|
+
onToggleTable: Ie,
|
|
518
|
+
onToggleLabels: Ae,
|
|
519
|
+
onToggleTooltip: Oe,
|
|
520
|
+
onToggleAnnotator: ne
|
|
521
|
+
}, je({ _: 2 }, [
|
|
505
522
|
t.$slots.optionTooltip ? {
|
|
506
523
|
name: "optionTooltip",
|
|
507
|
-
fn:
|
|
524
|
+
fn: g(() => [
|
|
508
525
|
$(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
509
526
|
]),
|
|
510
527
|
key: "0"
|
|
511
528
|
} : void 0,
|
|
512
529
|
t.$slots.optionPdf ? {
|
|
513
530
|
name: "optionPdf",
|
|
514
|
-
fn:
|
|
531
|
+
fn: g(() => [
|
|
515
532
|
$(t.$slots, "optionPdf", {}, void 0, !0)
|
|
516
533
|
]),
|
|
517
534
|
key: "1"
|
|
518
535
|
} : void 0,
|
|
519
536
|
t.$slots.optionCsv ? {
|
|
520
537
|
name: "optionCsv",
|
|
521
|
-
fn:
|
|
538
|
+
fn: g(() => [
|
|
522
539
|
$(t.$slots, "optionCsv", {}, void 0, !0)
|
|
523
540
|
]),
|
|
524
541
|
key: "2"
|
|
525
542
|
} : void 0,
|
|
526
543
|
t.$slots.optionImg ? {
|
|
527
544
|
name: "optionImg",
|
|
528
|
-
fn:
|
|
545
|
+
fn: g(() => [
|
|
529
546
|
$(t.$slots, "optionImg", {}, void 0, !0)
|
|
530
547
|
]),
|
|
531
548
|
key: "3"
|
|
532
549
|
} : void 0,
|
|
533
550
|
t.$slots.optionTable ? {
|
|
534
551
|
name: "optionTable",
|
|
535
|
-
fn:
|
|
552
|
+
fn: g(() => [
|
|
536
553
|
$(t.$slots, "optionTable", {}, void 0, !0)
|
|
537
554
|
]),
|
|
538
555
|
key: "4"
|
|
539
556
|
} : void 0,
|
|
540
557
|
t.$slots.optionLabels ? {
|
|
541
558
|
name: "optionLabels",
|
|
542
|
-
fn:
|
|
559
|
+
fn: g(() => [
|
|
543
560
|
$(t.$slots, "optionLabels", {}, void 0, !0)
|
|
544
561
|
]),
|
|
545
562
|
key: "5"
|
|
546
563
|
} : void 0,
|
|
547
564
|
t.$slots.optionFullscreen ? {
|
|
548
565
|
name: "optionFullscreen",
|
|
549
|
-
fn:
|
|
550
|
-
$(t.$slots, "optionFullscreen",
|
|
566
|
+
fn: g(({ toggleFullscreen: a, isFullscreen: o }) => [
|
|
567
|
+
$(t.$slots, "optionFullscreen", R(E({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
|
|
551
568
|
]),
|
|
552
569
|
key: "6"
|
|
570
|
+
} : void 0,
|
|
571
|
+
t.$slots.optionAnnotator ? {
|
|
572
|
+
name: "optionAnnotator",
|
|
573
|
+
fn: g(({ toggleAnnotator: a, isAnnotator: o }) => [
|
|
574
|
+
$(t.$slots, "optionAnnotator", R(E({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
|
|
575
|
+
]),
|
|
576
|
+
key: "7"
|
|
553
577
|
} : void 0
|
|
554
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "onGeneratePdf", "onGenerateImage"])) :
|
|
555
|
-
|
|
556
|
-
key:
|
|
557
|
-
xmlns: r(
|
|
558
|
-
class:
|
|
559
|
-
viewBox: `0 0 ${
|
|
560
|
-
style:
|
|
578
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage"])) : f("", !0),
|
|
579
|
+
Y.value ? (u(), n("svg", {
|
|
580
|
+
key: 3,
|
|
581
|
+
xmlns: r(dt),
|
|
582
|
+
class: P({ "vue-data-ui-fullscreen--on": U.value, "vue-data-ui-fulscreen--off": !U.value }),
|
|
583
|
+
viewBox: `0 0 ${h.value.width <= 0 ? 1e-3 : h.value.width} ${h.value.height < 0 ? 1e-3 : h.value.height}`,
|
|
584
|
+
style: re(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
|
|
561
585
|
}, [
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
(u(!0), n(x, null, S(
|
|
565
|
-
id: `radial_${
|
|
586
|
+
De(Lt),
|
|
587
|
+
y("defs", null, [
|
|
588
|
+
(u(!0), n(x, null, S(Fe.value, (a, o) => (u(), n("radialGradient", {
|
|
589
|
+
id: `radial_${k.value}_${o}`
|
|
566
590
|
}, [
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
offset: `${(1 -
|
|
570
|
-
"stop-color": r(
|
|
591
|
+
It,
|
|
592
|
+
y("stop", {
|
|
593
|
+
offset: `${(1 - ae.value / Ce.value[o]) * 100}%`,
|
|
594
|
+
"stop-color": r(Me)("#FFFFFF", 0),
|
|
571
595
|
"stop-opacity": "0"
|
|
572
|
-
}, null, 8,
|
|
573
|
-
|
|
574
|
-
offset: `${(1 -
|
|
596
|
+
}, null, 8, At),
|
|
597
|
+
y("stop", {
|
|
598
|
+
offset: `${(1 - ae.value / Ce.value[o] / 2) * 100}%`,
|
|
575
599
|
"stop-color": "#FFFFFF",
|
|
576
600
|
"stop-opacity": e.value.style.chart.gradientIntensity / 100
|
|
577
|
-
}, null, 8,
|
|
578
|
-
|
|
579
|
-
], 8,
|
|
601
|
+
}, null, 8, Ot),
|
|
602
|
+
Pt
|
|
603
|
+
], 8, Nt))), 256))
|
|
580
604
|
]),
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
id: `blur_${
|
|
605
|
+
y("defs", null, [
|
|
606
|
+
y("filter", {
|
|
607
|
+
id: `blur_${k.value}`,
|
|
584
608
|
x: "-50%",
|
|
585
609
|
y: "-50%",
|
|
586
610
|
width: "200%",
|
|
587
611
|
height: "200%"
|
|
588
612
|
}, [
|
|
589
|
-
|
|
613
|
+
y("feGaussianBlur", {
|
|
590
614
|
in: "SourceGraphic",
|
|
591
615
|
stdDeviation: 2,
|
|
592
|
-
id: `blur_std_${
|
|
593
|
-
}, null, 8,
|
|
594
|
-
|
|
616
|
+
id: `blur_std_${k.value}`
|
|
617
|
+
}, null, 8, zt),
|
|
618
|
+
Vt
|
|
595
619
|
], 8, Dt),
|
|
596
|
-
|
|
597
|
-
id: `shadow_${
|
|
620
|
+
y("filter", {
|
|
621
|
+
id: `shadow_${k.value}`,
|
|
598
622
|
"color-interpolation-filters": "sRGB"
|
|
599
623
|
}, [
|
|
600
|
-
|
|
624
|
+
y("feDropShadow", {
|
|
601
625
|
dx: "0",
|
|
602
626
|
dy: "0",
|
|
603
627
|
stdDeviation: "10",
|
|
604
628
|
"flood-opacity": "0.5",
|
|
605
629
|
"flood-color": e.value.style.chart.layout.donut.shadowColor
|
|
606
|
-
}, null, 8,
|
|
607
|
-
], 8,
|
|
630
|
+
}, null, 8, Bt)
|
|
631
|
+
], 8, Mt)
|
|
608
632
|
]),
|
|
609
|
-
(u(!0), n(x, null, S(
|
|
633
|
+
(u(!0), n(x, null, S(W.value, (a, o) => (u(), n("g", null, [
|
|
610
634
|
(u(!0), n(x, null, S(a.donut, (l, i) => (u(), n("g", null, [
|
|
611
|
-
|
|
635
|
+
y("path", {
|
|
612
636
|
class: "vue-ui-donut-arc-path",
|
|
613
637
|
d: l.arcSlice,
|
|
614
|
-
fill: r(
|
|
638
|
+
fill: r(Me)(l.color, 80),
|
|
615
639
|
stroke: e.value.style.chart.backgroundColor,
|
|
616
640
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
617
|
-
filter:
|
|
618
|
-
}, null, 8,
|
|
641
|
+
filter: Te(l, i)
|
|
642
|
+
}, null, 8, Ut)
|
|
619
643
|
]))), 256))
|
|
620
644
|
]))), 256)),
|
|
621
|
-
e.value.style.chart.useGradient ? (u(), n("g",
|
|
622
|
-
(u(!0), n(x, null, S(
|
|
623
|
-
|
|
645
|
+
e.value.style.chart.useGradient ? (u(), n("g", Rt, [
|
|
646
|
+
(u(!0), n(x, null, S(Fe.value, (a, o) => (u(), n("g", null, [
|
|
647
|
+
y("path", {
|
|
624
648
|
d: a.donut.arcSlice,
|
|
625
|
-
fill: `url(#radial_${
|
|
649
|
+
fill: `url(#radial_${k.value}_${o})`,
|
|
626
650
|
stroke: "transparent",
|
|
627
651
|
"stroke-width": "0"
|
|
628
|
-
}, null, 8,
|
|
652
|
+
}, null, 8, Et)
|
|
629
653
|
]))), 256))
|
|
630
|
-
])) :
|
|
631
|
-
e.value.style.chart.layout.labels.dataLabels.showDonutName ? (u(), n("g",
|
|
632
|
-
(u(!0), n(x, null, S(
|
|
654
|
+
])) : f("", !0),
|
|
655
|
+
e.value.style.chart.layout.labels.dataLabels.showDonutName ? (u(), n("g", Gt, [
|
|
656
|
+
(u(!0), n(x, null, S(W.value, (a, o) => (u(), n("g", null, [
|
|
633
657
|
(u(!0), n(x, null, S(a.donut, (l, i) => (u(), n("g", null, [
|
|
634
|
-
i === 0 &&
|
|
658
|
+
i === 0 && h.value.width && h.value.height ? (u(), n("text", {
|
|
635
659
|
key: 0,
|
|
636
|
-
class:
|
|
637
|
-
x:
|
|
660
|
+
class: P({ animated: e.value.useCssAnimation }),
|
|
661
|
+
x: h.value.width / 2,
|
|
638
662
|
y: l.startY - e.value.style.chart.layout.labels.dataLabels.fontSize + e.value.style.chart.layout.labels.dataLabels.donutNameOffsetY,
|
|
639
663
|
"text-anchor": "middle",
|
|
640
664
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
641
665
|
"font-weight": e.value.style.chart.layout.labels.dataLabels.boldDonutName ? "bold" : "normal",
|
|
642
666
|
fill: e.value.style.chart.layout.labels.dataLabels.color
|
|
643
|
-
},
|
|
667
|
+
}, N(e.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? r(ct)({ source: a.name, length: e.value.style.chart.layout.labels.dataLabels.donutNameMaxAbbreviationSize }) : a.name), 11, Yt)) : f("", !0)
|
|
644
668
|
]))), 256))
|
|
645
669
|
]))), 256))
|
|
646
|
-
])) :
|
|
647
|
-
e.value.style.chart.layout.labels.dataLabels.show ? (u(), n("g",
|
|
648
|
-
(u(!0), n(x, null, S(
|
|
670
|
+
])) : f("", !0),
|
|
671
|
+
e.value.style.chart.layout.labels.dataLabels.show ? (u(), n("g", Xt, [
|
|
672
|
+
(u(!0), n(x, null, S(W.value, (a, o) => (u(), n("g", null, [
|
|
649
673
|
(u(!0), n(x, null, S(a.donut, (l, i) => (u(), n("g", {
|
|
650
|
-
filter:
|
|
674
|
+
filter: Te(l, i)
|
|
651
675
|
}, [
|
|
652
|
-
|
|
676
|
+
se(l) && w.value.dataLabels.show && e.value.style.chart.layout.labels.dataLabels.showPercentage ? (u(), n("text", {
|
|
653
677
|
key: 0,
|
|
654
|
-
class:
|
|
655
|
-
"text-anchor": r(
|
|
656
|
-
x: r(
|
|
657
|
-
y: r(
|
|
678
|
+
class: P({ animated: e.value.useCssAnimation }),
|
|
679
|
+
"text-anchor": r(M)(l, !0).anchor,
|
|
680
|
+
x: r(M)(l, !1, e.value.style.chart.layout.labels.dataLabels.offsetX).x || 0,
|
|
681
|
+
y: r(ie)(l, e.value.style.chart.layout.labels.dataLabels.offsetY, e.value.style.chart.layout.labels.dataLabels.offsetY),
|
|
658
682
|
fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? l.color : e.value.style.chart.layout.labels.dataLabels.color,
|
|
659
683
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
660
684
|
"font-weight": e.value.style.chart.layout.labels.dataLabels.boldPercentage ? "bold" : "normal"
|
|
661
|
-
},
|
|
662
|
-
|
|
685
|
+
}, N(r(L)({ v: l.proportion * 100, s: "%", r: e.value.style.chart.layout.labels.dataLabels.roundingPercentage })), 11, Ht)) : f("", !0),
|
|
686
|
+
se(l) && w.value.dataLabels.show && e.value.style.chart.layout.labels.dataLabels.showPercentage && e.value.style.chart.layout.labels.dataLabels.showValue ? (u(), n("text", {
|
|
663
687
|
key: 1,
|
|
664
|
-
class:
|
|
665
|
-
"text-anchor": r(
|
|
666
|
-
x: r(
|
|
667
|
-
y: r(
|
|
688
|
+
class: P({ animated: e.value.useCssAnimation }),
|
|
689
|
+
"text-anchor": r(M)(l, !0).anchor,
|
|
690
|
+
x: r(M)(l, !1, e.value.style.chart.layout.labels.dataLabels.offsetX).x || 0,
|
|
691
|
+
y: r(ie)(l, e.value.style.chart.layout.labels.dataLabels.offsetY, e.value.style.chart.layout.labels.dataLabels.offsetY) + e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
668
692
|
fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? l.color : e.value.style.chart.layout.labels.dataLabels.color,
|
|
669
693
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
670
694
|
"font-weight": e.value.style.chart.layout.labels.dataLabels.boldValue ? "bold" : "normal"
|
|
671
|
-
}, " (" +
|
|
695
|
+
}, " (" + N(r(G)(
|
|
672
696
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
673
697
|
l.value,
|
|
674
698
|
r(L)({
|
|
@@ -678,17 +702,17 @@ const re = (M) => (je("data-v-e05474aa"), M = M(), et(), M), Lt = ["id"], Ct = [
|
|
|
678
702
|
r: e.value.style.chart.layout.labels.dataLabels.roundingValue
|
|
679
703
|
}),
|
|
680
704
|
{ datapoint: l, seriesIndex: o, datapointIndex: i }
|
|
681
|
-
)) + ") ", 11,
|
|
682
|
-
|
|
705
|
+
)) + ") ", 11, qt)) : f("", !0),
|
|
706
|
+
se(l) && w.value.dataLabels.show && !e.value.style.chart.layout.labels.dataLabels.showPercentage && e.value.style.chart.layout.labels.dataLabels.showValue ? (u(), n("text", {
|
|
683
707
|
key: 2,
|
|
684
|
-
class:
|
|
685
|
-
"text-anchor": r(
|
|
686
|
-
x: r(
|
|
687
|
-
y: r(
|
|
708
|
+
class: P({ animated: e.value.useCssAnimation }),
|
|
709
|
+
"text-anchor": r(M)(l, !0).anchor,
|
|
710
|
+
x: r(M)(l, !1, e.value.style.chart.layout.labels.dataLabels.offsetX).x || 0,
|
|
711
|
+
y: r(ie)(l, e.value.style.chart.layout.labels.dataLabels.offsetY, e.value.style.chart.layout.labels.dataLabels.offsetY),
|
|
688
712
|
fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? l.color : e.value.style.chart.layout.labels.dataLabels.color,
|
|
689
713
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
690
714
|
"font-weight": e.value.style.chart.layout.labels.dataLabels.boldValue ? "bold" : "normal"
|
|
691
|
-
},
|
|
715
|
+
}, N(r(G)(
|
|
692
716
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
693
717
|
l.value,
|
|
694
718
|
r(L)({
|
|
@@ -698,35 +722,35 @@ const re = (M) => (je("data-v-e05474aa"), M = M(), et(), M), Lt = ["id"], Ct = [
|
|
|
698
722
|
r: e.value.style.chart.layout.labels.dataLabels.roundingValue
|
|
699
723
|
}),
|
|
700
724
|
{ datapoint: l, seriesIndex: o, datapointIndex: i }
|
|
701
|
-
)), 11,
|
|
702
|
-
], 8,
|
|
725
|
+
)), 11, Kt)) : f("", !0)
|
|
726
|
+
], 8, Wt))), 256))
|
|
703
727
|
]))), 256))
|
|
704
|
-
])) :
|
|
705
|
-
(u(!0), n(x, null, S(
|
|
728
|
+
])) : f("", !0),
|
|
729
|
+
(u(!0), n(x, null, S(W.value, (a, o) => (u(), n("g", null, [
|
|
706
730
|
(u(!0), n(x, null, S(a.donut, (l, i) => (u(), n("g", null, [
|
|
707
|
-
|
|
731
|
+
y("path", {
|
|
708
732
|
"data-cy-donut-trap": "",
|
|
709
733
|
d: l.arcSlice,
|
|
710
|
-
fill:
|
|
711
|
-
onMouseenter: (b) =>
|
|
734
|
+
fill: Ge.value === o ? "rgba(0,0,0,0.1)" : "transparent",
|
|
735
|
+
onMouseenter: (b) => qe({
|
|
712
736
|
datapoint: l,
|
|
713
737
|
relativeIndex: o,
|
|
714
738
|
seriesIndex: l.seriesIndex
|
|
715
739
|
}),
|
|
716
|
-
onClick: (b) =>
|
|
740
|
+
onClick: (b) => We({ datapoint: l, index: i }),
|
|
717
741
|
onMouseleave: s[0] || (s[0] = (b) => {
|
|
718
|
-
|
|
742
|
+
j.value = !1, Se.value = null, H.value = null, q.value = null;
|
|
719
743
|
})
|
|
720
|
-
}, null, 40,
|
|
744
|
+
}, null, 40, Jt)
|
|
721
745
|
]))), 256))
|
|
722
746
|
]))), 256)),
|
|
723
|
-
$(t.$slots, "svg", { svg:
|
|
724
|
-
], 14,
|
|
725
|
-
t.$slots.watermark ? (u(), n("div",
|
|
726
|
-
$(t.$slots, "watermark",
|
|
727
|
-
])) :
|
|
728
|
-
|
|
729
|
-
key:
|
|
747
|
+
$(t.$slots, "svg", { svg: h.value }, void 0, !0)
|
|
748
|
+
], 14, Tt)) : f("", !0),
|
|
749
|
+
t.$slots.watermark ? (u(), n("div", Qt, [
|
|
750
|
+
$(t.$slots, "watermark", R(E({ isPrinting: r(me) || r(ke) })), void 0, !0)
|
|
751
|
+
])) : f("", !0),
|
|
752
|
+
Y.value ? f("", !0) : (u(), D($t, {
|
|
753
|
+
key: 5,
|
|
730
754
|
config: {
|
|
731
755
|
type: "donut",
|
|
732
756
|
style: {
|
|
@@ -737,8 +761,8 @@ const re = (M) => (je("data-v-e05474aa"), M = M(), et(), M), Lt = ["id"], Ct = [
|
|
|
737
761
|
}
|
|
738
762
|
}
|
|
739
763
|
}, null, 8, ["config"])),
|
|
740
|
-
|
|
741
|
-
show: w.value.showTooltip &&
|
|
764
|
+
De(wt, {
|
|
765
|
+
show: w.value.showTooltip && j.value,
|
|
742
766
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
743
767
|
color: e.value.style.chart.tooltip.color,
|
|
744
768
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -748,39 +772,39 @@ const re = (M) => (je("data-v-e05474aa"), M = M(), et(), M), Lt = ["id"], Ct = [
|
|
|
748
772
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
749
773
|
position: e.value.style.chart.tooltip.position,
|
|
750
774
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
751
|
-
parent:
|
|
752
|
-
content:
|
|
753
|
-
isCustom: r(
|
|
775
|
+
parent: z.value,
|
|
776
|
+
content: ee.value,
|
|
777
|
+
isCustom: r(Be)(e.value.style.chart.tooltip.customFormat)
|
|
754
778
|
}, {
|
|
755
|
-
"tooltip-before":
|
|
756
|
-
$(t.$slots, "tooltip-before",
|
|
779
|
+
"tooltip-before": g(() => [
|
|
780
|
+
$(t.$slots, "tooltip-before", R(E({ ...oe.value })), void 0, !0)
|
|
757
781
|
]),
|
|
758
|
-
"tooltip-after":
|
|
759
|
-
$(t.$slots, "tooltip-after",
|
|
782
|
+
"tooltip-after": g(() => [
|
|
783
|
+
$(t.$slots, "tooltip-after", R(E({ ...oe.value })), void 0, !0)
|
|
760
784
|
]),
|
|
761
785
|
_: 3
|
|
762
786
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
|
|
763
787
|
e.value.style.chart.legend.show ? (u(), n("div", {
|
|
764
|
-
key:
|
|
788
|
+
key: 6,
|
|
765
789
|
ref_key: "chartLegend",
|
|
766
|
-
ref:
|
|
767
|
-
class:
|
|
790
|
+
ref: te,
|
|
791
|
+
class: P({ "vue-ui-nested-donuts-legend": ue.value.length > 1 })
|
|
768
792
|
}, [
|
|
769
|
-
(u(!0), n(x, null, S(
|
|
770
|
-
key: `legend_${o}_${
|
|
793
|
+
(u(!0), n(x, null, S(ue.value, (a, o) => (u(), D(_t, {
|
|
794
|
+
key: `legend_${o}_${ye.value}`,
|
|
771
795
|
legendSet: a,
|
|
772
|
-
config:
|
|
773
|
-
onClickMarker: s[1] || (s[1] = ({ legend: l }) =>
|
|
796
|
+
config: Ke.value,
|
|
797
|
+
onClickMarker: s[1] || (s[1] = ({ legend: l }) => le(l))
|
|
774
798
|
}, {
|
|
775
|
-
legendTitle:
|
|
776
|
-
l[0] && l[0].arcOf ? (u(), n("div",
|
|
799
|
+
legendTitle: g(({ titleSet: l }) => [
|
|
800
|
+
l[0] && l[0].arcOf ? (u(), n("div", Zt, N(l[0].arcOf), 1)) : f("", !0)
|
|
777
801
|
]),
|
|
778
|
-
item:
|
|
779
|
-
|
|
780
|
-
onClick: (b) =>
|
|
781
|
-
style:
|
|
802
|
+
item: g(({ legend: l, index: i }) => [
|
|
803
|
+
y("div", {
|
|
804
|
+
onClick: (b) => le(l),
|
|
805
|
+
style: re(`opacity:${p.value.includes(l.id) ? 0.5 : 1}`)
|
|
782
806
|
}, [
|
|
783
|
-
|
|
807
|
+
Q(N(l.name) + ": " + N(r(G)(
|
|
784
808
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
785
809
|
l.value,
|
|
786
810
|
r(L)({
|
|
@@ -791,25 +815,25 @@ const re = (M) => (je("data-v-e05474aa"), M = M(), et(), M), Lt = ["id"], Ct = [
|
|
|
791
815
|
}),
|
|
792
816
|
{ datapoint: l, seriesIndex: i }
|
|
793
817
|
)) + " ", 1),
|
|
794
|
-
|
|
795
|
-
|
|
818
|
+
p.value.includes(l.id) ? (u(), n(x, { key: 1 }, [
|
|
819
|
+
Q(" ( - % ) ")
|
|
796
820
|
], 64)) : (u(), n(x, { key: 0 }, [
|
|
797
|
-
|
|
821
|
+
Q(" (" + N(isNaN(l.value / l.total) ? "-" : r(L)({ v: l.value / l.total * 100, s: "%", r: e.value.style.chart.legend.roundingPercentage })) + ") ", 1)
|
|
798
822
|
], 64))
|
|
799
|
-
], 12,
|
|
823
|
+
], 12, jt)
|
|
800
824
|
]),
|
|
801
825
|
_: 2
|
|
802
826
|
}, 1032, ["legendSet", "config"]))), 128))
|
|
803
|
-
], 2)) :
|
|
804
|
-
e.value.style.chart.legend.show ?
|
|
805
|
-
key:
|
|
827
|
+
], 2)) : f("", !0),
|
|
828
|
+
e.value.style.chart.legend.show ? f("", !0) : (u(), n("div", {
|
|
829
|
+
key: 7,
|
|
806
830
|
ref_key: "chartLegend",
|
|
807
|
-
ref:
|
|
831
|
+
ref: te
|
|
808
832
|
}, [
|
|
809
|
-
$(t.$slots, "legend", { legend:
|
|
833
|
+
$(t.$slots, "legend", { legend: ue.value }, void 0, !0)
|
|
810
834
|
], 512)),
|
|
811
|
-
|
|
812
|
-
key:
|
|
835
|
+
Y.value ? (u(), D(xt, {
|
|
836
|
+
key: 8,
|
|
813
837
|
hideDetails: "",
|
|
814
838
|
config: {
|
|
815
839
|
open: w.value.showTable,
|
|
@@ -824,33 +848,33 @@ const re = (M) => (je("data-v-e05474aa"), M = M(), et(), M), Lt = ["id"], Ct = [
|
|
|
824
848
|
}
|
|
825
849
|
}
|
|
826
850
|
}, {
|
|
827
|
-
content:
|
|
828
|
-
(u(),
|
|
829
|
-
key: `table_${
|
|
830
|
-
colNames:
|
|
831
|
-
head:
|
|
832
|
-
body:
|
|
833
|
-
config:
|
|
851
|
+
content: g(() => [
|
|
852
|
+
(u(), D(kt, {
|
|
853
|
+
key: `table_${pe.value}`,
|
|
854
|
+
colNames: K.value.colNames,
|
|
855
|
+
head: K.value.head,
|
|
856
|
+
body: K.value.body,
|
|
857
|
+
config: K.value.config,
|
|
834
858
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
835
859
|
onClose: s[2] || (s[2] = (a) => w.value.showTable = !1)
|
|
836
860
|
}, {
|
|
837
|
-
th:
|
|
838
|
-
|
|
861
|
+
th: g(({ th: a }) => [
|
|
862
|
+
y("div", {
|
|
839
863
|
innerHTML: a,
|
|
840
864
|
style: { display: "flex", "align-items": "center" }
|
|
841
|
-
}, null, 8,
|
|
865
|
+
}, null, 8, el)
|
|
842
866
|
]),
|
|
843
|
-
td:
|
|
844
|
-
|
|
867
|
+
td: g(({ td: a }) => [
|
|
868
|
+
Q(N(a.name || a), 1)
|
|
845
869
|
]),
|
|
846
870
|
_: 1
|
|
847
871
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
848
872
|
]),
|
|
849
873
|
_: 1
|
|
850
|
-
}, 8, ["config"])) :
|
|
851
|
-
], 14,
|
|
874
|
+
}, 8, ["config"])) : f("", !0)
|
|
875
|
+
], 14, St));
|
|
852
876
|
}
|
|
853
|
-
},
|
|
877
|
+
}, yl = /* @__PURE__ */ Ft(tl, [["__scopeId", "data-v-ab64cd29"]]);
|
|
854
878
|
export {
|
|
855
|
-
|
|
879
|
+
yl as default
|
|
856
880
|
};
|