vue-data-ui 2.3.27 → 2.3.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -1
- package/dist/{Arrow-HROOtfWV.cjs → Arrow-B8z06v67.cjs} +1 -1
- package/dist/{Arrow-O38M_J_k.js → Arrow-Bh7WeO_g.js} +1 -1
- package/dist/{BaseIcon-D8FXGup9.js → BaseIcon-BG_bJS3R.js} +1 -1
- package/dist/{BaseIcon-CiO8gP9x.cjs → BaseIcon-DDCJA3rm.cjs} +1 -1
- package/dist/{DataTable-EqeVt-K-.js → DataTable-CsPidn0_.js} +23 -20
- package/dist/DataTable-Doh_4M84.cjs +1 -0
- package/dist/{Legend-C_lBCmBu.cjs → Legend-B20rRwGi.cjs} +1 -1
- package/dist/{Legend-8eVERYMn.js → Legend-CkQ_zypV.js} +1 -1
- package/dist/{Shape-DvcgW6uK.js → Shape-B4gGeBLI.js} +1 -1
- package/dist/{Shape-D8RdmYWq.cjs → Shape-B8O8_E6l.cjs} +1 -1
- package/dist/{Slicer-BvYL7yVK.cjs → Slicer-BXveU40S.cjs} +1 -1
- package/dist/{Slicer-CH_5wnFM.js → Slicer-DaEfxscP.js} +1 -1
- package/dist/{Title-B9iq63n1.cjs → Title-BU6E8Xld.cjs} +1 -1
- package/dist/{Title-C3Ez1ceq.js → Title-eBTH8iGJ.js} +1 -1
- package/dist/{Tooltip-7SRMoiu-.js → Tooltip-B11OahTD.js} +1 -1
- package/dist/{Tooltip-DcDEanxk.cjs → Tooltip-Oicp_EIo.cjs} +1 -1
- package/dist/documentation/installation.md +1 -1
- package/dist/{index-DiWO-_ca.js → index-BlXzlBwZ.js} +447 -364
- package/dist/index-hKWfT7Wa.cjs +4 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +66 -0
- package/dist/types/vue-data-ui.d.ts +66 -0
- package/dist/{useNestedProp-DNX5EefQ.js → useNestedProp-BoNl5H_z.js} +1 -1
- package/dist/{useNestedProp-BtqgWTf9.cjs → useNestedProp-Cggpoz7e.cjs} +1 -1
- package/dist/{usePrinter-BD40aUzH.js → usePrinter-CZ8F5Cth.js} +1 -1
- package/dist/{usePrinter-Q1J--baX.cjs → usePrinter-DoYKBzst.cjs} +1 -1
- package/dist/{vue-data-ui-GHpxkf8a.js → vue-data-ui-BOqzG_nZ.js} +57 -57
- package/dist/{vue-data-ui-yd5q4Ura.cjs → vue-data-ui-CGgiWEo3.cjs} +1 -1
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +6 -6
- package/dist/{vue-ui-3d-bar-CAmoj5dT.js → vue-ui-3d-bar-CjnVg4YI.js} +342 -294
- package/dist/vue-ui-3d-bar-CpntMt7p.cjs +19 -0
- package/dist/{vue-ui-accordion-ogVvFfQy.cjs → vue-ui-accordion-CTYvdLLH.cjs} +1 -1
- package/dist/{vue-ui-accordion-CiNdgRO9.js → vue-ui-accordion-wHRG3nXl.js} +3 -3
- package/dist/vue-ui-age-pyramid-DDiL1Zje.cjs +1 -0
- package/dist/{vue-ui-age-pyramid-BrTpbEha.js → vue-ui-age-pyramid-vmCwgRy9.js} +258 -219
- package/dist/{vue-ui-annotator-B9IqZ-Hy.js → vue-ui-annotator-9FGJdNLY.js} +1 -1
- package/dist/{vue-ui-annotator-QbetAXoj.cjs → vue-ui-annotator-DQ3wKf9n.cjs} +1 -1
- package/dist/{vue-ui-candlestick-BvRwlc3d.cjs → vue-ui-candlestick-6joQ9JKQ.cjs} +1 -1
- package/dist/{vue-ui-candlestick-XjjwFaDO.js → vue-ui-candlestick-DpMr2r0i.js} +9 -9
- package/dist/{vue-ui-carousel-table-DtxcnSEp.cjs → vue-ui-carousel-table-BV0EOLqU.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-KYENY5gp.js → vue-ui-carousel-table-CgR4ADOz.js} +4 -4
- package/dist/{vue-ui-chestnut-DfIcguJd.js → vue-ui-chestnut-Ca2878kV.js} +439 -347
- package/dist/vue-ui-chestnut-CxoCcw_B.cjs +6 -0
- package/dist/{vue-ui-cursor-C4pJe90O.js → vue-ui-cursor-BW8C6oUc.js} +2 -2
- package/dist/{vue-ui-cursor-COS_MXr8.cjs → vue-ui-cursor-DxF_gXQf.cjs} +1 -1
- package/dist/{vue-ui-dashboard-DNOjWStr.cjs → vue-ui-dashboard-BGrVyITN.cjs} +1 -1
- package/dist/{vue-ui-dashboard-B_NUnxEF.js → vue-ui-dashboard-DN4nErBZ.js} +2 -2
- package/dist/{vue-ui-digits-uufqLbRt.js → vue-ui-digits-CmSFSs5S.js} +2 -2
- package/dist/{vue-ui-digits-Vx5prxaT.cjs → vue-ui-digits-CpSKBG2c.cjs} +1 -1
- package/dist/vue-ui-donut-BqfRwAIM.js +857 -0
- package/dist/vue-ui-donut-C29yXH3H.cjs +1 -0
- package/dist/vue-ui-donut-evolution-COFG73Xl.cjs +1 -0
- package/dist/vue-ui-donut-evolution-DIR7yBUC.js +839 -0
- package/dist/{vue-ui-dumbbell-z_Ck4W33.cjs → vue-ui-dumbbell-1NA60u3h.cjs} +2 -2
- package/dist/{vue-ui-dumbbell-KvrVLLw6.js → vue-ui-dumbbell-BASuPAvI.js} +202 -187
- package/dist/{vue-ui-flow-Dg4dkrcd.cjs → vue-ui-flow-DBK7d0DQ.cjs} +1 -1
- package/dist/{vue-ui-flow-BjMikE9b.js → vue-ui-flow-wq0aqc5r.js} +98 -93
- package/dist/vue-ui-galaxy-BgdVvk4N.cjs +1 -0
- package/dist/{vue-ui-galaxy-BdgveN18.js → vue-ui-galaxy-CFQ2hQAl.js} +180 -144
- package/dist/{vue-ui-gauge-D8pokfoA.cjs → vue-ui-gauge-C4_kEbgg.cjs} +1 -1
- package/dist/{vue-ui-gauge-D01FLnNz.js → vue-ui-gauge-CIN265dN.js} +158 -149
- package/dist/vue-ui-gizmo-BpT3iwC9.cjs +1 -0
- package/dist/{vue-ui-gizmo-Cp-EftjP.js → vue-ui-gizmo-DRXWEpqU.js} +63 -49
- package/dist/vue-ui-heatmap-CVD7FVfk.cjs +1 -0
- package/dist/vue-ui-heatmap-Dc0ft_Ga.js +644 -0
- package/dist/{vue-ui-kpi-D6rVKouk.js → vue-ui-kpi-DDL1TvBP.js} +19 -10
- package/dist/{vue-ui-kpi-PWurAGxE.cjs → vue-ui-kpi-WDZIt76s.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-YV68i0nk.js → vue-ui-mini-loader-B2C5U55l.js} +2 -2
- package/dist/{vue-ui-mini-loader-BsypWozL.cjs → vue-ui-mini-loader-BcGSpUfg.cjs} +1 -1
- package/dist/{vue-ui-molecule-Bx3fXHnw.cjs → vue-ui-molecule-C5BmRi2R.cjs} +1 -1
- package/dist/{vue-ui-molecule-BWYCf3Km.js → vue-ui-molecule-CD3cPNOq.js} +9 -9
- package/dist/{vue-ui-mood-radar-DsZozq6x.js → vue-ui-mood-radar-D0KbeV5j.js} +213 -187
- package/dist/vue-ui-mood-radar-afS64zg-.cjs +1 -0
- package/dist/{vue-ui-nested-donuts-qaViBhR3.js → vue-ui-nested-donuts-BGoc1RFX.js} +295 -228
- package/dist/vue-ui-nested-donuts-D-TeyOtL.cjs +17 -0
- package/dist/{vue-ui-onion-0iFsjuLM.js → vue-ui-onion-B_khL0Kv.js} +230 -196
- package/dist/vue-ui-onion-CFdbWLu3.cjs +1 -0
- package/dist/{vue-ui-parallel-coordinate-plot-BkZOKTIS.cjs → vue-ui-parallel-coordinate-plot-BmXvVt8r.cjs} +2 -2
- package/dist/{vue-ui-parallel-coordinate-plot-DxDFs1Lb.js → vue-ui-parallel-coordinate-plot-CP4V0K8m.js} +87 -87
- package/dist/{vue-ui-quadrant-Tw7SKMbQ.js → vue-ui-quadrant-C1YbjeI7.js} +455 -397
- package/dist/vue-ui-quadrant-C6-A8Gx_.cjs +1 -0
- package/dist/vue-ui-quick-chart-ConXdEsU.cjs +15 -0
- package/dist/vue-ui-quick-chart-CtWhs_2c.js +1374 -0
- package/dist/{vue-ui-radar-D5FV2IDm.js → vue-ui-radar-B2vAPYa7.js} +237 -214
- package/dist/vue-ui-radar-DMJLLVWb.cjs +1 -0
- package/dist/{vue-ui-rating-DTWIh_CV.cjs → vue-ui-rating-DhZ0tltR.cjs} +1 -1
- package/dist/{vue-ui-rating-Dds9tjxd.js → vue-ui-rating-xGz4av68.js} +9 -9
- package/dist/{vue-ui-relation-circle-B2p8F7-L.js → vue-ui-relation-circle-BQK8wMQE.js} +5 -5
- package/dist/{vue-ui-relation-circle-Cu9lKkX3.cjs → vue-ui-relation-circle-hb4Q051h.cjs} +1 -1
- package/dist/vue-ui-rings-D1EW3d4M.cjs +2 -0
- package/dist/{vue-ui-rings-BKzCFSx-.js → vue-ui-rings-ZKjhNx5K.js} +191 -162
- package/dist/{vue-ui-scatter-CwV9l1P7.js → vue-ui-scatter-CHONk8k0.js} +437 -381
- package/dist/vue-ui-scatter-CMRe2b2K.cjs +1 -0
- package/dist/{vue-ui-screenshot-CnPWz57l.cjs → vue-ui-screenshot-DcKhT745.cjs} +1 -1
- package/dist/{vue-ui-screenshot-Bo6i-aRF.js → vue-ui-screenshot-DmGe5ptH.js} +6 -6
- package/dist/{vue-ui-skeleton-CeNL0kH-.js → vue-ui-skeleton-CJ2R5R6u.js} +37 -37
- package/dist/{vue-ui-skeleton-CcrGR_Vh.cjs → vue-ui-skeleton-j-IOiy5w.cjs} +1 -1
- package/dist/{vue-ui-smiley-BBcmwq4z.cjs → vue-ui-smiley-D5Jn6d5f.cjs} +1 -1
- package/dist/{vue-ui-smiley-BGMzw-SW.js → vue-ui-smiley-DXVcosKR.js} +2 -2
- package/dist/{vue-ui-spark-trend-DlvTlA9z.cjs → vue-ui-spark-trend-CWH3W7h3.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-CSC9zmt7.js → vue-ui-spark-trend-Gg6TxR4m.js} +63 -58
- package/dist/vue-ui-sparkbar-BsoKTXr2.cjs +1 -0
- package/dist/vue-ui-sparkbar-DUx1qVzQ.js +280 -0
- package/dist/{vue-ui-sparkgauge-B5g5nxUh.cjs → vue-ui-sparkgauge-DPusPoRv.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-DJPt0cLe.js → vue-ui-sparkgauge-xrvp9g87.js} +60 -50
- package/dist/vue-ui-sparkhistogram---JRg2R1.cjs +1 -0
- package/dist/{vue-ui-sparkhistogram-DpvQcFls.js → vue-ui-sparkhistogram-DzYXMNj8.js} +99 -90
- package/dist/{vue-ui-sparkline-Bw3y-88R.cjs → vue-ui-sparkline-1Z6GnwoN.cjs} +1 -1
- package/dist/{vue-ui-sparkline-CDSg9rhl.js → vue-ui-sparkline-CGWePkVI.js} +114 -105
- package/dist/{vue-ui-sparkstackbar-Ckcir2dk.cjs → vue-ui-sparkstackbar-DCc68t8g.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-DveNwcVx.js → vue-ui-sparkstackbar-DFgeRAbQ.js} +52 -47
- package/dist/{vue-ui-stackbar-CZUsUeZ_.js → vue-ui-stackbar-B0dWToaf.js} +211 -196
- package/dist/vue-ui-stackbar-Cz0mT8Mo.cjs +15 -0
- package/dist/{vue-ui-strip-plot-lVVqtsNc.js → vue-ui-strip-plot-BFqd-S7c.js} +213 -198
- package/dist/vue-ui-strip-plot-DZt1Wq20.cjs +1 -0
- package/dist/{vue-ui-table-qtBWpg0m.cjs → vue-ui-table-CMvyMuc4.cjs} +1 -1
- package/dist/{vue-ui-table-8hNkBy1z.js → vue-ui-table-DtwEoIzI.js} +9 -9
- package/dist/{vue-ui-table-heatmap-HgHQKSax.cjs → vue-ui-table-heatmap-3RSMOHkc.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-BAPA4nvf.js → vue-ui-table-heatmap-C8b3pE04.js} +12 -12
- package/dist/vue-ui-table-sparkline-BKOaVFtt.cjs +1 -0
- package/dist/vue-ui-table-sparkline-BrqhBv29.js +467 -0
- package/dist/vue-ui-thermometer-CKgIqM5y.cjs +1 -0
- package/dist/{vue-ui-thermometer-CcH1qmLq.js → vue-ui-thermometer-DMkLvJgE.js} +118 -108
- package/dist/{vue-ui-timer-C52mSn4m.cjs → vue-ui-timer-D7fvoR77.cjs} +1 -1
- package/dist/{vue-ui-timer-DJfYr02u.js → vue-ui-timer-RA9yfgBk.js} +8 -8
- package/dist/{vue-ui-tiremarks-CcLcd5oA.js → vue-ui-tiremarks-B_EncUi6.js} +79 -71
- package/dist/{vue-ui-tiremarks-dNuNMt_R.cjs → vue-ui-tiremarks-C7y6Mbxe.cjs} +1 -1
- package/dist/{vue-ui-treemap-BOz94BVK.js → vue-ui-treemap-BuGZgQsr.js} +274 -236
- package/dist/vue-ui-treemap-CfngjVUS.cjs +1 -0
- package/dist/vue-ui-vertical-bar-DKbq4bX4.cjs +4 -0
- package/dist/vue-ui-vertical-bar-T4bFd3JF.js +792 -0
- package/dist/vue-ui-waffle-BJFbhWnA.cjs +1 -0
- package/dist/vue-ui-waffle-CrxmrYsV.js +735 -0
- package/dist/{vue-ui-wheel-BVjbh4oM.cjs → vue-ui-wheel-BDRvKR1Z.cjs} +1 -1
- package/dist/{vue-ui-wheel-DMRiVkhu.js → vue-ui-wheel-DOyC7NgR.js} +73 -65
- package/dist/vue-ui-word-cloud-DBxVNlJ3.js +495 -0
- package/dist/vue-ui-word-cloud-Dmcelg3z.cjs +1 -0
- package/dist/{vue-ui-xy-CsFr8tix.js → vue-ui-xy-BIbvJSh2.js} +367 -288
- package/dist/vue-ui-xy-CVKaR90p.cjs +3 -0
- package/dist/vue-ui-xy-canvas-2AaNivzI.cjs +9 -0
- package/dist/{vue-ui-xy-canvas-Bb2Z3E-7.js → vue-ui-xy-canvas-CXVni3kC.js} +284 -259
- package/package.json +1 -1
- package/dist/DataTable-C6HTLT7L.cjs +0 -1
- package/dist/index-BQOxn6SH.cjs +0 -4
- package/dist/vue-ui-3d-bar-DkJ4c3HQ.cjs +0 -19
- package/dist/vue-ui-age-pyramid-CkKVbbl8.cjs +0 -1
- package/dist/vue-ui-chestnut-C7gFvKLJ.cjs +0 -6
- package/dist/vue-ui-donut-C33U3e8H.js +0 -751
- package/dist/vue-ui-donut-CeHnjIGu.cjs +0 -1
- package/dist/vue-ui-donut-evolution-IzfAVo5I.js +0 -805
- package/dist/vue-ui-donut-evolution-hHfvz1Yd.cjs +0 -1
- package/dist/vue-ui-galaxy-B8EoId23.cjs +0 -1
- package/dist/vue-ui-gizmo-8lKc8m8b.cjs +0 -1
- package/dist/vue-ui-heatmap-BEsvmj5R.js +0 -606
- package/dist/vue-ui-heatmap-DvpvKq3Q.cjs +0 -1
- package/dist/vue-ui-mood-radar-C6devC4e.cjs +0 -1
- package/dist/vue-ui-nested-donuts-BtT3VsSf.cjs +0 -16
- package/dist/vue-ui-onion-9ATTDUpw.cjs +0 -1
- package/dist/vue-ui-quadrant-DD4H_Dhk.cjs +0 -1
- package/dist/vue-ui-quick-chart-CpFHKtpm.js +0 -1318
- package/dist/vue-ui-quick-chart-D1udOl47.cjs +0 -13
- package/dist/vue-ui-radar-CZmJDj3q.cjs +0 -1
- package/dist/vue-ui-rings-DN7XmhKZ.cjs +0 -1
- package/dist/vue-ui-scatter-DJlC5mz4.cjs +0 -1
- package/dist/vue-ui-sparkbar-0CNZluKs.js +0 -257
- package/dist/vue-ui-sparkbar-Di-BPkJ0.cjs +0 -1
- package/dist/vue-ui-sparkhistogram-BhkYmR4U.cjs +0 -1
- package/dist/vue-ui-stackbar-jNWFgXiA.cjs +0 -15
- package/dist/vue-ui-strip-plot-CzHFNhr3.cjs +0 -1
- package/dist/vue-ui-table-sparkline-DZY_23mg.js +0 -420
- package/dist/vue-ui-table-sparkline-Q8y6tloS.cjs +0 -1
- package/dist/vue-ui-thermometer-Cbu9jVvC.cjs +0 -1
- package/dist/vue-ui-treemap-orjA7Y0U.cjs +0 -1
- package/dist/vue-ui-vertical-bar-BHIt5cjc.cjs +0 -4
- package/dist/vue-ui-vertical-bar-BquCm_UG.js +0 -745
- package/dist/vue-ui-waffle-CNlp7RTS.js +0 -650
- package/dist/vue-ui-waffle-Dv8pXiYm.cjs +0 -1
- package/dist/vue-ui-word-cloud-CHRE8f_k.js +0 -352
- package/dist/vue-ui-word-cloud-CZum_IjT.cjs +0 -1
- package/dist/vue-ui-xy-BOoG4xg8.cjs +0 -3
- package/dist/vue-ui-xy-canvas-BHa3-phi.cjs +0 -9
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { computed as v, ref as i, onMounted 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 v, ref as i, onMounted as Se, onBeforeUnmount as Le, openBlock as s, createElementBlock as n, normalizeClass as L, normalizeStyle as E, createVNode as B, createCommentVNode as f, createBlock as D, unref as h, createSlots as ze, withCtx as y, renderSlot as m, normalizeProps as G, guardReactiveProps as W, createElementVNode as w, Fragment as $, renderList as x, toDisplayString as z, createTextVNode as pe, nextTick as Re } from "vue";
|
|
2
|
+
import { u as Me, c as Ve, t as Ue, a as Ee, p as P, o as Be, e as F, b as De, g as ge, d as fe, J as ye, i as me, f as R, X as Ge, s as We, v as Q, K as be, w as Xe, x as Ye, q as je, r as qe } from "./index-BlXzlBwZ.js";
|
|
3
|
+
import { t as He, u as Je } from "./useResponsive-NZB-WLRF.js";
|
|
4
|
+
import { _ as Ke } from "./Title-eBTH8iGJ.js";
|
|
5
|
+
import { u as Qe, U as Ze } from "./usePrinter-CZ8F5Cth.js";
|
|
6
|
+
import { _ as et } from "./Tooltip-B11OahTD.js";
|
|
7
|
+
import tt from "./vue-ui-sparkbar-DUx1qVzQ.js";
|
|
8
|
+
import { L as at } from "./Legend-CkQ_zypV.js";
|
|
9
|
+
import { D as ot } from "./DataTable-CsPidn0_.js";
|
|
10
|
+
import lt from "./vue-ui-skeleton-CJ2R5R6u.js";
|
|
11
|
+
import rt from "./vue-ui-accordion-wHRG3nXl.js";
|
|
12
|
+
import { u as ke } from "./useNestedProp-BoNl5H_z.js";
|
|
13
|
+
import { _ as st } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
|
+
const nt = ["id"], ut = ["xmlns", "viewBox"], it = ["id"], ct = ["stop-color"], dt = ["stop-color"], vt = { key: 0 }, ht = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], pt = { key: 0 }, gt = ["d", "stroke", "stroke-width"], ft = ["d", "stroke", "stroke-width"], yt = { key: 1 }, mt = ["x", "y", "text-anchor", "font-size", "fill", "onMouseenter"], bt = ["points", "stroke", "stroke-width"], kt = ["points", "stroke", "stroke-width", "fill"], Ct = { key: 2 }, _t = ["cx", "cy", "fill", "r", "stroke"], wt = {
|
|
15
15
|
key: 3,
|
|
16
16
|
class: "vue-data-ui-watermark"
|
|
17
|
-
},
|
|
17
|
+
}, $t = ["onClick"], xt = {
|
|
18
18
|
key: 0,
|
|
19
19
|
style: { "max-width": "200px", margin: "0 auto" }
|
|
20
|
-
},
|
|
20
|
+
}, Pt = {
|
|
21
21
|
__name: "vue-ui-radar",
|
|
22
22
|
props: {
|
|
23
23
|
config: {
|
|
@@ -34,48 +34,48 @@ const st = ["id"], nt = ["xmlns", "viewBox"], ut = ["id"], it = ["stop-color"],
|
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
36
|
emits: ["selectLegend"],
|
|
37
|
-
setup(
|
|
38
|
-
const
|
|
39
|
-
const t =
|
|
40
|
-
userConfig:
|
|
41
|
-
defaultConfig:
|
|
37
|
+
setup(Ce, { expose: _e, emit: we }) {
|
|
38
|
+
const p = Ce, { vue_ui_radar: $e } = Me(), O = v(() => !!p.dataset && Object.keys(p.dataset).length), _ = i(Ve()), xe = i(null), X = i(!1), Y = i(""), Z = i(0), A = i(null), ee = i(null), te = i(null), e = v(() => {
|
|
39
|
+
const t = ke({
|
|
40
|
+
userConfig: p.config,
|
|
41
|
+
defaultConfig: $e
|
|
42
42
|
});
|
|
43
43
|
return t.theme ? {
|
|
44
|
-
...
|
|
45
|
-
userConfig: Ue.vue_ui_radar[t.theme] ||
|
|
44
|
+
...ke({
|
|
45
|
+
userConfig: Ue.vue_ui_radar[t.theme] || p.config,
|
|
46
46
|
defaultConfig: t
|
|
47
47
|
}),
|
|
48
|
-
customPalette:
|
|
48
|
+
customPalette: Ee[t.theme] || P
|
|
49
49
|
} : t;
|
|
50
|
-
}),
|
|
51
|
-
|
|
52
|
-
if (
|
|
50
|
+
}), M = i(null);
|
|
51
|
+
Se(() => {
|
|
52
|
+
if (Be(p.dataset) && F({
|
|
53
53
|
componentName: "VueUiRadar",
|
|
54
54
|
type: "dataset"
|
|
55
55
|
}), e.value.responsive) {
|
|
56
|
-
const t =
|
|
57
|
-
const { width: a, height: o } =
|
|
58
|
-
chart:
|
|
59
|
-
title: e.value.style.chart.title.text ?
|
|
60
|
-
legend: e.value.style.chart.legend.show ?
|
|
56
|
+
const t = He(() => {
|
|
57
|
+
const { width: a, height: o } = Je({
|
|
58
|
+
chart: A.value,
|
|
59
|
+
title: e.value.style.chart.title.text ? ee.value : null,
|
|
60
|
+
legend: e.value.style.chart.legend.show ? te.value : null
|
|
61
61
|
});
|
|
62
62
|
u.value.width = a, u.value.height = o;
|
|
63
63
|
});
|
|
64
|
-
|
|
64
|
+
M.value = new ResizeObserver(t), M.value.observe(A.value.parentNode);
|
|
65
65
|
}
|
|
66
|
-
}),
|
|
67
|
-
|
|
66
|
+
}), Le(() => {
|
|
67
|
+
M.value && M.value.disconnect();
|
|
68
68
|
});
|
|
69
|
-
const { isPrinting:
|
|
69
|
+
const { isPrinting: ae, isImaging: oe, generatePdf: le, generateImage: re } = Qe({
|
|
70
70
|
elementId: `vue-ui-radar_${_.value}`,
|
|
71
71
|
fileName: e.value.style.chart.title.text || "vue-ui-radar"
|
|
72
|
-
}),
|
|
72
|
+
}), se = v(() => De(e.value.customPalette)), k = i({
|
|
73
73
|
dataLabels: {
|
|
74
74
|
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
75
75
|
},
|
|
76
76
|
showTable: e.value.table.show,
|
|
77
77
|
showTooltip: e.value.style.chart.tooltip.show
|
|
78
|
-
}),
|
|
78
|
+
}), Pe = v(() => ({
|
|
79
79
|
style: {
|
|
80
80
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
81
81
|
animation: {
|
|
@@ -96,55 +96,55 @@ const st = ["id"], nt = ["xmlns", "viewBox"], ut = ["id"], it = ["stop-color"],
|
|
|
96
96
|
})), u = i({
|
|
97
97
|
height: 312,
|
|
98
98
|
width: 512
|
|
99
|
-
}),
|
|
100
|
-
function
|
|
101
|
-
T.value = !0,
|
|
102
|
-
T.value = !1,
|
|
103
|
-
}, 500)) : (
|
|
99
|
+
}), c = i([]), I = i(null), T = i(!1);
|
|
100
|
+
function ne(t) {
|
|
101
|
+
T.value = !0, c.value.includes(t) ? (I.value = t, c.value = c.value.filter((a) => a !== t), setTimeout(() => {
|
|
102
|
+
T.value = !1, I.value = null;
|
|
103
|
+
}, 500)) : (c.value.push(t), setTimeout(() => {
|
|
104
104
|
T.value = !1;
|
|
105
|
-
}, 500)),
|
|
105
|
+
}, 500)), we("selectLegend", N.value.filter((a, o) => !c.value.includes(o)).map((a) => ({
|
|
106
106
|
name: a.name,
|
|
107
107
|
color: a.color,
|
|
108
108
|
proportion: a.totalProportion
|
|
109
109
|
})));
|
|
110
110
|
}
|
|
111
|
-
function
|
|
112
|
-
return
|
|
111
|
+
function Te() {
|
|
112
|
+
return N.value.map((t) => ({
|
|
113
113
|
name: t.name,
|
|
114
114
|
color: t.color,
|
|
115
115
|
proportion: t.totalProportion
|
|
116
116
|
}));
|
|
117
117
|
}
|
|
118
|
-
const g = v(() => [null, void 0].includes(
|
|
118
|
+
const g = v(() => [null, void 0].includes(p.dataset.categories) ? (F({
|
|
119
119
|
componentName: "VueUiRadar",
|
|
120
120
|
type: "datasetAttribute",
|
|
121
121
|
property: "categories ({ name: string; prefix?: string; suffix?: string}[])"
|
|
122
|
-
}), []) : (
|
|
122
|
+
}), []) : (p.dataset.categories.length === 0 ? F({
|
|
123
123
|
componentName: "VueUiRadar",
|
|
124
124
|
type: "datasetAttributeEmpty",
|
|
125
125
|
property: "categories"
|
|
126
|
-
}) :
|
|
127
|
-
|
|
126
|
+
}) : p.dataset.categories.forEach((t, a) => {
|
|
127
|
+
ge({
|
|
128
128
|
datasetObject: t,
|
|
129
129
|
requiredAttributes: ["name"]
|
|
130
130
|
}).forEach((o) => {
|
|
131
|
-
|
|
131
|
+
F({
|
|
132
132
|
componentName: "VueUiRadar",
|
|
133
133
|
type: "datasetAttribute",
|
|
134
134
|
property: `category.${o} at index ${a}`,
|
|
135
135
|
index: a
|
|
136
136
|
});
|
|
137
137
|
});
|
|
138
|
-
}), [null, void 0].includes(
|
|
138
|
+
}), [null, void 0].includes(p.dataset.series) ? F({
|
|
139
139
|
componentName: "VueUiRadar",
|
|
140
140
|
type: "datasetAttribute",
|
|
141
141
|
property: "series ({ name: string; values: number[]; color?: string; target: number}[])"
|
|
142
|
-
}) :
|
|
143
|
-
|
|
142
|
+
}) : p.dataset.series.forEach((t, a) => {
|
|
143
|
+
ge({
|
|
144
144
|
datasetObject: t,
|
|
145
145
|
requiredAttributes: ["name", "values", "target"]
|
|
146
146
|
}).forEach((o) => {
|
|
147
|
-
|
|
147
|
+
F({
|
|
148
148
|
componentName: "VueUiRadar",
|
|
149
149
|
type: "datasetSerieAttribute",
|
|
150
150
|
key: "series",
|
|
@@ -152,33 +152,34 @@ const st = ["id"], nt = ["xmlns", "viewBox"], ut = ["id"], it = ["stop-color"],
|
|
|
152
152
|
index: a
|
|
153
153
|
});
|
|
154
154
|
});
|
|
155
|
-
}),
|
|
155
|
+
}), p.dataset.categories.map((t, a) => ({
|
|
156
156
|
name: t.name,
|
|
157
157
|
categoryId: `radar_category_${_.value}_${a}`,
|
|
158
|
-
color:
|
|
158
|
+
color: fe(t.color) || se.value[a] || P[a] || P[a % P.length],
|
|
159
159
|
prefix: t.prefix ?? "",
|
|
160
160
|
suffix: t.suffix ?? ""
|
|
161
|
-
})))), b = v(() =>
|
|
161
|
+
})))), b = v(() => O.value ? p.dataset.series.map((t, a) => ({
|
|
162
162
|
...t,
|
|
163
|
-
color:
|
|
164
|
-
serieId: `radar_serie_${_.value}_${a}
|
|
165
|
-
|
|
163
|
+
color: fe(t.color) || se.value[a] || P[a] || P[a % P.length],
|
|
164
|
+
serieId: `radar_serie_${_.value}_${a}`,
|
|
165
|
+
formatter: t.formatter || null
|
|
166
|
+
})) : []), ue = v(() => Math.max(...b.value.flatMap((t) => t.values))), ie = v(() => b.value.length), j = v(() => Math.min(u.value.width, u.value.height) / 3), ce = v(() => ye({
|
|
166
167
|
plot: { x: u.value.width / 2, y: u.value.height / 2 },
|
|
167
|
-
radius:
|
|
168
|
-
sides:
|
|
168
|
+
radius: j.value,
|
|
169
|
+
sides: ie.value,
|
|
169
170
|
rotation: 0
|
|
170
|
-
})),
|
|
171
|
+
})), Ne = v(() => {
|
|
171
172
|
const t = [];
|
|
172
|
-
for (let a = 0; a <
|
|
173
|
+
for (let a = 0; a < j.value; a += j.value / e.value.style.chart.layout.grid.graduations)
|
|
173
174
|
t.push(a);
|
|
174
175
|
return t;
|
|
175
|
-
}), C = v(() =>
|
|
176
|
+
}), C = v(() => ce.value.coordinates.map((t, a) => {
|
|
176
177
|
const o = b.value[a].values.map((l) => Fe({
|
|
177
178
|
centerX: u.value.width / 2,
|
|
178
179
|
centerY: u.value.height / 2,
|
|
179
180
|
apexX: t.x,
|
|
180
181
|
apexY: t.y,
|
|
181
|
-
proportion: l / (b.value[a].target ||
|
|
182
|
+
proportion: l / (b.value[a].target || ue.value)
|
|
182
183
|
}));
|
|
183
184
|
return {
|
|
184
185
|
...t,
|
|
@@ -186,7 +187,7 @@ const st = ["id"], nt = ["xmlns", "viewBox"], ut = ["id"], it = ["stop-color"],
|
|
|
186
187
|
plots: o
|
|
187
188
|
};
|
|
188
189
|
}));
|
|
189
|
-
function
|
|
190
|
+
function q({ x: t, y: a }) {
|
|
190
191
|
let o = "middle";
|
|
191
192
|
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 };
|
|
192
193
|
}
|
|
@@ -196,32 +197,49 @@ const st = ["id"], nt = ["xmlns", "viewBox"], ut = ["id"], it = ["stop-color"],
|
|
|
196
197
|
y: a + (l - a) * r
|
|
197
198
|
};
|
|
198
199
|
}
|
|
199
|
-
const
|
|
200
|
-
const t = b.value.map((a, o) => a.values.map((l) => l / (a.target ||
|
|
200
|
+
const N = v(() => {
|
|
201
|
+
const t = b.value.map((a, o) => a.values.map((l) => l / (a.target || ue.value)));
|
|
201
202
|
return g.value.map((a, o) => ({
|
|
202
203
|
...a,
|
|
203
204
|
totalProportion: t.map((l) => l[o]).reduce((l, r) => l + r, 0) / b.value.length,
|
|
204
205
|
shape: "circle",
|
|
205
|
-
opacity:
|
|
206
|
-
segregate: () =>
|
|
207
|
-
isSegregated:
|
|
206
|
+
opacity: c.value.includes(o) ? 0.5 : 1,
|
|
207
|
+
segregate: () => ne(o),
|
|
208
|
+
isSegregated: c.value.includes(o)
|
|
208
209
|
}));
|
|
209
|
-
}),
|
|
210
|
+
}), Oe = v(() => ({
|
|
210
211
|
cy: "radar-div-legend",
|
|
211
212
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
212
213
|
color: e.value.style.chart.legend.color,
|
|
213
214
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
214
215
|
paddingBottom: 12,
|
|
215
216
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
216
|
-
})),
|
|
217
|
+
})), V = v(() => {
|
|
217
218
|
const t = [
|
|
218
219
|
{ name: e.value.translations.datapoint, color: "" },
|
|
219
220
|
{ name: e.value.translations.target, color: "" },
|
|
220
|
-
...
|
|
221
|
-
], a =
|
|
221
|
+
...N.value
|
|
222
|
+
], a = p.dataset.series.map((l) => [
|
|
222
223
|
l.name,
|
|
223
|
-
|
|
224
|
-
|
|
224
|
+
me(
|
|
225
|
+
l.formatter,
|
|
226
|
+
l.target,
|
|
227
|
+
R({
|
|
228
|
+
p: l.prefix,
|
|
229
|
+
v: l.target,
|
|
230
|
+
s: l.suffix,
|
|
231
|
+
r: e.value.table.td.roundingValue
|
|
232
|
+
})
|
|
233
|
+
),
|
|
234
|
+
...l.values.map((r, d) => `${me(
|
|
235
|
+
l.formatter,
|
|
236
|
+
r,
|
|
237
|
+
R({ p: g.value[d].prefix, v: r, s: g.value[d].suffix, r: e.value.table.td.roundingValue })
|
|
238
|
+
)} (${isNaN(r / l.target) ? "" : R({
|
|
239
|
+
v: r / l.target * 100,
|
|
240
|
+
s: "%",
|
|
241
|
+
r: e.value.table.td.roundingPercentage
|
|
242
|
+
})})`)
|
|
225
243
|
]), o = {
|
|
226
244
|
th: {
|
|
227
245
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
@@ -236,11 +254,11 @@ const st = ["id"], nt = ["xmlns", "viewBox"], ut = ["id"], it = ["stop-color"],
|
|
|
236
254
|
breakpoint: e.value.table.responsiveBreakpoint
|
|
237
255
|
};
|
|
238
256
|
return { head: t, body: a, config: o, colNames: t };
|
|
239
|
-
}), U = i(null),
|
|
240
|
-
function
|
|
241
|
-
|
|
257
|
+
}), U = i(null), H = i([]), J = i(null);
|
|
258
|
+
function Ae(t, a) {
|
|
259
|
+
H.value = [], U.value = a, X.value = !0;
|
|
242
260
|
let o = "";
|
|
243
|
-
|
|
261
|
+
J.value = {
|
|
244
262
|
datapoint: t,
|
|
245
263
|
seriesIndex: a,
|
|
246
264
|
series: {
|
|
@@ -251,13 +269,13 @@ const st = ["id"], nt = ["xmlns", "viewBox"], ut = ["id"], it = ["stop-color"],
|
|
|
251
269
|
config: e.value
|
|
252
270
|
};
|
|
253
271
|
const l = e.value.style.chart.tooltip.customFormat;
|
|
254
|
-
if (
|
|
272
|
+
if (Xe(l) && Ye(() => l({
|
|
255
273
|
seriesIndex: a,
|
|
256
274
|
datapoint: t,
|
|
257
275
|
series: { categories: g.value, datapoints: b.value, radar: C.value },
|
|
258
276
|
config: e.value
|
|
259
277
|
})))
|
|
260
|
-
|
|
278
|
+
Y.value = l({
|
|
261
279
|
seriesIndex: a,
|
|
262
280
|
datapoint: t,
|
|
263
281
|
series: { categories: g.value, datapoints: b.value, radar: C.value },
|
|
@@ -266,57 +284,58 @@ const st = ["id"], nt = ["xmlns", "viewBox"], ut = ["id"], it = ["stop-color"],
|
|
|
266
284
|
else {
|
|
267
285
|
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>`;
|
|
268
286
|
for (let r = 0; r < t.values.length; r += 1)
|
|
269
|
-
|
|
287
|
+
c.value.includes(r) || H.value.push({
|
|
270
288
|
name: g.value[r].name,
|
|
271
289
|
value: t.values[r] / t.target * 100,
|
|
272
290
|
color: g.value[r].color,
|
|
273
291
|
suffix: "%)",
|
|
274
|
-
prefix: `${
|
|
275
|
-
rounding: e.value.style.chart.tooltip.roundingPercentage
|
|
292
|
+
prefix: `${R({ p: g.value[r].prefix ?? "", v: t.values[r], s: g.value[r].suffix ?? "", r: e.value.style.chart.tooltip.roundingValue })} (`,
|
|
293
|
+
rounding: e.value.style.chart.tooltip.roundingPercentage,
|
|
294
|
+
formatter: t.formatter
|
|
276
295
|
});
|
|
277
|
-
|
|
296
|
+
Y.value = o;
|
|
278
297
|
}
|
|
279
298
|
}
|
|
280
299
|
function de() {
|
|
281
|
-
|
|
282
|
-
const t = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], a = [[""], [e.value.translations.target], ...
|
|
283
|
-
|
|
284
|
-
isNaN(
|
|
285
|
-
])]), l = t.concat([a]).concat(o), r =
|
|
286
|
-
|
|
300
|
+
Re(() => {
|
|
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 = p.dataset.series.map((d, Tt) => [d.name, d.target, ...d.values.flatMap((K) => [
|
|
302
|
+
K,
|
|
303
|
+
isNaN(K / d.target) ? "" : K / d.target * 100
|
|
304
|
+
])]), l = t.concat([a]).concat(o), r = je(l);
|
|
305
|
+
qe({ csvContent: r, title: e.value.style.chart.title.text || "vue-ui-radar" });
|
|
287
306
|
});
|
|
288
307
|
}
|
|
289
308
|
const S = i(!1);
|
|
290
|
-
function
|
|
291
|
-
S.value = t,
|
|
309
|
+
function Ie(t) {
|
|
310
|
+
S.value = t, Z.value += 1;
|
|
292
311
|
}
|
|
293
|
-
function
|
|
312
|
+
function ve() {
|
|
294
313
|
k.value.showTable = !k.value.showTable;
|
|
295
314
|
}
|
|
296
|
-
function
|
|
315
|
+
function he() {
|
|
297
316
|
k.value.showTooltip = !k.value.showTooltip;
|
|
298
317
|
}
|
|
299
|
-
return
|
|
300
|
-
getData:
|
|
301
|
-
generatePdf:
|
|
318
|
+
return _e({
|
|
319
|
+
getData: Te,
|
|
320
|
+
generatePdf: le,
|
|
302
321
|
generateCsv: de,
|
|
303
|
-
generateImage:
|
|
304
|
-
toggleTable:
|
|
305
|
-
toggleTooltip:
|
|
322
|
+
generateImage: re,
|
|
323
|
+
toggleTable: ve,
|
|
324
|
+
toggleTooltip: he
|
|
306
325
|
}), (t, a) => (s(), n("div", {
|
|
307
|
-
class:
|
|
326
|
+
class: L(`vue-ui-radar ${S.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
308
327
|
ref_key: "radarChart",
|
|
309
|
-
ref:
|
|
328
|
+
ref: A,
|
|
310
329
|
id: `vue-ui-radar_${_.value}`,
|
|
311
|
-
style:
|
|
330
|
+
style: E(`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}`)
|
|
312
331
|
}, [
|
|
313
332
|
e.value.style.chart.title.text ? (s(), n("div", {
|
|
314
333
|
key: 0,
|
|
315
334
|
ref_key: "chartTitle",
|
|
316
|
-
ref:
|
|
317
|
-
style:
|
|
335
|
+
ref: ee,
|
|
336
|
+
style: E(`width:100%;background:${e.value.style.chart.backgroundColor};padding-bottom:12px`)
|
|
318
337
|
}, [
|
|
319
|
-
|
|
338
|
+
B(Ke, {
|
|
320
339
|
config: {
|
|
321
340
|
title: {
|
|
322
341
|
cy: "radar-div-title",
|
|
@@ -328,15 +347,15 @@ const st = ["id"], nt = ["xmlns", "viewBox"], ut = ["id"], it = ["stop-color"],
|
|
|
328
347
|
}
|
|
329
348
|
}
|
|
330
349
|
}, null, 8, ["config"])
|
|
331
|
-
], 4)) :
|
|
332
|
-
e.value.userOptions.show &&
|
|
350
|
+
], 4)) : f("", !0),
|
|
351
|
+
e.value.userOptions.show && O.value ? (s(), D(Ze, {
|
|
333
352
|
ref_key: "details",
|
|
334
|
-
ref:
|
|
335
|
-
key: `user_options_${
|
|
353
|
+
ref: xe,
|
|
354
|
+
key: `user_options_${Z.value}`,
|
|
336
355
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
337
356
|
color: e.value.style.chart.color,
|
|
338
|
-
isImaging:
|
|
339
|
-
isPrinting:
|
|
357
|
+
isImaging: h(oe),
|
|
358
|
+
isPrinting: h(ae),
|
|
340
359
|
uid: _.value,
|
|
341
360
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
342
361
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -347,63 +366,63 @@ const st = ["id"], nt = ["xmlns", "viewBox"], ut = ["id"], it = ["stop-color"],
|
|
|
347
366
|
isFullscreen: S.value,
|
|
348
367
|
isTooltip: k.value.showTooltip,
|
|
349
368
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
350
|
-
chartElement:
|
|
351
|
-
onToggleFullscreen:
|
|
352
|
-
onGeneratePdf:
|
|
369
|
+
chartElement: A.value,
|
|
370
|
+
onToggleFullscreen: Ie,
|
|
371
|
+
onGeneratePdf: h(le),
|
|
353
372
|
onGenerateCsv: de,
|
|
354
|
-
onGenerateImage:
|
|
355
|
-
onToggleTable:
|
|
356
|
-
onToggleTooltip:
|
|
373
|
+
onGenerateImage: h(re),
|
|
374
|
+
onToggleTable: ve,
|
|
375
|
+
onToggleTooltip: he
|
|
357
376
|
}, ze({ _: 2 }, [
|
|
358
377
|
t.$slots.optionTooltip ? {
|
|
359
378
|
name: "optionTooltip",
|
|
360
|
-
fn:
|
|
379
|
+
fn: y(() => [
|
|
361
380
|
m(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
362
381
|
]),
|
|
363
382
|
key: "0"
|
|
364
383
|
} : void 0,
|
|
365
384
|
t.$slots.optionPdf ? {
|
|
366
385
|
name: "optionPdf",
|
|
367
|
-
fn:
|
|
386
|
+
fn: y(() => [
|
|
368
387
|
m(t.$slots, "optionPdf", {}, void 0, !0)
|
|
369
388
|
]),
|
|
370
389
|
key: "1"
|
|
371
390
|
} : void 0,
|
|
372
391
|
t.$slots.optionCsv ? {
|
|
373
392
|
name: "optionCsv",
|
|
374
|
-
fn:
|
|
393
|
+
fn: y(() => [
|
|
375
394
|
m(t.$slots, "optionCsv", {}, void 0, !0)
|
|
376
395
|
]),
|
|
377
396
|
key: "2"
|
|
378
397
|
} : void 0,
|
|
379
398
|
t.$slots.optionImg ? {
|
|
380
399
|
name: "optionImg",
|
|
381
|
-
fn:
|
|
400
|
+
fn: y(() => [
|
|
382
401
|
m(t.$slots, "optionImg", {}, void 0, !0)
|
|
383
402
|
]),
|
|
384
403
|
key: "3"
|
|
385
404
|
} : void 0,
|
|
386
405
|
t.$slots.optionTable ? {
|
|
387
406
|
name: "optionTable",
|
|
388
|
-
fn:
|
|
407
|
+
fn: y(() => [
|
|
389
408
|
m(t.$slots, "optionTable", {}, void 0, !0)
|
|
390
409
|
]),
|
|
391
410
|
key: "4"
|
|
392
411
|
} : void 0,
|
|
393
412
|
t.$slots.optionFullscreen ? {
|
|
394
413
|
name: "optionFullscreen",
|
|
395
|
-
fn:
|
|
396
|
-
m(t.$slots, "optionFullscreen",
|
|
414
|
+
fn: y(({ toggleFullscreen: o, isFullscreen: l }) => [
|
|
415
|
+
m(t.$slots, "optionFullscreen", G(W({ toggleFullscreen: o, isFullscreen: l })), void 0, !0)
|
|
397
416
|
]),
|
|
398
417
|
key: "5"
|
|
399
418
|
} : void 0
|
|
400
|
-
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) :
|
|
401
|
-
|
|
419
|
+
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) : f("", !0),
|
|
420
|
+
O.value ? (s(), n("svg", {
|
|
402
421
|
key: 2,
|
|
403
|
-
xmlns:
|
|
404
|
-
class:
|
|
422
|
+
xmlns: h(Ge),
|
|
423
|
+
class: L({ "vue-data-ui-fullscreen--on": S.value, "vue-data-ui-fulscreen--off": !S.value }),
|
|
405
424
|
viewBox: `0 0 ${u.value.width <= 0 ? 10 : u.value.width} ${u.value.height <= 0 ? 10 : u.value.height}`,
|
|
406
|
-
style:
|
|
425
|
+
style: E(`max-width:100%;overflow:visible;background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color}`)
|
|
407
426
|
}, [
|
|
408
427
|
w("defs", null, [
|
|
409
428
|
(s(!0), n($, null, x(g.value, (o, l) => (s(), n("radialGradient", {
|
|
@@ -416,15 +435,15 @@ const st = ["id"], nt = ["xmlns", "viewBox"], ut = ["id"], it = ["stop-color"],
|
|
|
416
435
|
}, [
|
|
417
436
|
w("stop", {
|
|
418
437
|
offset: "0%",
|
|
419
|
-
"stop-color": `${
|
|
420
|
-
}, null, 8,
|
|
438
|
+
"stop-color": `${h(We)(o.color, 0.05)}${h(Q)[e.value.style.chart.layout.dataPolygon.opacity]}`
|
|
439
|
+
}, null, 8, ct),
|
|
421
440
|
w("stop", {
|
|
422
441
|
offset: "100%",
|
|
423
|
-
"stop-color": o.color +
|
|
442
|
+
"stop-color": o.color + h(Q)[e.value.style.chart.layout.dataPolygon.opacity]
|
|
424
443
|
}, null, 8, dt)
|
|
425
|
-
], 8,
|
|
444
|
+
], 8, it))), 256))
|
|
426
445
|
]),
|
|
427
|
-
e.value.style.chart.layout.grid.show ? (s(), n("g",
|
|
446
|
+
e.value.style.chart.layout.grid.show ? (s(), n("g", vt, [
|
|
428
447
|
(s(!0), n($, null, x(C.value, (o) => (s(), n("line", {
|
|
429
448
|
x1: u.value.width / 2,
|
|
430
449
|
y1: u.value.height / 2,
|
|
@@ -432,83 +451,83 @@ const st = ["id"], nt = ["xmlns", "viewBox"], ut = ["id"], it = ["stop-color"],
|
|
|
432
451
|
y2: o.y,
|
|
433
452
|
stroke: e.value.style.chart.layout.grid.stroke,
|
|
434
453
|
"stroke-width": e.value.style.chart.layout.grid.strokeWidth
|
|
435
|
-
}, null, 8,
|
|
436
|
-
e.value.style.chart.layout.grid.graduations > 0 ? (s(), n("g",
|
|
437
|
-
(s(!0), n($, null, x(
|
|
438
|
-
d:
|
|
454
|
+
}, null, 8, ht))), 256)),
|
|
455
|
+
e.value.style.chart.layout.grid.graduations > 0 ? (s(), n("g", pt, [
|
|
456
|
+
(s(!0), n($, null, x(Ne.value, (o) => (s(), n("path", {
|
|
457
|
+
d: h(ye)({
|
|
439
458
|
plot: { x: u.value.width / 2, y: u.value.height / 2 },
|
|
440
459
|
radius: o,
|
|
441
|
-
sides:
|
|
460
|
+
sides: ie.value,
|
|
442
461
|
rotation: 0
|
|
443
462
|
}).path,
|
|
444
463
|
fill: "none",
|
|
445
464
|
stroke: e.value.style.chart.layout.grid.stroke,
|
|
446
465
|
"stroke-width": e.value.style.chart.layout.grid.strokeWidth
|
|
447
|
-
}, null, 8,
|
|
448
|
-
])) :
|
|
449
|
-
])) :
|
|
466
|
+
}, null, 8, gt))), 256))
|
|
467
|
+
])) : f("", !0)
|
|
468
|
+
])) : f("", !0),
|
|
450
469
|
w("path", {
|
|
451
|
-
d:
|
|
470
|
+
d: ce.value.path,
|
|
452
471
|
fill: "none",
|
|
453
472
|
stroke: e.value.style.chart.layout.outerPolygon.stroke,
|
|
454
473
|
"stroke-width": e.value.style.chart.layout.outerPolygon.strokeWidth,
|
|
455
474
|
"stroke-linejoin": "round",
|
|
456
475
|
"stroke-linecap": "round"
|
|
457
|
-
}, null, 8,
|
|
476
|
+
}, null, 8, ft),
|
|
458
477
|
e.value.style.chart.layout.labels.dataLabels.show ? (s(), n("g", yt, [
|
|
459
478
|
(s(!0), n($, null, x(C.value, (o, l) => (s(), n("text", {
|
|
460
|
-
x:
|
|
461
|
-
y:
|
|
462
|
-
"text-anchor":
|
|
479
|
+
x: q(o).x,
|
|
480
|
+
y: q(o).y,
|
|
481
|
+
"text-anchor": q(o).anchor,
|
|
463
482
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
464
483
|
fill: e.value.style.chart.layout.labels.dataLabels.color,
|
|
465
|
-
onMouseenter: (r) =>
|
|
484
|
+
onMouseenter: (r) => Ae(o, l),
|
|
466
485
|
onMouseleave: a[0] || (a[0] = (r) => {
|
|
467
|
-
|
|
486
|
+
X.value = !1, U.value = null;
|
|
468
487
|
})
|
|
469
|
-
},
|
|
470
|
-
])) :
|
|
488
|
+
}, z(o.name), 41, mt))), 256))
|
|
489
|
+
])) : f("", !0),
|
|
471
490
|
(s(!0), n($, null, x(g.value, (o, l) => (s(), n("g", null, [
|
|
472
491
|
w("g", null, [
|
|
473
|
-
e.value.useCssAnimation || !e.value.useCssAnimation && !
|
|
492
|
+
e.value.useCssAnimation || !e.value.useCssAnimation && !c.value.includes(l) ? (s(), n("polygon", {
|
|
474
493
|
key: 0,
|
|
475
494
|
"data-cy-radar-path": "",
|
|
476
|
-
points:
|
|
495
|
+
points: h(be)(C.value.map((r) => r.plots[l]), !1, !0),
|
|
477
496
|
stroke: e.value.style.chart.backgroundColor,
|
|
478
497
|
"stroke-width": e.value.style.chart.layout.dataPolygon.strokeWidth + 1,
|
|
479
498
|
fill: "none",
|
|
480
|
-
class:
|
|
481
|
-
}, null, 10,
|
|
482
|
-
e.value.useCssAnimation || !e.value.useCssAnimation && !
|
|
499
|
+
class: L({ "animated-out": c.value.includes(l) && e.value.useCssAnimation, "animated-in": T.value && I.value === l && e.value.useCssAnimation })
|
|
500
|
+
}, null, 10, bt)) : f("", !0),
|
|
501
|
+
e.value.useCssAnimation || !e.value.useCssAnimation && !c.value.includes(l) ? (s(), n("polygon", {
|
|
483
502
|
key: 1,
|
|
484
503
|
"data-cy-radar-path": "",
|
|
485
|
-
points:
|
|
504
|
+
points: h(be)(C.value.map((r) => r.plots[l]), !1, !0),
|
|
486
505
|
stroke: o.color,
|
|
487
506
|
"stroke-width": e.value.style.chart.layout.dataPolygon.strokeWidth,
|
|
488
|
-
fill: e.value.style.chart.layout.dataPolygon.transparent ? "transparent" : e.value.style.chart.layout.dataPolygon.useGradient ? `url(#radar_gradient_${_.value}_${l})` : o.color +
|
|
489
|
-
class:
|
|
490
|
-
}, null, 10,
|
|
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(Q)[e.value.style.chart.layout.dataPolygon.opacity],
|
|
508
|
+
class: L({ "animated-out": c.value.includes(l) && e.value.useCssAnimation, "animated-in": T.value && I.value === l && e.value.useCssAnimation })
|
|
509
|
+
}, null, 10, kt)) : f("", !0)
|
|
491
510
|
])
|
|
492
511
|
]))), 256)),
|
|
493
|
-
e.value.style.chart.layout.plots.show ? (s(), n("g",
|
|
512
|
+
e.value.style.chart.layout.plots.show ? (s(), n("g", Ct, [
|
|
494
513
|
(s(!0), n($, null, x(C.value, (o, l) => (s(), n("g", null, [
|
|
495
|
-
(s(!0), n($, null, x(o.plots, (r,
|
|
514
|
+
(s(!0), n($, null, x(o.plots, (r, d) => (s(), n("circle", {
|
|
496
515
|
cx: r.x,
|
|
497
516
|
cy: r.y,
|
|
498
|
-
fill:
|
|
517
|
+
fill: c.value.includes(d) ? "transparent" : g.value[d].color,
|
|
499
518
|
r: U.value !== null && U.value === l ? e.value.style.chart.layout.plots.radius * 1.6 : e.value.style.chart.layout.plots.radius,
|
|
500
|
-
stroke:
|
|
519
|
+
stroke: c.value.includes(d) ? "transparent" : e.value.style.chart.backgroundColor,
|
|
501
520
|
"stroke-width": 0.5,
|
|
502
|
-
class:
|
|
503
|
-
}, null, 10,
|
|
521
|
+
class: L({ "animated-out": c.value.includes(d) && e.value.useCssAnimation, "animated-in": T.value && I.value === d && e.value.useCssAnimation })
|
|
522
|
+
}, null, 10, _t))), 256))
|
|
504
523
|
]))), 256))
|
|
505
|
-
])) :
|
|
524
|
+
])) : f("", !0),
|
|
506
525
|
m(t.$slots, "svg", { svg: u.value }, void 0, !0)
|
|
507
|
-
], 14,
|
|
508
|
-
t.$slots.watermark ? (s(), n("div",
|
|
509
|
-
m(t.$slots, "watermark",
|
|
510
|
-
])) :
|
|
511
|
-
|
|
526
|
+
], 14, ut)) : f("", !0),
|
|
527
|
+
t.$slots.watermark ? (s(), n("div", wt, [
|
|
528
|
+
m(t.$slots, "watermark", G(W({ isPrinting: h(ae) || h(oe) })), void 0, !0)
|
|
529
|
+
])) : f("", !0),
|
|
530
|
+
O.value ? f("", !0) : (s(), D(lt, {
|
|
512
531
|
key: 4,
|
|
513
532
|
config: {
|
|
514
533
|
type: "radar",
|
|
@@ -527,29 +546,33 @@ const st = ["id"], nt = ["xmlns", "viewBox"], ut = ["id"], it = ["stop-color"],
|
|
|
527
546
|
}, null, 8, ["config"])),
|
|
528
547
|
w("div", {
|
|
529
548
|
ref_key: "chartLegend",
|
|
530
|
-
ref:
|
|
549
|
+
ref: te
|
|
531
550
|
}, [
|
|
532
|
-
e.value.style.chart.legend.show ? (s(),
|
|
551
|
+
e.value.style.chart.legend.show ? (s(), D(at, {
|
|
533
552
|
key: 0,
|
|
534
|
-
legendSet:
|
|
535
|
-
config:
|
|
536
|
-
onClickMarker: a[1] || (a[1] = ({ i: o }) =>
|
|
553
|
+
legendSet: N.value,
|
|
554
|
+
config: Oe.value,
|
|
555
|
+
onClickMarker: a[1] || (a[1] = ({ i: o }) => ne(o))
|
|
537
556
|
}, {
|
|
538
|
-
item:
|
|
557
|
+
item: y(({ legend: o, index: l }) => [
|
|
539
558
|
w("div", {
|
|
540
559
|
"data-cy-legend-item": "",
|
|
541
560
|
onClick: (r) => o.segregate(),
|
|
542
|
-
style:
|
|
543
|
-
},
|
|
561
|
+
style: E(`opacity:${c.value.includes(l) ? 0.5 : 1}`)
|
|
562
|
+
}, z(o.name) + ": " + z(h(R)({
|
|
563
|
+
v: o.totalProportion * 100,
|
|
564
|
+
s: "%",
|
|
565
|
+
r: e.value.style.chart.legend.roundingPercentage
|
|
566
|
+
})), 13, $t)
|
|
544
567
|
]),
|
|
545
568
|
_: 1
|
|
546
569
|
}, 8, ["legendSet", "config"])) : m(t.$slots, "legend", {
|
|
547
570
|
key: 1,
|
|
548
|
-
legend:
|
|
571
|
+
legend: N.value
|
|
549
572
|
}, void 0, !0)
|
|
550
573
|
], 512),
|
|
551
|
-
|
|
552
|
-
show: k.value.showTooltip &&
|
|
574
|
+
B(et, {
|
|
575
|
+
show: k.value.showTooltip && X.value,
|
|
553
576
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
554
577
|
color: e.value.style.chart.tooltip.color,
|
|
555
578
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -559,26 +582,26 @@ const st = ["id"], nt = ["xmlns", "viewBox"], ut = ["id"], it = ["stop-color"],
|
|
|
559
582
|
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
560
583
|
position: e.value.style.chart.tooltip.position,
|
|
561
584
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
562
|
-
parent:
|
|
563
|
-
content:
|
|
585
|
+
parent: A.value,
|
|
586
|
+
content: Y.value,
|
|
564
587
|
isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function"
|
|
565
588
|
}, {
|
|
566
|
-
"tooltip-before":
|
|
567
|
-
m(t.$slots, "tooltip-before",
|
|
589
|
+
"tooltip-before": y(() => [
|
|
590
|
+
m(t.$slots, "tooltip-before", G(W({ ...J.value })), void 0, !0)
|
|
568
591
|
]),
|
|
569
|
-
"tooltip-after":
|
|
570
|
-
["function"].includes(typeof e.value.style.chart.tooltip.customFormat) ?
|
|
571
|
-
|
|
572
|
-
dataset:
|
|
573
|
-
config:
|
|
592
|
+
"tooltip-after": y(() => [
|
|
593
|
+
["function"].includes(typeof e.value.style.chart.tooltip.customFormat) ? f("", !0) : (s(), n("div", xt, [
|
|
594
|
+
B(tt, {
|
|
595
|
+
dataset: H.value,
|
|
596
|
+
config: Pe.value,
|
|
574
597
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity
|
|
575
598
|
}, null, 8, ["dataset", "config", "backgroundOpacity"])
|
|
576
599
|
])),
|
|
577
|
-
m(t.$slots, "tooltip-after",
|
|
600
|
+
m(t.$slots, "tooltip-after", G(W({ ...J.value })), void 0, !0)
|
|
578
601
|
]),
|
|
579
602
|
_: 3
|
|
580
603
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "fontSize", "position", "offsetY", "parent", "content", "isCustom"]),
|
|
581
|
-
|
|
604
|
+
O.value ? (s(), D(rt, {
|
|
582
605
|
key: 5,
|
|
583
606
|
hideDetails: "",
|
|
584
607
|
config: {
|
|
@@ -594,29 +617,29 @@ const st = ["id"], nt = ["xmlns", "viewBox"], ut = ["id"], it = ["stop-color"],
|
|
|
594
617
|
}
|
|
595
618
|
}
|
|
596
619
|
}, {
|
|
597
|
-
content:
|
|
598
|
-
|
|
599
|
-
colNames:
|
|
600
|
-
head:
|
|
601
|
-
body:
|
|
602
|
-
config:
|
|
620
|
+
content: y(() => [
|
|
621
|
+
B(ot, {
|
|
622
|
+
colNames: V.value.colNames,
|
|
623
|
+
head: V.value.head,
|
|
624
|
+
body: V.value.body,
|
|
625
|
+
config: V.value.config,
|
|
603
626
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
604
627
|
onClose: a[2] || (a[2] = (o) => k.value.showTable = !1)
|
|
605
628
|
}, {
|
|
606
|
-
th:
|
|
607
|
-
|
|
629
|
+
th: y(({ th: o }) => [
|
|
630
|
+
pe(z(o.name), 1)
|
|
608
631
|
]),
|
|
609
|
-
td:
|
|
610
|
-
|
|
632
|
+
td: y(({ td: o }) => [
|
|
633
|
+
pe(z(o), 1)
|
|
611
634
|
]),
|
|
612
635
|
_: 1
|
|
613
636
|
}, 8, ["colNames", "head", "body", "config", "title"])
|
|
614
637
|
]),
|
|
615
638
|
_: 1
|
|
616
|
-
}, 8, ["config"])) :
|
|
617
|
-
], 14,
|
|
639
|
+
}, 8, ["config"])) : f("", !0)
|
|
640
|
+
], 14, nt));
|
|
618
641
|
}
|
|
619
|
-
},
|
|
642
|
+
}, Bt = /* @__PURE__ */ st(Pt, [["__scopeId", "data-v-614f05d5"]]);
|
|
620
643
|
export {
|
|
621
|
-
|
|
644
|
+
Bt as default
|
|
622
645
|
};
|