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