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,24 +1,25 @@
|
|
|
1
|
-
import { computed as p, ref as i, watch as
|
|
2
|
-
import { u as
|
|
3
|
-
import { t as
|
|
4
|
-
import { _ as
|
|
5
|
-
import { u as
|
|
6
|
-
import { _ as
|
|
7
|
-
import
|
|
8
|
-
import { L as
|
|
9
|
-
import { D as
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import { u as xe } from "./useNestedProp-
|
|
13
|
-
import { _ as
|
|
14
|
-
import {
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
import { computed as p, ref as i, watch as Ee, onMounted as Be, onBeforeUnmount as De, openBlock as r, createElementBlock as s, normalizeClass as z, normalizeStyle as Q, createBlock as w, createCommentVNode as g, unref as h, createSlots as Ge, withCtx as y, renderSlot as m, normalizeProps as R, guardReactiveProps as M, createVNode as Z, createElementVNode as $, Fragment as P, renderList as T, toDisplayString as V, createTextVNode as Ce, nextTick as We } from "vue";
|
|
2
|
+
import { u as Xe, c as Ye, t as je, a as qe, p as x, o as He, e as S, b as Je, g as _e, d as we, O as $e, v as Ke, i as Pe, f as U, X as Qe, s as ee, w as Ze, P as Te, x as et, y as tt, q as at, r as ot } from "./index-DnVHQ2xI.js";
|
|
3
|
+
import { t as lt, u as rt } from "./useResponsive-NZB-WLRF.js";
|
|
4
|
+
import { _ as nt } from "./Title-5VmBwT4i.js";
|
|
5
|
+
import { u as st, U as ut } from "./usePrinter-BEeNAqS5.js";
|
|
6
|
+
import { _ as it } from "./Tooltip-Cj4EF7v1.js";
|
|
7
|
+
import ct from "./vue-ui-sparkbar-0ixbKZzf.js";
|
|
8
|
+
import { L as dt } from "./Legend-CYF2gpXG.js";
|
|
9
|
+
import { D as vt } from "./DataTable-DTk7C4Pr.js";
|
|
10
|
+
import pt from "./vue-ui-skeleton-aZmkNzAe.js";
|
|
11
|
+
import ht from "./vue-ui-accordion-DspS4q3f.js";
|
|
12
|
+
import { u as xe } from "./useNestedProp-Cox0K0Y5.js";
|
|
13
|
+
import { _ as gt } from "./PackageVersion-CvCRsT5_.js";
|
|
14
|
+
import { P as ft } from "./PenAndPaper-Jb0pLt3G.js";
|
|
15
|
+
import { _ as yt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
|
+
const mt = ["id"], bt = ["xmlns", "viewBox"], kt = ["id"], Ct = ["stop-color"], _t = ["stop-color"], wt = { key: 0 }, $t = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Pt = { key: 0 }, Tt = ["d", "stroke", "stroke-width"], xt = ["d", "stroke", "stroke-width"], At = { key: 1 }, Ot = ["x", "y", "text-anchor", "font-size", "fill", "onMouseenter"], Nt = ["points", "stroke", "stroke-width"], St = ["points", "stroke", "stroke-width", "fill"], Ft = { key: 2 }, It = ["cx", "cy", "fill", "r", "stroke"], Lt = {
|
|
17
|
+
key: 4,
|
|
17
18
|
class: "vue-data-ui-watermark"
|
|
18
|
-
},
|
|
19
|
+
}, zt = ["onClick"], Rt = {
|
|
19
20
|
key: 0,
|
|
20
21
|
style: { "max-width": "200px", margin: "0 auto" }
|
|
21
|
-
},
|
|
22
|
+
}, Mt = {
|
|
22
23
|
__name: "vue-ui-radar",
|
|
23
24
|
props: {
|
|
24
25
|
config: {
|
|
@@ -35,59 +36,59 @@ const gt = ["id"], ft = ["xmlns", "viewBox"], yt = ["id"], mt = ["stop-color"],
|
|
|
35
36
|
}
|
|
36
37
|
},
|
|
37
38
|
emits: ["selectLegend"],
|
|
38
|
-
setup(
|
|
39
|
-
const v =
|
|
40
|
-
get: () =>
|
|
39
|
+
setup(Ae, { expose: Oe, emit: Ne }) {
|
|
40
|
+
const v = Ae, { vue_ui_radar: Se } = Xe(), F = p(() => !!v.dataset && Object.keys(v.dataset).length), _ = i(Ye()), Fe = i(null), W = i(!1), X = i(""), te = i(0), A = i(null), ae = i(null), oe = i(null), le = i(0), re = i(0), ne = i(0), e = p({
|
|
41
|
+
get: () => se(),
|
|
41
42
|
set: (t) => t
|
|
42
43
|
});
|
|
43
|
-
function
|
|
44
|
+
function se() {
|
|
44
45
|
const t = xe({
|
|
45
46
|
userConfig: v.config,
|
|
46
|
-
defaultConfig:
|
|
47
|
+
defaultConfig: Se
|
|
47
48
|
});
|
|
48
49
|
return t.theme ? {
|
|
49
50
|
...xe({
|
|
50
|
-
userConfig:
|
|
51
|
+
userConfig: je.vue_ui_radar[t.theme] || v.config,
|
|
51
52
|
defaultConfig: t
|
|
52
53
|
}),
|
|
53
|
-
customPalette:
|
|
54
|
+
customPalette: qe[t.theme] || x
|
|
54
55
|
} : t;
|
|
55
56
|
}
|
|
56
|
-
|
|
57
|
-
e.value =
|
|
57
|
+
Ee(() => v.config, (t) => {
|
|
58
|
+
e.value = se(), ue(), le.value += 1, re.value += 1, ne.value += 1;
|
|
58
59
|
}, { deep: !0 });
|
|
59
|
-
const
|
|
60
|
-
function
|
|
61
|
-
if (
|
|
60
|
+
const E = i(null);
|
|
61
|
+
function ue() {
|
|
62
|
+
if (He(v.dataset) && S({
|
|
62
63
|
componentName: "VueUiRadar",
|
|
63
64
|
type: "dataset"
|
|
64
65
|
}), e.value.responsive) {
|
|
65
|
-
const t =
|
|
66
|
-
const { width: a, height: o } =
|
|
66
|
+
const t = lt(() => {
|
|
67
|
+
const { width: a, height: o } = rt({
|
|
67
68
|
chart: A.value,
|
|
68
|
-
title: e.value.style.chart.title.text ?
|
|
69
|
-
legend: e.value.style.chart.legend.show ?
|
|
69
|
+
title: e.value.style.chart.title.text ? ae.value : null,
|
|
70
|
+
legend: e.value.style.chart.legend.show ? oe.value : null
|
|
70
71
|
});
|
|
71
72
|
u.value.width = a, u.value.height = o;
|
|
72
73
|
});
|
|
73
|
-
|
|
74
|
+
E.value = new ResizeObserver(t), E.value.observe(A.value.parentNode);
|
|
74
75
|
}
|
|
75
76
|
}
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
}),
|
|
79
|
-
|
|
77
|
+
Be(() => {
|
|
78
|
+
ue();
|
|
79
|
+
}), De(() => {
|
|
80
|
+
E.value && E.value.disconnect();
|
|
80
81
|
});
|
|
81
|
-
const { isPrinting:
|
|
82
|
+
const { isPrinting: ie, isImaging: ce, generatePdf: de, generateImage: ve } = st({
|
|
82
83
|
elementId: `vue-ui-radar_${_.value}`,
|
|
83
84
|
fileName: e.value.style.chart.title.text || "vue-ui-radar"
|
|
84
|
-
}),
|
|
85
|
+
}), pe = p(() => Je(e.value.customPalette)), k = i({
|
|
85
86
|
dataLabels: {
|
|
86
87
|
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
87
88
|
},
|
|
88
89
|
showTable: e.value.table.show,
|
|
89
90
|
showTooltip: e.value.style.chart.tooltip.show
|
|
90
|
-
}),
|
|
91
|
+
}), Ie = p(() => ({
|
|
91
92
|
style: {
|
|
92
93
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
93
94
|
animation: {
|
|
@@ -108,26 +109,26 @@ const gt = ["id"], ft = ["xmlns", "viewBox"], yt = ["id"], mt = ["stop-color"],
|
|
|
108
109
|
})), u = i({
|
|
109
110
|
height: 312,
|
|
110
111
|
width: 512
|
|
111
|
-
}), c = i([]), I = i(null),
|
|
112
|
-
function
|
|
113
|
-
|
|
114
|
-
|
|
112
|
+
}), c = i([]), I = i(null), O = i(!1);
|
|
113
|
+
function he(t) {
|
|
114
|
+
O.value = !0, c.value.includes(t) ? (I.value = t, c.value = c.value.filter((a) => a !== t), setTimeout(() => {
|
|
115
|
+
O.value = !1, I.value = null;
|
|
115
116
|
}, 500)) : (c.value.push(t), setTimeout(() => {
|
|
116
|
-
|
|
117
|
+
O.value = !1;
|
|
117
118
|
}, 500)), Ne("selectLegend", N.value.filter((a, o) => !c.value.includes(o)).map((a) => ({
|
|
118
119
|
name: a.name,
|
|
119
120
|
color: a.color,
|
|
120
121
|
proportion: a.totalProportion
|
|
121
122
|
})));
|
|
122
123
|
}
|
|
123
|
-
function
|
|
124
|
+
function Le() {
|
|
124
125
|
return N.value.map((t) => ({
|
|
125
126
|
name: t.name,
|
|
126
127
|
color: t.color,
|
|
127
128
|
proportion: t.totalProportion
|
|
128
129
|
}));
|
|
129
130
|
}
|
|
130
|
-
const
|
|
131
|
+
const f = p(() => [null, void 0].includes(v.dataset.categories) ? (S({
|
|
131
132
|
componentName: "VueUiRadar",
|
|
132
133
|
type: "datasetAttribute",
|
|
133
134
|
property: "categories ({ name: string; prefix?: string; suffix?: string}[])"
|
|
@@ -136,7 +137,7 @@ const gt = ["id"], ft = ["xmlns", "viewBox"], yt = ["id"], mt = ["stop-color"],
|
|
|
136
137
|
type: "datasetAttributeEmpty",
|
|
137
138
|
property: "categories"
|
|
138
139
|
}) : v.dataset.categories.forEach((t, a) => {
|
|
139
|
-
|
|
140
|
+
_e({
|
|
140
141
|
datasetObject: t,
|
|
141
142
|
requiredAttributes: ["name"]
|
|
142
143
|
}).forEach((o) => {
|
|
@@ -152,7 +153,7 @@ const gt = ["id"], ft = ["xmlns", "viewBox"], yt = ["id"], mt = ["stop-color"],
|
|
|
152
153
|
type: "datasetAttribute",
|
|
153
154
|
property: "series ({ name: string; values: number[]; color?: string; target: number}[])"
|
|
154
155
|
}) : v.dataset.series.forEach((t, a) => {
|
|
155
|
-
|
|
156
|
+
_e({
|
|
156
157
|
datasetObject: t,
|
|
157
158
|
requiredAttributes: ["name", "values", "target"]
|
|
158
159
|
}).forEach((o) => {
|
|
@@ -167,31 +168,31 @@ const gt = ["id"], ft = ["xmlns", "viewBox"], yt = ["id"], mt = ["stop-color"],
|
|
|
167
168
|
}), v.dataset.categories.map((t, a) => ({
|
|
168
169
|
name: t.name,
|
|
169
170
|
categoryId: `radar_category_${_.value}_${a}`,
|
|
170
|
-
color:
|
|
171
|
+
color: we(t.color) || pe.value[a] || x[a] || x[a % x.length],
|
|
171
172
|
prefix: t.prefix ?? "",
|
|
172
173
|
suffix: t.suffix ?? ""
|
|
173
174
|
})))), b = p(() => F.value ? v.dataset.series.map((t, a) => ({
|
|
174
175
|
...t,
|
|
175
|
-
color:
|
|
176
|
+
color: we(t.color) || pe.value[a] || x[a] || x[a % x.length],
|
|
176
177
|
serieId: `radar_serie_${_.value}_${a}`,
|
|
177
178
|
formatter: t.formatter || null
|
|
178
|
-
})) : []),
|
|
179
|
+
})) : []), ge = p(() => Math.max(...b.value.flatMap((t) => t.values))), fe = p(() => b.value.length), Y = p(() => Math.min(u.value.width, u.value.height) / 3), ye = p(() => $e({
|
|
179
180
|
plot: { x: u.value.width / 2, y: u.value.height / 2 },
|
|
180
|
-
radius:
|
|
181
|
-
sides:
|
|
181
|
+
radius: Y.value,
|
|
182
|
+
sides: fe.value,
|
|
182
183
|
rotation: 0
|
|
183
|
-
})),
|
|
184
|
+
})), ze = p(() => {
|
|
184
185
|
const t = [];
|
|
185
|
-
for (let a = 0; a <
|
|
186
|
+
for (let a = 0; a < Y.value; a += Y.value / e.value.style.chart.layout.grid.graduations)
|
|
186
187
|
t.push(a);
|
|
187
188
|
return t;
|
|
188
|
-
}), C = p(() =>
|
|
189
|
-
const o = b.value[a].values.map((l) =>
|
|
189
|
+
}), C = p(() => ye.value.coordinates.map((t, a) => {
|
|
190
|
+
const o = b.value[a].values.map((l) => Re({
|
|
190
191
|
centerX: u.value.width / 2,
|
|
191
192
|
centerY: u.value.height / 2,
|
|
192
193
|
apexX: t.x,
|
|
193
194
|
apexY: t.y,
|
|
194
|
-
proportion: l / (b.value[a].target ||
|
|
195
|
+
proportion: l / (b.value[a].target || ge.value)
|
|
195
196
|
}));
|
|
196
197
|
return {
|
|
197
198
|
...t,
|
|
@@ -199,56 +200,56 @@ const gt = ["id"], ft = ["xmlns", "viewBox"], yt = ["id"], mt = ["stop-color"],
|
|
|
199
200
|
plots: o
|
|
200
201
|
};
|
|
201
202
|
}));
|
|
202
|
-
function
|
|
203
|
+
function j({ x: t, y: a }) {
|
|
203
204
|
let o = "middle";
|
|
204
205
|
return t = Math.round(t), a = Math.round(a), t > u.value.width / 2 && (t += 12, o = "start"), t < u.value.width / 2 && (t -= 12, o = "end"), a > u.value.height / 2 && (a += 20), a < u.value.height / 2 && (a -= 12), a === u.value.height / 2 && (a += 4), { x: t, y: a, anchor: o };
|
|
205
206
|
}
|
|
206
|
-
function
|
|
207
|
+
function Re({ centerX: t, centerY: a, apexX: o, apexY: l, proportion: n }) {
|
|
207
208
|
return {
|
|
208
|
-
x: t + (o - t) *
|
|
209
|
-
y: a + (l - a) *
|
|
209
|
+
x: t + (o - t) * n,
|
|
210
|
+
y: a + (l - a) * n
|
|
210
211
|
};
|
|
211
212
|
}
|
|
212
213
|
const N = p(() => {
|
|
213
|
-
const t = b.value.map((a, o) => a.values.map((l) => l / (a.target ||
|
|
214
|
-
return
|
|
214
|
+
const t = b.value.map((a, o) => a.values.map((l) => l / (a.target || ge.value)));
|
|
215
|
+
return f.value.map((a, o) => ({
|
|
215
216
|
...a,
|
|
216
|
-
totalProportion:
|
|
217
|
+
totalProportion: Ke(t.map((l) => l[o]).reduce((l, n) => l + n, 0) / b.value.length),
|
|
217
218
|
shape: "circle",
|
|
218
219
|
opacity: c.value.includes(o) ? 0.5 : 1,
|
|
219
|
-
segregate: () =>
|
|
220
|
+
segregate: () => he(o),
|
|
220
221
|
isSegregated: c.value.includes(o)
|
|
221
222
|
}));
|
|
222
|
-
}),
|
|
223
|
+
}), Me = p(() => ({
|
|
223
224
|
cy: "radar-div-legend",
|
|
224
225
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
225
226
|
color: e.value.style.chart.legend.color,
|
|
226
227
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
227
228
|
paddingBottom: 12,
|
|
228
229
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
229
|
-
})),
|
|
230
|
+
})), B = p(() => {
|
|
230
231
|
const t = [
|
|
231
232
|
{ name: e.value.translations.datapoint, color: "" },
|
|
232
233
|
{ name: e.value.translations.target, color: "" },
|
|
233
234
|
...N.value
|
|
234
235
|
], a = v.dataset.series.map((l) => [
|
|
235
236
|
l.name,
|
|
236
|
-
|
|
237
|
+
Pe(
|
|
237
238
|
l.formatter,
|
|
238
239
|
l.target,
|
|
239
|
-
|
|
240
|
+
U({
|
|
240
241
|
p: l.prefix,
|
|
241
242
|
v: l.target,
|
|
242
243
|
s: l.suffix,
|
|
243
244
|
r: e.value.table.td.roundingValue
|
|
244
245
|
})
|
|
245
246
|
),
|
|
246
|
-
...l.values.map((
|
|
247
|
+
...l.values.map((n, d) => `${Pe(
|
|
247
248
|
l.formatter,
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
)} (${isNaN(
|
|
251
|
-
v:
|
|
249
|
+
n,
|
|
250
|
+
U({ p: f.value[d].prefix, v: n, s: f.value[d].suffix, r: e.value.table.td.roundingValue })
|
|
251
|
+
)} (${isNaN(n / l.target) ? "" : U({
|
|
252
|
+
v: n / l.target * 100,
|
|
252
253
|
s: "%",
|
|
253
254
|
r: e.value.table.td.roundingPercentage
|
|
254
255
|
})})`)
|
|
@@ -266,89 +267,102 @@ const gt = ["id"], ft = ["xmlns", "viewBox"], yt = ["id"], mt = ["stop-color"],
|
|
|
266
267
|
breakpoint: e.value.table.responsiveBreakpoint
|
|
267
268
|
};
|
|
268
269
|
return { head: t, body: a, config: o, colNames: t };
|
|
269
|
-
}),
|
|
270
|
-
function
|
|
271
|
-
|
|
270
|
+
}), D = i(null), q = i([]), H = i(null);
|
|
271
|
+
function Ve(t, a) {
|
|
272
|
+
q.value = [], D.value = a, W.value = !0;
|
|
272
273
|
let o = "";
|
|
273
|
-
|
|
274
|
+
H.value = {
|
|
274
275
|
datapoint: t,
|
|
275
276
|
seriesIndex: a,
|
|
276
277
|
series: {
|
|
277
|
-
categories:
|
|
278
|
+
categories: f.value,
|
|
278
279
|
datapoints: b.value,
|
|
279
280
|
radar: C.value
|
|
280
281
|
},
|
|
281
282
|
config: e.value
|
|
282
283
|
};
|
|
283
284
|
const l = e.value.style.chart.tooltip.customFormat;
|
|
284
|
-
if (
|
|
285
|
+
if (et(l) && tt(() => l({
|
|
285
286
|
seriesIndex: a,
|
|
286
287
|
datapoint: t,
|
|
287
|
-
series: { categories:
|
|
288
|
+
series: { categories: f.value, datapoints: b.value, radar: C.value },
|
|
288
289
|
config: e.value
|
|
289
290
|
})))
|
|
290
|
-
|
|
291
|
+
X.value = l({
|
|
291
292
|
seriesIndex: a,
|
|
292
293
|
datapoint: t,
|
|
293
|
-
series: { categories:
|
|
294
|
+
series: { categories: f.value, datapoints: b.value, radar: C.value },
|
|
294
295
|
config: e.value
|
|
295
296
|
});
|
|
296
297
|
else {
|
|
297
298
|
o += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${t.name}</div>`;
|
|
298
|
-
for (let
|
|
299
|
-
c.value.includes(
|
|
300
|
-
name:
|
|
301
|
-
value: t.values[
|
|
302
|
-
color:
|
|
299
|
+
for (let n = 0; n < t.values.length; n += 1)
|
|
300
|
+
c.value.includes(n) || q.value.push({
|
|
301
|
+
name: f.value[n].name,
|
|
302
|
+
value: t.values[n] / t.target * 100,
|
|
303
|
+
color: f.value[n].color,
|
|
303
304
|
suffix: "%)",
|
|
304
|
-
prefix: `${
|
|
305
|
+
prefix: `${U({ p: f.value[n].prefix ?? "", v: t.values[n], s: f.value[n].suffix ?? "", r: e.value.style.chart.tooltip.roundingValue })} (`,
|
|
305
306
|
rounding: e.value.style.chart.tooltip.roundingPercentage,
|
|
306
307
|
formatter: t.formatter
|
|
307
308
|
});
|
|
308
|
-
|
|
309
|
+
X.value = o;
|
|
309
310
|
}
|
|
310
311
|
}
|
|
311
|
-
function
|
|
312
|
-
|
|
313
|
-
const t = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], a = [[""], [e.value.translations.target], ...N.value.flatMap((d) => [[d.name], ["%"]])], o = v.dataset.series.map((d,
|
|
314
|
-
|
|
315
|
-
isNaN(
|
|
316
|
-
])]), l = t.concat([a]).concat(o),
|
|
317
|
-
|
|
312
|
+
function me() {
|
|
313
|
+
We(() => {
|
|
314
|
+
const t = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], a = [[""], [e.value.translations.target], ...N.value.flatMap((d) => [[d.name], ["%"]])], o = v.dataset.series.map((d, Vt) => [d.name, d.target, ...d.values.flatMap((K) => [
|
|
315
|
+
K,
|
|
316
|
+
isNaN(K / d.target) ? "" : K / d.target * 100
|
|
317
|
+
])]), l = t.concat([a]).concat(o), n = at(l);
|
|
318
|
+
ot({ csvContent: n, title: e.value.style.chart.title.text || "vue-ui-radar" });
|
|
318
319
|
});
|
|
319
320
|
}
|
|
320
321
|
const L = i(!1);
|
|
321
|
-
function
|
|
322
|
-
L.value = t,
|
|
322
|
+
function Ue(t) {
|
|
323
|
+
L.value = t, te.value += 1;
|
|
323
324
|
}
|
|
324
|
-
function
|
|
325
|
+
function be() {
|
|
325
326
|
k.value.showTable = !k.value.showTable;
|
|
326
327
|
}
|
|
327
|
-
function
|
|
328
|
+
function ke() {
|
|
328
329
|
k.value.showTooltip = !k.value.showTooltip;
|
|
329
330
|
}
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
331
|
+
const G = i(!1);
|
|
332
|
+
function J() {
|
|
333
|
+
G.value = !G.value;
|
|
334
|
+
}
|
|
335
|
+
return Oe({
|
|
336
|
+
getData: Le,
|
|
337
|
+
generatePdf: de,
|
|
338
|
+
generateCsv: me,
|
|
339
|
+
generateImage: ve,
|
|
340
|
+
toggleTable: be,
|
|
341
|
+
toggleTooltip: ke,
|
|
342
|
+
toggleAnnotator: J
|
|
343
|
+
}), (t, a) => (r(), s("div", {
|
|
338
344
|
class: z(`vue-ui-radar ${L.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
339
345
|
ref_key: "radarChart",
|
|
340
346
|
ref: A,
|
|
341
347
|
id: `vue-ui-radar_${_.value}`,
|
|
342
|
-
style:
|
|
348
|
+
style: Q(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height: 100%;" : ""} text-align:center;${e.value.style.chart.title.text ? "" : "padding-top:36px"};background:${e.value.style.chart.backgroundColor}`)
|
|
343
349
|
}, [
|
|
344
|
-
e.value.
|
|
350
|
+
e.value.userOptions.buttons.annotator ? (r(), w(ft, {
|
|
345
351
|
key: 0,
|
|
352
|
+
parent: A.value,
|
|
353
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
354
|
+
color: e.value.style.chart.color,
|
|
355
|
+
active: G.value,
|
|
356
|
+
onClose: J
|
|
357
|
+
}, null, 8, ["parent", "backgroundColor", "color", "active"])) : g("", !0),
|
|
358
|
+
e.value.style.chart.title.text ? (r(), s("div", {
|
|
359
|
+
key: 1,
|
|
346
360
|
ref_key: "chartTitle",
|
|
347
|
-
ref:
|
|
361
|
+
ref: ae,
|
|
348
362
|
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
349
363
|
}, [
|
|
350
|
-
(
|
|
351
|
-
key: `title_${
|
|
364
|
+
(r(), w(nt, {
|
|
365
|
+
key: `title_${le.value}`,
|
|
352
366
|
config: {
|
|
353
367
|
title: {
|
|
354
368
|
cy: "radar-div-title",
|
|
@@ -360,15 +374,15 @@ const gt = ["id"], ft = ["xmlns", "viewBox"], yt = ["id"], mt = ["stop-color"],
|
|
|
360
374
|
}
|
|
361
375
|
}
|
|
362
376
|
}, null, 8, ["config"]))
|
|
363
|
-
], 512)) :
|
|
364
|
-
e.value.userOptions.show && F.value ? (
|
|
377
|
+
], 512)) : g("", !0),
|
|
378
|
+
e.value.userOptions.show && F.value ? (r(), w(ut, {
|
|
365
379
|
ref_key: "details",
|
|
366
|
-
ref:
|
|
367
|
-
key: `user_options_${
|
|
380
|
+
ref: Fe,
|
|
381
|
+
key: `user_options_${te.value}`,
|
|
368
382
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
369
383
|
color: e.value.style.chart.color,
|
|
370
|
-
isImaging: h(
|
|
371
|
-
isPrinting: h(
|
|
384
|
+
isImaging: h(ce),
|
|
385
|
+
isPrinting: h(ie),
|
|
372
386
|
uid: _.value,
|
|
373
387
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
374
388
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -381,13 +395,16 @@ const gt = ["id"], ft = ["xmlns", "viewBox"], yt = ["id"], mt = ["stop-color"],
|
|
|
381
395
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
382
396
|
chartElement: A.value,
|
|
383
397
|
position: e.value.userOptions.position,
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
398
|
+
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
399
|
+
isAnnotation: G.value,
|
|
400
|
+
onToggleFullscreen: Ue,
|
|
401
|
+
onGeneratePdf: h(de),
|
|
402
|
+
onGenerateCsv: me,
|
|
403
|
+
onGenerateImage: h(ve),
|
|
404
|
+
onToggleTable: be,
|
|
405
|
+
onToggleTooltip: ke,
|
|
406
|
+
onToggleAnnotator: J
|
|
407
|
+
}, Ge({ _: 2 }, [
|
|
391
408
|
t.$slots.optionTooltip ? {
|
|
392
409
|
name: "optionTooltip",
|
|
393
410
|
fn: y(() => [
|
|
@@ -426,21 +443,28 @@ const gt = ["id"], ft = ["xmlns", "viewBox"], yt = ["id"], mt = ["stop-color"],
|
|
|
426
443
|
t.$slots.optionFullscreen ? {
|
|
427
444
|
name: "optionFullscreen",
|
|
428
445
|
fn: y(({ toggleFullscreen: o, isFullscreen: l }) => [
|
|
429
|
-
m(t.$slots, "optionFullscreen",
|
|
446
|
+
m(t.$slots, "optionFullscreen", R(M({ toggleFullscreen: o, isFullscreen: l })), void 0, !0)
|
|
430
447
|
]),
|
|
431
448
|
key: "5"
|
|
449
|
+
} : void 0,
|
|
450
|
+
t.$slots.optionAnnotator ? {
|
|
451
|
+
name: "optionAnnotator",
|
|
452
|
+
fn: y(({ toggleAnnotator: o, isAnnotator: l }) => [
|
|
453
|
+
m(t.$slots, "optionAnnotator", R(M({ toggleAnnotator: o, isAnnotator: l })), void 0, !0)
|
|
454
|
+
]),
|
|
455
|
+
key: "6"
|
|
432
456
|
} : void 0
|
|
433
|
-
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "onGeneratePdf", "onGenerateImage"])) :
|
|
434
|
-
F.value ? (
|
|
435
|
-
key:
|
|
436
|
-
xmlns: h(
|
|
457
|
+
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage"])) : g("", !0),
|
|
458
|
+
F.value ? (r(), s("svg", {
|
|
459
|
+
key: 3,
|
|
460
|
+
xmlns: h(Qe),
|
|
437
461
|
class: z({ "vue-data-ui-fullscreen--on": L.value, "vue-data-ui-fulscreen--off": !L.value }),
|
|
438
462
|
viewBox: `0 0 ${u.value.width <= 0 ? 10 : u.value.width} ${u.value.height <= 0 ? 10 : u.value.height}`,
|
|
439
|
-
style:
|
|
463
|
+
style: Q(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
440
464
|
}, [
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
(
|
|
465
|
+
Z(gt),
|
|
466
|
+
$("defs", null, [
|
|
467
|
+
(r(!0), s(P, null, T(f.value, (o, l) => (r(), s("radialGradient", {
|
|
444
468
|
cx: "50%",
|
|
445
469
|
cy: "50%",
|
|
446
470
|
r: "50%",
|
|
@@ -448,102 +472,102 @@ const gt = ["id"], ft = ["xmlns", "viewBox"], yt = ["id"], mt = ["stop-color"],
|
|
|
448
472
|
fy: "50%",
|
|
449
473
|
id: `radar_gradient_${_.value}_${l}`
|
|
450
474
|
}, [
|
|
451
|
-
|
|
475
|
+
$("stop", {
|
|
452
476
|
offset: "0%",
|
|
453
|
-
"stop-color": h(
|
|
454
|
-
}, null, 8,
|
|
455
|
-
|
|
477
|
+
"stop-color": h(ee)(h(Ze)(o.color, 0.05), e.value.style.chart.layout.dataPolygon.opacity)
|
|
478
|
+
}, null, 8, Ct),
|
|
479
|
+
$("stop", {
|
|
456
480
|
offset: "100%",
|
|
457
|
-
"stop-color": h(
|
|
458
|
-
}, null, 8,
|
|
459
|
-
], 8,
|
|
481
|
+
"stop-color": h(ee)(o.color, e.value.style.chart.layout.dataPolygon.opacity)
|
|
482
|
+
}, null, 8, _t)
|
|
483
|
+
], 8, kt))), 256))
|
|
460
484
|
]),
|
|
461
|
-
e.value.style.chart.layout.grid.show ? (
|
|
462
|
-
(
|
|
485
|
+
e.value.style.chart.layout.grid.show ? (r(), s("g", wt, [
|
|
486
|
+
(r(!0), s(P, null, T(C.value, (o) => (r(), s("line", {
|
|
463
487
|
x1: u.value.width / 2,
|
|
464
488
|
y1: u.value.height / 2,
|
|
465
489
|
x2: o.x,
|
|
466
490
|
y2: o.y,
|
|
467
491
|
stroke: e.value.style.chart.layout.grid.stroke,
|
|
468
492
|
"stroke-width": e.value.style.chart.layout.grid.strokeWidth
|
|
469
|
-
}, null, 8,
|
|
470
|
-
e.value.style.chart.layout.grid.graduations > 0 ? (
|
|
471
|
-
(
|
|
472
|
-
d: h(
|
|
493
|
+
}, null, 8, $t))), 256)),
|
|
494
|
+
e.value.style.chart.layout.grid.graduations > 0 ? (r(), s("g", Pt, [
|
|
495
|
+
(r(!0), s(P, null, T(ze.value, (o) => (r(), s("path", {
|
|
496
|
+
d: h($e)({
|
|
473
497
|
plot: { x: u.value.width / 2, y: u.value.height / 2 },
|
|
474
498
|
radius: o,
|
|
475
|
-
sides:
|
|
499
|
+
sides: fe.value,
|
|
476
500
|
rotation: 0
|
|
477
501
|
}).path,
|
|
478
502
|
fill: "none",
|
|
479
503
|
stroke: e.value.style.chart.layout.grid.stroke,
|
|
480
504
|
"stroke-width": e.value.style.chart.layout.grid.strokeWidth
|
|
481
|
-
}, null, 8,
|
|
482
|
-
])) :
|
|
483
|
-
])) :
|
|
484
|
-
|
|
485
|
-
d:
|
|
505
|
+
}, null, 8, Tt))), 256))
|
|
506
|
+
])) : g("", !0)
|
|
507
|
+
])) : g("", !0),
|
|
508
|
+
$("path", {
|
|
509
|
+
d: ye.value.path,
|
|
486
510
|
fill: "none",
|
|
487
511
|
stroke: e.value.style.chart.layout.outerPolygon.stroke,
|
|
488
512
|
"stroke-width": e.value.style.chart.layout.outerPolygon.strokeWidth,
|
|
489
513
|
"stroke-linejoin": "round",
|
|
490
514
|
"stroke-linecap": "round"
|
|
491
|
-
}, null, 8,
|
|
492
|
-
e.value.style.chart.layout.labels.dataLabels.show ? (
|
|
493
|
-
(
|
|
494
|
-
x:
|
|
495
|
-
y:
|
|
496
|
-
"text-anchor":
|
|
515
|
+
}, null, 8, xt),
|
|
516
|
+
e.value.style.chart.layout.labels.dataLabels.show ? (r(), s("g", At, [
|
|
517
|
+
(r(!0), s(P, null, T(C.value, (o, l) => (r(), s("text", {
|
|
518
|
+
x: j(o).x,
|
|
519
|
+
y: j(o).y,
|
|
520
|
+
"text-anchor": j(o).anchor,
|
|
497
521
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
498
522
|
fill: e.value.style.chart.layout.labels.dataLabels.color,
|
|
499
|
-
onMouseenter: (
|
|
500
|
-
onMouseleave: a[0] || (a[0] = (
|
|
501
|
-
|
|
523
|
+
onMouseenter: (n) => Ve(o, l),
|
|
524
|
+
onMouseleave: a[0] || (a[0] = (n) => {
|
|
525
|
+
W.value = !1, D.value = null;
|
|
502
526
|
})
|
|
503
|
-
},
|
|
504
|
-
])) :
|
|
505
|
-
(
|
|
506
|
-
|
|
507
|
-
e.value.useCssAnimation || !e.value.useCssAnimation && !c.value.includes(l) ? (
|
|
527
|
+
}, V(o.name), 41, Ot))), 256))
|
|
528
|
+
])) : g("", !0),
|
|
529
|
+
(r(!0), s(P, null, T(f.value, (o, l) => (r(), s("g", null, [
|
|
530
|
+
$("g", null, [
|
|
531
|
+
e.value.useCssAnimation || !e.value.useCssAnimation && !c.value.includes(l) ? (r(), s("polygon", {
|
|
508
532
|
key: 0,
|
|
509
533
|
"data-cy-radar-path": "",
|
|
510
|
-
points: h(
|
|
534
|
+
points: h(Te)(C.value.map((n) => n.plots[l]), !1, !0),
|
|
511
535
|
stroke: e.value.style.chart.backgroundColor,
|
|
512
536
|
"stroke-width": e.value.style.chart.layout.dataPolygon.strokeWidth + 1,
|
|
513
537
|
fill: "none",
|
|
514
|
-
class: z({ "animated-out": c.value.includes(l) && e.value.useCssAnimation, "animated-in":
|
|
515
|
-
}, null, 10,
|
|
516
|
-
e.value.useCssAnimation || !e.value.useCssAnimation && !c.value.includes(l) ? (
|
|
538
|
+
class: z({ "animated-out": c.value.includes(l) && e.value.useCssAnimation, "animated-in": O.value && I.value === l && e.value.useCssAnimation })
|
|
539
|
+
}, null, 10, Nt)) : g("", !0),
|
|
540
|
+
e.value.useCssAnimation || !e.value.useCssAnimation && !c.value.includes(l) ? (r(), s("polygon", {
|
|
517
541
|
key: 1,
|
|
518
542
|
"data-cy-radar-path": "",
|
|
519
|
-
points: h(
|
|
543
|
+
points: h(Te)(C.value.map((n) => n.plots[l]), !1, !0),
|
|
520
544
|
stroke: o.color,
|
|
521
545
|
"stroke-width": e.value.style.chart.layout.dataPolygon.strokeWidth,
|
|
522
|
-
fill: e.value.style.chart.layout.dataPolygon.transparent ? "transparent" : e.value.style.chart.layout.dataPolygon.useGradient ? `url(#radar_gradient_${_.value}_${l})` : h(
|
|
523
|
-
class: z({ "animated-out": c.value.includes(l) && e.value.useCssAnimation, "animated-in":
|
|
524
|
-
}, null, 10,
|
|
546
|
+
fill: e.value.style.chart.layout.dataPolygon.transparent ? "transparent" : e.value.style.chart.layout.dataPolygon.useGradient ? `url(#radar_gradient_${_.value}_${l})` : h(ee)(o.color, e.value.style.chart.layout.dataPolygon.opacity),
|
|
547
|
+
class: z({ "animated-out": c.value.includes(l) && e.value.useCssAnimation, "animated-in": O.value && I.value === l && e.value.useCssAnimation })
|
|
548
|
+
}, null, 10, St)) : g("", !0)
|
|
525
549
|
])
|
|
526
550
|
]))), 256)),
|
|
527
|
-
e.value.style.chart.layout.plots.show ? (
|
|
528
|
-
(
|
|
529
|
-
(
|
|
530
|
-
cx:
|
|
531
|
-
cy:
|
|
532
|
-
fill: c.value.includes(d) ? "transparent" :
|
|
533
|
-
r:
|
|
551
|
+
e.value.style.chart.layout.plots.show ? (r(), s("g", Ft, [
|
|
552
|
+
(r(!0), s(P, null, T(C.value, (o, l) => (r(), s("g", null, [
|
|
553
|
+
(r(!0), s(P, null, T(o.plots, (n, d) => (r(), s("circle", {
|
|
554
|
+
cx: n.x,
|
|
555
|
+
cy: n.y,
|
|
556
|
+
fill: c.value.includes(d) ? "transparent" : f.value[d].color,
|
|
557
|
+
r: D.value !== null && D.value === l ? e.value.style.chart.layout.plots.radius * 1.6 : e.value.style.chart.layout.plots.radius,
|
|
534
558
|
stroke: c.value.includes(d) ? "transparent" : e.value.style.chart.backgroundColor,
|
|
535
559
|
"stroke-width": 0.5,
|
|
536
|
-
class: z({ "animated-out": c.value.includes(d) && e.value.useCssAnimation, "animated-in":
|
|
537
|
-
}, null, 10,
|
|
560
|
+
class: z({ "animated-out": c.value.includes(d) && e.value.useCssAnimation, "animated-in": O.value && I.value === d && e.value.useCssAnimation })
|
|
561
|
+
}, null, 10, It))), 256))
|
|
538
562
|
]))), 256))
|
|
539
|
-
])) :
|
|
563
|
+
])) : g("", !0),
|
|
540
564
|
m(t.$slots, "svg", { svg: u.value }, void 0, !0)
|
|
541
|
-
], 14,
|
|
542
|
-
t.$slots.watermark ? (
|
|
543
|
-
m(t.$slots, "watermark",
|
|
544
|
-
])) :
|
|
545
|
-
F.value ?
|
|
546
|
-
key:
|
|
565
|
+
], 14, bt)) : g("", !0),
|
|
566
|
+
t.$slots.watermark ? (r(), s("div", Lt, [
|
|
567
|
+
m(t.$slots, "watermark", R(M({ isPrinting: h(ie) || h(ce) })), void 0, !0)
|
|
568
|
+
])) : g("", !0),
|
|
569
|
+
F.value ? g("", !0) : (r(), w(pt, {
|
|
570
|
+
key: 5,
|
|
547
571
|
config: {
|
|
548
572
|
type: "radar",
|
|
549
573
|
style: {
|
|
@@ -559,26 +583,26 @@ const gt = ["id"], ft = ["xmlns", "viewBox"], yt = ["id"], mt = ["stop-color"],
|
|
|
559
583
|
}
|
|
560
584
|
}
|
|
561
585
|
}, null, 8, ["config"])),
|
|
562
|
-
|
|
586
|
+
$("div", {
|
|
563
587
|
ref_key: "chartLegend",
|
|
564
|
-
ref:
|
|
588
|
+
ref: oe
|
|
565
589
|
}, [
|
|
566
|
-
e.value.style.chart.legend.show ? (
|
|
567
|
-
key: `legend_${
|
|
590
|
+
e.value.style.chart.legend.show ? (r(), w(dt, {
|
|
591
|
+
key: `legend_${ne.value}`,
|
|
568
592
|
legendSet: N.value,
|
|
569
|
-
config:
|
|
570
|
-
onClickMarker: a[1] || (a[1] = ({ i: o }) =>
|
|
593
|
+
config: Me.value,
|
|
594
|
+
onClickMarker: a[1] || (a[1] = ({ i: o }) => he(o))
|
|
571
595
|
}, {
|
|
572
596
|
item: y(({ legend: o, index: l }) => [
|
|
573
|
-
|
|
597
|
+
$("div", {
|
|
574
598
|
"data-cy-legend-item": "",
|
|
575
|
-
onClick: (
|
|
576
|
-
style:
|
|
577
|
-
},
|
|
599
|
+
onClick: (n) => o.segregate(),
|
|
600
|
+
style: Q(`opacity:${c.value.includes(l) ? 0.5 : 1}`)
|
|
601
|
+
}, V(o.name) + ": " + V(h(U)({
|
|
578
602
|
v: o.totalProportion * 100,
|
|
579
603
|
s: "%",
|
|
580
604
|
r: e.value.style.chart.legend.roundingPercentage
|
|
581
|
-
})), 13,
|
|
605
|
+
})), 13, zt)
|
|
582
606
|
]),
|
|
583
607
|
_: 1
|
|
584
608
|
}, 8, ["legendSet", "config"])) : m(t.$slots, "legend", {
|
|
@@ -586,8 +610,8 @@ const gt = ["id"], ft = ["xmlns", "viewBox"], yt = ["id"], mt = ["stop-color"],
|
|
|
586
610
|
legend: N.value
|
|
587
611
|
}, void 0, !0)
|
|
588
612
|
], 512),
|
|
589
|
-
|
|
590
|
-
show: k.value.showTooltip &&
|
|
613
|
+
Z(it, {
|
|
614
|
+
show: k.value.showTooltip && W.value,
|
|
591
615
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
592
616
|
color: e.value.style.chart.tooltip.color,
|
|
593
617
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -598,26 +622,26 @@ const gt = ["id"], ft = ["xmlns", "viewBox"], yt = ["id"], mt = ["stop-color"],
|
|
|
598
622
|
position: e.value.style.chart.tooltip.position,
|
|
599
623
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
600
624
|
parent: A.value,
|
|
601
|
-
content:
|
|
625
|
+
content: X.value,
|
|
602
626
|
isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function"
|
|
603
627
|
}, {
|
|
604
628
|
"tooltip-before": y(() => [
|
|
605
|
-
m(t.$slots, "tooltip-before",
|
|
629
|
+
m(t.$slots, "tooltip-before", R(M({ ...H.value })), void 0, !0)
|
|
606
630
|
]),
|
|
607
631
|
"tooltip-after": y(() => [
|
|
608
|
-
["function"].includes(typeof e.value.style.chart.tooltip.customFormat) ?
|
|
609
|
-
|
|
610
|
-
dataset:
|
|
611
|
-
config:
|
|
632
|
+
["function"].includes(typeof e.value.style.chart.tooltip.customFormat) ? g("", !0) : (r(), s("div", Rt, [
|
|
633
|
+
Z(ct, {
|
|
634
|
+
dataset: q.value,
|
|
635
|
+
config: Ie.value,
|
|
612
636
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity
|
|
613
637
|
}, null, 8, ["dataset", "config", "backgroundOpacity"])
|
|
614
638
|
])),
|
|
615
|
-
m(t.$slots, "tooltip-after",
|
|
639
|
+
m(t.$slots, "tooltip-after", R(M({ ...H.value })), void 0, !0)
|
|
616
640
|
]),
|
|
617
641
|
_: 3
|
|
618
642
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "fontSize", "position", "offsetY", "parent", "content", "isCustom"]),
|
|
619
|
-
F.value ? (
|
|
620
|
-
key:
|
|
643
|
+
F.value ? (r(), w(ht, {
|
|
644
|
+
key: 6,
|
|
621
645
|
hideDetails: "",
|
|
622
646
|
config: {
|
|
623
647
|
open: k.value.showTable,
|
|
@@ -633,29 +657,29 @@ const gt = ["id"], ft = ["xmlns", "viewBox"], yt = ["id"], mt = ["stop-color"],
|
|
|
633
657
|
}
|
|
634
658
|
}, {
|
|
635
659
|
content: y(() => [
|
|
636
|
-
(
|
|
637
|
-
key: `table_${
|
|
638
|
-
colNames:
|
|
639
|
-
head:
|
|
640
|
-
body:
|
|
641
|
-
config:
|
|
660
|
+
(r(), w(vt, {
|
|
661
|
+
key: `table_${re.value}`,
|
|
662
|
+
colNames: B.value.colNames,
|
|
663
|
+
head: B.value.head,
|
|
664
|
+
body: B.value.body,
|
|
665
|
+
config: B.value.config,
|
|
642
666
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
643
667
|
onClose: a[2] || (a[2] = (o) => k.value.showTable = !1)
|
|
644
668
|
}, {
|
|
645
669
|
th: y(({ th: o }) => [
|
|
646
|
-
|
|
670
|
+
Ce(V(o.name), 1)
|
|
647
671
|
]),
|
|
648
672
|
td: y(({ td: o }) => [
|
|
649
|
-
|
|
673
|
+
Ce(V(o), 1)
|
|
650
674
|
]),
|
|
651
675
|
_: 1
|
|
652
676
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
653
677
|
]),
|
|
654
678
|
_: 1
|
|
655
|
-
}, 8, ["config"])) :
|
|
656
|
-
], 14,
|
|
679
|
+
}, 8, ["config"])) : g("", !0)
|
|
680
|
+
], 14, mt));
|
|
657
681
|
}
|
|
658
|
-
},
|
|
682
|
+
}, ea = /* @__PURE__ */ yt(Mt, [["__scopeId", "data-v-14b2c666"]]);
|
|
659
683
|
export {
|
|
660
|
-
|
|
684
|
+
ea as default
|
|
661
685
|
};
|