vue-data-ui 2.4.85 → 2.4.87
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/dist/{Arrow-Ajt3NMEa.cjs → Arrow-B6C-c2DT.cjs} +1 -1
- package/dist/{Arrow-Qayb_B0s.js → Arrow-C8PrFeHS.js} +1 -1
- package/dist/{BaseIcon-BVrsMbvi.cjs → BaseIcon-CdOKZmHr.cjs} +1 -1
- package/dist/{BaseIcon-B8U62FEj.js → BaseIcon-plElWres.js} +1 -1
- package/dist/{DataTable-1PQD-SFb.cjs → DataTable-BmKl4AAb.cjs} +1 -1
- package/dist/{DataTable-C0tCPQ9i.js → DataTable-CKke7C6w.js} +2 -2
- package/dist/{Legend-BJ2Wbqut.cjs → Legend-CY6wjCYY.cjs} +1 -1
- package/dist/{Legend-BTpe6qQB.js → Legend-DMeEvZOT.js} +2 -2
- package/dist/{PackageVersion-BjfedMsH.cjs → PackageVersion-DvDNPRrJ.cjs} +1 -1
- package/dist/{PackageVersion-CENy3Lm2.js → PackageVersion-Rh3rgo6A.js} +1 -1
- package/dist/{PenAndPaper-nqRtAh6J.cjs → PenAndPaper--xHLJRME.cjs} +1 -1
- package/dist/{PenAndPaper-Dr7ndoP_.js → PenAndPaper-DqVsdeLc.js} +3 -3
- package/dist/{Shape-zFv85Gc2.js → Shape-CL3HglYL.js} +1 -1
- package/dist/{Shape-Boa32JEn.cjs → Shape-DEwnzwRB.cjs} +1 -1
- package/dist/{Slicer-D6QLMg5N.cjs → Slicer-CnNbe-dl.cjs} +1 -1
- package/dist/{Slicer-BUYuk07t.js → Slicer-ZryQKOl5.js} +2 -2
- package/dist/{Title-CaET2xuF.js → Title-BU5Aq1_x.js} +1 -1
- package/dist/{Title-DJUxOiaO.cjs → Title-C10173bN.cjs} +1 -1
- package/dist/{Tooltip-C5QuW94e.cjs → Tooltip-CL7aSMgq.cjs} +1 -1
- package/dist/{Tooltip-Bkc4233T.js → Tooltip-Dm-obTbx.js} +1 -1
- package/dist/{index-COIn1phv.cjs → index-1HOIfTy2.cjs} +1 -1
- package/dist/{index-B7nCQFK0.js → index-BG5J_ybN.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-CbMuGGl3.cjs → useNestedProp-BFNnjpX-.cjs} +1 -1
- package/dist/{useNestedProp-C9rlBRTT.js → useNestedProp-BN1ZmAKT.js} +1 -1
- package/dist/{usePrinter-CQMn1b4E.js → usePrinter-CWeJt84b.js} +1 -1
- package/dist/{usePrinter-CXXfgFFN.cjs → usePrinter-i-j4CdEi.cjs} +1 -1
- package/dist/{vue-data-ui-Bu_VIHgr.cjs → vue-data-ui-549nX1yu.cjs} +1 -1
- package/dist/{vue-data-ui-BnsKGbqb.js → vue-data-ui-B5u9V9lC.js} +60 -60
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-V5FBS9MA.js → vue-ui-3d-bar-DBtozgXL.js} +38 -38
- package/dist/{vue-ui-3d-bar-D39F2dKF.cjs → vue-ui-3d-bar-J7LkJgTZ.cjs} +11 -11
- package/dist/{vue-ui-accordion-CGlnNTr8.cjs → vue-ui-accordion-Cd6GaDwU.cjs} +1 -1
- package/dist/{vue-ui-accordion-B8ptB5BQ.js → vue-ui-accordion-JBOceVq2.js} +3 -3
- package/dist/{vue-ui-age-pyramid-Bjp1R8Ku.js → vue-ui-age-pyramid-BIkYjL8e.js} +29 -29
- package/dist/vue-ui-age-pyramid-DeryBRqg.cjs +1 -0
- package/dist/{vue-ui-annotator-V9m5fTGG.js → vue-ui-annotator-Bt90Iec6.js} +1 -1
- package/dist/{vue-ui-annotator-BoWZZRPg.cjs → vue-ui-annotator-Dw8cVACs.cjs} +1 -1
- package/dist/{vue-ui-bullet-DLIxlhFF.cjs → vue-ui-bullet-BMAYQESQ.cjs} +1 -1
- package/dist/{vue-ui-bullet-Bqvb5PV-.js → vue-ui-bullet-DzosZUYl.js} +8 -8
- package/dist/{vue-ui-candlestick-D4BD8LyJ.cjs → vue-ui-candlestick-BaLnAKB9.cjs} +2 -2
- package/dist/{vue-ui-candlestick-DHCtmsh3.js → vue-ui-candlestick-dTATEFOU.js} +48 -48
- package/dist/{vue-ui-carousel-table-VIuoh2QI.cjs → vue-ui-carousel-table-CWNI7Ri5.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-Cn2RJkSb.js → vue-ui-carousel-table-rMcj65Bo.js} +4 -4
- package/dist/{vue-ui-chestnut-C5qUO1uK.js → vue-ui-chestnut-B_NLFSaY.js} +29 -29
- package/dist/{vue-ui-chestnut-ClG9HZoC.cjs → vue-ui-chestnut-DjOEVM3w.cjs} +2 -2
- package/dist/{vue-ui-cursor-Bo8et-dD.cjs → vue-ui-cursor-CBUwAZd1.cjs} +1 -1
- package/dist/{vue-ui-cursor-eJau3iyr.js → vue-ui-cursor-CTvVj3YO.js} +2 -2
- package/dist/{vue-ui-dashboard-DnaH9bCw.js → vue-ui-dashboard-CG9J3DLT.js} +2 -2
- package/dist/{vue-ui-dashboard-WJqGQ8iR.cjs → vue-ui-dashboard-DcfhPFVi.cjs} +1 -1
- package/dist/{vue-ui-digits-qIckO4-r.cjs → vue-ui-digits-B8lUQcKK.cjs} +1 -1
- package/dist/{vue-ui-digits-Cqjts2eq.js → vue-ui-digits-CF6qbsmO.js} +2 -2
- package/dist/{vue-ui-donut-pprcnbIw.js → vue-ui-donut-Bbkz0M-R.js} +76 -76
- package/dist/vue-ui-donut-CzmOCuxn.cjs +1 -0
- package/dist/{vue-ui-donut-evolution-EzYvP11F.js → vue-ui-donut-evolution-BkE-sAyn.js} +66 -66
- package/dist/vue-ui-donut-evolution-CjFUAKXU.cjs +1 -0
- package/dist/vue-ui-dumbbell-BiHzKPGP.cjs +9 -0
- package/dist/{vue-ui-dumbbell-DaxcxmnU.js → vue-ui-dumbbell-D8JuHhzi.js} +28 -28
- package/dist/vue-ui-flow-CR1Qo5Rt.cjs +1 -0
- package/dist/{vue-ui-flow-DbRgaKBu.js → vue-ui-flow-Cie8iHDK.js} +31 -31
- package/dist/vue-ui-funnel-B8uRuzDx.cjs +1 -0
- package/dist/{vue-ui-funnel-B2del8KB.js → vue-ui-funnel-tW6PGqcE.js} +32 -32
- package/dist/vue-ui-galaxy-BfbYEvnO.cjs +1 -0
- package/dist/{vue-ui-galaxy-pUYeASJf.js → vue-ui-galaxy-p4j0h3ZX.js} +81 -81
- package/dist/{vue-ui-gauge-DpsXpEaW.js → vue-ui-gauge-CtVmazzP.js} +7 -7
- package/dist/{vue-ui-gauge-BOXoAgWk.cjs → vue-ui-gauge-DnTOvr4T.cjs} +1 -1
- package/dist/{vue-ui-gizmo-Bq9uAmqd.cjs → vue-ui-gizmo-BdlVxVqD.cjs} +1 -1
- package/dist/{vue-ui-gizmo-BpYrhkon.js → vue-ui-gizmo-wjZJgWPe.js} +3 -3
- package/dist/{vue-ui-heatmap-Cz6_9Veh.js → vue-ui-heatmap-DJXLmzGL.js} +63 -63
- package/dist/vue-ui-heatmap-Gd3nkwzC.cjs +1 -0
- package/dist/vue-ui-history-plot-CevSrT7E.cjs +1 -0
- package/dist/{vue-ui-history-plot-DAotUjSF.js → vue-ui-history-plot-DJQck-9N.js} +69 -69
- package/dist/{vue-ui-kpi-D6mp6EQ2.cjs → vue-ui-kpi-D8NVXEfO.cjs} +1 -1
- package/dist/{vue-ui-kpi-Ch2p7m-i.js → vue-ui-kpi-MK6JH8yi.js} +3 -3
- package/dist/{vue-ui-mini-loader-E13lmwfO.js → vue-ui-mini-loader-UiC0NYsO.js} +2 -2
- package/dist/{vue-ui-mini-loader-CO-KGVlC.cjs → vue-ui-mini-loader-a8JZaxIy.cjs} +1 -1
- package/dist/vue-ui-molecule-CXgKUNCL.cjs +1 -0
- package/dist/{vue-ui-molecule-C69K6EPO.js → vue-ui-molecule-Cz9zZQ95.js} +155 -155
- package/dist/vue-ui-mood-radar-B-PSds5c.cjs +1 -0
- package/dist/{vue-ui-mood-radar-DDtky572.js → vue-ui-mood-radar-BMMCFkEk.js} +33 -33
- package/dist/{vue-ui-nested-donuts-DMCd6DqT.cjs → vue-ui-nested-donuts-Cdx6UQwF.cjs} +5 -5
- package/dist/{vue-ui-nested-donuts-AYPYIRrE.js → vue-ui-nested-donuts-Da9c-H0Y.js} +147 -147
- package/dist/{vue-ui-onion-Bsa88sKK.js → vue-ui-onion-D1wExDGP.js} +44 -44
- package/dist/{vue-ui-onion-BedLvfFe.cjs → vue-ui-onion-HAS4P8nS.cjs} +2 -2
- package/dist/{vue-ui-parallel-coordinate-plot-KCEb4iRs.js → vue-ui-parallel-coordinate-plot-BH0xKZAE.js} +79 -79
- package/dist/{vue-ui-parallel-coordinate-plot-CSOMIABF.cjs → vue-ui-parallel-coordinate-plot-BYeyzJnE.cjs} +3 -3
- package/dist/{vue-ui-quadrant-Bd_88Eht.js → vue-ui-quadrant-BDkbMaNf.js} +108 -108
- package/dist/vue-ui-quadrant-DbWSZWfP.cjs +1 -0
- package/dist/{vue-ui-quick-chart-CXAYKYHa.js → vue-ui-quick-chart-D3b2YwMY.js} +212 -212
- package/dist/vue-ui-quick-chart-qnbmA75J.cjs +15 -0
- package/dist/{vue-ui-radar-De397oTB.js → vue-ui-radar--Bt67L0i.js} +107 -107
- package/dist/vue-ui-radar-DSZpmaIZ.cjs +1 -0
- package/dist/{vue-ui-rating-wK3_ZWE5.js → vue-ui-rating-Bgr7tvIq.js} +2 -2
- package/dist/{vue-ui-rating-BjiMVoyX.cjs → vue-ui-rating-Z_ANkBeZ.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-BEGyr1h-.cjs → vue-ui-relation-circle-3cgv8yC-.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-BxlK8MVs.js → vue-ui-relation-circle-B22VP_p1.js} +7 -7
- package/dist/{vue-ui-rings-BcNMBXxq.cjs → vue-ui-rings-DZEwaUv5.cjs} +2 -2
- package/dist/{vue-ui-rings-BXrtMSML.js → vue-ui-rings-DgzfAEvJ.js} +66 -66
- package/dist/{vue-ui-scatter-BWZfLJ9P.js → vue-ui-scatter-BwlbShJE.js} +85 -85
- package/dist/vue-ui-scatter-CSI15Dgp.cjs +1 -0
- package/dist/{vue-ui-screenshot-BJgOwFMW.cjs → vue-ui-screenshot-DK2xyINC.cjs} +1 -1
- package/dist/{vue-ui-screenshot-hw4PC9Uu.js → vue-ui-screenshot-Dk0TqQpi.js} +1 -1
- package/dist/{vue-ui-skeleton-BIqMxXV7.cjs → vue-ui-skeleton-CLiDRcQX.cjs} +1 -1
- package/dist/{vue-ui-skeleton-D66ZIUln.js → vue-ui-skeleton-c211TxZ8.js} +3 -3
- package/dist/{vue-ui-smiley-Duy5Xo-j.cjs → vue-ui-smiley-Kr6bQ-7L.cjs} +1 -1
- package/dist/{vue-ui-smiley-DWPYdcDB.js → vue-ui-smiley-hIooew3m.js} +2 -2
- package/dist/{vue-ui-spark-trend-Ce4IaqPz.js → vue-ui-spark-trend-CgpDYM8f.js} +5 -5
- package/dist/{vue-ui-spark-trend-DP5foaNi.cjs → vue-ui-spark-trend-SVqMwS1X.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-Bbns4V16.cjs → vue-ui-sparkbar-DY1J0X8K.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-Fa-Kc9Fr.js → vue-ui-sparkbar-D_HgtfBM.js} +4 -4
- package/dist/{vue-ui-sparkgauge-BrLrvNLH.cjs → vue-ui-sparkgauge-C4p0nAHp.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-DUWcJ7cM.js → vue-ui-sparkgauge-jO5jKAyz.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-PgC-c-5a.js → vue-ui-sparkhistogram-BpQfz14e.js} +5 -5
- package/dist/{vue-ui-sparkhistogram-B0rhs_UN.cjs → vue-ui-sparkhistogram-gSNvSVcP.cjs} +1 -1
- package/dist/{vue-ui-sparkline-BqNlrKjb.js → vue-ui-sparkline-BTgaJjMj.js} +4 -4
- package/dist/{vue-ui-sparkline-c5Awoj8J.cjs → vue-ui-sparkline-D53BDGCi.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-DyJIUulr.js → vue-ui-sparkstackbar-COm1EqFN.js} +5 -5
- package/dist/{vue-ui-sparkstackbar-BmYIcpVZ.cjs → vue-ui-sparkstackbar-DcEhBuvP.cjs} +1 -1
- package/dist/{vue-ui-stackbar-BebRtOYL.js → vue-ui-stackbar-BHyysJyj.js} +51 -51
- package/dist/{vue-ui-stackbar-DJ9NH_l1.cjs → vue-ui-stackbar-D4-vrvMz.cjs} +3 -3
- package/dist/{vue-ui-strip-plot-BGHj1BHd.js → vue-ui-strip-plot-BOLWDlTl.js} +118 -118
- package/dist/vue-ui-strip-plot-iUjpocRA.cjs +1 -0
- package/dist/{vue-ui-table-BFdGppRF.cjs → vue-ui-table-DG3-RAEv.cjs} +1 -1
- package/dist/{vue-ui-table-ClPMKcMn.js → vue-ui-table-XThR7HtD.js} +1 -1
- package/dist/{vue-ui-table-heatmap-B7wTjM-H.cjs → vue-ui-table-heatmap-B82Dmfv2.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-DVQtPt-M.js → vue-ui-table-heatmap-DxWQ3cdf.js} +4 -4
- package/dist/{vue-ui-table-sparkline-DjxKXWQm.js → vue-ui-table-sparkline-BIQAc-eX.js} +5 -5
- package/dist/{vue-ui-table-sparkline-DaKODjfM.cjs → vue-ui-table-sparkline-C3JrSwmi.cjs} +1 -1
- package/dist/{vue-ui-thermometer-CV_9k37V.js → vue-ui-thermometer-Ci0OBAEN.js} +7 -7
- package/dist/{vue-ui-thermometer-DE9r0emf.cjs → vue-ui-thermometer-t1cul6jD.cjs} +1 -1
- package/dist/{vue-ui-timer-Ct-KYWSX.cjs → vue-ui-timer-BLqulQx5.cjs} +1 -1
- package/dist/{vue-ui-timer-2w5Ayq7G.js → vue-ui-timer-CwJoQApu.js} +5 -5
- package/dist/{vue-ui-tiremarks-BJnh0GBj.js → vue-ui-tiremarks-CFVl_w7d.js} +7 -7
- package/dist/{vue-ui-tiremarks-Cf04zARl.cjs → vue-ui-tiremarks-_d9WOe-N.cjs} +1 -1
- package/dist/vue-ui-treemap-BaQFfbqL.cjs +1 -0
- package/dist/{vue-ui-treemap-BD546LBi.js → vue-ui-treemap-BtjPxOzu.js} +108 -108
- package/dist/{vue-ui-vertical-bar-D3QKHHnS.cjs → vue-ui-vertical-bar-BcjM9qCI.cjs} +3 -3
- package/dist/{vue-ui-vertical-bar-E5CTb1Bd.js → vue-ui-vertical-bar-xnQDjCLE.js} +54 -54
- package/dist/{vue-ui-waffle-BAJIMbZK.js → vue-ui-waffle-BMFtG4mh.js} +99 -99
- package/dist/vue-ui-waffle-DGarEDP5.cjs +1 -0
- package/dist/{vue-ui-wheel-CPPLUSFq.js → vue-ui-wheel-DIr8JQt0.js} +7 -7
- package/dist/{vue-ui-wheel-Dy_B7BTG.cjs → vue-ui-wheel-DLFWUmdm.cjs} +1 -1
- package/dist/vue-ui-word-cloud-CDQ4rkP-.cjs +1 -0
- package/dist/{vue-ui-word-cloud-BVZcDY7m.js → vue-ui-word-cloud-CrSkUMkN.js} +81 -81
- package/dist/{vue-ui-xy-tB-6IP2y.js → vue-ui-xy-DPT3SYuU.js} +815 -818
- package/dist/vue-ui-xy-DfnDyl8o.cjs +3 -0
- package/dist/{vue-ui-xy-canvas-DFUfTZwz.js → vue-ui-xy-canvas-C3iMSkvP.js} +35 -35
- package/dist/{vue-ui-xy-canvas-BSZTrqci.cjs → vue-ui-xy-canvas-DEyhDtC-.cjs} +3 -3
- package/package.json +1 -1
- package/dist/vue-ui-age-pyramid-BdseHKUc.cjs +0 -1
- package/dist/vue-ui-donut-BP7yj2DU.cjs +0 -1
- package/dist/vue-ui-donut-evolution-Cz8uFJp8.cjs +0 -1
- package/dist/vue-ui-dumbbell-CYqHCr2S.cjs +0 -9
- package/dist/vue-ui-flow-HeRCplGL.cjs +0 -1
- package/dist/vue-ui-funnel-DxniWNkD.cjs +0 -1
- package/dist/vue-ui-galaxy-BDA64dud.cjs +0 -1
- package/dist/vue-ui-heatmap-CbKgGLtN.cjs +0 -1
- package/dist/vue-ui-history-plot-BoMdvItE.cjs +0 -1
- package/dist/vue-ui-molecule-CeoDnPXB.cjs +0 -1
- package/dist/vue-ui-mood-radar-BwOqQUuT.cjs +0 -1
- package/dist/vue-ui-quadrant-BXQVOvpY.cjs +0 -1
- package/dist/vue-ui-quick-chart-dLItYwM_.cjs +0 -15
- package/dist/vue-ui-radar-BuNtocmn.cjs +0 -1
- package/dist/vue-ui-scatter-DTy3yPVu.cjs +0 -1
- package/dist/vue-ui-strip-plot-f7vejZht.cjs +0 -1
- package/dist/vue-ui-treemap-D0vi4bv4.cjs +0 -1
- package/dist/vue-ui-waffle-BL0e3Yeq.cjs +0 -1
- package/dist/vue-ui-word-cloud-BPoAoeWZ.cjs +0 -1
- package/dist/vue-ui-xy-D4hRtHAi.cjs +0 -3
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { computed as
|
|
2
|
-
import { u as Ke, c as Qe, t as Ze, a as et, p as x, o as tt, e as S, b as at, g as xe, d as Ae, O as Oe, v as ot, i as Fe, f as V, X as lt, s as te, w as rt, P as Ne, x as
|
|
1
|
+
import { computed as p, ref as i, watch as je, onMounted as qe, onBeforeUnmount as He, openBlock as r, createElementBlock as n, normalizeClass as z, normalizeStyle as W, unref as d, createBlock as _, createCommentVNode as c, createSlots as Ye, withCtx as m, renderSlot as f, normalizeProps as M, guardReactiveProps as R, createVNode as ee, createElementVNode as $, Fragment as T, renderList as P, toDisplayString as U, createTextVNode as Pe, nextTick as Je } from "vue";
|
|
2
|
+
import { u as Ke, c as Qe, t as Ze, a as et, p as x, o as tt, e as S, b as at, g as xe, d as Ae, O as Oe, v as ot, i as Fe, f as V, X as lt, s as te, w as rt, P as Ne, x as st, y as nt, q as ut, r as it } from "./index-BG5J_ybN.js";
|
|
3
3
|
import { t as dt, u as ct } from "./useResponsive-CoxXLe23.js";
|
|
4
|
-
import { _ as vt } from "./Title-
|
|
5
|
-
import { u as
|
|
6
|
-
import { _ as gt } from "./Tooltip-
|
|
7
|
-
import ft from "./vue-ui-sparkbar-
|
|
8
|
-
import { L as yt } from "./Legend-
|
|
9
|
-
import { D as mt } from "./DataTable-
|
|
10
|
-
import bt from "./vue-ui-skeleton-
|
|
11
|
-
import kt from "./vue-ui-accordion-
|
|
12
|
-
import { u as Se } from "./useNestedProp-
|
|
13
|
-
import { _ as Ct } from "./PackageVersion-
|
|
14
|
-
import { P as wt } from "./PenAndPaper-
|
|
4
|
+
import { _ as vt } from "./Title-BU5Aq1_x.js";
|
|
5
|
+
import { u as ht, U as pt } from "./usePrinter-CWeJt84b.js";
|
|
6
|
+
import { _ as gt } from "./Tooltip-Dm-obTbx.js";
|
|
7
|
+
import ft from "./vue-ui-sparkbar-D_HgtfBM.js";
|
|
8
|
+
import { L as yt } from "./Legend-DMeEvZOT.js";
|
|
9
|
+
import { D as mt } from "./DataTable-CKke7C6w.js";
|
|
10
|
+
import bt from "./vue-ui-skeleton-c211TxZ8.js";
|
|
11
|
+
import kt from "./vue-ui-accordion-JBOceVq2.js";
|
|
12
|
+
import { u as Se } from "./useNestedProp-BN1ZmAKT.js";
|
|
13
|
+
import { _ as Ct } from "./PackageVersion-Rh3rgo6A.js";
|
|
14
|
+
import { P as wt } from "./PenAndPaper-DqVsdeLc.js";
|
|
15
15
|
import { u as _t } from "./useUserOptionState-BIvW1Kz7.js";
|
|
16
16
|
import { _ as $t } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
17
|
-
const
|
|
17
|
+
const Tt = ["id"], Pt = ["xmlns", "viewBox"], xt = ["width", "height"], At = ["id"], Ot = ["stop-color"], Ft = ["stop-color"], Nt = { key: 1 }, St = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], It = { key: 0 }, Lt = ["d", "stroke", "stroke-width"], zt = ["d", "stroke", "stroke-width"], Mt = { key: 2 }, Rt = ["x", "y", "text-anchor", "font-size", "fill", "onMouseenter"], Ut = ["points", "stroke", "stroke-width"], Vt = ["points", "stroke", "stroke-width", "fill"], Et = { key: 3 }, Bt = ["cx", "cy", "fill", "r", "stroke"], Dt = {
|
|
18
18
|
key: 5,
|
|
19
19
|
class: "vue-data-ui-watermark"
|
|
20
20
|
}, Gt = ["onClick"], Wt = {
|
|
@@ -38,7 +38,7 @@ const Pt = ["id"], Tt = ["xmlns", "viewBox"], xt = ["width", "height"], At = ["i
|
|
|
38
38
|
},
|
|
39
39
|
emits: ["selectLegend"],
|
|
40
40
|
setup(Ie, { expose: Le, emit: ze }) {
|
|
41
|
-
const g = Ie, { vue_ui_radar: Me } = Ke(), I =
|
|
41
|
+
const g = Ie, { vue_ui_radar: Me } = Ke(), I = p(() => !!g.dataset && Object.keys(g.dataset).length), w = i(Qe()), Re = i(null), X = i(!1), j = i(""), ae = i(0), A = i(null), oe = i(null), le = i(null), re = i(null), se = i(null), ne = i(0), ue = i(0), ie = i(0), e = p({
|
|
42
42
|
get: () => ve(),
|
|
43
43
|
set: (t) => t
|
|
44
44
|
}), { userOptionsVisible: q, setUserOptionsVisibility: de, keepUserOptionState: ce } = _t({ config: e.value });
|
|
@@ -56,10 +56,10 @@ const Pt = ["id"], Tt = ["xmlns", "viewBox"], xt = ["width", "height"], At = ["i
|
|
|
56
56
|
} : t;
|
|
57
57
|
}
|
|
58
58
|
je(() => g.config, (t) => {
|
|
59
|
-
e.value = ve(), q.value = !e.value.showOnChartHover,
|
|
59
|
+
e.value = ve(), q.value = !e.value.showOnChartHover, he(), ne.value += 1, ue.value += 1, ie.value += 1, b.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, b.value.showTable = e.value.table.show, b.value.showTooltip = e.value.style.chart.tootlip.show;
|
|
60
60
|
}, { deep: !0 });
|
|
61
61
|
const E = i(null);
|
|
62
|
-
function
|
|
62
|
+
function he() {
|
|
63
63
|
if (tt(g.dataset) && S({
|
|
64
64
|
componentName: "VueUiRadar",
|
|
65
65
|
type: "dataset"
|
|
@@ -70,7 +70,7 @@ const Pt = ["id"], Tt = ["xmlns", "viewBox"], xt = ["width", "height"], At = ["i
|
|
|
70
70
|
title: e.value.style.chart.title.text ? oe.value : null,
|
|
71
71
|
legend: e.value.style.chart.legend.show ? le.value : null,
|
|
72
72
|
source: re.value,
|
|
73
|
-
noTitle:
|
|
73
|
+
noTitle: se.value
|
|
74
74
|
});
|
|
75
75
|
requestAnimationFrame(() => {
|
|
76
76
|
u.value.width = a, u.value.height = o;
|
|
@@ -80,20 +80,20 @@ const Pt = ["id"], Tt = ["xmlns", "viewBox"], xt = ["width", "height"], At = ["i
|
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
82
|
qe(() => {
|
|
83
|
-
|
|
83
|
+
he();
|
|
84
84
|
}), He(() => {
|
|
85
85
|
E.value && E.value.disconnect();
|
|
86
86
|
});
|
|
87
|
-
const { isPrinting:
|
|
87
|
+
const { isPrinting: pe, isImaging: ge, generatePdf: fe, generateImage: ye } = ht({
|
|
88
88
|
elementId: `vue-ui-radar_${w.value}`,
|
|
89
89
|
fileName: e.value.style.chart.title.text || "vue-ui-radar"
|
|
90
|
-
}), Ue =
|
|
90
|
+
}), Ue = p(() => e.value.userOptions.show && !e.value.style.chart.title.text), me = p(() => at(e.value.customPalette)), b = i({
|
|
91
91
|
dataLabels: {
|
|
92
92
|
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
93
93
|
},
|
|
94
94
|
showTable: e.value.table.show,
|
|
95
95
|
showTooltip: e.value.style.chart.tooltip.show
|
|
96
|
-
}), Ve =
|
|
96
|
+
}), Ve = p(() => ({
|
|
97
97
|
style: {
|
|
98
98
|
backgroundColor: "#FFFFFF00",
|
|
99
99
|
animation: {
|
|
@@ -133,7 +133,7 @@ const Pt = ["id"], Tt = ["xmlns", "viewBox"], xt = ["width", "height"], At = ["i
|
|
|
133
133
|
proportion: t.totalProportion
|
|
134
134
|
}));
|
|
135
135
|
}
|
|
136
|
-
const y =
|
|
136
|
+
const y = p(() => [null, void 0].includes(g.dataset.categories) ? (S({
|
|
137
137
|
componentName: "VueUiRadar",
|
|
138
138
|
type: "datasetAttribute",
|
|
139
139
|
property: "categories ({ name: string; prefix?: string; suffix?: string}[])"
|
|
@@ -176,32 +176,32 @@ const Pt = ["id"], Tt = ["xmlns", "viewBox"], xt = ["width", "height"], At = ["i
|
|
|
176
176
|
color: Ae(t.color) || me.value[a] || x[a] || x[a % x.length],
|
|
177
177
|
prefix: t.prefix ?? "",
|
|
178
178
|
suffix: t.suffix ?? ""
|
|
179
|
-
})))),
|
|
179
|
+
})))), k = p(() => I.value ? g.dataset.series.map((t, a) => ({
|
|
180
180
|
...t,
|
|
181
181
|
color: Ae(t.color) || me.value[a] || x[a] || x[a % x.length],
|
|
182
182
|
serieId: `radar_serie_${w.value}_${a}`,
|
|
183
183
|
formatter: t.formatter || null
|
|
184
|
-
})) : []), ke =
|
|
184
|
+
})) : []), ke = p(() => Math.max(...k.value.flatMap((t) => t.values))), Ce = p(() => k.value.length), H = p(() => Math.min(u.value.width, u.value.height) / 3), we = p(() => Oe({
|
|
185
185
|
plot: { x: u.value.width / 2, y: u.value.height / 2 },
|
|
186
186
|
radius: H.value,
|
|
187
187
|
sides: Ce.value,
|
|
188
188
|
rotation: 0
|
|
189
|
-
})), Be =
|
|
189
|
+
})), Be = p(() => {
|
|
190
190
|
const t = [];
|
|
191
191
|
for (let a = 0; a < H.value; a += H.value / e.value.style.chart.layout.grid.graduations)
|
|
192
192
|
t.push(a);
|
|
193
193
|
return t;
|
|
194
|
-
}), C =
|
|
195
|
-
const o =
|
|
194
|
+
}), C = p(() => we.value.coordinates.map((t, a) => {
|
|
195
|
+
const o = k.value[a].values.map((l) => De({
|
|
196
196
|
centerX: u.value.width / 2,
|
|
197
197
|
centerY: u.value.height / 2,
|
|
198
198
|
apexX: t.x,
|
|
199
199
|
apexY: t.y,
|
|
200
|
-
proportion: l / (
|
|
200
|
+
proportion: l / (k.value[a].target || ke.value)
|
|
201
201
|
}));
|
|
202
202
|
return {
|
|
203
203
|
...t,
|
|
204
|
-
...
|
|
204
|
+
...k.value[a],
|
|
205
205
|
plots: o
|
|
206
206
|
};
|
|
207
207
|
}));
|
|
@@ -209,30 +209,30 @@ const Pt = ["id"], Tt = ["xmlns", "viewBox"], xt = ["width", "height"], At = ["i
|
|
|
209
209
|
let o = "middle";
|
|
210
210
|
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 };
|
|
211
211
|
}
|
|
212
|
-
function De({ centerX: t, centerY: a, apexX: o, apexY: l, proportion:
|
|
212
|
+
function De({ centerX: t, centerY: a, apexX: o, apexY: l, proportion: s }) {
|
|
213
213
|
return {
|
|
214
|
-
x: t + (o - t) *
|
|
215
|
-
y: a + (l - a) *
|
|
214
|
+
x: t + (o - t) * s,
|
|
215
|
+
y: a + (l - a) * s
|
|
216
216
|
};
|
|
217
217
|
}
|
|
218
|
-
const F =
|
|
219
|
-
const t =
|
|
218
|
+
const F = p(() => {
|
|
219
|
+
const t = k.value.map((a, o) => a.values.map((l) => l / (a.target || ke.value)));
|
|
220
220
|
return y.value.map((a, o) => ({
|
|
221
221
|
...a,
|
|
222
|
-
totalProportion: ot(t.map((l) => l[o]).reduce((l,
|
|
222
|
+
totalProportion: ot(t.map((l) => l[o]).reduce((l, s) => l + s, 0) / k.value.length),
|
|
223
223
|
shape: "circle",
|
|
224
224
|
opacity: v.value.includes(o) ? 0.5 : 1,
|
|
225
225
|
segregate: () => be(o),
|
|
226
226
|
isSegregated: v.value.includes(o)
|
|
227
227
|
}));
|
|
228
|
-
}), Ge =
|
|
228
|
+
}), Ge = p(() => ({
|
|
229
229
|
cy: "radar-div-legend",
|
|
230
230
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
231
231
|
color: e.value.style.chart.legend.color,
|
|
232
232
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
233
233
|
paddingBottom: 12,
|
|
234
234
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
235
|
-
})), B =
|
|
235
|
+
})), B = p(() => {
|
|
236
236
|
const t = [
|
|
237
237
|
{ name: e.value.translations.datapoint, color: "" },
|
|
238
238
|
{ name: e.value.translations.target, color: "" },
|
|
@@ -249,12 +249,12 @@ const Pt = ["id"], Tt = ["xmlns", "viewBox"], xt = ["width", "height"], At = ["i
|
|
|
249
249
|
r: e.value.table.td.roundingValue
|
|
250
250
|
})
|
|
251
251
|
),
|
|
252
|
-
...l.values.map((
|
|
252
|
+
...l.values.map((s, h) => `${Fe(
|
|
253
253
|
l.formatter,
|
|
254
|
-
|
|
255
|
-
V({ p: y.value[
|
|
256
|
-
)} (${isNaN(
|
|
257
|
-
v:
|
|
254
|
+
s,
|
|
255
|
+
V({ p: y.value[h].prefix, v: s, s: y.value[h].suffix, r: e.value.table.td.roundingValue })
|
|
256
|
+
)} (${isNaN(s / l.target) ? "" : V({
|
|
257
|
+
v: s / l.target * 100,
|
|
258
258
|
s: "%",
|
|
259
259
|
r: e.value.table.td.roundingPercentage
|
|
260
260
|
})})`)
|
|
@@ -281,33 +281,33 @@ const Pt = ["id"], Tt = ["xmlns", "viewBox"], xt = ["width", "height"], At = ["i
|
|
|
281
281
|
seriesIndex: a,
|
|
282
282
|
series: {
|
|
283
283
|
categories: y.value,
|
|
284
|
-
datapoints:
|
|
284
|
+
datapoints: k.value,
|
|
285
285
|
radar: C.value
|
|
286
286
|
},
|
|
287
287
|
config: e.value
|
|
288
288
|
};
|
|
289
289
|
const l = e.value.style.chart.tooltip.customFormat;
|
|
290
|
-
if (
|
|
290
|
+
if (st(l) && nt(() => l({
|
|
291
291
|
seriesIndex: a,
|
|
292
292
|
datapoint: t,
|
|
293
|
-
series: { categories: y.value, datapoints:
|
|
293
|
+
series: { categories: y.value, datapoints: k.value, radar: C.value },
|
|
294
294
|
config: e.value
|
|
295
295
|
})))
|
|
296
296
|
j.value = l({
|
|
297
297
|
seriesIndex: a,
|
|
298
298
|
datapoint: t,
|
|
299
|
-
series: { categories: y.value, datapoints:
|
|
299
|
+
series: { categories: y.value, datapoints: k.value, radar: C.value },
|
|
300
300
|
config: e.value
|
|
301
301
|
});
|
|
302
302
|
else {
|
|
303
303
|
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>`;
|
|
304
|
-
for (let
|
|
305
|
-
v.value.includes(
|
|
306
|
-
name: y.value[
|
|
307
|
-
value: t.values[
|
|
308
|
-
color: y.value[
|
|
304
|
+
for (let s = 0; s < t.values.length; s += 1)
|
|
305
|
+
v.value.includes(s) || J.value.push({
|
|
306
|
+
name: y.value[s].name,
|
|
307
|
+
value: t.values[s] / t.target * 100,
|
|
308
|
+
color: y.value[s].color,
|
|
309
309
|
suffix: "%)",
|
|
310
|
-
prefix: `${V({ p: y.value[
|
|
310
|
+
prefix: `${V({ p: y.value[s].prefix ?? "", v: t.values[s], s: y.value[s].suffix ?? "", r: e.value.style.chart.tooltip.roundingValue })} (`,
|
|
311
311
|
rounding: e.value.style.chart.tooltip.roundingPercentage,
|
|
312
312
|
formatter: t.formatter
|
|
313
313
|
});
|
|
@@ -316,11 +316,11 @@ const Pt = ["id"], Tt = ["xmlns", "viewBox"], xt = ["width", "height"], At = ["i
|
|
|
316
316
|
}
|
|
317
317
|
function _e() {
|
|
318
318
|
Je(() => {
|
|
319
|
-
const t = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], a = [[""], [e.value.translations.target], ...F.value.flatMap((
|
|
319
|
+
const t = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], a = [[""], [e.value.translations.target], ...F.value.flatMap((h) => [[h.name], ["%"]])], o = g.dataset.series.map((h, jt) => [h.name, h.target, ...h.values.flatMap((Z) => [
|
|
320
320
|
Z,
|
|
321
|
-
isNaN(Z /
|
|
322
|
-
])]), l = t.concat([a]).concat(o),
|
|
323
|
-
it({ csvContent:
|
|
321
|
+
isNaN(Z / h.target) ? "" : Z / h.target * 100
|
|
322
|
+
])]), l = t.concat([a]).concat(o), s = ut(l);
|
|
323
|
+
it({ csvContent: s, title: e.value.style.chart.title.text || "vue-ui-radar" });
|
|
324
324
|
});
|
|
325
325
|
}
|
|
326
326
|
const N = i(!1);
|
|
@@ -328,10 +328,10 @@ const Pt = ["id"], Tt = ["xmlns", "viewBox"], xt = ["width", "height"], At = ["i
|
|
|
328
328
|
N.value = t, ae.value += 1;
|
|
329
329
|
}
|
|
330
330
|
function $e() {
|
|
331
|
-
|
|
331
|
+
b.value.showTable = !b.value.showTable;
|
|
332
332
|
}
|
|
333
|
-
function
|
|
334
|
-
|
|
333
|
+
function Te() {
|
|
334
|
+
b.value.showTooltip = !b.value.showTooltip;
|
|
335
335
|
}
|
|
336
336
|
const G = i(!1);
|
|
337
337
|
function Q() {
|
|
@@ -343,9 +343,9 @@ const Pt = ["id"], Tt = ["xmlns", "viewBox"], xt = ["width", "height"], At = ["i
|
|
|
343
343
|
generateCsv: _e,
|
|
344
344
|
generateImage: ye,
|
|
345
345
|
toggleTable: $e,
|
|
346
|
-
toggleTooltip:
|
|
346
|
+
toggleTooltip: Te,
|
|
347
347
|
toggleAnnotator: Q
|
|
348
|
-
}), (t, a) => (r(),
|
|
348
|
+
}), (t, a) => (r(), n("div", {
|
|
349
349
|
class: z(`vue-ui-radar ${N.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
350
350
|
ref_key: "radarChart",
|
|
351
351
|
ref: A,
|
|
@@ -362,21 +362,21 @@ const Pt = ["id"], Tt = ["xmlns", "viewBox"], xt = ["width", "height"], At = ["i
|
|
|
362
362
|
active: G.value,
|
|
363
363
|
onClose: Q
|
|
364
364
|
}, null, 8, ["parent", "backgroundColor", "color", "active"])) : c("", !0),
|
|
365
|
-
Ue.value ? (r(),
|
|
365
|
+
Ue.value ? (r(), n("div", {
|
|
366
366
|
key: 1,
|
|
367
367
|
ref_key: "noTitle",
|
|
368
|
-
ref:
|
|
368
|
+
ref: se,
|
|
369
369
|
class: "vue-data-ui-no-title-space",
|
|
370
370
|
style: "height:36px; width: 100%;background:transparent"
|
|
371
371
|
}, null, 512)) : c("", !0),
|
|
372
|
-
e.value.style.chart.title.text ? (r(),
|
|
372
|
+
e.value.style.chart.title.text ? (r(), n("div", {
|
|
373
373
|
key: 2,
|
|
374
374
|
ref_key: "chartTitle",
|
|
375
375
|
ref: oe,
|
|
376
376
|
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
377
377
|
}, [
|
|
378
378
|
(r(), _(vt, {
|
|
379
|
-
key: `title_${
|
|
379
|
+
key: `title_${ne.value}`,
|
|
380
380
|
config: {
|
|
381
381
|
title: {
|
|
382
382
|
cy: "radar-div-title",
|
|
@@ -389,14 +389,14 @@ const Pt = ["id"], Tt = ["xmlns", "viewBox"], xt = ["width", "height"], At = ["i
|
|
|
389
389
|
}
|
|
390
390
|
}, null, 8, ["config"]))
|
|
391
391
|
], 512)) : c("", !0),
|
|
392
|
-
e.value.userOptions.show && I.value && (d(ce) || d(q)) ? (r(), _(
|
|
392
|
+
e.value.userOptions.show && I.value && (d(ce) || d(q)) ? (r(), _(pt, {
|
|
393
393
|
ref_key: "details",
|
|
394
394
|
ref: Re,
|
|
395
395
|
key: `user_options_${ae.value}`,
|
|
396
396
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
397
397
|
color: e.value.style.chart.color,
|
|
398
398
|
isImaging: d(ge),
|
|
399
|
-
isPrinting: d(
|
|
399
|
+
isPrinting: d(pe),
|
|
400
400
|
uid: w.value,
|
|
401
401
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
402
402
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -405,7 +405,7 @@ const Pt = ["id"], Tt = ["xmlns", "viewBox"], xt = ["width", "height"], At = ["i
|
|
|
405
405
|
hasTable: e.value.userOptions.buttons.table,
|
|
406
406
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
407
407
|
isFullscreen: N.value,
|
|
408
|
-
isTooltip:
|
|
408
|
+
isTooltip: b.value.showTooltip,
|
|
409
409
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
410
410
|
chartElement: A.value,
|
|
411
411
|
position: e.value.userOptions.position,
|
|
@@ -416,7 +416,7 @@ const Pt = ["id"], Tt = ["xmlns", "viewBox"], xt = ["width", "height"], At = ["i
|
|
|
416
416
|
onGenerateCsv: _e,
|
|
417
417
|
onGenerateImage: d(ye),
|
|
418
418
|
onToggleTable: $e,
|
|
419
|
-
onToggleTooltip:
|
|
419
|
+
onToggleTooltip: Te,
|
|
420
420
|
onToggleAnnotator: Q,
|
|
421
421
|
style: W({
|
|
422
422
|
visibility: d(ce) ? d(q) ? "visible" : "hidden" : "visible"
|
|
@@ -472,7 +472,7 @@ const Pt = ["id"], Tt = ["xmlns", "viewBox"], xt = ["width", "height"], At = ["i
|
|
|
472
472
|
key: "6"
|
|
473
473
|
} : void 0
|
|
474
474
|
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : c("", !0),
|
|
475
|
-
I.value ? (r(),
|
|
475
|
+
I.value ? (r(), n("svg", {
|
|
476
476
|
key: 4,
|
|
477
477
|
xmlns: d(lt),
|
|
478
478
|
class: z({ "vue-data-ui-fullscreen--on": N.value, "vue-data-ui-fulscreen--off": !N.value }),
|
|
@@ -480,7 +480,7 @@ const Pt = ["id"], Tt = ["xmlns", "viewBox"], xt = ["width", "height"], At = ["i
|
|
|
480
480
|
style: W(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
481
481
|
}, [
|
|
482
482
|
ee(Ct),
|
|
483
|
-
t.$slots["chart-background"] ? (r(),
|
|
483
|
+
t.$slots["chart-background"] ? (r(), n("foreignObject", {
|
|
484
484
|
key: 0,
|
|
485
485
|
x: 0,
|
|
486
486
|
y: 0,
|
|
@@ -493,7 +493,7 @@ const Pt = ["id"], Tt = ["xmlns", "viewBox"], xt = ["width", "height"], At = ["i
|
|
|
493
493
|
f(t.$slots, "chart-background", {}, void 0, !0)
|
|
494
494
|
], 8, xt)) : c("", !0),
|
|
495
495
|
$("defs", null, [
|
|
496
|
-
(r(!0),
|
|
496
|
+
(r(!0), n(T, null, P(y.value, (o, l) => (r(), n("radialGradient", {
|
|
497
497
|
cx: "50%",
|
|
498
498
|
cy: "50%",
|
|
499
499
|
r: "50%",
|
|
@@ -511,8 +511,8 @@ const Pt = ["id"], Tt = ["xmlns", "viewBox"], xt = ["width", "height"], At = ["i
|
|
|
511
511
|
}, null, 8, Ft)
|
|
512
512
|
], 8, At))), 256))
|
|
513
513
|
]),
|
|
514
|
-
e.value.style.chart.layout.grid.show ? (r(),
|
|
515
|
-
(r(!0),
|
|
514
|
+
e.value.style.chart.layout.grid.show ? (r(), n("g", Nt, [
|
|
515
|
+
(r(!0), n(T, null, P(C.value, (o) => (r(), n("line", {
|
|
516
516
|
x1: u.value.width / 2,
|
|
517
517
|
y1: u.value.height / 2,
|
|
518
518
|
x2: o.x,
|
|
@@ -520,8 +520,8 @@ const Pt = ["id"], Tt = ["xmlns", "viewBox"], xt = ["width", "height"], At = ["i
|
|
|
520
520
|
stroke: e.value.style.chart.layout.grid.stroke,
|
|
521
521
|
"stroke-width": e.value.style.chart.layout.grid.strokeWidth
|
|
522
522
|
}, null, 8, St))), 256)),
|
|
523
|
-
e.value.style.chart.layout.grid.graduations > 0 ? (r(),
|
|
524
|
-
(r(!0),
|
|
523
|
+
e.value.style.chart.layout.grid.graduations > 0 ? (r(), n("g", It, [
|
|
524
|
+
(r(!0), n(T, null, P(Be.value, (o) => (r(), n("path", {
|
|
525
525
|
d: d(Oe)({
|
|
526
526
|
plot: { x: u.value.width / 2, y: u.value.height / 2 },
|
|
527
527
|
radius: o,
|
|
@@ -542,34 +542,34 @@ const Pt = ["id"], Tt = ["xmlns", "viewBox"], xt = ["width", "height"], At = ["i
|
|
|
542
542
|
"stroke-linejoin": "round",
|
|
543
543
|
"stroke-linecap": "round"
|
|
544
544
|
}, null, 8, zt),
|
|
545
|
-
e.value.style.chart.layout.labels.dataLabels.show ? (r(),
|
|
546
|
-
(r(!0),
|
|
545
|
+
e.value.style.chart.layout.labels.dataLabels.show ? (r(), n("g", Mt, [
|
|
546
|
+
(r(!0), n(T, null, P(C.value, (o, l) => (r(), n("text", {
|
|
547
547
|
x: Y(o).x,
|
|
548
548
|
y: Y(o).y,
|
|
549
549
|
"text-anchor": Y(o).anchor,
|
|
550
550
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
551
551
|
fill: e.value.style.chart.layout.labels.dataLabels.color,
|
|
552
|
-
onMouseenter: (
|
|
553
|
-
onMouseleave: a[0] || (a[0] = (
|
|
552
|
+
onMouseenter: (s) => We(o, l),
|
|
553
|
+
onMouseleave: a[0] || (a[0] = (s) => {
|
|
554
554
|
X.value = !1, D.value = null;
|
|
555
555
|
})
|
|
556
556
|
}, U(o.name), 41, Rt))), 256))
|
|
557
557
|
])) : c("", !0),
|
|
558
|
-
(r(!0),
|
|
558
|
+
(r(!0), n(T, null, P(y.value, (o, l) => (r(), n("g", null, [
|
|
559
559
|
$("g", null, [
|
|
560
|
-
e.value.useCssAnimation || !e.value.useCssAnimation && !v.value.includes(l) ? (r(),
|
|
560
|
+
e.value.useCssAnimation || !e.value.useCssAnimation && !v.value.includes(l) ? (r(), n("polygon", {
|
|
561
561
|
key: 0,
|
|
562
562
|
"data-cy-radar-path": "",
|
|
563
|
-
points: d(Ne)(C.value.map((
|
|
563
|
+
points: d(Ne)(C.value.map((s) => s.plots[l]), !1, !0),
|
|
564
564
|
stroke: e.value.style.chart.backgroundColor,
|
|
565
565
|
"stroke-width": e.value.style.chart.layout.dataPolygon.strokeWidth + 1,
|
|
566
566
|
fill: "none",
|
|
567
567
|
class: z({ "animated-out": v.value.includes(l) && e.value.useCssAnimation, "animated-in": O.value && L.value === l && e.value.useCssAnimation })
|
|
568
568
|
}, null, 10, Ut)) : c("", !0),
|
|
569
|
-
e.value.useCssAnimation || !e.value.useCssAnimation && !v.value.includes(l) ? (r(),
|
|
569
|
+
e.value.useCssAnimation || !e.value.useCssAnimation && !v.value.includes(l) ? (r(), n("polygon", {
|
|
570
570
|
key: 1,
|
|
571
571
|
"data-cy-radar-path": "",
|
|
572
|
-
points: d(Ne)(C.value.map((
|
|
572
|
+
points: d(Ne)(C.value.map((s) => s.plots[l]), !1, !0),
|
|
573
573
|
stroke: o.color,
|
|
574
574
|
"stroke-width": e.value.style.chart.layout.dataPolygon.strokeWidth,
|
|
575
575
|
fill: e.value.style.chart.layout.dataPolygon.transparent ? "transparent" : e.value.style.chart.layout.dataPolygon.useGradient ? `url(#radar_gradient_${w.value}_${l})` : d(te)(o.color, e.value.style.chart.layout.dataPolygon.opacity),
|
|
@@ -577,23 +577,23 @@ const Pt = ["id"], Tt = ["xmlns", "viewBox"], xt = ["width", "height"], At = ["i
|
|
|
577
577
|
}, null, 10, Vt)) : c("", !0)
|
|
578
578
|
])
|
|
579
579
|
]))), 256)),
|
|
580
|
-
e.value.style.chart.layout.plots.show ? (r(),
|
|
581
|
-
(r(!0),
|
|
582
|
-
(r(!0),
|
|
583
|
-
cx:
|
|
584
|
-
cy:
|
|
585
|
-
fill: v.value.includes(
|
|
580
|
+
e.value.style.chart.layout.plots.show ? (r(), n("g", Et, [
|
|
581
|
+
(r(!0), n(T, null, P(C.value, (o, l) => (r(), n("g", null, [
|
|
582
|
+
(r(!0), n(T, null, P(o.plots, (s, h) => (r(), n("circle", {
|
|
583
|
+
cx: s.x,
|
|
584
|
+
cy: s.y,
|
|
585
|
+
fill: v.value.includes(h) ? "transparent" : y.value[h].color,
|
|
586
586
|
r: D.value !== null && D.value === l ? e.value.style.chart.layout.plots.radius * 1.6 : e.value.style.chart.layout.plots.radius,
|
|
587
|
-
stroke: v.value.includes(
|
|
587
|
+
stroke: v.value.includes(h) ? "transparent" : e.value.style.chart.backgroundColor,
|
|
588
588
|
"stroke-width": 0.5,
|
|
589
|
-
class: z({ "animated-out": v.value.includes(
|
|
589
|
+
class: z({ "animated-out": v.value.includes(h) && e.value.useCssAnimation, "animated-in": O.value && L.value === h && e.value.useCssAnimation })
|
|
590
590
|
}, null, 10, Bt))), 256))
|
|
591
591
|
]))), 256))
|
|
592
592
|
])) : c("", !0),
|
|
593
593
|
f(t.$slots, "svg", { svg: u.value }, void 0, !0)
|
|
594
|
-
], 14,
|
|
595
|
-
t.$slots.watermark ? (r(),
|
|
596
|
-
f(t.$slots, "watermark", M(R({ isPrinting: d(
|
|
594
|
+
], 14, Pt)) : c("", !0),
|
|
595
|
+
t.$slots.watermark ? (r(), n("div", Dt, [
|
|
596
|
+
f(t.$slots, "watermark", M(R({ isPrinting: d(pe) || d(ge) })), void 0, !0)
|
|
597
597
|
])) : c("", !0),
|
|
598
598
|
I.value ? c("", !0) : (r(), _(bt, {
|
|
599
599
|
key: 6,
|
|
@@ -625,7 +625,7 @@ const Pt = ["id"], Tt = ["xmlns", "viewBox"], xt = ["width", "height"], At = ["i
|
|
|
625
625
|
item: m(({ legend: o, index: l }) => [
|
|
626
626
|
$("div", {
|
|
627
627
|
"data-cy-legend-item": "",
|
|
628
|
-
onClick: (
|
|
628
|
+
onClick: (s) => o.segregate(),
|
|
629
629
|
style: W(`opacity:${v.value.includes(l) ? 0.5 : 1}`)
|
|
630
630
|
}, U(o.name) + ": " + U(d(V)({
|
|
631
631
|
v: o.totalProportion * 100,
|
|
@@ -639,7 +639,7 @@ const Pt = ["id"], Tt = ["xmlns", "viewBox"], xt = ["width", "height"], At = ["i
|
|
|
639
639
|
legend: F.value
|
|
640
640
|
}, void 0, !0)
|
|
641
641
|
], 512),
|
|
642
|
-
t.$slots.source ? (r(),
|
|
642
|
+
t.$slots.source ? (r(), n("div", {
|
|
643
643
|
key: 7,
|
|
644
644
|
ref_key: "source",
|
|
645
645
|
ref: re,
|
|
@@ -648,7 +648,7 @@ const Pt = ["id"], Tt = ["xmlns", "viewBox"], xt = ["width", "height"], At = ["i
|
|
|
648
648
|
f(t.$slots, "source", {}, void 0, !0)
|
|
649
649
|
], 512)) : c("", !0),
|
|
650
650
|
ee(gt, {
|
|
651
|
-
show:
|
|
651
|
+
show: b.value.showTooltip && X.value,
|
|
652
652
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
653
653
|
color: e.value.style.chart.tooltip.color,
|
|
654
654
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -667,7 +667,7 @@ const Pt = ["id"], Tt = ["xmlns", "viewBox"], xt = ["width", "height"], At = ["i
|
|
|
667
667
|
f(t.$slots, "tooltip-before", M(R({ ...K.value })), void 0, !0)
|
|
668
668
|
]),
|
|
669
669
|
"tooltip-after": m(() => [
|
|
670
|
-
["function"].includes(typeof e.value.style.chart.tooltip.customFormat) ? c("", !0) : (r(),
|
|
670
|
+
["function"].includes(typeof e.value.style.chart.tooltip.customFormat) ? c("", !0) : (r(), n("div", Wt, [
|
|
671
671
|
ee(ft, {
|
|
672
672
|
dataset: J.value,
|
|
673
673
|
config: Ve.value,
|
|
@@ -682,7 +682,7 @@ const Pt = ["id"], Tt = ["xmlns", "viewBox"], xt = ["width", "height"], At = ["i
|
|
|
682
682
|
key: 8,
|
|
683
683
|
hideDetails: "",
|
|
684
684
|
config: {
|
|
685
|
-
open:
|
|
685
|
+
open: b.value.showTable,
|
|
686
686
|
maxHeight: 1e4,
|
|
687
687
|
body: {
|
|
688
688
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -702,22 +702,22 @@ const Pt = ["id"], Tt = ["xmlns", "viewBox"], xt = ["width", "height"], At = ["i
|
|
|
702
702
|
body: B.value.body,
|
|
703
703
|
config: B.value.config,
|
|
704
704
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
705
|
-
onClose: a[2] || (a[2] = (o) =>
|
|
705
|
+
onClose: a[2] || (a[2] = (o) => b.value.showTable = !1)
|
|
706
706
|
}, {
|
|
707
707
|
th: m(({ th: o }) => [
|
|
708
|
-
|
|
708
|
+
Pe(U(o.name), 1)
|
|
709
709
|
]),
|
|
710
710
|
td: m(({ td: o }) => [
|
|
711
|
-
|
|
711
|
+
Pe(U(o), 1)
|
|
712
712
|
]),
|
|
713
713
|
_: 1
|
|
714
714
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
715
715
|
]),
|
|
716
716
|
_: 1
|
|
717
717
|
}, 8, ["config"])) : c("", !0)
|
|
718
|
-
], 46,
|
|
718
|
+
], 46, Tt));
|
|
719
719
|
}
|
|
720
|
-
}, ia = /* @__PURE__ */ $t(Xt, [["__scopeId", "data-v-
|
|
720
|
+
}, ia = /* @__PURE__ */ $t(Xt, [["__scopeId", "data-v-86d29f62"]]);
|
|
721
721
|
export {
|
|
722
722
|
ia as default
|
|
723
723
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index-1HOIfTy2.cjs"),ne=require("./useResponsive-BJ7DTGpm.cjs"),we=require("./Title-C10173bN.cjs"),se=require("./usePrinter-i-j4CdEi.cjs"),Be=require("./Tooltip-CL7aSMgq.cjs"),Pe=require("./vue-ui-sparkbar-DY1J0X8K.cjs"),_e=require("./Legend-CY6wjCYY.cjs"),$e=require("./DataTable-BmKl4AAb.cjs"),Te=require("./vue-ui-skeleton-CLiDRcQX.cjs"),xe=require("./vue-ui-accordion-Cd6GaDwU.cjs"),ue=require("./useNestedProp-BFNnjpX-.cjs"),Ne=require("./PackageVersion-DvDNPRrJ.cjs"),Se=require("./PenAndPaper--xHLJRME.cjs"),Ee=require("./useUserOptionState-BgepsfED.cjs"),Ve=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Fe=["id"],Oe=["xmlns","viewBox"],Ae=["width","height"],Le=["id"],ze=["stop-color"],Ie=["stop-color"],Re={key:1},qe=["x1","y1","x2","y2","stroke","stroke-width"],Me={key:0},Ue=["d","stroke","stroke-width"],De=["d","stroke","stroke-width"],Ge={key:2},We=["x","y","text-anchor","font-size","fill","onMouseenter"],He=["points","stroke","stroke-width"],je=["points","stroke","stroke-width","fill"],Xe={key:3},Ye=["cx","cy","fill","r","stroke"],Je={key:5,class:"vue-data-ui-watermark"},Ke=["onClick"],Qe={key:0,style:{"max-width":"200px",margin:"0 auto"}},Ze={__name:"vue-ui-radar",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},emits:["selectLegend"],setup(ie,{expose:ce,emit:de}){const d=ie,{vue_ui_radar:ve}=n.useConfig(),C=e.computed(()=>!!d.dataset&&Object.keys(d.dataset).length),f=e.ref(n.createUid()),pe=e.ref(null),T=e.ref(!1),x=e.ref(""),L=e.ref(0),m=e.ref(null),z=e.ref(null),I=e.ref(null),R=e.ref(null),q=e.ref(null),M=e.ref(0),U=e.ref(0),D=e.ref(0),t=e.computed({get:()=>H(),set:o=>o}),{userOptionsVisible:N,setUserOptionsVisibility:G,keepUserOptionState:W}=Ee.useUserOptionState({config:t.value});function H(){const o=ue.useNestedProp({userConfig:d.config,defaultConfig:ve});return o.theme?{...ue.useNestedProp({userConfig:n.themes.vue_ui_radar[o.theme]||d.config,defaultConfig:o}),customPalette:n.themePalettes[o.theme]||n.palette}:o}e.watch(()=>d.config,o=>{t.value=H(),N.value=!t.value.showOnChartHover,j(),M.value+=1,U.value+=1,D.value+=1,p.value.dataLabels.show=t.value.style.chart.layout.labels.dataLabels.show,p.value.showTable=t.value.table.show,p.value.showTooltip=t.value.style.chart.tootlip.show},{deep:!0});const B=e.ref(null);function j(){if(n.objectIsEmpty(d.dataset)&&n.error({componentName:"VueUiRadar",type:"dataset"}),t.value.responsive){const o=ne.throttle(()=>{const{width:a,height:l}=ne.useResponsive({chart:m.value,title:t.value.style.chart.title.text?z.value:null,legend:t.value.style.chart.legend.show?I.value:null,source:R.value,noTitle:q.value});requestAnimationFrame(()=>{u.value.width=a,u.value.height=l})});B.value=new ResizeObserver(o),B.value.observe(m.value.parentNode)}}e.onMounted(()=>{j()}),e.onBeforeUnmount(()=>{B.value&&B.value.disconnect()});const{isPrinting:X,isImaging:Y,generatePdf:J,generateImage:K}=se.usePrinter({elementId:`vue-ui-radar_${f.value}`,fileName:t.value.style.chart.title.text||"vue-ui-radar"}),he=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),Q=e.computed(()=>n.convertCustomPalette(t.value.customPalette)),p=e.ref({dataLabels:{show:t.value.style.chart.layout.labels.dataLabels.show},showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show}),ge=e.computed(()=>({style:{backgroundColor:"#FFFFFF00",animation:{show:t.value.style.chart.tooltip.animation.show,animationFrames:t.value.style.chart.tooltip.animation.animationFrames},labels:{fontSize:t.value.style.chart.tooltip.fontSize,name:{color:t.value.style.chart.tooltip.color}},gutter:{backgroundColor:"#CCCCCC",opacity:30}}})),u=e.ref({height:312,width:512}),i=e.ref([]),w=e.ref(null),y=e.ref(!1);function Z(o){y.value=!0,i.value.includes(o)?(w.value=o,i.value=i.value.filter(a=>a!==o),setTimeout(()=>{y.value=!1,w.value=null},500)):(i.value.push(o),setTimeout(()=>{y.value=!1},500)),de("selectLegend",k.value.filter((a,l)=>!i.value.includes(l)).map(a=>({name:a.name,color:a.color,proportion:a.totalProportion})))}function fe(){return k.value.map(o=>({name:o.name,color:o.color,proportion:o.totalProportion}))}const v=e.computed(()=>[null,void 0].includes(d.dataset.categories)?(n.error({componentName:"VueUiRadar",type:"datasetAttribute",property:"categories ({ name: string; prefix?: string; suffix?: string}[])"}),[]):(d.dataset.categories.length===0?n.error({componentName:"VueUiRadar",type:"datasetAttributeEmpty",property:"categories"}):d.dataset.categories.forEach((o,a)=>{n.getMissingDatasetAttributes({datasetObject:o,requiredAttributes:["name"]}).forEach(l=>{n.error({componentName:"VueUiRadar",type:"datasetAttribute",property:`category.${l} at index ${a}`,index:a})})}),[null,void 0].includes(d.dataset.series)?n.error({componentName:"VueUiRadar",type:"datasetAttribute",property:"series ({ name: string; values: number[]; color?: string; target: number}[])"}):d.dataset.series.forEach((o,a)=>{n.getMissingDatasetAttributes({datasetObject:o,requiredAttributes:["name","values","target"]}).forEach(l=>{n.error({componentName:"VueUiRadar",type:"datasetSerieAttribute",key:"series",property:l,index:a})})}),d.dataset.categories.map((o,a)=>({name:o.name,categoryId:`radar_category_${f.value}_${a}`,color:n.convertColorToHex(o.color)||Q.value[a]||n.palette[a]||n.palette[a%n.palette.length],prefix:o.prefix??"",suffix:o.suffix??""})))),h=e.computed(()=>C.value?d.dataset.series.map((o,a)=>({...o,color:n.convertColorToHex(o.color)||Q.value[a]||n.palette[a]||n.palette[a%n.palette.length],serieId:`radar_serie_${f.value}_${a}`,formatter:o.formatter||null})):[]),ee=e.computed(()=>Math.max(...h.value.flatMap(o=>o.values))),te=e.computed(()=>h.value.length),S=e.computed(()=>Math.min(u.value.width,u.value.height)/3),oe=e.computed(()=>n.createPolygonPath({plot:{x:u.value.width/2,y:u.value.height/2},radius:S.value,sides:te.value,rotation:0})),me=e.computed(()=>{const o=[];for(let a=0;a<S.value;a+=S.value/t.value.style.chart.layout.grid.graduations)o.push(a);return o}),g=e.computed(()=>oe.value.coordinates.map((o,a)=>{const l=h.value[a].values.map(r=>ye({centerX:u.value.width/2,centerY:u.value.height/2,apexX:o.x,apexY:o.y,proportion:r/(h.value[a].target||ee.value)}));return{...o,...h.value[a],plots:l}}));function E({x:o,y:a}){let l="middle";return o=Math.round(o),a=Math.round(a),o>u.value.width/2&&(o+=12,l="start"),o<u.value.width/2&&(o-=12,l="end"),a>u.value.height/2&&(a+=20),a<u.value.height/2&&(a-=12),a===u.value.height/2&&(a+=4),{x:o,y:a,anchor:l}}function ye({centerX:o,centerY:a,apexX:l,apexY:r,proportion:s}){return{x:o+(l-o)*s,y:a+(r-a)*s}}const k=e.computed(()=>{const o=h.value.map((a,l)=>a.values.map(r=>r/(a.target||ee.value)));return v.value.map((a,l)=>({...a,totalProportion:n.checkNaN(o.map(r=>r[l]).reduce((r,s)=>r+s,0)/h.value.length),shape:"circle",opacity:i.value.includes(l)?.5:1,segregate:()=>Z(l),isSegregated:i.value.includes(l)}))}),ke=e.computed(()=>({cy:"radar-div-legend",backgroundColor:t.value.style.chart.legend.backgroundColor,color:t.value.style.chart.legend.color,fontSize:t.value.style.chart.legend.fontSize,paddingBottom:12,fontWeight:t.value.style.chart.legend.bold?"bold":""})),P=e.computed(()=>{const o=[{name:t.value.translations.datapoint,color:""},{name:t.value.translations.target,color:""},...k.value],a=d.dataset.series.map(r=>[r.name,n.applyDataLabel(r.formatter,r.target,n.dataLabel({p:r.prefix,v:r.target,s:r.suffix,r:t.value.table.td.roundingValue})),...r.values.map((s,c)=>`${n.applyDataLabel(r.formatter,s,n.dataLabel({p:v.value[c].prefix,v:s,s:v.value[c].suffix,r:t.value.table.td.roundingValue}))} (${isNaN(s/r.target)?"":n.dataLabel({v:s/r.target*100,s:"%",r:t.value.table.td.roundingPercentage})})`)]),l={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint};return{head:o,body:a,config:l,colNames:o}}),_=e.ref(null),V=e.ref([]),F=e.ref(null);function be(o,a){V.value=[],_.value=a,T.value=!0;let l="";F.value={datapoint:o,seriesIndex:a,series:{categories:v.value,datapoints:h.value,radar:g.value},config:t.value};const r=t.value.style.chart.tooltip.customFormat;if(n.isFunction(r)&&n.functionReturnsString(()=>r({seriesIndex:a,datapoint:o,series:{categories:v.value,datapoints:h.value,radar:g.value},config:t.value})))x.value=r({seriesIndex:a,datapoint:o,series:{categories:v.value,datapoints:h.value,radar:g.value},config:t.value});else{l+=`<div style="width:100%;text-align:center;border-bottom:1px solid ${t.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${o.name}</div>`;for(let s=0;s<o.values.length;s+=1)i.value.includes(s)||V.value.push({name:v.value[s].name,value:o.values[s]/o.target*100,color:v.value[s].color,suffix:"%)",prefix:`${n.dataLabel({p:v.value[s].prefix??"",v:o.values[s],s:v.value[s].suffix??"",r:t.value.style.chart.tooltip.roundingValue})} (`,rounding:t.value.style.chart.tooltip.roundingPercentage,formatter:o.formatter});x.value=l}}function ae(){e.nextTick(()=>{const o=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[""]],a=[[""],[t.value.translations.target],...k.value.flatMap(c=>[[c.name],["%"]])],l=d.dataset.series.map((c,tt)=>[c.name,c.target,...c.values.flatMap(A=>[A,isNaN(A/c.target)?"":A/c.target*100])]),r=o.concat([a]).concat(l),s=n.createCsvContent(r);n.downloadCsv({csvContent:s,title:t.value.style.chart.title.text||"vue-ui-radar"})})}const b=e.ref(!1);function Ce(o){b.value=o,L.value+=1}function le(){p.value.showTable=!p.value.showTable}function re(){p.value.showTooltip=!p.value.showTooltip}const $=e.ref(!1);function O(){$.value=!$.value}return ce({getData:fe,generatePdf:J,generateCsv:ae,generateImage:K,toggleTable:le,toggleTooltip:re,toggleAnnotator:O}),(o,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`vue-ui-radar ${b.value?"vue-data-ui-wrapper-fullscreen":""} ${t.value.useCssAnimation?"":"vue-ui-dna"}`),ref_key:"radarChart",ref:m,id:`vue-ui-radar_${f.value}`,style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; ${t.value.responsive?"height: 100%;":""} text-align:center;background:${t.value.style.chart.backgroundColor}`),onMouseenter:a[3]||(a[3]=()=>e.unref(G)(!0)),onMouseleave:a[4]||(a[4]=()=>e.unref(G)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(Se.PenAndPaper,{key:0,parent:m.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:$.value,onClose:O},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),he.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:q,class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},null,512)):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"chartTitle",ref:z,style:"width:100%;background:transparent;padding-bottom:12px"},[(e.openBlock(),e.createBlock(we._sfc_main,{key:`title_${M.value}`,config:{title:{cy:"radar-div-title",...t.value.style.chart.title},subtitle:{cy:"radar-div-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&C.value&&(e.unref(W)||e.unref(N))?(e.openBlock(),e.createBlock(se.UserOptions,{ref_key:"details",ref:pe,key:`user_options_${L.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isImaging:e.unref(Y),isPrinting:e.unref(X),uid:f.value,hasTooltip:t.value.userOptions.buttons.tooltip&&t.value.style.chart.tooltip.show,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasXls:t.value.userOptions.buttons.csv,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:b.value,isTooltip:p.value.showTooltip,titles:{...t.value.userOptions.buttonTitles},chartElement:m.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:$.value,onToggleFullscreen:Ce,onGeneratePdf:e.unref(J),onGenerateCsv:ae,onGenerateImage:e.unref(K),onToggleTable:le,onToggleTooltip:re,onToggleAnnotator:O,style:e.normalizeStyle({visibility:e.unref(W)?e.unref(N)?"visible":"hidden":"visible"})},e.createSlots({_:2},[o.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,o.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,o.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,o.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,o.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,o.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:r})=>[e.renderSlot(o.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:r})),void 0,!0)]),key:"5"}:void 0,o.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:l,isAnnotator:r})=>[e.renderSlot(o.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:l,isAnnotator:r})),void 0,!0)]),key:"6"}:void 0]),1032,["backgroundColor","color","isImaging","isPrinting","uid","hasTooltip","hasPdf","hasImg","hasXls","hasTable","hasFullscreen","isFullscreen","isTooltip","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),C.value?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(n.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":b.value,"vue-data-ui-fulscreen--off":!b.value}),viewBox:`0 0 ${u.value.width<=0?10:u.value.width} ${u.value.height<=0?10:u.value.height}`,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(Ne._sfc_main),o.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:0,y:0,width:u.value.width<=0?10:u.value.width,height:u.value.height<=0?10:u.value.height,style:{pointerEvents:"none"}},[e.renderSlot(o.$slots,"chart-background",{},void 0,!0)],8,Ae)):e.createCommentVNode("",!0),e.createElementVNode("defs",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(l,r)=>(e.openBlock(),e.createElementBlock("radialGradient",{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%",id:`radar_gradient_${f.value}_${r}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(n.setOpacity)(e.unref(n.shiftHue)(l.color,.05),t.value.style.chart.layout.dataPolygon.opacity)},null,8,ze),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(n.setOpacity)(l.color,t.value.style.chart.layout.dataPolygon.opacity)},null,8,Ie)],8,Le))),256))]),t.value.style.chart.layout.grid.show?(e.openBlock(),e.createElementBlock("g",Re,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,l=>(e.openBlock(),e.createElementBlock("line",{x1:u.value.width/2,y1:u.value.height/2,x2:l.x,y2:l.y,stroke:t.value.style.chart.layout.grid.stroke,"stroke-width":t.value.style.chart.layout.grid.strokeWidth},null,8,qe))),256)),t.value.style.chart.layout.grid.graduations>0?(e.openBlock(),e.createElementBlock("g",Me,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(me.value,l=>(e.openBlock(),e.createElementBlock("path",{d:e.unref(n.createPolygonPath)({plot:{x:u.value.width/2,y:u.value.height/2},radius:l,sides:te.value,rotation:0}).path,fill:"none",stroke:t.value.style.chart.layout.grid.stroke,"stroke-width":t.value.style.chart.layout.grid.strokeWidth},null,8,Ue))),256))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("path",{d:oe.value.path,fill:"none",stroke:t.value.style.chart.layout.outerPolygon.stroke,"stroke-width":t.value.style.chart.layout.outerPolygon.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round"},null,8,De),t.value.style.chart.layout.labels.dataLabels.show?(e.openBlock(),e.createElementBlock("g",Ge,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,(l,r)=>(e.openBlock(),e.createElementBlock("text",{x:E(l).x,y:E(l).y,"text-anchor":E(l).anchor,"font-size":t.value.style.chart.layout.labels.dataLabels.fontSize,fill:t.value.style.chart.layout.labels.dataLabels.color,onMouseenter:s=>be(l,r),onMouseleave:a[0]||(a[0]=s=>{T.value=!1,_.value=null})},e.toDisplayString(l.name),41,We))),256))])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(l,r)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("g",null,[t.value.useCssAnimation||!t.value.useCssAnimation&&!i.value.includes(r)?(e.openBlock(),e.createElementBlock("polygon",{key:0,"data-cy-radar-path":"",points:e.unref(n.makePath)(g.value.map(s=>s.plots[r]),!1,!0),stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.dataPolygon.strokeWidth+1,fill:"none",class:e.normalizeClass({"animated-out":i.value.includes(r)&&t.value.useCssAnimation,"animated-in":y.value&&w.value===r&&t.value.useCssAnimation})},null,10,He)):e.createCommentVNode("",!0),t.value.useCssAnimation||!t.value.useCssAnimation&&!i.value.includes(r)?(e.openBlock(),e.createElementBlock("polygon",{key:1,"data-cy-radar-path":"",points:e.unref(n.makePath)(g.value.map(s=>s.plots[r]),!1,!0),stroke:l.color,"stroke-width":t.value.style.chart.layout.dataPolygon.strokeWidth,fill:t.value.style.chart.layout.dataPolygon.transparent?"transparent":t.value.style.chart.layout.dataPolygon.useGradient?`url(#radar_gradient_${f.value}_${r})`:e.unref(n.setOpacity)(l.color,t.value.style.chart.layout.dataPolygon.opacity),class:e.normalizeClass({"animated-out":i.value.includes(r)&&t.value.useCssAnimation,"animated-in":y.value&&w.value===r&&t.value.useCssAnimation})},null,10,je)):e.createCommentVNode("",!0)])]))),256)),t.value.style.chart.layout.plots.show?(e.openBlock(),e.createElementBlock("g",Xe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,(l,r)=>(e.openBlock(),e.createElementBlock("g",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.plots,(s,c)=>(e.openBlock(),e.createElementBlock("circle",{cx:s.x,cy:s.y,fill:i.value.includes(c)?"transparent":v.value[c].color,r:_.value!==null&&_.value===r?t.value.style.chart.layout.plots.radius*1.6:t.value.style.chart.layout.plots.radius,stroke:i.value.includes(c)?"transparent":t.value.style.chart.backgroundColor,"stroke-width":.5,class:e.normalizeClass({"animated-out":i.value.includes(c)&&t.value.useCssAnimation,"animated-in":y.value&&w.value===c&&t.value.useCssAnimation})},null,10,Ye))),256))]))),256))])):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"svg",{svg:u.value},void 0,!0)],14,Oe)):e.createCommentVNode("",!0),o.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Je,[e.renderSlot(o.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(X)||e.unref(Y)})),void 0,!0)])):e.createCommentVNode("",!0),C.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Te.default,{key:6,config:{type:"radar",style:{backgroundColor:t.value.style.chart.backgroundColor,radar:{grid:{color:t.value.style.chart.layout.outerPolygon.stroke},shapes:{color:t.value.style.chart.layout.outerPolygon.stroke}}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:I},[t.value.style.chart.legend.show?(e.openBlock(),e.createBlock(_e.Legend,{key:`legend_${D.value}`,legendSet:k.value,config:ke.value,onClickMarker:a[1]||(a[1]=({i:l})=>Z(l))},{item:e.withCtx(({legend:l,index:r})=>[e.createElementVNode("div",{"data-cy-legend-item":"",onClick:s=>l.segregate(),style:e.normalizeStyle(`opacity:${i.value.includes(r)?.5:1}`)},e.toDisplayString(l.name)+": "+e.toDisplayString(e.unref(n.dataLabel)({v:l.totalProportion*100,s:"%",r:t.value.style.chart.legend.roundingPercentage})),13,Ke)]),_:1},8,["legendSet","config"])):e.renderSlot(o.$slots,"legend",{key:1,legend:k.value},void 0,!0)],512),o.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:7,ref_key:"source",ref:R,dir:"auto"},[e.renderSlot(o.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createVNode(Be._sfc_main,{show:p.value.showTooltip&&T.value,backgroundColor:t.value.style.chart.tooltip.backgroundColor,color:t.value.style.chart.tooltip.color,borderRadius:t.value.style.chart.tooltip.borderRadius,borderColor:t.value.style.chart.tooltip.borderColor,borderWidth:t.value.style.chart.tooltip.borderWidth,backgroundOpacity:t.value.style.chart.tooltip.backgroundOpacity,fontSize:t.value.style.chart.tooltip.fontSize,position:t.value.style.chart.tooltip.position,offsetY:t.value.style.chart.tooltip.offsetY,parent:m.value,content:x.value,isFullscreen:b.value,isCustom:t.value.style.chart.tooltip.customFormat&&typeof t.value.style.chart.tooltip.customFormat=="function"},{"tooltip-before":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...F.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[["function"].includes(typeof t.value.style.chart.tooltip.customFormat)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Qe,[e.createVNode(Pe.default,{dataset:V.value,config:ge.value,backgroundOpacity:0},null,8,["dataset","config"])])),e.renderSlot(o.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...F.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","backgroundOpacity","fontSize","position","offsetY","parent","content","isFullscreen","isCustom"]),C.value?(e.openBlock(),e.createBlock(xe.default,{key:8,hideDetails:"",config:{open:p.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color},head:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color}}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock($e.DataTable,{key:`table_${U.value}`,colNames:P.value.colNames,head:P.value.head,body:P.value.body,config:P.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:a[2]||(a[2]=l=>p.value.showTable=!1)},{th:e.withCtx(({th:l})=>[e.createTextVNode(e.toDisplayString(l.name),1)]),td:e.withCtx(({td:l})=>[e.createTextVNode(e.toDisplayString(l),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],46,Fe))}},et=Ve._export_sfc(Ze,[["__scopeId","data-v-86d29f62"]]);exports.default=et;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref as h, useSlots as T, onMounted as R, computed as x, watch as H, openBlock as a, createElementBlock as o, normalizeStyle as i, createElementVNode as r, toDisplayString as g, createCommentVNode as y, unref as s, Fragment as P, renderList as W, withKeys as q } from "vue";
|
|
2
|
-
import { u as J, c as Q, o as Z, e as tt, i as $, f as b, X as k, w as F, V as X } from "./index-
|
|
3
|
-
import { u as et } from "./useNestedProp-
|
|
2
|
+
import { u as J, c as Q, o as Z, e as tt, i as $, f as b, X as k, w as F, V as X } from "./index-BG5J_ybN.js";
|
|
3
|
+
import { u as et } from "./useNestedProp-BN1ZmAKT.js";
|
|
4
4
|
import { _ as lt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
const at = {
|
|
6
6
|
key: 0,
|