vue-data-ui 2.4.1 → 2.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +44 -44
- package/dist/{Arrow-BIs_9yK8.js → Arrow-C7lNL7sY.js} +1 -1
- package/dist/{Arrow-DpMf3yPs.cjs → Arrow-Dz6AomGr.cjs} +1 -1
- package/dist/{BaseIcon-CXDdkPfN.js → BaseIcon-BbvG1AlW.js} +7 -4
- package/dist/BaseIcon-uALK38Ov.cjs +1 -0
- package/dist/{DataTable-BTgMVOwp.cjs → DataTable-DTzynbND.cjs} +1 -1
- package/dist/{DataTable-DL2agEJ3.js → DataTable-DYqC2pqu.js} +2 -2
- package/dist/{Legend-Dj9KiaLv.cjs → Legend-Cgw4lO2O.cjs} +1 -1
- package/dist/{Legend-DXLiSLHd.js → Legend-DNgTCgEK.js} +1 -1
- package/dist/{PackageVersion-D4D0WicU.cjs → PackageVersion-DwI-KhXH.cjs} +1 -1
- package/dist/{PackageVersion-DtnhR89q.js → PackageVersion-VkaUzgmt.js} +1 -1
- package/dist/PenAndPaper-CDFVOo7X.cjs +1 -0
- package/dist/PenAndPaper-DAZYA8Ew.js +269 -0
- package/dist/{Shape-CO_Ak9Zm.js → Shape-Bwon0l0g.js} +1 -1
- package/dist/{Shape-7EC2UKDK.cjs → Shape-D2Dpshg1.cjs} +1 -1
- package/dist/{Slicer-BZfUZr1J.js → Slicer-TfpN2Cr4.js} +3 -3
- package/dist/{Slicer-CLAVjSQP.cjs → Slicer-uSjfNJjG.cjs} +1 -1
- package/dist/{Title-C-lm3Mkl.cjs → Title-0Tp4hZ4u.cjs} +1 -1
- package/dist/{Title-DYNLqCCT.js → Title-C5pIfQAz.js} +1 -1
- package/dist/{Tooltip-t-3mVhcz.cjs → Tooltip-9Tp2Yrd1.cjs} +1 -1
- package/dist/{Tooltip-CICAYyQj.js → Tooltip-Cz24YLfw.js} +1 -1
- package/dist/{index-DDXisDKy.js → index-Bya_q1J-.js} +883 -842
- package/dist/index-eFox7weK.cjs +9 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +22 -17
- package/dist/types/vue-data-ui.d.ts +22 -17
- package/dist/{useNestedProp-S1UXxUgm.js → useNestedProp-B33hazbH.js} +1 -1
- package/dist/{useNestedProp-CC9zGr7C.cjs → useNestedProp-BkgEhTQY.cjs} +1 -1
- package/dist/usePrinter-CSRFnDBU.cjs +1 -0
- package/dist/{usePrinter-8ofTb2MJ.js → usePrinter-CiHd1FwD.js} +230 -185
- package/dist/useResponsive-BY8tgM1n.js +188 -0
- package/dist/useResponsive-CodiGUOE.cjs +1 -0
- package/dist/vue-data-ui-BTtxyUc3.cjs +9 -0
- package/dist/vue-data-ui-Bduq4f2p.js +261 -0
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/vue-ui-3d-bar-B-P7PMHs.cjs +19 -0
- package/dist/{vue-ui-3d-bar-DcF1nyGW.js → vue-ui-3d-bar-BUEq_VdY.js} +421 -390
- package/dist/{vue-ui-accordion-D_1fE5EF.js → vue-ui-accordion-DfUfL2dI.js} +3 -3
- package/dist/{vue-ui-accordion-Cc9958th.cjs → vue-ui-accordion-TEMpM1hO.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-Oe_yHDL0.js → vue-ui-age-pyramid-CH72tAMb.js} +255 -222
- package/dist/vue-ui-age-pyramid-DsbZ1qcQ.cjs +1 -0
- package/dist/{vue-ui-annotator-Dix6_Gm6.js → vue-ui-annotator-DPeJ2its.js} +1 -1
- package/dist/{vue-ui-annotator-Dbp6cWMr.cjs → vue-ui-annotator-DU_DJKCw.cjs} +1 -1
- package/dist/vue-ui-bullet-CtP3MlUT.js +464 -0
- package/dist/vue-ui-bullet-D8ks_rKr.cjs +34 -0
- package/dist/vue-ui-candlestick-D1jdr0bv.cjs +2 -0
- package/dist/{vue-ui-candlestick-CRwzWF6j.js → vue-ui-candlestick-DDil13a0.js} +278 -245
- package/dist/{vue-ui-carousel-table-BHeEbRKY.js → vue-ui-carousel-table-BaeIxyc0.js} +76 -69
- package/dist/vue-ui-carousel-table-C7SJIOG-.cjs +1 -0
- package/dist/{vue-ui-chestnut-CRk0RCB9.js → vue-ui-chestnut-BczSJF6S.js} +322 -291
- package/dist/vue-ui-chestnut-ih5r0Bj9.cjs +6 -0
- package/dist/{vue-ui-cursor-lU1rts1B.cjs → vue-ui-cursor-C2Pj_CI_.cjs} +1 -1
- package/dist/{vue-ui-cursor-y0kdr0uA.js → vue-ui-cursor-Dg_Dmww-.js} +2 -2
- package/dist/{vue-ui-dashboard-OyihaKdu.js → vue-ui-dashboard-Bul9dqx1.js} +2 -2
- package/dist/{vue-ui-dashboard-BfC0jS-X.cjs → vue-ui-dashboard-Cg020NiT.cjs} +1 -1
- package/dist/{vue-ui-digits-IKt4qT2-.js → vue-ui-digits-B8iAa4YZ.js} +2 -2
- package/dist/{vue-ui-digits-BJfcAiq_.cjs → vue-ui-digits-Ctgd84JR.cjs} +1 -1
- package/dist/vue-ui-donut-D7KT9EAp.cjs +1 -0
- package/dist/{vue-ui-donut-DFaGk4fI.js → vue-ui-donut-DUcp-fat.js} +376 -343
- package/dist/vue-ui-donut-evolution-CHtJ8iOK.cjs +1 -0
- package/dist/{vue-ui-donut-evolution-Dd4o37RP.js → vue-ui-donut-evolution-C_YMbTwq.js} +375 -344
- package/dist/vue-ui-dumbbell-B0dikuqO.cjs +9 -0
- package/dist/{vue-ui-dumbbell-B7j1_JoQ.js → vue-ui-dumbbell-Buwngz_V.js} +294 -261
- package/dist/vue-ui-flow-Bz3c0K5P.js +515 -0
- package/dist/vue-ui-flow-D6rc8J-8.cjs +1 -0
- package/dist/{vue-ui-galaxy-CH1BDtWl.js → vue-ui-galaxy-Cjh0XGTX.js} +212 -181
- package/dist/vue-ui-galaxy-CmTt0vBf.cjs +1 -0
- package/dist/vue-ui-gauge-B1UvGkQa.js +527 -0
- package/dist/vue-ui-gauge-B_TKuyM7.cjs +1 -0
- package/dist/{vue-ui-gizmo-DVwQaEH1.cjs → vue-ui-gizmo-DFW6HnHp.cjs} +1 -1
- package/dist/{vue-ui-gizmo-CKQcbe_7.js → vue-ui-gizmo-DUQ4t-At.js} +3 -3
- package/dist/{vue-ui-heatmap-B-zWMk0Y.js → vue-ui-heatmap-C-poazUw.js} +308 -277
- package/dist/vue-ui-heatmap-C2HlnqzO.cjs +1 -0
- package/dist/{vue-ui-kpi-CghbfSdM.js → vue-ui-kpi-DXe-vxAk.js} +3 -3
- package/dist/{vue-ui-kpi-CuY3xlVq.cjs → vue-ui-kpi-Z4Oi4raz.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-C7roqZ4p.js → vue-ui-mini-loader-BVtHTqxS.js} +2 -2
- package/dist/{vue-ui-mini-loader-CH_PfeDc.cjs → vue-ui-mini-loader-MMvpm9pz.cjs} +1 -1
- package/dist/vue-ui-molecule-BaJpDZND.js +805 -0
- package/dist/vue-ui-molecule-BiYIcOKN.cjs +1 -0
- package/dist/{vue-ui-mood-radar-DSznHxLS.js → vue-ui-mood-radar-BUNDwsEI.js} +259 -228
- package/dist/vue-ui-mood-radar-C6jMyFkb.cjs +1 -0
- package/dist/vue-ui-nested-donuts-DKO2dFKo.cjs +17 -0
- package/dist/{vue-ui-nested-donuts-CiE4DdEQ.js → vue-ui-nested-donuts-mDy2hXa6.js} +371 -338
- package/dist/vue-ui-onion-DwFG3HAI.js +650 -0
- package/dist/vue-ui-onion-GWNoZRhw.cjs +5 -0
- package/dist/vue-ui-parallel-coordinate-plot-DODn4Ohf.cjs +8 -0
- package/dist/vue-ui-parallel-coordinate-plot-ImET_zeo.js +719 -0
- package/dist/{vue-ui-quadrant-Cs3A77us.js → vue-ui-quadrant-BeveRihK.js} +359 -326
- package/dist/vue-ui-quadrant-yuFAxV-5.cjs +1 -0
- package/dist/{vue-ui-quick-chart-CiiSUexi.js → vue-ui-quick-chart-DAhllTfa.js} +585 -552
- package/dist/vue-ui-quick-chart-DgFDBzjS.cjs +15 -0
- package/dist/vue-ui-radar-BJH5SE6-.cjs +1 -0
- package/dist/{vue-ui-radar-CNSpiNrM.js → vue-ui-radar-BllatzRa.js} +279 -246
- package/dist/{vue-ui-rating-GoUNDOdZ.cjs → vue-ui-rating-BoZo7caL.cjs} +1 -1
- package/dist/{vue-ui-rating-b_iYZWF8.js → vue-ui-rating-D1ykV4xO.js} +2 -2
- package/dist/vue-ui-relation-circle-CKmjOle7.cjs +1 -0
- package/dist/vue-ui-relation-circle-xv2l5Be9.js +358 -0
- package/dist/vue-ui-rings-B-ZcX6y1.js +602 -0
- package/dist/vue-ui-rings-DjH3CK23.cjs +2 -0
- package/dist/{vue-ui-scatter-CVuoW-cD.js → vue-ui-scatter-DG43ck1g.js} +440 -407
- package/dist/vue-ui-scatter-SBCXAl7q.cjs +1 -0
- package/dist/{vue-ui-screenshot-Co2o48d6.cjs → vue-ui-screenshot-C1JBP_N0.cjs} +1 -1
- package/dist/{vue-ui-screenshot-Csc0dQL9.js → vue-ui-screenshot-p3ca8cAl.js} +1 -1
- package/dist/{vue-ui-skeleton-B2sRnIXX.js → vue-ui-skeleton-BYssP0K4.js} +419 -379
- package/dist/vue-ui-skeleton-BqKzuhkB.cjs +41 -0
- package/dist/{vue-ui-smiley-Ci3uMgVh.cjs → vue-ui-smiley-BXKVpHl2.cjs} +1 -1
- package/dist/{vue-ui-smiley-D4s-AdIE.js → vue-ui-smiley-D7dDCdpq.js} +2 -2
- package/dist/vue-ui-spark-trend-9V60hM3Z.cjs +1 -0
- package/dist/{vue-ui-spark-trend-CHKQGMLs.js → vue-ui-spark-trend-GWFrO_0z.js} +86 -79
- package/dist/vue-ui-sparkbar-Bgn6AY0q.cjs +1 -0
- package/dist/{vue-ui-sparkbar-Bb1fq2GR.js → vue-ui-sparkbar-CwqlyAyv.js} +90 -83
- package/dist/vue-ui-sparkgauge-Dqntz2Zv.cjs +1 -0
- package/dist/{vue-ui-sparkgauge-DWuaAQbo.js → vue-ui-sparkgauge-F2XbiXyA.js} +57 -50
- package/dist/{vue-ui-sparkhistogram-CjeJ3ch1.js → vue-ui-sparkhistogram-DRIKK6Ym.js} +74 -67
- package/dist/vue-ui-sparkhistogram-DnY4-Sdn.cjs +1 -0
- package/dist/vue-ui-sparkline-CAEs-gtK.cjs +1 -0
- package/dist/{vue-ui-sparkline-DGJDBArr.js → vue-ui-sparkline-Cxtzdlhi.js} +134 -125
- package/dist/{vue-ui-sparkstackbar-B3ul3qUZ.js → vue-ui-sparkstackbar-0A1klq9s.js} +84 -77
- package/dist/vue-ui-sparkstackbar-D37ms1rx.cjs +1 -0
- package/dist/vue-ui-stackbar-ByOuJSdM.js +947 -0
- package/dist/vue-ui-stackbar-wun4S3C0.cjs +6 -0
- package/dist/{vue-ui-strip-plot-CIb2LSV8.js → vue-ui-strip-plot-CMD0MSqY.js} +297 -264
- package/dist/vue-ui-strip-plot-IQrypGvz.cjs +1 -0
- package/dist/{vue-ui-table-CmVi0nv2.js → vue-ui-table-B75DJ39t.js} +1 -1
- package/dist/{vue-ui-table-B_sFrAO9.cjs → vue-ui-table-aj0XZ7T5.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-CgFr38QT.js → vue-ui-table-heatmap-BO2ugWqD.js} +55 -48
- package/dist/vue-ui-table-heatmap-Ce93TyBF.cjs +1 -0
- package/dist/{vue-ui-table-sparkline-eg2Qd8ws.js → vue-ui-table-sparkline-CbjfAaj2.js} +88 -81
- package/dist/vue-ui-table-sparkline-D6KJjDnU.cjs +1 -0
- package/dist/vue-ui-thermometer-Pq4PvSIP.js +447 -0
- package/dist/vue-ui-thermometer-swmi4FmH.cjs +1 -0
- package/dist/{vue-ui-timer-DM1IStj1.cjs → vue-ui-timer-B6IB6yS6.cjs} +1 -1
- package/dist/{vue-ui-timer-COSI3Q5T.js → vue-ui-timer-Bk3BvB-B.js} +6 -6
- package/dist/vue-ui-tiremarks-CU9HJIqf.js +310 -0
- package/dist/vue-ui-tiremarks-Cn79uQH2.cjs +1 -0
- package/dist/vue-ui-treemap-BEMuKV7x.cjs +1 -0
- package/dist/vue-ui-treemap-DY-lRAhC.js +825 -0
- package/dist/vue-ui-vertical-bar-B1e2RxTv.cjs +4 -0
- package/dist/vue-ui-vertical-bar-CtnIKsM1.js +861 -0
- package/dist/vue-ui-waffle-BqP7Okgu.cjs +1 -0
- package/dist/vue-ui-waffle-reOsx-gJ.js +791 -0
- package/dist/vue-ui-wheel-BuWUGnkC.cjs +1 -0
- package/dist/vue-ui-wheel-kYxny3vn.js +291 -0
- package/dist/vue-ui-word-cloud-DbMqrHAf.js +607 -0
- package/dist/vue-ui-word-cloud-DwLY4QdB.cjs +1 -0
- package/dist/vue-ui-xy-CGWzriYn.cjs +3 -0
- package/dist/{vue-ui-xy-canvas-BYdTxzi6.js → vue-ui-xy-canvas-B0HTR7OV.js} +441 -408
- package/dist/vue-ui-xy-canvas-CgJd5FiT.cjs +9 -0
- package/dist/{vue-ui-xy-x8KEsGV-.js → vue-ui-xy-rbACig0h.js} +824 -791
- package/package.json +1 -1
- package/dist/BaseIcon-E7FmzMcY.cjs +0 -1
- package/dist/index-C7_6YjWN.cjs +0 -9
- package/dist/usePrinter-8EP4iaGm.cjs +0 -1
- package/dist/useResponsive-B3TrDDIG.cjs +0 -1
- package/dist/useResponsive-NZB-WLRF.js +0 -187
- package/dist/vue-data-ui-4Yd255Ia.cjs +0 -9
- package/dist/vue-data-ui-Cp7bO_tj.js +0 -258
- package/dist/vue-ui-3d-bar-BeR2aBgQ.cjs +0 -19
- package/dist/vue-ui-age-pyramid-R-C4P4mI.cjs +0 -1
- package/dist/vue-ui-bullet-CQKaC4wG.js +0 -409
- package/dist/vue-ui-bullet-DSZox236.cjs +0 -23
- package/dist/vue-ui-candlestick-Dilozp3V.cjs +0 -2
- package/dist/vue-ui-carousel-table-C0GDDSW9.cjs +0 -1
- package/dist/vue-ui-chestnut-DdEcEI04.cjs +0 -6
- package/dist/vue-ui-donut-DTSVlGMg.cjs +0 -1
- package/dist/vue-ui-donut-evolution-BuUafabD.cjs +0 -1
- package/dist/vue-ui-dumbbell-CVfgnyKi.cjs +0 -9
- package/dist/vue-ui-flow-C45dODaB.cjs +0 -1
- package/dist/vue-ui-flow-DkPTzNv9.js +0 -484
- package/dist/vue-ui-galaxy-DlPavMK0.cjs +0 -1
- package/dist/vue-ui-gauge-BXiy515T.js +0 -494
- package/dist/vue-ui-gauge-vMFUYHYH.cjs +0 -1
- package/dist/vue-ui-heatmap-CMQqQnxc.cjs +0 -1
- package/dist/vue-ui-molecule-BwmkMEVN.js +0 -774
- package/dist/vue-ui-molecule-nOuD0hR5.cjs +0 -1
- package/dist/vue-ui-mood-radar-Bof_C9Ae.cjs +0 -1
- package/dist/vue-ui-nested-donuts-DIb6YyWv.cjs +0 -17
- package/dist/vue-ui-onion-D9o6Rcgu.js +0 -617
- package/dist/vue-ui-onion-N3tRNc4u.cjs +0 -5
- package/dist/vue-ui-parallel-coordinate-plot-BcYrYXhG.js +0 -686
- package/dist/vue-ui-parallel-coordinate-plot-qKGk2bX6.cjs +0 -8
- package/dist/vue-ui-quadrant-Do48rGrX.cjs +0 -1
- package/dist/vue-ui-quick-chart-BxU4d-sJ.cjs +0 -15
- package/dist/vue-ui-radar-CooAvwPA.cjs +0 -1
- package/dist/vue-ui-relation-circle-nRf1pvD0.js +0 -325
- package/dist/vue-ui-relation-circle-uNgJni4x.cjs +0 -1
- package/dist/vue-ui-rings-BgRc1o4_.js +0 -569
- package/dist/vue-ui-rings-iIgQI9Ws.cjs +0 -2
- package/dist/vue-ui-scatter-CkrpmLxP.cjs +0 -1
- package/dist/vue-ui-skeleton-CGV1dEUD.cjs +0 -41
- package/dist/vue-ui-spark-trend-BfoEoJEy.cjs +0 -1
- package/dist/vue-ui-sparkbar-DB2DeXti.cjs +0 -1
- package/dist/vue-ui-sparkgauge-CJepIY2u.cjs +0 -1
- package/dist/vue-ui-sparkhistogram-B7B36LLT.cjs +0 -1
- package/dist/vue-ui-sparkline-BcqmwDAb.cjs +0 -1
- package/dist/vue-ui-sparkstackbar-DT3aKNeV.cjs +0 -1
- package/dist/vue-ui-stackbar-CRcUugkl.cjs +0 -6
- package/dist/vue-ui-stackbar-DNROvZII.js +0 -915
- package/dist/vue-ui-strip-plot-Ck9Fmt_b.cjs +0 -1
- package/dist/vue-ui-table-heatmap-Chvdf2Gi.cjs +0 -1
- package/dist/vue-ui-table-sparkline-DUUYQ5dH.cjs +0 -1
- package/dist/vue-ui-thermometer-BFfN4aat.cjs +0 -1
- package/dist/vue-ui-thermometer-BePmFiwy.js +0 -416
- package/dist/vue-ui-tiremarks-BkYXzU3R.cjs +0 -1
- package/dist/vue-ui-tiremarks-d6TmSHY7.js +0 -279
- package/dist/vue-ui-treemap-BgeZnbl3.cjs +0 -1
- package/dist/vue-ui-treemap-Qg0858o6.js +0 -792
- package/dist/vue-ui-vertical-bar-CieqHVD5.js +0 -828
- package/dist/vue-ui-vertical-bar-D3atbdvl.cjs +0 -4
- package/dist/vue-ui-waffle-CD7C9Lu4.cjs +0 -1
- package/dist/vue-ui-waffle-CjNhM-mV.js +0 -758
- package/dist/vue-ui-wheel-B8mbO6ht.js +0 -258
- package/dist/vue-ui-wheel-CYmM7J61.cjs +0 -1
- package/dist/vue-ui-word-cloud-DMXrUmX5.js +0 -574
- package/dist/vue-ui-word-cloud-Dm9yZ1zQ.cjs +0 -1
- package/dist/vue-ui-xy-DoWnidom.cjs +0 -3
- package/dist/vue-ui-xy-canvas-DHs5sb3t.cjs +0 -9
|
@@ -1,24 +1,25 @@
|
|
|
1
|
-
import { computed as p, ref 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
|
|
13
|
-
import { _ as
|
|
14
|
-
import {
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
import { computed as p, ref as u, watch as Be, onMounted as De, onBeforeUnmount as Ge, openBlock as r, createElementBlock as s, normalizeClass as z, normalizeStyle as Q, createBlock as w, createCommentVNode as h, unref as g, createSlots as We, 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 _e, nextTick as Xe } from "vue";
|
|
2
|
+
import { u as Ye, c as je, t as qe, a as He, p as x, o as Je, e as S, b as Ke, g as we, d as $e, O as Pe, v as Qe, i as Te, f as U, X as Ze, s as ee, w as et, P as xe, x as tt, y as at, q as ot, r as lt } from "./index-Bya_q1J-.js";
|
|
3
|
+
import { t as rt, u as nt } from "./useResponsive-BY8tgM1n.js";
|
|
4
|
+
import { _ as st } from "./Title-C5pIfQAz.js";
|
|
5
|
+
import { u as ut, U as it } from "./usePrinter-CiHd1FwD.js";
|
|
6
|
+
import { _ as ct } from "./Tooltip-Cz24YLfw.js";
|
|
7
|
+
import dt from "./vue-ui-sparkbar-CwqlyAyv.js";
|
|
8
|
+
import { L as vt } from "./Legend-DNgTCgEK.js";
|
|
9
|
+
import { D as pt } from "./DataTable-DYqC2pqu.js";
|
|
10
|
+
import ht from "./vue-ui-skeleton-BYssP0K4.js";
|
|
11
|
+
import gt from "./vue-ui-accordion-DfUfL2dI.js";
|
|
12
|
+
import { u as Ae } from "./useNestedProp-B33hazbH.js";
|
|
13
|
+
import { _ as ft } from "./PackageVersion-VkaUzgmt.js";
|
|
14
|
+
import { P as yt } from "./PenAndPaper-DAZYA8Ew.js";
|
|
15
|
+
import { _ as mt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
|
+
const bt = ["id"], kt = ["xmlns", "viewBox"], Ct = ["id"], _t = ["stop-color"], wt = ["stop-color"], $t = { key: 0 }, Pt = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Tt = { key: 0 }, xt = ["d", "stroke", "stroke-width"], At = ["d", "stroke", "stroke-width"], Ot = { key: 1 }, Nt = ["x", "y", "text-anchor", "font-size", "fill", "onMouseenter"], St = ["points", "stroke", "stroke-width"], Ft = ["points", "stroke", "stroke-width", "fill"], It = { key: 2 }, Lt = ["cx", "cy", "fill", "r", "stroke"], zt = {
|
|
17
|
+
key: 4,
|
|
17
18
|
class: "vue-data-ui-watermark"
|
|
18
|
-
},
|
|
19
|
+
}, Rt = ["onClick"], Mt = {
|
|
19
20
|
key: 0,
|
|
20
21
|
style: { "max-width": "200px", margin: "0 auto" }
|
|
21
|
-
},
|
|
22
|
+
}, Vt = {
|
|
22
23
|
__name: "vue-ui-radar",
|
|
23
24
|
props: {
|
|
24
25
|
config: {
|
|
@@ -35,59 +36,60 @@ 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(Oe, { expose: Ne, emit: Se }) {
|
|
40
|
+
const v = Oe, { vue_ui_radar: Fe } = Ye(), F = p(() => !!v.dataset && Object.keys(v.dataset).length), _ = u(je()), Ie = u(null), W = u(!1), X = u(""), te = u(0), A = u(null), ae = u(null), oe = u(null), le = u(null), re = u(0), ne = u(0), se = u(0), e = p({
|
|
41
|
+
get: () => ue(),
|
|
41
42
|
set: (t) => t
|
|
42
43
|
});
|
|
43
|
-
function
|
|
44
|
-
const t =
|
|
44
|
+
function ue() {
|
|
45
|
+
const t = Ae({
|
|
45
46
|
userConfig: v.config,
|
|
46
|
-
defaultConfig:
|
|
47
|
+
defaultConfig: Fe
|
|
47
48
|
});
|
|
48
49
|
return t.theme ? {
|
|
49
|
-
...
|
|
50
|
-
userConfig:
|
|
50
|
+
...Ae({
|
|
51
|
+
userConfig: qe.vue_ui_radar[t.theme] || v.config,
|
|
51
52
|
defaultConfig: t
|
|
52
53
|
}),
|
|
53
|
-
customPalette:
|
|
54
|
+
customPalette: He[t.theme] || x
|
|
54
55
|
} : t;
|
|
55
56
|
}
|
|
56
|
-
|
|
57
|
-
e.value =
|
|
57
|
+
Be(() => v.config, (t) => {
|
|
58
|
+
e.value = ue(), ie(), re.value += 1, ne.value += 1, se.value += 1;
|
|
58
59
|
}, { deep: !0 });
|
|
59
|
-
const
|
|
60
|
-
function
|
|
61
|
-
if (
|
|
60
|
+
const E = u(null);
|
|
61
|
+
function ie() {
|
|
62
|
+
if (Je(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 = rt(() => {
|
|
67
|
+
const { width: a, height: o } = nt({
|
|
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,
|
|
71
|
+
source: le.value
|
|
70
72
|
});
|
|
71
|
-
|
|
73
|
+
i.value.width = a, i.value.height = o;
|
|
72
74
|
});
|
|
73
|
-
|
|
75
|
+
E.value = new ResizeObserver(t), E.value.observe(A.value.parentNode);
|
|
74
76
|
}
|
|
75
77
|
}
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
}),
|
|
79
|
-
|
|
78
|
+
De(() => {
|
|
79
|
+
ie();
|
|
80
|
+
}), Ge(() => {
|
|
81
|
+
E.value && E.value.disconnect();
|
|
80
82
|
});
|
|
81
|
-
const { isPrinting:
|
|
83
|
+
const { isPrinting: ce, isImaging: de, generatePdf: ve, generateImage: pe } = ut({
|
|
82
84
|
elementId: `vue-ui-radar_${_.value}`,
|
|
83
85
|
fileName: e.value.style.chart.title.text || "vue-ui-radar"
|
|
84
|
-
}),
|
|
86
|
+
}), he = p(() => Ke(e.value.customPalette)), k = u({
|
|
85
87
|
dataLabels: {
|
|
86
88
|
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
87
89
|
},
|
|
88
90
|
showTable: e.value.table.show,
|
|
89
91
|
showTooltip: e.value.style.chart.tooltip.show
|
|
90
|
-
}),
|
|
92
|
+
}), Le = p(() => ({
|
|
91
93
|
style: {
|
|
92
94
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
93
95
|
animation: {
|
|
@@ -105,29 +107,29 @@ const gt = ["id"], ft = ["xmlns", "viewBox"], yt = ["id"], mt = ["stop-color"],
|
|
|
105
107
|
opacity: 30
|
|
106
108
|
}
|
|
107
109
|
}
|
|
108
|
-
})),
|
|
110
|
+
})), i = u({
|
|
109
111
|
height: 312,
|
|
110
112
|
width: 512
|
|
111
|
-
}), c =
|
|
112
|
-
function
|
|
113
|
-
|
|
114
|
-
|
|
113
|
+
}), c = u([]), I = u(null), O = u(!1);
|
|
114
|
+
function ge(t) {
|
|
115
|
+
O.value = !0, c.value.includes(t) ? (I.value = t, c.value = c.value.filter((a) => a !== t), setTimeout(() => {
|
|
116
|
+
O.value = !1, I.value = null;
|
|
115
117
|
}, 500)) : (c.value.push(t), setTimeout(() => {
|
|
116
|
-
|
|
117
|
-
}, 500)),
|
|
118
|
+
O.value = !1;
|
|
119
|
+
}, 500)), Se("selectLegend", N.value.filter((a, o) => !c.value.includes(o)).map((a) => ({
|
|
118
120
|
name: a.name,
|
|
119
121
|
color: a.color,
|
|
120
122
|
proportion: a.totalProportion
|
|
121
123
|
})));
|
|
122
124
|
}
|
|
123
|
-
function
|
|
125
|
+
function ze() {
|
|
124
126
|
return N.value.map((t) => ({
|
|
125
127
|
name: t.name,
|
|
126
128
|
color: t.color,
|
|
127
129
|
proportion: t.totalProportion
|
|
128
130
|
}));
|
|
129
131
|
}
|
|
130
|
-
const
|
|
132
|
+
const f = p(() => [null, void 0].includes(v.dataset.categories) ? (S({
|
|
131
133
|
componentName: "VueUiRadar",
|
|
132
134
|
type: "datasetAttribute",
|
|
133
135
|
property: "categories ({ name: string; prefix?: string; suffix?: string}[])"
|
|
@@ -136,7 +138,7 @@ const gt = ["id"], ft = ["xmlns", "viewBox"], yt = ["id"], mt = ["stop-color"],
|
|
|
136
138
|
type: "datasetAttributeEmpty",
|
|
137
139
|
property: "categories"
|
|
138
140
|
}) : v.dataset.categories.forEach((t, a) => {
|
|
139
|
-
|
|
141
|
+
we({
|
|
140
142
|
datasetObject: t,
|
|
141
143
|
requiredAttributes: ["name"]
|
|
142
144
|
}).forEach((o) => {
|
|
@@ -152,7 +154,7 @@ const gt = ["id"], ft = ["xmlns", "viewBox"], yt = ["id"], mt = ["stop-color"],
|
|
|
152
154
|
type: "datasetAttribute",
|
|
153
155
|
property: "series ({ name: string; values: number[]; color?: string; target: number}[])"
|
|
154
156
|
}) : v.dataset.series.forEach((t, a) => {
|
|
155
|
-
|
|
157
|
+
we({
|
|
156
158
|
datasetObject: t,
|
|
157
159
|
requiredAttributes: ["name", "values", "target"]
|
|
158
160
|
}).forEach((o) => {
|
|
@@ -167,31 +169,31 @@ const gt = ["id"], ft = ["xmlns", "viewBox"], yt = ["id"], mt = ["stop-color"],
|
|
|
167
169
|
}), v.dataset.categories.map((t, a) => ({
|
|
168
170
|
name: t.name,
|
|
169
171
|
categoryId: `radar_category_${_.value}_${a}`,
|
|
170
|
-
color:
|
|
172
|
+
color: $e(t.color) || he.value[a] || x[a] || x[a % x.length],
|
|
171
173
|
prefix: t.prefix ?? "",
|
|
172
174
|
suffix: t.suffix ?? ""
|
|
173
175
|
})))), b = p(() => F.value ? v.dataset.series.map((t, a) => ({
|
|
174
176
|
...t,
|
|
175
|
-
color:
|
|
177
|
+
color: $e(t.color) || he.value[a] || x[a] || x[a % x.length],
|
|
176
178
|
serieId: `radar_serie_${_.value}_${a}`,
|
|
177
179
|
formatter: t.formatter || null
|
|
178
|
-
})) : []),
|
|
179
|
-
plot: { x:
|
|
180
|
-
radius:
|
|
181
|
-
sides:
|
|
180
|
+
})) : []), fe = p(() => Math.max(...b.value.flatMap((t) => t.values))), ye = p(() => b.value.length), Y = p(() => Math.min(i.value.width, i.value.height) / 3), me = p(() => Pe({
|
|
181
|
+
plot: { x: i.value.width / 2, y: i.value.height / 2 },
|
|
182
|
+
radius: Y.value,
|
|
183
|
+
sides: ye.value,
|
|
182
184
|
rotation: 0
|
|
183
|
-
})),
|
|
185
|
+
})), Re = p(() => {
|
|
184
186
|
const t = [];
|
|
185
|
-
for (let a = 0; a <
|
|
187
|
+
for (let a = 0; a < Y.value; a += Y.value / e.value.style.chart.layout.grid.graduations)
|
|
186
188
|
t.push(a);
|
|
187
189
|
return t;
|
|
188
|
-
}), C = p(() =>
|
|
189
|
-
const o = b.value[a].values.map((l) =>
|
|
190
|
-
centerX:
|
|
191
|
-
centerY:
|
|
190
|
+
}), C = p(() => me.value.coordinates.map((t, a) => {
|
|
191
|
+
const o = b.value[a].values.map((l) => Me({
|
|
192
|
+
centerX: i.value.width / 2,
|
|
193
|
+
centerY: i.value.height / 2,
|
|
192
194
|
apexX: t.x,
|
|
193
195
|
apexY: t.y,
|
|
194
|
-
proportion: l / (b.value[a].target ||
|
|
196
|
+
proportion: l / (b.value[a].target || fe.value)
|
|
195
197
|
}));
|
|
196
198
|
return {
|
|
197
199
|
...t,
|
|
@@ -199,56 +201,56 @@ const gt = ["id"], ft = ["xmlns", "viewBox"], yt = ["id"], mt = ["stop-color"],
|
|
|
199
201
|
plots: o
|
|
200
202
|
};
|
|
201
203
|
}));
|
|
202
|
-
function
|
|
204
|
+
function j({ x: t, y: a }) {
|
|
203
205
|
let o = "middle";
|
|
204
|
-
return t = Math.round(t), a = Math.round(a), t >
|
|
206
|
+
return t = Math.round(t), a = Math.round(a), t > i.value.width / 2 && (t += 12, o = "start"), t < i.value.width / 2 && (t -= 12, o = "end"), a > i.value.height / 2 && (a += 20), a < i.value.height / 2 && (a -= 12), a === i.value.height / 2 && (a += 4), { x: t, y: a, anchor: o };
|
|
205
207
|
}
|
|
206
|
-
function
|
|
208
|
+
function Me({ centerX: t, centerY: a, apexX: o, apexY: l, proportion: n }) {
|
|
207
209
|
return {
|
|
208
|
-
x: t + (o - t) *
|
|
209
|
-
y: a + (l - a) *
|
|
210
|
+
x: t + (o - t) * n,
|
|
211
|
+
y: a + (l - a) * n
|
|
210
212
|
};
|
|
211
213
|
}
|
|
212
214
|
const N = p(() => {
|
|
213
|
-
const t = b.value.map((a, o) => a.values.map((l) => l / (a.target ||
|
|
214
|
-
return
|
|
215
|
+
const t = b.value.map((a, o) => a.values.map((l) => l / (a.target || fe.value)));
|
|
216
|
+
return f.value.map((a, o) => ({
|
|
215
217
|
...a,
|
|
216
|
-
totalProportion:
|
|
218
|
+
totalProportion: Qe(t.map((l) => l[o]).reduce((l, n) => l + n, 0) / b.value.length),
|
|
217
219
|
shape: "circle",
|
|
218
220
|
opacity: c.value.includes(o) ? 0.5 : 1,
|
|
219
|
-
segregate: () =>
|
|
221
|
+
segregate: () => ge(o),
|
|
220
222
|
isSegregated: c.value.includes(o)
|
|
221
223
|
}));
|
|
222
|
-
}),
|
|
224
|
+
}), Ve = p(() => ({
|
|
223
225
|
cy: "radar-div-legend",
|
|
224
226
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
225
227
|
color: e.value.style.chart.legend.color,
|
|
226
228
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
227
229
|
paddingBottom: 12,
|
|
228
230
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
229
|
-
})),
|
|
231
|
+
})), B = p(() => {
|
|
230
232
|
const t = [
|
|
231
233
|
{ name: e.value.translations.datapoint, color: "" },
|
|
232
234
|
{ name: e.value.translations.target, color: "" },
|
|
233
235
|
...N.value
|
|
234
236
|
], a = v.dataset.series.map((l) => [
|
|
235
237
|
l.name,
|
|
236
|
-
|
|
238
|
+
Te(
|
|
237
239
|
l.formatter,
|
|
238
240
|
l.target,
|
|
239
|
-
|
|
241
|
+
U({
|
|
240
242
|
p: l.prefix,
|
|
241
243
|
v: l.target,
|
|
242
244
|
s: l.suffix,
|
|
243
245
|
r: e.value.table.td.roundingValue
|
|
244
246
|
})
|
|
245
247
|
),
|
|
246
|
-
...l.values.map((
|
|
248
|
+
...l.values.map((n, d) => `${Te(
|
|
247
249
|
l.formatter,
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
)} (${isNaN(
|
|
251
|
-
v:
|
|
250
|
+
n,
|
|
251
|
+
U({ p: f.value[d].prefix, v: n, s: f.value[d].suffix, r: e.value.table.td.roundingValue })
|
|
252
|
+
)} (${isNaN(n / l.target) ? "" : U({
|
|
253
|
+
v: n / l.target * 100,
|
|
252
254
|
s: "%",
|
|
253
255
|
r: e.value.table.td.roundingPercentage
|
|
254
256
|
})})`)
|
|
@@ -266,89 +268,102 @@ const gt = ["id"], ft = ["xmlns", "viewBox"], yt = ["id"], mt = ["stop-color"],
|
|
|
266
268
|
breakpoint: e.value.table.responsiveBreakpoint
|
|
267
269
|
};
|
|
268
270
|
return { head: t, body: a, config: o, colNames: t };
|
|
269
|
-
}),
|
|
270
|
-
function
|
|
271
|
-
|
|
271
|
+
}), D = u(null), q = u([]), H = u(null);
|
|
272
|
+
function Ue(t, a) {
|
|
273
|
+
q.value = [], D.value = a, W.value = !0;
|
|
272
274
|
let o = "";
|
|
273
|
-
|
|
275
|
+
H.value = {
|
|
274
276
|
datapoint: t,
|
|
275
277
|
seriesIndex: a,
|
|
276
278
|
series: {
|
|
277
|
-
categories:
|
|
279
|
+
categories: f.value,
|
|
278
280
|
datapoints: b.value,
|
|
279
281
|
radar: C.value
|
|
280
282
|
},
|
|
281
283
|
config: e.value
|
|
282
284
|
};
|
|
283
285
|
const l = e.value.style.chart.tooltip.customFormat;
|
|
284
|
-
if (
|
|
286
|
+
if (tt(l) && at(() => l({
|
|
285
287
|
seriesIndex: a,
|
|
286
288
|
datapoint: t,
|
|
287
|
-
series: { categories:
|
|
289
|
+
series: { categories: f.value, datapoints: b.value, radar: C.value },
|
|
288
290
|
config: e.value
|
|
289
291
|
})))
|
|
290
|
-
|
|
292
|
+
X.value = l({
|
|
291
293
|
seriesIndex: a,
|
|
292
294
|
datapoint: t,
|
|
293
|
-
series: { categories:
|
|
295
|
+
series: { categories: f.value, datapoints: b.value, radar: C.value },
|
|
294
296
|
config: e.value
|
|
295
297
|
});
|
|
296
298
|
else {
|
|
297
299
|
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:
|
|
300
|
+
for (let n = 0; n < t.values.length; n += 1)
|
|
301
|
+
c.value.includes(n) || q.value.push({
|
|
302
|
+
name: f.value[n].name,
|
|
303
|
+
value: t.values[n] / t.target * 100,
|
|
304
|
+
color: f.value[n].color,
|
|
303
305
|
suffix: "%)",
|
|
304
|
-
prefix: `${
|
|
306
|
+
prefix: `${U({ p: f.value[n].prefix ?? "", v: t.values[n], s: f.value[n].suffix ?? "", r: e.value.style.chart.tooltip.roundingValue })} (`,
|
|
305
307
|
rounding: e.value.style.chart.tooltip.roundingPercentage,
|
|
306
308
|
formatter: t.formatter
|
|
307
309
|
});
|
|
308
|
-
|
|
310
|
+
X.value = o;
|
|
309
311
|
}
|
|
310
312
|
}
|
|
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
|
-
|
|
313
|
+
function be() {
|
|
314
|
+
Xe(() => {
|
|
315
|
+
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, Ut) => [d.name, d.target, ...d.values.flatMap((K) => [
|
|
316
|
+
K,
|
|
317
|
+
isNaN(K / d.target) ? "" : K / d.target * 100
|
|
318
|
+
])]), l = t.concat([a]).concat(o), n = ot(l);
|
|
319
|
+
lt({ csvContent: n, title: e.value.style.chart.title.text || "vue-ui-radar" });
|
|
318
320
|
});
|
|
319
321
|
}
|
|
320
|
-
const L =
|
|
321
|
-
function
|
|
322
|
-
L.value = t,
|
|
322
|
+
const L = u(!1);
|
|
323
|
+
function Ee(t) {
|
|
324
|
+
L.value = t, te.value += 1;
|
|
323
325
|
}
|
|
324
|
-
function
|
|
326
|
+
function ke() {
|
|
325
327
|
k.value.showTable = !k.value.showTable;
|
|
326
328
|
}
|
|
327
|
-
function
|
|
329
|
+
function Ce() {
|
|
328
330
|
k.value.showTooltip = !k.value.showTooltip;
|
|
329
331
|
}
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
332
|
+
const G = u(!1);
|
|
333
|
+
function J() {
|
|
334
|
+
G.value = !G.value;
|
|
335
|
+
}
|
|
336
|
+
return Ne({
|
|
337
|
+
getData: ze,
|
|
338
|
+
generatePdf: ve,
|
|
339
|
+
generateCsv: be,
|
|
340
|
+
generateImage: pe,
|
|
341
|
+
toggleTable: ke,
|
|
342
|
+
toggleTooltip: Ce,
|
|
343
|
+
toggleAnnotator: J
|
|
344
|
+
}), (t, a) => (r(), s("div", {
|
|
338
345
|
class: z(`vue-ui-radar ${L.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
339
346
|
ref_key: "radarChart",
|
|
340
347
|
ref: A,
|
|
341
348
|
id: `vue-ui-radar_${_.value}`,
|
|
342
|
-
style:
|
|
349
|
+
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
350
|
}, [
|
|
344
|
-
e.value.
|
|
351
|
+
e.value.userOptions.buttons.annotator ? (r(), w(yt, {
|
|
345
352
|
key: 0,
|
|
353
|
+
parent: A.value,
|
|
354
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
355
|
+
color: e.value.style.chart.color,
|
|
356
|
+
active: G.value,
|
|
357
|
+
onClose: J
|
|
358
|
+
}, null, 8, ["parent", "backgroundColor", "color", "active"])) : h("", !0),
|
|
359
|
+
e.value.style.chart.title.text ? (r(), s("div", {
|
|
360
|
+
key: 1,
|
|
346
361
|
ref_key: "chartTitle",
|
|
347
|
-
ref:
|
|
362
|
+
ref: ae,
|
|
348
363
|
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
349
364
|
}, [
|
|
350
|
-
(
|
|
351
|
-
key: `title_${
|
|
365
|
+
(r(), w(st, {
|
|
366
|
+
key: `title_${re.value}`,
|
|
352
367
|
config: {
|
|
353
368
|
title: {
|
|
354
369
|
cy: "radar-div-title",
|
|
@@ -360,15 +375,15 @@ const gt = ["id"], ft = ["xmlns", "viewBox"], yt = ["id"], mt = ["stop-color"],
|
|
|
360
375
|
}
|
|
361
376
|
}
|
|
362
377
|
}, null, 8, ["config"]))
|
|
363
|
-
], 512)) :
|
|
364
|
-
e.value.userOptions.show && F.value ? (
|
|
378
|
+
], 512)) : h("", !0),
|
|
379
|
+
e.value.userOptions.show && F.value ? (r(), w(it, {
|
|
365
380
|
ref_key: "details",
|
|
366
|
-
ref:
|
|
367
|
-
key: `user_options_${
|
|
381
|
+
ref: Ie,
|
|
382
|
+
key: `user_options_${te.value}`,
|
|
368
383
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
369
384
|
color: e.value.style.chart.color,
|
|
370
|
-
isImaging:
|
|
371
|
-
isPrinting:
|
|
385
|
+
isImaging: g(de),
|
|
386
|
+
isPrinting: g(ce),
|
|
372
387
|
uid: _.value,
|
|
373
388
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
374
389
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -381,13 +396,16 @@ const gt = ["id"], ft = ["xmlns", "viewBox"], yt = ["id"], mt = ["stop-color"],
|
|
|
381
396
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
382
397
|
chartElement: A.value,
|
|
383
398
|
position: e.value.userOptions.position,
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
399
|
+
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
400
|
+
isAnnotation: G.value,
|
|
401
|
+
onToggleFullscreen: Ee,
|
|
402
|
+
onGeneratePdf: g(ve),
|
|
403
|
+
onGenerateCsv: be,
|
|
404
|
+
onGenerateImage: g(pe),
|
|
405
|
+
onToggleTable: ke,
|
|
406
|
+
onToggleTooltip: Ce,
|
|
407
|
+
onToggleAnnotator: J
|
|
408
|
+
}, We({ _: 2 }, [
|
|
391
409
|
t.$slots.optionTooltip ? {
|
|
392
410
|
name: "optionTooltip",
|
|
393
411
|
fn: y(() => [
|
|
@@ -426,21 +444,28 @@ const gt = ["id"], ft = ["xmlns", "viewBox"], yt = ["id"], mt = ["stop-color"],
|
|
|
426
444
|
t.$slots.optionFullscreen ? {
|
|
427
445
|
name: "optionFullscreen",
|
|
428
446
|
fn: y(({ toggleFullscreen: o, isFullscreen: l }) => [
|
|
429
|
-
m(t.$slots, "optionFullscreen",
|
|
447
|
+
m(t.$slots, "optionFullscreen", R(M({ toggleFullscreen: o, isFullscreen: l })), void 0, !0)
|
|
430
448
|
]),
|
|
431
449
|
key: "5"
|
|
450
|
+
} : void 0,
|
|
451
|
+
t.$slots.optionAnnotator ? {
|
|
452
|
+
name: "optionAnnotator",
|
|
453
|
+
fn: y(({ toggleAnnotator: o, isAnnotator: l }) => [
|
|
454
|
+
m(t.$slots, "optionAnnotator", R(M({ toggleAnnotator: o, isAnnotator: l })), void 0, !0)
|
|
455
|
+
]),
|
|
456
|
+
key: "6"
|
|
432
457
|
} : 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:
|
|
458
|
+
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage"])) : h("", !0),
|
|
459
|
+
F.value ? (r(), s("svg", {
|
|
460
|
+
key: 3,
|
|
461
|
+
xmlns: g(Ze),
|
|
437
462
|
class: z({ "vue-data-ui-fullscreen--on": L.value, "vue-data-ui-fulscreen--off": !L.value }),
|
|
438
|
-
viewBox: `0 0 ${
|
|
439
|
-
style:
|
|
463
|
+
viewBox: `0 0 ${i.value.width <= 0 ? 10 : i.value.width} ${i.value.height <= 0 ? 10 : i.value.height}`,
|
|
464
|
+
style: Q(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
440
465
|
}, [
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
(
|
|
466
|
+
Z(ft),
|
|
467
|
+
$("defs", null, [
|
|
468
|
+
(r(!0), s(P, null, T(f.value, (o, l) => (r(), s("radialGradient", {
|
|
444
469
|
cx: "50%",
|
|
445
470
|
cy: "50%",
|
|
446
471
|
r: "50%",
|
|
@@ -448,102 +473,102 @@ const gt = ["id"], ft = ["xmlns", "viewBox"], yt = ["id"], mt = ["stop-color"],
|
|
|
448
473
|
fy: "50%",
|
|
449
474
|
id: `radar_gradient_${_.value}_${l}`
|
|
450
475
|
}, [
|
|
451
|
-
|
|
476
|
+
$("stop", {
|
|
452
477
|
offset: "0%",
|
|
453
|
-
"stop-color":
|
|
454
|
-
}, null, 8,
|
|
455
|
-
|
|
478
|
+
"stop-color": g(ee)(g(et)(o.color, 0.05), e.value.style.chart.layout.dataPolygon.opacity)
|
|
479
|
+
}, null, 8, _t),
|
|
480
|
+
$("stop", {
|
|
456
481
|
offset: "100%",
|
|
457
|
-
"stop-color":
|
|
458
|
-
}, null, 8,
|
|
459
|
-
], 8,
|
|
482
|
+
"stop-color": g(ee)(o.color, e.value.style.chart.layout.dataPolygon.opacity)
|
|
483
|
+
}, null, 8, wt)
|
|
484
|
+
], 8, Ct))), 256))
|
|
460
485
|
]),
|
|
461
|
-
e.value.style.chart.layout.grid.show ? (
|
|
462
|
-
(
|
|
463
|
-
x1:
|
|
464
|
-
y1:
|
|
486
|
+
e.value.style.chart.layout.grid.show ? (r(), s("g", $t, [
|
|
487
|
+
(r(!0), s(P, null, T(C.value, (o) => (r(), s("line", {
|
|
488
|
+
x1: i.value.width / 2,
|
|
489
|
+
y1: i.value.height / 2,
|
|
465
490
|
x2: o.x,
|
|
466
491
|
y2: o.y,
|
|
467
492
|
stroke: e.value.style.chart.layout.grid.stroke,
|
|
468
493
|
"stroke-width": e.value.style.chart.layout.grid.strokeWidth
|
|
469
|
-
}, null, 8,
|
|
470
|
-
e.value.style.chart.layout.grid.graduations > 0 ? (
|
|
471
|
-
(
|
|
472
|
-
d:
|
|
473
|
-
plot: { x:
|
|
494
|
+
}, null, 8, Pt))), 256)),
|
|
495
|
+
e.value.style.chart.layout.grid.graduations > 0 ? (r(), s("g", Tt, [
|
|
496
|
+
(r(!0), s(P, null, T(Re.value, (o) => (r(), s("path", {
|
|
497
|
+
d: g(Pe)({
|
|
498
|
+
plot: { x: i.value.width / 2, y: i.value.height / 2 },
|
|
474
499
|
radius: o,
|
|
475
|
-
sides:
|
|
500
|
+
sides: ye.value,
|
|
476
501
|
rotation: 0
|
|
477
502
|
}).path,
|
|
478
503
|
fill: "none",
|
|
479
504
|
stroke: e.value.style.chart.layout.grid.stroke,
|
|
480
505
|
"stroke-width": e.value.style.chart.layout.grid.strokeWidth
|
|
481
|
-
}, null, 8,
|
|
482
|
-
])) :
|
|
483
|
-
])) :
|
|
484
|
-
|
|
485
|
-
d:
|
|
506
|
+
}, null, 8, xt))), 256))
|
|
507
|
+
])) : h("", !0)
|
|
508
|
+
])) : h("", !0),
|
|
509
|
+
$("path", {
|
|
510
|
+
d: me.value.path,
|
|
486
511
|
fill: "none",
|
|
487
512
|
stroke: e.value.style.chart.layout.outerPolygon.stroke,
|
|
488
513
|
"stroke-width": e.value.style.chart.layout.outerPolygon.strokeWidth,
|
|
489
514
|
"stroke-linejoin": "round",
|
|
490
515
|
"stroke-linecap": "round"
|
|
491
|
-
}, null, 8,
|
|
492
|
-
e.value.style.chart.layout.labels.dataLabels.show ? (
|
|
493
|
-
(
|
|
494
|
-
x:
|
|
495
|
-
y:
|
|
496
|
-
"text-anchor":
|
|
516
|
+
}, null, 8, At),
|
|
517
|
+
e.value.style.chart.layout.labels.dataLabels.show ? (r(), s("g", Ot, [
|
|
518
|
+
(r(!0), s(P, null, T(C.value, (o, l) => (r(), s("text", {
|
|
519
|
+
x: j(o).x,
|
|
520
|
+
y: j(o).y,
|
|
521
|
+
"text-anchor": j(o).anchor,
|
|
497
522
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
498
523
|
fill: e.value.style.chart.layout.labels.dataLabels.color,
|
|
499
|
-
onMouseenter: (
|
|
500
|
-
onMouseleave: a[0] || (a[0] = (
|
|
501
|
-
|
|
524
|
+
onMouseenter: (n) => Ue(o, l),
|
|
525
|
+
onMouseleave: a[0] || (a[0] = (n) => {
|
|
526
|
+
W.value = !1, D.value = null;
|
|
502
527
|
})
|
|
503
|
-
},
|
|
504
|
-
])) :
|
|
505
|
-
(
|
|
506
|
-
|
|
507
|
-
e.value.useCssAnimation || !e.value.useCssAnimation && !c.value.includes(l) ? (
|
|
528
|
+
}, V(o.name), 41, Nt))), 256))
|
|
529
|
+
])) : h("", !0),
|
|
530
|
+
(r(!0), s(P, null, T(f.value, (o, l) => (r(), s("g", null, [
|
|
531
|
+
$("g", null, [
|
|
532
|
+
e.value.useCssAnimation || !e.value.useCssAnimation && !c.value.includes(l) ? (r(), s("polygon", {
|
|
508
533
|
key: 0,
|
|
509
534
|
"data-cy-radar-path": "",
|
|
510
|
-
points:
|
|
535
|
+
points: g(xe)(C.value.map((n) => n.plots[l]), !1, !0),
|
|
511
536
|
stroke: e.value.style.chart.backgroundColor,
|
|
512
537
|
"stroke-width": e.value.style.chart.layout.dataPolygon.strokeWidth + 1,
|
|
513
538
|
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) ? (
|
|
539
|
+
class: z({ "animated-out": c.value.includes(l) && e.value.useCssAnimation, "animated-in": O.value && I.value === l && e.value.useCssAnimation })
|
|
540
|
+
}, null, 10, St)) : h("", !0),
|
|
541
|
+
e.value.useCssAnimation || !e.value.useCssAnimation && !c.value.includes(l) ? (r(), s("polygon", {
|
|
517
542
|
key: 1,
|
|
518
543
|
"data-cy-radar-path": "",
|
|
519
|
-
points:
|
|
544
|
+
points: g(xe)(C.value.map((n) => n.plots[l]), !1, !0),
|
|
520
545
|
stroke: o.color,
|
|
521
546
|
"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})` :
|
|
523
|
-
class: z({ "animated-out": c.value.includes(l) && e.value.useCssAnimation, "animated-in":
|
|
524
|
-
}, null, 10,
|
|
547
|
+
fill: e.value.style.chart.layout.dataPolygon.transparent ? "transparent" : e.value.style.chart.layout.dataPolygon.useGradient ? `url(#radar_gradient_${_.value}_${l})` : g(ee)(o.color, e.value.style.chart.layout.dataPolygon.opacity),
|
|
548
|
+
class: z({ "animated-out": c.value.includes(l) && e.value.useCssAnimation, "animated-in": O.value && I.value === l && e.value.useCssAnimation })
|
|
549
|
+
}, null, 10, Ft)) : h("", !0)
|
|
525
550
|
])
|
|
526
551
|
]))), 256)),
|
|
527
|
-
e.value.style.chart.layout.plots.show ? (
|
|
528
|
-
(
|
|
529
|
-
(
|
|
530
|
-
cx:
|
|
531
|
-
cy:
|
|
532
|
-
fill: c.value.includes(d) ? "transparent" :
|
|
533
|
-
r:
|
|
552
|
+
e.value.style.chart.layout.plots.show ? (r(), s("g", It, [
|
|
553
|
+
(r(!0), s(P, null, T(C.value, (o, l) => (r(), s("g", null, [
|
|
554
|
+
(r(!0), s(P, null, T(o.plots, (n, d) => (r(), s("circle", {
|
|
555
|
+
cx: n.x,
|
|
556
|
+
cy: n.y,
|
|
557
|
+
fill: c.value.includes(d) ? "transparent" : f.value[d].color,
|
|
558
|
+
r: D.value !== null && D.value === l ? e.value.style.chart.layout.plots.radius * 1.6 : e.value.style.chart.layout.plots.radius,
|
|
534
559
|
stroke: c.value.includes(d) ? "transparent" : e.value.style.chart.backgroundColor,
|
|
535
560
|
"stroke-width": 0.5,
|
|
536
|
-
class: z({ "animated-out": c.value.includes(d) && e.value.useCssAnimation, "animated-in":
|
|
537
|
-
}, null, 10,
|
|
561
|
+
class: z({ "animated-out": c.value.includes(d) && e.value.useCssAnimation, "animated-in": O.value && I.value === d && e.value.useCssAnimation })
|
|
562
|
+
}, null, 10, Lt))), 256))
|
|
538
563
|
]))), 256))
|
|
539
|
-
])) :
|
|
540
|
-
m(t.$slots, "svg", { svg:
|
|
541
|
-
], 14,
|
|
542
|
-
t.$slots.watermark ? (
|
|
543
|
-
m(t.$slots, "watermark",
|
|
544
|
-
])) :
|
|
545
|
-
F.value ?
|
|
546
|
-
key:
|
|
564
|
+
])) : h("", !0),
|
|
565
|
+
m(t.$slots, "svg", { svg: i.value }, void 0, !0)
|
|
566
|
+
], 14, kt)) : h("", !0),
|
|
567
|
+
t.$slots.watermark ? (r(), s("div", zt, [
|
|
568
|
+
m(t.$slots, "watermark", R(M({ isPrinting: g(ce) || g(de) })), void 0, !0)
|
|
569
|
+
])) : h("", !0),
|
|
570
|
+
F.value ? h("", !0) : (r(), w(ht, {
|
|
571
|
+
key: 5,
|
|
547
572
|
config: {
|
|
548
573
|
type: "radar",
|
|
549
574
|
style: {
|
|
@@ -559,26 +584,26 @@ const gt = ["id"], ft = ["xmlns", "viewBox"], yt = ["id"], mt = ["stop-color"],
|
|
|
559
584
|
}
|
|
560
585
|
}
|
|
561
586
|
}, null, 8, ["config"])),
|
|
562
|
-
|
|
587
|
+
$("div", {
|
|
563
588
|
ref_key: "chartLegend",
|
|
564
|
-
ref:
|
|
589
|
+
ref: oe
|
|
565
590
|
}, [
|
|
566
|
-
e.value.style.chart.legend.show ? (
|
|
567
|
-
key: `legend_${
|
|
591
|
+
e.value.style.chart.legend.show ? (r(), w(vt, {
|
|
592
|
+
key: `legend_${se.value}`,
|
|
568
593
|
legendSet: N.value,
|
|
569
|
-
config:
|
|
570
|
-
onClickMarker: a[1] || (a[1] = ({ i: o }) =>
|
|
594
|
+
config: Ve.value,
|
|
595
|
+
onClickMarker: a[1] || (a[1] = ({ i: o }) => ge(o))
|
|
571
596
|
}, {
|
|
572
597
|
item: y(({ legend: o, index: l }) => [
|
|
573
|
-
|
|
598
|
+
$("div", {
|
|
574
599
|
"data-cy-legend-item": "",
|
|
575
|
-
onClick: (
|
|
576
|
-
style:
|
|
577
|
-
},
|
|
600
|
+
onClick: (n) => o.segregate(),
|
|
601
|
+
style: Q(`opacity:${c.value.includes(l) ? 0.5 : 1}`)
|
|
602
|
+
}, V(o.name) + ": " + V(g(U)({
|
|
578
603
|
v: o.totalProportion * 100,
|
|
579
604
|
s: "%",
|
|
580
605
|
r: e.value.style.chart.legend.roundingPercentage
|
|
581
|
-
})), 13,
|
|
606
|
+
})), 13, Rt)
|
|
582
607
|
]),
|
|
583
608
|
_: 1
|
|
584
609
|
}, 8, ["legendSet", "config"])) : m(t.$slots, "legend", {
|
|
@@ -586,8 +611,16 @@ const gt = ["id"], ft = ["xmlns", "viewBox"], yt = ["id"], mt = ["stop-color"],
|
|
|
586
611
|
legend: N.value
|
|
587
612
|
}, void 0, !0)
|
|
588
613
|
], 512),
|
|
589
|
-
|
|
590
|
-
|
|
614
|
+
t.$slots.source ? (r(), s("div", {
|
|
615
|
+
key: 6,
|
|
616
|
+
ref_key: "source",
|
|
617
|
+
ref: le,
|
|
618
|
+
dir: "auto"
|
|
619
|
+
}, [
|
|
620
|
+
m(t.$slots, "source", {}, void 0, !0)
|
|
621
|
+
], 512)) : h("", !0),
|
|
622
|
+
Z(ct, {
|
|
623
|
+
show: k.value.showTooltip && W.value,
|
|
591
624
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
592
625
|
color: e.value.style.chart.tooltip.color,
|
|
593
626
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -598,26 +631,26 @@ const gt = ["id"], ft = ["xmlns", "viewBox"], yt = ["id"], mt = ["stop-color"],
|
|
|
598
631
|
position: e.value.style.chart.tooltip.position,
|
|
599
632
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
600
633
|
parent: A.value,
|
|
601
|
-
content:
|
|
634
|
+
content: X.value,
|
|
602
635
|
isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function"
|
|
603
636
|
}, {
|
|
604
637
|
"tooltip-before": y(() => [
|
|
605
|
-
m(t.$slots, "tooltip-before",
|
|
638
|
+
m(t.$slots, "tooltip-before", R(M({ ...H.value })), void 0, !0)
|
|
606
639
|
]),
|
|
607
640
|
"tooltip-after": y(() => [
|
|
608
|
-
["function"].includes(typeof e.value.style.chart.tooltip.customFormat) ?
|
|
609
|
-
|
|
610
|
-
dataset:
|
|
611
|
-
config:
|
|
641
|
+
["function"].includes(typeof e.value.style.chart.tooltip.customFormat) ? h("", !0) : (r(), s("div", Mt, [
|
|
642
|
+
Z(dt, {
|
|
643
|
+
dataset: q.value,
|
|
644
|
+
config: Le.value,
|
|
612
645
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity
|
|
613
646
|
}, null, 8, ["dataset", "config", "backgroundOpacity"])
|
|
614
647
|
])),
|
|
615
|
-
m(t.$slots, "tooltip-after",
|
|
648
|
+
m(t.$slots, "tooltip-after", R(M({ ...H.value })), void 0, !0)
|
|
616
649
|
]),
|
|
617
650
|
_: 3
|
|
618
651
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "fontSize", "position", "offsetY", "parent", "content", "isCustom"]),
|
|
619
|
-
F.value ? (
|
|
620
|
-
key:
|
|
652
|
+
F.value ? (r(), w(gt, {
|
|
653
|
+
key: 7,
|
|
621
654
|
hideDetails: "",
|
|
622
655
|
config: {
|
|
623
656
|
open: k.value.showTable,
|
|
@@ -633,29 +666,29 @@ const gt = ["id"], ft = ["xmlns", "viewBox"], yt = ["id"], mt = ["stop-color"],
|
|
|
633
666
|
}
|
|
634
667
|
}, {
|
|
635
668
|
content: y(() => [
|
|
636
|
-
(
|
|
637
|
-
key: `table_${
|
|
638
|
-
colNames:
|
|
639
|
-
head:
|
|
640
|
-
body:
|
|
641
|
-
config:
|
|
669
|
+
(r(), w(pt, {
|
|
670
|
+
key: `table_${ne.value}`,
|
|
671
|
+
colNames: B.value.colNames,
|
|
672
|
+
head: B.value.head,
|
|
673
|
+
body: B.value.body,
|
|
674
|
+
config: B.value.config,
|
|
642
675
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
643
676
|
onClose: a[2] || (a[2] = (o) => k.value.showTable = !1)
|
|
644
677
|
}, {
|
|
645
678
|
th: y(({ th: o }) => [
|
|
646
|
-
|
|
679
|
+
_e(V(o.name), 1)
|
|
647
680
|
]),
|
|
648
681
|
td: y(({ td: o }) => [
|
|
649
|
-
|
|
682
|
+
_e(V(o), 1)
|
|
650
683
|
]),
|
|
651
684
|
_: 1
|
|
652
685
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
653
686
|
]),
|
|
654
687
|
_: 1
|
|
655
|
-
}, 8, ["config"])) :
|
|
656
|
-
], 14,
|
|
688
|
+
}, 8, ["config"])) : h("", !0)
|
|
689
|
+
], 14, bt));
|
|
657
690
|
}
|
|
658
|
-
},
|
|
691
|
+
}, ta = /* @__PURE__ */ mt(Vt, [["__scopeId", "data-v-f0bd4098"]]);
|
|
659
692
|
export {
|
|
660
|
-
|
|
693
|
+
ta as default
|
|
661
694
|
};
|