vue-data-ui 2.3.73 → 2.3.75
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-B9ZuNkP-.js → Arrow-BTG7M25z.js} +1 -1
- package/dist/{Arrow-B8nZeqNJ.cjs → Arrow-CZK77NmC.cjs} +1 -1
- package/dist/{BaseIcon-CXbZK6D-.cjs → BaseIcon--PMhZ3f-.cjs} +1 -1
- package/dist/{BaseIcon-_V_BEdy8.js → BaseIcon-BAOfPaXs.js} +1 -1
- package/dist/{DataTable-BOdJVZzF.js → DataTable-CQANRZju.js} +2 -2
- package/dist/{DataTable-wmKwMbsJ.cjs → DataTable-DjQzrklZ.cjs} +1 -1
- package/dist/{Legend-DdndVhHV.cjs → Legend-CtbPB0Bo.cjs} +1 -1
- package/dist/{Legend-CHd5QFPM.js → Legend-DX1kv21U.js} +1 -1
- package/dist/{Shape-CLRxBhyM.cjs → Shape-CadGs1Am.cjs} +1 -1
- package/dist/{Shape-DNbJlwSU.js → Shape-kqcyauhC.js} +1 -1
- package/dist/{Slicer-Dts-BToH.cjs → Slicer-i_oECHxH.cjs} +1 -1
- package/dist/{Slicer-8Gg45iGX.js → Slicer-yaJs-izT.js} +2 -2
- package/dist/{Title-Ngy9HNqO.js → Title-C26I_HC3.js} +1 -1
- package/dist/{Title-CujodUjt.cjs → Title-XBiDFYKD.cjs} +1 -1
- package/dist/{Tooltip-BCtg7xYX.js → Tooltip-CH8GmDCG.js} +1 -1
- package/dist/{Tooltip-DsmWz8gF.cjs → Tooltip-DxtWkIt5.cjs} +1 -1
- package/dist/{index-Dvs5Ra-u.js → index-Cm4Iry5c.js} +1 -1
- package/dist/{index-sFjJ2dIj.cjs → index-DYUBiaGS.cjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-UohhCyBz.js → useNestedProp-CurQIHTa.js} +1 -1
- package/dist/{useNestedProp-ir0jEo5M.cjs → useNestedProp-w7AMWWmz.cjs} +1 -1
- package/dist/{usePrinter-B8-keRMa.js → usePrinter-B8RnF8_q.js} +1 -1
- package/dist/{usePrinter-DSMMs1w9.cjs → usePrinter-ZlHxdaEz.cjs} +1 -1
- package/dist/{vue-data-ui-NvV5qa--.cjs → vue-data-ui-B7amrpT-.cjs} +1 -1
- package/dist/{vue-data-ui-Bgo6YUhl.js → vue-data-ui-Bj6kEIpq.js} +57 -57
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/vue-ui-3d-bar-BAz41kL7.cjs +19 -0
- package/dist/{vue-ui-3d-bar-DckNIYgA.js → vue-ui-3d-bar-Bg9IgVVc.js} +499 -486
- package/dist/{vue-ui-accordion-RuCkf_li.cjs → vue-ui-accordion-1WxrfiCH.cjs} +1 -1
- package/dist/{vue-ui-accordion-C-qAry7P.js → vue-ui-accordion-Cb6XBCbu.js} +3 -3
- package/dist/{vue-ui-age-pyramid-CamjaXUw.js → vue-ui-age-pyramid-BhwmnQru.js} +182 -169
- package/dist/vue-ui-age-pyramid-CHNvRXx8.cjs +1 -0
- package/dist/{vue-ui-annotator-D0kYZ56C.cjs → vue-ui-annotator-B22cdlhA.cjs} +1 -1
- package/dist/{vue-ui-annotator-DMmdqorj.js → vue-ui-annotator-BiHQvMdW.js} +1 -1
- package/dist/{vue-ui-candlestick-DRi8lDTn.js → vue-ui-candlestick-Cl9dyh4l.js} +295 -279
- package/dist/vue-ui-candlestick-D7DjdYyw.cjs +2 -0
- package/dist/vue-ui-carousel-table-Do5cYRqN.cjs +1 -0
- package/dist/{vue-ui-carousel-table-u5OoOMr1.js → vue-ui-carousel-table-QsONwqNz.js} +106 -91
- package/dist/vue-ui-chestnut-CyE8MafY.cjs +6 -0
- package/dist/{vue-ui-chestnut-D5a4OH1D.js → vue-ui-chestnut-Drb01WMC.js} +215 -204
- package/dist/{vue-ui-cursor-Bp_PHbz4.js → vue-ui-cursor-BP04_XbB.js} +2 -2
- package/dist/{vue-ui-cursor-DpBsZNEE.cjs → vue-ui-cursor-DZeTQBKz.cjs} +1 -1
- package/dist/{vue-ui-dashboard-BwBYH8V_.js → vue-ui-dashboard-BWdx5gjZ.js} +2 -2
- package/dist/{vue-ui-dashboard--kjU0uMc.cjs → vue-ui-dashboard-Z63RE1XS.cjs} +1 -1
- package/dist/{vue-ui-digits-CIV9J3SW.cjs → vue-ui-digits-CBQaHW6a.cjs} +1 -1
- package/dist/{vue-ui-digits-t2G4B6uD.js → vue-ui-digits-DUhkLcmd.js} +2 -2
- package/dist/vue-ui-donut-D2YJYgOB.cjs +1 -0
- package/dist/{vue-ui-donut-BTug2gsP.js → vue-ui-donut-DRPSwmGr.js} +376 -362
- package/dist/{vue-ui-donut-evolution-DTD0Hfgh.js → vue-ui-donut-evolution-gRXAyxq8.js} +270 -255
- package/dist/vue-ui-donut-evolution-jAMVgNHQ.cjs +1 -0
- package/dist/{vue-ui-dumbbell-BZw7lntE.js → vue-ui-dumbbell-CQo5jqSK.js} +232 -213
- package/dist/vue-ui-dumbbell-DLfZcrXq.cjs +9 -0
- package/dist/vue-ui-flow-BQ3UbMUb.js +481 -0
- package/dist/vue-ui-flow-BlX2-eEC.cjs +1 -0
- package/dist/{vue-ui-galaxy-Bjlm3WtB.js → vue-ui-galaxy-BHWugUKG.js} +175 -162
- package/dist/vue-ui-galaxy-Cax5o6Yl.cjs +1 -0
- package/dist/vue-ui-gauge-DG6_kvKh.js +500 -0
- package/dist/vue-ui-gauge-DpGcv_00.cjs +1 -0
- package/dist/vue-ui-gizmo-D9Vh9Rmr.cjs +1 -0
- package/dist/{vue-ui-gizmo-CiutQM-A.js → vue-ui-gizmo-bV148qAf.js} +66 -53
- package/dist/{vue-ui-heatmap-C933pQPU.js → vue-ui-heatmap-BZZUvnMa.js} +157 -143
- package/dist/vue-ui-heatmap-B_ELXKKV.cjs +1 -0
- package/dist/vue-ui-kpi-C5v7qQvZ.js +98 -0
- package/dist/vue-ui-kpi-CwVAvTB2.cjs +1 -0
- package/dist/{vue-ui-mini-loader-B5XG2gKd.js → vue-ui-mini-loader-BdKizX_J.js} +2 -2
- package/dist/{vue-ui-mini-loader-C67Z1C6r.cjs → vue-ui-mini-loader-DZNY-3rr.cjs} +1 -1
- package/dist/{vue-ui-molecule-DzIeuL8t.js → vue-ui-molecule-MKyrhqqm.js} +177 -167
- package/dist/vue-ui-molecule-bva6OvPc.cjs +1 -0
- package/dist/{vue-ui-mood-radar-02L4M-n_.js → vue-ui-mood-radar-BNIFFvq0.js} +172 -161
- package/dist/vue-ui-mood-radar-CzQOAyNI.cjs +1 -0
- package/dist/{vue-ui-nested-donuts-BY50trfJ.js → vue-ui-nested-donuts-BDAlZrMF.js} +377 -364
- package/dist/vue-ui-nested-donuts-CxdZC6JF.cjs +17 -0
- package/dist/{vue-ui-onion-BmQ7B9xY.js → vue-ui-onion-CFa4VD-w.js} +191 -177
- package/dist/vue-ui-onion-Df7YcsVR.cjs +5 -0
- package/dist/vue-ui-parallel-coordinate-plot-D7Q2zfcR.cjs +8 -0
- package/dist/{vue-ui-parallel-coordinate-plot-BdfcqlfT.js → vue-ui-parallel-coordinate-plot-DmqYXT-U.js} +298 -284
- package/dist/{vue-ui-quadrant-CLimyRoA.js → vue-ui-quadrant-D5jHkq9g.js} +347 -334
- package/dist/vue-ui-quadrant-ZqhcVYf5.cjs +1 -0
- package/dist/{vue-ui-quick-chart-CX8Kas-o.js → vue-ui-quick-chart-BjXXSx7V.js} +483 -469
- package/dist/vue-ui-quick-chart-Dt9AsEU6.cjs +15 -0
- package/dist/vue-ui-radar-2EuZr7i2.cjs +1 -0
- package/dist/{vue-ui-radar-CK0PB5oY.js → vue-ui-radar-CW8EKW4o.js} +202 -189
- package/dist/{vue-ui-rating-Ceu3pXmF.cjs → vue-ui-rating-DrtLvVA0.cjs} +1 -1
- package/dist/{vue-ui-rating-BnqWN2ui.js → vue-ui-rating-eSWsmJUU.js} +2 -2
- package/dist/vue-ui-relation-circle-C60OTe88.cjs +1 -0
- package/dist/vue-ui-relation-circle-DiUCpEqa.js +322 -0
- package/dist/{vue-ui-rings-CYthauSM.js → vue-ui-rings-BxhLbyG0.js} +203 -189
- package/dist/vue-ui-rings-CHq-a5ZS.cjs +2 -0
- package/dist/{vue-ui-scatter-Cxr9eymz.js → vue-ui-scatter-DQchX_mM.js} +284 -270
- package/dist/vue-ui-scatter-DZUZUbnk.cjs +1 -0
- package/dist/{vue-ui-screenshot-CVWC5rbJ.js → vue-ui-screenshot-CLa9vMzM.js} +1 -1
- package/dist/{vue-ui-screenshot-sBd8-Oyh.cjs → vue-ui-screenshot-SLSIpqx2.cjs} +1 -1
- package/dist/{vue-ui-skeleton-CAvlIcgk.js → vue-ui-skeleton-C1oUnz7R.js} +2 -2
- package/dist/{vue-ui-skeleton-CqF0NJ4g.cjs → vue-ui-skeleton-ClpTCY1x.cjs} +1 -1
- package/dist/{vue-ui-smiley-CXbipVsb.js → vue-ui-smiley-CmWHSt1S.js} +2 -2
- package/dist/{vue-ui-smiley-c_I60YOy.cjs → vue-ui-smiley-Daw8fPDy.cjs} +1 -1
- package/dist/vue-ui-spark-trend-CO69Dg31.js +263 -0
- package/dist/vue-ui-spark-trend-DmDlv8ie.cjs +1 -0
- package/dist/{vue-ui-sparkbar-Dm-2_5Ef.js → vue-ui-sparkbar-BRlqpe4e.js} +95 -87
- package/dist/vue-ui-sparkbar-BUGdi0BY.cjs +1 -0
- package/dist/vue-ui-sparkgauge-CCxKzDjT.cjs +1 -0
- package/dist/vue-ui-sparkgauge-CbuFESsM.js +178 -0
- package/dist/{vue-ui-sparkhistogram-qf87TXA-.js → vue-ui-sparkhistogram-B4-hrDHz.js} +79 -68
- package/dist/vue-ui-sparkhistogram-XtqX10_t.cjs +1 -0
- package/dist/vue-ui-sparkline-BZTEi9YC.cjs +1 -0
- package/dist/{vue-ui-sparkline-CZBgvY1A.js → vue-ui-sparkline-DlXNmG6M.js} +142 -123
- package/dist/vue-ui-sparkstackbar-CDmZeXnq.cjs +1 -0
- package/dist/{vue-ui-sparkstackbar-GtkDZDXZ.js → vue-ui-sparkstackbar-J1YowQmP.js} +120 -104
- package/dist/{vue-ui-stackbar-D_Ui7xec.js → vue-ui-stackbar-CKIDqkkY.js} +235 -222
- package/dist/vue-ui-stackbar-CXGWukoJ.cjs +6 -0
- package/dist/vue-ui-strip-plot-CvmoRcYN.cjs +1 -0
- package/dist/{vue-ui-strip-plot--VJ3f5UV.js → vue-ui-strip-plot-JVLwIy0j.js} +246 -232
- package/dist/{vue-ui-table-BCQ7voEV.js → vue-ui-table-BSi_cHh7.js} +1 -1
- package/dist/{vue-ui-table-B_6N0VOD.cjs → vue-ui-table-Dqi64VE7.cjs} +1 -1
- package/dist/vue-ui-table-heatmap-BwghEh5t.cjs +1 -0
- package/dist/{vue-ui-table-heatmap-UwpQQMHB.js → vue-ui-table-heatmap-CfvW3rcm.js} +106 -95
- package/dist/{vue-ui-table-sparkline-Bzqs2Hcp.js → vue-ui-table-sparkline-Y6Lrrzxy.js} +151 -138
- package/dist/vue-ui-table-sparkline-bIy3kkHB.cjs +1 -0
- package/dist/{vue-ui-thermometer-BQbYzsSV.js → vue-ui-thermometer-BPTs7Nxc.js} +116 -104
- package/dist/vue-ui-thermometer-DDtxYr7w.cjs +1 -0
- package/dist/{vue-ui-timer-KGEswANF.js → vue-ui-timer-CkB7eZaE.js} +191 -176
- package/dist/vue-ui-timer-DRSSYxOX.cjs +64 -0
- package/dist/{vue-ui-tiremarks-BSkMCIu1.js → vue-ui-tiremarks-BbOaoY8S.js} +115 -103
- package/dist/vue-ui-tiremarks-Bttwg3-p.cjs +1 -0
- package/dist/vue-ui-treemap-Chq0WQPe.cjs +1 -0
- package/dist/{vue-ui-treemap-DIWveOrq.js → vue-ui-treemap-CoaK3wBl.js} +251 -237
- package/dist/{vue-ui-vertical-bar-Dx6wReOw.js → vue-ui-vertical-bar-BA43_uHV.js} +374 -358
- package/dist/vue-ui-vertical-bar-BLIUt-HT.cjs +4 -0
- package/dist/{vue-ui-waffle-D3jMPOd3.js → vue-ui-waffle-BoEf8CcG.js} +285 -265
- package/dist/vue-ui-waffle-NBjY0mko.cjs +1 -0
- package/dist/vue-ui-wheel-Bgo2jpj0.js +255 -0
- package/dist/vue-ui-wheel-t5bI4a-P.cjs +1 -0
- package/dist/vue-ui-word-cloud-DPW_-Hzz.cjs +1 -0
- package/dist/vue-ui-word-cloud-Jd9_JUyi.js +512 -0
- package/dist/{vue-ui-xy-9_2IHEOX.js → vue-ui-xy-BMBYAC4z.js} +300 -274
- package/dist/vue-ui-xy-CBHEBcZK.cjs +3 -0
- package/dist/vue-ui-xy-canvas-D5FqRF4p.cjs +9 -0
- package/dist/{vue-ui-xy-canvas-DGuGy69l.js → vue-ui-xy-canvas-LOsQ_DM-.js} +345 -327
- package/package.json +1 -1
- package/dist/vue-ui-3d-bar-DhzN0gd4.cjs +0 -19
- package/dist/vue-ui-age-pyramid-CfUUEeKt.cjs +0 -1
- package/dist/vue-ui-candlestick-DJIJnnI_.cjs +0 -2
- package/dist/vue-ui-carousel-table-uYt1zVjx.cjs +0 -1
- package/dist/vue-ui-chestnut-CG5krVO-.cjs +0 -6
- package/dist/vue-ui-donut-D6SrEIEJ.cjs +0 -1
- package/dist/vue-ui-donut-evolution-Cb45erSA.cjs +0 -1
- package/dist/vue-ui-dumbbell-DVabaAYH.cjs +0 -9
- package/dist/vue-ui-flow-Bn1EP9Z1.cjs +0 -1
- package/dist/vue-ui-flow-Cz_xaLAs.js +0 -469
- package/dist/vue-ui-galaxy-Drnhlmmw.cjs +0 -1
- package/dist/vue-ui-gauge-CxIVYnG2.js +0 -488
- package/dist/vue-ui-gauge-D2reVZ-b.cjs +0 -1
- package/dist/vue-ui-gizmo-B6ZwXwFY.cjs +0 -1
- package/dist/vue-ui-heatmap-ClFm7qUu.cjs +0 -1
- package/dist/vue-ui-kpi-CdPFWSHA.cjs +0 -1
- package/dist/vue-ui-kpi-ClreiT4V.js +0 -84
- package/dist/vue-ui-molecule-JJQ3af-R.cjs +0 -1
- package/dist/vue-ui-mood-radar-DT4JU_6B.cjs +0 -1
- package/dist/vue-ui-nested-donuts-D6Dihmne.cjs +0 -17
- package/dist/vue-ui-onion-DoNDCpth.cjs +0 -5
- package/dist/vue-ui-parallel-coordinate-plot-CJMjEDXR.cjs +0 -8
- package/dist/vue-ui-quadrant-DWqmU3-5.cjs +0 -1
- package/dist/vue-ui-quick-chart-CB5VelG0.cjs +0 -15
- package/dist/vue-ui-radar-aTceo-HQ.cjs +0 -1
- package/dist/vue-ui-relation-circle-D1z8MBVH.js +0 -310
- package/dist/vue-ui-relation-circle-DWGtziD_.cjs +0 -1
- package/dist/vue-ui-rings-gp0sEMy6.cjs +0 -2
- package/dist/vue-ui-scatter-BKl2fUIR.cjs +0 -1
- package/dist/vue-ui-spark-trend-C3sBXu8D.js +0 -251
- package/dist/vue-ui-spark-trend-CXkkMK6N.cjs +0 -1
- package/dist/vue-ui-sparkbar-BkN5iTUq.cjs +0 -1
- package/dist/vue-ui-sparkgauge-D4EqU3x3.cjs +0 -1
- package/dist/vue-ui-sparkgauge-FKTXvE7e.js +0 -167
- package/dist/vue-ui-sparkhistogram-BkJz2dBD.cjs +0 -1
- package/dist/vue-ui-sparkline-TPkuvKtA.cjs +0 -1
- package/dist/vue-ui-sparkstackbar-CzzfnPDS.cjs +0 -1
- package/dist/vue-ui-stackbar-NHgsl2-Z.cjs +0 -6
- package/dist/vue-ui-strip-plot-CU6OtKt7.cjs +0 -1
- package/dist/vue-ui-table-heatmap-DFMF1RZ0.cjs +0 -1
- package/dist/vue-ui-table-sparkline-DWvOKdPb.cjs +0 -1
- package/dist/vue-ui-thermometer-BOuuVWuf.cjs +0 -1
- package/dist/vue-ui-timer-BCiMjXdm.cjs +0 -64
- package/dist/vue-ui-tiremarks-DuEz8cO5.cjs +0 -1
- package/dist/vue-ui-treemap-BO8gKQ4O.cjs +0 -1
- package/dist/vue-ui-vertical-bar-Dpzyha_P.cjs +0 -4
- package/dist/vue-ui-waffle-C0-IVDjk.cjs +0 -1
- package/dist/vue-ui-wheel-B10kCoLD.js +0 -242
- package/dist/vue-ui-wheel-mWdIHlXV.cjs +0 -1
- package/dist/vue-ui-word-cloud-CYtRxpdV.cjs +0 -1
- package/dist/vue-ui-word-cloud-rhrsHes4.js +0 -498
- package/dist/vue-ui-xy-CFqs5rtd.cjs +0 -3
- package/dist/vue-ui-xy-canvas-sLH0pM-i.cjs +0 -9
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { computed 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
|
-
const
|
|
1
|
+
import { computed as p, ref as i, watch as Ve, onMounted as Ue, onBeforeUnmount as Ee, openBlock as s, createElementBlock as n, normalizeClass as z, normalizeStyle as B, createBlock as S, createCommentVNode as f, unref as h, createSlots as Be, withCtx as y, renderSlot as m, normalizeProps as D, guardReactiveProps as G, createElementVNode as w, Fragment as $, renderList as x, toDisplayString as R, createVNode as me, createTextVNode as be, nextTick as De } from "vue";
|
|
2
|
+
import { u as Ge, c as We, t as Xe, a as Ye, p as P, o as je, e as F, b as qe, g as ke, d as Ce, M as _e, s as He, i as we, f as M, X as Je, v as Ke, w as K, N as $e, x as Qe, y as Ze, q as et, r as tt } from "./index-Cm4Iry5c.js";
|
|
3
|
+
import { t as at, u as ot } from "./useResponsive-NZB-WLRF.js";
|
|
4
|
+
import { _ as lt } from "./Title-C26I_HC3.js";
|
|
5
|
+
import { u as rt, U as st } from "./usePrinter-B8RnF8_q.js";
|
|
6
|
+
import { _ as nt } from "./Tooltip-CH8GmDCG.js";
|
|
7
|
+
import ut from "./vue-ui-sparkbar-BRlqpe4e.js";
|
|
8
|
+
import { L as it } from "./Legend-DX1kv21U.js";
|
|
9
|
+
import { D as ct } from "./DataTable-CQANRZju.js";
|
|
10
|
+
import dt from "./vue-ui-skeleton-C1oUnz7R.js";
|
|
11
|
+
import vt from "./vue-ui-accordion-Cb6XBCbu.js";
|
|
12
|
+
import { u as xe } from "./useNestedProp-CurQIHTa.js";
|
|
13
|
+
import { _ as pt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
|
+
const ht = ["id"], gt = ["xmlns", "viewBox"], ft = ["id"], yt = ["stop-color"], mt = ["stop-color"], bt = { key: 0 }, kt = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Ct = { key: 0 }, _t = ["d", "stroke", "stroke-width"], wt = ["d", "stroke", "stroke-width"], $t = { key: 1 }, xt = ["x", "y", "text-anchor", "font-size", "fill", "onMouseenter"], Pt = ["points", "stroke", "stroke-width"], Tt = ["points", "stroke", "stroke-width", "fill"], Nt = { key: 2 }, St = ["cx", "cy", "fill", "r", "stroke"], Ft = {
|
|
15
15
|
key: 3,
|
|
16
16
|
class: "vue-data-ui-watermark"
|
|
17
|
-
},
|
|
17
|
+
}, Ot = ["onClick"], At = {
|
|
18
18
|
key: 0,
|
|
19
19
|
style: { "max-width": "200px", margin: "0 auto" }
|
|
20
|
-
},
|
|
20
|
+
}, It = {
|
|
21
21
|
__name: "vue-ui-radar",
|
|
22
22
|
props: {
|
|
23
23
|
config: {
|
|
@@ -34,48 +34,59 @@ const ut = ["id"], it = ["xmlns", "viewBox"], ct = ["id"], dt = ["stop-color"],
|
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
36
|
emits: ["selectLegend"],
|
|
37
|
-
setup(
|
|
38
|
-
const
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
37
|
+
setup(Pe, { expose: Te, emit: Ne }) {
|
|
38
|
+
const v = Pe, { vue_ui_radar: Se } = Ge(), O = p(() => !!v.dataset && Object.keys(v.dataset).length), _ = i(We()), Fe = i(null), W = i(!1), X = i(""), Q = i(0), A = i(null), Z = i(null), ee = i(null), te = i(0), ae = i(0), oe = i(0), e = p({
|
|
39
|
+
get: () => le(),
|
|
40
|
+
set: (t) => t
|
|
41
|
+
});
|
|
42
|
+
function le() {
|
|
43
|
+
const t = xe({
|
|
44
|
+
userConfig: v.config,
|
|
45
|
+
defaultConfig: Se
|
|
42
46
|
});
|
|
43
47
|
return t.theme ? {
|
|
44
|
-
...
|
|
45
|
-
userConfig:
|
|
48
|
+
...xe({
|
|
49
|
+
userConfig: Xe.vue_ui_radar[t.theme] || v.config,
|
|
46
50
|
defaultConfig: t
|
|
47
51
|
}),
|
|
48
|
-
customPalette:
|
|
52
|
+
customPalette: Ye[t.theme] || P
|
|
49
53
|
} : t;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
|
|
54
|
+
}
|
|
55
|
+
Ve(() => v.config, (t) => {
|
|
56
|
+
e.value = le(), re(), te.value += 1, ae.value += 1, oe.value += 1;
|
|
57
|
+
}, { deep: !0 });
|
|
58
|
+
const V = i(null);
|
|
59
|
+
function re() {
|
|
60
|
+
if (je(v.dataset) && F({
|
|
53
61
|
componentName: "VueUiRadar",
|
|
54
62
|
type: "dataset"
|
|
55
63
|
}), e.value.responsive) {
|
|
56
|
-
const t =
|
|
57
|
-
const { width: a, height: o } =
|
|
64
|
+
const t = at(() => {
|
|
65
|
+
const { width: a, height: o } = ot({
|
|
58
66
|
chart: A.value,
|
|
59
|
-
title: e.value.style.chart.title.text ?
|
|
60
|
-
legend: e.value.style.chart.legend.show ?
|
|
67
|
+
title: e.value.style.chart.title.text ? Z.value : null,
|
|
68
|
+
legend: e.value.style.chart.legend.show ? ee.value : null
|
|
61
69
|
});
|
|
62
70
|
u.value.width = a, u.value.height = o;
|
|
63
71
|
});
|
|
64
|
-
|
|
72
|
+
V.value = new ResizeObserver(t), V.value.observe(A.value.parentNode);
|
|
65
73
|
}
|
|
66
|
-
}
|
|
67
|
-
|
|
74
|
+
}
|
|
75
|
+
Ue(() => {
|
|
76
|
+
re();
|
|
77
|
+
}), Ee(() => {
|
|
78
|
+
V.value && V.value.disconnect();
|
|
68
79
|
});
|
|
69
|
-
const { isPrinting:
|
|
80
|
+
const { isPrinting: se, isImaging: ne, generatePdf: ue, generateImage: ie } = rt({
|
|
70
81
|
elementId: `vue-ui-radar_${_.value}`,
|
|
71
82
|
fileName: e.value.style.chart.title.text || "vue-ui-radar"
|
|
72
|
-
}),
|
|
83
|
+
}), ce = p(() => qe(e.value.customPalette)), k = i({
|
|
73
84
|
dataLabels: {
|
|
74
85
|
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
75
86
|
},
|
|
76
87
|
showTable: e.value.table.show,
|
|
77
88
|
showTooltip: e.value.style.chart.tooltip.show
|
|
78
|
-
}),
|
|
89
|
+
}), Oe = p(() => ({
|
|
79
90
|
style: {
|
|
80
91
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
81
92
|
animation: {
|
|
@@ -97,34 +108,34 @@ const ut = ["id"], it = ["xmlns", "viewBox"], ct = ["id"], dt = ["stop-color"],
|
|
|
97
108
|
height: 312,
|
|
98
109
|
width: 512
|
|
99
110
|
}), c = i([]), I = i(null), T = i(!1);
|
|
100
|
-
function
|
|
111
|
+
function de(t) {
|
|
101
112
|
T.value = !0, c.value.includes(t) ? (I.value = t, c.value = c.value.filter((a) => a !== t), setTimeout(() => {
|
|
102
113
|
T.value = !1, I.value = null;
|
|
103
114
|
}, 500)) : (c.value.push(t), setTimeout(() => {
|
|
104
115
|
T.value = !1;
|
|
105
|
-
}, 500)),
|
|
116
|
+
}, 500)), Ne("selectLegend", N.value.filter((a, o) => !c.value.includes(o)).map((a) => ({
|
|
106
117
|
name: a.name,
|
|
107
118
|
color: a.color,
|
|
108
119
|
proportion: a.totalProportion
|
|
109
120
|
})));
|
|
110
121
|
}
|
|
111
|
-
function
|
|
122
|
+
function Ae() {
|
|
112
123
|
return N.value.map((t) => ({
|
|
113
124
|
name: t.name,
|
|
114
125
|
color: t.color,
|
|
115
126
|
proportion: t.totalProportion
|
|
116
127
|
}));
|
|
117
128
|
}
|
|
118
|
-
const g =
|
|
129
|
+
const g = p(() => [null, void 0].includes(v.dataset.categories) ? (F({
|
|
119
130
|
componentName: "VueUiRadar",
|
|
120
131
|
type: "datasetAttribute",
|
|
121
132
|
property: "categories ({ name: string; prefix?: string; suffix?: string}[])"
|
|
122
|
-
}), []) : (
|
|
133
|
+
}), []) : (v.dataset.categories.length === 0 ? F({
|
|
123
134
|
componentName: "VueUiRadar",
|
|
124
135
|
type: "datasetAttributeEmpty",
|
|
125
136
|
property: "categories"
|
|
126
|
-
}) :
|
|
127
|
-
|
|
137
|
+
}) : v.dataset.categories.forEach((t, a) => {
|
|
138
|
+
ke({
|
|
128
139
|
datasetObject: t,
|
|
129
140
|
requiredAttributes: ["name"]
|
|
130
141
|
}).forEach((o) => {
|
|
@@ -135,12 +146,12 @@ const ut = ["id"], it = ["xmlns", "viewBox"], ct = ["id"], dt = ["stop-color"],
|
|
|
135
146
|
index: a
|
|
136
147
|
});
|
|
137
148
|
});
|
|
138
|
-
}), [null, void 0].includes(
|
|
149
|
+
}), [null, void 0].includes(v.dataset.series) ? F({
|
|
139
150
|
componentName: "VueUiRadar",
|
|
140
151
|
type: "datasetAttribute",
|
|
141
152
|
property: "series ({ name: string; values: number[]; color?: string; target: number}[])"
|
|
142
|
-
}) :
|
|
143
|
-
|
|
153
|
+
}) : v.dataset.series.forEach((t, a) => {
|
|
154
|
+
ke({
|
|
144
155
|
datasetObject: t,
|
|
145
156
|
requiredAttributes: ["name", "values", "target"]
|
|
146
157
|
}).forEach((o) => {
|
|
@@ -152,34 +163,34 @@ const ut = ["id"], it = ["xmlns", "viewBox"], ct = ["id"], dt = ["stop-color"],
|
|
|
152
163
|
index: a
|
|
153
164
|
});
|
|
154
165
|
});
|
|
155
|
-
}),
|
|
166
|
+
}), v.dataset.categories.map((t, a) => ({
|
|
156
167
|
name: t.name,
|
|
157
168
|
categoryId: `radar_category_${_.value}_${a}`,
|
|
158
|
-
color:
|
|
169
|
+
color: Ce(t.color) || ce.value[a] || P[a] || P[a % P.length],
|
|
159
170
|
prefix: t.prefix ?? "",
|
|
160
171
|
suffix: t.suffix ?? ""
|
|
161
|
-
})))), b =
|
|
172
|
+
})))), b = p(() => O.value ? v.dataset.series.map((t, a) => ({
|
|
162
173
|
...t,
|
|
163
|
-
color:
|
|
174
|
+
color: Ce(t.color) || ce.value[a] || P[a] || P[a % P.length],
|
|
164
175
|
serieId: `radar_serie_${_.value}_${a}`,
|
|
165
176
|
formatter: t.formatter || null
|
|
166
|
-
})) : []),
|
|
177
|
+
})) : []), ve = p(() => Math.max(...b.value.flatMap((t) => t.values))), pe = p(() => b.value.length), Y = p(() => Math.min(u.value.width, u.value.height) / 3), he = p(() => _e({
|
|
167
178
|
plot: { x: u.value.width / 2, y: u.value.height / 2 },
|
|
168
|
-
radius:
|
|
169
|
-
sides:
|
|
179
|
+
radius: Y.value,
|
|
180
|
+
sides: pe.value,
|
|
170
181
|
rotation: 0
|
|
171
|
-
})),
|
|
182
|
+
})), Ie = p(() => {
|
|
172
183
|
const t = [];
|
|
173
|
-
for (let a = 0; a <
|
|
184
|
+
for (let a = 0; a < Y.value; a += Y.value / e.value.style.chart.layout.grid.graduations)
|
|
174
185
|
t.push(a);
|
|
175
186
|
return t;
|
|
176
|
-
}), C =
|
|
177
|
-
const o = b.value[a].values.map((l) =>
|
|
187
|
+
}), C = p(() => he.value.coordinates.map((t, a) => {
|
|
188
|
+
const o = b.value[a].values.map((l) => Le({
|
|
178
189
|
centerX: u.value.width / 2,
|
|
179
190
|
centerY: u.value.height / 2,
|
|
180
191
|
apexX: t.x,
|
|
181
192
|
apexY: t.y,
|
|
182
|
-
proportion: l / (b.value[a].target ||
|
|
193
|
+
proportion: l / (b.value[a].target || ve.value)
|
|
183
194
|
}));
|
|
184
195
|
return {
|
|
185
196
|
...t,
|
|
@@ -187,55 +198,55 @@ const ut = ["id"], it = ["xmlns", "viewBox"], ct = ["id"], dt = ["stop-color"],
|
|
|
187
198
|
plots: o
|
|
188
199
|
};
|
|
189
200
|
}));
|
|
190
|
-
function
|
|
201
|
+
function j({ x: t, y: a }) {
|
|
191
202
|
let o = "middle";
|
|
192
203
|
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 };
|
|
193
204
|
}
|
|
194
|
-
function
|
|
205
|
+
function Le({ centerX: t, centerY: a, apexX: o, apexY: l, proportion: r }) {
|
|
195
206
|
return {
|
|
196
207
|
x: t + (o - t) * r,
|
|
197
208
|
y: a + (l - a) * r
|
|
198
209
|
};
|
|
199
210
|
}
|
|
200
|
-
const N =
|
|
201
|
-
const t = b.value.map((a, o) => a.values.map((l) => l / (a.target ||
|
|
211
|
+
const N = p(() => {
|
|
212
|
+
const t = b.value.map((a, o) => a.values.map((l) => l / (a.target || ve.value)));
|
|
202
213
|
return g.value.map((a, o) => ({
|
|
203
214
|
...a,
|
|
204
|
-
totalProportion:
|
|
215
|
+
totalProportion: He(t.map((l) => l[o]).reduce((l, r) => l + r, 0) / b.value.length),
|
|
205
216
|
shape: "circle",
|
|
206
217
|
opacity: c.value.includes(o) ? 0.5 : 1,
|
|
207
|
-
segregate: () =>
|
|
218
|
+
segregate: () => de(o),
|
|
208
219
|
isSegregated: c.value.includes(o)
|
|
209
220
|
}));
|
|
210
|
-
}),
|
|
221
|
+
}), ze = p(() => ({
|
|
211
222
|
cy: "radar-div-legend",
|
|
212
223
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
213
224
|
color: e.value.style.chart.legend.color,
|
|
214
225
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
215
226
|
paddingBottom: 12,
|
|
216
227
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
217
|
-
})),
|
|
228
|
+
})), U = p(() => {
|
|
218
229
|
const t = [
|
|
219
230
|
{ name: e.value.translations.datapoint, color: "" },
|
|
220
231
|
{ name: e.value.translations.target, color: "" },
|
|
221
232
|
...N.value
|
|
222
|
-
], a =
|
|
233
|
+
], a = v.dataset.series.map((l) => [
|
|
223
234
|
l.name,
|
|
224
|
-
|
|
235
|
+
we(
|
|
225
236
|
l.formatter,
|
|
226
237
|
l.target,
|
|
227
|
-
|
|
238
|
+
M({
|
|
228
239
|
p: l.prefix,
|
|
229
240
|
v: l.target,
|
|
230
241
|
s: l.suffix,
|
|
231
242
|
r: e.value.table.td.roundingValue
|
|
232
243
|
})
|
|
233
244
|
),
|
|
234
|
-
...l.values.map((r, d) => `${
|
|
245
|
+
...l.values.map((r, d) => `${we(
|
|
235
246
|
l.formatter,
|
|
236
247
|
r,
|
|
237
|
-
|
|
238
|
-
)} (${isNaN(r / l.target) ? "" :
|
|
248
|
+
M({ p: g.value[d].prefix, v: r, s: g.value[d].suffix, r: e.value.table.td.roundingValue })
|
|
249
|
+
)} (${isNaN(r / l.target) ? "" : M({
|
|
239
250
|
v: r / l.target * 100,
|
|
240
251
|
s: "%",
|
|
241
252
|
r: e.value.table.td.roundingPercentage
|
|
@@ -254,11 +265,11 @@ const ut = ["id"], it = ["xmlns", "viewBox"], ct = ["id"], dt = ["stop-color"],
|
|
|
254
265
|
breakpoint: e.value.table.responsiveBreakpoint
|
|
255
266
|
};
|
|
256
267
|
return { head: t, body: a, config: o, colNames: t };
|
|
257
|
-
}),
|
|
258
|
-
function
|
|
259
|
-
|
|
268
|
+
}), E = i(null), q = i([]), H = i(null);
|
|
269
|
+
function Re(t, a) {
|
|
270
|
+
q.value = [], E.value = a, W.value = !0;
|
|
260
271
|
let o = "";
|
|
261
|
-
|
|
272
|
+
H.value = {
|
|
262
273
|
datapoint: t,
|
|
263
274
|
seriesIndex: a,
|
|
264
275
|
series: {
|
|
@@ -269,13 +280,13 @@ const ut = ["id"], it = ["xmlns", "viewBox"], ct = ["id"], dt = ["stop-color"],
|
|
|
269
280
|
config: e.value
|
|
270
281
|
};
|
|
271
282
|
const l = e.value.style.chart.tooltip.customFormat;
|
|
272
|
-
if (
|
|
283
|
+
if (Qe(l) && Ze(() => l({
|
|
273
284
|
seriesIndex: a,
|
|
274
285
|
datapoint: t,
|
|
275
286
|
series: { categories: g.value, datapoints: b.value, radar: C.value },
|
|
276
287
|
config: e.value
|
|
277
288
|
})))
|
|
278
|
-
|
|
289
|
+
X.value = l({
|
|
279
290
|
seriesIndex: a,
|
|
280
291
|
datapoint: t,
|
|
281
292
|
series: { categories: g.value, datapoints: b.value, radar: C.value },
|
|
@@ -284,58 +295,59 @@ const ut = ["id"], it = ["xmlns", "viewBox"], ct = ["id"], dt = ["stop-color"],
|
|
|
284
295
|
else {
|
|
285
296
|
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>`;
|
|
286
297
|
for (let r = 0; r < t.values.length; r += 1)
|
|
287
|
-
c.value.includes(r) ||
|
|
298
|
+
c.value.includes(r) || q.value.push({
|
|
288
299
|
name: g.value[r].name,
|
|
289
300
|
value: t.values[r] / t.target * 100,
|
|
290
301
|
color: g.value[r].color,
|
|
291
302
|
suffix: "%)",
|
|
292
|
-
prefix: `${
|
|
303
|
+
prefix: `${M({ p: g.value[r].prefix ?? "", v: t.values[r], s: g.value[r].suffix ?? "", r: e.value.style.chart.tooltip.roundingValue })} (`,
|
|
293
304
|
rounding: e.value.style.chart.tooltip.roundingPercentage,
|
|
294
305
|
formatter: t.formatter
|
|
295
306
|
});
|
|
296
|
-
|
|
307
|
+
X.value = o;
|
|
297
308
|
}
|
|
298
309
|
}
|
|
299
|
-
function
|
|
300
|
-
|
|
301
|
-
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 =
|
|
302
|
-
|
|
303
|
-
isNaN(
|
|
304
|
-
])]), l = t.concat([a]).concat(o), r =
|
|
305
|
-
|
|
310
|
+
function ge() {
|
|
311
|
+
De(() => {
|
|
312
|
+
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, Lt) => [d.name, d.target, ...d.values.flatMap((J) => [
|
|
313
|
+
J,
|
|
314
|
+
isNaN(J / d.target) ? "" : J / d.target * 100
|
|
315
|
+
])]), l = t.concat([a]).concat(o), r = et(l);
|
|
316
|
+
tt({ csvContent: r, title: e.value.style.chart.title.text || "vue-ui-radar" });
|
|
306
317
|
});
|
|
307
318
|
}
|
|
308
|
-
const
|
|
309
|
-
function
|
|
310
|
-
|
|
319
|
+
const L = i(!1);
|
|
320
|
+
function Me(t) {
|
|
321
|
+
L.value = t, Q.value += 1;
|
|
311
322
|
}
|
|
312
|
-
function
|
|
323
|
+
function fe() {
|
|
313
324
|
k.value.showTable = !k.value.showTable;
|
|
314
325
|
}
|
|
315
|
-
function
|
|
326
|
+
function ye() {
|
|
316
327
|
k.value.showTooltip = !k.value.showTooltip;
|
|
317
328
|
}
|
|
318
|
-
return
|
|
319
|
-
getData:
|
|
320
|
-
generatePdf:
|
|
321
|
-
generateCsv:
|
|
322
|
-
generateImage:
|
|
323
|
-
toggleTable:
|
|
324
|
-
toggleTooltip:
|
|
329
|
+
return Te({
|
|
330
|
+
getData: Ae,
|
|
331
|
+
generatePdf: ue,
|
|
332
|
+
generateCsv: ge,
|
|
333
|
+
generateImage: ie,
|
|
334
|
+
toggleTable: fe,
|
|
335
|
+
toggleTooltip: ye
|
|
325
336
|
}), (t, a) => (s(), n("div", {
|
|
326
|
-
class:
|
|
337
|
+
class: z(`vue-ui-radar ${L.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
327
338
|
ref_key: "radarChart",
|
|
328
339
|
ref: A,
|
|
329
340
|
id: `vue-ui-radar_${_.value}`,
|
|
330
|
-
style:
|
|
341
|
+
style: B(`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}`)
|
|
331
342
|
}, [
|
|
332
343
|
e.value.style.chart.title.text ? (s(), n("div", {
|
|
333
344
|
key: 0,
|
|
334
345
|
ref_key: "chartTitle",
|
|
335
|
-
ref:
|
|
336
|
-
style:
|
|
346
|
+
ref: Z,
|
|
347
|
+
style: B(`width:100%;background:${e.value.style.chart.backgroundColor};padding-bottom:12px`)
|
|
337
348
|
}, [
|
|
338
|
-
|
|
349
|
+
(s(), S(lt, {
|
|
350
|
+
key: `title_${te.value}`,
|
|
339
351
|
config: {
|
|
340
352
|
title: {
|
|
341
353
|
cy: "radar-div-title",
|
|
@@ -346,16 +358,16 @@ const ut = ["id"], it = ["xmlns", "viewBox"], ct = ["id"], dt = ["stop-color"],
|
|
|
346
358
|
...e.value.style.chart.title.subtitle
|
|
347
359
|
}
|
|
348
360
|
}
|
|
349
|
-
}, null, 8, ["config"])
|
|
361
|
+
}, null, 8, ["config"]))
|
|
350
362
|
], 4)) : f("", !0),
|
|
351
|
-
e.value.userOptions.show && O.value ? (s(),
|
|
363
|
+
e.value.userOptions.show && O.value ? (s(), S(st, {
|
|
352
364
|
ref_key: "details",
|
|
353
|
-
ref:
|
|
354
|
-
key: `user_options_${
|
|
365
|
+
ref: Fe,
|
|
366
|
+
key: `user_options_${Q.value}`,
|
|
355
367
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
356
368
|
color: e.value.style.chart.color,
|
|
357
|
-
isImaging: h(
|
|
358
|
-
isPrinting: h(
|
|
369
|
+
isImaging: h(ne),
|
|
370
|
+
isPrinting: h(se),
|
|
359
371
|
uid: _.value,
|
|
360
372
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
361
373
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -363,17 +375,17 @@ const ut = ["id"], it = ["xmlns", "viewBox"], ct = ["id"], dt = ["stop-color"],
|
|
|
363
375
|
hasXls: e.value.userOptions.buttons.csv,
|
|
364
376
|
hasTable: e.value.userOptions.buttons.table,
|
|
365
377
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
366
|
-
isFullscreen:
|
|
378
|
+
isFullscreen: L.value,
|
|
367
379
|
isTooltip: k.value.showTooltip,
|
|
368
380
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
369
381
|
chartElement: A.value,
|
|
370
|
-
onToggleFullscreen:
|
|
371
|
-
onGeneratePdf: h(
|
|
372
|
-
onGenerateCsv:
|
|
373
|
-
onGenerateImage: h(
|
|
374
|
-
onToggleTable:
|
|
375
|
-
onToggleTooltip:
|
|
376
|
-
},
|
|
382
|
+
onToggleFullscreen: Me,
|
|
383
|
+
onGeneratePdf: h(ue),
|
|
384
|
+
onGenerateCsv: ge,
|
|
385
|
+
onGenerateImage: h(ie),
|
|
386
|
+
onToggleTable: fe,
|
|
387
|
+
onToggleTooltip: ye
|
|
388
|
+
}, Be({ _: 2 }, [
|
|
377
389
|
t.$slots.optionTooltip ? {
|
|
378
390
|
name: "optionTooltip",
|
|
379
391
|
fn: y(() => [
|
|
@@ -412,17 +424,17 @@ const ut = ["id"], it = ["xmlns", "viewBox"], ct = ["id"], dt = ["stop-color"],
|
|
|
412
424
|
t.$slots.optionFullscreen ? {
|
|
413
425
|
name: "optionFullscreen",
|
|
414
426
|
fn: y(({ toggleFullscreen: o, isFullscreen: l }) => [
|
|
415
|
-
m(t.$slots, "optionFullscreen", G(
|
|
427
|
+
m(t.$slots, "optionFullscreen", D(G({ toggleFullscreen: o, isFullscreen: l })), void 0, !0)
|
|
416
428
|
]),
|
|
417
429
|
key: "5"
|
|
418
430
|
} : void 0
|
|
419
431
|
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) : f("", !0),
|
|
420
432
|
O.value ? (s(), n("svg", {
|
|
421
433
|
key: 2,
|
|
422
|
-
xmlns: h(
|
|
423
|
-
class:
|
|
434
|
+
xmlns: h(Je),
|
|
435
|
+
class: z({ "vue-data-ui-fullscreen--on": L.value, "vue-data-ui-fulscreen--off": !L.value }),
|
|
424
436
|
viewBox: `0 0 ${u.value.width <= 0 ? 10 : u.value.width} ${u.value.height <= 0 ? 10 : u.value.height}`,
|
|
425
|
-
style:
|
|
437
|
+
style: B(`max-width:100%;overflow:visible;background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color}`)
|
|
426
438
|
}, [
|
|
427
439
|
w("defs", null, [
|
|
428
440
|
(s(!0), n($, null, x(g.value, (o, l) => (s(), n("radialGradient", {
|
|
@@ -435,15 +447,15 @@ const ut = ["id"], it = ["xmlns", "viewBox"], ct = ["id"], dt = ["stop-color"],
|
|
|
435
447
|
}, [
|
|
436
448
|
w("stop", {
|
|
437
449
|
offset: "0%",
|
|
438
|
-
"stop-color": `${h(
|
|
439
|
-
}, null, 8,
|
|
450
|
+
"stop-color": `${h(Ke)(o.color, 0.05)}${h(K)[e.value.style.chart.layout.dataPolygon.opacity]}`
|
|
451
|
+
}, null, 8, yt),
|
|
440
452
|
w("stop", {
|
|
441
453
|
offset: "100%",
|
|
442
|
-
"stop-color": o.color + h(
|
|
443
|
-
}, null, 8,
|
|
444
|
-
], 8,
|
|
454
|
+
"stop-color": o.color + h(K)[e.value.style.chart.layout.dataPolygon.opacity]
|
|
455
|
+
}, null, 8, mt)
|
|
456
|
+
], 8, ft))), 256))
|
|
445
457
|
]),
|
|
446
|
-
e.value.style.chart.layout.grid.show ? (s(), n("g",
|
|
458
|
+
e.value.style.chart.layout.grid.show ? (s(), n("g", bt, [
|
|
447
459
|
(s(!0), n($, null, x(C.value, (o) => (s(), n("line", {
|
|
448
460
|
x1: u.value.width / 2,
|
|
449
461
|
y1: u.value.height / 2,
|
|
@@ -451,83 +463,83 @@ const ut = ["id"], it = ["xmlns", "viewBox"], ct = ["id"], dt = ["stop-color"],
|
|
|
451
463
|
y2: o.y,
|
|
452
464
|
stroke: e.value.style.chart.layout.grid.stroke,
|
|
453
465
|
"stroke-width": e.value.style.chart.layout.grid.strokeWidth
|
|
454
|
-
}, null, 8,
|
|
455
|
-
e.value.style.chart.layout.grid.graduations > 0 ? (s(), n("g",
|
|
456
|
-
(s(!0), n($, null, x(
|
|
457
|
-
d: h(
|
|
466
|
+
}, null, 8, kt))), 256)),
|
|
467
|
+
e.value.style.chart.layout.grid.graduations > 0 ? (s(), n("g", Ct, [
|
|
468
|
+
(s(!0), n($, null, x(Ie.value, (o) => (s(), n("path", {
|
|
469
|
+
d: h(_e)({
|
|
458
470
|
plot: { x: u.value.width / 2, y: u.value.height / 2 },
|
|
459
471
|
radius: o,
|
|
460
|
-
sides:
|
|
472
|
+
sides: pe.value,
|
|
461
473
|
rotation: 0
|
|
462
474
|
}).path,
|
|
463
475
|
fill: "none",
|
|
464
476
|
stroke: e.value.style.chart.layout.grid.stroke,
|
|
465
477
|
"stroke-width": e.value.style.chart.layout.grid.strokeWidth
|
|
466
|
-
}, null, 8,
|
|
478
|
+
}, null, 8, _t))), 256))
|
|
467
479
|
])) : f("", !0)
|
|
468
480
|
])) : f("", !0),
|
|
469
481
|
w("path", {
|
|
470
|
-
d:
|
|
482
|
+
d: he.value.path,
|
|
471
483
|
fill: "none",
|
|
472
484
|
stroke: e.value.style.chart.layout.outerPolygon.stroke,
|
|
473
485
|
"stroke-width": e.value.style.chart.layout.outerPolygon.strokeWidth,
|
|
474
486
|
"stroke-linejoin": "round",
|
|
475
487
|
"stroke-linecap": "round"
|
|
476
|
-
}, null, 8,
|
|
477
|
-
e.value.style.chart.layout.labels.dataLabels.show ? (s(), n("g",
|
|
488
|
+
}, null, 8, wt),
|
|
489
|
+
e.value.style.chart.layout.labels.dataLabels.show ? (s(), n("g", $t, [
|
|
478
490
|
(s(!0), n($, null, x(C.value, (o, l) => (s(), n("text", {
|
|
479
|
-
x:
|
|
480
|
-
y:
|
|
481
|
-
"text-anchor":
|
|
491
|
+
x: j(o).x,
|
|
492
|
+
y: j(o).y,
|
|
493
|
+
"text-anchor": j(o).anchor,
|
|
482
494
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
483
495
|
fill: e.value.style.chart.layout.labels.dataLabels.color,
|
|
484
|
-
onMouseenter: (r) =>
|
|
496
|
+
onMouseenter: (r) => Re(o, l),
|
|
485
497
|
onMouseleave: a[0] || (a[0] = (r) => {
|
|
486
|
-
|
|
498
|
+
W.value = !1, E.value = null;
|
|
487
499
|
})
|
|
488
|
-
},
|
|
500
|
+
}, R(o.name), 41, xt))), 256))
|
|
489
501
|
])) : f("", !0),
|
|
490
502
|
(s(!0), n($, null, x(g.value, (o, l) => (s(), n("g", null, [
|
|
491
503
|
w("g", null, [
|
|
492
504
|
e.value.useCssAnimation || !e.value.useCssAnimation && !c.value.includes(l) ? (s(), n("polygon", {
|
|
493
505
|
key: 0,
|
|
494
506
|
"data-cy-radar-path": "",
|
|
495
|
-
points: h(
|
|
507
|
+
points: h($e)(C.value.map((r) => r.plots[l]), !1, !0),
|
|
496
508
|
stroke: e.value.style.chart.backgroundColor,
|
|
497
509
|
"stroke-width": e.value.style.chart.layout.dataPolygon.strokeWidth + 1,
|
|
498
510
|
fill: "none",
|
|
499
|
-
class:
|
|
500
|
-
}, null, 10,
|
|
511
|
+
class: z({ "animated-out": c.value.includes(l) && e.value.useCssAnimation, "animated-in": T.value && I.value === l && e.value.useCssAnimation })
|
|
512
|
+
}, null, 10, Pt)) : f("", !0),
|
|
501
513
|
e.value.useCssAnimation || !e.value.useCssAnimation && !c.value.includes(l) ? (s(), n("polygon", {
|
|
502
514
|
key: 1,
|
|
503
515
|
"data-cy-radar-path": "",
|
|
504
|
-
points: h(
|
|
516
|
+
points: h($e)(C.value.map((r) => r.plots[l]), !1, !0),
|
|
505
517
|
stroke: o.color,
|
|
506
518
|
"stroke-width": e.value.style.chart.layout.dataPolygon.strokeWidth,
|
|
507
|
-
fill: e.value.style.chart.layout.dataPolygon.transparent ? "transparent" : e.value.style.chart.layout.dataPolygon.useGradient ? `url(#radar_gradient_${_.value}_${l})` : o.color + h(
|
|
508
|
-
class:
|
|
509
|
-
}, null, 10,
|
|
519
|
+
fill: e.value.style.chart.layout.dataPolygon.transparent ? "transparent" : e.value.style.chart.layout.dataPolygon.useGradient ? `url(#radar_gradient_${_.value}_${l})` : o.color + h(K)[e.value.style.chart.layout.dataPolygon.opacity],
|
|
520
|
+
class: z({ "animated-out": c.value.includes(l) && e.value.useCssAnimation, "animated-in": T.value && I.value === l && e.value.useCssAnimation })
|
|
521
|
+
}, null, 10, Tt)) : f("", !0)
|
|
510
522
|
])
|
|
511
523
|
]))), 256)),
|
|
512
|
-
e.value.style.chart.layout.plots.show ? (s(), n("g",
|
|
524
|
+
e.value.style.chart.layout.plots.show ? (s(), n("g", Nt, [
|
|
513
525
|
(s(!0), n($, null, x(C.value, (o, l) => (s(), n("g", null, [
|
|
514
526
|
(s(!0), n($, null, x(o.plots, (r, d) => (s(), n("circle", {
|
|
515
527
|
cx: r.x,
|
|
516
528
|
cy: r.y,
|
|
517
529
|
fill: c.value.includes(d) ? "transparent" : g.value[d].color,
|
|
518
|
-
r:
|
|
530
|
+
r: E.value !== null && E.value === l ? e.value.style.chart.layout.plots.radius * 1.6 : e.value.style.chart.layout.plots.radius,
|
|
519
531
|
stroke: c.value.includes(d) ? "transparent" : e.value.style.chart.backgroundColor,
|
|
520
532
|
"stroke-width": 0.5,
|
|
521
|
-
class:
|
|
522
|
-
}, null, 10,
|
|
533
|
+
class: z({ "animated-out": c.value.includes(d) && e.value.useCssAnimation, "animated-in": T.value && I.value === d && e.value.useCssAnimation })
|
|
534
|
+
}, null, 10, St))), 256))
|
|
523
535
|
]))), 256))
|
|
524
536
|
])) : f("", !0),
|
|
525
537
|
m(t.$slots, "svg", { svg: u.value }, void 0, !0)
|
|
526
|
-
], 14,
|
|
527
|
-
t.$slots.watermark ? (s(), n("div",
|
|
528
|
-
m(t.$slots, "watermark", G(
|
|
538
|
+
], 14, gt)) : f("", !0),
|
|
539
|
+
t.$slots.watermark ? (s(), n("div", Ft, [
|
|
540
|
+
m(t.$slots, "watermark", D(G({ isPrinting: h(se) || h(ne) })), void 0, !0)
|
|
529
541
|
])) : f("", !0),
|
|
530
|
-
O.value ? f("", !0) : (s(),
|
|
542
|
+
O.value ? f("", !0) : (s(), S(dt, {
|
|
531
543
|
key: 4,
|
|
532
544
|
config: {
|
|
533
545
|
type: "radar",
|
|
@@ -546,24 +558,24 @@ const ut = ["id"], it = ["xmlns", "viewBox"], ct = ["id"], dt = ["stop-color"],
|
|
|
546
558
|
}, null, 8, ["config"])),
|
|
547
559
|
w("div", {
|
|
548
560
|
ref_key: "chartLegend",
|
|
549
|
-
ref:
|
|
561
|
+
ref: ee
|
|
550
562
|
}, [
|
|
551
|
-
e.value.style.chart.legend.show ? (s(),
|
|
552
|
-
key:
|
|
563
|
+
e.value.style.chart.legend.show ? (s(), S(it, {
|
|
564
|
+
key: `legend_${oe.value}`,
|
|
553
565
|
legendSet: N.value,
|
|
554
|
-
config:
|
|
555
|
-
onClickMarker: a[1] || (a[1] = ({ i: o }) =>
|
|
566
|
+
config: ze.value,
|
|
567
|
+
onClickMarker: a[1] || (a[1] = ({ i: o }) => de(o))
|
|
556
568
|
}, {
|
|
557
569
|
item: y(({ legend: o, index: l }) => [
|
|
558
570
|
w("div", {
|
|
559
571
|
"data-cy-legend-item": "",
|
|
560
572
|
onClick: (r) => o.segregate(),
|
|
561
|
-
style:
|
|
562
|
-
},
|
|
573
|
+
style: B(`opacity:${c.value.includes(l) ? 0.5 : 1}`)
|
|
574
|
+
}, R(o.name) + ": " + R(h(M)({
|
|
563
575
|
v: o.totalProportion * 100,
|
|
564
576
|
s: "%",
|
|
565
577
|
r: e.value.style.chart.legend.roundingPercentage
|
|
566
|
-
})), 13,
|
|
578
|
+
})), 13, Ot)
|
|
567
579
|
]),
|
|
568
580
|
_: 1
|
|
569
581
|
}, 8, ["legendSet", "config"])) : m(t.$slots, "legend", {
|
|
@@ -571,8 +583,8 @@ const ut = ["id"], it = ["xmlns", "viewBox"], ct = ["id"], dt = ["stop-color"],
|
|
|
571
583
|
legend: N.value
|
|
572
584
|
}, void 0, !0)
|
|
573
585
|
], 512),
|
|
574
|
-
|
|
575
|
-
show: k.value.showTooltip &&
|
|
586
|
+
me(nt, {
|
|
587
|
+
show: k.value.showTooltip && W.value,
|
|
576
588
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
577
589
|
color: e.value.style.chart.tooltip.color,
|
|
578
590
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -583,25 +595,25 @@ const ut = ["id"], it = ["xmlns", "viewBox"], ct = ["id"], dt = ["stop-color"],
|
|
|
583
595
|
position: e.value.style.chart.tooltip.position,
|
|
584
596
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
585
597
|
parent: A.value,
|
|
586
|
-
content:
|
|
598
|
+
content: X.value,
|
|
587
599
|
isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function"
|
|
588
600
|
}, {
|
|
589
601
|
"tooltip-before": y(() => [
|
|
590
|
-
m(t.$slots, "tooltip-before", G(
|
|
602
|
+
m(t.$slots, "tooltip-before", D(G({ ...H.value })), void 0, !0)
|
|
591
603
|
]),
|
|
592
604
|
"tooltip-after": y(() => [
|
|
593
|
-
["function"].includes(typeof e.value.style.chart.tooltip.customFormat) ? f("", !0) : (s(), n("div",
|
|
594
|
-
|
|
595
|
-
dataset:
|
|
596
|
-
config:
|
|
605
|
+
["function"].includes(typeof e.value.style.chart.tooltip.customFormat) ? f("", !0) : (s(), n("div", At, [
|
|
606
|
+
me(ut, {
|
|
607
|
+
dataset: q.value,
|
|
608
|
+
config: Oe.value,
|
|
597
609
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity
|
|
598
610
|
}, null, 8, ["dataset", "config", "backgroundOpacity"])
|
|
599
611
|
])),
|
|
600
|
-
m(t.$slots, "tooltip-after", G(
|
|
612
|
+
m(t.$slots, "tooltip-after", D(G({ ...H.value })), void 0, !0)
|
|
601
613
|
]),
|
|
602
614
|
_: 3
|
|
603
615
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "fontSize", "position", "offsetY", "parent", "content", "isCustom"]),
|
|
604
|
-
O.value ? (s(),
|
|
616
|
+
O.value ? (s(), S(vt, {
|
|
605
617
|
key: 5,
|
|
606
618
|
hideDetails: "",
|
|
607
619
|
config: {
|
|
@@ -618,28 +630,29 @@ const ut = ["id"], it = ["xmlns", "viewBox"], ct = ["id"], dt = ["stop-color"],
|
|
|
618
630
|
}
|
|
619
631
|
}, {
|
|
620
632
|
content: y(() => [
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
633
|
+
(s(), S(ct, {
|
|
634
|
+
key: `table_${ae.value}`,
|
|
635
|
+
colNames: U.value.colNames,
|
|
636
|
+
head: U.value.head,
|
|
637
|
+
body: U.value.body,
|
|
638
|
+
config: U.value.config,
|
|
626
639
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
627
640
|
onClose: a[2] || (a[2] = (o) => k.value.showTable = !1)
|
|
628
641
|
}, {
|
|
629
642
|
th: y(({ th: o }) => [
|
|
630
|
-
|
|
643
|
+
be(R(o.name), 1)
|
|
631
644
|
]),
|
|
632
645
|
td: y(({ td: o }) => [
|
|
633
|
-
|
|
646
|
+
be(R(o), 1)
|
|
634
647
|
]),
|
|
635
648
|
_: 1
|
|
636
|
-
}, 8, ["colNames", "head", "body", "config", "title"])
|
|
649
|
+
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
637
650
|
]),
|
|
638
651
|
_: 1
|
|
639
652
|
}, 8, ["config"])) : f("", !0)
|
|
640
|
-
], 14,
|
|
653
|
+
], 14, ht));
|
|
641
654
|
}
|
|
642
|
-
},
|
|
655
|
+
}, qt = /* @__PURE__ */ pt(It, [["__scopeId", "data-v-9855cfb0"]]);
|
|
643
656
|
export {
|
|
644
|
-
|
|
657
|
+
qt as default
|
|
645
658
|
};
|